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: |
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/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/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/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/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/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: "";
diff --git a/app/components/InputSelectPermission.tsx b/app/components/InputSelectPermission.tsx
index cb861823d4..3286a5c07b 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 (
- = ({
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/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/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..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";
@@ -30,6 +29,8 @@ type Props = {
onDisclosureClick: (ev?: React.MouseEvent) => void;
activeDocument: Document | undefined;
isDraggingAnyCollection?: boolean;
+ depth?: number;
+ onClick?: () => void;
};
const CollectionLink: React.FC = ({
@@ -37,13 +38,14 @@ const CollectionLink: React.FC = ({
expanded,
onDisclosureClick,
isDraggingAnyCollection,
+ depth,
+ onClick,
}: Props) => {
const { dialogs, documents, collections } = useStores();
const [menuOpen, handleMenuOpen, handleMenuClose] = useBoolean();
const [isEditing, setIsEditing] = React.useState(false);
const can = usePolicy(collection);
const { t } = useTranslation();
- const history = useHistory();
const sidebarContext = useSidebarContext();
const editableTitleRef = React.useRef(null);
@@ -52,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
@@ -115,6 +116,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/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]);
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..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);
});
@@ -407,6 +414,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/editor/components/ComponentView.tsx b/app/editor/components/ComponentView.tsx
index 8384b61333..1a926d6f51 100644
--- a/app/editor/components/ComponentView.tsx
+++ b/app/editor/components/ComponentView.tsx
@@ -1,31 +1,51 @@
-import { Provider } from "mobx-react";
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 stores from "~/stores";
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,
@@ -33,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;
@@ -54,53 +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);
}
}
@@ -109,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/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/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/extensions/FindAndReplace.tsx b/app/editor/extensions/FindAndReplace.tsx
index 3849e011bd..9cca9db143 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";
@@ -243,11 +244,11 @@ export default class FindAndReplaceExtension extends Extension {
});
mergedTextNodes.forEach(({ text = "", pos }) => {
- const search = this.findRegExp;
- let m;
-
try {
- while ((m = search.exec(text))) {
+ let m;
+ const search = this.findRegExp;
+
+ while ((m = search.exec(deburr(text)))) {
if (m[0] === "") {
break;
}
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,
};
}
diff --git a/app/editor/extensions/Multiplayer.ts b/app/editor/extensions/Multiplayer.ts
index 25bf26d369..f037be8ceb 100644
--- a/app/editor/extensions/Multiplayer.ts
+++ b/app/editor/extensions/Multiplayer.ts
@@ -1,13 +1,23 @@
+import isEqual from "lodash/isEqual";
+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";
+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,54 @@ 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 userId = aw.user?.id;
+ const cached = userId ? userAwarenessCache.get(userId) : undefined;
+ if (!cached || !isEqual(cached?.aw, aw)) {
+ if (userId) {
+ userAwarenessCache.set(userId, { 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 +99,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/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/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/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/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/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);
}
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/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/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/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/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/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/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/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/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/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/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/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/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"
>
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) {
>
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/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) {
)}
-
+
{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,
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) => (
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/ApiKeysStore.ts b/app/stores/ApiKeysStore.ts
index f479ca2997..bd6cfbcea9 100644
--- a/app/stores/ApiKeysStore.ts
+++ b/app/stores/ApiKeysStore.ts
@@ -1,3 +1,4 @@
+import { computed } from "mobx";
import ApiKey from "~/models/ApiKey";
import RootStore from "./RootStore";
import Store, { RPCAction } from "./base/Store";
@@ -8,4 +9,12 @@ export default class ApiKeysStore extends Store {
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/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/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/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/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/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/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();
+ }
+};
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
diff --git a/package.json b/package.json
index 6b328f1d36..428d7ed5ea 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.8",
"@babel/preset-react": "^7.24.7",
"@benrbray/prosemirror-math": "^0.2.2",
"@bull-board/api": "^4.2.2",
@@ -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",
@@ -100,7 +99,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",
@@ -111,7 +110,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",
@@ -159,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",
@@ -179,7 +178,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",
@@ -239,11 +238,12 @@
"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",
"y-indexeddb": "^9.0.11",
+ "y-prosemirror": "^1.2.12",
"y-protocols": "^1.0.6",
"yauzl": "^2.10.0",
"yjs": "^13.6.1",
@@ -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",
@@ -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",
@@ -347,14 +347,14 @@
"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",
"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"
},
@@ -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/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..9ef06ef0d6 100644
--- a/plugins/azure/server/env.ts
+++ b/plugins/azure/server/env.ts
@@ -18,10 +18,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")
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
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/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",
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 867249856d..158750a410 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":
@@ -690,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/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/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
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/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..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,18 +225,12 @@ 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;
}
if (isObject(input)) {
- const output = { ...input };
+ const output: Record = { ...input };
for (const key of Object.keys(output)) {
if (isObject(output[key])) {
@@ -252,7 +245,7 @@ class Logger {
output[key] = this.sanitize(output[key], level + 1);
}
}
- return output;
+ return output as T;
}
return input;
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/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/Collection.test.ts b/server/models/Collection.test.ts
index d1e22631c7..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 () => {
@@ -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.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 f3b84fbe12..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
/**
@@ -975,68 +1023,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 +1144,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 +1153,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 +1188,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 +1234,7 @@ class Document extends ArchivableModel<
where: {
parentDocumentId,
},
+ ...options,
});
for (const child of childDocuments) {
await archiveChildren(child.id);
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/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)}`
+ );
}
/**
diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx
index 24faec25cd..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";
@@ -14,7 +11,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 +222,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, type?: string) {
+ static parseMentions(
+ document: Document | Revision,
+ options?: Partial
+ ) {
const node = DocumentHelper.toProsemirror(document);
- return ProsemirrorHelper.parseMentions(node, type);
+ 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 2bcc4de4d9..99104df4ff 100644
--- a/server/models/helpers/ProsemirrorHelper.tsx
+++ b/server/models/helpers/ProsemirrorHelper.tsx
@@ -1,12 +1,13 @@
-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";
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";
@@ -37,7 +38,7 @@ export type HTMLOptions = {
baseUrl?: string;
};
-type MentionAttrs = {
+export type MentionAttrs = {
type: string;
label: string;
modelId: string;
@@ -131,18 +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 type An optional mention type to filter by
+ * @param options Attributes to use for filtering mentions
* @returns An array of mention attributes
*/
- static parseMentions(doc: Node, type?: string) {
+ 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" &&
- (!type || node.attrs.type === type) &&
- !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;
}
@@ -157,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/models/helpers/SearchHelper.ts b/server/models/helpers/SearchHelper.ts
index f40142a495..c0c55d1a40 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) {
@@ -340,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/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/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/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/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/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/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/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/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/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/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 2a8c5f1a5b..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";
@@ -225,9 +226,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);
});
});
});
@@ -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/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/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 */
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..2cbf08dd7b 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,62 @@ 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 & {
+ [Op.and]: 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 +869,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 +879,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 +928,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/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,
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..4a47a44e7b 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,54 @@ 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 & {
+ [Op.and]: 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 +143,18 @@ router.post(
documentIds = (collection?.documentStructure || [])
.map((node) => node.id)
.slice(ctx.state.pagination.offset, ctx.state.pagination.limit);
- where = { ...where, id: documentIds };
- } // otherwise, filter by all collections the user has access to
- } else {
+ where[Op.and].push({ id: documentIds });
+ } // 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 = {
- ...where,
+ where[Op.and].push({
collectionId:
template && can(user, "readTemplate", user.team)
? {
[Op.or]: [{ [Op.in]: collectionIds }, { [Op.is]: null }],
}
: collectionIds,
- };
+ });
}
if (parentDocumentId) {
@@ -177,53 +188,104 @@ 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) {
- const backlinks = await Backlink.findAll({
- attributes: ["reverseDocumentId"],
- where: {
- documentId: backlinkDocumentId,
- },
- });
- where = {
- ...where,
- 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"));
}
- 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 +295,7 @@ router.post(
documents.map((document) => presentDocument(ctx, document))
);
const policies = presentPolicies(user, documents);
+
ctx.body = {
pagination: { ...ctx.state.pagination, total },
data,
@@ -738,81 +801,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 +1373,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/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/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/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/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/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/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"],
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/test/factories.ts b/server/test/factories.ts
index 94c4a9e3bf..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,
@@ -167,6 +170,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,
});
}
@@ -284,6 +288,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),
@@ -636,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,
+ });
+}
diff --git a/server/test/fixtures/outline-json.zip b/server/test/fixtures/outline-json.zip
new file mode 100644
index 0000000000..a9fe2dec43
Binary files /dev/null and b/server/test/fixtures/outline-json.zip differ
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/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/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/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,
});
}
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);
diff --git a/server/utils/indexing.ts b/server/utils/indexing.ts
index e64030a3c1..8d2b509646 100644
--- a/server/utils/indexing.ts
+++ b/server/utils/indexing.ts
@@ -1,10 +1,12 @@
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
-): Promise<{ [id: string]: string }> {
+ teamId: string,
+ { transaction }: FindOptions
+) {
const collections = await Collection.findAll({
where: {
teamId,
@@ -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;
@@ -31,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 },
});
@@ -74,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/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/components/Mentions.tsx b/shared/editor/components/Mentions.tsx
index 5f6b4fa28a..392c46f29f 100644
--- a/shared/editor/components/Mentions.tsx
+++ b/shared/editor/components/Mentions.tsx
@@ -1,6 +1,5 @@
import { DocumentIcon } from "outline-icons";
import * as React from "react";
-import Icon from "~/components/Icon";
import { cn } from "../styles/utils";
import { ComponentProps } from "../types";
import useStores from "./hooks/useStores";
@@ -38,7 +37,8 @@ export function MentionDocument(props: ComponentProps) {
href={`/doc/${node.attrs.modelId}`}
>
{doc?.icon ? (
-
+ //
+ doc.icon
) : (
)}{" "}
diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts
index 87e7772237..aa69c7d3cc 100644
--- a/shared/editor/components/Styles.ts
+++ b/shared/editor/components/Styles.ts
@@ -295,11 +295,11 @@ width: 100%;
cursor: default;
text-decoration: none;
- &.mention-user:before {
+ &.mention-user::before {
content: "@";
}
- &.mention-document:before {
+ &.mention-document::before {
content: "+";
}
}
@@ -361,17 +361,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,
@@ -391,6 +398,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;
@@ -400,7 +411,7 @@ width: 100%;
height: 1em;
word-break: normal;
- &:after {
+ &::after {
content: "";
display: block;
position: absolute;
@@ -633,15 +644,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 {
@@ -667,7 +685,7 @@ img.ProseMirror-separator {
}
.heading-content {
- &:before {
+ &::before {
content: "";
display: inline;
}
@@ -707,22 +725,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";
}
@@ -777,14 +795,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;
}
@@ -824,7 +847,7 @@ h6 {
.heading-actions {
display: inline-flex;
}
- &:not(.placeholder):before {
+ &:not(.placeholder)::before {
display: ${props.readOnly ? "none" : "inline-block"};
}
}
@@ -837,15 +860,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;
@@ -856,9 +883,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;
}
@@ -904,12 +931,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 {
@@ -960,17 +994,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,
@@ -1028,8 +1067,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 {
@@ -1042,8 +1086,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,
@@ -1063,26 +1112,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,
@@ -1090,9 +1152,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,
@@ -1105,8 +1173,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 {
@@ -1116,13 +1191,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(
"#",
@@ -1155,7 +1234,7 @@ hr {
border: 0;
}
-hr:before {
+hr::before {
content: "";
display: block;
position: absolute;
@@ -1169,7 +1248,7 @@ hr.page-break {
page-break-after: always;
}
-hr.page-break:before {
+hr.page-break::before {
border-top: 1px dashed ${props.theme.horizontalRule};
}
@@ -1244,7 +1323,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;
@@ -1353,9 +1432,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 {
@@ -1710,7 +1793,7 @@ table {
position: absolute;
}
-.ProseMirror-gapcursor:after {
+.ProseMirror-gapcursor::after {
content: "";
display: block;
position: absolute;
@@ -1758,16 +1841,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/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,
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/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/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/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/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 =>
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/Heading.ts b/shared/editor/nodes/Heading.ts
index 40843c8beb..f9c19513c6 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",
{
@@ -217,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/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);
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/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)) {
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/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}}2>, is shared": "Kdokoli s odkazem má přístup, protože dokument dědí oprávnění po nadřazeném dokumentu <2>{{documentTitle}}2>",
"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>2> unless restored.": "Tento dokument bude trvale odstraněn v <2>2> dokud nebude obnoven.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Zvýrazněte nějaký text a použijte <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "This document will be permanently deleted in <2>2> unless restored.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1>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}}2>, is shared": "Jeder mit diesem Link kann darauf zugreifen, da das übergeordnete Dokument, <2>{{documentTitle}}2>, 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>2> unless restored.": "Dieses Dokument wird dauerhaft in <2>2> gelöscht, wenn es nicht wiederhergestellt wird.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Markiere eine Textstelle und nutze das <1>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/en_US/translation.json b/shared/i18n/locales/en_US/translation.json
index f14750949d..94810902fb 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",
@@ -163,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",
@@ -342,6 +348,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",
@@ -453,6 +460,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 +505,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 +565,7 @@
"{{ usersCount }} users with access_plural": "{{ usersCount }} users with access",
"{{ groupsCount }} groups with access": "{{ groupsCount }} groups 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 +638,6 @@
"This document will be permanently deleted in <2>2> unless restored.": "This document will be permanently deleted in <2>2> unless restored.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1>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/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}}2>, is shared": "Cualquiera con el enlace puede acceder porque el documento padre, <2>{{documentTitle}}2>, 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>2> unless restored.": "Este documento se eliminará permanentemente en <2>2> a menos de que se restaure.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Resalta algo de texto y usa el control <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "این سند برای همیشه در <2>2> حذف خواهد شد، مگر اینکه بازیابی شود.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1>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}}2>, is shared": "N'importe qui avec le lien peut accéder car le document parent, <2>{{documentTitle}}2>, 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>2> unless restored.": "Ce document sera définitivement supprimé dans <2>2> sauf s'il est restauré.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Sélectionnez du texte et utilisez le contrôle <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "This document will be permanently deleted in <2>2> unless restored.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "Ez a dokumentum véglegesen törölve lesz <2>2>, hacsak nem álítja vissza.",
"Highlight some text and use the <1>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>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "Dokumen ini akan dihapus secara permanen di <2>2> kecuali dipulihkan.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Sorot beberapa teks dan gunakan <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "Questo documento verrà eliminato definitivamente tra <2>2> salvo ripristino.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Evidenzia del testo e usa il comando <1>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}}2>, is shared": "親ドキュメント <2>{{documentTitle}}2> が共有されているため、リンクを持っている人は誰でもアクセスできます",
"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>2> unless restored.": "このドキュメントは復元されない限り、<2>2> 後に、永久に削除されます。",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "このテンプレートを使用して新しいドキュメントを作成する際に埋められる要素を追加するには、<1>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}}2>, is shared": "상위 문서인 <2>{{documentTitle}}2> 이(가) 공유되어 있으므로 링크를 가진 사람은 누구나 접근 가능",
"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>2> unless restored.": "이 문서는 복원하지 않으면 <2>2> 에서 영구적으로 삭제됩니다.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "일부 텍스트를 강조 표시하고 <1>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}}2>, is shared": "Alle med koblingen har tilgang fordi det overordnede dokumentet, <2>{{documentTitle}}2>, 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>2> unless restored.": "Dette dokumentet vil bli slettet permanent innen <2>2> med mindre det gjenopprettes.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Marker noe tekst og bruk <1>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}}2>, is shared": "Iedereen met de link heeft toegang, omdat het bovenliggend document <2>{{documentTitle}}2> 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>2> unless restored.": "Dit document wordt definitief verwijderd over <2>2> als dit niet wordt hersteld.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Markeer wat tekst en gebruik het <1>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}}2>, is shared": "Każdy, kto posiada link, może uzyskać dostęp, ponieważ nadrzędny dokument, <2>{{documentTitle}}2>, 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>2> unless restored.": "Ten dokument zostanie trwale usunięty w <2>2> chyba że zostanie przywrócony.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Zaznacz jakiś tekst i użyj kontroli <1>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}}2>, is shared": "Qualquer pessoa com o link pode acessar, pois, o documento principal, <2>{{documentTitle}}2>, 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>2> unless restored.": "Este documento será excluído permanentemente em <2>2>, a menos que seja restaurado.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Destaque algum texto e use o controle <1>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}}2>, is shared": "Qualquer pessoa com a ligação pode aceder porque o documento principal, <2>{{documentTitle}}2>, 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>2> unless restored.": "Este documento será permanentemente eliminado em <2>2>, se não for reposto.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Selecione algum texto e use o controlo <1>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}}2>, is shared": "Alla med länken kan komma åt eftersom det överordnade dokumentet, <2>{{documentTitle}}2>, 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>2> unless restored.": "Detta dokument kommer att raderas permanent i <2>2> om det inte återställs.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Markera lite text och använd kontrollen <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "This document will be permanently deleted in <2>2> unless restored.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "Bu belge, restore edilmedikçe <2>2> içinde kalıcı olarak silinecek.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Bir metni seçin ve <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "Цей шаблон буде остаточно видалено через <2>2> якщо не буде відновлено.",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "Виділіть деякий текст і використовуйте контроль над <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "Tài liệu này sẽ bị xóa vĩnh viễn sau <2>2> trừ khi được khôi phục.",
"Highlight some text and use the <1>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>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}}2>, is shared": "知道该链接的任何人都可以访问,因为父级文档 <2>{{documentTitle}}2> 已共享",
"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>2> unless restored.": "此文档将在 <2>2> 后永久删除,除非手动恢复。",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "选中一些文本,然后通过 <1>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}}2>, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}2>, 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>2> unless restored.": "文件若未於 <2>2> 還原,將被永久刪除。",
"Highlight some text and use the <1>1> control to add placeholders that can be filled out when creating new documents": "高亮顯示一些文字並使用 <1>1> 控制項添加可以在建立新文件時填寫的佔位符",
"You’re editing a template": "您正在編輯範本",
- "Archived by {{userName}}": "已由 {{userName}} 封存",
"Deleted by {{userName}}": "已由 {{userName}} 刪除",
"Observing {{ userName }}": "正在觀察 {{ userName }}",
"Backlinks": "反向連結",
diff --git a/shared/types.ts b/shared/types.ts
index a48f837996..e575db3a39 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",
@@ -289,20 +293,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/*"],
diff --git a/yarn.lock b/yarn.lock
index 684886cc67..fd8f0ee159 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -737,18 +737,18 @@
"@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==
+"@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==
dependencies:
- "@babel/highlight" "^7.24.7"
+ "@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.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/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"
@@ -771,64 +771,62 @@
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==
+"@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==
dependencies:
- "@babel/types" "^7.25.6"
+ "@babel/types" "^7.25.7"
"@jridgewell/gen-mapping" "^0.3.5"
"@jridgewell/trace-mapping" "^0.3.25"
- jsesc "^2.5.1"
+ 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==
+"@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==
dependencies:
- "@babel/types" "^7.24.7"
+ "@babel/types" "^7.25.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-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/traverse" "^7.24.7"
- "@babel/types" "^7.24.7"
+ "@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.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-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.2"
- "@babel/helper-validator-option" "^7.24.8"
- browserslist "^4.23.1"
+ "@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"
-"@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==
+"@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==
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"
+ "@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", "@babel/helper-create-regexp-features-plugin@^7.24.7":
- 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==
+"@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==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.24.7"
- regexpu-core "^5.3.1"
+ "@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":
@@ -845,7 +843,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==
@@ -856,131 +854,101 @@
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==
+"@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/types" "^7.24.7"
+ "@babel/traverse" "^7.25.7"
+ "@babel/types" "^7.25.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==
+"@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==
dependencies:
- "@babel/template" "^7.24.7"
- "@babel/types" "^7.24.7"
+ "@babel/traverse" "^7.25.7"
+ "@babel/types" "^7.25.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==
+"@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==
dependencies:
- "@babel/types" "^7.24.7"
+ "@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-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==
+"@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/traverse" "^7.24.7"
- "@babel/types" "^7.24.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==
+"@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==
+
+"@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/traverse" "^7.24.7"
- "@babel/types" "^7.24.7"
+ "@babel/helper-annotate-as-pure" "^7.25.7"
+ "@babel/helper-wrap-function" "^7.25.7"
+ "@babel/traverse" "^7.25.7"
-"@babel/helper-module-transforms@^7.24.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==
+"@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-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-member-expression-to-functions" "^7.25.7"
+ "@babel/helper-optimise-call-expression" "^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==
+"@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/types" "^7.24.7"
+ "@babel/traverse" "^7.25.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.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-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/helper-annotate-as-pure" "^7.24.7"
- "@babel/helper-environment-visitor" "^7.24.7"
- "@babel/helper-wrap-function" "^7.24.7"
+ "@babel/traverse" "^7.25.7"
+ "@babel/types" "^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==
+"@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.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-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-environment-visitor" "^7.24.7"
- "@babel/helper-member-expression-to-functions" "^7.24.7"
- "@babel/helper-optimise-call-expression" "^7.24.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-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-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":
- 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-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-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==
- 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"
@@ -990,54 +958,61 @@
"@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==
+"@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.24.7"
+ "@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"
- integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==
+"@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==
dependencies:
- "@babel/types" "^7.25.6"
+ "@babel/types" "^7.25.7"
-"@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/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-environment-visitor" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
+ "@babel/traverse" "^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-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-plugin-utils" "^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-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-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-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-environment-visitor" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.7"
+ "@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"
@@ -1067,20 +1042,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"
@@ -1088,35 +1056,21 @@
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=="
+"@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.8.0"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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=="
+"@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.8.3"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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==
- dependencies:
- "@babel/helper-plugin-utils" "^7.24.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==
- dependencies:
- "@babel/helper-plugin-utils" "^7.24.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==
@@ -1137,7 +1091,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=="
@@ -1151,7 +1105,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=="
@@ -1179,14 +1133,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=="
@@ -1208,310 +1155,304 @@
"@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.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-environment-visitor" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.7"
- "@babel/helper-remap-async-to-generator" "^7.24.7"
- "@babel/plugin-syntax-async-generators" "^7.8.4"
+ "@babel/helper-plugin-utils" "^7.25.7"
+ "@babel/helper-remap-async-to-generator" "^7.25.7"
+ "@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.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.24.7"
- "@babel/helper-plugin-utils" "^7.24.7"
- "@babel/plugin-syntax-class-static-block" "^7.14.5"
+ "@babel/helper-create-class-features-plugin" "^7.25.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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/plugin-syntax-dynamic-import" "^7.8.3"
+ "@babel/helper-create-regexp-features-plugin" "^7.25.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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-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-builder-binary-assignment-operator-visitor" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.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-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-plugin-utils" "^7.24.7"
- "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
+ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.25.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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-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.24.7"
- "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7"
+ "@babel/helper-plugin-utils" "^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-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-compilation-targets" "^7.24.7"
- "@babel/helper-function-name" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^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-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-plugin-utils" "^7.24.7"
- "@babel/plugin-syntax-json-strings" "^7.8.3"
+ "@babel/helper-compilation-targets" "^7.25.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
+ "@babel/traverse" "^7.25.7"
-"@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-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.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-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/plugin-syntax-logical-assignment-operators" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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-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.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-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-module-transforms" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.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-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-simple-access" "^7.24.7"
+ "@babel/helper-module-transforms" "^7.25.7"
+ "@babel/helper-plugin-utils" "^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-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-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-simple-access" "^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-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-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/helper-validator-identifier" "^7.25.7"
+ "@babel/traverse" "^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-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-create-regexp-features-plugin" "^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-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-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-plugin-utils" "^7.24.7"
+ "@babel/helper-create-regexp-features-plugin" "^7.25.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-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/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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-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.24.7"
- "@babel/plugin-syntax-numeric-separator" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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-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-compilation-targets" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.7"
- "@babel/plugin-syntax-object-rest-spread" "^7.8.3"
- "@babel/plugin-transform-parameters" "^7.24.7"
+ "@babel/helper-plugin-utils" "^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-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-plugin-utils" "^7.24.7"
- "@babel/helper-replace-supers" "^7.24.7"
+ "@babel/helper-compilation-targets" "^7.25.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
+ "@babel/plugin-transform-parameters" "^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-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/plugin-syntax-optional-catch-binding" "^7.8.3"
+ "@babel/helper-plugin-utils" "^7.25.7"
+ "@babel/helper-replace-supers" "^7.25.7"
-"@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-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.24.7"
- "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7"
- "@babel/plugin-syntax-optional-chaining" "^7.8.3"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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-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.24.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^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-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-create-class-features-plugin" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.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-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-annotate-as-pure" "^7.24.7"
- "@babel/helper-create-class-features-plugin" "^7.24.7"
- "@babel/helper-plugin-utils" "^7.24.7"
- "@babel/plugin-syntax-private-property-in-object" "^7.14.5"
+ "@babel/helper-create-class-features-plugin" "^7.25.7"
+ "@babel/helper-plugin-utils" "^7.25.7"
-"@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-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-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-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.25.7"
"@babel/plugin-transform-react-display-name@^7.24.7":
version "7.24.7"
@@ -1560,20 +1501,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 +1528,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,122 +1574,109 @@
"@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.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.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.8"
+ "@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-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-import-assertions" "^7.25.7"
+ "@babel/plugin-syntax-import-attributes" "^7.25.7"
"@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.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.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.8"
+ "@babel/plugin-transform-exponentiation-operator" "^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.8"
+ "@babel/plugin-transform-literals" "^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"
+ "@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.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.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.8"
+ "@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":
@@ -1783,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"
@@ -1795,35 +1718,35 @@
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==
+"@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==
dependencies:
- "@babel/code-frame" "^7.24.7"
- "@babel/parser" "^7.25.0"
- "@babel/types" "^7.25.0"
+ "@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"
- integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==
+"@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==
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"
+ "@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"
- integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==
+"@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==
dependencies:
- "@babel/helper-string-parser" "^7.24.8"
- "@babel/helper-validator-identifier" "^7.24.7"
+ "@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":
@@ -2420,13 +2343,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"
@@ -4954,10 +4870,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" "*"
@@ -5828,13 +5744,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,13 +6030,13 @@ browserslist-to-esbuild@^1.2.0:
dependencies:
browserslist "^4.17.3"
-browserslist@^4.17.3, browserslist@^4.23.0, browserslist@^4.23.1:
- version "4.23.3"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800"
- integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==
+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==
dependencies:
- caniuse-lite "^1.0.30001646"
- electron-to-chromium "^1.5.4"
+ caniuse-lite "^1.0.30001663"
+ electron-to-chromium "^1.5.28"
node-releases "^2.0.18"
update-browserslist-db "^1.1.0"
@@ -6247,10 +6163,10 @@ camelize@^1.0.0:
resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
integrity "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs= sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg=="
-caniuse-lite@^1.0.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:
+ 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"
@@ -6705,10 +6621,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"
@@ -6737,12 +6653,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"
@@ -7504,10 +7420,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"
@@ -7665,10 +7581,10 @@ ejs@^3.1.6, ejs@^3.1.7:
dependencies:
jake "^10.8.5"
-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==
+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==
elkjs@^0.8.2:
version "0.8.2"
@@ -7690,10 +7606,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"
@@ -10472,15 +10388,10 @@ 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@~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=="
+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==
json-parse-even-better-errors@^2.3.0:
version "2.3.1"
@@ -11659,10 +11570,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"
@@ -11701,10 +11612,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"
@@ -11991,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"
@@ -12345,10 +12256,10 @@ 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.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==
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1:
version "2.3.1"
@@ -12433,14 +12344,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"
@@ -12649,10 +12560,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"
@@ -13222,10 +13133,10 @@ 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=="
+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"
@@ -13266,24 +13177,29 @@ 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==
+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:
- "@babel/regjsgen" "^0.8.0"
regenerate "^1.4.2"
- regenerate-unicode-properties "^10.1.0"
- regjsparser "^0.9.1"
+ 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"
-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=="
+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 "~0.5.0"
+ jsesc "~3.0.2"
reinterval@^1.1.0:
version "1.1.0"
@@ -13484,7 +13400,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=="
@@ -13903,10 +13819,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"
@@ -14756,10 +14672,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"
@@ -15090,14 +15006,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"
@@ -15554,6 +15470,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"