diff --git a/.jestconfig.json b/.jestconfig.json index c45e43e75e..c63342864f 100644 --- a/.jestconfig.json +++ b/.jestconfig.json @@ -14,7 +14,8 @@ "setupFilesAfterEnv": ["/server/test/setup.ts"], "globalSetup": "/server/test/globalSetup.js", "globalTeardown": "/server/test/globalTeardown.js", - "testEnvironment": "node" + "testEnvironment": "node", + "testTimeout": 10000 }, { "displayName": "app", diff --git a/app/actions/definitions/collections.tsx b/app/actions/definitions/collections.tsx index ee97fd7b33..b692ca1868 100644 --- a/app/actions/definitions/collections.tsx +++ b/app/actions/definitions/collections.tsx @@ -15,7 +15,6 @@ import { } 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"; @@ -62,7 +61,7 @@ export const createCollection = createAction({ keywords: "create", visible: ({ stores }) => stores.policies.abilities(stores.auth.team?.id || "").createCollection, - perform: ({ t, event }) => { + perform: ({ t, event, stores }) => { event?.preventDefault(); event?.stopPropagation(); stores.dialogs.openModal({ @@ -78,10 +77,10 @@ export const editCollection = createAction({ analyticsName: "Edit collection", section: ActiveCollectionSection, icon: , - visible: ({ activeCollectionId }) => + visible: ({ activeCollectionId, stores }) => !!activeCollectionId && stores.policies.abilities(activeCollectionId).update, - perform: ({ t, activeCollectionId }) => { + perform: ({ t, activeCollectionId, stores }) => { if (!activeCollectionId) { return; } @@ -104,10 +103,10 @@ export const editCollectionPermissions = createAction({ analyticsName: "Collection permissions", section: ActiveCollectionSection, icon: , - visible: ({ activeCollectionId }) => + visible: ({ activeCollectionId, stores }) => !!activeCollectionId && stores.policies.abilities(activeCollectionId).update, - perform: ({ t, activeCollectionId }) => { + perform: ({ t, activeCollectionId, stores }) => { if (!activeCollectionId) { return; } @@ -135,7 +134,7 @@ export const searchInCollection = createAction({ analyticsName: "Search collection", section: ActiveCollectionSection, icon: , - visible: ({ activeCollectionId }) => { + visible: ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return false; } @@ -150,7 +149,7 @@ export const searchInCollection = createAction({ }, perform: ({ activeCollectionId }) => { - history.push(searchPath(undefined, { collectionId: activeCollectionId })); + history.push(searchPath({ collectionId: activeCollectionId })); }, }); @@ -160,7 +159,7 @@ export const starCollection = createAction({ section: ActiveCollectionSection, icon: , keywords: "favorite bookmark", - visible: ({ activeCollectionId }) => { + visible: ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return false; } @@ -170,7 +169,7 @@ export const starCollection = createAction({ stores.policies.abilities(activeCollectionId).star ); }, - perform: async ({ activeCollectionId }) => { + perform: async ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return; } @@ -187,7 +186,7 @@ export const unstarCollection = createAction({ section: ActiveCollectionSection, icon: , keywords: "unfavorite unbookmark", - visible: ({ activeCollectionId }) => { + visible: ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return false; } @@ -197,7 +196,7 @@ export const unstarCollection = createAction({ stores.policies.abilities(activeCollectionId).unstar ); }, - perform: async ({ activeCollectionId }) => { + perform: async ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return; } @@ -339,13 +338,13 @@ export const deleteCollection = createAction({ section: ActiveCollectionSection, dangerous: true, icon: , - visible: ({ activeCollectionId }) => { + visible: ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return false; } return stores.policies.abilities(activeCollectionId).delete; }, - perform: ({ activeCollectionId, t }) => { + perform: ({ activeCollectionId, t, stores }) => { if (!activeCollectionId) { return; } @@ -373,7 +372,7 @@ export const createTemplate = createAction({ section: ActiveCollectionSection, icon: , keywords: "new create template", - visible: ({ activeCollectionId }) => + visible: ({ activeCollectionId, stores }) => !!( !!activeCollectionId && stores.policies.abilities(activeCollectionId).createDocument diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index d7e2950f2a..911a466ed5 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -683,6 +683,7 @@ export const searchInDocument = createAction({ name: ({ t }) => t("Search in document"), analyticsName: "Search document", section: ActiveDocumentSection, + shortcut: [`Meta+/`], icon: , visible: ({ stores, activeDocumentId }) => { if (!activeDocumentId) { @@ -692,7 +693,7 @@ export const searchInDocument = createAction({ return !!document?.isActive; }, perform: ({ activeDocumentId }) => { - history.push(searchPath(undefined, { documentId: activeDocumentId })); + history.push(searchPath({ documentId: activeDocumentId })); }, }); @@ -805,15 +806,15 @@ export const openRandomDocument = createAction({ }, }); -export const searchDocumentsForQuery = (searchQuery: string) => +export const searchDocumentsForQuery = (query: string) => createAction({ id: "search", name: ({ t }) => - t(`Search documents for "{{searchQuery}}"`, { searchQuery }), + t(`Search documents for "{{searchQuery}}"`, { searchQuery: query }), analyticsName: "Search documents", section: DocumentSection, icon: , - perform: () => history.push(searchPath(searchQuery)), + perform: () => history.push(searchPath({ query })), visible: ({ location }) => location.pathname !== searchPath(), }); @@ -1210,6 +1211,7 @@ export const rootDocumentActions = [ unpublishDocument, subscribeDocument, unsubscribeDocument, + searchInDocument, duplicateDocument, leaveDocument, moveTemplateToWorkspace, diff --git a/app/actions/definitions/navigation.tsx b/app/actions/definitions/navigation.tsx index 1283359c5d..a25801f0a7 100644 --- a/app/actions/definitions/navigation.tsx +++ b/app/actions/definitions/navigation.tsx @@ -50,7 +50,7 @@ export const navigateToRecentSearchQuery = (searchQuery: SearchQuery) => name: searchQuery.query, analyticsName: "Navigate to recent search query", icon: , - perform: () => history.push(searchPath(searchQuery.query)), + perform: () => history.push(searchPath({ query: searchQuery.query })), }); export const navigateToDrafts = createAction({ @@ -62,6 +62,15 @@ export const navigateToDrafts = createAction({ visible: ({ location }) => location.pathname !== draftsPath(), }); +export const navigateToSearch = createAction({ + name: ({ t }) => t("Search"), + analyticsName: "Navigate to search", + section: NavigationSection, + icon: , + perform: () => history.push(searchPath()), + visible: ({ location }) => location.pathname !== searchPath(), +}); + export const navigateToArchive = createAction({ name: ({ t }) => t("Archive"), analyticsName: "Navigate to archive", diff --git a/app/actions/sections.ts b/app/actions/sections.ts index 3a5369b884..2046eb3d52 100644 --- a/app/actions/sections.ts +++ b/app/actions/sections.ts @@ -2,6 +2,8 @@ import { ActionContext } from "~/types"; export const CollectionSection = ({ t }: ActionContext) => t("Collection"); +export const CollectionsSection = ({ t }: ActionContext) => t("Collections"); + export const ActiveCollectionSection = ({ t, stores }: ActionContext) => { const activeCollection = stores.collections.active; return `${t("Collection")} · ${activeCollection?.name}`; diff --git a/app/components/AuthenticatedLayout.tsx b/app/components/AuthenticatedLayout.tsx index f9bfe1f985..c51a16b545 100644 --- a/app/components/AuthenticatedLayout.tsx +++ b/app/components/AuthenticatedLayout.tsx @@ -3,7 +3,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { Switch, Route, useLocation, matchPath } from "react-router-dom"; import { TeamPreference } from "@shared/types"; -import ErrorSuspended from "~/scenes/ErrorSuspended"; +import ErrorSuspended from "~/scenes/Errors/ErrorSuspended"; import Layout from "~/components/Layout"; import RegisterKeyDown from "~/components/RegisterKeyDown"; import Sidebar from "~/components/Sidebar"; diff --git a/app/components/CommandBar/CommandBarItem.tsx b/app/components/CommandBar/CommandBarItem.tsx index 6f34115c54..74bb222547 100644 --- a/app/components/CommandBar/CommandBarItem.tsx +++ b/app/components/CommandBar/CommandBarItem.tsx @@ -3,6 +3,7 @@ import { ArrowIcon, BackIcon } from "outline-icons"; import * as React from "react"; import styled, { css, useTheme } from "styled-components"; import { s, ellipsis } from "@shared/styles"; +import { normalizeKeyDisplay } from "@shared/utils/keyboard"; import Flex from "~/components/Flex"; import Key from "~/components/Key"; import Text from "~/components/Text"; @@ -70,7 +71,7 @@ function CommandBarItem( "" )} {sc.split("+").map((key) => ( - {key} + {normalizeKeyDisplay(key)} ))} ))} diff --git a/app/components/ContextMenu/MenuItem.tsx b/app/components/ContextMenu/MenuItem.tsx index 1febb9b7ee..680dab5502 100644 --- a/app/components/ContextMenu/MenuItem.tsx +++ b/app/components/ContextMenu/MenuItem.tsx @@ -13,6 +13,7 @@ import MenuIconWrapper from "./MenuIconWrapper"; type Props = { id?: string; onClick?: (event: React.MouseEvent) => void | Promise; + onPointerMove?: (event: React.MouseEvent) => void | Promise; active?: boolean; selected?: boolean; disabled?: boolean; @@ -31,6 +32,7 @@ type Props = { const MenuItem = ( { onClick, + onPointerMove, children, active, selected, @@ -90,6 +92,7 @@ const MenuItem = ( return ( ` &:focus-visible { color: ${props.theme.accentText}; background: ${props.dangerous ? props.theme.danger : props.theme.accent}; + outline-color: ${ + props.dangerous ? props.theme.danger : props.theme.accent + }; box-shadow: none; cursor: var(--pointer); diff --git a/app/components/Sidebar/components/EditableTitle.tsx b/app/components/EditableTitle.tsx similarity index 91% rename from app/components/Sidebar/components/EditableTitle.tsx rename to app/components/EditableTitle.tsx index 2eed914256..0d691c1b17 100644 --- a/app/components/Sidebar/components/EditableTitle.tsx +++ b/app/components/EditableTitle.tsx @@ -73,15 +73,13 @@ function EditableTitle( return; } - if (document) { - try { - await onSubmit(trimmedValue); - setOriginalValue(trimmedValue); - } catch (error) { - setValue(originalValue); - toast.error(error.message); - throw error; - } + try { + await onSubmit(trimmedValue); + setOriginalValue(trimmedValue); + } catch (error) { + setValue(originalValue); + toast.error(error.message); + throw error; } }, [originalValue, value, onCancel, onSubmit] @@ -127,7 +125,10 @@ function EditableTitle( /> ) : ( - + {value} )} diff --git a/app/components/Empty.ts b/app/components/Empty.ts index f12aafba55..72c42ab641 100644 --- a/app/components/Empty.ts +++ b/app/components/Empty.ts @@ -1,9 +1,9 @@ import styled from "styled-components"; -import { s } from "@shared/styles"; +import Text from "~/components/Text"; -const Empty = styled.p` - color: ${s("textTertiary")}; - user-select: none; -`; +const Empty = styled(Text).attrs({ + type: "tertiary", + selectable: false, +})``; export default Empty; diff --git a/app/components/ErrorBoundary.tsx b/app/components/ErrorBoundary.tsx index 207da6a698..a502786704 100644 --- a/app/components/ErrorBoundary.tsx +++ b/app/components/ErrorBoundary.tsx @@ -7,6 +7,7 @@ import { s } from "@shared/styles"; import { UrlHelper } from "@shared/utils/UrlHelper"; import Button from "~/components/Button"; import CenteredContent from "~/components/CenteredContent"; +import Heading from "~/components/Heading"; import PageTitle from "~/components/PageTitle"; import Text from "~/components/Text"; import env from "~/env"; @@ -77,9 +78,9 @@ class ErrorBoundary extends React.Component { {showTitle && ( <> -

+ Loading Failed -

+ )} @@ -101,9 +102,9 @@ class ErrorBoundary extends React.Component { {showTitle && ( <> -

+ Something Unexpected Happened -

+ )} diff --git a/app/components/EventListItem.tsx b/app/components/EventListItem.tsx index 107b98b3fe..daa8f710cb 100644 --- a/app/components/EventListItem.tsx +++ b/app/components/EventListItem.tsx @@ -234,7 +234,7 @@ const lineStyle = css` width: 1px; height: calc(50% - 14px + 8px); background: ${s("divider")}; - mix-blend-mode: multiply; + mix-blend-mode: ${(props) => (props.theme.isDark ? "lighten" : "multiply")}; z-index: 1; } @@ -255,7 +255,7 @@ const lineStyle = css` width: 1px; height: calc(50% - 14px); background: ${s("divider")}; - mix-blend-mode: multiply; + mix-blend-mode: ${(props) => (props.theme.isDark ? "lighten" : "multiply")}; z-index: 1; } diff --git a/app/components/Fade.ts b/app/components/Fade.ts deleted file mode 100644 index ad6791d2ae..0000000000 --- a/app/components/Fade.ts +++ /dev/null @@ -1,8 +0,0 @@ -import styled from "styled-components"; -import { fadeIn } from "~/styles/animations"; - -const Fade = styled.span<{ timing?: number | string }>` - animation: ${fadeIn} ${(props) => props.timing || "250ms"} ease-in-out; -`; - -export default Fade; diff --git a/app/components/Fade.tsx b/app/components/Fade.tsx new file mode 100644 index 0000000000..2f61695457 --- /dev/null +++ b/app/components/Fade.tsx @@ -0,0 +1,24 @@ +import React from "react"; +import styled from "styled-components"; +import { fadeIn } from "~/styles/animations"; + +const Fade = styled.span<{ timing?: number | string }>` + animation: ${fadeIn} ${(props) => props.timing || "250ms"} ease-in-out; +`; + +type Props = { + children?: JSX.Element | null; + /** If true, children will be animated. */ + animate: boolean; +}; + +/** + * Wraps children in a if loading is true on mount. + */ +export const ConditionalFade = ({ animate, children }: Props) => { + const [isAnimated] = React.useState(animate); + + return isAnimated ? {children} : <>{children}; +}; + +export default Fade; diff --git a/app/components/FilterOptions.tsx b/app/components/FilterOptions.tsx index ba0a10a687..34a4da1517 100644 --- a/app/components/FilterOptions.tsx +++ b/app/components/FilterOptions.tsx @@ -23,7 +23,6 @@ type Props = { options: TFilterOption[]; selectedKeys: (string | null | undefined)[]; defaultLabel?: string; - selectedPrefix?: string; className?: string; onSelect: (key: string | null | undefined) => void; showFilter?: boolean; @@ -35,7 +34,6 @@ const FilterOptions = ({ options, selectedKeys = [], defaultLabel = "Filter options", - selectedPrefix = "", className, onSelect, showFilter, @@ -54,9 +52,7 @@ const FilterOptions = ({ const [query, setQuery] = React.useState(""); const selectedLabel = selectedItems.length - ? selectedItems - .map((selected) => `${selectedPrefix} ${selected.label}`) - .join(", ") + ? selectedItems.map((selected) => selected.label).join(", ") : ""; const renderItem = React.useCallback( @@ -70,7 +66,7 @@ const FilterOptions = ({ selected={selectedKeys.includes(option.key)} {...menu} > - {option.icon && {option.icon}} + {option.icon} {option.note ? ( {option.label} @@ -163,10 +159,16 @@ const FilterOptions = ({ const showFilterInput = showFilter || options.length > 10; return ( -
+ <> {(props) => ( - + {selectedItems.length ? selectedLabel : defaultLabel} )} @@ -193,7 +195,7 @@ const FilterOptions = ({ /> )} -
+ ); }; @@ -231,6 +233,7 @@ const SearchInput = styled(Input)` border-radius: 0; border-bottom: 1px solid ${s("divider")}; background: ${s("menuBackground")}; + margin: 0; } ${NativeInput} { @@ -267,15 +270,9 @@ export const StyledButton = styled(Button)` } ${Inner} { - line-height: 24px; + line-height: 28px; min-height: auto; } `; -const Icon = styled.div` - margin-right: 8px; - width: 18px; - height: 18px; -`; - export default FilterOptions; diff --git a/app/components/Input.tsx b/app/components/Input.tsx index 3def4e5ac3..947efdd766 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -176,6 +176,7 @@ function Input( if (ev.key === "Enter" && ev.metaKey) { if (props.onRequestSubmit) { props.onRequestSubmit(ev); + return; } } @@ -230,10 +231,11 @@ function Input( ])} onBlur={handleBlur} onFocus={handleFocus} - onKeyDown={handleKeyDown} hasIcon={!!icon} hasPrefix={!!prefix} {...rest} + // set it after "rest" to override "onKeyDown" from prop. + onKeyDown={handleKeyDown} /> ) : ( )} {children} diff --git a/app/components/InputSearchPage.tsx b/app/components/InputSearchPage.tsx index 33f862421f..3c8b636e96 100644 --- a/app/components/InputSearchPage.tsx +++ b/app/components/InputSearchPage.tsx @@ -60,7 +60,8 @@ function InputSearchPage({ if (ev.key === "Enter") { ev.preventDefault(); history.push( - searchPath(ev.currentTarget.value, { + searchPath({ + query: ev.currentTarget.value, collectionId, ref: source, }) diff --git a/app/components/List/Item.tsx b/app/components/List/Item.tsx index 3f5e18de58..3b0a58d2b2 100644 --- a/app/components/List/Item.tsx +++ b/app/components/List/Item.tsx @@ -33,6 +33,7 @@ export type Props = Omit, "title"> & { small?: boolean; /** Whether to enable keyboard navigation */ keyboardNavigation?: boolean; + ellipsis?: boolean; }; const ListItem = ( @@ -45,6 +46,7 @@ const ListItem = ( border, to, keyboardNavigation, + ellipsis, ...rest }: Props, ref: React.RefObject @@ -83,7 +85,9 @@ const ListItem = ( column={!compact} $selected={selected} > - {title} + + {title} + {subtitle && ( {subtitle} @@ -105,7 +109,7 @@ const ListItem = ( $border={border} $small={small} activeStyle={{ - background: theme.accent, + background: theme.sidebarActiveBackground, }} {...rest} {...rovingTabIndex} @@ -208,10 +212,10 @@ const Image = styled(Flex)` color: ${s("text")}; `; -const Heading = styled.p<{ $small?: boolean }>` +const Heading = styled.p<{ $small?: boolean; $ellipsis?: boolean }>` font-size: ${(props) => (props.$small ? 14 : 16)}px; font-weight: 500; - ${ellipsis()} + ${(props) => (props.$ellipsis !== false ? ellipsis() : "")} line-height: ${(props) => (props.$small ? 1.3 : 1.2)}; margin: 0; `; @@ -219,14 +223,13 @@ const Heading = styled.p<{ $small?: boolean }>` const Content = styled(Flex)<{ $selected: boolean }>` flex-direction: column; flex-grow: 1; - color: ${(props) => (props.$selected ? props.theme.white : props.theme.text)}; + color: ${s("text")}; `; const Subtitle = styled.p<{ $small?: boolean; $selected?: boolean }>` margin: 0; font-size: ${(props) => (props.$small ? 13 : 14)}px; - color: ${(props) => - props.$selected ? props.theme.white50 : props.theme.textTertiary}; + color: ${s("textTertiary")}; margin-top: -2px; `; @@ -234,8 +237,7 @@ export const Actions = styled(Flex)<{ $selected?: boolean }>` align-self: center; justify-content: center; flex-shrink: 0; - color: ${(props) => - props.$selected ? props.theme.white : props.theme.textSecondary}; + color: ${s("textSecondary")}; `; export default React.forwardRef(ListItem); diff --git a/app/components/LocaleTime.tsx b/app/components/LocaleTime.tsx index 7dba1e091a..1dff0a7aaf 100644 --- a/app/components/LocaleTime.tsx +++ b/app/components/LocaleTime.tsx @@ -1,24 +1,7 @@ -import { format as formatDate } from "date-fns"; import * as React from "react"; -import { dateLocale, dateToRelative, locales } from "@shared/utils/date"; +import { locales } from "@shared/utils/date"; import Tooltip from "~/components/Tooltip"; -import useUserLocale from "~/hooks/useUserLocale"; - -let callbacks: (() => void)[] = []; - -// This is a shared timer that fires every minute, used for -// updating all Time components across the page all at once. -setInterval(() => { - callbacks.forEach((cb) => cb()); -}, 1000 * 60); - -function eachMinute(fn: () => void) { - callbacks.push(fn); - - return () => { - callbacks = callbacks.filter((cb) => cb !== fn); - }; -} +import { useLocaleTime } from "~/hooks/useLocaleTime"; export type Props = { children?: React.ReactNode; @@ -29,59 +12,12 @@ export type Props = { format?: Partial>; }; -const LocaleTime: React.FC = ({ - addSuffix, - children, - dateTime, - shorten, - format, - relative, -}: Props) => { - const userLocale = useUserLocale(); - const dateFormatLong: Record = { - en_US: "MMMM do, yyyy h:mm a", - fr_FR: "'Le 'd MMMM yyyy 'à' H:mm", - }; - 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>(); - - React.useEffect(() => { - callback.current = eachMinute(() => { - setMinutesMounted((state) => ++state); - }); - return () => { - if (callback.current) { - callback.current?.(); - } - }; - }, []); - - const date = new Date(Date.parse(dateTime)); - const locale = dateLocale(userLocale); - const relativeContent = dateToRelative(date, { - addSuffix, - locale, - shorten, - }); - - const tooltipContent = formatDate(date, formatLocaleLong, { - locale, - }); - const content = - relative !== false - ? relativeContent - : formatDate(date, formatLocale, { - locale, - }); +const LocaleTime: React.FC = ({ children, ...rest }: Props) => { + const { tooltipContent, content } = useLocaleTime(rest); return ( - + ); }; diff --git a/app/components/Notifications/Notifications.tsx b/app/components/Notifications/Notifications.tsx index ce6b7e7bde..e297041cca 100644 --- a/app/components/Notifications/Notifications.tsx +++ b/app/components/Notifications/Notifications.tsx @@ -48,6 +48,15 @@ function Notifications( notifications.approximateUnreadCount ); } + + // PWA badging + if ("setAppBadge" in navigator) { + if (notifications.approximateUnreadCount) { + void navigator.setAppBadge(notifications.approximateUnreadCount); + } else { + void navigator.clearAppBadge(); + } + } }, [notifications.approximateUnreadCount]); return ( diff --git a/app/components/Sidebar/components/CollectionLink.tsx b/app/components/Sidebar/components/CollectionLink.tsx index b8744f4a69..2a527746f5 100644 --- a/app/components/Sidebar/components/CollectionLink.tsx +++ b/app/components/Sidebar/components/CollectionLink.tsx @@ -10,6 +10,7 @@ import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { CollectionValidation, DocumentValidation } from "@shared/validations"; import Collection from "~/models/Collection"; import Document from "~/models/Document"; +import EditableTitle, { RefHandle } from "~/components/EditableTitle"; import Fade from "~/components/Fade"; import CollectionIcon from "~/components/Icons/CollectionIcon"; import NudeButton from "~/components/NudeButton"; @@ -21,7 +22,6 @@ import CollectionMenu from "~/menus/CollectionMenu"; import { documentEditPath } from "~/utils/routeHelpers"; import { useDropToChangeCollection } from "../hooks/useDragAndDrop"; import DropToImport from "./DropToImport"; -import EditableTitle, { RefHandle } from "./EditableTitle"; import Relative from "./Relative"; import { SidebarContextType, useSidebarContext } from "./SidebarContext"; import SidebarLink from "./SidebarLink"; diff --git a/app/components/Sidebar/components/DocumentLink.tsx b/app/components/Sidebar/components/DocumentLink.tsx index 97ffa795e3..122c87ab53 100644 --- a/app/components/Sidebar/components/DocumentLink.tsx +++ b/app/components/Sidebar/components/DocumentLink.tsx @@ -12,6 +12,7 @@ import { sortNavigationNodes } from "@shared/utils/collections"; import { DocumentValidation } from "@shared/validations"; import Collection from "~/models/Collection"; import Document from "~/models/Document"; +import EditableTitle, { RefHandle } from "~/components/EditableTitle"; import Fade from "~/components/Fade"; import NudeButton from "~/components/NudeButton"; import Tooltip from "~/components/Tooltip"; @@ -28,7 +29,6 @@ import { } from "../hooks/useDragAndDrop"; import DropCursor from "./DropCursor"; import DropToImport from "./DropToImport"; -import EditableTitle, { RefHandle } from "./EditableTitle"; import Folder from "./Folder"; import Relative from "./Relative"; import { SidebarContextType, useSidebarContext } from "./SidebarContext"; diff --git a/app/components/WebsocketProvider.tsx b/app/components/WebsocketProvider.tsx index 2a34ad8342..70543b40b2 100644 --- a/app/components/WebsocketProvider.tsx +++ b/app/components/WebsocketProvider.tsx @@ -1,11 +1,14 @@ import invariant from "invariant"; import find from "lodash/find"; +import isObject from "lodash/isObject"; import { action, observable } from "mobx"; import { observer } from "mobx-react"; import * as React from "react"; import { withTranslation, WithTranslation } from "react-i18next"; +import semver from "semver"; import { io, Socket } from "socket.io-client"; import { toast } from "sonner"; +import EDITOR_VERSION from "@shared/editor/version"; import { FileOperationState, FileOperationType } from "@shared/types"; import RootStore from "~/stores/RootStore"; import Collection from "~/models/Collection"; @@ -114,10 +117,23 @@ class WebsocketProvider extends React.Component { } }); - this.socket.on("authenticated", () => { + this.socket.on("authenticated", (data) => { if (this.socket) { this.socket.authenticated = true; } + if (isObject(data) && "editorVersion" in data) { + const parsedClientVersion = semver.parse(EDITOR_VERSION); + const parsedCurrentVersion = semver.parse(String(data.editorVersion)); + + if ( + parsedClientVersion && + parsedCurrentVersion && + (parsedClientVersion.major < parsedCurrentVersion.major || + parsedClientVersion.minor < parsedCurrentVersion.minor) + ) { + window.location.reload(); + } + } }); this.socket.on("unauthorized", (err: Error) => { diff --git a/app/editor/components/FindAndReplace.tsx b/app/editor/components/FindAndReplace.tsx index be3991b3c1..09af0969d9 100644 --- a/app/editor/components/FindAndReplace.tsx +++ b/app/editor/components/FindAndReplace.tsx @@ -24,6 +24,54 @@ import useOnClickOutside from "~/hooks/useOnClickOutside"; import Desktop from "~/utils/Desktop"; import { useEditor } from "./EditorContext"; +type KeyboardShortcutsProps = { + popover: ReturnType; + handleOpen: ({ withReplace }: { withReplace: boolean }) => void; + handleCaseSensitive: () => void; + handleRegex: () => void; +}; + +function useKeyboardShortcuts({ + popover, + handleOpen, + handleCaseSensitive, + handleRegex, +}: KeyboardShortcutsProps) { + // Open popover + useKeyDown( + (ev) => + isModKey(ev) && + ev.code === "KeyF" && + // Keyboard handler is through the AppMenu on Desktop v1.2.0+ + !(Desktop.bridge && "onFindInPage" in Desktop.bridge), + (ev) => { + ev.preventDefault(); + handleOpen({ withReplace: ev.altKey }); + }, + { allowInInput: true } + ); + + // Enable/disable case sensitive search + useKeyDown( + (ev) => isModKey(ev) && ev.altKey && ev.code === "KeyC" && popover.visible, + (ev) => { + ev.preventDefault(); + handleCaseSensitive(); + }, + { allowInInput: true } + ); + + // Enable/disable regex search + useKeyDown( + (ev) => isModKey(ev) && ev.altKey && ev.code === "KeyR" && popover.visible, + (ev) => { + ev.preventDefault(); + handleRegex(); + }, + { allowInInput: true } + ); +} + type Props = { /** Whether the find and replace popover is open */ open: boolean; @@ -89,42 +137,48 @@ export default function FindAndReplace({ } }, [show]); - useOnClickOutside(popover.unstable_referenceRef, popover.hide); + // Callbacks + const selectInputText = React.useCallback(() => { + inputRef.current?.focus(); + inputRef.current?.setSelectionRange(0, inputRef.current?.value.length); + }, []); + + const selectInputReplaceText = React.useCallback(() => { + setTimeout(() => { + inputReplaceRef.current?.focus(); + inputReplaceRef.current?.setSelectionRange( + 0, + inputReplaceRef.current?.value.length + ); + }, 100); + }, []); + + const handleOpen = React.useCallback( + ({ withReplace }: { withReplace: boolean }) => { + const shouldShowReplace = !readOnly && withReplace; + + // If already open, switch focus to corresponding input text. + if (popover.visible) { + if (shouldShowReplace) { + setShowReplace(true); + selectInputReplaceText(); + } else { + selectInputText(); + } + + return; + } - // Keyboard shortcuts - useKeyDown( - (ev) => - isModKey(ev) && - !popover.visible && - ev.code === "KeyF" && - // Keyboard handler is through the AppMenu on Desktop v1.2.0+ - !(Desktop.bridge && "onFindInPage" in Desktop.bridge), - (ev) => { - ev.preventDefault(); selectionRef.current = window.getSelection()?.toString(); popover.show(); - } - ); - useKeyDown( - (ev) => isModKey(ev) && ev.altKey && ev.code === "KeyR" && popover.visible, - (ev) => { - ev.preventDefault(); - setRegex((state) => !state); + if (shouldShowReplace) { + setShowReplace(true); + } }, - { allowInInput: true } + [popover, readOnly, selectInputText, selectInputReplaceText] ); - useKeyDown( - (ev) => isModKey(ev) && ev.altKey && ev.code === "KeyC" && popover.visible, - (ev) => { - ev.preventDefault(); - setCaseSensitive((state) => !state); - }, - { allowInInput: true } - ); - - // Callbacks const handleMore = React.useCallback(() => { setShowReplace((state) => !state); setTimeout(() => inputReplaceRef.current?.focus(), 100); @@ -132,68 +186,65 @@ export default function FindAndReplace({ const handleCaseSensitive = React.useCallback(() => { setCaseSensitive((state) => { - const caseSensitive = !state; + const isCaseSensitive = !state; editor.commands.find({ text: searchTerm, - caseSensitive, + caseSensitive: isCaseSensitive, regexEnabled, }); - return caseSensitive; + return isCaseSensitive; }); }, [regexEnabled, editor.commands, searchTerm]); const handleRegex = React.useCallback(() => { setRegex((state) => { - const regexEnabled = !state; + const isRegexEnabled = !state; editor.commands.find({ text: searchTerm, caseSensitive, - regexEnabled, + regexEnabled: isRegexEnabled, }); - return regexEnabled; + return isRegexEnabled; }); }, [caseSensitive, editor.commands, searchTerm]); const handleKeyDown = React.useCallback( (ev: React.KeyboardEvent) => { - function nextPrevious(ev: React.KeyboardEvent) { + function nextPrevious() { if (ev.shiftKey) { editor.commands.prevSearchMatch(); } else { editor.commands.nextSearchMatch(); } } - function selectInputText() { - inputRef.current?.setSelectionRange(0, inputRef.current?.value.length); - } switch (ev.key) { case "Enter": { ev.preventDefault(); - nextPrevious(ev); + nextPrevious(); return; } case "g": { if (ev.metaKey) { ev.preventDefault(); - nextPrevious(ev); + nextPrevious(); selectInputText(); } return; } case "F3": { ev.preventDefault(); - nextPrevious(ev); + nextPrevious(); selectInputText(); return; } } }, - [editor.commands] + [editor.commands, selectInputText] ); const handleReplace = React.useCallback( @@ -243,6 +294,15 @@ export default function FindAndReplace({ [handleReplace] ); + useOnClickOutside(popover.unstable_referenceRef, popover.hide); + + useKeyboardShortcuts({ + popover, + handleOpen, + handleCaseSensitive, + handleRegex, + }); + const style: React.CSSProperties = React.useMemo( () => ({ position: "fixed", @@ -285,7 +345,7 @@ export default function FindAndReplace({ <> - + editor.commands.nextSearchMatch()} @@ -354,7 +414,11 @@ export default function FindAndReplace({ {navigation} {!readOnly && ( - + @@ -376,12 +440,28 @@ export default function FindAndReplace({ onRequestSubmit={handleReplaceAll} onChange={(ev) => setReplaceTerm(ev.currentTarget.value)} /> - - + + + + + + )} diff --git a/app/editor/components/FloatingToolbar.tsx b/app/editor/components/FloatingToolbar.tsx index af198da950..5aaa082cf1 100644 --- a/app/editor/components/FloatingToolbar.tsx +++ b/app/editor/components/FloatingToolbar.tsx @@ -6,7 +6,6 @@ import styled, { css } from "styled-components"; import { isCode } from "@shared/editor/lib/isCode"; import { findParentNode } from "@shared/editor/queries/findParentNode"; import { EditorStyleHelper } from "@shared/editor/styles/EditorStyleHelper"; -import { useComponentSize } from "@shared/hooks/useComponentSize"; import { depths, s } from "@shared/styles"; import { HEADER_HEIGHT } from "~/components/Header"; import { Portal } from "~/components/Portal"; @@ -41,7 +40,8 @@ function usePosition({ }) { const { view } = useEditor(); const { selection } = view.state; - const { width: menuWidth, height: menuHeight } = useComponentSize(menuRef); + const menuWidth = menuRef.current?.offsetWidth; + const menuHeight = menuRef.current?.offsetHeight; if (!active || !menuWidth || !menuHeight || !menuRef.current) { return defaultPosition; diff --git a/app/editor/components/Input.tsx b/app/editor/components/Input.tsx index 574232f614..7de8f808ed 100644 --- a/app/editor/components/Input.tsx +++ b/app/editor/components/Input.tsx @@ -1,3 +1,4 @@ +import { transparentize } from "polished"; import styled from "styled-components"; import { s } from "@shared/styles"; @@ -13,6 +14,10 @@ const Input = styled.input` flex-grow: 1; min-width: 0; + &::placeholder { + color: ${(props) => transparentize(0.5, props.theme.text)}; + } + @media (hover: none) and (pointer: coarse) { font-size: 16px; } diff --git a/app/editor/components/LinkEditor.tsx b/app/editor/components/LinkEditor.tsx index c9290c2c2a..baed135a00 100644 --- a/app/editor/components/LinkEditor.tsx +++ b/app/editor/components/LinkEditor.tsx @@ -1,15 +1,24 @@ -import { ArrowIcon, CloseIcon, OpenIcon } from "outline-icons"; +import { observer } from "mobx-react"; +import { ArrowIcon, CloseIcon, DocumentIcon, OpenIcon } from "outline-icons"; import { Mark } from "prosemirror-model"; import { Selection } from "prosemirror-state"; import { EditorView } from "prosemirror-view"; import * as React from "react"; +import { useEffect, useRef, useState } from "react"; import { toast } from "sonner"; import styled from "styled-components"; +import Icon from "@shared/components/Icon"; +import { hideScrollbars, s } from "@shared/styles"; import { isInternalUrl, sanitizeUrl } from "@shared/utils/urls"; import Flex from "~/components/Flex"; +import { ResizingHeightContainer } from "~/components/ResizingHeightContainer"; +import Scrollable from "~/components/Scrollable"; import { Dictionary } from "~/hooks/useDictionary"; -import Logger from "~/utils/Logger"; +import useRequest from "~/hooks/useRequest"; +import useStores from "~/hooks/useStores"; +import { client } from "~/utils/ApiClient"; import Input from "./Input"; +import SuggestionsMenuItem from "./SuggestionsMenuItem"; import ToolbarButton from "./ToolbarButton"; import Tooltip from "./Tooltip"; @@ -32,152 +41,87 @@ type Props = { view: EditorView; }; -type State = { - value: string; - previousValue: string; -}; +const LinkEditor: React.FC = ({ + mark, + from, + to, + dictionary, + onRemoveLink, + onSelectLink, + onClickLink, + view, +}) => { + const getHref = () => sanitizeUrl(mark?.attrs.href) ?? ""; + const initialValue = getHref(); + const initialSelectionLength = to - from; + const inputRef = useRef(null); + const discardRef = useRef(false); + const [query, setQuery] = useState(initialValue); + const [selectedIndex, setSelectedIndex] = useState(-1); + const { documents } = useStores(); -class LinkEditor extends React.Component { - discardInputValue = false; - initialValue = this.href; - initialSelectionLength = this.props.to - this.props.from; - inputRef = React.createRef(); + const trimmedQuery = query.trim(); + const results = trimmedQuery + ? documents.findByQuery(trimmedQuery, { maxResults: 25 }) + : []; - state: State = { - value: this.href, - previousValue: "", - }; + const { request } = useRequest( + React.useCallback(async () => { + const res = await client.post("/suggestions.mention", { query }); + res.data.documents.map(documents.add); + }, [query]) + ); - get href(): string { - return sanitizeUrl(this.props.mark?.attrs.href) ?? ""; - } - - componentDidMount(): void { - window.addEventListener("keydown", this.handleGlobalKeyDown); - } - - componentWillUnmount = () => { - window.removeEventListener("keydown", this.handleGlobalKeyDown); - - // If we discarded the changes then nothing to do - if (this.discardInputValue) { - return; + useEffect(() => { + if (trimmedQuery) { + void request(); } + }, [trimmedQuery, request]); - // If the link is the same as it was when the editor opened, nothing to do - if (this.state.value === this.initialValue) { - return; - } + useEffect(() => { + const handleGlobalKeyDown = (event: KeyboardEvent) => { + if (event.key === "k" && event.metaKey) { + inputRef.current?.select(); + } + }; - // If the link is totally empty or only spaces then remove the mark - const href = (this.state.value || "").trim(); - if (!href) { - return this.handleRemoveLink(); - } + window.addEventListener("keydown", handleGlobalKeyDown); + return () => { + window.removeEventListener("keydown", handleGlobalKeyDown); - this.save(href, href); - }; + // If we discarded the changes then nothing to do + if (discardRef.current) { + return; + } - handleGlobalKeyDown = (event: KeyboardEvent): void => { - if (event.key === "k" && event.metaKey) { - this.inputRef.current?.select(); - } - }; + // If the link is the same as it was when the editor opened, nothing to do + if (trimmedQuery === initialValue) { + return; + } - save = (href: string, title?: string): void => { + // If the link is totally empty or only spaces then remove the mark + if (!trimmedQuery) { + return handleRemoveLink(); + } + + save(trimmedQuery, trimmedQuery); + }; + }, [trimmedQuery, initialValue]); + + const save = (href: string, title?: string) => { href = href.trim(); if (href.length === 0) { return; } - this.discardInputValue = true; - const { from, to } = this.props; + discardRef.current = true; href = sanitizeUrl(href) ?? ""; - this.props.onSelectLink({ href, title, from, to }); + onSelectLink({ href, title, from, to }); }; - handleKeyDown = (event: React.KeyboardEvent): void => { - switch (event.key) { - case "Enter": { - event.preventDefault(); - const { value } = this.state; - - this.save(value, value); - - if (this.initialSelectionLength) { - this.moveSelectionToEnd(); - } - - return; - } - - case "Escape": { - event.preventDefault(); - - if (this.initialValue) { - this.setState({ value: this.initialValue }, this.moveSelectionToEnd); - } else { - this.handleRemoveLink(); - } - return; - } - } - }; - - handleSearch = async ( - event: React.ChangeEvent - ): Promise => { - const value = event.target.value; - - this.setState({ - value, - }); - - const trimmedValue = value.trim(); - - if (trimmedValue) { - try { - this.setState({ - previousValue: trimmedValue, - }); - } catch (err) { - Logger.error("Error searching for link", err); - } - } - }; - - handlePaste = (): void => { - setTimeout(() => this.save(this.state.value, this.state.value), 0); - }; - - handleOpenLink = (event: React.MouseEvent): void => { - event.preventDefault(); - - try { - this.props.onClickLink(this.href, event); - } catch (err) { - toast.error(this.props.dictionary.openLinkError); - } - }; - - handleRemoveLink = (): void => { - this.discardInputValue = true; - - const { from, to, mark, view, onRemoveLink } = this.props; - const { state, dispatch } = this.props.view; - - if (mark) { - dispatch(state.tr.removeMark(from, to, mark)); - } - - onRemoveLink?.(); - view.focus(); - }; - - moveSelectionToEnd = () => { - const { to, view } = this.props; + const moveSelectionToEnd = () => { const { state, dispatch } = view; const nextSelection = Selection.findFrom(state.tr.doc.resolve(to), 1, true); if (nextSelection) { @@ -186,47 +130,178 @@ class LinkEditor extends React.Component { view.focus(); }; - render() { - const { view, dictionary } = this.props; - const { value } = this.state; - const isInternal = isInternalUrl(value); + const handleKeyDown = (event: React.KeyboardEvent) => { + switch (event.key) { + case "ArrowDown": { + event.preventDefault(); + const maxIndex = results.length - 1; + setSelectedIndex((current) => (current >= maxIndex ? 0 : current + 1)); + return; + } + case "ArrowUp": { + event.preventDefault(); + const maxIndex = results.length - 1; + setSelectedIndex((current) => (current <= 0 ? maxIndex : current - 1)); + return; + } + case "Enter": { + event.preventDefault(); - return ( + if (selectedIndex >= 0 && results[selectedIndex]) { + const selectedDoc = results[selectedIndex]; + const href = selectedDoc.url; + save(href, selectedDoc.title); + } else { + save(trimmedQuery, trimmedQuery); + } + + if (initialSelectionLength) { + moveSelectionToEnd(); + } + return; + } + case "Escape": { + event.preventDefault(); + + if (initialValue) { + setQuery(initialValue); + moveSelectionToEnd(); + } else { + handleRemoveLink(); + } + return; + } + } + }; + + const handleSearch = async (event: React.ChangeEvent) => { + const newValue = event.target.value; + setQuery(newValue); + setSelectedIndex(-1); + }; + + const handlePaste = () => { + setTimeout(() => save(query, query), 0); + }; + + const handleOpenLink = (event: React.MouseEvent) => { + event.preventDefault(); + + try { + onClickLink(getHref(), event); + } catch (err) { + toast.error(dictionary.openLinkError); + } + }; + + const handleRemoveLink = () => { + discardRef.current = true; + + const { state, dispatch } = view; + if (mark) { + dispatch(state.tr.removeMark(from, to, mark)); + } + + onRemoveLink?.(); + view.focus(); + }; + + const isInternal = isInternalUrl(query); + const hasResults = !!results.length; + + return ( + <> - - + {isInternal ? : } {view.editable && ( - + )} - ); - } -} + + + {hasResults && ( + <> + {results.map((doc, index) => ( + { + save(doc.url, doc.title); + if (initialSelectionLength) { + moveSelectionToEnd(); + } + }} + onPointerMove={() => setSelectedIndex(index)} + selected={index === selectedIndex} + key={doc.id} + subtitle={doc.collection?.name} + title={doc.title} + icon={ + doc.icon ? ( + + ) : ( + + ) + } + /> + ))} + + )} + + + + ); +}; const Wrapper = styled(Flex)` pointer-events: all; gap: 8px; `; -export default LinkEditor; +const SearchResults = styled(Scrollable)<{ $hasResults: boolean }>` + background: ${s("menuBackground")}; + box-shadow: ${(props) => (props.$hasResults ? s("menuShadow") : "none")}; + clip-path: inset(0px -100px -100px -100px); + position: absolute; + top: 100%; + width: 100%; + height: auto; + left: 0; + margin-top: -6px; + border-radius: 0 0 4px 4px; + padding: ${(props) => (props.$hasResults ? "6px" : "0")}; + max-height: 240px; + pointer-events: all; + + ${hideScrollbars()} + + @media (hover: none) and (pointer: coarse) { + position: fixed; + top: auto; + bottom: 40px; + border-radius: 0; + max-height: 50vh; + padding: 8px 8px 4px; + } +`; + +export default observer(LinkEditor); diff --git a/app/editor/components/MentionMenu.tsx b/app/editor/components/MentionMenu.tsx index 10df7df1a0..192668bbe4 100644 --- a/app/editor/components/MentionMenu.tsx +++ b/app/editor/components/MentionMenu.tsx @@ -1,6 +1,6 @@ import { isEmail } from "class-validator"; import { observer } from "mobx-react"; -import { DocumentIcon, PlusIcon } from "outline-icons"; +import { DocumentIcon, PlusIcon, CollectionIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { useLocation } from "react-router-dom"; @@ -10,11 +10,13 @@ import Icon from "@shared/components/Icon"; import { MenuItem } from "@shared/editor/types"; import { MentionType } from "@shared/types"; import parseDocumentSlug from "@shared/utils/parseDocumentSlug"; -import Document from "~/models/Document"; -import User from "~/models/User"; import { Avatar, AvatarSize } from "~/components/Avatar"; import Flex from "~/components/Flex"; -import { DocumentsSection, UserSection } from "~/actions/sections"; +import { + DocumentsSection, + UserSection, + CollectionsSection, +} from "~/actions/sections"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; import { client } from "~/utils/ApiClient"; @@ -42,23 +44,19 @@ function MentionMenu({ search, isActive, ...rest }: Props) { const [loaded, setLoaded] = React.useState(false); const [items, setItems] = React.useState([]); const { t } = useTranslation(); - const { auth, documents, users } = useStores(); + const { auth, documents, users, collections } = useStores(); const actorId = auth.currentUserId; const location = useLocation(); const documentId = parseDocumentSlug(location.pathname); const maxResultsInSection = search ? 25 : 5; - const { loading, request } = useRequest<{ - documents: Document[]; - users: User[]; - }>( + const { loading, request } = useRequest( React.useCallback(async () => { const res = await client.post("/suggestions.mention", { query: search }); - return { - documents: res.data.documents.map(documents.add), - users: res.data.users.map(users.add), - }; + res.data.documents.map(documents.add); + res.data.users.map(users.add); + res.data.collections.map(collections.add); }, [search, documents, users]) ); @@ -127,6 +125,34 @@ function MentionMenu({ search, isActive, ...rest }: Props) { } as MentionItem) ) ) + .concat( + collections + .findByQuery(search, { maxResults: maxResultsInSection }) + .map( + (collection) => + ({ + name: "mention", + icon: collection.icon ? ( + + ) : ( + + ), + title: collection.name, + section: CollectionsSection, + appendSpace: true, + attrs: { + id: v4(), + type: MentionType.Collection, + modelId: collection.id, + actorId, + label: collection.name, + }, + } as MentionItem) + ) + ) .concat([ { name: "link", @@ -154,7 +180,10 @@ function MentionMenu({ search, isActive, ...rest }: Props) { const handleSelect = React.useCallback( async (item: MentionItem) => { - if (item.attrs.type === MentionType.Document) { + if ( + item.attrs.type === MentionType.Document || + item.attrs.type === MentionType.Collection + ) { return; } if (!documentId) { diff --git a/app/editor/components/SuggestionsMenuItem.tsx b/app/editor/components/SuggestionsMenuItem.tsx index 0769475e89..0660485f54 100644 --- a/app/editor/components/SuggestionsMenuItem.tsx +++ b/app/editor/components/SuggestionsMenuItem.tsx @@ -11,6 +11,8 @@ export type Props = { disabled?: boolean; /** Callback when the item is clicked */ onClick: (event: React.SyntheticEvent) => void; + /** Callback when the item is hovered */ + onPointerMove?: (event: React.SyntheticEvent) => void; /** An optional icon for the item */ icon?: React.ReactNode; /** The title of the item */ @@ -25,6 +27,7 @@ function SuggestionsMenuItem({ selected, disabled, onClick, + onPointerMove, title, subtitle, shortcut, @@ -53,6 +56,7 @@ function SuggestionsMenuItem({ ref={ref} active={selected} onClick={disabled ? undefined : onClick} + onPointerMove={disabled ? undefined : onPointerMove} icon={icon} > {title} diff --git a/app/editor/extensions/PasteHandler.tsx b/app/editor/extensions/PasteHandler.tsx index 73c1c63400..6982f74c93 100644 --- a/app/editor/extensions/PasteHandler.tsx +++ b/app/editor/extensions/PasteHandler.tsx @@ -20,8 +20,9 @@ import { isInCode } from "@shared/editor/queries/isInCode"; import { MenuItem } from "@shared/editor/types"; import { IconType, MentionType } from "@shared/types"; import { determineIconType } from "@shared/utils/icon"; +import parseCollectionSlug from "@shared/utils/parseCollectionSlug"; import parseDocumentSlug from "@shared/utils/parseDocumentSlug"; -import { isDocumentUrl, isUrl } from "@shared/utils/urls"; +import { isCollectionUrl, isDocumentUrl, isUrl } from "@shared/utils/urls"; import stores from "~/stores"; import PasteMenu from "../components/PasteMenu"; @@ -166,6 +167,51 @@ export default class PasteHandler extends Extension { this.insertLink(text); }); } + } else if (isCollectionUrl(text)) { + const slug = parseCollectionSlug(text); + + if (slug) { + stores.collections + .fetch(slug) + .then((collection) => { + if (view.isDestroyed) { + return; + } + if (collection) { + if (state.schema.nodes.mention) { + view.dispatch( + view.state.tr.replaceWith( + state.selection.from, + state.selection.to, + state.schema.nodes.mention.create({ + type: MentionType.Collection, + modelId: collection.id, + label: collection.name, + id: v4(), + }) + ) + ); + } else { + const { hash } = new URL(text); + const hasEmoji = + determineIconType(collection.icon) === + IconType.Emoji; + + const title = `${ + hasEmoji ? collection.icon + " " : "" + }${collection.name}`; + + this.insertLink(`${collection.path}${hash}`, title); + } + } + }) + .catch(() => { + if (view.isDestroyed) { + return; + } + this.insertLink(text); + }); + } } else { this.insertLink(text); } diff --git a/app/editor/extensions/SmartText.ts b/app/editor/extensions/SmartText.ts index cdc6828347..4ed503ad8e 100644 --- a/app/editor/extensions/SmartText.ts +++ b/app/editor/extensions/SmartText.ts @@ -3,8 +3,8 @@ import { InputRule } from "@shared/editor/lib/InputRule"; const rightArrow = new InputRule(/->$/, "→"); const emdash = new InputRule(/--$/, "—"); -const oneHalf = new InputRule(/(?:^|\s)1\/2$/, "½"); -const threeQuarters = new InputRule(/(?:^|\s)3\/4$/, "¾"); +const oneHalf = new InputRule(/(?:^|\s)(1\/2)$/, "½"); +const threeQuarters = new InputRule(/(?:^|\s)(3\/4)$/, "¾"); const copyright = new InputRule(/\(c\)$/, "©️"); const registered = new InputRule(/\(r\)$/, "®️"); const trademarked = new InputRule(/\(tm\)$/, "™️"); diff --git a/app/hooks/useLocaleTime.ts b/app/hooks/useLocaleTime.ts new file mode 100644 index 0000000000..0e6c832bd8 --- /dev/null +++ b/app/hooks/useLocaleTime.ts @@ -0,0 +1,83 @@ +import { format as formatDate } from "date-fns"; +import * as React from "react"; +import { dateLocale, dateToRelative, locales } from "@shared/utils/date"; +import useUserLocale from "~/hooks/useUserLocale"; + +let callbacks: (() => void)[] = []; + +// This is a shared timer that fires every minute, used for +// updating all Time components across the page all at once. +setInterval(() => { + callbacks.forEach((cb) => cb()); +}, 1000 * 60); + +function eachMinute(fn: () => void) { + callbacks.push(fn); + + return () => { + callbacks = callbacks.filter((cb) => cb !== fn); + }; +} + +export type Props = { + dateTime: string; + addSuffix?: boolean; + shorten?: boolean; + relative?: boolean; + format?: Partial>; +}; + +export const useLocaleTime = ({ + addSuffix, + dateTime, + shorten, + format, + relative, +}: Props) => { + const userLocale = useUserLocale(); + const dateFormatLong: Record = { + en_US: "MMMM do, yyyy h:mm a", + fr_FR: "'Le 'd MMMM yyyy 'à' H:mm", + }; + 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>(); + + React.useEffect(() => { + callback.current = eachMinute(() => { + setMinutesMounted((state) => ++state); + }); + return () => { + if (callback.current) { + callback.current?.(); + } + }; + }, []); + + const date = new Date(Date.parse(dateTime)); + const locale = dateLocale(userLocale); + const relativeContent = dateToRelative(date, { + addSuffix, + locale, + shorten, + }); + + const tooltipContent = formatDate(date, formatLocaleLong, { + locale, + }); + const content = + relative !== false + ? relativeContent + : formatDate(date, formatLocale, { + locale, + }); + + return { + content, + tooltipContent, + }; +}; diff --git a/app/models/Collection.ts b/app/models/Collection.ts index f97bfcac43..a0c36f8f62 100644 --- a/app/models/Collection.ts +++ b/app/models/Collection.ts @@ -92,6 +92,11 @@ export default class Collection extends ParanoidModel { @observable archivedBy?: User; + @computed + get searchContent(): string { + return this.name; + } + /** Returns whether the collection is empty, or undefined if not loaded. */ @computed get isEmpty(): boolean | undefined { diff --git a/app/models/Document.ts b/app/models/Document.ts index f13483c904..57a530a93a 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -188,9 +188,10 @@ export default class Document extends ArchivableModel implements Searchable { @observable collaboratorIds: string[]; - @observable + @Relation(() => User) createdBy: User | undefined; + @Relation(() => User) @observable updatedBy: User | undefined; diff --git a/app/models/FileOperation.ts b/app/models/FileOperation.ts index eb22a886ab..034da311d7 100644 --- a/app/models/FileOperation.ts +++ b/app/models/FileOperation.ts @@ -7,6 +7,7 @@ import { import { bytesToHumanReadable } from "@shared/utils/files"; import User from "./User"; import Model from "./base/Model"; +import Relation from "./decorators/Relation"; class FileOperation extends Model { static modelName = "FileOperation"; @@ -27,6 +28,7 @@ class FileOperation extends Model { format: FileOperationFormat; + @Relation(() => User) user: User; @computed diff --git a/app/models/Revision.ts b/app/models/Revision.ts index 50be73d49d..818d11dc67 100644 --- a/app/models/Revision.ts +++ b/app/models/Revision.ts @@ -4,6 +4,7 @@ import { isRTL } from "@shared/utils/rtl"; import Document from "./Document"; import User from "./User"; import Model from "./base/Model"; +import Field from "./decorators/Field"; import Relation from "./decorators/Relation"; class Revision extends Model { @@ -19,6 +20,10 @@ class Revision extends Model { /** The document title when the revision was created */ title: string; + /** An optional name for the revision */ + @Field + name: string | null; + /** Prosemirror data of the content when revision was created */ data: ProsemirrorData; diff --git a/app/models/Share.ts b/app/models/Share.ts index f6fee1ffc3..fd066a98a3 100644 --- a/app/models/Share.ts +++ b/app/models/Share.ts @@ -1,12 +1,13 @@ -import { observable } from "mobx"; +import { computed, observable } from "mobx"; import Collection from "./Collection"; import Document from "./Document"; import User from "./User"; import Model from "./base/Model"; import Field from "./decorators/Field"; import Relation from "./decorators/Relation"; +import { Searchable } from "./interfaces/Searchable"; -class Share extends Model { +class Share extends Model implements Searchable { static modelName = "Share"; @Field @@ -65,6 +66,11 @@ class Share extends Model { /** The user that shared the document. */ @Relation(() => User, { onDelete: "null" }) createdBy: User; + + @computed + get searchContent(): string[] { + return [this.document?.title ?? this.documentTitle]; + } } export default Share; diff --git a/app/routes/authenticated.tsx b/app/routes/authenticated.tsx index fe43440433..30f407fe9e 100644 --- a/app/routes/authenticated.tsx +++ b/app/routes/authenticated.tsx @@ -2,7 +2,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { Switch, Redirect, RouteComponentProps } from "react-router-dom"; import DocumentNew from "~/scenes/DocumentNew"; -import Error404 from "~/scenes/Error404"; +import Error404 from "~/scenes/Errors/Error404"; import AuthenticatedLayout from "~/components/AuthenticatedLayout"; import CenteredContent from "~/components/CenteredContent"; import PlaceholderDocument from "~/components/PlaceholderDocument"; @@ -83,7 +83,7 @@ function AuthenticatedRoutes() { - + diff --git a/app/routes/settings.tsx b/app/routes/settings.tsx index 91f68c5482..8a5d54b68a 100644 --- a/app/routes/settings.tsx +++ b/app/routes/settings.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { RouteComponentProps, Switch } from "react-router-dom"; import DocumentNew from "~/scenes/DocumentNew"; -import Error404 from "~/scenes/Error404"; +import Error404 from "~/scenes/Errors/Error404"; import Route from "~/components/ProfiledRoute"; import useSettingsConfig from "~/hooks/useSettingsConfig"; import lazy from "~/utils/lazyWithRetry"; diff --git a/app/scenes/Collection/index.tsx b/app/scenes/Collection/index.tsx index 047921ac44..7568a8c174 100644 --- a/app/scenes/Collection/index.tsx +++ b/app/scenes/Collection/index.tsx @@ -17,7 +17,6 @@ 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"; @@ -41,6 +40,7 @@ import { usePinnedDocuments } from "~/hooks/usePinnedDocuments"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import { collectionPath, updateCollectionPath } from "~/utils/routeHelpers"; +import Error404 from "../Errors/Error404"; import Actions from "./components/Actions"; import DropToImport from "./components/DropToImport"; import Empty from "./components/Empty"; @@ -139,7 +139,7 @@ const CollectionScene = observer(function _CollectionScene() { useCommandBarActions([editCollection], [ui.activeCollectionId ?? "none"]); if (!collection && error) { - return ; + return ; } const hasOverview = can.update || collection?.hasDescription; diff --git a/app/scenes/Document/Shared.tsx b/app/scenes/Document/Shared.tsx index d28bd6829a..4f9b61aada 100644 --- a/app/scenes/Document/Shared.tsx +++ b/app/scenes/Document/Shared.tsx @@ -9,8 +9,8 @@ import { s } from "@shared/styles"; import { NavigationNode, PublicTeam, TOCPosition } from "@shared/types"; import type { Theme } from "~/stores/UiStore"; import DocumentModel from "~/models/Document"; -import Error404 from "~/scenes/Error404"; -import ErrorOffline from "~/scenes/ErrorOffline"; +import Error404 from "~/scenes/Errors/Error404"; +import ErrorOffline from "~/scenes/Errors/ErrorOffline"; import ClickablePadding from "~/components/ClickablePadding"; import { DocumentContextProvider, diff --git a/app/scenes/Document/components/DataLoader.tsx b/app/scenes/Document/components/DataLoader.tsx index fb7efe8ce5..9d8b0c777e 100644 --- a/app/scenes/Document/components/DataLoader.tsx +++ b/app/scenes/Document/components/DataLoader.tsx @@ -6,9 +6,10 @@ import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { RevisionHelper } from "@shared/utils/RevisionHelper"; import Document from "~/models/Document"; import Revision from "~/models/Revision"; -import Error402 from "~/scenes/Error402"; -import Error404 from "~/scenes/Error404"; -import ErrorOffline from "~/scenes/ErrorOffline"; +import Error402 from "~/scenes/Errors/Error402"; +import Error403 from "~/scenes/Errors/Error403"; +import Error404 from "~/scenes/Errors/Error404"; +import ErrorOffline from "~/scenes/Errors/ErrorOffline"; import { useDocumentContext } from "~/components/DocumentContext"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import useCurrentUser from "~/hooks/useCurrentUser"; @@ -17,6 +18,7 @@ import useStores from "~/hooks/useStores"; import { Properties } from "~/types"; import Logger from "~/utils/Logger"; import { + AuthorizationError, NotFoundError, OfflineError, PaymentRequiredError, @@ -216,6 +218,8 @@ function DataLoader({ match, children }: Props) { ) : error instanceof PaymentRequiredError ? ( + ) : error instanceof AuthorizationError ? ( + ) : ( ); diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index 76651f147f..fd61eca3a0 100644 --- a/app/scenes/Document/components/Document.tsx +++ b/app/scenes/Document/components/Document.tsx @@ -174,6 +174,7 @@ class DocumentScene extends React.Component { if (template instanceof Document) { this.props.document.templateId = template.id; + this.props.document.fullWidth = template.fullWidth; } if (!this.title) { @@ -551,6 +552,11 @@ class DocumentScene extends React.Component { > + {showContents && ( + + + + )} ` justify-self: ${({ position }: ContentsContainerProps) => position === TOCPosition.Left ? "end" : "start"}; `}; + + @media print { + display: none; + } +`; + +const PrintContentsContainer = styled.div` + display: none; + margin: 0 -12px; + + @media print { + display: block; + } `; type EditorContainerProps = { diff --git a/app/scenes/Document/components/History.tsx b/app/scenes/Document/components/History.tsx index 309d6bd009..815a625555 100644 --- a/app/scenes/Document/components/History.tsx +++ b/app/scenes/Document/components/History.tsx @@ -1,3 +1,4 @@ +import isEqual from "fast-deep-equal"; import orderBy from "lodash/orderBy"; import { observer } from "mobx-react"; import * as React from "react"; @@ -136,14 +137,19 @@ function History() { "desc" ); - const latestEvent = merged[0]; + const latestRevisionEvent = merged.find( + (event) => event.name === "revisions.create" + ); - if (latestEvent && document) { - const latestRevisionEvent = merged.find( - (event) => event.name === "revisions.create" - ); + if (latestRevisionEvent && document) { + const latestRevision = revisions.get(latestRevisionEvent.id); - if (latestEvent.createdAt !== document.updatedAt) { + const isDocUpdated = + latestRevision?.title !== document.title || + !isEqual(latestRevision.data, document.data); + + if (isDocUpdated) { + revisions.remove(RevisionHelper.latestId(document.id)); merged.unshift({ id: RevisionHelper.latestId(document.id), name: "revisions.create", @@ -157,7 +163,7 @@ function History() { } return merged; - }, [document, revisionEvents, nonRevisionEvents]); + }, [revisions, document, revisionEvents, nonRevisionEvents]); const onCloseHistory = React.useCallback(() => { if (document) { diff --git a/app/scenes/Document/components/MultiplayerEditor.tsx b/app/scenes/Document/components/MultiplayerEditor.tsx index 5d4feee226..805ad055a2 100644 --- a/app/scenes/Document/components/MultiplayerEditor.tsx +++ b/app/scenes/Document/components/MultiplayerEditor.tsx @@ -99,7 +99,11 @@ function MultiplayerEditor({ onSynced, ...props }: Props, ref: any) { }); provider.on("awarenessChange", (event: AwarenessChangeEvent) => { - presence.updateFromAwarenessChangeEvent(documentId, event); + presence.updateFromAwarenessChangeEvent( + documentId, + provider.awareness.clientID, + event + ); event.states.forEach(({ user, scrollY }) => { if (user) { diff --git a/app/scenes/Error404.tsx b/app/scenes/Error404.tsx deleted file mode 100644 index a6a9adc708..0000000000 --- a/app/scenes/Error404.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import * as React from "react"; -import { useTranslation, Trans } from "react-i18next"; -import { Link } from "react-router-dom"; -import Empty from "~/components/Empty"; -import Scene from "~/components/Scene"; -import { homePath } from "~/utils/routeHelpers"; - -const Error404 = () => { - const { t } = useTranslation(); - return ( - -

{t("Not Found")}

- - - We were unable to find the page you’re looking for. Go to the{" "} - homepage? - - -
- ); -}; - -export default Error404; diff --git a/app/scenes/Error402.tsx b/app/scenes/Errors/Error402.tsx similarity index 56% rename from app/scenes/Error402.tsx rename to app/scenes/Errors/Error402.tsx index 4709400a93..5d0ec44dab 100644 --- a/app/scenes/Error402.tsx +++ b/app/scenes/Errors/Error402.tsx @@ -1,7 +1,9 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { useLocation } from "react-router-dom"; +import Flex from "@shared/components/Flex"; import Empty from "~/components/Empty"; +import Heading from "~/components/Heading"; import Notice from "~/components/Notice"; import Scene from "~/components/Scene"; @@ -12,13 +14,15 @@ const Error402 = () => { return ( -

{title}

- - - This document cannot be viewed with the current edition. Please - upgrade to a paid license to restore access. - - + {title} + + + + This document cannot be viewed with the current edition. Please + upgrade to a paid license to restore access. + + +
); }; diff --git a/app/scenes/Errors/Error403.tsx b/app/scenes/Errors/Error403.tsx new file mode 100644 index 0000000000..cbfe5b9d81 --- /dev/null +++ b/app/scenes/Errors/Error403.tsx @@ -0,0 +1,40 @@ +import * as React from "react"; +import { useTranslation } from "react-i18next"; +import { useHistory } from "react-router-dom"; +import Flex from "@shared/components/Flex"; +import Button from "~/components/Button"; +import Empty from "~/components/Empty"; +import Heading from "~/components/Heading"; +import Scene from "~/components/Scene"; +import { navigateToHome } from "~/actions/definitions/navigation"; +import useActionContext from "~/hooks/useActionContext"; + +const Error403 = () => { + const { t } = useTranslation(); + const history = useHistory(); + const context = useActionContext(); + + return ( + + {t("No access to this doc")} + + + {t( + "It doesn’t look like you have permission to access this document." + )}{" "} + {t("Please request access from the document owner.")} + + + + + + + + ); +}; + +export default Error403; diff --git a/app/scenes/Errors/Error404.tsx b/app/scenes/Errors/Error404.tsx new file mode 100644 index 0000000000..71ac974940 --- /dev/null +++ b/app/scenes/Errors/Error404.tsx @@ -0,0 +1,41 @@ +import * as React from "react"; +import { useTranslation, Trans } from "react-i18next"; +import Flex from "@shared/components/Flex"; +import Button from "~/components/Button"; +import Empty from "~/components/Empty"; +import Heading from "~/components/Heading"; +import Scene from "~/components/Scene"; +import { + navigateToHome, + navigateToSearch, +} from "~/actions/definitions/navigation"; +import useActionContext from "~/hooks/useActionContext"; + +const Error404 = () => { + const { t } = useTranslation(); + const context = useActionContext(); + + return ( + + {t("Not found")} + + + + The page you’re looking for cannot be found. It might have been + deleted or the link is incorrect. + + + + + + + + + ); +}; + +export default Error404; diff --git a/app/scenes/ErrorOffline.tsx b/app/scenes/Errors/ErrorOffline.tsx similarity index 85% rename from app/scenes/ErrorOffline.tsx rename to app/scenes/Errors/ErrorOffline.tsx index fff43d86bb..5abcabe605 100644 --- a/app/scenes/ErrorOffline.tsx +++ b/app/scenes/Errors/ErrorOffline.tsx @@ -2,6 +2,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import CenteredContent from "~/components/CenteredContent"; import Empty from "~/components/Empty"; +import Heading from "~/components/Heading"; import PageTitle from "~/components/PageTitle"; const ErrorOffline = () => { @@ -9,7 +10,7 @@ const ErrorOffline = () => { return ( -

{t("Offline")}

+ {t("Offline")} {t("We were unable to load the document while offline.")}
); diff --git a/app/scenes/ErrorSuspended.tsx b/app/scenes/Errors/ErrorSuspended.tsx similarity index 93% rename from app/scenes/ErrorSuspended.tsx rename to app/scenes/Errors/ErrorSuspended.tsx index 145c91b32e..b5981360af 100644 --- a/app/scenes/ErrorSuspended.tsx +++ b/app/scenes/Errors/ErrorSuspended.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import CenteredContent from "~/components/CenteredContent"; +import Heading from "~/components/Heading"; import PageTitle from "~/components/PageTitle"; import useStores from "~/hooks/useStores"; @@ -12,12 +13,12 @@ const ErrorSuspended = () => { return ( -

+ ⚠️ {" "} {t("Your account has been suspended")} -

+

- Authentication failed – this login method was disabled by a team + Authentication failed – this login method was disabled by a workspace admin. ); diff --git a/app/scenes/Search/Search.tsx b/app/scenes/Search/Search.tsx index c06e3131fe..12f1c76270 100644 --- a/app/scenes/Search/Search.tsx +++ b/app/scenes/Search/Search.tsx @@ -8,14 +8,13 @@ import styled from "styled-components"; import breakpoint from "styled-components-breakpoint"; import { v4 as uuidv4 } from "uuid"; import { Pagination } from "@shared/constants"; -import { hover, hideScrollbars } from "@shared/styles"; +import { hideScrollbars } from "@shared/styles"; import { DateFilter as TDateFilter, StatusFilter as TStatusFilter, } from "@shared/types"; import ArrowKeyNavigation from "~/components/ArrowKeyNavigation"; import DocumentListItem from "~/components/DocumentListItem"; -import Empty from "~/components/Empty"; import Fade from "~/components/Fade"; import Flex from "~/components/Flex"; import LoadingIndicator from "~/components/LoadingIndicator"; @@ -38,9 +37,7 @@ import RecentSearches from "./components/RecentSearches"; import SearchInput from "./components/SearchInput"; import UserFilter from "./components/UserFilter"; -type Props = { notFound?: boolean }; - -function Search(props: Props) { +function Search() { const { t } = useTranslation(); const { documents, searches } = useStores(); @@ -48,7 +45,7 @@ function Search(props: Props) { const params = useQuery(); const location = useLocation(); const history = useHistory(); - const routeMatch = useRouteMatch<{ term: string }>(); + const routeMatch = useRouteMatch<{ query: string }>(); // refs const searchInputRef = React.useRef(null); @@ -57,13 +54,13 @@ function Search(props: Props) { // filters const decodedQuery = decodeURIComponentSafe( - routeMatch.params.term ?? params.get("query") ?? "" + routeMatch.params.query ?? params.get("q") ?? params.get("query") ?? "" ).trim(); const query = decodedQuery !== "" ? decodedQuery : undefined; - const collectionId = params.get("collectionId") ?? undefined; - const userId = params.get("userId") ?? undefined; + const collectionId = params.get("collectionId") ?? ""; + const userId = params.get("userId") ?? ""; const documentId = params.get("documentId") ?? undefined; - const dateFilter = (params.get("dateFilter") as TDateFilter) ?? undefined; + const dateFilter = (params.get("dateFilter") as TDateFilter) ?? ""; const statusFilter = params.getAll("statusFilter")?.length ? (params.getAll("statusFilter") as TStatusFilter[]) : [TStatusFilter.Published, TStatusFilter.Draft]; @@ -130,9 +127,9 @@ function Search(props: Props) { const updateLocation = (query: string) => { history.replace({ - pathname: searchPath(query), + pathname: location.pathname, search: queryString.stringify( - { ...queryString.parse(location.search), query: undefined }, + { ...queryString.parse(location.search), q: query }, { skipEmptyString: true, } @@ -153,7 +150,7 @@ function Search(props: Props) { history.replace({ pathname: location.pathname, search: queryString.stringify( - { ...queryString.parse(location.search), query: undefined, ...search }, + { ...queryString.parse(location.search), ...search }, { skipEmptyString: true, } @@ -211,14 +208,6 @@ function Search(props: Props) { {loading && } - {props.notFound && ( -

-

{t("Not Found")}

- - {t("We were unable to find the page you’re looking for.")} - -
- )}
({ key: collection.id, label: collection.name, - icon: , + icon: , })); return [ { key: "", label: t("Any collection"), - icon: , + icon: , }, ...collectionOptions, ]; @@ -39,7 +39,6 @@ function CollectionFilter(props: Props) { selectedKeys={[collectionId]} onSelect={onSelect} defaultLabel={t("Any collection")} - selectedPrefix={`${t("Collection")}:`} showFilter /> ); diff --git a/app/scenes/Search/components/DateFilter.tsx b/app/scenes/Search/components/DateFilter.tsx index 960c932cdb..160d0c2a89 100644 --- a/app/scenes/Search/components/DateFilter.tsx +++ b/app/scenes/Search/components/DateFilter.tsx @@ -16,7 +16,7 @@ const DateFilter = ({ dateFilter, onSelect }: Props) => { () => [ { key: "", - label: t("Any time"), + label: t("All time"), }, { key: "day", diff --git a/app/scenes/Search/components/DocumentFilter.tsx b/app/scenes/Search/components/DocumentFilter.tsx index 7fb26687b2..8c2f255ec3 100644 --- a/app/scenes/Search/components/DocumentFilter.tsx +++ b/app/scenes/Search/components/DocumentFilter.tsx @@ -19,7 +19,7 @@ export function DocumentFilter(props: Props) {
} neutral> - {props.document.title} + {props.document.titleWithDefault}
diff --git a/app/scenes/Search/components/RecentSearchListItem.tsx b/app/scenes/Search/components/RecentSearchListItem.tsx index c73a5198c5..24526f6227 100644 --- a/app/scenes/Search/components/RecentSearchListItem.tsx +++ b/app/scenes/Search/components/RecentSearchListItem.tsx @@ -27,7 +27,7 @@ function RecentSearchListItem({ searchQuery }: Props) { return ( @@ -51,7 +51,9 @@ const RemoveButton = styled(NudeButton)` opacity: 0; color: ${s("textTertiary")}; - &:hover { + &:focus, + &:${hover} { + opacity: 1; color: ${s("text")}; } `; @@ -61,17 +63,11 @@ const RecentSearch = styled(Link)` justify-content: space-between; color: ${s("textSecondary")}; cursor: var(--pointer); - padding: 1px 4px; + padding: 1px 8px; border-radius: 4px; - position: relative; + line-height: 24px; font-size: 14px; - - &:before { - content: "·"; - color: ${s("textTertiary")}; - position: absolute; - left: -8px; - } + margin: 0 -8px; &:focus-visible { outline: none; diff --git a/app/scenes/Search/components/RecentSearches.tsx b/app/scenes/Search/components/RecentSearches.tsx index ac253494e5..f9f72b0516 100644 --- a/app/scenes/Search/components/RecentSearches.tsx +++ b/app/scenes/Search/components/RecentSearches.tsx @@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next"; import styled from "styled-components"; import { s } from "@shared/styles"; import ArrowKeyNavigation from "~/components/ArrowKeyNavigation"; -import Fade from "~/components/Fade"; +import { ConditionalFade } from "~/components/Fade"; import useStores from "~/hooks/useStores"; import RecentSearchListItem from "./RecentSearchListItem"; @@ -19,7 +19,6 @@ function RecentSearches( ) { const { searches } = useStores(); const { t } = useTranslation(); - const [isPreloaded] = React.useState(searches.recent.length > 0); React.useEffect(() => { void searches.fetchPage({ @@ -48,7 +47,11 @@ function RecentSearches( ) : null; - return isPreloaded ? content : {content}; + return ( + + {content} + + ); } const Heading = styled.h2` @@ -56,7 +59,7 @@ const Heading = styled.h2` font-size: 14px; line-height: 1.5; color: ${s("textSecondary")}; - margin-bottom: 0; + margin: 12px 0 0; `; const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)` diff --git a/app/scenes/Search/components/UserFilter.tsx b/app/scenes/Search/components/UserFilter.tsx index 7e8d7076c3..8bec0eef0c 100644 --- a/app/scenes/Search/components/UserFilter.tsx +++ b/app/scenes/Search/components/UserFilter.tsx @@ -25,13 +25,13 @@ function UserFilter(props: Props) { const userOptions = users.all.map((user) => ({ key: user.id, label: user.name, - icon: , + icon: , })); return [ { key: "", label: t("Any author"), - icon: , + icon: , }, ...userOptions, ]; @@ -43,7 +43,6 @@ function UserFilter(props: Props) { selectedKeys={[userId]} onSelect={onSelect} defaultLabel={t("Any author")} - selectedPrefix={`${t("Author")}:`} fetchQuery={users.fetchPage} fetchQueryOptions={fetchQueryOptions} showFilter @@ -51,8 +50,8 @@ function UserFilter(props: Props) { ); } -const NoAuthor = styled(UserIcon)` - margin-left: -2px; +const StyledAvatar = styled(Avatar)` + margin: 2px; `; export default observer(UserFilter); diff --git a/app/scenes/Settings/Groups.tsx b/app/scenes/Settings/Groups.tsx index c11acfdc35..2f1384ffe5 100644 --- a/app/scenes/Settings/Groups.tsx +++ b/app/scenes/Settings/Groups.tsx @@ -10,6 +10,7 @@ import Group from "~/models/Group"; import { Action } from "~/components/Actions"; import Button from "~/components/Button"; import Empty from "~/components/Empty"; +import { ConditionalFade } from "~/components/Fade"; import Heading from "~/components/Heading"; import InputSearch from "~/components/InputSearch"; import Scene from "~/components/Scene"; @@ -149,15 +150,17 @@ function Groups() { onChange={handleSearch} /> - + + + )} diff --git a/app/scenes/Settings/Members.tsx b/app/scenes/Settings/Members.tsx index 079292ddf7..aebe49cb46 100644 --- a/app/scenes/Settings/Members.tsx +++ b/app/scenes/Settings/Members.tsx @@ -9,7 +9,7 @@ import styled from "styled-components"; import UsersStore, { queriedUsers } from "~/stores/UsersStore"; import { Action } from "~/components/Actions"; import Button from "~/components/Button"; -import Fade from "~/components/Fade"; +import { ConditionalFade } from "~/components/Fade"; import Heading from "~/components/Heading"; import InputSearch from "~/components/InputSearch"; import Scene from "~/components/Scene"; @@ -22,7 +22,7 @@ import usePolicy from "~/hooks/usePolicy"; import useQuery from "~/hooks/useQuery"; import useStores from "~/hooks/useStores"; import { useTableRequest } from "~/hooks/useTableRequest"; -import { PeopleTable } from "./components/PeopleTable"; +import { MembersTable } from "./components/MembersTable"; import { StickyFilters } from "./components/StickyFilters"; import UserRoleFilter from "./components/UserRoleFilter"; import UserStatusFilter from "./components/UserStatusFilter"; @@ -163,8 +163,8 @@ function Members() { onSelect={handleRoleFilter} /> - - + - + ); } diff --git a/app/scenes/Settings/Shares.tsx b/app/scenes/Settings/Shares.tsx index e53a58c85a..1131c82633 100644 --- a/app/scenes/Settings/Shares.tsx +++ b/app/scenes/Settings/Shares.tsx @@ -3,10 +3,11 @@ import { observer } from "mobx-react"; import { GlobeIcon, WarningIcon } from "outline-icons"; import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; -import { Link } from "react-router-dom"; +import { Link, useHistory, useLocation } from "react-router-dom"; import { toast } from "sonner"; -import Fade from "~/components/Fade"; +import { ConditionalFade } from "~/components/Fade"; import Heading from "~/components/Heading"; +import InputSearch from "~/components/InputSearch"; import Notice from "~/components/Notice"; import Scene from "~/components/Scene"; import Text from "~/components/Text"; @@ -16,17 +17,22 @@ import useQuery from "~/hooks/useQuery"; import useStores from "~/hooks/useStores"; import { useTableRequest } from "~/hooks/useTableRequest"; import { SharesTable } from "./components/SharesTable"; +import { StickyFilters } from "./components/StickyFilters"; function Shares() { const team = useCurrentTeam(); const { t } = useTranslation(); + const location = useLocation(); + const history = useHistory(); const { shares, auth } = useStores(); const canShareDocuments = auth.team && auth.team.sharing; const can = usePolicy(team); const params = useQuery(); + const [query, setQuery] = React.useState(""); const reqParams = React.useMemo( () => ({ + query: params.get("query") || undefined, sort: params.get("sort") || "createdAt", direction: (params.get("direction") || "desc").toUpperCase() as | "ASC" @@ -44,18 +50,44 @@ function Shares() { ); const { data, error, loading, next } = useTableRequest({ - data: shares.orderedData, + data: shares.findByQuery(reqParams.query ?? ""), sort, reqFn: shares.fetchPage, reqParams, }); + const updateParams = React.useCallback( + (name: string, value: string) => { + if (value) { + params.set(name, value); + } else { + params.delete(name); + } + + history.replace({ + pathname: location.pathname, + search: params.toString(), + }); + }, + [params, history, location.pathname] + ); + + const handleSearch = React.useCallback((event) => { + const { value } = event.target; + setQuery(value); + }, []); + React.useEffect(() => { if (error) { toast.error(t("Could not load shares")); } }, [t, error]); + React.useEffect(() => { + const timeout = setTimeout(() => updateParams("query", query), 250); + return () => clearTimeout(timeout); + }, [query, updateParams]); + return ( } wide> {t("Shared Links")} @@ -83,20 +115,26 @@ function Shares() { - {data?.length ? ( - - - - ) : null} + + + + + + ); } diff --git a/app/scenes/Settings/components/ActionRow.tsx b/app/scenes/Settings/components/ActionRow.tsx index a34978b4cd..bff049a005 100644 --- a/app/scenes/Settings/components/ActionRow.tsx +++ b/app/scenes/Settings/components/ActionRow.tsx @@ -1,5 +1,6 @@ import { transparentize } from "polished"; import styled from "styled-components"; +import breakpoint from "styled-components-breakpoint"; import { s } from "@shared/styles"; /** @@ -8,8 +9,9 @@ import { s } from "@shared/styles"; export const ActionRow = styled.div` position: sticky; bottom: 0; - padding: 16px 50vw; - margin: 0 -50vw; + width: 100vw; + padding: 16px 12px; + margin-left: -12px; background: ${s("background")}; @@ -17,4 +19,8 @@ export const ActionRow = styled.div` backdrop-filter: blur(20px); background: ${(props) => transparentize(0.2, props.theme.background)}; } + + ${breakpoint("tablet")` + width: auto; + `} `; diff --git a/app/scenes/Settings/components/PeopleTable.tsx b/app/scenes/Settings/components/MembersTable.tsx similarity index 98% rename from app/scenes/Settings/components/PeopleTable.tsx rename to app/scenes/Settings/components/MembersTable.tsx index 9e31b7b835..962eb8ca68 100644 --- a/app/scenes/Settings/components/PeopleTable.tsx +++ b/app/scenes/Settings/components/MembersTable.tsx @@ -24,7 +24,7 @@ type Props = Omit, "columns" | "rowHeight"> & { canManage: boolean; }; -export function PeopleTable({ canManage, ...rest }: Props) { +export function MembersTable({ canManage, ...rest }: Props) { const { t } = useTranslation(); const currentUser = useCurrentUser(); diff --git a/app/scenes/Settings/components/SharesTable.tsx b/app/scenes/Settings/components/SharesTable.tsx index 5714e897ca..48377c450c 100644 --- a/app/scenes/Settings/components/SharesTable.tsx +++ b/app/scenes/Settings/components/SharesTable.tsx @@ -3,7 +3,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { unicodeCLDRtoBCP47 } from "@shared/utils/date"; import Share from "~/models/Share"; -import { Avatar } from "~/components/Avatar"; +import { Avatar, AvatarSize } from "~/components/Avatar"; import Flex from "~/components/Flex"; import { HEADER_HEIGHT } from "~/components/Header"; import { @@ -46,10 +46,10 @@ export function SharesTable({ data, canManage, ...rest }: Props) { accessor: (share) => share.createdBy, sortable: false, component: (share) => ( - + {share.createdBy && ( <> - + {share.createdBy.name} )} diff --git a/app/stores/CollectionsStore.ts b/app/stores/CollectionsStore.ts index 6014bfdebd..dbc8140419 100644 --- a/app/stores/CollectionsStore.ts +++ b/app/stores/CollectionsStore.ts @@ -69,7 +69,9 @@ export default class CollectionsStore extends Store { */ @computed get nonPrivate(): Collection[] { - return this.all.filter((collection) => !collection.isPrivate); + return this.all.filter( + (collection) => collection.isActive && !collection.isPrivate + ); } /** diff --git a/app/stores/DocumentPresenceStore.ts b/app/stores/DocumentPresenceStore.ts index f489c40b52..374598d9df 100644 --- a/app/stores/DocumentPresenceStore.ts +++ b/app/stores/DocumentPresenceStore.ts @@ -14,17 +14,16 @@ export default class PresenceStore { @observable data: Map = new Map(); - timeouts: Map> = new Map(); - - offlineTimeout = 30000; - - private rootStore: RootStore; - constructor(rootStore: RootStore) { this.rootStore = rootStore; } - // called when a user leaves the document + /** + * Removes a user from the presence store + * + * @param documentId ID of the document to remove the user from + * @param userId ID of the user to remove + */ @action public leave(documentId: string, userId: string) { const existing = this.data.get(documentId); @@ -34,8 +33,16 @@ export default class PresenceStore { } } + /** + * Updates the presence store based on an awareness event from YJS + * + * @param documentId ID of the document the event is for + * @param clientId ID of the client the event is for + * @param event The awareness event + */ public updateFromAwarenessChangeEvent( documentId: string, + clientId: number, event: AwarenessChangeEvent ) { const presence = this.data.get(documentId); @@ -45,7 +52,13 @@ export default class PresenceStore { event.states.forEach((state) => { const { user, cursor } = state; - if (user && this.rootStore.auth.currentUserId !== user.id) { + + // To avoid loops we only want to update the presence for the current user + // if it is also the current client. + const isCurrentUser = this.rootStore.auth.currentUserId === user?.id; + const isCurrentClient = clientId === state.clientId; + + if (user && (!isCurrentUser || !isCurrentClient)) { this.update(documentId, user.id, !!cursor); existingUserIds = existingUserIds.filter((id) => id !== user.id); } @@ -56,6 +69,14 @@ export default class PresenceStore { }); } + /** + * Updates the presence store to indicate that a user is present in a document + * and then removes the user after a timeout of inactivity. + * + * @param documentId ID of the document to update + * @param userId ID of the user to update + * @param isEditing Whether the user is "editing" the document + */ public touch(documentId: string, userId: string, isEditing: boolean) { const id = `${documentId}-${userId}`; let timeout = this.timeouts.get(id); @@ -73,6 +94,13 @@ export default class PresenceStore { this.timeouts.set(id, timeout); } + /** + * Updates the presence store to indicate that a user is present in a document. + * + * @param documentId ID of the document to update + * @param userId ID of the user to update + * @param isEditing Whether the user is "editing" the document + */ @action private update(documentId: string, userId: string, isEditing: boolean) { const presence = this.data.get(documentId) || new Map(); @@ -95,4 +123,10 @@ export default class PresenceStore { public clear() { this.data.clear(); } + + private timeouts: Map> = new Map(); + + private offlineTimeout = 30000; + + private rootStore: RootStore; } diff --git a/app/stores/RevisionsStore.ts b/app/stores/RevisionsStore.ts index cbf6768352..8546aea985 100644 --- a/app/stores/RevisionsStore.ts +++ b/app/stores/RevisionsStore.ts @@ -8,7 +8,7 @@ import { PaginationParams } from "~/types"; import { client } from "~/utils/ApiClient"; export default class RevisionsStore extends Store { - actions = [RPCAction.List, RPCAction.Info]; + actions = [RPCAction.List, RPCAction.Update, RPCAction.Info]; constructor(rootStore: RootStore) { super(rootStore, Revision); diff --git a/app/types.ts b/app/types.ts index 8068fd7361..a940e08cdc 100644 --- a/app/types.ts +++ b/app/types.ts @@ -206,8 +206,31 @@ export type WebsocketEvent = | WebsocketEntitiesEvent | WebsocketCommentReactionEvent; +type CursorPosition = { + type: { + client: number; + clock: number; + }; + tname: string | null; + item: { + client: number; + clock: number; + }; + assoc: number; +}; + +type Cursor = { + anchor: CursorPosition; + head: CursorPosition; +}; + export type AwarenessChangeEvent = { - states: { user?: { id: string }; cursor: any; scrollY: number | undefined }[]; + states: { + clientId: number; + user?: { id: string }; + cursor: Cursor; + scrollY: number | undefined; + }[]; }; export const EmptySelectValue = "__empty__"; diff --git a/app/utils/routeHelpers.ts b/app/utils/routeHelpers.ts index bc82007915..7e915194d2 100644 --- a/app/utils/routeHelpers.ts +++ b/app/utils/routeHelpers.ts @@ -111,23 +111,26 @@ export function newNestedDocumentPath(parentDocumentId?: string): string { return `/doc/new?${queryString.stringify({ parentDocumentId })}`; } -export function searchPath( - query?: string, - params: { - collectionId?: string; - documentId?: string; - ref?: string; - } = {} -): string { - let search = queryString.stringify(params); - let route = "/search"; - - if (query) { - route += `/${encodeURIComponent(query.replace(/%/g, "%25"))}`; - } +export function searchPath({ + query, + collectionId, + documentId, + ref, +}: { + query?: string; + collectionId?: string; + documentId?: string; + ref?: string; +} = {}): string { + let search = queryString.stringify({ + q: query, + collectionId, + documentId, + ref, + }); search = search ? `?${search}` : ""; - return `${route}${search}`; + return `/search${search}`; } export function sharedDocumentPath(shareId: string, docPath?: string) { diff --git a/package.json b/package.json index 9cc84f597c..1bab672e12 100644 --- a/package.json +++ b/package.json @@ -48,11 +48,11 @@ "> 0.25%, not dead" ], "dependencies": { - "@aws-sdk/client-s3": "3.749.0", - "@aws-sdk/lib-storage": "3.749.0", - "@aws-sdk/s3-presigned-post": "3.749.0", - "@aws-sdk/s3-request-presigner": "3.749.0", - "@aws-sdk/signature-v4-crt": "^3.749.0", + "@aws-sdk/client-s3": "3.758.0", + "@aws-sdk/lib-storage": "3.758.0", + "@aws-sdk/s3-presigned-post": "3.758.0", + "@aws-sdk/s3-request-presigner": "3.758.0", + "@aws-sdk/signature-v4-crt": "^3.758.0", "@babel/core": "^7.26.9", "@babel/plugin-proposal-decorators": "^7.25.9", "@babel/plugin-transform-class-properties": "^7.25.9", @@ -61,8 +61,8 @@ "@babel/preset-env": "^7.26.9", "@babel/preset-react": "^7.26.3", "@benrbray/prosemirror-math": "^0.2.2", - "@bull-board/api": "^4.2.2", - "@bull-board/koa": "^4.12.2", + "@bull-board/api": "^6.7.10", + "@bull-board/koa": "^6.7.10", "@css-inline/css-inline-wasm": "^0.14.0", "@dnd-kit/core": "^6.3.1", "@dnd-kit/modifiers": "^6.0.1", @@ -90,7 +90,7 @@ "@tanstack/react-table": "^8.20.6", "@tanstack/react-virtual": "^3.11.3", "@tippyjs/react": "^4.2.6", - "@types/form-data": "^2.5.0", + "@types/form-data": "^2.5.2", "@types/mailparser": "^3.4.5", "@types/sanitize-filename": "^1.6.3", "@vitejs/plugin-react": "^3.1.0", @@ -110,7 +110,7 @@ "crypto-js": "^4.2.0", "datadog-metrics": "^0.11.2", "date-fns": "^3.6.0", - "dd-trace": "^3.58.0", + "dd-trace": "^5.40.0", "diff": "^5.2.0", "dotenv": "^16.4.7", "email-providers": "^1.14.0", @@ -186,11 +186,11 @@ "prosemirror-model": "^1.24.0", "prosemirror-schema-list": "^1.4.1", "prosemirror-state": "^1.4.3", - "prosemirror-tables": "^1.4.0", + "prosemirror-tables": "^1.6.4", "prosemirror-transform": "1.10.0", - "prosemirror-view": "^1.37.1", + "prosemirror-view": "^1.38.1", "query-string": "^7.1.3", - "randomstring": "1.3.0", + "randomstring": "1.3.1", "rate-limiter-flexible": "^2.4.2", "react": "^17.0.2", "react-avatar-editor": "^13.0.2", @@ -219,7 +219,7 @@ "rfc6902": "^5.1.1", "sanitize-filename": "^1.6.3", "scroll-into-view-if-needed": "^3.1.0", - "semver": "^7.6.2", + "semver": "^7.7.1", "sequelize": "^6.37.3", "sequelize-cli": "^6.6.2", "sequelize-encrypted": "^1.0.0", @@ -227,7 +227,7 @@ "slug": "^5.3.0", "slugify": "^1.6.6", "socket.io": "^4.8.1", - "socket.io-client": "^4.8.0", + "socket.io-client": "^4.8.1", "socket.io-redis": "^6.1.1", "sonner": "^1.7.1", "stoppable": "^1.1.0", @@ -302,8 +302,8 @@ "@types/quoted-printable": "^1.0.2", "@types/randomstring": "^1.3.0", "@types/react": "^17.0.34", - "@types/react-avatar-editor": "^13.0.3", - "@types/react-color": "^3.0.12", + "@types/react-avatar-editor": "^13.0.4", + "@types/react-color": "^3.0.13", "@types/react-dom": "^17.0.11", "@types/react-helmet": "^6.1.11", "@types/react-portal": "^4.0.7", @@ -334,7 +334,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.102", + "discord-api-types": "^0.37.119", "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-typescript": "^3.8.0", @@ -347,7 +347,7 @@ "eslint-plugin-react": "^7.37.3", "eslint-plugin-react-hooks": "^4.6.2", "husky": "^8.0.3", - "i18next-parser": "^7.9.0", + "i18next-parser": "^8.13.0", "jest-cli": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-fetch-mock": "^3.0.3", @@ -358,8 +358,8 @@ "react-refresh": "^0.14.2", "rimraf": "^2.5.4", "rollup-plugin-webpack-stats": "^2.0.1", - "terser": "^5.37.0", - "typescript": "^5.7.2", + "terser": "^5.39.0", + "typescript": "^5.7.3", "vite-plugin-static-copy": "^0.17.0", "yarn-deduplicate": "^6.0.2" }, @@ -371,7 +371,8 @@ "node-fetch": "^2.7.0", "js-yaml": "^3.14.1", "qs": "6.9.7", - "rollup": "^4.5.1" + "rollup": "^4.5.1", + "prismjs": "1.30.0" }, "version": "0.82.0" } diff --git a/server/commands/accountProvisioner.test.ts b/server/commands/accountProvisioner.test.ts index 295708b5c6..6adc22e9a0 100644 --- a/server/commands/accountProvisioner.test.ts +++ b/server/commands/accountProvisioner.test.ts @@ -190,6 +190,56 @@ describe("accountProvisioner", () => { expect(error).toBeTruthy(); }); + it("should prioritize enabled authentication provider", async () => { + const existingTeam = await buildTeam(); + const existingProviders = await existingTeam.$get( + "authenticationProviders" + ); + + const team2 = await buildTeam(); + + const providers = await team2.$get("authenticationProviders"); + const authenticationProvider = providers[0]; + await authenticationProvider.update({ + enabled: false, + providerId: existingProviders[0].providerId, + }); + + const existing = await buildUser({ + teamId: existingTeam.id, + }); + const authentications = await existing.$get("authentications"); + const authentication = authentications[0]; + const { isNewUser, isNewTeam } = await accountProvisioner({ + ip, + user: { + name: existing.name, + email: existing.email!, + avatarUrl: existing.avatarUrl, + }, + team: { + name: existingTeam.name, + avatarUrl: existingTeam.avatarUrl, + subdomain: faker.internet.domainWord(), + }, + authenticationProvider: { + name: authenticationProvider.name, + providerId: authenticationProvider.providerId, + }, + authentication: { + providerId: authentication.providerId, + accessToken: "123", + scopes: ["read"], + }, + }); + const auth = await UserAuthentication.findByPk(authentication.id); + expect(auth?.accessToken).toEqual("123"); + expect(auth?.scopes.length).toEqual(1); + expect(auth?.scopes[0]).toEqual("read"); + expect(isNewTeam).toEqual(false); + expect(isNewUser).toEqual(false); + }); + it("should throw an error when the domain is not allowed", async () => { const existingTeam = await buildTeam(); const admin = await buildAdmin({ teamId: existingTeam.id }); diff --git a/server/commands/accountProvisioner.ts b/server/commands/accountProvisioner.ts index cf782935c6..0e02f03bcf 100644 --- a/server/commands/accountProvisioner.ts +++ b/server/commands/accountProvisioner.ts @@ -102,7 +102,7 @@ async function accountProvisioner({ if (err.id === "invalid_authentication") { const authenticationProvider = await AuthenticationProvider.findOne({ where: { - name: authenticationProviderParams.name, // example: "google" + name: authenticationProviderParams.name, teamId: teamParams.teamId, }, include: [ @@ -112,6 +112,7 @@ async function accountProvisioner({ required: true, }, ], + order: [["enabled", "DESC"]], }); if (authenticationProvider) { diff --git a/server/commands/documentCollaborativeUpdater.ts b/server/commands/documentCollaborativeUpdater.ts index f10d9f2537..7f59f47afc 100644 --- a/server/commands/documentCollaborativeUpdater.ts +++ b/server/commands/documentCollaborativeUpdater.ts @@ -1,10 +1,8 @@ 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"; import Logger from "@server/logging/Logger"; import { Document, Event } from "@server/models"; import { sequelize } from "@server/storage/database"; @@ -45,8 +43,6 @@ export default async function documentCollaborativeUpdater({ const state = Y.encodeStateAsUpdate(ydoc); const content = yDocToProsemirrorJSON(ydoc, "default") as ProsemirrorData; - const node = Node.fromJSON(schema, content); - const text = serializer.serialize(node, undefined); const isUnchanged = isEqual(document.content, content); const lastModifiedById = sessionCollaboratorIds[sessionCollaboratorIds.length - 1] ?? @@ -72,7 +68,6 @@ export default async function documentCollaborativeUpdater({ await document.update( { - text, content, state: Buffer.from(state), lastModifiedById, diff --git a/server/commands/documentCreator.ts b/server/commands/documentCreator.ts index fe4bfa3ce0..4de36318f2 100644 --- a/server/commands/documentCreator.ts +++ b/server/commands/documentCreator.ts @@ -1,8 +1,9 @@ import { Optional } from "utility-types"; -import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; +import { ProsemirrorHelper as SharedProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { TextHelper } from "@shared/utils/TextHelper"; import { Document, Event, User } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; +import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { APIContext } from "@server/types"; type Props = Optional< @@ -81,53 +82,58 @@ export default async function documentCreator({ } } - const document = await Document.create( - { - id, - urlId, - parentDocumentId, - editorVersion, - collectionId, - teamId: user.teamId, - createdAt, - updatedAt: updatedAt ?? createdAt, - lastModifiedById: user.id, - createdById: user.id, - template, - templateId, - publishedAt, - importId, - sourceMetadata, - fullWidth: templateDocument ? templateDocument.fullWidth : fullWidth, - icon: templateDocument ? templateDocument.icon : icon, - color: templateDocument ? templateDocument.color : color, - title: - title ?? - (templateDocument - ? template - ? templateDocument.title - : TextHelper.replaceTemplateVariables(templateDocument.title, user) - : ""), - text: - text ?? - (templateDocument - ? template - ? templateDocument.text - : TextHelper.replaceTemplateVariables(templateDocument.text, user) - : ""), - content: templateDocument - ? ProsemirrorHelper.replaceTemplateVariables( - await DocumentHelper.toJSON(templateDocument), - user - ) - : content, - state, - }, - { - silent: !!createdAt, - transaction, - } - ); + const titleWithReplacements = + title ?? + (templateDocument + ? template + ? templateDocument.title + : TextHelper.replaceTemplateVariables(templateDocument.title, user) + : ""); + + const contentWithReplacements = text + ? ProsemirrorHelper.toProsemirror(text).toJSON() + : templateDocument + ? template + ? templateDocument.content + : SharedProsemirrorHelper.replaceTemplateVariables( + await DocumentHelper.toJSON(templateDocument), + user + ) + : content; + + const document = Document.build({ + id, + urlId, + parentDocumentId, + editorVersion, + collectionId, + teamId: user.teamId, + createdAt, + updatedAt: updatedAt ?? createdAt, + lastModifiedById: user.id, + createdById: user.id, + template, + templateId, + publishedAt, + importId, + sourceMetadata, + fullWidth: fullWidth ?? templateDocument?.fullWidth, + icon: icon ?? templateDocument?.icon, + color: color ?? templateDocument?.color, + title: titleWithReplacements, + content: contentWithReplacements, + state, + }); + + document.text = DocumentHelper.toMarkdown(document, { + includeTitle: false, + }); + + await document.save({ + silent: !!createdAt, + transaction, + }); + await Event.create( { name: "documents.create", diff --git a/server/commands/documentDuplicator.ts b/server/commands/documentDuplicator.ts index 803c9d7b75..da542a2f94 100644 --- a/server/commands/documentDuplicator.ts +++ b/server/commands/documentDuplicator.ts @@ -52,7 +52,6 @@ export default async function documentDuplicator({ DocumentHelper.toProsemirror(document), ["comment"] ), - text: document.text, ...sharedProperties, }); @@ -86,7 +85,6 @@ export default async function documentDuplicator({ DocumentHelper.toProsemirror(childDocument), ["comment"] ), - text: childDocument.text, ...sharedProperties, }); diff --git a/server/commands/teamProvisioner.ts b/server/commands/teamProvisioner.ts index 2f0c38406c..380d090656 100644 --- a/server/commands/teamProvisioner.ts +++ b/server/commands/teamProvisioner.ts @@ -61,6 +61,7 @@ async function teamProvisioner({ paranoid: false, }, ], + order: [["enabled", "DESC"]], }); // This authentication provider already exists which means we have a team and diff --git a/server/commands/userProvisioner.ts b/server/commands/userProvisioner.ts index f6221358a7..8d11004ece 100644 --- a/server/commands/userProvisioner.ts +++ b/server/commands/userProvisioner.ts @@ -63,7 +63,7 @@ export default async function userProvisioner({ const auth = authentication ? await UserAuthentication.findOne({ where: { - providerId: "" + authentication.providerId, + providerId: String(authentication.providerId), }, include: [ { diff --git a/server/emails/mailer.tsx b/server/emails/mailer.tsx index b2a1296ed7..8ea55f9596 100644 --- a/server/emails/mailer.tsx +++ b/server/emails/mailer.tsx @@ -122,11 +122,11 @@ export class Mailer { sendMail = async (data: SendMailOptions): Promise => { const { transporter } = this; - if (!transporter) { - Logger.info( + if (env.isDevelopment) { + Logger.debug( "email", [ - `Attempted to send email but no transport configured.`, + `Sending email:`, ``, `--------------`, `From: ${data.from.address}`, @@ -138,6 +138,9 @@ export class Mailer { data.text, ].join("\n") ); + } + if (!transporter) { + Logger.warn("No mail transport available"); return; } diff --git a/server/emails/templates/DocumentSharedEmail.tsx b/server/emails/templates/DocumentSharedEmail.tsx index 337c9ba6c7..872418746a 100644 --- a/server/emails/templates/DocumentSharedEmail.tsx +++ b/server/emails/templates/DocumentSharedEmail.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { DocumentPermission } from "@shared/types"; -import { Document, UserMembership } from "@server/models"; +import { Document, GroupMembership, UserMembership } from "@server/models"; import BaseEmail, { EmailMessageCategory, EmailProps } from "./BaseEmail"; import Body from "./components/Body"; import Button from "./components/Button"; @@ -11,13 +11,14 @@ import Heading from "./components/Heading"; type InputProps = EmailProps & { userId: string; documentId: string; + membershipId?: string; actorName: string; teamUrl: string; }; type BeforeSend = { document: Document; - membership: UserMembership; + membership: UserMembership | GroupMembership; }; type Props = InputProps & BeforeSend; @@ -33,18 +34,20 @@ export default class DocumentSharedEmail extends BaseEmail< return EmailMessageCategory.Notification; } - protected async beforeSend({ documentId, userId }: InputProps) { + protected async beforeSend({ documentId, membershipId }: InputProps) { + if (!membershipId) { + return false; + } + const document = await Document.unscoped().findByPk(documentId); if (!document) { return false; } - const membership = await UserMembership.findOne({ - where: { - documentId, - userId, - }, - }); + const membership = + (await UserMembership.findByPk(membershipId)) ?? + (await GroupMembership.findByPk(membershipId)); + if (!membership) { return false; } diff --git a/server/migrations/20250225153529-add-notification-membershipId.js b/server/migrations/20250225153529-add-notification-membershipId.js new file mode 100644 index 0000000000..caea15f921 --- /dev/null +++ b/server/migrations/20250225153529-add-notification-membershipId.js @@ -0,0 +1,14 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addColumn("notifications", "membershipId", { + type: Sequelize.UUID, + }); + }, + + async down(queryInterface, Sequelize) { + await queryInterface.removeColumn("notifications", "membershipId"); + }, +}; diff --git a/server/migrations/20250301234423-add-name-to-revisions.js b/server/migrations/20250301234423-add-name-to-revisions.js new file mode 100644 index 0000000000..f04ad392a9 --- /dev/null +++ b/server/migrations/20250301234423-add-name-to-revisions.js @@ -0,0 +1,15 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addColumn("revisions", "name", { + type: Sequelize.STRING, + allowNull: true, + }); + }, + + async down(queryInterface) { + await queryInterface.removeColumn("revisions", "name"); + }, +}; diff --git a/server/models/Document.ts b/server/models/Document.ts index 4eef7eb6d0..c9ca828905 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -830,7 +830,9 @@ class Document extends ArchivableModel< } this.content = revision.content; - this.text = revision.text; + this.text = DocumentHelper.toMarkdown(revision, { + includeTitle: false, + }); this.title = revision.title; this.icon = revision.icon; this.color = revision.color; diff --git a/server/models/Notification.ts b/server/models/Notification.ts index ee6007705b..225e2dbd00 100644 --- a/server/models/Notification.ts +++ b/server/models/Notification.ts @@ -177,6 +177,10 @@ class Notification extends Model< @Column(DataType.UUID) teamId: string; + @AllowNull + @Column(DataType.UUID) + membershipId: string; + @AfterCreate static async createEvent( model: Notification, @@ -191,6 +195,7 @@ class Notification extends Model< documentId: model.documentId, collectionId: model.collectionId, actorId: model.actorId, + membershipId: model.membershipId, }; if (options.transaction) { diff --git a/server/models/Revision.test.ts b/server/models/Revision.test.ts index cc6349e1e0..4e84e936f5 100644 --- a/server/models/Revision.test.ts +++ b/server/models/Revision.test.ts @@ -16,6 +16,5 @@ describe("#findLatest", () => { await Revision.createFromDocument(document); const revision = await Revision.findLatest(document.id); expect(revision?.title).toBe("Changed 2"); - expect(revision?.text).toBe("Content"); }); }); diff --git a/server/models/Revision.ts b/server/models/Revision.ts index abe7bc28f3..2a9cee2d77 100644 --- a/server/models/Revision.ts +++ b/server/models/Revision.ts @@ -15,7 +15,7 @@ import { Length as SimpleLength, } from "sequelize-typescript"; import type { ProsemirrorData } from "@shared/types"; -import { DocumentValidation } from "@shared/validations"; +import { DocumentValidation, RevisionValidation } from "@shared/validations"; import Document from "./Document"; import User from "./User"; import IdModel from "./base/IdModel"; @@ -42,6 +42,7 @@ class Revision extends IdModel< @Column(DataType.SMALLINT) version?: number | null; + /** The editor version at the time of the revision */ @SimpleLength({ max: 255, msg: `editorVersion must be 255 characters or less`, @@ -49,6 +50,7 @@ class Revision extends IdModel< @Column editorVersion: string; + /** The document title at the time of the revision */ @Length({ max: DocumentValidation.maxTitleLength, msg: `Revision title must be ${DocumentValidation.maxTitleLength} characters or less`, @@ -56,22 +58,29 @@ class Revision extends IdModel< @Column title: string; + /** An optional name for the revision */ + @Length({ + max: RevisionValidation.maxNameLength, + msg: `Revision name must be ${RevisionValidation.maxNameLength} characters or less`, + }) + @Column + name: string | null; + /** * The content of the revision as Markdown. * - * @deprecated Use `content` instead, or `DocumentHelper.toMarkdown` if exporting lossy markdown. - * This column will be removed in a future migration. + * @deprecated Use `content` instead, or `DocumentHelper.toMarkdown` if + * exporting lossy markdown. This column will be removed in a future migration + * and is no longer being written. */ @Column(DataType.TEXT) text: string; - /** - * The content of the revision as JSON. - */ + /** The content of the revision as JSON. */ @Column(DataType.JSONB) content: ProsemirrorData | null; - /** An icon to use as the document icon. */ + /** The icon at the time of the revision. */ @Length({ max: 50, msg: `icon must be 50 characters or less`, @@ -79,7 +88,7 @@ class Revision extends IdModel< @Column icon: string | null; - /** The color of the icon. */ + /** The color at the time of the revision. */ @IsHexColor @Column color: string | null; @@ -126,7 +135,6 @@ class Revision extends IdModel< static buildFromDocument(document: Document) { return this.build({ title: document.title, - text: document.text, icon: document.icon, color: document.color, content: document.content, diff --git a/server/models/User.test.ts b/server/models/User.test.ts index 38fa3b236f..4c266b1ba4 100644 --- a/server/models/User.test.ts +++ b/server/models/User.test.ts @@ -79,6 +79,7 @@ describe("user model", () => { expect(response.length).toEqual(1); expect(response[0]).toEqual(collection.id); }); + it("should return read collections", async () => { const team = await buildTeam(); const user = await buildUser({ @@ -92,6 +93,7 @@ describe("user model", () => { expect(response.length).toEqual(1); expect(response[0]).toEqual(collection.id); }); + it("should not return private collections", async () => { const team = await buildTeam(); const user = await buildUser({ @@ -104,6 +106,7 @@ describe("user model", () => { const response = await user.collectionIds(); expect(response.length).toEqual(0); }); + it("should not return private collection with membership", async () => { const team = await buildTeam(); const user = await buildUser({ diff --git a/server/models/User.ts b/server/models/User.ts index 4d89133c70..a4d7e9df9d 100644 --- a/server/models/User.ts +++ b/server/models/User.ts @@ -614,6 +614,7 @@ class User extends ParanoidModel< where: { email: this.email }, }, ], + order: [["createdAt", "ASC"]], }); // hooks diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index 610cbc6976..cd9add19c1 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -147,10 +147,15 @@ export class DocumentHelper { * Returns the document as Markdown. This is a lossy conversion and should only be used for export. * * @param document The document or revision to convert + * @param options Options for the conversion * @returns The document title and content as a Markdown string */ static toMarkdown( - document: Document | Revision | Collection | ProsemirrorData + document: Document | Revision | Collection | ProsemirrorData, + options?: { + /** Whether to include the document title (default: true) */ + includeTitle?: boolean; + } ) { const text = serializer .serialize(DocumentHelper.toProsemirror(document)) @@ -165,7 +170,10 @@ export class DocumentHelper { return text; } - if (document instanceof Document || document instanceof Revision) { + if ( + (document instanceof Document || document instanceof Revision) && + options?.includeTitle !== false + ) { const iconType = determineIconType(document.icon); const title = `${iconType === IconType.Emoji ? document.icon + " " : ""}${ diff --git a/server/models/helpers/NotificationHelper.test.ts b/server/models/helpers/NotificationHelper.test.ts index c887247771..4cc18cec05 100644 --- a/server/models/helpers/NotificationHelper.test.ts +++ b/server/models/helpers/NotificationHelper.test.ts @@ -1,5 +1,6 @@ import { NotificationEventType } from "@shared/types"; import { + buildComment, buildDocument, buildSubscription, buildUser, @@ -7,6 +8,112 @@ import { import NotificationHelper from "./NotificationHelper"; describe("NotificationHelper", () => { + describe("getCommentNotificationRecipients", () => { + it("should return users who have notification enabled for comment creation and are subscribed to the document in case of parent comment", async () => { + const documentAuthor = await buildUser(); + const document = await buildDocument({ + userId: documentAuthor.id, + teamId: documentAuthor.teamId, + }); + const notificationEnabledUser = await buildUser({ + teamId: document.teamId, + notificationSettings: { [NotificationEventType.CreateComment]: true }, + }); + const notificationDisabledUser = await buildUser({ + teamId: document.teamId, + notificationSettings: { [NotificationEventType.CreateComment]: false }, + }); + await Promise.all([ + buildSubscription({ + userId: documentAuthor.id, + documentId: document.id, + }), + buildSubscription({ + userId: notificationEnabledUser.id, + documentId: document.id, + }), + buildSubscription({ + userId: notificationDisabledUser.id, + documentId: document.id, + }), + ]); + + const comment = await buildComment({ + documentId: document.id, + userId: documentAuthor.id, + }); + + const recipients = + await NotificationHelper.getCommentNotificationRecipients( + document, + comment, + comment.createdById + ); + + expect(recipients.length).toEqual(1); + expect(recipients[0].id).toEqual(notificationEnabledUser.id); + }); + + it("should return users who have notification enabled for comment creation and are in the thread in case of child comment", async () => { + const documentAuthor = await buildUser(); + const document = await buildDocument({ + userId: documentAuthor.id, + teamId: documentAuthor.teamId, + }); + const notificationEnabledUserInThread = await buildUser({ + teamId: document.teamId, + notificationSettings: { [NotificationEventType.CreateComment]: true }, + }); + const notificationEnabledUserNotInThread = await buildUser({ + teamId: document.teamId, + notificationSettings: { [NotificationEventType.CreateComment]: true }, + }); + const notificationDisabledUser = await buildUser({ + teamId: document.teamId, + notificationSettings: { + [NotificationEventType.CreateComment]: false, + }, + }); + await Promise.all([ + buildSubscription({ + userId: documentAuthor.id, + documentId: document.id, + }), + buildSubscription({ + userId: notificationEnabledUserInThread.id, + documentId: document.id, + }), + buildSubscription({ + userId: notificationEnabledUserNotInThread.id, + documentId: document.id, + }), + buildSubscription({ + userId: notificationDisabledUser.id, + documentId: document.id, + }), + ]); + const parentComment = await buildComment({ + documentId: document.id, + userId: notificationEnabledUserInThread.id, + }); + const childComment = await buildComment({ + documentId: document.id, + userId: documentAuthor.id, + parentCommentId: parentComment.id, + }); + + const recipients = + await NotificationHelper.getCommentNotificationRecipients( + document, + childComment, + childComment.createdById + ); + + expect(recipients.length).toEqual(1); + expect(recipients[0].id).toEqual(notificationEnabledUserInThread.id); + }); + }); + describe("getDocumentNotificationRecipients", () => { it("should return all users who have notification enabled for the event", async () => { const documentAuthor = await buildUser(); diff --git a/server/models/helpers/NotificationHelper.ts b/server/models/helpers/NotificationHelper.ts index 4d0839f200..51868784b3 100644 --- a/server/models/helpers/NotificationHelper.ts +++ b/server/models/helpers/NotificationHelper.ts @@ -62,7 +62,7 @@ export default class NotificationHelper { ): Promise => { let recipients = await this.getDocumentNotificationRecipients({ document, - notificationType: NotificationEventType.UpdateDocument, + notificationType: NotificationEventType.CreateComment, onlySubscribers: !comment.parentCommentId, actorId, }); diff --git a/server/models/helpers/ProseMirrorHelper.test.ts b/server/models/helpers/ProseMirrorHelper.test.ts index 1329eac748..e61a60b4f7 100644 --- a/server/models/helpers/ProseMirrorHelper.test.ts +++ b/server/models/helpers/ProseMirrorHelper.test.ts @@ -3,7 +3,7 @@ import { MentionType, ProsemirrorData } from "@shared/types"; import { buildProseMirrorDoc } from "@server/test/factories"; import { MentionAttrs, ProsemirrorHelper } from "./ProsemirrorHelper"; -describe("ProseMirrorHelper", () => { +describe("ProsemirrorHelper", () => { describe("getNodeForMentionEmail", () => { it("should return the paragraph node", () => { const mentionAttrs: MentionAttrs = { diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index e8f2da6e95..a57beebbc6 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -118,10 +118,13 @@ export class ProsemirrorHelper { /** * Converts a plain object into a Prosemirror Node. * - * @param data The object to parse + * @param data The ProsemirrorData object or string to parse. * @returns The content as a Prosemirror Node */ - static toProsemirror(data: ProsemirrorData) { + static toProsemirror(data: ProsemirrorData | string) { + if (typeof data === "string") { + return parser.parse(data); + } return Node.fromJSON(schema, data); } diff --git a/server/models/helpers/SearchHelper.test.ts b/server/models/helpers/SearchHelper.test.ts index 03dc311a3a..e5f21f1441 100644 --- a/server/models/helpers/SearchHelper.test.ts +++ b/server/models/helpers/SearchHelper.test.ts @@ -861,6 +861,51 @@ describe("SearchHelper", () => { }); }); + describe("#searchCollectionsForUser", () => { + test("should return search results from collections", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const collection1 = await buildCollection({ + teamId: team.id, + userId: user.id, + name: "Test Collection", + }); + await buildCollection({ + teamId: team.id, + userId: user.id, + name: "Other Collection", + }); + + const results = await SearchHelper.searchCollectionsForUser(user, { + query: "test", + }); + + expect(results.length).toBe(1); + expect(results[0].id).toBe(collection1.id); + }); + + test("should return all collections when no query provided", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const collection1 = await buildCollection({ + teamId: team.id, + userId: user.id, + name: "Alpha", + }); + const collection2 = await buildCollection({ + teamId: team.id, + userId: user.id, + name: "Beta", + }); + + const results = await SearchHelper.searchCollectionsForUser(user); + + expect(results.length).toBe(2); + expect(results[0].id).toBe(collection1.id); + expect(results[1].id).toBe(collection2.id); + }); + }); + describe("webSearchQuery", () => { test("should correctly sanitize query", () => { expect(SearchHelper.webSearchQuery("one/two")).toBe("one/two:*"); diff --git a/server/models/helpers/SearchHelper.ts b/server/models/helpers/SearchHelper.ts index 28a393696b..e8a85d83b0 100644 --- a/server/models/helpers/SearchHelper.ts +++ b/server/models/helpers/SearchHelper.ts @@ -203,6 +203,35 @@ export default class SearchHelper { }); } + public static async searchCollectionsForUser( + user: User, + options: SearchOptions = {} + ): Promise { + const { limit = 15, offset = 0, query } = options; + + const collectionIds = await user.collectionIds(); + + return Collection.findAll({ + where: { + [Op.and]: query + ? { + [Op.or]: [ + Sequelize.literal( + `unaccent(LOWER(name)) like unaccent(LOWER(:query))` + ), + ], + } + : {}, + id: collectionIds, + teamId: user.teamId, + }, + order: [["name", "ASC"]], + replacements: { query: `%${query}%` }, + limit, + offset, + }); + } + public static async searchForUser( user: User, options: SearchOptions = {} @@ -601,6 +630,8 @@ export default class SearchHelper { } private static removeStopWords(query: string): string { + // Based on: + // https://github.com/postgres/postgres/blob/fc0d0ce978752493868496be6558fa17b7c4c3cf/src/backend/snowball/stopwords/english.stop const stopwords = [ "i", "me", @@ -665,7 +696,6 @@ export default class SearchHelper { "because", "as", "until", - "while", "of", "at", "by", @@ -673,7 +703,6 @@ export default class SearchHelper { "with", "about", "against", - "between", "into", "through", "during", @@ -681,18 +710,12 @@ export default class SearchHelper { "after", "above", "below", - "to", "from", - "up", "down", - "in", - "out", - "on", "off", "over", "under", "again", - "further", "then", "once", "here", @@ -700,22 +723,15 @@ export default class SearchHelper { "when", "where", "why", - "how", - "all", "any", "both", "each", "few", - "more", - "most", "other", "some", "such", - "no", "nor", - "not", "only", - "own", "same", "so", "than", @@ -723,12 +739,8 @@ export default class SearchHelper { "very", "s", "t", - "can", - "will", - "just", "don", "should", - "now", ]; return query .split(" ") diff --git a/server/onerror.ts b/server/onerror.ts index ad6848ee8e..4f1c585435 100644 --- a/server/onerror.ts +++ b/server/onerror.ts @@ -6,18 +6,8 @@ import Koa from "koa"; import escape from "lodash/escape"; import isNil from "lodash/isNil"; import snakeCase from "lodash/snakeCase"; -import { - ValidationError as SequelizeValidationError, - EmptyResultError as SequelizeEmptyResultError, -} from "sequelize"; import env from "@server/env"; -import { - AuthorizationError, - ClientClosedRequestError, - InternalError, - NotFoundError, - ValidationError, -} from "@server/errors"; +import { ClientClosedRequestError, InternalError } from "@server/errors"; import { requestErrorHandler } from "@server/logging/sentry"; let errorHtmlCache: Buffer | undefined; @@ -32,16 +22,6 @@ export default function onerror(app: Koa) { err = wrapInNativeError(err); - if (err instanceof SequelizeValidationError) { - if (err.errors && err.errors[0]) { - err = ValidationError( - `${err.errors[0].message} (${err.errors[0].path})` - ); - } else { - err = ValidationError(); - } - } - // Client aborted errors are a 500 by default, but 499 is more appropriate if (err instanceof formidable.errors.FormidableError) { if (err.internalCode === 1002) { @@ -49,21 +29,6 @@ export default function onerror(app: Koa) { } } - if ( - err.code === "ENOENT" || - err instanceof SequelizeEmptyResultError || - /Not found/i.test(err.message) - ) { - err = NotFoundError(); - } - - if ( - !(err instanceof AuthorizationError) && - /Authorization error/i.test(err.message) - ) { - err = AuthorizationError(); - } - // Push only unknown and 500 status errors to sentry if ( typeof err.status !== "number" || diff --git a/server/policies/index.ts b/server/policies/index.ts index 82e5cf5ba4..70d5f4f8c8 100644 --- a/server/policies/index.ts +++ b/server/policies/index.ts @@ -12,6 +12,7 @@ import "./fileOperation"; import "./integration"; import "./pins"; import "./reaction"; +import "./revision"; import "./searchQuery"; import "./share"; import "./star"; diff --git a/server/policies/revision.ts b/server/policies/revision.ts new file mode 100644 index 0000000000..06e931868e --- /dev/null +++ b/server/policies/revision.ts @@ -0,0 +1,11 @@ +import { User, Revision } from "@server/models"; +import { allow } from "./cancan"; +import { and, isTeamMutable, or } from "./utils"; + +allow(User, ["update"], Revision, (actor, revision) => + and( + // + or(actor.id === revision?.userId, actor.isAdmin), + isTeamMutable(actor) + ) +); diff --git a/server/presenters/document.ts b/server/presenters/document.ts index 201239429b..42a12f0d6e 100644 --- a/server/presenters/document.ts +++ b/server/presenters/document.ts @@ -42,7 +42,7 @@ async function presentDocument( const text = !asData || options?.includeText - ? document.text || DocumentHelper.toMarkdown(data) + ? DocumentHelper.toMarkdown(data, { includeTitle: false }) : undefined; const res: Record = { diff --git a/server/presenters/revision.ts b/server/presenters/revision.ts index 5bf6250245..2461839625 100644 --- a/server/presenters/revision.ts +++ b/server/presenters/revision.ts @@ -12,6 +12,7 @@ async function presentRevision(revision: Revision, diff?: string) { id: revision.id, documentId: revision.documentId, title: strippedTitle, + name: revision.name, data: await DocumentHelper.toJSON(revision), icon: revision.icon ?? emoji, color: revision.color, diff --git a/server/queues/processors/DocumentSubscriptionProcessor.ts b/server/queues/processors/DocumentSubscriptionProcessor.ts index 45cfe327d4..ff565f73ea 100644 --- a/server/queues/processors/DocumentSubscriptionProcessor.ts +++ b/server/queues/processors/DocumentSubscriptionProcessor.ts @@ -6,21 +6,17 @@ import BaseProcessor from "./BaseProcessor"; export default class DocumentSubscriptionProcessor extends BaseProcessor { static applicableEvents: Event["name"][] = [ - "documents.add_user", "documents.remove_user", - "documents.add_group", "documents.remove_group", ]; async perform(event: DocumentUserEvent | DocumentGroupEvent) { switch (event.name) { - case "documents.add_user": case "documents.remove_user": { await DocumentSubscriptionTask.schedule(event); return; } - case "documents.add_group": case "documents.remove_group": return this.handleGroup(event); @@ -29,11 +25,6 @@ export default class DocumentSubscriptionProcessor extends BaseProcessor { } private async handleGroup(event: DocumentGroupEvent) { - const userEventName: DocumentUserEvent["name"] = - event.name === "documents.add_group" - ? "documents.add_user" - : "documents.remove_user"; - await GroupUser.findAllInBatches( { where: { @@ -49,7 +40,7 @@ export default class DocumentSubscriptionProcessor extends BaseProcessor { groupUsers.map((groupUser) => DocumentSubscriptionTask.schedule({ ...event, - name: userEventName, + name: "documents.remove_user", userId: groupUser.userId, }) ) diff --git a/server/queues/processors/EmailsProcessor.ts b/server/queues/processors/EmailsProcessor.ts index 2ba41dcd12..411ff83c85 100644 --- a/server/queues/processors/EmailsProcessor.ts +++ b/server/queues/processors/EmailsProcessor.ts @@ -56,6 +56,7 @@ export default class EmailsProcessor extends BaseProcessor { to: notification.user.email, userId: notification.userId, documentId: notification.documentId, + membershipId: notification.membershipId, teamUrl: notification.team.url, actorName: notification.actor.name, }, diff --git a/server/queues/processors/RevisionsProcessor.ts b/server/queues/processors/RevisionsProcessor.ts index fb847b4e71..6f23cd505e 100644 --- a/server/queues/processors/RevisionsProcessor.ts +++ b/server/queues/processors/RevisionsProcessor.ts @@ -2,6 +2,7 @@ import isEqual from "fast-deep-equal"; import revisionCreator from "@server/commands/revisionCreator"; import { Revision, Document, User } from "@server/models"; import { DocumentEvent, RevisionEvent, Event } from "@server/types"; +import DocumentUpdateTextTask from "../tasks/DocumentUpdateTextTask"; import BaseProcessor from "./BaseProcessor"; export default class RevisionsProcessor extends BaseProcessor { @@ -36,6 +37,8 @@ export default class RevisionsProcessor extends BaseProcessor { return; } + await DocumentUpdateTextTask.schedule(event); + const user = await User.findByPk(event.actorId, { paranoid: false, rejectOnEmpty: true, diff --git a/server/queues/tasks/CommentCreatedNotificationsTask.ts b/server/queues/tasks/CommentCreatedNotificationsTask.ts index 1ad00fd080..7e6f86ee30 100644 --- a/server/queues/tasks/CommentCreatedNotificationsTask.ts +++ b/server/queues/tasks/CommentCreatedNotificationsTask.ts @@ -10,7 +10,7 @@ import NotificationHelper from "@server/models/helpers/NotificationHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { sequelize } from "@server/storage/database"; import { CommentEvent } from "@server/types"; -import { canUserAccessDocument } from "@server/utils/policies"; +import { canUserAccessDocument } from "@server/utils/permissions"; import BaseTask, { TaskPriority } from "./BaseTask"; export default class CommentCreatedNotificationsTask extends BaseTask { diff --git a/server/queues/tasks/CommentUpdatedNotificationsTask.ts b/server/queues/tasks/CommentUpdatedNotificationsTask.ts index 08a93f05aa..08dc93f90b 100644 --- a/server/queues/tasks/CommentUpdatedNotificationsTask.ts +++ b/server/queues/tasks/CommentUpdatedNotificationsTask.ts @@ -4,7 +4,7 @@ import { MentionType, NotificationEventType } from "@shared/types"; import { Comment, Document, Notification, User } from "@server/models"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { CommentEvent, CommentUpdateEvent } from "@server/types"; -import { canUserAccessDocument } from "@server/utils/policies"; +import { canUserAccessDocument } from "@server/utils/permissions"; import BaseTask, { TaskPriority } from "./BaseTask"; export default class CommentUpdatedNotificationsTask extends BaseTask { diff --git a/server/queues/tasks/DocumentAddGroupNotificationsTask.ts b/server/queues/tasks/DocumentAddGroupNotificationsTask.ts index fc7a467af3..a0eda5641a 100644 --- a/server/queues/tasks/DocumentAddGroupNotificationsTask.ts +++ b/server/queues/tasks/DocumentAddGroupNotificationsTask.ts @@ -1,6 +1,5 @@ import { Op } from "sequelize"; -import Logger from "@server/logging/Logger"; -import { GroupUser, UserMembership } from "@server/models"; +import { GroupUser } from "@server/models"; import { DocumentGroupEvent } from "@server/types"; import BaseTask, { TaskPriority } from "./BaseTask"; import DocumentAddUserNotificationsTask from "./DocumentAddUserNotificationsTask"; @@ -20,26 +19,9 @@ export default class DocumentAddGroupNotificationsTask extends BaseTask { await Promise.all( groupUsers.map(async (groupUser) => { - const userMembership = await UserMembership.findOne({ - where: { - userId: groupUser.userId, - documentId: event.documentId, - }, - }); - if (userMembership) { - Logger.debug( - "task", - `Suppressing notification for user ${groupUser.userId} as they are already a member of the document`, - { - documentId: event.documentId, - userId: groupUser.userId, - } - ); - return; - } - await DocumentAddUserNotificationsTask.schedule({ ...event, + modelId: event.data.membershipId, userId: groupUser.userId, }); }) diff --git a/server/queues/tasks/DocumentAddUserNotificationsTask.ts b/server/queues/tasks/DocumentAddUserNotificationsTask.ts index a41676f375..9b60dcd9e0 100644 --- a/server/queues/tasks/DocumentAddUserNotificationsTask.ts +++ b/server/queues/tasks/DocumentAddUserNotificationsTask.ts @@ -1,27 +1,65 @@ -import { NotificationEventType } from "@shared/types"; +import { DocumentPermission, NotificationEventType } from "@shared/types"; +import Logger from "@server/logging/Logger"; import { Notification, User } from "@server/models"; import { DocumentUserEvent } from "@server/types"; +import { isElevatedPermission } from "@server/utils/permissions"; import BaseTask, { TaskPriority } from "./BaseTask"; export default class DocumentAddUserNotificationsTask extends BaseTask { public async perform(event: DocumentUserEvent) { - const recipient = await User.findByPk(event.userId); - if (!recipient) { + const permission = event.changes?.attributes.permission as + | DocumentPermission + | undefined; + + if (!permission) { + Logger.info( + "task", + `permission not available in the DocumentAddUserNotificationsTask event`, + { + name: event.name, + modelId: event.modelId, + } + ); return; } + const recipient = await User.findByPk(event.userId); if ( - !recipient.isSuspended && - recipient.subscribedToEventType(NotificationEventType.AddUserToDocument) + !recipient || + recipient.isSuspended || + !recipient.subscribedToEventType(NotificationEventType.AddUserToDocument) ) { - await Notification.create({ - event: NotificationEventType.AddUserToDocument, - userId: event.userId, - actorId: event.actorId, - teamId: event.teamId, - documentId: event.documentId, - }); + return; } + + const isElevated = await isElevatedPermission({ + userId: recipient.id, + documentId: event.documentId, + permission, + skipMembershipId: event.modelId, + }); + + if (!isElevated) { + Logger.debug( + "task", + `Suppressing notification for user ${event.userId} as the new permission does not elevate user's permission to the document`, + { + documentId: event.documentId, + userId: event.userId, + permission, + } + ); + return; + } + + await Notification.create({ + event: NotificationEventType.AddUserToDocument, + userId: event.userId, + actorId: event.actorId, + teamId: event.teamId, + documentId: event.documentId, + membershipId: event.modelId, + }); } public get options() { diff --git a/server/queues/tasks/DocumentPublishedNotificationsTask.ts b/server/queues/tasks/DocumentPublishedNotificationsTask.ts index f6dd20d6ab..fbff48a5e6 100644 --- a/server/queues/tasks/DocumentPublishedNotificationsTask.ts +++ b/server/queues/tasks/DocumentPublishedNotificationsTask.ts @@ -4,7 +4,7 @@ import { Document, Notification, User } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import NotificationHelper from "@server/models/helpers/NotificationHelper"; import { DocumentEvent } from "@server/types"; -import { canUserAccessDocument } from "@server/utils/policies"; +import { canUserAccessDocument } from "@server/utils/permissions"; import BaseTask, { TaskPriority } from "./BaseTask"; export default class DocumentPublishedNotificationsTask extends BaseTask { diff --git a/server/queues/tasks/DocumentSubscriptionTask.ts b/server/queues/tasks/DocumentSubscriptionTask.ts index 9dc048850b..e36147f403 100644 --- a/server/queues/tasks/DocumentSubscriptionTask.ts +++ b/server/queues/tasks/DocumentSubscriptionTask.ts @@ -1,8 +1,9 @@ import { Transaction } from "sequelize"; import { SubscriptionType } from "@shared/types"; -import subscriptionCreator from "@server/commands/subscriptionCreator"; import { createContext } from "@server/context"; -import { Subscription, User } from "@server/models"; +import Logger from "@server/logging/Logger"; +import { Document, Subscription, User } from "@server/models"; +import { can } from "@server/policies"; import { sequelize } from "@server/storage/database"; import { DocumentUserEvent } from "@server/types"; import BaseTask from "./BaseTask"; @@ -10,44 +11,29 @@ import BaseTask from "./BaseTask"; export default class DocumentSubscriptionTask extends BaseTask { public async perform(event: DocumentUserEvent) { const user = await User.findByPk(event.userId); - if (!user) { + + if (!user || event.name !== "documents.remove_user") { return; } - switch (event.name) { - case "documents.add_user": - return this.addUser(event, user); - - case "documents.remove_user": - return this.removeUser(event, user); - - default: - } - } - - private async addUser(event: DocumentUserEvent, user: User) { - await sequelize.transaction(async (transaction) => { - await subscriptionCreator({ - ctx: createContext({ - user, - authType: event.authType, - ip: event.ip, - transaction, - }), - documentId: event.documentId, - event: SubscriptionType.Document, - resubscribe: false, - }); + const document = await Document.findByPk(event.documentId, { + userId: user.id, }); - } - private async removeUser(event: DocumentUserEvent, user: User) { + if (can(user, "read", document)) { + Logger.debug( + "task", + `Skip unsubscribing user ${user.id} as they have permission to the document ${event.documentId} through other means` + ); + return; + } + await sequelize.transaction(async (transaction) => { const subscription = await Subscription.findOne({ where: { userId: user.id, documentId: event.documentId, - event: "documents.update", + event: SubscriptionType.Document, }, transaction, lock: Transaction.LOCK.UPDATE, diff --git a/server/queues/tasks/DocumentUpdateTextTask.ts b/server/queues/tasks/DocumentUpdateTextTask.ts new file mode 100644 index 0000000000..3a98e7b93f --- /dev/null +++ b/server/queues/tasks/DocumentUpdateTextTask.ts @@ -0,0 +1,18 @@ +import { Node } from "prosemirror-model"; +import { schema, serializer } from "@server/editor"; +import { Document } from "@server/models"; +import { DocumentEvent } from "@server/types"; +import BaseTask from "./BaseTask"; + +export default class DocumentUpdateTextTask extends BaseTask { + public async perform(event: DocumentEvent) { + const document = await Document.findByPk(event.documentId); + if (!document?.content) { + return; + } + + const node = Node.fromJSON(schema, document.content); + document.text = serializer.serialize(node); + await document.save({ silent: true }); + } +} diff --git a/server/queues/tasks/RevisionCreatedNotificationsTask.test.ts b/server/queues/tasks/RevisionCreatedNotificationsTask.test.ts index b2aa232319..4a97a85f08 100644 --- a/server/queues/tasks/RevisionCreatedNotificationsTask.test.ts +++ b/server/queues/tasks/RevisionCreatedNotificationsTask.test.ts @@ -169,19 +169,25 @@ describe("revisions.create", () => { // Should emit 3 `subscriptions.create` events. expect(events.length).toEqual(3); - expect(events[0].name).toEqual("subscriptions.create"); - expect(events[1].name).toEqual("subscriptions.create"); - expect(events[2].name).toEqual("subscriptions.create"); + expect( + events.every((event) => event.name === "subscriptions.create") + ).toEqual(true); // Each event should point to same document. - expect(events[0].documentId).toEqual(document.id); - expect(events[1].documentId).toEqual(document.id); - expect(events[2].documentId).toEqual(document.id); + expect(events.every((event) => event.documentId === document.id)).toEqual( + true + ); // Events should mention correct `userId`. - expect(events[0].userId).toEqual(collaborator0.id); - expect(events[1].userId).toEqual(collaborator1.id); - expect(events[2].userId).toEqual(collaborator2.id); + const userIds = events.map((event) => event.userId); + expect(userIds).toEqual( + expect.arrayContaining([ + collaborator0.id, + collaborator1.id, + collaborator2.id, + ]) + ); + expect(userIds.length).toBe(3); }); test("should not send multiple emails", async () => { @@ -266,16 +272,15 @@ describe("revisions.create", () => { // Should emit 2 `subscriptions.create` events. expect(events.length).toEqual(2); - expect(events[0].name).toEqual("subscriptions.create"); - expect(events[1].name).toEqual("subscriptions.create"); - - // Each event should point to same document. - expect(events[0].documentId).toEqual(document.id); - expect(events[1].documentId).toEqual(document.id); - - // Events should mention correct `userId`. - expect(events[0].userId).toEqual(collaborator0.id); - expect(events[1].userId).toEqual(collaborator1.id); + expect(events.every((event) => event.documentId === document.id)).toEqual( + true + ); + expect(events.some((event) => event.userId === collaborator0.id)).toEqual( + true + ); + expect(events.some((event) => event.userId === collaborator1.id)).toEqual( + true + ); // One notification as one collaborator performed edit and the other is // unsubscribed diff --git a/server/queues/tasks/RevisionCreatedNotificationsTask.ts b/server/queues/tasks/RevisionCreatedNotificationsTask.ts index bf04767651..7e19d39cbf 100644 --- a/server/queues/tasks/RevisionCreatedNotificationsTask.ts +++ b/server/queues/tasks/RevisionCreatedNotificationsTask.ts @@ -9,7 +9,7 @@ import { Document, Revision, Notification, User, View } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import NotificationHelper from "@server/models/helpers/NotificationHelper"; import { RevisionEvent } from "@server/types"; -import { canUserAccessDocument } from "@server/utils/policies"; +import { canUserAccessDocument } from "@server/utils/permissions"; import BaseTask, { TaskPriority } from "./BaseTask"; export default class RevisionCreatedNotificationsTask extends BaseTask { diff --git a/server/routes/api/collections/collections.ts b/server/routes/api/collections/collections.ts index 8994945216..cab3aa048a 100644 --- a/server/routes/api/collections/collections.ts +++ b/server/routes/api/collections/collections.ts @@ -702,7 +702,7 @@ router.post( pagination(), transaction(), async (ctx: APIContext) => { - const { includeListOnly, statusFilter } = ctx.input.body; + const { includeListOnly, query, statusFilter } = ctx.input.body; const { user } = ctx.state.auth; const { transaction } = ctx.state; const collectionIds = await user.collectionIds({ transaction }); @@ -728,6 +728,12 @@ router.post( where[Op.and].push({ id: collectionIds }); } + if (query) { + where[Op.and].push( + Sequelize.literal(`unaccent(LOWER(name)) like unaccent(LOWER(:query))`) + ); + } + const statusQuery = []; if (statusFilter?.includes(CollectionStatusFilter.Archived)) { statusQuery.push({ @@ -743,6 +749,8 @@ router.post( }); } + const replacements = { query: `%${query}%` }; + const [collections, total] = await Promise.all([ Collection.scope( statusFilter?.includes(CollectionStatusFilter.Archived) @@ -757,6 +765,7 @@ router.post( } ).findAll({ where, + replacements, order: [ Sequelize.literal('"collection"."index" collate "C"'), ["updatedAt", "DESC"], @@ -765,7 +774,12 @@ router.post( limit: ctx.state.pagination.limit, transaction, }), - Collection.count({ where, transaction }), + Collection.count({ + where, + // @ts-expect-error Types are incorrect for count + replacements, + transaction, + }), ]); const nullIndex = collections.findIndex( diff --git a/server/routes/api/collections/schema.ts b/server/routes/api/collections/schema.ts index 216b42b2de..e70ecc8595 100644 --- a/server/routes/api/collections/schema.ts +++ b/server/routes/api/collections/schema.ts @@ -178,6 +178,9 @@ export type CollectionsUpdateReq = z.infer; export const CollectionsListSchema = BaseSchema.extend({ body: z.object({ includeListOnly: z.boolean().default(false), + + query: z.string().optional(), + /** Collection statuses to include in results */ statusFilter: z.nativeEnum(CollectionStatusFilter).array().optional(), }), diff --git a/server/routes/api/comments/__snapshots__/comments.test.ts.snap b/server/routes/api/comments/__snapshots__/comments.test.ts.snap index 56b84ed58a..3503b2703d 100644 --- a/server/routes/api/comments/__snapshots__/comments.test.ts.snap +++ b/server/routes/api/comments/__snapshots__/comments.test.ts.snap @@ -9,6 +9,59 @@ exports[`#comments.add_reaction should require authentication 1`] = ` } `; +exports[`#comments.create should create a comment from markdown text 1`] = ` +{ + "content": [ + { + "attrs": { + "level": 2, + }, + "content": [ + { + "text": "heading", + "type": "text", + }, + ], + "type": "heading", + }, + { + "content": [ + { + "content": [ + { + "content": [ + { + "text": "list item 1", + "type": "text", + }, + ], + "type": "paragraph", + }, + ], + "type": "list_item", + }, + { + "content": [ + { + "content": [ + { + "text": "list item 2", + "type": "text", + }, + ], + "type": "paragraph", + }, + ], + "type": "list_item", + }, + ], + "type": "bullet_list", + }, + ], + "type": "doc", +} +`; + exports[`#comments.create should require authentication 1`] = ` { "error": "authentication_required", diff --git a/server/routes/api/comments/comments.test.ts b/server/routes/api/comments/comments.test.ts index 3660e2dd18..d75c8d3541 100644 --- a/server/routes/api/comments/comments.test.ts +++ b/server/routes/api/comments/comments.test.ts @@ -481,6 +481,30 @@ describe("#comments.create", () => { expect(body.policies[0].abilities.delete).toBeTruthy(); }); + it("should create a comment from markdown text", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + + const text = "## heading\n\n- list item 1\n- list item 2"; + + const res = await server.post("/api/comments.create", { + body: { + token: user.getJwtToken(), + documentId: document.id, + text, + }, + }); + + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.data).toMatchSnapshot(); + }); + it("should not allow empty comment data", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); diff --git a/server/routes/api/comments/comments.ts b/server/routes/api/comments/comments.ts index 292a8a2f7d..6b86a3d0e7 100644 --- a/server/routes/api/comments/comments.ts +++ b/server/routes/api/comments/comments.ts @@ -6,6 +6,7 @@ import { TeamPreference, MentionType, } from "@shared/types"; +import { parser } from "@server/editor"; import auth from "@server/middlewares/authentication"; import { feature } from "@server/middlewares/feature"; import { rateLimiter } from "@server/middlewares/rateLimiter"; @@ -13,6 +14,7 @@ import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; import { Document, Comment, Collection, Reaction } from "@server/models"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; +import { TextHelper } from "@server/models/helpers/TextHelper"; import { authorize } from "@server/policies"; import { presentComment, presentPolicies } from "@server/presenters"; import { APIContext } from "@server/types"; @@ -30,7 +32,7 @@ router.post( validate(T.CommentsCreateSchema), transaction(), async (ctx: APIContext) => { - const { id, documentId, parentCommentId, data } = ctx.input.body; + const { id, documentId, parentCommentId } = ctx.input.body; const { user } = ctx.state.auth; const { transaction } = ctx.state; @@ -40,6 +42,15 @@ router.post( }); authorize(user, "comment", document); + const text = ctx.input.body.text + ? await TextHelper.replaceImagesWithAttachments( + ctx, + ctx.input.body.text, + user + ) + : undefined; + const data = text ? parser.parse(text).toJSON() : ctx.input.body.data; + const comment = await Comment.createWithCtx(ctx, { id, data, diff --git a/server/routes/api/comments/schema.ts b/server/routes/api/comments/schema.ts index e8a05054cb..c18d487650 100644 --- a/server/routes/api/comments/schema.ts +++ b/server/routes/api/comments/schema.ts @@ -1,4 +1,5 @@ import emojiRegex from "emoji-regex"; +import isEmpty from "lodash/isEmpty"; import { z } from "zod"; import { CommentStatusFilter } from "@shared/types"; import { BaseSchema, ProsemirrorSchema } from "@server/routes/api/schema"; @@ -23,19 +24,26 @@ const CommentsSortParamsSchema = z.object({ }); export const CommentsCreateSchema = BaseSchema.extend({ - body: z.object({ - /** Allow creation with a specific ID */ - id: z.string().uuid().optional(), + body: z + .object({ + /** Allow creation with a specific ID */ + id: z.string().uuid().optional(), - /** Create comment for this document */ - documentId: z.string().uuid(), + /** Create comment for this document */ + documentId: z.string().uuid(), - /** Create comment under this parent */ - parentCommentId: z.string().uuid().optional(), + /** Create comment under this parent */ + parentCommentId: z.string().uuid().optional(), - /** Create comment with this data */ - data: ProsemirrorSchema(), - }), + /** Create comment with this data */ + data: ProsemirrorSchema().optional(), + + /** Create comment with this text */ + text: z.string().optional(), + }) + .refine((obj) => !(isEmpty(obj.data) && isEmpty(obj.text)), { + message: "One of data or text is required", + }), }); export type CommentsCreateReq = z.infer; diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index 9ecdc39621..986f366ce2 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -8,6 +8,7 @@ import { } from "@shared/types"; import { TextHelper } from "@shared/utils/TextHelper"; import { createContext } from "@server/context"; +import { parser } from "@server/editor"; import { Document, View, @@ -3257,21 +3258,26 @@ describe("#documents.restore", () => { teamId: user.teamId, }); const revision = await Revision.createFromDocument(document); - const previousText = revision.text; + const previous = revision.content; const revisionId = revision.id; + // update the document contents - document.text = "UPDATED"; + document.content = parser.parse("updated")?.toJSON(); await document.save(); + const res = await server.post("/api/documents.restore", { body: { token: user.getJwtToken(), id: document.id, revisionId, }, + headers: { + "x-api-version": 3, + }, }); const body = await res.json(); expect(res.status).toEqual(200); - expect(body.data.text).toEqual(previousText); + expect(body.data.data).toEqual(previous); }); it("should not allow restoring a revision in another document", async () => { diff --git a/server/routes/api/index.ts b/server/routes/api/index.ts index 35b8de9684..2564237eac 100644 --- a/server/routes/api/index.ts +++ b/server/routes/api/index.ts @@ -22,6 +22,7 @@ import groupMemberships from "./groupMemberships"; import groups from "./groups"; import installation from "./installation"; import integrations from "./integrations"; +import apiErrorHandler from "./middlewares/apiErrorHandler"; import apiResponse from "./middlewares/apiResponse"; import apiTracer from "./middlewares/apiTracer"; import editor from "./middlewares/editor"; @@ -60,6 +61,7 @@ api.use(coalesceBody()); api.use(userAgent); api.use(apiTracer()); api.use(apiResponse()); +api.use(apiErrorHandler()); api.use(editor()); // Register plugin API routes before others to allow for overrides diff --git a/server/routes/api/middlewares/apiErrorHandler.ts b/server/routes/api/middlewares/apiErrorHandler.ts new file mode 100644 index 0000000000..23134f2122 --- /dev/null +++ b/server/routes/api/middlewares/apiErrorHandler.ts @@ -0,0 +1,47 @@ +import { Context, Next } from "koa"; +import { + ValidationError as SequelizeValidationError, + EmptyResultError as SequelizeEmptyResultError, +} from "sequelize"; +import { + AuthorizationError, + NotFoundError, + ValidationError, +} from "@server/errors"; + +export default function apiErrorHandler() { + return async function apiErrorHandlerMiddleware(ctx: Context, next: Next) { + try { + await next(); + } catch (err) { + let transformedErr = err; + + if ( + !(err instanceof AuthorizationError) && + /Authorization error/i.test(err.message) + ) { + transformedErr = AuthorizationError(); + } + + if (err instanceof SequelizeValidationError) { + if (err.errors && err.errors[0]) { + transformedErr = ValidationError( + `${err.errors[0].message} (${err.errors[0].path})` + ); + } else { + transformedErr = ValidationError(); + } + } + + if ( + err.code === "ENOENT" || + err instanceof SequelizeEmptyResultError || + /Not found/i.test(err.message) + ) { + transformedErr = NotFoundError(); + } + + throw transformedErr; + } + }; +} diff --git a/server/routes/api/middlewares/apiResponse.ts b/server/routes/api/middlewares/apiResponse.ts index 9ea28f3ba7..783a8087ab 100644 --- a/server/routes/api/middlewares/apiResponse.ts +++ b/server/routes/api/middlewares/apiResponse.ts @@ -11,7 +11,10 @@ export default function apiResponse() { typeof ctx.body === "object" && !(ctx.body instanceof Readable) && !(ctx.body instanceof stream.Readable) && - !(ctx.body instanceof Buffer) + !(ctx.body instanceof Buffer) && + // JSZip returns a wrapped stream instance that is not a true readable stream + // and not exported from the module either, so we must identify it like so. + !(ctx.body && "_readableState" in ctx.body) ) { ctx.body = { ...ctx.body, diff --git a/server/routes/api/revisions/revisions.test.ts b/server/routes/api/revisions/revisions.test.ts index 7db8e71874..aa404880c3 100644 --- a/server/routes/api/revisions/revisions.test.ts +++ b/server/routes/api/revisions/revisions.test.ts @@ -1,5 +1,6 @@ import { UserMembership, Revision } from "@server/models"; import { + buildAdmin, buildCollection, buildDocument, buildUser, @@ -42,6 +43,99 @@ describe("#revisions.info", () => { }); }); +describe("#revisions.update", () => { + it("should update a document revision", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const revision = await Revision.createFromDocument(document); + + const res = await server.post("/api/revisions.update", { + body: { + token: user.getJwtToken(), + id: revision.id, + name: "new name", + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.name).toEqual("new name"); + }); + + it("should allow setting name to null", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const revision = await Revision.createFromDocument(document); + + const res = await server.post("/api/revisions.update", { + body: { + token: user.getJwtToken(), + id: revision.id, + name: null, + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.name).toBeNull(); + }); + + it("should not allow setting name to empty string", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const revision = await Revision.createFromDocument(document); + + const res = await server.post("/api/revisions.update", { + body: { + token: user.getJwtToken(), + id: revision.id, + name: "", + }, + }); + expect(res.status).toEqual(400); + }); + + it("should allow an admin to update a document revision", async () => { + const admin = await buildAdmin(); + const document = await buildDocument({ + teamId: admin.teamId, + }); + const revision = await Revision.createFromDocument(document); + + const res = await server.post("/api/revisions.update", { + body: { + token: admin.getJwtToken(), + id: revision.id, + name: "new name", + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.name).toEqual("new name"); + }); + + it("should require authorization", async () => { + const document = await buildDocument(); + const revision = await Revision.createFromDocument(document); + const user = await buildUser(); + const res = await server.post("/api/revisions.update", { + body: { + token: user.getJwtToken(), + id: revision.id, + name: "new name", + }, + }); + expect(res.status).toEqual(403); + }); +}); + describe("#revisions.diff", () => { it("should return the document HTML if no previous revision", async () => { const user = await buildUser(); diff --git a/server/routes/api/revisions/revisions.ts b/server/routes/api/revisions/revisions.ts index f09855d234..54c27ec7f3 100644 --- a/server/routes/api/revisions/revisions.ts +++ b/server/routes/api/revisions/revisions.ts @@ -4,11 +4,12 @@ import { RevisionHelper } from "@shared/utils/RevisionHelper"; import slugify from "@shared/utils/slugify"; import { ValidationError } from "@server/errors"; import auth from "@server/middlewares/authentication"; +import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; import { Document, Revision } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { authorize } from "@server/policies"; -import { presentRevision } from "@server/presenters"; +import { presentPolicies, presentRevision } from "@server/presenters"; import { APIContext } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -57,6 +58,36 @@ router.post( includeStyles: false, }) ), + policies: presentPolicies(user, [after]), + }; + } +); + +router.post( + "revisions.update", + auth(), + validate(T.RevisionsUpdateSchema), + transaction(), + async (ctx: APIContext) => { + const { id, name } = ctx.input.body; + const { user } = ctx.state.auth; + const { transaction } = ctx.state; + + const revision = await Revision.findByPk(id, { + rejectOnEmpty: true, + }); + const document = await Document.findByPk(revision.documentId, { + userId: user.id, + }); + authorize(user, "update", document); + authorize(user, "update", revision); + + revision.name = name; + await revision.save({ transaction }); + + ctx.body = { + data: await presentRevision(revision), + policies: presentPolicies(user, [revision]), }; } ); @@ -110,6 +141,7 @@ router.post( ctx.body = { data: content, + policies: presentPolicies(user, [revision]), }; } ); @@ -144,6 +176,7 @@ router.post( ctx.body = { pagination: ctx.state.pagination, data, + policies: presentPolicies(user, revisions), }; } ); diff --git a/server/routes/api/revisions/schema.ts b/server/routes/api/revisions/schema.ts index 85c88974d5..313dff751d 100644 --- a/server/routes/api/revisions/schema.ts +++ b/server/routes/api/revisions/schema.ts @@ -1,5 +1,6 @@ import isEmpty from "lodash/isEmpty"; import { z } from "zod"; +import { RevisionValidation } from "@shared/validations"; import { Revision } from "@server/models"; import { BaseSchema } from "@server/routes/api/schema"; @@ -25,6 +26,20 @@ export const RevisionsDiffSchema = BaseSchema.extend({ export type RevisionsDiffReq = z.infer; +export const RevisionsUpdateSchema = BaseSchema.extend({ + body: z.object({ + id: z.string().uuid(), + + name: z + .string() + .min(RevisionValidation.minNameLength) + .max(RevisionValidation.maxNameLength) + .or(z.null()), + }), +}); + +export type RevisionsUpdateReq = z.infer; + export const RevisionsListSchema = z.object({ body: z.object({ direction: z diff --git a/server/routes/api/shares/schema.ts b/server/routes/api/shares/schema.ts index 4c5f469488..1b6b782e0c 100644 --- a/server/routes/api/shares/schema.ts +++ b/server/routes/api/shares/schema.ts @@ -29,6 +29,7 @@ export type SharesInfoReq = z.infer; export const SharesListSchema = BaseSchema.extend({ body: z.object({ + query: z.string().optional(), sort: z .string() .refine((val) => Object.keys(Share.getAttributes()).includes(val), { diff --git a/server/routes/api/shares/shares.test.ts b/server/routes/api/shares/shares.test.ts index 58f072718a..fe8b9f435a 100644 --- a/server/routes/api/shares/shares.test.ts +++ b/server/routes/api/shares/shares.test.ts @@ -57,6 +57,58 @@ describe("#shares.list", () => { expect(body.data[0].documentTitle).toBe(document.title); }); + it("should allow filtering by document title", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + title: "hardcoded", + }); + await buildShare({ + documentId: document.id, + teamId: user.teamId, + userId: user.id, + }); + const res = await server.post("/api/shares.list", { + body: { + token: user.getJwtToken(), + query: "test", + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(0); + }); + + it("should allow filtering by document title and return matching shares", async () => { + const user = await buildUser(); + await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + title: "test", + }); + const share = await buildShare({ + documentId: document.id, + teamId: user.teamId, + userId: user.id, + }); + const res = await server.post("/api/shares.list", { + body: { + token: user.getJwtToken(), + query: "test", + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(1); + expect(body.data[0].id).toEqual(share.id); + expect(body.data[0].documentTitle).toBe("test"); + }); + it("should not return revoked shares", async () => { const user = await buildUser(); const document = await buildDocument({ diff --git a/server/routes/api/shares/shares.ts b/server/routes/api/shares/shares.ts index 8dcb32e74b..289552a06b 100644 --- a/server/routes/api/shares/shares.ts +++ b/server/routes/api/shares/shares.ts @@ -98,9 +98,10 @@ router.post( pagination(), validate(T.SharesListSchema), async (ctx: APIContext) => { - const { sort, direction } = ctx.input.body; + const { sort, direction, query } = ctx.input.body; const { user } = ctx.state.auth; authorize(user, "listShares", user.team); + const collectionIds = await user.collectionIds(); const where: WhereOptions = { teamId: user.teamId, @@ -111,12 +112,21 @@ router.post( }, }; + const documentWhere: WhereOptions = { + teamId: user.teamId, + collectionId: collectionIds, + }; + + if (query) { + documentWhere.title = { + [Op.iLike]: `%${query}%`, + }; + } + if (user.isAdmin) { delete where.userId; } - const collectionIds = await user.collectionIds(); - const options: FindOptions = { where, include: [ @@ -125,9 +135,7 @@ router.post( required: true, paranoid: true, as: "document", - where: { - collectionId: collectionIds, - }, + where: documentWhere, include: [ { model: Collection.scope({ diff --git a/server/routes/api/suggestions/suggestions.ts b/server/routes/api/suggestions/suggestions.ts index eac32db6db..5263f3bd9e 100644 --- a/server/routes/api/suggestions/suggestions.ts +++ b/server/routes/api/suggestions/suggestions.ts @@ -23,7 +23,7 @@ router.post( const { offset, limit } = ctx.state.pagination; const actor = ctx.state.auth.user; - const [documents, users] = await Promise.all([ + const [documents, users, collections] = await Promise.all([ SearchHelper.searchTitlesForUser(actor, { query, offset, @@ -53,6 +53,7 @@ router.post( offset, limit, }), + SearchHelper.searchCollectionsForUser(actor, { query, offset, limit }), ]); ctx.body = { @@ -67,6 +68,7 @@ router.post( includeDetails: !!can(actor, "readDetails", user), }) ), + collections, }, }; } diff --git a/server/routes/app.ts b/server/routes/app.ts index 4e20943121..cd57a2bddc 100644 --- a/server/routes/app.ts +++ b/server/routes/app.ts @@ -112,6 +112,10 @@ export const renderApp = async ( `; + // Ensure no caching is performed + ctx.response.set("Cache-Control", "no-cache, must-revalidate"); + ctx.response.set("Expires", "-1"); + ctx.body = page .toString() .replace(/\{env\}/g, environment) diff --git a/server/services/websockets.ts b/server/services/websockets.ts index f17c132fb3..c88195c630 100644 --- a/server/services/websockets.ts +++ b/server/services/websockets.ts @@ -4,6 +4,7 @@ import cookie from "cookie"; import Koa from "koa"; import IO from "socket.io"; import { createAdapter } from "socket.io-redis"; +import EDITOR_VERSION from "@shared/editor/version"; import { AuthenticationError } from "@server/errors"; import Logger from "@server/logging/Logger"; import Metrics from "@server/logging/Metrics"; @@ -116,7 +117,7 @@ export default function init( await authenticate(socket); Logger.debug("websockets", `Authenticated socket ${socket.id}`); - socket.emit("authenticated", true); + socket.emit("authenticated", { editorVersion: EDITOR_VERSION }); void authenticated(io, socket); } catch (err) { Logger.debug("websockets", `Authentication error socket ${socket.id}`, { diff --git a/server/storage/database.ts b/server/storage/database.ts index c3d3c0055c..835cce85d0 100644 --- a/server/storage/database.ts +++ b/server/storage/database.ts @@ -48,16 +48,15 @@ export function createDatabaseInstance( schema, }); } catch (error) { - if (error instanceof URIError) { - Logger.fatal( - "Could not connect to database", - new Error( - `Failed to parse: ${databaseUrl}, ensure special characters in database URL are properly encoded` - ) - ); - process.exit(1); - } - throw error; + Logger.fatal( + "Could not connect to database", + databaseUrl + ? new Error( + `Failed to parse: "${databaseUrl}". Ensure special characters in database URL are encoded` + ) + : new Error(`DATABASE_URL is not set.`) + ); + process.exit(1); } } diff --git a/server/storage/files/BaseStorage.ts b/server/storage/files/BaseStorage.ts index 9c3850f4aa..d8ddbebb8a 100644 --- a/server/storage/files/BaseStorage.ts +++ b/server/storage/files/BaseStorage.ts @@ -1,6 +1,7 @@ import { Blob } from "buffer"; import { Readable } from "stream"; import { PresignedPost } from "@aws-sdk/s3-presigned-post"; +import FileHelper from "@shared/editor/lib/FileHelper"; import { isBase64Url, isInternalUrl } from "@shared/utils/urls"; import env from "@server/env"; import Logger from "@server/logging/Logger"; @@ -239,14 +240,14 @@ export default abstract class BaseStorage { * @returns The content disposition */ public getContentDisposition(contentType?: string) { - if (contentType && this.safeInlineContentTypes.includes(contentType)) { - return "inline"; + if (!contentType) { + return "attachment"; } + if ( - contentType && - this.safeInlineContentPrefixes.some((prefix) => - contentType.startsWith(prefix) - ) + FileHelper.isAudio(contentType) || + FileHelper.isVideo(contentType) || + this.safeInlineContentTypes.includes(contentType) ) { return "inline"; } @@ -255,8 +256,8 @@ export default abstract class BaseStorage { } /** - * A list of content types considered safe to display inline in the browser. Note that - * SVGs are purposefully not included here as they can contain JavaScript. + * A list of content types considered safe to display inline in the browser. + * Note that SVGs are purposefully not included here as they can contain JS. */ protected safeInlineContentTypes = [ "application/pdf", @@ -265,9 +266,4 @@ export default abstract class BaseStorage { "image/gif", "image/webp", ]; - - /** - * A list of content type prefixes considered safe to display inline in the browser. - */ - protected safeInlineContentPrefixes = ["video/", "audio/"]; } diff --git a/server/test/factories.ts b/server/test/factories.ts index 3a69bc81ad..86e3f2da23 100644 --- a/server/test/factories.ts +++ b/server/test/factories.ts @@ -294,11 +294,14 @@ export async function buildCollection( overrides.archivedById = overrides.userId; } + if (overrides.permission === undefined) { + overrides.permission = CollectionPermission.ReadWrite; + } + return Collection.create({ name: faker.lorem.words(2), description: faker.lorem.words(4), createdById: overrides.userId, - permission: CollectionPermission.ReadWrite, ...overrides, }); } diff --git a/server/types.ts b/server/types.ts index ae74bdb61d..ff116ba881 100644 --- a/server/types.ts +++ b/server/types.ts @@ -464,6 +464,7 @@ export type NotificationEvent = BaseEvent & { commentId?: string; documentId?: string; collectionId?: string; + membershipId?: string; }; export type Event = diff --git a/server/utils/permissions.test.ts b/server/utils/permissions.test.ts new file mode 100644 index 0000000000..7e490e05b2 --- /dev/null +++ b/server/utils/permissions.test.ts @@ -0,0 +1,305 @@ +import { CollectionPermission, DocumentPermission } from "@shared/types"; +import { GroupMembership, UserMembership } from "@server/models"; +import { + buildCollection, + buildDocument, + buildGroup, + buildGroupUser, + buildUser, +} from "@server/test/factories"; +import { getDocumentPermission, isElevatedPermission } from "./permissions"; + +describe("permissions", () => { + describe("isElevatedPermission", () => { + it("should return false when user has higher permission through collection", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + await UserMembership.create({ + createdById: user.id, + collectionId: collection.id, + userId: user.id, + permission: CollectionPermission.ReadWrite, + }); + + const isElevated = await isElevatedPermission({ + userId: user.id, + documentId: document.id, + permission: DocumentPermission.Read, + }); + + expect(isElevated).toBe(false); + }); + + it("should return false when user has higher permission through document", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + const group = await buildGroup(); + await Promise.all([ + await buildGroupUser({ + groupId: group.id, + userId: user.id, + teamId: user.teamId, + }), + await UserMembership.create({ + createdById: user.id, + documentId: document.id, + userId: user.id, + permission: DocumentPermission.Read, + }), + await GroupMembership.create({ + createdById: user.id, + documentId: document.id, + groupId: group.id, + permission: DocumentPermission.ReadWrite, + }), + ]); + + const isElevated = await isElevatedPermission({ + userId: user.id, + documentId: document.id, + permission: DocumentPermission.Read, + }); + + expect(isElevated).toBe(false); + }); + + it("should return false when user has the same permission", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + const group = await buildGroup(); + await Promise.all([ + await buildGroupUser({ + groupId: group.id, + userId: user.id, + teamId: user.teamId, + }), + await UserMembership.create({ + createdById: user.id, + documentId: document.id, + userId: user.id, + permission: DocumentPermission.Read, + }), + await GroupMembership.create({ + createdById: user.id, + documentId: document.id, + groupId: group.id, + permission: DocumentPermission.ReadWrite, + }), + ]); + + const isElevated = await isElevatedPermission({ + userId: user.id, + documentId: document.id, + permission: DocumentPermission.ReadWrite, + }); + + expect(isElevated).toBe(false); + }); + + it("should return true when user has lower permission", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + const group = await buildGroup(); + await Promise.all([ + await buildGroupUser({ + groupId: group.id, + userId: user.id, + teamId: user.teamId, + }), + await UserMembership.create({ + createdById: user.id, + documentId: document.id, + userId: user.id, + permission: DocumentPermission.Read, + }), + await GroupMembership.create({ + createdById: user.id, + documentId: document.id, + groupId: group.id, + permission: DocumentPermission.ReadWrite, + }), + ]); + + const isElevated = await isElevatedPermission({ + userId: user.id, + documentId: document.id, + permission: DocumentPermission.Admin, + }); + + expect(isElevated).toBe(true); + }); + + it("should return true when user does not have access", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + + const isElevated = await isElevatedPermission({ + userId: user.id, + documentId: document.id, + permission: DocumentPermission.Admin, + }); + + expect(isElevated).toBe(true); + }); + }); + + describe("getDocumentPermission", () => { + it("should return the highest provided permission through collection", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + await UserMembership.create({ + createdById: user.id, + collectionId: collection.id, + userId: user.id, + permission: CollectionPermission.ReadWrite, + }); + + const permission = await getDocumentPermission({ + userId: user.id, + documentId: document.id, + }); + + expect(permission).toEqual(DocumentPermission.ReadWrite); + }); + + it("should return the highest provided permission through document", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + const group = await buildGroup(); + await Promise.all([ + await buildGroupUser({ + groupId: group.id, + userId: user.id, + teamId: user.teamId, + }), + await UserMembership.create({ + createdById: user.id, + documentId: document.id, + userId: user.id, + permission: DocumentPermission.Read, + }), + await GroupMembership.create({ + createdById: user.id, + documentId: document.id, + groupId: group.id, + permission: DocumentPermission.ReadWrite, + }), + ]); + + const permission = await getDocumentPermission({ + userId: user.id, + documentId: document.id, + }); + + expect(permission).toEqual(DocumentPermission.ReadWrite); + }); + + it("should return the highest provided permission with skipped membership", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + const group = await buildGroup(); + const [, , groupMembership] = await Promise.all([ + await buildGroupUser({ + groupId: group.id, + userId: user.id, + teamId: user.teamId, + }), + await UserMembership.create({ + createdById: user.id, + documentId: document.id, + userId: user.id, + permission: DocumentPermission.Read, + }), + await GroupMembership.create({ + createdById: user.id, + documentId: document.id, + groupId: group.id, + permission: DocumentPermission.ReadWrite, + }), + ]); + + const permission = await getDocumentPermission({ + userId: user.id, + documentId: document.id, + skipMembershipId: groupMembership.id, + }); + + expect(permission).toEqual(DocumentPermission.Read); + }); + + it("should return undefined when user does not have access", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: null, + }); + const document = await buildDocument({ + collectionId: collection.id, + teamId: user.teamId, + }); + + const permission = await getDocumentPermission({ + userId: user.id, + documentId: document.id, + }); + + expect(permission).toBeUndefined(); + }); + }); +}); diff --git a/server/utils/permissions.ts b/server/utils/permissions.ts new file mode 100644 index 0000000000..2737f99add --- /dev/null +++ b/server/utils/permissions.ts @@ -0,0 +1,178 @@ +import compact from "lodash/compact"; +import orderBy from "lodash/orderBy"; +import { Op, WhereOptions } from "sequelize"; +import { CollectionPermission, DocumentPermission } from "@shared/types"; +import { + Document, + Group, + GroupMembership, + User, + UserMembership, +} from "@server/models"; +import { authorize } from "@server/policies"; + +// Higher value takes precedence +export const CollectionPermissionPriority = { + [CollectionPermission.Admin]: 2, + [CollectionPermission.ReadWrite]: 1, + [CollectionPermission.Read]: 0, +} satisfies Record; + +// Higher value takes precedence +export const DocumentPermissionPriority = { + [DocumentPermission.Admin]: 2, + [DocumentPermission.ReadWrite]: 1, + [DocumentPermission.Read]: 0, +} satisfies Record; + +/** + * Check if the given user can access a document + * + * @param user - The user to check + * @param documentId - The document to check + * @returns Boolean whether the user can access the document + */ +export const canUserAccessDocument = async (user: User, documentId: string) => { + try { + const document = await Document.findByPk(documentId, { + userId: user.id, + }); + authorize(user, "read", document); + return true; + } catch (err) { + return false; + } +}; + +/** + * Determines whether the user's access to a document is being elevated with the new permission. + * + * @param {Object} params Input parameters. + * @param {string} params.userId The user to check. + * @param {string} params.documentId The document to check. + * @param {DocumentPermission} params.permission The new permission given to the user. + * @param {string} params.skipMembershipId The membership to skip when comparing the existing permissions. + * @returns {boolean} Whether the user has a higher access level + */ +export const isElevatedPermission = async ({ + userId, + documentId, + permission, + skipMembershipId, +}: { + userId: string; + documentId: string; + permission: DocumentPermission; + skipMembershipId?: string; +}) => { + const existingPermission = await getDocumentPermission({ + userId, + documentId, + skipMembershipId, + }); + + if (!existingPermission) { + return true; + } + + return ( + DocumentPermissionPriority[existingPermission] < + DocumentPermissionPriority[permission] + ); +}; + +/** + * Returns the user's permission to a document. + * + * @param {Object} params Input parameters. + * @param {string} params.userId The user to check. + * @param {string} params.documentId The document to check. + * @param {string} params.skipMembershipId The membership to skip when comparing the existing permissions. + * @returns {DocumentPermission | undefined} Highest permission, if it exists. + */ +export const getDocumentPermission = async ({ + userId, + documentId, + skipMembershipId, +}: { + userId: string; + documentId: string; + skipMembershipId?: string; +}): Promise => { + const document = await Document.scope({ + method: ["withCollectionPermissions", userId], + }).findOne({ where: { id: documentId } }); + + const permissions: DocumentPermission[] = []; + + const collection = document?.collection; + if (collection) { + const collectionPermissions = orderBy( + compact([ + collection.permission, + ...compact( + collection.memberships?.map( + (m) => m.permission as CollectionPermission + ) + ), + ...compact( + collection.groupMemberships?.map( + (m) => m.permission as CollectionPermission + ) + ), + ]), + (permission) => CollectionPermissionPriority[permission], + "desc" + ); + + if (collectionPermissions[0]) { + permissions.push( + collectionPermissions[0] === CollectionPermission.Read + ? DocumentPermission.Read + : DocumentPermission.ReadWrite + ); + } + } + + const userMembershipWhere: WhereOptions = { + userId, + documentId, + }; + const groupMembershipWhere: WhereOptions = { + documentId, + }; + + if (skipMembershipId) { + userMembershipWhere.id = { [Op.ne]: skipMembershipId }; + groupMembershipWhere.id = { [Op.ne]: skipMembershipId }; + } + + const [userMemberships, groupMemberships] = await Promise.all([ + UserMembership.findAll({ + where: userMembershipWhere, + }), + GroupMembership.findAll({ + where: groupMembershipWhere, + include: [ + { + model: Group.filterByMember(userId), + as: "group", + required: true, + }, + ], + }), + ]); + + permissions.push( + ...userMemberships.map((m) => m.permission as DocumentPermission), + ...groupMemberships.map((m) => m.permission as DocumentPermission) + ); + + const orderedPermissions = orderBy( + permissions, + (permission) => DocumentPermissionPriority[permission], + "desc" + ); + + return orderedPermissions[0]; +}; diff --git a/server/utils/policies.ts b/server/utils/policies.ts deleted file mode 100644 index 3058b46934..0000000000 --- a/server/utils/policies.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Document, User } from "@server/models"; -import { authorize } from "@server/policies"; - -/** - * Check if the given user can access a document - * - * @param user - The user to check - * @param documentId - The document to check - * @returns Boolean whether the user can access the document - */ -export const canUserAccessDocument = async (user: User, documentId: string) => { - try { - const document = await Document.findByPk(documentId, { - userId: user.id, - }); - authorize(user, "read", document); - return true; - } catch (err) { - return false; - } -}; diff --git a/shared/constants.ts b/shared/constants.ts index 9aa8882711..8ebc461424 100644 --- a/shared/constants.ts +++ b/shared/constants.ts @@ -32,6 +32,6 @@ export const UserPreferenceDefaults: UserPreferences = { [UserPreference.RememberLastPath]: true, [UserPreference.UseCursorPointer]: true, [UserPreference.CodeBlockLineNumers]: true, - [UserPreference.SortCommentsByOrderInDocument]: false, + [UserPreference.SortCommentsByOrderInDocument]: true, [UserPreference.EnableSmartText]: true, }; diff --git a/shared/editor/commands/insertFiles.ts b/shared/editor/commands/insertFiles.ts index 21b1be342e..a4ef1e8bf7 100644 --- a/shared/editor/commands/insertFiles.ts +++ b/shared/editor/commands/insertFiles.ts @@ -58,11 +58,11 @@ const insertFiles = async function ( const filesToUpload = await Promise.all( files.map(async (file) => { const isImage = - FileHelper.isImage(file) && + FileHelper.isImage(file.type) && !options.isAttachment && !!schema.nodes.image; const isVideo = - FileHelper.isVideo(file) && + FileHelper.isVideo(file.type) && !options.isAttachment && !!schema.nodes.video; const getDimensions = isImage diff --git a/shared/editor/commands/table.ts b/shared/editor/commands/table.ts index e4461e905d..d3dc9625f2 100644 --- a/shared/editor/commands/table.ts +++ b/shared/editor/commands/table.ts @@ -1,3 +1,4 @@ +import { GapCursor } from "prosemirror-gapcursor"; import { Node, NodeType } from "prosemirror-model"; import { Command, EditorState, TextSelection } from "prosemirror-state"; import { @@ -12,6 +13,7 @@ import { deleteColumn, } from "prosemirror-tables"; import { ProsemirrorHelper } from "../../utils/ProsemirrorHelper"; +import { CSVHelper } from "../../utils/csv"; import { chainTransactions } from "../lib/chainTransactions"; import { getCellsInColumn, isHeaderEnabled } from "../queries/table"; import { TableLayout } from "../types"; @@ -61,13 +63,14 @@ function createTableInner( : cellType.createAndFill(attrs); for (let index = 0; index < colsCount; index += 1) { - const attrs = colWidth - ? { - colwidth: [colWidth], - colspan: 1, - rowspan: 1, - } - : null; + const attrs = + colWidth && index < colsCount - 1 + ? { + colwidth: [colWidth], + colspan: 1, + rowspan: 1, + } + : null; const cell = createCell(types.cell, attrs); if (cell) { @@ -135,7 +138,7 @@ export function exportTable({ } // Avoid cell content being interpreted as formulas by adding a leading single quote - value = value.trimStart().replace(/^([+\-=@])/, "'$1"); + value = CSVHelper.sanitizeValue(value); return `"${value}"`; }) @@ -498,3 +501,46 @@ export function selectTable(): Command { return false; }; } + +export function moveOutOfTable(direction: 1 | -1): Command { + return (state, dispatch): boolean => { + if (dispatch) { + if (state.selection instanceof GapCursor) { + return false; + } + if (!isInTable(state)) { + return false; + } + + // check if current cursor position is at the top or bottom of the table + const rect = selectedRect(state); + const topOfTable = + rect.top === 0 && rect.bottom === 1 && direction === -1; + const bottomOfTable = + rect.top === rect.map.height - 1 && + rect.bottom === rect.map.height && + direction === 1; + + if (!topOfTable && !bottomOfTable) { + return false; + } + + const map = rect.map.map; + const $start = state.doc.resolve(rect.tableStart + map[0] - 1); + const $end = state.doc.resolve(rect.tableStart + map[map.length - 1] + 2); + + // @ts-expect-error findGapCursorFrom is a ProseMirror internal method. + const $found = GapCursor.findGapCursorFrom( + direction > 0 ? $end : $start, + direction, + true + ); + + if ($found) { + dispatch(state.tr.setSelection(new GapCursor($found))); + return true; + } + } + return false; + }; +} diff --git a/shared/editor/components/Mentions.tsx b/shared/editor/components/Mentions.tsx index 07737c5e8e..6c85c4880c 100644 --- a/shared/editor/components/Mentions.tsx +++ b/shared/editor/components/Mentions.tsx @@ -1,5 +1,5 @@ import { observer } from "mobx-react"; -import { DocumentIcon, EmailIcon } from "outline-icons"; +import { DocumentIcon, EmailIcon, CollectionIcon } from "outline-icons"; import { Node } from "prosemirror-model"; import * as React from "react"; import { Link } from "react-router-dom"; @@ -67,3 +67,36 @@ export const MentionDocument = observer(function MentionDocument_( ); }); + +export const MentionCollection = observer(function MentionCollection_( + props: ComponentProps +) { + const { isSelected, node } = props; + const { collections } = useStores(); + const collection = collections.get(node.attrs.modelId); + const modelId = node.attrs.modelId; + const { className, ...attrs } = getAttributesFromNode(node); + + React.useEffect(() => { + if (modelId) { + void collections.fetch(modelId); + } + }, [modelId, collections]); + + return ( + + {collection?.icon ? ( + + ) : ( + + )} + {collection?.title || node.attrs.label} + + ); +}); diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index d5188f7323..5ca822d026 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -589,7 +589,7 @@ const embeds: EmbedDescriptor[] = [ title: "Tldraw", keywords: "draw schematics diagrams", regexMatch: [ - new RegExp("^https?://(beta|www|old)\\.tldraw\\.com/[rsvo]+/(.*)"), + new RegExp("^https?://(beta|www|old)\\.tldraw\\.com/[rsvopf]+/(.*)"), ], transformMatch: (matches: RegExpMatchArray) => matches[0], icon: Tldraw, diff --git a/shared/editor/lib/FileHelper.test.ts b/shared/editor/lib/FileHelper.test.ts new file mode 100644 index 0000000000..2da1494231 --- /dev/null +++ b/shared/editor/lib/FileHelper.test.ts @@ -0,0 +1,34 @@ +import FileHelper from "./FileHelper"; + +describe("FileHelper", () => { + it("isImage", () => { + expect(FileHelper.isImage("image/png")).toBe(true); + expect(FileHelper.isImage("image/jpeg")).toBe(true); + expect(FileHelper.isImage("image/webp")).toBe(true); + expect(FileHelper.isImage("image/gif")).toBe(true); + expect(FileHelper.isImage("image/bmp")).toBe(true); + expect(FileHelper.isImage("image/avif")).toBe(true); + expect(FileHelper.isImage("image/heif-sequence")).toBe(true); + expect(FileHelper.isImage("image/svg+xml")).toBe(true); + expect(FileHelper.isImage("text/plain")).toBe(false); + expect(FileHelper.isImage("application/json")).toBe(false); + }); + + it("isVideo", () => { + expect(FileHelper.isVideo("video/mp4")).toBe(true); + expect(FileHelper.isVideo("video/webm")).toBe(true); + expect(FileHelper.isVideo("video/x-msvideo")).toBe(true); + expect(FileHelper.isVideo("video/vnd.dlna.mpeg-tts")).toBe(true); + expect(FileHelper.isVideo("text/plain")).toBe(false); + expect(FileHelper.isVideo("application/json")).toBe(false); + }); + + it("isAudio", () => { + expect(FileHelper.isAudio("audio/mpeg")).toBe(true); + expect(FileHelper.isAudio("audio/wav")).toBe(true); + expect(FileHelper.isAudio("audio/vnd.dolby.heaac.1")).toBe(true); + expect(FileHelper.isAudio("audio/vnd.lucent.voice")).toBe(true); + expect(FileHelper.isAudio("text/plain")).toBe(false); + expect(FileHelper.isAudio("application/json")).toBe(false); + }); +}); diff --git a/shared/editor/lib/FileHelper.ts b/shared/editor/lib/FileHelper.ts index 93b2bb94a5..a09b41ce18 100644 --- a/shared/editor/lib/FileHelper.ts +++ b/shared/editor/lib/FileHelper.ts @@ -4,21 +4,31 @@ export default class FileHelper { /** * Checks if a file is an image. * - * @param file The file to check + * @param contentType The content type of the file * @returns True if the file is an image */ - static isImage(file: File) { - return file.type.startsWith("image/"); + static isImage(contentType: string) { + return /^image\/[!#$%&'*+.^\w`|~-]+$/i.test(contentType); } /** * Checks if a file is a video. * - * @param file The file to check + * @param contentType The content type of the file * @returns True if the file is an video */ - static isVideo(file: File) { - return file.type.startsWith("video/"); + static isVideo(contentType: string) { + return /^video\/[!#$%&'*+.^\w`|~-]+$/i.test(contentType); + } + + /** + * Checks if a file is an audio file. + * + * @param contentType The content type of the file + * @returns True if the file is an audio file + */ + static isAudio(contentType: string) { + return /^audio\/[!#$%&'*+.^\w`|~-]+$/i.test(contentType); } /** diff --git a/shared/editor/marks/Code.ts b/shared/editor/marks/Code.ts index ba6f04916f..ac102176a3 100644 --- a/shared/editor/marks/Code.ts +++ b/shared/editor/marks/Code.ts @@ -21,8 +21,8 @@ export default class Code extends Mark { get schema(): MarkSpec { return { - excludes: "mention link placeholder highlight em strong", - parseDOM: [{ tag: "code.inline", preserveWhitespace: true }], + excludes: "mention placeholder highlight em strong", + parseDOM: [{ tag: "code", preserveWhitespace: true }], toDOM: () => ["code", { class: "inline", spellCheck: "false" }], }; } diff --git a/shared/editor/nodes/CheckboxItem.ts b/shared/editor/nodes/CheckboxItem.ts index 12fb5c993d..24e77451ab 100644 --- a/shared/editor/nodes/CheckboxItem.ts +++ b/shared/editor/nodes/CheckboxItem.ts @@ -22,7 +22,7 @@ export default class CheckboxItem extends Node { default: false, }, }, - content: "paragraph block*", + content: "block+", defining: true, draggable: true, parseDOM: [ diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index 6223a0ef70..db26dd53a2 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -173,8 +173,6 @@ export default class CodeFence extends Node { defining: true, draggable: false, parseDOM: [ - { tag: "code" }, - { tag: "pre", preserveWhitespace: "full" }, { tag: ".code-block", preserveWhitespace: "full", @@ -184,6 +182,18 @@ export default class CodeFence extends Node { language: dom.dataset.language, }), }, + { + tag: "code", + preserveWhitespace: "full", + getAttrs: (dom) => { + // Only parse code blocks that contain newlines for code fences, + // otherwise the code mark rule will be applied. + if (!dom.textContent?.includes("\n")) { + return false; + } + return { language: dom.dataset.language }; + }, + }, ], toDOM: (node) => [ "div", diff --git a/shared/editor/nodes/ListItem.ts b/shared/editor/nodes/ListItem.ts index 28e390d3ac..e9b30b84cb 100644 --- a/shared/editor/nodes/ListItem.ts +++ b/shared/editor/nodes/ListItem.ts @@ -26,7 +26,7 @@ export default class ListItem extends Node { get schema(): NodeSpec { return { - content: "paragraph block*", + content: "block+", defining: true, draggable: true, parseDOM: [{ tag: "li" }], diff --git a/shared/editor/nodes/Mention.tsx b/shared/editor/nodes/Mention.tsx index 24aedfaa4a..fc200016de 100644 --- a/shared/editor/nodes/Mention.tsx +++ b/shared/editor/nodes/Mention.tsx @@ -16,7 +16,11 @@ import { Primitive } from "utility-types"; import { v4 as uuidv4 } from "uuid"; import env from "../../env"; import { MentionType } from "../../types"; -import { MentionDocument, MentionUser } from "../components/Mentions"; +import { + MentionCollection, + MentionDocument, + MentionUser, +} from "../components/Mentions"; import { MarkdownSerializerState } from "../lib/markdown/serializer"; import mentionRule from "../rules/mention"; import { ComponentProps } from "../types"; @@ -76,7 +80,9 @@ export default class Mention extends Node { href: node.attrs.type === MentionType.User ? undefined - : `${env.URL}/doc/${node.attrs.modelId}`, + : node.attrs.type === MentionType.Document + ? `${env.URL}/doc/${node.attrs.modelId}` + : `${env.URL}/collection/${node.attrs.modelId}`, "data-type": node.attrs.type, "data-id": node.attrs.modelId, "data-actorid": node.attrs.actorId, @@ -97,6 +103,8 @@ export default class Mention extends Node { return ; case MentionType.Document: return ; + case MentionType.Collection: + return ; default: return null; } @@ -145,10 +153,23 @@ export default class Mention extends Node { if ( selection instanceof NodeSelection && selection.node.type.name === this.name && - selection.node.attrs.type === MentionType.Document + (selection.node.attrs.type === MentionType.Document || + selection.node.attrs.type === MentionType.Collection) ) { const { modelId } = selection.node.attrs; - this.editor.props.onClickLink?.(`/doc/${modelId}`); + + const linkType = + selection.node.attrs.type === MentionType.Document + ? "doc" + : selection.node.attrs.type === MentionType.Collection + ? "collection" + : undefined; + + if (!linkType) { + return false; + } + + this.editor.props.onClickLink?.(`/${linkType}/${modelId}`); return true; } return false; diff --git a/shared/editor/nodes/Table.ts b/shared/editor/nodes/Table.ts index 94b463f9a8..03ff223d50 100644 --- a/shared/editor/nodes/Table.ts +++ b/shared/editor/nodes/Table.ts @@ -22,6 +22,7 @@ import { setTableAttr, deleteColSelection, deleteRowSelection, + moveOutOfTable, } from "../commands/table"; import { MarkdownSerializerState } from "../lib/markdown/serializer"; import { FixTablesPlugin } from "../plugins/FixTables"; @@ -95,6 +96,8 @@ export default class Table extends Node { deleteColSelection(), deleteRowSelection() ), + ArrowDown: moveOutOfTable(1), + ArrowUp: moveOutOfTable(-1), }; } diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 117cc5b4a7..0ff9001886 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -769,7 +769,7 @@ "Inline code": "Vložený kód", "Inline LaTeX": "Vložený LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Přihlásit se", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Vytvořili jste před {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} vytvořil před {{ timeAgo }}", "Uploading": "Nahrávání" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index abe70c6784..630efa8649 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -769,7 +769,7 @@ "Inline code": "Inline code", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Sign In", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Uploading" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index 5894957ad7..c4b98d1bd4 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -769,7 +769,7 @@ "Inline code": "Inline-Code", "Inline LaTeX": "Inline-LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Anmelden", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Du hast vor {{ timeAgo }} erstellt", "{{ user }} created {{ timeAgo }}": "{{ user }} erstellte vor {{ timeAgo }}", "Uploading": "Wird hochgeladen" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 86171338c7..c2b9bf20ba 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -100,6 +100,7 @@ "Could not leave document": "Could not leave document", "Home": "Home", "Drafts": "Drafts", + "Search": "Search", "Trash": "Trash", "Settings": "Settings", "Profile": "Profile", @@ -137,6 +138,7 @@ "Update role": "Update role", "Delete user": "Delete user", "Collection": "Collection", + "Collections": "Collections", "Debug": "Debug", "Document": "Document", "Documents": "Documents", @@ -290,7 +292,6 @@ "Flags": "Flags", "Select a color": "Select a color", "Loading": "Loading", - "Search": "Search", "Permission": "Permission", "View only": "View only", "Can edit": "Can edit", @@ -369,7 +370,6 @@ "Archived collections": "Archived collections", "New doc": "New doc", "Empty": "Empty", - "Collections": "Collections", "Collapse": "Collapse", "Expand": "Expand", "Document not supported – try Markdown, Plain text, HTML, or Word": "Document not supported – try Markdown, Plain text, HTML, or Word", @@ -701,8 +701,11 @@ "No documents found for your filters.": "No documents found for your filters.", "You’ve not got any drafts at the moment.": "You’ve not got any drafts at the moment.", "Payment Required": "Payment Required", - "Not Found": "Not Found", - "We were unable to find the page you’re looking for. Go to the <2>homepage?": "We were unable to find the page you’re looking for. Go to the <2>homepage?", + "No access to this doc": "No access to this doc", + "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", + "Please request access from the document owner.": "Please request access from the document owner.", + "Not found": "Not found", + "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "Offline": "Offline", "We were unable to load the document while offline.": "We were unable to load the document while offline.", "Your account has been suspended": "Your account has been suspended", @@ -771,7 +774,7 @@ "Inline code": "Inline code", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Sign In", @@ -795,7 +798,7 @@ "Sorry, it looks like that sign-in link is no longer valid, please try requesting another.": "Sorry, it looks like that sign-in link is no longer valid, please try requesting another.", "Your account has been suspended. To re-activate your account, please contact a workspace admin.": "Your account has been suspended. To re-activate your account, please contact a workspace admin.", "This workspace has been suspended. Please contact support to restore access.": "This workspace has been suspended. Please contact support to restore access.", - "Authentication failed – this login method was disabled by a team admin.": "Authentication failed – this login method was disabled by a team admin.", + "Authentication failed – this login method was disabled by a workspace admin.": "Authentication failed – this login method was disabled by a workspace admin.", "The workspace you are trying to join requires an invite before you can create an account.<1>Please request an invite from your workspace admin and try again.": "The workspace you are trying to join requires an invite before you can create an account.<1>Please request an invite from your workspace admin and try again.", "Sorry, an unknown error occurred.": "Sorry, an unknown error occurred.", "Login": "Login", @@ -816,17 +819,16 @@ "Or": "Or", "Already have an account? Go to <1>login.": "Already have an account? Go to <1>login.", "Any collection": "Any collection", - "Any time": "Any time", + "All time": "All time", "Past day": "Past day", "Past week": "Past week", "Past month": "Past month", "Past year": "Past year", + "Any time": "Any time", "Remove document filter": "Remove document filter", "Any status": "Any status", "Remove search": "Remove search", "Any author": "Any author", - "Author": "Author", - "We were unable to find the page you’re looking for.": "We were unable to find the page you’re looking for.", "Search titles only": "Search titles only", "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index 0eb85e7f7e..7b42420c0a 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -769,7 +769,7 @@ "Inline code": "Código en línea", "Inline LaTeX": "Línea de LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Iniciar sesión", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Tú lo creaste {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} lo creó {{ timeAgo }}", "Uploading": "Subiendo" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index c01419fb5a..4ba0b7a26b 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -769,7 +769,7 @@ "Inline code": "کد درون خطی", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "ورود", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "در حال بارگذاری" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index 547f2f716b..53f7b39215 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -769,7 +769,7 @@ "Inline code": "Ligne de Code", "Inline LaTeX": "LaTeX en ligne", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Se connecter", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Créé par vous il y a {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "Créé par {{ user }} il y a {{ timeAgo }}", "Uploading": "Transfert en cours" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index c0b5c1fd0b..526306cb55 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -769,7 +769,7 @@ "Inline code": "Inline code", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Sign In", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Uploading" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index 5c7a135027..44d347da86 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -769,7 +769,7 @@ "Inline code": "Beágyazott kód", "Inline LaTeX": "Beágyazott LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Bejelentkezés", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Uploading" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index a47e0e0c25..5554aee9a1 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -769,7 +769,7 @@ "Inline code": "Kode inline", "Inline LaTeX": "LaTeX Inline", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Masuk", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Mengunggah" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index 3e879da1d2..cbaeec5736 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -769,7 +769,7 @@ "Inline code": "Codice inline", "Inline LaTeX": "LaTeX in linea", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Accedi", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Caricamento" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index 54b5ff56bc..6d524fed0e 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -769,7 +769,7 @@ "Inline code": "インラインコード", "Inline LaTeX": "インライン LaTeX", "Triggers": "トリガー", - "Mention user or document": "ユーザーまたはドキュメントにメンション", + "Mention users and more": "ユーザーまたはドキュメントにメンション", "Emoji": "絵文字", "Insert block": "ブロックの挿入", "Sign In": "ログイン", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "あなたが {{ timeAgo }} に作成しました", "{{ user }} created {{ timeAgo }}": "{{ user }} が {{ timeAgo }} に作成しました", "Uploading": "アップロード中" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index 248d73e2c3..7b0c2532db 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -769,7 +769,7 @@ "Inline code": "인라인 코드", "Inline LaTeX": "인라인 LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "로그인", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "{{ timeAgo }} 전에 내가 생성함", "{{ user }} created {{ timeAgo }}": "{{ user }} 이(가) {{ timeAgo }} 전에 생성", "Uploading": "업로드 중" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index 7000f32c57..3bc7a8c65d 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -769,7 +769,7 @@ "Inline code": "Innebygd kode", "Inline LaTeX": "Innebygd LaTeX", "Triggers": "Utløsere", - "Mention user or document": "Nevn bruker eller dokument", + "Mention users and more": "Nevn bruker eller dokument", "Emoji": "Emoji", "Insert block": "Sett inn blokk", "Sign In": "Logg inn", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Du opprettet {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} opprettet {{ timeAgo }}", "Uploading": "Laster opp" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index c4061b6270..f0f55065c5 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -769,7 +769,7 @@ "Inline code": "Inline code", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Voeg blok in", "Sign In": "Aanmelden", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "{{ timeAgo }} door jou aangemaakt", "{{ user }} created {{ timeAgo }}": "{{ timeAgo }} door {{ user }} aangemaakt", "Uploading": "Bezig met uploaden" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index c430ac9b4b..d4d42aaf47 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -769,7 +769,7 @@ "Inline code": "Kod w linii", "Inline LaTeX": "LaTeX w linii", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Zaloguj się", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Utworzyłeś {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} utworzył {{ timeAgo }}", "Uploading": "Wysyłanie" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index 2450e6633a..6543677117 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -769,7 +769,7 @@ "Inline code": "Código embutido", "Inline LaTeX": "LaTeX em linha", "Triggers": "Gatilhos", - "Mention user or document": "Mencionar usuário ou documento", + "Mention users and more": "Mencionar usuário ou documento", "Emoji": "Emoji", "Insert block": "Inserir bloco", "Sign In": "Entrar", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Você criou {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} criou {{ timeAgo }}", "Uploading": "Enviando" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index 35b4e1f713..8e57e16cbd 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -769,7 +769,7 @@ "Inline code": "Código em linha", "Inline LaTeX": "LaTeX Embutido", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Iniciar Sessão", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Criou à {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} criado à {{ timeAgo }}", "Uploading": "A carregar" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index 408416e349..033d94acc7 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -769,7 +769,7 @@ "Inline code": "Inline-kod", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Logga in", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Du skapade {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} skapade {{ timeAgo }}", "Uploading": "Laddar upp" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index 9eb33b6004..452c2ec0eb 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -769,7 +769,7 @@ "Inline code": "Inline code", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Sign In", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Uploading" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index c36a0831ed..f2f0fe8c5a 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -769,7 +769,7 @@ "Inline code": "Satır içi kod", "Inline LaTeX": "Inline LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Kayıt ol", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Yükleniyor" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index fd1e9eb16d..a49b8a28fc 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -769,7 +769,7 @@ "Inline code": "Вбудований код", "Inline LaTeX": "Вбудований LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Увійти", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "Ви створили {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} створив {{ timeAgo }}", "Uploading": "Завантажується" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index db8285d295..0849d86546 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -769,7 +769,7 @@ "Inline code": "Mã nội tuyến", "Inline LaTeX": "LaTeX nội tuyến", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "Đăng nhập", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", "Uploading": "Đang tải lên" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index 75557b0bf7..7c88fa7b47 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -769,7 +769,7 @@ "Inline code": "行内代码", "Inline LaTeX": "行内公式", "Triggers": "Triggers", - "Mention user or document": "提及用户或文档", + "Mention users and more": "提及用户或文档", "Emoji": "表情", "Insert block": "Insert block", "Sign In": "登录", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "{{ timeAgo }} 由你创建", "{{ user }} created {{ timeAgo }}": "{{ timeAgo }} 由 {{ user }} 创建", "Uploading": "上传中" -} +} \ No newline at end of file diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index 0a0e768361..2f7040b3af 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -769,7 +769,7 @@ "Inline code": "行內程式碼", "Inline LaTeX": "行內 LaTeX", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Mention users and more": "Mention users and more", "Emoji": "Emoji", "Insert block": "Insert block", "Sign In": "登入", @@ -1143,4 +1143,4 @@ "You created {{ timeAgo }}": "{{ timeAgo }} 由您新增", "{{ user }} created {{ timeAgo }}": "{{ timeAgo }} 由 {{ user }} 新增", "Uploading": "正在上傳" -} +} \ No newline at end of file diff --git a/shared/types.ts b/shared/types.ts index 32904533cf..dc45116750 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -57,6 +57,7 @@ export enum FileOperationState { export enum MentionType { User = "user", Document = "document", + Collection = "collection", } export type PublicEnv = { diff --git a/shared/utils/csv.test.ts b/shared/utils/csv.test.ts new file mode 100644 index 0000000000..fc6079eafb --- /dev/null +++ b/shared/utils/csv.test.ts @@ -0,0 +1,32 @@ +import { CSVHelper } from "./csv"; + +describe("CSVHelper", () => { + describe("sanitizeValue", () => { + it("should leave a value unchanged", () => { + const value = "Hello, World!"; + const sanitizedValue = CSVHelper.sanitizeValue(value); + expect(sanitizedValue).toBe(value); + }); + + it("should escape formula trigger character", () => { + expect(CSVHelper.sanitizeValue("@1x2")).toBe(`'@1x2`); + expect(CSVHelper.sanitizeValue("=1x2")).toBe(`'=1x2`); + expect(CSVHelper.sanitizeValue("=1x2")).toBe(`'=1x2`); + expect(CSVHelper.sanitizeValue("≠1x2")).toBe(`'≠1x2`); + expect(CSVHelper.sanitizeValue("+1x2")).toBe(`'+1x2`); + expect(CSVHelper.sanitizeValue("∑1x2")).toBe(`'∑1x2`); + }); + + it("should remove control characters", () => { + expect(CSVHelper.sanitizeValue("\t1x2")).toBe(`1x2`); + }); + + it("should remove zero-width characters", () => { + expect(CSVHelper.sanitizeValue("\u200B1x2")).toBe(`1x2`); + }); + + it("should remove whitespace characters", () => { + expect(CSVHelper.sanitizeValue("\u200B1x2")).toBe(`1x2`); + }); + }); +}); diff --git a/shared/utils/csv.ts b/shared/utils/csv.ts new file mode 100644 index 0000000000..262fd7cb61 --- /dev/null +++ b/shared/utils/csv.ts @@ -0,0 +1,31 @@ +/* eslint-disable no-control-regex */ + +/** + * Helper class for CSV operations. + */ +export class CSVHelper { + /** + * Sanitizes a value for CSV output. + * + * @param value The value to sanitize. + * @returns The sanitized value. + */ + public static sanitizeValue(value: string): string { + if (!value) { + return ""; + } + + return ( + value + .toString() + // Formula triggers + .replace(/^([+\-=@∑√∏<><>≤≥=≠±÷×])/u, "'$1") + // Control characters + .replace(/[\u0000-\u001F\u007F-\u009F]/gu, "") + // Zero-width spaces + .replace(/[\u200B-\u200D\uFEFF]/g, "") + // Bidirectional control + .replace(/[\u202A-\u202E\u2066-\u2069]/g, "") + ); + } +} diff --git a/shared/utils/keyboard.ts b/shared/utils/keyboard.ts index c842888cfa..6b6d6d0ad2 100644 --- a/shared/utils/keyboard.ts +++ b/shared/utils/keyboard.ts @@ -1,13 +1,42 @@ import { isMac } from "./browser"; +/** + * Returns the display string for the alt key + */ export const altDisplay = isMac() ? "⌥" : "Alt"; +/** + * Returns the display string for the meta key + */ export const metaDisplay = isMac() ? "⌘" : "Ctrl"; +/** + * Returns the name of the modifier key + */ export const meta = isMac() ? "cmd" : "ctrl"; +/** + * Returns true if the given event is a modifier key (Cmd or Ctrl on Mac, Alt on + * @param event The event to check + * @returns True if the event is a modifier key + */ export function isModKey( event: KeyboardEvent | MouseEvent | React.KeyboardEvent ) { return isMac() ? event.metaKey : event.ctrlKey; } + +/** + * Returns a string with the appropriate display strings for the given key + * + * @param key The key to display + * @returns The display string for the key + */ +export function normalizeKeyDisplay(key: string) { + return key + .replace(/Meta/i, metaDisplay) + .replace(/Cmd/i, metaDisplay) + .replace(/Alt/i, altDisplay) + .replace(/Control/i, metaDisplay) + .replace(/Shift/i, "⇧"); +} diff --git a/shared/utils/parseCollectionSlug.test.ts b/shared/utils/parseCollectionSlug.test.ts new file mode 100644 index 0000000000..15eefd3ead --- /dev/null +++ b/shared/utils/parseCollectionSlug.test.ts @@ -0,0 +1,48 @@ +import sharedEnv from "../env"; +import parseCollectionSlug from "./parseCollectionSlug"; + +sharedEnv.URL = "https://app.outline.dev"; + +describe("#parseCollectionSlug", () => { + it("should work with fully qualified url", () => { + expect( + parseCollectionSlug("http://example.com/collection/test-ANzZwgv2RG") + ).toEqual("test-ANzZwgv2RG"); + }); + + it("should work with paths after document slug", () => { + expect( + parseCollectionSlug( + "http://mywiki.getoutline.com/collection/test-ANzZwgv2RG/recent" + ) + ).toEqual("test-ANzZwgv2RG"); + }); + + it("should work with hash", () => { + expect( + parseCollectionSlug( + "http://mywiki.getoutline.com/collection/test-ANzZwgv2RG#state" + ) + ).toEqual("test-ANzZwgv2RG"); + }); + + it("should work with subdomain qualified url", () => { + expect( + parseCollectionSlug( + "http://mywiki.getoutline.com/collection/test-ANzZwgv2RG" + ) + ).toEqual("test-ANzZwgv2RG"); + }); + + it("should work with path", () => { + expect(parseCollectionSlug("/collection/test-ANzZwgv2RG")).toEqual( + "test-ANzZwgv2RG" + ); + }); + + it("should work with path and hash", () => { + expect(parseCollectionSlug("/collection/test-ANzZwgv2RG#somehash")).toEqual( + "test-ANzZwgv2RG" + ); + }); +}); diff --git a/shared/utils/parseCollectionSlug.ts b/shared/utils/parseCollectionSlug.ts new file mode 100644 index 0000000000..9e3f484779 --- /dev/null +++ b/shared/utils/parseCollectionSlug.ts @@ -0,0 +1,25 @@ +import sharedEnv from "../env"; + +/** + * Parse the likely collection identifier from a given url. + * + * @param url The url to parse. + * @returns A collection identifier or undefined if not found. + */ +export default function parseCollectionSlug(url: string) { + let parsed; + + if (url[0] === "/") { + url = `${sharedEnv.URL}${url}`; + } + + try { + parsed = new URL(url).pathname; + } catch (err) { + return; + } + + const split = parsed.split("/"); + const indexOfCollection = split.indexOf("collection"); + return split[indexOfCollection + 1] ?? undefined; +} diff --git a/shared/utils/urls.ts b/shared/utils/urls.ts index fa700888ed..96d0d256c8 100644 --- a/shared/utils/urls.ts +++ b/shared/utils/urls.ts @@ -76,6 +76,21 @@ export function isDocumentUrl(url: string) { } } +/** + * Returns true if the given string is a link to a collection. + * + * @param options Parsing options. + * @returns True if a collection, false otherwise. + */ +export function isCollectionUrl(url: string) { + try { + const parsed = new URL(url, env.URL); + return isInternalUrl(url) && parsed.pathname.startsWith("/collection/"); + } catch (err) { + return false; + } +} + /** * Returns true if the given string is a url. * diff --git a/shared/validations.ts b/shared/validations.ts index d00e8898b1..a0359c9857 100644 --- a/shared/validations.ts +++ b/shared/validations.ts @@ -51,6 +51,11 @@ export const DocumentValidation = { maxStateLength: 1500 * 1024, }; +export const RevisionValidation = { + minNameLength: 1, + maxNameLength: 255, +}; + export const PinValidation = { /** The maximum number of pinned documents on an individual collection or home screen */ max: 8, diff --git a/yarn.lock b/yarn.lock index adf899b776..d5c0de5045 100644 --- a/yarn.lock +++ b/yarn.lock @@ -105,35 +105,35 @@ "@smithy/util-utf8" "^2.0.0" tslib "^2.6.2" -"@aws-sdk/client-s3@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-s3/-/client-s3-3.749.0.tgz#48d486b8baa87f20f2d3aceba82f947b3c95eef9" - integrity sha512-Xi+DaBeYRIa2d+1QTAlBdbRIc9j3+H+H5aMbxIrlyIYE2NOz+4fhIgpUYuF4ln63p9Fby5Wh36DhHJYyN4uE0w== +"@aws-sdk/client-s3@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-s3/-/client-s3-3.758.0.tgz#430708980e86584172ea8e3dc1450be50bd86818" + integrity sha512-f8SlhU9/93OC/WEI6xVJf/x/GoQFj9a/xXK6QCtr5fvCjfSLgMVFmKTiIl/tgtDRzxUDc8YS6EGtbHjJ3Y/atg== dependencies: "@aws-crypto/sha1-browser" "5.2.0" "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.749.0" - "@aws-sdk/credential-provider-node" "3.749.0" + "@aws-sdk/core" "3.758.0" + "@aws-sdk/credential-provider-node" "3.758.0" "@aws-sdk/middleware-bucket-endpoint" "3.734.0" "@aws-sdk/middleware-expect-continue" "3.734.0" - "@aws-sdk/middleware-flexible-checksums" "3.749.0" + "@aws-sdk/middleware-flexible-checksums" "3.758.0" "@aws-sdk/middleware-host-header" "3.734.0" "@aws-sdk/middleware-location-constraint" "3.734.0" "@aws-sdk/middleware-logger" "3.734.0" "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-sdk-s3" "3.749.0" + "@aws-sdk/middleware-sdk-s3" "3.758.0" "@aws-sdk/middleware-ssec" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.749.0" + "@aws-sdk/middleware-user-agent" "3.758.0" "@aws-sdk/region-config-resolver" "3.734.0" - "@aws-sdk/signature-v4-multi-region" "3.749.0" + "@aws-sdk/signature-v4-multi-region" "3.758.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.749.0" + "@aws-sdk/util-user-agent-node" "3.758.0" "@aws-sdk/xml-builder" "3.734.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.3" + "@smithy/core" "^3.1.5" "@smithy/eventstream-serde-browser" "^4.0.1" "@smithy/eventstream-serde-config-resolver" "^4.0.1" "@smithy/eventstream-serde-node" "^4.0.1" @@ -144,129 +144,129 @@ "@smithy/invalid-dependency" "^4.0.1" "@smithy/md5-js" "^4.0.1" "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.4" - "@smithy/middleware-retry" "^4.0.5" + "@smithy/middleware-endpoint" "^4.0.6" + "@smithy/middleware-retry" "^4.0.7" "@smithy/middleware-serde" "^4.0.2" "@smithy/middleware-stack" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" - "@smithy/node-http-handler" "^4.0.2" + "@smithy/node-http-handler" "^4.0.3" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.4" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" "@smithy/url-parser" "^4.0.1" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.5" - "@smithy/util-defaults-mode-node" "^4.0.5" + "@smithy/util-defaults-mode-browser" "^4.0.7" + "@smithy/util-defaults-mode-node" "^4.0.7" "@smithy/util-endpoints" "^3.0.1" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" - "@smithy/util-stream" "^4.1.0" + "@smithy/util-stream" "^4.1.2" "@smithy/util-utf8" "^4.0.0" "@smithy/util-waiter" "^4.0.2" tslib "^2.6.2" -"@aws-sdk/client-sso@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.749.0.tgz#533ca94a89409e73c677cbac4f57e6e98a4c92d0" - integrity sha512-ecmuDu8EPya1LDpGRtpgN7C9PHayDh8EaW37ZBKhuxA7cg099yvTFqsGngwRXbhNjKJ4oVa9OUe0EDnu60atYA== +"@aws-sdk/client-sso@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.758.0.tgz#59a249abdfa52125fbe98b1d59c11e4f08ca6527" + integrity sha512-BoGO6IIWrLyLxQG6txJw6RT2urmbtlwfggapNCrNPyYjlXpzTSJhBYjndg7TpDATFd0SXL0zm8y/tXsUXNkdYQ== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/middleware-host-header" "3.734.0" "@aws-sdk/middleware-logger" "3.734.0" "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.749.0" + "@aws-sdk/middleware-user-agent" "3.758.0" "@aws-sdk/region-config-resolver" "3.734.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.749.0" + "@aws-sdk/util-user-agent-node" "3.758.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.3" + "@smithy/core" "^3.1.5" "@smithy/fetch-http-handler" "^5.0.1" "@smithy/hash-node" "^4.0.1" "@smithy/invalid-dependency" "^4.0.1" "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.4" - "@smithy/middleware-retry" "^4.0.5" + "@smithy/middleware-endpoint" "^4.0.6" + "@smithy/middleware-retry" "^4.0.7" "@smithy/middleware-serde" "^4.0.2" "@smithy/middleware-stack" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" - "@smithy/node-http-handler" "^4.0.2" + "@smithy/node-http-handler" "^4.0.3" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.4" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" "@smithy/url-parser" "^4.0.1" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.5" - "@smithy/util-defaults-mode-node" "^4.0.5" + "@smithy/util-defaults-mode-browser" "^4.0.7" + "@smithy/util-defaults-mode-node" "^4.0.7" "@smithy/util-endpoints" "^3.0.1" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@aws-sdk/core@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.749.0.tgz#27bc3403cdbe17913b00b73f4de7a05f85dad408" - integrity sha512-w5Jj573+XKwrDNZUjUJDXL5upx+RCw64TLq3Zk8FVg9MsgkzAPorQ9qmzffi6os+PWngd3pFmD8q5y+Y35LpFQ== +"@aws-sdk/core@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.758.0.tgz#d13a4bb95de0460d5269cd5a40503c85b344b0b4" + integrity sha512-0RswbdR9jt/XKemaLNuxi2gGr4xGlHyGxkTdhSQzCyUe9A9OPCoLl3rIESRguQEech+oJnbHk/wuiwHqTuP9sg== dependencies: "@aws-sdk/types" "3.734.0" - "@smithy/core" "^3.1.3" + "@smithy/core" "^3.1.5" "@smithy/node-config-provider" "^4.0.1" "@smithy/property-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/signature-v4" "^5.0.1" - "@smithy/smithy-client" "^4.1.4" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" "@smithy/util-middleware" "^4.0.1" fast-xml-parser "4.4.1" tslib "^2.6.2" -"@aws-sdk/credential-provider-env@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.749.0.tgz#cc810d9b1f949f1bb8c37af1165cf515862d7003" - integrity sha512-bhB1ds5QzcSfmCTbjVessXy8xHJROota6wOhFtBsL1aZRQyNN2a9h2QS6xkxjmqVE3yHBsPz+OiSOeLn0kxm7Q== +"@aws-sdk/credential-provider-env@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.758.0.tgz#6193d1607eedd0929640ff64013f7787f29ff6a1" + integrity sha512-N27eFoRrO6MeUNumtNHDW9WOiwfd59LPXPqDrIa3kWL/s+fOKFHb9xIcF++bAwtcZnAxKkgpDCUP+INNZskE+w== dependencies: - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-http@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.749.0.tgz#d5efad8fce2a10e7d8b861075f2878e78f86c795" - integrity sha512-enFGT8uvETbE6+4bDA2aTOrA/83GrIVPpg2g2r7MwJb36jreXA3KDXaP/5jQsxyIZW70cnYNl/Cawdd4ZXs7CQ== +"@aws-sdk/credential-provider-http@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.758.0.tgz#f7b28d642f2ac933e81a7add08ce582b398c1635" + integrity sha512-Xt9/U8qUCiw1hihztWkNeIR+arg6P+yda10OuCHX6kFVx3auTlU7+hCqs3UxqniGU4dguHuftf3mRpi5/GJ33Q== dependencies: - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/node-http-handler" "^4.0.2" + "@smithy/node-http-handler" "^4.0.3" "@smithy/property-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.4" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" - "@smithy/util-stream" "^4.1.0" + "@smithy/util-stream" "^4.1.2" tslib "^2.6.2" -"@aws-sdk/credential-provider-ini@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.749.0.tgz#36db051f7a00236fef64fcb8705ed3c17eeaf480" - integrity sha512-OB4AGK61lQdoW2mTmaMBw8L+eBo7wF3YJZXwqFI7M2cQe9WtfuKGIxbYWMBMzoLvEtmsbzeppoZZUezooaIclg== +"@aws-sdk/credential-provider-ini@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.758.0.tgz#66457e71d8f5013e18111b25629c2367ed8ef116" + integrity sha512-cymSKMcP5d+OsgetoIZ5QCe1wnp2Q/tq+uIxVdh9MbfdBBEnl9Ecq6dH6VlYS89sp4QKuxHxkWXVnbXU3Q19Aw== dependencies: - "@aws-sdk/core" "3.749.0" - "@aws-sdk/credential-provider-env" "3.749.0" - "@aws-sdk/credential-provider-http" "3.749.0" - "@aws-sdk/credential-provider-process" "3.749.0" - "@aws-sdk/credential-provider-sso" "3.749.0" - "@aws-sdk/credential-provider-web-identity" "3.749.0" - "@aws-sdk/nested-clients" "3.749.0" + "@aws-sdk/core" "3.758.0" + "@aws-sdk/credential-provider-env" "3.758.0" + "@aws-sdk/credential-provider-http" "3.758.0" + "@aws-sdk/credential-provider-process" "3.758.0" + "@aws-sdk/credential-provider-sso" "3.758.0" + "@aws-sdk/credential-provider-web-identity" "3.758.0" + "@aws-sdk/nested-clients" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/credential-provider-imds" "^4.0.1" "@smithy/property-provider" "^4.0.1" @@ -274,17 +274,17 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-node@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.749.0.tgz#b21b241fede2125f99da2e6d652368a3f216a36b" - integrity sha512-1QGstZmGmgmY0rLSTAURlBJdR4s2PRYiZh6dS4HkzzQu7xVDWoCMD+2F7dolsNA8ChTNx2OvBW80n3O9QPICCg== +"@aws-sdk/credential-provider-node@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.758.0.tgz#b0a5d18e5d7f1b091fd891e2e8088578c0246cef" + integrity sha512-+DaMv63wiq7pJrhIQzZYMn4hSarKiizDoJRvyR7WGhnn0oQ/getX9Z0VNCV3i7lIFoLNTb7WMmQ9k7+z/uD5EQ== dependencies: - "@aws-sdk/credential-provider-env" "3.749.0" - "@aws-sdk/credential-provider-http" "3.749.0" - "@aws-sdk/credential-provider-ini" "3.749.0" - "@aws-sdk/credential-provider-process" "3.749.0" - "@aws-sdk/credential-provider-sso" "3.749.0" - "@aws-sdk/credential-provider-web-identity" "3.749.0" + "@aws-sdk/credential-provider-env" "3.758.0" + "@aws-sdk/credential-provider-http" "3.758.0" + "@aws-sdk/credential-provider-ini" "3.758.0" + "@aws-sdk/credential-provider-process" "3.758.0" + "@aws-sdk/credential-provider-sso" "3.758.0" + "@aws-sdk/credential-provider-web-identity" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/credential-provider-imds" "^4.0.1" "@smithy/property-provider" "^4.0.1" @@ -292,61 +292,61 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-process@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.749.0.tgz#ee83034d51779394217863616f75f888fdf8c459" - integrity sha512-C/cgg/AhRabybZRY9mJ6KDz8uqfasWKuFIFGzTpeb/MIDIL53ZqP61CspiQJTRvC4zlFGqvm43XefphfrBGGlQ== +"@aws-sdk/credential-provider-process@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.758.0.tgz#563bfae58049afd9968ca60f61672753834ff506" + integrity sha512-AzcY74QTPqcbXWVgjpPZ3HOmxQZYPROIBz2YINF0OQk0MhezDWV/O7Xec+K1+MPGQO3qS6EDrUUlnPLjsqieHA== dependencies: - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-sso@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.749.0.tgz#0d0a4a8c0db630efab8aeedaa994e4a939b5ab9d" - integrity sha512-bQNgWcYk10fYOvFwcLskYYVNLO3KMgmV1ip9ieapJb9JDg6bSBaXNjIDhdpK4biTOfrV+adtDO5EU93ogpmAWA== +"@aws-sdk/credential-provider-sso@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.758.0.tgz#5098c196a2dd38ba467aca052fc5193476b8a404" + integrity sha512-x0FYJqcOLUCv8GLLFDYMXRAQKGjoM+L0BG4BiHYZRDf24yQWFCAZsCQAYKo6XZYh2qznbsW6f//qpyJ5b0QVKQ== dependencies: - "@aws-sdk/client-sso" "3.749.0" - "@aws-sdk/core" "3.749.0" - "@aws-sdk/token-providers" "3.749.0" + "@aws-sdk/client-sso" "3.758.0" + "@aws-sdk/core" "3.758.0" + "@aws-sdk/token-providers" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-web-identity@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.749.0.tgz#1869159d76ae4a7604391fb98efe3073111617fb" - integrity sha512-jzHk6i4G4dnXL+L+qeILguDCiIhA1rNvJzB5lTts4R8OdmNkG12bGbYL8bL4O1b5qCimlo7HS0IZIby0pS7rcg== +"@aws-sdk/credential-provider-web-identity@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.758.0.tgz#ea88729ee0e5de0bf5f31929d60dfd148934b6a5" + integrity sha512-XGguXhBqiCXMXRxcfCAVPlMbm3VyJTou79r/3mxWddHWF0XbhaQiBIbUz6vobVTD25YQRbWSmSch7VA8kI5Lrw== dependencies: - "@aws-sdk/core" "3.749.0" - "@aws-sdk/nested-clients" "3.749.0" + "@aws-sdk/core" "3.758.0" + "@aws-sdk/nested-clients" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/crt-loader@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/crt-loader/-/crt-loader-3.749.0.tgz#8f6cb04b4dd026f3b7cbd17566b178043efff0e3" - integrity sha512-HLakuc/wWQbeG2VfHS6UHflV0HbTDnLQrooOu0RgQaGmmXxcyx26lPGMtxsAylSQ2+Rw1p55ViIal27pclf0gQ== +"@aws-sdk/crt-loader@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/crt-loader/-/crt-loader-3.758.0.tgz#ed9372fc887c34af4408e376832d8684316055fc" + integrity sha512-FnLhsDNK3il4rm6Egv7IEuOf8Oiyte5AVeoYkuqgmkCll58tRZCJXYNG/VE+Tket0s3joueVt7rwvHXnMxG0rg== dependencies: - "@aws-sdk/util-user-agent-node" "3.749.0" + "@aws-sdk/util-user-agent-node" "3.758.0" aws-crt "^1.24.0" tslib "^2.6.2" -"@aws-sdk/lib-storage@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/lib-storage/-/lib-storage-3.749.0.tgz#029a2dc2692aff4522f832fc06148bfa7323fb36" - integrity sha512-eYvsRWzukHeZ3k/hFt66or33JJg5zAm/jtstbxZaKRq/H1VfWkKh1QyQHu0UiOXZnjEkTFNJujwGME8JmAWpRg== +"@aws-sdk/lib-storage@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/lib-storage/-/lib-storage-3.758.0.tgz#6fe6a128e6a1bc062cc3e4bd920774545ce94933" + integrity sha512-g07y7rA505zaTJNPTmvW4zYJA3gThFDE1be7kBUKhTKAdwv8jVSbOiAy2AhClXs2evSUoQiFFtD1xWxLRXPPRQ== dependencies: "@smithy/abort-controller" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.4" - "@smithy/smithy-client" "^4.1.4" + "@smithy/middleware-endpoint" "^4.0.6" + "@smithy/smithy-client" "^4.1.6" buffer "5.6.0" events "3.3.0" stream-browserify "3.0.0" @@ -375,22 +375,22 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/middleware-flexible-checksums@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.749.0.tgz#264fe1621d23e1c8c4ff4b5bc1c7ad09dff2d979" - integrity sha512-LebOuHbO5BPeke0EB7I7aU7EK807XEyHeCQ3El4CztkGr7cY37PiYP5E0bsSs/4dlK534en/oD0dBA82gZ3xcg== +"@aws-sdk/middleware-flexible-checksums@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.758.0.tgz#50b753e5c83f4fe2ec3578a1768a68336ec86e3c" + integrity sha512-o8Rk71S08YTKLoSobucjnbj97OCGaXgpEDNKXpXaavUM5xLNoHCLSUPRCiEN86Ivqxg1n17Y2nSRhfbsveOXXA== dependencies: "@aws-crypto/crc32" "5.2.0" "@aws-crypto/crc32c" "5.2.0" "@aws-crypto/util" "5.2.0" - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/is-array-buffer" "^4.0.0" "@smithy/node-config-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" "@smithy/util-middleware" "^4.0.1" - "@smithy/util-stream" "^4.1.0" + "@smithy/util-stream" "^4.1.2" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -432,23 +432,23 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/middleware-sdk-s3@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.749.0.tgz#46da5e9cbf6dc5318f94e4383e7de7f859780e69" - integrity sha512-A7OaNkSFzI2vCRarSKEzoVejAyiLY1M1Z6PR3TE2woAPUUAgRv5UlFOXSymBx1Ya3HUQzWky7mnpnKAFyRGzSg== +"@aws-sdk/middleware-sdk-s3@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.758.0.tgz#75c224a49e47111df880b683debbd8f49f30ca24" + integrity sha512-6mJ2zyyHPYSV6bAcaFpsdoXZJeQlR1QgBnZZ6juY/+dcYiuyWCdyLUbGzSZSE7GTfx6i+9+QWFeoIMlWKgU63A== dependencies: - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-arn-parser" "3.723.0" - "@smithy/core" "^3.1.3" + "@smithy/core" "^3.1.5" "@smithy/node-config-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/signature-v4" "^5.0.1" - "@smithy/smithy-client" "^4.1.4" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" "@smithy/util-config-provider" "^4.0.0" "@smithy/util-middleware" "^4.0.1" - "@smithy/util-stream" "^4.1.0" + "@smithy/util-stream" "^4.1.2" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -461,57 +461,57 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/middleware-user-agent@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.749.0.tgz#05960c434c4129ccbcb45d2fd369c8d6c135738d" - integrity sha512-dNRkZtiM8OoGb/h2Fgrgvty9ltYEubzsD5FH+VN14RrluertLQMmqHrgvq7JoAXFf7MJy+uwhRu4V6pf1sZR/w== +"@aws-sdk/middleware-user-agent@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.758.0.tgz#f3c9d2025aa55fd400acb1d699c1fbd6b4f68f34" + integrity sha512-iNyehQXtQlj69JCgfaOssgZD4HeYGOwxcaKeG6F+40cwBjTAi0+Ph1yfDwqk2qiBPIRWJ/9l2LodZbxiBqgrwg== dependencies: - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-endpoints" "3.743.0" - "@smithy/core" "^3.1.3" + "@smithy/core" "^3.1.5" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/nested-clients@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.749.0.tgz#61006646246d916822fc82c6f7d637358bae83e3" - integrity sha512-5L8OuVojcVQAZw+iVXTaw88AZTlMw8fD51lB6spzbZdNLl6dd5Iz1JVJAOUl2mTAZXRiN5Q9VECwY1yMgWweAw== +"@aws-sdk/nested-clients@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.758.0.tgz#571c853602d38f5e8faa10178347e711e4f0e444" + integrity sha512-YZ5s7PSvyF3Mt2h1EQulCG93uybprNGbBkPmVuy/HMMfbFTt4iL3SbKjxqvOZelm86epFfj7pvK7FliI2WOEcg== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.749.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/middleware-host-header" "3.734.0" "@aws-sdk/middleware-logger" "3.734.0" "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.749.0" + "@aws-sdk/middleware-user-agent" "3.758.0" "@aws-sdk/region-config-resolver" "3.734.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.749.0" + "@aws-sdk/util-user-agent-node" "3.758.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.3" + "@smithy/core" "^3.1.5" "@smithy/fetch-http-handler" "^5.0.1" "@smithy/hash-node" "^4.0.1" "@smithy/invalid-dependency" "^4.0.1" "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.4" - "@smithy/middleware-retry" "^4.0.5" + "@smithy/middleware-endpoint" "^4.0.6" + "@smithy/middleware-retry" "^4.0.7" "@smithy/middleware-serde" "^4.0.2" "@smithy/middleware-stack" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" - "@smithy/node-http-handler" "^4.0.2" + "@smithy/node-http-handler" "^4.0.3" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.4" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" "@smithy/url-parser" "^4.0.1" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.5" - "@smithy/util-defaults-mode-node" "^4.0.5" + "@smithy/util-defaults-mode-browser" "^4.0.7" + "@smithy/util-defaults-mode-node" "^4.0.7" "@smithy/util-endpoints" "^3.0.1" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" @@ -530,42 +530,42 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@aws-sdk/s3-presigned-post@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/s3-presigned-post/-/s3-presigned-post-3.749.0.tgz#c752effdd6012cea25661b844a12189a65233357" - integrity sha512-CpIP8PhXLt/ooEqhaRsxF+gcOB83p+TkAqdqgxp2SJhsIvHqEwjjhrk31IZe1IXDMjpgbt6VvZ2lGJLAUBytNw== +"@aws-sdk/s3-presigned-post@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/s3-presigned-post/-/s3-presigned-post-3.758.0.tgz#d65319c780a251a688c1a4158d9329cce16f6f21" + integrity sha512-x+TWQ6xYD+/i3IlIM0nn1HGAKCmkG12VslKyJSrZAjwWQeVerj6LPVIJvYFcZbNU5lEPWCnlVqKw3S3NgG+N4Q== dependencies: - "@aws-sdk/client-s3" "3.749.0" + "@aws-sdk/client-s3" "3.758.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-format-url" "3.734.0" - "@smithy/middleware-endpoint" "^4.0.4" + "@smithy/middleware-endpoint" "^4.0.6" "@smithy/signature-v4" "^5.0.1" "@smithy/types" "^4.1.0" "@smithy/util-hex-encoding" "^4.0.0" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@aws-sdk/s3-request-presigner@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/s3-request-presigner/-/s3-request-presigner-3.749.0.tgz#f5ff8e2bd2372ee40f2008c5cb5cf705547381f9" - integrity sha512-ZUBBJvKGXNuLTsHymBjGsr6WoouRVojURouAc8ueePWxTCt0u/mOOP0KRFVfwmM166YMr+QWr/ym4bJ8aHLAkA== +"@aws-sdk/s3-request-presigner@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/s3-request-presigner/-/s3-request-presigner-3.758.0.tgz#e7bbf9251927952584739b5e45464a9f4bdf0739" + integrity sha512-dVyItwu/J1InfJBbCPpHRV9jrsBfI7L0RlDGyS3x/xqBwnm5qpvgNZQasQiyqIl+WJB4f5rZRZHgHuwftqINbA== dependencies: - "@aws-sdk/signature-v4-multi-region" "3.749.0" + "@aws-sdk/signature-v4-multi-region" "3.758.0" "@aws-sdk/types" "3.734.0" "@aws-sdk/util-format-url" "3.734.0" - "@smithy/middleware-endpoint" "^4.0.4" + "@smithy/middleware-endpoint" "^4.0.6" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.4" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/signature-v4-crt@^3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-crt/-/signature-v4-crt-3.749.0.tgz#0f70b8c2e648377eff6cf6fb5e31852e419b5578" - integrity sha512-h1cOkh7q8Q26Fx4CrxZEGORtZM0J2J33zTOQ97Rl/CL0Wyp9tGthC7lb7205iJcaZXQ40YL2qzqPdUzlAldCtg== +"@aws-sdk/signature-v4-crt@^3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-crt/-/signature-v4-crt-3.758.0.tgz#a28b376a7d69019a3cb8e1afa11bfbeef9285662" + integrity sha512-DioxfJ8+KenOwydElJvWwMxw0IN8rTD3lbV3AbURwIp+5FBDz8F5ykMO1o1YUQvrGuUNtala8lX3ScE2L7tw9w== dependencies: - "@aws-sdk/crt-loader" "3.749.0" - "@aws-sdk/signature-v4-multi-region" "3.749.0" + "@aws-sdk/crt-loader" "3.758.0" + "@aws-sdk/signature-v4-multi-region" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/querystring-parser" "^4.0.1" "@smithy/signature-v4" "^5.0.1" @@ -573,24 +573,24 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@aws-sdk/signature-v4-multi-region@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.749.0.tgz#20d6868de7ce3cb0f16369f19836b6b119a7e1d8" - integrity sha512-8ZR3vnJn1Tgg/qpalkyQMUILzZhw6XV1aCDxYMevqHYu6/f0ujvytJjiUd+j92sfxgN781f6bWpt/jVY0jarxg== +"@aws-sdk/signature-v4-multi-region@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.758.0.tgz#2ccd34e90120dbf6f29e4f621574efd02e463b79" + integrity sha512-0RPCo8fYJcrenJ6bRtiUbFOSgQ1CX/GpvwtLU2Fam1tS9h2klKK8d74caeV6A1mIUvBU7bhyQ0wMGlwMtn3EYw== dependencies: - "@aws-sdk/middleware-sdk-s3" "3.749.0" + "@aws-sdk/middleware-sdk-s3" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/protocol-http" "^5.0.1" "@smithy/signature-v4" "^5.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/token-providers@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.749.0.tgz#a679c011edca66a3f4fe4ef5a051204c2ddeba9a" - integrity sha512-s3ExVWoNZan6U7ljMqjiHq3bOe4EqL+U+cVPwqNxAsMaJpGyCiA8VQFlXNGg0EPAFbz/0DVBcozYht6/vyH3sg== +"@aws-sdk/token-providers@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.758.0.tgz#fcab3885ba2b222ff8bb7817448d3c786dc2ddf9" + integrity sha512-ckptN1tNrIfQUaGWm/ayW1ddG+imbKN7HHhjFdS4VfItsP0QQOB0+Ov+tpgb4MoNR4JaUghMIVStjIeHN2ks1w== dependencies: - "@aws-sdk/nested-clients" "3.749.0" + "@aws-sdk/nested-clients" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/property-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" @@ -649,12 +649,12 @@ bowser "^2.11.0" tslib "^2.6.2" -"@aws-sdk/util-user-agent-node@3.749.0": - version "3.749.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.749.0.tgz#4b02afd8ce9170f799bc8fa0a7037c1af9a24d87" - integrity sha512-uBzolGGrwvZKhpYlGIy9tw6gRdqVs2zyjjXUiifdgbr3WiQXJe8sE1KhLjzyN/VOPcZB0rY34ybqiKEDOymOeQ== +"@aws-sdk/util-user-agent-node@3.758.0": + version "3.758.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.758.0.tgz#604ccb02a5d11c9cedaea0bea279641ea9d4194d" + integrity sha512-A5EZw85V6WhoKMV2hbuFRvb9NPlxEErb4HPO6/SPXYY4QrjprIzScHxikqcWv1w4J3apB1wto9LPU3IMsYtfrw== dependencies: - "@aws-sdk/middleware-user-agent" "3.749.0" + "@aws-sdk/middleware-user-agent" "3.758.0" "@aws-sdk/types" "3.734.0" "@smithy/node-config-provider" "^4.0.1" "@smithy/types" "^4.1.0" @@ -890,12 +890,12 @@ "@babel/types" "^7.25.9" "@babel/helpers@^7.26.9": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.9.tgz#28f3fb45252fc88ef2dc547c8a911c255fc9fef6" - integrity sha512-Mz/4+y8udxBKdmzt/UjPACs4G3j5SshJJEFFKxlCGPydG4JAHXxjWjAwjd09tf6oINvl1VfMJo+nB7H2YKQ0dA== + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.10.tgz#6baea3cd62ec2d0c1068778d63cb1314f6637384" + integrity sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g== dependencies: "@babel/template" "^7.26.9" - "@babel/types" "^7.26.9" + "@babel/types" "^7.26.10" "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.26.9", "@babel/parser@^7.7.0": version "7.26.9" @@ -1648,10 +1648,10 @@ "@babel/plugin-transform-modules-commonjs" "^7.25.9" "@babel/plugin-transform-typescript" "^7.25.9" -"@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.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" - integrity sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA== +"@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.17.8", "@babel/runtime@^7.20.6", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.6.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.10.tgz#a07b4d8fa27af131a633d7b3524db803eb4764c2" + integrity sha512-2WJMeRQPHKSPemqk/awGrAiuFfzBmOIPXKizAsVhWH9YJqLZ0H+HS4c8loHGgW6utJ3E/ejXQUsiGaQy2NZ9Fw== dependencies: regenerator-runtime "^0.14.0" @@ -1677,10 +1677,10 @@ debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.25.9", "@babel/types@^7.26.9", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.9.tgz#08b43dec79ee8e682c2ac631c010bdcac54a21ce" - integrity sha512-Y3IR1cRnOxOCDvMmNiym7XpXQ93iGDDPHx+Zj+NM+rg0fBaShfQLkg+hKPaZCEvg5N/LeCo4+Rj/i3FuJsIQaw== +"@babel/types@^7.0.0", "@babel/types@^7.25.9", "@babel/types@^7.26.10", "@babel/types@^7.26.9", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.10.tgz#396382f6335bd4feb65741eacfc808218f859259" + integrity sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ== dependencies: "@babel/helper-string-parser" "^7.25.9" "@babel/helper-validator-identifier" "^7.25.9" @@ -1700,33 +1700,34 @@ resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-7.1.0.tgz#048e48aab4f1460e3121e22aa62459d16653dc85" integrity sha512-o+UlMLt49RvtCASlOMW0AkHnabN9wR9rwCCherxO0yG4Npy34GkvrAqdXQvrhNs+jh+gkK8gB8Lf05qL/O7KWg== -"@bull-board/api@4.12.2", "@bull-board/api@^4.2.2": - version "4.12.2" - resolved "https://registry.yarnpkg.com/@bull-board/api/-/api-4.12.2.tgz#d025de77ccb1b454c583184b27bc939d2e845838" - integrity "sha1-0CXed8yxtFTFgxhLJ7yTnS6EWDg= sha512-efF8K1pvfEEft2ELQwCBe/a225vHufCjM2hfcyvmIG/SUX6TlKQFUFZ1+KV0wenD9wxvUVb5wxUu6on+HrZiVg==" +"@bull-board/api@6.7.10", "@bull-board/api@^6.7.10": + version "6.7.10" + resolved "https://registry.yarnpkg.com/@bull-board/api/-/api-6.7.10.tgz#61537228200eb6830f7a437e2d389f9f05d202a4" + integrity sha512-FY2k81Pei+fW7UK85mEjV6qGvY7uWn2sB4oNy2K+dsHZQ/sbpXMlcaJZEl+65sEmi9oFF/ush3DvmeSUCWbaCQ== dependencies: redis-info "^3.0.8" -"@bull-board/koa@^4.12.2": - version "4.12.2" - resolved "https://registry.yarnpkg.com/@bull-board/koa/-/koa-4.12.2.tgz#a6eb61f2fd265b408e4cf0fb9dd94e89d67e2cf1" - integrity "sha1-puth8v0mW0COTPD7ndlOidZ+LPE= sha512-A7NQwz85YUpxchAQwJNXCoNE3h8Iy6NagxernARfx1FRk7pJkJyV8Yrgfm07X2y7aSqBdirQ+0G3c5fJ21K++Q==" +"@bull-board/koa@^6.7.10": + version "6.7.10" + resolved "https://registry.yarnpkg.com/@bull-board/koa/-/koa-6.7.10.tgz#93b6a475082e877f05a263341c725e60c8ea1d12" + integrity sha512-065Vsr+Npk5Bh0B29ogOLLjEPCtqEyAnqTZYOMHyc2pvBRGa1G1KoM6lUL/dVdY6bnLQD2hVdPN8Fa7gfa7Gbg== dependencies: - "@bull-board/api" "4.12.2" - "@bull-board/ui" "4.12.2" - ejs "^3.1.7" - koa "^2.13.1" + "@bull-board/api" "6.7.10" + "@bull-board/ui" "6.7.10" + "@koa/bodyparser" "^5.1.1" + "@ladjs/koa-views" "^9.0.0" + ejs "^3.1.10" + koa "^2.15.3" koa-mount "^4.0.0" - koa-router "^10.0.0" + koa-router "^13.0.1" koa-static "^5.0.0" - koa-views "^7.0.1" -"@bull-board/ui@4.12.2": - version "4.12.2" - resolved "https://registry.yarnpkg.com/@bull-board/ui/-/ui-4.12.2.tgz#0002ca3b095109bc83b78e186c8c6c87f65f68b1" - integrity "sha1-AALKOwlRCbyDt44YbIxsh/ZfaLE= sha512-jB/OOEhg+DUL6ssmtQYTK+iYd3iy68bbozOp+q2xVUC4V7zeFmYF25sIApYFTNfbjuUMesAVOiX4u0gNEo/J7w==" +"@bull-board/ui@6.7.10": + version "6.7.10" + resolved "https://registry.yarnpkg.com/@bull-board/ui/-/ui-6.7.10.tgz#66146cd49f28d3c00361f75371879171a6edd7fa" + integrity sha512-FRMCU7t1K0XKxFIiooBG8es0otK3fyW4BwCz5rfMwx7gpkHhYcp2qxI91vqazTWFXdScUpiWdDwCV7pJcRV+Gg== dependencies: - "@bull-board/api" "4.12.2" + "@bull-board/api" "6.7.10" "@bundle-stats/plugin-webpack-filter@4.17.0": version "4.17.0" @@ -1843,40 +1844,45 @@ pako "^2.0.4" url-parse "^1.4.3" -"@datadog/native-appsec@7.1.1": - version "7.1.1" - resolved "https://registry.yarnpkg.com/@datadog/native-appsec/-/native-appsec-7.1.1.tgz#eee96ae4c309e5b811611e968668f6744452c584" - integrity sha512-1XVrCY4g1ArN79SQANMtiIkaxKSPfgdAGv0VAM4Pz+NQuxKfl+2xQPXjQPm87LI1KQIO6MU6qzv3sUUSesb9lA== +"@datadog/libdatadog@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@datadog/libdatadog/-/libdatadog-0.5.0.tgz#0ef2a2a76bb9505a0e7e5bc9be1415b467dbf368" + integrity sha512-YvLUVOhYVjJssm0f22/RnDQMc7ZZt/w1bA0nty1vvjyaDz5EWaHfWaaV4GYpCt5MRvnGjCBxIwwbRivmGseKeQ== + +"@datadog/native-appsec@8.4.0": + version "8.4.0" + resolved "https://registry.yarnpkg.com/@datadog/native-appsec/-/native-appsec-8.4.0.tgz#5c44d949ff8f40a94c334554db79c1c470653bae" + integrity sha512-LC47AnpVLpQFEUOP/nIIs+i0wLb8XYO+et3ACaJlHa2YJM3asR4KZTqQjDQNy08PTAUbVvYWKwfSR1qVsU/BeA== dependencies: node-gyp-build "^3.9.0" -"@datadog/native-iast-rewriter@2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@datadog/native-iast-rewriter/-/native-iast-rewriter-2.3.1.tgz#f9d6d858df88f7a8b6e38f0c07e46fca5394da72" - integrity sha512-3pmt5G1Ai/+MPyxP7wBerIu/zH/BnAHxEu/EAMr+77IMpK5m7THPDUoWrPRCWcgFBfn0pK5DR7gRItG0wX3e0g== +"@datadog/native-iast-rewriter@2.8.0": + version "2.8.0" + resolved "https://registry.yarnpkg.com/@datadog/native-iast-rewriter/-/native-iast-rewriter-2.8.0.tgz#8a7eddf5e33266643afcdfb920ff5ccb30e1894a" + integrity sha512-DKmtvlmCld9RIJwDcPKWNkKYWYQyiuOrOtynmBppJiUv/yfCOuZtsQV4Zepj40H33sLiQyi5ct6dbWl53vxqkA== dependencies: lru-cache "^7.14.0" node-gyp-build "^4.5.0" -"@datadog/native-iast-taint-tracking@2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@datadog/native-iast-taint-tracking/-/native-iast-taint-tracking-2.1.0.tgz#65e0350f04064a991e3a980daf1b68147069c9f2" - integrity sha512-DjZ6itJcjLrTdKk2vP96hak2xS0ABd0NIB8poZG3OBQU5efkzu8JOQoxbIKMklG/0P2zh7EquvGP88PdVXT9aA== +"@datadog/native-iast-taint-tracking@3.3.0": + version "3.3.0" + resolved "https://registry.yarnpkg.com/@datadog/native-iast-taint-tracking/-/native-iast-taint-tracking-3.3.0.tgz#5a9c87e07376e7c5a4b4d4985f140a60388eee00" + integrity sha512-OzmjOncer199ATSYeCAwSACCRyQimo77LKadSHDUcxa/n9FYU+2U/bYQTYsK3vquSA2E47EbSVq9rytrlTdvnA== dependencies: node-gyp-build "^3.9.0" -"@datadog/native-metrics@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@datadog/native-metrics/-/native-metrics-2.0.0.tgz#65bf03313ee419956361e097551db36173e85712" - integrity "sha1-Zb8DMT7kGZVjYeCXVR2zYXPoVxI= sha512-YklGVwUtmKGYqFf1MNZuOHvTYdKuR4+Af1XkWcMD8BwOAjxmd9Z+97328rCOY8TFUJzlGUPaXzB8j2qgG/BMwA==" +"@datadog/native-metrics@^3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@datadog/native-metrics/-/native-metrics-3.1.0.tgz#c2378841accd9fdd6866d0e49bdf6e3d76e79f22" + integrity sha512-yOBi4x0OQRaGNPZ2bx9TGvDIgEdQ8fkudLTFAe7gEM1nAlvFmbE5YfpH8WenEtTSEBwojSau06m2q7axtEEmCg== dependencies: node-addon-api "^6.1.0" node-gyp-build "^3.9.0" -"@datadog/pprof@5.2.0": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.2.0.tgz#a6c2779335b4f0fd51754e4de193e98591de387e" - integrity sha512-pSwLARpNLAIV1JttxXOBRKTn/NQYXDy1PJaV458YFDdAYxnBqpsYTat3/nX+8V5GoN4SfdHDci3zqXM+Ym66gQ== +"@datadog/pprof@5.5.1": + version "5.5.1" + resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.5.1.tgz#fba8124b6ad537e29326f5f15ed6e64b7a009e96" + integrity sha512-3pZVYqc5YkZJOj9Rc8kQ/wG4qlygcnnwFU/w0QKX6dEdJh+1+dWniuUu+GSEjy/H0jc14yhdT2eJJf/F2AnHNw== dependencies: delay "^5.0.0" node-gyp-build "<4.0" @@ -1965,225 +1971,230 @@ resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed" integrity "sha1-dyESkcGQCnALinjPr9oxYNdpSe0= sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" +"@esbuild/aix-ppc64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz#a70f4ac11c6a1dfc18b8bbb13284155d933b9537" + integrity sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g== + "@esbuild/aix-ppc64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz#c7184a326533fcdf1b8ee0733e21c713b975575f" integrity sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ== -"@esbuild/android-arm64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.17.11.tgz#52c3e6cabc19c5e4c1c0c01cb58f0442338e1c14" - integrity "sha1-UsPmyrwZxeTBwMActY8EQjOOHBQ= sha512-QnK4d/zhVTuV4/pRM4HUjcsbl43POALU2zvBynmrrqZt9LPcLA3x1fTZPBg2RRguBQnJcnU059yKr+bydkntjg==" +"@esbuild/android-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz#db1c9202a5bc92ea04c7b6840f1bbe09ebf9e6b9" + integrity sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg== "@esbuild/android-arm64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz#09d9b4357780da9ea3a7dfb833a1f1ff439b4052" integrity sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A== -"@esbuild/android-arm@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.17.11.tgz#f3fc768235aecbeb840d0049fdf13cd28592105f" - integrity "sha1-8/x2gjWuy+uEDQBJ/fE80oWSEF8= sha512-CdyX6sRVh1NzFCsf5vw3kULwlAhfy9wVt8SZlrhQ7eL2qBjGbFhRBWkkAzuZm9IIEOCKJw4DXA6R85g+qc8RDw==" +"@esbuild/android-arm@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.20.2.tgz#3b488c49aee9d491c2c8f98a909b785870d6e995" + integrity sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w== "@esbuild/android-arm@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz#9b04384fb771926dfa6d7ad04324ecb2ab9b2e28" integrity sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg== -"@esbuild/android-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.17.11.tgz#443ed47771a7e917e4282469ba350d117473550c" - integrity "sha1-RD7Ud3Gn6RfkKCRpujUNEXRzVQw= sha512-3PL3HKtsDIXGQcSCKtWD/dy+mgc4p2Tvo2qKgKHj9Yf+eniwFnuoQ0OUhlSfAEpKAFzF9N21Nwgnap6zy3L3MQ==" +"@esbuild/android-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.20.2.tgz#3b1628029e5576249d2b2d766696e50768449f98" + integrity sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg== "@esbuild/android-x64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz#29918ec2db754cedcb6c1b04de8cd6547af6461e" integrity sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA== -"@esbuild/darwin-arm64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.17.11.tgz#0e8c78d94d5759a48521dbfd83189d2ed3499a16" - integrity "sha1-Dox42U1XWaSFIdv9gxidLtNJmhY= sha512-pJ950bNKgzhkGNO3Z9TeHzIFtEyC2GDQL3wxkMApDEghYx5Qers84UTNc1bAxWbRkuJOgmOha5V0WUeh8G+YGw==" +"@esbuild/darwin-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz#6e8517a045ddd86ae30c6608c8475ebc0c4000bb" + integrity sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA== "@esbuild/darwin-arm64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz#e495b539660e51690f3928af50a76fb0a6ccff2a" integrity sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ== -"@esbuild/darwin-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.17.11.tgz#2405cfdf70eb961c7cf973463ca7263dc2004c88" - integrity "sha1-JAXP33Drlhx8+XNGPKcmPcIATIg= sha512-iB0dQkIHXyczK3BZtzw1tqegf0F0Ab5texX2TvMQjiJIWXAfM4FQl7D909YfXWnB92OQz4ivBYQ2RlxBJrMJOw==" +"@esbuild/darwin-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz#90ed098e1f9dd8a9381695b207e1cff45540a0d0" + integrity sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA== "@esbuild/darwin-x64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz#c13838fa57372839abdddc91d71542ceea2e1e22" integrity sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw== -"@esbuild/freebsd-arm64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.11.tgz#d5138e873e15f87bd4564c024dfa00ef37e623fd" - integrity "sha1-1ROOhz4V+HvUVkwCTfoA7zfmI/0= sha512-7EFzUADmI1jCHeDRGKgbnF5sDIceZsQGapoO6dmw7r/ZBEKX7CCDnIz8m9yEclzr7mFsd+DyasHzpjfJnmBB1Q==" +"@esbuild/freebsd-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz#d71502d1ee89a1130327e890364666c760a2a911" + integrity sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw== "@esbuild/freebsd-arm64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz#646b989aa20bf89fd071dd5dbfad69a3542e550e" integrity sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g== -"@esbuild/freebsd-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.17.11.tgz#e850b58b8fabf8e9ef0e125af3c25229ad2d6c38" - integrity "sha1-6FC1i4+r+OnvDhJa88JSKa0tbDg= sha512-iPgenptC8i8pdvkHQvXJFzc1eVMR7W2lBPrTE6GbhR54sLcF42mk3zBOjKPOodezzuAz/KSu8CPyFSjcBMkE9g==" +"@esbuild/freebsd-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz#aa5ea58d9c1dd9af688b8b6f63ef0d3d60cea53c" + integrity sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw== "@esbuild/freebsd-x64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz#aa615cfc80af954d3458906e38ca22c18cf5c261" integrity sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ== -"@esbuild/linux-arm64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.17.11.tgz#2bfb93d0809ec2357c12ebb27736b750c9ae0aa5" - integrity "sha1-K/uT0ICewjV8Euuydza3UMmuCqU= sha512-Qxth3gsWWGKz2/qG2d5DsW/57SeA2AmpSMhdg9TSB5Svn2KDob3qxfQSkdnWjSd42kqoxIPy3EJFs+6w1+6Qjg==" +"@esbuild/linux-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz#055b63725df678379b0f6db9d0fa85463755b2e5" + integrity sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A== "@esbuild/linux-arm64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz#70ac6fa14f5cb7e1f7f887bcffb680ad09922b5b" integrity sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q== -"@esbuild/linux-arm@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.17.11.tgz#e56fb3b76828317a704f4a167c5bd790fe5314e7" - integrity "sha1-5W+zt2goMXpwT0oWfFvXkP5TFOc= sha512-M9iK/d4lgZH0U5M1R2p2gqhPV/7JPJcRz+8O8GBKVgqndTzydQ7B2XGDbxtbvFkvIs53uXTobOhv+RyaqhUiMg==" +"@esbuild/linux-arm@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz#76b3b98cb1f87936fbc37f073efabad49dcd889c" + integrity sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg== "@esbuild/linux-arm@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz#fc6fd11a8aca56c1f6f3894f2bea0479f8f626b9" integrity sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA== -"@esbuild/linux-ia32@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.17.11.tgz#59fa1c49b271793d14eb5effc757e8c0d0cb2cab" - integrity "sha1-WfocSbJxeT0U617/x1fowNDLLKs= sha512-dB1nGaVWtUlb/rRDHmuDQhfqazWE0LMro/AIbT2lWM3CDMHJNpLckH+gCddQyhhcLac2OYw69ikUMO34JLt3wA==" +"@esbuild/linux-ia32@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz#c0e5e787c285264e5dfc7a79f04b8b4eefdad7fa" + integrity sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig== "@esbuild/linux-ia32@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz#3271f53b3f93e3d093d518d1649d6d68d346ede2" integrity sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg== -"@esbuild/linux-loong64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.17.11.tgz#89575bc189099c03a36daa54f3f481780c7fd502" - integrity "sha1-iVdbwYkJnAOjbapU8/SBeAx/1QI= sha512-aCWlq70Q7Nc9WDnormntGS1ar6ZFvUpqr8gXtO+HRejRYPweAFQN615PcgaSJkZjhHp61+MNLhzyVALSF2/Q0g==" +"@esbuild/linux-loong64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz#a6184e62bd7cdc63e0c0448b83801001653219c5" + integrity sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ== "@esbuild/linux-loong64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz#ed62e04238c57026aea831c5a130b73c0f9f26df" integrity sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg== -"@esbuild/linux-mips64el@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.17.11.tgz#0e18ca039dc7e4645efd8edc1b10952933eb6b1b" - integrity "sha1-DhjKA53H5GRe/Y7cGxCVKTPraxs= sha512-cGeGNdQxqY8qJwlYH1BP6rjIIiEcrM05H7k3tR7WxOLmD1ZxRMd6/QIOWMb8mD2s2YJFNRuNQ+wjMhgEL2oCEw==" +"@esbuild/linux-mips64el@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz#d08e39ce86f45ef8fc88549d29c62b8acf5649aa" + integrity sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA== "@esbuild/linux-mips64el@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz#e79b8eb48bf3b106fadec1ac8240fb97b4e64cbe" integrity sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg== -"@esbuild/linux-ppc64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.17.11.tgz#2d152cb3a253afb8c100a165ad132dc96f36cb11" - integrity "sha1-LRUss6JTr7jBAKFlrRMtyW82yxE= sha512-BdlziJQPW/bNe0E8eYsHB40mYOluS+jULPCjlWiHzDgr+ZBRXPtgMV1nkLEGdpjrwgmtkZHEGEPaKdS/8faLDA==" +"@esbuild/linux-ppc64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz#8d252f0b7756ffd6d1cbde5ea67ff8fd20437f20" + integrity sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg== "@esbuild/linux-ppc64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz#5f2203860a143b9919d383ef7573521fb154c3e4" integrity sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w== -"@esbuild/linux-riscv64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.17.11.tgz#c6ac494a81221d53d65b33e665c7df1747952d3c" - integrity "sha1-xqxJSoEiHVPWWzPmZcffF0eVLTw= sha512-MDLwQbtF+83oJCI1Cixn68Et/ME6gelmhssPebC40RdJaect+IM+l7o/CuG0ZlDs6tZTEIoxUe53H3GmMn8oMA==" +"@esbuild/linux-riscv64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz#19f6dcdb14409dae607f66ca1181dd4e9db81300" + integrity sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg== "@esbuild/linux-riscv64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz#07bcafd99322d5af62f618cb9e6a9b7f4bb825dc" integrity sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA== -"@esbuild/linux-s390x@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.17.11.tgz#4bad33894bc7415cea4be8fa90fe456226a424ad" - integrity "sha1-S60ziUvHQVzqS+j6kP5FYiakJK0= sha512-4N5EMESvws0Ozr2J94VoUD8HIRi7X0uvUv4c0wpTHZyZY9qpaaN7THjosdiW56irQ4qnJ6Lsc+i+5zGWnyqWqQ==" +"@esbuild/linux-s390x@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz#3c830c90f1a5d7dd1473d5595ea4ebb920988685" + integrity sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ== "@esbuild/linux-s390x@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz#b7ccf686751d6a3e44b8627ababc8be3ef62d8de" integrity sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A== -"@esbuild/linux-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.17.11.tgz#903fda743459f530a16a6c6ee8d2c0f6c1a12fc7" - integrity "sha1-kD/adDRZ9TChamxu6NLA9sGhL8c= sha512-rM/v8UlluxpytFSmVdbCe1yyKQd/e+FmIJE2oPJvbBo+D0XVWi1y/NQ4iTNx+436WmDHQBjVLrbnAQLQ6U7wlw==" +"@esbuild/linux-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz#86eca35203afc0d9de0694c64ec0ab0a378f6fff" + integrity sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw== "@esbuild/linux-x64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz#6d8f0c768e070e64309af8004bb94e68ab2bb3b0" integrity sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ== -"@esbuild/netbsd-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.17.11.tgz#b589239fe7d9b16ee03c5e191f3f5b640f1518a1" - integrity "sha1-tYkjn+fZsW7gPF4ZHz9bZA8VGKE= sha512-4WaAhuz5f91h3/g43VBGdto1Q+X7VEZfpcWGtOFXnggEuLvjV+cP6DyLRU15IjiU9fKLLk41OoJfBFN5DhPvag==" +"@esbuild/netbsd-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz#e771c8eb0e0f6e1877ffd4220036b98aed5915e6" + integrity sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ== "@esbuild/netbsd-x64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz#bbe430f60d378ecb88decb219c602667387a6047" integrity sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg== -"@esbuild/openbsd-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.17.11.tgz#b355019754116bef39ec688f8fd2fe6471b9779b" - integrity "sha1-s1UBl1QRa+857GiPj9L+ZHG5d5s= sha512-UBj135Nx4FpnvtE+C8TWGp98oUgBcmNmdYgl5ToKc0mBHxVVqVE7FUS5/ELMImOp205qDAittL6Ezhasc2Ev/w==" +"@esbuild/openbsd-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz#9a795ae4b4e37e674f0f4d716f3e226dd7c39baf" + integrity sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ== "@esbuild/openbsd-x64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz#99d1cf2937279560d2104821f5ccce220cb2af70" integrity sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow== -"@esbuild/sunos-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.17.11.tgz#2ea47fb592e68406e5025a7696dc714fc6a115dc" - integrity "sha1-LqR/tZLmhAblAlp2ltxxT8ahFdw= sha512-1/gxTifDC9aXbV2xOfCbOceh5AlIidUrPsMpivgzo8P8zUtczlq1ncFpeN1ZyQJ9lVs2hILy1PG5KPp+w8QPPg==" +"@esbuild/sunos-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz#7df23b61a497b8ac189def6e25a95673caedb03f" + integrity sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w== "@esbuild/sunos-x64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz#08741512c10d529566baba837b4fe052c8f3487b" integrity sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg== -"@esbuild/win32-arm64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.17.11.tgz#47e6fdab17c4c52e6e0d606dd9cb843b29826325" - integrity "sha1-R+b9qxfExS5uDWBt2cuEOymCYyU= sha512-vtSfyx5yRdpiOW9yp6Ax0zyNOv9HjOAw8WaZg3dF5djEHKKm3UnoohftVvIJtRh0Ec7Hso0RIdTqZvPXJ7FdvQ==" +"@esbuild/win32-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz#f1ae5abf9ca052ae11c1bc806fb4c0f519bacf90" + integrity sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ== "@esbuild/win32-arm64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz#675b7385398411240735016144ab2e99a60fc75d" integrity sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A== -"@esbuild/win32-ia32@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.17.11.tgz#a97273aa3164c8d8f501899f55cc75a4a79599a3" - integrity "sha1-qXJzqjFkyNj1AYmfVcx1pKeVmaM= sha512-GFPSLEGQr4wHFTiIUJQrnJKZhZjjq4Sphf+mM76nQR6WkQn73vm7IsacmBRPkALfpOCHsopSvLgqdd4iUW2mYw==" +"@esbuild/win32-ia32@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz#241fe62c34d8e8461cd708277813e1d0ba55ce23" + integrity sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ== "@esbuild/win32-ia32@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz#1bfc3ce98aa6ca9a0969e4d2af72144c59c1193b" integrity sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA== -"@esbuild/win32-x64@0.17.11": - version "0.17.11" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.11.tgz#9be796d93ae27b636da32d960899a4912bca27a1" - integrity "sha1-m+eW2Trie2Ntoy2WCJmkkSvKJ6E= sha512-N9vXqLP3eRL8BqSy8yn4Y98cZI2pZ8fyuHx6lKjiG2WABpT2l01TXdzq5Ma2ZUBzfB7tx5dXVhge8X9u0S70ZQ==" +"@esbuild/win32-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz#9c907b21e30a52db959ba4f80bb01a0cc403d5cc" + integrity sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ== "@esbuild/win32-x64@0.21.5": version "0.21.5" @@ -2345,6 +2356,13 @@ dependencies: warning "^4.0.3" +"@gulpjs/to-absolute-glob@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@gulpjs/to-absolute-glob/-/to-absolute-glob-4.0.0.tgz#1fc2460d3953e1d9b9f2dfdb4bcc99da4710c021" + integrity sha512-kjotm7XJrJ6v+7knhPaRgaT6q8F8K2jiafwYdNHLzmV0uGLuZY43FK6smNSHUPrhq5kX2slCUy+RGG/xGqmIKA== + dependencies: + is-negated-glob "^1.0.0" + "@hocuspocus/common@^1.1.2": version "1.1.3" resolved "https://registry.yarnpkg.com/@hocuspocus/common/-/common-1.1.3.tgz#d2b5187092497308d3df659f8a036bded20fd759" @@ -2473,6 +2491,11 @@ resolved "https://registry.yarnpkg.com/@ioredis/commands/-/commands-1.2.0.tgz#6d61b3097470af1fdbbe622795b8921d42018e11" integrity "sha1-bWGzCXRwrx/bvmInlbiSHUIBjhE= sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==" +"@isaacs/ttlcache@^1.4.1": + version "1.4.1" + resolved "https://registry.yarnpkg.com/@isaacs/ttlcache/-/ttlcache-1.4.1.tgz#21fb23db34e9b6220c6ba023a0118a2dd3461ea2" + integrity sha512-RQgQ4uQ+pLbqXfOmieB91ejmLwvSgv9nLx6sT6sD83s7umBypgg+OIBOBbEUiJXrfpnp9j0mRhYYdzp9uqq3lA== + "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" @@ -2739,6 +2762,33 @@ resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" integrity "sha1-CNbF4gz35MwC/RgcSwwiXNMdu2A= sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==" +"@koa/bodyparser@^5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@koa/bodyparser/-/bodyparser-5.1.1.tgz#cda8df0bc89339d6d9856ddee0d59f2ff3133d06" + integrity sha512-ZBF49xqNVxnmJ+8iXegq+fXPQm9RSX8giNl/aXS5rW1VpNct92wnFbGR/47vfoRJVLARGQ4HVL4WaQ0u8IJVoA== + dependencies: + co-body "^6.1.0" + lodash.merge "^4.6.2" + type-is "^1.6.18" + +"@ladjs/consolidate@^1.0.1": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@ladjs/consolidate/-/consolidate-1.0.4.tgz#31d9604a0e3de6616aeba062c4390c5aa0e5c04d" + integrity sha512-ErvBg5acSqns86V/xW7gjqqnBBs6thnpMB0gGc3oM7WHsV8PWrnBtKI6dumHDT3UT/zEOfGzp7dmSFqWoCXKWQ== + +"@ladjs/koa-views@^9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@ladjs/koa-views/-/koa-views-9.0.0.tgz#22db62988e5040102da94b73133a7f97b381c02a" + integrity sha512-/nzUN3HhB7SIxrE4c2MXCLARXMwgoy7xJogyX8lNJo4VBxM6dVQ47iZWjOoHxTBKGFNAv2OTQ0rWI7HYpiv8kg== + dependencies: + "@ladjs/consolidate" "^1.0.1" + debug "^4.3.4" + get-paths "0.0.7" + koa-send "^5.0.1" + mz "^2.7.0" + pretty "^2.0.0" + resolve-path "^1.4.0" + "@lifeomic/attempt@^3.0.2": version "3.0.3" resolved "https://registry.yarnpkg.com/@lifeomic/attempt/-/attempt-3.0.3.tgz#e742a5b85eb673e2f1746b0f39cb932cbc6145bb" @@ -3059,10 +3109,10 @@ "@octokit/webhooks-types" "7.1.0" aggregate-error "^3.1.0" -"@opentelemetry/api@^1.0.0": - version "1.4.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.4.1.tgz#ff22eb2e5d476fbc2450a196e40dd243cc20c28f" - integrity "sha1-/yLrLl1Hb7wkUKGW5A3SQ8wgwo8= sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA==" +"@opentelemetry/api@>=1.0.0 <1.9.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.8.0.tgz#5aa7abb48f23f693068ed2999ae627d2f7d902ec" + integrity sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w== "@opentelemetry/core@^1.14.0": version "1.15.1" @@ -3301,7 +3351,7 @@ "@radix-ui/react-primitive" "2.0.1" "@radix-ui/react-use-layout-effect" "1.1.0" -"@radix-ui/react-portal@1.1.4": +"@radix-ui/react-portal@1.1.4", "@radix-ui/react-portal@^1.0.1": version "1.1.4" resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.1.4.tgz#ff5401ff63c8a825c46eea96d3aef66074b8c0c8" integrity sha512-sn2O9k1rPFYVyKd5LAJfo96JlSGVFpa1fS6UuBJfrZadudiw5tAmru+n1x7aMRQ84qDM71Zh1+SzK5QwU0tJfA== @@ -3309,14 +3359,6 @@ "@radix-ui/react-primitive" "2.0.2" "@radix-ui/react-use-layout-effect" "1.1.0" -"@radix-ui/react-portal@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.0.1.tgz#169c5a50719c2bb0079cf4c91a27aa6d37e5dd33" - integrity "sha1-FpxaUHGcK7AHnPTJGieqbTfl3TM= sha512-NY2vUWI5WENgAT1nfC6JS7RU5xRYBfjZVLq0HmgEN1Ezy3rk/UruMV4+Rd0F40PEaFC5SrLS1ixYvcYIQrb4Ig==" - dependencies: - "@babel/runtime" "^7.13.10" - "@radix-ui/react-primitive" "1.0.1" - "@radix-ui/react-presence@1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@radix-ui/react-presence/-/react-presence-1.1.2.tgz#bb764ed8a9118b7ec4512da5ece306ded8703cdc" @@ -3996,17 +4038,17 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@smithy/core@^3.1.3", "@smithy/core@^3.1.4": - version "3.1.4" - resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.1.4.tgz#47ce2b1b363ba92be2b47551bdd30969c6435bd2" - integrity sha512-wFExFGK+7r2wYriOqe7RRIBNpvxwiS95ih09+GSLRBdoyK/O1uZA7K7pKesj5CBvwJuSBeXwLyR88WwIAY+DGA== +"@smithy/core@^3.1.5": + version "3.1.5" + resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.1.5.tgz#cc260229e45964d8354a3737bf3dedb56e373616" + integrity sha512-HLclGWPkCsekQgsyzxLhCQLa8THWXtB5PxyYN+2O6nkyLt550KQKTlbV2D1/j5dNIQapAZM1+qFnpBFxZQkgCA== dependencies: "@smithy/middleware-serde" "^4.0.2" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-middleware" "^4.0.1" - "@smithy/util-stream" "^4.1.1" + "@smithy/util-stream" "^4.1.2" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -4146,12 +4188,12 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@smithy/middleware-endpoint@^4.0.4", "@smithy/middleware-endpoint@^4.0.5": - version "4.0.5" - resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.0.5.tgz#b3d58c0a44b5dcccb1da34267b6f651bc1ba7642" - integrity sha512-cPzGZV7qStHwboFrm6GfrzQE+YDiCzWcTh4+7wKrP/ZQ4gkw+r7qDjV8GjM4N0UYsuUyLfpzLGg5hxsYTU11WA== +"@smithy/middleware-endpoint@^4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.0.6.tgz#7ead08fcfda92ee470786a7f458e9b59048407eb" + integrity sha512-ftpmkTHIFqgaFugcjzLZv3kzPEFsBFSnq1JsIkr2mwFzCraZVhQk2gqN51OOeRxqhbPTkRFj39Qd2V91E/mQxg== dependencies: - "@smithy/core" "^3.1.4" + "@smithy/core" "^3.1.5" "@smithy/middleware-serde" "^4.0.2" "@smithy/node-config-provider" "^4.0.1" "@smithy/shared-ini-file-loader" "^4.0.1" @@ -4160,15 +4202,15 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@smithy/middleware-retry@^4.0.5": - version "4.0.6" - resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.0.6.tgz#07f8259dc05835e317aaf37af7e79bae349eabb4" - integrity sha512-s8QzuOQnbdvRymD9Gt9c9zMq10wUQAHQ3z72uirrBHCwZcLTrL5iCOuVTMdka2IXOYhQE890WD5t6G24+F+Qcg== +"@smithy/middleware-retry@^4.0.7": + version "4.0.7" + resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.0.7.tgz#8bb2014842a6144f230967db502f5fe6adcd6529" + integrity sha512-58j9XbUPLkqAcV1kHzVX/kAR16GT+j7DUZJqwzsxh1jtz7G82caZiGyyFgUvogVfNTg3TeAOIJepGc8TXF4AVQ== dependencies: "@smithy/node-config-provider" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/service-error-classification" "^4.0.1" - "@smithy/smithy-client" "^4.1.5" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" @@ -4201,10 +4243,10 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@smithy/node-http-handler@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/node-http-handler/-/node-http-handler-4.0.2.tgz#48d47a046cf900ab86bfbe7f5fd078b52c82fab6" - integrity sha512-X66H9aah9hisLLSnGuzRYba6vckuFtGE+a5DcHLliI/YlqKrGoxhisD5XbX44KyoeRzoNlGr94eTsMVHFAzPOw== +"@smithy/node-http-handler@^4.0.3": + version "4.0.3" + resolved "https://registry.yarnpkg.com/@smithy/node-http-handler/-/node-http-handler-4.0.3.tgz#363e1d453168b4e37e8dd456d0a368a4e413bc98" + integrity sha512-dYCLeINNbYdvmMLtW0VdhW1biXt+PPCGazzT5ZjKw46mOtdgToQEwjqZSS9/EN8+tNs/RO0cEWG044+YZs97aA== dependencies: "@smithy/abort-controller" "^4.0.1" "@smithy/protocol-http" "^5.0.1" @@ -4274,17 +4316,17 @@ "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/smithy-client@^4.1.4", "@smithy/smithy-client@^4.1.5": - version "4.1.5" - resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.1.5.tgz#f4641ad6771f5e4f6de9e573b9deb1787e43ef71" - integrity sha512-DMXYoYeL4QkElr216n1yodTFeATbfb4jwYM9gKn71Rw/FNA1/Sm36tkTSCsZEs7mgpG3OINmkxL9vgVFzyGPaw== +"@smithy/smithy-client@^4.1.6": + version "4.1.6" + resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.1.6.tgz#2183c922d086d33252012232be891f29a008d932" + integrity sha512-UYDolNg6h2O0L+cJjtgSyKKvEKCOa/8FHYJnBobyeoeWDmNpXjwOAtw16ezyeu1ETuuLEOZbrynK0ZY1Lx9Jbw== dependencies: - "@smithy/core" "^3.1.4" - "@smithy/middleware-endpoint" "^4.0.5" + "@smithy/core" "^3.1.5" + "@smithy/middleware-endpoint" "^4.0.6" "@smithy/middleware-stack" "^4.0.1" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" - "@smithy/util-stream" "^4.1.1" + "@smithy/util-stream" "^4.1.2" tslib "^2.6.2" "@smithy/types@^4.1.0": @@ -4349,27 +4391,27 @@ dependencies: tslib "^2.6.2" -"@smithy/util-defaults-mode-browser@^4.0.5": - version "4.0.6" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.6.tgz#4ee93d8e32c8211709437aa29c5fe616895e7c51" - integrity sha512-N8+VCt+piupH1A7DgSVDNrVHqRLz8r6DvBkpS7EWHiIxsUk4jqGuQLjqC/gnCzmwGkVBdNruHoYAzzaSQ8e80w== +"@smithy/util-defaults-mode-browser@^4.0.7": + version "4.0.7" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.7.tgz#54595ab3da6765bfb388e8e8b594276e0f485710" + integrity sha512-CZgDDrYHLv0RUElOsmZtAnp1pIjwDVCSuZWOPhIOBvG36RDfX1Q9+6lS61xBf+qqvHoqRjHxgINeQz47cYFC2Q== dependencies: "@smithy/property-provider" "^4.0.1" - "@smithy/smithy-client" "^4.1.5" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" bowser "^2.11.0" tslib "^2.6.2" -"@smithy/util-defaults-mode-node@^4.0.5": - version "4.0.6" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.6.tgz#213e5b32549beb48aeccbcf99cf56c97db47e70b" - integrity sha512-9zhx1shd1VwSSVvLZB8CM3qQ3RPD3le7A3h/UPuyh/PC7g4OaWDi2xUNzamsVoSmCGtmUBONl56lM2EU6LcH7A== +"@smithy/util-defaults-mode-node@^4.0.7": + version "4.0.7" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.7.tgz#0dea136de9096a36d84416f6af5843d866621491" + integrity sha512-79fQW3hnfCdrfIi1soPbK3zmooRFnLpSx3Vxi6nUlqaaQeC5dm8plt4OTNDNqEEEDkvKghZSaoti684dQFVrGQ== dependencies: "@smithy/config-resolver" "^4.0.1" "@smithy/credential-provider-imds" "^4.0.1" "@smithy/node-config-provider" "^4.0.1" "@smithy/property-provider" "^4.0.1" - "@smithy/smithy-client" "^4.1.5" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" tslib "^2.6.2" @@ -4406,13 +4448,13 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@smithy/util-stream@^4.1.0", "@smithy/util-stream@^4.1.1": - version "4.1.1" - resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-4.1.1.tgz#d7edec543d65ed335d2fda9aae6a42ee97da4a4e" - integrity sha512-+Xvh8nhy0Wjv1y71rBVyV3eJU3356XsFQNI8dEZVNrQju7Eib8G31GWtO+zMa9kTCGd41Mflu+ZKfmQL/o2XzQ== +"@smithy/util-stream@^4.1.2": + version "4.1.2" + resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-4.1.2.tgz#b867f25bc8b016de0582810a2f4092a71c5e3244" + integrity sha512-44PKEqQ303d3rlQuiDpcCcu//hV8sn+u2JBo84dWCE0rvgeiVl0IlLMagbU++o0jCWhYCsHaAt9wZuZqNe05Hw== dependencies: "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/node-http-handler" "^4.0.2" + "@smithy/node-http-handler" "^4.0.3" "@smithy/types" "^4.1.0" "@smithy/util-base64" "^4.0.0" "@smithy/util-buffer-from" "^4.0.0" @@ -4952,10 +4994,10 @@ "@types/qs" "*" "@types/serve-static" "*" -"@types/form-data@^2.5.0": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@types/form-data/-/form-data-2.5.0.tgz#5025f7433016f923348434c40006d9a797c1b0e8" - integrity "sha1-UCX3QzAW+SM0hDTEAAbZp5fBsOg= sha512-23/wYiuckYYtFpL+4RPWiWmRQH2BjFuqCUi2+N3amB1a1Drv+i/byTrGvlLwRVLFNAZbwpbQ7JvTK+VCAPMbcg==" +"@types/form-data@^2.5.2": + version "2.5.2" + resolved "https://registry.yarnpkg.com/@types/form-data/-/form-data-2.5.2.tgz#a4dbfd4d5d4a8d0dec9932f1932e2ae7267fc9ae" + integrity sha512-tfmcyHn1Pp9YHAO5r40+UuZUPAZbUEgqTel3EuEKpmF9hPkXgR4l41853raliXnb4gwyPNoQOfvgGGlHN5WSog== dependencies: form-data "*" @@ -5182,7 +5224,7 @@ dependencies: koa-useragent "*" -"@types/koa@*", "@types/koa@^2.13.1", "@types/koa@^2.13.5", "@types/koa@^2.15.0": +"@types/koa@*", "@types/koa@^2.13.5", "@types/koa@^2.15.0": version "2.15.0" resolved "https://registry.yarnpkg.com/@types/koa/-/koa-2.15.0.tgz#eca43d76f527c803b491731f95df575636e7b6f2" integrity sha512-7QFsywoE5URbuVnG3loe03QXuGajrnotr3gQkXcEBShORai23MePfFYdhz90FEtBBpkyIYQbVD+evKtloCgX3g== @@ -5368,19 +5410,18 @@ 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.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== +"@types/react-avatar-editor@^13.0.4": + version "13.0.4" + resolved "https://registry.yarnpkg.com/@types/react-avatar-editor/-/react-avatar-editor-13.0.4.tgz#df1eb46b380cda6f1db16b34bfb8519036d7d04e" + integrity sha512-WQjmacEOoEYQb6CkAXYspmtruCPXFzLjEI92zV27yqveGBRkh7Quo5oYMvAgaEeqpXsGEr/wzXcdSTaH982Wtg== dependencies: "@types/react" "*" -"@types/react-color@^3.0.12": - version "3.0.12" - resolved "https://registry.yarnpkg.com/@types/react-color/-/react-color-3.0.12.tgz#231e75f11dd6805bdf1c954774588fefc8172f30" - integrity sha512-pr3uKE3lSvf7GFo1Rn2K3QktiZQFFrSgSGJ/3iMvSOYWt2pPAJ97rVdVfhWxYJZ8prAEXzoP2XX//3qGSQgu7Q== +"@types/react-color@^3.0.13": + version "3.0.13" + resolved "https://registry.yarnpkg.com/@types/react-color/-/react-color-3.0.13.tgz#0f86a14ac948428bd811689706c328817661dc13" + integrity sha512-2c/9FZ4ixC5T3JzN0LP5Cke2Mf0MKOP2Eh0NPDPWmuVH3NjPyhEjqNMQpN1Phr5m74egAy+p2lYNAFrX1z9Yrg== dependencies: - "@types/react" "*" "@types/reactcss" "*" "@types/react-dom@<18.0.0", "@types/react-dom@^17.0.11": @@ -5888,21 +5929,14 @@ any-promise@^1.0.0, any-promise@^1.1.0: resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" integrity "sha1-q8av7tzqUugJzcA3au0845Y10X8= sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" -anymatch@^3.0.3, anymatch@~3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" - integrity "sha1-wFV8CWrzLxBhmPT04qODU343hxY= sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==" +anymatch@^3.0.3, anymatch@^3.1.3, anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== dependencies: normalize-path "^3.0.0" picomatch "^2.0.4" -append-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/append-buffer/-/append-buffer-1.0.2.tgz#d8220cf466081525efea50614f3de6514dfa58f1" - integrity "sha1-2CIM9GYIFSXv6lBhTz3mUU36WPE= sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==" - dependencies: - buffer-equal "^1.0.0" - argparse@^1.0.7, argparse@~1.0.3, argparse@~1.0.9: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -6104,9 +6138,9 @@ axe-core@^4.10.0: integrity sha512-RE3mdQ7P3FRSe7eqCWoeQ/Z9QXrtniSjp1wUjt5nRC3WIpz5rSCve6o3fsZ2aCpJtrZjSZgjwXAoTO5k4tEI0w== axios@^1.7.4: - version "1.7.9" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.9.tgz#d7d071380c132a24accda1b2cfc1535b79ec650a" - integrity sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw== + version "1.8.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.8.2.tgz#fabe06e241dfe83071d4edfbcaa7b1c3a40f7979" + integrity sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg== dependencies: follow-redirects "^1.15.6" form-data "^4.0.0" @@ -6117,6 +6151,11 @@ axobject-query@^4.1.0: resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-4.1.0.tgz#28768c76d0e3cff21bc62a9e2d0b6ac30042a1ee" integrity sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ== +b4a@^1.6.4: + version "1.6.7" + resolved "https://registry.yarnpkg.com/b4a/-/b4a-1.6.7.tgz#a99587d4ebbfbd5a6e3b21bdb5d5fa385767abe4" + integrity sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg== + babel-code-frame@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" @@ -6383,6 +6422,11 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" integrity "sha1-ibTRmasr7kneFk6gK4nORi1xt2c= sha512-9Y0g0Q8rmSt+H33DfKv7FOc3v+iRI+o1lbzt8jGcIosYW37IIW/2XVYq5NPdmaD5NQ59Nk26Kl/vZbwW9Fr8vg==" +bare-events@^2.2.0: + version "2.5.4" + resolved "https://registry.yarnpkg.com/bare-events/-/bare-events-2.5.4.tgz#16143d435e1ed9eafd1ab85f12b89b3357a41745" + integrity sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA== + base64-js@^1.0.2, base64-js@^1.3.1, base64-js@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" @@ -6417,6 +6461,15 @@ bl@^4.0.2: inherits "^2.0.4" readable-stream "^3.4.0" +bl@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-5.1.0.tgz#183715f678c7188ecef9fe475d90209400624273" + integrity sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ== + dependencies: + buffer "^6.0.3" + inherits "^2.0.4" + readable-stream "^3.4.0" + bluebird@^3.7.2: version "3.7.2" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" @@ -6545,11 +6598,6 @@ buffer-equal-constant-time@1.0.1: resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" integrity "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk= sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" -buffer-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/buffer-equal/-/buffer-equal-1.0.0.tgz#59616b498304d556abd466966b22eeda3eca5fbe" - integrity "sha1-WWFrSYME1Var1GaWayLu2j7KX74= sha512-tcBWO2Dl4e7Asr9hTGcpVrCe+F7DubpmqWCTbj4FHLmjqO2hIaC383acQubWtRJhdceqs5uBHs6Es+Sk//RKiQ==" - buffer-from@^1.0.0, buffer-from@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -6997,7 +7045,7 @@ commander@7: resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity "sha1-o2y1fQtQHOEI5NIFWaFQo5HZerc= sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" -commander@^10.0.1, commander@~10.0.0: +commander@^10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" integrity "sha1-iB7ka0930cHczFgjQzqjmwIsvgY= sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==" @@ -7017,6 +7065,11 @@ commander@^8.3.0: resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity "sha1-SDfqGy2me5xhamevuw+v7lZ7ymY= sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" +commander@~11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-11.1.0.tgz#62fdce76006a68e5c1ab3314dc92e800eb83d906" + integrity sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ== + commist@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/commist/-/commist-1.1.0.tgz#17811ec6978f6c15ee4de80c45c9beb77cee35d5" @@ -7060,7 +7113,7 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" -concat-stream@^2.0.0, concat-stream@~2.0.0: +concat-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" integrity "sha1-QUz1r3kKSMYKub5FJ9VtXkETPLE= sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==" @@ -7107,13 +7160,6 @@ config-chain@^1.1.13: ini "^1.3.4" proto-list "~1.2.1" -consolidate@^0.16.0: - version "0.16.0" - resolved "https://registry.yarnpkg.com/consolidate/-/consolidate-0.16.0.tgz#a11864768930f2f19431660a65906668f5fbdc16" - integrity "sha1-oRhkdokw8vGUMWYKZZBmaPX73BY= sha512-Nhl1wzCslqXYTJVDyJCu3ODohy9OfBMB5uD2BiBTzd7w+QY0lBzafkR8y8755yMYHAaMD4NuzbAw03/xzfw+eQ==" - dependencies: - bluebird "^3.7.2" - "consolidated-events@^1.1.0 || ^2.0.0": version "2.0.2" resolved "https://registry.yarnpkg.com/consolidated-events/-/consolidated-events-2.0.2.tgz#da8d8f8c2b232831413d9e190dc11669c79f4a91" @@ -7131,7 +7177,7 @@ content-type@^1.0.4: resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" integrity "sha1-4TjMdeBAxyexlm/l5fjJruJW/js= sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" -convert-source-map@^1.5.0, convert-source-map@^1.6.0: +convert-source-map@^1.6.0: version "1.7.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" integrity "sha1-F6LLiC1/d9NJBYXizmxSRCSjpEI= sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==" @@ -7739,43 +7785,43 @@ dc-polyfill@^0.1.4: resolved "https://registry.yarnpkg.com/dc-polyfill/-/dc-polyfill-0.1.4.tgz#4118cec81a8fab9a5729c41c285c715ffa42495a" integrity sha512-8iwEduR2jR9wWYggeaYtYZWRiUe3XZPyAQtMTL1otv8X3kfR8xUIVb4l5awHEeyDrH6Je7N324lKzMKlMMN6Yw== -dd-trace@^3.58.0: - version "3.58.0" - resolved "https://registry.yarnpkg.com/dd-trace/-/dd-trace-3.58.0.tgz#8715cc38f5c4caeba45a60393c9667025cd5befc" - integrity sha512-bdf0DVkSQ8fvS3WOLPc+89BwFEBfIPhFV2iUoiaDwsazowokeD/SKhgD3KyrYqSK2pF3AY6bgafhgcgY+cioLQ== +dd-trace@^5.40.0: + version "5.41.1" + resolved "https://registry.yarnpkg.com/dd-trace/-/dd-trace-5.41.1.tgz#86c97ba2b0f22b7edb729e7feea32ee95a601ebf" + integrity sha512-rotpjjUBrqyqWBQMa3YlqeJ0v9Iq95XFdUMGtoTRKtth7OMNZXQ48/GSOi5Cdqi1Ci8+RhYAmusX/GCfZ24R7A== dependencies: - "@datadog/native-appsec" "7.1.1" - "@datadog/native-iast-rewriter" "2.3.1" - "@datadog/native-iast-taint-tracking" "2.1.0" - "@datadog/native-metrics" "^2.0.0" - "@datadog/pprof" "5.2.0" + "@datadog/libdatadog" "^0.5.0" + "@datadog/native-appsec" "8.4.0" + "@datadog/native-iast-rewriter" "2.8.0" + "@datadog/native-iast-taint-tracking" "3.3.0" + "@datadog/native-metrics" "^3.1.0" + "@datadog/pprof" "5.5.1" "@datadog/sketches-js" "^2.1.0" - "@opentelemetry/api" "^1.0.0" + "@isaacs/ttlcache" "^1.4.1" + "@opentelemetry/api" ">=1.0.0 <1.9.0" "@opentelemetry/core" "^1.14.0" crypto-randomuuid "^1.0.0" dc-polyfill "^0.1.4" ignore "^5.2.4" - import-in-the-middle "^1.7.4" - int64-buffer "^0.1.9" - ipaddr.js "^2.1.0" + import-in-the-middle "1.13.1" istanbul-lib-coverage "3.2.0" jest-docblock "^29.7.0" koalas "^1.0.2" limiter "1.1.5" lodash.sortby "^4.7.0" lru-cache "^7.14.0" - methods "^1.1.2" module-details-from-path "^1.0.3" - msgpack-lite "^0.1.26" - node-abort-controller "^3.1.1" opentracing ">=0.12.1" - path-to-regexp "^0.1.2" + path-to-regexp "^0.1.12" pprof-format "^2.1.0" protobufjs "^7.2.5" retry "^0.13.1" - semver "^7.5.4" + rfdc "^1.3.1" + semifies "^1.0.0" shell-quote "^1.8.1" + source-map "^0.7.4" tlhunter-sorted-set "^0.1.0" + ttl-set "^1.0.0" de-indent@^1.0.2: version "1.0.2" @@ -7953,10 +7999,10 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -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== +discord-api-types@^0.37.119: + version "0.37.119" + resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.119.tgz#29e32f635351da32dd4c92defcafdeb65156ad33" + integrity sha512-WasbGFXEB+VQWXlo6IpW3oUv73Yuau1Ig4AZF/m13tXcTKnMpc/mHjpztIlz4+BM9FG9BHQkEXiPto3bKduQUg== dnd-core@^16.0.1: version "16.0.1" @@ -8071,7 +8117,7 @@ duplexer@^0.1.1: resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" integrity "sha1-Or5DrvODX4rgd9E23c4PJ2sEAOY= sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" -duplexify@^3.5.1, duplexify@^3.6.0: +duplexify@^3.5.1: version "3.7.1" resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" integrity "sha1-Kk31MX9sz9kfhtb9JdjYoQO4gwk= sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==" @@ -8118,7 +8164,7 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" -ejs@^3.1.6, ejs@^3.1.7: +ejs@^3.1.10, ejs@^3.1.6: version "3.1.10" resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== @@ -8445,33 +8491,34 @@ es6-weak-map@^2.0.3: es6-iterator "^2.0.3" es6-symbol "^3.1.1" -esbuild@^0.17.0: - version "0.17.11" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.17.11.tgz#9f3122643b21d7e7731e42f18576c10bfa28152b" - integrity "sha1-nzEiZDsh1+dzHkLxhXbBC/ooFSs= sha512-pAMImyokbWDtnA/ufPxjQg0fYo2DDuzAlqwnDvbXqHLphe+m80eF++perYKVm8LeTuj2zUuFXC+xgSVxyoHUdg==" +esbuild@^0.20.1: + version "0.20.2" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.20.2.tgz#9d6b2386561766ee6b5a55196c6d766d28c87ea1" + integrity sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g== optionalDependencies: - "@esbuild/android-arm" "0.17.11" - "@esbuild/android-arm64" "0.17.11" - "@esbuild/android-x64" "0.17.11" - "@esbuild/darwin-arm64" "0.17.11" - "@esbuild/darwin-x64" "0.17.11" - "@esbuild/freebsd-arm64" "0.17.11" - "@esbuild/freebsd-x64" "0.17.11" - "@esbuild/linux-arm" "0.17.11" - "@esbuild/linux-arm64" "0.17.11" - "@esbuild/linux-ia32" "0.17.11" - "@esbuild/linux-loong64" "0.17.11" - "@esbuild/linux-mips64el" "0.17.11" - "@esbuild/linux-ppc64" "0.17.11" - "@esbuild/linux-riscv64" "0.17.11" - "@esbuild/linux-s390x" "0.17.11" - "@esbuild/linux-x64" "0.17.11" - "@esbuild/netbsd-x64" "0.17.11" - "@esbuild/openbsd-x64" "0.17.11" - "@esbuild/sunos-x64" "0.17.11" - "@esbuild/win32-arm64" "0.17.11" - "@esbuild/win32-ia32" "0.17.11" - "@esbuild/win32-x64" "0.17.11" + "@esbuild/aix-ppc64" "0.20.2" + "@esbuild/android-arm" "0.20.2" + "@esbuild/android-arm64" "0.20.2" + "@esbuild/android-x64" "0.20.2" + "@esbuild/darwin-arm64" "0.20.2" + "@esbuild/darwin-x64" "0.20.2" + "@esbuild/freebsd-arm64" "0.20.2" + "@esbuild/freebsd-x64" "0.20.2" + "@esbuild/linux-arm" "0.20.2" + "@esbuild/linux-arm64" "0.20.2" + "@esbuild/linux-ia32" "0.20.2" + "@esbuild/linux-loong64" "0.20.2" + "@esbuild/linux-mips64el" "0.20.2" + "@esbuild/linux-ppc64" "0.20.2" + "@esbuild/linux-riscv64" "0.20.2" + "@esbuild/linux-s390x" "0.20.2" + "@esbuild/linux-x64" "0.20.2" + "@esbuild/netbsd-x64" "0.20.2" + "@esbuild/openbsd-x64" "0.20.2" + "@esbuild/sunos-x64" "0.20.2" + "@esbuild/win32-arm64" "0.20.2" + "@esbuild/win32-ia32" "0.20.2" + "@esbuild/win32-x64" "0.20.2" esbuild@^0.21.3: version "0.21.5" @@ -8825,11 +8872,6 @@ event-emitter@^0.3.5: d "1" es5-ext "~0.10.14" -event-lite@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/event-lite/-/event-lite-0.1.3.tgz#3dfe01144e808ac46448f0c19b4ab68e403a901d" - integrity "sha1-Pf4BFE6AisRkSPDBm0q2jkA6kB0= sha512-8qz9nOz5VeD2z96elrEKD2U433+L3DWdUdDkOINLGOJvx1GsMBbMn0aCeu28y8/e85A6mCigBiFlYMnTBEGlSw==" - eventemitter3@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" @@ -8905,11 +8947,6 @@ extend-shallow@^2.0.1: dependencies: is-extendable "^0.1.0" -extend@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity "sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo= sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -8925,10 +8962,10 @@ fast-equals@^2.0.3: resolved "https://registry.yarnpkg.com/fast-equals/-/fast-equals-2.0.3.tgz#7039b0a039909f345a2ce53f6202a14e5f392efc" integrity "sha1-cDmwoDmQnzRaLOU/YgKhTl85Lvw= sha512-0EMw4TTUxsMDpDkCg0rXor2gsg+npVrMIHbEhvD0HZyIhUX6AktC/yasm+qKwfyswd06Qy95ZKk8p2crTo0iPA==" -fast-fifo@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.1.0.tgz#17d1a3646880b9891dfa0c54e69c5fef33cad779" - integrity "sha1-F9GjZGiAuYkd+gxU5pxf7zPK13k= sha512-Kl29QoNbNvn4nhDsLYjyIAaIqaJB6rBx5p3sL9VjaefJ+eMFBWVZiaoguaoZfzEKr5RhAti0UgM8703akGPJ6g==" +fast-fifo@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c" + integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ== fast-glob@^3.2.11, fast-glob@^3.2.9, fast-glob@^3.3.2: version "3.3.2" @@ -8958,10 +8995,10 @@ fast-xml-parser@4.4.1: dependencies: strnum "^1.0.5" -fastq@^1.6.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" - integrity "sha1-YWdg+Ip1Jr38WWt8q4wYk4w2uYw= sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==" +fastq@^1.13.0, fastq@^1.6.0: + version "1.19.1" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.19.1.tgz#d50eaba803c8846a883c16492821ebcd2cda55f5" + integrity sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ== dependencies: reusify "^1.0.4" @@ -9088,14 +9125,6 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" integrity "sha1-YJ85IHy2FLidB2W0d8stQ3+/l4c= sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" -flush-write-stream@^1.0.2: - version "1.1.1" - resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8" - integrity "sha1-jdfYc6G6vCB9lOrQwuDkQnbr8ug= sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==" - dependencies: - inherits "^2.0.3" - readable-stream "^2.3.6" - fn.name@1.x.x: version "1.1.0" resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc" @@ -9216,13 +9245,13 @@ fs-merger@^3.2.1: fs-tree-diff "^2.0.1" walk-sync "^2.2.0" -fs-mkdirp-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz#0b7815fc3201c6a69e14db98ce098c16935259eb" - integrity "sha1-C3gV/DIBxqaeFNuYzgmMFpNSWes= sha512-+vSd9frUnapVC2RZYfL3FCB2p3g4TBhaUmrsWlSudsGdnxIuUvBB2QM1VZeBtc49QFwrp+wQLrDs3+xxDgI5gQ==" +fs-mkdirp-stream@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fs-mkdirp-stream/-/fs-mkdirp-stream-2.0.1.tgz#1e82575c4023929ad35cf69269f84f1a8c973aa7" + integrity sha512-UTOY+59K6IA94tec8Wjqm0FSh5OVudGNB0NL/P6fB3HiE3bYOY3VYBGijsnOHNkQSwC1FKkU77pmq7xp9CskLw== dependencies: - graceful-fs "^4.1.11" - through2 "^2.0.3" + graceful-fs "^4.2.8" + streamx "^2.12.0" fs-readdir-recursive@^1.1.0: version "1.1.0" @@ -9351,14 +9380,6 @@ get-tsconfig@^4.10.0: dependencies: resolve-pkg-maps "^1.0.0" -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - integrity "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4= sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==" - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" @@ -9373,21 +9394,19 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob-stream@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4" - integrity "sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ= sha512-uMbLGAP3S2aDOHUDfdoYcdIePUCfysbAd0IAoWVZbeGU/oNQ8asHVSshLDJUPWxfzj8zsCG7/XeHPHTtow0nsw==" +glob-stream@^8.0.0: + version "8.0.2" + resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-8.0.2.tgz#09e5818e41c16dd85274d72c7a7158d307426313" + integrity sha512-R8z6eTB55t3QeZMmU1C+Gv+t5UnNRkA55c5yo67fAVfxODxieTwsjNG7utxS/73NdP1NbDgCrhVEg2h00y4fFw== dependencies: - extend "^3.0.0" - glob "^7.1.1" - glob-parent "^3.1.0" + "@gulpjs/to-absolute-glob" "^4.0.0" + anymatch "^3.1.3" + fastq "^1.13.0" + glob-parent "^6.0.2" + is-glob "^4.0.3" is-negated-glob "^1.0.0" - ordered-read-streams "^1.0.0" - pumpify "^1.3.5" - readable-stream "^2.1.5" - remove-trailing-separator "^1.0.1" - to-absolute-glob "^2.0.0" - unique-stream "^2.0.2" + normalize-path "^3.0.0" + streamx "^2.12.5" glob@7.2.0: version "7.2.0" @@ -9475,7 +9494,7 @@ gopd@^1.0.1, gopd@^1.2.0: resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== -graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.10, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.8, graceful-fs@^4.2.9: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity "sha1-QYPk6L8Iu24Fu7L30uDI9xLKQOM= sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" @@ -9685,10 +9704,10 @@ http-assert@^1.3.0: deep-equal "~1.0.1" http-errors "~1.7.2" -http-errors@2.0.0: +http-errors@2.0.0, http-errors@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" - integrity "sha1-t3dKFIbvc892Z6ya4IWMASxXudM= sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== dependencies: depd "2.0.0" inherits "2.0.4" @@ -9777,39 +9796,44 @@ i18next-http-backend@^2.7.3: dependencies: cross-fetch "4.0.0" -i18next-parser@^7.9.0: - version "7.9.0" - resolved "https://registry.yarnpkg.com/i18next-parser/-/i18next-parser-7.9.0.tgz#dfba9051b03356e8e69c399193836de401284c94" - integrity "sha1-37qQUbAzVujmnDmRk4Nt5AEoTJQ= sha512-yrPJhWGsDBx404T4KLMOTkTgAAEuHvjbxee3HnlqFHALWy/3BOY7or69CxsJOomN3wdrwgg8kWtfIUWR1BZ1nw==" +i18next-parser@^8.13.0: + version "8.13.0" + resolved "https://registry.yarnpkg.com/i18next-parser/-/i18next-parser-8.13.0.tgz#3d0774f1659d691b451c105cc1eaf8c444e11740" + integrity sha512-XU7resoeNcpJazh29OncQQUH6HsgCxk06RqBBDAmLHldafxopfCHY1vElyG/o3EY0Sn7XjelAmPTV0SgddJEww== dependencies: - "@babel/runtime" "^7.15.4" + "@babel/runtime" "^7.23.2" broccoli-plugin "^4.0.7" cheerio "^1.0.0-rc.2" colors "1.4.0" - commander "~10.0.0" - concat-stream "~2.0.0" + commander "~11.1.0" eol "^0.9.1" - esbuild "^0.17.0" + esbuild "^0.20.1" fs-extra "^11.1.0" gulp-sort "^2.0.0" - i18next "^22.0.4" + i18next "^23.5.1" js-yaml "4.1.0" - lilconfig "^2.0.6" + lilconfig "^3.0.0" rsvp "^4.8.2" sort-keys "^5.0.0" - through2 "~4.0.2" - typescript "^4.2.4" + typescript "^5.0.4" vinyl "~3.0.0" - vinyl-fs "^3.0.2" + vinyl-fs "^4.0.0" vue-template-compiler "^2.6.11" -i18next@^22.0.4, i18next@^22.5.1: +i18next@^22.5.1: version "22.5.1" resolved "https://registry.yarnpkg.com/i18next/-/i18next-22.5.1.tgz#99df0b318741a506000c243429a7352e5f44d424" integrity "sha1-md8LMYdBpQYADCQ0Kac1Ll9E1CQ= sha512-8TGPgM3pAD+VRsMtUMNknRz3kzqwp/gPALrWMsDnmC1mKqJwpWyooQRLMcbTwq8z8YwSmuj+ZYvc+xCuEpkssA==" dependencies: "@babel/runtime" "^7.20.6" +i18next@^23.5.1: + version "23.16.8" + resolved "https://registry.yarnpkg.com/i18next/-/i18next-23.16.8.tgz#3ae1373d344c2393f465556f394aba5a9233b93a" + integrity sha512-06r/TitrM88Mg5FdUXAKL96dJMzgqLE5dv3ryBAra4KCwD9mJ4ndOTS95ZuymIGoE+2hzfdaMak2X11/es7ZWg== + dependencies: + "@babel/runtime" "^7.23.2" + iconv-lite@0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" @@ -9829,7 +9853,7 @@ idb@^7.0.1: resolved "https://registry.yarnpkg.com/idb/-/idb-7.1.1.tgz#d910ded866d32c7ced9befc5bfdf36f572ced72b" integrity "sha1-2RDe2GbTLHztm+/Fv9829XLO1ys= sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" -ieee754@^1.1.13, ieee754@^1.1.4, ieee754@^1.1.8, ieee754@^1.2.1: +ieee754@^1.1.13, ieee754@^1.1.4, ieee754@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity "sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I= sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" @@ -9857,12 +9881,12 @@ import-fresh@^3.2.1, import-fresh@^3.3.0: parent-module "^1.0.0" resolve-from "^4.0.0" -import-in-the-middle@^1.7.4: - version "1.7.4" - resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.7.4.tgz#508da6e91cfa84f210dcdb6c0a91ab0c9e8b3ebc" - integrity sha512-Lk+qzWmiQuRPPulGQeK5qq0v32k2bHnWrRPFgqyvhw7Kkov5L6MOLOIU3pcWeujc9W4q54Cp3Q2WV16eQkc7Bg== +import-in-the-middle@1.13.1: + version "1.13.1" + resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz#789651f9e93dd902a5a306f499ab51eb72b03a12" + integrity sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA== dependencies: - acorn "^8.8.2" + acorn "^8.14.0" acorn-import-attributes "^1.9.5" cjs-module-lexer "^1.2.2" module-details-from-path "^1.0.3" @@ -9918,11 +9942,6 @@ ini@^1.3.4: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84" integrity "sha1-oJNj4ZEZcuoW16iFEAXYTPCamoQ= sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==" -int64-buffer@^0.1.9: - version "0.1.10" - resolved "https://registry.yarnpkg.com/int64-buffer/-/int64-buffer-0.1.10.tgz#277b228a87d95ad777d07c13832022406a473423" - integrity "sha1-J3siiofZWtd30HwTgyAiQGpHNCM= sha512-v7cSY1J8ydZ0GyjUHqF+1bshJ6cnEVLo9EnjB8p+4HDRPZc9N5jjmvUV7NvEsqQOKyH0pmIBFWXVQbiS0+OBbA==" - internal-slot@^1.0.4, internal-slot@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.1.0.tgz#1eac91762947d2f7056bc838d93e13b2e9604961" @@ -9974,19 +9993,11 @@ ioredis@^5.3.2, ioredis@^5.4.1: redis-parser "^3.0.0" standard-as-callback "^2.1.0" -ipaddr.js@^2.0.0, ipaddr.js@^2.1.0: +ipaddr.js@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.1.0.tgz#2119bc447ff8c257753b196fc5f1ce08a4cdf39f" integrity "sha1-IRm8RH/4wld1OxlvxfHOCKTN858= sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==" -is-absolute@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" - integrity "sha1-OV4a6EsR8mrReV5zwXN45IowFXY= sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==" - dependencies: - is-relative "^1.0.0" - is-windows "^1.0.1" - is-alphabetical@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d" @@ -10124,7 +10135,7 @@ is-extendable@^0.1.0: resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" integrity "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==" -is-extglob@^2.1.0, is-extglob@^2.1.1: +is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" @@ -10158,13 +10169,6 @@ is-generator-function@^1.0.10, is-generator-function@^1.0.7: dependencies: has-tostringtag "^1.0.0" -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - integrity "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo= sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==" - dependencies: - is-extglob "^2.1.0" - is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" @@ -10250,13 +10254,6 @@ is-regexp@^1.0.0: resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" integrity "sha1-/S2INUXEa6xaYz57mgnof6LLUGk= sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==" -is-relative@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" - integrity "sha1-obtpNc6MXboei5dUubLcwCDiJg0= sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==" - dependencies: - is-unc-path "^1.0.0" - is-set@^2.0.2, is-set@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.3.tgz#8ab209ea424608141372ded6e0cb200ef1d9d01d" @@ -10303,18 +10300,6 @@ is-typed-array@^1.1.13, is-typed-array@^1.1.14, is-typed-array@^1.1.15: dependencies: which-typed-array "^1.1.16" -is-unc-path@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" - integrity "sha1-1zHoiY7QkKEsNSrS6u1Qla0yLJ0= sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==" - dependencies: - unc-path-regex "^0.1.2" - -is-utf8@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - integrity "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" - is-valid-glob@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-valid-glob/-/is-valid-glob-1.0.0.tgz#29bf3eff701be2d4d315dbacc39bc39fe8f601aa" @@ -10345,11 +10330,6 @@ is-whitespace@^0.3.0: resolved "https://registry.yarnpkg.com/is-whitespace/-/is-whitespace-0.3.0.tgz#1639ecb1be036aec69a54cbb401cfbed7114ab7f" integrity "sha1-Fjnssb4DauxppUy7QBz77XEUq38= sha512-RydPhl4S6JwAyj0JJjshWJEFG6hNye3pZFBRZaTUfZFwGHxzppNaNOVgQuS/E/SlhrApuMXrpnK1EEIXfdo3Dg==" -is-windows@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity "sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0= sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" - is-wsl@^2.1.1: version "2.2.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" @@ -10362,16 +10342,16 @@ isarray@0.0.1: resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" integrity "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" -isarray@^1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - isarray@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" integrity "sha1-ivHkwSISRMxiRZ+vOJQNTmRKVyM= sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -11205,18 +11185,16 @@ koa-router@7.4.0: path-to-regexp "^1.1.1" urijs "^1.19.0" -koa-router@^10.0.0: - version "10.0.0" - resolved "https://registry.yarnpkg.com/koa-router/-/koa-router-10.0.0.tgz#7bc76a031085731e61fc92c1683687b2f44de6a4" - integrity "sha1-e8dqAxCFcx5h/JLBaDaHsvRN5qQ= sha512-gAE5J1gBQTvfR8rMMtMUkE26+1MbO3DGpGmvfmM2pR9Z7w2VIb2Ecqeal98yVO7+4ltffby7gWOzpCmdNOQe0w==" +koa-router@^13.0.1: + version "13.0.1" + resolved "https://registry.yarnpkg.com/koa-router/-/koa-router-13.0.1.tgz#09607d35011960847b864231e3d502e28509866b" + integrity sha512-4/sijXdSxocIe2wv7RFFSxvo2ic1pDzPSmy11yCGztng1hx408qfw1wVmN3aqhQaU7U6nJ039JKC8ObE73Ohgw== dependencies: - debug "^4.1.1" - http-errors "^1.7.3" + http-errors "^2.0.0" koa-compose "^4.1.0" - methods "^1.1.2" - path-to-regexp "^6.1.0" + path-to-regexp "^8.1.0" -koa-send@5.0.1, koa-send@^5.0.0: +koa-send@5.0.1, koa-send@^5.0.0, koa-send@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/koa-send/-/koa-send-5.0.1.tgz#39dceebfafb395d0d60beaffba3a70b4f543fe79" integrity "sha1-Odzuv6+zldDWC+r/ujpwtPVD/nk= sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ==" @@ -11245,24 +11223,10 @@ koa-useragent@*, koa-useragent@^4.1.0: dependencies: express-useragent "^1.0.15" -koa-views@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/koa-views/-/koa-views-7.0.1.tgz#0c8f8e65d5cd2e08249430cb83dc361e49a17a5a" - integrity "sha1-DI+OZdXNLggklDDLg9w2Hkmhelo= sha512-yS8751DXHXXDbdl/oUZd0PsgnxR0MLiguu77Eqrgu6yawE9Hi99wNKiVENb0Kfgsmvq/8px7YCI+USgxaTB1LA==" - dependencies: - "@types/koa" "^2.13.1" - consolidate "^0.16.0" - debug "^4.1.0" - get-paths "0.0.7" - koa-send "^5.0.0" - mz "^2.4.0" - pretty "^2.0.0" - resolve-path "^1.4.0" - -koa@^2.13.1, koa@^2.15.4: - version "2.15.4" - resolved "https://registry.yarnpkg.com/koa/-/koa-2.15.4.tgz#7000b3d8354558671adb1ba1b1c09bedb5f8da75" - integrity sha512-7fNBIdrU2PEgLljXoPWoyY4r1e+ToWCmzS/wwMPbUNs7X+5MMET1ObhJBlUkF5uZG9B6QhM2zS1TsH6adegkiQ== +koa@^2.15.3, koa@^2.15.4: + version "2.16.0" + resolved "https://registry.yarnpkg.com/koa/-/koa-2.16.0.tgz#0a82ed4d460774ff0b444e361cd6e4bd5c767ee3" + integrity sha512-Afhqq0Vq3W7C+/rW6IqHVBDLzqObwZ07JaUNUEF8yCQ6afiyFE3RAy+i7V0E46XOWlH7vPWn/x0vsZwNy6PWxw== dependencies: accepts "^1.3.5" cache-content-type "^1.0.0" @@ -11336,24 +11300,15 @@ layout-base@^2.0.0: resolved "https://registry.yarnpkg.com/layout-base/-/layout-base-2.0.1.tgz#d0337913586c90f9c2c075292069f5c2da5dd285" integrity "sha1-0DN5E1hskPnCwHUpIGn1wtpd0oU= sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==" -lazystream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.0.tgz#f6995fe0f820392f61396be89462407bb77168e4" - integrity "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ= sha512-/330KFbmC/zKdtZoVDRwvkJ8snrJyBPfoZ39zsJl2O24HOE1CTNiEbeZmHXmjBVxTSSv7JlJEXPYhU83DhA2yg==" - dependencies: - readable-stream "^2.0.5" - leac@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/leac/-/leac-0.6.0.tgz#dcf136e382e666bd2475f44a1096061b70dc0912" integrity "sha1-3PE244LmZr0kdfRKEJYGG3DcCRI= sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==" -lead@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lead/-/lead-1.0.0.tgz#6f14f99a37be3a9dd784f5495690e5903466ee42" - integrity "sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI= sha512-IpSVCk9AYvLHo5ctcIXxOBpMWUe+4TKN3VPWAKUbJikkmsGp0VrSM8IttVc32D6J4WUsiPE6aEFRNmIoF/gdow==" - dependencies: - flush-write-stream "^1.0.2" +lead@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/lead/-/lead-4.0.0.tgz#5317a49effb0e7ec3a0c8fb9c1b24fb716aab939" + integrity sha512-DpMa59o5uGUWWjruMp71e6knmwKU3jRBBn1kjuLWN9EeIOxNeSAwvHf03WIl8g/ZMR2oSQC9ej3yeLBwdDc/pg== leven@^2.1.0: version "2.1.0" @@ -11427,11 +11382,16 @@ lie@~3.3.0: dependencies: immediate "~3.0.5" -lilconfig@2.1.0, lilconfig@^2.0.6: +lilconfig@2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" integrity "sha1-eOI6yJ67fhv78lsYBD3nVlSOf1I= sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==" +lilconfig@^3.0.0: + version "3.1.3" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.3.tgz#a1bcfd6257f9585bf5ae14ceeebb7b559025e4c4" + integrity sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw== + limiter@1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.5.tgz#8f92a25b3b16c6131293a0cc834b4a838a2aa7c2" @@ -11927,7 +11887,7 @@ mermaid@11.4.1: ts-dedent "^2.2.0" uuid "^9.0.1" -methods@^1.0.1, methods@^1.1.2: +methods@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" integrity "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" @@ -12079,16 +12039,6 @@ ms@2.1.2, ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk= sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" -msgpack-lite@^0.1.26: - version "0.1.26" - resolved "https://registry.yarnpkg.com/msgpack-lite/-/msgpack-lite-0.1.26.tgz#dd3c50b26f059f25e7edee3644418358e2a9ad89" - integrity "sha1-3TxQsm8FnyXn7e42REGDWOKprYk= sha512-SZ2IxeqZ1oRFGo0xFGbvBJWMp3yLIY9rlIJyxy8CGrwZn1f0ZK4r6jV/AM1r0FZMDUkWkglOk/eeKIL9g77Nxw==" - dependencies: - event-lite "^0.1.1" - ieee754 "^1.1.8" - int64-buffer "^0.1.9" - isarray "^1.0.0" - msgpackr-extract@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/msgpackr-extract/-/msgpackr-extract-3.0.2.tgz#e05ec1bb4453ddf020551bcd5daaf0092a2c279d" @@ -12110,10 +12060,10 @@ msgpackr@^1.10.1: optionalDependencies: msgpackr-extract "^3.0.2" -mz@^2.4.0: +mz@^2.7.0: version "2.7.0" resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" - integrity "sha1-lQCAV6Vsr63CvGPd5/n/aVWUjjI= sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==" + integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== dependencies: any-promise "^1.0.0" object-assign "^4.0.1" @@ -12149,7 +12099,7 @@ node-abort-controller@^1.1.0: resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-1.2.1.tgz#1eddb57eb8fea734198b11b28857596dc6165708" integrity "sha1-Ht21frj+pzQZixGyiFdZbcYWVwg= sha512-79PYeJuj6S9+yOHirR0JBLFOgjB6sQCir10uN6xRx25iD+ZD4ULqgRn3MwWBRaQGB0vEgReJzWwJo42T1R6YbQ==" -node-abort-controller@^3.0.1, node-abort-controller@^3.1.1: +node-abort-controller@^3.0.1: version "3.1.1" resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-3.1.1.tgz#a94377e964a9a37ac3976d848cb5c765833b8548" integrity "sha1-qUN36WSpo3rDl22EjLXHZYM7hUg= sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==" @@ -12231,14 +12181,7 @@ nopt@~1.0.10: dependencies: abbrev "1" -normalize-path@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==" - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-path@^3.0.0, normalize-path@~3.0.0: +normalize-path@3.0.0, normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity "sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU= sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" @@ -12248,12 +12191,12 @@ notepack.io@~2.2.0: resolved "https://registry.yarnpkg.com/notepack.io/-/notepack.io-2.2.0.tgz#d7ea71d1cb90094f88c6f3c8d84277c2d0cd101c" integrity "sha1-1+px0cuQCU+IxvPI2EJ3wtDNEBw= sha512-9b5w3t5VSH6ZPosoYnyDONnUTF8o0UkBw7JLA6eBlYJWyGT1Q3vQa8Hmuj1/X6RYvHjjygBDgw6fJhe0JEojfw==" -now-and-later@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/now-and-later/-/now-and-later-2.0.1.tgz#8e579c8685764a7cc02cb680380e94f43ccb1f7c" - integrity "sha1-jlechoV2SnzALLaAOA6U9DzLH3w= sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==" +now-and-later@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/now-and-later/-/now-and-later-3.0.0.tgz#cdc045dc5b894b35793cf276cc3206077bb7302d" + integrity sha512-pGO4pzSdaxhWTGkfSfHx3hVzJVslFPwBp2Myq9MYN/ChfJZF87ochMAXnvz6/58RJSf5ik2q9tXprBBrk2cpcg== dependencies: - once "^1.3.2" + once "^1.4.0" npm-run-path@^4.0.1: version "4.0.1" @@ -12322,7 +12265,7 @@ object-keys@^1.1.1: resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity "sha1-HEfyct8nfzsdrwYWd9nILiMixg4= sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" -object.assign@^4.0.4, object.assign@^4.1.4, object.assign@^4.1.7: +object.assign@^4.1.4, object.assign@^4.1.7: version "4.1.7" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.7.tgz#8c14ca1a424c6a561b0bb2a22f66f5049a945d3d" integrity sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw== @@ -12395,7 +12338,7 @@ on-finished@^2.3.0: dependencies: ee-first "1.1.1" -once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.4.0: +once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity "sha1-WDsap3WWHUsROsF9nFC6753Xa9E= sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==" @@ -12470,13 +12413,6 @@ optionator@^0.9.3: prelude-ls "^1.2.1" type-check "^0.4.0" -ordered-read-streams@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e" - integrity "sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4= sha512-Z87aSjx3r5c0ZB7bcJqIgIRX5bxR7A4aSzvIbaxd0oTkWBCOoKfuGHiKj60CHVUgg1Phm5yMZzBdt8XqRs73Mw==" - dependencies: - readable-stream "^2.0.1" - orderedmap@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/orderedmap/-/orderedmap-2.1.1.tgz#61481269c44031c449915497bf5a4ad273c512d2" @@ -12717,11 +12653,6 @@ path-data-parser@0.1.0, path-data-parser@^0.1.0: resolved "https://registry.yarnpkg.com/path-data-parser/-/path-data-parser-0.1.0.tgz#8f5ba5cc70fc7becb3dcefaea08e2659aba60b8c" integrity sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w== -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - integrity "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA= sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q==" - path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" @@ -12757,10 +12688,10 @@ path-posix@^1.0.0: resolved "https://registry.yarnpkg.com/path-posix/-/path-posix-1.0.0.tgz#06b26113f56beab042545a23bfa88003ccac260f" integrity "sha1-BrJhE/Vr6rBCVFojv6iAA8ysJg8= sha512-1gJ0WpNIiYcQydgg3Ed8KzvIqTsDpNwq+cjBCssvBtuTWjEqY1AW+i+OepiEMqDCzyro9B2sLAe4RBPajMYFiA==" -path-to-regexp@^0.1.2: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" - integrity "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" +path-to-regexp@^0.1.12: + version "0.1.12" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz#d5e1a12e478a976d432ef3c58d534b9923164bb7" + integrity sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ== path-to-regexp@^1.1.1, path-to-regexp@^1.7.0: version "1.8.0" @@ -12769,10 +12700,10 @@ path-to-regexp@^1.1.1, path-to-regexp@^1.7.0: dependencies: isarray "0.0.1" -path-to-regexp@^6.1.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-6.2.0.tgz#f7b3803336104c346889adece614669230645f38" - integrity "sha1-97OAMzYQTDRoia3s5hRmkjBkXzg= sha512-f66KywYG6+43afgE/8j/GoiNyygk/bnoCbps++3ErRKsIYkGGupyv07R2Ok5m9i67Iqc+T2g1eAUGUPzWhYTyg==" +path-to-regexp@^8.1.0: + version "8.2.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-8.2.0.tgz#73990cc29e57a3ff2a0d914095156df5db79e8b4" + integrity sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ== path-type@^4.0.0: version "4.0.0" @@ -13075,10 +13006,10 @@ pretty@^2.0.0: extend-shallow "^2.0.1" js-beautify "^1.6.12" -prismjs@~1.27.0: - version "1.27.0" - resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.27.0.tgz#bb6ee3138a0b438a3653dd4d6ce0cc6510a45057" - integrity "sha1-u27jE4oLQ4o2U91NbODMZRCkUFc= sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==" +prismjs@1.30.0, prismjs@~1.27.0: + version "1.30.0" + resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.30.0.tgz#d9709969d9d4e16403f6f348c63553b19f0975a9" + integrity sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw== process-nextick-args@^2.0.0, process-nextick-args@^2.0.1, process-nextick-args@~2.0.0: version "2.0.1" @@ -13175,7 +13106,7 @@ prosemirror-inputrules@^1.4.0: prosemirror-state "^1.0.0" prosemirror-transform "^1.0.0" -prosemirror-keymap@^1.0.0, prosemirror-keymap@^1.1.2, prosemirror-keymap@^1.2.2: +prosemirror-keymap@^1.0.0, prosemirror-keymap@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/prosemirror-keymap/-/prosemirror-keymap-1.2.2.tgz#14a54763a29c7b2704f561088ccf3384d14eb77e" integrity "sha1-FKVHY6KceycE9WEIjM8zhNFOt34= sha512-EAlXoksqC6Vbocqc0GtzCruZEzYgrn+iiGnNjsJsH4mrnIGex4qbLdWWNza3AW5W36ZRrlBID0eM6bdKH4OStQ==" @@ -13192,10 +13123,10 @@ prosemirror-markdown@^1.13.1: 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.24.0, prosemirror-model@^1.8.1: - version "1.24.0" - resolved "https://registry.yarnpkg.com/prosemirror-model/-/prosemirror-model-1.24.0.tgz#01fd4fdfd32b196d2a073066b25c232bcf946aa4" - integrity sha512-Ft7epNnycoQSM+2ObF35SBbBX+5WY39v8amVlrtlAcpglhlHs2tCTnWl7RX5tbp/PsMKcRcWV9cXPuoBWq0AIQ== +prosemirror-model@^1.0.0, prosemirror-model@^1.20.0, prosemirror-model@^1.21.0, prosemirror-model@^1.24.0, prosemirror-model@^1.24.1: + version "1.24.1" + resolved "https://registry.yarnpkg.com/prosemirror-model/-/prosemirror-model-1.24.1.tgz#b445e4f9b9cfc8c1a699215057b506842ebff1a9" + integrity sha512-YM053N+vTThzlWJ/AtPtF1j0ebO36nvbmDy4U7qA2XQB8JVaQp1FmB9Jhrps8s+z+uxhhVTny4m20ptUvhk0Mg== dependencies: orderedmap "^2.0.0" @@ -13208,7 +13139,7 @@ prosemirror-schema-list@^1.4.1: prosemirror-state "^1.0.0" prosemirror-transform "^1.7.3" -prosemirror-state@^1.0.0, prosemirror-state@^1.2.2, prosemirror-state@^1.3.1, prosemirror-state@^1.4.3: +prosemirror-state@^1.0.0, prosemirror-state@^1.2.2, prosemirror-state@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/prosemirror-state/-/prosemirror-state-1.4.3.tgz#94aecf3ffd54ec37e87aa7179d13508da181a080" integrity "sha1-lK7PP/1U7DfoeqcXnRNQjaGBoIA= sha512-goFKORVbvPuAQaXhpbemJFRKJ2aixr+AZMGiquiqKxaucC6hlpHNZHWgz5R7dS4roHiwq9vDctE//CZ++o0W1Q==" @@ -13217,28 +13148,28 @@ prosemirror-state@^1.0.0, prosemirror-state@^1.2.2, prosemirror-state@^1.3.1, pr prosemirror-transform "^1.0.0" prosemirror-view "^1.27.0" -prosemirror-tables@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/prosemirror-tables/-/prosemirror-tables-1.4.0.tgz#59c3dc241e03fc4ba8c093995b130d2980f0ffdc" - integrity sha512-fxryZZkQG12fSCNuZDrYx6Xvo2rLYZTbKLRd8rglOPgNJGMKIS8uvTt6gGC38m7UCu/ENnXIP9pEz5uDaPc+cA== +prosemirror-tables@^1.6.4: + version "1.6.4" + resolved "https://registry.yarnpkg.com/prosemirror-tables/-/prosemirror-tables-1.6.4.tgz#e36ebca70d9e398c4a3b99b122ba86bfc985293d" + integrity sha512-TkDY3Gw52gRFRfRn2f4wJv5WOgAOXLJA2CQJYIJ5+kdFbfj3acR4JUW6LX2e1hiEBiUwvEhzH5a3cZ5YSztpIA== dependencies: - prosemirror-keymap "^1.1.2" - prosemirror-model "^1.8.1" - prosemirror-state "^1.3.1" - prosemirror-transform "^1.2.1" - prosemirror-view "^1.13.3" + prosemirror-keymap "^1.2.2" + prosemirror-model "^1.24.1" + prosemirror-state "^1.4.3" + prosemirror-transform "^1.10.2" + prosemirror-view "^1.37.2" -prosemirror-transform@1.10.0, prosemirror-transform@^1.0.0, prosemirror-transform@^1.1.0, prosemirror-transform@^1.10.2, prosemirror-transform@^1.2.1, prosemirror-transform@^1.7.3: +prosemirror-transform@1.10.0, prosemirror-transform@^1.0.0, prosemirror-transform@^1.1.0, prosemirror-transform@^1.10.2, prosemirror-transform@^1.7.3: version "1.10.0" resolved "https://registry.yarnpkg.com/prosemirror-transform/-/prosemirror-transform-1.10.0.tgz#2211ddcb13f12e4e530de97c077f82ab46177b0c" integrity sha512-9UOgFSgN6Gj2ekQH5CTDJ8Rp/fnKR2IkYfGdzzp5zQMFsS4zDllLVx/+jGcX86YlACpG7UR5fwAXiWzxqWtBTg== dependencies: prosemirror-model "^1.21.0" -prosemirror-view@^1.0.0, prosemirror-view@^1.1.0, prosemirror-view@^1.13.3, prosemirror-view@^1.27.0, prosemirror-view@^1.31.0, prosemirror-view@^1.37.1: - version "1.37.1" - resolved "https://registry.yarnpkg.com/prosemirror-view/-/prosemirror-view-1.37.1.tgz#3ccd67cd3d831eb37a2505dd34151932462172fb" - integrity sha512-MEAnjOdXU1InxEmhjgmEzQAikaS6lF3hD64MveTPpjOGNTl87iRLA1HupC/DEV6YuK7m4Q9DHFNTjwIVtqz5NA== +prosemirror-view@^1.0.0, prosemirror-view@^1.1.0, prosemirror-view@^1.27.0, prosemirror-view@^1.31.0, prosemirror-view@^1.37.2, prosemirror-view@^1.38.1: + version "1.38.1" + resolved "https://registry.yarnpkg.com/prosemirror-view/-/prosemirror-view-1.38.1.tgz#566d30cc8b00a68d6b4c60f5d8a6ab97c82990b3" + integrity sha512-4FH/uM1A4PNyrxXbD+RAbAsf0d/mM0D/wAKSVVWK7o0A9Q/oOXJBrw786mBf2Vnrs/Edly6dH6Z2gsb7zWwaUw== dependencies: prosemirror-model "^1.20.0" prosemirror-state "^1.0.0" @@ -13287,14 +13218,6 @@ pstree.remy@^1.1.8: resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a" integrity "sha1-wkIiT0pnwh9oaDm720rCgrg3PTo= sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" -pump@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" - integrity "sha1-Ejma3W5M91Jtlzy8i1zi4pCLOQk= sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==" - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - pump@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" @@ -13303,15 +13226,6 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" -pumpify@^1.3.5: - version "1.5.1" - resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" - integrity "sha1-NlE74karJ1cLGjdKXOJ4v9dDcM4= sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==" - dependencies: - duplexify "^3.6.0" - inherits "^2.0.3" - pump "^2.0.0" - punycode.js@2.3.1, punycode.js@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/punycode.js/-/punycode.js-2.3.1.tgz#6b53e56ad75588234e79f4affa90972c7dd8cdb7" @@ -13352,11 +13266,6 @@ queue-microtask@^1.2.2: resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" integrity "sha1-SSkii7xyTfrEPg77BYyve2z7YkM= sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" -queue-tick@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/queue-tick/-/queue-tick-1.0.1.tgz#f6f07ac82c1fd60f82e098b417a80e52f1f4c142" - integrity "sha1-9vB6yCwf1g+C4Ji0F6gOUvH0wUI= sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" - quick-temp@^0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/quick-temp/-/quick-temp-0.1.8.tgz#bab02a242ab8fb0dd758a3c9776b32f9a5d94408" @@ -13373,24 +13282,19 @@ raf@^3.4.1: dependencies: performance-now "^2.1.0" -randombytes@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.3.tgz#674c99760901c3c4112771a31e521dc349cc09ec" - integrity "sha1-Z0yZdgkBw8QRJ3GjHlIdw0nMCew= sha512-lDVjxQQFoCG1jcrP06LNo2lbWp4QTShEXnhActFBwYuHprllQV6VUpwreApsYqCgD+N1mHoqJ/BI/4eV4R2GYg==" - -randombytes@^2.1.0: +randombytes@2.1.0, randombytes@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" integrity "sha1-32+ENy8CcNxlzfYpE0mrekc9Tyo= sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==" dependencies: safe-buffer "^5.1.0" -randomstring@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/randomstring/-/randomstring-1.3.0.tgz#1bf9d730066899e70aee3285573f84708278683d" - integrity sha512-gY7aQ4i1BgwZ8I1Op4YseITAyiDiajeZOPQUbIq9TPGPhUm5FX59izIaOpmKbME1nmnEiABf28d9K2VSii6BBg== +randomstring@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/randomstring/-/randomstring-1.3.1.tgz#11a494a9d51b320dd8694a3e0ee7d77b0f8e477c" + integrity sha512-lgXZa80MUkjWdE7g2+PZ1xDLzc7/RokXVEQOv5NN2UOTChW1I8A9gha5a9xYBOqgaSoI6uJikDmCU8PyRdArRQ== dependencies: - randombytes "2.0.3" + randombytes "2.1.0" rate-limiter-flexible@^2.4.2: version "2.4.2" @@ -13534,15 +13438,7 @@ react-refresh@^0.14.0, react-refresh@^0.14.2: resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.14.2.tgz#3833da01ce32da470f1f936b9d477da5c7028bf9" integrity sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA== -react-remove-scroll-bar@^2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.3.tgz#e291f71b1bb30f5f67f023765b7435f4b2b2cd94" - integrity "sha1-4pH3GxuzD19n8CN2W3Q19LKyzZQ= sha512-i9GMNWwpz8XpUpQ6QlevUtFjHGqnPG4Hxs+wlIJntu/xcsZVEpJcIV71K3ZkqNy2q3GfgvkD7y6t/Sv8ofYSbw==" - dependencies: - react-style-singleton "^2.2.1" - tslib "^2.0.0" - -react-remove-scroll-bar@^2.3.7: +react-remove-scroll-bar@^2.3.3, react-remove-scroll-bar@^2.3.7: version "2.3.8" resolved "https://registry.yarnpkg.com/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz#99c20f908ee467b385b68a3469b4a3e750012223" integrity sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q== @@ -13550,29 +13446,7 @@ react-remove-scroll-bar@^2.3.7: react-style-singleton "^2.2.2" tslib "^2.0.0" -react-remove-scroll@^2.4.4: - version "2.5.5" - resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz#1e31a1260df08887a8a0e46d09271b52b3a37e77" - integrity "sha1-HjGhJg3wiIeooORtCScbUrOjfnc= sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==" - dependencies: - react-remove-scroll-bar "^2.3.3" - react-style-singleton "^2.2.1" - tslib "^2.1.0" - use-callback-ref "^1.3.0" - use-sidecar "^1.1.2" - -react-remove-scroll@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.6.2.tgz#2518d2c5112e71ea8928f1082a58459b5c7a2a97" - integrity sha512-KmONPx5fnlXYJQqC62Q+lwIeAk64ws/cUw6omIumRzMRPqgnYqhSSti99nbj0Ry13bv7dF+BKn7NB+OqkdZGTw== - dependencies: - react-remove-scroll-bar "^2.3.7" - react-style-singleton "^2.2.1" - tslib "^2.1.0" - use-callback-ref "^1.3.3" - use-sidecar "^1.1.2" - -react-remove-scroll@^2.6.3: +react-remove-scroll@^2.4.4, react-remove-scroll@^2.6.1, react-remove-scroll@^2.6.3: version "2.6.3" resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.6.3.tgz#df02cde56d5f2731e058531f8ffd7f9adec91ac2" integrity sha512-pnAi91oOk8g8ABQKGF5/M9qxmmOPxaAnopyTHYfqYEwJhyFrbbBtHuSgtKEoH0jpcxx5o3hXqH1mNd9/Oi+8iQ== @@ -13611,16 +13485,7 @@ react-router@5.3.4: tiny-invariant "^1.0.2" tiny-warning "^1.0.0" -react-style-singleton@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.2.1.tgz#f99e420492b2d8f34d38308ff660b60d0b1205b4" - integrity "sha1-+Z5CBJKy2PNNODCP9mC2DQsSBbQ= sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==" - dependencies: - get-nonce "^1.0.0" - invariant "^2.2.4" - tslib "^2.0.0" - -react-style-singleton@^2.2.2, react-style-singleton@^2.2.3: +react-style-singleton@^2.2.1, react-style-singleton@^2.2.2, react-style-singleton@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.2.3.tgz#4265608be69a4d70cfe3047f2c6c88b2c3ace388" integrity sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ== @@ -13673,16 +13538,7 @@ reactcss@^1.2.0: dependencies: lodash "^4.0.1" -readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.5.0, readable-stream@^3.6.0, readable-stream@^3.6.2: - version "3.6.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" - integrity "sha1-VqmzbqllwAxak+8x6xEaDxEFaWc= sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==" - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.5, readable-stream@^2.1.5, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6: +readable-stream@^2.0.0, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity "sha1-kRJegEK7obmIf0k0X2J3Anzovps= sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==" @@ -13695,6 +13551,15 @@ readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.5, readable string_decoder "~1.1.1" util-deprecate "~1.0.1" +readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.5.0, readable-stream@^3.6.0, readable-stream@^3.6.2: + version "3.6.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + integrity "sha1-VqmzbqllwAxak+8x6xEaDxEFaWc= sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==" + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + readdirp@~3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" @@ -13881,23 +13746,6 @@ reinterval@^1.1.0: resolved "https://registry.yarnpkg.com/reinterval/-/reinterval-1.1.0.tgz#3361ecfa3ca6c18283380dd0bb9546f390f5ece7" integrity sha512-QIRet3SYrGp0HUHO88jVskiG6seqUGC5iAG7AwI/BV4ypGcuqk9Du6YQBUOUqm9c8pw1eyLoIaONifRua1lsEQ== -remove-bom-buffer@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz#c2bf1e377520d324f623892e33c10cac2c252b53" - integrity "sha1-wr8eN3Ug0yT2I4kuM8EMrCwlK1M= sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==" - dependencies: - is-buffer "^1.1.5" - is-utf8 "^0.2.1" - -remove-bom-stream@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz#05f1a593f16e42e1fb90ebf59de8e569525f9523" - integrity "sha1-BfGlk/FuQuH7kOv1nejlaVJflSM= sha512-wigO8/O08XHb8YPzpDDT+QmRANfW6vLqxfaXm1YXhnFf3AkSLyjfG3GEFg4McZkmgL7KvCj5u2KczkvSP6NfHA==" - dependencies: - remove-bom-buffer "^3.0.0" - safe-buffer "^5.1.0" - through2 "^2.0.3" - remove-trailing-separator@^1.0.1, remove-trailing-separator@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" @@ -13957,12 +13805,12 @@ resolve-from@^5.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" integrity "sha1-w1IlhD3493bfIcV1V7wIfp39/Gk= sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" -resolve-options@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/resolve-options/-/resolve-options-1.1.0.tgz#32bb9e39c06d67338dc9378c0d6d6074566ad131" - integrity "sha1-MrueOcBtZzONyTeMDW1gdFZq0TE= sha512-NYDgziiroVeDC29xq7bp/CacZERYsA9bXYd1ZmcJlF3BcrZv5pTb4NG7SjdyKDnXZ84aC4vo2u6sNKIA1LCu/A==" +resolve-options@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-options/-/resolve-options-2.0.0.tgz#a1a57a9949db549dd075de3f5550675f02f1e4c5" + integrity sha512-/FopbmmFOQCfsCx77BRFdKOniglTiHumLgwvd6IDPihy1GKkadZbgQJBcTb2lMzSR1pndzd96b1nZrreZ7+9/A== dependencies: - value-or-function "^3.0.0" + value-or-function "^4.0.0" resolve-path@^1.4.0: version "1.4.0" @@ -14032,10 +13880,10 @@ rfc6902@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/rfc6902/-/rfc6902-5.1.1.tgz#201a6980c06e97760515612447cbc8ad59a350e2" -rfdc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b" - integrity "sha1-0LfEQasnINBdxM8m4ByJYx2doIs= sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==" +rfdc@^1.3.0, rfdc@^1.3.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" + integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== rimraf@^2.5.4, rimraf@^2.6.3: version "2.7.1" @@ -14239,6 +14087,11 @@ selderee@^0.11.0: dependencies: parseley "^0.12.0" +semifies@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/semifies/-/semifies-1.0.0.tgz#b69569f32c2ba2ac04f705ea82831364289b2ae2" + integrity sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw== + semver@^5.6.0: version "5.7.2" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" @@ -14249,10 +14102,10 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0, semve resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.5.0, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.6.2, semver@^7.6.3: - version "7.6.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" - integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== +semver@^7.5.0, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.6.3, semver@^7.7.1: + version "7.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f" + integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA== sequelize-cli@^6.6.2: version "6.6.2" @@ -14491,10 +14344,10 @@ socket.io-adapter@~2.5.2: dependencies: ws "~8.11.0" -socket.io-client@^4.8.0: - version "4.8.0" - resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-4.8.0.tgz#2ea0302d0032d23422bd2860f78127a800cad6a2" - integrity sha512-C0jdhD5yQahMws9alf/yvtsMGTaIDBnZ8Rb5HU56svyq0l5LIrGzIDZZD5pHQlmzxLuU91Gz+VpQMKgCTNYtkw== +socket.io-client@^4.8.1: + version "4.8.1" + resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-4.8.1.tgz#1941eca135a5490b94281d0323fe2a35f6f291cb" + integrity sha512-hJVXfu3E28NmzGk8o1sHhN3om52tRvwYeidbj7xKy2eIIse5IoKX3USlS6Tqt3BHAtflLIkCQBkzVrEEfWUyYQ== dependencies: "@socket.io/component-emitter" "~3.1.0" debug "~4.3.2" @@ -14689,18 +14542,27 @@ stream-browserify@3.0.0: inherits "~2.0.4" readable-stream "^3.5.0" +stream-composer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/stream-composer/-/stream-composer-1.0.2.tgz#7ee61ca1587bf5f31b2e29aa2093cbf11442d152" + integrity sha512-bnBselmwfX5K10AH6L4c8+S5lgZMWI7ZYrz2rvYjCPB2DIMC4Ig8OpxGpNJSxRZ58oti7y1IcNvjBAz9vW5m4w== + dependencies: + streamx "^2.13.2" + stream-shift@^1.0.0, stream-shift@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.3.tgz#85b8fab4d71010fc3ba8772e8046cc49b8a3864b" integrity sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ== -streamx@^2.12.5: - version "2.13.0" - resolved "https://registry.yarnpkg.com/streamx/-/streamx-2.13.0.tgz#590ad191bf326d76175e1d223ecad3b240256d46" - integrity "sha1-WQrRkb8ybXYXXh0iPsrTskAlbUY= sha512-9jD4uoX0juNSIcv4PazT+97FpM4Mww3cp7PM23HRTLANhgb7K7n1mB45guH/kT5F4enl04kApOM3EeoUXSPfvw==" +streamx@^2.12.0, streamx@^2.12.5, streamx@^2.13.2, streamx@^2.14.0: + version "2.22.0" + resolved "https://registry.yarnpkg.com/streamx/-/streamx-2.22.0.tgz#cd7b5e57c95aaef0ff9b2aef7905afa62ec6e4a7" + integrity sha512-sLh1evHOzBy/iWRiR6d1zRcLao4gGZr3C1kzNz4fopCOKJb6xD9ub8Mpi9Mr1R6id5o43S+d93fI48UC5uM9aw== dependencies: - fast-fifo "^1.1.0" - queue-tick "^1.0.1" + fast-fifo "^1.3.2" + text-decoder "^1.1.0" + optionalDependencies: + bare-events "^2.2.0" strict-uri-encode@^2.0.0: version "2.0.0" @@ -15002,10 +14864,10 @@ tempy@^0.6.0: type-fest "^0.16.0" unique-string "^2.0.0" -terser@^5.17.4, terser@^5.37.0: - version "5.37.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.37.0.tgz#38aa66d1cfc43d0638fab54e43ff8a4f72a21ba3" - integrity sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA== +terser@^5.17.4, terser@^5.39.0: + version "5.39.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.39.0.tgz#0e82033ed57b3ddf1f96708d123cca717d86ca3a" + integrity sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -15021,6 +14883,13 @@ test-exclude@^6.0.0: glob "^7.1.4" minimatch "^3.0.4" +text-decoder@^1.1.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/text-decoder/-/text-decoder-1.2.3.tgz#b19da364d981b2326d5f43099c310cc80d770c65" + integrity sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA== + dependencies: + b4a "^1.6.4" + text-hex@1.0.x: version "1.0.0" resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5" @@ -15052,15 +14921,7 @@ throng@^5.0.0: dependencies: lodash "^4.17.20" -through2-filter@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/through2-filter/-/through2-filter-3.0.0.tgz#700e786df2367c2c88cd8aa5be4cf9c1e7831254" - integrity "sha1-cA54bfI2fCyIzYqlvkz5weeDElQ= sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==" - dependencies: - through2 "~2.0.0" - xtend "~4.0.0" - -through2@^2.0.0, through2@^2.0.1, through2@^2.0.3, through2@~2.0.0: +through2@^2.0.1: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" integrity "sha1-AcHjnrMdB8t9A6lqcIIyYLIxMs0= sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==" @@ -15068,13 +14929,6 @@ through2@^2.0.0, through2@^2.0.1, through2@^2.0.3, through2@~2.0.0: readable-stream "~2.3.6" xtend "~4.0.1" -through2@~4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/through2/-/through2-4.0.2.tgz#a7ce3ac2a7a8b0b966c80e7c49f0484c3b239764" - integrity "sha1-p846wqeosLlmyA58SfBITDsjl2Q= sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==" - dependencies: - readable-stream "3" - timers-ext@^0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/timers-ext/-/timers-ext-0.1.7.tgz#6f57ad8578e07a3fb9f91d9387d65647555e25c6" @@ -15150,14 +15004,6 @@ tmpl@1.0.5: resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" integrity "sha1-hoPguQK7nCDE9ybjwLafNlGMB8w= sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" -to-absolute-glob@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b" - integrity "sha1-GGX0PZ50sIItufFFt4z/fQ98hJs= sha512-rtwLUQEwT8ZeKQbyFJyomBRYXyE16U5VKuy0ftxLMK/PZb2fkOsg5r9kHdauuVDbsNdIBoC/HCthpidamQFXYA==" - dependencies: - is-absolute "^1.0.0" - is-negated-glob "^1.0.0" - to-fast-properties@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" @@ -15170,12 +15016,12 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -to-through@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-through/-/to-through-2.0.0.tgz#fc92adaba072647bc0b67d6b03664aa195093af6" - integrity "sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY= sha512-+QIz37Ly7acM4EMdw2PRN389OneM5+d844tirkGp4dPKzI5OE72V9OsbFp+CIYJDahZ41ZV05hNtcPAQUAm9/Q==" +to-through@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/to-through/-/to-through-3.0.0.tgz#bf4956eaca5a0476474850a53672bed6906ace54" + integrity sha512-y8MN937s/HVhEoBU1SxfHC+wxCHkV1a9gW8eAdTadYh/bGyesZIVcbjI+mSpFbSVwQici/XjBjuUyri1dnXwBw== dependencies: - through2 "^2.0.3" + streamx "^2.12.5" toggle-selection@^1.0.6: version "1.0.6" @@ -15292,6 +15138,13 @@ tsscmp@1.0.6: resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.6.tgz#85b99583ac3589ec4bfef825b5000aa911d605eb" integrity "sha1-hbmVg6w1iexL/vgltQAKqRHWBes= sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==" +ttl-set@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ttl-set/-/ttl-set-1.0.0.tgz#e7895d946ad9cedfadcf6e3384ea97322a86dd3b" + integrity sha512-2fuHn/UR+8Z9HK49r97+p2Ru1b5Eewg2QqPrU14BVCQ9QoyU3+vLLZk2WEiyZ9sgJh6W8G1cZr9I2NBLywAHrA== + dependencies: + fast-fifo "^1.3.2" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -15350,7 +15203,7 @@ type-fest@^4.0.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.20.1.tgz#d97bb1e923bf524e5b4b43421d586760fb2ee8be" integrity sha512-R6wDsVsoS9xYOpy8vgeBlqpdOyzJ12HNfQhC/aAKWM3YoCV9TtunJzh/QpkMgeDhkoynDcw5f1y+qF9yc/HHyg== -type-is@^1.6.16: +type-is@^1.6.16, type-is@^1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" integrity "sha1-TlUs0F3wlGfcvE73Od6J8s83wTE= sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==" @@ -15418,15 +15271,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" -typescript@^4.2.4: - version "4.7.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" - integrity "sha1-GohZbRz0fVlQehvN+1ud/k1IgjU= sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==" - -typescript@^5.7.2: - version "5.7.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" - integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== +typescript@^5.0.4, typescript@^5.7.3: + version "5.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4" + integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ== uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" @@ -15481,11 +15329,6 @@ unbox-primitive@^1.1.0: has-symbols "^1.1.0" which-boxed-primitive "^1.1.1" -unc-path-regex@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" - integrity "sha1-5z3T17DXxe2G+6xrCufYxqadUPo= sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==" - undefsafe@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.5.tgz#38733b9327bdcd226db889fb723a6efd162e6e2c" @@ -15532,14 +15375,6 @@ unicode-property-aliases-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" integrity "sha1-Q9QeO+aYvUk++REHfJsTH4J+jM0= sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==" -unique-stream@^2.0.2: - version "2.3.1" - resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.3.1.tgz#c65d110e9a4adf9a6c5948b28053d9a8d04cbeac" - integrity "sha1-xl0RDppK35psWUiygFPZqNBMvqw= sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==" - dependencies: - json-stable-stringify-without-jsonify "^1.0.1" - through2-filter "^3.0.0" - unique-string@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" @@ -15613,29 +15448,14 @@ url-parse@^1.4.3, url-parse@^1.5.3: querystringify "^2.1.1" requires-port "^1.0.0" -use-callback-ref@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.3.0.tgz#772199899b9c9a50526fedc4993fc7fa1f7e32d5" - integrity "sha1-dyGZiZucmlBSb+3EmT/H+h9+MtU= sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==" - dependencies: - tslib "^2.0.0" - -use-callback-ref@^1.3.3: +use-callback-ref@^1.3.0, use-callback-ref@^1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.3.3.tgz#98d9fab067075841c5b2c6852090d5d0feabe2bf" integrity sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg== dependencies: tslib "^2.0.0" -use-sidecar@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.1.2.tgz#2f43126ba2d7d7e117aa5855e5d8f0276dfe73c2" - integrity "sha1-L0MSa6LX1+EXqlhV5djwJ23+c8I= sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==" - dependencies: - detect-node-es "^1.1.0" - tslib "^2.0.0" - -use-sidecar@^1.1.3: +use-sidecar@^1.1.2, use-sidecar@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.1.3.tgz#10e7fd897d130b896e2c546c63a5e8233d00efdb" integrity sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ== @@ -15692,10 +15512,10 @@ value-equal@^1.0.1: resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c" integrity "sha1-Hgt5THNMXAyt4XnEN9NW2TGjTWw= sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" -value-or-function@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/value-or-function/-/value-or-function-3.0.0.tgz#1c243a50b595c1be54a754bfece8563b9ff8d813" - integrity "sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM= sha512-jdBB2FrWvQC/pnPtIqcLsMaQgjhdb6B7tk1MMyTKapox+tQZbdRP4uLxu/JY0t7fbfDCUMnuelzEYv5GsxHhdg==" +value-or-function@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/value-or-function/-/value-or-function-4.0.0.tgz#70836b6a876a010dc3a2b884e7902e9db064378d" + integrity sha512-aeVK81SIuT6aMJfNo9Vte8Dw0/FZINGBV8BfCraGtqVxIeLAEhJyoWs8SmvRVmXfGss2PmmOwZCuBPbZR+IYWg== vary@^1, vary@^1.1.2: version "1.1.2" @@ -15709,43 +15529,47 @@ vaul@^1.1.2: dependencies: "@radix-ui/react-dialog" "^1.1.1" -vinyl-fs@^3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/vinyl-fs/-/vinyl-fs-3.0.3.tgz#c85849405f67428feabbbd5c5dbdd64f47d31bc7" - integrity "sha1-yFhJQF9nQo/qu71cXb3WT0fTG8c= sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==" +vinyl-contents@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/vinyl-contents/-/vinyl-contents-2.0.0.tgz#cc2ba4db3a36658d069249e9e36d9e2b41935d89" + integrity sha512-cHq6NnGyi2pZ7xwdHSW1v4Jfnho4TEGtxZHw01cmnc8+i7jgR6bRnED/LbrKan/Q7CvVLbnvA5OepnhbpjBZ5Q== dependencies: - fs-mkdirp-stream "^1.0.0" - glob-stream "^6.1.0" - graceful-fs "^4.0.0" + bl "^5.0.0" + vinyl "^3.0.0" + +vinyl-fs@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/vinyl-fs/-/vinyl-fs-4.0.0.tgz#06cb36efc911c6e128452f230b96584a9133c3a1" + integrity sha512-7GbgBnYfaquMk3Qu9g22x000vbYkOex32930rBnc3qByw6HfMEAoELjCjoJv4HuEQxHAurT+nvMHm6MnJllFLw== + dependencies: + fs-mkdirp-stream "^2.0.1" + glob-stream "^8.0.0" + graceful-fs "^4.2.11" + iconv-lite "^0.6.3" is-valid-glob "^1.0.0" - lazystream "^1.0.0" - lead "^1.0.0" - object.assign "^4.0.4" - pumpify "^1.3.5" - readable-stream "^2.3.3" - remove-bom-buffer "^3.0.0" - remove-bom-stream "^1.2.0" - resolve-options "^1.1.0" - through2 "^2.0.0" - to-through "^2.0.0" - value-or-function "^3.0.0" - vinyl "^2.0.0" - vinyl-sourcemap "^1.1.0" + lead "^4.0.0" + normalize-path "3.0.0" + resolve-options "^2.0.0" + stream-composer "^1.0.2" + streamx "^2.14.0" + to-through "^3.0.0" + value-or-function "^4.0.0" + vinyl "^3.0.0" + vinyl-sourcemap "^2.0.0" -vinyl-sourcemap@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz#92a800593a38703a8cdb11d8b300ad4be63b3e16" - integrity "sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY= sha512-NiibMgt6VJGJmyw7vtzhctDcfKch4e4n9TBeoWlirb7FMg9/1Ov9k+A5ZRAtywBpRPiyECvQRQllYM8dECegVA==" +vinyl-sourcemap@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/vinyl-sourcemap/-/vinyl-sourcemap-2.0.0.tgz#422f410a0ea97cb54cebd698d56a06d7a22e0277" + integrity sha512-BAEvWxbBUXvlNoFQVFVHpybBbjW1r03WhohJzJDSfgrrK5xVYIDTan6xN14DlyImShgDRv2gl9qhM6irVMsV0Q== dependencies: - append-buffer "^1.0.2" - convert-source-map "^1.5.0" - graceful-fs "^4.1.6" - normalize-path "^2.1.1" - now-and-later "^2.0.0" - remove-bom-buffer "^3.0.0" - vinyl "^2.0.0" + convert-source-map "^2.0.0" + graceful-fs "^4.2.10" + now-and-later "^3.0.0" + streamx "^2.12.5" + vinyl "^3.0.0" + vinyl-contents "^2.0.0" -vinyl@^2.0.0, vinyl@^2.0.1: +vinyl@^2.0.1: version "2.2.1" resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.2.1.tgz#23cfb8bbab5ece3803aa2c0a1eb28af7cbba1974" integrity "sha1-I8+4u6tezjgDqiwKHrKK98u6GXQ= sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==" @@ -15757,7 +15581,7 @@ vinyl@^2.0.0, vinyl@^2.0.1: remove-trailing-separator "^1.0.1" replace-ext "^1.0.0" -vinyl@~3.0.0: +vinyl@^3.0.0, vinyl@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-3.0.0.tgz#11e14732bf56e2faa98ffde5157fe6c13259ff30" integrity "sha1-EeFHMr9W4vqpj/3lFX/mwTJZ/zA= sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==" @@ -16278,7 +16102,7 @@ xmlhttprequest-ssl@~2.1.1: resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.1.tgz#0d045c3b2babad8e7db1af5af093f5d0d60df99a" integrity sha512-ptjR8YSJIXoA3Mbv5po7RtSYHO6mZr8s7i5VGmEk7QY2pQWyT1o0N+W1gKbOyJPUCGXGnuw0wqe8f0L6Y0ny7g== -xtend@^4.0.0, xtend@^4.0.2, xtend@~4.0.0, xtend@~4.0.1: +xtend@^4.0.0, xtend@^4.0.2, xtend@~4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity "sha1-u3J3n1+kZRhrH0OPZ0+jR/2121Q= sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="