From 10f4889737f15377bdcf4f996469afc612aabc37 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 5 Oct 2024 10:59:56 -0400 Subject: [PATCH 01/52] fix: Cloned response on network error can cause process to hang (remove) --- package.json | 2 +- server/utils/fetch.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index 6b328f1d36..8b759414b8 100644 --- a/package.json +++ b/package.json @@ -362,7 +362,7 @@ "body-scroll-lock": "^4.0.0-beta.0", "d3": "^7.0.0", "debug": "4.3.4", - "node-fetch": "^2.6.12", + "node-fetch": "^2.7.0", "js-yaml": "^3.14.1", "qs": "6.9.7", "rollup": "^4.5.1" diff --git a/server/utils/fetch.ts b/server/utils/fetch.ts index 5e38821065..2e712b4015 100644 --- a/server/utils/fetch.ts +++ b/server/utils/fetch.ts @@ -32,15 +32,11 @@ export default async function fetch( }); if (!response.ok) { - const clone = response.clone(); - const body = await clone.text(); - Logger.silly("http", `Network request failed`, { url, status: response.status, statusText: response.statusText, headers: response.headers.raw(), - body, }); } From e0a3ad92e0e775ba40b32a62a013327ff5dccbb8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Oct 2024 08:21:33 -0700 Subject: [PATCH 02/52] chore(deps): bump cookie from 0.6.0 to 0.7.0 (#7734) Bumps [cookie](https://github.com/jshttp/cookie) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/jshttp/cookie/releases) - [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v0.7.0) --- updated-dependencies: - dependency-name: cookie dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8b759414b8..dda7290959 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "class-validator": "^0.14.1", "command-score": "^0.1.2", "compressorjs": "^1.2.1", - "cookie": "^0.6.0", + "cookie": "^0.7.0", "copy-to-clipboard": "^3.3.3", "core-js": "^3.37.0", "crypto-js": "^4.2.0", diff --git a/yarn.lock b/yarn.lock index 684886cc67..28d99b5027 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6705,10 +6705,10 @@ convert-source-map@^2.0.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" integrity "sha1-S1YPZJ/E6RjdCrdc9JYei8iC2Co= sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" -cookie@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" - integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== +cookie@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.0.tgz#2148f68a77245d5c2c0005d264bc3e08cfa0655d" + integrity sha512-qCf+V4dtlNhSRXGAZatc1TasyFO6GjohcOul807YOb5ik3+kQSnb4d7iajeCL8QHaJ4uZEjCgiCJerKXwdRVlQ== cookie@~0.4.1: version "0.4.1" @@ -11659,10 +11659,10 @@ node-addon-api@^6.1.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-6.1.0.tgz#ac8470034e58e67d0c6f1204a18ae6995d9c0d76" integrity "sha1-rIRwA05Y5n0MbxIEoYrmmV2cDXY= sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==" -node-fetch@2.7.0, node-fetch@^2.6.1, node-fetch@^2.6.11, node-fetch@^2.6.12: +node-fetch@2.7.0, node-fetch@^2.6.1, node-fetch@^2.6.11, node-fetch@^2.6.12, node-fetch@^2.7.0: version "2.7.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" - integrity "sha1-0PD6bj4twdJ+/NitmdVQvalNGH0= sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== dependencies: whatwg-url "^5.0.0" From 8b5fdba6f488e23e886ca739030af25e2c8f4f02 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 5 Oct 2024 12:51:29 -0400 Subject: [PATCH 03/52] chore: Remove usage of deprecated docker build image --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2b403240ce..edba1a5a38 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -108,8 +108,7 @@ jobs: executor: docker-publisher steps: - checkout - - setup_remote_docker: - version: 20.10.6 + - setup_remote_docker - run: name: Install Docker buildx command: | From 35ff70bf146aece924c54df76beeec385eb09507 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Sun, 6 Oct 2024 18:07:11 +0530 Subject: [PATCH 04/52] Archive collections (#7266) Co-authored-by: Tom Moor --- app/actions/definitions/collections.tsx | 87 +++++- app/components/CollectionBreadcrumb.tsx | 45 ++++ app/components/Sidebar/App.tsx | 14 +- .../Sidebar/components/ArchiveLink.tsx | 112 ++++++-- .../components/ArchivedCollectionLink.tsx | 47 ++++ .../Sidebar/components/CollectionLink.tsx | 7 +- .../Sidebar/components/Collections.tsx | 4 +- .../Sidebar/hooks/useDragAndDrop.tsx | 51 +++- app/components/WebsocketProvider.tsx | 42 +++ app/menus/CollectionMenu.tsx | 4 + app/menus/DocumentMenu.tsx | 9 +- app/models/Collection.ts | 31 +++ app/models/base/ArchivableModel.ts | 2 +- app/scenes/Collection/components/Notices.tsx | 29 ++ app/scenes/Collection/index.tsx | 65 +++-- app/stores/CollectionsStore.ts | 86 +++++- app/stores/DocumentsStore.ts | 41 ++- .../server/tasks/DeliverWebhookTask.ts | 2 + ...61527-add-column-archivedAt-collections.js | 27 ++ ...-add-column-archivedById-to-collections.js | 18 ++ server/models/Collection.test.ts | 61 +++++ server/models/Collection.ts | 62 ++++- server/models/Document.ts | 173 +++++++----- server/policies/collection.test.ts | 144 ++++++++-- server/policies/collection.ts | 70 ++++- server/presenters/collection.ts | 3 + .../queues/processors/WebsocketsProcessor.ts | 65 ++++- .../api/collections/collections.test.ts | 189 ++++++++++++- server/routes/api/collections/collections.ts | 207 ++++++++++++-- server/routes/api/collections/schema.ts | 24 +- server/routes/api/documents/documents.test.ts | 249 +++++++++++++++++ server/routes/api/documents/documents.ts | 253 ++++++++++++------ server/routes/api/documents/schema.ts | 3 + server/test/factories.ts | 4 + server/types.ts | 18 +- server/utils/indexing.ts | 7 +- shared/i18n/locales/en_US/translation.json | 13 +- shared/types.ts | 4 + 38 files changed, 1983 insertions(+), 289 deletions(-) create mode 100644 app/components/CollectionBreadcrumb.tsx create mode 100644 app/components/Sidebar/components/ArchivedCollectionLink.tsx create mode 100644 app/scenes/Collection/components/Notices.tsx create mode 100644 server/migrations/20240717061527-add-column-archivedAt-collections.js create mode 100644 server/migrations/20240809054702-add-column-archivedById-to-collections.js diff --git a/app/actions/definitions/collections.tsx b/app/actions/definitions/collections.tsx index 6ab1e5d6d0..d0f4af5890 100644 --- a/app/actions/definitions/collections.tsx +++ b/app/actions/definitions/collections.tsx @@ -1,8 +1,10 @@ import { + ArchiveIcon, CollectionIcon, EditIcon, PadlockIcon, PlusIcon, + RestoreIcon, SearchIcon, ShapesIcon, StarredIcon, @@ -10,11 +12,13 @@ import { UnstarredIcon, } from "outline-icons"; import * as React from "react"; +import { toast } from "sonner"; import stores from "~/stores"; import Collection from "~/models/Collection"; import { CollectionEdit } from "~/components/Collection/CollectionEdit"; import { CollectionNew } from "~/components/Collection/CollectionNew"; import CollectionDeleteDialog from "~/components/CollectionDeleteDialog"; +import ConfirmationDialog from "~/components/ConfirmationDialog"; import DynamicCollectionIcon from "~/components/Icons/CollectionIcon"; import SharePopover from "~/components/Sharing/Collection/SharePopover"; import { getHeaderExpandedKey } from "~/components/Sidebar/components/Header"; @@ -129,9 +133,20 @@ export const searchInCollection = createAction({ analyticsName: "Search collection", section: ActiveCollectionSection, icon: , - visible: ({ activeCollectionId }) => - !!activeCollectionId && - stores.policies.abilities(activeCollectionId).readDocument, + visible: ({ activeCollectionId }) => { + if (!activeCollectionId) { + return false; + } + + const collection = stores.collections.get(activeCollectionId); + + if (!collection?.isActive) { + return false; + } + + return stores.policies.abilities(activeCollectionId).readDocument; + }, + perform: ({ activeCollectionId }) => { history.push(searchPath(undefined, { collectionId: activeCollectionId })); }, @@ -190,6 +205,72 @@ export const unstarCollection = createAction({ }, }); +export const archiveCollection = createAction({ + name: ({ t }) => `${t("Archive")}…`, + analyticsName: "Archive collection", + section: CollectionSection, + icon: , + visible: ({ activeCollectionId, stores }) => { + if (!activeCollectionId) { + return false; + } + return !!stores.policies.abilities(activeCollectionId).archive; + }, + perform: async ({ activeCollectionId, stores, t }) => { + const { dialogs, collections } = stores; + if (!activeCollectionId) { + return; + } + const collection = collections.get(activeCollectionId); + if (!collection) { + return; + } + + dialogs.openModal({ + title: t("Archive collection"), + content: ( + { + await collection.archive(); + toast.success(t("Collection archived")); + }} + submitText={t("Archive")} + savingText={`${t("Archiving")}…`} + > + {t( + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results." + )} + + ), + }); + }, +}); + +export const restoreCollection = createAction({ + name: ({ t }) => t("Restore"), + analyticsName: "Restore collection", + section: CollectionSection, + icon: , + visible: ({ activeCollectionId, stores }) => { + if (!activeCollectionId) { + return false; + } + return !!stores.policies.abilities(activeCollectionId).restore; + }, + perform: async ({ activeCollectionId, stores, t }) => { + if (!activeCollectionId) { + return; + } + const collection = stores.collections.get(activeCollectionId); + if (!collection) { + return; + } + + await collection.restore(); + toast.success(t("Collection restored")); + }, +}); + export const deleteCollection = createAction({ name: ({ t }) => `${t("Delete")}…`, analyticsName: "Delete collection", diff --git a/app/components/CollectionBreadcrumb.tsx b/app/components/CollectionBreadcrumb.tsx new file mode 100644 index 0000000000..bf8c59648f --- /dev/null +++ b/app/components/CollectionBreadcrumb.tsx @@ -0,0 +1,45 @@ +import { ArchiveIcon } from "outline-icons"; +import * as React from "react"; +import { useTranslation } from "react-i18next"; +import Collection from "~/models/Collection"; +import CollectionIcon from "~/components/Icons/CollectionIcon"; +import { MenuInternalLink } from "~/types"; +import { archivePath, collectionPath } from "~/utils/routeHelpers"; +import Breadcrumb from "./Breadcrumb"; + +type Props = { + collection: Collection; +}; + +export const CollectionBreadcrumb: React.FC = ({ collection }) => { + const { t } = useTranslation(); + + const items = React.useMemo(() => { + const collectionNode: MenuInternalLink = { + type: "route", + title: collection.name, + icon: , + to: collectionPath(collection.path), + }; + + const category: MenuInternalLink | undefined = collection.isArchived + ? { + type: "route", + icon: , + title: t("Archive"), + to: archivePath(), + } + : undefined; + + const output = []; + if (category) { + output.push(category); + } + + output.push(collectionNode); + + return output; + }, [collection, t]); + + return ; +}; diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index f0dc3e673b..e3bfd91d47 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -133,16 +133,16 @@ function AppSidebar() {
-
+
+ {can.createDocument && ( +
+ +
+ )}
- {can.createDocument && ( - <> - - - - )} + {can.createDocument && }
diff --git a/app/components/Sidebar/components/ArchiveLink.tsx b/app/components/Sidebar/components/ArchiveLink.tsx index cfa44b54e2..8315ebc83e 100644 --- a/app/components/Sidebar/components/ArchiveLink.tsx +++ b/app/components/Sidebar/components/ArchiveLink.tsx @@ -1,41 +1,101 @@ +import isUndefined from "lodash/isUndefined"; import { observer } from "mobx-react"; import { ArchiveIcon } from "outline-icons"; import * as React from "react"; -import { useDrop } from "react-dnd"; import { useTranslation } from "react-i18next"; -import { toast } from "sonner"; +import Flex from "@shared/components/Flex"; +import Collection from "~/models/Collection"; +import PaginatedList from "~/components/PaginatedList"; +import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; import { archivePath } from "~/utils/routeHelpers"; -import SidebarLink, { DragObject } from "./SidebarLink"; +import { useDropToArchive } from "../hooks/useDragAndDrop"; +import { ArchivedCollectionLink } from "./ArchivedCollectionLink"; +import { StyledError } from "./Collections"; +import PlaceholderCollections from "./PlaceholderCollections"; +import Relative from "./Relative"; +import SidebarLink from "./SidebarLink"; function ArchiveLink() { - const { policies, documents } = useStores(); + const { collections } = useStores(); const { t } = useTranslation(); - const [{ isDocumentDropping }, dropToArchiveDocument] = useDrop({ - accept: "document", - drop: async (item: DragObject) => { - const document = documents.get(item.id); - await document?.archive(); - toast.success(t("Document archived")); - }, - canDrop: (item) => policies.abilities(item.id).archive, - collect: (monitor) => ({ - isDocumentDropping: monitor.isOver(), - }), - }); + const [disclosure, setDisclosure] = React.useState(false); + const [expanded, setExpanded] = React.useState(); + + const { request, data, loading, error } = useRequest( + collections.fetchArchived, + true + ); + + React.useEffect(() => { + if (!isUndefined(data) && !loading && isUndefined(error)) { + setDisclosure(data.length > 0); + } + }, [data, loading, error]); + + React.useEffect(() => { + setDisclosure(collections.archived.length > 0); + }, [collections.archived]); + + React.useEffect(() => { + if (disclosure && isUndefined(expanded)) { + setExpanded(false); + } + }, [disclosure]); + + React.useEffect(() => { + if (expanded) { + void request(); + } + }, [expanded, request]); + + const handleDisclosureClick = React.useCallback((ev) => { + ev.preventDefault(); + ev.stopPropagation(); + setExpanded((e) => !e); + }, []); + + const handleClick = React.useCallback(() => { + setExpanded(true); + }, []); + + const [{ isOverArchiveSection, isDragging }, dropToArchiveRef] = + useDropToArchive(); return ( -
- } - exact={false} - label={t("Archive")} - active={documents.active?.isArchived && !documents.active?.isDeleted} - isActiveDrop={isDocumentDropping} - /> -
+ +
+ } + 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) => ( + + )} + /> + + ) : null} +
); } diff --git a/app/components/Sidebar/components/ArchivedCollectionLink.tsx b/app/components/Sidebar/components/ArchivedCollectionLink.tsx new file mode 100644 index 0000000000..413d0f2630 --- /dev/null +++ b/app/components/Sidebar/components/ArchivedCollectionLink.tsx @@ -0,0 +1,47 @@ +import * as React from "react"; +import Collection from "~/models/Collection"; +import useStores from "~/hooks/useStores"; +import CollectionLink from "./CollectionLink"; +import CollectionLinkChildren from "./CollectionLinkChildren"; +import Relative from "./Relative"; + +type Props = { + collection: Collection; + depth?: number; +}; + +export function ArchivedCollectionLink({ collection, depth }: Props) { + const { documents } = useStores(); + + const [expanded, setExpanded] = React.useState(false); + + const handleDisclosureClick = React.useCallback((ev) => { + ev.preventDefault(); + ev.stopPropagation(); + setExpanded((e) => !e); + }, []); + + const handleClick = React.useCallback(() => { + setExpanded(true); + }, []); + + return ( + <> + + + + + + ); +} diff --git a/app/components/Sidebar/components/CollectionLink.tsx b/app/components/Sidebar/components/CollectionLink.tsx index 2587bbdc66..fee3734ea2 100644 --- a/app/components/Sidebar/components/CollectionLink.tsx +++ b/app/components/Sidebar/components/CollectionLink.tsx @@ -30,6 +30,8 @@ type Props = { onDisclosureClick: (ev?: React.MouseEvent) => void; activeDocument: Document | undefined; isDraggingAnyCollection?: boolean; + depth?: number; + onClick?: () => void; }; const CollectionLink: React.FC = ({ @@ -37,6 +39,8 @@ const CollectionLink: React.FC = ({ expanded, onDisclosureClick, isDraggingAnyCollection, + depth, + onClick, }: Props) => { const { dialogs, documents, collections } = useStores(); const [menuOpen, handleMenuOpen, handleMenuClose] = useBoolean(); @@ -115,6 +119,7 @@ const CollectionLink: React.FC = ({ = ({ /> } exact={false} - depth={0} + depth={depth ? depth : 0} menu={ !isEditing && !isDraggingAnyCollection && ( diff --git a/app/components/Sidebar/components/Collections.tsx b/app/components/Sidebar/components/Collections.tsx index 1b5419b31d..7ee0194200 100644 --- a/app/components/Sidebar/components/Collections.tsx +++ b/app/components/Sidebar/components/Collections.tsx @@ -55,7 +55,7 @@ function Collections() { } heading={ isDraggingAnyCollection ? ( @@ -84,7 +84,7 @@ function Collections() { ); } -const StyledError = styled(Error)` +export const StyledError = styled(Error)` font-size: 15px; padding: 0 8px; `; diff --git a/app/components/Sidebar/hooks/useDragAndDrop.tsx b/app/components/Sidebar/hooks/useDragAndDrop.tsx index c9ce217fc5..26ce3759ba 100644 --- a/app/components/Sidebar/hooks/useDragAndDrop.tsx +++ b/app/components/Sidebar/hooks/useDragAndDrop.tsx @@ -149,6 +149,7 @@ export function useDragDocument( icon: icon ? : undefined, collectionId: document?.collectionId || "", } as DragObject), + canDrag: () => !!document?.isActive, collect: (monitor) => ({ isDragging: monitor.isDragging(), }), @@ -245,6 +246,7 @@ export function useDropToReparentDocument( !!pathToNode && !pathToNode.includes(monitor.getItem().id) && item.id !== node.id && + !!document?.isActive && policies.abilities(node.id).update && policies.abilities(item.id).move, hover: (_item, monitor) => { @@ -297,6 +299,8 @@ export function useDropToReorderDocument( const { t } = useTranslation(); const { documents, collections, dialogs, policies } = useStores(); + const document = documents.get(node.id); + return useDrop< DragObject, Promise, @@ -304,7 +308,11 @@ export function useDropToReorderDocument( >({ accept: "document", canDrop: (item: DragObject) => { - if (item.id === node.id || !policies.abilities(item.id)?.move) { + if ( + item.id === node.id || + !policies.abilities(item.id)?.move || + !document?.isActive + ) { return false; } @@ -427,3 +435,44 @@ export function useDropToReorderUserMembership(getIndex?: () => string) { }), }); } + +/** + * Hook for shared logic that allows dropping documents and collections onto archive section + */ +export function useDropToArchive() { + const accept = ["document", "collection"]; + const { documents, collections, policies } = useStores(); + const { t } = useTranslation(); + + return useDrop< + DragObject, + Promise, + { isOverArchiveSection: boolean; isDragging: boolean } + >({ + accept, + drop: async (item, monitor) => { + const type = monitor.getItemType(); + let model; + + if (type === "collection") { + model = collections.get(item.id); + } else { + model = documents.get(item.id); + } + + if (model) { + await model.archive(); + toast.success( + type === "collection" + ? t("Collection archived") + : t("Document archived") + ); + } + }, + canDrop: (item) => policies.abilities(item.id).archive, + collect: (monitor) => ({ + isOverArchiveSection: !!monitor.isOver(), + isDragging: monitor.canDrop(), + }), + }); +} diff --git a/app/components/WebsocketProvider.tsx b/app/components/WebsocketProvider.tsx index 65e4820fad..ff297d67d6 100644 --- a/app/components/WebsocketProvider.tsx +++ b/app/components/WebsocketProvider.tsx @@ -407,6 +407,48 @@ class WebsocketProvider extends React.Component { }) ); + this.socket.on( + "collections.archive", + async (event: PartialExcept) => { + const collectionId = event.id; + + // Fetch collection to update policies + await collections.fetch(collectionId, { force: true }); + + documents.unarchivedInCollection(collectionId).forEach( + action((doc) => { + if (!doc.publishedAt) { + // draft is to be detached from collection, not archived + doc.collectionId = null; + } else { + doc.archivedAt = event.archivedAt as string; + } + policies.remove(doc.id); + }) + ); + } + ); + + this.socket.on( + "collections.restore", + async (event: PartialExcept) => { + const collectionId = event.id; + documents + .archivedInCollection(collectionId, { + archivedAt: event.archivedAt as string, + }) + .forEach( + action((doc) => { + doc.archivedAt = null; + policies.remove(doc.id); + }) + ); + + // Fetch collection to update policies + await collections.fetch(collectionId, { force: true }); + } + ); + this.socket.on("teams.update", (event: PartialExcept) => { if ("sharing" in event && event.sharing !== auth.team?.sharing) { documents.all.forEach((document) => { diff --git a/app/menus/CollectionMenu.tsx b/app/menus/CollectionMenu.tsx index 0dc95fe4bc..7dc0d9c752 100644 --- a/app/menus/CollectionMenu.tsx +++ b/app/menus/CollectionMenu.tsx @@ -29,6 +29,8 @@ import { unstarCollection, searchInCollection, createTemplate, + archiveCollection, + restoreCollection, } from "~/actions/definitions/collections"; import useActionContext from "~/hooks/useActionContext"; import useCurrentTeam from "~/hooks/useCurrentTeam"; @@ -151,6 +153,7 @@ function CollectionMenu({ const canUserInTeam = usePolicy(team); const items: MenuItem[] = React.useMemo( () => [ + actionToMenuItem(restoreCollection, context), actionToMenuItem(starCollection, context), actionToMenuItem(unstarCollection, context), { @@ -224,6 +227,7 @@ function CollectionMenu({ onClick: handleExport, icon: , }, + actionToMenuItem(archiveCollection, context), actionToMenuItem(searchInCollection, context), { type: "separator", diff --git a/app/menus/DocumentMenu.tsx b/app/menus/DocumentMenu.tsx index 04fee5e12d..97b86ed1e8 100644 --- a/app/menus/DocumentMenu.tsx +++ b/app/menus/DocumentMenu.tsx @@ -215,8 +215,8 @@ const MenuContent: React.FC = ({ type: "button", title: t("Restore"), visible: - ((document.isWorkspaceTemplate || !!collection) && can.restore) || - !!can.unarchive, + !!(document.isWorkspaceTemplate || collection?.isActive) && + !!(can.restore || can.unarchive), onClick: (ev) => handleRestore(ev), icon: , }, @@ -224,9 +224,8 @@ const MenuContent: React.FC = ({ type: "submenu", title: t("Restore"), visible: - !document.isWorkspaceTemplate && - !collection && - !!can.restore && + !(document.isWorkspaceTemplate || collection?.isActive) && + !!(can.restore || can.unarchive) && restoreItems.length !== 0, style: { left: -170, diff --git a/app/models/Collection.ts b/app/models/Collection.ts index c469fcca2e..5dfec65c86 100644 --- a/app/models/Collection.ts +++ b/app/models/Collection.ts @@ -80,6 +80,18 @@ export default class Collection extends ParanoidModel { @observable urlId: string; + /** + * The date and time the collection was archived. + */ + @observable + archivedAt: string; + + /** + * User who archived the collection. + */ + @observable + archivedBy?: User; + /** Returns whether the collection is empty, or undefined if not loaded. */ @computed get isEmpty(): boolean | undefined { @@ -154,6 +166,21 @@ export default class Collection extends ParanoidModel { .filter(Boolean); } + @computed + get isArchived() { + return !!this.archivedAt; + } + + @computed + get isDeleted() { + return !!this.deletedAt; + } + + @computed + get isActive() { + return !this.isArchived && !this.isDeleted; + } + fetchDocuments = async (options?: { force: boolean }) => { if (this.isFetching) { return; @@ -314,6 +341,10 @@ export default class Collection extends ParanoidModel { @action unstar = async () => this.store.unstar(this); + archive = () => this.store.archive(this); + + restore = () => this.store.restore(this); + export = (format: FileOperationFormat, includeAttachments: boolean) => client.post("/collections.export", { id: this.id, diff --git a/app/models/base/ArchivableModel.ts b/app/models/base/ArchivableModel.ts index d6489368d7..2ab3c63e7c 100644 --- a/app/models/base/ArchivableModel.ts +++ b/app/models/base/ArchivableModel.ts @@ -3,5 +3,5 @@ import ParanoidModel from "./ParanoidModel"; export default abstract class ArchivableModel extends ParanoidModel { @observable - archivedAt: string | undefined; + archivedAt: string | null; } diff --git a/app/scenes/Collection/components/Notices.tsx b/app/scenes/Collection/components/Notices.tsx new file mode 100644 index 0000000000..345053e251 --- /dev/null +++ b/app/scenes/Collection/components/Notices.tsx @@ -0,0 +1,29 @@ +import { ArchiveIcon } from "outline-icons"; +import * as React from "react"; +import { useTranslation } from "react-i18next"; +import Collection from "~/models/Collection"; +import ErrorBoundary from "~/components/ErrorBoundary"; +import Notice from "~/components/Notice"; +import Time from "~/components/Time"; + +type Props = { + collection: Collection; +}; + +export default function Notices({ collection }: Props) { + const { t } = useTranslation(); + + return ( + + {collection.isArchived && !collection.isDeleted && ( + }> + {t("Archived by {{userName}}", { + userName: collection.archivedBy?.name ?? t("Unknown"), + })} +   + + )} + + ); +} diff --git a/app/scenes/Collection/index.tsx b/app/scenes/Collection/index.tsx index 449014dc93..f8f391c428 100644 --- a/app/scenes/Collection/index.tsx +++ b/app/scenes/Collection/index.tsx @@ -13,11 +13,13 @@ import { import styled from "styled-components"; import breakpoint from "styled-components-breakpoint"; import { s } from "@shared/styles"; +import { StatusFilter } from "@shared/types"; import { colorPalette } from "@shared/utils/collections"; import Collection from "~/models/Collection"; import Search from "~/scenes/Search"; import { Action } from "~/components/Actions"; import CenteredContent from "~/components/CenteredContent"; +import { CollectionBreadcrumb } from "~/components/CollectionBreadcrumb"; import CollectionDescription from "~/components/CollectionDescription"; import Heading from "~/components/Heading"; import Icon, { IconTitleWrapper } from "~/components/Icon"; @@ -28,6 +30,7 @@ import PaginatedDocumentList from "~/components/PaginatedDocumentList"; import PinnedDocuments from "~/components/PinnedDocuments"; import PlaceholderText from "~/components/PlaceholderText"; import Scene from "~/components/Scene"; +import Subheading from "~/components/Subheading"; import Tab from "~/components/Tab"; import Tabs from "~/components/Tabs"; import { editCollection } from "~/actions/definitions/collections"; @@ -41,6 +44,7 @@ import Actions from "./components/Actions"; import DropToImport from "./components/DropToImport"; import Empty from "./components/Empty"; import MembershipPreview from "./components/MembershipPreview"; +import Notices from "./components/Notices"; import ShareButton from "./components/ShareButton"; const IconPicker = React.lazy(() => import("~/components/IconPicker")); @@ -132,7 +136,9 @@ function CollectionScene() { centered={false} textTitle={collection.name} left={ - collection.isEmpty ? undefined : ( + collection.isArchived ? ( + + ) : collection.isEmpty ? undefined : ( + {can.update ? ( @@ -192,26 +199,28 @@ function CollectionScene() { - - - {t("Documents")} - - - {t("Recently updated")} - - - {t("Recently published")} - - - {t("Least recently updated")} - - - {t("A–Z")} - - + {!collection.isArchived && ( + + + {t("Documents")} + + + {t("Recently updated")} + + + {t("Recently published")} + + + {t("Least recently updated")} + + + {t("A–Z")} + + + )} {collection.isEmpty ? ( - ) : ( + ) : !collection.isArchived ? ( + ) : ( + + + {t("Documents")}} + options={{ + collectionId: collection.id, + parentDocumentId: null, + sort: collection.sort.field, + direction: collection.sort.direction, + statusFilter: [StatusFilter.Archived], + }} + showParentDocuments + /> + + )} diff --git a/app/stores/CollectionsStore.ts b/app/stores/CollectionsStore.ts index e077d60812..b0676bc94e 100644 --- a/app/stores/CollectionsStore.ts +++ b/app/stores/CollectionsStore.ts @@ -1,11 +1,16 @@ import invariant from "invariant"; import find from "lodash/find"; import isEmpty from "lodash/isEmpty"; +import orderBy from "lodash/orderBy"; import sortBy from "lodash/sortBy"; -import { computed, action } from "mobx"; -import { CollectionPermission, FileOperationFormat } from "@shared/types"; +import { computed, action, runInAction } from "mobx"; +import { + CollectionPermission, + CollectionStatusFilter, + FileOperationFormat, +} from "@shared/types"; import Collection from "~/models/Collection"; -import { Properties } from "~/types"; +import { PaginationParams, Properties } from "~/types"; import { client } from "~/utils/ApiClient"; import RootStore from "./RootStore"; import Store from "./base/Store"; @@ -27,6 +32,11 @@ export default class CollectionsStore extends Store { : undefined; } + @computed + get allActive() { + return this.orderedData.filter((c) => c.isActive); + } + @computed get orderedData(): Collection[] { let collections = Array.from(this.data.values()); @@ -97,6 +107,30 @@ export default class CollectionsStore extends Store { } }; + @action + archive = async (collection: Collection) => { + const res = await client.post("/collections.archive", { + id: collection.id, + }); + runInAction("Collection#archive", () => { + invariant(res?.data, "Data should be available"); + this.add(res.data); + this.addPolicies(res.policies); + }); + }; + + @action + restore = async (collection: Collection) => { + const res = await client.post("/collections.restore", { + id: collection.id, + }); + runInAction("Collection#restore", () => { + invariant(res?.data, "Data should be available"); + this.add(res.data); + this.addPolicies(res.policies); + }); + }; + async update(params: Properties): Promise { const result = await super.update(params); @@ -119,6 +153,52 @@ export default class CollectionsStore extends Store { return model; } + @action + fetchNamedPage = async ( + request = "list", + options: + | (PaginationParams & { statusFilter: CollectionStatusFilter[] }) + | undefined + ): Promise => { + this.isFetching = true; + + try { + const res = await client.post(`/collections.${request}`, options); + invariant(res?.data, "Collection list not available"); + runInAction("CollectionsStore#fetchNamedPage", () => { + res.data.forEach(this.add); + this.addPolicies(res.policies); + this.isLoaded = true; + }); + return res.data; + } finally { + this.isFetching = false; + } + }; + + @action + fetchArchived = async (options?: PaginationParams): Promise => + this.fetchNamedPage("list", { + ...options, + statusFilter: [CollectionStatusFilter.Archived], + }); + + @computed + get archived(): Collection[] { + return orderBy(this.orderedData, "archivedAt", "desc").filter( + (c) => c.isArchived && !c.isDeleted + ); + } + + @computed + get publicCollections() { + return this.orderedData.filter( + (collection) => + collection.permission && + Object.values(CollectionPermission).includes(collection.permission) + ); + } + star = async (collection: Collection, index?: string) => { await this.rootStore.stars.create({ collectionId: collection.id, diff --git a/app/stores/DocumentsStore.ts b/app/stores/DocumentsStore.ts index 850a816df3..8639ecefe2 100644 --- a/app/stores/DocumentsStore.ts +++ b/app/stores/DocumentsStore.ts @@ -121,6 +121,33 @@ export default class DocumentsStore extends Store { ); } + archivedInCollection( + collectionId: string, + options?: { archivedAt: string } + ): Document[] { + const filterCond = (document: Document) => + options + ? document.collectionId === collectionId && + document.isArchived && + document.archivedAt === options.archivedAt && + !document.isDeleted + : document.collectionId === collectionId && + document.isArchived && + !document.isDeleted; + + return filter(this.orderedData, filterCond); + } + + unarchivedInCollection(collectionId: string): Document[] { + return filter( + this.orderedData, + (document) => + document.collectionId === collectionId && + !document.isArchived && + !document.isDeleted + ); + } + templatesInCollection(collectionId: string): Document[] { return orderBy( filter( @@ -313,8 +340,18 @@ export default class DocumentsStore extends Store { }; @action - fetchArchived = async (options?: PaginationParams): Promise => - this.fetchNamedPage("archived", options); + 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; + }; @action fetchDeleted = async (options?: PaginationParams): Promise => diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts index 867249856d..801e3a6f7b 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts @@ -161,6 +161,8 @@ export default class DeliverWebhookTask extends BaseTask { case "collections.delete": case "collections.move": case "collections.permission_changed": + case "collections.archive": + case "collections.restore": await this.handleCollectionEvent(subscription, event); return; case "collections.add_user": diff --git a/server/migrations/20240717061527-add-column-archivedAt-collections.js b/server/migrations/20240717061527-add-column-archivedAt-collections.js new file mode 100644 index 0000000000..b53197d1c1 --- /dev/null +++ b/server/migrations/20240717061527-add-column-archivedAt-collections.js @@ -0,0 +1,27 @@ +"use strict"; + +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.sequelize.transaction(async (transaction) => { + await queryInterface.addColumn("collections", "archivedAt", { + type: Sequelize.DATE, + allowNull: true, + transaction, + }); + await queryInterface.addIndex("collections", ["archivedAt"], { + transaction, + }); + }); + }, + + async down(queryInterface) { + await queryInterface.sequelize.transaction(async (transaction) => { + await queryInterface.removeIndex("collections", ["archivedAt"], { + transaction, + }); + await queryInterface.removeColumn("collections", "archivedAt", { + transaction, + }); + }); + }, +}; diff --git a/server/migrations/20240809054702-add-column-archivedById-to-collections.js b/server/migrations/20240809054702-add-column-archivedById-to-collections.js new file mode 100644 index 0000000000..6e3bf3c15f --- /dev/null +++ b/server/migrations/20240809054702-add-column-archivedById-to-collections.js @@ -0,0 +1,18 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addColumn("collections", "archivedById", { + type: Sequelize.UUID, + allowNull: true, + references: { + model: "users", + }, + }); + }, + + async down(queryInterface) { + await queryInterface.removeColumn("collections", "archivedById"); + }, +}; diff --git a/server/models/Collection.test.ts b/server/models/Collection.test.ts index d1e22631c7..2acf22370e 100644 --- a/server/models/Collection.test.ts +++ b/server/models/Collection.test.ts @@ -175,6 +175,67 @@ describe("#addDocumentToStructure", () => { expect(collection.documentStructure![0].children.length).toBe(2); expect(collection.documentStructure![0].children[0].id).toBe(id); }); + + test("should add the document along with its nested document(s)", async () => { + const collection = await buildCollection(); + + const document = await buildDocument({ + title: "New doc", + teamId: collection.teamId, + }); + + // create a nested doc within New doc + const nestedDocument = await buildDocument({ + title: "Nested doc", + parentDocumentId: document.id, + teamId: collection.teamId, + }); + + expect(collection.documentStructure).toBeNull(); + + await collection.addDocumentToStructure(document); + + expect(collection.documentStructure).not.toBeNull(); + expect(collection.documentStructure).toHaveLength(1); + expect(collection.documentStructure![0].id).toBe(document.id); + expect(collection.documentStructure![0].children).toHaveLength(1); + expect(collection.documentStructure![0].children[0].id).toBe( + nestedDocument.id + ); + }); + + test("should add the document along with its archived nested document(s)", async () => { + const collection = await buildCollection(); + + const document = await buildDocument({ + title: "New doc", + teamId: collection.teamId, + }); + + // create a nested doc within New doc + const nestedDocument = await buildDocument({ + title: "Nested doc", + parentDocumentId: document.id, + teamId: collection.teamId, + }); + + nestedDocument.archivedAt = new Date(); + await nestedDocument.save(); + + expect(collection.documentStructure).toBeNull(); + + await collection.addDocumentToStructure(document, undefined, { + includeArchived: true, + }); + + expect(collection.documentStructure).not.toBeNull(); + expect(collection.documentStructure).toHaveLength(1); + expect(collection.documentStructure![0].id).toBe(document.id); + expect(collection.documentStructure![0].children).toHaveLength(1); + expect(collection.documentStructure![0].children[0].id).toBe( + nestedDocument.id + ); + }); describe("options: documentJson", () => { test("should append supplied json over document's own", async () => { const collection = await buildCollection(); diff --git a/server/models/Collection.ts b/server/models/Collection.ts index 45487db054..43b26f7910 100644 --- a/server/models/Collection.ts +++ b/server/models/Collection.ts @@ -10,6 +10,7 @@ import { NonNullFindOptions, InferAttributes, InferCreationAttributes, + EmptyResultError, } from "sequelize"; import { Sequelize, @@ -29,6 +30,8 @@ import { DataType, Length as SimpleLength, BeforeDestroy, + IsDate, + AllowNull, } from "sequelize-typescript"; import isUUID from "validator/lib/isUUID"; import type { CollectionSort, ProsemirrorData } from "@shared/types"; @@ -54,6 +57,10 @@ import IsHexColor from "./validators/IsHexColor"; import Length from "./validators/Length"; import NotContainsUrl from "./validators/NotContainsUrl"; +type AdditionalFindOptions = { + rejectOnEmpty?: boolean | Error; +}; + @Scopes(() => ({ withAllMemberships: { include: [ @@ -99,6 +106,13 @@ import NotContainsUrl from "./validators/NotContainsUrl"; }, ], }), + withArchivedBy: () => ({ + include: [ + { + association: "archivedBy", + }, + ], + }), withMembership: (userId: string) => { if (!userId) { return {}; @@ -249,6 +263,11 @@ class Collection extends ParanoidModel< }) sort: CollectionSort; + /** Whether the collection is archived, and if so when. */ + @IsDate + @Column + archivedAt: Date | null; + // getters /** @@ -268,6 +287,16 @@ class Collection extends ParanoidModel< return `/collection/${slugify(this.name)}-${this.urlId}`; } + /** + * Whether this collection is considered active or not. A collection is active if + * it has not been archived or deleted. + * + * @returns boolean + */ + get isActive(): boolean { + return !this.archivedAt && !this.deletedAt; + } + // hooks @BeforeValidate @@ -321,6 +350,14 @@ class Collection extends ParanoidModel< @Column(DataType.UUID) importId: string | null; + @BelongsTo(() => User, "archivedById") + archivedBy?: User | null; + + @AllowNull + @ForeignKey(() => User) + @Column(DataType.UUID) + archivedById?: string | null; + @HasMany(() => Document, "collectionId") documents: Document[]; @@ -390,37 +427,51 @@ class Collection extends ParanoidModel< */ static async findByPk( id: Identifier, - options?: NonNullFindOptions + options?: NonNullFindOptions & AdditionalFindOptions ): Promise; static async findByPk( id: Identifier, - options?: FindOptions + options?: FindOptions & AdditionalFindOptions ): Promise; static async findByPk( id: Identifier, - options: FindOptions = {} + options: FindOptions & AdditionalFindOptions = {} ): Promise { if (typeof id !== "string") { return null; } if (isUUID(id)) { - return this.findOne({ + const collection = await this.findOne({ where: { id, }, ...options, + rejectOnEmpty: false, }); + + if (!collection && options.rejectOnEmpty) { + throw new EmptyResultError(`Collection doesn't exist with id: ${id}`); + } + + return collection; } const match = id.match(UrlHelper.SLUG_URL_REGEX); if (match) { - return this.findOne({ + const collection = await this.findOne({ where: { urlId: match[1], }, ...options, + rejectOnEmpty: false, }); + + if (!collection && options.rejectOnEmpty) { + throw new EmptyResultError(`Collection doesn't exist with id: ${id}`); + } + + return collection; } return null; @@ -662,6 +713,7 @@ class Collection extends ParanoidModel< options: FindOptions & { save?: boolean; documentJson?: NavigationNode; + includeArchived?: boolean; } = {} ) { if (!this.documentStructure) { diff --git a/server/models/Document.ts b/server/models/Document.ts index f3b84fbe12..1f2427a246 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -975,68 +975,76 @@ class Document extends ArchivableModel< // Moves a document from being visible to the team within a collection // to the archived area, where it can be subsequently restored. - archive = async (user: User) => { - await this.sequelize.transaction(async (transaction: Transaction) => { - const collection = this.collectionId - ? await Collection.findByPk(this.collectionId, { - transaction, - lock: transaction.LOCK.UPDATE, - }) - : undefined; + archive = async (user: User, options?: FindOptions) => { + const { transaction } = { ...options }; + const collection = this.collectionId + ? await Collection.findByPk(this.collectionId, { + transaction, + lock: transaction?.LOCK.UPDATE, + }) + : undefined; - if (collection) { - await collection.removeDocumentInStructure(this, { transaction }); - if (this.collection) { - this.collection.documentStructure = collection.documentStructure; - } + if (collection) { + await collection.removeDocumentInStructure(this, { transaction }); + if (this.collection) { + this.collection.documentStructure = collection.documentStructure; } - }); + } - await this.archiveWithChildren(user); + await this.archiveWithChildren(user, { transaction }); return this; }; // Restore an archived document back to being visible to the team - unarchive = async (user: User) => { - await this.sequelize.transaction(async (transaction: Transaction) => { - const collection = this.collectionId - ? await Collection.findByPk(this.collectionId, { - transaction, - lock: transaction.LOCK.UPDATE, - }) - : undefined; - - // check to see if the documents parent hasn't been archived also - // If it has then restore the document to the collection root. - if (this.parentDocumentId) { - const parent = await (this.constructor as typeof Document).findOne({ - where: { - id: this.parentDocumentId, - }, - }); - if (parent?.isDraft || !parent?.isActive) { - this.parentDocumentId = null; - } - } - - if (!this.template && this.publishedAt && collection) { - await collection.addDocumentToStructure(this, undefined, { + restoreTo = async ( + collectionId: string, + options: FindOptions & { user: User } + ) => { + const { transaction } = { ...options }; + const collection = collectionId + ? await Collection.findByPk(collectionId, { transaction, - }); - if (this.collection) { - this.collection.documentStructure = collection.documentStructure; - } - } - }); + lock: transaction?.LOCK.UPDATE, + }) + : undefined; - if (this.deletedAt) { - await this.restore(); + // check to see if the documents parent hasn't been archived also + // If it has then restore the document to the collection root. + if (this.parentDocumentId) { + const parent = await (this.constructor as typeof Document).findOne({ + where: { + id: this.parentDocumentId, + }, + transaction, + }); + if (parent?.isDraft || !parent?.isActive) { + this.parentDocumentId = null; + } } - this.archivedAt = null; - this.lastModifiedById = user.id; - this.updatedBy = user; - await this.save(); + if (!this.template && this.publishedAt && collection?.isActive) { + await collection.addDocumentToStructure(this, undefined, { + includeArchived: true, + transaction, + }); + } + + if (this.deletedAt) { + await this.restore({ transaction }); + this.collectionId = collectionId; + await this.save({ transaction }); + } + + if (this.archivedAt) { + await this.restoreWithChildren(collectionId, options.user, { + transaction, + }); + } + + if (this.collection && collection) { + // updating the document structure in memory just in case it's later accessed somewhere + this.collection.documentStructure = collection.documentStructure; + } return this; }; @@ -1088,7 +1096,7 @@ class Document extends ArchivableModel< * @returns Promise resolving to a NavigationNode */ toNavigationNode = async ( - options?: FindOptions + options?: FindOptions & { includeArchived?: boolean } ): Promise => { // Checking if the record is new is a performance optimization – new docs cannot have children const childDocuments = this.isNewRecord @@ -1097,16 +1105,24 @@ class Document extends ArchivableModel< .unscoped() .scope("withoutState") .findAll({ - where: { - teamId: this.teamId, - parentDocumentId: this.id, - archivedAt: { - [Op.is]: null, - }, - publishedAt: { - [Op.ne]: null, - }, - }, + where: options?.includeArchived + ? { + teamId: this.teamId, + parentDocumentId: this.id, + publishedAt: { + [Op.ne]: null, + }, + } + : { + teamId: this.teamId, + parentDocumentId: this.id, + publishedAt: { + [Op.ne]: null, + }, + archivedAt: { + [Op.is]: null, + }, + }, transaction: options?.transaction, }); @@ -1124,6 +1140,38 @@ class Document extends ArchivableModel< }; }; + private restoreWithChildren = async ( + collectionId: string, + user: User, + options?: FindOptions + ) => { + const restoreChildren = async (parentDocumentId: string) => { + const childDocuments = await ( + this.constructor as typeof Document + ).findAll({ + where: { + parentDocumentId, + }, + ...options, + }); + for (const child of childDocuments) { + await restoreChildren(child.id); + child.archivedAt = null; + child.lastModifiedById = user.id; + child.updatedBy = user; + child.collectionId = collectionId; + await child.save(options); + } + }; + + await restoreChildren(this.id); + this.archivedAt = null; + this.lastModifiedById = user.id; + this.updatedBy = user; + this.collectionId = collectionId; + return this.save(options); + }; + private archiveWithChildren = async ( user: User, options?: FindOptions @@ -1138,6 +1186,7 @@ class Document extends ArchivableModel< where: { parentDocumentId, }, + ...options, }); for (const child of childDocuments) { await archiveChildren(child.id); diff --git a/server/policies/collection.test.ts b/server/policies/collection.test.ts index 5a314d67ee..a177716c2c 100644 --- a/server/policies/collection.test.ts +++ b/server/policies/collection.test.ts @@ -9,6 +9,23 @@ import { import { serialize } from "./index"; describe("admin", () => { + it("should allow team admin to archive collection", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ teamId: team.id }); + // reload to get membership + const reloaded = await Collection.scope({ + method: ["withMembership", admin.id], + }).findByPk(collection.id); + const abilities = serialize(admin, reloaded); + expect(abilities.read).toBeTruthy(); + expect(abilities.update).toBeTruthy(); + expect(abilities.readDocument).toBeTruthy(); + expect(abilities.updateDocument).toBeTruthy(); + expect(abilities.createDocument).toBeTruthy(); + expect(abilities.archive).toBeTruthy(); + }); + it("should allow updating collection but not reading documents", async () => { const team = await buildTeam(); const user = await buildAdmin({ @@ -29,6 +46,7 @@ describe("admin", () => { expect(abilities.share).toEqual(false); expect(abilities.read).toBeTruthy(); expect(abilities.update).toBeTruthy(); + expect(abilities.archive).toBeTruthy(); }); it("should allow updating documents in view only collection", async () => { @@ -40,47 +58,76 @@ describe("admin", () => { teamId: team.id, permission: CollectionPermission.Read, }); - const abilities = serialize(user, collection); + // reload to get membership + const reloaded = await Collection.scope({ + method: ["withMembership", user.id], + }).findByPk(collection.id); + const abilities = serialize(user, reloaded); expect(abilities.readDocument).toBeTruthy(); expect(abilities.updateDocument).toBeTruthy(); expect(abilities.createDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.read).toBeTruthy(); expect(abilities.update).toBeTruthy(); + expect(abilities.archive).toBeTruthy(); }); }); describe("member", () => { describe("admin permission", () => { - it("should allow updating collection", async () => { + it("should allow member to update collection", async () => { const team = await buildTeam(); - const user = await buildUser({ - teamId: team.id, - }); - const collection = await buildCollection({ - teamId: team.id, - permission: CollectionPermission.ReadWrite, - }); - await UserMembership.create({ - createdById: user.id, - collectionId: collection.id, - userId: user.id, - permission: CollectionPermission.Admin, + const admin = await buildAdmin({ teamId: team.id }); + const member = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ teamId: team.id }); + await collection.$add("user", member, { + through: { + permission: CollectionPermission.Admin, + createdById: admin.id, + }, }); // reload to get membership const reloaded = await Collection.scope({ - method: ["withMembership", user.id], + method: ["withMembership", member.id], }).findByPk(collection.id); - const abilities = serialize(user, reloaded); + const abilities = serialize(member, reloaded); expect(abilities.read).toBeTruthy(); - expect(abilities.readDocument).toBeTruthy(); - // expect(abilities.createDocument).toBeTruthy(); - // expect(abilities.share).toBeTruthy(); expect(abilities.update).toBeTruthy(); + expect(abilities.readDocument).toBeTruthy(); + expect(abilities.updateDocument).toBeTruthy(); + expect(abilities.createDocument).toBeTruthy(); + expect(abilities.share).toBeTruthy(); + expect(abilities.update).toBeTruthy(); + expect(abilities.archive).toBeTruthy(); }); }); describe("read_write permission", () => { + it("should disallow member to update collection", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const member = await buildUser({ teamId: team.id }); + + const collection = await buildCollection({ teamId: team.id }); + await collection.$add("user", member, { + through: { + permission: CollectionPermission.ReadWrite, + createdById: admin.id, + }, + }); + // reload to get membership + const reloaded = await Collection.scope({ + method: ["withMembership", member.id], + }).findByPk(collection.id); + const abilities = serialize(member, reloaded); + expect(abilities.read).toBeTruthy(); + expect(abilities.update).toBe(false); + expect(abilities.readDocument).toBeTruthy(); + expect(abilities.updateDocument).toBeTruthy(); + expect(abilities.createDocument).toBeTruthy(); + expect(abilities.archive).toBe(false); + }); + it("should allow read write documents for team member", async () => { const team = await buildTeam(); const user = await buildUser({ @@ -95,6 +142,7 @@ describe("member", () => { expect(abilities.readDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); it("should override read membership permission", async () => { @@ -121,10 +169,38 @@ describe("member", () => { expect(abilities.readDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); describe("read permission", () => { + it("should disallow member to archive collection", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const member = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: CollectionPermission.Read, + }); + await collection.$add("user", member, { + through: { + permission: CollectionPermission.Read, + createdById: admin.id, + }, + }); + // reload to get membership + const reloaded = await Collection.scope({ + method: ["withMembership", member.id], + }).findByPk(collection.id); + const abilities = serialize(member, reloaded); + expect(abilities.read).toBeTruthy(); + expect(abilities.update).not.toBeTruthy(); + expect(abilities.readDocument).toBeTruthy(); + expect(abilities.updateDocument).toBe(false); + expect(abilities.createDocument).toBe(false); + expect(abilities.archive).toBe(false); + }); + it("should allow read permissions for team member", async () => { const team = await buildTeam(); const user = await buildUser({ @@ -138,32 +214,33 @@ describe("member", () => { expect(abilities.read).toBeTruthy(); expect(abilities.update).toEqual(false); expect(abilities.share).toEqual(false); + expect(abilities.archive).toEqual(false); }); it("should allow override with read_write membership permission", async () => { const team = await buildTeam(); - const user = await buildUser({ - teamId: team.id, - }); + const admin = await buildAdmin({ teamId: team.id }); + const member = await buildUser({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id, permission: CollectionPermission.Read, }); - await UserMembership.create({ - createdById: user.id, - collectionId: collection.id, - userId: user.id, - permission: CollectionPermission.ReadWrite, + await collection.$add("user", member, { + through: { + permission: CollectionPermission.ReadWrite, + createdById: admin.id, + }, }); // reload to get membership const reloaded = await Collection.scope({ - method: ["withMembership", user.id], + method: ["withMembership", member.id], }).findByPk(collection.id); - const abilities = serialize(user, reloaded); + const abilities = serialize(member, reloaded); expect(abilities.read).toBeTruthy(); expect(abilities.readDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); @@ -183,6 +260,7 @@ describe("member", () => { expect(abilities.createDocument).toEqual(false); expect(abilities.share).toEqual(false); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); it("should allow override with team member membership permission", async () => { @@ -210,6 +288,7 @@ describe("member", () => { expect(abilities.createDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); }); @@ -232,6 +311,7 @@ describe("viewer", () => { expect(abilities.createDocument).toEqual(false); expect(abilities.update).toEqual(false); expect(abilities.share).toEqual(false); + expect(abilities.archive).toEqual(false); }); it("should override read membership permission", async () => { @@ -259,6 +339,7 @@ describe("viewer", () => { expect(abilities.readDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); @@ -289,6 +370,7 @@ describe("viewer", () => { expect(abilities.createDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); @@ -307,6 +389,7 @@ describe("viewer", () => { expect(abilities.read).toEqual(false); expect(abilities.update).toEqual(false); expect(abilities.share).toEqual(false); + expect(abilities.archive).toEqual(false); }); it("should allow override with team member membership permission", async () => { @@ -335,6 +418,7 @@ describe("viewer", () => { expect(abilities.createDocument).toBeTruthy(); expect(abilities.share).toBeTruthy(); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); }); @@ -357,6 +441,7 @@ describe("guest", () => { expect(abilities.createDocument).toEqual(false); expect(abilities.update).toEqual(false); expect(abilities.share).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); @@ -386,5 +471,6 @@ describe("guest", () => { expect(abilities.createDocument).toEqual(false); expect(abilities.share).toEqual(false); expect(abilities.update).toEqual(false); + expect(abilities.archive).toEqual(false); }); }); diff --git a/server/policies/collection.ts b/server/policies/collection.ts index 96c5f609bb..2ec24f42d2 100644 --- a/server/policies/collection.ts +++ b/server/policies/collection.ts @@ -28,7 +28,7 @@ allow(User, "move", Collection, (actor, collection) => // isTeamAdmin(actor, collection), isTeamMutable(actor), - !collection?.deletedAt + !!collection?.isActive ) ); @@ -105,14 +105,38 @@ allow(User, "share", Collection, (user, collection) => { return true; }); +allow(User, "updateDocument", Collection, (user, collection) => { + if (!collection || !isTeamModel(user, collection) || !isTeamMutable(user)) { + return false; + } + + if (!collection.isPrivate && user.isAdmin) { + return true; + } + + if ( + collection.permission !== CollectionPermission.ReadWrite || + user.isViewer || + user.isGuest + ) { + return includesMembership(collection, [ + CollectionPermission.ReadWrite, + CollectionPermission.Admin, + ]); + } + + return true; +}); + allow( User, - ["updateDocument", "createDocument", "deleteDocument"], + ["createDocument", "deleteDocument"], Collection, (user, collection) => { if ( !collection || - user.teamId !== collection.teamId || + !collection.isActive || + !isTeamModel(user, collection) || !isTeamMutable(user) ) { return false; @@ -137,16 +161,38 @@ allow( } ); -allow(User, ["update", "delete"], Collection, (user, collection) => { - if (!collection || user.isGuest || user.teamId !== collection.teamId) { - return false; - } - if (user.isAdmin) { - return true; - } +allow(User, ["update", "archive"], Collection, (user, collection) => + and( + !!collection, + !!collection?.isActive, + or( + isTeamAdmin(user, collection), + includesMembership(collection, [CollectionPermission.Admin]) + ) + ) +); - return includesMembership(collection, [CollectionPermission.Admin]); -}); +allow(User, "delete", Collection, (user, collection) => + and( + !!collection, + !collection?.deletedAt, + or( + isTeamAdmin(user, collection), + includesMembership(collection, [CollectionPermission.Admin]) + ) + ) +); + +allow(User, "restore", Collection, (user, collection) => + and( + !!collection, + !collection?.isActive, + or( + isTeamAdmin(user, collection), + includesMembership(collection, [CollectionPermission.Admin]) + ) + ) +); function includesMembership( collection: Collection | null, diff --git a/server/presenters/collection.ts b/server/presenters/collection.ts index 0e7a6da5e4..cc379dedb3 100644 --- a/server/presenters/collection.ts +++ b/server/presenters/collection.ts @@ -1,6 +1,7 @@ import Collection from "@server/models/Collection"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { APIContext } from "@server/types"; +import presentUser from "./user"; export default async function presentCollection( ctx: APIContext | undefined, @@ -24,5 +25,7 @@ export default async function presentCollection( createdAt: collection.createdAt, updatedAt: collection.updatedAt, deletedAt: collection.deletedAt, + archivedAt: collection.archivedAt, + archivedBy: collection.archivedBy && presentUser(collection.archivedBy), }; } diff --git a/server/queues/processors/WebsocketsProcessor.ts b/server/queues/processors/WebsocketsProcessor.ts index 12ab205fa4..87c730b2dd 100644 --- a/server/queues/processors/WebsocketsProcessor.ts +++ b/server/queues/processors/WebsocketsProcessor.ts @@ -1,4 +1,6 @@ +import concat from "lodash/concat"; import uniq from "lodash/uniq"; +import uniqBy from "lodash/uniqBy"; import { Server } from "socket.io"; import { Comment, @@ -41,8 +43,7 @@ export default class WebsocketsProcessor { case "documents.create": case "documents.publish": case "documents.unpublish": - case "documents.restore": - case "documents.unarchive": { + case "documents.restore": { const document = await Document.findByPk(event.documentId, { paranoid: false, }); @@ -54,6 +55,7 @@ export default class WebsocketsProcessor { } const channels = await this.getDocumentEventChannels(event, document); + return socketio.to(channels).emit("entities", { event: event.name, fetchIfMissing: true, @@ -71,6 +73,50 @@ export default class WebsocketsProcessor { }); } + case "documents.unarchive": { + const [document, srcCollection] = await Promise.all([ + Document.findByPk(event.documentId, { paranoid: false }), + Collection.findByPk(event.data.sourceCollectionId, { + paranoid: false, + }), + ]); + if (!document || !srcCollection) { + return; + } + const documentChannels = await this.getDocumentEventChannels( + event, + document + ); + const collectionChannels = this.getCollectionEventChannels( + event, + srcCollection + ); + + const channels = uniq(concat(documentChannels, collectionChannels)); + + return socketio.to(channels).emit("entities", { + event: event.name, + fetchIfMissing: true, + documentIds: [ + { + id: document.id, + updatedAt: document.updatedAt, + }, + ], + collectionIds: uniqBy( + [ + { + id: document.collectionId, + }, + { + id: srcCollection.id, + }, + ], + "id" + ), + }); + } + case "documents.permanent_delete": { return socketio .to(`collection-${event.collectionId}`) @@ -235,6 +281,21 @@ export default class WebsocketsProcessor { }); } + case "collections.archive": + case "collections.restore": { + const collection = await Collection.findByPk(event.collectionId); + if (!collection) { + return; + } + + return socketio + .to(this.getCollectionEventChannels(event, collection)) + .emit(event.name, { + id: event.collectionId, + archivedAt: event.data.archivedAt, + }); + } + case "collections.move": { return socketio .to(`collection-${event.collectionId}`) diff --git a/server/routes/api/collections/collections.test.ts b/server/routes/api/collections/collections.test.ts index c3ca6b72af..1fc40f1a3d 100644 --- a/server/routes/api/collections/collections.test.ts +++ b/server/routes/api/collections/collections.test.ts @@ -1,4 +1,4 @@ -import { CollectionPermission } from "@shared/types"; +import { CollectionPermission, CollectionStatusFilter } from "@shared/types"; import { Document, UserMembership, GroupMembership } from "@server/models"; import { buildUser, @@ -40,6 +40,44 @@ describe("#collections.list", () => { expect(body.policies[0].abilities.read).toBeTruthy(); }); + it("should include archived collections", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + archivedAt: new Date(), + }); + const res = await server.post("/api/collections.list", { + body: { + token: admin.getJwtToken(), + statusFilter: [CollectionStatusFilter.Archived], + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(1); + expect(body.data[0].archivedAt).toBeTruthy(); + expect(body.data[0].archivedBy).toBeTruthy(); + expect(body.data[0].archivedBy.id).toBe(collection.archivedById); + }); + + it("should exclude archived collections", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + await buildCollection({ + teamId: team.id, + archivedAt: new Date(), + }); + const res = await server.post("/api/collections.list", { + body: { + token: admin.getJwtToken(), + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data).toHaveLength(0); + }); + it("should not return private collections actor is not a member of", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); @@ -122,6 +160,62 @@ describe("#collections.list", () => { expect(body.policies.length).toEqual(2); expect(body.policies[0].abilities.read).toBeTruthy(); }); + + it("should not include archived collections", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + await buildCollection({ + userId: user.id, + teamId: team.id, + archivedAt: new Date(), + }); + const res = await server.post("/api/collections.list", { + body: { + token: user.getJwtToken(), + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(0); + }); + + it("should not include archived collections", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + userId: user.id, + teamId: team.id, + }); + + const beforeArchiveRes = await server.post("/api/collections.list", { + body: { + token: user.getJwtToken(), + }, + }); + const beforeArchiveBody = await beforeArchiveRes.json(); + expect(beforeArchiveRes.status).toEqual(200); + expect(beforeArchiveBody.data).toHaveLength(1); + expect(beforeArchiveBody.data[0].id).toEqual(collection.id); + + const archiveRes = await server.post("/api/collections.archive", { + body: { + token: user.getJwtToken(), + id: collection.id, + }, + }); + + expect(archiveRes.status).toEqual(200); + + const afterArchiveRes = await server.post("/api/collections.list", { + body: { + token: user.getJwtToken(), + }, + }); + + const afterArchiveBody = await afterArchiveRes.json(); + expect(afterArchiveRes.status).toEqual(200); + expect(afterArchiveBody.data).toHaveLength(0); + }); }); describe("#collections.import", () => { @@ -1056,6 +1150,26 @@ describe("#collections.memberships", () => { }); describe("#collections.info", () => { + it("should return archivedBy for archived collections", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + userId: user.id, + teamId: team.id, + archivedAt: new Date(), + archivedById: user.id, + }); + const res = await server.post("/api/collections.info", { + body: { + token: user.getJwtToken(), + id: collection.id, + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.archivedBy.id).toEqual(collection.archivedById); + }); + it("should return collection", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); @@ -1705,3 +1819,76 @@ describe("#collections.delete", () => { expect(body.success).toBe(true); }); }); + +describe("#collections.archive", () => { + it("should archive collection", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ teamId: team.id }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: team.id, + publishedAt: new Date(), + }); + + await collection.reload(); + expect(collection.documentStructure).not.toBe(null); + expect(document.archivedAt).toBe(null); + const res = await server.post("/api/collections.archive", { + body: { + token: admin.getJwtToken(), + id: collection.id, + }, + }); + const [, , body] = await Promise.all([ + collection.reload(), + document.reload(), + res.json(), + ]); + expect(res.status).toEqual(200); + expect(body.data.archivedAt).not.toBe(null); + expect(body.data.archivedBy).toBeTruthy(); + expect(body.data.archivedBy.id).toBe(collection.archivedById); + expect(document.archivedAt).not.toBe(null); + }); +}); + +describe("#collections.restore", () => { + it("should restore collection", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + }); + await buildDocument({ + collectionId: collection.id, + teamId: team.id, + publishedAt: new Date(), + }); + // reload to ensure documentStructure is set + await collection.reload(); + expect(collection.documentStructure).not.toBe(null); + const archiveRes = await server.post("/api/collections.archive", { + body: { + token: admin.getJwtToken(), + id: collection.id, + }, + }); + const [, archiveBody] = await Promise.all([ + collection.reload(), + archiveRes.json(), + ]); + expect(archiveRes.status).toEqual(200); + expect(archiveBody.data.archivedAt).not.toBe(null); + const res = await server.post("/api/collections.restore", { + body: { + token: admin.getJwtToken(), + id: collection.id, + }, + }); + const [, body] = await Promise.all([collection.reload(), res.json()]); + expect(res.status).toEqual(200); + expect(body.data.archivedAt).toBe(null); + expect(collection.documentStructure).not.toBe(null); + }); +}); diff --git a/server/routes/api/collections/collections.ts b/server/routes/api/collections/collections.ts index 244b06b172..f75ed915c8 100644 --- a/server/routes/api/collections/collections.ts +++ b/server/routes/api/collections/collections.ts @@ -4,6 +4,7 @@ import Router from "koa-router"; import { Sequelize, Op, WhereOptions } from "sequelize"; import { CollectionPermission, + CollectionStatusFilter, FileOperationState, FileOperationType, } from "@shared/types"; @@ -25,6 +26,7 @@ import { Group, Attachment, FileOperation, + Document, } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { authorize } from "@server/policies"; @@ -125,9 +127,12 @@ router.post( async (ctx: APIContext) => { const { id } = ctx.input.body; const { user } = ctx.state.auth; - const collection = await Collection.scope({ - method: ["withMembership", user.id], - }).findByPk(id); + const collection = await Collection.scope([ + { + method: ["withMembership", user.id], + }, + "withArchivedBy", + ]).findByPk(id); authorize(user, "read", collection); @@ -801,23 +806,60 @@ router.post( auth(), validate(T.CollectionsListSchema), pagination(), + transaction(), async (ctx: APIContext) => { - const { includeListOnly } = ctx.input.body; + const { includeListOnly, statusFilter } = ctx.input.body; const { user } = ctx.state.auth; - const collectionIds = await user.collectionIds(); - const where: WhereOptions = - includeListOnly && user.isAdmin - ? { - teamId: user.teamId, - } - : { - teamId: user.teamId, - id: collectionIds, - }; + const { transaction } = ctx.state; + const collectionIds = await user.collectionIds({ transaction }); + + const where: WhereOptions = { + teamId: user.teamId, + [Op.and]: [ + { + deletedAt: { + [Op.eq]: null, + }, + }, + ], + }; + + if (!statusFilter) { + where[Op.and].push({ archivedAt: { [Op.eq]: null } }); + } + + if (!includeListOnly || !user.isAdmin) { + where[Op.and].push({ id: collectionIds }); + } + + const statusQuery = []; + if (statusFilter?.includes(CollectionStatusFilter.Archived)) { + statusQuery.push({ + archivedAt: { + [Op.ne]: null, + }, + }); + } + + if (statusQuery.length) { + where[Op.and].push({ + [Op.or]: statusQuery, + }); + } + const [collections, total] = await Promise.all([ - Collection.scope({ - method: ["withMembership", user.id], - }).findAll({ + Collection.scope( + statusFilter?.includes(CollectionStatusFilter.Archived) + ? [ + { + method: ["withMembership", user.id], + }, + "withArchivedBy", + ] + : { + method: ["withMembership", user.id], + } + ).findAll({ where, order: [ Sequelize.literal('"collection"."index" collate "C"'), @@ -825,8 +867,9 @@ router.post( ], offset: ctx.state.pagination.offset, limit: ctx.state.pagination.limit, + transaction, }), - Collection.count({ where }), + Collection.count({ where, transaction }), ]); const nullIndex = collections.findIndex( @@ -834,7 +877,9 @@ router.post( ); if (nullIndex !== -1) { - const indexedCollections = await collectionIndexing(user.teamId); + const indexedCollections = await collectionIndexing(user.teamId, { + transaction, + }); collections.forEach((collection) => { collection.index = indexedCollections[collection.id]; }); @@ -881,6 +926,130 @@ router.post( } ); +router.post( + "collections.archive", + auth(), + validate(T.CollectionsArchiveSchema), + transaction(), + async (ctx: APIContext) => { + const { transaction } = ctx.state; + const { id } = ctx.input.body; + const { user } = ctx.state.auth; + + const collection = await Collection.scope([ + { + method: ["withMembership", user.id], + }, + ]).findByPk(id, { + transaction, + rejectOnEmpty: true, + }); + + authorize(user, "archive", collection); + + collection.archivedAt = new Date(); + collection.archivedById = user.id; + await collection.save({ transaction }); + collection.archivedBy = user; + + // Archive all documents within the collection + await Document.update( + { + lastModifiedById: user.id, + archivedAt: collection.archivedAt, + }, + { + where: { + teamId: collection.teamId, + collectionId: collection.id, + archivedAt: { + [Op.is]: null, + }, + }, + transaction, + } + ); + + await Event.createFromContext( + ctx, + { + name: "collections.archive", + collectionId: collection.id, + data: { + name: collection.name, + archivedAt: collection.archivedAt, + }, + }, + { transaction } + ); + + ctx.body = { + data: await presentCollection(ctx, collection), + policies: presentPolicies(user, [collection]), + }; + } +); + +router.post( + "collections.restore", + auth(), + validate(T.CollectionsRestoreSchema), + transaction(), + async (ctx: APIContext) => { + const { transaction } = ctx.state; + const { id } = ctx.input.body; + const { user } = ctx.state.auth; + + const collection = await Collection.scope({ + method: ["withMembership", user.id], + }).findByPk(id, { + transaction, + rejectOnEmpty: true, + }); + + authorize(user, "restore", collection); + + const collectionArchivedAt = collection.archivedAt; + + await Document.update( + { + lastModifiedById: user.id, + archivedAt: null, + }, + { + where: { + collectionId: collection.id, + teamId: user.teamId, + archivedAt: collection.archivedAt, + }, + transaction, + } + ); + + collection.archivedAt = null; + collection.archivedById = null; + await collection.save({ transaction }); + + await Event.createFromContext( + ctx, + { + name: "collections.restore", + collectionId: collection.id, + data: { + name: collection.name, + archivedAt: collectionArchivedAt, + }, + }, + { transaction } + ); + + ctx.body = { + data: await presentCollection(ctx, collection!), + policies: presentPolicies(user, [collection]), + }; + } +); + router.post( "collections.move", auth(), diff --git a/server/routes/api/collections/schema.ts b/server/routes/api/collections/schema.ts index 24a9574200..0d807dc1ca 100644 --- a/server/routes/api/collections/schema.ts +++ b/server/routes/api/collections/schema.ts @@ -1,6 +1,10 @@ import isUndefined from "lodash/isUndefined"; import { z } from "zod"; -import { CollectionPermission, FileOperationFormat } from "@shared/types"; +import { + CollectionPermission, + CollectionStatusFilter, + FileOperationFormat, +} from "@shared/types"; import { Collection } from "@server/models"; import { zodIconType } from "@server/utils/zod"; import { ValidateColor, ValidateIndex } from "@server/validation"; @@ -174,6 +178,8 @@ export type CollectionsUpdateReq = z.infer; export const CollectionsListSchema = BaseSchema.extend({ body: z.object({ includeListOnly: z.boolean().default(false), + /** Collection statuses to include in results */ + statusFilter: z.nativeEnum(CollectionStatusFilter).array().optional(), }), }); @@ -185,6 +191,22 @@ export const CollectionsDeleteSchema = BaseSchema.extend({ export type CollectionsDeleteReq = z.infer; +export const CollectionsArchiveSchema = BaseSchema.extend({ + body: BaseIdSchema, +}); + +export type CollectionsArchiveReq = z.infer; + +export const CollectionsRestoreSchema = BaseSchema.extend({ + body: BaseIdSchema, +}); + +export type CollectionsRestoreReq = z.infer; + +export const CollectionsArchivedSchema = BaseSchema; + +export type CollectionsArchivedReq = z.infer; + export const CollectionsMoveSchema = BaseSchema.extend({ body: BaseIdSchema.extend({ index: z diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index c826e99989..40afef9f3a 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -806,6 +806,85 @@ describe("#documents.list", () => { expect(body.data.length).toEqual(0); }); + it("should return only archived documents in a collection", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + }); + const docs = await Promise.all([ + buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collection.id, + }), + buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collection.id, + }), + buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collection.id, + }), + ]); + await docs[0].archive(user); + const res = await server.post("/api/documents.list", { + body: { + token: user.getJwtToken(), + statusFilter: [StatusFilter.Archived], + collectionId: collection.id, + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data).toHaveLength(1); + expect(body.data[0].id).toEqual(docs[0].id); + }); + + it("should return archived documents across all collections user has access to", async () => { + const user = await buildUser(); + const collections = await Promise.all([ + buildCollection({ + teamId: user.teamId, + }), + buildCollection({ + teamId: user.teamId, + }), + ]); + const docs = await Promise.all([ + buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collections[0].id, + }), + buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collections[1].id, + }), + buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collections[1].id, + }), + ]); + await Promise.all([docs[0].archive(user), docs[1].archive(user)]); + const res = await server.post("/api/documents.list", { + body: { + token: user.getJwtToken(), + statusFilter: [StatusFilter.Archived], + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data).toHaveLength(2); + const docIds = body.data.map((doc: any) => doc.id); + expect(docIds).toContain(docs[0].id); + expect(docIds).toContain(docs[1].id); + expect(docIds).not.toContain(docs[2].id); + }); + it("should not return documents in private collections not a member of", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); @@ -2678,6 +2757,131 @@ describe("#documents.move", () => { }); describe("#documents.restore", () => { + it("should correctly restore document from an archived collection", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + createdById: user.id, + teamId: user.teamId, + }); + const anotherCollection = await buildCollection({ + teamId: user.teamId, + }); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collection.id, + }); + + const archiveRes = await server.post("/api/collections.archive", { + body: { + token: user.getJwtToken(), + id: collection.id, + }, + }); + + expect(archiveRes.status).toEqual(200); + + // check if document is part of the correct collection's structure + await collection.reload(); + expect(collection.archivedAt).not.toBe(null); + expect(collection.documentStructure).not.toBe(null); + expect(collection.documentStructure).toHaveLength(1); + expect(collection?.documentStructure?.[0].id).toBe(document.id); + expect(anotherCollection.documentStructure).toBeNull(); + + const res = await server.post("/api/documents.restore", { + body: { + token: user.getJwtToken(), + id: document.id, + collectionId: anotherCollection.id, + }, + }); + + const [, , body] = await Promise.all([ + collection.reload(), + anotherCollection.reload(), + res.json(), + ]); + expect(res.status).toEqual(200); + expect(body.data.deletedAt).toEqual(null); + expect(body.data.collectionId).toEqual(anotherCollection.id); + + // re-check collection structure after restore + expect(collection.documentStructure).toHaveLength(0); + expect(anotherCollection.documentStructure).not.toBe(null); + expect(anotherCollection.documentStructure).toHaveLength(1); + expect(anotherCollection?.documentStructure?.[0].id).toBe(document.id); + }); + + it("should fail if attempting to restore document to an archived collection", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + createdById: user.id, + teamId: user.teamId, + }); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collection.id, + }); + + const archiveRes = await server.post("/api/collections.archive", { + body: { + token: user.getJwtToken(), + id: collection.id, + }, + }); + + expect(archiveRes.status).toEqual(200); + + const res = await server.post("/api/documents.restore", { + body: { + token: user.getJwtToken(), + id: document.id, + }, + }); + + const body = await res.json(); + expect(res.status).toEqual(400); + expect(body.message).toEqual( + "Unable to restore, the collection may have been deleted or archived" + ); + }); + + it("should fail if attempting to restore to a collection for which the user does not have access", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + createdById: user.id, + teamId: user.teamId, + }); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collection.id, + }); + + const archiveRes = await server.post("/api/collections.archive", { + body: { + token: user.getJwtToken(), + id: collection.id, + }, + }); + + expect(archiveRes.status).toEqual(200); + + const anotherCollection = await buildCollection(); + + const res = await server.post("/api/documents.restore", { + body: { + token: user.getJwtToken(), + id: document.id, + collectionId: anotherCollection.id, + }, + }); + + expect(res.status).toEqual(403); + }); + it("should require id", async () => { const user = await buildUser(); const document = await buildDocument({ @@ -2788,13 +2992,58 @@ describe("#documents.restore", () => { }); await document.destroy(); await collection.destroy({ hooks: false }); + // passing deleted collection's id const res = await server.post("/api/documents.restore", { + body: { + token: user.getJwtToken(), + id: document.id, + collectionId: collection.id, + }, + }); + // not passing collection's id + const anotherRes = await server.post("/api/documents.restore", { body: { token: user.getJwtToken(), id: document.id, }, }); + const body = await res.json(); + const anotherBody = await anotherRes.json(); expect(res.status).toEqual(400); + expect(body.message).toEqual( + "Unable to restore, the collection may have been deleted or archived" + ); + expect(anotherRes.status).toEqual(400); + expect(anotherBody.message).toEqual( + "Unable to restore, the collection may have been deleted or archived" + ); + }); + + it("should not allow restore of documents in archived collection", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + }); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + collectionId: collection.id, + }); + await document.destroy(); + collection.archivedAt = new Date(); + await collection.save(); + const res = await server.post("/api/documents.restore", { + body: { + token: user.getJwtToken(), + id: document.id, + collectionId: collection.id, + }, + }); + const body = await res.json(); + expect(res.status).toEqual(400); + expect(body.message).toEqual( + "Unable to restore, the collection may have been deleted or archived" + ); }); it("should not allow restore of trashed documents to collection user cannot access", async () => { diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 3da40f7d5a..3323eebda2 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -5,11 +5,13 @@ import invariant from "invariant"; import JSZip from "jszip"; import Router from "koa-router"; import escapeRegExp from "lodash/escapeRegExp"; +import has from "lodash/has"; +import remove from "lodash/remove"; import uniq from "lodash/uniq"; import mime from "mime-types"; import { Op, ScopeOptions, Sequelize, WhereOptions } from "sequelize"; import { v4 as uuidv4 } from "uuid"; -import { TeamPreference, UserRole } from "@shared/types"; +import { StatusFilter, TeamPreference, UserRole } from "@shared/types"; import { subtractDate } from "@shared/utils/date"; import slugify from "@shared/utils/slugify"; import documentCreator from "@server/commands/documentCreator"; @@ -20,7 +22,6 @@ import documentPermanentDeleter from "@server/commands/documentPermanentDeleter" import documentUpdater from "@server/commands/documentUpdater"; import env from "@server/env"; import { - NotFoundError, InvalidRequestError, AuthenticationError, ValidationError, @@ -83,43 +84,52 @@ router.post( pagination(), validate(T.DocumentsListSchema), async (ctx: APIContext) => { - let { sort } = ctx.input.body; const { + sort, direction, template, collectionId, backlinkDocumentId, parentDocumentId, userId: createdById, + statusFilter, } = ctx.input.body; // always filter by the current team const { user } = ctx.state.auth; - let where: WhereOptions = { + const where: WhereOptions = { teamId: user.teamId, - archivedAt: { - [Op.is]: null, - }, + [Op.and]: [ + { + deletedAt: { + [Op.eq]: null, + }, + }, + ], }; + // Exclude archived docs by default + if (!statusFilter) { + where[Op.and].push({ archivedAt: { [Op.eq]: null } }); + } + if (template) { - where = { - ...where, + where[Op.and].push({ template: true, - }; + }); } // if a specific user is passed then add to filters. If the user doesn't // exist in the team then nothing will be returned, so no need to check auth if (createdById) { - where = { ...where, createdById }; + where[Op.and].push({ createdById }); } let documentIds: string[] = []; // if a specific collection is passed then we need to check auth to view it if (collectionId) { - where = { ...where, collectionId }; + where[Op.and].push({ collectionId: [collectionId] }); const collection = await Collection.scope({ method: ["withMembership", user.id], }).findByPk(collectionId); @@ -131,19 +141,18 @@ router.post( documentIds = (collection?.documentStructure || []) .map((node) => node.id) .slice(ctx.state.pagination.offset, ctx.state.pagination.limit); - where = { ...where, id: documentIds }; + where[Op.and].push({ id: documentIds }); } // otherwise, filter by all collections the user has access to } else { const collectionIds = await user.collectionIds(); - where = { - ...where, + where[Op.and].push({ collectionId: template && can(user, "readTemplate", user.team) ? { [Op.or]: [{ [Op.in]: collectionIds }, { [Op.is]: null }], } : collectionIds, - }; + }); } if (parentDocumentId) { @@ -177,21 +186,20 @@ router.post( ]); if (groupMembership || membership) { - delete where.collectionId; + remove(where[Op.and], (cond) => has(cond, "collectionId")); } - where = { ...where, parentDocumentId }; + where[Op.and].push({ parentDocumentId }); } // Explicitly passing 'null' as the parentDocumentId allows listing documents // that have no parent document (aka they are at the root of the collection) if (parentDocumentId === null) { - where = { - ...where, + where[Op.and].push({ parentDocumentId: { [Op.is]: null, }, - }; + }); } if (backlinkDocumentId) { @@ -201,29 +209,81 @@ router.post( documentId: backlinkDocumentId, }, }); - where = { - ...where, + where[Op.and].push({ id: backlinks.map((backlink) => backlink.reverseDocumentId), - }; + }); } - if (sort === "index") { - sort = "updatedAt"; + const statusQuery = []; + if (statusFilter?.includes(StatusFilter.Published)) { + statusQuery.push({ + [Op.and]: [ + { + publishedAt: { + [Op.ne]: null, + }, + archivedAt: { + [Op.eq]: null, + }, + }, + ], + }); + } + + if (statusFilter?.includes(StatusFilter.Draft)) { + statusQuery.push({ + [Op.and]: [ + { + publishedAt: { + [Op.eq]: null, + }, + archivedAt: { + [Op.eq]: null, + }, + [Op.or]: [ + // Only ever include draft results for the user's own documents + { createdById: user.id }, + { "$memberships.id$": { [Op.ne]: null } }, + ], + }, + ], + }); + } + + if (statusFilter?.includes(StatusFilter.Archived)) { + statusQuery.push({ + archivedAt: { + [Op.ne]: null, + }, + }); + } + + if (statusQuery.length) { + where[Op.and].push({ + [Op.or]: statusQuery, + }); } const [documents, total] = await Promise.all([ Document.defaultScopeWithUser(user.id).findAll({ where, - order: [[sort, direction]], + order: [ + [ + // this needs to be done otherwise findAll will throw citing + // that the column "document"."index" doesn't exist – value of sort + // is required to be a column name + sort === "index" ? "updatedAt" : sort, + direction, + ], + ], offset: ctx.state.pagination.offset, limit: ctx.state.pagination.limit, }), Document.count({ where }), ]); - // index sort is special because it uses the order of the documents in the - // collection.documentStructure rather than a database column - if (documentIds.length) { + if (sort === "index") { + // sort again so as to retain the order of documents as in collection.documentStructure documents.sort( (a, b) => documentIds.indexOf(a.id) - documentIds.indexOf(b.id) ); @@ -233,6 +293,7 @@ router.post( documents.map((document) => presentDocument(ctx, document)) ); const policies = presentPolicies(user, documents); + ctx.body = { pagination: { ...ctx.state.pagination, total }, data, @@ -738,81 +799,105 @@ router.post( "documents.restore", auth({ role: UserRole.Member }), validate(T.DocumentsRestoreSchema), + transaction(), async (ctx: APIContext) => { const { id, collectionId, revisionId } = ctx.input.body; const { user } = ctx.state.auth; + const { transaction } = ctx.state; const document = await Document.findByPk(id, { userId: user.id, paranoid: false, + rejectOnEmpty: true, + transaction, }); - if (!document) { - throw NotFoundError(); - } + const sourceCollectionId = document.collectionId; + const destCollectionId = collectionId ?? sourceCollectionId; - // Passing collectionId allows restoring to a different collection than the - // document was originally within - if (collectionId) { - document.collectionId = collectionId; - } - - const collection = document.collectionId + const srcCollection = sourceCollectionId ? await Collection.scope({ method: ["withMembership", user.id], - }).findByPk(document.collectionId) + }).findByPk(sourceCollectionId) : undefined; - // if the collectionId was provided in the request and isn't valid then it will - // be caught as a 403 on the authorize call below. Otherwise we're checking here - // that the original collection still exists and advising to pass collectionId - // if not. - if (document.collection && !collectionId && !collection) { + const destCollection = destCollectionId + ? await Collection.scope({ + method: ["withMembership", user.id], + }).findByPk(destCollectionId) + : undefined; + + if (!destCollection?.isActive) { throw ValidationError( - "Unable to restore to original collection, it may have been deleted" + "Unable to restore, the collection may have been deleted or archived" ); } + if (sourceCollectionId !== destCollectionId) { + authorize(user, "updateDocument", srcCollection); + await srcCollection?.removeDocumentInStructure(document, { + save: true, + transaction, + }); + } + if (document.deletedAt) { authorize(user, "restore", document); + authorize(user, "updateDocument", destCollection); + // restore a previously deleted document - await document.unarchive(user); - await Event.createFromContext(ctx, { - name: "documents.restore", - documentId: document.id, - collectionId: document.collectionId, - data: { - title: document.title, + await document.restoreTo(destCollectionId!, { transaction, user }); // destCollectionId is guaranteed to be defined here + await Event.createFromContext( + ctx, + { + name: "documents.restore", + documentId: document.id, + collectionId: document.collectionId, + data: { + title: document.title, + }, }, - }); + { transaction } + ); } else if (document.archivedAt) { authorize(user, "unarchive", document); + authorize(user, "updateDocument", destCollection); + // restore a previously archived document - await document.unarchive(user); - await Event.createFromContext(ctx, { - name: "documents.unarchive", - documentId: document.id, - collectionId: document.collectionId, - data: { - title: document.title, + await document.restoreTo(destCollectionId!, { transaction, user }); // destCollectionId is guaranteed to be defined here + await Event.createFromContext( + ctx, + { + name: "documents.unarchive", + documentId: document.id, + collectionId: document.collectionId, + data: { + title: document.title, + sourceCollectionId, + }, }, - }); + { transaction } + ); } else if (revisionId) { // restore a document to a specific revision authorize(user, "update", document); - const revision = await Revision.findByPk(revisionId); + const revision = await Revision.findByPk(revisionId, { transaction }); authorize(document, "restore", revision); document.restoreFromRevision(revision); - await document.save(); + await document.save({ transaction }); - await Event.createFromContext(ctx, { - name: "documents.restore", - documentId: document.id, - collectionId: document.collectionId, - data: { - title: document.title, + await Event.createFromContext( + ctx, + { + name: "documents.restore", + documentId: document.id, + collectionId: document.collectionId, + data: { + title: document.title, + }, }, - }); + { transaction } + ); } else { assertPresent(revisionId, "revisionId is required"); } @@ -1286,24 +1371,32 @@ router.post( "documents.archive", auth(), validate(T.DocumentsArchiveSchema), + transaction(), async (ctx: APIContext) => { const { id } = ctx.input.body; const { user } = ctx.state.auth; + const { transaction } = ctx.state; const document = await Document.findByPk(id, { userId: user.id, + rejectOnEmpty: true, + transaction, }); authorize(user, "archive", document); - await document.archive(user); - await Event.createFromContext(ctx, { - name: "documents.archive", - documentId: document.id, - collectionId: document.collectionId, - data: { - title: document.title, + await document.archive(user, { transaction }); + await Event.createFromContext( + ctx, + { + name: "documents.archive", + documentId: document.id, + collectionId: document.collectionId, + data: { + title: document.title, + }, }, - }); + { transaction } + ); ctx.body = { data: await presentDocument(ctx, document), diff --git a/server/routes/api/documents/schema.ts b/server/routes/api/documents/schema.ts index d994a04483..ed3e76c538 100644 --- a/server/routes/api/documents/schema.ts +++ b/server/routes/api/documents/schema.ts @@ -68,6 +68,9 @@ export const DocumentsListSchema = BaseSchema.extend({ /** Boolean which denotes whether the document is a template */ template: z.boolean().optional(), + + /** Document statuses to include in results */ + statusFilter: z.nativeEnum(StatusFilter).array().optional(), }), // Maintains backwards compatibility }).transform((req) => { diff --git a/server/test/factories.ts b/server/test/factories.ts index 94c4a9e3bf..b24bd8c303 100644 --- a/server/test/factories.ts +++ b/server/test/factories.ts @@ -284,6 +284,10 @@ export async function buildCollection( overrides.userId = user.id; } + if (overrides.archivedAt && !overrides.archivedById) { + overrides.archivedById = overrides.userId; + } + return Collection.create({ name: faker.lorem.words(2), description: faker.lorem.words(4), diff --git a/server/types.ts b/server/types.ts index be7dd51107..49c0495722 100644 --- a/server/types.ts +++ b/server/types.ts @@ -175,7 +175,6 @@ export type DocumentEvent = BaseEvent & | "documents.delete" | "documents.permanent_delete" | "documents.archive" - | "documents.unarchive" | "documents.restore"; documentId: string; collectionId: string; @@ -184,6 +183,16 @@ export type DocumentEvent = BaseEvent & source?: "import"; }; } + | { + name: "documents.unarchive"; + documentId: string; + collectionId: string; + data: { + title: string; + /** Id of collection from which the document is unarchived */ + sourceCollectionId: string; + }; + } | { name: "documents.move"; documentId: string; @@ -294,10 +303,15 @@ export type CollectionEvent = BaseEvent & }; } | { - name: "collections.update" | "collections.delete"; + name: + | "collections.update" + | "collections.delete" + | "collections.archive" + | "collections.restore"; collectionId: string; data: { name: string; + archivedAt: string; }; } | { diff --git a/server/utils/indexing.ts b/server/utils/indexing.ts index e64030a3c1..56dbc6b465 100644 --- a/server/utils/indexing.ts +++ b/server/utils/indexing.ts @@ -1,9 +1,11 @@ import fractionalIndex from "fractional-index"; +import { FindOptions } from "sequelize"; import naturalSort from "@shared/utils/naturalSort"; import { Collection, Document, Star } from "@server/models"; export async function collectionIndexing( - teamId: string + teamId: string, + { transaction }: FindOptions ): Promise<{ [id: string]: string }> { const collections = await Collection.findAll({ where: { @@ -12,6 +14,7 @@ export async function collectionIndexing( deletedAt: null, }, attributes: ["id", "index", "name"], + transaction, }); const sortable = naturalSort(collections, (collection) => collection.name); @@ -23,7 +26,7 @@ export async function collectionIndexing( for (const collection of sortable) { if (collection.index === null) { collection.index = fractionalIndex(previousIndex, null); - promises.push(collection.save()); + promises.push(collection.save({ transaction })); } previousIndex = collection.index; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 7bce972af1..b623947feb 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Search in collection", "Star": "Star", "Unstar": "Unstar", + "Archive": "Archive", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiving", + "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.", + "Restore": "Restore", + "Collection restored": "Collection restored", "Delete": "Delete", "Delete collection": "Delete collection", "New template": "New template", @@ -72,10 +79,8 @@ "Move": "Move", "Move to collection": "Move to collection", "Move {{ documentType }}": "Move {{ documentType }}", - "Archive": "Archive", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Document archived", - "Archiving": "Archiving", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Delete {{ documentName }}", "Permanently delete": "Permanently delete", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "New doc", "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", @@ -497,7 +503,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Document options", - "Restore": "Restore", "Choose a collection": "Choose a collection", "Enable embeds": "Enable embeds", "Export options": "Export options", @@ -558,6 +563,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} users with access", "{{ groupsCount }} groups with access": "{{ groupsCount }} group with access", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", + "Archived by {{userName}}": "Archived by {{userName}}", "Share": "Share", "Recently updated": "Recently updated", "Recently published": "Recently published", @@ -630,7 +636,6 @@ "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents", "You’re editing a template": "You’re editing a template", - "Archived by {{userName}}": "Archived by {{userName}}", "Deleted by {{userName}}": "Deleted by {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", "Backlinks": "Backlinks", diff --git a/shared/types.ts b/shared/types.ts index 37ce916b2f..659ded7184 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -13,6 +13,10 @@ export enum StatusFilter { Draft = "draft", } +export enum CollectionStatusFilter { + Archived = "archived", +} + export enum CommentStatusFilter { Resolved = "resolved", Unresolved = "unresolved", From db4dad5e379dbeac2b9c7bcaf67328b997fa90e5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 6 Oct 2024 11:17:39 -0400 Subject: [PATCH 05/52] fix: Enter key while renaming item in sidebar should persist fix: Renaming item in sidebar should not navigate to collection --- .../Sidebar/components/CollectionLink.tsx | 5 +--- .../Sidebar/components/EditableTitle.tsx | 27 ++++++++++++------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/app/components/Sidebar/components/CollectionLink.tsx b/app/components/Sidebar/components/CollectionLink.tsx index fee3734ea2..abbe9b9d60 100644 --- a/app/components/Sidebar/components/CollectionLink.tsx +++ b/app/components/Sidebar/components/CollectionLink.tsx @@ -4,7 +4,6 @@ import { PlusIcon } from "outline-icons"; import * as React from "react"; import { useDrop } from "react-dnd"; import { useTranslation } from "react-i18next"; -import { useHistory } from "react-router-dom"; import { CollectionValidation } from "@shared/validations"; import Collection from "~/models/Collection"; import Document from "~/models/Document"; @@ -47,7 +46,6 @@ const CollectionLink: React.FC = ({ const [isEditing, setIsEditing] = React.useState(false); const can = usePolicy(collection); const { t } = useTranslation(); - const history = useHistory(); const sidebarContext = useSidebarContext(); const editableTitleRef = React.useRef(null); @@ -56,9 +54,8 @@ const CollectionLink: React.FC = ({ await collection.save({ name, }); - history.replace(collection.path, history.location.state); }, - [collection, history] + [collection] ); // Drop to re-parent document diff --git a/app/components/Sidebar/components/EditableTitle.tsx b/app/components/Sidebar/components/EditableTitle.tsx index 8a35a0c481..7872871644 100644 --- a/app/components/Sidebar/components/EditableTitle.tsx +++ b/app/components/Sidebar/components/EditableTitle.tsx @@ -41,16 +41,6 @@ function EditableTitle( setIsEditing(true); }, []); - const handleKeyDown = React.useCallback( - (event) => { - if (event.key === "Escape") { - setIsEditing(false); - setValue(originalValue); - } - }, - [originalValue] - ); - const stopPropagation = React.useCallback((event) => { event.preventDefault(); event.stopPropagation(); @@ -63,6 +53,7 @@ function EditableTitle( const handleSave = React.useCallback( async (ev) => { ev.preventDefault(); + ev.stopPropagation(); setIsEditing(false); const trimmedValue = value.trim(); @@ -85,6 +76,22 @@ function EditableTitle( [originalValue, value, onSubmit] ); + const handleKeyDown = React.useCallback( + async (ev) => { + if (ev.nativeEvent.isComposing) { + return; + } + if (ev.key === "Escape") { + setIsEditing(false); + setValue(originalValue); + } + if (ev.key === "Enter") { + await handleSave(ev); + } + }, + [handleSave, originalValue] + ); + React.useEffect(() => { onEditing?.(isEditing); }, [onEditing, isEditing]); From 0a1c614c558ffbd1d6e4f641a4588b681239079d Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 6 Oct 2024 11:37:58 -0400 Subject: [PATCH 06/52] fix: Addressed several React warnings in icon picker --- .../IconPicker/components/GridTemplate.tsx | 2 +- app/components/IconPicker/components/IconButton.tsx | 1 - app/components/IconPicker/index.tsx | 12 ++++++------ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/components/IconPicker/components/GridTemplate.tsx b/app/components/IconPicker/components/GridTemplate.tsx index d3b1d24e43..c3abc3589c 100644 --- a/app/components/IconPicker/components/GridTemplate.tsx +++ b/app/components/IconPicker/components/GridTemplate.tsx @@ -71,7 +71,7 @@ const GridTemplate = ( onIconSelect({ id: item.name, value: item.name })} - delay={item.delay} + style={{ "--delay": `${item.delay}ms` } as React.CSSProperties} > {item.initial} diff --git a/app/components/IconPicker/components/IconButton.tsx b/app/components/IconPicker/components/IconButton.tsx index af8923fb4e..0b521cfe20 100644 --- a/app/components/IconPicker/components/IconButton.tsx +++ b/app/components/IconPicker/components/IconButton.tsx @@ -7,7 +7,6 @@ export const IconButton = styled(NudeButton)<{ delay?: number }>` width: 32px; height: 32px; padding: 4px; - --delay: ${({ delay }) => delay && `${delay}ms`}; &: ${hover} { background: ${s("listItemHoverBackground")}; diff --git a/app/components/IconPicker/index.tsx b/app/components/IconPicker/index.tsx index 2aa0946ec0..a1261942ee 100644 --- a/app/components/IconPicker/index.tsx +++ b/app/components/IconPicker/index.tsx @@ -198,7 +198,7 @@ const IconPicker = ({ {...tab} id={TAB_NAMES["Icon"]} aria-label={t("Icons")} - active={tab.selectedId === TAB_NAMES["Icon"]} + $active={tab.selectedId === TAB_NAMES["Icon"]} > {t("Icons")} @@ -206,7 +206,7 @@ const IconPicker = ({ {...tab} id={TAB_NAMES["Emoji"]} aria-label={t("Emojis")} - active={tab.selectedId === TAB_NAMES["Emoji"]} + $active={tab.selectedId === TAB_NAMES["Emoji"]} > {t("Emojis")} @@ -273,7 +273,7 @@ const TabActionsWrapper = styled(Flex)` border-bottom: 1px solid ${s("inputBorder")}; `; -const StyledTab = styled(Tab)<{ active: boolean }>` +const StyledTab = styled(Tab)<{ $active: boolean }>` position: relative; font-weight: 500; font-size: 14px; @@ -282,15 +282,15 @@ const StyledTab = styled(Tab)<{ active: boolean }>` border: 0; padding: 8px 12px; user-select: none; - color: ${({ active }) => (active ? s("textSecondary") : s("textTertiary"))}; + color: ${({ $active }) => ($active ? s("textSecondary") : s("textTertiary"))}; transition: color 100ms ease-in-out; &: ${hover} { color: ${s("textSecondary")}; } - ${({ active }) => - active && + ${({ $active }) => + $active && css` &:after { content: ""; From d3c8224839f09fbff601e4a3e7fd8ff1a6b2ba08 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Oct 2024 08:36:18 -0400 Subject: [PATCH 07/52] fix: Error during import with long filenames (#7738) * fix: Stream error during import causes worker restart * refactor * fix: Ensure we never write filenames longer than the system can handle --- server/queues/tasks/ImportTask.ts | 6 ++-- server/utils/ZipHelper.ts | 58 ++++++++++++++++++++----------- server/utils/fs.test.ts | 25 ++++++++++++- server/utils/fs.ts | 50 ++++++++++++++++++++++++++ 4 files changed, 114 insertions(+), 25 deletions(-) diff --git a/server/queues/tasks/ImportTask.ts b/server/queues/tasks/ImportTask.ts index 2a8c5f1a5b..5a4af8d164 100644 --- a/server/queues/tasks/ImportTask.ts +++ b/server/queues/tasks/ImportTask.ts @@ -225,9 +225,9 @@ export default abstract class ImportTask extends BaseTask { void ZipHelper.extract(filePath, tmpDir) .then(() => resolve(tmpDir)) - .catch((err) => { - Logger.error("Could not extract zip file", err); - reject(err); + .catch((zErr) => { + Logger.error("Could not extract zip file", zErr); + reject(zErr); }); }); }); diff --git a/server/utils/ZipHelper.ts b/server/utils/ZipHelper.ts index 1fdad20117..c355ed2277 100644 --- a/server/utils/ZipHelper.ts +++ b/server/utils/ZipHelper.ts @@ -6,6 +6,10 @@ import yauzl, { Entry, validateFileName } from "yauzl"; import { bytesToHumanReadable } from "@shared/utils/files"; import Logger from "@server/logging/Logger"; import { trace } from "@server/logging/tracing"; +import { trimFileAndExt } from "./fs"; + +const MAX_FILE_NAME_LENGTH = 255; +const MAX_PATH_LENGTH = 4096; @trace() export default class ZipHelper { @@ -81,9 +85,9 @@ export default class ZipHelper { } } ) - .on("error", (err) => { + .on("error", (rErr) => { dest.end(); - reject(err); + reject(rErr); }) .pipe(dest); } @@ -129,35 +133,47 @@ export default class ZipHelper { // directory file names end with '/' fs.mkdirp( path.join(outputDir, fileName), - function (err: Error) { - if (err) { - throw err; + function (mErr: Error) { + if (mErr) { + return reject(mErr); } zipfile.readEntry(); } ); } else { // file entry - zipfile.openReadStream(entry, function (err, readStream) { - if (err) { - throw err; + zipfile.openReadStream(entry, function (rErr, readStream) { + if (rErr) { + return reject(rErr); } // ensure parent directory exists fs.mkdirp( path.join(outputDir, path.dirname(fileName)), - function (err) { - if (err) { - throw err; + function (mkErr) { + if (mkErr) { + return reject(mkErr); } - readStream.pipe( - fs.createWriteStream(path.join(outputDir, fileName)) + + const location = trimFileAndExt( + path.join( + outputDir, + trimFileAndExt(fileName, MAX_FILE_NAME_LENGTH) + ), + MAX_PATH_LENGTH ); - readStream.on("end", function () { - zipfile.readEntry(); - }); - readStream.on("error", (err) => { - throw err; - }); + const dest = fs + .createWriteStream(location) + .on("error", reject); + + readStream + .on("error", (rsErr) => { + dest.end(); + reject(rsErr); + }) + .on("end", function () { + zipfile.readEntry(); + }) + .pipe(dest); } ); }); @@ -165,8 +181,8 @@ export default class ZipHelper { }); zipfile.on("close", resolve); zipfile.on("error", reject); - } catch (err) { - reject(err); + } catch (zErr) { + reject(zErr); } } ); diff --git a/server/utils/fs.test.ts b/server/utils/fs.test.ts index c36cd1e840..b4365b4e48 100644 --- a/server/utils/fs.test.ts +++ b/server/utils/fs.test.ts @@ -1,4 +1,9 @@ -import { serializeFilename, deserializeFilename } from "./fs"; +import { + serializeFilename, + deserializeFilename, + trimFileAndExt, + stringByteLength, +} from "./fs"; describe("serializeFilename", () => { it("should serialize forward slashes", () => { @@ -31,3 +36,21 @@ describe("deserializeFilename", () => { ); }); }); + +describe("stringByteLength", () => { + it("should return byte length of string", () => { + expect(stringByteLength("")).toBe(0); + expect(stringByteLength("a")).toBe(1); + expect(stringByteLength("🦄")).toBe(4); + expect(stringByteLength("你好")).toBe(6); + }); +}); + +describe("trimFileAndExt", () => { + it("should trim filename", () => { + expect(trimFileAndExt("file.txt", 6)).toBe("fi.txt"); + expect(trimFileAndExt("file.txt", 8)).toBe("file.txt"); + expect(trimFileAndExt("file.md", 9)).toBe("file.md"); + expect(trimFileAndExt("你好.md", 2)).toBe("你.md"); + }); +}); diff --git a/server/utils/fs.ts b/server/utils/fs.ts index 079d1945db..6ddbd15a5c 100644 --- a/server/utils/fs.ts +++ b/server/utils/fs.ts @@ -1,14 +1,58 @@ import path from "path"; import fs from "fs-extra"; +/** + * Serialize a file name for inclusion in a ZIP. + * + * @param text The file name to serialize. + * @returns The serialized file name. + */ export function serializeFilename(text: string): string { return text.replace(/\//g, "%2F").replace(/\\/g, "%5C"); } +/** + * Deserialize a file name serialized with `serializeFilename`. + * + * @param text The file name to deserialize. + * @returns The deserialized file name. + */ export function deserializeFilename(text: string): string { return text.replace(/%2F/g, "/").replace(/%5C/g, "\\"); } +/** + * Get the UTF8 byte length of a string. + * + * @param str The string to measure. + * @returns The byte length of the string. + */ +export function stringByteLength(str: string): number { + return Buffer.byteLength(str, "utf8"); +} + +/** + * Trim a file name to a maximum length, retaining the extension. + * + * @param text The file name to trim. + * @param length The maximum length of the file name. + * @returns The trimmed file name. + */ +export function trimFileAndExt(text: string, length: number): string { + if (stringByteLength(text) > length) { + const ext = path.extname(text); + const name = path.basename(text, ext); + return name.slice(0, length - stringByteLength(ext)) + ext; + } + return text; +} + +/** + * Get a list of file names in a directory. + * + * @param dirName The directory to search. + * @returns A list of file names in the directory. + */ export function getFilenamesInDirectory(dirName: string): string[] { return fs .readdirSync(dirName) @@ -21,6 +65,12 @@ export function getFilenamesInDirectory(dirName: string): string[] { ); } +/** + * Require all files in a directory and return them as an array of tuples. + * + * @param dirName The directory to search. + * @returns An array of tuples containing the required files and their names. + */ export function requireDirectory(dirName: string): [T, string][] { return getFilenamesInDirectory(dirName).map((fileName) => { const filePath = path.join(dirName, fileName); From 9bee54b07e43b62c9d1f61a39d29881009479fb5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:54:35 -0700 Subject: [PATCH 08/52] chore(deps-dev): bump @types/react-avatar-editor from 13.0.2 to 13.0.3 (#7739) Bumps [@types/react-avatar-editor](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-avatar-editor) from 13.0.2 to 13.0.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-avatar-editor) --- updated-dependencies: - dependency-name: "@types/react-avatar-editor" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index dda7290959..881290092c 100644 --- a/package.json +++ b/package.json @@ -296,7 +296,7 @@ "@types/quoted-printable": "^1.0.2", "@types/randomstring": "^1.3.0", "@types/react": "^17.0.34", - "@types/react-avatar-editor": "^13.0.2", + "@types/react-avatar-editor": "^13.0.3", "@types/react-color": "^3.0.12", "@types/react-dom": "^17.0.11", "@types/react-helmet": "^6.1.11", diff --git a/yarn.lock b/yarn.lock index 28d99b5027..c926fa2215 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4954,10 +4954,10 @@ resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc" integrity "sha1-zWZ7z90CUhOq+3ylkVqTJZCs3Nw= sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" -"@types/react-avatar-editor@^13.0.2": - version "13.0.2" - resolved "https://registry.yarnpkg.com/@types/react-avatar-editor/-/react-avatar-editor-13.0.2.tgz#26c58252e8465f5a99dd146072fe9351c07b9c3f" - integrity "sha1-JsWCUuhGX1qZ3RRgcv6TUcB7nD8= sha512-vnGU4sx5TDB9JMCuw+kB3+jfDNMhVlpBbgMRZG9NzVnaBb5xUjVV4VmHdD2O8gj/pb5GN+QXKk7jan09aMjG2A==" +"@types/react-avatar-editor@^13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@types/react-avatar-editor/-/react-avatar-editor-13.0.3.tgz#98f4dc5a2413c1436b0bee7c08b43ccbc3b2d067" + integrity sha512-icRAOKLKjkIsExFAiFSquztByJwpyTKEgnBRYSuLG2V81bM3LtQZi7hRS+Hr+4AXreq0yNRjVZiMOVeEeh6DLg== dependencies: "@types/react" "*" From b4ce4a2922145a25f927922fa5655d0d6cc9da9e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:54:45 -0700 Subject: [PATCH 09/52] chore(deps): bump prosemirror-model from 1.22.3 to 1.23.0 (#7741) Bumps [prosemirror-model](https://github.com/prosemirror/prosemirror-model) from 1.22.3 to 1.23.0. - [Changelog](https://github.com/ProseMirror/prosemirror-model/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-model/compare/1.22.3...1.23.0) --- updated-dependencies: - dependency-name: prosemirror-model dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 881290092c..cf06d5105a 100644 --- a/package.json +++ b/package.json @@ -179,7 +179,7 @@ "prosemirror-inputrules": "^1.4.0", "prosemirror-keymap": "^1.2.2", "prosemirror-markdown": "^1.13.0", - "prosemirror-model": "^1.22.3", + "prosemirror-model": "^1.23.0", "prosemirror-schema-list": "^1.4.1", "prosemirror-state": "^1.4.3", "prosemirror-tables": "^1.4.0", diff --git a/yarn.lock b/yarn.lock index c926fa2215..c6a1733a96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12649,10 +12649,10 @@ prosemirror-markdown@^1.13.0: markdown-it "^14.0.0" prosemirror-model "^1.20.0" -prosemirror-model@^1.0.0, prosemirror-model@^1.20.0, prosemirror-model@^1.21.0, prosemirror-model@^1.22.3, prosemirror-model@^1.8.1: - version "1.22.3" - resolved "https://registry.yarnpkg.com/prosemirror-model/-/prosemirror-model-1.22.3.tgz#52fdf5897f348b0f07f64bea89156d90afdf645a" - integrity sha512-V4XCysitErI+i0rKFILGt/xClnFJaohe/wrrlT2NSZ+zk8ggQfDH4x2wNK7Gm0Hp4CIoWizvXFP7L9KMaCuI0Q== +prosemirror-model@^1.0.0, prosemirror-model@^1.20.0, prosemirror-model@^1.21.0, prosemirror-model@^1.23.0, prosemirror-model@^1.8.1: + version "1.23.0" + resolved "https://registry.yarnpkg.com/prosemirror-model/-/prosemirror-model-1.23.0.tgz#652058182ed90dc15c8f0f2cf2df488306fa1dcd" + integrity sha512-Q/fgsgl/dlOAW9ILu4OOhYWQbc7TQd4BwKH/RwmUjyVf8682Be4zj3rOYdLnYEcGzyg8LL9Q5IWYKD8tdToreQ== dependencies: orderedmap "^2.0.0" From b80463665b46b1c003e71ca18ae1a1e155aabd2f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:54:55 -0700 Subject: [PATCH 10/52] chore(deps): bump @babel/preset-env from 7.24.7 to 7.25.7 (#7740) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.7 to 7.25.7. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.25.7/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 1102 ++++++++++++++++++++++++++++++-------------------- 2 files changed, 665 insertions(+), 439 deletions(-) diff --git a/package.json b/package.json index cf06d5105a..13467bbd05 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@babel/plugin-transform-class-properties": "^7.24.7", "@babel/plugin-transform-destructuring": "^7.24.8", "@babel/plugin-transform-regenerator": "^7.24.7", - "@babel/preset-env": "^7.24.7", + "@babel/preset-env": "^7.25.7", "@babel/preset-react": "^7.24.7", "@benrbray/prosemirror-math": "^0.2.2", "@bull-board/api": "^4.2.2", diff --git a/yarn.lock b/yarn.lock index c6a1733a96..bdfb658a91 100644 --- a/yarn.lock +++ b/yarn.lock @@ -745,10 +745,18 @@ "@babel/highlight" "^7.24.7" picocolors "^1.0.0" -"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.24.7", "@babel/compat-data@^7.25.2": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb" - integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ== +"@babel/code-frame@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.25.7.tgz#438f2c524071531d643c6f0188e1e28f130cebc7" + integrity sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g== + dependencies: + "@babel/highlight" "^7.25.7" + picocolors "^1.0.0" + +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.7.tgz#b8479fe0018ef0ac87b6b7a5c6916fcd67ae2c9c" + integrity sha512-9ickoLz+hcXCeh7jrcin+/SLWm+GkxE2kTvoYyp38p4WkdFXfQJxDFGWp/YHjiKLPx06z2A7W8XKuqbReXDzsw== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.20.12", "@babel/core@^7.24.4", "@babel/core@^7.24.7": version "7.25.2" @@ -781,6 +789,16 @@ "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" +"@babel/generator@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.7.tgz#de86acbeb975a3e11ee92dd52223e6b03b479c56" + integrity sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA== + dependencies: + "@babel/types" "^7.25.7" + "@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.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz#5373c7bc8366b12a033b4be1ac13a206c6656aab" @@ -788,22 +806,29 @@ dependencies: "@babel/types" "^7.24.7" -"@babel/helper-builder-binary-assignment-operator-visitor@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.7.tgz#37d66feb012024f2422b762b9b2a7cfe27c7fba3" - integrity sha512-xZeCVVdwb4MsDBkkyZ64tReWYrLRHlMN72vP7Bdm3OUOuyFZExhsHUUnuWnm2/XOlAJzR0LfPpB56WXZn0X/lA== +"@babel/helper-annotate-as-pure@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.7.tgz#63f02dbfa1f7cb75a9bdb832f300582f30bb8972" + integrity sha512-4xwU8StnqnlIhhioZf1tqnVWeQ9pvH/ujS8hRfw/WOza+/a+1qv69BWNy+oY231maTCWgKWhfBU7kDpsds6zAA== dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/types" "^7.25.7" -"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.24.7", "@babel/helper-compilation-targets@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" - integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== +"@babel/helper-builder-binary-assignment-operator-visitor@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.25.7.tgz#d721650c1f595371e0a23ee816f1c3c488c0d622" + integrity sha512-12xfNeKNH7jubQNm7PAkzlLwEmCs1tfuX3UjIw6vP6QXi+leKh6+LyC/+Ed4EIQermwd58wsyh070yjDHFlNGg== dependencies: - "@babel/compat-data" "^7.25.2" - "@babel/helper-validator-option" "^7.24.8" - browserslist "^4.23.1" + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.25.2", "@babel/helper-compilation-targets@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz#11260ac3322dda0ef53edfae6e97b961449f5fa4" + integrity sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A== + dependencies: + "@babel/compat-data" "^7.25.7" + "@babel/helper-validator-option" "^7.25.7" + browserslist "^4.24.0" lru-cache "^5.1.1" semver "^6.3.1" @@ -822,7 +847,20 @@ "@babel/helper-split-export-declaration" "^7.24.7" semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.24.7": +"@babel/helper-create-class-features-plugin@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.7.tgz#5d65074c76cae75607421c00d6bd517fe1892d6b" + integrity sha512-bD4WQhbkx80mAyj/WCm4ZHcF4rDxkoLFO6ph8/5/mQ3z4vAzltQXAmbc7GvVJx5H+lk5Mi5EmbTeox5nMGCsbw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.25.7" + "@babel/helper-member-expression-to-functions" "^7.25.7" + "@babel/helper-optimise-call-expression" "^7.25.7" + "@babel/helper-replace-supers" "^7.25.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.25.7" + "@babel/traverse" "^7.25.7" + semver "^6.3.1" + +"@babel/helper-create-regexp-features-plugin@^7.18.6": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.24.7.tgz#be4f435a80dc2b053c76eeb4b7d16dd22cfc89da" integrity sha512-03TCmXy2FtXJEZfbXDTSqq1fRJArk7lX9DOFC/47VthYcxyIOx+eXQmdo6DOQvrbpIix+KfXwvuXdFDZHxt+rA== @@ -831,6 +869,15 @@ regexpu-core "^5.3.1" semver "^6.3.1" +"@babel/helper-create-regexp-features-plugin@^7.25.7": + 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-define-polyfill-provider@^0.2.2", "@babel/helper-define-polyfill-provider@^0.2.4": version "0.2.4" resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz#8867aed79d3ea6cade40f801efb7ac5c66916b10" @@ -845,7 +892,7 @@ resolve "^1.14.2" semver "^6.1.2" -"@babel/helper-define-polyfill-provider@^0.6.1", "@babel/helper-define-polyfill-provider@^0.6.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== @@ -871,13 +918,6 @@ "@babel/template" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-hoist-variables@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee" - integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ== - dependencies: - "@babel/types" "^7.24.7" - "@babel/helper-member-expression-to-functions@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.7.tgz#67613d068615a70e4ed5101099affc7a41c5225f" @@ -886,6 +926,14 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" +"@babel/helper-member-expression-to-functions@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.7.tgz#541a33b071f0355a63a0fa4bdf9ac360116b8574" + integrity sha512-O31Ssjd5K6lPbTX9AAYpSKrZmLeagt9uwschJd+Ixo6QiRyfpvgtVQp8qrDR9UNFjZ8+DO34ZkdrN+BnPXemeA== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + "@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.14.5", "@babel/helper-module-imports@^7.22.5", "@babel/helper-module-imports@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" @@ -894,7 +942,15 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-module-transforms@^7.24.7", "@babel/helper-module-transforms@^7.25.2": +"@babel/helper-module-imports@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz#dba00d9523539152906ba49263e36d7261040472" + integrity sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-module-transforms@^7.25.2": version "7.25.2" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== @@ -904,6 +960,16 @@ "@babel/helper-validator-identifier" "^7.24.7" "@babel/traverse" "^7.25.2" +"@babel/helper-module-transforms@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz#2ac9372c5e001b19bc62f1fe7d96a18cb0901d1a" + integrity sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ== + dependencies: + "@babel/helper-module-imports" "^7.25.7" + "@babel/helper-simple-access" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" + "@babel/traverse" "^7.25.7" + "@babel/helper-optimise-call-expression@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz#8b0a0456c92f6b323d27cfd00d1d664e76692a0f" @@ -911,19 +977,26 @@ dependencies: "@babel/types" "^7.24.7" -"@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.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" - integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== - -"@babel/helper-remap-async-to-generator@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.24.7.tgz#b3f0f203628522713849d49403f1a414468be4c7" - integrity sha512-9pKLcTlZ92hNZMQfGCHImUpDOlAgkkpqalWEeftW5FBya75k8Li2ilerxkM/uBEj01iBZXcCIB/bwvDYgWyibA== +"@babel/helper-optimise-call-expression@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.7.tgz#1de1b99688e987af723eed44fa7fc0ee7b97d77a" + integrity sha512-VAwcwuYhv/AT+Vfr28c9y6SHzTan1ryqrydSTFGjU0uDJHw3uZ+PduI8plCLkRsDnqK2DMEDmwrOQRsK/Ykjng== dependencies: - "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-wrap-function" "^7.24.7" + "@babel/types" "^7.25.7" + +"@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.24.7", "@babel/helper-plugin-utils@^7.25.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz#8ec5b21812d992e1ef88a9b068260537b6f0e36c" + integrity sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw== + +"@babel/helper-remap-async-to-generator@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.7.tgz#9efdc39df5f489bcd15533c912b6c723a0a65021" + integrity sha512-kRGE89hLnPfcz6fTrlNU+uhgcwv0mBE4Gv3P9Ke9kLVJYpi4AMVVEElXvB5CabrPZW4nCM8P8UyyjrzCM0O2sw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.25.7" + "@babel/helper-wrap-function" "^7.25.7" + "@babel/traverse" "^7.25.7" "@babel/helper-replace-supers@^7.24.7": version "7.24.7" @@ -934,6 +1007,15 @@ "@babel/helper-member-expression-to-functions" "^7.24.7" "@babel/helper-optimise-call-expression" "^7.24.7" +"@babel/helper-replace-supers@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.7.tgz#38cfda3b6e990879c71d08d0fef9236b62bd75f5" + integrity sha512-iy8JhqlUW9PtZkd4pHM96v6BdJ66Ba9yWSE4z0W4TvSZwLBPkyDsiIU3ENe4SmrzRBs76F7rQXTy1lYC49n6Lw== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.25.7" + "@babel/helper-optimise-call-expression" "^7.25.7" + "@babel/traverse" "^7.25.7" + "@babel/helper-simple-access@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" @@ -942,6 +1024,14 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" +"@babel/helper-simple-access@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz#5eb9f6a60c5d6b2e0f76057004f8dacbddfae1c0" + integrity sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + "@babel/helper-skip-transparent-expression-wrappers@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz#5f8fa83b69ed5c27adc56044f8be2b3ea96669d9" @@ -950,6 +1040,14 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" +"@babel/helper-skip-transparent-expression-wrappers@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.7.tgz#382831c91038b1a6d32643f5f49505b8442cb87c" + integrity sha512-pPbNbchZBkPMD50K0p3JGcFMNLVUCuU/ABybm/PGNj4JiHrpmNyqqCphBk4i19xXtNV0JhldQJJtbSW5aUvbyA== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + "@babel/helper-split-export-declaration@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856" @@ -962,25 +1060,34 @@ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== +"@babel/helper-string-parser@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz#d50e8d37b1176207b4fe9acedec386c565a44a54" + integrity sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g== + "@babel/helper-validator-identifier@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== -"@babel/helper-validator-option@^7.23.5", "@babel/helper-validator-option@^7.24.7", "@babel/helper-validator-option@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" - integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== +"@babel/helper-validator-identifier@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz#77b7f60c40b15c97df735b38a66ba1d7c3e93da5" + integrity sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg== -"@babel/helper-wrap-function@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.24.7.tgz#52d893af7e42edca7c6d2c6764549826336aae1f" - integrity sha512-N9JIYk3TD+1vq/wn77YnJOqMtfWhNewNE+DJV4puD2X7Ew9J4JvrzrFDfTfyv5EgEXVy9/Wt8QiOErzEmv5Ifw== +"@babel/helper-validator-option@^7.23.5", "@babel/helper-validator-option@^7.24.7", "@babel/helper-validator-option@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz#97d1d684448228b30b506d90cace495d6f492729" + integrity sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ== + +"@babel/helper-wrap-function@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.25.7.tgz#9f6021dd1c4fdf4ad515c809967fc4bac9a70fe7" + integrity sha512-MA0roW3JF2bD1ptAaJnvcabsVlNQShUaThyJbCDD4bCp8NEgiFvpoqRI2YS22hHlc2thjO/fTg2ShLMC3jygAg== dependencies: - "@babel/helper-function-name" "^7.24.7" - "@babel/template" "^7.24.7" - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/template" "^7.25.7" + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" "@babel/helpers@^7.25.0": version "7.25.6" @@ -1000,6 +1107,16 @@ js-tokens "^4.0.0" picocolors "^1.0.0" +"@babel/highlight@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.25.7.tgz#20383b5f442aa606e7b5e3043b0b1aafe9f37de5" + integrity sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw== + dependencies: + "@babel/helper-validator-identifier" "^7.25.7" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" + "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6", "@babel/parser@^7.7.0": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" @@ -1007,37 +1124,51 @@ dependencies: "@babel/types" "^7.25.6" -"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.7.tgz#fd059fd27b184ea2b4c7e646868a9a381bbc3055" - integrity sha512-TiT1ss81W80eQsN+722OaeQMY/G4yTb4G9JrqeiDADs3N8lbPMGldWi9x8tyqCW5NLx1Jh2AvkE6r6QvEltMMQ== +"@babel/parser@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.7.tgz#99b927720f4ddbfeb8cd195a363ed4532f87c590" + integrity sha512-aZn7ETtQsjjGG5HruveUK06cU3Hljuhd9Iojm4M8WWv3wLE6OkE5PWbDUkItmMgegmccaITudyuW5RPYrYlgWw== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/types" "^7.25.7" -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.7.tgz#468096ca44bbcbe8fcc570574e12eb1950e18107" - integrity sha512-unaQgZ/iRu/By6tsjMZzpeBZjChYfLYry6HrEXPoz3KmfF0sVBQ1l8zKMQ4xRGLWVsjuvB8nQfjNP/DcfEOCsg== +"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.7.tgz#93969ac50ef4d68b2504b01b758af714e4cbdd64" + integrity sha512-UV9Lg53zyebzD1DwQoT9mzkEKa922LNUp5YkTJ6Uta0RbyXaQNUgcvSt7qIu1PpPzVb6rd10OVNTzkyBGeVmxQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/traverse" "^7.25.7" -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.7.tgz#e4eabdd5109acc399b38d7999b2ef66fc2022f89" - integrity sha512-+izXIbke1T33mY4MSNnrqhPXDz01WYhEf3yF5NbnUtkiNnm+XBZJl3kNfoK6NKmYlz/D07+l2GWVK/QfDkNCuQ== +"@babel/plugin-bugfix-safari-class-field-initializer-scope@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.7.tgz#a338d611adb9dcd599b8b1efa200c88ebeffe046" + integrity sha512-GDDWeVLNxRIkQTnJn2pDOM1pkCgYdSqPeT1a9vh9yIqu2uzzgw1zcqEb+IJOhy+dTBMlNdThrDIksr2o09qrrQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" - "@babel/plugin-transform-optional-chaining" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.7.tgz#71b21bb0286d5810e63a1538aa901c58e87375ec" - integrity sha512-utA4HuR6F4Vvcr+o4DnjL8fCOlgRFGbeeBEGNg3ZTrLFw6VWG5XmUrvcQ0FjIYMU2ST4XcR2Wsp7t9qOAPnxMg== +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.7.tgz#c5f755e911dfac7ef6957300c0f9c4a8c18c06f4" + integrity sha512-wxyWg2RYaSUYgmd9MR0FyRGyeOMQE/Uzr1wzd/g5cf5bwi9A4v6HFdDm7y1MgDtod/fLOSTZY6jDgV0xU9d5bA== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.7.tgz#3b7ea04492ded990978b6deaa1dfca120ad4455a" + integrity sha512-Xwg6tZpLxc4iQjorYsyGMyfJE7nP5MV8t/Ka58BgiA7Jw0fRqQNcANlLfdJ/yvBt9z9LD2We+BEkT7vLqZRWng== + dependencies: + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.25.7" + "@babel/plugin-transform-optional-chaining" "^7.25.7" + +"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.7.tgz#9622b1d597a703aa3a921e6f58c9c2d9a028d2c5" + integrity sha512-UVATLMidXrnH+GMUIuxq55nejlj02HP7F5ETyBONzP6G87fPBogG4CH6kxrSrdIuAjdwNO9VzyaYsrZPscWUrw== + dependencies: + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/traverse" "^7.25.7" "@babel/plugin-proposal-decorators@^7.24.7": version "7.24.7" @@ -1102,19 +1233,19 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-import-assertions@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.7.tgz#2a0b406b5871a20a841240586b1300ce2088a778" - integrity sha512-Ec3NRUMoi8gskrkBe3fNmEQfxDvY8bgfQpz6jlk/41kX9eUjvpyqWU7PBP/pLAvMaSQjbMNKJmvX57jP+M6bPg== +"@babel/plugin-syntax-import-assertions@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.25.7.tgz#8ce248f9f4ed4b7ed4cb2e0eb4ed9efd9f52921f" + integrity sha512-ZvZQRmME0zfJnDQnVBKYzHxXT7lYBB3Revz1GuS7oLXWMgqUPX4G+DDbT30ICClht9WKV34QVrZhSw6WdklwZQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-syntax-import-attributes@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca" - integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A== +"@babel/plugin-syntax-import-attributes@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.7.tgz#d78dd0499d30df19a598e63ab895e21b909bc43f" + integrity sha512-AqVo+dguCgmpi/3mYBdu9lkngOBlQ2w2vnNpa6gfiCxQZLzV4ZbhsXitJ2Yblkoe1VQwtHSaNmIaGll/26YWRw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-import-meta@^7.10.4", "@babel/plugin-syntax-import-meta@^7.8.3": version "7.10.4" @@ -1208,310 +1339,316 @@ "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-arrow-functions@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.7.tgz#4f6886c11e423bd69f3ce51dbf42424a5f275514" - integrity sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ== +"@babel/plugin-transform-arrow-functions@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.7.tgz#1b9ed22e6890a0e9ff470371c73b8c749bcec386" + integrity sha512-EJN2mKxDwfOUCPxMO6MUI58RN3ganiRAG/MS/S3HfB6QFNjroAMelQo/gybyYq97WerCBAZoyrAoW8Tzdq2jWg== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-async-generator-functions@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.7.tgz#7330a5c50e05181ca52351b8fd01642000c96cfd" - integrity sha512-o+iF77e3u7ZS4AoAuJvapz9Fm001PuD2V3Lp6OSE4FYQke+cSewYtnek+THqGRWyQloRCyvWL1OkyfNEl9vr/g== +"@babel/plugin-transform-async-generator-functions@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.7.tgz#af61a02b30d7bff5108c63bd39ac7938403426d7" + integrity sha512-4B6OhTrwYKHYYgcwErvZjbmH9X5TxQBsaBHdzEIB4l71gR5jh/tuHGlb9in47udL2+wVUcOz5XXhhfhVJwEpEg== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-remap-async-to-generator" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-remap-async-to-generator" "^7.25.7" "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/traverse" "^7.25.7" -"@babel/plugin-transform-async-to-generator@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.7.tgz#72a3af6c451d575842a7e9b5a02863414355bdcc" - integrity sha512-SQY01PcJfmQ+4Ash7NE+rpbLFbmqA2GPIgqzxfFTL4t1FKRq4zTms/7htKpoCUI9OcFYgzqfmCdH53s6/jn5fA== +"@babel/plugin-transform-async-to-generator@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.7.tgz#a44c7323f8d4285a6c568dd43c5c361d6367ec52" + integrity sha512-ZUCjAavsh5CESCmi/xCpX1qcCaAglzs/7tmuvoFnJgA1dM7gQplsguljoTg+Ru8WENpX89cQyAtWoaE0I3X3Pg== dependencies: - "@babel/helper-module-imports" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-remap-async-to-generator" "^7.24.7" + "@babel/helper-module-imports" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-remap-async-to-generator" "^7.25.7" -"@babel/plugin-transform-block-scoped-functions@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz#a4251d98ea0c0f399dafe1a35801eaba455bbf1f" - integrity sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ== +"@babel/plugin-transform-block-scoped-functions@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.25.7.tgz#e0b8843d5571719a2f1bf7e284117a3379fcc17c" + integrity sha512-xHttvIM9fvqW+0a3tZlYcZYSBpSWzGBFIt/sYG3tcdSzBB8ZeVgz2gBP7Df+sM0N1850jrviYSSeUuc+135dmQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-block-scoping@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.7.tgz#42063e4deb850c7bd7c55e626bf4e7ab48e6ce02" - integrity sha512-Nd5CvgMbWc+oWzBsuaMcbwjJWAcp5qzrbg69SZdHSP7AMY0AbWFqFO0WTFCA1jxhMCwodRwvRec8k0QUbZk7RQ== +"@babel/plugin-transform-block-scoping@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.7.tgz#6dab95e98adf780ceef1b1c3ab0e55cd20dd410a" + integrity sha512-ZEPJSkVZaeTFG/m2PARwLZQ+OG0vFIhPlKHK/JdIMy8DbRJ/htz6LRrTFtdzxi9EHmcwbNPAKDnadpNSIW+Aow== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-class-properties@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.7.tgz#256879467b57b0b68c7ddfc5b76584f398cd6834" - integrity sha512-vKbfawVYayKcSeSR5YYzzyXvsDFWU2mD8U5TFeXtbCPLFUqe7GyCgvO6XDHzje862ODrOwy6WCPmKeWHbCFJ4w== +"@babel/plugin-transform-class-properties@^7.24.7", "@babel/plugin-transform-class-properties@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.7.tgz#a389cfca7a10ac80e3ff4c75fca08bd097ad1523" + integrity sha512-mhyfEW4gufjIqYFo9krXHJ3ElbFLIze5IDp+wQTxoPd+mwFb1NxatNAwmv8Q8Iuxv7Zc+q8EkiMQwc9IhyGf4g== dependencies: - "@babel/helper-create-class-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-class-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-class-static-block@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.7.tgz#c82027ebb7010bc33c116d4b5044fbbf8c05484d" - integrity sha512-HMXK3WbBPpZQufbMG4B46A90PkuuhN9vBCb5T8+VAHqvAqvcLi+2cKoukcpmUYkszLhScU3l1iudhrks3DggRQ== +"@babel/plugin-transform-class-static-block@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.25.7.tgz#d2cf3c812e3b3162d56aadf4566f45c30538cb2c" + integrity sha512-rvUUtoVlkDWtDWxGAiiQj0aNktTPn3eFynBcMC2IhsXweehwgdI9ODe+XjWw515kEmv22sSOTp/rxIRuTiB7zg== dependencies: - "@babel/helper-create-class-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-class-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-class-static-block" "^7.14.5" -"@babel/plugin-transform-classes@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.7.tgz#4ae6ef43a12492134138c1e45913f7c46c41b4bf" - integrity sha512-CFbbBigp8ln4FU6Bpy6g7sE8B/WmCmzvivzUC6xDAdWVsjYTXijpuuGJmYkAaoWAzcItGKT3IOAbxRItZ5HTjw== +"@babel/plugin-transform-classes@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.7.tgz#5103206cf80d02283bbbd044509ea3b65d0906bb" + integrity sha512-9j9rnl+YCQY0IGoeipXvnk3niWicIB6kCsWRGLwX241qSXpbA4MKxtp/EdvFxsc4zI5vqfLxzOd0twIJ7I99zg== dependencies: - "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-replace-supers" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" + "@babel/helper-annotate-as-pure" "^7.25.7" + "@babel/helper-compilation-targets" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-replace-supers" "^7.25.7" + "@babel/traverse" "^7.25.7" globals "^11.1.0" -"@babel/plugin-transform-computed-properties@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz#4cab3214e80bc71fae3853238d13d097b004c707" - integrity sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ== +"@babel/plugin-transform-computed-properties@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.7.tgz#7f621f0aa1354b5348a935ab12e3903842466f65" + integrity sha512-QIv+imtM+EtNxg/XBKL3hiWjgdLjMOmZ+XzQwSgmBfKbfxUjBzGgVPklUuE55eq5/uVoh8gg3dqlrwR/jw3ZeA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/template" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/template" "^7.25.7" -"@babel/plugin-transform-destructuring@^7.24.7", "@babel/plugin-transform-destructuring@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz#c828e814dbe42a2718a838c2a2e16a408e055550" - integrity sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ== +"@babel/plugin-transform-destructuring@^7.24.8", "@babel/plugin-transform-destructuring@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.7.tgz#f6f26a9feefb5aa41fd45b6f5838901b5333d560" + integrity sha512-xKcfLTlJYUczdaM1+epcdh1UGewJqr9zATgrNHcLBcV2QmfvPPEixo/sK/syql9cEmbr7ulu5HMFG5vbbt/sEA== dependencies: - "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-dotall-regex@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.7.tgz#5f8bf8a680f2116a7207e16288a5f974ad47a7a0" - integrity sha512-ZOA3W+1RRTSWvyqcMJDLqbchh7U4NRGqwRfFSVbOLS/ePIP4vHB5e8T8eXcuqyN1QkgKyj5wuW0lcS85v4CrSw== +"@babel/plugin-transform-dotall-regex@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.7.tgz#9d775c4a3ff1aea64045300fcd4309b4a610ef02" + integrity sha512-kXzXMMRzAtJdDEgQBLF4oaiT6ZCU3oWHgpARnTKDAqPkDJ+bs3NrZb310YYevR5QlRo3Kn7dzzIdHbZm1VzJdQ== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-regexp-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-duplicate-keys@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.7.tgz#dd20102897c9a2324e5adfffb67ff3610359a8ee" - integrity sha512-JdYfXyCRihAe46jUIliuL2/s0x0wObgwwiGxw/UbgJBr20gQBThrokO4nYKgWkD7uBaqM7+9x5TU7NkExZJyzw== +"@babel/plugin-transform-duplicate-keys@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.7.tgz#fbba7d1155eab76bd4f2a038cbd5d65883bd7a93" + integrity sha512-by+v2CjoL3aMnWDOyCIg+yxU9KXSRa9tN6MbqggH5xvymmr9p4AMjYkNlQy4brMceBnUyHZ9G8RnpvT8wP7Cfg== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-dynamic-import@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz#4d8b95e3bae2b037673091aa09cd33fecd6419f4" - integrity sha512-sc3X26PhZQDb3JhORmakcbvkeInvxz+A8oda99lj7J60QRuPZvNAk9wQlTBS1ZynelDrDmTU4pw1tyc5d5ZMUg== +"@babel/plugin-transform-duplicate-named-capturing-groups-regex@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.7.tgz#102b31608dcc22c08fbca1894e104686029dc141" + integrity sha512-HvS6JF66xSS5rNKXLqkk7L9c/jZ/cdIVIcoPVrnl8IsVpLggTjXs8OWekbLHs/VtYDDh5WXnQyeE3PPUGm22MA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-regexp-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" + +"@babel/plugin-transform-dynamic-import@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.7.tgz#31905ab2cfa94dcf1b1f8ce66096720b2908e518" + integrity sha512-UvcLuual4h7/GfylKm2IAA3aph9rwvAM2XBA0uPKU3lca+Maai4jBjjEVUS568ld6kJcgbouuumCBhMd/Yz17w== + dependencies: + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-dynamic-import" "^7.8.3" -"@babel/plugin-transform-exponentiation-operator@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.7.tgz#b629ee22645f412024297d5245bce425c31f9b0d" - integrity sha512-Rqe/vSc9OYgDajNIK35u7ot+KeCoetqQYFXM4Epf7M7ez3lWlOjrDjrwMei6caCVhfdw+mIKD4cgdGNy5JQotQ== +"@babel/plugin-transform-exponentiation-operator@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.25.7.tgz#5961a3a23a398faccd6cddb34a2182807d75fb5f" + integrity sha512-yjqtpstPfZ0h/y40fAXRv2snciYr0OAoMXY/0ClC7tm4C/nG5NJKmIItlaYlLbIVAWNfrYuy9dq1bE0SbX0PEg== dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-export-namespace-from@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.7.tgz#176d52d8d8ed516aeae7013ee9556d540c53f197" - integrity sha512-v0K9uNYsPL3oXZ/7F9NNIbAj2jv1whUEtyA6aujhekLs56R++JDQuzRcP2/z4WX5Vg/c5lE9uWZA0/iUoFhLTA== +"@babel/plugin-transform-export-namespace-from@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.7.tgz#beb2679db6fd3bdfe6ad6de2c8cac84a86ef2da1" + integrity sha512-h3MDAP5l34NQkkNulsTNyjdaR+OiB0Im67VU//sFupouP8Q6m9Spy7l66DcaAQxtmCqGdanPByLsnwFttxKISQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" -"@babel/plugin-transform-for-of@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.7.tgz#f25b33f72df1d8be76399e1b8f3f9d366eb5bc70" - integrity sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g== +"@babel/plugin-transform-for-of@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.7.tgz#0acfea0f27aa290818b5b48a5a44b3f03fc13669" + integrity sha512-n/TaiBGJxYFWvpJDfsxSj9lEEE44BFM1EPGz4KEiTipTgkoFVVcCmzAL3qA7fdQU96dpo4gGf5HBx/KnDvqiHw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.25.7" -"@babel/plugin-transform-function-name@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.7.tgz#6d8601fbffe665c894440ab4470bc721dd9131d6" - integrity sha512-U9FcnA821YoILngSmYkW6FjyQe2TyZD5pHt4EVIhmcTkrJw/3KqcrRSxuOo5tFZJi7TE19iDyI1u+weTI7bn2w== +"@babel/plugin-transform-function-name@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.7.tgz#7e394ccea3693902a8b50ded8b6ae1fa7b8519fd" + integrity sha512-5MCTNcjCMxQ63Tdu9rxyN6cAWurqfrDZ76qvVPrGYdBxIj+EawuuxTu/+dgJlhK5eRz3v1gLwp6XwS8XaX2NiQ== dependencies: - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-compilation-targets" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/traverse" "^7.25.7" -"@babel/plugin-transform-json-strings@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.7.tgz#f3e9c37c0a373fee86e36880d45b3664cedaf73a" - integrity sha512-2yFnBGDvRuxAaE/f0vfBKvtnvvqU8tGpMHqMNpTN2oWMKIR3NqFkjaAgGwawhqK/pIN2T3XdjGPdaG0vDhOBGw== +"@babel/plugin-transform-json-strings@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.7.tgz#6626433554aff4bd6f76a2c621a1f40e802dfb0a" + integrity sha512-Ot43PrL9TEAiCe8C/2erAjXMeVSnE/BLEx6eyrKLNFCCw5jvhTHKyHxdI1pA0kz5njZRYAnMO2KObGqOCRDYSA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-json-strings" "^7.8.3" -"@babel/plugin-transform-literals@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.7.tgz#36b505c1e655151a9d7607799a9988fc5467d06c" - integrity sha512-vcwCbb4HDH+hWi8Pqenwnjy+UiklO4Kt1vfspcQYFhJdpthSnW8XvWGyDZWKNVrVbVViI/S7K9PDJZiUmP2fYQ== +"@babel/plugin-transform-literals@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.7.tgz#70cbdc742f2cfdb1a63ea2cbd018d12a60b213c3" + integrity sha512-fwzkLrSu2fESR/cm4t6vqd7ebNIopz2QHGtjoU+dswQo/P6lwAG04Q98lliE3jkz/XqnbGFLnUcE0q0CVUf92w== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-logical-assignment-operators@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.7.tgz#a58fb6eda16c9dc8f9ff1c7b1ba6deb7f4694cb0" - integrity sha512-4D2tpwlQ1odXmTEIFWy9ELJcZHqrStlzK/dAOWYyxX3zT0iXQB6banjgeOJQXzEc4S0E0a5A+hahxPaEFYftsw== +"@babel/plugin-transform-logical-assignment-operators@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.7.tgz#93847feb513a1f191c5f5d903d991a0ee24fe99b" + integrity sha512-iImzbA55BjiovLyG2bggWS+V+OLkaBorNvc/yJoeeDQGztknRnDdYfp2d/UPmunZYEnZi6Lg8QcTmNMHOB0lGA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" -"@babel/plugin-transform-member-expression-literals@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz#3b4454fb0e302e18ba4945ba3246acb1248315df" - integrity sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw== +"@babel/plugin-transform-member-expression-literals@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.7.tgz#0a36c3fbd450cc9e6485c507f005fa3d1bc8fca5" + integrity sha512-Std3kXwpXfRV0QtQy5JJcRpkqP8/wG4XL7hSKZmGlxPlDqmpXtEPRmhF7ztnlTCtUN3eXRUJp+sBEZjaIBVYaw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-modules-amd@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.7.tgz#65090ed493c4a834976a3ca1cde776e6ccff32d7" - integrity sha512-9+pB1qxV3vs/8Hdmz/CulFB8w2tuu6EB94JZFsjdqxQokwGa9Unap7Bo2gGBGIvPmDIVvQrom7r5m/TCDMURhg== +"@babel/plugin-transform-modules-amd@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.7.tgz#bb4e543b5611f6c8c685a2fd485408713a3adf3d" + integrity sha512-CgselSGCGzjQvKzghCvDTxKHP3iooenLpJDO842ehn5D2G5fJB222ptnDwQho0WjEvg7zyoxb9P+wiYxiJX5yA== dependencies: - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-module-transforms" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-modules-commonjs@^7.24.1", "@babel/plugin-transform-modules-commonjs@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.7.tgz#9fd5f7fdadee9085886b183f1ad13d1ab260f4ab" - integrity sha512-iFI8GDxtevHJ/Z22J5xQpVqFLlMNstcLXh994xifFwxxGslr2ZXXLWgtBeLctOD63UFDArdvN6Tg8RFw+aEmjQ== +"@babel/plugin-transform-modules-commonjs@^7.24.1", "@babel/plugin-transform-modules-commonjs@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.25.7.tgz#173f0c791bb7407c092ce6d77ee90eb3f2d1d2fd" + integrity sha512-L9Gcahi0kKFYXvweO6n0wc3ZG1ChpSFdgG+eV1WYZ3/dGbJK7vvk91FgGgak8YwRgrCuihF8tE/Xg07EkL5COg== dependencies: - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-simple-access" "^7.24.7" + "@babel/helper-module-transforms" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-simple-access" "^7.25.7" -"@babel/plugin-transform-modules-systemjs@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.7.tgz#f8012316c5098f6e8dee6ecd58e2bc6f003d0ce7" - integrity sha512-GYQE0tW7YoaN13qFh3O1NCY4MPkUiAH3fiF7UcV/I3ajmDKEdG3l+UOcbAm4zUE3gnvUU+Eni7XrVKo9eO9auw== +"@babel/plugin-transform-modules-systemjs@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.7.tgz#8b14d319a177cc9c85ef8b0512afd429d9e2e60b" + integrity sha512-t9jZIvBmOXJsiuyOwhrIGs8dVcD6jDyg2icw1VL4A/g+FnWyJKwUfSSU2nwJuMV2Zqui856El9u+ElB+j9fV1g== dependencies: - "@babel/helper-hoist-variables" "^7.24.7" - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-validator-identifier" "^7.24.7" + "@babel/helper-module-transforms" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" + "@babel/traverse" "^7.25.7" -"@babel/plugin-transform-modules-umd@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.7.tgz#edd9f43ec549099620df7df24e7ba13b5c76efc8" - integrity sha512-3aytQvqJ/h9z4g8AsKPLvD4Zqi2qT+L3j7XoFFu1XBlZWEl2/1kWnhmAbxpLgPrHSY0M6UA02jyTiwUVtiKR6A== +"@babel/plugin-transform-modules-umd@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.7.tgz#00ee7a7e124289549381bfb0e24d87fd7f848367" + integrity sha512-p88Jg6QqsaPh+EB7I9GJrIqi1Zt4ZBHUQtjw3z1bzEXcLh6GfPqzZJ6G+G1HBGKUNukT58MnKG7EN7zXQBCODw== dependencies: - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-module-transforms" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-named-capturing-groups-regex@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.7.tgz#9042e9b856bc6b3688c0c2e4060e9e10b1460923" - integrity sha512-/jr7h/EWeJtk1U/uz2jlsCioHkZk1JJZVcc8oQsJ1dUlaJD83f4/6Zeh2aHt9BIFokHIsSeDfhUmju0+1GPd6g== +"@babel/plugin-transform-named-capturing-groups-regex@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.7.tgz#a2f3f6d7f38693b462542951748f0a72a34d196d" + integrity sha512-BtAT9LzCISKG3Dsdw5uso4oV1+v2NlVXIIomKJgQybotJY3OwCwJmkongjHgwGKoZXd0qG5UZ12JUlDQ07W6Ow== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-regexp-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-new-target@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.7.tgz#31ff54c4e0555cc549d5816e4ab39241dfb6ab00" - integrity sha512-RNKwfRIXg4Ls/8mMTza5oPF5RkOW8Wy/WgMAp1/F1yZ8mMbtwXW+HDoJiOsagWrAhI5f57Vncrmr9XeT4CVapA== +"@babel/plugin-transform-new-target@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.7.tgz#52b2bde523b76c548749f38dc3054f1f45e82bc9" + integrity sha512-CfCS2jDsbcZaVYxRFo2qtavW8SpdzmBXC2LOI4oO0rP+JSRDxxF3inF4GcPsLgfb5FjkhXG5/yR/lxuRs2pySA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-nullish-coalescing-operator@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.7.tgz#1de4534c590af9596f53d67f52a92f12db984120" - integrity sha512-Ts7xQVk1OEocqzm8rHMXHlxvsfZ0cEF2yomUqpKENHWMF4zKk175Y4q8H5knJes6PgYad50uuRmt3UJuhBw8pQ== +"@babel/plugin-transform-nullish-coalescing-operator@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.7.tgz#0af84b86d4332654c43cf028dbdcf878b00ac168" + integrity sha512-FbuJ63/4LEL32mIxrxwYaqjJxpbzxPVQj5a+Ebrc8JICV6YX8nE53jY+K0RZT3um56GoNWgkS2BQ/uLGTjtwfw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-transform-numeric-separator@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.7.tgz#bea62b538c80605d8a0fac9b40f48e97efa7de63" - integrity sha512-e6q1TiVUzvH9KRvicuxdBTUj4AdKSRwzIyFFnfnezpCfP2/7Qmbb8qbU2j7GODbl4JMkblitCQjKYUaX/qkkwA== +"@babel/plugin-transform-numeric-separator@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.7.tgz#a516b78f894d1c08283f39d809b2048fd2f29448" + integrity sha512-8CbutzSSh4hmD+jJHIA8vdTNk15kAzOnFLVVgBSMGr28rt85ouT01/rezMecks9pkU939wDInImwCKv4ahU4IA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-transform-object-rest-spread@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.7.tgz#d13a2b93435aeb8a197e115221cab266ba6e55d6" - integrity sha512-4QrHAr0aXQCEFni2q4DqKLD31n2DL+RxcwnNjDFkSG0eNQ/xCavnRkfCUjsyqGC2OviNJvZOF/mQqZBw7i2C5Q== +"@babel/plugin-transform-object-rest-spread@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.7.tgz#fa0916521be96fd434e2db59780b24b308c6d169" + integrity sha512-1JdVKPhD7Y5PvgfFy0Mv2brdrolzpzSoUq2pr6xsR+m+3viGGeHEokFKsCgOkbeFOQxfB1Vt2F0cPJLRpFI4Zg== dependencies: - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-compilation-targets" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.24.7" + "@babel/plugin-transform-parameters" "^7.25.7" -"@babel/plugin-transform-object-super@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz#66eeaff7830bba945dd8989b632a40c04ed625be" - integrity sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg== +"@babel/plugin-transform-object-super@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.7.tgz#582a9cea8cf0a1e02732be5b5a703a38dedf5661" + integrity sha512-pWT6UXCEW3u1t2tcAGtE15ornCBvopHj9Bps9D2DsH15APgNVOTwwczGckX+WkAvBmuoYKRCFa4DK+jM8vh5AA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-replace-supers" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-replace-supers" "^7.25.7" -"@babel/plugin-transform-optional-catch-binding@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.7.tgz#00eabd883d0dd6a60c1c557548785919b6e717b4" - integrity sha512-uLEndKqP5BfBbC/5jTwPxLh9kqPWWgzN/f8w6UwAIirAEqiIVJWWY312X72Eub09g5KF9+Zn7+hT7sDxmhRuKA== +"@babel/plugin-transform-optional-catch-binding@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.7.tgz#400e2d891f9288f5231694234696aa67164e4913" + integrity sha512-m9obYBA39mDPN7lJzD5WkGGb0GO54PPLXsbcnj1Hyeu8mSRz7Gb4b1A6zxNX32ZuUySDK4G6it8SDFWD1nCnqg== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.7.tgz#b8f6848a80cf2da98a8a204429bec04756c6d454" - integrity sha512-tK+0N9yd4j+x/4hxF3F0e0fu/VdcxU18y5SevtyM/PCFlQvXbR0Zmlo2eBrKtVipGNFzpq56o8WsIIKcJFUCRQ== +"@babel/plugin-transform-optional-chaining@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.7.tgz#b7f7c9321aa1d8414e67799c28d87c23682e4d68" + integrity sha512-h39agClImgPWg4H8mYVAbD1qP9vClFbEjqoJmt87Zen8pjqK8FTPUwrOXAvqu5soytwxrLMd2fx2KSCp2CHcNg== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.25.7" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -"@babel/plugin-transform-parameters@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz#5881f0ae21018400e320fc7eb817e529d1254b68" - integrity sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA== +"@babel/plugin-transform-parameters@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.7.tgz#80c38b03ef580f6d6bffe1c5254bb35986859ac7" + integrity sha512-FYiTvku63me9+1Nz7TOx4YMtW3tWXzfANZtrzHhUZrz4d47EEtMQhzFoZWESfXuAMMT5mwzD4+y1N8ONAX6lMQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-private-methods@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.7.tgz#e6318746b2ae70a59d023d5cc1344a2ba7a75f5e" - integrity sha512-COTCOkG2hn4JKGEKBADkA8WNb35TGkkRbI5iT845dB+NyqgO8Hn+ajPbSnIQznneJTa3d30scb6iz/DhH8GsJQ== +"@babel/plugin-transform-private-methods@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.7.tgz#c790a04f837b4bd61d6b0317b43aa11ff67dce80" + integrity sha512-KY0hh2FluNxMLwOCHbxVOKfdB5sjWG4M183885FmaqWWiGMhRZq4DQRKH6mHdEucbJnyDyYiZNwNG424RymJjA== dependencies: - "@babel/helper-create-class-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-class-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-private-property-in-object@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.7.tgz#4eec6bc701288c1fab5f72e6a4bbc9d67faca061" - integrity sha512-9z76mxwnwFxMyxZWEgdgECQglF2Q7cFLm0kMf8pGwt+GSJsY0cONKj/UuO4bOH0w/uAel3ekS4ra5CEAyJRmDA== +"@babel/plugin-transform-private-property-in-object@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.7.tgz#aff877efd05b57c4ad04611d8de97bf155a53369" + integrity sha512-LzA5ESzBy7tqj00Yjey9yWfs3FKy4EmJyKOSWld144OxkTji81WWnUT8nkLUn+imN/zHL8ZQlOu/MTUAhHaX3g== dependencies: - "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-create-class-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-annotate-as-pure" "^7.25.7" + "@babel/helper-create-class-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" -"@babel/plugin-transform-property-literals@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz#f0d2ed8380dfbed949c42d4d790266525d63bbdc" - integrity sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA== +"@babel/plugin-transform-property-literals@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.7.tgz#a8612b4ea4e10430f00012ecf0155662c7d6550d" + integrity sha512-lQEeetGKfFi0wHbt8ClQrUSUMfEeI3MMm74Z73T9/kuz990yYVtfofjf3NuA42Jy3auFOpbjDyCSiIkTs1VIYw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-transform-react-display-name@^7.24.7": version "7.24.7" @@ -1560,20 +1697,20 @@ "@babel/helper-annotate-as-pure" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-regenerator@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.7.tgz#021562de4534d8b4b1851759fd7af4e05d2c47f8" - integrity sha512-lq3fvXPdimDrlg6LWBoqj+r/DEWgONuwjuOuQCSYgRroXDH/IdM1C0IZf59fL5cHLpjEH/O6opIRBbqv7ELnuA== +"@babel/plugin-transform-regenerator@^7.24.7", "@babel/plugin-transform-regenerator@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.7.tgz#6eb006e6d26f627bc2f7844a9f19770721ad6f3e" + integrity sha512-mgDoQCRjrY3XK95UuV60tZlFCQGXEtMg8H+IsW72ldw1ih1jZhzYXbJvghmAEpg5UVhhnCeia1CkGttUvCkiMQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" regenerator-transform "^0.15.2" -"@babel/plugin-transform-reserved-words@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.7.tgz#80037fe4fbf031fc1125022178ff3938bb3743a4" - integrity sha512-0DUq0pHcPKbjFZCfTss/pGkYMfy3vFWydkUBd9r0GHpIyfs2eCDENvqadMycRS9wZCXR41wucAfJHJmwA0UmoQ== +"@babel/plugin-transform-reserved-words@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.7.tgz#dc56b25e02afaabef3ce0c5b06b0916e8523e995" + integrity sha512-3OfyfRRqiGeOvIWSagcwUTVk2hXBsr/ww7bLn6TRTuXnexA+Udov2icFOxFX9abaj4l96ooYkcNN1qi2Zvqwng== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-transform-runtime@^7.12.1": version "7.14.5" @@ -1587,41 +1724,41 @@ babel-plugin-polyfill-regenerator "^0.2.2" semver "^6.3.0" -"@babel/plugin-transform-shorthand-properties@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.7.tgz#85448c6b996e122fa9e289746140aaa99da64e73" - integrity sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA== +"@babel/plugin-transform-shorthand-properties@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.7.tgz#92690a9c671915602d91533c278cc8f6bf12275f" + integrity sha512-uBbxNwimHi5Bv3hUccmOFlUy3ATO6WagTApenHz9KzoIdn0XeACdB12ZJ4cjhuB2WSi80Ez2FWzJnarccriJeA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-spread@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz#e8a38c0fde7882e0fb8f160378f74bd885cc7bb3" - integrity sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng== +"@babel/plugin-transform-spread@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.7.tgz#df83e899a9fc66284ee601a7b738568435b92998" + integrity sha512-Mm6aeymI0PBh44xNIv/qvo8nmbkpZze1KvR8MkEqbIREDxoiWTi18Zr2jryfRMwDfVZF9foKh060fWgni44luw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.25.7" -"@babel/plugin-transform-sticky-regex@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.7.tgz#96ae80d7a7e5251f657b5cf18f1ea6bf926f5feb" - integrity sha512-kHPSIJc9v24zEml5geKg9Mjx5ULpfncj0wRpYtxbvKyTtHCYDkVE3aHQ03FrpEo4gEe2vrJJS1Y9CJTaThA52g== +"@babel/plugin-transform-sticky-regex@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.7.tgz#341c7002bef7f29037be7fb9684e374442dd0d17" + integrity sha512-ZFAeNkpGuLnAQ/NCsXJ6xik7Id+tHuS+NT+ue/2+rn/31zcdnupCdmunOizEaP0JsUmTFSTOPoQY7PkK2pttXw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-template-literals@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz#a05debb4a9072ae8f985bcf77f3f215434c8f8c8" - integrity sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw== +"@babel/plugin-transform-template-literals@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.7.tgz#e566c581bb16d8541dd8701093bb3457adfce16b" + integrity sha512-SI274k0nUsFFmyQupiO7+wKATAmMFf8iFgq2O+vVFXZ0SV9lNfT1NGzBEhjquFmD8I9sqHLguH+gZVN3vww2AA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-typeof-symbol@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.7.tgz#f074be466580d47d6e6b27473a840c9f9ca08fb0" - integrity sha512-VtR8hDy7YLB7+Pet9IarXjg/zgCMSF+1mNS/EQEiEaUPoFXCVsHG64SIxcaaI2zJgRiv+YmgaQESUfWAdbjzgg== +"@babel/plugin-transform-typeof-symbol@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.25.7.tgz#debb1287182efd20488f126be343328c679b66eb" + integrity sha512-OmWmQtTHnO8RSUbL0NTdtpbZHeNTnm68Gj5pA4Y2blFNh+V4iZR68V1qL9cI37J21ZN7AaCnkfdHtLExQPf2uA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-transform-typescript@^7.24.1": version "7.24.1" @@ -1633,58 +1770,59 @@ "@babel/helper-plugin-utils" "^7.24.0" "@babel/plugin-syntax-typescript" "^7.24.1" -"@babel/plugin-transform-unicode-escapes@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.7.tgz#2023a82ced1fb4971630a2e079764502c4148e0e" - integrity sha512-U3ap1gm5+4edc2Q/P+9VrBNhGkfnf+8ZqppY71Bo/pzZmXhhLdqgaUl6cuB07O1+AQJtCLfaOmswiNbSQ9ivhw== +"@babel/plugin-transform-unicode-escapes@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.7.tgz#973592b6d13a914794e1de8cf1383e50e0f87f81" + integrity sha512-BN87D7KpbdiABA+t3HbVqHzKWUDN3dymLaTnPFAMyc8lV+KN3+YzNhVRNdinaCPA4AUqx7ubXbQ9shRjYBl3SQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-unicode-property-regex@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.7.tgz#9073a4cd13b86ea71c3264659590ac086605bbcd" - integrity sha512-uH2O4OV5M9FZYQrwc7NdVmMxQJOCCzFeYudlZSzUAHRFeOujQefa92E74TQDVskNHCzOXoigEuoyzHDhaEaK5w== +"@babel/plugin-transform-unicode-property-regex@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.7.tgz#25349197cce964b1343f74fa7cfdf791a1b1919e" + integrity sha512-IWfR89zcEPQGB/iB408uGtSPlQd3Jpq11Im86vUgcmSTcoWAiQMCTOa2K2yNNqFJEBVICKhayctee65Ka8OB0w== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-regexp-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-unicode-regex@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.7.tgz#dfc3d4a51127108099b19817c0963be6a2adf19f" - integrity sha512-hlQ96MBZSAXUq7ltkjtu3FJCCSMx/j629ns3hA3pXnBXjanNP0LHi+JpPeA81zaWgVK1VGH95Xuy7u0RyQ8kMg== +"@babel/plugin-transform-unicode-regex@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.7.tgz#f93a93441baf61f713b6d5552aaa856bfab34809" + integrity sha512-8JKfg/hiuA3qXnlLx8qtv5HWRbgyFx2hMMtpDDuU2rTckpKkGu4ycK5yYHwuEa16/quXfoxHBIApEsNyMWnt0g== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-regexp-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-unicode-sets-regex@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.7.tgz#d40705d67523803a576e29c63cef6e516b858ed9" - integrity sha512-2G8aAvF4wy1w/AGZkemprdGMRg5o6zPNhbHVImRz3lss55TYCBd6xStN19rt8XJHq20sqV0JbyWjOWwQRwV/wg== +"@babel/plugin-transform-unicode-sets-regex@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.7.tgz#d1b3295d29e0f8f4df76abc909ad1ebee919560c" + integrity sha512-YRW8o9vzImwmh4Q3Rffd09bH5/hvY0pxg+1H1i0f7APoUeg12G7+HhLj9ZFNIrYkgBXhIijPJ+IXypN0hLTIbw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-regexp-features-plugin" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.7.tgz#ff067b4e30ba4a72f225f12f123173e77b987f37" - integrity sha512-1YZNsc+y6cTvWlDHidMBsQZrZfEFjRIo/BZCT906PMdzOyXtSLTgqGdrpcuTDCXyd11Am5uQULtDIcCfnTc8fQ== +"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.25.7.tgz#fc1b092152db4b58377b85dc05c890081c1157e0" + integrity sha512-Gibz4OUdyNqqLj+7OAvBZxOD7CklCtMA5/j0JgUEwOnaRULsPDXmic2iKxL2DX2vQduPR5wH2hjZas/Vr/Oc0g== dependencies: - "@babel/compat-data" "^7.24.7" - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-validator-option" "^7.24.7" - "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.24.7" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.24.7" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.24.7" - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.24.7" + "@babel/compat-data" "^7.25.7" + "@babel/helper-compilation-targets" "^7.25.7" + "@babel/helper-plugin-utils" "^7.25.7" + "@babel/helper-validator-option" "^7.25.7" + "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.25.7" + "@babel/plugin-bugfix-safari-class-field-initializer-scope" "^7.25.7" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.25.7" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.25.7" + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.25.7" "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-class-properties" "^7.12.13" "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - "@babel/plugin-syntax-import-assertions" "^7.24.7" - "@babel/plugin-syntax-import-attributes" "^7.24.7" + "@babel/plugin-syntax-import-assertions" "^7.25.7" + "@babel/plugin-syntax-import-attributes" "^7.25.7" "@babel/plugin-syntax-import-meta" "^7.10.4" "@babel/plugin-syntax-json-strings" "^7.8.3" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" @@ -1696,59 +1834,60 @@ "@babel/plugin-syntax-private-property-in-object" "^7.14.5" "@babel/plugin-syntax-top-level-await" "^7.14.5" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" - "@babel/plugin-transform-arrow-functions" "^7.24.7" - "@babel/plugin-transform-async-generator-functions" "^7.24.7" - "@babel/plugin-transform-async-to-generator" "^7.24.7" - "@babel/plugin-transform-block-scoped-functions" "^7.24.7" - "@babel/plugin-transform-block-scoping" "^7.24.7" - "@babel/plugin-transform-class-properties" "^7.24.7" - "@babel/plugin-transform-class-static-block" "^7.24.7" - "@babel/plugin-transform-classes" "^7.24.7" - "@babel/plugin-transform-computed-properties" "^7.24.7" - "@babel/plugin-transform-destructuring" "^7.24.7" - "@babel/plugin-transform-dotall-regex" "^7.24.7" - "@babel/plugin-transform-duplicate-keys" "^7.24.7" - "@babel/plugin-transform-dynamic-import" "^7.24.7" - "@babel/plugin-transform-exponentiation-operator" "^7.24.7" - "@babel/plugin-transform-export-namespace-from" "^7.24.7" - "@babel/plugin-transform-for-of" "^7.24.7" - "@babel/plugin-transform-function-name" "^7.24.7" - "@babel/plugin-transform-json-strings" "^7.24.7" - "@babel/plugin-transform-literals" "^7.24.7" - "@babel/plugin-transform-logical-assignment-operators" "^7.24.7" - "@babel/plugin-transform-member-expression-literals" "^7.24.7" - "@babel/plugin-transform-modules-amd" "^7.24.7" - "@babel/plugin-transform-modules-commonjs" "^7.24.7" - "@babel/plugin-transform-modules-systemjs" "^7.24.7" - "@babel/plugin-transform-modules-umd" "^7.24.7" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.24.7" - "@babel/plugin-transform-new-target" "^7.24.7" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.24.7" - "@babel/plugin-transform-numeric-separator" "^7.24.7" - "@babel/plugin-transform-object-rest-spread" "^7.24.7" - "@babel/plugin-transform-object-super" "^7.24.7" - "@babel/plugin-transform-optional-catch-binding" "^7.24.7" - "@babel/plugin-transform-optional-chaining" "^7.24.7" - "@babel/plugin-transform-parameters" "^7.24.7" - "@babel/plugin-transform-private-methods" "^7.24.7" - "@babel/plugin-transform-private-property-in-object" "^7.24.7" - "@babel/plugin-transform-property-literals" "^7.24.7" - "@babel/plugin-transform-regenerator" "^7.24.7" - "@babel/plugin-transform-reserved-words" "^7.24.7" - "@babel/plugin-transform-shorthand-properties" "^7.24.7" - "@babel/plugin-transform-spread" "^7.24.7" - "@babel/plugin-transform-sticky-regex" "^7.24.7" - "@babel/plugin-transform-template-literals" "^7.24.7" - "@babel/plugin-transform-typeof-symbol" "^7.24.7" - "@babel/plugin-transform-unicode-escapes" "^7.24.7" - "@babel/plugin-transform-unicode-property-regex" "^7.24.7" - "@babel/plugin-transform-unicode-regex" "^7.24.7" - "@babel/plugin-transform-unicode-sets-regex" "^7.24.7" + "@babel/plugin-transform-arrow-functions" "^7.25.7" + "@babel/plugin-transform-async-generator-functions" "^7.25.7" + "@babel/plugin-transform-async-to-generator" "^7.25.7" + "@babel/plugin-transform-block-scoped-functions" "^7.25.7" + "@babel/plugin-transform-block-scoping" "^7.25.7" + "@babel/plugin-transform-class-properties" "^7.25.7" + "@babel/plugin-transform-class-static-block" "^7.25.7" + "@babel/plugin-transform-classes" "^7.25.7" + "@babel/plugin-transform-computed-properties" "^7.25.7" + "@babel/plugin-transform-destructuring" "^7.25.7" + "@babel/plugin-transform-dotall-regex" "^7.25.7" + "@babel/plugin-transform-duplicate-keys" "^7.25.7" + "@babel/plugin-transform-duplicate-named-capturing-groups-regex" "^7.25.7" + "@babel/plugin-transform-dynamic-import" "^7.25.7" + "@babel/plugin-transform-exponentiation-operator" "^7.25.7" + "@babel/plugin-transform-export-namespace-from" "^7.25.7" + "@babel/plugin-transform-for-of" "^7.25.7" + "@babel/plugin-transform-function-name" "^7.25.7" + "@babel/plugin-transform-json-strings" "^7.25.7" + "@babel/plugin-transform-literals" "^7.25.7" + "@babel/plugin-transform-logical-assignment-operators" "^7.25.7" + "@babel/plugin-transform-member-expression-literals" "^7.25.7" + "@babel/plugin-transform-modules-amd" "^7.25.7" + "@babel/plugin-transform-modules-commonjs" "^7.25.7" + "@babel/plugin-transform-modules-systemjs" "^7.25.7" + "@babel/plugin-transform-modules-umd" "^7.25.7" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.25.7" + "@babel/plugin-transform-new-target" "^7.25.7" + "@babel/plugin-transform-nullish-coalescing-operator" "^7.25.7" + "@babel/plugin-transform-numeric-separator" "^7.25.7" + "@babel/plugin-transform-object-rest-spread" "^7.25.7" + "@babel/plugin-transform-object-super" "^7.25.7" + "@babel/plugin-transform-optional-catch-binding" "^7.25.7" + "@babel/plugin-transform-optional-chaining" "^7.25.7" + "@babel/plugin-transform-parameters" "^7.25.7" + "@babel/plugin-transform-private-methods" "^7.25.7" + "@babel/plugin-transform-private-property-in-object" "^7.25.7" + "@babel/plugin-transform-property-literals" "^7.25.7" + "@babel/plugin-transform-regenerator" "^7.25.7" + "@babel/plugin-transform-reserved-words" "^7.25.7" + "@babel/plugin-transform-shorthand-properties" "^7.25.7" + "@babel/plugin-transform-spread" "^7.25.7" + "@babel/plugin-transform-sticky-regex" "^7.25.7" + "@babel/plugin-transform-template-literals" "^7.25.7" + "@babel/plugin-transform-typeof-symbol" "^7.25.7" + "@babel/plugin-transform-unicode-escapes" "^7.25.7" + "@babel/plugin-transform-unicode-property-regex" "^7.25.7" + "@babel/plugin-transform-unicode-regex" "^7.25.7" + "@babel/plugin-transform-unicode-sets-regex" "^7.25.7" "@babel/preset-modules" "0.1.6-no-external-plugins" babel-plugin-polyfill-corejs2 "^0.4.10" - babel-plugin-polyfill-corejs3 "^0.10.4" + babel-plugin-polyfill-corejs3 "^0.10.6" babel-plugin-polyfill-regenerator "^0.6.1" - core-js-compat "^3.31.0" + core-js-compat "^3.38.1" semver "^6.3.1" "@babel/preset-modules@0.1.6-no-external-plugins": @@ -1804,6 +1943,15 @@ "@babel/parser" "^7.25.0" "@babel/types" "^7.25.0" +"@babel/template@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.7.tgz#27f69ce382855d915b14ab0fe5fb4cbf88fa0769" + integrity sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/types" "^7.25.7" + "@babel/traverse@^7.13.0", "@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" @@ -1817,6 +1965,19 @@ debug "^4.3.1" globals "^11.1.0" +"@babel/traverse@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.7.tgz#83e367619be1cab8e4f2892ef30ba04c26a40fa8" + integrity sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/generator" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/template" "^7.25.7" + "@babel/types" "^7.25.7" + debug "^4.3.1" + globals "^11.1.0" + "@babel/types@^7.0.0", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" @@ -1826,6 +1987,15 @@ "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" +"@babel/types@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.7.tgz#1b7725c1d3a59f328cb700ce704c46371e6eef9b" + integrity sha512-vwIVdXG+j+FOpkwqHRcBgHLYNL7XMkufrlaFvL9o6Ai9sJn9+PdyIL5qa0XzTZw084c+u9LOls53eoZWP/W5WQ== + dependencies: + "@babel/helper-string-parser" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" + to-fast-properties "^2.0.0" + "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" @@ -5828,13 +5998,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.4: - version "0.10.4" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.4.tgz#789ac82405ad664c20476d0233b485281deb9c77" - integrity sha512-25J6I8NGfa5YkCDogHRID3fVCadIR8/pGl1/spvCkzb6lVn6SR3ojpx9nOn9iEBcUsjY24AmdKm5khcfKdylcg== +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== dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.1" - core-js-compat "^3.36.1" + "@babel/helper-define-polyfill-provider" "^0.6.2" + core-js-compat "^3.38.0" babel-plugin-polyfill-corejs3@^0.2.2: version "0.2.2" @@ -6114,7 +6284,7 @@ browserslist-to-esbuild@^1.2.0: dependencies: browserslist "^4.17.3" -browserslist@^4.17.3, browserslist@^4.23.0, browserslist@^4.23.1: +browserslist@^4.17.3: version "4.23.3" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== @@ -6124,6 +6294,16 @@ browserslist@^4.17.3, browserslist@^4.23.0, browserslist@^4.23.1: node-releases "^2.0.18" update-browserslist-db "^1.1.0" +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== + dependencies: + caniuse-lite "^1.0.30001663" + electron-to-chromium "^1.5.28" + node-releases "^2.0.18" + update-browserslist-db "^1.1.0" + bser@2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" @@ -6252,6 +6432,11 @@ caniuse-lite@^1.0.30001646: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz#0ce881f5a19a2dcfda2ecd927df4d5c1684b982f" integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== +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== + chalk@5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" @@ -6737,12 +6922,12 @@ copy-to-clipboard@^3.3.3: dependencies: toggle-selection "^1.0.6" -core-js-compat@^3.31.0, core-js-compat@^3.36.1, core-js-compat@^3.9.1: - version "3.37.1" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.37.1.tgz#c844310c7852f4bdf49b8d339730b97e17ff09ee" - integrity sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg== +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== dependencies: - browserslist "^4.23.0" + browserslist "^4.23.3" core-js@3.37.1, core-js@^3.37.0: version "3.37.1" @@ -7665,6 +7850,11 @@ 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.4: version "1.5.13" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz#1abf0410c5344b2b829b7247e031f02810d442e6" @@ -10477,6 +10667,11 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity "sha1-gFZNLkg9rPbo7yCWUKZ98/DCg6Q= sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" +jsesc@^3.0.2, jsesc@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" + integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== + jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" @@ -13229,6 +13424,13 @@ regenerate-unicode-properties@^10.1.0: dependencies: regenerate "^1.4.2" +regenerate-unicode-properties@^10.2.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz#626e39df8c372338ea9b8028d1f99dc3fd9c3db0" + integrity sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA== + dependencies: + regenerate "^1.4.2" + regenerate@^1.4.2: version "1.4.2" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" @@ -13278,6 +13480,30 @@ regexpu-core@^5.3.1: unicode-match-property-ecmascript "^2.0.0" unicode-match-property-value-ecmascript "^2.1.0" +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" + +regjsgen@^0.8.0: + version "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.9.1: version "0.9.1" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" From 98d8435b15e11fb9c5e9a1bf7ba0d14ad7426f33 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Oct 2024 10:16:11 -0400 Subject: [PATCH 11/52] Allow search page to work with Firefox keywords, closes #7722 --- app/scenes/Search/Search.tsx | 124 +++++++++++-------- app/scenes/Search/components/SearchInput.tsx | 8 +- 2 files changed, 74 insertions(+), 58 deletions(-) diff --git a/app/scenes/Search/Search.tsx b/app/scenes/Search/Search.tsx index 7a43614e6a..1a50bb6921 100644 --- a/app/scenes/Search/Search.tsx +++ b/app/scenes/Search/Search.tsx @@ -57,7 +57,9 @@ function Search(props: Props) { const recentSearchesRef = React.useRef(null); // filters - const query = decodeURIComponentSafe(routeMatch.params.term ?? ""); + const query = decodeURIComponentSafe( + routeMatch.params.term ?? params.get("query") ?? "" + ); const collectionId = params.get("collectionId") ?? undefined; const userId = params.get("userId") ?? undefined; const documentId = params.get("documentId") ?? undefined; @@ -117,7 +119,12 @@ function Search(props: Props) { const updateLocation = (query: string) => { history.replace({ pathname: searchPath(query), - search: location.search, + search: queryString.stringify( + { ...queryString.parse(location.search), query: undefined }, + { + skipEmptyString: true, + } + ), }); }; @@ -134,7 +141,7 @@ function Search(props: Props) { history.replace({ pathname: location.pathname, search: queryString.stringify( - { ...queryString.parse(location.search), ...search }, + { ...queryString.parse(location.search), query: undefined, ...search }, { skipEmptyString: true, } @@ -201,59 +208,68 @@ function Search(props: Props) { )} - +
ev.preventDefault()} + > + - {(query || hasFilters) && ( - - {document && ( - { - handleFilterChange({ documentId: undefined }); - }} + {(query || hasFilters) && ( + + {document && ( + { + handleFilterChange({ documentId: undefined }); + }} + /> + )} + + handleFilterChange({ statusFilter }) + } /> - )} - - handleFilterChange({ statusFilter }) - } - /> - handleFilterChange({ collectionId })} - /> - handleFilterChange({ userId })} - /> - handleFilterChange({ dateFilter })} - /> - ) => { - handleFilterChange({ titleFilter: ev.target.checked }); - }} - checked={titleFilter} - /> - - )} + + handleFilterChange({ collectionId }) + } + /> + handleFilterChange({ userId })} + /> + handleFilterChange({ dateFilter })} + /> + ) => { + handleFilterChange({ titleFilter: ev.target.checked }); + }} + checked={titleFilter} + /> + + )} + {query ? ( <> {error ? ( diff --git a/app/scenes/Search/components/SearchInput.tsx b/app/scenes/Search/components/SearchInput.tsx index 2487d96001..1a51dbdf83 100644 --- a/app/scenes/Search/components/SearchInput.tsx +++ b/app/scenes/Search/components/SearchInput.tsx @@ -4,10 +4,10 @@ import styled, { useTheme } from "styled-components"; import { s } from "@shared/styles"; import Flex from "~/components/Flex"; -type Props = React.HTMLAttributes & { - defaultValue?: string; - placeholder?: string; -}; +interface Props extends React.HTMLAttributes { + name: string; + defaultValue: string; +} function SearchInput( { defaultValue, ...rest }: Props, From e857d00e3d7274ffc45cdd9202d20cd325a0bb56 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Oct 2024 20:58:00 -0400 Subject: [PATCH 12/52] chore: Moves ProseMirror NodeView to render within main React context (#7736) --- app/editor/components/ComponentView.tsx | 92 +++++++++++----------- app/editor/components/NodeViewRenderer.tsx | 28 +++++++ app/editor/index.tsx | 5 +- app/index.tsx | 6 -- 4 files changed, 79 insertions(+), 52 deletions(-) create mode 100644 app/editor/components/NodeViewRenderer.tsx diff --git a/app/editor/components/ComponentView.tsx b/app/editor/components/ComponentView.tsx index 522b445600..1a926d6f51 100644 --- a/app/editor/components/ComponentView.tsx +++ b/app/editor/components/ComponentView.tsx @@ -1,29 +1,51 @@ import { Node as ProsemirrorNode } from "prosemirror-model"; import { EditorView, Decoration } from "prosemirror-view"; -import * as React from "react"; -import ReactDOM from "react-dom"; -import { ThemeProvider } from "styled-components"; +import { FunctionComponent } from "react"; import Extension from "@shared/editor/lib/Extension"; import { ComponentProps } from "@shared/editor/types"; import { Editor } from "~/editor"; +import { NodeViewRenderer } from "./NodeViewRenderer"; -type Component = (props: ComponentProps) => React.ReactElement; +type ComponentViewConstructor = { + /** The editor instance. */ + editor: Editor; + /** The extension the view belongs to. */ + extension: Extension; + /** The node that the view is responsible for. */ + node: ProsemirrorNode; + /** The editor view instance. */ + view: EditorView; + /** A function that returns the current position of the node. */ + getPos: () => number; + /** The decorations applied to the node. */ + decorations: Decoration[]; +}; export default class ComponentView { - component: Component; + /** The React component to render. */ + component: FunctionComponent; + /** The editor instance. */ editor: Editor; + /** The extension the view belongs to. */ extension: Extension; + /** The node that the view is responsible for. */ node: ProsemirrorNode; + /** The editor view instance. */ view: EditorView; + /** A function that returns the current position of the node. */ getPos: () => number; + /** The decorations applied to the node. */ decorations: Decoration[]; - + /** The renderer instance. */ + renderer: NodeViewRenderer; + /** Whether the node is selected. */ isSelected = false; + /** The DOM element that the node is rendered into. */ dom: HTMLElement | null; // See https://prosemirror.net/docs/ref/#view.NodeView constructor( - component: Component, + component: FunctionComponent, { editor, extension, @@ -31,14 +53,7 @@ export default class ComponentView { view, getPos, decorations, - }: { - editor: Editor; - extension: Extension; - node: ProsemirrorNode; - view: EditorView; - getPos: () => number; - decorations: Decoration[]; - } + }: ComponentViewConstructor ) { this.component = component; this.editor = editor; @@ -52,51 +67,33 @@ export default class ComponentView { : document.createElement("div"); this.dom.classList.add(`component-${node.type.name}`); + this.renderer = new NodeViewRenderer(this.dom, this.component, this.props); - this.renderElement(); - window.addEventListener("theme-changed", this.renderElement); - window.addEventListener("location-changed", this.renderElement); + // Add the renderer to the editor's set of renderers so that it is included in the React tree. + this.editor.renderers.add(this.renderer); } - renderElement = () => { - const { theme } = this.editor.props; - - const children = this.component({ - theme, - node: this.node, - view: this.view, - isSelected: this.isSelected, - isEditable: this.view.editable, - getPos: this.getPos, - }); - - ReactDOM.render( - {children}, - this.dom - ); - }; - update(node: ProsemirrorNode) { if (node.type !== this.node.type) { return false; } this.node = node; - this.renderElement(); + this.renderer.updateProps(this.props); return true; } selectNode() { if (this.view.editable) { this.isSelected = true; - this.renderElement(); + this.renderer.updateProps(this.props); } } deselectNode() { if (this.view.editable) { this.isSelected = false; - this.renderElement(); + this.renderer.updateProps(this.props); } } @@ -105,16 +102,21 @@ export default class ComponentView { } destroy() { - window.removeEventListener("theme-changed", this.renderElement); - window.removeEventListener("location-changed", this.renderElement); - - if (this.dom) { - ReactDOM.unmountComponentAtNode(this.dom); - } + this.editor.renderers.delete(this.renderer); this.dom = null; } ignoreMutation() { return true; } + + get props() { + return { + node: this.node, + view: this.view, + isSelected: this.isSelected, + isEditable: this.view.editable, + getPos: this.getPos, + } as ComponentProps; + } } diff --git a/app/editor/components/NodeViewRenderer.tsx b/app/editor/components/NodeViewRenderer.tsx new file mode 100644 index 0000000000..701645779c --- /dev/null +++ b/app/editor/components/NodeViewRenderer.tsx @@ -0,0 +1,28 @@ +import isEqual from "lodash/isEqual"; +import { action, computed, observable } from "mobx"; +import React, { FunctionComponent } from "react"; +import { createPortal } from "react-dom"; + +export class NodeViewRenderer { + @observable public props: T; + + public constructor( + public element: HTMLElement, + private Component: FunctionComponent, + props: T + ) { + this.props = props; + } + + @computed + public get content() { + return createPortal(, this.element); + } + + @action + public updateProps(props: T) { + if (!isEqual(props, this.props)) { + this.props = props; + } + } +} diff --git a/app/editor/index.tsx b/app/editor/index.tsx index 4b8dcb9b5c..3cbc9403de 100644 --- a/app/editor/index.tsx +++ b/app/editor/index.tsx @@ -38,7 +38,7 @@ import Mark from "@shared/editor/marks/Mark"; import { basicExtensions as extensions } from "@shared/editor/nodes"; import Node from "@shared/editor/nodes/Node"; import ReactNode from "@shared/editor/nodes/ReactNode"; -import { EventType } from "@shared/editor/types"; +import { ComponentProps, EventType } from "@shared/editor/types"; import { ProsemirrorData, UserPreferences } from "@shared/types"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import EventEmitter from "@shared/utils/events"; @@ -50,6 +50,7 @@ import ComponentView from "./components/ComponentView"; import EditorContext from "./components/EditorContext"; import { SearchResult } from "./components/LinkEditor"; import LinkToolbar from "./components/LinkToolbar"; +import { NodeViewRenderer } from "./components/NodeViewRenderer"; import SelectionToolbar from "./components/SelectionToolbar"; import WithTheme from "./components/WithTheme"; @@ -192,6 +193,7 @@ export class Editor extends React.PureComponent< }; widgets: { [name: string]: (props: WidgetProps) => React.ReactElement }; + renderers: Set> = new Set(); nodes: { [name: string]: NodeSpec }; marks: { [name: string]: MarkSpec }; commands: Record; @@ -838,6 +840,7 @@ export class Editor extends React.PureComponent< Object.values(this.widgets).map((Widget, index) => ( ))} + {Array.from(this.renderers).map((view) => view.content)} diff --git a/app/index.tsx b/app/index.tsx index eba27d6bc8..c6d581110d 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -32,12 +32,6 @@ void PluginManager.loadPlugins(); initI18n(env.DEFAULT_LANGUAGE); const element = window.document.getElementById("root"); -history.listen(() => { - requestAnimationFrame(() => - window.dispatchEvent(new Event("location-changed")) - ); -}); - if (env.SENTRY_DSN) { initSentry(history); } From 3d457890cd3864f05f3ad3765544029953b230a9 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Oct 2024 22:04:51 -0400 Subject: [PATCH 13/52] fix: Regression in e857d00e3d rendering embeds --- shared/editor/nodes/Embed.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/editor/nodes/Embed.tsx b/shared/editor/nodes/Embed.tsx index ce64a4e56f..c4dc16da79 100644 --- a/shared/editor/nodes/Embed.tsx +++ b/shared/editor/nodes/Embed.tsx @@ -87,7 +87,7 @@ export default class Embed extends Node { return [embedsRule(this.options.embeds)]; } - component(props: ComponentProps) { + component = (props: ComponentProps) => { const { embeds, embedsDisabled } = this.editor.props; return ( @@ -97,7 +97,7 @@ export default class Embed extends Node { embedsDisabled={embedsDisabled} /> ); - } + }; commands({ type }: { type: NodeType }) { return (attrs: Record): Command => From a0e363799c75b991c979084f582c9a0730f58b09 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Oct 2024 22:29:54 -0400 Subject: [PATCH 14/52] fix: Add extra safety around search queries --- server/models/helpers/SearchHelper.ts | 193 ++++++++++++++------------ 1 file changed, 104 insertions(+), 89 deletions(-) diff --git a/server/models/helpers/SearchHelper.ts b/server/models/helpers/SearchHelper.ts index f40142a495..365add62d4 100644 --- a/server/models/helpers/SearchHelper.ts +++ b/server/models/helpers/SearchHelper.ts @@ -7,6 +7,7 @@ import { Op, Sequelize, WhereOptions } from "sequelize"; import { DateFilter, StatusFilter } from "@shared/types"; import { regexIndexOf, regexLastIndexOf } from "@shared/utils/string"; import { getUrls } from "@shared/utils/urls"; +import { ValidationError } from "@server/errors"; import Collection from "@server/models/Collection"; import Document from "@server/models/Document"; import Share from "@server/models/Share"; @@ -95,48 +96,55 @@ export default class SearchHelper { query: this.webSearchQuery(query), }; - const resultsQuery = Document.unscoped().findAll({ - attributes: [ - "id", - [ - Sequelize.literal( - `ts_rank("searchVector", to_tsquery('english', :query))` - ), - "searchRanking", + try { + const resultsQuery = Document.unscoped().findAll({ + attributes: [ + "id", + [ + Sequelize.literal( + `ts_rank("searchVector", to_tsquery('english', :query))` + ), + "searchRanking", + ], ], - ], - replacements, - where, - order: [ - ["searchRanking", "DESC"], - ["updatedAt", "DESC"], - ], - limit, - offset, - }) as any as Promise; + replacements, + where, + order: [ + ["searchRanking", "DESC"], + ["updatedAt", "DESC"], + ], + limit, + offset, + }) as any as Promise; - const countQuery = Document.unscoped().count({ - // @ts-expect-error Types are incorrect for count - replacements, - where, - }) as any as Promise; - const [results, count] = await Promise.all([resultsQuery, countQuery]); + const countQuery = Document.unscoped().count({ + // @ts-expect-error Types are incorrect for count + replacements, + where, + }) as any as Promise; + const [results, count] = await Promise.all([resultsQuery, countQuery]); - // Final query to get associated document data - const documents = await Document.findAll({ - where: { - id: map(results, "id"), - teamId: team.id, - }, - include: [ - { - model: Collection, - as: "collection", + // Final query to get associated document data + const documents = await Document.findAll({ + where: { + id: map(results, "id"), + teamId: team.id, }, - ], - }); + include: [ + { + model: Collection, + as: "collection", + }, + ], + }); - return this.buildResponse(query, results, documents, count); + return this.buildResponse(query, results, documents, count); + } catch (err) { + if (err.message.includes("syntax error in tsquery")) { + throw ValidationError("Invalid search query"); + } + throw err; + } } public static async searchTitlesForUser( @@ -220,62 +228,69 @@ export default class SearchHelper { }, ]; - const results = (await Document.unscoped().findAll({ - attributes: [ - "id", - [ - Sequelize.literal( - `ts_rank("searchVector", to_tsquery('english', :query))` - ), - "searchRanking", + try { + const results = (await Document.unscoped().findAll({ + attributes: [ + "id", + [ + Sequelize.literal( + `ts_rank("searchVector", to_tsquery('english', :query))` + ), + "searchRanking", + ], ], - ], - subQuery: false, - include, - replacements: queryReplacements, - where, - order: [ - ["searchRanking", "DESC"], - ["updatedAt", "DESC"], - ], - limit, - offset, - })) as any as RankedDocument[]; + subQuery: false, + include, + replacements: queryReplacements, + where, + order: [ + ["searchRanking", "DESC"], + ["updatedAt", "DESC"], + ], + limit, + offset, + })) as any as RankedDocument[]; - const countQuery = Document.unscoped().count({ - // @ts-expect-error Types are incorrect for count - subQuery: false, - include, - replacements: queryReplacements, - where, - }) as any as Promise; + const countQuery = Document.unscoped().count({ + // @ts-expect-error Types are incorrect for count + subQuery: false, + include, + replacements: queryReplacements, + where, + }) as any as Promise; - // Final query to get associated document data - const [documents, count] = await Promise.all([ - Document.scope([ - "withState", - "withDrafts", - { - method: ["withViews", user.id], - }, - { - method: ["withCollectionPermissions", user.id], - }, - { - method: ["withMembership", user.id], - }, - ]).findAll({ - where: { - teamId: user.teamId, - id: map(results, "id"), - }, - }), - results.length < limit && offset === 0 - ? Promise.resolve(results.length) - : countQuery, - ]); + // Final query to get associated document data + const [documents, count] = await Promise.all([ + Document.scope([ + "withState", + "withDrafts", + { + method: ["withViews", user.id], + }, + { + method: ["withCollectionPermissions", user.id], + }, + { + method: ["withMembership", user.id], + }, + ]).findAll({ + where: { + teamId: user.teamId, + id: map(results, "id"), + }, + }), + results.length < limit && offset === 0 + ? Promise.resolve(results.length) + : countQuery, + ]); - return this.buildResponse(query, results, documents, count); + return this.buildResponse(query, results, documents, count); + } catch (err) { + if (err.message.includes("syntax error in tsquery")) { + throw ValidationError("Invalid search query"); + } + throw err; + } } private static buildResultContext(document: Document, query: string) { From ba5eb60825feaf4e0ebc8e260192f8435703a266 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Oct 2024 23:01:07 -0400 Subject: [PATCH 15/52] fix: Remove slashes and literal newlines from markdown, closes #7691 --- app/models/Document.ts | 4 +++- shared/editor/lib/markdown/serializer.ts | 5 ++++- shared/editor/nodes/HardBreak.ts | 2 +- shared/editor/nodes/Paragraph.ts | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/models/Document.ts b/app/models/Document.ts index ce94763795..19e2a10b58 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -643,7 +643,9 @@ export default class Document extends ArchivableModel { nodes: extensionManager.nodes, marks: extensionManager.marks, }); - const markdown = serializer.serialize(Node.fromJSON(schema, this.data)); + const markdown = serializer.serialize(Node.fromJSON(schema, this.data), { + softBreak: true, + }); return markdown; }; diff --git a/shared/editor/lib/markdown/serializer.ts b/shared/editor/lib/markdown/serializer.ts index bda4c8651b..a71ccbf8f5 100644 --- a/shared/editor/lib/markdown/serializer.ts +++ b/shared/editor/lib/markdown/serializer.ts @@ -3,6 +3,8 @@ // https://raw.githubusercontent.com/ProseMirror/prosemirror-markdown/master/src/to_markdown.js // forked for table support +type Options = { tightLists?: boolean; softBreak?: boolean }; + // ::- A specification for serializing a ProseMirror document as // Markdown/CommonMark text. export class MarkdownSerializer { @@ -50,7 +52,7 @@ export class MarkdownSerializer { // :: (Node, ?Object) → string // Serialize the content of the given node to // [CommonMark](http://commonmark.org/). - serialize(content, options?: { tightLists?: boolean }): string { + serialize(content, options?: Options): string { const state = new MarkdownSerializerState(this.nodes, this.marks, options); state.renderContent(content); return state.out; @@ -66,6 +68,7 @@ export class MarkdownSerializerState { inTightList = false; closed = false; delim = ""; + options: Options; constructor(nodes, marks, options) { this.nodes = nodes; diff --git a/shared/editor/nodes/HardBreak.ts b/shared/editor/nodes/HardBreak.ts index 4b3bbc23b5..2a5d85be1e 100644 --- a/shared/editor/nodes/HardBreak.ts +++ b/shared/editor/nodes/HardBreak.ts @@ -55,7 +55,7 @@ export default class HardBreak extends Node { } toMarkdown(state: MarkdownSerializerState) { - state.write("\\n"); + state.write(state.options.softBreak ? "\n" : "\\n"); } parseMarkdown() { diff --git a/shared/editor/nodes/Paragraph.ts b/shared/editor/nodes/Paragraph.ts index 31a5c2b9b0..a545b07b15 100644 --- a/shared/editor/nodes/Paragraph.ts +++ b/shared/editor/nodes/Paragraph.ts @@ -37,7 +37,7 @@ export default class Paragraph extends Node { node.childCount === 0 && !state.inTable ) { - state.write("\\\n"); + state.write(state.options.softBreak ? "\n" : "\\\n"); } else { state.renderInline(node); state.closeBlock(node); From 1c2ea2aa921094a72f4201a1527d44fe544b97e2 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 8 Oct 2024 18:55:19 -0400 Subject: [PATCH 16/52] fix: Incorrect keyboard shortcut for TOC shown on macOS --- app/scenes/Document/components/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/Header.tsx b/app/scenes/Document/components/Header.tsx index be421744b9..de8d64acb6 100644 --- a/app/scenes/Document/components/Header.tsx +++ b/app/scenes/Document/components/Header.tsx @@ -41,7 +41,7 @@ import DocumentMenu from "~/menus/DocumentMenu"; import NewChildDocumentMenu from "~/menus/NewChildDocumentMenu"; import TableOfContentsMenu from "~/menus/TableOfContentsMenu"; import TemplatesMenu from "~/menus/TemplatesMenu"; -import { metaDisplay } from "~/utils/keyboard"; +import { altDisplay, metaDisplay } from "~/utils/keyboard"; import { documentEditPath } from "~/utils/routeHelpers"; import ObservingBanner from "./ObservingBanner"; import PublicBreadcrumb from "./PublicBreadcrumb"; @@ -124,7 +124,7 @@ function DocumentHeader({ ? t("Show contents") : `${t("Show contents")} (${t("available when headings are added")})` } - shortcut="ctrl+alt+h" + shortcut={`ctrl+${altDisplay}+h`} delay={250} placement="bottom" > From 91396148ae9a4fd49b4b659d3583abaf855a07cf Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 8 Oct 2024 19:20:40 -0400 Subject: [PATCH 17/52] =?UTF-8?q?fix:=20=E2=80=9CShare=20to=20web=E2=80=9D?= =?UTF-8?q?=20control=20is=20unresponsive=20when=20opening=20via=20?= =?UTF-8?q?=E2=80=9CPermissions=E2=80=9D=20menu=20item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/actions/definitions/documents.tsx | 4 ---- app/components/Sharing/Document/PublicAccess.tsx | 10 ++-------- app/components/Sharing/Document/SharePopover.tsx | 16 ++++------------ app/scenes/Document/components/ShareButton.tsx | 2 -- 4 files changed, 6 insertions(+), 26 deletions(-) diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index 3d9e18c89a..99d289b6af 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -358,8 +358,6 @@ export const shareDocument = createAction({ } const document = stores.documents.get(activeDocumentId); - const share = stores.shares.getByDocumentId(activeDocumentId); - const sharedParent = stores.shares.getByDocumentParents(activeDocumentId); if (!document) { return; } @@ -370,8 +368,6 @@ export const shareDocument = createAction({ content: ( diff --git a/app/components/Sharing/Document/PublicAccess.tsx b/app/components/Sharing/Document/PublicAccess.tsx index 4855cb2b5b..38353e7099 100644 --- a/app/components/Sharing/Document/PublicAccess.tsx +++ b/app/components/Sharing/Document/PublicAccess.tsx @@ -1,4 +1,3 @@ -import invariant from "invariant"; import debounce from "lodash/debounce"; import isEmpty from "lodash/isEmpty"; import { observer } from "mobx-react"; @@ -17,7 +16,6 @@ import Input, { NativeInput } from "~/components/Input"; import Switch from "~/components/Switch"; import env from "~/env"; import usePolicy from "~/hooks/usePolicy"; -import useStores from "~/hooks/useStores"; import { AvatarSize } from "../../Avatar"; import CopyToClipboard from "../../CopyToClipboard"; import NudeButton from "../../NudeButton"; @@ -39,7 +37,6 @@ type Props = { }; function PublicAccess({ document, share, sharedParent }: Props) { - const { shares } = useStores(); const { t } = useTranslation(); const theme = useTheme(); const [validationError, setValidationError] = React.useState(""); @@ -55,18 +52,15 @@ function PublicAccess({ document, share, sharedParent }: Props) { const handlePublishedChange = React.useCallback( async (event) => { - const share = shares.getByDocumentId(document.id); - invariant(share, "Share must exist"); - try { - await share.save({ + await share?.save({ published: event.currentTarget.checked, }); } catch (err) { toast.error(err.message); } }, - [document.id, shares] + [share] ); const handleUrlChange = React.useMemo( diff --git a/app/components/Sharing/Document/SharePopover.tsx b/app/components/Sharing/Document/SharePopover.tsx index 6ab0f6262e..007633977c 100644 --- a/app/components/Sharing/Document/SharePopover.tsx +++ b/app/components/Sharing/Document/SharePopover.tsx @@ -8,7 +8,6 @@ import { toast } from "sonner"; import { DocumentPermission } from "@shared/types"; import Document from "~/models/Document"; import Group from "~/models/Group"; -import Share from "~/models/Share"; import User from "~/models/User"; import { Avatar, GroupAvatar, AvatarSize } from "~/components/Avatar"; import NudeButton from "~/components/NudeButton"; @@ -32,26 +31,19 @@ import { AccessControlList } from "./AccessControlList"; type Props = { /** The document to share. */ document: Document; - /** The existing share model, if any. */ - share: Share | null | undefined; - /** The existing share parent model, if any. */ - sharedParent: Share | null | undefined; /** Callback fired when the popover requests to be closed. */ onRequestClose: () => void; /** Whether the popover is visible. */ visible: boolean; }; -function SharePopover({ - document, - share, - sharedParent, - onRequestClose, - visible, -}: Props) { +function SharePopover({ document, onRequestClose, visible }: Props) { const team = useCurrentTeam(); const { t } = useTranslation(); const can = usePolicy(document); + const { shares } = useStores(); + const share = shares.getByDocumentId(document.id); + const sharedParent = shares.getByDocumentParents(document.id); const [hasRendered, setHasRendered] = React.useState(visible); const { users, userMemberships, groups, groupMemberships } = useStores(); const [query, setQuery] = React.useState(""); diff --git a/app/scenes/Document/components/ShareButton.tsx b/app/scenes/Document/components/ShareButton.tsx index 4df7ba7515..290a9c2cb4 100644 --- a/app/scenes/Document/components/ShareButton.tsx +++ b/app/scenes/Document/components/ShareButton.tsx @@ -53,8 +53,6 @@ function ShareButton({ document }: Props) { > From 3ddffdda17e65cdf4543c7bdd3431a8da42391e9 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 8 Oct 2024 20:43:48 -0400 Subject: [PATCH 18/52] fix: Race condition rendering Mermaid diagrams in dark mode --- shared/editor/extensions/Mermaid.ts | 39 +++++++++-------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/shared/editor/extensions/Mermaid.ts b/shared/editor/extensions/Mermaid.ts index 533e8cc640..401b0baf36 100644 --- a/shared/editor/extensions/Mermaid.ts +++ b/shared/editor/extensions/Mermaid.ts @@ -17,7 +17,6 @@ import { findBlockNodes, NodeWithPos } from "../queries/findChildren"; type MermaidState = { decorationSet: DecorationSet; isDark: boolean; - initialized: boolean; }; class Cache { @@ -37,6 +36,8 @@ class Cache { private static data: Map = new Map(); } +let mermaid: typeof import("mermaid")["default"]; + type RendererFunc = ( block: { node: Node; pos: number }, isDark: boolean @@ -72,9 +73,16 @@ class MermaidRenderer { } try { - const { default: mermaid } = await import("mermaid"); - mermaid.mermaidAPI.setConfig({ + mermaid = mermaid ?? (await import("mermaid")).default; + mermaid.initialize({ + startOnLoad: true, + // TODO: Make dynamic based on the width of the editor or remove in + // the future if Mermaid is able to handle this automatically. + gantt: { useWidth: 700 }, + pie: { useWidth: 700 }, + fontFamily: "inherit", theme: isDark ? "dark" : "default", + darkMode: isDark, }); mermaid.render( `mermaid-diagram-${this.diagramId}`, @@ -107,7 +115,7 @@ class MermaidRenderer { if (this._rendererFunc) { return this._rendererFunc; } - this._rendererFunc = debounce(this.renderImmediately, 500); + this._rendererFunc = debounce(this.renderImmediately, 250); return this.renderImmediately; } @@ -164,27 +172,6 @@ function getNewState({ item.node.type.name === name && item.node.attrs.language === "mermaidjs" ); - let { initialized } = pluginState; - if (blocks.length > 0 && !initialized) { - void import("mermaid").then(({ default: mermaid }) => { - mermaid.initialize({ - startOnLoad: true, - // TODO: Make dynamic based on the width of the editor or remove in - // the future if Mermaid is able to handle this automatically. - gantt: { - useWidth: 700, - }, - pie: { - useWidth: 700, - }, - theme: pluginState.isDark ? "dark" : "default", - fontFamily: "inherit", - }); - }); - - initialized = true; - } - blocks.forEach((block) => { const existingDecorations = pluginState.decorationSet.find( block.pos, @@ -230,7 +217,6 @@ function getNewState({ return { decorationSet: DecorationSet.create(doc, decorations), isDark: pluginState.isDark, - initialized, }; } @@ -248,7 +234,6 @@ export default function Mermaid({ const pluginState: MermaidState = { decorationSet: DecorationSet.create(doc, []), isDark, - initialized: false, }; return getNewState({ doc, From 7a8d40b9e73454ee70cc5f4320d9e49ba0f48f3c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 8 Oct 2024 21:23:38 -0400 Subject: [PATCH 19/52] feat: Add option to export table as CSV, closes #7743 --- app/editor/menus/table.tsx | 12 ++++- app/hooks/useDictionary.ts | 1 + shared/editor/commands/table.ts | 61 ++++++++++++++++++++++ shared/editor/nodes/Table.ts | 2 + shared/i18n/locales/en_US/translation.json | 1 + 5 files changed, 76 insertions(+), 1 deletion(-) diff --git a/app/editor/menus/table.tsx b/app/editor/menus/table.tsx index ae1b0654c6..d0d7d23405 100644 --- a/app/editor/menus/table.tsx +++ b/app/editor/menus/table.tsx @@ -1,4 +1,4 @@ -import { AlignFullWidthIcon, TrashIcon } from "outline-icons"; +import { AlignFullWidthIcon, DownloadIcon, TrashIcon } from "outline-icons"; import { EditorState } from "prosemirror-state"; import * as React from "react"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; @@ -32,5 +32,15 @@ export default function tableMenuItems( tooltip: dictionary.deleteTable, icon: , }, + { + name: "separator", + }, + { + name: "exportTable", + tooltip: dictionary.exportAsCSV, + label: "CSV", + attrs: { format: "csv", fileName: `${window.document.title}.csv` }, + icon: , + }, ]; } diff --git a/app/hooks/useDictionary.ts b/app/hooks/useDictionary.ts index 35dafb475c..5ea7f68e11 100644 --- a/app/hooks/useDictionary.ts +++ b/app/hooks/useDictionary.ts @@ -77,6 +77,7 @@ export default function useDictionary() { sortAsc: t("Sort ascending"), sortDesc: t("Sort descending"), table: t("Table"), + exportAsCSV: t("Export as CSV"), toggleHeader: t("Toggle header"), mathInline: t("Math inline (LaTeX)"), mathBlock: t("Math block (LaTeX)"), diff --git a/shared/editor/commands/table.ts b/shared/editor/commands/table.ts index 5cd7fac38b..efa1b59ae3 100644 --- a/shared/editor/commands/table.ts +++ b/shared/editor/commands/table.ts @@ -84,6 +84,67 @@ function createTableInner( return types.table.createChecked(null, rows); } +export function exportTable({ + fileName, +}: { + format: string; + fileName: string; +}): Command { + return (state, dispatch) => { + if (!isInTable(state)) { + return false; + } + + if (dispatch) { + const rect = selectedRect(state); + const table: Node[][] = []; + + for (let r = 0; r < rect.map.height; r++) { + const cells = []; + for (let c = 0; c < rect.map.width; c++) { + const cell = state.doc.nodeAt( + rect.tableStart + rect.map.map[r * rect.map.width + c] + ); + if (cell) { + cells.push(cell); + } + } + table.push(cells); + } + + const csv = table + .map((row) => + row + .map((cell) => { + let value = cell.textContent; + + // Escape double quotes by doubling them + if (value.includes('"')) { + value = value.replace(new RegExp('"', "g"), '""'); + } + + // Avoid cell content being interpreted as formulas by adding a leading single quote + value = value.trimStart().replace(/^([+\-=@])/, "'$1"); + + return `"${value}"`; + }) + .join(",") + ) + .join("\n"); + + const blob = new Blob([csv], { type: "text/csv;charset=utf-8;" }); + const url = URL.createObjectURL(blob); + const a = document.createElement("a"); + a.href = url; + a.download = fileName; + a.click(); + URL.revokeObjectURL(url); + } + + return true; + }; +} + export function sortTable({ index, direction, diff --git a/shared/editor/nodes/Table.ts b/shared/editor/nodes/Table.ts index 00283757d9..399bfb1e69 100644 --- a/shared/editor/nodes/Table.ts +++ b/shared/editor/nodes/Table.ts @@ -17,6 +17,7 @@ import { addRowAndMoveSelection, setColumnAttr, createTable, + exportTable, sortTable, setTableAttr, deleteColSelection, @@ -79,6 +80,7 @@ export default class Table extends Node { addRowAfter: () => addRowAfter, deleteRow: () => deleteRow, deleteTable: () => deleteTable, + exportTable, toggleHeaderColumn: () => toggleHeader("column"), toggleHeaderRow: () => toggleHeader("row"), }; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index b623947feb..6b3f21c409 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -459,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Table", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Math inline (LaTeX)", "Math block (LaTeX)": "Math block (LaTeX)", From 6c9f2659189024f4b660503c9726cc0b665b3eeb Mon Sep 17 00:00:00 2001 From: Hemachandar <132386067+hmacr@users.noreply.github.com> Date: Thu, 10 Oct 2024 07:34:04 +0530 Subject: [PATCH 20/52] feat: Lossless JSON import (#7274) * feat: Lossless JSON import * transform node only when attachments are present in the zip --- server/queues/tasks/ImportJSONTask.test.ts | 37 ++++++++ server/queues/tasks/ImportJSONTask.ts | 97 +++++++++++++++++---- server/queues/tasks/ImportTask.ts | 2 + server/test/fixtures/outline-json.zip | Bin 0 -> 46911 bytes 4 files changed, 118 insertions(+), 18 deletions(-) create mode 100644 server/queues/tasks/ImportJSONTask.test.ts create mode 100644 server/test/fixtures/outline-json.zip diff --git a/server/queues/tasks/ImportJSONTask.test.ts b/server/queues/tasks/ImportJSONTask.test.ts new file mode 100644 index 0000000000..de768ef202 --- /dev/null +++ b/server/queues/tasks/ImportJSONTask.test.ts @@ -0,0 +1,37 @@ +import path from "path"; +import { FileOperation } from "@server/models"; +import { buildFileOperation } from "@server/test/factories"; +import ImportJSONTask from "./ImportJSONTask"; + +describe("ImportJSONTask", () => { + it("should import the documents, attachments", async () => { + const fileOperation = await buildFileOperation(); + Object.defineProperty(fileOperation, "handle", { + get() { + return { + path: path.resolve( + __dirname, + "..", + "..", + "test", + "fixtures", + "outline-json.zip" + ), + cleanup: async () => {}, + }; + }, + }); + jest.spyOn(FileOperation, "findByPk").mockResolvedValue(fileOperation); + + const props = { + fileOperationId: fileOperation.id, + }; + + const task = new ImportJSONTask(); + const response = await task.perform(props); + + expect(response.collections.size).toEqual(1); + expect(response.documents.size).toEqual(2); + expect(response.attachments.size).toEqual(1); + }); +}); diff --git a/server/queues/tasks/ImportJSONTask.ts b/server/queues/tasks/ImportJSONTask.ts index ad204daded..af81f1d76b 100644 --- a/server/queues/tasks/ImportJSONTask.ts +++ b/server/queues/tasks/ImportJSONTask.ts @@ -1,13 +1,13 @@ import path from "path"; import fs from "fs-extra"; -import escapeRegExp from "lodash/escapeRegExp"; import find from "lodash/find"; import mime from "mime-types"; -import { Node } from "prosemirror-model"; +import { Fragment, Node } from "prosemirror-model"; import { v4 as uuidv4 } from "uuid"; +import { ProsemirrorData } from "@shared/types"; import { schema, serializer } from "@server/editor"; import Logger from "@server/logging/Logger"; -import { FileOperation } from "@server/models"; +import { Attachment, FileOperation } from "@server/models"; import { AttachmentJSONExport, CollectionJSONExport, @@ -76,9 +76,10 @@ export default class ImportJSONTask extends ImportTask { output.documents.push({ ...node, path: "", - // TODO: This is kind of temporary, we can import the document - // structure directly in the future. + // populate text to maintain consistency with existing data. + // moving forward, `data` field will be used. text: serializer.serialize(Node.fromJSON(schema, node.data)), + data: node.data, icon: node.icon ?? node.emoji, color: node.color, createdAt: node.createdAt ? new Date(node.createdAt) : undefined, @@ -151,21 +152,81 @@ export default class ImportJSONTask extends ImportTask { } } - // Check all of the attachments we've created against urls in the text - // and replace them out with attachment redirect urls before continuing. - for (const document of output.documents) { - for (const attachment of output.attachments) { - const encodedPath = encodeURI( - `/api/attachments.redirect?id=${attachment.externalId}` - ); - - document.text = document.text.replace( - new RegExp(escapeRegExp(encodedPath), "g"), - `<<${attachment.id}>>` - ); - } + // Check all of the attachments we've created against urls and + // replace them with the correct redirect urls before continuing. + if (output.attachments.length) { + this.replaceAttachmentURLs(output); } return output; } + + private replaceAttachmentURLs(output: StructuredImportData) { + const attachmentTypes = ["attachment", "image", "video"]; + const urlRegex = /\/api\/attachments.redirect\?id=(.+)/; + + const attachmentExternalIdMap = output.attachments.reduce( + (obj, attachment) => { + if (attachment.externalId) { + obj[attachment.externalId] = attachment; + } + return obj; + }, + {} as Record + ); + + const getRedirectPath = (existingPath?: string): string | undefined => { + if (!existingPath) { + return; + } + + const match = existingPath.match(urlRegex); + if (!match) { + return existingPath; + } + + const attachment = attachmentExternalIdMap[match[1]]; + // maintain the existing behaviour of using existingPath when attachment id is not present. + return attachment + ? Attachment.getRedirectUrl(attachment.id) + : existingPath; + }; + + const transformAttachmentNode = (node: Node): Node => { + const json = node.toJSON() as ProsemirrorData; + const attrs = json.attrs ?? {}; + + if (node.type.name === "attachment") { + // attachment node uses 'href' attribute + attrs.href = getRedirectPath(attrs.href as string); + } else if (node.type.name === "image" || node.type.name === "video") { + // image & video nodes use 'src' attribute + attrs.src = getRedirectPath(attrs.src as string); + } + + json.attrs = attrs; + return Node.fromJSON(schema, json); + }; + + const transformFragment = (fragment: Fragment): Fragment => { + const nodes: Node[] = []; + + fragment.forEach((node) => { + nodes.push( + attachmentTypes.includes(node.type.name) + ? transformAttachmentNode(node) + : node.copy(transformFragment(node.content)) + ); + }); + + return Fragment.fromArray(nodes); + }; + + for (const document of output.documents) { + const node = Node.fromJSON(schema, document.data); + const transformedNode = node.copy(transformFragment(node.content)); + document.data = transformedNode; + document.text = serializer.serialize(transformedNode); + } + } } diff --git a/server/queues/tasks/ImportTask.ts b/server/queues/tasks/ImportTask.ts index 5a4af8d164..1bb69426fd 100644 --- a/server/queues/tasks/ImportTask.ts +++ b/server/queues/tasks/ImportTask.ts @@ -9,6 +9,7 @@ import { CollectionPermission, CollectionSort, FileOperationState, + ProsemirrorData, } from "@shared/types"; import { CollectionValidation } from "@shared/validations"; import attachmentCreator from "@server/commands/attachmentCreator"; @@ -459,6 +460,7 @@ export default abstract class ImportTask extends BaseTask { title: item.title, urlId: item.urlId, text, + content: item.data ? (item.data as ProsemirrorData) : undefined, collectionId: item.collectionId, createdAt: item.createdAt, updatedAt: item.updatedAt ?? item.createdAt, diff --git a/server/test/fixtures/outline-json.zip b/server/test/fixtures/outline-json.zip new file mode 100644 index 0000000000000000000000000000000000000000..a9fe2dec430a260ab499d8006275629a5d0c1638 GIT binary patch literal 46911 zcmcG!Ly#^^5GDGxZM*xnZM*xnZQJhKwr$(CZQHhO8}rY^EM^w(MZCp35t&(w%siQ! zil{gxF9iY$4fvlBOL$QKUx)wgApeWb_SSX=#*Xyz|BqR;|3{XQk%qb+S(r^&XgL}F zBjqsSG&W)8WM?ul;{4xykN`+Pa@_yDpw9mb<=cu2|1YVoB@6i0N}npe*wZhUnpc~TwrWi$j6mPkgr9UHyl9$ z;QqdR-BrMyofiX%JqZBtHcfDMyTs3k#yx$WITNkp{#9`23;7l8N9r<>Bq3y31i;$2 zX>b0eyP9I*kzWG?_^s|B&cq#mtF7b~1COb*tXZu7CQibfM~7d~G%Rd1BN(q4H7#S-+co;?P)_YO+= zq=;I^e$Z3l`xX(_dz?!tYge>*P(=}2{<4jTW>aI{-$#+vk>2tXn}x%rvE+cg(Hig6zln(FzG6QpnxD=jr2T{e8d!A$Yoci9@- za*?M|x;4n{LLP}v6ZLWj)Xhpj@|M0`L!)H&nJsiF7SfziM!NIH6 z$as!J;KI@&0ChWI9%9Bbm#JaqE{PUx_&;WtduL!gj^kpy=U94Q+}`a|X6E--RUjxYKJy_b)BnR)4WplY zNTIo(rhs&1c>Uv8mc94%7nF&s)aszfDAMeA`WIBSMvRY#`r0+0v_FO-_UAVSIP{^Y zvSdH@`50%P;}a)0$l5#gL)r4_=rUw1xUcuH$}HXFl=PNj{OflHZt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_tm5U6~L{-7;)5}EB29r1DHBC1 Date: Thu, 10 Oct 2024 04:47:20 -0700 Subject: [PATCH 21/52] chore(deps): bump vite from 5.3.1 to 5.4.8 (#7704) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.3.1 to 5.4.8. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.4.8/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.4.8/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 39 ++++++++++++++++++++++----------------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 13467bbd05..5245bdf75b 100644 --- a/package.json +++ b/package.json @@ -239,7 +239,7 @@ "utility-types": "^3.10.0", "uuid": "^8.3.2", "validator": "13.12.0", - "vite": "^5.3.1", + "vite": "^5.4.8", "vite-plugin-pwa": "^0.20.3", "winston": "^3.13.0", "ws": "^7.5.10", diff --git a/yarn.lock b/yarn.lock index bdfb658a91..c310f11e83 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12545,6 +12545,11 @@ picocolors@^1.0.0, picocolors@^1.0.1: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== +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== + picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" @@ -12628,14 +12633,14 @@ postcss-value-parser@^4.0.2: resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" integrity "sha1-cjwJkgg2um0+WvAZ+SvAlxwC5RQ= sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" -postcss@^8.4.38: - version "8.4.38" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e" - integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== +postcss@^8.4.43: + version "8.4.47" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365" + integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ== dependencies: nanoid "^3.3.7" - picocolors "^1.0.0" - source-map-js "^1.2.0" + picocolors "^1.1.0" + source-map-js "^1.2.1" postgres-array@~2.0.0: version "2.0.0" @@ -13710,7 +13715,7 @@ rollup-plugin-webpack-stats@^0.4.1: resolved "https://registry.yarnpkg.com/rollup-plugin-webpack-stats/-/rollup-plugin-webpack-stats-0.4.1.tgz#e66f691b7735e9fca39fc0302089632c80b3e03f" integrity sha512-Zi7t0G7FtA55LNcU9B3s2gBo3PODbdo+288Cw2/4sA8+o9H/ahhWZ25UxADeHwriAzW808iDpPbB81C5jGLIbg== -rollup@^0.41.4, rollup@^2.43.1, rollup@^4.13.0, rollup@^4.5.1: +rollup@^0.41.4, rollup@^2.43.1, rollup@^4.20.0, rollup@^4.5.1: version "4.5.1" resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.5.1.tgz#95661ead5373d46e1c91b38fc1549bc59fc72aa4" integrity "sha1-lWYerVNz1G4ckbOPwVSbxZ/HKqQ= sha512-0EQribZoPKpb5z1NW/QYm3XSR//Xr8BeEXU49Lc/mQmpmVVG5jPUVrpc2iptup/0WMrY9mzas0fxH+TjYvG2CA==" @@ -14129,10 +14134,10 @@ source-list-map@~0.1.7: resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-0.1.8.tgz#c550b2ab5427f6b3f21f5afead88c4f5587b2106" integrity "sha1-xVCyq1Qn9rPyH1r+rYjE9Vh7IQY= sha512-cabwdhnSNf/tTDMh/DXZXlkeQLvdYT5xfGYBohqHG7wb3bBQrQlHQNWM9NWSOboXXK1zgwz6JzS5e4hZq9vxMw==" -source-map-js@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" - integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== +source-map-js@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" + integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== source-map-support@0.5.13: version "0.5.13" @@ -15316,14 +15321,14 @@ vite-plugin-static-copy@^0.17.0: fs-extra "^11.1.0" picocolors "^1.0.0" -vite@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.3.1.tgz#bb2ca6b5fd7483249d3e86b25026e27ba8a663e6" - integrity sha512-XBmSKRLXLxiaPYamLv3/hnP/KXDai1NDexN0FpkTaZXTfycHvkRHoenpgl/fvuK/kPbB6xAgoyiryAhQNxYmAQ== +vite@^5.4.8: + version "5.4.8" + resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.8.tgz#af548ce1c211b2785478d3ba3e8da51e39a287e8" + integrity sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ== dependencies: esbuild "^0.21.3" - postcss "^8.4.38" - rollup "^4.13.0" + postcss "^8.4.43" + rollup "^4.20.0" optionalDependencies: fsevents "~2.3.3" From 2bfef05137a2f589873f38ef0968d3baa1c171f4 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 10 Oct 2024 19:59:20 -0400 Subject: [PATCH 22/52] fix: Mention with space in search is not inserted correctly, closes #7759 --- app/editor/extensions/MentionMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/editor/extensions/MentionMenu.tsx b/app/editor/extensions/MentionMenu.tsx index 239a8e075d..ffbf16cfe7 100644 --- a/app/editor/extensions/MentionMenu.tsx +++ b/app/editor/extensions/MentionMenu.tsx @@ -8,7 +8,7 @@ export default class MentionMenuExtension extends Suggestion { get defaultOptions() { return { // ported from https://github.com/tc39/proposal-regexp-unicode-property-escapes#unicode-aware-version-of-w - openRegex: /(?:^|\s|\()@([\p{L}\p{M}\d]+)?$/u, + openRegex: /(?:^|\s|\()@([\p{L}\p{M}\d\s{1}]+)?$/u, closeRegex: /(?:^|\s|\()@(([\p{L}\p{M}\d]*\s{2})|(\s+[\p{L}\p{M}\d]+))$/u, }; } From 8f0211057c9e10da44a9697efca624afb4bfb880 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 10 Oct 2024 20:45:50 -0400 Subject: [PATCH 23/52] fix: RTL headings are not considered separately for layout closes #7757 --- shared/editor/components/Styles.ts | 241 +++++++++++++++++++---------- shared/editor/nodes/Heading.ts | 3 + 2 files changed, 163 insertions(+), 81 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 9567dab954..3728847241 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -294,7 +294,7 @@ width: 100%; font-size: 0.9em; cursor: default; - &:before { + &::before { content: "@"; } } @@ -356,17 +356,24 @@ width: 100%; margin-top: 0.25em; } - &:not(.placeholder):before { - display: none; - font-family: ${props.theme.fontFamilyMono}; - color: ${props.theme.textSecondary}; - font-size: 13px; - font-weight: 500; - line-height: 0; - margin-${props.rtl ? "right" : "left"}: -24px; - transition: opacity 150ms ease-in-out; - opacity: 0; - width: 24px; + &:not(.placeholder) { + &::before { + display: none; + font-family: ${props.theme.fontFamilyMono}; + color: ${props.theme.textSecondary}; + font-size: 13px; + font-weight: 500; + line-height: 0; + margin-left: -24px; + transition: opacity 150ms ease-in-out; + opacity: 0; + width: 24px; + } + + &:dir(rtl)::before { + margin-left: 0; + margin-right: -24px; + } } &:hover, @@ -395,7 +402,7 @@ width: 100%; height: 1em; word-break: normal; - &:after { + &::after { content: ""; display: block; position: absolute; @@ -628,15 +635,22 @@ li.ProseMirror-selectednode { outline: none; } -li.ProseMirror-selectednode:after { - content: ""; - position: absolute; - left: ${props.rtl ? "-2px" : "-32px"}; - right: ${props.rtl ? "-32px" : "-2px"}; - top: -2px; - bottom: -2px; - border: 2px solid ${props.theme.selected}; - pointer-events: none; +li.ProseMirror-selectednode { + &::after { + content: ""; + position: absolute; + left: -32px; + right: -2px; + top: -2px; + bottom: -2px; + border: 2px solid ${props.theme.selected}; + pointer-events: none; + } + + &:dir(rtl)::after { + left: -2px; + right: -32px; + } } img.ProseMirror-separator { @@ -662,7 +676,7 @@ img.ProseMirror-separator { } .heading-content { - &:before { + &::before { content: "​"; display: inline; } @@ -702,22 +716,22 @@ a:first-child { } } -h1:not(.placeholder):before { +h1:not(.placeholder)::before { content: "H1"; } -h2:not(.placeholder):before { +h2:not(.placeholder)::before { content: "H2"; } -h3:not(.placeholder):before { +h3:not(.placeholder)::before { content: "H3"; } -h4:not(.placeholder):before { +h4:not(.placeholder)::before { content: "H4"; } -h5:not(.placeholder):before { +h5:not(.placeholder)::before { content: "H5"; } -h6:not(.placeholder):before { +h6:not(.placeholder)::before { content: "H6"; } @@ -772,14 +786,19 @@ h6:not(.placeholder):before { opacity: 0; user-select: none; background: ${props.theme.background}; - margin-${props.rtl ? "right" : "left"}: -26px; - flex-direction: ${props.rtl ? "row-reverse" : "row"}; + margin-left: -26px; + flex-direction: row; display: none; position: relative; top: -2px; width: 26px; height: 24px; + &:dir(rtl) { + margin-left: 0; + margin-right: -26px; + } + &.collapsed { opacity: 1; } @@ -819,7 +838,7 @@ h6 { .heading-actions { display: inline-flex; } - &:not(.placeholder):before { + &:not(.placeholder)::before { display: ${props.readOnly ? "none" : "inline-block"}; } } @@ -832,15 +851,19 @@ h6 { &.collapsed { svg { - transform: rotate(${props.rtl ? "90deg" : "-90deg"}); + transform: rotate("-90deg"); pointer-events: none; } transition-delay: 0.1s; opacity: 1; } + + &:dir(rtl).collapsed svg { + transform: rotate(90deg); + } } -.placeholder:before { +.placeholder::before { display: block; opacity: 0; transition: opacity 150ms ease-in-out; @@ -851,9 +874,9 @@ h6 { } /** Show the placeholder if focused or the first visible item nth(2) accounts for block insert trigger */ -.ProseMirror-focused .placeholder:before, -.placeholder:nth-child(1):before, -.placeholder:nth-child(2):before { +.ProseMirror-focused .placeholder::before, +.placeholder:nth-child(1)::before, +.placeholder:nth-child(2)::before { opacity: 1; } @@ -899,12 +922,19 @@ h6 { min-width: 0; } -.notice-block .icon { - width: 24px; - height: 24px; - align-self: flex-start; - margin-${props.rtl ? "left" : "right"}: 4px; - color: ${props.theme.noticeInfoBackground}; +.notice-block { + .icon { + width: 24px; + height: 24px; + align-self: flex-start; + margin-right: 4px; + color: ${props.theme.noticeInfoBackground}; + } + + &:dir(rtl) .icon { + margin-right: 0; + margin-left: 4px; + } } .notice-block.tip { @@ -955,17 +985,22 @@ blockquote { overflow: hidden; position: relative; - &:before { + &::before { content: ""; display: inline-block; width: 2px; border-radius: 1px; position: absolute; - margin-${props.rtl ? "right" : "left"}: -1.5em; + margin-left: -1.5em; top: 0; bottom: 0; background: ${props.theme.quote}; } + + &:dir(rtl)::before { + margin-left: 0; + margin-right: -1.5em; + } } b, @@ -1023,8 +1058,13 @@ a:hover { ul, ol { - margin: ${props.rtl ? "0 -26px 0 0.1em" : "0 0.1em 0 -26px"}; - padding: ${props.rtl ? "0 48px 0 0" : "0 0 0 48px"}; + margin: 0 0.1em 0 -26px; + padding: 0 0 0 48px; + + &:dir(rtl) { + margin: 0 -26px 0 0.1em; + padding: 0 48px 0 0; + } } ol ol { @@ -1037,8 +1077,13 @@ ol ol ol { ul.checkbox_list { padding: 0; - margin-left: ${props.rtl ? "0" : "-24px"}; - margin-right: ${props.rtl ? "-24px" : "0"}; + margin-left: -24px; + margin-right: 0; + + &:dir(rtl) { + margin-left: 0; + margin-right: -24px; + } } ul li, @@ -1058,26 +1103,39 @@ ol li { ul.checkbox_list > li { display: flex; list-style: none; - padding-${props.rtl ? "right" : "left"}: 24px; + padding-left: 24px; + padding-right: 0; + + &:dir(rtl) { + padding-left: 0; + padding-right: 24px; + } } ul.checkbox_list > li.checked > div > p { color: ${props.theme.textTertiary}; } -ul li::before, -ol li::before { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iOCIgeT0iNyIgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIGZpbGw9IiM0RTVDNkUiLz4KPHJlY3QgeD0iOCIgeT0iMTEiIHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiBmaWxsPSIjNEU1QzZFIi8+CjxyZWN0IHg9IjgiIHk9IjE1IiB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgZmlsbD0iIzRFNUM2RSIvPgo8cmVjdCB4PSIxMyIgeT0iNyIgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIGZpbGw9IiM0RTVDNkUiLz4KPHJlY3QgeD0iMTMiIHk9IjExIiB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgZmlsbD0iIzRFNUM2RSIvPgo8cmVjdCB4PSIxMyIgeT0iMTUiIHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiBmaWxsPSIjNEU1QzZFIi8+Cjwvc3ZnPgo=") no-repeat; - background-position: 0 2px; - content: ""; - display: ${props.readOnly ? "none" : "inline-block"}; - cursor: grab; - width: 24px; - height: 24px; - position: absolute; - ${props.rtl ? "right" : "left"}: -40px; - opacity: 0; - transition: opacity 200ms ease-in-out; +ul li, +ol li { + &::before { + background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iOCIgeT0iNyIgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIGZpbGw9IiM0RTVDNkUiLz4KPHJlY3QgeD0iOCIgeT0iMTEiIHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiBmaWxsPSIjNEU1QzZFIi8+CjxyZWN0IHg9IjgiIHk9IjE1IiB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgZmlsbD0iIzRFNUM2RSIvPgo8cmVjdCB4PSIxMyIgeT0iNyIgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIGZpbGw9IiM0RTVDNkUiLz4KPHJlY3QgeD0iMTMiIHk9IjExIiB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgZmlsbD0iIzRFNUM2RSIvPgo8cmVjdCB4PSIxMyIgeT0iMTUiIHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiBmaWxsPSIjNEU1QzZFIi8+Cjwvc3ZnPgo=") no-repeat; + background-position: 0 2px; + content: ""; + display: ${props.readOnly ? "none" : "inline-block"}; + cursor: grab; + width: 24px; + height: 24px; + position: absolute; + left: -40px; + opacity: 0; + transition: opacity 200ms ease-in-out; + } + + &:dir(rtl)::before { + left: auto; + right: -40px; + } } ul li[draggable=true]::before, @@ -1085,9 +1143,15 @@ ol li[draggable=true]::before { cursor: grabbing; } -ul > li.counter-2::before, -ol li.counter-2::before { - ${props.rtl ? "right" : "left"}: -50px; +ul > li.counter-2, +ol li.counter-2 { + &::before { + left: -50px; + } + &:dir(rtl)::before { + left: auto; + right: -50px; + } } ul > li.hovering::before, @@ -1100,8 +1164,15 @@ ol li.ProseMirror-selectednode::after { display: none; } -ul.checkbox_list > li::before { - ${props.rtl ? "right" : "left"}: 0; +ul.checkbox_list > li { + &::before { + left: 0; + } + + &:dir(rtl)::before { + left: auto; + right: 0; + } } ul.checkbox_list li .checkbox { @@ -1111,13 +1182,17 @@ ul.checkbox_list li .checkbox { props.readOnly && !props.readOnlyWriteCheckboxes ? "none" : "initial" }; opacity: ${props.readOnly && !props.readOnlyWriteCheckboxes ? 0.75 : 1}; - margin: ${props.rtl ? "0 0 0 0.5em" : "0 0.5em 0 0"}; width: 14px; height: 14px; position: relative; top: 1px; transition: transform 100ms ease-in-out; opacity: .8; + margin: 0 0.5em 0 0; + + &:dir(rtl) { + margin: 0 0 0 0.5em; + } background-image: ${`url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3ZM3 2C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2H3Z' fill='${props.theme.text.replace( "#", @@ -1150,7 +1225,7 @@ hr { border: 0; } -hr:before { +hr::before { content: ""; display: block; position: absolute; @@ -1164,7 +1239,7 @@ hr.page-break { page-break-after: always; } -hr.page-break:before { +hr.page-break::before { border-top: 1px dashed ${props.theme.horizontalRule}; } @@ -1239,7 +1314,7 @@ mark { padding-left: calc(var(--line-number-gutter-width, 0) * 1em + 1.5em); } - &:after { + &::after { content: attr(data-line-numbers); position: absolute; padding-left: 0.5em; @@ -1348,9 +1423,13 @@ table { border: 1px solid ${props.theme.divider}; position: relative; padding: 4px 8px; - text-align: ${props.rtl ? "right" : "left"}; + text-align: left; min-width: 100px; font-weight: normal; + + &:dir(rtl) { + text-align: right; + } } th { @@ -1705,7 +1784,7 @@ table { position: absolute; } -.ProseMirror-gapcursor:after { +.ProseMirror-gapcursor::after { content: ""; display: block; position: absolute; @@ -1753,16 +1832,16 @@ del[data-operation-index] { } @media print { - .placeholder:before, + .placeholder::before, .block-menu-trigger, .heading-actions, button.show-source-button, - h1:not(.placeholder):before, - h2:not(.placeholder):before, - h3:not(.placeholder):before, - h4:not(.placeholder):before, - h5:not(.placeholder):before, - h6:not(.placeholder):before { + h1:not(.placeholder)::before, + h2:not(.placeholder)::before, + h3:not(.placeholder)::before, + h4:not(.placeholder)::before, + h5:not(.placeholder)::before, + h6:not(.placeholder)::before { display: none; } diff --git a/shared/editor/nodes/Heading.ts b/shared/editor/nodes/Heading.ts index 40843c8beb..04d6ed57de 100644 --- a/shared/editor/nodes/Heading.ts +++ b/shared/editor/nodes/Heading.ts @@ -77,6 +77,9 @@ export default class Heading extends Node { return [ `h${node.attrs.level + (this.options.offset || 0)}`, + { + dir: "auto", + }, [ "span", { From 1cea59abe21fe4a8acc2e7f52df14680794aafd6 Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Fri, 11 Oct 2024 03:22:12 +0200 Subject: [PATCH 24/52] New Crowdin updates (#7730) --- shared/i18n/locales/cs_CZ/translation.json | 20 ++++++++---- shared/i18n/locales/da_DK/translation.json | 20 ++++++++---- shared/i18n/locales/de_DE/translation.json | 20 ++++++++---- shared/i18n/locales/es_ES/translation.json | 20 ++++++++---- shared/i18n/locales/fa_IR/translation.json | 20 ++++++++---- shared/i18n/locales/fr_FR/translation.json | 20 ++++++++---- shared/i18n/locales/he_IL/translation.json | 20 ++++++++---- shared/i18n/locales/hu_HU/translation.json | 20 ++++++++---- shared/i18n/locales/id_ID/translation.json | 20 ++++++++---- shared/i18n/locales/it_IT/translation.json | 20 ++++++++---- shared/i18n/locales/ja_JP/translation.json | 20 ++++++++---- shared/i18n/locales/ko_KR/translation.json | 20 ++++++++---- shared/i18n/locales/nb_NO/translation.json | 20 ++++++++---- shared/i18n/locales/nl_NL/translation.json | 20 ++++++++---- shared/i18n/locales/pl_PL/translation.json | 20 ++++++++---- shared/i18n/locales/pt_BR/translation.json | 20 ++++++++---- shared/i18n/locales/pt_PT/translation.json | 20 ++++++++---- shared/i18n/locales/sv_SE/translation.json | 20 ++++++++---- shared/i18n/locales/th_TH/translation.json | 20 ++++++++---- shared/i18n/locales/tr_TR/translation.json | 20 ++++++++---- shared/i18n/locales/uk_UA/translation.json | 20 ++++++++---- shared/i18n/locales/vi_VN/translation.json | 20 ++++++++---- shared/i18n/locales/zh_CN/translation.json | 38 +++++++++++++--------- shared/i18n/locales/zh_TW/translation.json | 20 ++++++++---- 24 files changed, 321 insertions(+), 177 deletions(-) diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 8d1534a250..57342bc3d0 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Hledat ve sbírce", "Star": "Přidat mezi oblíbené", "Unstar": "Odstranit z oblíbených", + "Archive": "Archiv", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Probíhá archivace", + "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.", + "Restore": "Obnovit", + "Collection restored": "Collection restored", "Delete": "Odstranit", "Delete collection": "Odstranit sbírku", "New template": "Nová šablona", @@ -47,8 +54,9 @@ "Download document": "Stáhnout dokument", "Copy as Markdown": "Kopírovat jako Markdown", "Markdown copied to clipboard": "Markdown zkopírován do schránky", - "Copy link": "Kopírovat odkaz", + "Copy public link": "Zkopírovat veřejný odkaz", "Link copied to clipboard": "Odkaz zkopírován do schránky", + "Copy link": "Kopírovat odkaz", "Copy": "Kopírovat", "Duplicate": "Duplikovat", "Duplicate document": "Duplikovat dokument", @@ -71,10 +79,8 @@ "Move": "Přesunout", "Move to collection": "Přesunout do sbírky", "Move {{ documentType }}": "Přesunout {{ documentType }}", - "Archive": "Archiv", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokument archivován", - "Archiving": "Probíhá archivace", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Odstranit {{ documentName }}", "Permanently delete": "Trvale odstranit", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Jsou povolena pouze malá písmena, číslice a pomlčky", "Sorry, this link has already been used": "Je nám líto, tento odkaz již byl použit", "Public link copied to clipboard": "Veřejný odkaz zkopírován do schránky", - "Copy public link": "Zkopírovat veřejný odkaz", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Kdokoli s odkazem má přístup, protože dokument dědí oprávnění po nadřazeném dokumentu <2>{{documentTitle}}", "Allow anyone with the link to access": "Povolit přístup komukoliv s odkazem", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Nový dokument", "You can't reorder documents in an alphabetically sorted collection": "Nemůžete změnit pořadí dokumentů v abecedně seřazené sbírce", @@ -389,7 +395,7 @@ "Replacement": "Náhrada", "Replace": "Nahradit", "Replace all": "Nahradit vše", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profilový obrázek", "Add column after": "Přidat sloupec za", "Add column before": "Přidat sloupec před", @@ -453,6 +459,7 @@ "Sort ascending": "Seřadit vzestupně", "Sort descending": "Seřadit sestupně", "Table": "Tabulka", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Matematický vzorec (LaTeX)", "Math block (LaTeX)": "Matematický vzorec (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Možnosti dokumentů", - "Restore": "Obnovit", "Choose a collection": "Vybrat sbírku", "Enable embeds": "Povolit embed vkládání", "Export options": "Možnosti exportu", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} uživatelů s přístupem", "{{ groupsCount }} groups with access": "{{ groupsCount }} skupina s přístupem", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} skupin s přístupem", + "Archived by {{userName}}": "Archivoval {{userName}}", "Share": "Sdílet", "Recently updated": "Nedávno aktualizováno", "Recently published": "Nedávno zveřejněné", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Tento dokument bude trvale odstraněn v <2> dokud nebude obnoven.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Zvýrazněte nějaký text a použijte <1> ovládací prvek pro přidání zástupných symbolů, které lze vyplnit při vytváření nových dokumentů", "You’re editing a template": "Upravujete šablonu", - "Archived by {{userName}}": "Archivoval {{userName}}", "Deleted by {{userName}}": "Odstranil {{userName}}", "Observing {{ userName }}": "Pozorovatel {{ userName }}", "Backlinks": "Zpětné odkazy", diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 6622d1446e..8958877424 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Søg i samling", "Star": "Favorit", "Unstar": "Fjern favorit", + "Archive": "Arkiv", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiving", + "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.", + "Restore": "Restore", + "Collection restored": "Collection restored", "Delete": "Slet", "Delete collection": "Slet samling", "New template": "Ny skabelon", @@ -47,8 +54,9 @@ "Download document": "Hent dokument", "Copy as Markdown": "Kopiér som Markdown", "Markdown copied to clipboard": "Markdown kopieret til udklipsholder", - "Copy link": "Kopiér link", + "Copy public link": "Copy public link", "Link copied to clipboard": "Link kopieret til udklipsholder", + "Copy link": "Kopiér link", "Copy": "Kopiér", "Duplicate": "Dupliker", "Duplicate document": "Dupliker dokument", @@ -71,10 +79,8 @@ "Move": "Flyt", "Move to collection": "Move to collection", "Move {{ documentType }}": "Flyt {{ documentType }}", - "Archive": "Arkiv", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokument arkiveret", - "Archiving": "Archiving", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Slet {{ documentName }}", "Permanently delete": "Slet helt", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", "Sorry, this link has already been used": "Sorry, this link has already been used", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Nyt dokument", "You can't reorder documents in an alphabetically sorted collection": "Du kan ikke omarrangere dokumenter i en alfabetisk sorteret samling", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profile picture", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Table", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Math inline (LaTeX)", "Math block (LaTeX)": "Math block (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Document options", - "Restore": "Restore", "Choose a collection": "Choose a collection", "Enable embeds": "Enable embeds", "Export options": "Export options", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} users with access", "{{ groupsCount }} groups with access": "{{ groupsCount }} group with access", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", + "Archived by {{userName}}": "Archived by {{userName}}", "Share": "Del", "Recently updated": "Recently updated", "Recently published": "Recently published", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents", "You’re editing a template": "You’re editing a template", - "Archived by {{userName}}": "Archived by {{userName}}", "Deleted by {{userName}}": "Deleted by {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", "Backlinks": "Backlinks", diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index f2e7d6f055..ca5ee838a5 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Suche in Sammlung", "Star": "Favorisieren", "Unstar": "Aus den Favoriten entfernen", + "Archive": "Archiv", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "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.", + "Restore": "Wiederherstellen", + "Collection restored": "Collection restored", "Delete": "Löschen", "Delete collection": "Sammlung löschen", "New template": "Neue Vorlage", @@ -47,8 +54,9 @@ "Download document": "Dokument herunterladen", "Copy as Markdown": "Als Markdown kopieren", "Markdown copied to clipboard": "Markdown in Zwischenablage kopiert", - "Copy link": "Link kopieren", + "Copy public link": "Öffentlichen Link kopieren", "Link copied to clipboard": "Link in die Zwischenablage kopiert", + "Copy link": "Link kopieren", "Copy": "Kopieren", "Duplicate": "Duplizieren", "Duplicate document": "Dokument duplizieren", @@ -71,10 +79,8 @@ "Move": "Verschieben", "Move to collection": "Move to collection", "Move {{ documentType }}": "Verschiebe {{ documentType }}", - "Archive": "Archiv", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokument archiviert", - "Archiving": "Archiviere", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "{{ documentName }} löschen", "Permanently delete": "Unwiderruflich löschen", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Nur Kleinbuchstaben, Ziffern und Bindestriche zulässig", "Sorry, this link has already been used": "Entschuldige, dieser Link wurde bereits verwendet", "Public link copied to clipboard": "Öffentlicher Link in Zwischenablage kopiert", - "Copy public link": "Öffentlichen Link kopieren", "Web": "Web", "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", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Neues Dokument", "You can't reorder documents in an alphabetically sorted collection": "Du kannst Dokumente in einer alphabetisch sortierten Sammlung nicht neu anordnen", @@ -389,7 +395,7 @@ "Replacement": "Ersetzung", "Replace": "Ersetzen", "Replace all": "Alle ersetzen", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profilbild", "Add column after": "Spalte dahinter hinzufügen", "Add column before": "Spalte davor hinzufügen", @@ -453,6 +459,7 @@ "Sort ascending": "Aufsteigend sortieren", "Sort descending": "Absteigend sortieren", "Table": "Tabelle", + "Export as CSV": "Export as CSV", "Toggle header": "Kopfzeile umschalten", "Math inline (LaTeX)": "Mathe-Inline (LaTeX)", "Math block (LaTeX)": "Mathe-Block (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} wiederhergestellt", "Document options": "Dokument-Einstellungen", - "Restore": "Wiederherstellen", "Choose a collection": "Sammlung auswählen", "Enable embeds": "Einbettungen aktivieren", "Export options": "Exportoptionen", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} Benutzer mit Zugriff", "{{ groupsCount }} groups with access": "{{ groupsCount }} Gruppe mit Zugriff", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} Gruppen mit Zugriff", + "Archived by {{userName}}": "Archiviert durch {{userName}}", "Share": "Teilen", "Recently updated": "Vor Kurzem aktualisiert", "Recently published": "Vor Kurzem veröffentlicht", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Dieses Dokument wird dauerhaft in <2> gelöscht, wenn es nicht wiederhergestellt wird.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Markiere eine Textstelle und nutze das <1>-Werkzeug, um Platzhalter hinzuzufügen, die beim Erstellen neuer Dokumente ausgefüllt werden können", "You’re editing a template": "Du bearbeitest eine Vorlage", - "Archived by {{userName}}": "Archiviert durch {{userName}}", "Deleted by {{userName}}": "Gelöscht von {{userName}}", "Observing {{ userName }}": "Beobachte {{ userName }}", "Backlinks": "Backlinks", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index 8841f393e5..795fa5fc21 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Buscar en colección", "Star": "Marcar como favorito", "Unstar": "Eliminar de favoritos", + "Archive": "Archivar", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archivando", + "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.", + "Restore": "Restaurar", + "Collection restored": "Collection restored", "Delete": "Eliminar", "Delete collection": "Eliminar colección", "New template": "Nueva plantilla", @@ -47,8 +54,9 @@ "Download document": "Descargar documento", "Copy as Markdown": "Copiar como Markdown", "Markdown copied to clipboard": "Markdown copiado al portapapeles", - "Copy link": "Copiar enlace", + "Copy public link": "Copiar enlace público", "Link copied to clipboard": "Enlace copiado al portapapeles", + "Copy link": "Copiar enlace", "Copy": "Copiar", "Duplicate": "Duplicar", "Duplicate document": "Duplicar documento", @@ -71,10 +79,8 @@ "Move": "Mover", "Move to collection": "Mover a la colección", "Move {{ documentType }}": "Mover {{ documentType }}", - "Archive": "Archivar", "Are you sure you want to archive this document?": "¿Estás seguro de que quieres archivar este documento?", "Document archived": "Documento archivado", - "Archiving": "Archivando", "Archiving this document will remove it from the collection and search results.": "Archivar este documento lo eliminará de la colección y los resultados de búsqueda.", "Delete {{ documentName }}": "Eliminar {{ documentName }}", "Permanently delete": "Eliminar permanentemente", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Solo se permiten letras minúsculas, dígitos y guiones", "Sorry, this link has already been used": "Lo sentimos, este enlace ya ha sido utilizado", "Public link copied to clipboard": "Enlace público copiado al portapapeles", - "Copy public link": "Copiar enlace público", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Cualquiera con el enlace puede acceder porque el documento padre, <2>{{documentTitle}}, es compartido", "Allow anyone with the link to access": "Permitir acceso a cualquiera con el enlace", @@ -342,6 +347,7 @@ "{{ count }} groups added to the document": "{{ count }} grupo invitado al documento", "{{ count }} groups added to the document_plural": "{{ count }} grupos invitados al documento", "Logo": "Logo", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "Nuevo doc", "You can't reorder documents in an alphabetically sorted collection": "No puedes reordenar documentos en una colección ordenada alfabéticamente", @@ -389,7 +395,7 @@ "Replacement": "Reemplazo", "Replace": "Reemplazar", "Replace all": "Reemplazar todas", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} no será notificado ya que no tienen acceso a este documento", + "{{ 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", "Profile picture": "Foto de perfil", "Add column after": "Agregar columna después", "Add column before": "Agregar columna antes", @@ -453,6 +459,7 @@ "Sort ascending": "Orden ascendente", "Sort descending": "Orden descendiente", "Table": "Tabla", + "Export as CSV": "Export as CSV", "Toggle header": "Conmutar cabecera", "Math inline (LaTeX)": "Fórmula matemática en línea (LaTeX)", "Math block (LaTeX)": "Bloque de matemáticas (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Mostrar menú de documento", "{{ documentName }} restored": "{{ documentName }} restaurado", "Document options": "Opciones del documento", - "Restore": "Restaurar", "Choose a collection": "Elige una colección", "Enable embeds": "Habilitar embeds", "Export options": "Opciones de exportación", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} usuarios con acceso", "{{ groupsCount }} groups with access": "{{ groupsCount }} grupo con acceso", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupos con acceso", + "Archived by {{userName}}": "Archivado por {{userName}}", "Share": "Compartir", "Recently updated": "Actualizado recientemente", "Recently published": "Publicado recientemente", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Este documento se eliminará permanentemente en <2> a menos de que se restaure.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Resalta algo de texto y usa el control <1> para añadir campos que se pueden llenar al crear nuevos documentos", "You’re editing a template": "Estás editando una plantilla", - "Archived by {{userName}}": "Archivado por {{userName}}", "Deleted by {{userName}}": "Eliminado por {{userName}}", "Observing {{ userName }}": "Observando {{ userName }}", "Backlinks": "Enlaces de retroceso", diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index 204244c641..c7447f316b 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -11,6 +11,13 @@ "Search in collection": "جستجو در مجموعه", "Star": "ستاره‌گذاری", "Unstar": "برداشتن ستاره", + "Archive": "آرشیو", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "در حال بایگانی", + "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.", + "Restore": "بازیابی", + "Collection restored": "Collection restored", "Delete": "حذف", "Delete collection": "حذف مجموعه", "New template": "قالب جدید", @@ -47,8 +54,9 @@ "Download document": "دریافت سند", "Copy as Markdown": "کپی markdown", "Markdown copied to clipboard": "markdown کپی شد", - "Copy link": "کپی پیوند", + "Copy public link": "Copy public link", "Link copied to clipboard": "پیوند در بریده‌دان کپی شد", + "Copy link": "کپی پیوند", "Copy": "کپی", "Duplicate": "کپی کردن", "Duplicate document": "سند تکرار گردد", @@ -71,10 +79,8 @@ "Move": "انتقال", "Move to collection": "Move to collection", "Move {{ documentType }}": "انتقال {{ documentType }}", - "Archive": "آرشیو", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "سند آرشیو شد", - "Archiving": "در حال بایگانی", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "حذف {{ documentName }}", "Permanently delete": "حذف برای همیشه", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", "Sorry, this link has already been used": "Sorry, this link has already been used", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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": "لوگو", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "سند جدید", "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "تصویر پروفایل", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "جدول", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Math inline (LaTeX)", "Math block (LaTeX)": "Math block (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "گزینه‌های سند", - "Restore": "بازیابی", "Choose a collection": "انتخاب یک مجموعه", "Enable embeds": "فعال‌سازی جاسازی‌ها", "Export options": "گزینه های صدور", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} users with access", "{{ groupsCount }} groups with access": "{{ groupsCount }} group with access", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", + "Archived by {{userName}}": "بایگانی شده توسط {{userName}}", "Share": "اشتراک‌گذاری", "Recently updated": "آخرین به‌روزرسانی", "Recently published": "آخرین انتشار", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "این سند برای همیشه در <2> حذف خواهد شد، مگر اینکه بازیابی شود.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents", "You’re editing a template": "You’re editing a template", - "Archived by {{userName}}": "بایگانی شده توسط {{userName}}", "Deleted by {{userName}}": "حذف شده توسط {{userName}}", "Observing {{ userName }}": "مشاهده {{ userName }}", "Backlinks": "Backlinks", diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index 4ec0c43123..9290f621fb 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Rechercher dans la collection", "Star": "Ajouter aux favoris", "Unstar": "Retirer des favoris", + "Archive": "Archives", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archivage en cours", + "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.", + "Restore": "Restaurer", + "Collection restored": "Collection restored", "Delete": "Supprimer", "Delete collection": "Supprimer la collection", "New template": "Nouveau modèle", @@ -47,8 +54,9 @@ "Download document": "Télécharger le document", "Copy as Markdown": "Copier en tant que Markdown", "Markdown copied to clipboard": "Markdown copié dans le presse-papier", - "Copy link": "Copier le lien", + "Copy public link": "Copier le lien public", "Link copied to clipboard": "Lien copié dans le presse-papiers", + "Copy link": "Copier le lien", "Copy": "Copier", "Duplicate": "Dupliquer", "Duplicate document": "Dupliquer le document", @@ -71,10 +79,8 @@ "Move": "Déplacer", "Move to collection": "Déplacer vers la collection", "Move {{ documentType }}": "Déplacer {{ documentType }}", - "Archive": "Archives", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Document archivé", - "Archiving": "Archivage en cours", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Supprimer {{ documentName }}", "Permanently delete": "Supprimer définitivement", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Seuls les lettres minuscules, les chiffres et le tiret sont autorisés", "Sorry, this link has already been used": "Désolé, ce lien a déjà été utilisé", "Public link copied to clipboard": "Lien public copié dans le presse-papier", - "Copy public link": "Copier le lien public", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "N'importe qui avec le lien peut accéder car le document parent, <2>{{documentTitle}}, est partagé", "Allow anyone with the link to access": "Permettre à toute personne ayant le lien d'accéder", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Nouveau doc", "You can't reorder documents in an alphabetically sorted collection": "Vous ne pouvez pas réorganiser les documents dans une collection triée par ordre alphabétique", @@ -389,7 +395,7 @@ "Replacement": "Remplacement", "Replace": "Remplacer", "Replace all": "Tout remplacer", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Photo de profil", "Add column after": "Ajouter une colonne après", "Add column before": "Ajouter une colonne avant", @@ -453,6 +459,7 @@ "Sort ascending": "Tri croissant", "Sort descending": "Tri décroissant", "Table": "Tableau", + "Export as CSV": "Export as CSV", "Toggle header": "Activer/Désactiver l'en-tête", "Math inline (LaTeX)": "Mathématiques en ligne (LaTeX)", "Math block (LaTeX)": "Bloc mathématique (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restauré", "Document options": "Options de document", - "Restore": "Restaurer", "Choose a collection": "Choisir une collection", "Enable embeds": "Activer les intégrations", "Export options": "Options d'exportation", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} utilisateurs avec accès", "{{ groupsCount }} groups with access": "{{ groupsCount }} groupe a accès", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groupes ont accès", + "Archived by {{userName}}": "Archivé par {{userName}}", "Share": "Partager", "Recently updated": "Récemment mis à jour", "Recently published": "Récemment publiés", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Ce document sera définitivement supprimé dans <2> sauf s'il est restauré.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Sélectionnez du texte et utilisez le contrôle <1> pour ajouter des espaces réservés qui peuvent être remplis lors de la création de nouveaux documents", "You’re editing a template": "Vous modifiez un modèle", - "Archived by {{userName}}": "Archivé par {{userName}}", "Deleted by {{userName}}": "Supprimé par {{userName}}", "Observing {{ userName }}": "Observation de {{ userName }}", "Backlinks": "Rétroliens", diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index de69b295c6..307e539986 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -11,6 +11,13 @@ "Search in collection": "חיפוש בתוך האוסף", "Star": "סמן בכוכב", "Unstar": "הסר סימון בכוכב", + "Archive": "ארכיון", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiving", + "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.", + "Restore": "Restore", + "Collection restored": "Collection restored", "Delete": "מחיקה", "Delete collection": "מחק אוסף", "New template": "תבנית חדשה", @@ -47,8 +54,9 @@ "Download document": "הורדת מסמך", "Copy as Markdown": "העתק בפורמט Markdown", "Markdown copied to clipboard": "Markdown הועתק ללוח העריכה", - "Copy link": "העתק קישור", + "Copy public link": "Copy public link", "Link copied to clipboard": "קישור הועתק ללוח העריכה", + "Copy link": "העתק קישור", "Copy": "העתק", "Duplicate": "שכפול", "Duplicate document": "שכפול מסמך", @@ -71,10 +79,8 @@ "Move": "העברה", "Move to collection": "העבר לאוסף", "Move {{ documentType }}": "העבר {{ documentType }}", - "Archive": "ארכיון", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "המסמך הועבר לארכיון", - "Archiving": "Archiving", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "מחק {{ documentName }}", "Permanently delete": "מחק לצמיתות", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", "Sorry, this link has already been used": "Sorry, this link has already been used", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "New doc", "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profile picture", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Table", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Math inline (LaTeX)", "Math block (LaTeX)": "Math block (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Document options", - "Restore": "Restore", "Choose a collection": "Choose a collection", "Enable embeds": "Enable embeds", "Export options": "Export options", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} users with access", "{{ groupsCount }} groups with access": "{{ groupsCount }} group with access", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", + "Archived by {{userName}}": "Archived by {{userName}}", "Share": "שיתוף", "Recently updated": "Recently updated", "Recently published": "Recently published", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents", "You’re editing a template": "You’re editing a template", - "Archived by {{userName}}": "Archived by {{userName}}", "Deleted by {{userName}}": "Deleted by {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", "Backlinks": "Backlinks", diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index 27ebae51c6..a4fc5ea81c 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Keresés a gyűjteményben", "Star": "Csillagozás", "Unstar": "Csillagozás törlése", + "Archive": "Archiválás", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiving", + "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.", + "Restore": "Visszaállítás", + "Collection restored": "Collection restored", "Delete": "Törlés", "Delete collection": "Gyűjtemény törlése", "New template": "Új sablon", @@ -47,8 +54,9 @@ "Download document": "Dokumentum letöltése", "Copy as Markdown": "Másolás Markdown szövegként", "Markdown copied to clipboard": "Markdown vágólapra másolva", - "Copy link": "Hivatkozás másolása", + "Copy public link": "Copy public link", "Link copied to clipboard": "Hivatkozás vágólapra másolva", + "Copy link": "Hivatkozás másolása", "Copy": "Másolás", "Duplicate": "Duplikálás", "Duplicate document": "Dokumentum duplikálása", @@ -71,10 +79,8 @@ "Move": "Áthelyezés", "Move to collection": "Move to collection", "Move {{ documentType }}": "{{ documentType }} áthelyezése", - "Archive": "Archiválás", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokumentum archiválva", - "Archiving": "Archiving", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "{{ documentName }} törlése", "Permanently delete": "Végleges törlés", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Csak kisbetűk, számok és kötőjelek használhatók", "Sorry, this link has already been used": "Elnézést, ez a hivatkozás már használatban van", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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": "Logó", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "Új doku", "You can't reorder documents in an alphabetically sorted collection": "Nem tudja egy ABC szerint rendezett gyűjtemény elemeinek sorrendjét megváltoztatni", @@ -389,7 +395,7 @@ "Replacement": "Csere", "Replace": "Cserél", "Replace all": "Összeset cseréli", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profilkép", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Táblázat", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Matek képlet a sorban (LaTeX)", "Math block (LaTeX)": "Matek blokk (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Dokumentum beállítások", - "Restore": "Visszaállítás", "Choose a collection": "Válasszon egy gyűjteményt", "Enable embeds": "Beágyazások engedélyezése", "Export options": "Exportálási beállítások", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} felhasználó rendelkezik hozzáféréssel", "{{ groupsCount }} groups with access": "{{ groupsCount }} csoport rendelkezik hozzáféréssel", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} csoport rendelkezik hozzáféréssel", + "Archived by {{userName}}": "Archiválta: {{userName}}", "Share": "Megosztás", "Recently updated": "Nemrég módosítva", "Recently published": "Nemrég publikálva", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Ez a dokumentum véglegesen törölve lesz <2>, hacsak nem álítja vissza.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Jelöljön ki szöveget, és használja a <1> vezérlőt üres mezők hozzáadására, amiket majd ki lehet tölteni új dokumentum létrehozása során", "You’re editing a template": "Ön egy sablont szerkeszt", - "Archived by {{userName}}": "Archiválta: {{userName}}", "Deleted by {{userName}}": "Törölte: {{userName}}", "Observing {{ userName }}": "Vizsgálja: {{ userName }}", "Backlinks": "Vissza-hivatkozások", diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index fa8ec74d1b..c43d3391f2 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Cari di koleksi", "Star": "Bintangi", "Unstar": "Berhenti membintangi", + "Archive": "Arsipkan", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Mengarsipkan", + "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.", + "Restore": "Memulihkan", + "Collection restored": "Collection restored", "Delete": "Hapus", "Delete collection": "Hapus koleksi", "New template": "Templat baru", @@ -47,8 +54,9 @@ "Download document": "Unduh dokumen", "Copy as Markdown": "Copy as Markdown", "Markdown copied to clipboard": "Markdown copied to clipboard", - "Copy link": "Salin tautan", + "Copy public link": "Copy public link", "Link copied to clipboard": "Tautan disalin ke papan klip", + "Copy link": "Salin tautan", "Copy": "Salin", "Duplicate": "Duplikat", "Duplicate document": "Duplikat dokumen", @@ -71,10 +79,8 @@ "Move": "Pindahkan", "Move to collection": "Move to collection", "Move {{ documentType }}": "Pindahkan {{ documentType }}", - "Archive": "Arsipkan", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokumen diarsip", - "Archiving": "Mengarsipkan", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Hapus {{ documentName }}", "Permanently delete": "Hapus secara permanen", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Hanya huruf kecil, angka, dan tanda hubung diperbolehkan", "Sorry, this link has already been used": "Maaf, tautan ini telah digunakan", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Dokumen baru", "You can't reorder documents in an alphabetically sorted collection": "Anda tidak dapat menyusun ulang dokumen dalam koleksi yang diurutkan menurut abjad", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Gambar profil", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Tabel", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Matematika inline (LaTeX)", "Math block (LaTeX)": "Blok matematika (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Opsi dokumen", - "Restore": "Memulihkan", "Choose a collection": "Pilih koleksi", "Enable embeds": "Aktifkan penyematan", "Export options": "Opsi ekspor", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} pengguna dengan akses", "{{ groupsCount }} groups with access": "{{ groupsCount }} grup dengan akses", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grup dengan akses", + "Archived by {{userName}}": "Diarsipkan oleh {{userName}}", "Share": "Bagikan", "Recently updated": "Baru diperbarui", "Recently published": "Baru diterbitkan", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Dokumen ini akan dihapus secara permanen di <2> kecuali dipulihkan.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Sorot beberapa teks dan gunakan <1> kontrol untuk menambahkan placeholder yang dapat diisi saat membuat dokumen baru", "You’re editing a template": "Anda sedang mengedit template", - "Archived by {{userName}}": "Diarsipkan oleh {{userName}}", "Deleted by {{userName}}": "Dihapus oleh {{userName}}", "Observing {{ userName }}": "Mengamati {{ userName }}", "Backlinks": "Tautan balik", diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index 1b8bd8adca..f2ae8e18ac 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Cerca nella raccolta", "Star": "Preferito", "Unstar": "Rimuovi dai Preferiti", + "Archive": "Archivio", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiviazione in corso", + "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.", + "Restore": "Ripristina", + "Collection restored": "Collection restored", "Delete": "Cancella", "Delete collection": "Elimina raccolta", "New template": "Nuovo modello", @@ -47,8 +54,9 @@ "Download document": "Scarica documento", "Copy as Markdown": "Copy as Markdown", "Markdown copied to clipboard": "Markdown copied to clipboard", - "Copy link": "Copia link", + "Copy public link": "Copy public link", "Link copied to clipboard": "Link copiato negli appunti", + "Copy link": "Copia link", "Copy": "Copia", "Duplicate": "Duplica", "Duplicate document": "Duplica documento", @@ -71,10 +79,8 @@ "Move": "Sposta", "Move to collection": "Move to collection", "Move {{ documentType }}": "Sposta {{ documentType }}", - "Archive": "Archivio", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Documento archiviato", - "Archiving": "Archiviazione in corso", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Elimina {{ documentName }}", "Permanently delete": "Elimina permanentemente", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Sono consentite solo lettere minuscole, cifre e trattini", "Sorry, this link has already been used": "Spiacenti, questo link è già stato utilizzato", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Nuovo documento", "You can't reorder documents in an alphabetically sorted collection": "Non è possibile riordinare i documenti in una raccolta ordinata alfabeticamente", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Immagine del profilo", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Tabella", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Matematica espressione in linea (LaTeX)", "Math block (LaTeX)": "Matematica blocco codice (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Opzioni documento", - "Restore": "Ripristina", "Choose a collection": "Scegli una raccolta", "Enable embeds": "Abilita l'embedding", "Export options": "Opzioni di esportazione", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} utenti con accesso", "{{ groupsCount }} groups with access": "{{ groupsCount }} gruppo con accesso", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} gruppi con accesso", + "Archived by {{userName}}": "Archiviato da {{userName}}", "Share": "Condividi", "Recently updated": "Aggiornati di recente", "Recently published": "Pubblicati di recente", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Questo documento verrà eliminato definitivamente tra <2> salvo ripristino.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Evidenzia del testo e usa il comando <1> per aggiungere dei segnaposto che possono essere compilati nella creazione di nuovi documenti", "You’re editing a template": "Stai modificando un modello", - "Archived by {{userName}}": "Archiviato da {{userName}}", "Deleted by {{userName}}": "Eliminato da {{userName}}", "Observing {{ userName }}": "Osservazione di {{ userName }}", "Backlinks": "Backlink", diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index e049fdf1d5..e0b86377a8 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -11,6 +11,13 @@ "Search in collection": "コレクション内を検索", "Star": "お気に入りに追加", "Unstar": "お気に入りから削除", + "Archive": "アーカイブ", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "アーカイブ中", + "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.", + "Restore": "復元", + "Collection restored": "Collection restored", "Delete": "削除", "Delete collection": "コレクションを削除", "New template": "新規テンプレート", @@ -47,8 +54,9 @@ "Download document": "ドキュメントをダウンロード", "Copy as Markdown": "Markdown 形式でコピー", "Markdown copied to clipboard": "Markdown をクリップボードにコピーしました", - "Copy link": "リンクをコピー", + "Copy public link": "公開リンクをコピー", "Link copied to clipboard": "リンクをクリップボードにコピーしました", + "Copy link": "リンクをコピー", "Copy": "コピー", "Duplicate": "複製", "Duplicate document": "ドキュメントを複製", @@ -71,10 +79,8 @@ "Move": "移動", "Move to collection": "コレクションに移動", "Move {{ documentType }}": "{{ documentType }} を移動", - "Archive": "アーカイブ", "Are you sure you want to archive this document?": "このドキュメントをアーカイブしてもよろしいですか?", "Document archived": "ドキュメントをアーカイブしました", - "Archiving": "アーカイブ中", "Archiving this document will remove it from the collection and search results.": "このドキュメントをアーカイブすると、コレクションと検索結果から削除されます。", "Delete {{ documentName }}": "{{ documentName }} を削除します", "Permanently delete": "完全に削除します", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "小文字、数字、ダッシュのみ使用できます", "Sorry, this link has already been used": "このリンクは既に使用されています", "Public link copied to clipboard": "公開リンクをクリップボードにコピーしました", - "Copy public link": "公開リンクをコピー", "Web": "ウェブ", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "親ドキュメント <2>{{documentTitle}} が共有されているため、リンクを持っている人は誰でもアクセスできます", "Allow anyone with the link to access": "リンクを持っている誰もがアクセス可能", @@ -342,6 +347,7 @@ "{{ count }} groups added to the document": "{{ count }} グループをドキュメントに追加しました", "{{ count }} groups added to the document_plural": "{{ count }} グループをドキュメントに追加しました", "Logo": "ロゴ", + "Archived collections": "Archived collections", "Change permissions?": "権限を変更しますか?", "New doc": "ドキュメントを新規作成", "You can't reorder documents in an alphabetically sorted collection": "五十音順で並べられたコレクション内のドキュメントは、並べ替えができません。", @@ -389,7 +395,7 @@ "Replacement": "置換する", "Replace": "置換", "Replace all": "全て置換", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} は、このドキュメントへのアクセス権限がないため、通知されません", + "{{ 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", "Profile picture": "プロフィール画像", "Add column after": "後ろに列を挿入", "Add column before": "前に列を挿入", @@ -453,6 +459,7 @@ "Sort ascending": "昇順に並べ替え", "Sort descending": "降順にソート", "Table": "表", + "Export as CSV": "Export as CSV", "Toggle header": "ヘッダーの切り替え", "Math inline (LaTeX)": "インライン数式 (LaTeX)", "Math block (LaTeX)": "ブロック数式 (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "ドキュメントメニューを表示", "{{ documentName }} restored": "{{ documentName }} を復元", "Document options": "ドキュメントオプション", - "Restore": "復元", "Choose a collection": "コレクションを選ぶ", "Enable embeds": "埋め込みを有効にする", "Export options": "エクスポートオプション", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "アクセス権を持つ {{ usersCount }} 人のユーザー", "{{ groupsCount }} groups with access": "アクセス権を持つ {{ groupsCount }} 個のグループ", "{{ groupsCount }} groups with access_plural": "アクセス権を持つ {{ groupsCount }} 個のグループ", + "Archived by {{userName}}": "{{userName}} がアーカイブしました", "Share": "共有", "Recently updated": "更新日の新しい順", "Recently published": "最近公開されたもの", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "このドキュメントは復元されない限り、<2> 後に、永久に削除されます。", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "このテンプレートを使用して新しいドキュメントを作成する際に埋められる要素を追加するには、<1> キーを使用してください。", "You’re editing a template": "テンプレートを編集しています", - "Archived by {{userName}}": "{{userName}} がアーカイブしました", "Deleted by {{userName}}": "{{userName}} が削除しました", "Observing {{ userName }}": "{{ userName }} を観察中", "Backlinks": "ハイパーリンク", diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index ef19d44bba..904fd49bed 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -11,6 +11,13 @@ "Search in collection": "컬렉션 검색", "Star": "중요 문서 표시", "Unstar": "중요 문서 해제", + "Archive": "보관", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "보관", + "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.", + "Restore": "복원하기", + "Collection restored": "Collection restored", "Delete": "삭제", "Delete collection": "컬렉션 삭제", "New template": "새 템플릿", @@ -47,8 +54,9 @@ "Download document": "문서 다운로드", "Copy as Markdown": "마크다운으로 복사", "Markdown copied to clipboard": "마크다운이 클립보드에 복사됨", - "Copy link": "링크 복사", + "Copy public link": "공개 링크 복사", "Link copied to clipboard": "링크가 클립보드로 복사 되었습니다", + "Copy link": "링크 복사", "Copy": "복사", "Duplicate": "복사하기", "Duplicate document": "문서 복제", @@ -71,10 +79,8 @@ "Move": "이동", "Move to collection": "컬렉션으로 이동", "Move {{ documentType }}": "{{ documentType }} 문서 이동", - "Archive": "보관", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "문서가 보관되었습니다", - "Archiving": "보관", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "{{ documentName }} 삭제", "Permanently delete": "영구 삭제", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "소문자, 숫자, 대시만 허용됩니다.", "Sorry, this link has already been used": "죄송하지만, 이 링크는 이미 사용중입니다.", "Public link copied to clipboard": "공개 링크를 클립보드에 복사했습니다", - "Copy public link": "공개 링크 복사", "Web": "웹", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "상위 문서인 <2>{{documentTitle}} 이(가) 공유되어 있으므로 링크를 가진 사람은 누구나 접근 가능", "Allow anyone with the link to access": "링크가 있는 모든 사람에 대해 접근 허용", @@ -342,6 +347,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": "로고", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "새 문서", "You can't reorder documents in an alphabetically sorted collection": "알파벳순으로 정렬된 컬렉션에서는 문서를 재정렬할 수 없습니다.", @@ -389,7 +395,7 @@ "Replacement": "대체", "Replace": "바꾸기", "Replace all": "모두 바꾸기", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "프로필 사진", "Add column after": "뒤에 열 추가", "Add column before": "앞에 열 추가", @@ -453,6 +459,7 @@ "Sort ascending": "오름차순 정렬", "Sort descending": "내림차순 정렬", "Table": "표", + "Export as CSV": "Export as CSV", "Toggle header": "토글 제목", "Math inline (LaTeX)": "인라인 수식 (LaTeX)", "Math block (LaTeX)": "수식 블록 (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} 복원됨", "Document options": "문서 옵션", - "Restore": "복원하기", "Choose a collection": "컬렉션 선택", "Enable embeds": "임베드 활성화", "Export options": "내보내기 옵션", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "액세스 권한이 있는 사용자 {{ usersCount }} 명", "{{ groupsCount }} groups with access": "액세스 권한이 있는 그룹 {{ groupsCount }} 개", "{{ groupsCount }} groups with access_plural": "액세스 권한이 있는 그룹 {{ groupsCount }} 개", + "Archived by {{userName}}": "{{userName}} 에 의해 보관됨", "Share": "공유하기", "Recently updated": "최근 업데이트 순", "Recently published": "최근 게시 순", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "이 문서는 복원하지 않으면 <2> 에서 영구적으로 삭제됩니다.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "일부 텍스트를 강조 표시하고 <1> 컨트롤을 사용하여 새 문서를 만들 때 채울 수 있는 자리 표시자를 추가합니다.", "You’re editing a template": "템플릿을 수정 중입니다.", - "Archived by {{userName}}": "{{userName}} 에 의해 보관됨", "Deleted by {{userName}}": "{{userName}} 에 의해 삭제됨", "Observing {{ userName }}": "{{ userName }} 관찰중", "Backlinks": "백링크", diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index 48201f8b45..5fb9fb9752 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Søk i samling", "Star": "Stjerne", "Unstar": "Fjern stjerne", + "Archive": "Arkiv", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Arkivering", + "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.", + "Restore": "Gjenopprett", + "Collection restored": "Collection restored", "Delete": "Slett", "Delete collection": "Slett samling", "New template": "Ny mal", @@ -47,8 +54,9 @@ "Download document": "Last ned dokument", "Copy as Markdown": "Kopier som Markdown", "Markdown copied to clipboard": "Markdown kopiert til utklippstavlen", - "Copy link": "Kopier lenke", + "Copy public link": "Kopier offentlig lenke", "Link copied to clipboard": "Lenke kopiert til utklippstavlen", + "Copy link": "Kopier lenke", "Copy": "Kopier", "Duplicate": "Dupliser", "Duplicate document": "Dupliser dokument", @@ -71,10 +79,8 @@ "Move": "Flytt", "Move to collection": "Flytt til samling", "Move {{ documentType }}": "Flytt {{ documentType }}", - "Archive": "Arkiv", "Are you sure you want to archive this document?": "Er du sikker på at du vil arkivere dette dokumentet?", "Document archived": "Dokument arkivert", - "Archiving": "Arkivering", "Archiving this document will remove it from the collection and search results.": "Ved å arkivere dette dokumentet vil det fjernes fra samlingen og søkeresultater.", "Delete {{ documentName }}": "Slett {{ documentName }}", "Permanently delete": "Slett permanent", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Kun små bokstaver, sifre og bindestreker tillatt", "Sorry, this link has already been used": "Beklager, denne lenken har allerede blitt brukt", "Public link copied to clipboard": "Offentlig lenke kopiert til utklippstavlen", - "Copy public link": "Kopier offentlig lenke", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Alle med koblingen har tilgang fordi det overordnede dokumentet, <2>{{documentTitle}}, deles", "Allow anyone with the link to access": "Tillat alle med lenken å få tilgang til", @@ -342,6 +347,7 @@ "{{ count }} groups added to the document": "{{ count }} grupper er lagt til i dokumentet", "{{ count }} groups added to the document_plural": "{{ count }} grupper er lagt til i dokumentene", "Logo": "Logo", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "Nytt dokument", "You can't reorder documents in an alphabetically sorted collection": "Du kan ikke omorganisere dokumenter i en alfabetisk sortert samling", @@ -389,7 +395,7 @@ "Replacement": "Erstatning", "Replace": "Erstatt", "Replace all": "Erstatt alle", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} vil ikke bli varslet siden de ikke har tilgang til dette dokumentet", + "{{ 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", "Profile picture": "Profilbilde", "Add column after": "Legg til kolonne etter", "Add column before": "Sett inn kolonne før", @@ -453,6 +459,7 @@ "Sort ascending": "Sorter stigende", "Sort descending": "Sorter synkende", "Table": "Tabell", + "Export as CSV": "Export as CSV", "Toggle header": "Vis/skjul topp", "Math inline (LaTeX)": "Matematikk i linje (LaTeX)", "Math block (LaTeX)": "Matematikkblokk (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Vis dokumentmeny", "{{ documentName }} restored": "{{ documentName }} gjenopprettet", "Document options": "Dokumentalternativer", - "Restore": "Gjenopprett", "Choose a collection": "Velg en samling", "Enable embeds": "Aktiver innebygginger", "Export options": "Eksportalternativer", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} brukere med tilgang", "{{ groupsCount }} groups with access": "{{ groupsCount }} grupper med tilgang", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupper med tilgang", + "Archived by {{userName}}": "Arkivert av {{userName}}", "Share": "Del", "Recently updated": "Nylig oppdatert", "Recently published": "Nylig publisert", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Dette dokumentet vil bli slettet permanent innen <2> med mindre det gjenopprettes.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Marker noe tekst og bruk <1>-kontrollen for å legge til plassholdere som kan fylles ut ved opprettelse av nye dokumenter", "You’re editing a template": "Du redigerer en mal", - "Archived by {{userName}}": "Arkivert av {{userName}}", "Deleted by {{userName}}": "Slettet av {{userName}}", "Observing {{ userName }}": "Observerer {{ userName }}", "Backlinks": "Tilbakekoblinger", diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index c9f1dc375f..5070845d13 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Zoek in collecties", "Star": "Maak favoriet", "Unstar": "Verwijder favoriet", + "Archive": "Archiveren", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Achiveren", + "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.", + "Restore": "Herstel", + "Collection restored": "Collection restored", "Delete": "Verwijder", "Delete collection": "Verwijder collectie", "New template": "Nieuw sjabloon", @@ -47,8 +54,9 @@ "Download document": "Download document", "Copy as Markdown": "Kopieer als Markdown", "Markdown copied to clipboard": "Markdown gekopieerd naar klembord", - "Copy link": "Kopieer link", + "Copy public link": "Kopieer openbare link", "Link copied to clipboard": "Link gekopieerd naar klembord", + "Copy link": "Kopieer link", "Copy": "Kopieer", "Duplicate": "Dupliceer", "Duplicate document": "Document dupliceren", @@ -71,10 +79,8 @@ "Move": "Verplaatsen", "Move to collection": "Verplaats naar collectie", "Move {{ documentType }}": "Verplaats {{ documentType }}", - "Archive": "Archiveren", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Document gearchiveerd", - "Archiving": "Achiveren", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Verwijder {{ documentName }}", "Permanently delete": "Definitief verwijderen", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Alleen kleine letters, cijfers en streepjes zijn toegestaan", "Sorry, this link has already been used": "Sorry, deze link is al in gebruik", "Public link copied to clipboard": "Openbare link gekopieerd naar klembord", - "Copy public link": "Kopieer openbare link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Iedereen met de link heeft toegang, omdat het bovenliggend document <2>{{documentTitle}} wordt gedeeld", "Allow anyone with the link to access": "Geef iedereen met de link toegang", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Nieuw document", "You can't reorder documents in an alphabetically sorted collection": "U kunt documenten in een alfabetisch gesorteerde verzameling niet opnieuw ordenen", @@ -389,7 +395,7 @@ "Replacement": "Vervanging", "Replace": "Vervang", "Replace all": "Vervang alle", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profielfoto", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Tabel", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Wiskunde inlijn (LaTeX)", "Math block (LaTeX)": "Wiskundeblok (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Documentopties", - "Restore": "Herstel", "Choose a collection": "Kies een collectie", "Enable embeds": "Embeds inschakelen", "Export options": "Exporteer instellingen", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} gebruikers hebben toegang", "{{ groupsCount }} groups with access": "{{ groupsCount }} groepen hebben toegang", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groepen hebben toegang", + "Archived by {{userName}}": "Gearchiveerd door {{userName}}", "Share": "Deel", "Recently updated": "Onlangs bijgewerkt", "Recently published": "Onlangs gepubliceerd", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Dit document wordt definitief verwijderd over <2> als dit niet wordt hersteld.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Markeer wat tekst en gebruik het <1> hulpmiddel om tijdelijke aanduidingen toe te voegen die kunnen worden ingevuld bij het maken van nieuwe documenten", "You’re editing a template": "Je bent een sjabloon aan het bewerken", - "Archived by {{userName}}": "Gearchiveerd door {{userName}}", "Deleted by {{userName}}": "Verwijderd door {{userName}}", "Observing {{ userName }}": "Observeer {{ userName }}", "Backlinks": "Backlinks", diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index 4ce6b6a2c1..2bc6367dfc 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Wyszukaj w kolekcji", "Star": "Oznacz gwiazdką", "Unstar": "Usuń gwiazdkę", + "Archive": "Archiwum", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiwizowanie", + "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.", + "Restore": "Przywróć", + "Collection restored": "Collection restored", "Delete": "Usuń", "Delete collection": "Usuń kolekcję", "New template": "Nowy szablon", @@ -47,8 +54,9 @@ "Download document": "Pobierz dokument", "Copy as Markdown": "Kopiuj jako Markdown", "Markdown copied to clipboard": "Markdown skopiowany do schowka", - "Copy link": "Kopiuj link", + "Copy public link": "Kopiuj publiczny link", "Link copied to clipboard": "Link został skopiowany do schowka", + "Copy link": "Kopiuj link", "Copy": "Kopiuj", "Duplicate": "Zduplikuj", "Duplicate document": "Duplikuj dokument", @@ -71,10 +79,8 @@ "Move": "Przenieś", "Move to collection": "Przenieś do kolekcji", "Move {{ documentType }}": "Przenieś {{ documentType }}", - "Archive": "Archiwum", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokument zarchiwizowany", - "Archiving": "Archiwizowanie", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Usuń {{ documentName }}", "Permanently delete": "Trwałe usunięcie", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Dozwolone są tylko małe litery, cyfry i myślniki", "Sorry, this link has already been used": "Przepraszamy, ten link został już użyty", "Public link copied to clipboard": "Publiczny link skopiowany do schowka", - "Copy public link": "Kopiuj publiczny link", "Web": "Sieć", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Każdy, kto posiada link, może uzyskać dostęp, ponieważ nadrzędny dokument, <2>{{documentTitle}}, jest udostępniony", "Allow anyone with the link to access": "Zezwól każdemu z linkiem na dostęp", @@ -342,6 +347,7 @@ "{{ count }} groups added to the document": "{{ count }} grupa dodana do dokumentu", "{{ count }} groups added to the document_plural": "{{ count }} grup dodanych do dokumentu", "Logo": "Logo", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "Nowy dok", "You can't reorder documents in an alphabetically sorted collection": "Nie możesz zmieniać kolejności dokumentów w kolekcji posortowanej alfabetycznie", @@ -389,7 +395,7 @@ "Replacement": "Zastąpienie", "Replace": "Zamień", "Replace all": "Zamień wszystko", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Zdjęcie profilowe", "Add column after": "Dodaj kolumnę po", "Add column before": "Dodaj kolumnę przed", @@ -453,6 +459,7 @@ "Sort ascending": "Sortuj rosnąco", "Sort descending": "Sortuj malejąco", "Table": "Tabela", + "Export as CSV": "Export as CSV", "Toggle header": "Przełącz nagłówek", "Math inline (LaTeX)": "Matematyka w linii (LaTeX)", "Math block (LaTeX)": "Blok matematyczny (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} przywrócony", "Document options": "Opcje dokumentu", - "Restore": "Przywróć", "Choose a collection": "Wybierz kolekcję", "Enable embeds": "Włącz osadzanie", "Export options": "Opcje eksportu", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} użytkowników z dostępem", "{{ groupsCount }} groups with access": "{{ groupsCount }} grupa z dostępem", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grup z dostępem", + "Archived by {{userName}}": "Zarchiwizowane przez {{userName}}", "Share": "Udostępnij", "Recently updated": "Ostatnio zaktualizowane", "Recently published": "Ostatnio opublikowane", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Ten dokument zostanie trwale usunięty w <2> chyba że zostanie przywrócony.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Zaznacz jakiś tekst i użyj kontroli <1> aby dodać symbole zastępcze, które mogą być wypełnione podczas tworzenia nowych dokumentów", "You’re editing a template": "Edytujesz szablon", - "Archived by {{userName}}": "Zarchiwizowane przez {{userName}}", "Deleted by {{userName}}": "Usunięte przez {{userName}}", "Observing {{ userName }}": "Obserwowanie {{ userName }}", "Backlinks": "Linki zwrotne", diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index c9fbd4429c..2bdd40dc0c 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Pesquisar na Coleção", "Star": "Adicionar aos favoritos", "Unstar": "Remover estrela", + "Archive": "Arquivo", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Arquivando", + "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.", + "Restore": "Restaurar", + "Collection restored": "Collection restored", "Delete": "Excluir", "Delete collection": "Excluir a coleção", "New template": "Novo modelo", @@ -47,8 +54,9 @@ "Download document": "Baixar documento", "Copy as Markdown": "Copiar como Markdown", "Markdown copied to clipboard": "Markdown copiado para a área de transferência", - "Copy link": "Copiar link", + "Copy public link": "Copiar link público", "Link copied to clipboard": "Link copiado para área de transferência", + "Copy link": "Copiar link", "Copy": "Copiar", "Duplicate": "Duplicar", "Duplicate document": "Duplicar documento", @@ -71,10 +79,8 @@ "Move": "Mover", "Move to collection": "Mover para coleção", "Move {{ documentType }}": "Mover {{ documentType }}", - "Archive": "Arquivo", "Are you sure you want to archive this document?": "Tem certeza que deseja arquivar este documento?", "Document archived": "Documento arquivado", - "Archiving": "Arquivando", "Archiving this document will remove it from the collection and search results.": "Arquivar este documento irá removê-lo da coleção e dos resultados das pesquisas.", "Delete {{ documentName }}": "Excluir {{ documentName }}", "Permanently delete": "Excluir permanentemente", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Somente letras minúsculas, dígitos e travessões são permitidos", "Sorry, this link has already been used": "Desculpe, este link já foi utilizado", "Public link copied to clipboard": "Link público copiado para área de transferência", - "Copy public link": "Copiar link público", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Qualquer pessoa com o link pode acessar, pois, o documento principal, <2>{{documentTitle}}, está compartilhado", "Allow anyone with the link to access": "Permitir qualquer pessoa com o link acessar", @@ -342,6 +347,7 @@ "{{ count }} groups added to the document": "{{ count }} grupos foram adicionados ao documento", "{{ count }} groups added to the document_plural": "{{ count }} grupos foram adicionados ao documento", "Logo": "Logotipo", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "Novo documento", "You can't reorder documents in an alphabetically sorted collection": "Não é possível reordenar documentos em uma coleção ordenada alfabeticamente", @@ -389,7 +395,7 @@ "Replacement": "Substituição", "Replace": "Substituir", "Replace all": "Substituir todos", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} não receberá notificação por não possuir acesso a este documento", + "{{ 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", "Profile picture": "Imagem do perfil", "Add column after": "Adicionar coluna depois", "Add column before": "Adicionar coluna antes", @@ -453,6 +459,7 @@ "Sort ascending": "Ordenação ascendente", "Sort descending": "Ordenação decrescente", "Table": "Tabela", + "Export as CSV": "Export as CSV", "Toggle header": "Ativar/desativar cabeçalho", "Math inline (LaTeX)": "Matemática em linha (LaTeX)", "Math block (LaTeX)": "Bloco de matemática (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Mostrar menu de documento", "{{ documentName }} restored": "{{ documentName }} restaurado", "Document options": "Opções do documento", - "Restore": "Restaurar", "Choose a collection": "Escolha uma coleção", "Enable embeds": "Habilitar incorporações", "Export options": "Opções de exportação", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} usuários com acesso", "{{ groupsCount }} groups with access": "{{ groupsCount }} grupo com acesso", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupos com acesso", + "Archived by {{userName}}": "Arquivado por {{userName}}", "Share": "Compartilhar", "Recently updated": "Atualizado recentemente", "Recently published": "Publicado recentemente", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Este documento será excluído permanentemente em <2>, a menos que seja restaurado.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Destaque algum texto e use o controle <1> para adicionar espaços reservados que podem ser preenchidos ao criar documentos a partir do modelo", "You’re editing a template": "Você esta editando um modelo", - "Archived by {{userName}}": "Arquivado por {{userName}}", "Deleted by {{userName}}": "Excluído por {{userName}}", "Observing {{ userName }}": "Observando {{ userName }}", "Backlinks": "Links de referência", diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index 686defcd91..9aaae7fc13 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Procurar na coleção", "Star": "Estrela", "Unstar": "Tirar estrela", + "Archive": "Arquivo", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Arquivando", + "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.", + "Restore": "Restaurar", + "Collection restored": "Collection restored", "Delete": "Apagar", "Delete collection": "Remover coleção", "New template": "Novo template", @@ -47,8 +54,9 @@ "Download document": "Descarregar documento", "Copy as Markdown": "Copiar como Markdown", "Markdown copied to clipboard": "Markdown copiado para área de transferência", - "Copy link": "Copiar link", + "Copy public link": "Copiar ligação pública", "Link copied to clipboard": "Copiado para o clipboard", + "Copy link": "Copiar link", "Copy": "Copiar", "Duplicate": "Duplicar", "Duplicate document": "Duplicar documento", @@ -71,10 +79,8 @@ "Move": "Mover", "Move to collection": "Mover para coleção", "Move {{ documentType }}": "Mover {{ documentType }}", - "Archive": "Arquivo", "Are you sure you want to archive this document?": "Tem certeza que deseja arquivar este documento?", "Document archived": "Documento arquivado", - "Archiving": "Arquivando", "Archiving this document will remove it from the collection and search results.": "Arquivar este documento irá removê-lo da coleção e dos resultados de pesquisas.", "Delete {{ documentName }}": "Apagar {{ documentName }}", "Permanently delete": "Excluir permanentemente", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Apenas letras minúsculas, dígitos e traços permitidos", "Sorry, this link has already been used": "Desculpe, esta ligação já foi utilizada", "Public link copied to clipboard": "Ligação pública copiada para a área de transferência", - "Copy public link": "Copiar ligação pública", "Web": "Internet", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Qualquer pessoa com a ligação pode aceder porque o documento principal, <2>{{documentTitle}}, está partilhado", "Allow anyone with the link to access": "Permitir que qualquer um com a ligação aceda", @@ -342,6 +347,7 @@ "{{ count }} groups added to the document": "{{ count }} grupo adicionado ao documento", "{{ count }} groups added to the document_plural": "{{ count }} grupos adicionados ao documento", "Logo": "Logótipo", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "Novo doc", "You can't reorder documents in an alphabetically sorted collection": "Não pode reordenar documentos numa coleção ordenada alfabeticamente", @@ -389,7 +395,7 @@ "Replacement": "Substituição", "Replace": "Substituir", "Replace all": "Trocar todos", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} não será notificado pois não tem acesso a este documento", + "{{ 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", "Profile picture": "Imagem de perfil", "Add column after": "Adicionar coluna depois", "Add column before": "Adicionar coluna antes", @@ -453,6 +459,7 @@ "Sort ascending": "Ordenação ascendente", "Sort descending": "Ordenação descendente", "Table": "Tabela", + "Export as CSV": "Export as CSV", "Toggle header": "Alternar cabeçalho", "Math inline (LaTeX)": "Matemática embutida (LaTeX)", "Math block (LaTeX)": "Bloco de matemática (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Mostrar menu de documento", "{{ documentName }} restored": "{{ documentName}} reposto", "Document options": "Opções do documento", - "Restore": "Restaurar", "Choose a collection": "Escolher coleção", "Enable embeds": "Ativar embeds", "Export options": "Opções de exportação", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} utilizadores com acesso", "{{ groupsCount }} groups with access": "{{ usersCount }} grupo com acesso", "{{ groupsCount }} groups with access_plural": "{{ usersCount }} grupos com acesso", + "Archived by {{userName}}": "Arquivado por {{userName}}", "Share": "Compartilhar", "Recently updated": "Atualizado recentemente", "Recently published": "Publicado recentemente", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Este documento será permanentemente eliminado em <2>, se não for reposto.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Selecione algum texto e use o controlo <1> para adicionar espaços reservados que podem ser preenchidos ao criar novos documentos", "You’re editing a template": "Está a alterar um modelo", - "Archived by {{userName}}": "Arquivado por {{userName}}", "Deleted by {{userName}}": "Eliminado por {{userName}}", "Observing {{ userName }}": "A ver {{ userName }}", "Backlinks": "Ligações ascendentes", diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index c9ff2a27dc..1b5e7db387 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Sök i samling", "Star": "Stjärna", "Unstar": "Ta bort stjärnmärkning", + "Archive": "Arkiv", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Arkiverar", + "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.", + "Restore": "Återställ", + "Collection restored": "Collection restored", "Delete": "Radera", "Delete collection": "Ta bort samling", "New template": "Ny mall", @@ -47,8 +54,9 @@ "Download document": "Ladda ner dokument", "Copy as Markdown": "Kopiera som markdown", "Markdown copied to clipboard": "Markdown har kopierats till urklipp", - "Copy link": "Kopiera länk", + "Copy public link": "Kopiera offentlig länk", "Link copied to clipboard": "Länk har kopierats till urklipp", + "Copy link": "Kopiera länk", "Copy": "Kopiera", "Duplicate": "Duplicera", "Duplicate document": "Duplicera dokument", @@ -71,10 +79,8 @@ "Move": "Flytta", "Move to collection": "Flytta till samling", "Move {{ documentType }}": "Flytta {{ documentType }}", - "Archive": "Arkiv", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokumentet arkiverat", - "Archiving": "Arkiverar", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Ta bort {{ documentName }}", "Permanently delete": "Radera permanent", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Endast små bokstäver, siffror och bindestreck tillåts", "Sorry, this link has already been used": "Tyvärr, denna länk har redan använts", "Public link copied to clipboard": "Offentlig länk har kopierats till urklipp", - "Copy public link": "Kopiera offentlig länk", "Web": "Webb", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Alla med länken kan komma åt eftersom det överordnade dokumentet, <2>{{documentTitle}}, delas", "Allow anyone with the link to access": "Tillåt vem som helst med länken att komma åt", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Nytt dokument", "You can't reorder documents in an alphabetically sorted collection": "Du kan inte ordna om dokument i en alfabetiskt sorterad samling", @@ -389,7 +395,7 @@ "Replacement": "Ersättning", "Replace": "Ersätt", "Replace all": "Ersätt alla", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profilbild", "Add column after": "Lägg till kolumn efter", "Add column before": "Lägg till kolumn före", @@ -453,6 +459,7 @@ "Sort ascending": "Sortera stigande", "Sort descending": "Sortera fallande", "Table": "Tabell", + "Export as CSV": "Export as CSV", "Toggle header": "Visa/dölj topp", "Math inline (LaTeX)": "Math inline (LaTeX)", "Math block (LaTeX)": "Math block (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} återställt", "Document options": "Dokumentalternativ", - "Restore": "Återställ", "Choose a collection": "Välj en samling", "Enable embeds": "Aktivera inbäddningar", "Export options": "Exportalternativ", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} användare med behörighet", "{{ groupsCount }} groups with access": "{{ groupsCount }} grupp med behörighet", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupper med behörighet", + "Archived by {{userName}}": "Arkiverad av {{userName}}", "Share": "Dela", "Recently updated": "Nyligen uppdaterad", "Recently published": "Nyligen publicerade", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Detta dokument kommer att raderas permanent i <2> om det inte återställs.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Markera lite text och använd kontrollen <1> för att lägga till platshållare som kan fyllas i när du skapar nya dokument", "You’re editing a template": "Du redigerar en mall", - "Archived by {{userName}}": "Arkiverad av {{userName}}", "Deleted by {{userName}}": "Borttagen av {{userName}}", "Observing {{ userName }}": "Observerar {{ userName }}", "Backlinks": "Bakåtlänkar", diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index 3135cb5a2c..e580259673 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -11,6 +11,13 @@ "Search in collection": "ค้นหาจากคอลเลกชัน", "Star": "ติดดาว", "Unstar": "เลิกติดดาว", + "Archive": "คลังเก็บข้อมูล", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiving", + "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.", + "Restore": " กู้คืน", + "Collection restored": "Collection restored", "Delete": "ลบ", "Delete collection": "ลบคอลเลกชัน", "New template": "เทมเพลตใหม่", @@ -47,8 +54,9 @@ "Download document": "ดาวน์โหลดเอกสาร", "Copy as Markdown": "Copy as Markdown", "Markdown copied to clipboard": "Markdown copied to clipboard", - "Copy link": "คัดลอกลิงก์", + "Copy public link": "Copy public link", "Link copied to clipboard": "คัดลอกลิงก์ไปยังคลิปบอร์ดแล้ว", + "Copy link": "คัดลอกลิงก์", "Copy": "Copy", "Duplicate": "ทำสำเนา", "Duplicate document": "ทำสำเนาเอกสาร", @@ -71,10 +79,8 @@ "Move": "ย้าย", "Move to collection": "Move to collection", "Move {{ documentType }}": "Move {{ documentType }}", - "Archive": "คลังเก็บข้อมูล", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "เอกสารที่เก็บถาวร", - "Archiving": "Archiving", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "ลบ {{ documentName }}", "Permanently delete": "ลบอย่างถาวร", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", "Sorry, this link has already been used": "Sorry, this link has already been used", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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": "โลโก้", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "สร้างเอกสารใหม่", "You can't reorder documents in an alphabetically sorted collection": "คุณไม่สามารถจัดลำดับเอกสารใหม่ในคอลเลคชั่นที่เรียงตามตัวอักษร", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profile picture", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "ตาราง", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Math inline (LaTeX)", "Math block (LaTeX)": "Math block (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "ตัวเลือกเอกสาร", - "Restore": " กู้คืน", "Choose a collection": "เลือกคอลเลกชั่น", "Enable embeds": "Enable embeds", "Export options": "ตัวเลือกการส่งออก", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} users with access", "{{ groupsCount }} groups with access": "{{ groupsCount }} group with access", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", + "Archived by {{userName}}": "Archived by {{userName}}", "Share": "Share", "Recently updated": "Recently updated", "Recently published": "Recently published", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents", "You’re editing a template": "You’re editing a template", - "Archived by {{userName}}": "Archived by {{userName}}", "Deleted by {{userName}}": "Deleted by {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", "Backlinks": "Backlinks", diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index 1ee7f78a18..44b0a764f6 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Koleksiyonda ara", "Star": "Yıldızla", "Unstar": "Yıldızı kaldır", + "Archive": "Arşivle", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Arşivleniyor", + "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.", + "Restore": "Geri yükle", + "Collection restored": "Collection restored", "Delete": "Sil", "Delete collection": "Koleksiyonu sil", "New template": "Yeni şablon", @@ -47,8 +54,9 @@ "Download document": "Belgeyi indir", "Copy as Markdown": "Copy as Markdown", "Markdown copied to clipboard": "Markdown copied to clipboard", - "Copy link": "Bağlantıyı kopyala", + "Copy public link": "Copy public link", "Link copied to clipboard": "Bağlantı panoya kopyalandı", + "Copy link": "Bağlantıyı kopyala", "Copy": "Kopyala", "Duplicate": "Çoğalt", "Duplicate document": "Belgeyi çoğalt", @@ -71,10 +79,8 @@ "Move": "Taşı", "Move to collection": "Move to collection", "Move {{ documentType }}": "{{ documentType }} taşı", - "Archive": "Arşivle", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Belge arşivlendi", - "Archiving": "Arşivleniyor", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "{{ documentName }} sil", "Permanently delete": "Kalıcı olarak sil", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Yalnızca küçük harflere, rakamlara ve kısa çizgilere izin verilir", "Sorry, this link has already been used": "Üzgünüz, bu bağlantı zaten kullanılmış", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Yeni belge", "You can't reorder documents in an alphabetically sorted collection": "Alfabetik olarak sıralanmış bir koleksiyondaki belgeleri yeniden sıralayamazsınız", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Profil fotoğrafı", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Tablo", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Satır içi matematik (LaTeX)", "Math block (LaTeX)": "Matematik bloğu (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Belge ayarları", - "Restore": "Geri yükle", "Choose a collection": "Bir koleksiyon seç", "Enable embeds": "Yerleştirmeleri etkinleştir", "Export options": "Dışa aktarma seçenekleri", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "erişimi olan {{ usersCount }} kullanıcı", "{{ groupsCount }} groups with access": "erişimi olan {{ groupsCount }} grup", "{{ groupsCount }} groups with access_plural": "erişimi olan {{ groupsCount }} grup", + "Archived by {{userName}}": "{{userName}} tarafından arşivlendi", "Share": "Paylaş", "Recently updated": "Yakında güncellendi", "Recently published": "Yakında yayınlandı", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Bu belge, restore edilmedikçe <2> içinde kalıcı olarak silinecek.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Bir metni seçin ve <1> kontolünü kullanarak yeni belgeler oluşturulurken kullanılabilecek yer tutucu ekleyin", "You’re editing a template": "Bir şablonu düzenliyorsunuz", - "Archived by {{userName}}": "{{userName}} tarafından arşivlendi", "Deleted by {{userName}}": "{{userName}} tarafından silindi", "Observing {{ userName }}": "{{ userName }} gözlemliyor", "Backlinks": "Geri bağlantılar", diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index 54d1811ff5..e0ae6921b8 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Пошук в колекції", "Star": "Додати в обране", "Unstar": "Прибрати з обраного", + "Archive": "Архівувати", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Архівація", + "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.", + "Restore": "Відновити", + "Collection restored": "Collection restored", "Delete": "Видалити", "Delete collection": "Видалити колекцію", "New template": "Новий шаблон", @@ -47,8 +54,9 @@ "Download document": "Завантажити документ", "Copy as Markdown": "Скопіювати як Markdown", "Markdown copied to clipboard": "Markdown скопійовано в буфер обміну", - "Copy link": "Скопіювати лінк", + "Copy public link": "Copy public link", "Link copied to clipboard": "Посилання скопійовано в буфер обміну", + "Copy link": "Скопіювати лінк", "Copy": "Копіювати", "Duplicate": "Дублювати", "Duplicate document": "Дублювати документ", @@ -71,10 +79,8 @@ "Move": "Перемістити", "Move to collection": "Move to collection", "Move {{ documentType }}": "Перемістити {{ documentType }}", - "Archive": "Архівувати", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Документ архівовано", - "Archiving": "Архівація", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "Видалити {{ documentName }}", "Permanently delete": "Видалити остаточно", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Допускаються тільки маленькі літери, цифри і дефіси", "Sorry, this link has already been used": "Вибачте, це посилання вже використано", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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": "Лого", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "Новий документ", "You can't reorder documents in an alphabetically sorted collection": "Ви не можете змінити порядок документів у колекції, яка відсортована за алфавітом", @@ -389,7 +395,7 @@ "Replacement": "Заміна", "Replace": "Замінити", "Replace all": "Замінити все", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Аватар", "Add column after": "Add column after", "Add column before": "Add column before", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Таблиця", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Математика (LaTeX)", "Math block (LaTeX)": "Математичний блок (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Налаштування документа", - "Restore": "Відновити", "Choose a collection": "Оберіть колекцію", "Enable embeds": "Увімкнути вкладення", "Export options": "Параметри експорту", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} користувачів з доступом", "{{ groupsCount }} groups with access": "{{ groupsCount }} група з доступом", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} груп з доступом", + "Archived by {{userName}}": "Архівовано {{userName}}", "Share": "Поширити", "Recently updated": "Нещодавно оновлені", "Recently published": "Нещодавно опубліковані", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Цей шаблон буде остаточно видалено через <2> якщо не буде відновлено.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Виділіть деякий текст і використовуйте контроль над <1> для додавання полів, які можуть бути заповнені при створенні нових документів", "You’re editing a template": "Ви редагуєте шаблон", - "Archived by {{userName}}": "Архівовано {{userName}}", "Deleted by {{userName}}": "Видалено {{userName}}", "Observing {{ userName }}": "Переглядається {{ userName }}", "Backlinks": "Зворотні посилання", diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index 6469a391ce..4686cf8daa 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -11,6 +11,13 @@ "Search in collection": "Tìm kiếm trong bộ sưu tập", "Star": "Gán sao", "Unstar": "Bỏ gắn sao", + "Archive": "Lưu trữ", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Lưu trữ", + "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.", + "Restore": "Khôi phục", + "Collection restored": "Collection restored", "Delete": "Xóa", "Delete collection": "Xoá bộ sưu tập", "New template": "Mẫu mới", @@ -47,8 +54,9 @@ "Download document": "Tải tài liệu", "Copy as Markdown": "Sao chép dưới dạng Markdown", "Markdown copied to clipboard": "Đã sao chép Markdown vào clipboard", - "Copy link": "Sao chép Link", + "Copy public link": "Copy public link", "Link copied to clipboard": "Đường Link đã sao chép vào bộ nhớ tạm", + "Copy link": "Sao chép Link", "Copy": "Sao chép", "Duplicate": "Nhân bản", "Duplicate document": "Tài liệu trùng lặp", @@ -71,10 +79,8 @@ "Move": "Di chuyển", "Move to collection": "Di chuyển đến bộ sưu tập", "Move {{ documentType }}": "Di chuyển {{ documentType }}", - "Archive": "Lưu trữ", "Are you sure you want to archive this document?": "Bạn có chắc chắn muốn lưu trữ tài liệu này không?", "Document archived": "Đã lưu trữ tài liệu", - "Archiving": "Lưu trữ", "Archiving this document will remove it from the collection and search results.": "Việc lưu trữ tài liệu này sẽ xóa nó khỏi bộ sưu tập và kết quả tìm kiếm.", "Delete {{ documentName }}": "Xóa {{ documentName }}", "Permanently delete": "Xoá vĩnh viễn", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "Chỉ cho phép chữ thường, chữ số và dấu gạch ngang", "Sorry, this link has already been used": "Xin lỗi, liên kết này đã được sử dụng", "Public link copied to clipboard": "Public link copied to clipboard", - "Copy public link": "Copy public link", "Web": "Web", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "Allow anyone with the link to access", @@ -342,6 +347,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", "Change permissions?": "Change permissions?", "New doc": "Tài liệu mới", "You can't reorder documents in an alphabetically sorted collection": "Bạn không thể sắp xếp lại các tài liệu trong bộ sưu tập được sắp xếp theo thứ tự bảng chữ cái", @@ -389,7 +395,7 @@ "Replacement": "Replacement", "Replace": "Thay thế", "Replace all": "Thay thế tất cả", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "Ảnh đại diện", "Add column after": "Thêm cột phía sau", "Add column before": "Thêm cột phía trước", @@ -453,6 +459,7 @@ "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", "Table": "Bảng", + "Export as CSV": "Export as CSV", "Toggle header": "Toggle header", "Math inline (LaTeX)": "Toán nội tuyến (LaTeX)", "Math block (LaTeX)": "Khối toán (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "Show document menu", "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Tùy chọn tài liệu", - "Restore": "Khôi phục", "Choose a collection": "Chọn Bộ Sưu Tập", "Enable embeds": "Bật tính năng nhúng", "Export options": "Tuỳ chọn xuất", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} người dùng có quyền truy cập", "{{ groupsCount }} groups with access": "{{ groupsCount }} nhóm có quyền truy cập", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} nhóm có quyền truy cập", + "Archived by {{userName}}": "Được lưu trữ bởi {{userName}}", "Share": "Chia sẻ", "Recently updated": "Được cập nhật gần đây", "Recently published": "Đăng tải gần đây", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "Tài liệu này sẽ bị xóa vĩnh viễn sau <2> trừ khi được khôi phục.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Đánh dấu văn bản và dùng <1> để thêm khoảng giữ chỗ mà sau này có thể điền thông tin khi tạo tài liệu mới", "You’re editing a template": "Bạn đang chỉnh sửa mẫu", - "Archived by {{userName}}": "Được lưu trữ bởi {{userName}}", "Deleted by {{userName}}": "Đã xóa bởi {{userName}}", "Observing {{ userName }}": "Quan sát {{ userName }}", "Backlinks": "Liên kết ngược", diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index 9b881f8c9d..e27a182010 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -11,6 +11,13 @@ "Search in collection": "在文档集中搜索", "Star": "收藏", "Unstar": "取消收藏", + "Archive": "归档", + "Archive collection": "归档文档集", + "Collection archived": "文档集已归档", + "Archiving": "正在归档", + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "归档此文档集也将归档其中的所有文档。该文档集中的文档将不再在搜索结果中可见。", + "Restore": "恢复", + "Collection restored": "文档集已恢复", "Delete": "删除", "Delete collection": "删除文档集", "New template": "新建模板", @@ -47,8 +54,9 @@ "Download document": "下载文档", "Copy as Markdown": "以 Markdown 格式复制", "Markdown copied to clipboard": "Markdown 已复制到剪贴板", - "Copy link": "复制链接", + "Copy public link": "复制公开链接", "Link copied to clipboard": "链接已复制到剪贴板", + "Copy link": "复制链接", "Copy": "拷贝", "Duplicate": "复制", "Duplicate document": "复制文档", @@ -71,10 +79,8 @@ "Move": "移动", "Move to collection": "移动到文档集", "Move {{ documentType }}": "移动 {{ documentType }}", - "Archive": "归档", "Are you sure you want to archive this document?": "你确定要归档此文档吗?", "Document archived": "文件已归档", - "Archiving": "正在归档", "Archiving this document will remove it from the collection and search results.": "归档此文档将从文档集和搜索结果中删除它。", "Delete {{ documentName }}": "删除{{ documentName }}", "Permanently delete": "永久删除", @@ -167,7 +173,7 @@ "no access": "无访问权限", "Move document": "移动文档", "Moving": "移动", - "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", + "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "将文档 {{ title }} 移动到 {{ newCollectionName }} 集合将使所有工作区成员的权限从 {{ prevPermission }} 更改为 {{ newPermission }}。", "Document is too large": "文档太大", "This document has reached the maximum size and can no longer be edited": "此文档已达到最大尺寸,无法再编辑", "Authentication failed": "身份验证失败", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "只允许使用小写字母、数字和破折号", "Sorry, this link has already been used": "抱歉,该链接已被占用", "Public link copied to clipboard": "公开链接已复制到剪贴板", - "Copy public link": "复制公开链接", "Web": "网页", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "知道该链接的任何人都可以访问,因为父级文档 <2>{{documentTitle}} 已共享", "Allow anyone with the link to access": "允许所有知道链接的人访问", @@ -342,7 +347,8 @@ "{{ count }} groups added to the document": "{{ count }} 个组被添加到此文档", "{{ count }} groups added to the document_plural": "{{ count }} 个组被添加到此文档", "Logo": "网站图标", - "Change permissions?": "Change permissions?", + "Archived collections": "归档文档集", + "Change permissions?": "更改权限?", "New doc": "新建文档", "You can't reorder documents in an alphabetically sorted collection": "你不能在按字母排序的文档集中排序", "Empty": "空", @@ -389,7 +395,7 @@ "Replacement": "替换", "Replace": "替换", "Replace all": "全部替换", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} 不会被通知,因为他们没有访问此文档的权限", + "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} 不会被通知,因为他们没有访问此文档的权限", "Profile picture": "个人头像", "Add column after": "在后面添加列", "Add column before": "在前面添加列", @@ -424,7 +430,7 @@ "Big heading": "主标题", "Medium heading": "次标题", "Small heading": "小标题", - "Extra small heading": "Extra small heading", + "Extra small heading": "附加小标题", "Heading": "标题", "Divider": "分割线", "Image": "图片", @@ -453,6 +459,7 @@ "Sort ascending": "升序排序", "Sort descending": "降序排序", "Table": "表格", + "Export as CSV": "Export as CSV", "Toggle header": "切换标题", "Math inline (LaTeX)": "行内数学 (LaTeX)", "Math block (LaTeX)": "数学块 (LaTeX)", @@ -490,14 +497,13 @@ "Export collection": "导出文档集", "Rename": "重命名", "Sort in sidebar": "调整侧边栏的显示顺序", - "A-Z sort": "A-Z sort", - "Z-A sort": "Z-A sort", + "A-Z sort": "A-Z 排序", + "Z-A sort": "Z-A 排序", "Manual sort": "手动排序", "Comment options": "评论选项", "Show document menu": "显示文档菜单", "{{ documentName }} restored": "{{ documentName }} 已被恢复", "Document options": "文档选项", - "Restore": "恢复", "Choose a collection": "选择一个文档集", "Enable embeds": "启用嵌入", "Export options": "导出选项", @@ -536,7 +542,7 @@ "shared": "已共享", "invited you to": "邀请你加入", "Choose a date": "选择一个日期", - "API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.", + "API key created. Please copy the value now as it will not be shown again.": "API 密钥已创建。请现在复制值,因为它不会再次显示。", "Name your key something that will help you to remember it's use in the future, for example \"local development\" or \"continuous integration\".": "为你的 API 令牌起一个有助于你在将来使用它的名称,例如“本地开发”、“生产”或“持续集成”。", "Expiration": "过期时间", "Never expires": "永不过期", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} 个用户有访问权限", "{{ groupsCount }} groups with access": "{{ groupsCount }} 个组有访问权限", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} 个组有访问权限", + "Archived by {{userName}}": "已被 {{userName}} 存档", "Share": "分享", "Recently updated": "最近更新", "Recently published": "最近发布", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "此文档将在 <2> 后永久删除,除非手动恢复。", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "选中一些文本,然后通过 <1> 来添加占位符,以便在创建新文件时填写。", "You’re editing a template": "你正在编辑一个模板", - "Archived by {{userName}}": "已被 {{userName}} 存档", "Deleted by {{userName}}": "已被 {{userName}} 删除", "Observing {{ userName }}": "观察 {{ userName }}", "Backlinks": "反向链接", @@ -891,7 +897,7 @@ "Commenting": "评论", "When enabled team members can add comments to documents.": "启用后,团队成员可以向文档添加评论。", "New group": "新建群组", - "Groups can be used to organize and manage the people on your team.": "可以使用群组来组织和管理你的团队成员。", + "Groups can be used to organize and manage the people on your team.": "使用群组来组织和管理你的团队成员。", "No groups have been created yet": "没有群组可供加入", "Create a group": "创建群组", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "快速将你现有的文件、页面和文件从其他工具和服务转移到 {{appName}}。你还可以将任何 HTML、Markdown 和文本文件直接拖放到应用程序中的文档集中。", @@ -953,7 +959,7 @@ "This could be your real name, or a nickname — however you’d like people to refer to you.": "这可以是你的真名,也可以是昵称 — 不管你希望别人怎么称呼你。", "Are you sure you want to require invites?": "你确定要发出邀请吗?", "New users will first need to be invited to create an account. Default role and Allowed domains will no longer apply.": "新用户首先需要通过邀请来创建一个账户。 默认角色 和 允许的域 将不再适用。", - "Settings that impact the access, security, and content of your workspace.": "影响你工作区访问权限、安全性和内容的设置。", + "Settings that impact the access, security, and content of your workspace.": "影响你工作区中访问权限、安全性和内容的设置。", "Allow members to sign-in with {{ authProvider }}": "允许成员使用 {{ authProvider }} 登录", "Disabled": "已禁用", "Allow members to sign-in using their email address": "允许成员使用他们的电子邮件地址登录", @@ -983,7 +989,7 @@ "Sharing is currently disabled.": "共享功能当前被禁用。", "You can globally enable and disable public document sharing in the security settings.": "你可以在安全设置 中对共享文档功能进行全局启用或禁用。", "Documents that have been shared are listed below. Anyone that has the public link can access a read-only version of the document until the link has been revoked.": "这是你分享给其他人的所有文档,在你撤销链接之前,任何人都可以通过该链接阅读该文档。", - "You can create templates to help your team create consistent and accurate documentation.": "你可以创建模板来帮助你的团队创建风格一致和准确的文档。", + "You can create templates to help your team create consistent and accurate documentation.": "创建模板来帮助你的团队创建风格一致和准确的文档。", "Alphabetical": "按字母顺序排列", "There are no templates just yet.": "尚无可用模板。", "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier 是一个平台,可以让 {{appName}} 轻松地与数以千计的其他业务工具集成。自动化你的工作流程、同步数据等。", diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index 6a0d493cdd..b60c021b01 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -11,6 +11,13 @@ "Search in collection": "在文件集中搜尋", "Star": "加入收藏", "Unstar": "取消收藏", + "Archive": "封存", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "正在封存", + "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.", + "Restore": "還原", + "Collection restored": "Collection restored", "Delete": "刪除", "Delete collection": "刪除文件集", "New template": "新增範本", @@ -47,8 +54,9 @@ "Download document": "下載文件", "Copy as Markdown": "以Markdown格式複製", "Markdown copied to clipboard": "Markdown已複製到剪貼簿", - "Copy link": "複製連結", + "Copy public link": "複製公開連結", "Link copied to clipboard": "已經將連結複製到剪貼簿", + "Copy link": "複製連結", "Copy": "複製", "Duplicate": "複製", "Duplicate document": "複製文件", @@ -71,10 +79,8 @@ "Move": "移動", "Move to collection": "移至收藏", "Move {{ documentType }}": "移動 {{ documentType }}", - "Archive": "封存", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "文件已被封存", - "Archiving": "正在封存", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "刪除 {{ documentName }}", "Permanently delete": "永久刪除", @@ -330,7 +336,6 @@ "Only lowercase letters, digits and dashes allowed": "只允許使用小寫字母、數字和破折號", "Sorry, this link has already been used": "抱歉,此連結已被使用", "Public link copied to clipboard": "已將連結複製到剪貼簿", - "Copy public link": "複製公開連結", "Web": "網頁", "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", "Allow anyone with the link to access": "允許任何知道該連結的人訪問", @@ -342,6 +347,7 @@ "{{ count }} groups added to the document": "{{ count }} 個團隊已新增至此文件", "{{ count }} groups added to the document_plural": "{{ count }} 個團隊已新增至此文件", "Logo": "Logo", + "Archived collections": "Archived collections", "Change permissions?": "Change permissions?", "New doc": "新文件", "You can't reorder documents in an alphabetically sorted collection": "您無法對按字母順序排序的文件集中的文件再重新排序", @@ -389,7 +395,7 @@ "Replacement": "替代", "Replace": "取代", "Replace all": "全部取代", - "{{ userName }} won't by notified as they do not have access to this document": "{{ userName }} won't by notified as they do not have access to this document", + "{{ 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", "Profile picture": "大頭貼", "Add column after": "在後面增加一欄", "Add column before": "在前面增加一欄", @@ -453,6 +459,7 @@ "Sort ascending": "由小到大排序", "Sort descending": "由大到小排序", "Table": "表格", + "Export as CSV": "Export as CSV", "Toggle header": "切換標題列", "Math inline (LaTeX)": "行內數學 (LaTeX)", "Math block (LaTeX)": "數學區塊 (LaTeX)", @@ -497,7 +504,6 @@ "Show document menu": "顯示文件目錄", "{{ documentName }} restored": "{{ documentName }} 已還原", "Document options": "文件選項", - "Restore": "還原", "Choose a collection": "選擇一個文件集", "Enable embeds": "啟用嵌入物件", "Export options": "匯出選項", @@ -558,6 +564,7 @@ "{{ usersCount }} users with access_plural": "{{ usersCount }} 個使用者擁有存取權限", "{{ groupsCount }} groups with access": "{{ groupsCount }} 個群組擁有存取權限", "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} 個群組擁有存取權限", + "Archived by {{userName}}": "已由 {{userName}} 封存", "Share": "分享", "Recently updated": "最近更新", "Recently published": "最近發布", @@ -630,7 +637,6 @@ "This document will be permanently deleted in <2> unless restored.": "文件若未於 <2> 還原,將被永久刪除。", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "高亮顯示一些文字並使用 <1> 控制項添加可以在建立新文件時填寫的佔位符", "You’re editing a template": "您正在編輯範本", - "Archived by {{userName}}": "已由 {{userName}} 封存", "Deleted by {{userName}}": "已由 {{userName}} 刪除", "Observing {{ userName }}": "正在觀察 {{ userName }}", "Backlinks": "反向連結", From b7b5e3edb9ea4e9fcfabbdc9e1b6cdaedd602d06 Mon Sep 17 00:00:00 2001 From: Luke Thomas <96008479+Zoobdude@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:26:38 +0100 Subject: [PATCH 25/52] fix: Remove docker version in compose file (#7762) --- docker-compose.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2c3c8e1bb8..1974f02c82 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "3" services: redis: image: redis From 936a8b251049406323e823457c6f0daa5fe268c3 Mon Sep 17 00:00:00 2001 From: Hemachandar <132386067+hmacr@users.noreply.github.com> Date: Fri, 11 Oct 2024 21:08:24 +0530 Subject: [PATCH 26/52] fix: show all document backlinks for a user (#7751) * fix: show all document backlinks for a user * add findByIds method to Document model * default options param * move filter to Document model * docs * fix: Backlinks from collections without direct membership not returned --------- Co-authored-by: Tom Moor --- server/models/Backlink.ts | 25 ++++++++ server/models/Document.test.ts | 74 ++++++++++++++++++++++++ server/models/Document.ts | 48 +++++++++++++++ server/routes/api/documents/documents.ts | 22 +++---- server/test/factories.ts | 1 + 5 files changed, 159 insertions(+), 11 deletions(-) diff --git a/server/models/Backlink.ts b/server/models/Backlink.ts index 39df9c1e32..346103fc5e 100644 --- a/server/models/Backlink.ts +++ b/server/models/Backlink.ts @@ -37,6 +37,31 @@ class Backlink extends IdModel< @ForeignKey(() => Document) @Column(DataType.UUID) reverseDocumentId: string; + + /** + * Find all backlinks for a document that the user has access to + * + * @param documentId The document ID to find backlinks for + * @param user The user to check access for + */ + public static async findSourceDocumentIdsForUser( + documentId: string, + user: User + ) { + const backlinks = await this.findAll({ + attributes: ["reverseDocumentId"], + where: { + documentId, + }, + }); + + const documents = await Document.findByIds( + backlinks.map((backlink) => backlink.reverseDocumentId), + { userId: user.id } + ); + + return documents.map((doc) => doc.id); + } } export default Backlink; diff --git a/server/models/Document.test.ts b/server/models/Document.test.ts index f8543bace1..7d5e2f9ffd 100644 --- a/server/models/Document.test.ts +++ b/server/models/Document.test.ts @@ -1,4 +1,5 @@ import { EmptyResultError } from "sequelize"; +import { CollectionPermission } from "@shared/types"; import slugify from "@shared/utils/slugify"; import { parser } from "@server/editor"; import Document from "@server/models/Document"; @@ -8,7 +9,9 @@ import { buildCollection, buildTeam, buildUser, + buildGuestUser, } from "@server/test/factories"; +import UserMembership from "./UserMembership"; beforeEach(() => { jest.resetAllMocks(); @@ -208,6 +211,77 @@ describe("#findByPk", () => { }); }); +describe("findByIds", () => { + test("should return documents by ids", async () => { + const document1 = await buildDocument(); + const document2 = await buildDocument(); + const documents = await Document.findByIds([document1.id, document2.id]); + expect(documents.length).toBe(2); + }); + + test("should return documents filtered to user access", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document1 = await buildDocument({ teamId: team.id }); + const document2 = await buildDocument({ teamId: team.id }); + const document3 = await buildDocument(); + const documents = await Document.findByIds( + [document1.id, document2.id, document3.id], + { + userId: user.id, + } + ); + expect(documents.length).toBe(2); + }); + + test("should return documents filtered to private collection access", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + }); + const document1 = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + const document2 = await buildDocument({ teamId: team.id }); + const document3 = await buildDocument(); + const documents = await Document.findByIds( + [document1.id, document2.id, document3.id], + { + userId: user.id, + } + ); + expect(documents.length).toBe(1); + }); + + test("should return documents filtered to guest access", async () => { + const team = await buildTeam(); + const user = await buildGuestUser({ teamId: team.id }); + const document1 = await buildDocument({ teamId: team.id }); + const collection = await buildCollection({ teamId: team.id }); + await UserMembership.create({ + createdById: user.id, + collectionId: collection.id, + userId: user.id, + permission: CollectionPermission.Read, + }); + const document2 = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + const document3 = await buildDocument(); + const documents = await Document.findByIds( + [document1.id, document2.id, document3.id], + { + userId: user.id, + } + ); + expect(documents.length).toBe(1); + }); +}); + describe("tasks", () => { test("should return tasks keys set to 0 if check items isn't present", async () => { const document = await buildDocument({ diff --git a/server/models/Document.ts b/server/models/Document.ts index 1f2427a246..d740243f70 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -733,6 +733,54 @@ class Document extends ArchivableModel< return null; } + /** + * Find many documents by their id, supports filtering by user memberships when `userId` + * is specified in the options. + * + * @param ids An array of document ids + * @param options FindOptions + * @returns A promise resolving to the list of documents + */ + static async findByIds( + ids: string[], + options: Omit, "where"> & + Omit = {} + ): Promise { + const { userId, ...rest } = options; + + const user = userId ? await User.findByPk(userId) : null; + const documents = await this.scope([ + "withDrafts", + { + method: ["withCollectionPermissions", userId, rest.paranoid], + }, + { + method: ["withViews", userId], + }, + { + method: ["withMembership", userId], + }, + ]).findAll({ + where: { + ...(user && { teamId: user.teamId }), + id: ids, + }, + ...rest, + }); + + if (!userId) { + return documents; + } + + return documents.filter( + (doc) => + (!doc.collection?.isPrivate && !user?.isGuest) || + (doc.collection?.memberships.length || 0) > 0 || + doc.memberships.length > 0 || + doc.groupMemberships.length > 0 + ); + } + // instance methods /** diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 3323eebda2..ecf472504b 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -142,8 +142,8 @@ router.post( .map((node) => node.id) .slice(ctx.state.pagination.offset, ctx.state.pagination.limit); where[Op.and].push({ id: documentIds }); - } // otherwise, filter by all collections the user has access to - } else { + } // if it's not a backlink request, filter by all collections the user has access to + } else if (!backlinkDocumentId) { const collectionIds = await user.collectionIds(); where[Op.and].push({ collectionId: @@ -203,15 +203,15 @@ router.post( } if (backlinkDocumentId) { - const backlinks = await Backlink.findAll({ - attributes: ["reverseDocumentId"], - where: { - documentId: backlinkDocumentId, - }, - }); - where[Op.and].push({ - id: backlinks.map((backlink) => backlink.reverseDocumentId), - }); + const sourceDocumentIds = await Backlink.findSourceDocumentIdsForUser( + backlinkDocumentId, + user + ); + + where[Op.and].push({ id: sourceDocumentIds }); + + // For safety, ensure the collectionId is not set in the query. + remove(where[Op.and], (cond) => has(cond, "collectionId")); } const statusQuery = []; diff --git a/server/test/factories.ts b/server/test/factories.ts index b24bd8c303..3428efb698 100644 --- a/server/test/factories.ts +++ b/server/test/factories.ts @@ -167,6 +167,7 @@ export async function buildGuestUser(overrides: Partial = {}) { name: faker.person.fullName(), createdAt: new Date("2018-01-01T00:00:00.000Z"), lastActiveAt: new Date("2018-01-01T00:00:00.000Z"), + role: UserRole.Guest, ...overrides, }); } From 0f8ac54bcbe39e982ee48842c3a42d416330f9d6 Mon Sep 17 00:00:00 2001 From: Hemachandar <132386067+hmacr@users.noreply.github.com> Date: Sat, 12 Oct 2024 01:00:08 +0530 Subject: [PATCH 27/52] feat: include content in document mentioned email (#7756) * feat: include content in document mentioned email * handle doc publish flow * add tests, doc * including heading node * Diff border --- .../templates/DocumentMentionedEmail.tsx | 75 +++- server/emails/templates/components/Diff.tsx | 2 +- server/models/helpers/DocumentHelper.tsx | 10 +- .../models/helpers/ProseMirrorHelper.test.ts | 323 ++++++++++++++++++ server/models/helpers/ProsemirrorHelper.tsx | 97 +++++- server/queues/processors/EmailsProcessor.ts | 2 + server/test/factories.ts | 12 +- 7 files changed, 507 insertions(+), 14 deletions(-) create mode 100644 server/models/helpers/ProseMirrorHelper.test.ts diff --git a/server/emails/templates/DocumentMentionedEmail.tsx b/server/emails/templates/DocumentMentionedEmail.tsx index 15b73d42e3..dd18c2766c 100644 --- a/server/emails/templates/DocumentMentionedEmail.tsx +++ b/server/emails/templates/DocumentMentionedEmail.tsx @@ -1,20 +1,31 @@ +import differenceBy from "lodash/differenceBy"; import * as React from "react"; -import { Document } from "@server/models"; +import { Day } from "@shared/utils/time"; +import { Document, Revision } from "@server/models"; +import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; +import HTMLHelper from "@server/models/helpers/HTMLHelper"; +import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; +import { TextHelper } from "@server/models/helpers/TextHelper"; import BaseEmail, { EmailProps } from "./BaseEmail"; import Body from "./components/Body"; import Button from "./components/Button"; +import Diff from "./components/Diff"; import EmailTemplate from "./components/EmailLayout"; +import EmptySpace from "./components/EmptySpace"; import Header from "./components/Header"; import Heading from "./components/Heading"; type InputProps = EmailProps & { documentId: string; + revisionId: string | undefined; + userId: string; actorName: string; teamUrl: string; }; type BeforeSend = { document: Document; + body: string | undefined; }; type Props = InputProps & BeforeSend; @@ -26,13 +37,60 @@ export default class DocumentMentionedEmail extends BaseEmail< InputProps, BeforeSend > { - protected async beforeSend({ documentId }: InputProps) { + protected async beforeSend({ documentId, revisionId, userId }: InputProps) { const document = await Document.unscoped().findByPk(documentId); if (!document) { return false; } - return { document }; + let currDoc: Document | Revision = document; + let prevDoc: Revision | undefined; + + if (revisionId) { + const revision = await Revision.findByPk(revisionId); + if (!revision) { + return false; + } + currDoc = revision; + prevDoc = (await revision.before()) ?? undefined; + } + + const currMentions = DocumentHelper.parseMentions(currDoc, { + type: "user", + modelId: userId, + }); + const prevMentions = prevDoc + ? DocumentHelper.parseMentions(prevDoc, { + type: "user", + modelId: userId, + }) + : []; + + const firstNewMention = differenceBy(currMentions, prevMentions, "id")[0]; + + let body: string | undefined; + + if (firstNewMention) { + const node = ProsemirrorHelper.getNodeForMentionEmail( + DocumentHelper.toProsemirror(currDoc), + firstNewMention + ); + + if (node) { + const content = await TextHelper.attachmentsToSignedUrls( + ProsemirrorHelper.toHTML(node, { centered: false }), + document.teamId, + 4 * Day.seconds + ); + + if (content) { + // inline all css so that it works in as many email providers as possible. + body = await HTMLHelper.inlineCSS(content); + } + } + } + + return { document, body }; } protected subject({ document }: Props) { @@ -58,7 +116,7 @@ Open Document: ${teamUrl}${document.url} } protected render(props: Props) { - const { document, actorName, teamUrl } = props; + const { document, actorName, teamUrl, body } = props; const documentLink = `${teamUrl}${document.url}?ref=notification-email`; return ( @@ -74,6 +132,15 @@ Open Document: ${teamUrl}${document.url} {actorName} mentioned you in the document{" "} {document.title}.

+ {body && ( + <> + + +
+ + + + )}

diff --git a/server/emails/templates/components/Diff.tsx b/server/emails/templates/components/Diff.tsx index ad73ae906d..2228ec4d62 100644 --- a/server/emails/templates/components/Diff.tsx +++ b/server/emails/templates/components/Diff.tsx @@ -8,8 +8,8 @@ type Props = { export default ({ children, ...rest }: Props) => { const style = { + border: `1.5px solid ${theme.secondaryBackground}`, borderRadius: "4px", - background: theme.secondaryBackground, padding: ".75em 1em", color: theme.text, display: "block", diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index c51d366c5d..911b8bd35d 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -14,7 +14,7 @@ import { addTags } from "@server/logging/tracer"; import { trace } from "@server/logging/tracing"; import { Collection, Document, Revision } from "@server/models"; import diff from "@server/utils/diff"; -import { ProsemirrorHelper } from "./ProsemirrorHelper"; +import { MentionAttrs, ProsemirrorHelper } from "./ProsemirrorHelper"; import { TextHelper } from "./TextHelper"; type HTMLOptions = { @@ -225,11 +225,15 @@ export class DocumentHelper { * Parse a list of mentions contained in a document or revision * * @param document Document or Revision + * @param options Attributes to use for filtering mentions * @returns An array of mentions in passed document or revision */ - static parseMentions(document: Document | Revision) { + static parseMentions( + document: Document | Revision, + options?: Partial + ) { const node = DocumentHelper.toProsemirror(document); - return ProsemirrorHelper.parseMentions(node); + return ProsemirrorHelper.parseMentions(node, options); } /** diff --git a/server/models/helpers/ProseMirrorHelper.test.ts b/server/models/helpers/ProseMirrorHelper.test.ts new file mode 100644 index 0000000000..5fcc101d00 --- /dev/null +++ b/server/models/helpers/ProseMirrorHelper.test.ts @@ -0,0 +1,323 @@ +import { DeepPartial } from "utility-types"; +import { ProsemirrorData } from "@shared/types"; +import { buildProseMirrorDoc } from "@server/test/factories"; +import { MentionAttrs, ProsemirrorHelper } from "./ProsemirrorHelper"; + +describe("ProseMirrorHelper", () => { + describe("getNodeForMentionEmail", () => { + it("should return the paragraph node", () => { + const mentionAttrs: MentionAttrs = { + id: "31d5899f-e544-4ff6-b6d3-c49dd6b81901", + type: "user", + label: "test.user", + actorId: "ccec260a-e060-4925-ade8-17cfabaf2cac", + modelId: "9a17c1c8-d178-4350-9001-203a73070fcb", + }; + + const mentionedParagraph: DeepPartial = { + type: "paragraph", + content: [ + { + type: "text", + text: "a paragraph with ", + }, + { + type: "mention", + attrs: mentionAttrs, + }, + { + type: "text", + text: " mentioned", + }, + ], + }; + + const doc = buildProseMirrorDoc([ + { + type: "paragraph", + content: [ + { + type: "text", + text: "some content in a paragraph", + }, + ], + }, + mentionedParagraph, + ]); + + const expectedDoc = buildProseMirrorDoc([mentionedParagraph]); + + const newDoc = ProsemirrorHelper.getNodeForMentionEmail( + doc, + mentionAttrs + ); + + expect(newDoc?.toJSON()).toEqual(expectedDoc.toJSON()); + }); + + it("should return the heading node", () => { + const mentionAttrs: MentionAttrs = { + id: "31d5899f-e544-4ff6-b6d3-c49dd6b81901", + type: "user", + label: "test.user", + actorId: "ccec260a-e060-4925-ade8-17cfabaf2cac", + modelId: "9a17c1c8-d178-4350-9001-203a73070fcb", + }; + + const mentionedHeading: DeepPartial = { + type: "heading", + attrs: { + level: 2, + }, + content: [ + { + type: "text", + text: "a heading with ", + }, + { + type: "mention", + attrs: mentionAttrs, + }, + { + type: "text", + text: " mentioned", + }, + ], + }; + + const doc = buildProseMirrorDoc([ + { + type: "paragraph", + content: [ + { + type: "text", + text: "some content in a paragraph", + }, + ], + }, + mentionedHeading, + ]); + + const expectedDoc = buildProseMirrorDoc([mentionedHeading]); + + const newDoc = ProsemirrorHelper.getNodeForMentionEmail( + doc, + mentionAttrs + ); + + expect(newDoc?.toJSON()).toEqual(expectedDoc.toJSON()); + }); + + it("should return the table node with the mentioned row only", () => { + const mentionAttrs: MentionAttrs = { + id: "31d5899f-e544-4ff6-b6d3-c49dd6b81901", + type: "user", + label: "test.user", + actorId: "ccec260a-e060-4925-ade8-17cfabaf2cac", + modelId: "9a17c1c8-d178-4350-9001-203a73070fcb", + }; + + const mentionedRow: DeepPartial = { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + type: "mention", + attrs: mentionAttrs, + }, + ], + }, + ], + }, + ], + }; + + const doc = buildProseMirrorDoc([ + { + type: "paragraph", + content: [ + { + type: "text", + text: "some content in a paragraph", + }, + ], + }, + { + type: "table", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "cell content", + }, + ], + }, + ], + }, + mentionedRow, + ], + }, + ]); + + const expectedDoc = buildProseMirrorDoc([ + { + type: "table", + content: [mentionedRow], + }, + ]); + + const newDoc = ProsemirrorHelper.getNodeForMentionEmail( + doc, + mentionAttrs + ); + + expect(newDoc?.toJSON()).toEqual(expectedDoc.toJSON()); + }); + + it("should return the checkbox list with the mentioned item only", () => { + const mentionAttrs: MentionAttrs = { + id: "31d5899f-e544-4ff6-b6d3-c49dd6b81901", + type: "user", + label: "test.user", + actorId: "ccec260a-e060-4925-ade8-17cfabaf2cac", + modelId: "9a17c1c8-d178-4350-9001-203a73070fcb", + }; + + const mentionedItem: DeepPartial = { + type: "checkbox_item", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "task B ", + }, + { + type: "paragraph", + content: [ + { + type: "mention", + attrs: mentionAttrs, + }, + ], + }, + ], + }, + ], + }; + + const doc = buildProseMirrorDoc([ + { + type: "paragraph", + content: [ + { + type: "text", + text: "some content in a paragraph", + }, + ], + }, + { + type: "checkbox_list", + content: [ + { + type: "checkbox_item", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "task A", + }, + ], + }, + ], + }, + mentionedItem, + ], + }, + ]); + + const expectedDoc = buildProseMirrorDoc([ + { + type: "checkbox_list", + content: [mentionedItem], + }, + ]); + + const newDoc = ProsemirrorHelper.getNodeForMentionEmail( + doc, + mentionAttrs + ); + + expect(newDoc?.toJSON()).toEqual(expectedDoc.toJSON()); + }); + + it("should not return anything when the mention attrs could not be found", () => { + const mentionAttrs: MentionAttrs = { + id: "31d5899f-e544-4ff6-b6d3-c49dd6b81901", + type: "user", + label: "test.user", + actorId: "ccec260a-e060-4925-ade8-17cfabaf2cac", + modelId: "9a17c1c8-d178-4350-9001-203a73070fcb", + }; + + const mentionedParagraph: DeepPartial = { + type: "paragraph", + content: [ + { + type: "text", + text: "a paragraph with ", + }, + { + type: "mention", + attrs: { ...mentionAttrs, modelId: "test-model" }, + }, + { + type: "text", + text: " mentioned", + }, + ], + }; + + const doc = buildProseMirrorDoc([ + { + type: "paragraph", + content: [ + { + type: "text", + text: "some content in a paragraph", + }, + ], + }, + mentionedParagraph, + ]); + + const newDoc = ProsemirrorHelper.getNodeForMentionEmail( + doc, + mentionAttrs + ); + + expect(newDoc).toBeUndefined(); + }); + }); +}); diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index 7114d9d6c0..fcca1dec0c 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -2,6 +2,7 @@ import { prosemirrorToYDoc } from "@getoutline/y-prosemirror"; import { JSDOM } from "jsdom"; import compact from "lodash/compact"; import flatten from "lodash/flatten"; +import isEqual from "lodash/isEqual"; import uniq from "lodash/uniq"; import { Node, DOMSerializer, Fragment, Mark } from "prosemirror-model"; import * as React from "react"; @@ -37,7 +38,7 @@ export type HTMLOptions = { baseUrl?: string; }; -type MentionAttrs = { +export type MentionAttrs = { type: string; label: string; modelId: string; @@ -131,16 +132,29 @@ export class ProsemirrorHelper { * Returns an array of attributes of all mentions in the node. * * @param node The node to parse mentions from + * @param options Attributes to use for filtering mentions * @returns An array of mention attributes */ - static parseMentions(doc: Node) { + static parseMentions(doc: Node, options?: Partial) { const mentions: MentionAttrs[] = []; - doc.descendants((node: Node) => { + const isApplicableNode = (node: Node) => { + if (node.type.name !== "mention") { + return false; + } + if ( - node.type.name === "mention" && - !mentions.some((m) => m.id === node.attrs.id) + (options?.type && options.type !== node.attrs.type) || + (options?.modelId && options.modelId !== node.attrs.modelId) ) { + return false; + } + + return !mentions.some((m) => m.id === node.attrs.id); + }; + + doc.descendants((node: Node) => { + if (isApplicableNode(node)) { mentions.push(node.attrs as MentionAttrs); return false; } @@ -155,6 +169,79 @@ export class ProsemirrorHelper { return mentions; } + /** + * Find the nearest ancestor block node which contains the mention. + * + * @param doc The top-level doc node of a document / revision. + * @param mention The mention for which the ancestor node is needed. + * @returns A new top-level doc node with the ancestor node as the only child. + */ + static getNodeForMentionEmail(doc: Node, mention: MentionAttrs) { + let blockNode: Node | undefined; + const potentialBlockNodes = [ + "table", + "checkbox_list", + "heading", + "paragraph", + ]; + + const isNodeContainingMention = (node: Node) => { + let foundMention = false; + + node.descendants((childNode: Node) => { + if ( + childNode.type.name === "mention" && + isEqual(childNode.attrs, mention) + ) { + foundMention = true; + return false; + } + + // No need to traverse other descendants once we find the mention. + if (foundMention) { + return false; + } + + return true; + }); + + return foundMention; + }; + + doc.descendants((node: Node) => { + // No need to traverse other descendants once we find the containing block node. + if (blockNode) { + return false; + } + + if (potentialBlockNodes.includes(node.type.name)) { + if (isNodeContainingMention(node)) { + blockNode = node; + } + return false; + } + + return true; + }); + + // Use the containing block node to maintain structure during serialization. + // Minify to include mentioned child only. + if (blockNode && !["heading", "paragraph"].includes(blockNode.type.name)) { + const children: Node[] = []; + + blockNode.forEach((child: Node) => { + if (isNodeContainingMention(child)) { + children.push(child); + } + }); + + blockNode = blockNode.copy(Fragment.fromArray(children)); + } + + // Return a new top-level "doc" node to maintain structure during serialization. + return blockNode ? doc.copy(Fragment.fromArray([blockNode])) : undefined; + } + /** * Removes all marks from the node that match the given types. * diff --git a/server/queues/processors/EmailsProcessor.ts b/server/queues/processors/EmailsProcessor.ts index a6eb671fa5..0ab034d479 100644 --- a/server/queues/processors/EmailsProcessor.ts +++ b/server/queues/processors/EmailsProcessor.ts @@ -87,6 +87,8 @@ export default class EmailsProcessor extends BaseProcessor { { to: notification.user.email, documentId: notification.documentId, + revisionId: notification.revisionId, + userId: notification.userId, teamUrl: notification.team.url, actorName: notification.actor.name, }, diff --git a/server/test/factories.ts b/server/test/factories.ts index 3428efb698..5e808f6414 100644 --- a/server/test/factories.ts +++ b/server/test/factories.ts @@ -1,8 +1,10 @@ import { faker } from "@faker-js/faker"; import isNil from "lodash/isNil"; import isNull from "lodash/isNull"; +import { Node } from "prosemirror-model"; import randomstring from "randomstring"; import { InferCreationAttributes } from "sequelize"; +import { DeepPartial } from "utility-types"; import { v4 as uuidv4 } from "uuid"; import { CollectionPermission, @@ -11,9 +13,10 @@ import { IntegrationService, IntegrationType, NotificationEventType, + ProsemirrorData, UserRole, } from "@shared/types"; -import { parser } from "@server/editor"; +import { parser, schema } from "@server/editor"; import { Share, Team, @@ -641,3 +644,10 @@ export async function buildPin(overrides: Partial = {}): Promise { return Pin.create(overrides); } + +export function buildProseMirrorDoc(content: DeepPartial[]) { + return Node.fromJSON(schema, { + type: "doc", + content, + }); +} From 9680e5784904e144444573cf994ec81d351a4a11 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 11 Oct 2024 15:46:46 -0400 Subject: [PATCH 28/52] chore: Remove `suppressImplicitAnyIndexErrors` TS rule (#7760) --- app/components/ConfirmMoveDialog.tsx | 12 ++++--- app/components/ConnectionStatus.tsx | 2 +- app/components/LocaleTime.tsx | 9 +++-- app/components/PaginatedList.tsx | 3 +- app/editor/components/EmojiMenu.tsx | 1 + app/editor/menus/code.tsx | 6 +++- app/hooks/useUserLocale.ts | 11 ++---- app/models/FileOperation.ts | 8 +++-- app/models/User.ts | 3 +- app/models/base/Model.ts | 4 ++- app/models/decorators/Relation.ts | 2 +- .../components/MembershipPreview.tsx | 8 +++-- app/scenes/Invite.tsx | 5 +-- app/scenes/Settings/Members.tsx | 4 ++- app/scenes/Settings/Shares.tsx | 4 ++- .../components/FileOperationListItem.tsx | 5 +-- app/stores/GroupMembershipsStore.ts | 10 ++++-- app/stores/MembershipsStore.ts | 10 ++++-- app/stores/RootStore.ts | 19 +++++----- app/stores/base/Store.ts | 35 +++++++++++++------ app/utils/date.ts | 5 +-- app/utils/download.ts | 2 ++ app/utils/language.ts | 4 +-- app/utils/pageVisibility.ts | 2 +- .../slack/client/components/SlackListItem.tsx | 2 +- plugins/slack/server/api/hooks.ts | 7 ++-- plugins/slack/shared/SlackUtils.ts | 2 +- .../server/tasks/DeliverWebhookTask.test.ts | 5 ++- .../server/tasks/DeliverWebhookTask.ts | 2 +- server/emails/templates/index.ts | 4 +-- server/index.ts | 4 +-- server/logging/Logger.ts | 4 +-- server/models/Collection.test.ts | 2 +- server/models/User.ts | 5 +-- server/models/base/Model.ts | 1 + server/models/decorators/CounterCache.ts | 7 ++-- server/models/helpers/SearchHelper.ts | 5 ++- server/policies/cancan.ts | 12 ++++--- server/queues/processors/BaseProcessor.ts | 2 +- server/queues/processors/index.ts | 4 +-- server/queues/tasks/EmailTask.ts | 1 + server/queues/tasks/index.ts | 4 +-- server/routes/api/collections/collections.ts | 4 ++- server/routes/api/documents/documents.ts | 4 ++- server/routes/api/users/schema.ts | 4 ++- server/routes/index.ts | 2 +- ...313000000-migrate-notification-settings.ts | 1 + server/services/index.ts | 2 +- server/services/worker.ts | 5 ++- server/utils/decorators/Public.ts | 6 ++-- server/utils/diff.ts | 27 +++++++------- server/utils/indexing.ts | 10 +++--- server/utils/readManifestFile.ts | 1 + server/utils/turndown/tables.ts | 6 +++- server/utils/validators.ts | 2 +- shared/editor/lib/Extension.ts | 4 ++- shared/editor/lib/ExtensionManager.ts | 13 ++++--- shared/editor/lib/code.ts | 10 +++--- shared/editor/lib/emoji.ts | 1 + .../getFromPath.ts | 2 +- shared/editor/nodes/Heading.ts | 2 +- shared/i18n/index.ts | 9 ++++- shared/i18n/locales/en_US/translation.json | 1 + shared/types.ts | 30 ++++++++-------- shared/utils/ProsemirrorHelper.ts | 2 +- shared/utils/Storage.ts | 2 +- shared/utils/date.ts | 2 +- shared/utils/emoji.ts | 7 ++-- shared/utils/naturalSort.ts | 4 +-- tsconfig.json | 1 - 70 files changed, 255 insertions(+), 156 deletions(-) diff --git a/app/components/ConfirmMoveDialog.tsx b/app/components/ConfirmMoveDialog.tsx index 3af9ee0cc4..e7b3371700 100644 --- a/app/components/ConfirmMoveDialog.tsx +++ b/app/components/ConfirmMoveDialog.tsx @@ -21,11 +21,13 @@ function ConfirmMoveDialog({ collection, item, ...rest }: Props) { const { documents, dialogs, collections } = useStores(); const { t } = useTranslation(); const prevCollection = collections.get(item.collectionId!); - const accessMapping = { - [CollectionPermission.ReadWrite]: t("view and edit access"), - [CollectionPermission.Read]: t("view only access"), - null: t("no access"), - }; + const accessMapping: Record | "null", string> = + { + [CollectionPermission.Admin]: t("manage access"), + [CollectionPermission.ReadWrite]: t("view and edit access"), + [CollectionPermission.Read]: t("view only access"), + null: t("no access"), + }; const handleSubmit = async () => { await documents.move({ diff --git a/app/components/ConnectionStatus.tsx b/app/components/ConnectionStatus.tsx index 41234608d2..6d79959633 100644 --- a/app/components/ConnectionStatus.tsx +++ b/app/components/ConnectionStatus.tsx @@ -35,7 +35,7 @@ function ConnectionStatus() { }; const message = ui.multiplayerErrorCode - ? codeToMessage[ui.multiplayerErrorCode] + ? codeToMessage[ui.multiplayerErrorCode as keyof typeof codeToMessage] : undefined; return ui.multiplayerStatus === "connecting" || diff --git a/app/components/LocaleTime.tsx b/app/components/LocaleTime.tsx index 53efa13318..abc1808ca6 100644 --- a/app/components/LocaleTime.tsx +++ b/app/components/LocaleTime.tsx @@ -39,12 +39,15 @@ const LocaleTime: React.FC = ({ relative, tooltipDelay, }: Props) => { - const userLocale: string = useUserLocale() || ""; - const dateFormatLong = { + const userLocale = useUserLocale(); + const dateFormatLong: Record = { en_US: "MMMM do, yyyy h:mm a", fr_FR: "'Le 'd MMMM yyyy 'à' H:mm", }; - const formatLocaleLong = dateFormatLong[userLocale] ?? "MMMM do, yyyy h:mm a"; + const formatLocaleLong = + (userLocale ? dateFormatLong[userLocale] : undefined) ?? + "MMMM do, yyyy h:mm a"; + // @ts-expect-error fallback to formatLocaleLong const formatLocale = format?.[userLocale] ?? formatLocaleLong; const [_, setMinutesMounted] = React.useState(0); // eslint-disable-line @typescript-eslint/no-unused-vars const callback = React.useRef<() => void>(); diff --git a/app/components/PaginatedList.tsx b/app/components/PaginatedList.tsx index dd8ecf474c..1784b2177f 100644 --- a/app/components/PaginatedList.tsx +++ b/app/components/PaginatedList.tsx @@ -19,7 +19,8 @@ export interface PaginatedItem { } type Props = WithTranslation & - RootStore & { + RootStore & + React.HTMLAttributes & { fetch?: ( options: Record | undefined ) => Promise | undefined; diff --git a/app/editor/components/EmojiMenu.tsx b/app/editor/components/EmojiMenu.tsx index ce8946aa87..c2e21bacbf 100644 --- a/app/editor/components/EmojiMenu.tsx +++ b/app/editor/components/EmojiMenu.tsx @@ -29,6 +29,7 @@ const EmojiMenu = (props: Props) => { .map((item) => { // We snake_case the shortcode for backwards compatability with gemoji to // avoid multiple formats being written into documents. + // @ts-expect-error emojiMartToGemoji key const shortcode = snakeCase(emojiMartToGemoji[item.id] || item.id); const emoji = item.value; diff --git a/app/editor/menus/code.tsx b/app/editor/menus/code.tsx index 509deb432f..07fa0b7da3 100644 --- a/app/editor/menus/code.tsx +++ b/app/editor/menus/code.tsx @@ -14,7 +14,10 @@ export default function codeMenuItems( ): MenuItem[] { const node = state.selection.$from.node(); - const allLanguages = Object.entries(LANGUAGES); + const allLanguages = Object.entries(LANGUAGES) as [ + keyof typeof LANGUAGES, + string + ][]; const frequentLanguages = getFrequentCodeLanguages(); const frequentLangMenuItems = frequentLanguages.map((value) => { @@ -49,6 +52,7 @@ export default function codeMenuItems( visible: !readOnly, name: "code_block", icon: , + // @ts-expect-error We have a fallback for incorrect mapping label: LANGUAGES[node.attrs.language ?? "none"], children: languageMenuItems, }, diff --git a/app/hooks/useUserLocale.ts b/app/hooks/useUserLocale.ts index 7a981589be..50bfe19fd9 100644 --- a/app/hooks/useUserLocale.ts +++ b/app/hooks/useUserLocale.ts @@ -3,16 +3,9 @@ import useCurrentUser from "./useCurrentUser"; /** * Returns the user's locale, or undefined if the user is not logged in. * - * @param languageCode Whether to only return the language code * @returns The user's locale, or undefined if the user is not logged in */ -export default function useUserLocale(languageCode?: boolean) { +export default function useUserLocale() { const user = useCurrentUser({ rejectOnEmpty: false }); - - if (!user?.language) { - return undefined; - } - - const { language } = user; - return languageCode ? language.split("_")[0] : language; + return user?.language; } diff --git a/app/models/FileOperation.ts b/app/models/FileOperation.ts index ba0bcdc716..2663efc23f 100644 --- a/app/models/FileOperation.ts +++ b/app/models/FileOperation.ts @@ -1,5 +1,9 @@ import { computed, observable } from "mobx"; -import { FileOperationFormat, FileOperationType } from "@shared/types"; +import { + FileOperationFormat, + FileOperationState, + FileOperationType, +} from "@shared/types"; import { bytesToHumanReadable } from "@shared/utils/files"; import User from "./User"; import Model from "./base/Model"; @@ -10,7 +14,7 @@ class FileOperation extends Model { id: string; @observable - state: string; + state: FileOperationState; name: string; diff --git a/app/models/User.ts b/app/models/User.ts index 175486ea5d..461b10651c 100644 --- a/app/models/User.ts +++ b/app/models/User.ts @@ -11,6 +11,7 @@ import { UserRole, } from "@shared/types"; import type { NotificationSettings } from "@shared/types"; +import { locales } from "@shared/utils/date"; import { client } from "~/utils/ApiClient"; import Document from "./Document"; import Group from "./Group"; @@ -39,7 +40,7 @@ class User extends ParanoidModel { @Field @observable - language: string; + language: keyof typeof locales; @Field @observable diff --git a/app/models/base/Model.ts b/app/models/base/Model.ts index b876d0afb5..747eb4e710 100644 --- a/app/models/base/Model.ts +++ b/app/models/base/Model.ts @@ -40,6 +40,7 @@ export default abstract class Model { * @returns A promise that resolves when loading is complete. */ async loadRelations( + this: Model, options: { withoutPolicies?: boolean } = {} ): Promise { const relations = getRelationsForModelClass( @@ -62,7 +63,7 @@ export default abstract class Model { if ("fetch" in store) { const id = this[properties.idKey]; if (id) { - promises.push(store.fetch(id)); + promises.push(store.fetch(id as string)); } } } @@ -145,6 +146,7 @@ export default abstract class Model { if (key === "initialized") { continue; } + // @ts-expect-error TODO this[key] = data[key]; } catch (error) { Logger.warn(`Error setting ${key} on model`, error); diff --git a/app/models/decorators/Relation.ts b/app/models/decorators/Relation.ts index b83d6467f3..5a3f22b5cc 100644 --- a/app/models/decorators/Relation.ts +++ b/app/models/decorators/Relation.ts @@ -17,7 +17,7 @@ type RelationOptions = { type RelationProperties = { /** The name of the property on the model that stores the ID of the relation. */ - idKey: string; + idKey: keyof T; /** A function that returns the class of the relation. */ relationClassResolver: () => typeof Model; /** Options for the relation. */ diff --git a/app/scenes/Collection/components/MembershipPreview.tsx b/app/scenes/Collection/components/MembershipPreview.tsx index 942abf8aea..1c980a57ba 100644 --- a/app/scenes/Collection/components/MembershipPreview.tsx +++ b/app/scenes/Collection/components/MembershipPreview.tsx @@ -43,8 +43,12 @@ const MembershipPreview = ({ collection, limit = 8 }: Props) => { memberships.fetchPage(options), groupMemberships.fetchPage(options), ]); - setUsersCount(users[PAGINATION_SYMBOL].total); - setGroupsCount(groups[PAGINATION_SYMBOL].total); + if (users[PAGINATION_SYMBOL]) { + setUsersCount(users[PAGINATION_SYMBOL].total); + } + if (groups[PAGINATION_SYMBOL]) { + setGroupsCount(groups[PAGINATION_SYMBOL].total); + } } finally { setIsLoading(false); } diff --git a/app/scenes/Invite.tsx b/app/scenes/Invite.tsx index fb74cd1902..0d4e36be60 100644 --- a/app/scenes/Invite.tsx +++ b/app/scenes/Invite.tsx @@ -71,10 +71,11 @@ function Invite({ onSubmit }: Props) { [onSubmit, invites, role, t, users] ); - const handleChange = React.useCallback((ev, index) => { + const handleChange = React.useCallback((ev, index: number) => { setInvites((prevInvites) => { const newInvites = [...prevInvites]; - newInvites[index][ev.target.name] = ev.target.value; + newInvites[index][ev.target.name as keyof InviteRequest] = + ev.target.value; return newInvites; }); }, []); diff --git a/app/scenes/Settings/Members.tsx b/app/scenes/Settings/Members.tsx index 53b22ecafb..48a496dc03 100644 --- a/app/scenes/Settings/Members.tsx +++ b/app/scenes/Settings/Members.tsx @@ -62,7 +62,9 @@ function Members() { filter, role, }); - setTotalPages(Math.ceil(response[PAGINATION_SYMBOL].total / limit)); + if (response[PAGINATION_SYMBOL]) { + setTotalPages(Math.ceil(response[PAGINATION_SYMBOL].total / limit)); + } setUserIds(response.map((u: User) => u.id)); } finally { setIsLoading(false); diff --git a/app/scenes/Settings/Shares.tsx b/app/scenes/Settings/Shares.tsx index 7d8fd29707..0b9c1e1459 100644 --- a/app/scenes/Settings/Shares.tsx +++ b/app/scenes/Settings/Shares.tsx @@ -47,7 +47,9 @@ function Shares() { sort, direction, }); - setTotalPages(Math.ceil(response[PAGINATION_SYMBOL].total / limit)); + if (response[PAGINATION_SYMBOL]) { + setTotalPages(Math.ceil(response[PAGINATION_SYMBOL].total / limit)); + } setShareIds(response.map((u: Share) => u.id)); } finally { setIsLoading(false); diff --git a/app/scenes/Settings/components/FileOperationListItem.tsx b/app/scenes/Settings/components/FileOperationListItem.tsx index bd1600a9da..8e5e932276 100644 --- a/app/scenes/Settings/components/FileOperationListItem.tsx +++ b/app/scenes/Settings/components/FileOperationListItem.tsx @@ -38,7 +38,7 @@ const FileOperationListItem = ({ fileOperation }: Props) => { [FileOperationState.Error]: t("Failed"), }; - const iconMapping = { + const iconMapping: Record = { [FileOperationState.Creating]: , [FileOperationState.Uploading]: , [FileOperationState.Expired]: , @@ -46,8 +46,9 @@ const FileOperationListItem = ({ fileOperation }: Props) => { [FileOperationState.Error]: , }; - const formatMapping = { + const formatMapping: Record = { [FileOperationFormat.JSON]: "JSON", + [FileOperationFormat.Notion]: "Notion", [FileOperationFormat.MarkdownZip]: "Markdown", [FileOperationFormat.HTMLZip]: "HTML", [FileOperationFormat.PDF]: "PDF", diff --git a/app/stores/GroupMembershipsStore.ts b/app/stores/GroupMembershipsStore.ts index 7624c6943f..ec0cd90a70 100644 --- a/app/stores/GroupMembershipsStore.ts +++ b/app/stores/GroupMembershipsStore.ts @@ -5,7 +5,11 @@ import GroupMembership from "~/models/GroupMembership"; import { PaginationParams } from "~/types"; import { client } from "~/utils/ApiClient"; import RootStore from "./RootStore"; -import Store, { PAGINATION_SYMBOL, RPCAction } from "./base/Store"; +import Store, { + PAGINATION_SYMBOL, + PaginatedResponse, + RPCAction, +} from "./base/Store"; export default class GroupMembershipsStore extends Store { actions = [RPCAction.Create, RPCAction.Delete]; @@ -24,7 +28,7 @@ export default class GroupMembershipsStore extends Store { documentId?: string; collectionId?: string; groupId?: string; - }): Promise => { + }): Promise> => { this.isFetching = true; try { @@ -41,7 +45,7 @@ export default class GroupMembershipsStore extends Store { : await client.post(`/groupMemberships.list`, params); invariant(res?.data, "Data not available"); - let response: GroupMembership[] = []; + let response: PaginatedResponse = []; runInAction(`GroupMembershipsStore#fetchPage`, () => { res.data.groups?.forEach(this.rootStore.groups.add); res.data.documents?.forEach(this.rootStore.documents.add); diff --git a/app/stores/MembershipsStore.ts b/app/stores/MembershipsStore.ts index 6210d74427..61cb4b8de2 100644 --- a/app/stores/MembershipsStore.ts +++ b/app/stores/MembershipsStore.ts @@ -5,7 +5,11 @@ import Membership from "~/models/Membership"; import { PaginationParams } from "~/types"; import { client } from "~/utils/ApiClient"; import RootStore from "./RootStore"; -import Store, { PAGINATION_SYMBOL, RPCAction } from "./base/Store"; +import Store, { + PAGINATION_SYMBOL, + PaginatedResponse, + RPCAction, +} from "./base/Store"; export default class MembershipsStore extends Store { actions = [RPCAction.Create, RPCAction.Delete]; @@ -17,14 +21,14 @@ export default class MembershipsStore extends Store { @action fetchPage = async ( params: (PaginationParams & { id?: string }) | undefined - ): Promise => { + ): Promise> => { this.isFetching = true; try { const res = await client.post(`/collections.memberships`, params); invariant(res?.data, "Data not available"); - let response: Membership[] = []; + let response: PaginatedResponse = []; runInAction(`MembershipsStore#fetchPage`, () => { res.data.users.forEach(this.rootStore.users.add); response = res.data.memberships.map(this.add); diff --git a/app/stores/RootStore.ts b/app/stores/RootStore.ts index 297abde26a..3182f5618f 100644 --- a/app/stores/RootStore.ts +++ b/app/stores/RootStore.ts @@ -102,14 +102,11 @@ export default class RootStore { * * @param modelName */ - public getStoreForModelName( - modelName: string - ): RootStore[K] { + public getStoreForModelName(modelName: string) { const storeName = this.getStoreNameForModelName(modelName); const store = this[storeName]; invariant(store, `No store found for model name "${modelName}"`); - - return store; + return store as RootStore[K]; } /** @@ -118,8 +115,9 @@ export default class RootStore { public clear() { Object.getOwnPropertyNames(this) .filter((key) => ["auth", "ui"].includes(key) === false) - .forEach((key) => { - this[key]?.clear?.(); + .forEach((key: keyof RootStore) => { + // @ts-expect-error clear exists on all stores + "clear" in this[key] && this[key].clear(); }); } @@ -128,7 +126,10 @@ export default class RootStore { * * @param StoreClass */ - private registerStore(StoreClass: T, name?: string) { + private registerStore( + StoreClass: T, + name?: keyof RootStore + ) { // @ts-expect-error TS thinks we are instantiating an abstract class. const store = new StoreClass(this); const storeName = name ?? this.getStoreNameForModelName(store.modelName); @@ -136,6 +137,6 @@ export default class RootStore { } private getStoreNameForModelName(modelName: string) { - return pluralize(lowerFirst(modelName)); + return pluralize(lowerFirst(modelName)) as keyof RootStore; } } diff --git a/app/stores/base/Store.ts b/app/stores/base/Store.ts index c89874803e..ede7cb5e23 100644 --- a/app/stores/base/Store.ts +++ b/app/stores/base/Store.ts @@ -17,7 +17,6 @@ import { LifecycleManager } from "~/models/decorators/Lifecycle"; import { getInverseRelationsForModelClass } from "~/models/decorators/Relation"; import type { PaginationParams, PartialExcept, Properties } from "~/types"; import { client } from "~/utils/ApiClient"; -import Logger from "~/utils/Logger"; import { AuthorizationError, NotFoundError } from "~/utils/errors"; export enum RPCAction { @@ -29,10 +28,19 @@ export enum RPCAction { Count = "count", } -export type FetchPageParams = PaginationParams & Record; - export const PAGINATION_SYMBOL = Symbol.for("pagination"); +export type PaginatedResponse = T[] & { + [PAGINATION_SYMBOL]?: { + total: number; + limit: number; + offset: number; + nextPath: string; + }; +}; + +export type FetchPageParams = PaginationParams & Record; + export default abstract class Store { @observable data: Map = new Map(); @@ -129,6 +137,7 @@ export default abstract class Store { if (deleteBehavior === "cascade") { store.remove(item.id); } else if (deleteBehavior === "null") { + // @ts-expect-error TODO item[relation.idKey] = null; } }); @@ -166,6 +175,7 @@ export default abstract class Store { if (archiveBehavior === "cascade") { store.addToArchive(item); } else if (archiveBehavior === "null") { + // @ts-expect-error TODO item[relation.idKey] = null; } }); @@ -316,7 +326,9 @@ export default abstract class Store { } @action - fetchPage = async (params?: FetchPageParams | undefined): Promise => { + fetchPage = async ( + params?: FetchPageParams | undefined + ): Promise> => { if (!this.actions.includes(RPCAction.List)) { throw new Error(`Cannot list ${this.modelName}`); } @@ -327,7 +339,7 @@ export default abstract class Store { const res = await client.post(`/${this.apiEndpoint}.list`, params); invariant(res?.data, "Data not available"); - let response: T[] = []; + let response: PaginatedResponse = []; runInAction(`list#${this.modelName}`, () => { this.addPolicies(res.policies); @@ -343,15 +355,16 @@ export default abstract class Store { }; @action - fetchAll = async (params?: Record): Promise => { + fetchAll = async ( + params?: Record + ): Promise> => { const limit = params?.limit ?? Pagination.defaultLimit; const response = await this.fetchPage({ ...params, limit }); - if (!response[PAGINATION_SYMBOL]) { - Logger.warn("Pagination information not available in response", { - params, - }); - } + invariant( + response[PAGINATION_SYMBOL], + "Pagination information not available in response" + ); const pages = Math.ceil(response[PAGINATION_SYMBOL].total / limit); const fetchPages = []; diff --git a/app/utils/date.ts b/app/utils/date.ts index 8918eb2d9c..e38113f92f 100644 --- a/app/utils/date.ts +++ b/app/utils/date.ts @@ -17,13 +17,14 @@ import { getCurrentTimeAsString, unicodeCLDRtoBCP47, dateLocale, + locales, } from "@shared/utils/date"; import User from "~/models/User"; export function dateToHeading( dateTime: string, t: TFunction, - userLocale: string | null | undefined + userLocale: keyof typeof locales | undefined ) { const date = Date.parse(dateTime); const now = new Date(); @@ -84,7 +85,7 @@ export function dateToHeading( export function dateToExpiry( dateTime: string, t: TFunction, - userLocale: string | null | undefined + userLocale: keyof typeof locales | null | undefined ) { const date = Date.parse(dateTime); const now = new Date(); diff --git a/app/utils/download.ts b/app/utils/download.ts index 624d2f8f83..59d8aa3ae1 100644 --- a/app/utils/download.ts +++ b/app/utils/download.ts @@ -33,7 +33,9 @@ export default function download( // reverse arguments, allowing download.bind(true, "text/xml", "export.xml") to act as a callback // @ts-expect-error this is weird code x = [x, m]; + // @ts-expect-error this is weird code m = x[0]; + // @ts-expect-error this is weird code x = x[1]; } diff --git a/app/utils/language.ts b/app/utils/language.ts index ee731c4a2b..1f75a275f3 100644 --- a/app/utils/language.ts +++ b/app/utils/language.ts @@ -1,5 +1,5 @@ import { i18n } from "i18next"; -import { unicodeCLDRtoBCP47 } from "@shared/utils/date"; +import { locales, unicodeCLDRtoBCP47 } from "@shared/utils/date"; import Desktop from "./Desktop"; /** @@ -25,7 +25,7 @@ export function formatNumber(number: number, locale: string) { export function detectLanguage() { const [ln, r] = navigator.language.split("-"); const region = (r || ln).toUpperCase(); - return `${ln}_${region}`; + return `${ln}_${region}` as keyof typeof locales; } /** diff --git a/app/utils/pageVisibility.ts b/app/utils/pageVisibility.ts index d03e0305bd..040daf8eb1 100644 --- a/app/utils/pageVisibility.ts +++ b/app/utils/pageVisibility.ts @@ -19,5 +19,5 @@ export function getVisibilityListener(): string { } export function getPageVisible(): boolean { - return !document[hidden]; + return !document[hidden as keyof Document]; } diff --git a/plugins/slack/client/components/SlackListItem.tsx b/plugins/slack/client/components/SlackListItem.tsx index 5b3ab1120d..7efa2e56d4 100644 --- a/plugins/slack/client/components/SlackListItem.tsx +++ b/plugins/slack/client/components/SlackListItem.tsx @@ -40,7 +40,7 @@ function SlackListItem({ integration, collection }: Props) { toast.success(t("Settings saved")); }; - const mapping = { + const mapping: Record = { "documents.publish": t("document published"), "documents.update": t("document updated"), }; diff --git a/plugins/slack/server/api/hooks.ts b/plugins/slack/server/api/hooks.ts index 6c93ea3013..ee9aac1f75 100644 --- a/plugins/slack/server/api/hooks.ts +++ b/plugins/slack/server/api/hooks.ts @@ -79,7 +79,10 @@ router.post( return; } // get content for unfurled links - const unfurls = {}; + const unfurls: Record< + string, + { title: string; text: string; color?: string | undefined } + > = {}; for (const link of event.links) { const documentId = parseDocumentSlug(link.url); @@ -109,7 +112,7 @@ router.post( unfurls[link.url] = { title: doc.title, text: doc.getSummary(), - color: doc.collection?.color, + color: doc.collection?.color ?? undefined, }; } } diff --git a/plugins/slack/shared/SlackUtils.ts b/plugins/slack/shared/SlackUtils.ts index 8a14424978..956a8454a6 100644 --- a/plugins/slack/shared/SlackUtils.ts +++ b/plugins/slack/shared/SlackUtils.ts @@ -74,7 +74,7 @@ export class SlackUtils { redirectUri = SlackUtils.callbackUrl() ): string { const baseUrl = SlackUtils.authBaseUrl; - const params = { + const params: Record = { client_id: env.SLACK_CLIENT_ID, scope: scopes ? scopes.join(" ") : "", redirect_uri: redirectUri, diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts index cf4aab8de9..0aa80c4bb3 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts @@ -85,7 +85,10 @@ describe("DeliverWebhookTask", () => { event, }); - const headers = fetchMock.mock.calls[0]![1]!.headers!; + const headers = fetchMock.mock.calls[0]![1]!.headers! as Record< + string, + string + >; expect(fetchMock).toHaveBeenCalledTimes(1); expect(headers["Outline-Signature"]).toMatch(/^t=[0-9]+,s=[a-z0-9]+$/); diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts index 801e3a6f7b..158750a410 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts @@ -692,7 +692,7 @@ export default class DeliverWebhookTask extends BaseTask { "user-agent": `Outline-Webhooks${ env.VERSION ? `/${env.VERSION.slice(0, 7)}` : "" }`, - }; + } as Record; const signature = subscription.signature(JSON.stringify(requestBody)); if (signature) { diff --git a/server/emails/templates/index.ts b/server/emails/templates/index.ts index 8380e01012..261e9c7a66 100644 --- a/server/emails/templates/index.ts +++ b/server/emails/templates/index.ts @@ -2,9 +2,9 @@ import { Hook, PluginManager } from "@server/utils/PluginManager"; import { requireDirectory } from "@server/utils/fs"; import BaseEmail from "./BaseEmail"; -const emails = {}; +const emails: Record = {}; -requireDirectory<{ default: BaseEmail }>(__dirname).forEach( +requireDirectory<{ default: typeof BaseEmail }>(__dirname).forEach( ([module, id]) => { if (id === "index") { return; diff --git a/server/index.ts b/server/index.ts index 2dfc6187c5..3b8ba88967 100644 --- a/server/index.ts +++ b/server/index.ts @@ -127,8 +127,8 @@ async function start(_id: number, disconnect: () => void) { } Logger.info("lifecycle", `Starting ${name} service`); - const init = services[name]; - await init(app, server, env.SERVICES); + const init = services[name as keyof typeof services]; + init(app, server as https.Server, env.SERVICES); } server.on("error", (err) => { diff --git a/server/logging/Logger.ts b/server/logging/Logger.ts index 4751e98dd7..3924409b0b 100644 --- a/server/logging/Logger.ts +++ b/server/logging/Logger.ts @@ -237,7 +237,7 @@ class Logger { } if (isObject(input)) { - const output = { ...input }; + const output: Record = { ...input }; for (const key of Object.keys(output)) { if (isObject(output[key])) { @@ -252,7 +252,7 @@ class Logger { output[key] = this.sanitize(output[key], level + 1); } } - return output; + return output as T; } return input; diff --git a/server/models/Collection.test.ts b/server/models/Collection.test.ts index 2acf22370e..46a076b1b2 100644 --- a/server/models/Collection.test.ts +++ b/server/models/Collection.test.ts @@ -38,7 +38,7 @@ describe("getDocumentParents", () => { }); const result = collection.getDocumentParents(document.id); expect(result?.length).toBe(1); - expect(result[0]).toBe(parent.id); + expect(result ? result[0] : undefined).toBe(parent.id); }); test("should return array of parent document ids", async () => { diff --git a/server/models/User.ts b/server/models/User.ts index 8d67352bfc..6322bb2076 100644 --- a/server/models/User.ts +++ b/server/models/User.ts @@ -45,6 +45,7 @@ import { } from "@shared/types"; import { UserRoleHelper } from "@shared/utils/UserRoleHelper"; import { stringToColor } from "@shared/utils/color"; +import { locales } from "@shared/utils/date"; import env from "@server/env"; import DeleteAttachmentTask from "@server/queues/tasks/DeleteAttachmentTask"; import parseAttachmentIds from "@server/utils/parseAttachmentIds"; @@ -179,8 +180,8 @@ class User extends ParanoidModel< @Default(env.DEFAULT_LANGUAGE) @IsIn([languages]) - @Column - language: string; + @Column(DataType.STRING) + language: keyof typeof locales | null; @AllowNull @IsUrlOrRelativePath diff --git a/server/models/base/Model.ts b/server/models/base/Model.ts index b3d96be98c..845bbd1b42 100644 --- a/server/models/base/Model.ts +++ b/server/models/base/Model.ts @@ -69,6 +69,7 @@ class Model< ) { const difference = Object.keys(previous) .concat(Object.keys(current)) + // @ts-expect-error TODO .filter((key) => !isEqual(previous[key], current[key])); previousAttributes[change] = pick( diff --git a/server/models/decorators/CounterCache.ts b/server/models/decorators/CounterCache.ts index 88fbcb4eb9..44de893c0b 100644 --- a/server/models/decorators/CounterCache.ts +++ b/server/models/decorators/CounterCache.ts @@ -36,11 +36,14 @@ export function CounterCache< setImmediate(() => { const recalculateCache = (offset: number) => async (model: InstanceType) => { - const cacheKey = `${cacheKeyPrefix}:${model[options.foreignKey]}`; + const cacheKey = `${cacheKeyPrefix}:${ + model[options.foreignKey as keyof typeof model] + }`; const count = await modelClass.count({ where: { - [options.foreignKey]: model[options.foreignKey], + [options.foreignKey]: + model[options.foreignKey as keyof typeof model], }, }); await CacheHelper.setData(cacheKey, count + offset); diff --git a/server/models/helpers/SearchHelper.ts b/server/models/helpers/SearchHelper.ts index 365add62d4..c0c55d1a40 100644 --- a/server/models/helpers/SearchHelper.ts +++ b/server/models/helpers/SearchHelper.ts @@ -355,7 +355,10 @@ export default class SearchHelper { options: SearchOptions ) { const teamId = model instanceof Team ? model.id : model.teamId; - const where: WhereOptions = { + const where: WhereOptions & { + [Op.or]: WhereOptions[]; + [Op.and]: WhereOptions[]; + } = { teamId, [Op.or]: [], [Op.and]: [ diff --git a/server/policies/cancan.ts b/server/policies/cancan.ts index cd2e5b3b9a..060fbc08dc 100644 --- a/server/policies/cancan.ts +++ b/server/policies/cancan.ts @@ -112,7 +112,7 @@ export class CanCan { * and sent in API responses to allow clients to adjust which UI is displayed. */ public serialize = (performer: Model, target: Model | null): Policy => { - const output = {}; + const output: Record = {}; abilities.forEach((ability) => { if ( performer instanceof ability.model && @@ -184,11 +184,14 @@ export class CanCan { (ability.action === "manage" || action === ability.action) ); - private get = (obj: object, key: string) => + private get = (obj: T, key: keyof T) => "get" in obj && typeof obj.get === "function" ? obj.get(key) : obj[key]; - private isPartiallyEqual = (target: object, obj: object) => - Object.keys(obj).every((key) => this.get(target, key) === obj[key]); + private isPartiallyEqual = (target: T, obj: T) => + Object.keys(obj).every( + // @ts-expect-error TODO + (key: keyof T) => this.get(target, key) === obj[key] + ); private getConditionFn = (condition: object) => (performer: Model, target: Model) => @@ -204,6 +207,7 @@ export class CanCan { if (typeof value === "string") { return [value]; } + // @ts-expect-error - TS doesn't know that value is iterable if (typeof value[Symbol.iterator] === "function") { // @ts-expect-error - TS doesn't know that value is iterable return [...value]; diff --git a/server/queues/processors/BaseProcessor.ts b/server/queues/processors/BaseProcessor.ts index 6cf0c13f9f..72c379ce0d 100644 --- a/server/queues/processors/BaseProcessor.ts +++ b/server/queues/processors/BaseProcessor.ts @@ -1,7 +1,7 @@ import { Event } from "@server/types"; export default abstract class BaseProcessor { - static applicableEvents: Event["name"][] | ["*"] = []; + static applicableEvents: (Event["name"] | "*")[] = []; public abstract perform(event: Event): Promise; } diff --git a/server/queues/processors/index.ts b/server/queues/processors/index.ts index 3834adb035..327e7226b1 100644 --- a/server/queues/processors/index.ts +++ b/server/queues/processors/index.ts @@ -2,9 +2,9 @@ import { Hook, PluginManager } from "@server/utils/PluginManager"; import { requireDirectory } from "@server/utils/fs"; import BaseProcessor from "./BaseProcessor"; -const processors = {}; +const processors: Record = {}; -requireDirectory<{ default: BaseProcessor }>(__dirname).forEach( +requireDirectory<{ default: typeof BaseProcessor }>(__dirname).forEach( ([module, id]) => { if (id === "index") { return; diff --git a/server/queues/tasks/EmailTask.ts b/server/queues/tasks/EmailTask.ts index fa0a564bd3..618226bb81 100644 --- a/server/queues/tasks/EmailTask.ts +++ b/server/queues/tasks/EmailTask.ts @@ -15,6 +15,7 @@ export default class EmailTask extends BaseTask { ); } + // @ts-expect-error We won't instantiate an abstract class const email = new EmailClass(props, metadata); return email.send(); } diff --git a/server/queues/tasks/index.ts b/server/queues/tasks/index.ts index 4c75d3a176..b59e30343b 100644 --- a/server/queues/tasks/index.ts +++ b/server/queues/tasks/index.ts @@ -2,9 +2,9 @@ import { Hook, PluginManager } from "@server/utils/PluginManager"; import { requireDirectory } from "@server/utils/fs"; import BaseTask from "./BaseTask"; -const tasks = {}; +const tasks: Record = {}; -requireDirectory<{ default: BaseTask }>(__dirname).forEach( +requireDirectory<{ default: typeof BaseTask }>(__dirname).forEach( ([module, id]) => { if (id === "index") { return; diff --git a/server/routes/api/collections/collections.ts b/server/routes/api/collections/collections.ts index f75ed915c8..2cbf08dd7b 100644 --- a/server/routes/api/collections/collections.ts +++ b/server/routes/api/collections/collections.ts @@ -813,7 +813,9 @@ router.post( const { transaction } = ctx.state; const collectionIds = await user.collectionIds({ transaction }); - const where: WhereOptions = { + const where: WhereOptions & { + [Op.and]: WhereOptions[]; + } = { teamId: user.teamId, [Op.and]: [ { diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index ecf472504b..4a47a44e7b 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -97,7 +97,9 @@ router.post( // always filter by the current team const { user } = ctx.state.auth; - const where: WhereOptions = { + const where: WhereOptions & { + [Op.and]: WhereOptions[]; + } = { teamId: user.teamId, [Op.and]: [ { diff --git a/server/routes/api/users/schema.ts b/server/routes/api/users/schema.ts index caedad1ad8..fd019af5a7 100644 --- a/server/routes/api/users/schema.ts +++ b/server/routes/api/users/schema.ts @@ -1,6 +1,8 @@ import { z } from "zod"; import { NotificationEventType, UserPreference, UserRole } from "@shared/types"; +import { locales } from "@shared/utils/date"; import User from "@server/models/User"; +import { zodEnumFromObjectKeys } from "@server/utils/zod"; import { BaseSchema } from "../schema"; const BaseIdSchema = z.object({ @@ -80,7 +82,7 @@ export const UsersUpdateSchema = BaseSchema.extend({ id: z.string().uuid().optional(), name: z.string().optional(), avatarUrl: z.string().nullish(), - language: z.string().optional(), + language: zodEnumFromObjectKeys(locales).optional(), preferences: z.record(z.nativeEnum(UserPreference), z.boolean()).optional(), }), }); diff --git a/server/routes/index.ts b/server/routes/index.ts index 871e2b457b..b0af61a972 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -97,7 +97,7 @@ router.use(compress()); router.get("/locales/:lng.json", async (ctx) => { const { lng } = ctx.params; - if (!languages.includes(lng)) { + if (!languages.includes(lng as (typeof languages)[number])) { ctx.status = 404; return; } diff --git a/server/scripts/20230313000000-migrate-notification-settings.ts b/server/scripts/20230313000000-migrate-notification-settings.ts index c50e46c57c..c0cbf9d9d0 100644 --- a/server/scripts/20230313000000-migrate-notification-settings.ts +++ b/server/scripts/20230313000000-migrate-notification-settings.ts @@ -33,6 +33,7 @@ export default async function main(exit = false) { user.notificationSettings = {}; for (const eventType of eventTypes) { + // @ts-expect-error old migration user.notificationSettings[eventType] = true; user.changed("notificationSettings", true); } diff --git a/server/services/index.ts b/server/services/index.ts index f4e1894c65..990e944ac4 100644 --- a/server/services/index.ts +++ b/server/services/index.ts @@ -12,4 +12,4 @@ export default { web, worker, cron, -}; +} as const; diff --git a/server/services/worker.ts b/server/services/worker.ts index 5e0e7ad5f8..6f309c7a81 100644 --- a/server/services/worker.ts +++ b/server/services/worker.ts @@ -3,6 +3,7 @@ import Logger from "@server/logging/Logger"; import { setResource, addTags } from "@server/logging/tracer"; import { traceFunction } from "@server/logging/tracing"; import HealthMonitor from "@server/queues/HealthMonitor"; +import { Event } from "@server/types"; import { initI18n } from "@server/utils/i18n"; import { globalEventQueue, @@ -25,7 +26,7 @@ export default function init() { spanName: "process", isRoot: true, })(async function (job) { - const event = job.data; + const event = job.data as Event; let err; setResource(`Event.${event.name}`); @@ -99,6 +100,7 @@ export default function init() { ); } + // @ts-expect-error We will not instantiate an abstract class const processor = new ProcessorClass(); if (processor.perform) { @@ -146,6 +148,7 @@ export default function init() { Logger.info("worker", `${name} running`, props); + // @ts-expect-error We will not instantiate an abstract class const task = new TaskClass(); try { diff --git a/server/utils/decorators/Public.ts b/server/utils/decorators/Public.ts index 7f9106986d..10db2b3844 100644 --- a/server/utils/decorators/Public.ts +++ b/server/utils/decorators/Public.ts @@ -23,9 +23,9 @@ export class PublicEnvironmentRegister { static registerEnv(env: Environment) { process.nextTick(() => { const vars: string[] = Reflect.getMetadata(key, env) ?? []; - vars.forEach((key: string) => { - if (isUndefined(this.publicEnv[key])) { - this.publicEnv[key] = env[key]; + vars.forEach((k: keyof Environment) => { + if (isUndefined(this.publicEnv[k])) { + this.publicEnv[k] = env[k]; } }); }); diff --git a/server/utils/diff.ts b/server/utils/diff.ts index e19c940d0f..5e5104d950 100644 --- a/server/utils/diff.ts +++ b/server/utils/diff.ts @@ -59,13 +59,13 @@ type Token = { }; type Segment = { - beforeTokens: Array; - afterTokens: Array; + beforeTokens: Token[]; + afterTokens: Token[]; beforeIndex: number; afterIndex: number; - beforeMap: object; - afterMap: object; + beforeMap: Record; + afterMap: Record; }; type MatchT = { @@ -232,7 +232,7 @@ function Match( * * @return {Array} The list of tokens. */ -function htmlToTokens(html: string): Array { +function htmlToTokens(html: string): Token[] { let mode = "char"; let currentWord = ""; let currentAtomicTag = ""; @@ -364,7 +364,7 @@ function getKeyForToken(token: string): string { * * @return {Object} A mapping that can be used to search for tokens. */ -function createMap(tokens: Array): object { +function createMap(tokens: Token[]) { return tokens.reduce(function (map, token, index) { if (map[token.key]) { map[token.key].push(index); @@ -651,8 +651,8 @@ function getFullMatch( * @return {Segment} The segment object. */ function createSegment( - beforeTokens: Array, - afterTokens: Array, + beforeTokens: Token[], + afterTokens: Token[], beforeIndex: number, afterIndex: number ): Segment { @@ -759,8 +759,8 @@ function findMatchingBlocks(segment: Segment): Array { * - {number} endInAfter The end of the range in the list of after tokens. */ function calculateOperations( - beforeTokens: Array, - afterTokens: Array + beforeTokens: Token[], + afterTokens: Token[] ): Array { if (!beforeTokens) { throw new Error("Missing beforeTokens"); @@ -902,8 +902,8 @@ function TokenWrapper(tokens: any) { * and whether those tokens are wrappable or not. The result should be a string. */ TokenWrapper.prototype.combine = function ( - mapFn: (wrappable: boolean, tokens: Array) => void, - tagFn: (tokens: Array) => void + mapFn: (wrappable: boolean, tokens: Token[]) => void, + tagFn: (tokens: Token[]) => void ) { const notes = this.notes; const tokens = this.tokens.slice(); @@ -1069,7 +1069,8 @@ function renderOperations( return operations.reduce(function (rendering, op, index) { return ( rendering + - OPS[op.action]( + // @ts-expect-error TODO + OPS[op.action]?.( op, beforeTokens, afterTokens, diff --git a/server/utils/indexing.ts b/server/utils/indexing.ts index 56dbc6b465..8d2b509646 100644 --- a/server/utils/indexing.ts +++ b/server/utils/indexing.ts @@ -6,7 +6,7 @@ import { Collection, Document, Star } from "@server/models"; export async function collectionIndexing( teamId: string, { transaction }: FindOptions -): Promise<{ [id: string]: string }> { +) { const collections = await Collection.findAll({ where: { teamId, @@ -34,16 +34,14 @@ export async function collectionIndexing( await Promise.all(promises); - const indexedCollections = {}; + const indexedCollections: Record = {}; sortable.forEach((collection) => { indexedCollections[collection.id] = collection.index; }); return indexedCollections; } -export async function starIndexing( - userId: string -): Promise<{ [id: string]: string }> { +export async function starIndexing(userId: string) { const stars = await Star.findAll({ where: { userId }, }); @@ -77,7 +75,7 @@ export async function starIndexing( await Promise.all(promises); - const indexedStars = {}; + const indexedStars: Record = {}; sortable.forEach((star) => { indexedStars[star.id] = star.index; }); diff --git a/server/utils/readManifestFile.ts b/server/utils/readManifestFile.ts index c6691d7c33..bfb411e22a 100644 --- a/server/utils/readManifestFile.ts +++ b/server/utils/readManifestFile.ts @@ -4,6 +4,7 @@ import Logger from "@server/logging/Logger"; export type Chunk = { file: string; + imports: string[]; src: string; isEntry?: boolean; }; diff --git a/server/utils/turndown/tables.ts b/server/utils/turndown/tables.ts index 7a38149d04..536cc564ec 100644 --- a/server/utils/turndown/tables.ts +++ b/server/utils/turndown/tables.ts @@ -10,7 +10,11 @@ const tableShouldBeSkippedCache = new WeakMap(); function getAlignment(node: HTMLElement) { return node - ? (node.getAttribute("align") || node.style.textAlign || "").toLowerCase() + ? (( + node.getAttribute("align") || + node.style.textAlign || + "" + ).toLowerCase() as "left" | "right" | "center") : ""; } diff --git a/server/utils/validators.ts b/server/utils/validators.ts index 5a97f5aadf..7b1712c4e8 100644 --- a/server/utils/validators.ts +++ b/server/utils/validators.ts @@ -19,7 +19,7 @@ export function CannotUseWithout( validator: { validate(value: T, args: ValidationArguments) { const obj = args.object as unknown as T; - const required = args.constraints[0] as string; + const required = args.constraints[0] as keyof T; return obj[required] !== undefined; }, defaultMessage(args: ValidationArguments) { diff --git a/shared/editor/lib/Extension.ts b/shared/editor/lib/Extension.ts index d70b02e402..af866571a8 100644 --- a/shared/editor/lib/Extension.ts +++ b/shared/editor/lib/Extension.ts @@ -5,7 +5,9 @@ import { Command, Plugin } from "prosemirror-state"; import { Primitive } from "utility-types"; import type { Editor } from "../../../app/editor"; -export type CommandFactory = (attrs?: Record) => Command; +export type CommandFactory = ( + attrs?: Record +) => Command | void; export type WidgetProps = { rtl: boolean; readOnly: boolean | undefined }; diff --git a/shared/editor/lib/ExtensionManager.ts b/shared/editor/lib/ExtensionManager.ts index 4ce929a103..2fe94f4249 100644 --- a/shared/editor/lib/ExtensionManager.ts +++ b/shared/editor/lib/ExtensionManager.ts @@ -186,6 +186,7 @@ export default class ExtensionManager { .map((extension) => ["node", "mark"].includes(extension.type) ? extension.keys({ + // @ts-expect-error TODO type: schema[`${extension.type}s`][extension.name], schema, }) @@ -206,6 +207,7 @@ export default class ExtensionManager { .filter((extension) => extension.inputRules) .map((extension) => extension.inputRules({ + // @ts-expect-error TODO type: schema[`${extension.type}s`][extension.name], schema, }) @@ -222,13 +224,14 @@ export default class ExtensionManager { .filter((extension) => extension.commands) .reduce((allCommands, extension) => { const { name, type } = extension; - const commands = {}; + const commands: Record = {}; // @ts-expect-error FIXME const value = extension.commands({ schema, ...(["node", "mark"].includes(type) ? { + // @ts-expect-error TODO type: schema[`${type}s`][name], } : {}), @@ -239,12 +242,12 @@ export default class ExtensionManager { attrs: Record ) => { if (!view.editable && !extension.allowInReadOnly) { - return false; + return; } if (extension.focusAfterExecution) { view.focus(); } - return callback(attrs)(view.state, view.dispatch, view); + return callback(attrs)?.(view.state, view.dispatch, view); }; const handle = (_name: string, _value: CommandFactory) => { @@ -252,8 +255,8 @@ export default class ExtensionManager { commands[_name] = (attrs: Record) => _value.forEach((callback) => apply(callback, attrs)); } else if (typeof _value === "function") { - commands[_name] = (attrs: Record) => - apply(_value, attrs); + commands[_name] = ((attrs: Record) => + apply(_value, attrs)) as CommandFactory; } }; diff --git a/shared/editor/lib/code.ts b/shared/editor/lib/code.ts index 51ca7c5681..92aff343e9 100644 --- a/shared/editor/lib/code.ts +++ b/shared/editor/lib/code.ts @@ -1,4 +1,5 @@ import Storage from "../../utils/Storage"; +import { LANGUAGES } from "../extensions/Prism"; const RecentStorageKey = "rme-code-language"; const StorageKey = "frequent-code-languages"; @@ -44,9 +45,10 @@ export const getRecentCodeLanguage = () => Storage.get(RecentStorageKey); export const getFrequentCodeLanguages = () => { const recentLang = Storage.get(RecentStorageKey); - const frequentLangEntries = Object.entries( - (Storage.get(StorageKey) ?? {}) as Record - ); + const frequentLangEntries = Object.entries(Storage.get(StorageKey) ?? {}) as [ + keyof typeof LANGUAGES, + number + ][]; const frequentLangs = sortFrequencies(frequentLangEntries) .slice(0, FrequentlyUsedCount.Get) @@ -61,5 +63,5 @@ export const getFrequentCodeLanguages = () => { return frequentLangs; }; -const sortFrequencies = (freqs: [string, number][]) => +const sortFrequencies = (freqs: [T, number][]) => freqs.sort((a, b) => (a[1] >= b[1] ? -1 : 1)); diff --git a/shared/editor/lib/emoji.ts b/shared/editor/lib/emoji.ts index acdfca2916..0ff868e49d 100644 --- a/shared/editor/lib/emoji.ts +++ b/shared/editor/lib/emoji.ts @@ -21,6 +21,7 @@ export const nameToEmoji: Record = Object.values( (data as EmojiMartData).emojis ).reduce((acc, emoji) => { const convertedId = snakeCase(emoji.id); + // @ts-expect-error emojiMartToGemoji is a valid map acc[emojiMartToGemoji[convertedId] ?? convertedId] = emoji.skins[0].native; return acc; }, {}); diff --git a/shared/editor/lib/prosemirror-recreate-transform/getFromPath.ts b/shared/editor/lib/prosemirror-recreate-transform/getFromPath.ts index 63d564e9fb..7364442ff4 100644 --- a/shared/editor/lib/prosemirror-recreate-transform/getFromPath.ts +++ b/shared/editor/lib/prosemirror-recreate-transform/getFromPath.ts @@ -13,7 +13,7 @@ export function getFromPath(obj: JSONValue, path: string): JSONValue { if (typeof obj !== "object") { throw new Error(); } - const property = pathParts.shift() as string; + const property = pathParts.shift() as keyof JSONValue; obj = obj[property]; } return obj; diff --git a/shared/editor/nodes/Heading.ts b/shared/editor/nodes/Heading.ts index 04d6ed57de..f9c19513c6 100644 --- a/shared/editor/nodes/Heading.ts +++ b/shared/editor/nodes/Heading.ts @@ -220,7 +220,7 @@ export default class Heading extends Node { get plugins() { const getAnchors = (doc: ProsemirrorNode) => { const decorations: Decoration[] = []; - const previouslySeen = {}; + const previouslySeen: Record = {}; doc.descendants((node, pos) => { if (node.type.name !== this.name) { diff --git a/shared/i18n/index.ts b/shared/i18n/index.ts index 7a8cf28120..e315ef413c 100644 --- a/shared/i18n/index.ts +++ b/shared/i18n/index.ts @@ -1,6 +1,13 @@ +import { locales } from "../utils/date"; + +type LanguageOption = { + label: string; + value: keyof typeof locales; +}; + // Note: Updating the available languages? Make sure to also update the // locales array in shared/utils/date.ts to enable translation for timestamps. -export const languageOptions = [ +export const languageOptions: LanguageOption[] = [ { label: "English (US)", value: "en_US", diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 6b3f21c409..42e10c9c68 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -168,6 +168,7 @@ "Are you sure you want to permanently delete this entire comment thread?": "Are you sure you want to permanently delete this entire comment thread?", "Are you sure you want to permanently delete this comment?": "Are you sure you want to permanently delete this comment?", "Confirm": "Confirm", + "manage access": "manage access", "view and edit access": "view and edit access", "view only access": "view only access", "no access": "no access", diff --git a/shared/types.ts b/shared/types.ts index 659ded7184..5a6488cb07 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -292,20 +292,22 @@ export type NotificationSettings = { | boolean; }; -export const NotificationEventDefaults = { - [NotificationEventType.PublishDocument]: false, - [NotificationEventType.UpdateDocument]: true, - [NotificationEventType.CreateCollection]: false, - [NotificationEventType.CreateComment]: true, - [NotificationEventType.MentionedInDocument]: true, - [NotificationEventType.MentionedInComment]: true, - [NotificationEventType.InviteAccepted]: true, - [NotificationEventType.Onboarding]: true, - [NotificationEventType.Features]: true, - [NotificationEventType.ExportCompleted]: true, - [NotificationEventType.AddUserToDocument]: true, - [NotificationEventType.AddUserToCollection]: true, -}; +export const NotificationEventDefaults: Record = + { + [NotificationEventType.PublishDocument]: false, + [NotificationEventType.UpdateDocument]: true, + [NotificationEventType.CreateCollection]: false, + [NotificationEventType.CreateComment]: true, + [NotificationEventType.CreateRevision]: false, + [NotificationEventType.MentionedInDocument]: true, + [NotificationEventType.MentionedInComment]: true, + [NotificationEventType.InviteAccepted]: true, + [NotificationEventType.Onboarding]: true, + [NotificationEventType.Features]: true, + [NotificationEventType.ExportCompleted]: true, + [NotificationEventType.AddUserToDocument]: true, + [NotificationEventType.AddUserToCollection]: true, + }; export enum UnfurlResourceType { OEmbed = "oembed", diff --git a/shared/utils/ProsemirrorHelper.ts b/shared/utils/ProsemirrorHelper.ts index b8f0003f5e..595757d775 100644 --- a/shared/utils/ProsemirrorHelper.ts +++ b/shared/utils/ProsemirrorHelper.ts @@ -279,7 +279,7 @@ export class ProsemirrorHelper { */ static getHeadings(doc: Node, schema: Schema) { const headings: Heading[] = []; - const previouslySeen = {}; + const previouslySeen: Record = {}; doc.forEach((node) => { if (node.type.name === "heading") { diff --git a/shared/utils/Storage.ts b/shared/utils/Storage.ts index 1e2de4a091..451ac7e4d1 100644 --- a/shared/utils/Storage.ts +++ b/shared/utils/Storage.ts @@ -75,7 +75,7 @@ class Storage { * when localStorage is not available. */ class MemoryStorage { - private data = {}; + private data: Record = {}; getItem(key: string) { return this.data[key] || null; diff --git a/shared/utils/date.ts b/shared/utils/date.ts index 82b5fff429..397b2c7a46 100644 --- a/shared/utils/date.ts +++ b/shared/utils/date.ts @@ -189,7 +189,7 @@ const locales = { * @param language The user language * @returns The date-fns locale. */ -export function dateLocale(language: string | null | undefined) { +export function dateLocale(language: keyof typeof locales | undefined | null) { return language ? locales[language] : undefined; } diff --git a/shared/utils/emoji.ts b/shared/utils/emoji.ts index 0194012eda..7da06490a2 100644 --- a/shared/utils/emoji.ts +++ b/shared/utils/emoji.ts @@ -51,7 +51,9 @@ type GetVariantsProps = { const getVariants = ({ id, name, skins }: GetVariantsProps): EmojiVariants => skins.reduce((obj, skin) => { - const skinToneCode = skin.unified.split("-")[1]; + const skinToneCode = skin.unified.split( + "-" + )[1] as keyof typeof SKINTONE_CODE_TO_ENUM; const skinToneType = SKINTONE_CODE_TO_ENUM[skinToneCode] ?? EmojiSkinTone.Default; obj[skinToneType] = { id, name, value: skin.native } satisfies Emoji; @@ -72,7 +74,8 @@ const EMOJI_ID_TO_VARIANTS = Object.entries(Emojis).reduce( const CATEGORY_TO_EMOJI_IDS: Record = Categories.reduce((obj, { id, emojis }) => { - const category = EmojiCategory[capitalize(id)]; + const key = capitalize(id) as EmojiCategory; + const category = EmojiCategory[key]; if (!category) { return obj; } diff --git a/shared/utils/naturalSort.ts b/shared/utils/naturalSort.ts index 110e901f9c..d3cd4e255d 100644 --- a/shared/utils/naturalSort.ts +++ b/shared/utils/naturalSort.ts @@ -14,7 +14,7 @@ const stripEmojis = (value: string) => value.replace(regex, ""); const cleanValue = (value: string) => stripEmojis(deburr(value)); -function getSortByField( +function getSortByField>( item: T, keyOrCallback: string | ((item: T) => string) ) { @@ -25,7 +25,7 @@ function getSortByField( return cleanValue(field); } -function naturalSortBy( +function naturalSortBy>( items: T[], key: string | ((item: T) => string), sortOptions?: NaturalSortOptions diff --git a/tsconfig.json b/tsconfig.json index 2736d3fc1f..e697558ccd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,6 @@ "noEmit": true, "skipLibCheck": true, "ignoreDeprecations": "5.0", - "suppressImplicitAnyIndexErrors": true, "target": "es2020", "paths": { "@server/*": ["./server/*"], From 25c504ceaf6ef9d043583d4fa7f2fa90130e1084 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 19:45:02 -0700 Subject: [PATCH 29/52] chore(deps-dev): bump typescript from 5.4.5 to 5.6.3 (#7767) Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.4.5 to 5.6.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.4.5...v5.6.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5245bdf75b..1ce8975ef8 100644 --- a/package.json +++ b/package.json @@ -354,7 +354,7 @@ "rimraf": "^2.5.4", "rollup-plugin-webpack-stats": "^0.4.1", "terser": "^5.32.0", - "typescript": "^5.4.5", + "typescript": "^5.6.3", "vite-plugin-static-copy": "^0.17.0", "yarn-deduplicate": "^6.0.2" }, diff --git a/yarn.lock b/yarn.lock index c310f11e83..ed7a03df01 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14987,10 +14987,10 @@ typescript@^4.2.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" integrity "sha1-GohZbRz0fVlQehvN+1ud/k1IgjU= sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==" -typescript@^5.4.5: - version "5.4.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" - integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== +typescript@^5.6.3: + version "5.6.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" + integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" From 1dd835bb87c332e8346ecd69ee2a3c8adb80509b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:29:15 -0700 Subject: [PATCH 30/52] chore(deps-dev): bump discord-api-types from 0.37.101 to 0.37.102 (#7779) Bumps [discord-api-types](https://github.com/discordjs/discord-api-types) from 0.37.101 to 0.37.102. - [Release notes](https://github.com/discordjs/discord-api-types/releases) - [Changelog](https://github.com/discordjs/discord-api-types/blob/main/CHANGELOG.md) - [Commits](https://github.com/discordjs/discord-api-types/compare/0.37.101...0.37.102) --- updated-dependencies: - dependency-name: discord-api-types dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1ce8975ef8..df520dbace 100644 --- a/package.json +++ b/package.json @@ -329,7 +329,7 @@ "babel-plugin-tsconfig-paths-module-resolver": "^1.0.4", "browserslist-to-esbuild": "^1.2.0", "concurrently": "^8.2.2", - "discord-api-types": "^0.37.101", + "discord-api-types": "^0.37.102", "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-typescript": "^3.6.3", diff --git a/yarn.lock b/yarn.lock index ed7a03df01..ccfda78e80 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7689,10 +7689,10 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -discord-api-types@^0.37.101: - version "0.37.101" - resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.101.tgz#1512a26e35b700b9dfb903a5747741a097f9c8bb" - integrity sha512-2wizd94t7G3A8U5Phr3AiuL4gSvhqistDwWnlk1VLTit8BI1jWUncFqFQNdPbHqS3661+Nx/iEyIwtVjPuBP3w== +discord-api-types@^0.37.102: + version "0.37.102" + resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.102.tgz#5e19138ba5727f5f76a24bd8498ad24744f35900" + integrity sha512-5+m5twqG8n77rLhKuh2c/971UWszEL/c3KbdvVLUBTPXuS8PbYC/7W7NYhwP02qowjj6CHoKYZbD0ppOUCsT6g== dnd-core@^16.0.1: version "16.0.1" From 198a96c78f158feb5eec842bbae52fe20253971e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:29:43 -0700 Subject: [PATCH 31/52] chore(deps): bump emoji-regex from 10.3.0 to 10.4.0 (#7783) Bumps [emoji-regex](https://github.com/mathiasbynens/emoji-regex) from 10.3.0 to 10.4.0. - [Commits](https://github.com/mathiasbynens/emoji-regex/compare/v10.3.0...v10.4.0) --- updated-dependencies: - dependency-name: emoji-regex dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index df520dbace..364cca738d 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,7 @@ "dotenv": "^16.4.5", "email-providers": "^1.14.0", "emoji-mart": "^5.6.0", - "emoji-regex": "^10.3.0", + "emoji-regex": "^10.4.0", "es6-error": "^4.1.1", "fast-deep-equal": "^3.1.3", "fetch-retry": "^5.0.6", diff --git a/yarn.lock b/yarn.lock index ccfda78e80..f24f9b1b95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7880,10 +7880,10 @@ emoji-mart@^5.6.0: resolved "https://registry.yarnpkg.com/emoji-mart/-/emoji-mart-5.6.0.tgz#71b3ed0091d3e8c68487b240d9d6d9a73c27f023" integrity sha512-eJp3QRe79pjwa+duv+n7+5YsNhRcMl812EcFVwrnRvYKoNPoQb5qxU8DG6Bgwji0akHdp6D4Ln6tYLG58MFSow== -emoji-regex@*, emoji-regex@^10.3.0: - version "10.3.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.3.0.tgz#76998b9268409eb3dae3de989254d456e70cfe23" - integrity "sha1-dpmLkmhAnrPa496YklTUVucM/iM= sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==" +emoji-regex@*, emoji-regex@^10.4.0: + version "10.4.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.4.0.tgz#03553afea80b3975749cfcb36f776ca268e413d4" + integrity sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw== emoji-regex@^8.0.0: version "8.0.0" From bb40e4079a39256a82ad1b6d120ba22fe8b99f05 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:29:58 -0700 Subject: [PATCH 32/52] chore(deps-dev): bump nodemon from 3.1.4 to 3.1.7 (#7781) Bumps [nodemon](https://github.com/remy/nodemon) from 3.1.4 to 3.1.7. - [Release notes](https://github.com/remy/nodemon/releases) - [Commits](https://github.com/remy/nodemon/compare/v3.1.4...v3.1.7) --- updated-dependencies: - dependency-name: nodemon dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 364cca738d..8c19aa44b4 100644 --- a/package.json +++ b/package.json @@ -347,7 +347,7 @@ "jest-environment-jsdom": "^29.7.0", "jest-fetch-mock": "^3.0.3", "lint-staged": "^13.3.0", - "nodemon": "^3.1.4", + "nodemon": "^3.1.7", "postinstall-postinstall": "^2.1.0", "prettier": "^2.8.8", "react-refresh": "^0.14.0", diff --git a/yarn.lock b/yarn.lock index f24f9b1b95..396a188f04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11896,10 +11896,10 @@ nodemailer@^6.9.14: resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.9.14.tgz#845fda981f9fd5ac264f4446af908a7c78027f75" integrity sha512-Dobp/ebDKBvz91sbtRKhcznLThrKxKt97GI2FAlAyy+fk19j73Uz3sBXolVtmcXjaorivqsbbbjDY+Jkt4/bQA== -nodemon@^3.1.4: - version "3.1.4" - resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.4.tgz#c34dcd8eb46a05723ccde60cbdd25addcc8725e4" - integrity sha512-wjPBbFhtpJwmIeY2yP7QF+UKzPfltVGtfce1g/bB15/8vCGZj8uxD62b/b9M9/WVgme0NZudpownKN+c0plXlQ== +nodemon@^3.1.7: + version "3.1.7" + resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.7.tgz#07cb1f455f8bece6a499e0d72b5e029485521a54" + integrity sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ== dependencies: chokidar "^3.5.2" debug "^4" From db02b0ae6b4323dc7b4436715404570688ed7e1f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:30:10 -0700 Subject: [PATCH 33/52] chore(deps): bump @babel/preset-env from 7.25.7 to 7.25.8 (#7780) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.25.7 to 7.25.8. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.25.8/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 205 +++++++++++++++++++-------------------------------- 2 files changed, 76 insertions(+), 131 deletions(-) diff --git a/package.json b/package.json index 8c19aa44b4..37856dca35 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@babel/plugin-transform-class-properties": "^7.24.7", "@babel/plugin-transform-destructuring": "^7.24.8", "@babel/plugin-transform-regenerator": "^7.24.7", - "@babel/preset-env": "^7.25.7", + "@babel/preset-env": "^7.25.8", "@babel/preset-react": "^7.24.7", "@benrbray/prosemirror-math": "^0.2.2", "@bull-board/api": "^4.2.2", diff --git a/yarn.lock b/yarn.lock index 396a188f04..714f9f4123 100644 --- a/yarn.lock +++ b/yarn.lock @@ -753,10 +753,10 @@ "@babel/highlight" "^7.25.7" picocolors "^1.0.0" -"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.7.tgz#b8479fe0018ef0ac87b6b7a5c6916fcd67ae2c9c" - integrity sha512-9ickoLz+hcXCeh7jrcin+/SLWm+GkxE2kTvoYyp38p4WkdFXfQJxDFGWp/YHjiKLPx06z2A7W8XKuqbReXDzsw== +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.25.7", "@babel/compat-data@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.8.tgz#0376e83df5ab0eb0da18885c0140041f0747a402" + integrity sha512-ZsysZyXY4Tlx+Q53XdnOFmqwfB9QDTHYxaZYajWRoBLuLEAwI2UIbtxOjWh/cFaa9IKUlcB+DDuoskLuKu56JA== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.20.12", "@babel/core@^7.24.4", "@babel/core@^7.24.7": version "7.25.2" @@ -984,7 +984,7 @@ dependencies: "@babel/types" "^7.25.7" -"@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.24.7", "@babel/helper-plugin-utils@^7.25.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": +"@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.24.7", "@babel/helper-plugin-utils@^7.25.7", "@babel/helper-plugin-utils@^7.8.0": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz#8ec5b21812d992e1ef88a9b068260537b6f0e36c" integrity sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw== @@ -1198,20 +1198,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": +"@babel/plugin-syntax-class-properties@^7.8.3": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity "sha1-tcmHJ0xKOoK4lxR5aTGmtTVErhA= sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==" dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-syntax-class-static-block@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" - integrity "sha1-GV34mxRrS3izv4l/16JXyEZZ1AY= sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==" - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - "@babel/plugin-syntax-decorators@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.24.7.tgz#e4f8a0a8778ccec669611cd5aed1ed8e6e3a6fcf" @@ -1219,20 +1212,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-syntax-dynamic-import@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" - integrity "sha1-Yr+Ysto80h1iYVT8lu5bPLaOrLM= sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==" - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-export-namespace-from@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" - integrity "sha1-AolkqbqA28CUyRXEh618TnpmRlo= sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==" - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-import-assertions@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.25.7.tgz#8ce248f9f4ed4b7ed4cb2e0eb4ed9efd9f52921f" @@ -1247,7 +1226,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-syntax-import-meta@^7.10.4", "@babel/plugin-syntax-import-meta@^7.8.3": +"@babel/plugin-syntax-import-meta@^7.8.3": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== @@ -1268,7 +1247,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": +"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" integrity "sha1-ypHvRjA1MESLkGZSusLp/plB9pk= sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==" @@ -1282,7 +1261,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-numeric-separator@^7.10.4", "@babel/plugin-syntax-numeric-separator@^7.8.3": +"@babel/plugin-syntax-numeric-separator@^7.8.3": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" integrity "sha1-ubBws+M1cM2f0Hun+pHA3Te5r5c= sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==" @@ -1310,14 +1289,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-private-property-in-object@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" - integrity "sha1-DcZnHsDqIrbpShEU+FeXDNOd4a0= sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==" - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3": +"@babel/plugin-syntax-top-level-await@^7.8.3": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" integrity "sha1-wc/a3DWmRiQAAfBhOCR7dBw02Uw= sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==" @@ -1346,14 +1318,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-async-generator-functions@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.7.tgz#af61a02b30d7bff5108c63bd39ac7938403426d7" - integrity sha512-4B6OhTrwYKHYYgcwErvZjbmH9X5TxQBsaBHdzEIB4l71gR5jh/tuHGlb9in47udL2+wVUcOz5XXhhfhVJwEpEg== +"@babel/plugin-transform-async-generator-functions@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.8.tgz#3331de02f52cc1f2c75b396bec52188c85b0b1ec" + integrity sha512-9ypqkozyzpG+HxlH4o4gdctalFGIjjdufzo7I2XPda0iBnZ6a+FO0rIEQcdSPXp02CkvGsII1exJhmROPQd5oA== dependencies: "@babel/helper-plugin-utils" "^7.25.7" "@babel/helper-remap-async-to-generator" "^7.25.7" - "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/traverse" "^7.25.7" "@babel/plugin-transform-async-to-generator@^7.25.7": @@ -1387,14 +1358,13 @@ "@babel/helper-create-class-features-plugin" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-class-static-block@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.25.7.tgz#d2cf3c812e3b3162d56aadf4566f45c30538cb2c" - integrity sha512-rvUUtoVlkDWtDWxGAiiQj0aNktTPn3eFynBcMC2IhsXweehwgdI9ODe+XjWw515kEmv22sSOTp/rxIRuTiB7zg== +"@babel/plugin-transform-class-static-block@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.25.8.tgz#a8af22028920fe404668031eceb4c3aadccb5262" + integrity sha512-e82gl3TCorath6YLf9xUwFehVvjvfqFhdOo4+0iVIVju+6XOi5XHkqB3P2AXnSwoeTX0HBoXq5gJFtvotJzFnQ== dependencies: "@babel/helper-create-class-features-plugin" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-transform-classes@^7.25.7": version "7.25.7" @@ -1446,13 +1416,12 @@ "@babel/helper-create-regexp-features-plugin" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-dynamic-import@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.7.tgz#31905ab2cfa94dcf1b1f8ce66096720b2908e518" - integrity sha512-UvcLuual4h7/GfylKm2IAA3aph9rwvAM2XBA0uPKU3lca+Maai4jBjjEVUS568ld6kJcgbouuumCBhMd/Yz17w== +"@babel/plugin-transform-dynamic-import@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.8.tgz#f1edbe75b248cf44c70c8ca8ed3818a668753aaa" + integrity sha512-gznWY+mr4ZQL/EWPcbBQUP3BXS5FwZp8RUOw06BaRn8tQLzN4XLIxXejpHN9Qo8x8jjBmAAKp6FoS51AgkSA/A== dependencies: "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" "@babel/plugin-transform-exponentiation-operator@^7.25.7": version "7.25.7" @@ -1462,13 +1431,12 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-export-namespace-from@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.7.tgz#beb2679db6fd3bdfe6ad6de2c8cac84a86ef2da1" - integrity sha512-h3MDAP5l34NQkkNulsTNyjdaR+OiB0Im67VU//sFupouP8Q6m9Spy7l66DcaAQxtmCqGdanPByLsnwFttxKISQ== +"@babel/plugin-transform-export-namespace-from@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.8.tgz#d1988c3019a380b417e0516418b02804d3858145" + integrity sha512-sPtYrduWINTQTW7FtOy99VCTWp4H23UX7vYcut7S4CIMEXU+54zKX9uCoGkLsWXteyaMXzVHgzWbLfQ1w4GZgw== dependencies: "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" "@babel/plugin-transform-for-of@^7.25.7": version "7.25.7" @@ -1487,13 +1455,12 @@ "@babel/helper-plugin-utils" "^7.25.7" "@babel/traverse" "^7.25.7" -"@babel/plugin-transform-json-strings@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.7.tgz#6626433554aff4bd6f76a2c621a1f40e802dfb0a" - integrity sha512-Ot43PrL9TEAiCe8C/2erAjXMeVSnE/BLEx6eyrKLNFCCw5jvhTHKyHxdI1pA0kz5njZRYAnMO2KObGqOCRDYSA== +"@babel/plugin-transform-json-strings@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.8.tgz#6fb3ec383a2ea92652289fdba653e3f9de722694" + integrity sha512-4OMNv7eHTmJ2YXs3tvxAfa/I43di+VcF+M4Wt66c88EAED1RoGaf1D64cL5FkRpNL+Vx9Hds84lksWvd/wMIdA== dependencies: "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-json-strings" "^7.8.3" "@babel/plugin-transform-literals@^7.25.7": version "7.25.7" @@ -1502,13 +1469,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-logical-assignment-operators@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.7.tgz#93847feb513a1f191c5f5d903d991a0ee24fe99b" - integrity sha512-iImzbA55BjiovLyG2bggWS+V+OLkaBorNvc/yJoeeDQGztknRnDdYfp2d/UPmunZYEnZi6Lg8QcTmNMHOB0lGA== +"@babel/plugin-transform-logical-assignment-operators@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.8.tgz#01868ff92daa9e525b4c7902aa51979082a05710" + integrity sha512-f5W0AhSbbI+yY6VakT04jmxdxz+WsID0neG7+kQZbCOjuyJNdL5Nn4WIBm4hRpKnUcO9lP0eipUhFN12JpoH8g== dependencies: "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" "@babel/plugin-transform-member-expression-literals@^7.25.7": version "7.25.7" @@ -1567,30 +1533,27 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-nullish-coalescing-operator@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.7.tgz#0af84b86d4332654c43cf028dbdcf878b00ac168" - integrity sha512-FbuJ63/4LEL32mIxrxwYaqjJxpbzxPVQj5a+Ebrc8JICV6YX8nE53jY+K0RZT3um56GoNWgkS2BQ/uLGTjtwfw== +"@babel/plugin-transform-nullish-coalescing-operator@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.8.tgz#befb4900c130bd52fccf2b926314557987f1b552" + integrity sha512-Z7WJJWdQc8yCWgAmjI3hyC+5PXIubH9yRKzkl9ZEG647O9szl9zvmKLzpbItlijBnVhTUf1cpyWBsZ3+2wjWPQ== dependencies: "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-transform-numeric-separator@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.7.tgz#a516b78f894d1c08283f39d809b2048fd2f29448" - integrity sha512-8CbutzSSh4hmD+jJHIA8vdTNk15kAzOnFLVVgBSMGr28rt85ouT01/rezMecks9pkU939wDInImwCKv4ahU4IA== +"@babel/plugin-transform-numeric-separator@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.8.tgz#91e370486371637bd42161052f2602c701386891" + integrity sha512-rm9a5iEFPS4iMIy+/A/PiS0QN0UyjPIeVvbU5EMZFKJZHt8vQnasbpo3T3EFcxzCeYO0BHfc4RqooCZc51J86Q== dependencies: "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-transform-object-rest-spread@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.7.tgz#fa0916521be96fd434e2db59780b24b308c6d169" - integrity sha512-1JdVKPhD7Y5PvgfFy0Mv2brdrolzpzSoUq2pr6xsR+m+3viGGeHEokFKsCgOkbeFOQxfB1Vt2F0cPJLRpFI4Zg== +"@babel/plugin-transform-object-rest-spread@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.8.tgz#0904ac16bcce41df4db12d915d6780f85c7fb04b" + integrity sha512-LkUu0O2hnUKHKE7/zYOIjByMa4VRaV2CD/cdGz0AxU9we+VA3kDDggKEzI0Oz1IroG+6gUP6UmWEHBMWZU316g== dependencies: "@babel/helper-compilation-targets" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.25.7" "@babel/plugin-transform-object-super@^7.25.7": @@ -1601,22 +1564,20 @@ "@babel/helper-plugin-utils" "^7.25.7" "@babel/helper-replace-supers" "^7.25.7" -"@babel/plugin-transform-optional-catch-binding@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.7.tgz#400e2d891f9288f5231694234696aa67164e4913" - integrity sha512-m9obYBA39mDPN7lJzD5WkGGb0GO54PPLXsbcnj1Hyeu8mSRz7Gb4b1A6zxNX32ZuUySDK4G6it8SDFWD1nCnqg== +"@babel/plugin-transform-optional-catch-binding@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.8.tgz#2649b86a3bb202c6894ec81a6ddf41b94d8f3103" + integrity sha512-EbQYweoMAHOn7iJ9GgZo14ghhb9tTjgOc88xFgYngifx7Z9u580cENCV159M4xDh3q/irbhSjZVpuhpC2gKBbg== dependencies: "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.7.tgz#b7f7c9321aa1d8414e67799c28d87c23682e4d68" - integrity sha512-h39agClImgPWg4H8mYVAbD1qP9vClFbEjqoJmt87Zen8pjqK8FTPUwrOXAvqu5soytwxrLMd2fx2KSCp2CHcNg== +"@babel/plugin-transform-optional-chaining@^7.25.7", "@babel/plugin-transform-optional-chaining@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.8.tgz#f46283b78adcc5b6ab988a952f989e7dce70653f" + integrity sha512-q05Bk7gXOxpTHoQ8RSzGSh/LHVB9JEIkKnk3myAWwZHnYiTGYtbdrYkIsS8Xyh4ltKf7GNUSgzs/6P2bJtBAQg== dependencies: "@babel/helper-plugin-utils" "^7.25.7" "@babel/helper-skip-transparent-expression-wrappers" "^7.25.7" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-transform-parameters@^7.25.7": version "7.25.7" @@ -1633,15 +1594,14 @@ "@babel/helper-create-class-features-plugin" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-transform-private-property-in-object@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.7.tgz#aff877efd05b57c4ad04611d8de97bf155a53369" - integrity sha512-LzA5ESzBy7tqj00Yjey9yWfs3FKy4EmJyKOSWld144OxkTji81WWnUT8nkLUn+imN/zHL8ZQlOu/MTUAhHaX3g== +"@babel/plugin-transform-private-property-in-object@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.8.tgz#1234f856ce85e061f9688764194e51ea7577c434" + integrity sha512-8Uh966svuB4V8RHHg0QJOB32QK287NBksJOByoKmHMp1TAobNniNalIkI2i5IPj5+S9NYCG4VIjbEuiSN8r+ow== dependencies: "@babel/helper-annotate-as-pure" "^7.25.7" "@babel/helper-create-class-features-plugin" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" "@babel/plugin-transform-property-literals@^7.25.7": version "7.25.7" @@ -1801,12 +1761,12 @@ "@babel/helper-create-regexp-features-plugin" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" -"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.25.7": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.25.7.tgz#fc1b092152db4b58377b85dc05c890081c1157e0" - integrity sha512-Gibz4OUdyNqqLj+7OAvBZxOD7CklCtMA5/j0JgUEwOnaRULsPDXmic2iKxL2DX2vQduPR5wH2hjZas/Vr/Oc0g== +"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.25.8.tgz#dc6b719627fb29cd9cccbbbe041802fd575b524c" + integrity sha512-58T2yulDHMN8YMUxiLq5YmWUnlDCyY1FsHM+v12VMx+1/FlrUj5tY50iDCpofFQEM8fMYOaY9YRvym2jcjn1Dg== dependencies: - "@babel/compat-data" "^7.25.7" + "@babel/compat-data" "^7.25.8" "@babel/helper-compilation-targets" "^7.25.7" "@babel/helper-plugin-utils" "^7.25.7" "@babel/helper-validator-option" "^7.25.7" @@ -1816,45 +1776,30 @@ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.25.7" "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.25.7" "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" "@babel/plugin-syntax-import-assertions" "^7.25.7" "@babel/plugin-syntax-import-attributes" "^7.25.7" - "@babel/plugin-syntax-import-meta" "^7.10.4" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - "@babel/plugin-syntax-top-level-await" "^7.14.5" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" "@babel/plugin-transform-arrow-functions" "^7.25.7" - "@babel/plugin-transform-async-generator-functions" "^7.25.7" + "@babel/plugin-transform-async-generator-functions" "^7.25.8" "@babel/plugin-transform-async-to-generator" "^7.25.7" "@babel/plugin-transform-block-scoped-functions" "^7.25.7" "@babel/plugin-transform-block-scoping" "^7.25.7" "@babel/plugin-transform-class-properties" "^7.25.7" - "@babel/plugin-transform-class-static-block" "^7.25.7" + "@babel/plugin-transform-class-static-block" "^7.25.8" "@babel/plugin-transform-classes" "^7.25.7" "@babel/plugin-transform-computed-properties" "^7.25.7" "@babel/plugin-transform-destructuring" "^7.25.7" "@babel/plugin-transform-dotall-regex" "^7.25.7" "@babel/plugin-transform-duplicate-keys" "^7.25.7" "@babel/plugin-transform-duplicate-named-capturing-groups-regex" "^7.25.7" - "@babel/plugin-transform-dynamic-import" "^7.25.7" + "@babel/plugin-transform-dynamic-import" "^7.25.8" "@babel/plugin-transform-exponentiation-operator" "^7.25.7" - "@babel/plugin-transform-export-namespace-from" "^7.25.7" + "@babel/plugin-transform-export-namespace-from" "^7.25.8" "@babel/plugin-transform-for-of" "^7.25.7" "@babel/plugin-transform-function-name" "^7.25.7" - "@babel/plugin-transform-json-strings" "^7.25.7" + "@babel/plugin-transform-json-strings" "^7.25.8" "@babel/plugin-transform-literals" "^7.25.7" - "@babel/plugin-transform-logical-assignment-operators" "^7.25.7" + "@babel/plugin-transform-logical-assignment-operators" "^7.25.8" "@babel/plugin-transform-member-expression-literals" "^7.25.7" "@babel/plugin-transform-modules-amd" "^7.25.7" "@babel/plugin-transform-modules-commonjs" "^7.25.7" @@ -1862,15 +1807,15 @@ "@babel/plugin-transform-modules-umd" "^7.25.7" "@babel/plugin-transform-named-capturing-groups-regex" "^7.25.7" "@babel/plugin-transform-new-target" "^7.25.7" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.25.7" - "@babel/plugin-transform-numeric-separator" "^7.25.7" - "@babel/plugin-transform-object-rest-spread" "^7.25.7" + "@babel/plugin-transform-nullish-coalescing-operator" "^7.25.8" + "@babel/plugin-transform-numeric-separator" "^7.25.8" + "@babel/plugin-transform-object-rest-spread" "^7.25.8" "@babel/plugin-transform-object-super" "^7.25.7" - "@babel/plugin-transform-optional-catch-binding" "^7.25.7" - "@babel/plugin-transform-optional-chaining" "^7.25.7" + "@babel/plugin-transform-optional-catch-binding" "^7.25.8" + "@babel/plugin-transform-optional-chaining" "^7.25.8" "@babel/plugin-transform-parameters" "^7.25.7" "@babel/plugin-transform-private-methods" "^7.25.7" - "@babel/plugin-transform-private-property-in-object" "^7.25.7" + "@babel/plugin-transform-private-property-in-object" "^7.25.8" "@babel/plugin-transform-property-literals" "^7.25.7" "@babel/plugin-transform-regenerator" "^7.25.7" "@babel/plugin-transform-reserved-words" "^7.25.7" From 72bfbf20607e048eb7abf17f58fe1175e344a64d Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 14 Oct 2024 18:29:47 -0400 Subject: [PATCH 34/52] Allow returning team API keys for admins from `apiKeys.list` (#7766) * Allow returning team apiKeys.list for admins from apiKeys.list * Filter apikeys in store --- app/models/ApiKey.ts | 5 ++- app/scenes/Settings/ApiKeys.tsx | 5 ++- app/stores/ApiKeysStore.ts | 9 ++++ server/policies/apiKey.ts | 17 ++++++- server/policies/user.ts | 2 +- server/presenters/apiKey.ts | 1 + server/routes/api/apiKeys/apiKeys.test.ts | 55 ++++++++++++++++++----- server/routes/api/apiKeys/apiKeys.ts | 43 +++++++++++++++--- server/routes/api/apiKeys/schema.ts | 9 ++++ 9 files changed, 123 insertions(+), 23 deletions(-) diff --git a/app/models/ApiKey.ts b/app/models/ApiKey.ts index 70c68b48b3..6bb33992c2 100644 --- a/app/models/ApiKey.ts +++ b/app/models/ApiKey.ts @@ -16,10 +16,13 @@ class ApiKey extends ParanoidModel { @observable expiresAt?: string; - /** An optional datetime that the API key was last used at. */ + /** Timestamp that the API key was last used. */ @observable lastActiveAt?: string; + /** The user ID that the API key belongs to. */ + userId: string; + /** The plain text value of the API key, only available on creation. */ value: string; diff --git a/app/scenes/Settings/ApiKeys.tsx b/app/scenes/Settings/ApiKeys.tsx index de096ea2b3..42e3825872 100644 --- a/app/scenes/Settings/ApiKeys.tsx +++ b/app/scenes/Settings/ApiKeys.tsx @@ -13,12 +13,14 @@ import Text from "~/components/Text"; import { createApiKey } from "~/actions/definitions/apiKeys"; import useActionContext from "~/hooks/useActionContext"; import useCurrentTeam from "~/hooks/useCurrentTeam"; +import useCurrentUser from "~/hooks/useCurrentUser"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import ApiKeyListItem from "./components/ApiKeyListItem"; function ApiKeys() { const team = useCurrentTeam(); + const user = useCurrentUser(); const { t } = useTranslation(); const { apiKeys } = useStores(); const can = usePolicy(team); @@ -79,7 +81,8 @@ function ApiKeys() { {t("Personal keys")}} renderItem={(apiKey: ApiKey) => ( { constructor(rootStore: RootStore) { super(rootStore, ApiKey); } + + @computed + get personalApiKeys() { + const userId = this.rootStore.auth.user?.id; + return userId + ? this.orderedData.filter((key) => key.userId === userId) + : []; + } } diff --git a/server/policies/apiKey.ts b/server/policies/apiKey.ts index 7ea229ffd5..f51eb977d3 100644 --- a/server/policies/apiKey.ts +++ b/server/policies/apiKey.ts @@ -5,7 +5,6 @@ import { and, isOwner, isTeamModel, isTeamMutable } from "./utils"; allow(User, "createApiKey", Team, (actor, team) => and( - // isTeamModel(actor, team), isTeamMutable(actor), !actor.isViewer, @@ -16,4 +15,18 @@ allow(User, "createApiKey", Team, (actor, team) => ) ); -allow(User, ["read", "update", "delete"], ApiKey, isOwner); +allow(User, "listApiKeys", Team, (actor, team) => + and( + // + isTeamModel(actor, team), + actor.isAdmin + ) +); + +allow(User, ["read", "update", "delete"], ApiKey, (actor, apiKey) => + and( + isOwner(actor, apiKey), + actor.isAdmin || + !!actor.team?.getPreference(TeamPreference.MembersCanCreateApiKey) + ) +); diff --git a/server/policies/user.ts b/server/policies/user.ts index e7f82127ea..e254a3be59 100644 --- a/server/policies/user.ts +++ b/server/policies/user.ts @@ -23,7 +23,7 @@ allow(User, "inviteUser", Team, (actor, team) => ) ); -allow(User, ["update", "readDetails"], User, (actor, user) => +allow(User, ["update", "readDetails", "listApiKeys"], User, (actor, user) => or( // isTeamAdmin(actor, user), diff --git a/server/presenters/apiKey.ts b/server/presenters/apiKey.ts index d2796bd7fa..943cf78cb8 100644 --- a/server/presenters/apiKey.ts +++ b/server/presenters/apiKey.ts @@ -3,6 +3,7 @@ import ApiKey from "@server/models/ApiKey"; export default function presentApiKey(apiKey: ApiKey) { return { id: apiKey.id, + userId: apiKey.userId, name: apiKey.name, value: apiKey.value, last4: apiKey.last4, diff --git a/server/routes/api/apiKeys/apiKeys.test.ts b/server/routes/api/apiKeys/apiKeys.test.ts index d733b87049..42cc5742b8 100644 --- a/server/routes/api/apiKeys/apiKeys.test.ts +++ b/server/routes/api/apiKeys/apiKeys.test.ts @@ -1,4 +1,4 @@ -import { buildApiKey, buildUser } from "@server/test/factories"; +import { buildAdmin, buildApiKey, buildUser } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; const server = getTestServer(); @@ -47,25 +47,58 @@ describe("#apiKeys.create", () => { }); describe("#apiKeys.list", () => { - it("should return api keys of a user", async () => { - const now = new Date(); + it("should return api keys of the specified user", async () => { const user = await buildUser(); - await buildApiKey({ - name: "My API Key", - userId: user.id, - expiresAt: now, - }); + const admin = await buildAdmin({ teamId: user.teamId }); + await buildApiKey({ userId: user.id }); const res = await server.post("/api/apiKeys.list", { body: { - token: user.getJwtToken(), + userId: user.id, + token: admin.getJwtToken(), }, }); const body = await res.json(); expect(res.status).toEqual(200); - expect(body.data[0].name).toEqual("My API Key"); - expect(body.data[0].expiresAt).toEqual(now.toISOString()); + expect(body.data.length).toEqual(1); + }); + + it("should return api keys of the specified user for admin", async () => { + const user = await buildUser(); + const admin = await buildAdmin({ teamId: user.teamId }); + await buildApiKey({ userId: user.id }); + await buildApiKey({ userId: admin.id }); + + const res = await server.post("/api/apiKeys.list", { + body: { + userId: admin.id, + token: admin.getJwtToken(), + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(1); + }); + + it("should return api keys of all users for admin", async () => { + const admin = await buildAdmin(); + const user = await buildUser({ teamId: admin.teamId }); + await buildApiKey({ userId: admin.id }); + await buildApiKey({ userId: user.id }); + await buildApiKey(); + + const res = await server.post("/api/apiKeys.list", { + body: { + token: admin.getJwtToken(), + }, + }); + + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(2); }); it("should require authentication", async () => { diff --git a/server/routes/api/apiKeys/apiKeys.ts b/server/routes/api/apiKeys/apiKeys.ts index 2df8b583c8..51962b5d2f 100644 --- a/server/routes/api/apiKeys/apiKeys.ts +++ b/server/routes/api/apiKeys/apiKeys.ts @@ -1,10 +1,11 @@ import Router from "koa-router"; +import { WhereOptions } from "sequelize"; import { UserRole } from "@shared/types"; import auth from "@server/middlewares/authentication"; import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; -import { ApiKey, Event } from "@server/models"; -import { authorize } from "@server/policies"; +import { ApiKey, Event, User } from "@server/models"; +import { authorize, cannot } from "@server/policies"; import { presentApiKey } from "@server/presenters"; import { APIContext, AuthenticationType } from "@server/types"; import pagination from "../middlewares/pagination"; @@ -54,12 +55,40 @@ router.post( "apiKeys.list", auth({ role: UserRole.Member }), pagination(), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + validate(T.APIKeysListSchema), + async (ctx: APIContext) => { + const { userId } = ctx.input.body; + const actor = ctx.state.auth.user; + + let where: WhereOptions = { + teamId: actor.teamId, + }; + + if (cannot(actor, "listApiKeys", actor.team)) { + where = { + ...where, + id: actor.id, + }; + } + + if (userId) { + const user = await User.findByPk(userId); + authorize(actor, "listApiKeys", user); + + where = { + ...where, + id: userId, + }; + } + const keys = await ApiKey.findAll({ - where: { - userId: user.id, - }, + include: [ + { + model: User, + required: true, + where, + }, + ], order: [["createdAt", "DESC"]], offset: ctx.state.pagination.offset, limit: ctx.state.pagination.limit, diff --git a/server/routes/api/apiKeys/schema.ts b/server/routes/api/apiKeys/schema.ts index 25271f0816..a26600deb9 100644 --- a/server/routes/api/apiKeys/schema.ts +++ b/server/routes/api/apiKeys/schema.ts @@ -12,6 +12,15 @@ export const APIKeysCreateSchema = BaseSchema.extend({ export type APIKeysCreateReq = z.infer; +export const APIKeysListSchema = BaseSchema.extend({ + body: z.object({ + /** The owner of the API key */ + userId: z.string().uuid().optional(), + }), +}); + +export type APIKeysListReq = z.infer; + export const APIKeysDeleteSchema = BaseSchema.extend({ body: z.object({ /** API Key Id */ From bdac4360b433b169d7386cdc2858ab90c46678bd Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 16 Oct 2024 21:37:52 -0400 Subject: [PATCH 35/52] chore: Remove usage of y-prosemirror fork, pull in latest fixes from upstream --- app/editor/extensions/Multiplayer.ts | 4 +- package.json | 2 +- .../commands/documentCollaborativeUpdater.ts | 2 +- server/models/helpers/DocumentHelper.tsx | 5 +- server/models/helpers/ProsemirrorHelper.tsx | 2 +- .../scripts/20221008000000-backfill-crdt.ts | 5 +- server/scripts/20221029000000-crdt-to-text.ts | 2 +- ...0231119000000-backfill-document-content.ts | 2 +- shared/editor/lib/multiplayer.ts | 2 +- yarn.lock | 259 +++--------------- 10 files changed, 41 insertions(+), 244 deletions(-) diff --git a/app/editor/extensions/Multiplayer.ts b/app/editor/extensions/Multiplayer.ts index 25bf26d369..a260a489d9 100644 --- a/app/editor/extensions/Multiplayer.ts +++ b/app/editor/extensions/Multiplayer.ts @@ -1,11 +1,11 @@ +import { keymap } from "prosemirror-keymap"; import { ySyncPlugin, yCursorPlugin, yUndoPlugin, undo, redo, -} from "@getoutline/y-prosemirror"; -import { keymap } from "prosemirror-keymap"; +} from "y-prosemirror"; import * as Y from "yjs"; import Extension from "@shared/editor/lib/Extension"; diff --git a/package.json b/package.json index 37856dca35..11b2d93343 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,6 @@ "@fortawesome/free-solid-svg-icons": "^6.5.2", "@fortawesome/react-fontawesome": "^0.2.2", "@getoutline/react-roving-tabindex": "^3.2.4", - "@getoutline/y-prosemirror": "^1.0.18", "@hocuspocus/extension-throttle": "1.1.2", "@hocuspocus/provider": "1.1.2", "@hocuspocus/server": "1.1.2", @@ -244,6 +243,7 @@ "winston": "^3.13.0", "ws": "^7.5.10", "y-indexeddb": "^9.0.11", + "y-prosemirror": "^1.2.12", "y-protocols": "^1.0.6", "yauzl": "^2.10.0", "yjs": "^13.6.1", diff --git a/server/commands/documentCollaborativeUpdater.ts b/server/commands/documentCollaborativeUpdater.ts index b4d56baad2..9a124ac4d9 100644 --- a/server/commands/documentCollaborativeUpdater.ts +++ b/server/commands/documentCollaborativeUpdater.ts @@ -1,7 +1,7 @@ -import { yDocToProsemirrorJSON } from "@getoutline/y-prosemirror"; import isEqual from "fast-deep-equal"; import uniq from "lodash/uniq"; import { Node } from "prosemirror-model"; +import { yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import { ProsemirrorData } from "@shared/types"; import { schema, serializer } from "@server/editor"; diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index 911b8bd35d..d25a0e30e7 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -1,9 +1,6 @@ -import { - updateYFragment, - yDocToProsemirrorJSON, -} from "@getoutline/y-prosemirror"; import { JSDOM } from "jsdom"; import { Node } from "prosemirror-model"; +import { updateYFragment, yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import textBetween from "@shared/editor/lib/textBetween"; import { EditorStyleHelper } from "@shared/editor/styles/EditorStyleHelper"; diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index fcca1dec0c..99104df4ff 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -1,4 +1,3 @@ -import { prosemirrorToYDoc } from "@getoutline/y-prosemirror"; import { JSDOM } from "jsdom"; import compact from "lodash/compact"; import flatten from "lodash/flatten"; @@ -8,6 +7,7 @@ import { Node, DOMSerializer, Fragment, Mark } from "prosemirror-model"; import * as React from "react"; import { renderToString } from "react-dom/server"; import styled, { ServerStyleSheet, ThemeProvider } from "styled-components"; +import { prosemirrorToYDoc } from "y-prosemirror"; import * as Y from "yjs"; import EditorContainer from "@shared/editor/components/Styles"; import embeds from "@shared/editor/embeds"; diff --git a/server/scripts/20221008000000-backfill-crdt.ts b/server/scripts/20221008000000-backfill-crdt.ts index 8f0b48e444..f1feda6157 100644 --- a/server/scripts/20221008000000-backfill-crdt.ts +++ b/server/scripts/20221008000000-backfill-crdt.ts @@ -1,9 +1,6 @@ import "./bootstrap"; -import { - updateYFragment, - yDocToProsemirrorJSON, -} from "@getoutline/y-prosemirror"; import { Node } from "prosemirror-model"; +import { updateYFragment, yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import { parser, schema, serializer } from "@server/editor"; import { Document } from "@server/models"; diff --git a/server/scripts/20221029000000-crdt-to-text.ts b/server/scripts/20221029000000-crdt-to-text.ts index 5651d1aa41..93a0183ca3 100644 --- a/server/scripts/20221029000000-crdt-to-text.ts +++ b/server/scripts/20221029000000-crdt-to-text.ts @@ -1,7 +1,7 @@ import "./bootstrap"; -import { yDocToProsemirrorJSON } from "@getoutline/y-prosemirror"; import { Node } from "prosemirror-model"; import { Op } from "sequelize"; +import { yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import { schema, serializer } from "@server/editor"; import { Document } from "@server/models"; diff --git a/server/scripts/20231119000000-backfill-document-content.ts b/server/scripts/20231119000000-backfill-document-content.ts index 821f22ea9f..259e00acfd 100644 --- a/server/scripts/20231119000000-backfill-document-content.ts +++ b/server/scripts/20231119000000-backfill-document-content.ts @@ -1,6 +1,6 @@ import "./bootstrap"; -import { yDocToProsemirrorJSON } from "@getoutline/y-prosemirror"; import { Node } from "prosemirror-model"; +import { yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import { ProsemirrorData } from "@shared/types"; import { parser, schema } from "@server/editor"; diff --git a/shared/editor/lib/multiplayer.ts b/shared/editor/lib/multiplayer.ts index 685b2b66d0..bf6c039696 100644 --- a/shared/editor/lib/multiplayer.ts +++ b/shared/editor/lib/multiplayer.ts @@ -1,5 +1,5 @@ -import { ySyncPluginKey } from "@getoutline/y-prosemirror"; import { Transaction } from "prosemirror-state"; +import { ySyncPluginKey } from "y-prosemirror"; /** * Checks if a transaction is a remote transaction diff --git a/yarn.lock b/yarn.lock index 714f9f4123..5dc37bea9e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -737,15 +737,7 @@ "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3" chokidar "^3.4.0" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" - integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== - dependencies: - "@babel/highlight" "^7.24.7" - picocolors "^1.0.0" - -"@babel/code-frame@^7.25.7": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7", "@babel/code-frame@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.25.7.tgz#438f2c524071531d643c6f0188e1e28f130cebc7" integrity sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g== @@ -779,17 +771,7 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.7.2": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" - integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== - dependencies: - "@babel/types" "^7.25.6" - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.25" - jsesc "^2.5.1" - -"@babel/generator@^7.25.7": +"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.25.7", "@babel/generator@^7.7.2": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.7.tgz#de86acbeb975a3e11ee92dd52223e6b03b479c56" integrity sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA== @@ -799,14 +781,7 @@ "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" -"@babel/helper-annotate-as-pure@^7.22.5", "@babel/helper-annotate-as-pure@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz#5373c7bc8366b12a033b4be1ac13a206c6656aab" - integrity sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-annotate-as-pure@^7.25.7": +"@babel/helper-annotate-as-pure@^7.22.5", "@babel/helper-annotate-as-pure@^7.24.7", "@babel/helper-annotate-as-pure@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.7.tgz#63f02dbfa1f7cb75a9bdb832f300582f30bb8972" integrity sha512-4xwU8StnqnlIhhioZf1tqnVWeQ9pvH/ujS8hRfw/WOza+/a+1qv69BWNy+oY231maTCWgKWhfBU7kDpsds6zAA== @@ -832,22 +807,7 @@ lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-create-class-features-plugin@^7.24.1", "@babel/helper-create-class-features-plugin@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.7.tgz#2eaed36b3a1c11c53bdf80d53838b293c52f5b3b" - integrity sha512-kTkaDl7c9vO80zeX1rJxnuRpEsD5tA81yh11X1gQo+PhSti3JS+7qeZo9U4RHobKRiFPKaGK3svUAeb8D0Q7eg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-member-expression-to-functions" "^7.24.7" - "@babel/helper-optimise-call-expression" "^7.24.7" - "@babel/helper-replace-supers" "^7.24.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" - semver "^6.3.1" - -"@babel/helper-create-class-features-plugin@^7.25.7": +"@babel/helper-create-class-features-plugin@^7.24.1", "@babel/helper-create-class-features-plugin@^7.24.7", "@babel/helper-create-class-features-plugin@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.7.tgz#5d65074c76cae75607421c00d6bd517fe1892d6b" integrity sha512-bD4WQhbkx80mAyj/WCm4ZHcF4rDxkoLFO6ph8/5/mQ3z4vAzltQXAmbc7GvVJx5H+lk5Mi5EmbTeox5nMGCsbw== @@ -860,16 +820,7 @@ "@babel/traverse" "^7.25.7" semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.18.6": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.24.7.tgz#be4f435a80dc2b053c76eeb4b7d16dd22cfc89da" - integrity sha512-03TCmXy2FtXJEZfbXDTSqq1fRJArk7lX9DOFC/47VthYcxyIOx+eXQmdo6DOQvrbpIix+KfXwvuXdFDZHxt+rA== - dependencies: - "@babel/helper-annotate-as-pure" "^7.24.7" - regexpu-core "^5.3.1" - semver "^6.3.1" - -"@babel/helper-create-regexp-features-plugin@^7.25.7": +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.25.7": 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== @@ -918,15 +869,7 @@ "@babel/template" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-member-expression-to-functions@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.7.tgz#67613d068615a70e4ed5101099affc7a41c5225f" - integrity sha512-LGeMaf5JN4hAT471eJdBs/GK1DoYIJ5GCtZN/EsL6KUiiDZOvO/eKE11AMZJa2zP4zk4qe9V2O/hxAmkRc8p6w== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-member-expression-to-functions@^7.25.7": +"@babel/helper-member-expression-to-functions@^7.24.7", "@babel/helper-member-expression-to-functions@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.7.tgz#541a33b071f0355a63a0fa4bdf9ac360116b8574" integrity sha512-O31Ssjd5K6lPbTX9AAYpSKrZmLeagt9uwschJd+Ixo6QiRyfpvgtVQp8qrDR9UNFjZ8+DO34ZkdrN+BnPXemeA== @@ -934,15 +877,7 @@ "@babel/traverse" "^7.25.7" "@babel/types" "^7.25.7" -"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.14.5", "@babel/helper-module-imports@^7.22.5", "@babel/helper-module-imports@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" - integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-module-imports@^7.25.7": +"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.14.5", "@babel/helper-module-imports@^7.22.5", "@babel/helper-module-imports@^7.24.7", "@babel/helper-module-imports@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz#dba00d9523539152906ba49263e36d7261040472" integrity sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw== @@ -950,17 +885,7 @@ "@babel/traverse" "^7.25.7" "@babel/types" "^7.25.7" -"@babel/helper-module-transforms@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" - integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== - dependencies: - "@babel/helper-module-imports" "^7.24.7" - "@babel/helper-simple-access" "^7.24.7" - "@babel/helper-validator-identifier" "^7.24.7" - "@babel/traverse" "^7.25.2" - -"@babel/helper-module-transforms@^7.25.7": +"@babel/helper-module-transforms@^7.25.2", "@babel/helper-module-transforms@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz#2ac9372c5e001b19bc62f1fe7d96a18cb0901d1a" integrity sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ== @@ -970,14 +895,7 @@ "@babel/helper-validator-identifier" "^7.25.7" "@babel/traverse" "^7.25.7" -"@babel/helper-optimise-call-expression@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz#8b0a0456c92f6b323d27cfd00d1d664e76692a0f" - integrity sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-optimise-call-expression@^7.25.7": +"@babel/helper-optimise-call-expression@^7.24.7", "@babel/helper-optimise-call-expression@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.7.tgz#1de1b99688e987af723eed44fa7fc0ee7b97d77a" integrity sha512-VAwcwuYhv/AT+Vfr28c9y6SHzTan1ryqrydSTFGjU0uDJHw3uZ+PduI8plCLkRsDnqK2DMEDmwrOQRsK/Ykjng== @@ -998,16 +916,7 @@ "@babel/helper-wrap-function" "^7.25.7" "@babel/traverse" "^7.25.7" -"@babel/helper-replace-supers@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.7.tgz#f933b7eed81a1c0265740edc91491ce51250f765" - integrity sha512-qTAxxBM81VEyoAY0TtLrx1oAEJc09ZK67Q9ljQToqCnA+55eNwCORaxlKyu+rNfX86o8OXRUSNUnrtsAZXM9sg== - dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-member-expression-to-functions" "^7.24.7" - "@babel/helper-optimise-call-expression" "^7.24.7" - -"@babel/helper-replace-supers@^7.25.7": +"@babel/helper-replace-supers@^7.24.7", "@babel/helper-replace-supers@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.7.tgz#38cfda3b6e990879c71d08d0fef9236b62bd75f5" integrity sha512-iy8JhqlUW9PtZkd4pHM96v6BdJ66Ba9yWSE4z0W4TvSZwLBPkyDsiIU3ENe4SmrzRBs76F7rQXTy1lYC49n6Lw== @@ -1016,15 +925,7 @@ "@babel/helper-optimise-call-expression" "^7.25.7" "@babel/traverse" "^7.25.7" -"@babel/helper-simple-access@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" - integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-simple-access@^7.25.7": +"@babel/helper-simple-access@^7.24.7", "@babel/helper-simple-access@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz#5eb9f6a60c5d6b2e0f76057004f8dacbddfae1c0" integrity sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ== @@ -1032,15 +933,7 @@ "@babel/traverse" "^7.25.7" "@babel/types" "^7.25.7" -"@babel/helper-skip-transparent-expression-wrappers@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz#5f8fa83b69ed5c27adc56044f8be2b3ea96669d9" - integrity sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-skip-transparent-expression-wrappers@^7.25.7": +"@babel/helper-skip-transparent-expression-wrappers@^7.24.7", "@babel/helper-skip-transparent-expression-wrappers@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.7.tgz#382831c91038b1a6d32643f5f49505b8442cb87c" integrity sha512-pPbNbchZBkPMD50K0p3JGcFMNLVUCuU/ABybm/PGNj4JiHrpmNyqqCphBk4i19xXtNV0JhldQJJtbSW5aUvbyA== @@ -1055,22 +948,12 @@ dependencies: "@babel/types" "^7.24.7" -"@babel/helper-string-parser@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" - integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== - -"@babel/helper-string-parser@^7.25.7": +"@babel/helper-string-parser@^7.24.8", "@babel/helper-string-parser@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz#d50e8d37b1176207b4fe9acedec386c565a44a54" integrity sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g== -"@babel/helper-validator-identifier@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" - integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== - -"@babel/helper-validator-identifier@^7.25.7": +"@babel/helper-validator-identifier@^7.24.7", "@babel/helper-validator-identifier@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz#77b7f60c40b15c97df735b38a66ba1d7c3e93da5" integrity sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg== @@ -1097,17 +980,7 @@ "@babel/template" "^7.25.0" "@babel/types" "^7.25.6" -"@babel/highlight@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" - integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== - dependencies: - "@babel/helper-validator-identifier" "^7.24.7" - chalk "^2.4.2" - js-tokens "^4.0.0" - picocolors "^1.0.0" - -"@babel/highlight@^7.25.7": +"@babel/highlight@^7.24.7", "@babel/highlight@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.25.7.tgz#20383b5f442aa606e7b5e3043b0b1aafe9f37de5" integrity sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw== @@ -1117,14 +990,7 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6", "@babel/parser@^7.7.0": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" - integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== - dependencies: - "@babel/types" "^7.25.6" - -"@babel/parser@^7.25.7": +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6", "@babel/parser@^7.25.7", "@babel/parser@^7.7.0": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.7.tgz#99b927720f4ddbfeb8cd195a363ed4532f87c590" integrity sha512-aZn7ETtQsjjGG5HruveUK06cU3Hljuhd9Iojm4M8WWv3wLE6OkE5PWbDUkItmMgegmccaITudyuW5RPYrYlgWw== @@ -1879,16 +1745,7 @@ dependencies: regenerator-runtime "^0.14.0" -"@babel/template@^7.24.7", "@babel/template@^7.25.0", "@babel/template@^7.3.3": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" - integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/parser" "^7.25.0" - "@babel/types" "^7.25.0" - -"@babel/template@^7.25.7": +"@babel/template@^7.24.7", "@babel/template@^7.25.0", "@babel/template@^7.25.7", "@babel/template@^7.3.3": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.7.tgz#27f69ce382855d915b14ab0fe5fb4cbf88fa0769" integrity sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA== @@ -1897,20 +1754,7 @@ "@babel/parser" "^7.25.7" "@babel/types" "^7.25.7" -"@babel/traverse@^7.13.0", "@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" - integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.25.6" - "@babel/parser" "^7.25.6" - "@babel/template" "^7.25.0" - "@babel/types" "^7.25.6" - debug "^4.3.1" - globals "^11.1.0" - -"@babel/traverse@^7.25.7": +"@babel/traverse@^7.13.0", "@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2", "@babel/traverse@^7.25.7", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.7.tgz#83e367619be1cab8e4f2892ef30ba04c26a40fa8" integrity sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg== @@ -1923,16 +1767,7 @@ debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" - integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== - dependencies: - "@babel/helper-string-parser" "^7.24.8" - "@babel/helper-validator-identifier" "^7.24.7" - to-fast-properties "^2.0.0" - -"@babel/types@^7.25.7": +"@babel/types@^7.0.0", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.25.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.7.tgz#1b7725c1d3a59f328cb700ce704c46371e6eef9b" integrity sha512-vwIVdXG+j+FOpkwqHRcBgHLYNL7XMkufrlaFvL9o6Ai9sJn9+PdyIL5qa0XzTZw084c+u9LOls53eoZWP/W5WQ== @@ -2535,13 +2370,6 @@ dependencies: warning "^4.0.3" -"@getoutline/y-prosemirror@^1.0.18": - version "1.0.18" - resolved "https://registry.yarnpkg.com/@getoutline/y-prosemirror/-/y-prosemirror-1.0.18.tgz#17245c0362d30adb85131c86fb9a59358884b234" - integrity "sha1-FyRcA2LTCtuFExyG+5pZNYiEsjQ= sha512-nLxqUHEHJDBwbcMWhlPWlJ4VpdjtajkmKSAWeVTsIEa5HTo1JQSdnADdS/HFSVSkESW8b6TRrOJylyHDn46uYQ==" - dependencies: - lib0 "^0.2.42" - "@hocuspocus/common@^1.1.2": version "1.1.3" resolved "https://registry.yarnpkg.com/@hocuspocus/common/-/common-1.1.3.tgz#d2b5187092497308d3df659f8a036bded20fd759" @@ -6229,17 +6057,7 @@ browserslist-to-esbuild@^1.2.0: dependencies: browserslist "^4.17.3" -browserslist@^4.17.3: - version "4.23.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" - integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== - dependencies: - caniuse-lite "^1.0.30001646" - electron-to-chromium "^1.5.4" - node-releases "^2.0.18" - update-browserslist-db "^1.1.0" - -browserslist@^4.23.3, browserslist@^4.24.0: +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== @@ -6372,12 +6190,7 @@ 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.30001646: - version "1.0.30001655" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz#0ce881f5a19a2dcfda2ecd927df4d5c1684b982f" - integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== - -caniuse-lite@^1.0.30001663: +caniuse-lite@^1.0.30001646, 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== @@ -7795,16 +7608,11 @@ ejs@^3.1.6, ejs@^3.1.7: dependencies: jake "^10.8.5" -electron-to-chromium@^1.5.28: +electron-to-chromium@^1.5.28, electron-to-chromium@^1.5.4: 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.4: - version "1.5.13" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz#1abf0410c5344b2b829b7247e031f02810d442e6" - integrity sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q== - elkjs@^0.8.2: version "0.8.2" resolved "https://registry.yarnpkg.com/elkjs/-/elkjs-0.8.2.tgz#c37763c5a3e24e042e318455e0147c912a7c248e" @@ -12485,12 +12293,7 @@ pgpass@1.x: dependencies: split2 "^3.1.1" -picocolors@^1.0.0, picocolors@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" - integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== - -picocolors@^1.1.0: +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== @@ -13367,14 +13170,7 @@ refractor@^3.6.0: parse-entities "^2.0.0" prismjs "~1.27.0" -regenerate-unicode-properties@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" - integrity "sha1-fDGSyrbdJOIctEYeXd190k+oN0w= sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==" - dependencies: - regenerate "^1.4.2" - -regenerate-unicode-properties@^10.2.0: +regenerate-unicode-properties@^10.1.0, regenerate-unicode-properties@^10.2.0: version "10.2.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz#626e39df8c372338ea9b8028d1f99dc3fd9c3db0" integrity sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA== @@ -15730,6 +15526,13 @@ y-indexeddb@^9.0.11: dependencies: lib0 "^0.2.74" +y-prosemirror@^1.2.12: + version "1.2.12" + resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.2.12.tgz#3bb3bd9def611a90e8b7ac6a7e46a6230f238746" + integrity sha512-UMnUIR5ppVn30n2kzeeBQEaesWGe4fsbnlch1HnNa3/snJMoOn7M7dieuS+o1OQwKs1dqx2eT3gFfGF2aOaQdw== + dependencies: + lib0 "^0.2.42" + y-protocols@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/y-protocols/-/y-protocols-1.0.6.tgz#66dad8a95752623443e8e28c0e923682d2c0d495" From b55915c257cfb8ddd0b115778fc7098211e59d08 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 16 Oct 2024 22:59:22 -0400 Subject: [PATCH 36/52] fix: Include deleted workspaces when searching for available subdomains, closes #7787 --- server/commands/teamCreator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/commands/teamCreator.ts b/server/commands/teamCreator.ts index 20daafe03c..f78f984ac6 100644 --- a/server/commands/teamCreator.ts +++ b/server/commands/teamCreator.ts @@ -90,7 +90,10 @@ async function findAvailableSubdomain(team: Team, requestedSubdomain: string) { let append = 0; for (;;) { - const existing = await Team.findOne({ where: { subdomain } }); + const existing = await Team.findOne({ + where: { subdomain }, + paranoid: false, + }); if (existing) { // subdomain was invalid or already used, try another From f0add849f924a706cb2a0874b4520f3ec8b1f892 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 16 Oct 2024 23:18:18 -0400 Subject: [PATCH 37/52] fix: Ensure max filename length for stored attachments, closes #7785 --- .../models/helpers/AttachmentHelper.test.ts | 51 +++++++++++++++++++ server/models/helpers/AttachmentHelper.ts | 6 ++- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 server/models/helpers/AttachmentHelper.test.ts diff --git a/server/models/helpers/AttachmentHelper.test.ts b/server/models/helpers/AttachmentHelper.test.ts new file mode 100644 index 0000000000..1a4f6bc50d --- /dev/null +++ b/server/models/helpers/AttachmentHelper.test.ts @@ -0,0 +1,51 @@ +import AttachmentHelper from "./AttachmentHelper"; + +describe("AttachmentHelper", () => { + describe("getKey", () => { + it("should return the correct key for a public attachment", () => { + const key = AttachmentHelper.getKey({ + acl: "public-read", + id: "123", + name: "test.png", + userId: "456", + }); + + expect(key).toEqual("public/456/123/test.png"); + }); + + it("should return the correct key for a private attachment", () => { + const key = AttachmentHelper.getKey({ + acl: "private", + id: "123", + name: "test.png", + userId: "456", + }); + + expect(key).toEqual("uploads/456/123/test.png"); + }); + + it("should return the correct key for a long file name", () => { + const key = AttachmentHelper.getKey({ + acl: "public-read", + id: "123", + name: "a".repeat(300), + userId: "456", + }); + + expect(key).toEqual( + `public/456/123/${"a".repeat(AttachmentHelper.maximumFileNameLength)}` + ); + }); + + it("should remove invalid characters from the key", () => { + const key = AttachmentHelper.getKey({ + acl: "public-read", + id: "123", + name: "test/../one.png", + userId: "456", + }); + + expect(key).toEqual("public/456/123/test/one.png"); + }); + }); +}); diff --git a/server/models/helpers/AttachmentHelper.ts b/server/models/helpers/AttachmentHelper.ts index 88f197794a..7a34bdd76c 100644 --- a/server/models/helpers/AttachmentHelper.ts +++ b/server/models/helpers/AttachmentHelper.ts @@ -10,6 +10,8 @@ export enum Buckets { } export default class AttachmentHelper { + static maximumFileNameLength = 255; + /** * Get the upload location for the given upload details * @@ -31,7 +33,9 @@ export default class AttachmentHelper { }) { const bucket = acl === "public-read" ? Buckets.public : Buckets.uploads; const keyPrefix = `${bucket}/${userId}/${id}`; - return ValidateKey.sanitize(`${keyPrefix}/${name}`); + return ValidateKey.sanitize( + `${keyPrefix}/${name.slice(0, this.maximumFileNameLength)}` + ); } /** From 9e54fd1bfbe9b41162df31692e6ac45f074ee79b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 17 Oct 2024 18:14:15 -0400 Subject: [PATCH 38/52] fix: User exists should account for deleted workspaces, closes #7793 --- plugins/google/server/auth/google.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/google/server/auth/google.ts b/plugins/google/server/auth/google.ts index c11b901f0a..4b8bbb319b 100644 --- a/plugins/google/server/auth/google.ts +++ b/plugins/google/server/auth/google.ts @@ -74,6 +74,12 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { if (!domain && !team) { const userExists = await User.count({ where: { email: profile.email.toLowerCase() }, + include: [ + { + association: "team", + required: true, + }, + ], }); // Users cannot create a team with personal gmail accounts From 6614b23eae53388d3ebae43c339e83ecdb93474f Mon Sep 17 00:00:00 2001 From: Hemachandar <132386067+hmacr@users.noreply.github.com> Date: Fri, 18 Oct 2024 04:08:26 +0530 Subject: [PATCH 39/52] fix: assorted comment bugs (#7795) * fix: assorted comment bugs * remove policy instead of force fetch --- app/components/WebsocketProvider.tsx | 7 +++++++ app/menus/CommentMenu.tsx | 2 +- app/models/Comment.ts | 4 ++-- app/scenes/Document/components/CommentThread.tsx | 8 +++++--- app/utils/routeHelpers.ts | 4 +++- server/routes/api/comments/comments.test.ts | 2 ++ server/routes/api/comments/comments.ts | 4 ++-- 7 files changed, 22 insertions(+), 9 deletions(-) diff --git a/app/components/WebsocketProvider.tsx b/app/components/WebsocketProvider.tsx index ff297d67d6..9b19024245 100644 --- a/app/components/WebsocketProvider.tsx +++ b/app/components/WebsocketProvider.tsx @@ -337,6 +337,13 @@ class WebsocketProvider extends React.Component { }); this.socket.on("comments.update", (event: PartialExcept) => { + const comment = comments.get(event.id); + + // Existing policy becomes invalid when the resolution status has changed and we don't have the latest version. + if (comment?.resolvedAt !== event.resolvedAt) { + policies.remove(event.id); + } + comments.add(event); }); diff --git a/app/menus/CommentMenu.tsx b/app/menus/CommentMenu.tsx index 71f97f1e35..2935601d37 100644 --- a/app/menus/CommentMenu.tsx +++ b/app/menus/CommentMenu.tsx @@ -75,7 +75,7 @@ function CommentMenu({ title: `${t("Edit")}…`, icon: , onClick: onEdit, - visible: can.update, + visible: can.update && !comment.isResolved, }, actionToMenuItem( resolveCommentFactory({ diff --git a/app/models/Comment.ts b/app/models/Comment.ts index afb0a22f35..4a67ab60c0 100644 --- a/app/models/Comment.ts +++ b/app/models/Comment.ts @@ -99,8 +99,8 @@ class Comment extends Model { * Whether the comment is resolved */ @computed - public get isResolved() { - return !!this.resolvedAt; + public get isResolved(): boolean { + return !!this.resolvedAt || !!this.parentComment?.isResolved; } /** diff --git a/app/scenes/Document/components/CommentThread.tsx b/app/scenes/Document/components/CommentThread.tsx index 36bbf05128..a38833b341 100644 --- a/app/scenes/Document/components/CommentThread.tsx +++ b/app/scenes/Document/components/CommentThread.tsx @@ -80,6 +80,8 @@ function CommentThread({ }); const can = usePolicy(document); + const canReply = can.comment && !thread.isResolved; + const highlightedCommentMarks = editor ?.getComments() .filter((comment) => comment.id === thread.id); @@ -105,7 +107,7 @@ function CommentThread({ const handleClickThread = () => { history.replace({ // Clear any commentId from the URL when explicitly focusing a thread - search: "", + search: thread.isResolved ? "resolved=" : "", pathname: location.pathname.replace(/\/history$/, ""), state: { commentId: thread.id }, }); @@ -214,7 +216,7 @@ function CommentThread({ ))} - {(focused || draft || commentsInThread.length === 0) && can.comment && ( + {(focused || draft || commentsInThread.length === 0) && canReply && ( )} - {!focused && !recessed && !draft && can.comment && ( + {!focused && !recessed && !draft && canReply && ( setAutoFocus(true)}>{t("Reply")}… )} diff --git a/app/utils/routeHelpers.ts b/app/utils/routeHelpers.ts index bca4013242..7b1b7c0840 100644 --- a/app/utils/routeHelpers.ts +++ b/app/utils/routeHelpers.ts @@ -25,7 +25,9 @@ export function settingsPath(section?: string): string { } export function commentPath(document: Document, comment: Comment): string { - return `${documentPath(document)}?commentId=${comment.id}`; + return `${documentPath(document)}?commentId=${comment.id}${ + comment.isResolved ? "&resolved=" : "" + }`; } export function collectionPath(url: string, section?: string): string { diff --git a/server/routes/api/comments/comments.test.ts b/server/routes/api/comments/comments.test.ts index 7330f43ee2..5f65bb0b03 100644 --- a/server/routes/api/comments/comments.test.ts +++ b/server/routes/api/comments/comments.test.ts @@ -522,6 +522,7 @@ describe("#comments.resolve", () => { const body = await res.json(); expect(res.status).toEqual(200); + expect(body.data.updatedAt).toEqual(comment.updatedAt.toISOString()); expect(body.data.resolvedAt).toBeTruthy(); expect(body.data.resolvedById).toEqual(user.id); expect(body.data.resolvedBy.id).toEqual(user.id); @@ -592,6 +593,7 @@ describe("#comments.unresolve", () => { const body = await res.json(); expect(res.status).toEqual(200); + expect(body.data.updatedAt).toEqual(comment.updatedAt.toISOString()); expect(body.data.resolvedAt).toEqual(null); expect(body.data.resolvedBy).toEqual(null); expect(body.data.resolvedById).toEqual(null); diff --git a/server/routes/api/comments/comments.ts b/server/routes/api/comments/comments.ts index eeffb4692c..0111b8bbaa 100644 --- a/server/routes/api/comments/comments.ts +++ b/server/routes/api/comments/comments.ts @@ -293,7 +293,7 @@ router.post( comment.resolve(user); const changes = comment.changeset; - await comment.save({ transaction }); + await comment.save({ transaction, silent: true }); await Event.createFromContext( ctx, @@ -340,7 +340,7 @@ router.post( comment.unresolve(); const changes = comment.changeset; - await comment.save({ transaction }); + await comment.save({ transaction, silent: true }); await Event.createFromContext( ctx, From 31dafc4258b8019cc87dfde8f449b03dd11e81f7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 17 Oct 2024 18:38:36 -0400 Subject: [PATCH 40/52] Hide remote users selections after a timeout (#7788) --- app/editor/extensions/Multiplayer.ts | 61 +++++++++++++++++++++++++++- shared/editor/components/Styles.ts | 4 ++ 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/app/editor/extensions/Multiplayer.ts b/app/editor/extensions/Multiplayer.ts index a260a489d9..e5115dbfda 100644 --- a/app/editor/extensions/Multiplayer.ts +++ b/app/editor/extensions/Multiplayer.ts @@ -1,3 +1,4 @@ +import isEqual from "lodash/isEqual"; import { keymap } from "prosemirror-keymap"; import { ySyncPlugin, @@ -8,6 +9,15 @@ import { } from "y-prosemirror"; import * as Y from "yjs"; import Extension from "@shared/editor/lib/Extension"; +import { Second } from "@shared/utils/time"; + +type UserAwareness = { + user: { + id: string; + }; + anchor: object; + head: object; +}; export default class Multiplayer extends Extension { get name() { @@ -18,6 +28,7 @@ export default class Multiplayer extends Extension { const { user, provider, document: doc } = this.options; const type = doc.get("default", Y.XmlFragment); + // Assign a user to a client ID once they've made a change and then remove the listener const assignUser = (tr: Y.Transaction) => { const clientIds = Array.from(doc.store.clients.keys()); @@ -32,6 +43,51 @@ export default class Multiplayer extends Extension { } }; + const userAwarenessCache = new Map< + string, + { aw: UserAwareness; changedAt: Date } + >(); + + // The opacity of a remote user's selection. + const selectionOpacity = 70; + + // The time in milliseconds after which a remote user's selection will be hidden. + const selectionTimeout = 10 * Second.ms; + + // We're hijacking this method to store the last time a user's awareness changed as a side + // effect, and otherwise behaving as the default. + const awarenessStateFilter = ( + currentClientId: number, + userClientId: number, + aw: UserAwareness + ) => { + if (currentClientId === userClientId) { + return false; + } + + const cached = userAwarenessCache.get(aw.user.id); + if (!cached || !isEqual(cached?.aw, aw)) { + userAwarenessCache.set(aw.user.id, { aw, changedAt: new Date() }); + } + + return true; + }; + + // Override the default selection builder to add a background color to the selection + // only if the user's awareness has changed recently – this stops selections from lingering. + const selectionBuilder = (u: { id: string; color: string }) => { + const cached = userAwarenessCache.get(u.id); + const opacity = + !cached || cached?.changedAt > new Date(Date.now() - selectionTimeout) + ? selectionOpacity + : 0; + + return { + style: `background-color: ${u.color}${opacity}`, + class: "ProseMirror-yjs-selection", + }; + }; + provider.setAwarenessField("user", user); // only once an actual change has been made do we add the userId <> clientId @@ -40,7 +96,10 @@ export default class Multiplayer extends Extension { return [ ySyncPlugin(type), - yCursorPlugin(provider.awareness), + yCursorPlugin(provider.awareness, { + awarenessStateFilter, + selectionBuilder, + }), yUndoPlugin(), keymap({ "Mod-z": undo, diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 3728847241..55c071de13 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -393,6 +393,10 @@ width: 100%; h5 { font-size: 15px; } h6 { font-size: 15px; } + .ProseMirror-yjs-selection { + transition: background-color 500ms ease-in-out; + } + .ProseMirror-yjs-cursor { position: relative; margin-left: -1px; From 9e378899ffaffb03c5a95418b2c6135e23f466cb Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 17 Oct 2024 22:46:11 -0400 Subject: [PATCH 41/52] Remove string filtering in logger --- server/logging/Logger.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/logging/Logger.ts b/server/logging/Logger.ts index 3924409b0b..d80bf04ed9 100644 --- a/server/logging/Logger.ts +++ b/server/logging/Logger.ts @@ -4,7 +4,6 @@ import chalk from "chalk"; import isArray from "lodash/isArray"; import isEmpty from "lodash/isEmpty"; import isObject from "lodash/isObject"; -import isString from "lodash/isString"; import winston from "winston"; import env from "@server/env"; import Metrics from "@server/logging/Metrics"; @@ -226,12 +225,6 @@ class Logger { return "[…]" as any as T; } - if (isString(input)) { - if (sensitiveFields.some((field) => input.includes(field))) { - return "[Filtered]" as any as T; - } - } - if (isArray(input)) { return input.map((item) => this.sanitize(item, level + 1)) as any as T; } From 4e6572d6861aeb33df0961e52491e28c4a19685b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 18 Oct 2024 08:35:21 -0400 Subject: [PATCH 42/52] fix: Mutate clipboard content when copying from a single table cell. (#7798) * fix: Mutate clipboard content when copying from a single table cell. closes #7794 * refactor --- shared/editor/nodes/TableCell.ts | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/shared/editor/nodes/TableCell.ts b/shared/editor/nodes/TableCell.ts index 393b0dedd7..8deeb2aad5 100644 --- a/shared/editor/nodes/TableCell.ts +++ b/shared/editor/nodes/TableCell.ts @@ -1,5 +1,5 @@ import Token from "markdown-it/lib/token"; -import { NodeSpec } from "prosemirror-model"; +import { NodeSpec, Slice } from "prosemirror-model"; import { Plugin } from "prosemirror-state"; import { DecorationSet, Decoration } from "prosemirror-view"; import { addRowBefore, selectRow, selectTable } from "../commands/table"; @@ -71,6 +71,35 @@ export default class TableCell extends Node { return [ new Plugin({ props: { + transformCopied: (slice) => { + // check if the copied selection is a single table, with a single row, with a single cell. If so, + // copy the cell content only – not a table with a single cell. This leads to more predictable pasting + // behavior, both in and outside the app. + if (slice.content.childCount === 1) { + const table = slice.content.firstChild; + if ( + table?.type.spec.tableRole === "table" && + table.childCount === 1 + ) { + const row = table.firstChild; + if ( + row?.type.spec.tableRole === "row" && + row.childCount === 1 + ) { + const cell = row.firstChild; + if (cell?.type.spec.tableRole === "cell") { + return new Slice( + cell.content, + slice.openStart, + slice.openEnd + ); + } + } + } + } + + return slice; + }, handleDOMEvents: { mousedown: (view, event) => { if (!(event.target instanceof HTMLElement)) { From b6fc8fb4b111cccd3db7e6d1f7f678281470cf3e Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 18 Oct 2024 09:00:02 -0400 Subject: [PATCH 43/52] fix: Guard unset in awareness data --- app/editor/extensions/Multiplayer.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/editor/extensions/Multiplayer.ts b/app/editor/extensions/Multiplayer.ts index e5115dbfda..f037be8ceb 100644 --- a/app/editor/extensions/Multiplayer.ts +++ b/app/editor/extensions/Multiplayer.ts @@ -12,7 +12,7 @@ import Extension from "@shared/editor/lib/Extension"; import { Second } from "@shared/utils/time"; type UserAwareness = { - user: { + user?: { id: string; }; anchor: object; @@ -65,9 +65,12 @@ export default class Multiplayer extends Extension { return false; } - const cached = userAwarenessCache.get(aw.user.id); + const userId = aw.user?.id; + const cached = userId ? userAwarenessCache.get(userId) : undefined; if (!cached || !isEqual(cached?.aw, aw)) { - userAwarenessCache.set(aw.user.id, { aw, changedAt: new Date() }); + if (userId) { + userAwarenessCache.set(userId, { aw, changedAt: new Date() }); + } } return true; From da4cd4ebcdc84022d8f7e59a91be7b46d8a24cbd Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 19 Oct 2024 08:05:43 -0400 Subject: [PATCH 44/52] Improved error handling for Azure auth, add default value for AZURE_RESOURCE_ID --- plugins/azure/server/auth/azure.ts | 4 ++-- plugins/azure/server/env.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index 5517dc6531..6f1a3a9c99 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -69,9 +69,9 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { ); } - if (!organizationResponse) { + if (!organizationResponse?.value?.length) { throw MicrosoftGraphError( - "Unable to load organization info from Microsoft Graph API" + `Unable to load organization info from Microsoft Graph API: ${organizationResponse.error?.message}` ); } diff --git a/plugins/azure/server/env.ts b/plugins/azure/server/env.ts index 8f43743251..e246c3b62f 100644 --- a/plugins/azure/server/env.ts +++ b/plugins/azure/server/env.ts @@ -19,9 +19,9 @@ class AzurePluginEnvironment extends Environment { @IsOptional() @CannotUseWithout("AZURE_CLIENT_ID") - public AZURE_RESOURCE_APP_ID = this.toOptionalString( - environment.AZURE_RESOURCE_APP_ID - ); + public AZURE_RESOURCE_APP_ID = + this.toOptionalString(environment.AZURE_RESOURCE_APP_ID) ?? + "00000003-0000-0000-c000-000000000000"; @IsOptional() @CannotUseWithout("AZURE_CLIENT_ID") From fdaeb6602de8a097054cfcafb4808a67e981268c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 19 Oct 2024 08:22:20 -0400 Subject: [PATCH 45/52] fix: Support diacritics in cmd+f, closes #7801 --- app/editor/extensions/FindAndReplace.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/editor/extensions/FindAndReplace.tsx b/app/editor/extensions/FindAndReplace.tsx index 3849e011bd..199b641267 100644 --- a/app/editor/extensions/FindAndReplace.tsx +++ b/app/editor/extensions/FindAndReplace.tsx @@ -1,3 +1,4 @@ +import deburr from "lodash/deburr"; import escapeRegExp from "lodash/escapeRegExp"; import { observable } from "mobx"; import { Node } from "prosemirror-model"; @@ -247,7 +248,7 @@ export default class FindAndReplaceExtension extends Extension { let m; try { - while ((m = search.exec(text))) { + while ((m = search.exec(deburr(text)))) { if (m[0] === "") { break; } From ac3285a29ad5f04304b9ecd203a36aaf0ee44df3 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 19 Oct 2024 08:54:58 -0400 Subject: [PATCH 46/52] tsc --- plugins/azure/server/env.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/azure/server/env.ts b/plugins/azure/server/env.ts index e246c3b62f..9ef06ef0d6 100644 --- a/plugins/azure/server/env.ts +++ b/plugins/azure/server/env.ts @@ -18,7 +18,6 @@ class AzurePluginEnvironment extends Environment { ); @IsOptional() - @CannotUseWithout("AZURE_CLIENT_ID") public AZURE_RESOURCE_APP_ID = this.toOptionalString(environment.AZURE_RESOURCE_APP_ID) ?? "00000003-0000-0000-c000-000000000000"; From 201ccf39a0096dcf47a8aa80ce6ee577ed4ae95f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 19 Oct 2024 12:25:54 -0400 Subject: [PATCH 47/52] Update icon on disclosure buttons/selects --- app/components/Button.tsx | 8 +- app/components/InputSelectPermission.tsx | 8 +- package.json | 2 +- yarn.lock | 96 +++++------------------- 4 files changed, 34 insertions(+), 80 deletions(-) diff --git a/app/components/Button.tsx b/app/components/Button.tsx index d5ba543934..63d60044f0 100644 --- a/app/components/Button.tsx +++ b/app/components/Button.tsx @@ -1,5 +1,5 @@ import { LocationDescriptor } from "history"; -import { ExpandedIcon } from "outline-icons"; +import { DisclosureIcon } from "outline-icons"; import { darken, lighten, transparentize } from "polished"; import * as React from "react"; import styled from "styled-components"; @@ -189,10 +189,14 @@ const Button = ( {hasIcon && ic} {hasText && } - {disclosure && } + {disclosure && } ); }; +const StyledDisclosureIcon = styled(DisclosureIcon)` + opacity: 0.8; +`; + export default React.forwardRef(Button); diff --git a/app/components/InputSelectPermission.tsx b/app/components/InputSelectPermission.tsx index cb861823d4..f9298645e0 100644 --- a/app/components/InputSelectPermission.tsx +++ b/app/components/InputSelectPermission.tsx @@ -1,6 +1,8 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; +import styled from "styled-components"; import { $Diff } from "utility-types"; +import { s } from "@shared/styles"; import { CollectionPermission } from "@shared/types"; import { EmptySelectValue } from "~/types"; import InputSelect, { Props, Option, InputSelectRef } from "./InputSelect"; @@ -19,7 +21,7 @@ function InputSelectPermission( const { t } = useTranslation(); return ( - ; + export default React.forwardRef(InputSelectPermission); diff --git a/package.json b/package.json index 11b2d93343..428d7ed5ea 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,7 @@ "node-fetch": "2.7.0", "nodemailer": "^6.9.14", "octokit": "^3.2.1", - "outline-icons": "^3.8.0", + "outline-icons": "^3.10.0", "oy-vey": "^0.12.1", "passport": "^0.7.0", "passport-google-oauth2": "^0.2.0", diff --git a/yarn.lock b/yarn.lock index 5dc37bea9e..fd8f0ee159 100644 --- a/yarn.lock +++ b/yarn.lock @@ -771,7 +771,7 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.25.7", "@babel/generator@^7.7.2": +"@babel/generator@^7.25.0", "@babel/generator@^7.25.7", "@babel/generator@^7.7.2": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.7.tgz#de86acbeb975a3e11ee92dd52223e6b03b479c56" integrity sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA== @@ -854,22 +854,7 @@ lodash.debounce "^4.0.8" resolve "^1.14.2" -"@babel/helper-environment-visitor@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9" - integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-function-name@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2" - integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA== - dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-member-expression-to-functions@^7.24.7", "@babel/helper-member-expression-to-functions@^7.25.7": +"@babel/helper-member-expression-to-functions@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.7.tgz#541a33b071f0355a63a0fa4bdf9ac360116b8574" integrity sha512-O31Ssjd5K6lPbTX9AAYpSKrZmLeagt9uwschJd+Ixo6QiRyfpvgtVQp8qrDR9UNFjZ8+DO34ZkdrN+BnPXemeA== @@ -895,7 +880,7 @@ "@babel/helper-validator-identifier" "^7.25.7" "@babel/traverse" "^7.25.7" -"@babel/helper-optimise-call-expression@^7.24.7", "@babel/helper-optimise-call-expression@^7.25.7": +"@babel/helper-optimise-call-expression@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.7.tgz#1de1b99688e987af723eed44fa7fc0ee7b97d77a" integrity sha512-VAwcwuYhv/AT+Vfr28c9y6SHzTan1ryqrydSTFGjU0uDJHw3uZ+PduI8plCLkRsDnqK2DMEDmwrOQRsK/Ykjng== @@ -916,7 +901,7 @@ "@babel/helper-wrap-function" "^7.25.7" "@babel/traverse" "^7.25.7" -"@babel/helper-replace-supers@^7.24.7", "@babel/helper-replace-supers@^7.25.7": +"@babel/helper-replace-supers@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.7.tgz#38cfda3b6e990879c71d08d0fef9236b62bd75f5" integrity sha512-iy8JhqlUW9PtZkd4pHM96v6BdJ66Ba9yWSE4z0W4TvSZwLBPkyDsiIU3ENe4SmrzRBs76F7rQXTy1lYC49n6Lw== @@ -925,7 +910,7 @@ "@babel/helper-optimise-call-expression" "^7.25.7" "@babel/traverse" "^7.25.7" -"@babel/helper-simple-access@^7.24.7", "@babel/helper-simple-access@^7.25.7": +"@babel/helper-simple-access@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz#5eb9f6a60c5d6b2e0f76057004f8dacbddfae1c0" integrity sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ== @@ -933,7 +918,7 @@ "@babel/traverse" "^7.25.7" "@babel/types" "^7.25.7" -"@babel/helper-skip-transparent-expression-wrappers@^7.24.7", "@babel/helper-skip-transparent-expression-wrappers@^7.25.7": +"@babel/helper-skip-transparent-expression-wrappers@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.7.tgz#382831c91038b1a6d32643f5f49505b8442cb87c" integrity sha512-pPbNbchZBkPMD50K0p3JGcFMNLVUCuU/ABybm/PGNj4JiHrpmNyqqCphBk4i19xXtNV0JhldQJJtbSW5aUvbyA== @@ -941,19 +926,12 @@ "@babel/traverse" "^7.25.7" "@babel/types" "^7.25.7" -"@babel/helper-split-export-declaration@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856" - integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-string-parser@^7.24.8", "@babel/helper-string-parser@^7.25.7": +"@babel/helper-string-parser@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz#d50e8d37b1176207b4fe9acedec386c565a44a54" integrity sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g== -"@babel/helper-validator-identifier@^7.24.7", "@babel/helper-validator-identifier@^7.25.7": +"@babel/helper-validator-identifier@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz#77b7f60c40b15c97df735b38a66ba1d7c3e93da5" integrity sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg== @@ -980,7 +958,7 @@ "@babel/template" "^7.25.0" "@babel/types" "^7.25.6" -"@babel/highlight@^7.24.7", "@babel/highlight@^7.25.7": +"@babel/highlight@^7.25.7": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.25.7.tgz#20383b5f442aa606e7b5e3043b0b1aafe9f37de5" integrity sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw== @@ -990,7 +968,7 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6", "@babel/parser@^7.25.7", "@babel/parser@^7.7.0": +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.7", "@babel/parser@^7.7.0": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.7.tgz#99b927720f4ddbfeb8cd195a363ed4532f87c590" integrity sha512-aZn7ETtQsjjGG5HruveUK06cU3Hljuhd9Iojm4M8WWv3wLE6OkE5PWbDUkItmMgegmccaITudyuW5RPYrYlgWw== @@ -1733,11 +1711,6 @@ "@babel/plugin-transform-modules-commonjs" "^7.24.1" "@babel/plugin-transform-typescript" "^7.24.1" -"@babel/regjsgen@^0.8.0": - version "0.8.0" - resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" - integrity "sha1-8LppsHXh8F+yglt/rZkeetuxgxA= sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" - "@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.15.4", "@babel/runtime@^7.17.8", "@babel/runtime@^7.20.6", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.6.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": version "7.24.4" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.4.tgz#de795accd698007a66ba44add6cc86542aff1edd" @@ -1745,7 +1718,7 @@ dependencies: regenerator-runtime "^0.14.0" -"@babel/template@^7.24.7", "@babel/template@^7.25.0", "@babel/template@^7.25.7", "@babel/template@^7.3.3": +"@babel/template@^7.25.0", "@babel/template@^7.25.7", "@babel/template@^7.3.3": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.7.tgz#27f69ce382855d915b14ab0fe5fb4cbf88fa0769" integrity sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA== @@ -1754,7 +1727,7 @@ "@babel/parser" "^7.25.7" "@babel/types" "^7.25.7" -"@babel/traverse@^7.13.0", "@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2", "@babel/traverse@^7.25.7", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": +"@babel/traverse@^7.13.0", "@babel/traverse@^7.25.2", "@babel/traverse@^7.25.7", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.7.tgz#83e367619be1cab8e4f2892ef30ba04c26a40fa8" integrity sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg== @@ -1767,7 +1740,7 @@ debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.25.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": +"@babel/types@^7.0.0", "@babel/types@^7.24.7", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.25.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": version "7.25.7" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.7.tgz#1b7725c1d3a59f328cb700ce704c46371e6eef9b" integrity sha512-vwIVdXG+j+FOpkwqHRcBgHLYNL7XMkufrlaFvL9o6Ai9sJn9+PdyIL5qa0XzTZw084c+u9LOls53eoZWP/W5WQ== @@ -6190,7 +6163,7 @@ 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.30001646, caniuse-lite@^1.0.30001663: +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== @@ -7608,7 +7581,7 @@ ejs@^3.1.6, ejs@^3.1.7: dependencies: jake "^10.8.5" -electron-to-chromium@^1.5.28, electron-to-chromium@^1.5.4: +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== @@ -10415,21 +10388,11 @@ jsdom@^22.1.0: ws "^8.13.0" xml-name-validator "^4.0.0" -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity "sha1-gFZNLkg9rPbo7yCWUKZ98/DCg6Q= sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" - jsesc@^3.0.2, jsesc@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - integrity "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==" - json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" @@ -11939,10 +11902,10 @@ os-tmpdir@~1.0.2: resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" -outline-icons@^3.8.0: - version "3.8.0" - resolved "https://registry.yarnpkg.com/outline-icons/-/outline-icons-3.8.0.tgz#b9b1507004152c6e68b952ae5442900870baf3b8" - integrity sha512-egOrWMgBo5fTx6f7GlvGn/hTVqOaPaBgLHWaPT7IwW0qtm3+Sbl/4iKYgdintYopMQvXVKZZOcNAUbXqoJIlnQ== +outline-icons@^3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/outline-icons/-/outline-icons-3.10.0.tgz#625ee232a807ccbc1cca2eda87849cf77ca25160" + integrity sha512-LSHIlZRgNtFoFHj5lDG6hfflNpVpO5kQl/jV7dYSytTcVVjfOECEDACSFsQ34JP7HT1vFaubp1EZSVrKFnIyVw== oy-vey@^0.12.1: version "0.12.1" @@ -13170,7 +13133,7 @@ refractor@^3.6.0: parse-entities "^2.0.0" prismjs "~1.27.0" -regenerate-unicode-properties@^10.1.0, regenerate-unicode-properties@^10.2.0: +regenerate-unicode-properties@^10.2.0: version "10.2.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz#626e39df8c372338ea9b8028d1f99dc3fd9c3db0" integrity sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA== @@ -13214,18 +13177,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@^5.3.1: - version "5.3.2" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b" - integrity sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ== - dependencies: - "@babel/regjsgen" "^0.8.0" - regenerate "^1.4.2" - regenerate-unicode-properties "^10.1.0" - regjsparser "^0.9.1" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" - regexpu-core@^6.1.1: version "6.1.1" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.1.1.tgz#b469b245594cb2d088ceebc6369dceb8c00becac" @@ -13250,13 +13201,6 @@ regjsparser@^0.11.0: dependencies: jsesc "~3.0.2" -regjsparser@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" - integrity "sha1-Jy0FqhDHwfZwlbH/Ct2uhEL8Vwk= sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==" - dependencies: - jsesc "~0.5.0" - reinterval@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/reinterval/-/reinterval-1.1.0.tgz#3361ecfa3ca6c18283380dd0bb9546f390f5ece7" From e41519575f4ad1b4ee7e429b18feddc8f9ed4884 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 19 Oct 2024 12:37:17 -0400 Subject: [PATCH 48/52] tsc --- app/components/InputSelectPermission.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/InputSelectPermission.tsx b/app/components/InputSelectPermission.tsx index f9298645e0..3286a5c07b 100644 --- a/app/components/InputSelectPermission.tsx +++ b/app/components/InputSelectPermission.tsx @@ -49,6 +49,6 @@ function InputSelectPermission( const Select = styled(InputSelect)` color: ${s("textSecondary")}; -` as React.ComponentType; +`; export default React.forwardRef(InputSelectPermission); From c5278a71de96edf6e61ef62b7b229fc798de64bd Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 20 Oct 2024 09:56:59 -0400 Subject: [PATCH 49/52] Increase ping/pong rate to increase Heroku compatibility --- server/services/websockets.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/services/websockets.ts b/server/services/websockets.ts index 2873b8fe90..f17c132fb3 100644 --- a/server/services/websockets.ts +++ b/server/services/websockets.ts @@ -35,6 +35,8 @@ export default function init( path, serveClient: false, cookie: false, + pingInterval: 15000, + pingTimeout: 30000, cors: { origin: "*", methods: ["GET", "POST"], From 2ee7e0f83205517ce37ee65d986471ebac95264d Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 20 Oct 2024 20:02:46 -0400 Subject: [PATCH 50/52] Use view transition API to smoothly transition between light/dark theme --- app/stores/UiStore.ts | 8 +++++++- app/utils/viewTransition.ts | 13 +++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 app/utils/viewTransition.ts diff --git a/app/stores/UiStore.ts b/app/stores/UiStore.ts index 84c59675a0..ecbeb68c77 100644 --- a/app/stores/UiStore.ts +++ b/app/stores/UiStore.ts @@ -1,8 +1,10 @@ import { action, autorun, computed, observable } from "mobx"; +import { flushSync } from "react-dom"; import { light as defaultTheme } from "@shared/styles/theme"; import Storage from "@shared/utils/Storage"; import Document from "~/models/Document"; import type { ConnectionStatus } from "~/scenes/Document/components/MultiplayerEditor"; +import { startViewTransition } from "~/utils/viewTransition"; import type RootStore from "./RootStore"; const UI_STORE = "UI_STORE"; @@ -140,7 +142,11 @@ class UiStore { @action setTheme = (theme: Theme) => { - this.theme = theme; + startViewTransition(() => { + flushSync(() => { + this.theme = theme; + }); + }); Storage.set("theme", this.theme); }; diff --git a/app/utils/viewTransition.ts b/app/utils/viewTransition.ts new file mode 100644 index 0000000000..95dcef9461 --- /dev/null +++ b/app/utils/viewTransition.ts @@ -0,0 +1,13 @@ +/** + * A simple wrapper around the startViewTransition API, if it exists. Otherwise + * it will just call the callback immediately. + * + * @param callback The callback to call inside the view transition. + */ +export const startViewTransition = (callback: UpdateCallback) => { + if (self.document.startViewTransition) { + self.document.startViewTransition(callback); + } else { + callback(); + } +}; From 7250bd3bcbdfeac1dbc5eb12ff1d3d4633ed6bcf Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 20 Oct 2024 21:21:51 -0400 Subject: [PATCH 51/52] fix: Cannot scrub videos in Chrome when using local storage closes #7517 --- plugins/storage/server/api/files.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/storage/server/api/files.ts b/plugins/storage/server/api/files.ts index e97a95e13a..904f8c236e 100644 --- a/plugins/storage/server/api/files.ts +++ b/plugins/storage/server/api/files.ts @@ -90,6 +90,7 @@ router.get( contentType = attachment.contentType; } + ctx.set("Accept-Ranges", "bytes"); ctx.set("Cache-Control", cacheHeader); ctx.set("Content-Type", contentType); ctx.attachment(fileName, { @@ -104,6 +105,7 @@ router.get( const range = getByteRange(ctx, stats.size); if (range) { + ctx.status = 206; ctx.set("Content-Length", String(range.end - range.start + 1)); ctx.set( "Content-Range", From 85957c10b82afe92270e3510d1600fdc6b0b7f88 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 20 Oct 2024 21:27:22 -0400 Subject: [PATCH 52/52] fix: Invalid regex error bubbles from FindAndReplace --- app/editor/extensions/FindAndReplace.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/editor/extensions/FindAndReplace.tsx b/app/editor/extensions/FindAndReplace.tsx index 199b641267..9cca9db143 100644 --- a/app/editor/extensions/FindAndReplace.tsx +++ b/app/editor/extensions/FindAndReplace.tsx @@ -244,10 +244,10 @@ export default class FindAndReplaceExtension extends Extension { }); mergedTextNodes.forEach(({ text = "", pos }) => { - const search = this.findRegExp; - let m; - try { + let m; + const search = this.findRegExp; + while ((m = search.exec(deburr(text)))) { if (m[0] === "") { break;