diff --git a/.circleci/config.yml b/.circleci/config.yml index 37169b47a5..8a99644444 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -107,6 +107,7 @@ jobs: name: Send bundle stats to RelativeCI command: npx relative-ci-agent build-image: + resource_class: xlarge executor: docker-publisher steps: - checkout diff --git a/LICENSE b/LICENSE index 9d9a38ed1b..3eeb03aa9a 100644 --- a/LICENSE +++ b/LICENSE @@ -3,8 +3,8 @@ Business Source License 1.1 Parameters Licensor: General Outline, Inc. -Licensed Work: Outline 0.81.0 - The Licensed Work is (c) 2024 General Outline, Inc. +Licensed Work: Outline 0.82.0 + The Licensed Work is (c) 2025 General Outline, Inc. Additional Use Grant: You may make use of the Licensed Work, provided that you may not use the Licensed Work for a Document Service. @@ -15,7 +15,7 @@ Additional Use Grant: You may make use of the Licensed Work, provided that Licensed Work by creating teams and documents controlled by such third parties. -Change Date: 2028-11-11 +Change Date: 2029-02-15 Change License: Apache License, Version 2.0 diff --git a/app/actions/definitions/developer.tsx b/app/actions/definitions/developer.tsx index e0d32e7594..af4f2dca2a 100644 --- a/app/actions/definitions/developer.tsx +++ b/app/actions/definitions/developer.tsx @@ -2,6 +2,7 @@ import copy from "copy-to-clipboard"; import { BeakerIcon, CopyIcon, + EditIcon, ToolsIcon, TrashIcon, UserIcon, @@ -83,6 +84,38 @@ export const copyId = createAction({ }, }); +function generateRandomText() { + const characters = + "abcdefghijklmno pqrstuvwxyzABCDEFGHIJKL MNOPQRSTUVWXYZ 0123456789\n"; + let text = ""; + for (let i = 0; i < Math.floor(Math.random() * 10) + 1; i++) { + text += characters.charAt(Math.floor(Math.random() * characters.length)); + } + return text; +} + +export const startTyping = createAction({ + name: "Start automatic typing", + icon: , + section: DeveloperSection, + visible: ({ activeDocumentId }) => + !!activeDocumentId && env.ENVIRONMENT === "development", + perform: () => { + const intervalId = setInterval(() => { + const text = generateRandomText(); + document.execCommand("insertText", false, text); + }, 250); + + window.addEventListener("keydown", (event) => { + if (event.key === "Escape") { + intervalId && clearInterval(intervalId); + } + }); + + toast.info("Automatic typing started, press Escape to stop"); + }, +}); + export const clearIndexedDB = createAction({ name: ({ t }) => t("Clear IndexedDB cache"), icon: , @@ -169,6 +202,7 @@ export const developer = createAction({ createToast, createTestUsers, clearIndexedDB, + startTyping, ], }); diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index c271fc7370..d7e2950f2a 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -125,6 +125,20 @@ export const createDocument = createAction({ }), }); +export const createDraftDocument = createAction({ + name: ({ t }) => t("New draft"), + analyticsName: "New document", + section: DocumentSection, + icon: , + keywords: "create document", + visible: ({ currentTeamId, stores }) => + !!currentTeamId && stores.policies.abilities(currentTeamId).createDocument, + perform: ({ sidebarContext }) => + history.push(newDocumentPath(), { + sidebarContext, + }), +}); + export const createDocumentFromTemplate = createAction({ name: ({ t }) => t("New from template"), analyticsName: "New document", @@ -1181,6 +1195,7 @@ export const rootDocumentActions = [ openDocument, archiveDocument, createDocument, + createDraftDocument, createNestedDocument, createTemplateFromDocument, deleteDocument, diff --git a/app/components/Avatar/Initials.tsx b/app/components/Avatar/Initials.tsx index 10a9e78165..775e380e0c 100644 --- a/app/components/Avatar/Initials.tsx +++ b/app/components/Avatar/Initials.tsx @@ -1,3 +1,4 @@ +import { getLuminance } from "polished"; import styled from "styled-components"; import { s } from "@shared/styles"; import Flex from "~/components/Flex"; @@ -15,7 +16,10 @@ const Initials = styled(Flex)<{ border-radius: 50%; width: 100%; height: 100%; - color: ${s("white75")}; + color: ${(props) => + getLuminance(props.color ?? props.theme.textTertiary) > 0.5 + ? s("black50") + : s("white75")}; background-color: ${(props) => props.color ?? props.theme.textTertiary}; width: ${(props) => props.size}px; height: ${(props) => props.size}px; diff --git a/app/components/EventListItem.tsx b/app/components/EventListItem.tsx index 4c54151e2a..107b98b3fe 100644 --- a/app/components/EventListItem.tsx +++ b/app/components/EventListItem.tsx @@ -7,6 +7,9 @@ import { PublishIcon, MoveIcon, UnpublishIcon, + RestoreIcon, + UserIcon, + CrossIcon, } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; @@ -14,32 +17,61 @@ import { useLocation } from "react-router-dom"; import styled, { css } from "styled-components"; import EventBoundary from "@shared/components/EventBoundary"; import { s, hover } from "@shared/styles"; +import { RevisionHelper } from "@shared/utils/RevisionHelper"; import Document from "~/models/Document"; -import Event from "~/models/Event"; import { Avatar, AvatarSize } from "~/components/Avatar"; -import Item, { Actions, Props as ItemProps } from "~/components/List/Item"; +import Item, { Actions } from "~/components/List/Item"; import Time from "~/components/Time"; import { useLocationSidebarContext } from "~/hooks/useLocationSidebarContext"; import useStores from "~/hooks/useStores"; import RevisionMenu from "~/menus/RevisionMenu"; import Logger from "~/utils/Logger"; import { documentHistoryPath } from "~/utils/routeHelpers"; +import Text from "./Text"; + +export type RevisionEvent = { + name: "revisions.create"; + latest: boolean; +}; + +export type DocumentEvent = { + name: + | "documents.publish" + | "documents.unpublish" + | "documents.archive" + | "documents.unarchive" + | "documents.delete" + | "documents.restore" + | "documents.add_user" + | "documents.remove_user" + | "documents.move"; + userId: string; +}; + +export type Event = { id: string; actorId: string; createdAt: string } & ( + | RevisionEvent + | DocumentEvent +); type Props = { document: Document; - event: Event; - latest?: boolean; + event: Event; }; -const EventListItem = ({ event, latest, document, ...rest }: Props) => { +const EventListItem = ({ event, document, ...rest }: Props) => { const { t } = useTranslation(); - const { revisions } = useStores(); + const { revisions, users } = useStores(); + const actor = "actorId" in event ? users.get(event.actorId) : undefined; + const user = "userId" in event ? users.get(event.userId) : undefined; const location = useLocation(); const sidebarContext = useLocationSidebarContext(); + const revisionLoadedRef = React.useRef(false); const opts = { - userName: event.actor.name, + userName: actor?.name, }; const isRevision = event.name === "revisions.create"; + const isDerivedFromDocument = + event.id === RevisionHelper.latestId(document.id); let meta, icon, to: LocationDescriptor | undefined; const ref = React.useRef(null); @@ -50,23 +82,32 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { }; const prefetchRevision = async () => { - if (event.name === "revisions.create" && event.modelId) { - await revisions.fetch(event.modelId); + if ( + !document.isDeleted && + event.name === "revisions.create" && + !isDerivedFromDocument && + !revisionLoadedRef.current + ) { + await revisions.fetch(event.id, { force: true }); + revisionLoadedRef.current = true; } }; switch (event.name) { case "revisions.create": icon = ; - meta = latest ? ( + meta = event.latest ? ( <> - {t("Current version")} · {event.actor.name} + {t("Current version")} · {actor?.name} ) : ( t("{{userName}} edited", opts) ); to = { - pathname: documentHistoryPath(document, event.modelId || "latest"), + pathname: documentHistoryPath( + document, + isDerivedFromDocument ? "latest" : event.id + ), state: { sidebarContext, retainScrollPosition: true, @@ -75,47 +116,51 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { break; case "documents.archive": - icon = ; + icon = ; meta = t("{{userName}} archived", opts); break; case "documents.unarchive": + icon = ; meta = t("{{userName}} restored", opts); break; case "documents.delete": - icon = ; + icon = ; meta = t("{{userName}} deleted", opts); break; case "documents.add_user": + icon = ; meta = t("{{userName}} added {{addedUserName}}", { ...opts, - addedUserName: event.user?.name ?? t("a user"), + addedUserName: user?.name ?? t("a user"), }); break; case "documents.remove_user": + icon = ; meta = t("{{userName}} removed {{removedUserName}}", { ...opts, - removedUserName: event.user?.name ?? t("a user"), + removedUserName: user?.name ?? t("a user"), }); break; case "documents.restore": + icon = ; meta = t("{{userName}} moved from trash", opts); break; case "documents.publish": - icon = ; + icon = ; meta = t("{{userName}} published", opts); break; case "documents.unpublish": - icon = ; + icon = ; meta = t("{{userName}} unpublished", opts); break; case "documents.move": - icon = ; + icon = ; meta = t("{{userName}} moved", opts); break; @@ -136,8 +181,8 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { to = undefined; } - return ( - { onClick={handleTimeClick} /> } - image={} - subtitle={ - - {icon} - {meta} - - } + image={} + subtitle={meta} actions={ - isRevision && isActive && event.modelId && !latest ? ( + isRevision && isActive && !event.latest ? ( - + ) : undefined } @@ -171,63 +211,100 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { ref={ref} {...rest} /> + ) : ( + + + {icon} + + + {meta} ·{" "} + + ); }; -const BaseItem = React.forwardRef(function _BaseItem( - { to, ...rest }: ItemProps, - ref?: React.Ref -) { - return ; -}); +const lineStyle = css` + &::before { + content: ""; + display: block; + position: absolute; + top: -8px; + left: 22px; + width: 1px; + height: calc(50% - 14px + 8px); + background: ${s("divider")}; + mix-blend-mode: multiply; + z-index: 1; + } + + &:first-child::before { + display: none; + } + + &:nth-child(2)::before { + display: none; + } + + &::after { + content: ""; + display: block; + position: absolute; + top: calc(50% + 14px); + left: 22px; + width: 1px; + height: calc(50% - 14px); + background: ${s("divider")}; + mix-blend-mode: multiply; + z-index: 1; + } + + &:last-child::after { + display: none; + } + + h3 + &::before { + display: none; + } +`; + +const IconWrapper = styled(Text)` + height: 24px; +`; + +const EventItem = styled.li` + display: flex; + align-items: center; + gap: 8px; + list-style: none; + margin: 8px 0; + padding: 4px 10px; + white-space: nowrap; + position: relative; + + time { + white-space: nowrap; + } + + svg { + flex-shrink: 0; + } + + ${lineStyle} +`; const StyledEventBoundary = styled(EventBoundary)` height: 24px; `; -const Subtitle = styled.span` - svg { - margin: -3px; - margin-right: 2px; - } -`; - -const ItemStyle = css` +const RevisionItem = styled(Item)` border: 0; position: relative; margin: 8px 0; padding: 8px; border-radius: 8px; - img { - border-color: transparent; - } - - &::before { - content: ""; - display: block; - position: absolute; - top: -4px; - left: 23px; - width: 2px; - height: calc(100% + 8px); - background: ${s("textSecondary")}; - opacity: 0.25; - } - - &:nth-child(2)::before { - height: 50%; - top: auto; - bottom: -4px; - } - - &:last-child::before { - height: 50%; - } - - &:first-child:last-child::before { - display: none; - } + ${lineStyle} ${Actions} { opacity: 0.5; @@ -238,8 +315,4 @@ const ItemStyle = css` } `; -const ListItem = styled(Item)` - ${ItemStyle} -`; - export default observer(EventListItem); diff --git a/app/components/InputSelect.tsx b/app/components/InputSelect.tsx index 6552c84b8a..30bccef00c 100644 --- a/app/components/InputSelect.tsx +++ b/app/components/InputSelect.tsx @@ -48,7 +48,8 @@ export type Props = Omit, "onChange"> & { options: Option[]; /** @deprecated Removing soon, do not use. */ note?: React.ReactNode; - onChange?: (value: string | null) => void; + /** Callback function that is called when the value changes. Return false to cancel the change. */ + onChange?: (value: string | null) => void | Promise; style?: React.CSSProperties; /** * Set to true if this component is rendered inside a Modal. @@ -165,9 +166,18 @@ const InputSelect = (props: Props, ref: React.RefObject) => { if (previousValue.current === select.selectedValue) { return; } + const previous = previousValue.current; previousValue.current = select.selectedValue; - onChange?.(select.selectedValue); + const response = onChange?.(select.selectedValue); + if (response && response instanceof Promise) { + void response.then((success) => { + if (success === false) { + select.selectedValue = previous; + select.setSelectedValue(previous); + } + }); + } }, [onChange, select.selectedValue]); React.useLayoutEffect(() => { diff --git a/app/components/PaginatedEventList.tsx b/app/components/PaginatedEventList.tsx index ebfbe5e8fc..c7a5bdc025 100644 --- a/app/components/PaginatedEventList.tsx +++ b/app/components/PaginatedEventList.tsx @@ -1,16 +1,13 @@ import * as React from "react"; import styled from "styled-components"; import Document from "~/models/Document"; -import Event from "~/models/Event"; import PaginatedList from "~/components/PaginatedList"; -import EventListItem from "./EventListItem"; +import EventListItem, { type Event } from "./EventListItem"; type Props = { - events: Event[]; + events: Event[]; document: Document; - fetch: ( - options: Record | undefined - ) => Promise[]>; + fetch: (options: Record | undefined) => Promise; options?: Record; heading?: React.ReactNode; empty?: React.ReactNode; @@ -32,13 +29,8 @@ const PaginatedEventList = React.memo(function PaginatedEventList({ heading={heading} fetch={fetch} options={options} - renderItem={(item: Event, index) => ( - + renderItem={(item: Event) => ( + )} renderHeading={(name) => {name}} {...rest} diff --git a/app/components/PaginatedList.tsx b/app/components/PaginatedList.tsx index 1784b2177f..ea7b9f86eb 100644 --- a/app/components/PaginatedList.tsx +++ b/app/components/PaginatedList.tsx @@ -60,7 +60,7 @@ class PaginatedList extends React.PureComponent< fetchCounter = 0; @observable - renderCount = 15; + renderCount = Pagination.defaultLimit; @observable offset = 0; @@ -108,13 +108,16 @@ class PaginatedList extends React.PureComponent< ...this.props.options, }); + if (this.offset !== 0) { + this.renderCount += limit; + } + if (results && (results.length === 0 || results.length < limit)) { this.allowLoadMore = false; } else { this.offset += limit; } - this.renderCount += limit; this.isFetchingInitial = false; } catch (err) { this.error = err; @@ -248,7 +251,9 @@ class PaginatedList extends React.PureComponent< }} {this.allowLoadMore && ( - +
+ +
)} ); diff --git a/app/components/Sharing/Collection/AccessControlList.tsx b/app/components/Sharing/Collection/AccessControlList.tsx index b5d20cf579..63cf62c5fe 100644 --- a/app/components/Sharing/Collection/AccessControlList.tsx +++ b/app/components/Sharing/Collection/AccessControlList.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import { UserIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; +import { toast } from "sonner"; import styled, { useTheme } from "styled-components"; import Squircle from "@shared/components/Squircle"; import { CollectionPermission } from "@shared/types"; @@ -167,18 +168,24 @@ export const AccessControlList = observer( | CollectionPermission | typeof EmptySelectValue ) => { - if (permission === EmptySelectValue) { - await groupMemberships.delete({ - collectionId: collection.id, - groupId: membership.groupId, - }); - } else { - await groupMemberships.create({ - collectionId: collection.id, - groupId: membership.groupId, - permission, - }); + try { + if (permission === EmptySelectValue) { + await groupMemberships.delete({ + collectionId: collection.id, + groupId: membership.groupId, + }); + } else { + await groupMemberships.create({ + collectionId: collection.id, + groupId: membership.groupId, + permission, + }); + } + } catch (err) { + toast.error(err.message); + return false; } + return true; }} disabled={!can.update} value={membership.permission} @@ -215,18 +222,24 @@ export const AccessControlList = observer( | CollectionPermission | typeof EmptySelectValue ) => { - if (permission === EmptySelectValue) { - await memberships.delete({ - collectionId: collection.id, - userId: membership.userId, - }); - } else { - await memberships.create({ - collectionId: collection.id, - userId: membership.userId, - permission, - }); + try { + if (permission === EmptySelectValue) { + await memberships.delete({ + collectionId: collection.id, + userId: membership.userId, + }); + } else { + await memberships.create({ + collectionId: collection.id, + userId: membership.userId, + permission, + }); + } + } catch (err) { + toast.error(err.message); + return false; } + return true; }} disabled={!can.update} value={membership.permission} diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index a517c42742..1f89d2210c 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -1,26 +1,25 @@ import { observer } from "mobx-react"; -import { DraftsIcon, SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; +import { SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; import * as React from "react"; import { DndProvider } from "react-dnd"; import { HTML5Backend } from "react-dnd-html5-backend"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; import { metaDisplay } from "@shared/utils/keyboard"; -import Flex from "~/components/Flex"; import Scrollable from "~/components/Scrollable"; -import Text from "~/components/Text"; import { inviteUser } from "~/actions/definitions/users"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import useCurrentUser from "~/hooks/useCurrentUser"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import OrganizationMenu from "~/menus/OrganizationMenu"; -import { homePath, draftsPath, searchPath } from "~/utils/routeHelpers"; +import { homePath, searchPath } from "~/utils/routeHelpers"; import TeamLogo from "../TeamLogo"; import Tooltip from "../Tooltip"; import Sidebar from "./Sidebar"; import ArchiveLink from "./components/ArchiveLink"; import Collections from "./components/Collections"; +import { DraftsLink } from "./components/DraftsLink"; import DragPlaceholder from "./components/DragPlaceholder"; import HistoryNavigation from "./components/HistoryNavigation"; import Section from "./components/Section"; @@ -107,24 +106,7 @@ function AppSidebar() { label={t("Search")} exact={false} /> - {can.createDocument && ( - } - label={ - - {t("Drafts")} - {documents.totalDrafts > 0 ? ( - - {documents.totalDrafts > 25 - ? "25+" - : documents.totalDrafts} - - ) : null} - - } - /> - )} + {can.createDocument && } @@ -158,8 +140,4 @@ const Overflow = styled.div` flex-shrink: 0; `; -const Drafts = styled(Text)` - margin: 0 4px; -`; - export default observer(AppSidebar); diff --git a/app/components/Sidebar/components/ArchiveLink.tsx b/app/components/Sidebar/components/ArchiveLink.tsx index 8315ebc83e..9f04d19b03 100644 --- a/app/components/Sidebar/components/ArchiveLink.tsx +++ b/app/components/Sidebar/components/ArchiveLink.tsx @@ -14,6 +14,7 @@ import { ArchivedCollectionLink } from "./ArchivedCollectionLink"; import { StyledError } from "./Collections"; import PlaceholderCollections from "./PlaceholderCollections"; import Relative from "./Relative"; +import SidebarContext from "./SidebarContext"; import SidebarLink from "./SidebarLink"; function ArchiveLink() { @@ -64,38 +65,40 @@ function ArchiveLink() { useDropToArchive(); return ( - -
- } - exact={false} - label={t("Archive")} - isActiveDrop={isOverArchiveSection && isDragging} - depth={0} - expanded={disclosure ? expanded : undefined} - onDisclosureClick={handleDisclosureClick} - onClick={handleClick} - /> -
- {expanded === true ? ( - - } - renderError={(props) => } - renderItem={(item: Collection) => ( - - )} + + +
+ } + exact={false} + label={t("Archive")} + isActiveDrop={isOverArchiveSection && isDragging} + depth={0} + expanded={disclosure ? expanded : undefined} + onDisclosureClick={handleDisclosureClick} + onClick={handleClick} /> - - ) : null} - +
+ {expanded === true ? ( + + } + renderError={(props) => } + renderItem={(item: Collection) => ( + + )} + /> + + ) : null} +
+
); } diff --git a/app/components/Sidebar/components/CollectionLink.tsx b/app/components/Sidebar/components/CollectionLink.tsx index 4c71b5b9f4..b8744f4a69 100644 --- a/app/components/Sidebar/components/CollectionLink.tsx +++ b/app/components/Sidebar/components/CollectionLink.tsx @@ -147,16 +147,18 @@ const CollectionLink: React.FC = ({ !isEditing && !isDraggingAnyCollection && ( - { - ev.preventDefault(); - setIsAddingNewChild(); - handleExpand(); - }} - > - - + {can.createDocument && ( + { + ev.preventDefault(); + setIsAddingNewChild(); + handleExpand(); + }} + > + + + )} { + const { t } = useTranslation(); + const { documents } = useStores(); + const [{ isOver, canDrop }, dropRef] = useDropToUnpublish(); + + return ( +
+ } + label={ + + {t("Drafts")} + {documents.totalDrafts > 0 ? ( + + {documents.totalDrafts > 25 ? "25+" : documents.totalDrafts} + + ) : null} + + } + isActiveDrop={isOver && canDrop} + /> +
+ ); +}); + +const Drafts = styled(Text)` + margin: 0 4px; +`; diff --git a/app/components/Sidebar/components/SidebarContext.ts b/app/components/Sidebar/components/SidebarContext.ts index 379d746d68..9970336349 100644 --- a/app/components/Sidebar/components/SidebarContext.ts +++ b/app/components/Sidebar/components/SidebarContext.ts @@ -5,6 +5,7 @@ import User from "~/models/User"; export type SidebarContextType = | "collections" | "shared" + | "archive" | `group-${string}` | `starred-${string}` | undefined; @@ -41,7 +42,7 @@ export const determineSidebarContext = ({ } if (document.collection) { - return "collections"; + return document.collection.isArchived ? "archive" : "collections"; } else if ( user.documentMemberships.find((m) => m.documentId === document.id) ) { diff --git a/app/components/Sidebar/hooks/useDragAndDrop.tsx b/app/components/Sidebar/hooks/useDragAndDrop.tsx index dcd51db121..4d1867c7ca 100644 --- a/app/components/Sidebar/hooks/useDragAndDrop.tsx +++ b/app/components/Sidebar/hooks/useDragAndDrop.tsx @@ -586,3 +586,45 @@ export function useDropToArchive() { }), }); } + +export function useDropToUnpublish() { + const { t } = useTranslation(); + const { policies, documents } = useStores(); + + return useDrop< + DragObject, + Promise, + { isOver: boolean; canDrop: boolean } + >({ + accept: "document", + drop: async (item) => { + const document = documents.get(item.id); + if (!document) { + return; + } + + try { + await document.unpublish({ detach: true }); + toast.success( + t("Unpublished {{ documentName }}", { + documentName: document.noun, + }) + ); + } catch (err) { + toast.error(err.message); + } + }, + canDrop: (item) => { + const policy = policies.abilities(item.id); + if (!policy) { + return true; // optimistic, let the server check for the necessary permission. + } + + return policy.unpublish; + }, + collect: (monitor) => ({ + isOver: monitor.isOver(), + canDrop: monitor.canDrop(), + }), + }); +} diff --git a/app/components/WebsocketProvider.tsx b/app/components/WebsocketProvider.tsx index 51907aec1a..2a34ad8342 100644 --- a/app/components/WebsocketProvider.tsx +++ b/app/components/WebsocketProvider.tsx @@ -225,6 +225,32 @@ class WebsocketProvider extends React.Component { }) ); + this.socket.on( + "documents.unpublish", + action( + (event: { + document: PartialExcept; + collectionId: string; + }) => { + const document = event.document; + + // When document is detached as part of unpublishing, only the owner should be able to view it. + if ( + !document.collectionId && + document.createdBy?.id !== currentUserId + ) { + documents.remove(document.id); + } else { + documents.add(document); + } + policies.remove(document.id); + + const collection = collections.get(event.collectionId); + collection?.removeDocument(document.id); + } + ) + ); + this.socket.on( "documents.archive", action((event: PartialExcept) => { diff --git a/app/editor/components/BlockMenu.tsx b/app/editor/components/BlockMenu.tsx index 8f50a0af55..58ed827908 100644 --- a/app/editor/components/BlockMenu.tsx +++ b/app/editor/components/BlockMenu.tsx @@ -1,6 +1,7 @@ import React from "react"; import useDictionary from "~/hooks/useDictionary"; import getMenuItems from "../menus/block"; +import { useEditor } from "./EditorContext"; import SuggestionsMenu, { Props as SuggestionsMenuProps, } from "./SuggestionsMenu"; @@ -11,6 +12,7 @@ type Props = Omit & function BlockMenu(props: Props) { const dictionary = useDictionary(); + const { elementRef } = useEditor(); return ( )} - items={getMenuItems(dictionary)} + items={getMenuItems(dictionary, elementRef)} /> ); } diff --git a/app/editor/extensions/PasteHandler.tsx b/app/editor/extensions/PasteHandler.tsx index e6a3323ca2..73c1c63400 100644 --- a/app/editor/extensions/PasteHandler.tsx +++ b/app/editor/extensions/PasteHandler.tsx @@ -25,52 +25,6 @@ import { isDocumentUrl, isUrl } from "@shared/utils/urls"; import stores from "~/stores"; import PasteMenu from "../components/PasteMenu"; -/** - * Checks if the HTML string is likely coming from Dropbox Paper. - * - * @param html The HTML string to check. - * @returns True if the HTML string is likely coming from Dropbox Paper. - */ -function isDropboxPaper(html: string): boolean { - return html?.includes("usually-unique-id"); -} - -function sliceSingleNode(slice: Slice) { - return slice.openStart === 0 && - slice.openEnd === 0 && - slice.content.childCount === 1 - ? slice.content.firstChild - : null; -} - -/** - * Parses the text contents of an HTML string and returns the src of the first - * iframe if it exists. - * - * @param text The HTML string to parse. - * @returns The src of the first iframe if it exists, or undefined. - */ -function parseSingleIframeSrc(html: string) { - try { - const parser = new DOMParser(); - const doc = parser.parseFromString(html, "text/html"); - - if ( - doc.body.children.length === 1 && - doc.body.firstElementChild?.tagName === "IFRAME" - ) { - const iframe = doc.body.firstElementChild; - const src = iframe.getAttribute("src"); - if (src) { - return src; - } - } - } catch (e) { - // Ignore the million ways parsing could fail. - } - return undefined; -} - export default class PasteHandler extends Extension { state: { open: boolean; @@ -261,9 +215,12 @@ export default class PasteHandler extends Extension { // If the text on the clipboard looks like Markdown OR there is no // html on the clipboard then try to parse content as Markdown if ( - (isMarkdown(text) && !isDropboxPaper(html)) || + (isMarkdown(text) && + !isDropboxPaper(html) && + !isContainingImage(html)) || pasteCodeLanguage === "markdown" || - this.shiftKey + this.shiftKey || + !html ) { event.preventDefault(); @@ -475,3 +432,59 @@ export default class PasteHandler extends Extension { /> ); } + +/** + * Checks if the HTML string is likely coming from Dropbox Paper. + * + * @param html The HTML string to check. + * @returns True if the HTML string is likely coming from Dropbox Paper. + */ +function isDropboxPaper(html: string): boolean { + return html?.includes("usually-unique-id"); +} + +/** + * Checks if the HTML string contains an image. + * + * @param html The HTML string to check. + * @returns True if the HTML string contains an image. + */ +function isContainingImage(html: string): boolean { + return html?.includes(" +): MenuItem[] { + const documentWidth = documentRef.current?.clientWidth ?? 0; + return [ { name: "heading", @@ -119,7 +124,11 @@ export default function blockMenuItems(dictionary: Dictionary): MenuItem[] { name: "table", title: dictionary.table, icon: , - attrs: { rowsCount: 3, colsCount: 3 }, + attrs: { + rowsCount: 3, + colsCount: 3, + colWidth: documentWidth / 3, + }, }, { name: "blockquote", diff --git a/app/hooks/usePinnedDocuments.ts b/app/hooks/usePinnedDocuments.ts index 54c59d382d..a88ed2c120 100644 --- a/app/hooks/usePinnedDocuments.ts +++ b/app/hooks/usePinnedDocuments.ts @@ -2,13 +2,14 @@ import * as React from "react"; import usePersistedState from "~/hooks/usePersistedState"; import useStores from "./useStores"; -export function usePinnedDocuments( - urlId: "home" | string, - collectionId?: string -) { +type UrlId = "home" | string; + +export const pinsCacheKey = (urlId: UrlId) => `pins-${urlId}`; + +export function usePinnedDocuments(urlId: UrlId, collectionId?: string) { const { pins } = useStores(); const [pinsCacheCount, setPinsCacheCount] = usePersistedState( - `pins-${urlId}`, + pinsCacheKey(urlId), 0 ); diff --git a/app/menus/DocumentMenu.tsx b/app/menus/DocumentMenu.tsx index 89d996b988..6e4d135c43 100644 --- a/app/menus/DocumentMenu.tsx +++ b/app/menus/DocumentMenu.tsx @@ -92,13 +92,13 @@ type MenuTriggerProps = { const MenuTrigger: React.FC = ({ label, onTrigger }) => { const { t } = useTranslation(); - const { subscriptions } = useStores(); + const { subscriptions, pins } = useStores(); const { model: document, menuState } = useMenuContext(); const { - loading: subscriptionsLoading, - loaded: subscriptionsLoaded, - request: loadSubscriptions, + loading: auxDataLoading, + loaded: auxDataLoaded, + request: auxDataRequest, } = useRequest(() => Promise.all([ subscriptions.fetchOne({ @@ -111,15 +111,19 @@ const MenuTrigger: React.FC = ({ label, onTrigger }) => { event: SubscriptionType.Document, }) : noop, + pins.fetchOne({ + documentId: document.id, + collectionId: document.collectionId ?? null, + }), ]) ); const handlePointerEnter = React.useCallback(() => { - if (!subscriptionsLoading && !subscriptionsLoaded) { - void loadSubscriptions(); + if (!auxDataLoading && !auxDataLoaded) { + void auxDataRequest(); void document.loadRelations(); } - }, [subscriptionsLoading, subscriptionsLoaded, loadSubscriptions, document]); + }, [auxDataLoading, auxDataLoaded, auxDataRequest, document]); return label ? ( this.store.restore(this, options); - unpublish = () => this.store.unpublish(this); + unpublish = ( + options: { detach?: boolean } = { + detach: false, + } + ) => this.store.unpublish(this, options); @action enableEmbeds = () => { @@ -461,12 +466,17 @@ export default class Document extends ArchivableModel implements Searchable { }; @action - pin = (collectionId?: string | null) => - this.store.rootStore.pins.create({ + pin = async (collectionId?: string | null) => { + const pin = new Pin({}, this.store.rootStore.pins); + + await pin.save({ documentId: this.id, ...(collectionId ? { collectionId } : {}), }); + return pin; + }; + @action unpin = (collectionId?: string) => { const pin = this.store.rootStore.pins.orderedData.find( diff --git a/app/models/Pin.ts b/app/models/Pin.ts index 1c27fdaa12..d57813fd5b 100644 --- a/app/models/Pin.ts +++ b/app/models/Pin.ts @@ -1,15 +1,19 @@ import { observable } from "mobx"; +import PinsStore from "~/stores/PinsStore"; +import { setPersistedState } from "~/hooks/usePersistedState"; +import { pinsCacheKey } from "~/hooks/usePinnedDocuments"; import Collection from "./Collection"; import Document from "./Document"; import Model from "./base/Model"; import Field from "./decorators/Field"; +import { AfterCreate, AfterDelete, AfterRemove } from "./decorators/Lifecycle"; import Relation from "./decorators/Relation"; class Pin extends Model { static modelName = "Pin"; /** The collection ID that the document is pinned to. If empty the document is pinned to home. */ - collectionId: string; + collectionId: string | null; /** The collection that the document is pinned to. If empty the document is pinned to home. */ @Relation(() => Collection, { onDelete: "cascade" }) @@ -26,6 +30,30 @@ class Pin extends Model { @observable @Field index: string; + + @AfterCreate + @AfterDelete + @AfterRemove + static updateCache(model: Pin) { + const pins = model.store as PinsStore; + + // Pinned to home + if (!model.collectionId) { + setPersistedState(pinsCacheKey("home"), pins.home.length); + return; + } + + // Pinned to collection + const collection = pins.rootStore.collections.get(model.collectionId); + if (!collection) { + return; + } + + setPersistedState( + pinsCacheKey(collection.urlId), + pins.inCollection(collection.id).length + ); + } } export default Pin; diff --git a/app/scenes/Collection/index.tsx b/app/scenes/Collection/index.tsx index 996d3df9d0..047921ac44 100644 --- a/app/scenes/Collection/index.tsx +++ b/app/scenes/Collection/index.tsx @@ -73,10 +73,13 @@ const CollectionScene = observer(function _CollectionScene() { const sidebarContext = useLocationSidebarContext(); const id = params.id || ""; + const urlId = id.split("-").pop() ?? ""; + const collection: Collection | null | undefined = collections.getByUrl(id) || collections.get(id); const can = usePolicy(collection); - const { pins, count } = usePinnedDocuments(id, collection?.id); + + const { pins, count } = usePinnedDocuments(urlId, collection?.id); const [collectionTab, setCollectionTab] = usePersistedState( `collection-tab:${collection?.id}`, collection?.hasDescription diff --git a/app/scenes/Document/components/DataLoader.tsx b/app/scenes/Document/components/DataLoader.tsx index 04a3975d41..fb7efe8ce5 100644 --- a/app/scenes/Document/components/DataLoader.tsx +++ b/app/scenes/Document/components/DataLoader.tsx @@ -183,7 +183,7 @@ function DataLoader({ match, children }: Props) { // Prevents unauthorized request to load share information for the document // when viewing a public share link - if (can.read && !document.isDeleted) { + if (can.read && !document.isDeleted && !revisionId) { if (team.getPreference(TeamPreference.Commenting)) { void comments.fetchAll({ documentId: document.id, @@ -199,7 +199,17 @@ function DataLoader({ match, children }: Props) { }); } } - }, [can.read, can.update, document, isEditRoute, comments, team, shares, ui]); + }, [ + can.read, + can.update, + document, + isEditRoute, + comments, + team, + shares, + ui, + revisionId, + ]); if (error) { return error instanceof OfflineError ? ( diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index fdcf8f1366..76651f147f 100644 --- a/app/scenes/Document/components/Document.tsx +++ b/app/scenes/Document/components/Document.tsx @@ -542,14 +542,6 @@ class DocumentScene extends React.Component { ) : ( <> - {showContents && ( - - - - )} { ) : null} + {showContents && ( + + + + )} )} diff --git a/app/scenes/Document/components/Header.tsx b/app/scenes/Document/components/Header.tsx index 841a21de6a..554ca2bbfa 100644 --- a/app/scenes/Document/components/Header.tsx +++ b/app/scenes/Document/components/Header.tsx @@ -281,15 +281,18 @@ function DocumentHeader({ limit={isCompact ? 3 : undefined} /> )} - {(isEditing || !user?.separateEditMode) && !isTemplate && isNew && ( - - - - )} + {(isEditing || !user?.separateEditMode) && + !isTemplate && + isNew && + can.update && ( + + + + )} {!isEditing && !isRevision && !isTemplate && can.update && ( diff --git a/app/scenes/Document/components/History.tsx b/app/scenes/Document/components/History.tsx index caf5a3d258..309d6bd009 100644 --- a/app/scenes/Document/components/History.tsx +++ b/app/scenes/Document/components/History.tsx @@ -1,12 +1,16 @@ +import orderBy from "lodash/orderBy"; import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { useHistory, useRouteMatch } from "react-router-dom"; import styled from "styled-components"; +import { Pagination } from "@shared/constants"; import { RevisionHelper } from "@shared/utils/RevisionHelper"; import Document from "~/models/Document"; -import Event from "~/models/Event"; +import EventModel from "~/models/Event"; +import Revision from "~/models/Revision"; import Empty from "~/components/Empty"; +import { DocumentEvent, type Event } from "~/components/EventListItem"; import PaginatedEventList from "~/components/PaginatedEventList"; import useKeyDown from "~/hooks/useKeyDown"; import { useLocationSidebarContext } from "~/hooks/useLocationSidebarContext"; @@ -14,21 +18,148 @@ import useStores from "~/hooks/useStores"; import { documentPath } from "~/utils/routeHelpers"; import Sidebar from "./SidebarLayout"; -const EMPTY_ARRAY: Event[] = []; +const DocumentEvents = [ + "documents.publish", + "documents.unpublish", + "documents.archive", + "documents.unarchive", + "documents.delete", + "documents.restore", + "documents.add_user", + "documents.remove_user", + "documents.move", +]; function History() { - const { events, documents } = useStores(); + const { events, documents, revisions } = useStores(); const { t } = useTranslation(); const match = useRouteMatch<{ documentSlug: string }>(); const history = useHistory(); const sidebarContext = useLocationSidebarContext(); const document = documents.getByUrl(match.params.documentSlug); - const eventsInDocument = document - ? events.filter({ documentId: document.id }) - : EMPTY_ARRAY; + const [, setForceRender] = React.useState(0); + const offset = React.useMemo(() => ({ revisions: 0, events: 0 }), []); - const onCloseHistory = () => { + const toEvent = React.useCallback( + (data: Revision | EventModel): Event => { + if (data instanceof Revision) { + return { + id: data.id, + name: "revisions.create", + actorId: data.createdBy.id, + createdAt: data.createdAt, + latest: false, + } satisfies Event; + } + + return { + id: data.id, + name: data.name as DocumentEvent["name"], + actorId: data.actorId, + userId: data.userId, + createdAt: data.createdAt, + } satisfies Event; + }, + [] + ); + + const fetchHistory = React.useCallback(async () => { + if (!document) { + return []; + } + + const [revisionsArr, eventsArr] = await Promise.all([ + revisions.fetchPage({ + documentId: document.id, + offset: offset.revisions, + limit: Pagination.defaultLimit, + }), + events.fetchPage({ + events: DocumentEvents, + documentId: document.id, + offset: offset.events, + limit: Pagination.defaultLimit, + }), + ]); + + const pageEvents = orderBy( + [...revisionsArr, ...eventsArr].map(toEvent), + "createdAt", + "desc" + ).slice(0, Pagination.defaultLimit); + + const revisionsCount = pageEvents.filter( + (event) => event.name === "revisions.create" + ).length; + + offset.revisions += revisionsCount; + offset.events += pageEvents.length - revisionsCount; + + // needed to re-render after mobx store and offset is updated + setForceRender((s) => ++s); + + return pageEvents; + }, [document, revisions, events, toEvent, offset]); + + const revisionEvents = React.useMemo(() => { + if (!document) { + return []; + } + + const latestRevisionId = RevisionHelper.latestId(document.id); + return revisions + .filter( + (revision: Revision) => + revision.id !== latestRevisionId && + revision.documentId === document.id + ) + .slice(0, offset.revisions) + .map(toEvent); + }, [document, revisions, offset.revisions, toEvent]); + + const nonRevisionEvents = React.useMemo( + () => + document + ? events + .filter({ documentId: document.id }) + .slice(0, offset.events) + .map(toEvent) + : [], + [document, events, offset.events, toEvent] + ); + + const mergedEvents = React.useMemo(() => { + const merged = orderBy( + [...revisionEvents, ...nonRevisionEvents], + "createdAt", + "desc" + ); + + const latestEvent = merged[0]; + + if (latestEvent && document) { + const latestRevisionEvent = merged.find( + (event) => event.name === "revisions.create" + ); + + if (latestEvent.createdAt !== document.updatedAt) { + merged.unshift({ + id: RevisionHelper.latestId(document.id), + name: "revisions.create", + createdAt: document.updatedAt, + actorId: document.updatedBy?.id ?? "", + latest: true, + }); + } else if (latestRevisionEvent) { + latestRevisionEvent.latest = true; + } + } + + return merged; + }, [document, revisionEvents, nonRevisionEvents]); + + const onCloseHistory = React.useCallback(() => { if (document) { history.push({ pathname: documentPath(document), @@ -37,30 +168,7 @@ function History() { } else { history.goBack(); } - }; - - const items = React.useMemo(() => { - if ( - eventsInDocument[0] && - document && - eventsInDocument[0].createdAt !== document.updatedAt - ) { - eventsInDocument.unshift( - new Event( - { - id: RevisionHelper.latestId(document.id), - name: "revisions.create", - documentId: document.id, - createdAt: document.updatedAt, - actor: document.updatedBy, - }, - events - ) - ); - } - - return eventsInDocument; - }, [eventsInDocument, events, document]); + }, [history, document, sidebarContext]); useKeyDown("Escape", onCloseHistory); @@ -69,11 +177,8 @@ function History() { {document ? ( {t("No history yet")}} /> diff --git a/app/scenes/Settings/Export.tsx b/app/scenes/Settings/Export.tsx index 112b2b12f7..ad1652f971 100644 --- a/app/scenes/Settings/Export.tsx +++ b/app/scenes/Settings/Export.tsx @@ -35,7 +35,7 @@ function Export() { {t("Export")} { ".md", ".doc", ".docx", + ".tsv", "text/csv", "text/markdown", "text/plain", @@ -343,18 +344,8 @@ export default class DocumentsStore extends Store { }; @action - fetchArchived = async (options?: PaginationParams): Promise => { - const archivedInResponse = await this.fetchNamedPage("archived", options); - const archivedInMemory = this.archived; - - archivedInMemory.forEach((docInMemory) => { - !archivedInResponse.find( - (docInResponse) => docInResponse.id === docInMemory.id - ) && this.remove(docInMemory.id); - }); - - return archivedInResponse; - }; + fetchArchived = async (options?: PaginationParams): Promise => + this.fetchNamedPage("archived", options); @action fetchDeleted = async (options?: PaginationParams): Promise => @@ -776,17 +767,30 @@ export default class DocumentsStore extends Store { }; @action - unpublish = async (document: Document) => { + unpublish = async ( + document: Document, + options: { detach?: boolean } = { + detach: false, + } + ) => { const res = await client.post("/documents.unpublish", { id: document.id, + ...options, }); runInAction("Document#unpublish", () => { invariant(res?.data, "Data should be available"); + // unpublishing could sometimes detach the document from the collection. + // so, get the collection id before data is updated. + const collectionId = document.collectionId; + document.updateData(res.data); this.addPolicies(res.policies); - const collection = this.getCollectionForDocument(document); - void collection?.fetchDocuments({ force: true }); + + if (collectionId) { + const collection = this.rootStore.collections.get(collectionId); + collection?.removeDocument(document.id); + } }); }; diff --git a/app/stores/PinsStore.ts b/app/stores/PinsStore.ts index b82a3d592f..b553a900ef 100644 --- a/app/stores/PinsStore.ts +++ b/app/stores/PinsStore.ts @@ -3,6 +3,7 @@ import { action, runInAction, computed } from "mobx"; import Pin from "~/models/Pin"; import { PaginationParams } from "~/types"; import { client } from "~/utils/ApiClient"; +import { AuthorizationError, NotFoundError } from "~/utils/errors"; import RootStore from "./RootStore"; import Store from "./base/Store"; @@ -13,6 +14,41 @@ export default class PinsStore extends Store { super(rootStore, Pin); } + @action + async fetchOne({ + documentId, + collectionId, + }: { + documentId: string; + collectionId: string | null; + }) { + const pin = this.orderedData.find( + (p) => p.documentId === documentId && p.collectionId === collectionId + ); + + if (pin) { + return pin; + } + + this.isFetching = true; + + try { + const res = await client.post(`/${this.apiEndpoint}.info`, { + documentId, + collectionId, + }); + invariant(res?.data, "Data should be available"); + return this.add(res.data); + } catch (err) { + if (err instanceof AuthorizationError || err instanceof NotFoundError) { + return; + } + throw err; + } finally { + this.isFetching = false; + } + } + @action fetchPage = async (params?: FetchParams | undefined): Promise => { this.isFetching = true; diff --git a/app/stores/RevisionsStore.ts b/app/stores/RevisionsStore.ts index 9e6f07eb21..cbf6768352 100644 --- a/app/stores/RevisionsStore.ts +++ b/app/stores/RevisionsStore.ts @@ -58,7 +58,7 @@ export default class RevisionsStore extends Store { @action fetchPage = async ( - options: PaginationParams | undefined + options: { documentId: string } & (PaginationParams | undefined) ): Promise => { this.isFetching = true; diff --git a/package.json b/package.json index 03c0a572eb..a7b74a28fc 100644 --- a/package.json +++ b/package.json @@ -48,17 +48,17 @@ "> 0.25%, not dead" ], "dependencies": { - "@aws-sdk/client-s3": "3.740.0", - "@aws-sdk/lib-storage": "3.740.0", - "@aws-sdk/s3-presigned-post": "3.740.0", - "@aws-sdk/s3-request-presigner": "3.740.0", - "@aws-sdk/signature-v4-crt": "^3.740.0", - "@babel/core": "^7.26.7", + "@aws-sdk/client-s3": "3.749.0", + "@aws-sdk/lib-storage": "3.749.0", + "@aws-sdk/s3-presigned-post": "3.749.0", + "@aws-sdk/s3-request-presigner": "3.749.0", + "@aws-sdk/signature-v4-crt": "^3.749.0", + "@babel/core": "^7.26.9", "@babel/plugin-proposal-decorators": "^7.25.9", "@babel/plugin-transform-class-properties": "^7.25.9", "@babel/plugin-transform-destructuring": "^7.25.9", "@babel/plugin-transform-regenerator": "^7.25.9", - "@babel/preset-env": "^7.26.7", + "@babel/preset-env": "^7.26.9", "@babel/preset-react": "^7.26.3", "@benrbray/prosemirror-math": "^0.2.2", "@bull-board/api": "^4.2.2", @@ -118,7 +118,7 @@ "fast-deep-equal": "^3.1.3", "fetch-retry": "^5.0.6", "fetch-with-proxy": "^3.0.1", - "form-data": "^4.0.1", + "form-data": "^4.0.2", "fractional-index": "^1.0.0", "framer-motion": "^4.1.17", "fs-extra": "^11.2.0", @@ -136,7 +136,7 @@ "jszip": "^3.10.1", "katex": "^0.16.21", "kbar": "0.1.0-beta.41", - "koa": "^2.15.3", + "koa": "^2.15.4", "koa-body": "^6.0.1", "koa-compress": "^5.1.1", "koa-helmet": "^6.1.0", @@ -201,7 +201,7 @@ "react-helmet-async": "^2.0.5", "react-hook-form": "^7.54.2", "react-i18next": "^12.3.1", - "react-medium-image-zoom": "5.2.10", + "react-medium-image-zoom": "5.2.13", "react-merge-refs": "^2.1.1", "react-portal": "^4.2.2", "react-router-dom": "^5.3.4", @@ -237,11 +237,12 @@ "tiny-cookie": "^2.5.1", "tmp": "^0.2.3", "turndown": "^7.2.0", + "ukkonen": "^2.1.0", "umzug": "^3.8.2", "utility-types": "^3.11.0", "uuid": "^8.3.2", "validator": "13.12.0", - "vite": "^5.4.12", + "vite": "^5.4.14", "vite-plugin-pwa": "^0.20.3", "winston": "^3.17.0", "ws": "^7.5.10", @@ -263,7 +264,7 @@ "@types/crypto-js": "^4.2.2", "@types/diff": "^5.0.9", "@types/dotenv": "^8.2.3", - "@types/emoji-regex": "^9.2.0", + "@types/emoji-regex": "^9.2.2", "@types/escape-html": "^1.0.4", "@types/express-useragent": "^1.0.5", "@types/formidable": "^2.0.6", @@ -333,7 +334,7 @@ "discord-api-types": "^0.37.102", "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", - "eslint-import-resolver-typescript": "^3.7.0", + "eslint-import-resolver-typescript": "^3.8.0", "eslint-plugin-es": "^4.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", @@ -369,5 +370,5 @@ "qs": "6.9.7", "rollup": "^4.5.1" }, - "version": "0.81.0" + "version": "0.82.0" } diff --git a/plugins/storage/server/api/files.test.ts b/plugins/storage/server/api/files.test.ts index 249e53cb61..47da255d07 100644 --- a/plugins/storage/server/api/files.test.ts +++ b/plugins/storage/server/api/files.test.ts @@ -236,7 +236,16 @@ describe("#files.get", () => { it("should succeed with status 200 ok when file is requested using signature", async () => { const user = await buildUser(); const fileName = "images.docx"; - const key = path.join("uploads", user.id, uuidV4(), fileName); + const { key } = await buildAttachment( + { + teamId: user.teamId, + userId: user.id, + contentType: + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + acl: "private", + }, + fileName + ); const signedUrl = await FileStorage.getSignedUrl(key); ensureDirSync( @@ -262,6 +271,13 @@ describe("#files.get", () => { it("should succeed with status 200 ok when avatar is requested using key", async () => { const user = await buildUser(); const key = path.join("avatars", user.id, uuidV4()); + await buildAttachment({ + key, + teamId: user.teamId, + userId: user.id, + contentType: "image/jpg", + acl: "public-read", + }); ensureDirSync( path.dirname(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key)) @@ -274,7 +290,7 @@ describe("#files.get", () => { const res = await server.get(`/api/files.get?key=${key}`); expect(res.status).toEqual(200); - expect(res.headers.get("Content-Type")).toEqual("application/octet-stream"); + expect(res.headers.get("Content-Type")).toEqual("image/jpg"); expect(res.headers.get("Content-Disposition")).toEqual("attachment"); }); }); diff --git a/plugins/storage/server/api/files.ts b/plugins/storage/server/api/files.ts index 904f8c236e..98f29252e6 100644 --- a/plugins/storage/server/api/files.ts +++ b/plugins/storage/server/api/files.ts @@ -77,19 +77,20 @@ router.get( const { isPublicBucket, fileName } = AttachmentHelper.parseKey(key); const skipAuthorize = isPublicBucket || isSignedRequest; const cacheHeader = "max-age=604800, immutable"; - let contentType = + + const attachment = await Attachment.findOne({ + where: { key }, + rejectOnEmpty: true, + }); + if (!skipAuthorize) { + authorize(actor, "read", attachment); + } + + const contentType = + attachment.contentType || (fileName ? mime.lookup(fileName) : undefined) || "application/octet-stream"; - if (!skipAuthorize) { - const attachment = await Attachment.findOne({ - where: { key }, - rejectOnEmpty: true, - }); - authorize(actor, "read", attachment); - contentType = attachment.contentType; - } - ctx.set("Accept-Ranges", "bytes"); ctx.set("Cache-Control", cacheHeader); ctx.set("Content-Type", contentType); diff --git a/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts b/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts index 13f4cf741f..46657afbd3 100644 --- a/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts +++ b/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts @@ -10,7 +10,7 @@ import BaseTask, { type Props = Record; export default class CleanupWebhookDeliveriesTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Day; public async perform() { Logger.info("task", `Deleting WebhookDeliveries older than one week…`); diff --git a/server/commands/pinCreator.ts b/server/commands/pinCreator.ts index 6c5adeb04a..b7e8039a57 100644 --- a/server/commands/pinCreator.ts +++ b/server/commands/pinCreator.ts @@ -62,12 +62,13 @@ export default async function pinCreator({ index = fractionalIndex(pins.length ? pins[0].index : null, null); } - const pin = await Pin.createWithCtx(ctx, { - createdById: user.id, - teamId: user.teamId, - collectionId, - documentId, - index, + const [pin] = await Pin.findOrCreateWithCtx(ctx, { + where: { + collectionId: collectionId ?? null, + documentId, + teamId: user.teamId, + }, + defaults: { index, createdById: user.id }, }); return pin; diff --git a/server/emails/templates/ConfirmUserDeleteEmail.tsx b/server/emails/templates/ConfirmUserDeleteEmail.tsx index d0e9444341..882484ade6 100644 --- a/server/emails/templates/ConfirmUserDeleteEmail.tsx +++ b/server/emails/templates/ConfirmUserDeleteEmail.tsx @@ -11,6 +11,8 @@ import Heading from "./components/Heading"; type Props = EmailProps & { deleteConfirmationCode: string; + teamName: string; + teamUrl: string; }; /** @@ -29,15 +31,15 @@ export default class ConfirmUserDeleteEmail extends BaseEmail { return `Your requested account deletion code`; } - protected renderAsText({ deleteConfirmationCode }: Props): string { + protected renderAsText({ teamName, deleteConfirmationCode }: Props): string { return ` -You requested to permanently delete your ${env.APP_NAME} account. Please enter the code below to confirm your account deletion. +You requested to permanently delete your ${env.APP_NAME} user account in the ${teamName} workspace. Please enter the code below to confirm your account deletion. Code: ${deleteConfirmationCode} `; } - protected render({ deleteConfirmationCode }: Props) { + protected render({ teamUrl, teamName, deleteConfirmationCode }: Props) { return (
@@ -45,8 +47,9 @@ Code: ${deleteConfirmationCode} Your account deletion request

- You requested to permanently delete your {env.APP_NAME} account. - Please enter the code below to confirm your account deletion. + You requested to permanently delete your {env.APP_NAME} user account + in the {teamName} workspace. Please enter the + code below to confirm your account deletion.

diff --git a/server/migrations/20250217012609-document-title-index.js b/server/migrations/20250217012609-document-title-index.js new file mode 100644 index 0000000000..082b681b65 --- /dev/null +++ b/server/migrations/20250217012609-document-title-index.js @@ -0,0 +1,19 @@ +'use strict'; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { +async up (queryInterface) { + await queryInterface.sequelize.query( + `CREATE EXTENSION IF NOT EXISTS "pg_trgm";`, + ); + await queryInterface.sequelize.query( + `CREATE INDEX CONCURRENTLY documents_title_idx ON documents USING GIN (title gin_trgm_ops);`, + ); + }, + + async down (queryInterface) { + await queryInterface.sequelize.query( + `DROP INDEX CONCURRENTLY documents_title_idx;`, + ); + } +}; diff --git a/server/migrations/20250217230810-add-team-previous-subdomains.js b/server/migrations/20250217230810-add-team-previous-subdomains.js new file mode 100644 index 0000000000..898348bc66 --- /dev/null +++ b/server/migrations/20250217230810-add-team-previous-subdomains.js @@ -0,0 +1,27 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.sequelize.transaction(async transaction => { + await queryInterface.addColumn("teams", "previousSubdomains", { + type: Sequelize.ARRAY(Sequelize.STRING), + allowNull: true, + }, { transaction }); + await queryInterface.sequelize.query( + `CREATE INDEX teams_previous_subdomains ON teams USING GIN ("previousSubdomains");`, + { transaction } + ); + }); + }, + + async down(queryInterface) { + await queryInterface.sequelize.transaction(async transaction => { + await queryInterface.sequelize.query( + `DROP INDEX teams_previous_subdomains;`, + { transaction } + ); + await queryInterface.removeColumn("teams", "previousSubdomains", { transaction }); + }); + }, +}; diff --git a/server/models/ApiKey.test.ts b/server/models/ApiKey.test.ts index e783bcd169..ea2b4de895 100644 --- a/server/models/ApiKey.test.ts +++ b/server/models/ApiKey.test.ts @@ -46,6 +46,15 @@ describe("#ApiKey", () => { }); describe("canAccess", () => { + it("should account for query string", async () => { + const apiKey = await buildApiKey({ + name: "Dev", + scope: ["/api/documents.info"], + }); + + expect(apiKey.canAccess("/api/documents.info?foo=bar")).toBe(true); + }); + it("should return true for all resources if no scope", async () => { const apiKey = await buildApiKey({ name: "Dev", diff --git a/server/models/ApiKey.ts b/server/models/ApiKey.ts index e9ab31c183..f52079087f 100644 --- a/server/models/ApiKey.ts +++ b/server/models/ApiKey.ts @@ -174,6 +174,9 @@ class ApiKey extends ParanoidModel< return true; } + // strip any query string from the path + path = path.split("?")[0]; + const resource = path.split("/").pop() ?? ""; const [namespace, method] = resource.split("."); diff --git a/server/models/Document.ts b/server/models/Document.ts index 144711b879..4eef7eb6d0 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -981,7 +981,13 @@ class Document extends ArchivableModel< return false; }; - unpublish = async (user: User) => { + /** + * + * @param user User who is performing the action + * @param options.detach Whether to detach the document from the containing collection + * @returns Updated document + */ + unpublish = async (user: User, options: { detach: boolean }) => { // If the document is already a draft then calling unpublish should act like save if (!this.publishedAt) { return this.save(); @@ -1010,6 +1016,11 @@ class Document extends ArchivableModel< this.createdBy = user; this.updatedBy = user; this.publishedAt = null; + + if (options.detach) { + this.collectionId = null; + } + return this.save(); }; diff --git a/server/models/GroupMembership.ts b/server/models/GroupMembership.ts index bf96bbecc9..24c7ac3b9b 100644 --- a/server/models/GroupMembership.ts +++ b/server/models/GroupMembership.ts @@ -19,13 +19,17 @@ import { AfterCreate, AfterUpdate, AfterDestroy, + BeforeDestroy, + BeforeUpdate, } from "sequelize-typescript"; import { CollectionPermission, DocumentPermission } from "@shared/types"; +import { ValidationError } from "@server/errors"; import { APIContext } from "@server/types"; import Collection from "./Collection"; import Document from "./Document"; import Group from "./Group"; import User from "./User"; +import UserMembership from "./UserMembership"; import { type HookContext } from "./base/Model"; import ParanoidModel from "./base/ParanoidModel"; import Fix from "./decorators/Fix"; @@ -247,6 +251,36 @@ class GroupMembership extends ParanoidModel< } } + @BeforeUpdate + static async checkLastAdminBeforeUpdate( + model: GroupMembership, + ctx: APIContext["context"] + ) { + if ( + model.permission === CollectionPermission.Admin || + model.previous("permission") !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + + @BeforeDestroy + static async checkLastAdminBeforeDestroy( + model: GroupMembership, + ctx: APIContext["context"] + ) { + // Only check for last admin permission if this permission is admin + if ( + model.permission !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + @AfterUpdate static async publishAddGroupEventAfterUpdate( model: GroupMembership, @@ -366,6 +400,34 @@ class GroupMembership extends ParanoidModel< await Document.insertEvent(name, this, hookContext); } } + + private static async validateLastAdminPermission( + model: GroupMembership, + { transaction }: APIContext["context"] + ) { + const [userMemberships, groupMemberships] = await Promise.all([ + UserMembership.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + this.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + ]); + + if (userMemberships === 0 && groupMemberships === 1) { + throw ValidationError( + "At least one user or group must have manage permissions" + ); + } + } } export default GroupMembership; diff --git a/server/models/Team.test.ts b/server/models/Team.test.ts index 5c5194752b..25665bea59 100644 --- a/server/models/Team.test.ts +++ b/server/models/Team.test.ts @@ -1,20 +1,43 @@ import { buildTeam, buildCollection } from "@server/test/factories"; -describe("collectionIds", () => { - it("should return non-private collection ids", async () => { - const team = await buildTeam(); - const collection = await buildCollection({ - teamId: team.id, +describe("Team", () => { + describe("collectionIds", () => { + it("should return non-private collection ids", async () => { + const team = await buildTeam(); + const collection = await buildCollection({ + teamId: team.id, + }); + // build a collection in another team + await buildCollection(); + // build a private collection + await buildCollection({ + teamId: team.id, + permission: null, + }); + const response = await team.collectionIds(); + expect(response.length).toEqual(1); + expect(response[0]).toEqual(collection.id); }); - // build a collection in another team - await buildCollection(); - // build a private collection - await buildCollection({ - teamId: team.id, - permission: null, + }); + + describe("previousSubdomains", () => { + it("should list the previous subdomains", async () => { + const team = await buildTeam({ + subdomain: "example", + }); + const subdomain = "updated"; + + await team.update({ subdomain }); + expect(team.subdomain).toEqual(subdomain); + expect(team.previousSubdomains?.length).toEqual(1); + expect(team.previousSubdomains?.[0]).toEqual("example"); + + const subdomain2 = "another"; + await team.update({ subdomain: subdomain2 }); + expect(team.subdomain).toEqual(subdomain2); + expect(team.previousSubdomains?.length).toEqual(2); + expect(team.previousSubdomains?.[0]).toEqual("example"); + expect(team.previousSubdomains?.[1]).toEqual(subdomain); }); - const response = await team.collectionIds(); - expect(response.length).toEqual(1); - expect(response[0]).toEqual(collection.id); }); }); diff --git a/server/models/Team.ts b/server/models/Team.ts index 43e052f840..2bf5d4c738 100644 --- a/server/models/Team.ts +++ b/server/models/Team.ts @@ -171,6 +171,9 @@ class Team extends ParanoidModel< @Column lastActiveAt: Date | null; + @Column(DataType.ARRAY(DataType.STRING)) + previousSubdomains: string[] | null; + // getters /** @@ -369,6 +372,25 @@ class Team extends ParanoidModel< return model; } + @BeforeUpdate + static async savePreviousSubdomain(model: Team) { + const previousSubdomain = model.previous("subdomain"); + if (previousSubdomain && previousSubdomain !== model.subdomain) { + model.previousSubdomains = model.previousSubdomains || []; + + if (!model.previousSubdomains.includes(previousSubdomain)) { + // Add the previous subdomain to the list of previous subdomains + // upto a maximum of 3 previous subdomains + model.previousSubdomains.push(previousSubdomain); + if (model.previousSubdomains.length > 3) { + model.previousSubdomains.shift(); + } + } + } + + return model; + } + @AfterUpdate static deletePreviousAvatar = async (model: Team) => { const previousAvatarUrl = model.previous("avatarUrl"); @@ -393,6 +415,41 @@ class Team extends ParanoidModel< } } }; + + /** + * Find a team by its current or previous subdomain. + * + * @param subdomain - The subdomain to search for. + * @returns The team with the given or previous subdomain, or null if not found. + */ + static async findBySubdomain(subdomain: string) { + // Preference is always given to the team with the subdomain currently + // otherwise we can try and find a team that previously used the subdomain. + return ( + (await this.findOne({ + where: { + subdomain, + }, + })) || (await this.findByPreviousSubdomain(subdomain)) + ); + } + + /** + * Find a team by its previous subdomain. + * + * @param previousSubdomain - The previous subdomain to search for. + * @returns The team with the given previous subdomain, or null if not found. + */ + static async findByPreviousSubdomain(previousSubdomain: string) { + return this.findOne({ + where: { + previousSubdomains: { + [Op.contains]: [previousSubdomain], + }, + }, + order: [["updatedAt", "DESC"]], + }); + } } export default Team; diff --git a/server/models/TeamDomain.test.ts b/server/models/TeamDomain.test.ts index b9c9b51e26..41610a0295 100644 --- a/server/models/TeamDomain.test.ts +++ b/server/models/TeamDomain.test.ts @@ -1,7 +1,7 @@ import { buildAdmin, buildTeam } from "@server/test/factories"; import TeamDomain from "./TeamDomain"; -describe("team domain model", () => { +describe("TeamDomain", () => { describe("create", () => { it("should allow creation of domains", async () => { const team = await buildTeam(); diff --git a/server/models/UserMembership.ts b/server/models/UserMembership.ts index bb385445b7..ceb1501d61 100644 --- a/server/models/UserMembership.ts +++ b/server/models/UserMembership.ts @@ -19,11 +19,15 @@ import { AfterUpdate, Length, AfterDestroy, + BeforeDestroy, + BeforeUpdate, } from "sequelize-typescript"; import { CollectionPermission, DocumentPermission } from "@shared/types"; +import { ValidationError } from "@server/errors"; import { APIContext } from "@server/types"; import Collection from "./Collection"; import Document from "./Document"; +import GroupMembership from "./GroupMembership"; import User from "./User"; import IdModel from "./base/IdModel"; import { HookContext } from "./base/Model"; @@ -249,6 +253,36 @@ class UserMembership extends IdModel< } } + @BeforeUpdate + static async checkLastAdminBeforeUpdate( + model: UserMembership, + ctx: APIContext["context"] + ) { + if ( + model.permission === CollectionPermission.Admin || + model.previous("permission") !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + + @BeforeDestroy + static async checkLastAdminBeforeDestroy( + model: UserMembership, + ctx: APIContext["context"] + ) { + // Only check for last admin permission if this permission is admin + if ( + model.permission !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + @AfterUpdate static async publishAddUserEventAfterUpdate( model: UserMembership, @@ -346,6 +380,34 @@ class UserMembership extends IdModel< await Document.insertEvent(name, this, hookContext); } } + + private static async validateLastAdminPermission( + model: UserMembership, + { transaction }: APIContext["context"] + ) { + const [userMemberships, groupMemberships] = await Promise.all([ + this.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + GroupMembership.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + ]); + + if (userMemberships === 1 && groupMemberships === 0) { + throw ValidationError( + "At least one user or group must have manage permissions" + ); + } + } } export default UserMembership; diff --git a/server/models/base/Model.test.ts b/server/models/base/Model.test.ts index acbdd1ba83..884e9f88b8 100644 --- a/server/models/base/Model.test.ts +++ b/server/models/base/Model.test.ts @@ -74,5 +74,27 @@ describe("Model", () => { expect(usersBatch[0].length).toEqual(100); expect(usersBatch[1].length).toEqual(5); }); + + it("should return data in batches with total limit", async () => { + const team = await buildTeam(); + await User.bulkCreate( + [...Array(10)].map(() => ({ + email: faker.internet.email().toLowerCase(), + name: faker.person.fullName(), + teamId: team.id, + })) + ); + + const usersBatch: User[][] = []; + + await User.findAllInBatches( + { where: { teamId: team.id }, batchLimit: 2, totalLimit: 4 }, + async (foundUsers) => void usersBatch.push(foundUsers) + ); + + expect(usersBatch.length).toEqual(2); + expect(usersBatch[0].length).toEqual(2); + expect(usersBatch[1].length).toEqual(2); + }); }); }); diff --git a/server/models/base/Model.ts b/server/models/base/Model.ts index f47dffd149..e27c416f85 100644 --- a/server/models/base/Model.ts +++ b/server/models/base/Model.ts @@ -282,7 +282,10 @@ class Model< * @param callback The function to call for each batch of results */ static async findAllInBatches( - query: Replace, "limit", "batchLimit">, + query: Replace, "limit", "batchLimit"> & { + /** The maximum number of results to return, after which the query will stop. */ + totalLimit?: number; + }, callback: (results: Array, query: FindOptions) => Promise ) { const mappedQuery = { @@ -298,7 +301,10 @@ class Model< results = await this.findAll(mappedQuery); await callback(results, mappedQuery); mappedQuery.offset += mappedQuery.limit; - } while (results.length >= mappedQuery.limit); + } while ( + results.length >= mappedQuery.limit && + (mappedQuery.totalLimit ?? Infinity) > mappedQuery.offset + ); } /** diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index 0809cdd6ff..610cbc6976 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -1,5 +1,6 @@ import { JSDOM } from "jsdom"; import { Node } from "prosemirror-model"; +import ukkonen from "ukkonen"; import { updateYFragment, yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import textBetween from "@shared/editor/lib/textBetween"; @@ -478,25 +479,26 @@ export class DocumentHelper { } /** - * Compares two documents and returns true if the text content is equal. This does not take into account - * changes to other properties such as table column widths, other visual settings. + * Compares two documents or revisions and returns whether the text differs by more than the threshold. * * @param document The document to compare * @param other The other document to compare - * @returns True if the text content is equal + * @param threshold The threshold for the change in characters + * @returns True if the text differs by more than the threshold */ - public static isTextContentEqual( + public static isChangeOverThreshold( before: Document | Revision | null, - after: Document | Revision | null + after: Document | Revision | null, + threshold: number ) { if (!before || !after) { return false; } - return ( - before.title === after.title && - this.toMarkdown(before) === this.toMarkdown(after) - ); + const first = before.title + this.toPlainText(before); + const second = after.title + this.toPlainText(after); + const distance = ukkonen(first, second, threshold + 1); + return distance > threshold; } private static textSerializers = getTextSerializers(schema); diff --git a/server/models/helpers/SearchHelper.test.ts b/server/models/helpers/SearchHelper.test.ts index aa5323e878..03dc311a3a 100644 --- a/server/models/helpers/SearchHelper.test.ts +++ b/server/models/helpers/SearchHelper.test.ts @@ -877,7 +877,7 @@ describe("SearchHelper", () => { "this&is&a&test:*" ); }); - test("should now wildcard quoted queries", () => { + test("should not wildcard quoted queries", () => { expect(SearchHelper.webSearchQuery(`"this is a test"`)).toBe( `"this<->is<->a<->test"` ); diff --git a/server/models/helpers/SearchHelper.ts b/server/models/helpers/SearchHelper.ts index c63e966f6c..28a393696b 100644 --- a/server/models/helpers/SearchHelper.ts +++ b/server/models/helpers/SearchHelper.ts @@ -470,7 +470,7 @@ export default class SearchHelper { const likelyUrls = getUrls(options.query); // remove likely urls, and escape the rest of the query. - const limitedQuery = this.escapeQuery( + let limitedQuery = this.escapeQuery( likelyUrls .reduce((q, url) => q.replace(url, ""), options.query) .slice(0, this.maxQueryLength) @@ -482,6 +482,9 @@ export default class SearchHelper { (match) => match[1] ); + // remove quoted queries from the limited query + limitedQuery = limitedQuery.replace(/"([^"]*)"/g, ""); + const iLikeQueries = [...quotedQueries, ...likelyUrls].slice(0, 3); for (const match of iLikeQueries) { diff --git a/server/queues/processors/WebsocketsProcessor.ts b/server/queues/processors/WebsocketsProcessor.ts index a3d261674b..75c49f37e9 100644 --- a/server/queues/processors/WebsocketsProcessor.ts +++ b/server/queues/processors/WebsocketsProcessor.ts @@ -42,7 +42,6 @@ export default class WebsocketsProcessor { switch (event.name) { case "documents.create": case "documents.publish": - case "documents.unpublish": case "documents.restore": { const document = await Document.findByPk(event.documentId, { paranoid: false, @@ -73,6 +72,28 @@ export default class WebsocketsProcessor { }); } + case "documents.unpublish": { + const document = await Document.findByPk(event.documentId, { + paranoid: false, + }); + + if (!document) { + return; + } + + const documentToPresent = await presentDocument(undefined, document); + + const channels = await this.getDocumentEventChannels(event, document); + + // We need to add the collection channel to let the members update the doc structure. + channels.push(`collection-${event.collectionId}`); + + return socketio.to(channels).emit(event.name, { + document: documentToPresent, + collectionId: event.collectionId, + }); + } + case "documents.unarchive": { const [document, srcCollection] = await Promise.all([ Document.findByPk(event.documentId, { paranoid: false }), diff --git a/server/queues/tasks/BaseTask.ts b/server/queues/tasks/BaseTask.ts index 4bd34fd2f7..e212d83730 100644 --- a/server/queues/tasks/BaseTask.ts +++ b/server/queues/tasks/BaseTask.ts @@ -9,8 +9,9 @@ export enum TaskPriority { } export enum TaskSchedule { - Daily = "daily", - Hourly = "hourly", + Day = "daily", + Hour = "hourly", + Minute = "minute", } export default abstract class BaseTask> { diff --git a/server/queues/tasks/CleanupDeletedDocumentsTask.ts b/server/queues/tasks/CleanupDeletedDocumentsTask.ts index 4c04095381..71646ba644 100644 --- a/server/queues/tasks/CleanupDeletedDocumentsTask.ts +++ b/server/queues/tasks/CleanupDeletedDocumentsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class CleanupDeletedDocumentsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info( diff --git a/server/queues/tasks/CleanupDeletedTeamsTask.ts b/server/queues/tasks/CleanupDeletedTeamsTask.ts index 403ee684db..daaa9d4ab6 100644 --- a/server/queues/tasks/CleanupDeletedTeamsTask.ts +++ b/server/queues/tasks/CleanupDeletedTeamsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class CleanupDeletedTeamsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info( diff --git a/server/queues/tasks/CleanupExpiredAttachmentsTask.ts b/server/queues/tasks/CleanupExpiredAttachmentsTask.ts index a5596666d3..195f511724 100644 --- a/server/queues/tasks/CleanupExpiredAttachmentsTask.ts +++ b/server/queues/tasks/CleanupExpiredAttachmentsTask.ts @@ -8,7 +8,7 @@ type Props = { }; export default class CleanupExpiredAttachmentsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info("task", `Deleting expired attachments…`); diff --git a/server/queues/tasks/CleanupExpiredFileOperationsTask.ts b/server/queues/tasks/CleanupExpiredFileOperationsTask.ts index 2a405d275a..4e3e79b1fa 100644 --- a/server/queues/tasks/CleanupExpiredFileOperationsTask.ts +++ b/server/queues/tasks/CleanupExpiredFileOperationsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class CleanupExpiredFileOperationsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info("task", `Expiring file operations older than 15 days…`); diff --git a/server/queues/tasks/CleanupOldEventsTask.ts b/server/queues/tasks/CleanupOldEventsTask.ts new file mode 100644 index 0000000000..6d1189f7e4 --- /dev/null +++ b/server/queues/tasks/CleanupOldEventsTask.ts @@ -0,0 +1,60 @@ +import { subDays } from "date-fns"; +import { Op } from "sequelize"; +import Logger from "@server/logging/Logger"; +import { Event } from "@server/models"; +import BaseTask, { + TaskPriority, + TaskSchedule, +} from "@server/queues/tasks/BaseTask"; + +type Props = Record; + +export default class CleanupOldEventsTask extends BaseTask { + static cron = TaskSchedule.Hour; + + public async perform() { + // TODO: Hardcoded right now, configurable later + const retentionDays = 365; + const cutoffDate = subDays(new Date(), retentionDays); + const maxEventsPerTask = 100000; + let totalEventsDeleted = 0; + + try { + await Event.findAllInBatches( + { + attributes: ["id"], + where: { + createdAt: { + [Op.lt]: cutoffDate, + }, + }, + batchLimit: 1000, + totalLimit: maxEventsPerTask, + order: [["createdAt", "ASC"]], + }, + async (events) => { + totalEventsDeleted += await Event.destroy({ + where: { + id: { + [Op.in]: events.map((event) => event.id), + }, + }, + }); + } + ); + } finally { + if (totalEventsDeleted > 0) { + Logger.info("task", `Deleted old events`, { + totalEventsDeleted, + }); + } + } + } + + public get options() { + return { + attempts: 1, + priority: TaskPriority.Background, + }; + } +} diff --git a/server/queues/tasks/CleanupOldNotificationsTask.ts b/server/queues/tasks/CleanupOldNotificationsTask.ts index 752f73de66..5a4624f528 100644 --- a/server/queues/tasks/CleanupOldNotificationsTask.ts +++ b/server/queues/tasks/CleanupOldNotificationsTask.ts @@ -7,7 +7,7 @@ import BaseTask, { TaskPriority, TaskSchedule } from "./BaseTask"; type Props = Record; export default class CleanupOldNotificationsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform() { Logger.info("task", `Permanently destroying old notifications…`); diff --git a/server/queues/tasks/ErrorTimedOutFileOperationsTask.ts b/server/queues/tasks/ErrorTimedOutFileOperationsTask.ts index bc5f44eb4e..c5e99e33c0 100644 --- a/server/queues/tasks/ErrorTimedOutFileOperationsTask.ts +++ b/server/queues/tasks/ErrorTimedOutFileOperationsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class ErrorTimedOutFileOperationsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info("task", `Error file operations running longer than 12 hours…`); diff --git a/server/queues/tasks/ImportMarkdownZipTask.ts b/server/queues/tasks/ImportMarkdownZipTask.ts index 23c72eab0f..8155decd6e 100644 --- a/server/queues/tasks/ImportMarkdownZipTask.ts +++ b/server/queues/tasks/ImportMarkdownZipTask.ts @@ -176,7 +176,7 @@ export default class ImportMarkdownZipTask extends ImportTask { document.text = document.text .replace(new RegExp(escapeRegExp(encodedPath), "g"), reference) .replace( - new RegExp(`\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"), + new RegExp(`\\\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"), reference ); } diff --git a/server/queues/tasks/InviteReminderTask.ts b/server/queues/tasks/InviteReminderTask.ts index 3e1d238d31..be559c777f 100644 --- a/server/queues/tasks/InviteReminderTask.ts +++ b/server/queues/tasks/InviteReminderTask.ts @@ -9,7 +9,7 @@ import BaseTask, { TaskPriority, TaskSchedule } from "./BaseTask"; type Props = Record; export default class InviteReminderTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Day; public async perform() { const users = await User.scope("invited").findAll({ diff --git a/server/queues/tasks/RevisionCreatedNotificationsTask.ts b/server/queues/tasks/RevisionCreatedNotificationsTask.ts index d357c29d83..bf04767651 100644 --- a/server/queues/tasks/RevisionCreatedNotificationsTask.ts +++ b/server/queues/tasks/RevisionCreatedNotificationsTask.ts @@ -28,10 +28,10 @@ export default class RevisionCreatedNotificationsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Day; public async perform({ limit }: Props) { Logger.info( diff --git a/server/routes/api/attachments/attachments.ts b/server/routes/api/attachments/attachments.ts index d2288c2151..120052231b 100644 --- a/server/routes/api/attachments/attachments.ts +++ b/server/routes/api/attachments/attachments.ts @@ -176,6 +176,8 @@ router.post( throw InvalidRequestError(response.error); } + await attachment.reload(); + ctx.body = { data: presentAttachment(attachment), }; diff --git a/server/routes/api/collections/schema.ts b/server/routes/api/collections/schema.ts index 0d807dc1ca..216b42b2de 100644 --- a/server/routes/api/collections/schema.ts +++ b/server/routes/api/collections/schema.ts @@ -6,13 +6,13 @@ import { FileOperationFormat, } from "@shared/types"; import { Collection } from "@server/models"; -import { zodIconType } from "@server/utils/zod"; +import { zodIconType, zodIdType } from "@server/utils/zod"; import { ValidateColor, ValidateIndex } from "@server/validation"; import { BaseSchema, ProsemirrorSchema } from "../schema"; const BaseIdSchema = z.object({ /** Id of the collection to be updated */ - id: z.string(), + id: zodIdType(), }); export const CollectionsCreateSchema = BaseSchema.extend({ diff --git a/server/routes/api/comments/schema.ts b/server/routes/api/comments/schema.ts index 774f07292b..e8a05054cb 100644 --- a/server/routes/api/comments/schema.ts +++ b/server/routes/api/comments/schema.ts @@ -28,7 +28,7 @@ export const CommentsCreateSchema = BaseSchema.extend({ id: z.string().uuid().optional(), /** Create comment for this document */ - documentId: z.string(), + documentId: z.string().uuid(), /** Create comment under this parent */ parentCommentId: z.string().uuid().optional(), diff --git a/server/routes/api/cron/cron.ts b/server/routes/api/cron/cron.ts index 88bb10fede..7b4f5f9fd9 100644 --- a/server/routes/api/cron/cron.ts +++ b/server/routes/api/cron/cron.ts @@ -3,13 +3,20 @@ import env from "@server/env"; import { AuthenticationError } from "@server/errors"; import validate from "@server/middlewares/validate"; import tasks from "@server/queues/tasks"; +import { TaskSchedule } from "@server/queues/tasks/BaseTask"; import { APIContext } from "@server/types"; import { safeEqual } from "@server/utils/crypto"; import * as T from "./schema"; const router = new Router(); +/** Whether the minutely cron job has been received */ +const receivedPeriods = new Set(); + const cronHandler = async (ctx: APIContext) => { + const period = Object.keys(TaskSchedule).includes(ctx.params.period) + ? (ctx.params.period as TaskSchedule) + : TaskSchedule.Day; const token = (ctx.input.body.token ?? ctx.input.query.token) as string; const limit = ctx.input.body.limit ?? ctx.input.query.limit; @@ -17,9 +24,26 @@ const cronHandler = async (ctx: APIContext) => { throw AuthenticationError("Invalid secret token"); } + receivedPeriods.add(period); + for (const name in tasks) { const TaskClass = tasks[name]; - if (TaskClass.cron) { + if (TaskClass.cron === period) { + await TaskClass.schedule({ limit }); + + // Backwards compatibility for installations that have not set up + // cron jobs periods other than daily. + } else if ( + TaskClass.cron === TaskSchedule.Minute && + !receivedPeriods.has(TaskSchedule.Minute) && + (period === TaskSchedule.Hour || period === TaskSchedule.Day) + ) { + await TaskClass.schedule({ limit }); + } else if ( + TaskClass.cron === TaskSchedule.Hour && + !receivedPeriods.has(TaskSchedule.Hour) && + period === TaskSchedule.Day + ) { await TaskClass.schedule({ limit }); } } diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index d43f786372..9ecdc39621 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -1997,14 +1997,18 @@ describe("#documents.templatize", () => { }); const body = await res.json(); expect(res.status).toBe(400); - expect(body.message).toBe("id: Required"); + expect(body.message).toBe("id: Must be a valid UUID or slug"); }); it("should require publish", async () => { const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); const res = await server.post("/api/documents.templatize", { body: { token: user.getJwtToken(), - id: "random-id", + id: document.id, }, }); const body = await res.json(); @@ -2581,7 +2585,7 @@ describe("#documents.move", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should fail for invalid index", async () => { @@ -2887,7 +2891,7 @@ describe("#documents.restore", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should fail for invalid collectionId", async () => { @@ -4331,7 +4335,7 @@ describe("#documents.update", () => { }); const body = await res.json(); expect(res.status).toBe(400); - expect(body.message).toBe("id: Required"); + expect(body.message).toBe("id: Must be a valid UUID or slug"); }); }); @@ -4345,7 +4349,7 @@ describe("#documents.archive", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should allow archiving document", async () => { @@ -4388,7 +4392,7 @@ describe("#documents.delete", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should allow deleting document", async () => { @@ -4537,7 +4541,7 @@ describe("#documents.unpublish", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should unpublish a document", async () => { @@ -5083,7 +5087,7 @@ describe("#documents.add_user", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should require authentication", async () => { @@ -5169,7 +5173,7 @@ describe("#documents.remove_user", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should require authentication", async () => { diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 70dcfa42d6..a6a015c134 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -1454,7 +1454,7 @@ router.post( auth(), validate(T.DocumentsUnpublishSchema), async (ctx: APIContext) => { - const { id } = ctx.input.body; + const { id, detach } = ctx.input.body; const { user } = ctx.state.auth; const document = await Document.findByPk(id, { @@ -1473,14 +1473,14 @@ router.post( ); } - await document.unpublish(user); + // detaching would unset collectionId from document, so save a ref to the affected collectionId. + const collectionId = document.collectionId; + + await document.unpublish(user, { detach }); await Event.createFromContext(ctx, { name: "documents.unpublish", documentId: document.id, - collectionId: document.collectionId, - data: { - title: document.title, - }, + collectionId, }); ctx.body = { diff --git a/server/routes/api/documents/schema.ts b/server/routes/api/documents/schema.ts index f8f97421cf..be38350268 100644 --- a/server/routes/api/documents/schema.ts +++ b/server/routes/api/documents/schema.ts @@ -5,7 +5,7 @@ import { z } from "zod"; import { DocumentPermission, StatusFilter } from "@shared/types"; import { UrlHelper } from "@shared/utils/UrlHelper"; import { BaseSchema } from "@server/routes/api/schema"; -import { zodIconType } from "@server/utils/zod"; +import { zodIconType, zodIdType } from "@server/utils/zod"; import { ValidateColor } from "@server/validation"; const DocumentsSortParamsSchema = z.object({ @@ -64,7 +64,7 @@ const BaseSearchSchema = DateFilterSchema.extend({ const BaseIdSchema = z.object({ /** Id of the document to be updated */ - id: z.string(), + id: zodIdType(), }); export const DocumentsListSchema = BaseSchema.extend({ @@ -137,9 +137,7 @@ export type DocumentsDraftsReq = z.infer; export const DocumentsInfoSchema = BaseSchema.extend({ body: z.object({ - /** Id of the document to be retrieved */ - id: z.string().optional(), - + id: zodIdType().optional(), /** Share Id, if available */ shareId: z .string() @@ -302,6 +300,9 @@ export type DocumentsDeleteReq = z.infer; export const DocumentsUnpublishSchema = BaseSchema.extend({ body: BaseIdSchema.extend({ + /** Whether to detach the document from the collection */ + detach: z.boolean().default(false), + /** @deprecated Version of the API to be used, remove in a few releases */ apiVersion: z.number().optional(), }), @@ -328,7 +329,7 @@ export type DocumentsImportReq = z.infer; export const DocumentsCreateSchema = BaseSchema.extend({ body: z.object({ /** Id of the document to be created */ - id: z.string().uuid().optional(), + id: zodIdType().optional(), /** Document title */ title: z.string().optional(), @@ -393,9 +394,7 @@ export const DocumentsUsersSchema = BaseSchema.extend({ export type DocumentsUsersReq = z.infer; export const DocumentsAddUserSchema = BaseSchema.extend({ - body: z.object({ - /** Id of the document to which the user is supposed to be added */ - id: z.string().uuid(), + body: BaseIdSchema.extend({ /** Id of the user who is to be added */ userId: z.string().uuid(), /** Permission to be granted to the added user */ @@ -406,9 +405,7 @@ export const DocumentsAddUserSchema = BaseSchema.extend({ export type DocumentsAddUserReq = z.infer; export const DocumentsRemoveUserSchema = BaseSchema.extend({ - body: z.object({ - /** Id of the document from which to remove the user */ - id: z.string().uuid(), + body: BaseIdSchema.extend({ /** Id of the user who is to be removed */ userId: z.string().uuid(), }), diff --git a/server/routes/api/events/events.test.ts b/server/routes/api/events/events.test.ts index 3896fc6f5e..d845e162d3 100644 --- a/server/routes/api/events/events.test.ts +++ b/server/routes/api/events/events.test.ts @@ -228,6 +228,45 @@ describe("#events.list", () => { expect(body.data[0].id).toEqual(event.id); }); + it("should allow filtering by events param", async () => { + const user = await buildUser(); + const admin = await buildAdmin({ teamId: user.teamId }); + const collection = await buildCollection({ + userId: user.id, + teamId: user.teamId, + }); + const document = await buildDocument({ + userId: user.id, + collectionId: collection.id, + teamId: user.teamId, + }); + // audit event + await buildEvent({ + name: "users.promote", + teamId: user.teamId, + actorId: admin.id, + userId: user.id, + }); + // event viewable in activity stream + const event = await buildEvent({ + name: "documents.publish", + collectionId: collection.id, + documentId: document.id, + teamId: user.teamId, + actorId: user.id, + }); + const res = await server.post("/api/events.list", { + body: { + token: user.getJwtToken(), + events: ["documents.publish"], + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(1); + expect(body.data[0].id).toEqual(event.id); + }); + it("should return events with deleted actors", async () => { const user = await buildUser(); const admin = await buildAdmin({ teamId: user.teamId }); diff --git a/server/routes/api/events/events.ts b/server/routes/api/events/events.ts index f8591a73e4..d12207f63f 100644 --- a/server/routes/api/events/events.ts +++ b/server/routes/api/events/events.ts @@ -1,4 +1,5 @@ import Router from "koa-router"; +import intersection from "lodash/intersection"; import { Op, WhereOptions } from "sequelize"; import { EventHelper } from "@shared/utils/EventHelper"; import auth from "@server/middlewares/authentication"; @@ -20,20 +21,35 @@ router.post( async (ctx: APIContext) => { const { user } = ctx.state.auth; const { - sort, - direction, + name, + events, + auditLog, actorId, documentId, collectionId, - name, - auditLog, + sort, + direction, } = ctx.input.body; let where: WhereOptions = { - name: EventHelper.ACTIVITY_EVENTS, teamId: user.teamId, }; + if (auditLog) { + authorize(user, "audit", user.team); + where.name = events + ? intersection(EventHelper.AUDIT_EVENTS, events) + : EventHelper.AUDIT_EVENTS; + } else { + where.name = events + ? intersection(EventHelper.ACTIVITY_EVENTS, events) + : EventHelper.ACTIVITY_EVENTS; + } + + if (name && (where.name as string[]).includes(name)) { + where.name = name; + } + if (actorId) { where = { ...where, actorId }; } @@ -42,15 +58,6 @@ router.post( where = { ...where, documentId }; } - if (auditLog) { - authorize(user, "audit", user.team); - where.name = EventHelper.AUDIT_EVENTS; - } - - if (name && (where.name as string[]).includes(name)) { - where.name = name; - } - if (collectionId) { where = { ...where, collectionId }; @@ -77,7 +84,7 @@ router.post( }; } - const events = await Event.findAll({ + const loadedEvents = await Event.findAll({ where, order: [[sort, direction]], include: [ @@ -94,7 +101,7 @@ router.post( ctx.body = { pagination: ctx.state.pagination, data: await Promise.all( - events.map((event) => presentEvent(event, auditLog)) + loadedEvents.map((event) => presentEvent(event, auditLog)) ), }; } diff --git a/server/routes/api/events/schema.ts b/server/routes/api/events/schema.ts index 04b248e604..624011f160 100644 --- a/server/routes/api/events/schema.ts +++ b/server/routes/api/events/schema.ts @@ -1,8 +1,19 @@ import { z } from "zod"; +import { EventHelper } from "@shared/utils/EventHelper"; import { BaseSchema } from "@server/routes/api/schema"; export const EventsListSchema = BaseSchema.extend({ body: z.object({ + /** Events to retrieve */ + events: z + .array( + z.union([ + z.enum(EventHelper.ACTIVITY_EVENTS), + z.enum(EventHelper.AUDIT_EVENTS), + ]) + ) + .optional(), + /** Id of the user who performed the action */ actorId: z.string().uuid().optional(), @@ -15,7 +26,9 @@ export const EventsListSchema = BaseSchema.extend({ /** Whether to include audit events */ auditLog: z.boolean().default(false), - /** Name of the event to retrieve */ + /** @deprecated, use 'events' parameter instead + * Name of the event to retrieve + */ name: z.string().optional(), /** The attribute to sort the events by */ diff --git a/server/routes/api/notifications/schema.ts b/server/routes/api/notifications/schema.ts index e0a5074aab..2e4c66f48c 100644 --- a/server/routes/api/notifications/schema.ts +++ b/server/routes/api/notifications/schema.ts @@ -74,7 +74,7 @@ export type NotificationsUpdateAllReq = z.infer< export const NotificationsPixelSchema = BaseSchema.extend({ query: z.object({ - id: z.string(), + id: z.string().uuid(), token: z.string(), }), }); diff --git a/server/routes/api/pins/pins.test.ts b/server/routes/api/pins/pins.test.ts index f1936a0d35..0ebcf36295 100644 --- a/server/routes/api/pins/pins.test.ts +++ b/server/routes/api/pins/pins.test.ts @@ -168,6 +168,84 @@ describe("#pins.create", () => { }); }); +describe("#pins.info", () => { + it("should provide info about a home pin", async () => { + const admin = await buildAdmin(); + const document = await buildDocument({ + userId: admin.id, + teamId: admin.teamId, + }); + + await server.post("/api/pins.create", { + body: { + token: admin.getJwtToken(), + documentId: document.id, + }, + }); + + const res = await server.post("/api/pins.info", { + body: { + token: admin.getJwtToken(), + documentId: document.id, + }, + }); + const pin = await res.json(); + + expect(res.status).toEqual(200); + expect(pin.data.id).toBeDefined(); + expect(pin.data.documentId).toEqual(document.id); + expect(pin.data.collectionId).toBeFalsy(); + }); + + it("should provide info about a collection pin", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + + await server.post("/api/pins.create", { + body: { + token: user.getJwtToken(), + documentId: document.id, + collectionId: document.collectionId, + }, + }); + + const res = await server.post("/api/pins.info", { + body: { + token: user.getJwtToken(), + documentId: document.id, + collectionId: document.collectionId, + }, + }); + const pin = await res.json(); + + expect(res.status).toEqual(200); + expect(pin.data.id).toBeDefined(); + expect(pin.data.documentId).toEqual(document.id); + expect(pin.data.collectionId).toEqual(document.collectionId); + }); + + it("should throw 404 if no pin found", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + + const res = await server.post("/api/pins.info", { + body: { + token: user.getJwtToken(), + documentId: document.id, + collectionId: null, + }, + }); + + expect(res.status).toEqual(404); + }); +}); + describe("#pins.list", () => { let user: User; let pins: Pin[]; diff --git a/server/routes/api/pins/pins.ts b/server/routes/api/pins/pins.ts index 015661a532..676ea8a1c8 100644 --- a/server/routes/api/pins/pins.ts +++ b/server/routes/api/pins/pins.ts @@ -57,12 +57,41 @@ router.post( } ); +router.post( + "pins.info", + auth(), + validate(T.PinsInfoSchema), + async (ctx: APIContext) => { + const { user } = ctx.state.auth; + const { documentId, collectionId } = ctx.input.body; + + const document = await Document.findByPk(documentId, { userId: user.id }); + authorize(user, "read", document); + + // There can be only one pin with these props. + const pin = await Pin.findOne({ + where: { + documentId, + collectionId: collectionId ?? null, + createdById: user.id, + teamId: user.teamId, + }, + rejectOnEmpty: true, + }); + + ctx.body = { + data: presentPin(pin), + policies: presentPolicies(user, [pin]), + }; + } +); + router.post( "pins.list", auth(), validate(T.PinsListSchema), pagination(), - async (ctx: APIContext) => { + async (ctx: APIContext) => { const { collectionId } = ctx.input.body; const { user } = ctx.state.auth; diff --git a/server/routes/api/pins/schema.ts b/server/routes/api/pins/schema.ts index e659e72a41..823953ff92 100644 --- a/server/routes/api/pins/schema.ts +++ b/server/routes/api/pins/schema.ts @@ -1,6 +1,7 @@ import isUUID from "validator/lib/isUUID"; import { z } from "zod"; import { UrlHelper } from "@shared/utils/UrlHelper"; +import { zodIdType } from "@server/utils/zod"; import { BaseSchema } from "../schema"; export const PinsCreateSchema = BaseSchema.extend({ @@ -24,13 +25,24 @@ export const PinsCreateSchema = BaseSchema.extend({ export type PinsCreateReq = z.infer; +export const PinsInfoSchema = BaseSchema.extend({ + body: z.object({ + /** Document to get the pin info for. */ + documentId: zodIdType(), + /** Collection to which the pin belongs to. If not set, it's considered as "Home" pin. */ + collectionId: z.string().uuid().nullish(), + }), +}); + +export type PinsInfoReq = z.infer; + export const PinsListSchema = BaseSchema.extend({ body: z.object({ collectionId: z.string().uuid().nullish(), }), }); -export type PinsListReq = z.infer; +export type PinsListReq = z.infer; export const PinsUpdateSchema = BaseSchema.extend({ body: z.object({ diff --git a/server/routes/api/revisions/revisions.ts b/server/routes/api/revisions/revisions.ts index dd6e213cbc..f09855d234 100644 --- a/server/routes/api/revisions/revisions.ts +++ b/server/routes/api/revisions/revisions.ts @@ -125,6 +125,7 @@ router.post( const document = await Document.findByPk(documentId, { userId: user.id, + paranoid: false, }); authorize(user, "listRevisions", document); diff --git a/server/routes/api/users/users.ts b/server/routes/api/users/users.ts index 511b28c9df..c6c42d8537 100644 --- a/server/routes/api/users/users.ts +++ b/server/routes/api/users/users.ts @@ -636,6 +636,8 @@ router.post( await new ConfirmUserDeleteEmail({ to: user.email, deleteConfirmationCode: user.deleteConfirmationCode, + teamName: user.team.name, + teamUrl: user.team.url, }).schedule(); ctx.body = { diff --git a/server/routes/app.ts b/server/routes/app.ts index 8d95367d2e..4e20943121 100644 --- a/server/routes/app.ts +++ b/server/routes/app.ts @@ -76,7 +76,7 @@ export const renderApp = async ( const csp = ctx.response.get("Content-Security-Policy"); ctx.set( "Content-Security-Policy", - csp.replace("script-src", `script-src ${parsed.hostname}`) + csp.replace("script-src", `script-src ${parsed.host}`) ); } }); diff --git a/server/routes/index.ts b/server/routes/index.ts index 417da32381..aeaa135052 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -7,6 +7,7 @@ import send from "koa-send"; import userAgent, { UserAgentContext } from "koa-useragent"; import { languages } from "@shared/i18n"; import { IntegrationType, TeamPreference } from "@shared/types"; +import { parseDomain } from "@shared/utils/domains"; import { Day } from "@shared/utils/time"; import env from "@server/env"; import { NotFoundError } from "@server/errors"; @@ -138,11 +139,29 @@ router.get("*", shareDomains(), async (ctx, next) => { } const team = await getTeamFromContext(ctx); + let redirectUrl; - // Redirect all requests to custom domain if one is set - if (team?.domain && team.domain !== ctx.hostname) { - ctx.redirect(ctx.href.replace(ctx.hostname, team.domain)); - return; + if (env.isCloudHosted) { + // Redirect all requests to custom domain if one is set + if (team?.domain && team.domain !== ctx.hostname) { + redirectUrl = ctx.href.replace(ctx.hostname, team.domain); + } + + // Redirect if subdomain is not the current team's subdomain + else if (team?.subdomain) { + const { teamSubdomain } = parseDomain(ctx.href); + if (team?.subdomain !== teamSubdomain) { + redirectUrl = ctx.href.replace( + `//${teamSubdomain}.`, + `//${team.subdomain}.` + ); + } + } + + if (redirectUrl) { + ctx.redirect(redirectUrl); + return; + } } const analytics = team diff --git a/server/services/cron.ts b/server/services/cron.ts index 32e460f801..cd418ea159 100644 --- a/server/services/cron.ts +++ b/server/services/cron.ts @@ -1,4 +1,4 @@ -import { Day, Hour, Second } from "@shared/utils/time"; +import { Day, Hour, Minute, Second } from "@shared/utils/time"; import tasks from "@server/queues/tasks"; import { TaskSchedule } from "@server/queues/tasks/BaseTask"; @@ -12,13 +12,15 @@ export default function init() { } } - setInterval(() => void run(TaskSchedule.Daily), Day.ms); - setInterval(() => void run(TaskSchedule.Hourly), Hour.ms); + setInterval(() => void run(TaskSchedule.Day), Day.ms); + setInterval(() => void run(TaskSchedule.Hour), Hour.ms); + setInterval(() => void run(TaskSchedule.Minute), Minute.ms); // Just give everything time to startup before running the first time. Not // _technically_ required to function. setTimeout(() => { - void run(TaskSchedule.Daily); - void run(TaskSchedule.Hourly); - }, 30 * Second.ms); + void run(TaskSchedule.Day); + void run(TaskSchedule.Hour); + void run(TaskSchedule.Minute); + }, 5 * Second.ms); } diff --git a/server/storage/files/BaseStorage.ts b/server/storage/files/BaseStorage.ts index 339262cc56..9c3850f4aa 100644 --- a/server/storage/files/BaseStorage.ts +++ b/server/storage/files/BaseStorage.ts @@ -1,10 +1,10 @@ import { Blob } from "buffer"; import { Readable } from "stream"; import { PresignedPost } from "@aws-sdk/s3-presigned-post"; -import { isBase64Url } from "@shared/utils/urls"; +import { isBase64Url, isInternalUrl } from "@shared/utils/urls"; import env from "@server/env"; import Logger from "@server/logging/Logger"; -import fetch, { RequestInit } from "@server/utils/fetch"; +import fetch, { chromeUserAgent, RequestInit } from "@server/utils/fetch"; export default abstract class BaseStorage { /** The default number of seconds until a signed URL expires. */ @@ -149,7 +149,7 @@ export default abstract class BaseStorage { const endpoint = this.getUploadUrl(true); // Early return if url is already uploaded to the storage provider - if (url.startsWith("/api") || url.startsWith(endpoint)) { + if (url.startsWith(endpoint) || isInternalUrl(url)) { return; } @@ -168,6 +168,9 @@ export default abstract class BaseStorage { options?.maxUploadSize ?? Infinity, env.FILE_STORAGE_UPLOAD_MAX_SIZE ), + headers: { + "User-Agent": chromeUserAgent, + }, timeout: 10000, ...init, }); diff --git a/server/types.ts b/server/types.ts index 4ae4c32c41..ae74bdb61d 100644 --- a/server/types.ts +++ b/server/types.ts @@ -182,7 +182,6 @@ export type DocumentEvent = BaseEvent & name: | "documents.create" | "documents.publish" - | "documents.unpublish" | "documents.delete" | "documents.permanent_delete" | "documents.archive" @@ -194,6 +193,11 @@ export type DocumentEvent = BaseEvent & source?: "import"; }; } + | { + name: "documents.unpublish"; + documentId: string; + collectionId: string; + } | { name: "documents.unarchive"; documentId: string; diff --git a/server/typings/index.d.ts b/server/typings/index.d.ts index 3a023890b6..26f8d6b94e 100644 --- a/server/typings/index.d.ts +++ b/server/typings/index.d.ts @@ -19,3 +19,11 @@ declare module "@joplin/turndown-plugin-gfm" { export const taskListItems: Plugin; export const gfm: Plugin; } + +declare module "ukkonen" { + export default function ukkonen( + first: string, + second: string, + limit?: number + ): number; +} diff --git a/server/utils/fetch.ts b/server/utils/fetch.ts index 2e712b4015..19b4f1b5d7 100644 --- a/server/utils/fetch.ts +++ b/server/utils/fetch.ts @@ -7,6 +7,13 @@ import Logger from "@server/logging/Logger"; export type { RequestInit } from "node-fetch"; +/** + * Fake Chrome user agent string for use in fetch requests to + * improve reliability. + */ +export const chromeUserAgent = + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"; + /** * Wrapper around fetch that uses the request-filtering-agent in cloud hosted * environments to filter malicious requests, and the fetch-with-proxy library diff --git a/server/utils/passport.ts b/server/utils/passport.ts index a538df88a6..503b5f5fb4 100644 --- a/server/utils/passport.ts +++ b/server/utils/passport.ts @@ -127,9 +127,7 @@ export async function getTeamFromContext(ctx: Context) { } else if (domain.custom) { team = await Team.findOne({ where: { domain: domain.host } }); } else if (domain.teamSubdomain) { - team = await Team.findOne({ - where: { subdomain: domain.teamSubdomain }, - }); + team = await Team.findBySubdomain(domain.teamSubdomain); } return team; diff --git a/server/utils/zod.ts b/server/utils/zod.ts index 5181c88f43..caedca0b51 100644 --- a/server/utils/zod.ts +++ b/server/utils/zod.ts @@ -1,6 +1,7 @@ import emojiRegex from "emoji-regex"; import { z } from "zod"; import { IconLibrary } from "@shared/utils/IconLibrary"; +import { UrlHelper } from "@shared/utils/UrlHelper"; export function zodEnumFromObjectKeys< TI extends Record, @@ -10,6 +11,11 @@ export function zodEnumFromObjectKeys< return z.enum([firstKey, ...otherKeys]); } +export const zodIdType = () => + z.union([z.string().regex(UrlHelper.SLUG_URL_REGEX), z.string().uuid()], { + message: "Must be a valid UUID or slug", + }); + export const zodIconType = () => z.union([ z.string().regex(emojiRegex()), diff --git a/shared/editor/commands/table.ts b/shared/editor/commands/table.ts index 6bc4daf9f8..e4461e905d 100644 --- a/shared/editor/commands/table.ts +++ b/shared/editor/commands/table.ts @@ -1,4 +1,4 @@ -import { Fragment, Node, NodeType } from "prosemirror-model"; +import { Node, NodeType } from "prosemirror-model"; import { Command, EditorState, TextSelection } from "prosemirror-state"; import { CellSelection, @@ -20,14 +20,19 @@ import { collapseSelection } from "./collapseSelection"; export function createTable({ rowsCount, colsCount, + colWidth, }: { + /** The number of rows in the table. */ rowsCount: number; + /** The number of columns in the table. */ colsCount: number; + /** The widths of each column in the table. */ + colWidth: number; }): Command { return (state, dispatch) => { if (dispatch) { const offset = state.tr.selection.anchor + 1; - const nodes = createTableInner(state, rowsCount, colsCount); + const nodes = createTableInner(state, rowsCount, colsCount, colWidth); const tr = state.tr.replaceSelectionWith(nodes).scrollIntoView(); const resolvedPos = tr.doc.resolve(offset); tr.setSelection(TextSelection.near(resolvedPos)); @@ -41,6 +46,7 @@ function createTableInner( state: EditorState, rowsCount: number, colsCount: number, + colWidth: number, withHeaderRow = true, cellContent?: Node ) { @@ -49,23 +55,27 @@ function createTableInner( const cells: Node[] = []; const rows: Node[] = []; - const createCell = ( - cellType: NodeType, - cellContent: Fragment | Node | readonly Node[] | null | undefined - ) => + const createCell = (cellType: NodeType, attrs: Record | null) => cellContent - ? cellType.createChecked(null, cellContent) - : cellType.createAndFill(); + ? cellType.createChecked(attrs, cellContent) + : cellType.createAndFill(attrs); for (let index = 0; index < colsCount; index += 1) { - const cell = createCell(types.cell, cellContent); + const attrs = colWidth + ? { + colwidth: [colWidth], + colspan: 1, + rowspan: 1, + } + : null; + const cell = createCell(types.cell, attrs); if (cell) { cells.push(cell); } if (withHeaderRow) { - const headerCell = createCell(types.header_cell, cellContent); + const headerCell = createCell(types.header_cell, attrs); if (headerCell) { headerCells.push(headerCell); diff --git a/shared/editor/components/Caption.tsx b/shared/editor/components/Caption.tsx index 4550f1fcee..3a8c580657 100644 --- a/shared/editor/components/Caption.tsx +++ b/shared/editor/components/Caption.tsx @@ -71,6 +71,7 @@ const Content = styled.p<{ $width: number; $isSelected: boolean }>` cursor: text; width: ${(props) => props.$width}px; min-width: 200px; + max-width: 100%; ${breakpoint("tablet")` font-size: 13px; diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 133f52209a..0c49940c1a 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -55,6 +55,7 @@ const mathStyle = (props: Props) => css` cursor: auto; white-space: pre-wrap; overflow-x: auto; + overflow-y: none; } .math-node.empty-math .math-render::before { @@ -251,10 +252,13 @@ const codeBlockStyle = (props: Props) => css` `; const findAndReplaceStyle = () => css` - .find-result { + .find-result:not(:has(.mention)), + .find-result .mention { background: rgba(255, 213, 0, 0.25); + } - &.current-result { + .find-result.current-result:not(:has(.mention)), + .find-result.current-result .mention { background: rgba(255, 213, 0, 0.75); animation: ${pulse} 150ms 1; } @@ -615,7 +619,6 @@ iframe.embed { } .column-resize-handle { - animation: ${fadeIn} 150ms ease-in-out; ${props.readOnly ? "display: none;" : ""} position: absolute; right: -1px; @@ -1093,6 +1096,7 @@ ol { direction: rtl; } + &:has(p:dir(rtl)), &:dir(rtl) { margin: 0 ${props.staticHTML ? "0" : "-26px"} 0 0.1em; padding: 0 48px 0 0; diff --git a/shared/editor/types/index.ts b/shared/editor/types/index.ts index f9d868d4f2..ef4b90d806 100644 --- a/shared/editor/types/index.ts +++ b/shared/editor/types/index.ts @@ -35,8 +35,8 @@ export type MenuItem = { children?: MenuItem[]; defaultHidden?: boolean; attrs?: - | Record - | ((state: EditorState) => Record); + | Record + | ((state: EditorState) => Record); visible?: boolean; active?: (state: EditorState) => boolean; appendSpace?: boolean; diff --git a/shared/editor/version.ts b/shared/editor/version.ts index 0cbb6c8011..db878816cc 100644 --- a/shared/editor/version.ts +++ b/shared/editor/version.ts @@ -1,3 +1,3 @@ -const EDITOR_VERSION = "13.0.0"; +const EDITOR_VERSION = "14.0.0"; export default EDITOR_VERSION; diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 745cfa1de7..cbef3df219 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -195,6 +195,7 @@ "Default collection": "Výchozí sbírka", "Install now": "Nainstalovat", "Deleted Collection": "Odstraněná sbírka", + "Untitled": "Bez názvu", "Unpin": "Zrušit připnutí", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Prohledat sbírky a dokumenty", "No results found": "Nebyly nalezeny žádné výsledky", - "Untitled": "Bez názvu", "New": "Nový", "Only visible to you": "Viditelné pouze pro vás", "Draft": "Návrh", @@ -932,7 +932,7 @@ "Danger": "Nebezpečí", "You can delete this entire workspace including collections, documents, and users.": "Můžete odstranit celý tento pracovní prostor včetně kolekcí, dokumentů a uživatelů.", "Export data": "Exportovat data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Úplný export může nějakou dobu trvat, zvažte export jednoho dokumentu nebo sbírky. Exportovaná data jsou zipem vašich dokumentů ve formátu Markdown. Po zahájení exportu můžete tuto stránku opustit – pokud máte povolená upozornění, pošleme vám e-mail s odkazem na {{ userEmail }} , až bude dokončen.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Nedávné exporty", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Spravujte volitelné funkce a funkce beta. Změna těchto nastavení ovlivní prostředí všech členů pracovního prostoru.", "Separate editing": "Oddělený režim úprav", diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 8420cb400c..8a62513d25 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -195,6 +195,7 @@ "Default collection": "Default collection", "Install now": "Install now", "Deleted Collection": "Deleted Collection", + "Untitled": "Unavngivet", "Unpin": "Unpin", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Search collections & documents", "No results found": "Ingen resultater fundet", - "Untitled": "Unavngivet", "New": "Ny", "Only visible to you": "Kun synlig for dig", "Draft": "Udkast", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index 98efe4a960..716fc9060d 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -13,11 +13,11 @@ "Unstar": "Aus den Favoriten entfernen", "Archive": "Archiv", "Archive collection": "Private Sammlung", - "Collection archived": "Collection archived", + "Collection archived": "Sammlung archiviert", "Archiving": "Archiviere", - "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.", + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Bei der Archivierung dieser Sammlung werden auch alle darin enthaltenen Dokumente archiviert. Dokumente aus dieser Sammlung werden nicht mehr in den Suchergebnissen angezeigt.", "Restore": "Wiederherstellen", - "Collection restored": "Collection restored", + "Collection restored": "Sammlung wiederhergestellt", "Delete": "Löschen", "Delete collection": "Sammlung löschen", "New template": "Neue Vorlage", @@ -79,7 +79,7 @@ "Search documents for \"{{searchQuery}}\"": "Suche Dokumente für \"{{searchQuery}}\"", "Move to workspace": "Move to workspace", "Move": "Verschieben", - "Move to collection": "Move to collection", + "Move to collection": "Zu Sammlung verschieben", "Move {{ documentType }}": "Verschiebe {{ documentType }}", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokument archiviert", @@ -94,7 +94,7 @@ "Insights": "Statistiken", "Disable viewer insights": "Leser Statistiken deaktivieren", "Enable viewer insights": "Leser Statistiken aktivieren", - "Leave document": "Leave document", + "Leave document": "Dokument verlassen", "You have left the shared document": "You have left the shared document", "Could not leave document": "Could not leave document", "Home": "Startseite", @@ -172,7 +172,7 @@ "Are you sure you want to permanently delete this entire comment thread?": "Bist du sicher, dass du diesen Kommentarverlauf löschen möchtest?", "Are you sure you want to permanently delete this comment?": "Bist du sicher, dass du diesen Kommentar löschen möchtest?", "Confirm": "Bestätigen", - "manage access": "manage access", + "manage access": "Zugriff verwalten", "view and edit access": "Zugriff anzeigen und bearbeiten", "view only access": "nur anzeigen Zugriff", "no access": "kein Zugriff", @@ -195,16 +195,16 @@ "Default collection": "Standardsammlung", "Install now": "Jetzt installieren", "Deleted Collection": "Gelöschte Sammlung", + "Untitled": "Ohne Titel", "Unpin": "Lospinnen", "{{ minutes }}m read": "{{ minutes }}m read", - "Select a location to copy": "Select a location to copy", - "Document copied": "Document copied", - "Couldn’t copy the document, try again?": "Couldn’t copy the document, try again?", + "Select a location to copy": "Ort zum Kopieren auswählen", + "Document copied": "Dokument kopiert", + "Couldn’t copy the document, try again?": "Das Dokument konnte nicht kopiert werden. Erneut versuchen?", "Include nested documents": "Verschachtelte Dokumente einbeziehen", - "Copy to {{ location }}": "Copy to {{ location }}", + "Copy to {{ location }}": "Kopieren nach {{ location }}", "Search collections & documents": "Sammlungen und Dokumente durchsuchen", "No results found": "Keine Ergebnisse gefunden", - "Untitled": "Ohne Titel", "New": "Neu", "Only visible to you": "Nur für Sie sichtbar", "Draft": "Entwurf", @@ -303,13 +303,13 @@ "Unknown": "Unbekannt", "Mark all as read": "Alle als gelesen markieren", "You're all caught up": "Du bist auf dem neusten Stand", - "{{ username }} reacted with {{ emoji }}": "{{ username }} reacted with {{ emoji }}", + "{{ username }} reacted with {{ emoji }}": "{{ username }} hat mit {{ emoji }} reagiert", "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }} and {{ count }} other reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}", - "Add reaction": "Add reaction", - "Reaction picker": "Reaction picker", - "Could not load reactions": "Could not load reactions", + "Add reaction": "Reaktion hinzufügen", + "Reaction picker": "Reaktions-Auswahl", + "Could not load reactions": "Reaktionen konnten nicht geladen werden", "Reaction": "Reaktion", "Results": "Ergebnisse", "No results for {{query}}": "Keine Ergebnisse für {{query}}", @@ -355,7 +355,7 @@ "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Jeder mit diesem Link kann darauf zugreifen, da das übergeordnete Dokument, <2>{{documentTitle}}, geteilt wird", "Allow anyone with the link to access": "Jedem mit dem Link Zugriff erlauben", "Publish to internet": "Im Internet veröffentlichen", - "Search engine indexing": "Search engine indexing", + "Search engine indexing": "Suchmaschinenindexierung", "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Verschachtelte Dokumente werden nicht im Web geteilt. Schalten Sie die Freigabe um, um den Zugriff zu ermöglichen, dies wird das Standardverhalten in Zukunft sein", "{{ userName }} was added to the document": "{{ userName }} was added to the document", @@ -364,7 +364,7 @@ "{{ count }} groups added to the document": "{{ count }} groups added to the document", "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", - "Archived collections": "Archived collections", + "Archived collections": "Archivierte Sammlungen", "New doc": "Neues Dokument", "Empty": "Leer", "Collections": "Sammlungen", @@ -381,10 +381,10 @@ "Up to date": "Auf dem neuesten Stand", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} Versionen veraltet", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} Versionen veraltet", - "Change permissions?": "Change permissions?", + "Change permissions?": "Berechtigungen ändern?", "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", "You can't reorder documents in an alphabetically sorted collection": "Du kannst Dokumente in einer alphabetisch sortierten Sammlung nicht neu anordnen", - "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", + "The {{ documentName }} cannot be moved here": "Der {{ documentName }} kann nicht dorthin verschoben werden", "Return to App": "Zurück zur App", "Installation": "Installation", "Unstar document": "Favorisierung entfernen", @@ -392,8 +392,8 @@ "Template created, go ahead and customize it": "Vorlage erstellt, fortfahren und anpassen", "Creating a template from {{titleWithDefault}} is a non-destructive action – we'll make a copy of the document and turn it into a template that can be used as a starting point for new documents.": "Das Erstellen einer Vorlage durch {{titleWithDefault}} ist eine non-destruktive Aktion – wir erstellen eine Kopie des Dokuments und verwandeln es in eine Vorlage, die als Ausgangspunkt für neue Dokumente verwendet werden kann.", "Published": "Veröffentlicht", - "Enable other members to use the template immediately": "Enable other members to use the template immediately", - "Location": "Location", + "Enable other members to use the template immediately": "Erlaube anderen Mitgliedern die Vorlage sofort zu verwenden", + "Location": "Ort", "Admins can manage the workspace and access billing.": "Administratoren können den Arbeitsbereich verwalten und auf die Abrechnung zugreifen.", "Editors can create, edit, and comment on documents.": "Redakteure können Dokumente erstellen, bearbeiten und kommentieren.", "Viewers can only view and comment on documents.": "Betrachter können nur Dokumente sehen und kommentieren.", @@ -404,11 +404,11 @@ "New name": "Neuer Name", "Name can't be empty": "Der Name darf nicht leer sein", "Check your email to verify the new address.": "Check your email to verify the new address.", - "The email will be changed once verified.": "The email will be changed once verified.", + "The email will be changed once verified.": "Die E-Mail wird geändert, sobald sie bestätigt wurde.", "You will receive an email to verify your new address. It must be unique in the workspace.": "You will receive an email to verify your new address. It must be unique in the workspace.", - "A confirmation email will be sent to the new address before it is changed.": "A confirmation email will be sent to the new address before it is changed.", - "New email": "New email", - "Email can't be empty": "Email can't be empty", + "A confirmation email will be sent to the new address before it is changed.": "Eine Bestätigungs-E-Mail wird an die neue Adresse geschickt, bevor sie geändert wird.", + "New email": "Neue E-Mail", + "Email can't be empty": "E-Mail darf nicht leer sein", "Your import completed": "Ihr Import ist abgeschlossen", "Previous match": "Vorheriger Treffer", "Next match": "Nächster Treffer", @@ -423,7 +423,7 @@ "Profile picture": "Profilbild", "Create a new doc": "Neues Dokument erstellen", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} won't be notified, as they do not have access to this document", - "Keep as link": "Keep as link", + "Keep as link": "Als Link beibehalten", "Embed": "Embed", "Add column after": "Spalte dahinter hinzufügen", "Add column before": "Spalte davor hinzufügen", @@ -453,11 +453,11 @@ "Italic": "Kursiv", "Sorry, that link won’t work for this embed type": "Dieser Link funktioniert für diesen Einbettungstyp leider nicht", "File attachment": "Dateianhang", - "Enter a link": "Enter a link", + "Enter a link": "Link eintragen", "Big heading": "Große Überschrift", "Medium heading": "Mittlere Überschrift", "Small heading": "Kleine Überschrift", - "Extra small heading": "Extra small heading", + "Extra small heading": "Extra kleine Überschrift", "Heading": "Überschrift", "Divider": "Trennlinie", "Image": "Bild", @@ -506,7 +506,7 @@ "Could not import file": "Datei konnte nicht importiert werden", "Unsubscribed from document": "Dokument nicht abonniert", "Account": "Konto", - "API Keys": "API Keys", + "API Keys": "API-Schlüssel", "Details": "Details", "Security": "Sicherheit", "Features": "Funktionen", @@ -524,8 +524,8 @@ "Export collection": "Sammlung exportieren", "Rename": "Umbenennen", "Sort in sidebar": "Seitenleiste sortieren", - "A-Z sort": "A-Z sort", - "Z-A sort": "Z-A sort", + "A-Z sort": "A-Z-Sortierung", + "Z-A sort": "Z-A-Sortierung", "Manual sort": "Manuelle Sortierung", "Comment options": "Kommentar Optionen", "Show document menu": "Dokumentmenü anzeigen", @@ -597,7 +597,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} Gruppen mit Zugriff", "Archived by {{userName}}": "Archiviert durch {{userName}}", "Share": "Teilen", - "Overview": "Overview", + "Overview": "Übersicht", "Recently updated": "Vor Kurzem aktualisiert", "Recently published": "Vor Kurzem veröffentlicht", "Least recently updated": "Am längsten nicht aktualisiert", @@ -618,8 +618,8 @@ "Most recent": "Most recent", "Order in doc": "Order in doc", "Resolved": "Resolved", - "Show {{ count }} reply": "Show {{ count }} reply", - "Show {{ count }} reply_plural": "Show {{ count }} replies", + "Show {{ count }} reply": "{{ count }} Antwort anzeigen", + "Show {{ count }} reply_plural": "{{ count }} -Antworten anzeigen", "Error updating comment": "Fehler beim Aktualisieren des Kommentars", "Document restored": "Dokument wiederhergestellt", "Images are still uploading.\nAre you sure you want to discard them?": "Bilder werden noch hochgeladen.\nMöchtest du sie wirklich verwerfen?", @@ -825,7 +825,7 @@ "Author": "Autor", "We were unable to find the page you’re looking for.": "Die von Ihnen gesuchte Seite konnte nicht gefunden werden.", "Search titles only": "Nur Titel durchsuchen", - "Something went wrong": "Something went wrong", + "Something went wrong": "Etwas ist schiefgelaufen", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Keine Dokumente für diese Suchfilter gefunden.", "API": "API", @@ -932,7 +932,7 @@ "Danger": "Achtung", "You can delete this entire workspace including collections, documents, and users.": "Du kannst den gesamten Arbeitsbereich einschließlich der Sammlungen, Dokumente und Benutzer löschen.", "Export data": "Daten exportieren", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Ein vollständiger Export kann einige Zeit dauern. Wenn möglich, sollte nur ein einzelnes Dokument oder eine einzelne Sammlung exportiert werden. Wir stellen eine Zip-Datei aller Dokumente im Markdown-Format zusammen und senden - falls Benachrichtigungen aktiviert sind - eine E-Mail an {{ userEmail }}, sobald der Export fertig ist.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Kürzliche Exporte", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Verwalten Sie optionale und Beta-Funktionen. Das Ändern dieser Einstellungen wirkt sich auf alle Mitglieder des Arbeitsbereichs aus.", "Separate editing": "Getrennte Bearbeitung", diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 78f10e6a30..ce151f4b1a 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -40,6 +40,7 @@ "Development": "Development", "Open document": "Open document", "New document": "New document", + "New draft": "New draft", "New from template": "New from template", "New nested document": "New nested document", "Publish": "Publish", @@ -933,7 +934,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index a6575dfe43..dd03b8a4d3 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -195,6 +195,7 @@ "Default collection": "Colección predeterminada", "Install now": "Instalar ahora", "Deleted Collection": "Colección Eliminada", + "Untitled": "Sin título", "Unpin": "Desfijar", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copiar a {{ location }}", "Search collections & documents": "Buscar en colecciones y documentos", "No results found": "No se encontraron resultados", - "Untitled": "Sin título", "New": "Nuevo", "Only visible to you": "Solo visible para ti", "Draft": "Borrador", @@ -932,7 +932,7 @@ "Danger": "Peligro", "You can delete this entire workspace including collections, documents, and users.": "Puedes eliminar todo este espacio de trabajo incluyendo colecciones, documentos y usuarios.", "Export data": "Exportar datos", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Una exportación completa puede tardar algún tiempo, considere exportar un solo documento o colección. Los datos exportados son un zip de tus documentos en formato Markdown. Puedes salir de esta página una vez haya comenzado la exportación – si tienes las notificaciones activadas, te enviaremos un enlace por correo electrónico a {{ userEmail }} cuando esté lista.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exportaciones recientes", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gestiona funciones opcionales y beta. Cambiar esta configuración afectará la experiencia de todos los miembros del espacio de trabajo.", "Separate editing": "Edición separada", diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index dae3c17fef..e48c3214c7 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -195,6 +195,7 @@ "Default collection": "مجموعه پیش فرض", "Install now": "Install now", "Deleted Collection": "مجموعه‌های حذف شده", + "Untitled": "بدون عنوان", "Unpin": "برداشتن سنجاق", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "جستجوی مجموعه ها و اسناد", "No results found": "No results found", - "Untitled": "بدون عنوان", "New": "جدید", "Only visible to you": "تنها قابل مشاهده برای شما", "Draft": "پیش‌نویس", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "صادر شده های اخیر", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index 5574151793..8376475a4f 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -195,6 +195,7 @@ "Default collection": "Collection par défaut", "Install now": "Installer maintenant", "Deleted Collection": "Collection supprimée", + "Untitled": "Sans titre", "Unpin": "Désépingler", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Rechercher dans les collections et documents", "No results found": "Aucun résultat", - "Untitled": "Sans titre", "New": "Nouveau", "Only visible to you": "Visible uniquement pour vous", "Draft": "Brouillon", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "Vous pouvez supprimer tout l'espace de travail dont les collections, les documents et les utilisateurs.", "Export data": "Export des données", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Un export complet peut prendre un certain temps, pensez à exporter un seul document ou une seule collection. Les données sont exportées sous forme d'archive zip de vos documents en format Markdown. Une fois l'export commencé, ous pouvez fermer cette page – nous enverrons un lien à {{ userEmail }} quand ce sera terminé.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exports récents", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gérer les fonctionnalités optionnelles et bêta. La modification de ces paramètres sera effective pour tous les membres de l'espace de travail.", "Separate editing": "Édition séparée", diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index 8559eb5d48..0bfa6e39f7 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -195,6 +195,7 @@ "Default collection": "Default collection", "Install now": "Install now", "Deleted Collection": "Deleted Collection", + "Untitled": "Untitled", "Unpin": "Unpin", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Search collections & documents", "No results found": "No results found", - "Untitled": "Untitled", "New": "New", "Only visible to you": "Only visible to you", "Draft": "Draft", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index f69b3b565c..d58735af8b 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -195,6 +195,7 @@ "Default collection": "Alapértelmezett gyűjtemény", "Install now": "Telepítés most", "Deleted Collection": "Törölt gyűjtemény", + "Untitled": "Névtelen", "Unpin": "Feloldás", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Keresés a gyűteményekben és dokumentumokban", "No results found": "Nincs találat", - "Untitled": "Névtelen", "New": "Új", "Only visible to you": "Csak az Ön számára látható", "Draft": "Piszkozat", @@ -932,7 +932,7 @@ "Danger": "Veszély", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index ee2daeedd1..77c5b4ac38 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -195,6 +195,7 @@ "Default collection": "Koleksi bawaan", "Install now": "Pasang sekarang", "Deleted Collection": "Koleksi Dihapus", + "Untitled": "Tak Berjudul", "Unpin": "Unpin", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Telusuri koleksi & dokumen", "No results found": "Tak ditemukan hasil", - "Untitled": "Tak Berjudul", "New": "Baru", "Only visible to you": "Hanya terlihat untuk Anda", "Draft": "Draf", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Ekspor data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Ekspor penuh mungkin memakan waktu lama, pertimbangkan untuk mengekspor satu dokumen atau koleksi. Data yang diekspor adalah zip dokumen Anda dalam format Markdown. Anda dapat meninggalkan laman ini setelah ekspor dimulai – jika Anda telah mengaktifkan pemberitahuan, kami akan mengirimkan tautan melalui email ke {{ userEmail }} setelah selesai.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Ekspor terbaru", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Kelola fitur opsional dan beta. Mengubah pengaturan ini akan memengaruhi pengalaman semua anggota workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index 0b120d2425..e683540200 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -195,6 +195,7 @@ "Default collection": "Raccolta predefinita", "Install now": "Install now", "Deleted Collection": "Raccolte Eliminate", + "Untitled": "Senza titolo", "Unpin": "Rimuovi contrassegno", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Cerca raccolte e documenti", "No results found": "Nessun risultato trovato", - "Untitled": "Senza titolo", "New": "Nuovo", "Only visible to you": "Visibile solo a te", "Draft": "Bozza", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Esporta dati", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Un'esportazione completa potrebbe richiedere del tempo, prendi in considerazione l'esportazione di un singolo documento o raccolta. I dati esportati sono un zip dei tuoi documenti in formato Markdown. Puoi lasciare questa pagina una volta iniziata l'esportazione: se hai abilitato le notifiche, ti invieremo un link via email a {{ userEmail }} al termine dell'operazione.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Esportazioni recenti", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gestisci le funzionalità opzionali e beta. La modifica di queste impostazioni influirà sull'esperienza di tutti i membri dell'area di lavoro.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index 2246fc2df6..d6de59b0a6 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -195,6 +195,7 @@ "Default collection": "デフォルトコレクション", "Install now": "インストールしています", "Deleted Collection": "削除したコレクション", + "Untitled": "無題のドキュメント", "Unpin": "ピン留めを外す", "{{ minutes }}m read": "{{ minutes }} ", "Select a location to copy": "コピー先を選択してください", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "{{ location }} にコピーする", "Search collections & documents": "ドキュメントやコレクションを検索する", "No results found": "なにも見つかりませんでした", - "Untitled": "無題のドキュメント", "New": "新規作成", "Only visible to you": "あなたにのみ表示されます", "Draft": "下書き", @@ -932,7 +932,7 @@ "Danger": "危険", "You can delete this entire workspace including collections, documents, and users.": "コレクション、ドキュメント、およびユーザーを含むワークスペース全体を削除できます。", "Export data": "データのエクスポート", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "完全なデータをエクスポートするには、時間がかかることがあります。代わりに、単一のドキュメントまたはコレクションをエクスポートすることを検討してください。データのエクスポートは、すべてのドキュメントを Markdown 形式を含む Zip ファイルになります。処理が開始された後、このウェブページを閉じることができます。通知を有効にした場合、エクスポートが完了すると、Url が {{ userEmail }} にメールされます。", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "最近のエクスポート", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "オプション機能とベータ機能を管理します。これらの設定を変更すると、ワークスペースの全てのメンバーのエクスペリエンスに影響します。", "Separate editing": "閲覧モードで開く", diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index c3fc51d2ea..d5b69c5f24 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -195,6 +195,7 @@ "Default collection": "기본 컬렉션", "Install now": "지금 설치", "Deleted Collection": "삭제 된 콜렉션", + "Untitled": "제목없음", "Unpin": "고정 해제", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "복사할 위치 선택\n", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "컬렉션 및 문서 검색", "No results found": "결과가 없습니다.", - "Untitled": "제목없음", "New": "신규", "Only visible to you": "나에게만 보임", "Draft": "임시보관", @@ -932,7 +932,7 @@ "Danger": "위험", "You can delete this entire workspace including collections, documents, and users.": "컬렉션, 문서, 사용자를 포함한 전체 워크스페이스를 삭제할 수 있습니다.", "Export data": "데이터 내보내기", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "전체 내보내기에는 시간이 걸릴 수 있습니다. 단일 문서 또는 컬렉션 내보내기를 고려하세요. 내보낸 데이터는 Markdown 형식의 문서 압축입니다. 내보내기가 시작되면 이 페이지를 떠날 수 있습니다. 만약 알림을 활성화한 경우라면, 작업 완료 후 {{ userEmail }} 이메일로 링크가 전송됩니다.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "최근 내보내기", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "선택적 기능 및 실험적 기능을 관리합니다. 이 설정을 변경하면 워크스페이스에 모든 멤버에게 영향을 미칩니다.", "Separate editing": "분할 편집", diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index 640636d235..215ccce1d8 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -195,6 +195,7 @@ "Default collection": "Standard samling", "Install now": "Installer nå", "Deleted Collection": "Slettet samling", + "Untitled": "Uten tittel", "Unpin": "Løsne", "{{ minutes }}m read": "{{ minutes }} min. lesetid", "Select a location to copy": "Velg en plassering å kopiere", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Kopier til {{ location }}", "Search collections & documents": "Søk i samlinger og dokumenter", "No results found": "Ingen resultater funnet", - "Untitled": "Uten tittel", "New": "Ny", "Only visible to you": "Bare synlig for deg", "Draft": "Utkast", @@ -932,7 +932,7 @@ "Danger": "Fare", "You can delete this entire workspace including collections, documents, and users.": "Du kan slette hele dette arbeidsområdet, inkludert samlinger, dokumenter og brukere.", "Export data": "Eksporter data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "En fullstendig eksport kan ta litt tid, vurder å eksportere et enkelt dokument eller en samling. Eksporterte data er en zip av dokumentene dine i Markdown-format. Du kan forlate denne siden så snart eksporten har startet – hvis du har varsler aktivert, vil vi sende en e-post med en lenke til {{ userEmail }} når den er fullført.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Nylige eksporter", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Administrer valgfrie og beta-funksjoner. Å endre disse innstillingene vil påvirke opplevelsen for alle medlemmer av arbeidsområdet.", "Separate editing": "Separat redigering", diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index ab0683e22c..b31a67d923 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -195,6 +195,7 @@ "Default collection": "Standaard collectie", "Install now": "Nu installeren", "Deleted Collection": "Verwijderde Collectie", + "Untitled": "Naamloos", "Unpin": "Losmaken", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Zoeken in collecties en documenten", "No results found": "Geen resultaten gevonden", - "Untitled": "Naamloos", "New": "Nieuw", "Only visible to you": "Alleen zichtbaar voor jou", "Draft": "Concept", @@ -932,7 +932,7 @@ "Danger": "Gevaar", "You can delete this entire workspace including collections, documents, and users.": "Je kunt deze hele workspace verwijderen inclusief collecties, documenten en gebruikers.", "Export data": "Exporteer gegevens", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Een volledige export kan enige tijd kosten, overweeg om één enkel document of collectie te exporteren. De geëxporteerde gegevens zijn een zip van je documenten in Markdown formaat. Je kunt deze pagina verlaten zodra de export is gestart. Als je notificaties aan hebt staan, we zullen een link naar {{ userEmail }} e-mailen wanneer het afgerond is.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recente exporten", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Beheer optionele en bètafuncties. Het wijzigen van deze instellingen heeft invloed op de ervaring voor alle leden van betreffende team.", "Separate editing": "Aparte bewerkingsmodus", diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index 80cde55391..541280f1b3 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -15,7 +15,7 @@ "Archive collection": "Zarchiwizuj kolekcję", "Collection archived": "Kolekcja zarchiwizowana", "Archiving": "Archiwizowanie", - "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiwizacja tej kolekcji będzie również archiwizować wszystkie dokumenty w niej. Dokumenty z kolekcji nie będą już widoczne w wynikach wyszukiwania.", + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiwizacja tej kolekcji zarchiwizuje wszystkie dokumenty w niej. Dokumenty z kolekcji nie będą już widoczne w wynikach wyszukiwania.", "Restore": "Przywróć", "Collection restored": "Odzyskano kolekcję", "Delete": "Usuń", @@ -176,7 +176,7 @@ "view and edit access": "zobacz i edytuj dostęp", "view only access": "dostęp tylko do podglądu", "no access": "brak dostępu", - "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "Nie masz uprawnień aby przenieść {{ documentName }} do kolekcji {{ collectionName }}", "Move document": "Przenieś dokument", "Moving": "Przenoszenie", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Przenoszenie dokumentu {{ title }} do kolekcji {{ newCollectionName }} zmieni uprawnienia dla wszystkich członków obszaru roboczego z {{ prevPermission }} na {{ newPermission }}.", @@ -195,6 +195,7 @@ "Default collection": "Domyślna kolekcja", "Install now": "Zainstaluj teraz", "Deleted Collection": "Usunięta kolekcja", + "Untitled": "Bez tytułu", "Unpin": "Odepnij", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Wybierz lokalizację do przeniesienia", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Skopiuj do {{ location }}", "Search collections & documents": "Przeszukaj kolekcje i dokumenty", "No results found": "Nie znaleziono wyników", - "Untitled": "Bez tytułu", "New": "Nowe", "Only visible to you": "Widoczne tylko dla Ciebie", "Draft": "Szkic", @@ -932,7 +932,7 @@ "Danger": "Uwaga", "You can delete this entire workspace including collections, documents, and users.": "Możesz usunąć całą tę przestrzeń roboczą, w tym kolekcje, dokumenty i użytkowników.", "Export data": "Eksportuj dane", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Pełny eksport może zająć trochę czasu, rozważ wyeksportowanie pojedynczego dokumentu lub kolekcji. Wyeksportowane dane to archiwum zip zawierające Twoje dokumenty w formacie Markdown. Możesz opuścić tę stronę po rozpoczęciu eksportu – jeśli masz włączone powiadomienia, wyślemy link do {{ userEmail }}, gdy eksport się zakończy.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Najnowsze eksporty", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Zarządzaj funkcjami opcjonalnymi i beta. Zmiana tych ustawień wpłynie na doświadczenie wszystkich członków przestrzeni roboczej.", "Separate editing": "Osobny tryb edycji", @@ -961,7 +961,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Otrzymuj powiadomienie, gdy dokument, który subskrybujesz, lub wątek, w którym uczestniczyłeś, otrzyma komentarz", "Mentioned": "Wspomniany", "Receive a notification when someone mentions you in a document or comment": "Otrzymuj powiadomienie, gdy ktoś wspomni o Tobie w dokumencie lub komentarzu", - "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", + "Receive a notification when a comment thread you were involved in is resolved": "Otrzymaj powiadomienie, gdy wątek komentarza, w który byłeś zaangażowany, został rozwiązany", "Collection created": "Kolekcja utworzona", "Receive a notification whenever a new collection is created": "Otrzymuj powiadomienie o każdym utworzeniu nowej kolekcji", "Invite accepted": "Zaproszenie przyjęte", diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index e15d3371a5..d9dd5accf7 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -1,5 +1,5 @@ { - "New API key": "Nova chave API", + "New API key": "Nova chave de API", "Open collection": "Abrir coleção", "New collection": "Nova coleção", "Create a collection": "Criar uma coleção", @@ -176,7 +176,7 @@ "view and edit access": "acesso para visualização e edição", "view only access": "acesso apenas para visualização", "no access": "sem acesso", - "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "Você não tem permissão para mover {{ documentName }} para a coleção {{ collectionName }}", "Move document": "Mover documento", "Moving": "Movendo", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Mover o documento {{ title }} para a coleção {{ newCollectionName }} mudará a permissão para todos os membros do espaço de trabalho de {{ prevPermission }} para {{ newPermission }}.", @@ -195,8 +195,9 @@ "Default collection": "Coleção padrão", "Install now": "Instalar agora", "Deleted Collection": "Excluir Coleção", + "Untitled": "Sem título", "Unpin": "Desafixar", - "{{ minutes }}m read": "{{ minutes }}m read", + "{{ minutes }}m read": "Leitura de {{ minutes }}min", "Select a location to copy": "Selecione um local para copiar", "Document copied": "Documento copiado", "Couldn’t copy the document, try again?": "Não foi possível copiar o documento, tentar novamente?", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copiar para {{ location }}", "Search collections & documents": "Pesquisar coleções e documentos", "No results found": "Nenhum resultado encontrado", - "Untitled": "Sem título", "New": "Novo", "Only visible to you": "Visível apenas para você", "Draft": "Rascunho", @@ -382,9 +382,9 @@ "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versão atrás", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versões atrás", "Change permissions?": "Alterar permissões?", - "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} não pode ser movido dentro de {{ parentDocumentName }}", "You can't reorder documents in an alphabetically sorted collection": "Não é possível reordenar documentos em uma coleção ordenada alfabeticamente", - "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", + "The {{ documentName }} cannot be moved here": "O {{ documentName }} não pode ser movido para aqui", "Return to App": "Voltar ao aplicativo", "Installation": "Instalação", "Unstar document": "Desfavoritar documento", @@ -423,8 +423,8 @@ "Profile picture": "Imagem do perfil", "Create a new doc": "Criar um novo documento", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} não será notificado, pois não tem acesso a este documento", - "Keep as link": "Keep as link", - "Embed": "Embed", + "Keep as link": "Manter como link", + "Embed": "Incorporar", "Add column after": "Adicionar coluna depois", "Add column before": "Adicionar coluna antes", "Add row after": "Adicionar linha após", @@ -453,7 +453,7 @@ "Italic": "Itálico", "Sorry, that link won’t work for this embed type": "Desculpe, esse link não funcionará para este tipo de incorporação", "File attachment": "Arquivo anexo", - "Enter a link": "Enter a link", + "Enter a link": "Insira um link", "Big heading": "Cabeçalho grande", "Medium heading": "Cabeçalho médio", "Small heading": "Cabeçalho pequeno", @@ -573,8 +573,8 @@ "invited you to": "convidou você para", "Choose a date": "Escolhar uma data", "API key created. Please copy the value now as it will not be shown again.": "Chave de API criada. Por favor, copie o valor agora, pois ele não será mostrado novamente.", - "Scopes": "Scopes", - "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access", + "Scopes": "Escopos", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Escopos separados por espaço, restringem o acesso desta chave de API para partes específicas da API. Deixe em branco para acesso total", "Expiration": "Expiração", "Never expires": "Nunca expira", "7 days": "7 dias", @@ -597,7 +597,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupos com acesso", "Archived by {{userName}}": "Arquivado por {{userName}}", "Share": "Compartilhar", - "Overview": "Overview", + "Overview": "Visão geral", "Recently updated": "Atualizado recentemente", "Recently published": "Publicado recentemente", "Least recently updated": "Menos recentemente atualizados", @@ -767,10 +767,10 @@ "LaTeX block": "Bloco LaTeX", "Inline code": "Código embutido", "Inline LaTeX": "LaTeX em linha", - "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Triggers": "Gatilhos", + "Mention user or document": "Mencionar usuário ou documento", "Emoji": "Emoji", - "Insert block": "Insert block", + "Insert block": "Inserir bloco", "Sign In": "Entrar", "Continue with Email": "Continuar com E-mail", "Continue with {{ authProviderName }}": "Continuar com {{ authProviderName }}", @@ -833,7 +833,7 @@ "by {{ name }}": "por {{ name }}", "Last used": "Última utilização", "No expiry": "Não expira", - "Restricted scope": "Restricted scope", + "Restricted scope": "Escopo restrito", "API key copied to clipboard": "Chave da API copiada para a área de transferência", "Copied": "Copiado", "Revoking": "Revogando", @@ -932,7 +932,7 @@ "Danger": "Perigo", "You can delete this entire workspace including collections, documents, and users.": "Você pode excluir este espaço de trabalho por completo incluindo coleções, documentos e usuários.", "Export data": "Exportar dados", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Uma exportação completa pode levar algum tempo, considere exportar um único documento ou coleção. Os dados exportados são um arquivo zip de seus documentos no formato Markdown. Você pode sair desta página assim que a exportação for iniciada - se as notificações estiverem ativadas enviaremos um link por e-mail para {{ userEmail }} quando ela estiver concluída.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exportações recentes", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gerencie recursos opcionais e beta. A alteração dessas configurações afetará a experiência de todos os membros do espaço de trabalho.", "Separate editing": "Edição Separada", diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index 79c5157a02..af6b704f20 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -195,6 +195,7 @@ "Default collection": "Coleção predefinida", "Install now": "Instalar agora", "Deleted Collection": "Coleção eliminada", + "Untitled": "Sem título", "Unpin": "Tirar pino", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Procurar coleções e documentos", "No results found": "Nenhum resultado encontrado", - "Untitled": "Sem título", "New": "Novo", "Only visible to you": "Apenas visível para ti", "Draft": "Rascunho", @@ -932,7 +932,7 @@ "Danger": "Perigo", "You can delete this entire workspace including collections, documents, and users.": "Pode eliminar a área de trabalho inteira, incluindo coleções, documentos e utilizadores.", "Export data": "Exportar dados", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Uma exportação completa pode levar algum tempo, considere a esportar um único documento ou colecção. Os dados exportados é um ZIP dos seus documentos no formato Markdown. Pode abandonar esta página quando a exportação começar - se tiver notificações ativas, enviaremos um e-mail com um link para {{ userEmail }} quando estiver terminado.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exportações recentes", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gerir recursos opcionais e funcionalidades beta. Alterar estas configurações afetará a experiência de todos os membros da área de trabalho.", "Separate editing": "Alteração separada", diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index 2751e6175b..9a5bbc0a11 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -195,6 +195,7 @@ "Default collection": "Förvald samling", "Install now": "Installera nu", "Deleted Collection": "Raderad samling", + "Untitled": "Utan titel", "Unpin": "Lossa", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Sök i samlingar och dokument", "No results found": "Inga resultat hittades", - "Untitled": "Utan titel", "New": "Ny", "Only visible to you": "Endast synlig för dig", "Draft": "Utkast", @@ -932,7 +932,7 @@ "Danger": "Varning", "You can delete this entire workspace including collections, documents, and users.": "Du kan ta bort hela arbetsytan inklusive samlingar, dokument och användare.", "Export data": "Exportera data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "En fullständig export kan ta lite tid, överväga att exportera ett enda dokument eller en samling. Den exporterade datan är en zip av dina dokument i Markdown format. Du kan lämna denna sida när exporten har startat – om du har aviseringar aktiverade, vi kommer att skicka en länk till {{ userEmail }} när den är klar.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Senaste exporter", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Hantera valfria och beta-funktioner. Om du ändrar dessa inställningar kommer upplevelsen att påverka alla medlemmar i arbetsytan.", "Separate editing": "Separat redigering", diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index 54b9c970b4..54e578f797 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -195,6 +195,7 @@ "Default collection": "คอลเลคชั่นเริ่มต้น", "Install now": "Install now", "Deleted Collection": "คอลเลคชั่นที่ถูกลบ", + "Untitled": "ไม่มีชื่อ", "Unpin": "เลิกปักหมุด", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Search collections & documents", "No results found": "No results found", - "Untitled": "ไม่มีชื่อ", "New": "สร้าง", "Only visible to you": "เฉพาะคุณเท่านั้นที่เห็นสิ่งนี้", "Draft": "ฉบับร่าง", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index fe3363a10c..7a713cc02a 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -195,6 +195,7 @@ "Default collection": "Varsayılan koleksiyon", "Install now": "Install now", "Deleted Collection": "Silinmiş Koleksiyon", + "Untitled": "Başlıksız", "Unpin": "Sabitlemeyi kaldır", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Koleksiyonlarda ve belgelerde arama yapın", "No results found": "Sonuç bulunamadı", - "Untitled": "Başlıksız", "New": "Yeni", "Only visible to you": "Sadece sana görünür", "Draft": "Taslak", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Son dışa aktarmalar", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index 96ab8e2f5a..29a04ebd3b 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -195,6 +195,7 @@ "Default collection": "Колекція за замовчуванням", "Install now": "Встановити зараз", "Deleted Collection": "Видалена колекція", + "Untitled": "Без назви", "Unpin": "Відкріпити", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Пошук колекцій і документів", "No results found": "Результатів не знайдено", - "Untitled": "Без назви", "New": "Новий", "Only visible to you": "Видно лише вам", "Draft": "Чернетка", @@ -932,7 +932,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Експортувати дані", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Повний експорт може зайняти деякий час, спробуйте експортувати один документ або колекцію. Експортовані дані є архівом ваших документів у форматі Markdown. Ви можете залишити цю сторінку, коли експорт розпочнеться. Якщо у вас увімкнено сповіщення, ми надішлемо електронною поштою посилання на {{ userEmail }} , коли експорт буде завершено.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Останні експорти", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Керувати додатковими та бета-функціями. Зміна цих налаштувань вплине на роботу всіх учасників робочого простору.", "Separate editing": "Роздільне редагування", diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index eb464d2672..54815d5c2e 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -195,6 +195,7 @@ "Default collection": "Bộ sưu tập mặc định", "Install now": "Cài đặt ngay", "Deleted Collection": "Xóa Bộ Sưu Tập", + "Untitled": "Chưa đặt tên", "Unpin": "Bỏ ghim", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Tìm kiếm bộ sưu tập và tài liệu", "No results found": "Không tìm thấy kết quả", - "Untitled": "Chưa đặt tên", "New": "Mới", "Only visible to you": "Chỉ hiển thị với bạn", "Draft": "Bản nháp", @@ -932,7 +932,7 @@ "Danger": "Nguy hiểm", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Xuất dữ liệu", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Quá trình xuất toàn bộ có thể mất chút thời gian, hãy cân nhắc xuất một tài liệu hoặc bộ sưu tập. Dữ liệu đã xuất là một tệp nén của tài liệu của bạn ở định dạng Markdown. Bạn có thể rời khỏi trang này sau khi quá trình xuất bắt đầu – nếu bạn đã bật thông báo, chúng tôi sẽ gửi email một liên kết tới {{ userEmail }} khi hoàn tất.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Kết xuất gần đây", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Quản lý các tính năng tùy chọn và beta. Việc thay đổi các cài đặt này sẽ ảnh hưởng đến trải nghiệm của tất cả thành viên trong không gian làm việc.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index deaaa08d29..65d7c0dd13 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -59,7 +59,7 @@ "Copy public link": "复制公开链接", "Link copied to clipboard": "链接已复制到剪贴板", "Copy link": "复制链接", - "Copy": "拷贝", + "Copy": "复制", "Duplicate": "复制", "Duplicate document": "复制文档", "Copy document": "复制文档", @@ -195,6 +195,7 @@ "Default collection": "默认文档集", "Install now": "立即安装", "Deleted Collection": "删除文档集", + "Untitled": "无标题", "Unpin": "取消置顶", "{{ minutes }}m read": "阅读了{{ minutes }}分钟", "Select a location to copy": "选择要复制的目标位置", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "复制到 {{ location }}", "Search collections & documents": "搜索文档集和文档", "No results found": "未找到结果", - "Untitled": "无标题", "New": "新", "Only visible to you": "仅自己可见", "Draft": "草稿", @@ -382,9 +382,9 @@ "{{ releasesBehind }} versions behind": "落后 {{ releasesBehind }} 个版本", "{{ releasesBehind }} versions behind_plural": "落后 {{ releasesBehind }} 个版本", "Change permissions?": "更改权限?", - "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} 不能在 {{ parentDocumentName }} 中被移动", "You can't reorder documents in an alphabetically sorted collection": "你不能在按字母排序的文档集中排序", - "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", + "The {{ documentName }} cannot be moved here": "{{ documentName }} 不能被移动到这里", "Return to App": "返回应用", "Installation": "安装", "Unstar document": "取消收藏文档", @@ -573,8 +573,8 @@ "invited you to": "邀请你加入", "Choose a date": "选择一个日期", "API key created. Please copy the value now as it will not be shown again.": "API 密钥已创建。请现在复制值,因为它不会再次显示。", - "Scopes": "Scopes", - "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access", + "Scopes": "作用域", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "通过填写空格分割的作用域让此 API 密钥只能访问 API 的特定部分。留空以使其获得对 API 的完全访问权限", "Expiration": "过期时间", "Never expires": "永不过期", "7 days": "7 天", @@ -597,7 +597,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} 个组有访问权限", "Archived by {{userName}}": "已被 {{userName}} 存档", "Share": "分享", - "Overview": "Overview", + "Overview": "概览", "Recently updated": "最近更新", "Recently published": "最近发布", "Least recently updated": "最近最少更新", @@ -768,7 +768,7 @@ "Inline code": "行内代码", "Inline LaTeX": "行内公式", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention user or document": "提及用户或文档", "Emoji": "表情", "Insert block": "Insert block", "Sign In": "登录", @@ -833,7 +833,7 @@ "by {{ name }}": "由 {{ name }}创建", "Last used": "最后使用的", "No expiry": "没有到期", - "Restricted scope": "Restricted scope", + "Restricted scope": "受限作用域", "API key copied to clipboard": "API key 已复制到剪贴板", "Copied": "已复制", "Revoking": "吊销中", @@ -932,7 +932,7 @@ "Danger": "危险操作", "You can delete this entire workspace including collections, documents, and users.": "你可以删除整个工作区,包括文档集、文档和用户。", "Export data": "导出数据", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "完整导出可能需要一些时间,请考虑导出单个文档或文档集。导出的数据是 Markdown 格式的文档压缩包。当导出已开始时你可以离开此页面。如果你开启了通知,当导出完成后,我们会发送链接至邮箱 {{ userEmail }}。", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "最近导出", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "管理可选功能和测试功能。更改这些设置将影响工作组内所有成员的使用。", "Separate editing": "独立编辑", @@ -981,7 +981,7 @@ "Manage when and where you receive email notifications.": "管理你接收电子邮件通知的时间和地点。", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "电子邮件集成当前已禁用。请设置相关的环境变量并重新启动服务器以启用通知。", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "创建个人的 API key 以通过 API 进行身份验证并在程序上控制\n 你的工作区数据。 API key 与你的用户帐户具有相同的权限。\n 关于更多详细信息,请参阅 开发者文档。", - "Personal keys": "私人 keys", + "Personal keys": "个人密钥", "Preferences saved": "首选项已保存", "Delete account": "删除账户", "Manage settings that affect your personal experience.": "管理影响你个人体验的设置。", diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index 56012a7a23..7b9260be19 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -195,6 +195,7 @@ "Default collection": "預設文件集", "Install now": "立即安裝", "Deleted Collection": "刪除的文件集", + "Untitled": "無標題", "Unpin": "取消釘選", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "選擇要複製到的位置", @@ -204,7 +205,6 @@ "Copy to {{ location }}": "複製到{{ location }}", "Search collections & documents": "搜尋文件集與文件", "No results found": "找不到任何結果", - "Untitled": "無標題", "New": "新", "Only visible to you": "只有您可以檢視", "Draft": "草稿", @@ -932,7 +932,7 @@ "Danger": "危險", "You can delete this entire workspace including collections, documents, and users.": "您可以刪除整個工作區,包括文件集,文件,以及使用者。", "Export data": "匯出數據", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "匯出所有文件集將會需要一些時間,可以的話,請考慮匯出單一的文件或文件集。我們會將您擁有的所有文件轉換為 Markdown 格式,並封裝為一個 zip 壓縮檔。\n在匯出作業開始後您即可離開這個頁面 – 如果您有開啟通知,匯出完成時我們會透過電子郵件寄送連結到 {{ userEmail }}。", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "最近匯出的", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "管理可選和 Beta 測試的功能,更改這些設定會影響所有工作區的成員。", "Separate editing": "分開編輯", diff --git a/shared/utils/EventHelper.ts b/shared/utils/EventHelper.ts index ce488355ec..18e61735cd 100644 --- a/shared/utils/EventHelper.ts +++ b/shared/utils/EventHelper.ts @@ -1,5 +1,5 @@ export class EventHelper { - public static readonly ACTIVITY_EVENTS = [ + public static ACTIVITY_EVENTS = [ "collections.create", "collections.delete", "collections.move", @@ -20,9 +20,9 @@ export class EventHelper { "users.create", "users.demote", "userMemberships.update", - ]; + ] as const; - public static readonly AUDIT_EVENTS = [ + public static AUDIT_EVENTS = [ "api_keys.create", "api_keys.delete", "authenticationProviders.update", @@ -73,5 +73,5 @@ export class EventHelper { "fileOperations.delete", "webhookSubscriptions.create", "webhookSubscriptions.delete", - ]; + ] as const; } diff --git a/shared/validations.ts b/shared/validations.ts index 47aa863ee4..d00e8898b1 100644 --- a/shared/validations.ts +++ b/shared/validations.ts @@ -29,7 +29,7 @@ export const ApiKeyValidation = { export const CollectionValidation = { /** The maximum length of the collection description */ - maxDescriptionLength: 10 * 1000, + maxDescriptionLength: 100 * 1000, /** The maximum length of the collection name */ maxNameLength: 100, diff --git a/yarn.lock b/yarn.lock index 93174d7d90..e5bd9484e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -105,35 +105,35 @@ "@smithy/util-utf8" "^2.0.0" tslib "^2.6.2" -"@aws-sdk/client-s3@3.740.0": - version "3.740.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-s3/-/client-s3-3.740.0.tgz#cfe1caa6e746376119e16bcba54b6dde03ab6d10" - integrity sha512-X9aQOFJC3TsYwQP3AGcNhfYcFehVEHRKCHtHYOIKv5t1ydSJxpN/v34OrMMKvG1jFWMNkSYiSCVB9ZVo9KUwVA== +"@aws-sdk/client-s3@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-s3/-/client-s3-3.749.0.tgz#48d486b8baa87f20f2d3aceba82f947b3c95eef9" + integrity sha512-Xi+DaBeYRIa2d+1QTAlBdbRIc9j3+H+H5aMbxIrlyIYE2NOz+4fhIgpUYuF4ln63p9Fby5Wh36DhHJYyN4uE0w== dependencies: "@aws-crypto/sha1-browser" "5.2.0" "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.734.0" - "@aws-sdk/credential-provider-node" "3.738.0" + "@aws-sdk/core" "3.749.0" + "@aws-sdk/credential-provider-node" "3.749.0" "@aws-sdk/middleware-bucket-endpoint" "3.734.0" "@aws-sdk/middleware-expect-continue" "3.734.0" - "@aws-sdk/middleware-flexible-checksums" "3.735.0" + "@aws-sdk/middleware-flexible-checksums" "3.749.0" "@aws-sdk/middleware-host-header" "3.734.0" "@aws-sdk/middleware-location-constraint" "3.734.0" "@aws-sdk/middleware-logger" "3.734.0" "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-sdk-s3" "3.740.0" + "@aws-sdk/middleware-sdk-s3" "3.749.0" "@aws-sdk/middleware-ssec" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.734.0" + "@aws-sdk/middleware-user-agent" "3.749.0" "@aws-sdk/region-config-resolver" "3.734.0" - "@aws-sdk/signature-v4-multi-region" "3.740.0" + "@aws-sdk/signature-v4-multi-region" "3.749.0" "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.734.0" + "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.734.0" + "@aws-sdk/util-user-agent-node" "3.749.0" "@aws-sdk/xml-builder" "3.734.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.1" + "@smithy/core" "^3.1.3" "@smithy/eventstream-serde-browser" "^4.0.1" "@smithy/eventstream-serde-config-resolver" "^4.0.1" "@smithy/eventstream-serde-node" "^4.0.1" @@ -144,129 +144,129 @@ "@smithy/invalid-dependency" "^4.0.1" "@smithy/md5-js" "^4.0.1" "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.2" - "@smithy/middleware-retry" "^4.0.3" - "@smithy/middleware-serde" "^4.0.1" + "@smithy/middleware-endpoint" "^4.0.4" + "@smithy/middleware-retry" "^4.0.5" + "@smithy/middleware-serde" "^4.0.2" "@smithy/middleware-stack" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" "@smithy/node-http-handler" "^4.0.2" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.4" "@smithy/types" "^4.1.0" "@smithy/url-parser" "^4.0.1" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.3" - "@smithy/util-defaults-mode-node" "^4.0.3" + "@smithy/util-defaults-mode-browser" "^4.0.5" + "@smithy/util-defaults-mode-node" "^4.0.5" "@smithy/util-endpoints" "^3.0.1" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" - "@smithy/util-stream" "^4.0.2" + "@smithy/util-stream" "^4.1.0" "@smithy/util-utf8" "^4.0.0" "@smithy/util-waiter" "^4.0.2" tslib "^2.6.2" -"@aws-sdk/client-sso@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.734.0.tgz#789c98267f07aaa7155b404d0bfd4059c4b4deb9" - integrity sha512-oerepp0mut9VlgTwnG5Ds/lb0C0b2/rQ+hL/rF6q+HGKPfGsCuPvFx1GtwGKCXd49ase88/jVgrhcA9OQbz3kg== +"@aws-sdk/client-sso@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.749.0.tgz#533ca94a89409e73c677cbac4f57e6e98a4c92d0" + integrity sha512-ecmuDu8EPya1LDpGRtpgN7C9PHayDh8EaW37ZBKhuxA7cg099yvTFqsGngwRXbhNjKJ4oVa9OUe0EDnu60atYA== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/middleware-host-header" "3.734.0" "@aws-sdk/middleware-logger" "3.734.0" "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.734.0" + "@aws-sdk/middleware-user-agent" "3.749.0" "@aws-sdk/region-config-resolver" "3.734.0" "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.734.0" + "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.734.0" + "@aws-sdk/util-user-agent-node" "3.749.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.1" + "@smithy/core" "^3.1.3" "@smithy/fetch-http-handler" "^5.0.1" "@smithy/hash-node" "^4.0.1" "@smithy/invalid-dependency" "^4.0.1" "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.2" - "@smithy/middleware-retry" "^4.0.3" - "@smithy/middleware-serde" "^4.0.1" + "@smithy/middleware-endpoint" "^4.0.4" + "@smithy/middleware-retry" "^4.0.5" + "@smithy/middleware-serde" "^4.0.2" "@smithy/middleware-stack" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" "@smithy/node-http-handler" "^4.0.2" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.4" "@smithy/types" "^4.1.0" "@smithy/url-parser" "^4.0.1" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.3" - "@smithy/util-defaults-mode-node" "^4.0.3" + "@smithy/util-defaults-mode-browser" "^4.0.5" + "@smithy/util-defaults-mode-node" "^4.0.5" "@smithy/util-endpoints" "^3.0.1" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@aws-sdk/core@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.734.0.tgz#fa2289750efd75f4fb8c45719a4a4ea7e7755160" - integrity sha512-SxnDqf3vobdm50OLyAKfqZetv6zzwnSqwIwd3jrbopxxHKqNIM/I0xcYjD6Tn+mPig+u7iRKb9q3QnEooFTlmg== +"@aws-sdk/core@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.749.0.tgz#27bc3403cdbe17913b00b73f4de7a05f85dad408" + integrity sha512-w5Jj573+XKwrDNZUjUJDXL5upx+RCw64TLq3Zk8FVg9MsgkzAPorQ9qmzffi6os+PWngd3pFmD8q5y+Y35LpFQ== dependencies: "@aws-sdk/types" "3.734.0" - "@smithy/core" "^3.1.1" + "@smithy/core" "^3.1.3" "@smithy/node-config-provider" "^4.0.1" "@smithy/property-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/signature-v4" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.4" "@smithy/types" "^4.1.0" "@smithy/util-middleware" "^4.0.1" fast-xml-parser "4.4.1" tslib "^2.6.2" -"@aws-sdk/credential-provider-env@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.734.0.tgz#6c0b1734764a7fb1616455836b1c3dacd99e50a3" - integrity sha512-gtRkzYTGafnm1FPpiNO8VBmJrYMoxhDlGPYDVcijzx3DlF8dhWnowuSBCxLSi+MJMx5hvwrX2A+e/q0QAeHqmw== +"@aws-sdk/credential-provider-env@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.749.0.tgz#cc810d9b1f949f1bb8c37af1165cf515862d7003" + integrity sha512-bhB1ds5QzcSfmCTbjVessXy8xHJROota6wOhFtBsL1aZRQyNN2a9h2QS6xkxjmqVE3yHBsPz+OiSOeLn0kxm7Q== dependencies: - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-http@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.734.0.tgz#21c5fbb380d1dd503491897b346e1e0b1d06ae41" - integrity sha512-JFSL6xhONsq+hKM8xroIPhM5/FOhiQ1cov0lZxhzZWj6Ai3UAjucy3zyIFDr9MgP1KfCYNdvyaUq9/o+HWvEDg== +"@aws-sdk/credential-provider-http@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.749.0.tgz#d5efad8fce2a10e7d8b861075f2878e78f86c795" + integrity sha512-enFGT8uvETbE6+4bDA2aTOrA/83GrIVPpg2g2r7MwJb36jreXA3KDXaP/5jQsxyIZW70cnYNl/Cawdd4ZXs7CQ== dependencies: - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/fetch-http-handler" "^5.0.1" "@smithy/node-http-handler" "^4.0.2" "@smithy/property-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.4" "@smithy/types" "^4.1.0" - "@smithy/util-stream" "^4.0.2" + "@smithy/util-stream" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-ini@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.734.0.tgz#5769ae28cd255d4fc946799c0273b4af6f2f12bb" - integrity sha512-HEyaM/hWI7dNmb4NhdlcDLcgJvrilk8G4DQX6qz0i4pBZGC2l4iffuqP8K6ZQjUfz5/6894PzeFuhTORAMd+cg== +"@aws-sdk/credential-provider-ini@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.749.0.tgz#36db051f7a00236fef64fcb8705ed3c17eeaf480" + integrity sha512-OB4AGK61lQdoW2mTmaMBw8L+eBo7wF3YJZXwqFI7M2cQe9WtfuKGIxbYWMBMzoLvEtmsbzeppoZZUezooaIclg== dependencies: - "@aws-sdk/core" "3.734.0" - "@aws-sdk/credential-provider-env" "3.734.0" - "@aws-sdk/credential-provider-http" "3.734.0" - "@aws-sdk/credential-provider-process" "3.734.0" - "@aws-sdk/credential-provider-sso" "3.734.0" - "@aws-sdk/credential-provider-web-identity" "3.734.0" - "@aws-sdk/nested-clients" "3.734.0" + "@aws-sdk/core" "3.749.0" + "@aws-sdk/credential-provider-env" "3.749.0" + "@aws-sdk/credential-provider-http" "3.749.0" + "@aws-sdk/credential-provider-process" "3.749.0" + "@aws-sdk/credential-provider-sso" "3.749.0" + "@aws-sdk/credential-provider-web-identity" "3.749.0" + "@aws-sdk/nested-clients" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/credential-provider-imds" "^4.0.1" "@smithy/property-provider" "^4.0.1" @@ -274,17 +274,17 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-node@3.738.0": - version "3.738.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.738.0.tgz#0a470fc4d2e791c26da57261b8b14f07de43cd74" - integrity sha512-3MuREsazwBxghKb2sQQHvie+uuK4dX4/ckFYiSoffzJQd0YHxaGxf8cr4NOSCQCUesWu8D3Y0SzlnHGboVSkpA== +"@aws-sdk/credential-provider-node@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.749.0.tgz#b21b241fede2125f99da2e6d652368a3f216a36b" + integrity sha512-1QGstZmGmgmY0rLSTAURlBJdR4s2PRYiZh6dS4HkzzQu7xVDWoCMD+2F7dolsNA8ChTNx2OvBW80n3O9QPICCg== dependencies: - "@aws-sdk/credential-provider-env" "3.734.0" - "@aws-sdk/credential-provider-http" "3.734.0" - "@aws-sdk/credential-provider-ini" "3.734.0" - "@aws-sdk/credential-provider-process" "3.734.0" - "@aws-sdk/credential-provider-sso" "3.734.0" - "@aws-sdk/credential-provider-web-identity" "3.734.0" + "@aws-sdk/credential-provider-env" "3.749.0" + "@aws-sdk/credential-provider-http" "3.749.0" + "@aws-sdk/credential-provider-ini" "3.749.0" + "@aws-sdk/credential-provider-process" "3.749.0" + "@aws-sdk/credential-provider-sso" "3.749.0" + "@aws-sdk/credential-provider-web-identity" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/credential-provider-imds" "^4.0.1" "@smithy/property-provider" "^4.0.1" @@ -292,61 +292,61 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-process@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.734.0.tgz#eb1de678a9c3d2d7b382e74a670fa283327f9c45" - integrity sha512-zvjsUo+bkYn2vjT+EtLWu3eD6me+uun+Hws1IyWej/fKFAqiBPwyeyCgU7qjkiPQSXqk1U9+/HG9IQ6Iiz+eBw== +"@aws-sdk/credential-provider-process@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.749.0.tgz#ee83034d51779394217863616f75f888fdf8c459" + integrity sha512-C/cgg/AhRabybZRY9mJ6KDz8uqfasWKuFIFGzTpeb/MIDIL53ZqP61CspiQJTRvC4zlFGqvm43XefphfrBGGlQ== dependencies: - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-sso@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.734.0.tgz#68a9d678319e9743d65cf59e2d29c0c440d8975c" - integrity sha512-cCwwcgUBJOsV/ddyh1OGb4gKYWEaTeTsqaAK19hiNINfYV/DO9r4RMlnWAo84sSBfJuj9shUNsxzyoe6K7R92Q== +"@aws-sdk/credential-provider-sso@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.749.0.tgz#0d0a4a8c0db630efab8aeedaa994e4a939b5ab9d" + integrity sha512-bQNgWcYk10fYOvFwcLskYYVNLO3KMgmV1ip9ieapJb9JDg6bSBaXNjIDhdpK4biTOfrV+adtDO5EU93ogpmAWA== dependencies: - "@aws-sdk/client-sso" "3.734.0" - "@aws-sdk/core" "3.734.0" - "@aws-sdk/token-providers" "3.734.0" + "@aws-sdk/client-sso" "3.749.0" + "@aws-sdk/core" "3.749.0" + "@aws-sdk/token-providers" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-web-identity@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.734.0.tgz#666b61cc9f498a3aaecd8e38c9ae34aef37e2e64" - integrity sha512-t4OSOerc+ppK541/Iyn1AS40+2vT/qE+MFMotFkhCgCJbApeRF2ozEdnDN6tGmnl4ybcUuxnp9JWLjwDVlR/4g== +"@aws-sdk/credential-provider-web-identity@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.749.0.tgz#1869159d76ae4a7604391fb98efe3073111617fb" + integrity sha512-jzHk6i4G4dnXL+L+qeILguDCiIhA1rNvJzB5lTts4R8OdmNkG12bGbYL8bL4O1b5qCimlo7HS0IZIby0pS7rcg== dependencies: - "@aws-sdk/core" "3.734.0" - "@aws-sdk/nested-clients" "3.734.0" + "@aws-sdk/core" "3.749.0" + "@aws-sdk/nested-clients" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/crt-loader@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/crt-loader/-/crt-loader-3.734.0.tgz#a34ccbb7fb59bbbf98c96a9e1c9aa9935f9aa273" - integrity sha512-OIjMDTH5bbPAS0gvOKU4D9BEaNvAQ48ugj83RhlxqGuX9MBjkDB7i/faPwYWX1SJUMNWX+GMn4mW4sq+9HXvsA== +"@aws-sdk/crt-loader@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/crt-loader/-/crt-loader-3.749.0.tgz#8f6cb04b4dd026f3b7cbd17566b178043efff0e3" + integrity sha512-HLakuc/wWQbeG2VfHS6UHflV0HbTDnLQrooOu0RgQaGmmXxcyx26lPGMtxsAylSQ2+Rw1p55ViIal27pclf0gQ== dependencies: - "@aws-sdk/util-user-agent-node" "3.734.0" + "@aws-sdk/util-user-agent-node" "3.749.0" aws-crt "^1.24.0" tslib "^2.6.2" -"@aws-sdk/lib-storage@3.740.0": - version "3.740.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/lib-storage/-/lib-storage-3.740.0.tgz#b638e04da8f5a79ac4b29fd1208d317756457484" - integrity sha512-UFCxl7hSYHmHsWvKs3LYLUVPgLfiP0hZhAZbun1gVwmi+3eB3bBXmr/EwPxP4eqMAsdeIOBAgxGNxylgx16m8w== +"@aws-sdk/lib-storage@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/lib-storage/-/lib-storage-3.749.0.tgz#029a2dc2692aff4522f832fc06148bfa7323fb36" + integrity sha512-eYvsRWzukHeZ3k/hFt66or33JJg5zAm/jtstbxZaKRq/H1VfWkKh1QyQHu0UiOXZnjEkTFNJujwGME8JmAWpRg== dependencies: "@smithy/abort-controller" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.2" - "@smithy/smithy-client" "^4.1.2" + "@smithy/middleware-endpoint" "^4.0.4" + "@smithy/smithy-client" "^4.1.4" buffer "5.6.0" events "3.3.0" stream-browserify "3.0.0" @@ -375,22 +375,22 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/middleware-flexible-checksums@3.735.0": - version "3.735.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.735.0.tgz#e83850711d6750df764d7cf3a1a8434fe91f1fb9" - integrity sha512-Tx7lYTPwQFRe/wQEHMR6Drh/S+X0ToAEq1Ava9QyxV1riwtepzRLojpNDELFb3YQVVYbX7FEiBMCJLMkmIIY+A== +"@aws-sdk/middleware-flexible-checksums@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.749.0.tgz#264fe1621d23e1c8c4ff4b5bc1c7ad09dff2d979" + integrity sha512-LebOuHbO5BPeke0EB7I7aU7EK807XEyHeCQ3El4CztkGr7cY37PiYP5E0bsSs/4dlK534en/oD0dBA82gZ3xcg== dependencies: "@aws-crypto/crc32" "5.2.0" "@aws-crypto/crc32c" "5.2.0" "@aws-crypto/util" "5.2.0" - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/is-array-buffer" "^4.0.0" "@smithy/node-config-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" "@smithy/util-middleware" "^4.0.1" - "@smithy/util-stream" "^4.0.2" + "@smithy/util-stream" "^4.1.0" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -432,23 +432,23 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/middleware-sdk-s3@3.740.0": - version "3.740.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.740.0.tgz#82b9cb808194a65080009ef586980fdec29b41ab" - integrity sha512-VML9TzNoQdAs5lSPQSEgZiPgMUSz2H7SltaLb9g4tHwKK5xQoTq5WcDd6V1d2aPxSN5Q2Q63aiVUBby6MdUN/Q== +"@aws-sdk/middleware-sdk-s3@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.749.0.tgz#46da5e9cbf6dc5318f94e4383e7de7f859780e69" + integrity sha512-A7OaNkSFzI2vCRarSKEzoVejAyiLY1M1Z6PR3TE2woAPUUAgRv5UlFOXSymBx1Ya3HUQzWky7mnpnKAFyRGzSg== dependencies: - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-arn-parser" "3.723.0" - "@smithy/core" "^3.1.1" + "@smithy/core" "^3.1.3" "@smithy/node-config-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/signature-v4" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.4" "@smithy/types" "^4.1.0" "@smithy/util-config-provider" "^4.0.0" "@smithy/util-middleware" "^4.0.1" - "@smithy/util-stream" "^4.0.2" + "@smithy/util-stream" "^4.1.0" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -461,57 +461,57 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/middleware-user-agent@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.734.0.tgz#12d400ccb98593f2b02e4fb08239cb9835d41d3a" - integrity sha512-MFVzLWRkfFz02GqGPjqSOteLe5kPfElUrXZft1eElnqulqs6RJfVSpOV7mO90gu293tNAeggMWAVSGRPKIYVMg== +"@aws-sdk/middleware-user-agent@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.749.0.tgz#05960c434c4129ccbcb45d2fd369c8d6c135738d" + integrity sha512-dNRkZtiM8OoGb/h2Fgrgvty9ltYEubzsD5FH+VN14RrluertLQMmqHrgvq7JoAXFf7MJy+uwhRu4V6pf1sZR/w== dependencies: - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.734.0" - "@smithy/core" "^3.1.1" + "@aws-sdk/util-endpoints" "3.743.0" + "@smithy/core" "^3.1.3" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/nested-clients@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.734.0.tgz#10a116d141522341c446b11783551ef863aabd27" - integrity sha512-iph2XUy8UzIfdJFWo1r0Zng9uWj3253yvW9gljhtu+y/LNmNvSnJxQk1f3D2BC5WmcoPZqTS3UsycT3mLPSzWA== +"@aws-sdk/nested-clients@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.749.0.tgz#61006646246d916822fc82c6f7d637358bae83e3" + integrity sha512-5L8OuVojcVQAZw+iVXTaw88AZTlMw8fD51lB6spzbZdNLl6dd5Iz1JVJAOUl2mTAZXRiN5Q9VECwY1yMgWweAw== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.734.0" + "@aws-sdk/core" "3.749.0" "@aws-sdk/middleware-host-header" "3.734.0" "@aws-sdk/middleware-logger" "3.734.0" "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.734.0" + "@aws-sdk/middleware-user-agent" "3.749.0" "@aws-sdk/region-config-resolver" "3.734.0" "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.734.0" + "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.734.0" + "@aws-sdk/util-user-agent-node" "3.749.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.1" + "@smithy/core" "^3.1.3" "@smithy/fetch-http-handler" "^5.0.1" "@smithy/hash-node" "^4.0.1" "@smithy/invalid-dependency" "^4.0.1" "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.2" - "@smithy/middleware-retry" "^4.0.3" - "@smithy/middleware-serde" "^4.0.1" + "@smithy/middleware-endpoint" "^4.0.4" + "@smithy/middleware-retry" "^4.0.5" + "@smithy/middleware-serde" "^4.0.2" "@smithy/middleware-stack" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" "@smithy/node-http-handler" "^4.0.2" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.4" "@smithy/types" "^4.1.0" "@smithy/url-parser" "^4.0.1" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.3" - "@smithy/util-defaults-mode-node" "^4.0.3" + "@smithy/util-defaults-mode-browser" "^4.0.5" + "@smithy/util-defaults-mode-node" "^4.0.5" "@smithy/util-endpoints" "^3.0.1" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" @@ -530,42 +530,42 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@aws-sdk/s3-presigned-post@3.740.0": - version "3.740.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/s3-presigned-post/-/s3-presigned-post-3.740.0.tgz#4a63fadd46560cad5164c749a4c91b4b5db520c1" - integrity sha512-1n5rx1pNWDdMrQF2kH+XD6cmnNzKhv29U7EsSiRFCtzCZJTJRxD1MY1map5w3fnM+oZEQCiJbSU91GJ+qoszpg== +"@aws-sdk/s3-presigned-post@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/s3-presigned-post/-/s3-presigned-post-3.749.0.tgz#c752effdd6012cea25661b844a12189a65233357" + integrity sha512-CpIP8PhXLt/ooEqhaRsxF+gcOB83p+TkAqdqgxp2SJhsIvHqEwjjhrk31IZe1IXDMjpgbt6VvZ2lGJLAUBytNw== dependencies: - "@aws-sdk/client-s3" "3.740.0" + "@aws-sdk/client-s3" "3.749.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-format-url" "3.734.0" - "@smithy/middleware-endpoint" "^4.0.2" + "@smithy/middleware-endpoint" "^4.0.4" "@smithy/signature-v4" "^5.0.1" "@smithy/types" "^4.1.0" "@smithy/util-hex-encoding" "^4.0.0" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@aws-sdk/s3-request-presigner@3.740.0": - version "3.740.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/s3-request-presigner/-/s3-request-presigner-3.740.0.tgz#e6b06d32cec688885837975f557b14033fd91a6e" - integrity sha512-paU+phZ2msCNUaGfVEaRqyRm2OmcD1YLWxs8PVgJhkBMEHbXGaorhXLZuGN4dG8FYMtAJP1tCEFQwq999KVm7g== +"@aws-sdk/s3-request-presigner@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/s3-request-presigner/-/s3-request-presigner-3.749.0.tgz#f5ff8e2bd2372ee40f2008c5cb5cf705547381f9" + integrity sha512-ZUBBJvKGXNuLTsHymBjGsr6WoouRVojURouAc8ueePWxTCt0u/mOOP0KRFVfwmM166YMr+QWr/ym4bJ8aHLAkA== dependencies: - "@aws-sdk/signature-v4-multi-region" "3.740.0" + "@aws-sdk/signature-v4-multi-region" "3.749.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-format-url" "3.734.0" - "@smithy/middleware-endpoint" "^4.0.2" + "@smithy/middleware-endpoint" "^4.0.4" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.4" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/signature-v4-crt@^3.740.0": - version "3.740.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-crt/-/signature-v4-crt-3.740.0.tgz#b7f146257ac29313d1302424c4f18b486ab1dcd3" - integrity sha512-Ea0cusPlsYcHJsEtonUqAMvM0BtWyiK01DQ3MTTZGtbMURUHWSYNkwGUgBjHNqv4SVGu/wIsoaC5K249O0Qalw== +"@aws-sdk/signature-v4-crt@^3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-crt/-/signature-v4-crt-3.749.0.tgz#0f70b8c2e648377eff6cf6fb5e31852e419b5578" + integrity sha512-h1cOkh7q8Q26Fx4CrxZEGORtZM0J2J33zTOQ97Rl/CL0Wyp9tGthC7lb7205iJcaZXQ40YL2qzqPdUzlAldCtg== dependencies: - "@aws-sdk/crt-loader" "3.734.0" - "@aws-sdk/signature-v4-multi-region" "3.740.0" + "@aws-sdk/crt-loader" "3.749.0" + "@aws-sdk/signature-v4-multi-region" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/querystring-parser" "^4.0.1" "@smithy/signature-v4" "^5.0.1" @@ -573,24 +573,24 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@aws-sdk/signature-v4-multi-region@3.740.0": - version "3.740.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.740.0.tgz#f524c1b68e055690d8b3fdc8ab8cd8e659286b62" - integrity sha512-w+psidN3i+kl51nQEV3V+fKjKUqcEbqUA1GtubruDBvBqrl5El/fU2NF3Lo53y8CfI9wCdf3V7KOEpHIqxHNng== +"@aws-sdk/signature-v4-multi-region@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.749.0.tgz#20d6868de7ce3cb0f16369f19836b6b119a7e1d8" + integrity sha512-8ZR3vnJn1Tgg/qpalkyQMUILzZhw6XV1aCDxYMevqHYu6/f0ujvytJjiUd+j92sfxgN781f6bWpt/jVY0jarxg== dependencies: - "@aws-sdk/middleware-sdk-s3" "3.740.0" + "@aws-sdk/middleware-sdk-s3" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/protocol-http" "^5.0.1" "@smithy/signature-v4" "^5.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/token-providers@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.734.0.tgz#8880e94f21457fe5dd7074ecc52fdd43180cbb2c" - integrity sha512-2U6yWKrjWjZO8Y5SHQxkFvMVWHQWbS0ufqfAIBROqmIZNubOL7jXCiVdEFekz6MZ9LF2tvYGnOW4jX8OKDGfIw== +"@aws-sdk/token-providers@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.749.0.tgz#a679c011edca66a3f4fe4ef5a051204c2ddeba9a" + integrity sha512-s3ExVWoNZan6U7ljMqjiHq3bOe4EqL+U+cVPwqNxAsMaJpGyCiA8VQFlXNGg0EPAFbz/0DVBcozYht6/vyH3sg== dependencies: - "@aws-sdk/nested-clients" "3.734.0" + "@aws-sdk/nested-clients" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" @@ -612,10 +612,10 @@ dependencies: tslib "^2.6.2" -"@aws-sdk/util-endpoints@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.734.0.tgz#43bac42a21a45477a386ccf398028e7f793bc217" - integrity sha512-w2+/E88NUbqql6uCVAsmMxDQKu7vsKV0KqhlQb0lL+RCq4zy07yXYptVNs13qrnuTfyX7uPXkXrlugvK9R1Ucg== +"@aws-sdk/util-endpoints@3.743.0": + version "3.743.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.743.0.tgz#fba654e0c5f1c8ba2b3e175dfee8e3ba4df2394a" + integrity sha512-sN1l559zrixeh5x+pttrnd0A3+r34r0tmPkJ/eaaMaAzXqsmKU/xYre9K3FNnsSS1J1k4PEfk/nHDTVUgFYjnw== dependencies: "@aws-sdk/types" "3.734.0" "@smithy/types" "^4.1.0" @@ -649,12 +649,12 @@ bowser "^2.11.0" tslib "^2.6.2" -"@aws-sdk/util-user-agent-node@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.734.0.tgz#d5c6ee192cea9d53a871178a2669b8b4dea39a68" - integrity sha512-c6Iinh+RVQKs6jYUFQ64htOU2HUXFQ3TVx+8Tu3EDF19+9vzWi9UukhIMH9rqyyEXIAkk9XL7avt8y2Uyw2dGA== +"@aws-sdk/util-user-agent-node@3.749.0": + version "3.749.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.749.0.tgz#4b02afd8ce9170f799bc8fa0a7037c1af9a24d87" + integrity sha512-uBzolGGrwvZKhpYlGIy9tw6gRdqVs2zyjjXUiifdgbr3WiQXJe8sE1KhLjzyN/VOPcZB0rY34ybqiKEDOymOeQ== dependencies: - "@aws-sdk/middleware-user-agent" "3.734.0" + "@aws-sdk/middleware-user-agent" "3.749.0" "@aws-sdk/types" "3.734.0" "@smithy/node-config-provider" "^4.0.1" "@smithy/types" "^4.1.0" @@ -691,7 +691,7 @@ "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3" chokidar "^3.6.0" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.25.9", "@babel/code-frame@^7.26.2": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.26.2": version "7.26.2" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.26.2.tgz#4b5fab97d33338eff916235055f0ebc21e573a85" integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== @@ -700,44 +700,44 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.5.tgz#df93ac37f4417854130e21d72c66ff3d4b897fc7" - integrity sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg== +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.26.5", "@babel/compat-data@^7.26.8": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.8.tgz#821c1d35641c355284d4a870b8a4a7b0c141e367" + integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.20.12", "@babel/core@^7.24.4", "@babel/core@^7.26.7": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.7.tgz#0439347a183b97534d52811144d763a17f9d2b24" - integrity sha512-SRijHmF0PSPgLIBYlWnG0hyeJLwXE2CgpsXaMOrtt2yp9/86ALw6oUlj9KYuZ0JN07T4eBMVIW4li/9S1j2BGA== +"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.20.12", "@babel/core@^7.24.4", "@babel/core@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.9.tgz#71838542a4b1e49dfed353d7acbc6eb89f4a76f2" + integrity sha512-lWBYIrF7qK5+GjY5Uy+/hEgp8OJWOD/rpy74GplYRhEauvbHDeFB8t5hPOZxCZ0Oxf4Cc36tK51/l3ymJysrKw== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.5" + "@babel/generator" "^7.26.9" "@babel/helper-compilation-targets" "^7.26.5" "@babel/helper-module-transforms" "^7.26.0" - "@babel/helpers" "^7.26.7" - "@babel/parser" "^7.26.7" - "@babel/template" "^7.25.9" - "@babel/traverse" "^7.26.7" - "@babel/types" "^7.26.7" + "@babel/helpers" "^7.26.9" + "@babel/parser" "^7.26.9" + "@babel/template" "^7.26.9" + "@babel/traverse" "^7.26.9" + "@babel/types" "^7.26.9" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.26.5", "@babel/generator@^7.7.2": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.5.tgz#e44d4ab3176bbcaf78a5725da5f1dc28802a9458" - integrity sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw== +"@babel/generator@^7.26.9", "@babel/generator@^7.7.2": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.9.tgz#75a9482ad3d0cc7188a537aa4910bc59db67cbca" + integrity sha512-kEWdzjOAUMW4hAyrzJ0ZaTOu9OmpyDIQicIh0zg0EEcEkYXZb2TjtBhnHi2ViX7PKwZqF4xwqfAm299/QMP3lg== dependencies: - "@babel/parser" "^7.26.5" - "@babel/types" "^7.26.5" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" -"@babel/helper-annotate-as-pure@^7.22.5", "@babel/helper-annotate-as-pure@^7.25.7", "@babel/helper-annotate-as-pure@^7.25.9": +"@babel/helper-annotate-as-pure@^7.22.5", "@babel/helper-annotate-as-pure@^7.25.9": version "7.25.9" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz#d8eac4d2dc0d7b6e11fa6e535332e0d3184f06b4" integrity sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g== @@ -768,16 +768,7 @@ "@babel/traverse" "^7.25.9" semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.18.6": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.7.tgz#dcb464f0e2cdfe0c25cc2a0a59c37ab940ce894e" - integrity sha512-byHhumTj/X47wJ6C6eLpK7wW/WBEcnUeb7D0FNc/jFQnQVw7DOso3Zz5u9x/zLrFVkHa89ZGDbkAa1D54NdrCQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.7" - regexpu-core "^6.1.1" - semver "^6.3.1" - -"@babel/helper-create-regexp-features-plugin@^7.25.9": +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.25.9": version "7.26.3" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz#5169756ecbe1d95f7866b90bb555b022595302a0" integrity sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong== @@ -800,10 +791,10 @@ resolve "^1.14.2" semver "^6.1.2" -"@babel/helper-define-polyfill-provider@^0.6.2": - version "0.6.2" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d" - integrity sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ== +"@babel/helper-define-polyfill-provider@^0.6.2", "@babel/helper-define-polyfill-provider@^0.6.3": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz#f4f2792fae2ef382074bc2d713522cf24e6ddb21" + integrity sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg== dependencies: "@babel/helper-compilation-targets" "^7.22.6" "@babel/helper-plugin-utils" "^7.22.5" @@ -843,7 +834,7 @@ dependencies: "@babel/types" "^7.25.9" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.26.5", "@babel/helper-plugin-utils@^7.8.0": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.26.5", "@babel/helper-plugin-utils@^7.8.0": version "7.26.5" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== @@ -898,20 +889,20 @@ "@babel/traverse" "^7.25.9" "@babel/types" "^7.25.9" -"@babel/helpers@^7.26.7": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.7.tgz#fd1d2a7c431b6e39290277aacfd8367857c576a4" - integrity sha512-8NHiL98vsi0mbPQmYAGWwfcFaOy4j2HY49fXJCfuDcdE7fMIsH9a7GdaeXpIBsbT7307WU8KCMp5pUVDNL4f9A== +"@babel/helpers@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.9.tgz#28f3fb45252fc88ef2dc547c8a911c255fc9fef6" + integrity sha512-Mz/4+y8udxBKdmzt/UjPACs4G3j5SshJJEFFKxlCGPydG4JAHXxjWjAwjd09tf6oINvl1VfMJo+nB7H2YKQ0dA== dependencies: - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.7" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.9" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.25.9", "@babel/parser@^7.26.5", "@babel/parser@^7.26.7", "@babel/parser@^7.7.0": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.7.tgz#e114cd099e5f7d17b05368678da0fb9f69b3385c" - integrity sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.26.9", "@babel/parser@^7.7.0": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.9.tgz#d9e78bee6dc80f9efd8f2349dcfbbcdace280fd5" + integrity sha512-81NWa1njQblgZbQHxWHpxxCzNsa3ZwvFqpUg7P+NNUU6f3UU2jBEg4OlF/J6rl8+PQGh1q6/zWScd001YwcA5A== dependencies: - "@babel/types" "^7.26.7" + "@babel/types" "^7.26.9" "@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.25.9": version "7.25.9" @@ -1078,20 +1069,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.25.9": +"@babel/plugin-syntax-typescript@^7.25.9", "@babel/plugin-syntax-typescript@^7.7.2": version "7.25.9" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz#67dda2b74da43727cf21d46cf9afef23f4365399" integrity sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ== dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-syntax-typescript@^7.7.2": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz#b3bcc51f396d15f3591683f90239de143c076844" - integrity sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-unicode-sets-regex@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357" @@ -1107,14 +1091,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-transform-async-generator-functions@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz#1b18530b077d18a407c494eb3d1d72da505283a2" - integrity sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw== +"@babel/plugin-transform-async-generator-functions@^7.26.8": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.26.8.tgz#5e3991135e3b9c6eaaf5eff56d1ae5a11df45ff8" + integrity sha512-He9Ej2X7tNf2zdKMAGOsmg2MrFc+hfoAhd3po4cWfo/NWjzEAKa0oQruj1ROVUdl0e6fb6/kE/G3SSxE0lRJOg== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.26.5" "@babel/helper-remap-async-to-generator" "^7.25.9" - "@babel/traverse" "^7.25.9" + "@babel/traverse" "^7.26.8" "@babel/plugin-transform-async-to-generator@^7.25.9": version "7.25.9" @@ -1226,12 +1210,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-transform-for-of@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz#4bdc7d42a213397905d89f02350c5267866d5755" - integrity sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A== +"@babel/plugin-transform-for-of@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz#27231f79d5170ef33b5111f07fe5cafeb2c96a56" + integrity sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.26.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" "@babel/plugin-transform-function-name@^7.25.9": @@ -1501,12 +1485,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-transform-template-literals@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz#6dbd4a24e8fad024df76d1fac6a03cf413f60fe1" - integrity sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw== +"@babel/plugin-transform-template-literals@^7.26.8": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.26.8.tgz#966b15d153a991172a540a69ad5e1845ced990b5" + integrity sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.26.5" "@babel/plugin-transform-typeof-symbol@^7.26.7": version "7.26.7" @@ -1557,12 +1541,12 @@ "@babel/helper-create-regexp-features-plugin" "^7.25.9" "@babel/helper-plugin-utils" "^7.25.9" -"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.26.7": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.26.7.tgz#24d38e211f4570b8d806337035cc3ae798e0c36d" - integrity sha512-Ycg2tnXwixaXOVb29rana8HNPgLVBof8qqtNQ9LE22IoyZboQbGSxI6ZySMdW3K5nAe6gu35IaJefUJflhUFTQ== +"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.26.9.tgz#2ec64e903d0efe743699f77a10bdf7955c2123c3" + integrity sha512-vX3qPGE8sEKEAZCWk05k3cpTAE3/nOYca++JA+Rd0z2NCNzabmYvEiSShKzm10zdquOIAVXsy2Ei/DTW34KlKQ== dependencies: - "@babel/compat-data" "^7.26.5" + "@babel/compat-data" "^7.26.8" "@babel/helper-compilation-targets" "^7.26.5" "@babel/helper-plugin-utils" "^7.26.5" "@babel/helper-validator-option" "^7.25.9" @@ -1576,7 +1560,7 @@ "@babel/plugin-syntax-import-attributes" "^7.26.0" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" "@babel/plugin-transform-arrow-functions" "^7.25.9" - "@babel/plugin-transform-async-generator-functions" "^7.25.9" + "@babel/plugin-transform-async-generator-functions" "^7.26.8" "@babel/plugin-transform-async-to-generator" "^7.25.9" "@babel/plugin-transform-block-scoped-functions" "^7.26.5" "@babel/plugin-transform-block-scoping" "^7.25.9" @@ -1591,7 +1575,7 @@ "@babel/plugin-transform-dynamic-import" "^7.25.9" "@babel/plugin-transform-exponentiation-operator" "^7.26.3" "@babel/plugin-transform-export-namespace-from" "^7.25.9" - "@babel/plugin-transform-for-of" "^7.25.9" + "@babel/plugin-transform-for-of" "^7.26.9" "@babel/plugin-transform-function-name" "^7.25.9" "@babel/plugin-transform-json-strings" "^7.25.9" "@babel/plugin-transform-literals" "^7.25.9" @@ -1619,7 +1603,7 @@ "@babel/plugin-transform-shorthand-properties" "^7.25.9" "@babel/plugin-transform-spread" "^7.25.9" "@babel/plugin-transform-sticky-regex" "^7.25.9" - "@babel/plugin-transform-template-literals" "^7.25.9" + "@babel/plugin-transform-template-literals" "^7.26.8" "@babel/plugin-transform-typeof-symbol" "^7.26.7" "@babel/plugin-transform-unicode-escapes" "^7.25.9" "@babel/plugin-transform-unicode-property-regex" "^7.25.9" @@ -1627,9 +1611,9 @@ "@babel/plugin-transform-unicode-sets-regex" "^7.25.9" "@babel/preset-modules" "0.1.6-no-external-plugins" babel-plugin-polyfill-corejs2 "^0.4.10" - babel-plugin-polyfill-corejs3 "^0.10.6" + babel-plugin-polyfill-corejs3 "^0.11.0" babel-plugin-polyfill-regenerator "^0.6.1" - core-js-compat "^3.38.1" + core-js-compat "^3.40.0" semver "^6.3.1" "@babel/preset-modules@0.1.6-no-external-plugins": @@ -1671,32 +1655,32 @@ dependencies: regenerator-runtime "^0.14.0" -"@babel/template@^7.25.9", "@babel/template@^7.3.3": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.9.tgz#ecb62d81a8a6f5dc5fe8abfc3901fc52ddf15016" - integrity sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg== - dependencies: - "@babel/code-frame" "^7.25.9" - "@babel/parser" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/traverse@^7.13.0", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.5", "@babel/traverse@^7.26.7", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.7.tgz#99a0a136f6a75e7fb8b0a1ace421e0b25994b8bb" - integrity sha512-1x1sgeyRLC3r5fQOM0/xtQKsYjyxmFjaOrLJNtZ81inNjyJHGIolTULPiSc/2qe1/qfpFLisLQYFnnZl7QoedA== +"@babel/template@^7.25.9", "@babel/template@^7.26.9", "@babel/template@^7.3.3": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.26.9.tgz#4577ad3ddf43d194528cff4e1fa6b232fa609bb2" + integrity sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA== dependencies: "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.5" - "@babel/parser" "^7.26.7" - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.7" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" + +"@babel/traverse@^7.13.0", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.5", "@babel/traverse@^7.26.8", "@babel/traverse@^7.26.9", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.9.tgz#4398f2394ba66d05d988b2ad13c219a2c857461a" + integrity sha512-ZYW7L+pL8ahU5fXmNbPF+iZFHCv5scFak7MZ9bwaRPLUhHh7QQEMjZUg0HevihoqCM5iSYHN61EyCoZvqC+bxg== + dependencies: + "@babel/code-frame" "^7.26.2" + "@babel/generator" "^7.26.9" + "@babel/parser" "^7.26.9" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.9" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.25.9", "@babel/types@^7.26.5", "@babel/types@^7.26.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.7.tgz#5e2b89c0768e874d4d061961f3a5a153d71dc17a" - integrity sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg== +"@babel/types@^7.0.0", "@babel/types@^7.25.9", "@babel/types@^7.26.9", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.9.tgz#08b43dec79ee8e682c2ac631c010bdcac54a21ce" + integrity sha512-Y3IR1cRnOxOCDvMmNiym7XpXQ93iGDDPHx+Zj+NM+rg0fBaShfQLkg+hKPaZCEvg5N/LeCo4+Rj/i3FuJsIQaw== dependencies: "@babel/helper-string-parser" "^7.25.9" "@babel/helper-validator-identifier" "^7.25.9" @@ -2895,10 +2879,10 @@ before-after-hook "^2.2.0" universal-user-agent "^6.0.0" -"@octokit/endpoint@^9.0.1": - version "9.0.5" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.5.tgz#e6c0ee684e307614c02fc6ac12274c50da465c44" - integrity sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw== +"@octokit/endpoint@^9.0.6": + version "9.0.6" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.6.tgz#114d912108fe692d8b139cfe7fc0846dfd11b6c0" + integrity sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw== dependencies: "@octokit/types" "^13.1.0" universal-user-agent "^6.0.0" @@ -2995,22 +2979,22 @@ "@octokit/types" "^12.2.0" bottleneck "^2.15.3" -"@octokit/request-error@^5.0.0", "@octokit/request-error@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.0.tgz#ee4138538d08c81a60be3f320cd71063064a3b30" - integrity sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q== +"@octokit/request-error@^5.0.0", "@octokit/request-error@^5.1.0", "@octokit/request-error@^5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.1.tgz#b9218f9c1166e68bb4d0c89b638edc62c9334805" + integrity sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g== dependencies: "@octokit/types" "^13.1.0" deprecation "^2.0.0" once "^1.4.0" "@octokit/request@^8.0.1", "@octokit/request@^8.0.2", "@octokit/request@^8.3.1": - version "8.4.0" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.0.tgz#7f4b7b1daa3d1f48c0977ad8fffa2c18adef8974" - integrity sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw== + version "8.4.1" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.1.tgz#715a015ccf993087977ea4365c44791fc4572486" + integrity sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw== dependencies: - "@octokit/endpoint" "^9.0.1" - "@octokit/request-error" "^5.1.0" + "@octokit/endpoint" "^9.0.6" + "@octokit/request-error" "^5.1.1" "@octokit/types" "^13.1.0" universal-user-agent "^6.0.0" @@ -3080,9 +3064,9 @@ passport-oauth "1.0.x" "@popperjs/core@^2.5.4", "@popperjs/core@^2.9.0": - version "2.11.6" - resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.6.tgz#cee20bd55e68a1720bdab363ecf0c821ded4cd45" - integrity "sha1-zuIL1V5ooXIL2rNj7PDIId7UzUU= sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==" + version "2.11.8" + resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" + integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": version "1.1.2" @@ -3714,17 +3698,17 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@smithy/core@^3.1.1", "@smithy/core@^3.1.2": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.1.2.tgz#f5b4c89bf054b717781d71c66b4fb594e06cbb62" - integrity sha512-htwQXkbdF13uwwDevz9BEzL5ABK+1sJpVQXywwGSH973AVOvisHNfpcB8A8761G6XgHoS2kHPqc9DqHJ2gp+/Q== +"@smithy/core@^3.1.3", "@smithy/core@^3.1.4": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.1.4.tgz#47ce2b1b363ba92be2b47551bdd30969c6435bd2" + integrity sha512-wFExFGK+7r2wYriOqe7RRIBNpvxwiS95ih09+GSLRBdoyK/O1uZA7K7pKesj5CBvwJuSBeXwLyR88WwIAY+DGA== dependencies: "@smithy/middleware-serde" "^4.0.2" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-middleware" "^4.0.1" - "@smithy/util-stream" "^4.0.2" + "@smithy/util-stream" "^4.1.1" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -3864,12 +3848,12 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@smithy/middleware-endpoint@^4.0.2", "@smithy/middleware-endpoint@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.0.3.tgz#74b64fb2473ae35649a8d22d41708bc5d8d99df2" - integrity sha512-YdbmWhQF5kIxZjWqPIgboVfi8i5XgiYMM7GGKFMTvBei4XjNQfNv8sukT50ITvgnWKKKpOtp0C0h7qixLgb77Q== +"@smithy/middleware-endpoint@^4.0.4", "@smithy/middleware-endpoint@^4.0.5": + version "4.0.5" + resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.0.5.tgz#b3d58c0a44b5dcccb1da34267b6f651bc1ba7642" + integrity sha512-cPzGZV7qStHwboFrm6GfrzQE+YDiCzWcTh4+7wKrP/ZQ4gkw+r7qDjV8GjM4N0UYsuUyLfpzLGg5hxsYTU11WA== dependencies: - "@smithy/core" "^3.1.2" + "@smithy/core" "^3.1.4" "@smithy/middleware-serde" "^4.0.2" "@smithy/node-config-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" @@ -3878,22 +3862,22 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@smithy/middleware-retry@^4.0.3": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.0.4.tgz#95e55a1b163ff06264f20b4dbbcbd915c8028f60" - integrity sha512-wmxyUBGHaYUqul0wZiset4M39SMtDBOtUr2KpDuftKNN74Do9Y36Go6Eqzj9tL0mIPpr31ulB5UUtxcsCeGXsQ== +"@smithy/middleware-retry@^4.0.5": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.0.6.tgz#07f8259dc05835e317aaf37af7e79bae349eabb4" + integrity sha512-s8QzuOQnbdvRymD9Gt9c9zMq10wUQAHQ3z72uirrBHCwZcLTrL5iCOuVTMdka2IXOYhQE890WD5t6G24+F+Qcg== dependencies: "@smithy/node-config-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/service-error-classification" "^4.0.1" - "@smithy/smithy-client" "^4.1.3" + "@smithy/smithy-client" "^4.1.5" "@smithy/types" "^4.1.0" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" tslib "^2.6.2" uuid "^9.0.1" -"@smithy/middleware-serde@^4.0.1", "@smithy/middleware-serde@^4.0.2": +"@smithy/middleware-serde@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@smithy/middleware-serde/-/middleware-serde-4.0.2.tgz#f792d72f6ad8fa6b172e3f19c6fe1932a856a56d" integrity sha512-Sdr5lOagCn5tt+zKsaW+U2/iwr6bI9p08wOkCp6/eL6iMbgdtc2R5Ety66rf87PeohR0ExI84Txz9GYv5ou3iQ== @@ -3992,17 +3976,17 @@ "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/smithy-client@^4.1.2", "@smithy/smithy-client@^4.1.3": - version "4.1.3" - resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.1.3.tgz#2c8f9aff3377e7655cebe84239da6be277ba8554" - integrity sha512-A2Hz85pu8BJJaYFdX8yb1yocqigyqBzn+OVaVgm+Kwi/DkN8vhN2kbDVEfADo6jXf5hPKquMLGA3UINA64UZ7A== +"@smithy/smithy-client@^4.1.4", "@smithy/smithy-client@^4.1.5": + version "4.1.5" + resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.1.5.tgz#f4641ad6771f5e4f6de9e573b9deb1787e43ef71" + integrity sha512-DMXYoYeL4QkElr216n1yodTFeATbfb4jwYM9gKn71Rw/FNA1/Sm36tkTSCsZEs7mgpG3OINmkxL9vgVFzyGPaw== dependencies: - "@smithy/core" "^3.1.2" - "@smithy/middleware-endpoint" "^4.0.3" + "@smithy/core" "^3.1.4" + "@smithy/middleware-endpoint" "^4.0.5" "@smithy/middleware-stack" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" - "@smithy/util-stream" "^4.0.2" + "@smithy/util-stream" "^4.1.1" tslib "^2.6.2" "@smithy/types@^4.1.0": @@ -4067,27 +4051,27 @@ dependencies: tslib "^2.6.2" -"@smithy/util-defaults-mode-browser@^4.0.3": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.4.tgz#6fa7ba64a80a77f27b9b5c6972918904578b8d5b" - integrity sha512-Ej1bV5sbrIfH++KnWxjjzFNq9nyP3RIUq2c9Iqq7SmMO/idUR24sqvKH2LUQFTSPy/K7G4sB2m8n7YYlEAfZaw== +"@smithy/util-defaults-mode-browser@^4.0.5": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.6.tgz#4ee93d8e32c8211709437aa29c5fe616895e7c51" + integrity sha512-N8+VCt+piupH1A7DgSVDNrVHqRLz8r6DvBkpS7EWHiIxsUk4jqGuQLjqC/gnCzmwGkVBdNruHoYAzzaSQ8e80w== dependencies: "@smithy/property-provider" "^4.0.1" - "@smithy/smithy-client" "^4.1.3" + "@smithy/smithy-client" "^4.1.5" "@smithy/types" "^4.1.0" bowser "^2.11.0" tslib "^2.6.2" -"@smithy/util-defaults-mode-node@^4.0.3": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.4.tgz#5470fdc96672cee5199620b576d7025de3b17333" - integrity sha512-HE1I7gxa6yP7ZgXPCFfZSDmVmMtY7SHqzFF55gM/GPegzZKaQWZZ+nYn9C2Cc3JltCMyWe63VPR3tSFDEvuGjw== +"@smithy/util-defaults-mode-node@^4.0.5": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.6.tgz#213e5b32549beb48aeccbcf99cf56c97db47e70b" + integrity sha512-9zhx1shd1VwSSVvLZB8CM3qQ3RPD3le7A3h/UPuyh/PC7g4OaWDi2xUNzamsVoSmCGtmUBONl56lM2EU6LcH7A== dependencies: "@smithy/config-resolver" "^4.0.1" "@smithy/credential-provider-imds" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" "@smithy/property-provider" "^4.0.1" - "@smithy/smithy-client" "^4.1.3" + "@smithy/smithy-client" "^4.1.5" "@smithy/types" "^4.1.0" tslib "^2.6.2" @@ -4124,10 +4108,10 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@smithy/util-stream@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-4.0.2.tgz#63495d3f7fba9d78748d540921136dc4a8d4c067" - integrity sha512-0eZ4G5fRzIoewtHtwaYyl8g2C+osYOT4KClXgfdNEDAgkbe2TYPqcnw4GAWabqkZCax2ihRGPe9LZnsPdIUIHA== +"@smithy/util-stream@^4.1.0", "@smithy/util-stream@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-4.1.1.tgz#d7edec543d65ed335d2fda9aae6a42ee97da4a4e" + integrity sha512-+Xvh8nhy0Wjv1y71rBVyV3eJU3356XsFQNI8dEZVNrQju7Eib8G31GWtO+zMa9kTCGd41Mflu+ZKfmQL/o2XzQ== dependencies: "@smithy/fetch-http-handler" "^5.0.1" "@smithy/node-http-handler" "^4.0.2" @@ -4622,10 +4606,10 @@ dependencies: dotenv "*" -"@types/emoji-regex@^9.2.0": - version "9.2.0" - resolved "https://registry.yarnpkg.com/@types/emoji-regex/-/emoji-regex-9.2.0.tgz#2e117de04f5fa561c5dcbe43a860ecd856517525" - integrity "sha1-LhF94E9fpWHF3L5DqGDs2FZRdSU= sha512-Q2BaUWiokKV2ZWk15twerRiNIex/VOGIz3pAgPMk6JZAeuGT9oAm/kA2Ri9InUtPc84bY0UQZzn/Pd2yUd33Ig==" +"@types/emoji-regex@^9.2.2": + version "9.2.2" + resolved "https://registry.yarnpkg.com/@types/emoji-regex/-/emoji-regex-9.2.2.tgz#b0b0ac07ab7d7fe1f23d9c629f0df2fad3198987" + integrity sha512-kg9a3lbO8WyO3LxZAhUtcS7X+u2FwptNcfsMCTsISiv0gV1BqLZlHgkL11XsG9n18t5uSPYtcQk6Zw8g7MbNRQ== dependencies: emoji-regex "*" @@ -5938,13 +5922,13 @@ babel-plugin-polyfill-corejs2@^0.4.10: "@babel/helper-define-polyfill-provider" "^0.6.2" semver "^6.3.1" -babel-plugin-polyfill-corejs3@^0.10.6: - version "0.10.6" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz#2deda57caef50f59c525aeb4964d3b2f867710c7" - integrity sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA== +babel-plugin-polyfill-corejs3@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.1.tgz#4e4e182f1bb37c7ba62e2af81d8dd09df31344f6" + integrity sha512-yGCqvBT4rwMczo28xkH/noxJ6MZ4nJfkVYdoDaC/utLtWrXxv27HVrzAeSbqR8SxDsp46n0YF47EbHoixy6rXQ== dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.2" - core-js-compat "^3.38.0" + "@babel/helper-define-polyfill-provider" "^0.6.3" + core-js-compat "^3.40.0" babel-plugin-polyfill-corejs3@^0.2.2: version "0.2.2" @@ -6224,15 +6208,15 @@ browserslist-to-esbuild@^1.2.0: dependencies: browserslist "^4.17.3" -browserslist@^4.17.3, browserslist@^4.23.3, browserslist@^4.24.0: - version "4.24.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4" - integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A== +browserslist@^4.17.3, browserslist@^4.24.0, browserslist@^4.24.3: + version "4.24.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" + integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== dependencies: - caniuse-lite "^1.0.30001663" - electron-to-chromium "^1.5.28" - node-releases "^2.0.18" - update-browserslist-db "^1.1.0" + caniuse-lite "^1.0.30001688" + electron-to-chromium "^1.5.73" + node-releases "^2.0.19" + update-browserslist-db "^1.1.1" bser@2.1.1: version "2.1.1" @@ -6372,10 +6356,10 @@ camelize@^1.0.0: resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b" integrity "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs= sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg==" -caniuse-lite@^1.0.30001663: - version "1.0.30001667" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz#99fc5ea0d9c6e96897a104a8352604378377f949" - integrity sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw== +caniuse-lite@^1.0.30001688: + version "1.0.30001699" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001699.tgz#a102cf330d153bf8c92bfb5be3cd44c0a89c8c12" + integrity sha512-b+uH5BakXZ9Do9iK+CkDmctUSEqZl+SP056vc5usa0PL+ev5OHw003rZXcnjNDv3L8P5j6rwT6C0BPKSikW08w== chalk@5.3.0: version "5.3.0" @@ -6881,12 +6865,12 @@ copy-to-clipboard@^3.3.3: dependencies: toggle-selection "^1.0.6" -core-js-compat@^3.38.0, core-js-compat@^3.38.1, core-js-compat@^3.9.1: - version "3.38.1" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.38.1.tgz#2bc7a298746ca5a7bcb9c164bcb120f2ebc09a09" - integrity sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw== +core-js-compat@^3.40.0, core-js-compat@^3.9.1: + version "3.40.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.40.0.tgz#7485912a5a4a4315c2fdb2cbdc623e6881c88b38" + integrity sha512-0XEDpr5y5mijvw8Lbc6E5AkjrHfp7eEoPlu36SWeAbcL8fn1G1ANe8DBlo2XoNN89oVpxWwOjYIPVzR4ZvsKCQ== dependencies: - browserslist "^4.23.3" + browserslist "^4.24.3" core-js@3.39.0, core-js@^3.37.0: version "3.39.0" @@ -7731,9 +7715,9 @@ domhandler@^5.0.1, domhandler@^5.0.2, domhandler@^5.0.3: domelementtype "^2.3.0" dompurify@^3.2.1: - version "3.2.3" - resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.2.3.tgz#05dd2175225324daabfca6603055a09b2382a4cd" - integrity sha512-U1U5Hzc2MO0oW3DF+G9qYN0aT7atAou4AgI0XjWz061nyBPbdxkfdhfy5uMgGn6+oLFCfn44ZGbdDqCzVmlOWA== + version "3.2.4" + resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.2.4.tgz#af5a5a11407524431456cf18836c55d13441cd8e" + integrity sha512-ysFSFEDVduQpyhzAob/kkuJjf5zWkZD8/A9ywSp1byueyuCfHamrCBa14/Oc2iiB0e51B+NpxSl5gmzn+Ms/mg== optionalDependencies: "@types/trusted-types" "^2.0.7" @@ -7836,10 +7820,10 @@ ejs@^3.1.6, ejs@^3.1.7: dependencies: jake "^10.8.5" -electron-to-chromium@^1.5.28: - version "1.5.32" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.32.tgz#4a05ee78e29e240aabaf73a67ce9fe73f52e1bc7" - integrity sha512-M+7ph0VGBQqqpTT2YrabjNKSQ2fEl9PVx6AK3N558gDH9NO8O6XN9SXXFWRo9u9PbEg/bWq+tjXQr+eXmxubCw== +electron-to-chromium@^1.5.73: + version "1.5.99" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.99.tgz#4817c7526d71b66e6c56c3e5231fe1113653a85d" + integrity sha512-77c/+fCyL2U+aOyqfIFi89wYLBeSTCs55xCZL0oFH0KjqsvSvyh6AdQ+UIl1vgpnQQE6g+/KK8hOIupH6VwPtg== email-providers@^1.14.0: version "1.14.0" @@ -8083,14 +8067,15 @@ es-object-atoms@^1.0.0: dependencies: es-errors "^1.3.0" -es-set-tostringtag@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz#8bb60f0a440c2e4281962428438d58545af39777" - integrity sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ== +es-set-tostringtag@^2.0.3, es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== dependencies: - get-intrinsic "^1.2.4" + es-errors "^1.3.0" + get-intrinsic "^1.2.6" has-tostringtag "^1.0.2" - hasown "^2.0.1" + hasown "^2.0.2" es-shim-unscopables@^1.0.0, es-shim-unscopables@^1.0.2: version "1.0.2" @@ -8212,10 +8197,10 @@ esbuild@^0.21.3: "@esbuild/win32-ia32" "0.21.5" "@esbuild/win32-x64" "0.21.5" -escalade@^3.1.1, escalade@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== +escalade@^3.1.1, escalade@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-html@^1.0.3: version "1.0.3" @@ -8263,19 +8248,18 @@ eslint-import-resolver-node@^0.3.9: is-core-module "^2.13.0" resolve "^1.22.4" -eslint-import-resolver-typescript@^3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.7.0.tgz#e69925936a771a9cb2de418ccebc4cdf6c0818aa" - integrity sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow== +eslint-import-resolver-typescript@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.8.0.tgz#44a0f776d296b9c3823f4859441b54c2ec5fef9a" + integrity sha512-fItUrP/+xwpavWgadrn6lsvcMe80s08xIVFXkUXvhR4cZD2ga96kRF/z/iFGDI7ZDnvtlaZ0wGic7Tw+DhgVnA== dependencies: "@nolyfill/is-core-module" "1.0.39" debug "^4.3.7" enhanced-resolve "^5.15.0" - fast-glob "^3.3.2" - get-tsconfig "^4.7.5" + get-tsconfig "^4.10.0" is-bun-module "^1.0.2" - is-glob "^4.0.3" stable-hash "^0.0.4" + tinyglobby "^0.2.10" eslint-module-utils@^2.12.0: version "2.12.0" @@ -8690,10 +8674,10 @@ fd-slicer@~1.1.0: dependencies: pend "~1.2.0" -fdir@^6.2.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.3.0.tgz#fcca5a23ea20e767b15e081ee13b3e6488ee0bb0" - integrity sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ== +fdir@^6.4.2: + version "6.4.3" + resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.3.tgz#011cdacf837eca9b811c89dbb902df714273db72" + integrity sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw== fecha@^4.2.0: version "4.2.1" @@ -8824,13 +8808,14 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -form-data@*, form-data@^4.0.0, form-data@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48" - integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== +form-data@*, form-data@^4.0.0, form-data@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.2.tgz#35cabbdd30c3ce73deb2c42d3c8d3ed9ca51794c" + integrity sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" mime-types "^2.1.12" formidable@^2.0.1: @@ -9054,10 +9039,10 @@ get-symbol-description@^1.1.0: es-errors "^1.3.0" get-intrinsic "^1.2.6" -get-tsconfig@^4.7.5: - version "4.8.0" - resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.8.0.tgz#125dc13a316f61650a12b20c97c11b8fd996fedd" - integrity sha512-Pgba6TExTZ0FJAn1qkJAjIeKoDJ3CsI2ChuLohJnZl/tTU8MVrq3b+2t5UOPfRa4RMsorClBjJALkJUMjG1PAw== +get-tsconfig@^4.10.0: + version "4.10.0" + resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.10.0.tgz#403a682b373a823612475a4c2928c7326fc0f6bb" + integrity sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A== dependencies: resolve-pkg-maps "^1.0.0" @@ -9262,7 +9247,7 @@ has-tostringtag@^1.0.0, has-tostringtag@^1.0.2: dependencies: has-symbols "^1.0.3" -hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2: +hasown@^2.0.0, hasown@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== @@ -10969,10 +10954,10 @@ koa-views@^7.0.1: pretty "^2.0.0" resolve-path "^1.4.0" -koa@^2.13.1, koa@^2.15.3: - version "2.15.3" - resolved "https://registry.yarnpkg.com/koa/-/koa-2.15.3.tgz#062809266ee75ce0c75f6510a005b0e38f8c519a" - integrity sha512-j/8tY9j5t+GVMLeioLaxweJiKUayFhlGqNTzf2ZGwL0ZCQijd2RLHK0SLW5Tsko8YyyqCZC2cojIb0/s62qTAg== +koa@^2.13.1, koa@^2.15.4: + version "2.15.4" + resolved "https://registry.yarnpkg.com/koa/-/koa-2.15.4.tgz#7000b3d8354558671adb1ba1b1c09bedb5f8da75" + integrity sha512-7fNBIdrU2PEgLljXoPWoyY4r1e+ToWCmzS/wwMPbUNs7X+5MMET1ObhJBlUkF5uZG9B6QhM2zS1TsH6adegkiQ== dependencies: accepts "^1.3.5" cache-content-type "^1.0.0" @@ -11896,10 +11881,10 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" -node-releases@^2.0.18: - version "2.0.18" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" - integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== +node-releases@^2.0.19: + version "2.0.19" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" + integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== nodemailer@6.9.16: version "6.9.16" @@ -12575,10 +12560,10 @@ pgpass@1.x: dependencies: split2 "^3.1.1" -picocolors@^1.0.0, picocolors@^1.0.1, picocolors@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" - integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== +picocolors@^1.0.0, picocolors@^1.1.0, picocolors@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" @@ -13222,10 +13207,10 @@ react-is@^17.0.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity "sha1-GZQx7qqi4J+GQn77tPFHPttHYJs= sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" -react-medium-image-zoom@5.2.10: - version "5.2.10" - resolved "https://registry.yarnpkg.com/react-medium-image-zoom/-/react-medium-image-zoom-5.2.10.tgz#5e913804bc282a165b18d46a06aa3035bcc7b946" - integrity sha512-JBYf4u0zsocezIDtrjwStD+8sX+c8XuLsdz+HxPbojRj0sCicua0XOQKysuPetoFyX+YgStfj+vEtZ+699O/pg== +react-medium-image-zoom@5.2.13: + version "5.2.13" + resolved "https://registry.yarnpkg.com/react-medium-image-zoom/-/react-medium-image-zoom-5.2.13.tgz#72e0aa6987585250efe3ad5fe963891d5ffe99a0" + integrity sha512-KcBL4OsoUQJgIFh6vQgt/6sRGqDy6bQBcsbhGD2tsy4B5Pw3dWrboocVOyIm76RRALEZ6Qwp3EDvIvfEv0m5sg== react-merge-refs@^2.1.1: version "2.1.1" @@ -13524,18 +13509,6 @@ regexpp@^3.0.0: resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" integrity "sha1-BCWido2PI7rXDKS5BGH6LxIT4bI= sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==" -regexpu-core@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.1.1.tgz#b469b245594cb2d088ceebc6369dceb8c00becac" - integrity sha512-k67Nb9jvwJcJmVpw0jPttR1/zVfnKf8Km0IPatrU/zJ5XeG3+Slx0xLXs9HByJSzXzrlz5EDvN6yLNMDc2qdnw== - dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties "^10.2.0" - regjsgen "^0.8.0" - regjsparser "^0.11.0" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" - regexpu-core@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.2.0.tgz#0e5190d79e542bf294955dccabae04d3c7d53826" @@ -13553,13 +13526,6 @@ regjsgen@^0.8.0: resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.8.0.tgz#df23ff26e0c5b300a6470cad160a9d090c3a37ab" integrity sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q== -regjsparser@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.11.1.tgz#ae55c74f646db0c8fcb922d4da635e33da405149" - integrity sha512-1DHODs4B8p/mQHU9kr+jv8+wIC9mtG4eBHxWxIq5mhjE3D5oORhCc6deRKzTjs9DcfRFmj9BHSDguZklqCGFWQ== - dependencies: - jsesc "~3.0.2" - regjsparser@^0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.12.0.tgz#0e846df6c6530586429377de56e0475583b088dc" @@ -14799,12 +14765,12 @@ tinyexec@^0.3.0: resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-0.3.1.tgz#0ab0daf93b43e2c211212396bdb836b468c97c98" integrity sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ== -tinyglobby@^0.2.0: - version "0.2.5" - resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.5.tgz#8cdd1df1b155bf2a3c4d5ea2581489f967a38318" - integrity sha512-Dlqgt6h0QkoHttG53/WGADNh9QhcjCAIZMTERAVhdpmIBEejSuLI9ZmGKWzB7tweBjlk30+s/ofi4SLmBeTYhw== +tinyglobby@^0.2.0, tinyglobby@^0.2.10: + version "0.2.10" + resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.10.tgz#e712cf2dc9b95a1f5c5bbd159720e15833977a0f" + integrity sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew== dependencies: - fdir "^6.2.0" + fdir "^6.4.2" picomatch "^4.0.2" tippy.js@^6.3.1: @@ -15139,6 +15105,11 @@ uid2@0.0.3, uid2@0.0.x: resolved "https://registry.yarnpkg.com/uid2/-/uid2-0.0.3.tgz#483126e11774df2f71b8b639dcd799c376162b82" integrity "sha1-SDEm4Rd03y9xuLY53NeZw3YWK4I= sha512-5gSP1liv10Gjp8cMEnFd6shzkL/D6W1uhXSFNCxDC+YI8+L8wkCYCbJ7n77Ezb4wE/xzMogecE+DtamEe9PZjg==" +ukkonen@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/ukkonen/-/ukkonen-2.1.0.tgz#7af741397e603462290aa5d4e65e514f400b29f7" + integrity sha512-unACtiJBMpL5Q+JKEBYtB88DVClP4Ch42NFkuj7Ck7jcJ4UKkkfvvfGQ2WeaMeuq7OIGLkbm0X7YN+TGP9C5bw== + umzug@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/umzug/-/umzug-2.3.0.tgz#0ef42b62df54e216b05dcaf627830a6a8b84a184" @@ -15271,13 +15242,13 @@ upath@^1.2.0: resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity "sha1-j2bbzVWog6za5ECK+LA1pQRMGJQ= sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==" -update-browserslist-db@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" - integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== +update-browserslist-db@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz#97e9c96ab0ae7bcac08e9ae5151d26e6bc6b5580" + integrity sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg== dependencies: - escalade "^3.1.2" - picocolors "^1.0.1" + escalade "^3.2.0" + picocolors "^1.1.1" uri-js@^4.2.2: version "4.4.0" @@ -15453,10 +15424,10 @@ vite-plugin-static-copy@^0.17.0: fs-extra "^11.1.0" picocolors "^1.0.0" -vite@^5.4.12: - version "5.4.12" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.12.tgz#627d12ff06de3942557dfe8632fd712a12a072c7" - integrity sha512-KwUaKB27TvWwDJr1GjjWthLMATbGEbeWYZIbGZ5qFIsgPP3vWzLu4cVooqhm5/Z2SPDUMjyPVjTztm5tYKwQxA== +vite@^5.4.14: + version "5.4.14" + resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.14.tgz#ff8255edb02134df180dcfca1916c37a6abe8408" + integrity sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA== dependencies: esbuild "^0.21.3" postcss "^8.4.43"