diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 37169b47a5..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,183 +0,0 @@ -version: 2.1 - -defaults: &defaults - working_directory: ~/outline - docker: - - image: cimg/node:20.10 - resource_class: large - environment: - NODE_ENV: test - DATABASE_URL: postgres://postgres:password@localhost:5432/circle_test - URL: http://localhost:3000 - NODE_OPTIONS: --max-old-space-size=8000 - -executors: - docker-publisher: - environment: - IMAGE_NAME: outlinewiki/outline - BASE_IMAGE_NAME: outlinewiki/outline-base - docker: - - image: circleci/buildpack-deps:stretch - -jobs: - build: - <<: *defaults - steps: - - checkout - - restore_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - - run: - name: install-deps - command: yarn install --frozen-lockfile - - save_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - paths: - - ./node_modules - lint: - <<: *defaults - steps: - - checkout - - restore_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - - run: - name: lint - command: yarn lint - types: - <<: *defaults - steps: - - checkout - - restore_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - - run: - name: typescript - command: yarn tsc - test-app: - <<: *defaults - steps: - - checkout - - restore_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - - run: - name: test - command: yarn test:app - test-shared: - <<: *defaults - steps: - - checkout - - restore_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - - run: - name: test - command: yarn test:shared - test-server: - <<: *defaults - parallelism: 3 - docker: - - image: cimg/node:20.10 - - image: cimg/redis:5.0 - - image: cimg/postgres:14.2 - environment: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: password - POSTGRES_DB: circle_test - steps: - - checkout - - restore_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - - run: - name: migrate - command: ./node_modules/.bin/sequelize db:migrate - - run: - name: test - command: | - TESTFILES=$(circleci tests glob "**/server/**/*.test.ts" | circleci tests split) - yarn test --maxWorkers=2 $TESTFILES - bundle-size: - <<: *defaults - environment: - NODE_ENV: production - steps: - - checkout - - restore_cache: - key: dependency-cache-v1-{{ checksum "package.json" }} - - run: - name: build-vite - command: yarn vite:build - - run: - name: Send bundle stats to RelativeCI - command: npx relative-ci-agent - build-image: - executor: docker-publisher - steps: - - checkout - - setup_remote_docker - - run: - name: Install Docker buildx - command: | - mkdir -p ~/.docker/cli-plugins - url="https://github.com/docker/buildx/releases/download/v0.8.0/buildx-v0.8.0.linux-amd64" - curl -sSL -o ~/.docker/cli-plugins/docker-buildx $url - chmod a+x ~/.docker/cli-plugins/docker-buildx - - run: - name: Enable Docker buildx - command: export DOCKER_CLI_EXPERIMENTAL=enabled - - run: - name: Initialize Docker buildx - command: | - docker buildx install - docker context create docker-multiarch - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - docker buildx create --name docker-multiarch --platform linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x docker-multiarch - docker buildx inspect --builder docker-multiarch --bootstrap - docker buildx use docker-multiarch - - run: - name: Build base image - command: docker build -f Dockerfile.base -t $BASE_IMAGE_NAME:latest --load . - - run: - name: Login to Docker Hub - command: echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin - - run: - name: Publish base Docker Image to Docker Hub - command: docker push $BASE_IMAGE_NAME:latest - - run: - name: Build and push Docker image - command: | - if [[ "$CIRCLE_TAG" == *"-"* ]]; then - docker buildx build -t $IMAGE_NAME:${CIRCLE_TAG/v/''} --platform linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x --push . - else - docker buildx build -t $IMAGE_NAME:latest -t $IMAGE_NAME:${CIRCLE_TAG/v/''} --platform linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x --push . - fi - -workflows: - version: 2 - all: - jobs: - - build - - lint: - requires: - - build - - test-server: - requires: - - build - - test-shared: - requires: - - build - - test-app: - requires: - - build - - types: - requires: - - build - - bundle-size: - requires: - - build - - types - - build-docker: - jobs: - - build-image: - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ diff --git a/.circleci/run-build-locally.sh b/.circleci/run-build-locally.sh deleted file mode 100755 index 6be7ab91c3..0000000000 --- a/.circleci/run-build-locally.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -curl --user ${CIRCLE_TOKEN}: \ - --request POST \ - --form revision=\ - --form config=@config.yml \ - --form notify=false \ - https://circleci.com/api/v1.1/project/github/outline/outline/tree/master \ No newline at end of file diff --git a/.env.development b/.env.development index 2edaa9d124..3844bd5c93 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,8 @@ URL=https://local.outline.dev:3000 +DATABASE_URL=postgres://user:pass@127.0.0.1:5432/outline +REDIS_URL=redis://127.0.0.1:6379 + SMTP_FROM_EMAIL=hello@example.com # Enable unsafe-inline in script-src CSP directive diff --git a/.env.sample b/.env.sample index eb57ad85c6..51046501da 100644 --- a/.env.sample +++ b/.env.sample @@ -12,14 +12,14 @@ UTILS_SECRET=generate_a_new_key # For production point these at your databases, in development the default # should work out of the box. -DATABASE_URL=postgres://user:pass@localhost:5432/outline +DATABASE_URL=postgres://user:pass@postgres:5432/outline DATABASE_CONNECTION_POOL_MIN= DATABASE_CONNECTION_POOL_MAX= # Uncomment this to disable SSL for connecting to Postgres # PGSSLMODE=disable # For redis you can either specify an ioredis compatible url like this -REDIS_URL=redis://localhost:6379 +REDIS_URL=redis://redis:6379 # or alternatively, if you would like to provide additional connection options, # use a base64 encoded JSON connection option object. Refer to the ioredis documentation # for a list of available options. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..ff2eb0afcd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,163 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + NODE_ENV: test + DATABASE_URL: postgres://postgres:password@localhost:5432/outline_test + REDIS_URL: redis://127.0.0.1:6379 + URL: http://localhost:3000 + NODE_OPTIONS: --max-old-space-size=8000 + SECRET_KEY: F0E5AD933D7F6FD8F4DBB3E038C501C052DC0593C686D21ACB30AE205D2F634B + UTILS_SECRET: 123456 + SLACK_VERIFICATION_TOKEN: 123456 + SMTP_USERNAME: localhost + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + lint: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn lint + + types: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn tsc + + changes: + runs-on: ubuntu-latest + outputs: + server: ${{ steps.filter.outputs.server }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + server: + - 'server/**' + - 'shared/**' + - 'package.json' + - 'yarn.lock' + app: + - 'app/**' + - 'shared/**' + - 'package.json' + - 'yarn.lock' + + test: + needs: build + if: ${{ needs.changes.outputs.app == 'true' }} + runs-on: ubuntu-latest + strategy: + matrix: + test-group: [app, shared] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn test:${{ matrix.test-group }} + + test-server: + needs: [build, changes] + if: ${{ needs.changes.outputs.server == 'true' }} + runs-on: ubuntu-latest + services: + postgres: + image: postgres:14.2 + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: password + POSTGRES_DB: outline_test + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + redis: + image: redis:5.0 + ports: + - 6379:6379 + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + strategy: + matrix: + shard: [1, 2, 3] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn sequelize db:migrate + - name: Run server tests + run: | + TESTFILES=$(find . -name "*.test.ts" -path "*/server/*" | sort | split -n -d -l $(($(find . -name "*.test.ts" -path "*/server/*" | wc -l)/${{ matrix.shard }})) - | sed -n "${{ matrix.shard }}p") + yarn test --maxWorkers=2 $TESTFILES + + bundle-size: + needs: [build, types] + if: ${{ needs.changes.outputs.app == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'yarn' + - run: yarn install --frozen-lockfile + - name: Set environment to production + run: echo "NODE_ENV=production" >> $GITHUB_ENV + - run: yarn vite:build + - name: Send bundle stats to RelativeCI + uses: relative-ci/agent-action@v2 + with: + key: ${{ secrets.RELATIVE_CI_KEY }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000000..0d58a68228 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,52 @@ +name: Docker + +on: + push: + tags: + - 'v*' + +env: + IMAGE_NAME: outlinewiki/outline + BASE_IMAGE_NAME: outlinewiki/outline-base + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push base image + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.base + push: true + tags: ${{ env.BASE_IMAGE_NAME }}:latest + platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x + + - name: Extract version + id: version + run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + + - name: Build and push main image + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x + tags: | + ${{ env.IMAGE_NAME }}:latest + ${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 059983d619..4675694bf5 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -24,6 +24,6 @@ jobs: operations-per-run: 60 stale-issue-label: stale stale-pr-label: stale - exempt-issue-labels: "security,pinned" + exempt-issue-labels: "security,pinned,A1" - name: Print outputs run: echo ${{ join(steps.stale.outputs.*, ',') }} diff --git a/LICENSE b/LICENSE index 9d9a38ed1b..3eeb03aa9a 100644 --- a/LICENSE +++ b/LICENSE @@ -3,8 +3,8 @@ Business Source License 1.1 Parameters Licensor: General Outline, Inc. -Licensed Work: Outline 0.81.0 - The Licensed Work is (c) 2024 General Outline, Inc. +Licensed Work: Outline 0.82.0 + The Licensed Work is (c) 2025 General Outline, Inc. Additional Use Grant: You may make use of the Licensed Work, provided that you may not use the Licensed Work for a Document Service. @@ -15,7 +15,7 @@ Additional Use Grant: You may make use of the Licensed Work, provided that Licensed Work by creating teams and documents controlled by such third parties. -Change Date: 2028-11-11 +Change Date: 2029-02-15 Change License: Apache License, Version 2.0 diff --git a/app/actions/definitions/collections.tsx b/app/actions/definitions/collections.tsx index d0f4af5890..f7fb12910d 100644 --- a/app/actions/definitions/collections.tsx +++ b/app/actions/definitions/collections.tsx @@ -8,12 +8,13 @@ import { SearchIcon, ShapesIcon, StarredIcon, + SubscribeIcon, TrashIcon, UnstarredIcon, + UnsubscribeIcon, } 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"; @@ -60,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({ @@ -76,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; } @@ -102,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; } @@ -133,7 +134,7 @@ export const searchInCollection = createAction({ analyticsName: "Search collection", section: ActiveCollectionSection, icon: , - visible: ({ activeCollectionId }) => { + visible: ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return false; } @@ -158,7 +159,7 @@ export const starCollection = createAction({ section: ActiveCollectionSection, icon: , keywords: "favorite bookmark", - visible: ({ activeCollectionId }) => { + visible: ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return false; } @@ -168,7 +169,7 @@ export const starCollection = createAction({ stores.policies.abilities(activeCollectionId).star ); }, - perform: async ({ activeCollectionId }) => { + perform: async ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return; } @@ -185,7 +186,7 @@ export const unstarCollection = createAction({ section: ActiveCollectionSection, icon: , keywords: "unfavorite unbookmark", - visible: ({ activeCollectionId }) => { + visible: ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return false; } @@ -195,7 +196,7 @@ export const unstarCollection = createAction({ stores.policies.abilities(activeCollectionId).unstar ); }, - perform: async ({ activeCollectionId }) => { + perform: async ({ activeCollectionId, stores }) => { if (!activeCollectionId) { return; } @@ -205,6 +206,66 @@ export const unstarCollection = createAction({ }, }); +export const subscribeCollection = createAction({ + name: ({ t }) => t("Subscribe"), + analyticsName: "Subscribe to collection", + section: ActiveCollectionSection, + icon: , + visible: ({ activeCollectionId, stores }) => { + if (!activeCollectionId) { + return false; + } + + const collection = stores.collections.get(activeCollectionId); + + return ( + !collection?.isSubscribed && + stores.policies.abilities(activeCollectionId).subscribe + ); + }, + perform: async ({ activeCollectionId, stores, t }) => { + if (!activeCollectionId) { + return; + } + + const collection = stores.collections.get(activeCollectionId); + + await collection?.subscribe(); + + toast.success(t("Subscribed to document notifications")); + }, +}); + +export const unsubscribeCollection = createAction({ + name: ({ t }) => t("Unsubscribe"), + analyticsName: "Unsubscribe from collection", + section: ActiveCollectionSection, + icon: , + visible: ({ activeCollectionId, stores }) => { + if (!activeCollectionId) { + return false; + } + + const collection = stores.collections.get(activeCollectionId); + + return ( + !!collection?.isSubscribed && + stores.policies.abilities(activeCollectionId).unsubscribe + ); + }, + perform: async ({ activeCollectionId, currentUserId, stores, t }) => { + if (!activeCollectionId || !currentUserId) { + return; + } + + const collection = stores.collections.get(activeCollectionId); + + await collection?.unsubscribe(); + + toast.success(t("Unsubscribed from document notifications")); + }, +}); + export const archiveCollection = createAction({ name: ({ t }) => `${t("Archive")}…`, analyticsName: "Archive collection", @@ -277,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; } @@ -311,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 @@ -331,5 +392,7 @@ export const rootCollectionActions = [ createCollection, starCollection, unstarCollection, + subscribeCollection, + unsubscribeCollection, deleteCollection, ]; diff --git a/app/actions/definitions/developer.tsx b/app/actions/definitions/developer.tsx index e0d32e7594..af4f2dca2a 100644 --- a/app/actions/definitions/developer.tsx +++ b/app/actions/definitions/developer.tsx @@ -2,6 +2,7 @@ import copy from "copy-to-clipboard"; import { BeakerIcon, CopyIcon, + EditIcon, ToolsIcon, TrashIcon, UserIcon, @@ -83,6 +84,38 @@ export const copyId = createAction({ }, }); +function generateRandomText() { + const characters = + "abcdefghijklmno pqrstuvwxyzABCDEFGHIJKL MNOPQRSTUVWXYZ 0123456789\n"; + let text = ""; + for (let i = 0; i < Math.floor(Math.random() * 10) + 1; i++) { + text += characters.charAt(Math.floor(Math.random() * characters.length)); + } + return text; +} + +export const startTyping = createAction({ + name: "Start automatic typing", + icon: , + section: DeveloperSection, + visible: ({ activeDocumentId }) => + !!activeDocumentId && env.ENVIRONMENT === "development", + perform: () => { + const intervalId = setInterval(() => { + const text = generateRandomText(); + document.execCommand("insertText", false, text); + }, 250); + + window.addEventListener("keydown", (event) => { + if (event.key === "Escape") { + intervalId && clearInterval(intervalId); + } + }); + + toast.info("Automatic typing started, press Escape to stop"); + }, +}); + export const clearIndexedDB = createAction({ name: ({ t }) => t("Clear IndexedDB cache"), icon: , @@ -169,6 +202,7 @@ export const developer = createAction({ createToast, createTestUsers, clearIndexedDB, + startTyping, ], }); diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index 2b26305f01..165c526b03 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -125,6 +125,20 @@ export const createDocument = createAction({ }), }); +export const createDraftDocument = createAction({ + name: ({ t }) => t("New draft"), + analyticsName: "New document", + section: DocumentSection, + icon: , + keywords: "create document", + visible: ({ currentTeamId, stores }) => + !!currentTeamId && stores.policies.abilities(currentTeamId).createDocument, + perform: ({ sidebarContext }) => + history.push(newDocumentPath(), { + sidebarContext, + }), +}); + export const createDocumentFromTemplate = createAction({ name: ({ t }) => t("New from template"), analyticsName: "New document", @@ -319,6 +333,7 @@ export const subscribeDocument = createAction({ const document = stores.documents.get(activeDocumentId); return ( + !document?.collection?.isSubscribed && !document?.isSubscribed && stores.policies.abilities(activeDocumentId).subscribe ); @@ -347,8 +362,9 @@ export const unsubscribeDocument = createAction({ const document = stores.documents.get(activeDocumentId); return ( - !!document?.isSubscribed && - stores.policies.abilities(activeDocumentId).unsubscribe + !!document?.collection?.isSubscribed || + (!!document?.isSubscribed && + stores.policies.abilities(activeDocumentId).unsubscribe) ); }, perform: async ({ activeDocumentId, stores, currentUserId, t }) => { @@ -358,7 +374,7 @@ export const unsubscribeDocument = createAction({ const document = stores.documents.get(activeDocumentId); - await document?.unsubscribe(currentUserId); + await document?.unsubscribe(); toast.success(t("Unsubscribed from document notifications")); }, @@ -667,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) { @@ -1179,6 +1196,8 @@ export const rootDocumentActions = [ openDocument, archiveDocument, createDocument, + createDraftDocument, + createNestedDocument, createTemplateFromDocument, deleteDocument, importDocument, @@ -1192,6 +1211,7 @@ export const rootDocumentActions = [ unpublishDocument, subscribeDocument, unsubscribeDocument, + searchInDocument, duplicateDocument, leaveDocument, moveTemplateToWorkspace, 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/Avatar/Initials.tsx b/app/components/Avatar/Initials.tsx index 10a9e78165..775e380e0c 100644 --- a/app/components/Avatar/Initials.tsx +++ b/app/components/Avatar/Initials.tsx @@ -1,3 +1,4 @@ +import { getLuminance } from "polished"; import styled from "styled-components"; import { s } from "@shared/styles"; import Flex from "~/components/Flex"; @@ -15,7 +16,10 @@ const Initials = styled(Flex)<{ border-radius: 50%; width: 100%; height: 100%; - color: ${s("white75")}; + color: ${(props) => + getLuminance(props.color ?? props.theme.textTertiary) > 0.5 + ? s("black50") + : s("white75")}; background-color: ${(props) => props.color ?? props.theme.textTertiary}; width: ${(props) => props.size}px; height: ${(props) => props.size}px; diff --git a/app/components/Collaborators.tsx b/app/components/Collaborators.tsx index e9adc999bf..c420d37349 100644 --- a/app/components/Collaborators.tsx +++ b/app/components/Collaborators.tsx @@ -78,6 +78,41 @@ function Collaborators(props: Props) { placement: "bottom-end", }); + const renderAvatar = React.useCallback( + ({ model: collaborator, ...rest }) => { + const isPresent = presentIds.includes(collaborator.id); + const isEditing = editingIds.includes(collaborator.id); + const isObserving = ui.observingUserId === collaborator.id; + const isObservable = collaborator.id !== currentUserId; + + return ( + { + if (isPresent) { + ev.preventDefault(); + ev.stopPropagation(); + ui.setObservingUser( + isObserving ? undefined : collaborator.id + ); + } + } + : undefined + } + /> + ); + }, + [presentIds, ui, currentUserId, editingIds] + ); + return ( <> @@ -92,37 +127,7 @@ function Collaborators(props: Props) { limit={limit} overflow={Math.max(0, collaborators.length - limit)} users={collaborators} - renderAvatar={({ model: collaborator, ...rest }) => { - const isPresent = presentIds.includes(collaborator.id); - const isEditing = editingIds.includes(collaborator.id); - const isObserving = ui.observingUserId === collaborator.id; - const isObservable = collaborator.id !== user.id; - - return ( - { - if (isPresent) { - ev.preventDefault(); - ev.stopPropagation(); - ui.setObservingUser( - isObserving ? undefined : collaborator.id - ); - } - } - : undefined - } - /> - ); - }} + renderAvatar={renderAvatar} /> )} diff --git a/app/components/CollectionDescription.tsx b/app/components/CollectionDescription.tsx index c3897dca0c..2b76f4dd84 100644 --- a/app/components/CollectionDescription.tsx +++ b/app/components/CollectionDescription.tsx @@ -6,6 +6,7 @@ import { toast } from "sonner"; import styled from "styled-components"; import { richExtensions } from "@shared/editor/nodes"; import { s } from "@shared/styles"; +import { CollectionValidation } from "@shared/validations"; import Collection from "~/models/Collection"; import Editor from "~/components/Editor"; import LoadingIndicator from "~/components/LoadingIndicator"; @@ -61,7 +62,7 @@ function CollectionDescription({ collection }: Props) { onChange={handleSave} placeholder={`${t("Add a description")}…`} extensions={extensions} - maxLength={1000} + maxLength={CollectionValidation.maxDescriptionLength} canUpdate={can.update} readOnly={!can.update} editorStyle={editorStyle} 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/ConfirmMoveDialog.tsx b/app/components/ConfirmMoveDialog.tsx index e7b3371700..61058db644 100644 --- a/app/components/ConfirmMoveDialog.tsx +++ b/app/components/ConfirmMoveDialog.tsx @@ -1,10 +1,12 @@ import { observer } from "mobx-react"; import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; +import { toast } from "sonner"; import { CollectionPermission, NavigationNode } from "@shared/types"; import type Collection from "~/models/Collection"; import ConfirmationDialog from "~/components/ConfirmationDialog"; import useStores from "~/hooks/useStores"; +import { AuthorizationError } from "~/utils/errors"; type Props = { /** The navigation node to move, must represent a document. */ @@ -30,12 +32,29 @@ function ConfirmMoveDialog({ collection, item, ...rest }: Props) { }; const handleSubmit = async () => { - await documents.move({ - documentId: item.id, - collectionId: collection.id, - ...rest, - }); - dialogs.closeAllModals(); + try { + await documents.move({ + documentId: item.id, + collectionId: collection.id, + ...rest, + }); + } catch (err) { + if (err instanceof AuthorizationError) { + toast.error( + t( + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", + { + documentName: item.title, + collectionName: collection.name, + } + ) + ); + } else { + toast.error(err.message); + } + } finally { + dialogs.closeAllModals(); + } }; return ( 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/ContextMenu/Template.tsx b/app/components/ContextMenu/Template.tsx index cb4bf7c191..9dafb79759 100644 --- a/app/components/ContextMenu/Template.tsx +++ b/app/components/ContextMenu/Template.tsx @@ -20,6 +20,7 @@ import { MenuHeading, MenuItem as TMenuItem, } from "~/types"; +import Tooltip from "../Tooltip"; import Header from "./Header"; import MenuItem, { MenuAnchor } from "./MenuItem"; import MouseSafeArea from "./MouseSafeArea"; @@ -167,7 +168,7 @@ function Template({ items, actions, context, showIcons, ...menu }: Props) { } if (item.type === "button") { - return ( + const menuItem = ( ); + + return item.tooltip ? ( + +
{menuItem}
+
+ ) : ( + <>{menuItem} + ); } if (item.type === "submenu") { diff --git a/app/components/DocumentBreadcrumb.tsx b/app/components/DocumentBreadcrumb.tsx index 4fe98a1c68..b5b3e7ca1c 100644 --- a/app/components/DocumentBreadcrumb.tsx +++ b/app/components/DocumentBreadcrumb.tsx @@ -105,14 +105,15 @@ function DocumentBreadcrumb( } path.slice(0, -1).forEach((node: NavigationNode) => { + const title = node.title || t("Untitled"); output.push({ type: "route", title: node.icon ? ( <> - {node.title} + {title} ) : ( - node.title + title ), to: { pathname: node.url, @@ -121,7 +122,7 @@ function DocumentBreadcrumb( }); }); return output; - }, [path, category, sidebarContext, collectionNode]); + }, [t, path, category, sidebarContext, collectionNode]); if (!collections.isLoaded) { return null; @@ -134,7 +135,7 @@ function DocumentBreadcrumb( {path.slice(0, -1).map((node: NavigationNode) => ( - {node.title} + {node.title || t("Untitled")} ))} diff --git a/app/components/DocumentExplorer.tsx b/app/components/DocumentExplorer.tsx index 677f6d9dd4..9d3b3da813 100644 --- a/app/components/DocumentExplorer.tsx +++ b/app/components/DocumentExplorer.tsx @@ -15,7 +15,7 @@ import scrollIntoView from "scroll-into-view-if-needed"; import styled, { useTheme } from "styled-components"; import breakpoint from "styled-components-breakpoint"; import Icon from "@shared/components/Icon"; -import { NavigationNode } from "@shared/types"; +import { NavigationNode, NavigationNodeType } from "@shared/types"; import { isModKey } from "@shared/utils/keyboard"; import DocumentExplorerNode from "~/components/DocumentExplorerNode"; import DocumentExplorerSearchResult from "~/components/DocumentExplorerSearchResult"; @@ -78,6 +78,10 @@ function DocumentExplorer({ onSubmit, onSelect, items, defaultValue }: Props) { const VERTICAL_PADDING = 6; const HORIZONTAL_PADDING = 24; + const recentlyViewedItemIds = documents.recentlyViewed + .slice(0, 5) + .map((item) => item.id); + const searchIndex = React.useMemo( () => new FuzzySearch(items, ["title"], { @@ -126,11 +130,18 @@ function DocumentExplorer({ onSubmit, onSelect, items, defaultValue }: Props) { return searchTerm ? searchIndex.search(searchTerm) : items - .filter((item) => item.type === "collection") + .filter((item) => recentlyViewedItemIds.includes(item.id)) + .concat( + items.filter((item) => item.type === NavigationNodeType.Collection) + ) .flatMap(includeDescendants); } const nodes = getNodes(); + const baseDepth = nodes.reduce( + (min, node) => (node.depth ? Math.min(min, node.depth) : min), + Infinity + ); const scrollNodeIntoView = React.useCallback( (node: number) => { @@ -304,7 +315,7 @@ function DocumentExplorer({ onSubmit, onSelect, items, defaultValue }: Props) { expanded={isExpanded(index)} icon={renderedIcon} title={title} - depth={node.depth as number} + depth={(node.depth ?? 0) - baseDepth} hasChildren={hasChildren(index)} ref={itemRefs[index]} /> diff --git a/app/components/DocumentExplorerNode.tsx b/app/components/DocumentExplorerNode.tsx index 2d1127d1d2..f31b463b3c 100644 --- a/app/components/DocumentExplorerNode.tsx +++ b/app/components/DocumentExplorerNode.tsx @@ -41,9 +41,9 @@ function DocumentExplorerNode( ) { const { t } = useTranslation(); const OFFSET = 12; - const ICON_SIZE = 24; + const DISCLOSURE = 20; - const width = depth ? depth * ICON_SIZE + OFFSET : ICON_SIZE; + const width = depth ? depth * DISCLOSURE + OFFSET : DISCLOSURE; return ( Promise; +type Props = Omit, "onSubmit"> & { + /** A callback when the title is submitted. */ + onSubmit: (title: string) => Promise | void; + /** A callback when the editing status changes. */ onEditing?: (isEditing: boolean) => void; + /** A callback when editing is canceled. */ + onCancel?: () => void; + /** The default title. */ title: string; + /** Whether the user can update the title. */ canUpdate: boolean; + /** The maximum length of the title. */ maxLength?: number; + /** The default editing state. */ + isEditing?: boolean; }; export type RefHandle = { + /** A function to set the editing state. */ setIsEditing: (isEditing: boolean) => void; }; function EditableTitle( - { title, onSubmit, canUpdate, onEditing, ...rest }: Props, + { title, onSubmit, canUpdate, onEditing, onCancel, ...rest }: Props, ref: React.RefObject ) { - const [isEditing, setIsEditing] = React.useState(false); + const [isEditing, setIsEditing] = React.useState(rest.isEditing || false); const [originalValue, setOriginalValue] = React.useState(title); const [value, setValue] = React.useState(title); @@ -59,21 +69,20 @@ function EditableTitle( if (trimmedValue === originalValue || trimmedValue.length === 0) { setValue(originalValue); + onCancel?.(); 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, onSubmit] + [originalValue, value, onCancel, onSubmit] ); const handleKeyDown = React.useCallback( @@ -83,13 +92,14 @@ function EditableTitle( } if (ev.key === "Escape") { setIsEditing(false); + onCancel?.(); setValue(originalValue); } if (ev.key === "Enter") { await handleSave(ev); } }, - [handleSave, originalValue] + [handleSave, onCancel, originalValue] ); React.useEffect(() => { @@ -115,7 +125,10 @@ function EditableTitle( /> ) : ( - + {value} )} diff --git a/app/components/Editor.tsx b/app/components/Editor.tsx index 4080fe4497..c80702d38f 100644 --- a/app/components/Editor.tsx +++ b/app/components/Editor.tsx @@ -199,15 +199,14 @@ function Editor(props: Props, ref: React.RefObject | null) { placeholder={props.placeholder || ""} defaultValue={props.defaultValue || ""} /> - {props.editorStyle?.paddingBottom && - (!props.readOnly || props.shareId) && ( - - )} + {props.editorStyle?.paddingBottom && !props.readOnly && ( + + )} ); diff --git a/app/components/EventListItem.tsx b/app/components/EventListItem.tsx index 4c54151e2a..107b98b3fe 100644 --- a/app/components/EventListItem.tsx +++ b/app/components/EventListItem.tsx @@ -7,6 +7,9 @@ import { PublishIcon, MoveIcon, UnpublishIcon, + RestoreIcon, + UserIcon, + CrossIcon, } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; @@ -14,32 +17,61 @@ import { useLocation } from "react-router-dom"; import styled, { css } from "styled-components"; import EventBoundary from "@shared/components/EventBoundary"; import { s, hover } from "@shared/styles"; +import { RevisionHelper } from "@shared/utils/RevisionHelper"; import Document from "~/models/Document"; -import Event from "~/models/Event"; import { Avatar, AvatarSize } from "~/components/Avatar"; -import Item, { Actions, Props as ItemProps } from "~/components/List/Item"; +import Item, { Actions } from "~/components/List/Item"; import Time from "~/components/Time"; import { useLocationSidebarContext } from "~/hooks/useLocationSidebarContext"; import useStores from "~/hooks/useStores"; import RevisionMenu from "~/menus/RevisionMenu"; import Logger from "~/utils/Logger"; import { documentHistoryPath } from "~/utils/routeHelpers"; +import Text from "./Text"; + +export type RevisionEvent = { + name: "revisions.create"; + latest: boolean; +}; + +export type DocumentEvent = { + name: + | "documents.publish" + | "documents.unpublish" + | "documents.archive" + | "documents.unarchive" + | "documents.delete" + | "documents.restore" + | "documents.add_user" + | "documents.remove_user" + | "documents.move"; + userId: string; +}; + +export type Event = { id: string; actorId: string; createdAt: string } & ( + | RevisionEvent + | DocumentEvent +); type Props = { document: Document; - event: Event; - latest?: boolean; + event: Event; }; -const EventListItem = ({ event, latest, document, ...rest }: Props) => { +const EventListItem = ({ event, document, ...rest }: Props) => { const { t } = useTranslation(); - const { revisions } = useStores(); + const { revisions, users } = useStores(); + const actor = "actorId" in event ? users.get(event.actorId) : undefined; + const user = "userId" in event ? users.get(event.userId) : undefined; const location = useLocation(); const sidebarContext = useLocationSidebarContext(); + const revisionLoadedRef = React.useRef(false); const opts = { - userName: event.actor.name, + userName: actor?.name, }; const isRevision = event.name === "revisions.create"; + const isDerivedFromDocument = + event.id === RevisionHelper.latestId(document.id); let meta, icon, to: LocationDescriptor | undefined; const ref = React.useRef(null); @@ -50,23 +82,32 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { }; const prefetchRevision = async () => { - if (event.name === "revisions.create" && event.modelId) { - await revisions.fetch(event.modelId); + if ( + !document.isDeleted && + event.name === "revisions.create" && + !isDerivedFromDocument && + !revisionLoadedRef.current + ) { + await revisions.fetch(event.id, { force: true }); + revisionLoadedRef.current = true; } }; switch (event.name) { case "revisions.create": icon = ; - meta = latest ? ( + meta = event.latest ? ( <> - {t("Current version")} · {event.actor.name} + {t("Current version")} · {actor?.name} ) : ( t("{{userName}} edited", opts) ); to = { - pathname: documentHistoryPath(document, event.modelId || "latest"), + pathname: documentHistoryPath( + document, + isDerivedFromDocument ? "latest" : event.id + ), state: { sidebarContext, retainScrollPosition: true, @@ -75,47 +116,51 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { break; case "documents.archive": - icon = ; + icon = ; meta = t("{{userName}} archived", opts); break; case "documents.unarchive": + icon = ; meta = t("{{userName}} restored", opts); break; case "documents.delete": - icon = ; + icon = ; meta = t("{{userName}} deleted", opts); break; case "documents.add_user": + icon = ; meta = t("{{userName}} added {{addedUserName}}", { ...opts, - addedUserName: event.user?.name ?? t("a user"), + addedUserName: user?.name ?? t("a user"), }); break; case "documents.remove_user": + icon = ; meta = t("{{userName}} removed {{removedUserName}}", { ...opts, - removedUserName: event.user?.name ?? t("a user"), + removedUserName: user?.name ?? t("a user"), }); break; case "documents.restore": + icon = ; meta = t("{{userName}} moved from trash", opts); break; case "documents.publish": - icon = ; + icon = ; meta = t("{{userName}} published", opts); break; case "documents.unpublish": - icon = ; + icon = ; meta = t("{{userName}} unpublished", opts); break; case "documents.move": - icon = ; + icon = ; meta = t("{{userName}} moved", opts); break; @@ -136,8 +181,8 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { to = undefined; } - return ( - { onClick={handleTimeClick} /> } - image={} - subtitle={ - - {icon} - {meta} - - } + image={} + subtitle={meta} actions={ - isRevision && isActive && event.modelId && !latest ? ( + isRevision && isActive && !event.latest ? ( - + ) : undefined } @@ -171,63 +211,100 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { ref={ref} {...rest} /> + ) : ( + + + {icon} + + + {meta} ·{" "} + + ); }; -const BaseItem = React.forwardRef(function _BaseItem( - { to, ...rest }: ItemProps, - ref?: React.Ref -) { - return ; -}); +const lineStyle = css` + &::before { + content: ""; + display: block; + position: absolute; + top: -8px; + left: 22px; + width: 1px; + height: calc(50% - 14px + 8px); + background: ${s("divider")}; + mix-blend-mode: multiply; + z-index: 1; + } + + &:first-child::before { + display: none; + } + + &:nth-child(2)::before { + display: none; + } + + &::after { + content: ""; + display: block; + position: absolute; + top: calc(50% + 14px); + left: 22px; + width: 1px; + height: calc(50% - 14px); + background: ${s("divider")}; + mix-blend-mode: multiply; + z-index: 1; + } + + &:last-child::after { + display: none; + } + + h3 + &::before { + display: none; + } +`; + +const IconWrapper = styled(Text)` + height: 24px; +`; + +const EventItem = styled.li` + display: flex; + align-items: center; + gap: 8px; + list-style: none; + margin: 8px 0; + padding: 4px 10px; + white-space: nowrap; + position: relative; + + time { + white-space: nowrap; + } + + svg { + flex-shrink: 0; + } + + ${lineStyle} +`; const StyledEventBoundary = styled(EventBoundary)` height: 24px; `; -const Subtitle = styled.span` - svg { - margin: -3px; - margin-right: 2px; - } -`; - -const ItemStyle = css` +const RevisionItem = styled(Item)` border: 0; position: relative; margin: 8px 0; padding: 8px; border-radius: 8px; - img { - border-color: transparent; - } - - &::before { - content: ""; - display: block; - position: absolute; - top: -4px; - left: 23px; - width: 2px; - height: calc(100% + 8px); - background: ${s("textSecondary")}; - opacity: 0.25; - } - - &:nth-child(2)::before { - height: 50%; - top: auto; - bottom: -4px; - } - - &:last-child::before { - height: 50%; - } - - &:first-child:last-child::before { - display: none; - } + ${lineStyle} ${Actions} { opacity: 0.5; @@ -238,8 +315,4 @@ const ItemStyle = css` } `; -const ListItem = styled(Item)` - ${ItemStyle} -`; - export default observer(EventListItem); diff --git a/app/components/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/Header.tsx b/app/components/Header.tsx index 01dfc1f39c..75132712a2 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -6,12 +6,12 @@ import * as React from "react"; import { mergeRefs } from "react-merge-refs"; import styled from "styled-components"; import breakpoint from "styled-components-breakpoint"; +import { useComponentSize } from "@shared/hooks/useComponentSize"; import { depths, s } from "@shared/styles"; import { supportsPassiveListener } from "@shared/utils/browser"; import Button from "~/components/Button"; import Fade from "~/components/Fade"; import Flex from "~/components/Flex"; -import useComponentSize from "~/hooks/useComponentSize"; import useEventListener from "~/hooks/useEventListener"; import useMobile from "~/hooks/useMobile"; import useStores from "~/hooks/useStores"; diff --git a/app/components/HoverPreview/HoverPreviewLink.tsx b/app/components/HoverPreview/HoverPreviewLink.tsx index c1f429f4b7..c687952de9 100644 --- a/app/components/HoverPreview/HoverPreviewLink.tsx +++ b/app/components/HoverPreview/HoverPreviewLink.tsx @@ -27,7 +27,7 @@ const HoverPreviewLink = React.forwardRef(function _HoverPreviewLink( return ( - {thumbnailUrl ? : null} + {thumbnailUrl ? : null} 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/InputSelect.tsx b/app/components/InputSelect.tsx index 6552c84b8a..30bccef00c 100644 --- a/app/components/InputSelect.tsx +++ b/app/components/InputSelect.tsx @@ -48,7 +48,8 @@ export type Props = Omit, "onChange"> & { options: Option[]; /** @deprecated Removing soon, do not use. */ note?: React.ReactNode; - onChange?: (value: string | null) => void; + /** Callback function that is called when the value changes. Return false to cancel the change. */ + onChange?: (value: string | null) => void | Promise; style?: React.CSSProperties; /** * Set to true if this component is rendered inside a Modal. @@ -165,9 +166,18 @@ const InputSelect = (props: Props, ref: React.RefObject) => { if (previousValue.current === select.selectedValue) { return; } + const previous = previousValue.current; previousValue.current = select.selectedValue; - onChange?.(select.selectedValue); + const response = onChange?.(select.selectedValue); + if (response && response instanceof Promise) { + void response.then((success) => { + if (success === false) { + select.selectedValue = previous; + select.setSelectedValue(previous); + } + }); + } }, [onChange, select.selectedValue]); React.useLayoutEffect(() => { diff --git a/app/components/List/Item.tsx b/app/components/List/Item.tsx index 3f5e18de58..6e85abe0a4 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; `; 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/PaginatedEventList.tsx b/app/components/PaginatedEventList.tsx index ebfbe5e8fc..c7a5bdc025 100644 --- a/app/components/PaginatedEventList.tsx +++ b/app/components/PaginatedEventList.tsx @@ -1,16 +1,13 @@ import * as React from "react"; import styled from "styled-components"; import Document from "~/models/Document"; -import Event from "~/models/Event"; import PaginatedList from "~/components/PaginatedList"; -import EventListItem from "./EventListItem"; +import EventListItem, { type Event } from "./EventListItem"; type Props = { - events: Event[]; + events: Event[]; document: Document; - fetch: ( - options: Record | undefined - ) => Promise[]>; + fetch: (options: Record | undefined) => Promise; options?: Record; heading?: React.ReactNode; empty?: React.ReactNode; @@ -32,13 +29,8 @@ const PaginatedEventList = React.memo(function PaginatedEventList({ heading={heading} fetch={fetch} options={options} - renderItem={(item: Event, index) => ( - + renderItem={(item: Event) => ( + )} renderHeading={(name) => {name}} {...rest} diff --git a/app/components/PaginatedList.tsx b/app/components/PaginatedList.tsx index 1784b2177f..ea7b9f86eb 100644 --- a/app/components/PaginatedList.tsx +++ b/app/components/PaginatedList.tsx @@ -60,7 +60,7 @@ class PaginatedList extends React.PureComponent< fetchCounter = 0; @observable - renderCount = 15; + renderCount = Pagination.defaultLimit; @observable offset = 0; @@ -108,13 +108,16 @@ class PaginatedList extends React.PureComponent< ...this.props.options, }); + if (this.offset !== 0) { + this.renderCount += limit; + } + if (results && (results.length === 0 || results.length < limit)) { this.allowLoadMore = false; } else { this.offset += limit; } - this.renderCount += limit; this.isFetchingInitial = false; } catch (err) { this.error = err; @@ -248,7 +251,9 @@ class PaginatedList extends React.PureComponent< }} {this.allowLoadMore && ( - +
+ +
)} ); diff --git a/app/components/ResizingHeightContainer.tsx b/app/components/ResizingHeightContainer.tsx index 8f6ef7045a..776af15225 100644 --- a/app/components/ResizingHeightContainer.tsx +++ b/app/components/ResizingHeightContainer.tsx @@ -1,7 +1,7 @@ import { m, TargetAndTransition } from "framer-motion"; import * as React from "react"; import { mergeRefs } from "react-merge-refs"; -import useComponentSize from "~/hooks/useComponentSize"; +import { useComponentSize } from "@shared/hooks/useComponentSize"; type Props = { /** The children to render */ diff --git a/app/components/Sharing/Collection/AccessControlList.tsx b/app/components/Sharing/Collection/AccessControlList.tsx index b5d20cf579..63cf62c5fe 100644 --- a/app/components/Sharing/Collection/AccessControlList.tsx +++ b/app/components/Sharing/Collection/AccessControlList.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import { UserIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; +import { toast } from "sonner"; import styled, { useTheme } from "styled-components"; import Squircle from "@shared/components/Squircle"; import { CollectionPermission } from "@shared/types"; @@ -167,18 +168,24 @@ export const AccessControlList = observer( | CollectionPermission | typeof EmptySelectValue ) => { - if (permission === EmptySelectValue) { - await groupMemberships.delete({ - collectionId: collection.id, - groupId: membership.groupId, - }); - } else { - await groupMemberships.create({ - collectionId: collection.id, - groupId: membership.groupId, - permission, - }); + try { + if (permission === EmptySelectValue) { + await groupMemberships.delete({ + collectionId: collection.id, + groupId: membership.groupId, + }); + } else { + await groupMemberships.create({ + collectionId: collection.id, + groupId: membership.groupId, + permission, + }); + } + } catch (err) { + toast.error(err.message); + return false; } + return true; }} disabled={!can.update} value={membership.permission} @@ -215,18 +222,24 @@ export const AccessControlList = observer( | CollectionPermission | typeof EmptySelectValue ) => { - if (permission === EmptySelectValue) { - await memberships.delete({ - collectionId: collection.id, - userId: membership.userId, - }); - } else { - await memberships.create({ - collectionId: collection.id, - userId: membership.userId, - permission, - }); + try { + if (permission === EmptySelectValue) { + await memberships.delete({ + collectionId: collection.id, + userId: membership.userId, + }); + } else { + await memberships.create({ + collectionId: collection.id, + userId: membership.userId, + permission, + }); + } + } catch (err) { + toast.error(err.message); + return false; } + return true; }} disabled={!can.update} value={membership.permission} diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index a517c42742..1f89d2210c 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -1,26 +1,25 @@ import { observer } from "mobx-react"; -import { DraftsIcon, SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; +import { SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; import * as React from "react"; import { DndProvider } from "react-dnd"; import { HTML5Backend } from "react-dnd-html5-backend"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; import { metaDisplay } from "@shared/utils/keyboard"; -import Flex from "~/components/Flex"; import Scrollable from "~/components/Scrollable"; -import Text from "~/components/Text"; import { inviteUser } from "~/actions/definitions/users"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import useCurrentUser from "~/hooks/useCurrentUser"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import OrganizationMenu from "~/menus/OrganizationMenu"; -import { homePath, draftsPath, searchPath } from "~/utils/routeHelpers"; +import { homePath, searchPath } from "~/utils/routeHelpers"; import TeamLogo from "../TeamLogo"; import Tooltip from "../Tooltip"; import Sidebar from "./Sidebar"; import ArchiveLink from "./components/ArchiveLink"; import Collections from "./components/Collections"; +import { DraftsLink } from "./components/DraftsLink"; import DragPlaceholder from "./components/DragPlaceholder"; import HistoryNavigation from "./components/HistoryNavigation"; import Section from "./components/Section"; @@ -107,24 +106,7 @@ function AppSidebar() { label={t("Search")} exact={false} /> - {can.createDocument && ( - } - label={ - - {t("Drafts")} - {documents.totalDrafts > 0 ? ( - - {documents.totalDrafts > 25 - ? "25+" - : documents.totalDrafts} - - ) : null} - - } - /> - )} + {can.createDocument && } @@ -158,8 +140,4 @@ const Overflow = styled.div` flex-shrink: 0; `; -const Drafts = styled(Text)` - margin: 0 4px; -`; - export default observer(AppSidebar); diff --git a/app/components/Sidebar/components/ArchiveLink.tsx b/app/components/Sidebar/components/ArchiveLink.tsx index 8315ebc83e..9f04d19b03 100644 --- a/app/components/Sidebar/components/ArchiveLink.tsx +++ b/app/components/Sidebar/components/ArchiveLink.tsx @@ -14,6 +14,7 @@ import { ArchivedCollectionLink } from "./ArchivedCollectionLink"; import { StyledError } from "./Collections"; import PlaceholderCollections from "./PlaceholderCollections"; import Relative from "./Relative"; +import SidebarContext from "./SidebarContext"; import SidebarLink from "./SidebarLink"; function ArchiveLink() { @@ -64,38 +65,40 @@ function ArchiveLink() { useDropToArchive(); return ( - -
- } - exact={false} - label={t("Archive")} - isActiveDrop={isOverArchiveSection && isDragging} - depth={0} - expanded={disclosure ? expanded : undefined} - onDisclosureClick={handleDisclosureClick} - onClick={handleClick} - /> -
- {expanded === true ? ( - - } - renderError={(props) => } - renderItem={(item: Collection) => ( - - )} + + +
+ } + exact={false} + label={t("Archive")} + isActiveDrop={isOverArchiveSection && isDragging} + depth={0} + expanded={disclosure ? expanded : undefined} + onDisclosureClick={handleDisclosureClick} + onClick={handleClick} /> - - ) : null} - +
+ {expanded === true ? ( + + } + renderError={(props) => } + renderItem={(item: Collection) => ( + + )} + /> + + ) : null} +
+
); } diff --git a/app/components/Sidebar/components/CollectionLink.tsx b/app/components/Sidebar/components/CollectionLink.tsx index 52b6d89079..2a527746f5 100644 --- a/app/components/Sidebar/components/CollectionLink.tsx +++ b/app/components/Sidebar/components/CollectionLink.tsx @@ -2,26 +2,29 @@ import { Location } from "history"; import { observer } from "mobx-react"; import { PlusIcon } from "outline-icons"; import * as React from "react"; -import { useDrop } from "react-dnd"; import { useTranslation } from "react-i18next"; -import { CollectionValidation } from "@shared/validations"; +import { mergeRefs } from "react-merge-refs"; +import { useHistory } from "react-router-dom"; +import { UserPreference } from "@shared/types"; +import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; +import { CollectionValidation, DocumentValidation } from "@shared/validations"; import Collection from "~/models/Collection"; import Document from "~/models/Document"; -import ConfirmMoveDialog from "~/components/ConfirmMoveDialog"; +import EditableTitle, { RefHandle } from "~/components/EditableTitle"; import Fade from "~/components/Fade"; import CollectionIcon from "~/components/Icons/CollectionIcon"; import NudeButton from "~/components/NudeButton"; -import { createDocument } from "~/actions/definitions/documents"; -import useActionContext from "~/hooks/useActionContext"; import useBoolean from "~/hooks/useBoolean"; +import useCurrentUser from "~/hooks/useCurrentUser"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; 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, { DragObject } from "./SidebarLink"; +import SidebarLink from "./SidebarLink"; type Props = { collection: Collection; @@ -41,12 +44,14 @@ const CollectionLink: React.FC = ({ depth, onClick, }: Props) => { - const { dialogs, documents, collections } = useStores(); const [menuOpen, handleMenuOpen, handleMenuClose] = useBoolean(); const [isEditing, setIsEditing] = React.useState(false); + const { documents } = useStores(); + const history = useHistory(); const can = usePolicy(collection); const { t } = useTranslation(); const sidebarContext = useSidebarContext(); + const user = useCurrentUser(); const editableTitleRef = React.useRef(null); const handleTitleChange = React.useCallback( @@ -58,119 +63,132 @@ const CollectionLink: React.FC = ({ [collection] ); - // Drop to re-parent document - const [{ isOver, canDrop }, drop] = useDrop({ - accept: "document", - drop: async (item: DragObject, monitor) => { - const { id, collectionId } = item; - if (monitor.didDrop()) { - return; - } - if (!collection) { - return; - } + const handleExpand = React.useCallback(() => { + if (!expanded) { + onDisclosureClick(); + } + }, [expanded, onDisclosureClick]); - const document = documents.get(id); - if (collection.id === collectionId && !document?.parentDocumentId) { - return; - } - - const prevCollection = collections.get(collectionId); - - if ( - prevCollection && - prevCollection.permission !== collection.permission && - !document?.isDraft - ) { - dialogs.openModal({ - title: t("Change permissions?"), - content: , - }); - } else { - await documents.move({ documentId: id, collectionId: collection.id }); - - if (!expanded) { - onDisclosureClick(); - } - } - }, - canDrop: () => can.createDocument, - collect: (monitor) => ({ - isOver: !!monitor.isOver({ - shallow: true, - }), - canDrop: monitor.canDrop(), - }), - }); + const parentRef = React.useRef(null); + const [{ isOver, canDrop }, dropRef] = useDropToChangeCollection( + collection, + handleExpand, + parentRef + ); const handlePrefetch = React.useCallback(() => { void collection.fetchDocuments(); }, [collection]); - const context = useActionContext({ - activeCollectionId: collection.id, - sidebarContext, - }); - const handleRename = React.useCallback(() => { editableTitleRef.current?.setIsEditing(true); }, [editableTitleRef]); + const [isAddingNewChild, setIsAddingNewChild, closeAddingNewChild] = + useBoolean(); + + const handleNewDoc = React.useCallback( + async (input) => { + const newDocument = await documents.create( + { + collectionId: collection.id, + title: input, + fullWidth: user.getPreference(UserPreference.FullWidthDocuments), + data: ProsemirrorHelper.getEmptyDocument(), + }, + { publish: true } + ); + collection?.addDocument(newDocument); + + closeAddingNewChild(); + history.push({ + pathname: documentEditPath(newDocument), + state: { sidebarContext }, + }); + }, + [user, sidebarContext, closeAddingNewChild, history, collection, documents] + ); + return ( - - + <> + + + + } + showActions={menuOpen} + isActiveDrop={isOver && canDrop} + isActive={( + match, + location: Location<{ sidebarContext?: SidebarContextType }> + ) => !!match && location.state?.sidebarContext === sidebarContext} + label={ + + } + exact={false} + depth={depth ? depth : 0} + menu={ + !isEditing && + !isDraggingAnyCollection && ( + + {can.createDocument && ( + { + ev.preventDefault(); + setIsAddingNewChild(); + handleExpand(); + }} + > + + + )} + + + ) + } + /> + + + {isAddingNewChild && ( } - showActions={menuOpen} - isActiveDrop={isOver && canDrop} - isActive={( - match, - location: Location<{ sidebarContext?: SidebarContextType }> - ) => !!match && location.state?.sidebarContext === sidebarContext} + depth={2} + isActive={() => true} label={ } - exact={false} - depth={depth ? depth : 0} - menu={ - !isEditing && - !isDraggingAnyCollection && ( - - - - - - - ) - } /> - - + )} + ); }; diff --git a/app/components/Sidebar/components/CollectionLinkChildren.tsx b/app/components/Sidebar/components/CollectionLinkChildren.tsx index b5874a3ca3..c08d658f10 100644 --- a/app/components/Sidebar/components/CollectionLinkChildren.tsx +++ b/app/components/Sidebar/components/CollectionLinkChildren.tsx @@ -1,25 +1,23 @@ +import noop from "lodash/noop"; import { observer } from "mobx-react"; import * as React from "react"; -import { useDrop } from "react-dnd"; import { useTranslation } from "react-i18next"; import { Waypoint } from "react-waypoint"; -import { toast } from "sonner"; import styled from "styled-components"; import Collection from "~/models/Collection"; import Document from "~/models/Document"; -import ConfirmMoveDialog from "~/components/ConfirmMoveDialog"; import DocumentsLoader from "~/components/DocumentsLoader"; import { ResizingHeightContainer } from "~/components/ResizingHeightContainer"; import Text from "~/components/Text"; -import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import history from "~/utils/history"; import useCollectionDocuments from "../hooks/useCollectionDocuments"; +import { useDropToChangeCollection } from "../hooks/useDragAndDrop"; import DocumentLink from "./DocumentLink"; import DropCursor from "./DropCursor"; import Folder from "./Folder"; import PlaceholderCollections from "./PlaceholderCollections"; -import SidebarLink, { DragObject } from "./SidebarLink"; +import SidebarLink from "./SidebarLink"; type Props = { /** The collection to render the children of. */ @@ -36,55 +34,17 @@ function CollectionLinkChildren({ prefetchDocument, }: Props) { const pageSize = 250; - const can = usePolicy(collection); - const manualSort = collection.sort.field === "index"; - const { documents, dialogs, collections } = useStores(); + const { documents } = useStores(); const { t } = useTranslation(); const childDocuments = useCollectionDocuments(collection, documents.active); const [showing, setShowing] = React.useState(pageSize); + const dummyRef = React.useRef(null); - // Drop to reorder document - const [{ isOverReorder, isDraggingAnyDocument }, dropToReorder] = useDrop({ - accept: "document", - drop: (item: DragObject) => { - if (!manualSort && item.collectionId === collection?.id) { - toast.message( - t( - "You can't reorder documents in an alphabetically sorted collection" - ) - ); - return; - } - - if (!collection) { - return; - } - - const prevCollection = collections.get(item.collectionId); - - if ( - prevCollection && - prevCollection.permission !== collection.permission - ) { - dialogs.openModal({ - title: t("Change permissions?"), - content: ( - - ), - }); - } else { - void documents.move({ - documentId: item.id, - collectionId: collection.id, - index: 0, - }); - } - }, - collect: (monitor) => ({ - isOverReorder: !!monitor.isOver(), - isDraggingAnyDocument: !!monitor.canDrop(), - }), - }); + const [{ isOver, canDrop }, dropRef] = useDropToChangeCollection( + collection, + noop, + dummyRef + ); React.useEffect(() => { if (!expanded) { @@ -100,12 +60,8 @@ function CollectionLinkChildren({ return ( - {isDraggingAnyDocument && can.createDocument && manualSort && ( - + {canDrop && collection.isManualSort && ( + )} {!childDocuments && ( diff --git a/app/components/Sidebar/components/Collections.tsx b/app/components/Sidebar/components/Collections.tsx index 5bb998e378..f50efc9b92 100644 --- a/app/components/Sidebar/components/Collections.tsx +++ b/app/components/Sidebar/components/Collections.tsx @@ -10,6 +10,7 @@ import Error from "~/components/List/Error"; import PaginatedList from "~/components/PaginatedList"; import { createCollection } from "~/actions/definitions/collections"; import useStores from "~/hooks/useStores"; +import { DragObject } from "../hooks/useDragAndDrop"; import DraggableCollectionLink from "./DraggableCollectionLink"; import DropCursor from "./DropCursor"; import Header from "./Header"; @@ -17,7 +18,6 @@ import PlaceholderCollections from "./PlaceholderCollections"; import Relative from "./Relative"; import SidebarAction from "./SidebarAction"; import SidebarContext from "./SidebarContext"; -import { DragObject } from "./SidebarLink"; function Collections() { const { documents, collections } = useStores(); diff --git a/app/components/Sidebar/components/DocumentLink.tsx b/app/components/Sidebar/components/DocumentLink.tsx index cc70202a5b..122c87ab53 100644 --- a/app/components/Sidebar/components/DocumentLink.tsx +++ b/app/components/Sidebar/components/DocumentLink.tsx @@ -3,22 +3,25 @@ import { observer } from "mobx-react"; import { PlusIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; -import { Link } from "react-router-dom"; +import { useHistory } from "react-router-dom"; import styled from "styled-components"; import Icon from "@shared/components/Icon"; -import { NavigationNode } from "@shared/types"; +import { NavigationNode, UserPreference } from "@shared/types"; +import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; 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"; import useBoolean from "~/hooks/useBoolean"; +import useCurrentUser from "~/hooks/useCurrentUser"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import DocumentMenu from "~/menus/DocumentMenu"; -import { newNestedDocumentPath } from "~/utils/routeHelpers"; +import { documentEditPath } from "~/utils/routeHelpers"; import { useDragDocument, useDropToReorderDocument, @@ -26,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"; @@ -58,6 +60,7 @@ function InnerDocumentLink( ) { const { documents, policies } = useStores(); const { t } = useTranslation(); + const history = useHistory(); const canUpdate = usePolicy(node.id).update; const isActiveDocument = activeDocument && activeDocument.id === node.id; const hasChildDocuments = @@ -67,6 +70,7 @@ function InnerDocumentLink( const [isEditing, setIsEditing] = React.useState(false); const editableTitleRef = React.useRef(null); const sidebarContext = useSidebarContext(); + const user = useCurrentUser(); React.useEffect(() => { if ( @@ -216,6 +220,43 @@ function InnerDocumentLink( [setExpanded, setCollapsed, hasChildren, expanded] ); + const [isAddingNewChild, setIsAddingNewChild, closeAddingNewChild] = + useBoolean(); + + const handleNewDoc = React.useCallback( + async (input) => { + const newDocument = await documents.create( + { + collectionId: collection?.id, + parentDocumentId: node.id, + fullWidth: + doc?.fullWidth ?? + user.getPreference(UserPreference.FullWidthDocuments), + title: input, + data: ProsemirrorHelper.getEmptyDocument(), + }, + { publish: true } + ); + collection?.addDocument(newDocument, node.id); + + closeAddingNewChild(); + history.push({ + pathname: documentEditPath(newDocument), + state: { sidebarContext }, + }); + }, + [ + documents, + collection, + sidebarContext, + user, + node, + doc, + history, + closeAddingNewChild, + ] + ); + return ( <> @@ -282,8 +323,11 @@ function InnerDocumentLink( { + ev.preventDefault(); + setIsAddingNewChild(); + setExpanded(); + }} > @@ -308,8 +352,25 @@ function InnerDocumentLink( )} + {isAddingNewChild && ( + true} + depth={depth + 1} + label={ + + } + /> + )} - {nodeChildren.map((childNode, index) => ( + {nodeChildren.map((childNode, childIndex) => ( ))} diff --git a/app/components/Sidebar/components/DraftsLink.tsx b/app/components/Sidebar/components/DraftsLink.tsx new file mode 100644 index 0000000000..0b67263f68 --- /dev/null +++ b/app/components/Sidebar/components/DraftsLink.tsx @@ -0,0 +1,41 @@ +import { observer } from "mobx-react"; +import { DraftsIcon } from "outline-icons"; +import React from "react"; +import { useTranslation } from "react-i18next"; +import styled from "styled-components"; +import Flex from "~/components/Flex"; +import Text from "~/components/Text"; +import useStores from "~/hooks/useStores"; +import { draftsPath } from "~/utils/routeHelpers"; +import { useDropToUnpublish } from "../hooks/useDragAndDrop"; +import SidebarLink from "./SidebarLink"; + +export const DraftsLink = observer(() => { + const { t } = useTranslation(); + const { documents } = useStores(); + const [{ isOver, canDrop }, dropRef] = useDropToUnpublish(); + + return ( +
+ } + label={ + + {t("Drafts")} + {documents.totalDrafts > 0 ? ( + + {documents.totalDrafts > 25 ? "25+" : documents.totalDrafts} + + ) : null} + + } + isActiveDrop={isOver && canDrop} + /> +
+ ); +}); + +const Drafts = styled(Text)` + margin: 0 4px; +`; diff --git a/app/components/Sidebar/components/DraggableCollectionLink.tsx b/app/components/Sidebar/components/DraggableCollectionLink.tsx index bf4a7ce7dd..bb9c383135 100644 --- a/app/components/Sidebar/components/DraggableCollectionLink.tsx +++ b/app/components/Sidebar/components/DraggableCollectionLink.tsx @@ -9,12 +9,12 @@ import Document from "~/models/Document"; import CollectionIcon from "~/components/Icons/CollectionIcon"; import { useLocationSidebarContext } from "~/hooks/useLocationSidebarContext"; import useStores from "~/hooks/useStores"; +import { DragObject } from "../hooks/useDragAndDrop"; import CollectionLink from "./CollectionLink"; import CollectionLinkChildren from "./CollectionLinkChildren"; import DropCursor from "./DropCursor"; import Relative from "./Relative"; import { useSidebarContext } from "./SidebarContext"; -import { DragObject } from "./SidebarLink"; type Props = { collection: Collection; diff --git a/app/components/Sidebar/components/SidebarContext.ts b/app/components/Sidebar/components/SidebarContext.ts index 379d746d68..9970336349 100644 --- a/app/components/Sidebar/components/SidebarContext.ts +++ b/app/components/Sidebar/components/SidebarContext.ts @@ -5,6 +5,7 @@ import User from "~/models/User"; export type SidebarContextType = | "collections" | "shared" + | "archive" | `group-${string}` | `starred-${string}` | undefined; @@ -41,7 +42,7 @@ export const determineSidebarContext = ({ } if (document.collection) { - return "collections"; + return document.collection.isArchived ? "archive" : "collections"; } else if ( user.documentMemberships.find((m) => m.documentId === document.id) ) { diff --git a/app/components/Sidebar/components/SidebarLink.tsx b/app/components/Sidebar/components/SidebarLink.tsx index d9c4d032d4..350a07a649 100644 --- a/app/components/Sidebar/components/SidebarLink.tsx +++ b/app/components/Sidebar/components/SidebarLink.tsx @@ -4,7 +4,6 @@ import styled, { useTheme, css } from "styled-components"; import breakpoint from "styled-components-breakpoint"; import EventBoundary from "@shared/components/EventBoundary"; import { s } from "@shared/styles"; -import { NavigationNode } from "@shared/types"; import NudeButton from "~/components/NudeButton"; import { UnreadBadge } from "~/components/UnreadBadge"; import useUnmount from "~/hooks/useUnmount"; @@ -12,11 +11,6 @@ import { undraggableOnDesktop } from "~/styles"; import Disclosure from "./Disclosure"; import NavLink, { Props as NavLinkProps } from "./NavLink"; -export type DragObject = NavigationNode & { - depth: number; - collectionId: string; -}; - type Props = Omit & { to?: LocationDescriptor; innerRef?: (ref: HTMLElement | null | undefined) => void; diff --git a/app/components/Sidebar/components/StarredLink.tsx b/app/components/Sidebar/components/StarredLink.tsx index 6feef0c3de..335170206d 100644 --- a/app/components/Sidebar/components/StarredLink.tsx +++ b/app/components/Sidebar/components/StarredLink.tsx @@ -86,6 +86,11 @@ function StarredLink({ star }: Props) { [] ); + const handlePrefetch = React.useCallback( + () => documentId && documents.prefetchDocument(documentId), + [documents, documentId] + ); + const getIndex = () => { const next = star?.next(); return fractionalIndex(star?.index || null, next?.index || null); @@ -142,6 +147,7 @@ function StarredLink({ star }: Props) { }} expanded={hasChildDocuments && !isDragging ? expanded : undefined} onDisclosureClick={handleDisclosureClick} + onClickIntent={handlePrefetch} icon={icon} isActive={( match, @@ -172,6 +178,7 @@ function StarredLink({ star }: Props) { node={node} collection={collection} activeDocument={documents.active} + prefetchDocument={documents.prefetchDocument} isDraft={node.isDraft} depth={2} index={index} diff --git a/app/components/Sidebar/components/TrashLink.tsx b/app/components/Sidebar/components/TrashLink.tsx index c249e545fd..6e592ef925 100644 --- a/app/components/Sidebar/components/TrashLink.tsx +++ b/app/components/Sidebar/components/TrashLink.tsx @@ -6,7 +6,8 @@ import { useTranslation } from "react-i18next"; import DocumentDelete from "~/scenes/DocumentDelete"; import useStores from "~/hooks/useStores"; import { trashPath } from "~/utils/routeHelpers"; -import SidebarLink, { DragObject } from "./SidebarLink"; +import { DragObject } from "../hooks/useDragAndDrop"; +import SidebarLink from "./SidebarLink"; function TrashLink() { const { policies, dialogs, documents } = useStores(); diff --git a/app/components/Sidebar/hooks/useDragAndDrop.tsx b/app/components/Sidebar/hooks/useDragAndDrop.tsx index 8a342e76bf..4d1867c7ca 100644 --- a/app/components/Sidebar/hooks/useDragAndDrop.tsx +++ b/app/components/Sidebar/hooks/useDragAndDrop.tsx @@ -15,10 +15,49 @@ import Star from "~/models/Star"; import UserMembership from "~/models/UserMembership"; import ConfirmMoveDialog from "~/components/ConfirmMoveDialog"; import useCurrentUser from "~/hooks/useCurrentUser"; +import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; -import { DragObject } from "../components/SidebarLink"; +import { AuthorizationError } from "~/utils/errors"; import { useSidebarLabelAndIcon } from "./useSidebarLabelAndIcon"; +export type DragObject = NavigationNode & { + depth: number; + collectionId: string; +}; + +function useHover( + elementRef: React.RefObject, + callback: () => void +) { + const hoverTimeoutRef = React.useRef>(); + + const startHover = React.useCallback(() => { + if (!hoverTimeoutRef.current) { + hoverTimeoutRef.current = setTimeout(() => { + hoverTimeoutRef.current = undefined; + callback(); + }, 500); + } + }, [callback]); + + const unsetHover = React.useCallback(() => { + if (hoverTimeoutRef.current) { + clearTimeout(hoverTimeoutRef.current); + hoverTimeoutRef.current = undefined; + } + }, []); + + // We set a timeout when the user first starts hovering over the document link, + // to trigger expansion of children. Clear this timeout when they stop hovering. + React.useEffect(() => { + const element = elementRef.current; + element?.addEventListener("dragleave", unsetHover); + return () => element?.removeEventListener("dragleave", unsetHover); + }, [elementRef, unsetHover]); + + return startHover; +} + /** * Hook for shared logic that allows dragging a Starred item * @@ -162,6 +201,84 @@ export function useDragDocument( return [{ isDragging }, draggableRef] as const; } +export function useDropToChangeCollection( + collection: Collection, + expandNode: () => void, + parentRef: React.RefObject +) { + const { t } = useTranslation(); + const { documents, collections, dialogs } = useStores(); + const can = usePolicy(collection); + const startHover = useHover(parentRef, expandNode); + + return useDrop< + DragObject, + Promise, + { isOver: boolean; canDrop: boolean } + >({ + accept: "document", + drop: async (item, monitor) => { + if (monitor.didDrop()) { + return; + } + + const { id, collectionId } = item; + const prevCollection = collections.get(collectionId); + const document = documents.get(id); + + if ( + prevCollection && + prevCollection.permission !== collection.permission && + !document?.isDraft + ) { + dialogs.openModal({ + title: t("Change permissions?"), + content: ( + + ), + }); + } else { + try { + await documents.move({ + documentId: id, + collectionId: collection.id, + index: 0, + }); + expandNode(); + } catch (err) { + if (err instanceof AuthorizationError) { + toast.error( + t( + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", + { + documentName: item.title, + collectionName: collection.name, + } + ) + ); + } else { + toast.error(err.message); + } + } + } + }, + canDrop: () => can.createDocument, + hover: (_, monitor) => { + if ( + collection.hasDocuments && + monitor.canDrop() && + monitor.isOver({ shallow: true }) + ) { + startHover(); + } + }, + collect: (monitor) => ({ + isOver: monitor.isOver({ shallow: true }), + canDrop: monitor.canDrop(), + }), + }); +} + /** * Hook for shared logic that allows dropping documents to reparent * @@ -175,7 +292,7 @@ export function useDropToReparentDocument( parentRef: React.RefObject ) { const { t } = useTranslation(); - const { documents, collections, dialogs, policies } = useStores(); + const { documents, collections, dialogs } = useStores(); const hasChildDocuments = !!node?.children.length; const document = node ? documents.get(node.id) : undefined; const pathToNode = React.useMemo( @@ -183,25 +300,7 @@ export function useDropToReparentDocument( [document] ); - const hoverExpanding = React.useRef>(); - - // We set a timeout when the user first starts hovering over the document link, - // to trigger expansion of children. Clear this timeout when they stop hovering. - React.useEffect(() => { - const resetHoverExpanding = () => { - if (hoverExpanding.current) { - clearTimeout(hoverExpanding.current); - hoverExpanding.current = undefined; - } - }; - - const element = parentRef.current; - element?.addEventListener("dragleave", resetHoverExpanding); - - return () => { - element?.removeEventListener("dragleave", resetHoverExpanding); - }; - }, [parentRef]); + const startHover = useHover(parentRef, setExpanded); return useDrop< DragObject, @@ -214,7 +313,9 @@ export function useDropToReparentDocument( return; } - const collection = documents.get(node.id)?.collection; + const collection = node.collectionId + ? collections.get(node.collectionId) + : undefined; const prevCollection = collections.get(item.collectionId); if ( @@ -233,22 +334,40 @@ export function useDropToReparentDocument( ), }); } else { - await documents.move({ - documentId: item.id, - parentDocumentId: node.id, - }); + try { + await documents.move({ + documentId: item.id, + parentDocumentId: node.id, + }); + setExpanded(); + } catch (err) { + if (err instanceof AuthorizationError) { + toast.error( + t( + "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + { + documentName: item.title, + parentDocumentName: node.title, + } + ) + ); + } else { + toast.error(err.message); + } + } + } + }, + canDrop: (item) => { + if (!node || item.id === node.id) { + return false; } - setExpanded(); + if (!document) { + return true; // optimistic, in case the document is not loaded yet; server will check for permissions before performing the move. + } + + return document.isActive && !!pathToNode && !pathToNode.includes(item.id); }, - canDrop: (item, monitor) => - !!node && - !!pathToNode && - !pathToNode.includes(monitor.getItem().id) && - item.id !== node.id && - !!document?.isActive && - policies.abilities(node.id).update && - policies.abilities(item.id).move, hover: (_item, monitor) => { // Enables expansion of document children when hovering over the document // for more than half a second. @@ -259,15 +378,7 @@ export function useDropToReparentDocument( shallow: true, }) ) { - if (!hoverExpanding.current) { - hoverExpanding.current = setTimeout(() => { - hoverExpanding.current = undefined; - - if (monitor.isOver({ shallow: true })) { - setExpanded(); - } - }, 500); - } + startHover(); } }, collect: (monitor) => ({ @@ -297,7 +408,7 @@ export function useDropToReorderDocument( } ) { const { t } = useTranslation(); - const { documents, collections, dialogs, policies } = useStores(); + const { documents, collections, dialogs } = useStores(); const document = documents.get(node.id); @@ -308,22 +419,9 @@ export function useDropToReorderDocument( >({ accept: "document", canDrop: (item: DragObject) => { - if ( - item.id === node.id || - !policies.abilities(item.id)?.move || - !document?.isActive - ) { + if (item.id === node.id || (document && !document.isActive)) { return false; } - - const params = getMoveParams(item); - if (params?.collectionId) { - return policies.abilities(params.collectionId)?.updateDocument; - } - if (params?.parentDocumentId) { - return policies.abilities(params.parentDocumentId)?.update; - } - return true; }, drop: async (item) => { @@ -357,7 +455,19 @@ export function useDropToReorderDocument( ), }); } else { - void documents.move(params); + try { + await documents.move(params); + } catch (err) { + if (err instanceof AuthorizationError) { + toast.error( + t("The {{ documentName }} cannot be moved here", { + documentName: item.title, + }) + ); + } else { + toast.error(err.message); + } + } } } }, @@ -476,3 +586,45 @@ export function useDropToArchive() { }), }); } + +export function useDropToUnpublish() { + const { t } = useTranslation(); + const { policies, documents } = useStores(); + + return useDrop< + DragObject, + Promise, + { isOver: boolean; canDrop: boolean } + >({ + accept: "document", + drop: async (item) => { + const document = documents.get(item.id); + if (!document) { + return; + } + + try { + await document.unpublish({ detach: true }); + toast.success( + t("Unpublished {{ documentName }}", { + documentName: document.noun, + }) + ); + } catch (err) { + toast.error(err.message); + } + }, + canDrop: (item) => { + const policy = policies.abilities(item.id); + if (!policy) { + return true; // optimistic, let the server check for the necessary permission. + } + + return policy.unpublish; + }, + collect: (monitor) => ({ + isOver: monitor.isOver(), + canDrop: monitor.canDrop(), + }), + }); +} diff --git a/app/components/WebsocketProvider.tsx b/app/components/WebsocketProvider.tsx index 1f5280ff63..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) => { @@ -190,7 +206,7 @@ class WebsocketProvider extends React.Component { if (collection?.updatedAt === collectionDescriptor.updatedAt) { continue; } - if (!collection?.documents?.length && !event.fetchIfMissing) { + if (!collection?.documents && !event.fetchIfMissing) { continue; } @@ -225,6 +241,32 @@ class WebsocketProvider extends React.Component { }) ); + this.socket.on( + "documents.unpublish", + action( + (event: { + document: PartialExcept; + collectionId: string; + }) => { + const document = event.document; + + // When document is detached as part of unpublishing, only the owner should be able to view it. + if ( + !document.collectionId && + document.createdBy?.id !== currentUserId + ) { + documents.remove(document.id); + } else { + documents.add(document); + } + policies.remove(document.id); + + const collection = collections.get(event.collectionId); + collection?.removeDocument(document.id); + } + ) + ); + this.socket.on( "documents.archive", action((event: PartialExcept) => { diff --git a/app/editor/components/BlockMenu.tsx b/app/editor/components/BlockMenu.tsx index 8f50a0af55..58ed827908 100644 --- a/app/editor/components/BlockMenu.tsx +++ b/app/editor/components/BlockMenu.tsx @@ -1,6 +1,7 @@ import React from "react"; import useDictionary from "~/hooks/useDictionary"; import getMenuItems from "../menus/block"; +import { useEditor } from "./EditorContext"; import SuggestionsMenu, { Props as SuggestionsMenuProps, } from "./SuggestionsMenu"; @@ -11,6 +12,7 @@ type Props = Omit & function BlockMenu(props: Props) { const dictionary = useDictionary(); + const { elementRef } = useEditor(); return ( )} - items={getMenuItems(dictionary)} + items={getMenuItems(dictionary, elementRef)} /> ); } diff --git a/app/editor/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 7797a5e2d8..5aaa082cf1 100644 --- a/app/editor/components/FloatingToolbar.tsx +++ b/app/editor/components/FloatingToolbar.tsx @@ -9,7 +9,6 @@ import { EditorStyleHelper } from "@shared/editor/styles/EditorStyleHelper"; import { depths, s } from "@shared/styles"; import { HEADER_HEIGHT } from "~/components/Header"; import { Portal } from "~/components/Portal"; -import useComponentSize from "~/hooks/useComponentSize"; import useEventListener from "~/hooks/useEventListener"; import useMobile from "~/hooks/useMobile"; import useWindowSize from "~/hooks/useWindowSize"; @@ -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; @@ -78,13 +78,24 @@ function usePosition({ // position at the top right of code blocks const codeBlock = findParentNode(isCode)(view.state.selection); + const noticeBlock = findParentNode( + (node) => node.type.name === "container_notice" + )(view.state.selection); - if (codeBlock && view.state.selection.empty) { - const element = view.nodeDOM(codeBlock.pos); - const bounds = (element as HTMLElement).getBoundingClientRect(); - selectionBounds.top = bounds.top; - selectionBounds.left = bounds.right - menuWidth; - selectionBounds.right = bounds.right; + if ((codeBlock || noticeBlock) && view.state.selection.empty) { + const position = codeBlock + ? codeBlock.pos + : noticeBlock + ? noticeBlock.pos + : null; + + if (position !== null) { + const element = view.nodeDOM(position); + const bounds = (element as HTMLElement).getBoundingClientRect(); + selectionBounds.top = bounds.top; + selectionBounds.left = bounds.right - menuWidth; + selectionBounds.right = bounds.right; + } } // tables are an oddity, and need their own positioning logic @@ -184,11 +195,12 @@ function usePosition({ // of the selection still const offset = left - (centerOfSelection - menuWidth / 2); return { - left: Math.round(left - offsetParent.left), + left: Math.max(margin, Math.round(left - offsetParent.left)), top: Math.round(top - offsetParent.top), offset: Math.round(offset), - maxWidth: Math.min(window.innerWidth - margin * 2, offsetParent.width), - blockSelection: codeBlock || isColSelection || isRowSelection, + maxWidth: Math.min(window.innerWidth, offsetParent.width) - margin * 2, + blockSelection: + codeBlock || isColSelection || isRowSelection || noticeBlock, visible: true, }; } 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 2ed8e15973..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,44 +130,178 @@ class LinkEditor extends React.Component { view.focus(); }; - render() { - const { 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/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index 18257785f3..a263317ba5 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import filterExcessSeparators from "@shared/editor/lib/filterExcessSeparators"; import { getMarkRange } from "@shared/editor/queries/getMarkRange"; import { isInCode } from "@shared/editor/queries/isInCode"; +import { isInNotice } from "@shared/editor/queries/isInNotice"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; import { getColumnIndex, getRowIndex } from "@shared/editor/queries/table"; @@ -18,6 +19,7 @@ import getCodeMenuItems from "../menus/code"; import getDividerMenuItems from "../menus/divider"; import getFormattingMenuItems from "../menus/formatting"; import getImageMenuItems from "../menus/image"; +import getNoticeMenuItems from "../menus/notice"; import getReadOnlyMenuItems from "../menus/readOnly"; import getTableMenuItems from "../menus/table"; import getTableColMenuItems from "../menus/tableCol"; @@ -55,6 +57,10 @@ function useIsActive(state: EditorState) { return true; } + if (isInNotice(state) && selection.from > 0) { + return true; + } + if (!selection || selection.empty) { return false; } @@ -184,6 +190,7 @@ export default function SelectionToolbar(props: Props) { selection instanceof NodeSelection && selection.node.type.name === "attachment"; const isCodeSelection = isInCode(state, { onlyBlock: true }); + const isNoticeSelection = isInNotice(state); let items: MenuItem[] = []; @@ -203,6 +210,8 @@ export default function SelectionToolbar(props: Props) { items = getDividerMenuItems(state, dictionary); } else if (readOnly) { items = getReadOnlyMenuItems(state, !!canUpdate, dictionary); + } else if (isNoticeSelection && selection.empty) { + items = getNoticeMenuItems(state, readOnly, dictionary); } else { items = getFormattingMenuItems(state, isTemplate, isMobile, dictionary); } 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/ClipboardTextSerializer.ts b/app/editor/extensions/ClipboardTextSerializer.ts index 35a4df9781..5fb3a90550 100644 --- a/app/editor/extensions/ClipboardTextSerializer.ts +++ b/app/editor/extensions/ClipboardTextSerializer.ts @@ -1,12 +1,10 @@ import { Plugin, PluginKey } from "prosemirror-state"; import Extension from "@shared/editor/lib/Extension"; -import textBetween from "@shared/editor/lib/textBetween"; -import { getTextSerializers } from "@shared/editor/lib/textSerializers"; +import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; /** * A plugin that allows overriding the default behavior of the editor to allow - * copying text for nodes that do not inherently have text children by defining - * a `toPlainText` method in the node spec. + * copying text including the markdown formatting. */ export default class ClipboardTextSerializer extends Extension { get name() { @@ -14,19 +12,33 @@ export default class ClipboardTextSerializer extends Extension { } get plugins() { - const textSerializers = getTextSerializers(this.editor.schema); + const mdSerializer = this.editor.extensions.serializer(); return [ new Plugin({ key: new PluginKey("clipboardTextSerializer"), props: { - clipboardTextSerializer: () => { - const { doc, selection } = this.editor.view.state; - const { ranges } = selection; - const from = Math.min(...ranges.map((range) => range.$from.pos)); - const to = Math.max(...ranges.map((range) => range.$to.pos)); + clipboardTextSerializer: (slice) => { + const isMultiline = slice.content.childCount > 1; - return textBetween(doc, from, to, textSerializers); + // This is a cheap way to determine if the content is "complex", + // aka it has multiple marks or formatting. In which case we'll use + // markdown formatting + const copyAsMarkdown = + isMultiline || + slice.content.content.some( + (node) => node.content.content.length > 1 + ); + + return copyAsMarkdown + ? mdSerializer.serialize(slice.content, { + softBreak: true, + }) + : slice.content.content + .map((node) => + ProsemirrorHelper.toPlainText(node, this.editor.schema) + ) + .join(""); }, }, }), diff --git a/app/editor/extensions/Multiplayer.ts b/app/editor/extensions/Multiplayer.ts index bccf1cbc80..c5162f9558 100644 --- a/app/editor/extensions/Multiplayer.ts +++ b/app/editor/extensions/Multiplayer.ts @@ -1,4 +1,5 @@ import isEqual from "lodash/isEqual"; +import { Plugin } from "prosemirror-state"; import { ySyncPlugin, yCursorPlugin, @@ -8,6 +9,7 @@ import { } from "y-prosemirror"; import * as Y from "yjs"; import Extension from "@shared/editor/lib/Extension"; +import { isRemoteTransaction } from "@shared/editor/lib/multiplayer"; import { Second } from "@shared/utils/time"; type UserAwareness = { @@ -103,6 +105,11 @@ export default class Multiplayer extends Extension { selectionBuilder, }), yUndoPlugin(), + new Plugin({ + props: { + handleScrollToSelection: (view) => isRemoteTransaction(view.state.tr), + }, + }), ]; } diff --git a/app/editor/extensions/PasteHandler.tsx b/app/editor/extensions/PasteHandler.tsx index 1e2401b417..6982f74c93 100644 --- a/app/editor/extensions/PasteHandler.tsx +++ b/app/editor/extensions/PasteHandler.tsx @@ -20,57 +20,12 @@ 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"; -/** - * Checks if the HTML string is likely coming from Dropbox Paper. - * - * @param html The HTML string to check. - * @returns True if the HTML string is likely coming from Dropbox Paper. - */ -function isDropboxPaper(html: string): boolean { - return html?.includes("usually-unique-id"); -} - -function sliceSingleNode(slice: Slice) { - return slice.openStart === 0 && - slice.openEnd === 0 && - slice.content.childCount === 1 - ? slice.content.firstChild - : null; -} - -/** - * Parses the text contents of an HTML string and returns the src of the first - * iframe if it exists. - * - * @param text The HTML string to parse. - * @returns The src of the first iframe if it exists, or undefined. - */ -function parseSingleIframeSrc(html: string) { - try { - const parser = new DOMParser(); - const doc = parser.parseFromString(html, "text/html"); - - if ( - doc.body.children.length === 1 && - doc.body.firstElementChild?.tagName === "IFRAME" - ) { - const iframe = doc.body.firstElementChild; - const src = iframe.getAttribute("src"); - if (src) { - return src; - } - } - } catch (e) { - // Ignore the million ways parsing could fail. - } - return undefined; -} - export default class PasteHandler extends Extension { state: { open: boolean; @@ -148,6 +103,13 @@ export default class PasteHandler extends Extension { const supportsCodeMark = !!state.schema.marks.code_inline; if (!this.shiftKey) { + // If the HTML on the clipboard is from Prosemirror then the best + // compatability is to just use the HTML parser, regardless of + // whether it "looks" like Markdown, see: outline/outline#2416 + if (html?.includes("data-pm-slice")) { + return false; + } + // Check if the clipboard contents can be parsed as a single url if (isUrl(text)) { // If there is selected text then we want to wrap it in a link to the url @@ -205,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); } @@ -249,21 +256,17 @@ export default class PasteHandler extends Extension { return true; } } - - // If the HTML on the clipboard is from Prosemirror then the best - // compatability is to just use the HTML parser, regardless of - // whether it "looks" like Markdown, see: outline/outline#2416 - if (html?.includes("data-pm-slice")) { - return false; - } } // If the text on the clipboard looks like Markdown OR there is no // html on the clipboard then try to parse content as Markdown if ( - (isMarkdown(text) && !isDropboxPaper(html)) || + (isMarkdown(text) && + !isDropboxPaper(html) && + !isContainingImage(html)) || pasteCodeLanguage === "markdown" || - this.shiftKey + this.shiftKey || + !html ) { event.preventDefault(); @@ -475,3 +478,59 @@ export default class PasteHandler extends Extension { /> ); } + +/** + * Checks if the HTML string is likely coming from Dropbox Paper. + * + * @param html The HTML string to check. + * @returns True if the HTML string is likely coming from Dropbox Paper. + */ +function isDropboxPaper(html: string): boolean { + return html?.includes("usually-unique-id"); +} + +/** + * Checks if the HTML string contains an image. + * + * @param html The HTML string to check. + * @returns True if the HTML string contains an image. + */ +function isContainingImage(html: string): boolean { + return html?.includes("$/, "→"); 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/editor/extensions/Suggestion.ts b/app/editor/extensions/Suggestion.ts index 25f35fcfbf..33dee58d3c 100644 --- a/app/editor/extensions/Suggestion.ts +++ b/app/editor/extensions/Suggestion.ts @@ -19,7 +19,9 @@ export default class Suggestion extends Extension { super(options); this.openRegex = new RegExp( - `(?:^|\\s|\\()${escapeRegExp(this.options.trigger)}(${`[\\p{L}\\p{M}\\d${ + `(?:^|\\s|\\()${escapeRegExp( + this.options.trigger + )}(${`[\\p{L}\/\\p{M}\\d${ this.options.allowSpaces ? "\\s{1}" : "" }\\.]+`})${this.options.requireSearchTerm ? "" : "?"}$`, "u" diff --git a/app/editor/menus/attachment.tsx b/app/editor/menus/attachment.tsx index 2246e1eabf..12fa3c4211 100644 --- a/app/editor/menus/attachment.tsx +++ b/app/editor/menus/attachment.tsx @@ -13,13 +13,11 @@ export default function attachmentMenuItems( name: "replaceAttachment", tooltip: dictionary.replaceAttachment, icon: , - visible: true, }, { name: "deleteAttachment", tooltip: dictionary.deleteAttachment, icon: , - visible: true, }, { name: "separator", diff --git a/app/editor/menus/block.tsx b/app/editor/menus/block.tsx index 552ef9efbe..19d7665800 100644 --- a/app/editor/menus/block.tsx +++ b/app/editor/menus/block.tsx @@ -38,7 +38,12 @@ const Img = styled(Image)` height: 18px; `; -export default function blockMenuItems(dictionary: Dictionary): MenuItem[] { +export default function blockMenuItems( + dictionary: Dictionary, + documentRef: React.RefObject +): MenuItem[] { + const documentWidth = documentRef.current?.clientWidth ?? 0; + return [ { name: "heading", @@ -119,7 +124,11 @@ export default function blockMenuItems(dictionary: Dictionary): MenuItem[] { name: "table", title: dictionary.table, icon: , - attrs: { rowsCount: 3, colsCount: 3 }, + attrs: { + rowsCount: 3, + colsCount: 3, + colWidth: documentWidth / 3, + }, }, { name: "blockquote", diff --git a/app/editor/menus/image.tsx b/app/editor/menus/image.tsx index 035b4f01db..f67796a06c 100644 --- a/app/editor/menus/image.tsx +++ b/app/editor/menus/image.tsx @@ -33,14 +33,12 @@ export default function imageMenuItems( name: "alignLeft", tooltip: dictionary.alignLeft, icon: , - visible: true, active: isLeftAligned, }, { name: "alignCenter", tooltip: dictionary.alignCenter, icon: , - visible: true, active: (state) => isNodeActive(schema.nodes.image)(state) && !isLeftAligned(state) && @@ -51,19 +49,16 @@ export default function imageMenuItems( name: "alignRight", tooltip: dictionary.alignRight, icon: , - visible: true, active: isRightAligned, }, { name: "alignFullWidth", tooltip: dictionary.alignFullWidth, icon: , - visible: true, active: isFullWidthAligned, }, { name: "separator", - visible: true, }, { name: "downloadImage", @@ -75,13 +70,11 @@ export default function imageMenuItems( name: "replaceImage", tooltip: dictionary.replaceImage, icon: , - visible: true, }, { name: "deleteImage", tooltip: dictionary.deleteImage, icon: , - visible: true, }, ]; } diff --git a/app/editor/menus/notice.tsx b/app/editor/menus/notice.tsx new file mode 100644 index 0000000000..a1125c6b80 --- /dev/null +++ b/app/editor/menus/notice.tsx @@ -0,0 +1,63 @@ +import { + DoneIcon, + ExpandedIcon, + InfoIcon, + StarredIcon, + WarningIcon, +} from "outline-icons"; +import { EditorState } from "prosemirror-state"; +import * as React from "react"; +import { NoticeTypes } from "@shared/editor/nodes/Notice"; +import { MenuItem } from "@shared/editor/types"; +import { Dictionary } from "~/hooks/useDictionary"; + +export default function noticeMenuItems( + state: EditorState, + readOnly: boolean | undefined, + dictionary: Dictionary +): MenuItem[] { + const node = state.selection.$from.node(-1); + const currentStyle = node?.attrs.style as NoticeTypes; + + const mapping = { + [NoticeTypes.Info]: dictionary.infoNotice, + [NoticeTypes.Warning]: dictionary.warningNotice, + [NoticeTypes.Success]: dictionary.successNotice, + [NoticeTypes.Tip]: dictionary.tipNotice, + }; + + return [ + { + name: "container_notice", + visible: !readOnly, + label: mapping[currentStyle], + icon: , + children: [ + { + name: NoticeTypes.Info, + icon: , + label: dictionary.infoNotice, + active: () => currentStyle === NoticeTypes.Info, + }, + { + name: NoticeTypes.Success, + icon: , + label: dictionary.successNotice, + active: () => currentStyle === NoticeTypes.Success, + }, + { + name: NoticeTypes.Warning, + icon: , + label: dictionary.warningNotice, + active: () => currentStyle === NoticeTypes.Warning, + }, + { + name: NoticeTypes.Tip, + icon: , + label: dictionary.tipNotice, + active: () => currentStyle === NoticeTypes.Tip, + }, + ], + }, + ]; +} diff --git a/app/hooks/useComponentSize.ts b/app/hooks/useComponentSize.ts deleted file mode 100644 index c75c650b62..0000000000 --- a/app/hooks/useComponentSize.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { useState, useLayoutEffect } from "react"; - -export default function useComponentSize( - ref: React.RefObject -): { - width: number; - height: number; -} { - const [size, setSize] = useState({ width: 0, height: 0 }); - - useLayoutEffect(() => { - const sizeObserver = new ResizeObserver((entries) => { - entries.forEach(({ target }) => { - if ( - size.width !== target.clientWidth || - size.height !== target.clientHeight - ) { - setSize({ width: target.clientWidth, height: target.clientHeight }); - } - }); - }); - - if (ref.current) { - setSize({ - width: ref.current?.clientWidth, - height: ref.current?.clientHeight, - }); - sizeObserver.observe(ref.current); - } - - return () => sizeObserver.disconnect(); - }, [ref, size.height, size.width]); - - return size; -} 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/hooks/usePinnedDocuments.ts b/app/hooks/usePinnedDocuments.ts index 54c59d382d..a88ed2c120 100644 --- a/app/hooks/usePinnedDocuments.ts +++ b/app/hooks/usePinnedDocuments.ts @@ -2,13 +2,14 @@ import * as React from "react"; import usePersistedState from "~/hooks/usePersistedState"; import useStores from "./useStores"; -export function usePinnedDocuments( - urlId: "home" | string, - collectionId?: string -) { +type UrlId = "home" | string; + +export const pinsCacheKey = (urlId: UrlId) => `pins-${urlId}`; + +export function usePinnedDocuments(urlId: UrlId, collectionId?: string) { const { pins } = useStores(); const [pinsCacheCount, setPinsCacheCount] = usePersistedState( - `pins-${urlId}`, + pinsCacheKey(urlId), 0 ); diff --git a/app/hooks/useRequest.ts b/app/hooks/useRequest.ts index 88b465bcd9..e5b6eed59a 100644 --- a/app/hooks/useRequest.ts +++ b/app/hooks/useRequest.ts @@ -8,6 +8,8 @@ type RequestResponse = { error: unknown; /** Whether the request is currently in progress. */ loading: boolean; + /** Whether the request has completed - useful to check if the request has completed at least once. */ + loaded: boolean; /** Function to start the request. */ request: () => Promise; }; @@ -26,6 +28,7 @@ export default function useRequest( const isMounted = useIsMounted(); const [data, setData] = React.useState(); const [loading, setLoading] = React.useState(false); + const [loaded, setLoaded] = React.useState(false); const [error, setError] = React.useState(); const request = React.useCallback(async () => { @@ -36,6 +39,7 @@ export default function useRequest( if (isMounted()) { setData(response); setError(undefined); + setLoaded(true); } return response; } catch (err) { @@ -57,5 +61,5 @@ export default function useRequest( } }, [request, makeRequestOnMount]); - return { data, loading, error, request }; + return { data, loading, loaded, error, request }; } diff --git a/app/menus/CollectionMenu.tsx b/app/menus/CollectionMenu.tsx index e5b8673721..800b638d72 100644 --- a/app/menus/CollectionMenu.tsx +++ b/app/menus/CollectionMenu.tsx @@ -14,6 +14,7 @@ import { useHistory } from "react-router-dom"; import { useMenuState, MenuButton, MenuButtonHTMLProps } from "reakit/Menu"; import { VisuallyHidden } from "reakit/VisuallyHidden"; import { toast } from "sonner"; +import { SubscriptionType } from "@shared/types"; import { getEventFiles } from "@shared/utils/files"; import Collection from "~/models/Collection"; import ContextMenu, { Placement } from "~/components/ContextMenu"; @@ -31,10 +32,13 @@ import { createTemplate, archiveCollection, restoreCollection, + subscribeCollection, + unsubscribeCollection, } from "~/actions/definitions/collections"; import useActionContext from "~/hooks/useActionContext"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import usePolicy from "~/hooks/usePolicy"; +import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; import { MenuItem } from "~/types"; import { newDocumentPath } from "~/utils/routeHelpers"; @@ -63,11 +67,28 @@ function CollectionMenu({ placement, }); const team = useCurrentTeam(); - const { documents, dialogs } = useStores(); + const { documents, dialogs, subscriptions } = useStores(); const { t } = useTranslation(); const history = useHistory(); const file = React.useRef(null); + const { + loading: subscriptionLoading, + loaded: subscriptionLoaded, + request: loadSubscription, + } = useRequest(() => + subscriptions.fetchOne({ + collectionId: collection.id, + event: SubscriptionType.Document, + }) + ); + + const handlePointerEnter = React.useCallback(() => { + if (!subscriptionLoading && !subscriptionLoaded) { + void loadSubscription(); + } + }, [subscriptionLoading, subscriptionLoaded, loadSubscription]); + const handleExport = React.useCallback(() => { dialogs.openModal({ title: t("Export collection"), @@ -157,6 +178,8 @@ function CollectionMenu({ actionToMenuItem(restoreCollection, context), actionToMenuItem(starCollection, context), actionToMenuItem(unstarCollection, context), + actionToMenuItem(subscribeCollection, context), + actionToMenuItem(unsubscribeCollection, context), { type: "separator", }, @@ -272,9 +295,15 @@ function CollectionMenu({ {label ? ( - {label} + + {label} + ) : ( - + )} = ({ label, onTrigger }) => { const { t } = useTranslation(); - const { subscriptions } = useStores(); + const { subscriptions, pins } = useStores(); const { model: document, menuState } = useMenuContext(); - const { data, loading, error, request } = useRequest(() => - subscriptions.fetchPage({ - documentId: document.id, - event: "documents.update", - }) + const { + loading: auxDataLoading, + loaded: auxDataLoaded, + request: auxDataRequest, + } = useRequest(() => + Promise.all([ + subscriptions.fetchOne({ + documentId: document.id, + event: SubscriptionType.Document, + }), + document.collectionId + ? subscriptions.fetchOne({ + collectionId: document.collectionId, + event: SubscriptionType.Document, + }) + : noop, + pins.fetchOne({ + documentId: document.id, + collectionId: document.collectionId ?? null, + }), + ]) ); const handlePointerEnter = React.useCallback(() => { - if (isUndefined(data ?? error) && !loading) { - void request(); + if (!auxDataLoading && !auxDataLoaded) { + void auxDataRequest(); void document.loadRelations(); } - }, [data, error, loading, request, document]); + }, [auxDataLoading, auxDataLoaded, auxDataRequest, document]); return label ? ( = observer(function MenuContent_({ }, actionToMenuItem(starDocument, context), actionToMenuItem(unstarDocument, context), - actionToMenuItem(subscribeDocument, context), - actionToMenuItem(unsubscribeDocument, context), + { + ...actionToMenuItem(subscribeDocument, context), + disabled: collection?.isSubscribed, + tooltip: collection?.isSubscribed + ? t("Subscription inherited from collection") + : undefined, + } as MenuItemButton, + { + ...actionToMenuItem(unsubscribeDocument, context), + disabled: collection?.isSubscribed, + tooltip: collection?.isSubscribed + ? t("Subscription inherited from collection") + : undefined, + } as MenuItemButton, { type: "button", title: `${t("Find and replace")}…`, diff --git a/app/menus/NotificationMenu.tsx b/app/menus/NotificationMenu.tsx index e30503b098..ec590bc4ae 100644 --- a/app/menus/NotificationMenu.tsx +++ b/app/menus/NotificationMenu.tsx @@ -24,7 +24,6 @@ const NotificationMenu: React.FC = () => { { type: "button", title: t("Notification settings"), - visible: true, onClick: () => performAction(navigateToNotificationSettings, context), }, ], diff --git a/app/menus/TableOfContentsMenu.tsx b/app/menus/TableOfContentsMenu.tsx index bd8d2415b3..108e2850cc 100644 --- a/app/menus/TableOfContentsMenu.tsx +++ b/app/menus/TableOfContentsMenu.tsx @@ -3,6 +3,7 @@ import { TableOfContentsIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { MenuButton, useMenuState } from "reakit/Menu"; +import styled from "styled-components"; import Button from "~/components/Button"; import ContextMenu from "~/components/ContextMenu"; import Template from "~/components/ContextMenu/Template"; @@ -23,28 +24,29 @@ function TableOfContentsMenu() { Infinity ); - // @ts-expect-error check const items: MenuItem[] = React.useMemo(() => { const i = [ { type: "heading", - visible: true, title: t("Contents"), }, ...headings.map((heading) => ({ type: "link", href: `#${heading.id}`, - title: t(heading.title), + title: {t(heading.title)}, level: heading.level - minHeading, })), - ]; + ] as MenuItem[]; if (i.length === 1) { i.push({ type: "link", href: "#", - title: t("Headings you add to the document will appear here"), - // @ts-expect-error check + title: ( + + {t("Headings you add to the document will appear here")} + + ), disabled: true, }); } @@ -71,4 +73,10 @@ function TableOfContentsMenu() { ); } +const HeadingWrapper = styled.div` + max-width: 100%; + white-space: normal; + overflow-wrap: anywhere; +`; + export default observer(TableOfContentsMenu); diff --git a/app/models/AuthenticationProvider.ts b/app/models/AuthenticationProvider.ts index 1c56852e1d..34418022bc 100644 --- a/app/models/AuthenticationProvider.ts +++ b/app/models/AuthenticationProvider.ts @@ -5,8 +5,6 @@ import Field from "./decorators/Field"; class AuthenticationProvider extends Model { static modelName = "AuthenticationProvider"; - id: string; - displayName: string; name: string; diff --git a/app/models/Collection.ts b/app/models/Collection.ts index fe4de9438a..17b2158cd5 100644 --- a/app/models/Collection.ts +++ b/app/models/Collection.ts @@ -98,6 +98,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 { @@ -135,6 +140,16 @@ export default class Collection extends ParanoidModel { ); } + /** + * Returns whether there is a subscription for this collection in the store. + * + * @returns True if there is a subscription, false otherwise. + */ + @computed + get isSubscribed(): boolean { + return !!this.store.rootStore.subscriptions.getByCollectionId(this.id); + } + @computed get isManualSort(): boolean { return this.sort.field === "index"; @@ -187,6 +202,11 @@ export default class Collection extends ParanoidModel { return !this.isArchived && !this.isDeleted; } + @computed + get hasDocuments() { + return !!this.documents?.length; + } + fetchDocuments = async (options?: { force: boolean }) => { if (this.isFetching) { return; @@ -264,6 +284,36 @@ export default class Collection extends ParanoidModel { }); } + /** + * Adds the document identified by the given id to the collection in + * memory. Does not add the document to the database or store. + * + * @param document The document to add. + * @param parentDocumentId The id of the document to add the new document to. + */ + @action + addDocument(document: Document, parentDocumentId?: string) { + if (!this.documents) { + return; + } + + if (!parentDocumentId) { + this.documents.unshift(document.asNavigationNode); + return; + } + + const travelNodes = (nodes: NavigationNode[]) => + nodes.forEach((node) => { + if (node.id === parentDocumentId) { + node.children = [document.asNavigationNode, ...(node.children ?? [])]; + } else { + travelNodes(node.children); + } + }); + + travelNodes(this.documents); + } + @action updateIndex(index: string) { this.index = index; @@ -347,6 +397,22 @@ export default class Collection extends ParanoidModel { @action unstar = async () => this.store.unstar(this); + /** + * Subscribes the current user to this collection. + * + * @returns A promise that resolves when the subscription is created. + */ + @action + subscribe = () => this.store.subscribe(this); + + /** + * Unsubscribes the current user from this collection. + * + * @returns A promise that resolves when the subscription is destroyed. + */ + @action + unsubscribe = () => this.store.unsubscribe(this); + archive = () => this.store.archive(this); restore = () => this.store.restore(this); diff --git a/app/models/Document.ts b/app/models/Document.ts index 807ea76f49..f13483c904 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -27,6 +27,7 @@ import { client } from "~/utils/ApiClient"; import { settingsPath } from "~/utils/routeHelpers"; import Collection from "./Collection"; import Notification from "./Notification"; +import Pin from "./Pin"; import View from "./View"; import ArchivableModel from "./base/ArchivableModel"; import Field from "./decorators/Field"; @@ -307,9 +308,7 @@ export default class Document extends ArchivableModel implements Searchable { */ @computed get isSubscribed(): boolean { - return !!this.store.rootStore.subscriptions.orderedData.find( - (subscription) => subscription.documentId === this.id - ); + return !!this.store.rootStore.subscriptions.getByDocumentId(this.id); } /** @@ -450,7 +449,11 @@ export default class Document extends ArchivableModel implements Searchable { restore = (options?: { revisionId?: string; collectionId?: string }) => this.store.restore(this, options); - unpublish = () => this.store.unpublish(this); + unpublish = ( + options: { detach?: boolean } = { + detach: false, + } + ) => this.store.unpublish(this, options); @action enableEmbeds = () => { @@ -463,12 +466,17 @@ export default class Document extends ArchivableModel implements Searchable { }; @action - pin = (collectionId?: string | null) => - this.store.rootStore.pins.create({ + pin = async (collectionId?: string | null) => { + const pin = new Pin({}, this.store.rootStore.pins); + + await pin.save({ documentId: this.id, ...(collectionId ? { collectionId } : {}), }); + return pin; + }; + @action unpin = (collectionId?: string) => { const pin = this.store.rootStore.pins.orderedData.find( @@ -501,7 +509,7 @@ export default class Document extends ArchivableModel implements Searchable { * @returns A promise that resolves when the subscription is destroyed. */ @action - unsubscribe = (userId: string) => this.store.unsubscribe(userId, this); + unsubscribe = () => this.store.unsubscribe(this); @action view = () => { diff --git a/app/models/Event.ts b/app/models/Event.ts index 15ecd64dba..b3f3ad5ca5 100644 --- a/app/models/Event.ts +++ b/app/models/Event.ts @@ -7,8 +7,6 @@ import Relation from "./decorators/Relation"; class Event extends Model { static modelName = "Event"; - id: string; - name: string; modelId: string | undefined; diff --git a/app/models/FileOperation.ts b/app/models/FileOperation.ts index 2663efc23f..eb22a886ab 100644 --- a/app/models/FileOperation.ts +++ b/app/models/FileOperation.ts @@ -11,8 +11,6 @@ import Model from "./base/Model"; class FileOperation extends Model { static modelName = "FileOperation"; - id: string; - @observable state: FileOperationState; diff --git a/app/models/Integration.ts b/app/models/Integration.ts index 95657f902d..7338e36afa 100644 --- a/app/models/Integration.ts +++ b/app/models/Integration.ts @@ -12,8 +12,6 @@ import Relation from "~/models/decorators/Relation"; class Integration extends Model { static modelName = "Integration"; - id: string; - type: IntegrationType; service: IntegrationService; diff --git a/app/models/Membership.ts b/app/models/Membership.ts index 160eb1ceeb..f28d4c2b20 100644 --- a/app/models/Membership.ts +++ b/app/models/Membership.ts @@ -9,8 +9,6 @@ import Relation from "./decorators/Relation"; class Membership extends Model { static modelName = "Membership"; - id: string; - userId: string; @Relation(() => User, { onDelete: "cascade" }) diff --git a/app/models/Pin.ts b/app/models/Pin.ts index 1c27fdaa12..6b6a325fe6 100644 --- a/app/models/Pin.ts +++ b/app/models/Pin.ts @@ -1,15 +1,21 @@ import { observable } from "mobx"; +import PinsStore from "~/stores/PinsStore"; +import { setPersistedState } from "~/hooks/usePersistedState"; +import { pinsCacheKey } from "~/hooks/usePinnedDocuments"; import Collection from "./Collection"; import Document from "./Document"; import Model from "./base/Model"; import Field from "./decorators/Field"; +import { AfterCreate, AfterDelete, AfterRemove } from "./decorators/Lifecycle"; import Relation from "./decorators/Relation"; class Pin extends Model { static modelName = "Pin"; + store: PinsStore; + /** The collection ID that the document is pinned to. If empty the document is pinned to home. */ - collectionId: string; + collectionId: string | null; /** The collection that the document is pinned to. If empty the document is pinned to home. */ @Relation(() => Collection, { onDelete: "cascade" }) @@ -26,6 +32,30 @@ class Pin extends Model { @observable @Field index: string; + + @AfterCreate + @AfterDelete + @AfterRemove + static updateCache(model: Pin) { + const pins = model.store; + + // Pinned to home + if (!model.collectionId) { + setPersistedState(pinsCacheKey("home"), pins.home.length); + return; + } + + // Pinned to collection + const collection = pins.rootStore.collections.get(model.collectionId); + if (!collection) { + return; + } + + setPersistedState( + pinsCacheKey(collection.urlId), + pins.inCollection(collection.id).length + ); + } } export default Pin; diff --git a/app/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/models/Subscription.ts b/app/models/Subscription.ts index e9d3bd70c7..341e3f12c3 100644 --- a/app/models/Subscription.ts +++ b/app/models/Subscription.ts @@ -1,4 +1,5 @@ import { observable } from "mobx"; +import Collection from "./Collection"; import Document from "./Document"; import User from "./User"; import Model from "./base/Model"; @@ -25,6 +26,13 @@ class Subscription extends Model { @Relation(() => Document, { onDelete: "cascade" }) document?: Document; + /** The collection ID being subscribed to */ + collectionId: string; + + /** The collection being subscribed to */ + @Relation(() => Collection, { onDelete: "cascade" }) + collection?: Collection; + /** The event being subscribed to */ @Field @observable diff --git a/app/models/View.ts b/app/models/View.ts index 4cc4e934e6..522bb56f2c 100644 --- a/app/models/View.ts +++ b/app/models/View.ts @@ -7,8 +7,6 @@ import Relation from "./decorators/Relation"; class View extends Model { static modelName = "View"; - id: string; - documentId: string; @Relation(() => Document) diff --git a/app/scenes/Collection/index.tsx b/app/scenes/Collection/index.tsx index 20884bc553..3cfb1730c9 100644 --- a/app/scenes/Collection/index.tsx +++ b/app/scenes/Collection/index.tsx @@ -73,10 +73,13 @@ const CollectionScene = observer(function _CollectionScene() { const sidebarContext = useLocationSidebarContext(); const id = params.id || ""; + const urlId = id.split("-").pop() ?? ""; + const collection: Collection | null | undefined = collections.getByUrl(id) || collections.get(id); const can = usePolicy(collection); - const { pins, count } = usePinnedDocuments(id, collection?.id); + + const { pins, count } = usePinnedDocuments(urlId, collection?.id); const [collectionTab, setCollectionTab] = usePersistedState( `collection-tab:${collection?.id}`, collection?.hasDescription diff --git a/app/scenes/Document/components/DataLoader.tsx b/app/scenes/Document/components/DataLoader.tsx index 04a3975d41..fb7efe8ce5 100644 --- a/app/scenes/Document/components/DataLoader.tsx +++ b/app/scenes/Document/components/DataLoader.tsx @@ -183,7 +183,7 @@ function DataLoader({ match, children }: Props) { // Prevents unauthorized request to load share information for the document // when viewing a public share link - if (can.read && !document.isDeleted) { + if (can.read && !document.isDeleted && !revisionId) { if (team.getPreference(TeamPreference.Commenting)) { void comments.fetchAll({ documentId: document.id, @@ -199,7 +199,17 @@ function DataLoader({ match, children }: Props) { }); } } - }, [can.read, can.update, document, isEditRoute, comments, team, shares, ui]); + }, [ + can.read, + can.update, + document, + isEditRoute, + comments, + team, + shares, + ui, + revisionId, + ]); if (error) { return error instanceof OfflineError ? ( diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index 5e43f0b28b..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) { @@ -380,24 +381,23 @@ class DocumentScene extends React.Component { AUTOSAVE_DELAY ); - updateIsDirty = () => { + updateIsDirty = action(() => { const { document } = this.props; const doc = this.editor.current?.view.state.doc; - this.isEditorDirty = !isEqual(doc?.toJSON(), document.data); - // a single hash is a doc with just an empty title + this.isEditorDirty = !isEqual(doc?.toJSON(), document.data); this.isEmpty = (!doc || ProsemirrorHelper.isEmpty(doc)) && !this.title; - }; + }); updateIsDirtyDebounced = debounce(this.updateIsDirty, 500); - onFileUploadStart = () => { + onFileUploadStart = action(() => { this.isUploading = true; - }; + }); - onFileUploadStop = () => { + onFileUploadStop = action(() => { this.isUploading = false; - }; + }); handleChangeTitle = action((value: string) => { this.title = value; @@ -543,14 +543,6 @@ class DocumentScene extends React.Component { ) : ( <> - {showContents && ( - - - - )} { > + {showContents && ( + + + + )} { readOnly={readOnly} canUpdate={abilities.update} canComment={abilities.comment} + autoFocus={document.createdAt === document.updatedAt} > {shareId ? ( @@ -600,6 +598,14 @@ class DocumentScene extends React.Component { ) : null} + {showContents && ( + + + + )} )} @@ -665,6 +671,19 @@ const ContentsContainer = styled.div` 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/Header.tsx b/app/scenes/Document/components/Header.tsx index 02a841f6f0..554ca2bbfa 100644 --- a/app/scenes/Document/components/Header.tsx +++ b/app/scenes/Document/components/Header.tsx @@ -12,6 +12,7 @@ import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import styled, { useTheme } from "styled-components"; import Icon from "@shared/components/Icon"; +import { useComponentSize } from "@shared/hooks/useComponentSize"; import { NavigationNode } from "@shared/types"; import { altDisplay, metaDisplay } from "@shared/utils/keyboard"; import { Theme } from "~/stores/UiStore"; @@ -31,7 +32,6 @@ import { publishDocument } from "~/actions/definitions/documents"; import { navigateToTemplateSettings } from "~/actions/definitions/navigation"; import { restoreRevision } from "~/actions/definitions/revisions"; import useActionContext from "~/hooks/useActionContext"; -import useComponentSize from "~/hooks/useComponentSize"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import useCurrentUser from "~/hooks/useCurrentUser"; import useEditingFocus from "~/hooks/useEditingFocus"; @@ -281,15 +281,18 @@ function DocumentHeader({ limit={isCompact ? 3 : undefined} /> )} - {(isEditing || !user?.separateEditMode) && !isTemplate && isNew && ( - - - - )} + {(isEditing || !user?.separateEditMode) && + !isTemplate && + isNew && + can.update && ( + + + + )} {!isEditing && !isRevision && !isTemplate && can.update && ( diff --git a/app/scenes/Document/components/History.tsx b/app/scenes/Document/components/History.tsx index caf5a3d258..815a625555 100644 --- a/app/scenes/Document/components/History.tsx +++ b/app/scenes/Document/components/History.tsx @@ -1,12 +1,17 @@ +import isEqual from "fast-deep-equal"; +import orderBy from "lodash/orderBy"; import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { useHistory, useRouteMatch } from "react-router-dom"; import styled from "styled-components"; +import { Pagination } from "@shared/constants"; import { RevisionHelper } from "@shared/utils/RevisionHelper"; import Document from "~/models/Document"; -import Event from "~/models/Event"; +import EventModel from "~/models/Event"; +import Revision from "~/models/Revision"; import Empty from "~/components/Empty"; +import { DocumentEvent, type Event } from "~/components/EventListItem"; import PaginatedEventList from "~/components/PaginatedEventList"; import useKeyDown from "~/hooks/useKeyDown"; import { useLocationSidebarContext } from "~/hooks/useLocationSidebarContext"; @@ -14,21 +19,153 @@ import useStores from "~/hooks/useStores"; import { documentPath } from "~/utils/routeHelpers"; import Sidebar from "./SidebarLayout"; -const EMPTY_ARRAY: Event[] = []; +const DocumentEvents = [ + "documents.publish", + "documents.unpublish", + "documents.archive", + "documents.unarchive", + "documents.delete", + "documents.restore", + "documents.add_user", + "documents.remove_user", + "documents.move", +]; function History() { - const { events, documents } = useStores(); + const { events, documents, revisions } = useStores(); const { t } = useTranslation(); const match = useRouteMatch<{ documentSlug: string }>(); const history = useHistory(); const sidebarContext = useLocationSidebarContext(); const document = documents.getByUrl(match.params.documentSlug); - const eventsInDocument = document - ? events.filter({ documentId: document.id }) - : EMPTY_ARRAY; + const [, setForceRender] = React.useState(0); + const offset = React.useMemo(() => ({ revisions: 0, events: 0 }), []); - const onCloseHistory = () => { + const toEvent = React.useCallback( + (data: Revision | EventModel): Event => { + if (data instanceof Revision) { + return { + id: data.id, + name: "revisions.create", + actorId: data.createdBy.id, + createdAt: data.createdAt, + latest: false, + } satisfies Event; + } + + return { + id: data.id, + name: data.name as DocumentEvent["name"], + actorId: data.actorId, + userId: data.userId, + createdAt: data.createdAt, + } satisfies Event; + }, + [] + ); + + const fetchHistory = React.useCallback(async () => { + if (!document) { + return []; + } + + const [revisionsArr, eventsArr] = await Promise.all([ + revisions.fetchPage({ + documentId: document.id, + offset: offset.revisions, + limit: Pagination.defaultLimit, + }), + events.fetchPage({ + events: DocumentEvents, + documentId: document.id, + offset: offset.events, + limit: Pagination.defaultLimit, + }), + ]); + + const pageEvents = orderBy( + [...revisionsArr, ...eventsArr].map(toEvent), + "createdAt", + "desc" + ).slice(0, Pagination.defaultLimit); + + const revisionsCount = pageEvents.filter( + (event) => event.name === "revisions.create" + ).length; + + offset.revisions += revisionsCount; + offset.events += pageEvents.length - revisionsCount; + + // needed to re-render after mobx store and offset is updated + setForceRender((s) => ++s); + + return pageEvents; + }, [document, revisions, events, toEvent, offset]); + + const revisionEvents = React.useMemo(() => { + if (!document) { + return []; + } + + const latestRevisionId = RevisionHelper.latestId(document.id); + return revisions + .filter( + (revision: Revision) => + revision.id !== latestRevisionId && + revision.documentId === document.id + ) + .slice(0, offset.revisions) + .map(toEvent); + }, [document, revisions, offset.revisions, toEvent]); + + const nonRevisionEvents = React.useMemo( + () => + document + ? events + .filter({ documentId: document.id }) + .slice(0, offset.events) + .map(toEvent) + : [], + [document, events, offset.events, toEvent] + ); + + const mergedEvents = React.useMemo(() => { + const merged = orderBy( + [...revisionEvents, ...nonRevisionEvents], + "createdAt", + "desc" + ); + + const latestRevisionEvent = merged.find( + (event) => event.name === "revisions.create" + ); + + if (latestRevisionEvent && document) { + const latestRevision = revisions.get(latestRevisionEvent.id); + + 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", + createdAt: document.updatedAt, + actorId: document.updatedBy?.id ?? "", + latest: true, + }); + } else if (latestRevisionEvent) { + latestRevisionEvent.latest = true; + } + } + + return merged; + }, [revisions, document, revisionEvents, nonRevisionEvents]); + + const onCloseHistory = React.useCallback(() => { if (document) { history.push({ pathname: documentPath(document), @@ -37,30 +174,7 @@ function History() { } else { history.goBack(); } - }; - - const items = React.useMemo(() => { - if ( - eventsInDocument[0] && - document && - eventsInDocument[0].createdAt !== document.updatedAt - ) { - eventsInDocument.unshift( - new Event( - { - id: RevisionHelper.latestId(document.id), - name: "revisions.create", - documentId: document.id, - createdAt: document.updatedAt, - actor: document.updatedBy, - }, - events - ) - ); - } - - return eventsInDocument; - }, [eventsInDocument, events, document]); + }, [history, document, sidebarContext]); useKeyDown("Escape", onCloseHistory); @@ -69,11 +183,8 @@ function History() { {document ? ( {t("No history yet")}} /> diff --git a/app/scenes/Document/components/MeasuredContainer.tsx b/app/scenes/Document/components/MeasuredContainer.tsx index c7180dc3e4..209025fceb 100644 --- a/app/scenes/Document/components/MeasuredContainer.tsx +++ b/app/scenes/Document/components/MeasuredContainer.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import useComponentSize from "@shared/hooks/useComponentSize"; +import { useComponentSize } from "@shared/hooks/useComponentSize"; export const MeasuredContainer = ({ as: As, 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/DocumentNew.tsx b/app/scenes/DocumentNew.tsx index f9cb5a7953..981cc0df8c 100644 --- a/app/scenes/DocumentNew.tsx +++ b/app/scenes/DocumentNew.tsx @@ -50,7 +50,7 @@ function DocumentNew({ template }: Props) { user.getPreference(UserPreference.FullWidthDocuments), templateId: query.get("templateId") ?? undefined, template, - title: "", + title: query.get("title") ?? "", data: ProsemirrorHelper.getEmptyDocument(), }, { publish: collection?.id || parentDocumentId ? true : undefined } diff --git a/app/scenes/KeyboardShortcuts.tsx b/app/scenes/KeyboardShortcuts.tsx index 848be3cc8c..e29a1a304d 100644 --- a/app/scenes/KeyboardShortcuts.tsx +++ b/app/scenes/KeyboardShortcuts.tsx @@ -462,7 +462,7 @@ function KeyboardShortcuts() { items: [ { shortcut: "@", - label: t("Mention user or document"), + label: t("Mention users and more"), }, { shortcut: ":", diff --git a/app/scenes/Login/components/Notices.tsx b/app/scenes/Login/components/Notices.tsx index 5622d7e3d1..0a752b3f37 100644 --- a/app/scenes/Login/components/Notices.tsx +++ b/app/scenes/Login/components/Notices.tsx @@ -105,7 +105,7 @@ function Message({ notice }: { notice: string }) { case "authentication-provider-disabled": return ( - 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..281656871a 100644 --- a/app/scenes/Search/Search.tsx +++ b/app/scenes/Search/Search.tsx @@ -8,7 +8,7 @@ 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, @@ -60,10 +60,10 @@ function Search(props: Props) { routeMatch.params.term ?? 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]; @@ -375,27 +375,24 @@ const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)` const Filters = styled(Flex)` margin-bottom: 12px; - opacity: 0.85; transition: opacity 100ms ease-in-out; overflow-y: hidden; overflow-x: auto; padding: 8px 0; + height: 28px; gap: 8px; + ${hideScrollbars()} ${breakpoint("tablet")` padding: 0; `}; - - &: ${hover} { - opacity: 1; - } `; const SearchTitlesFilter = styled(Switch)` white-space: nowrap; margin-left: 8px; - margin-top: 2px; + margin-top: 4px; font-size: 14px; font-weight: 400; `; diff --git a/app/scenes/Search/components/CollectionFilter.tsx b/app/scenes/Search/components/CollectionFilter.tsx index 909424e004..683cb3ee16 100644 --- a/app/scenes/Search/components/CollectionFilter.tsx +++ b/app/scenes/Search/components/CollectionFilter.tsx @@ -21,13 +21,13 @@ function CollectionFilter(props: Props) { const collectionOptions = collections.orderedData.map((collection) => ({ 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/RecentSearchListItem.tsx b/app/scenes/Search/components/RecentSearchListItem.tsx index c73a5198c5..32256391e9 100644 --- a/app/scenes/Search/components/RecentSearchListItem.tsx +++ b/app/scenes/Search/components/RecentSearchListItem.tsx @@ -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/Export.tsx b/app/scenes/Settings/Export.tsx index 112b2b12f7..ad1652f971 100644 --- a/app/scenes/Settings/Export.tsx +++ b/app/scenes/Settings/Export.tsx @@ -35,7 +35,7 @@ function Export() { {t("Export")} - + + + )} 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 b0676bc94e..dbc8140419 100644 --- a/app/stores/CollectionsStore.ts +++ b/app/stores/CollectionsStore.ts @@ -8,6 +8,7 @@ import { CollectionPermission, CollectionStatusFilter, FileOperationFormat, + SubscriptionType, } from "@shared/types"; import Collection from "~/models/Collection"; import { PaginationParams, Properties } from "~/types"; @@ -68,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 + ); } /** @@ -213,6 +216,20 @@ export default class CollectionsStore extends Store { await star?.delete(); }; + subscribe = (collection: Collection) => + this.rootStore.subscriptions.create({ + collectionId: collection.id, + event: SubscriptionType.Document, + }); + + unsubscribe = (collection: Collection) => { + const subscription = this.rootStore.subscriptions.getByCollectionId( + collection.id + ); + + return subscription?.delete(); + }; + @computed get navigationNodes() { return this.orderedData.map((collection) => collection.asNavigationNode); diff --git a/app/stores/DocumentPresenceStore.ts b/app/stores/DocumentPresenceStore.ts index 02c2e6a7fe..374598d9df 100644 --- a/app/stores/DocumentPresenceStore.ts +++ b/app/stores/DocumentPresenceStore.ts @@ -1,5 +1,6 @@ import { observable, action } from "mobx"; import { AwarenessChangeEvent } from "~/types"; +import RootStore from "./RootStore"; type DocumentPresence = Map< string, @@ -13,11 +14,16 @@ export default class PresenceStore { @observable data: Map = new Map(); - timeouts: Map> = new Map(); + constructor(rootStore: RootStore) { + this.rootStore = rootStore; + } - offlineTimeout = 30000; - - // 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); @@ -27,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); @@ -38,7 +52,13 @@ export default class PresenceStore { event.states.forEach((state) => { const { user, cursor } = state; - if (user) { + + // 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); } @@ -49,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); @@ -66,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(); @@ -88,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/DocumentsStore.ts b/app/stores/DocumentsStore.ts index 2c71e71f98..32ede115a2 100644 --- a/app/stores/DocumentsStore.ts +++ b/app/stores/DocumentsStore.ts @@ -5,11 +5,12 @@ import find from "lodash/find"; import omitBy from "lodash/omitBy"; import orderBy from "lodash/orderBy"; import { observable, action, computed, runInAction } from "mobx"; -import type { - DateFilter, - NavigationNode, - PublicTeam, - StatusFilter, +import { + SubscriptionType, + type DateFilter, + type NavigationNode, + type PublicTeam, + type StatusFilter, } from "@shared/types"; import { subtractDate } from "@shared/utils/date"; import { bytesToHumanReadable } from "@shared/utils/files"; @@ -63,6 +64,7 @@ export default class DocumentsStore extends Store { ".md", ".doc", ".docx", + ".tsv", "text/csv", "text/markdown", "text/plain", @@ -342,18 +344,8 @@ export default class DocumentsStore extends Store { }; @action - fetchArchived = async (options?: PaginationParams): Promise => { - const archivedInResponse = await this.fetchNamedPage("archived", options); - const archivedInMemory = this.archived; - - archivedInMemory.forEach((docInMemory) => { - !archivedInResponse.find( - (docInResponse) => docInResponse.id === docInMemory.id - ) && this.remove(docInMemory.id); - }); - - return archivedInResponse; - }; + fetchArchived = async (options?: PaginationParams): Promise => + this.fetchNamedPage("archived", options); @action fetchDeleted = async (options?: PaginationParams): Promise => @@ -775,17 +767,30 @@ export default class DocumentsStore extends Store { }; @action - unpublish = async (document: Document) => { + unpublish = async ( + document: Document, + options: { detach?: boolean } = { + detach: false, + } + ) => { const res = await client.post("/documents.unpublish", { id: document.id, + ...options, }); runInAction("Document#unpublish", () => { invariant(res?.data, "Data should be available"); + // unpublishing could sometimes detach the document from the collection. + // so, get the collection id before data is updated. + const collectionId = document.collectionId; + document.updateData(res.data); this.addPolicies(res.policies); - const collection = this.getCollectionForDocument(document); - void collection?.fetchDocuments({ force: true }); + + if (collectionId) { + const collection = this.rootStore.collections.get(collectionId); + collection?.removeDocument(document.id); + } }); }; @@ -813,12 +818,12 @@ export default class DocumentsStore extends Store { subscribe = (document: Document) => this.rootStore.subscriptions.create({ documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }); - unsubscribe = (userId: string, document: Document) => { - const subscription = this.rootStore.subscriptions.orderedData.find( - (s) => s.documentId === document.id && s.userId === userId + unsubscribe = (document: Document) => { + const subscription = this.rootStore.subscriptions.getByDocumentId( + document.id ); return subscription?.delete(); diff --git a/app/stores/PinsStore.ts b/app/stores/PinsStore.ts index b82a3d592f..b553a900ef 100644 --- a/app/stores/PinsStore.ts +++ b/app/stores/PinsStore.ts @@ -3,6 +3,7 @@ import { action, runInAction, computed } from "mobx"; import Pin from "~/models/Pin"; import { PaginationParams } from "~/types"; import { client } from "~/utils/ApiClient"; +import { AuthorizationError, NotFoundError } from "~/utils/errors"; import RootStore from "./RootStore"; import Store from "./base/Store"; @@ -13,6 +14,41 @@ export default class PinsStore extends Store { super(rootStore, Pin); } + @action + async fetchOne({ + documentId, + collectionId, + }: { + documentId: string; + collectionId: string | null; + }) { + const pin = this.orderedData.find( + (p) => p.documentId === documentId && p.collectionId === collectionId + ); + + if (pin) { + return pin; + } + + this.isFetching = true; + + try { + const res = await client.post(`/${this.apiEndpoint}.info`, { + documentId, + collectionId, + }); + invariant(res?.data, "Data should be available"); + return this.add(res.data); + } catch (err) { + if (err instanceof AuthorizationError || err instanceof NotFoundError) { + return; + } + throw err; + } finally { + this.isFetching = false; + } + } + @action fetchPage = async (params?: FetchParams | undefined): Promise => { this.isFetching = true; diff --git a/app/stores/RevisionsStore.ts b/app/stores/RevisionsStore.ts index 9e6f07eb21..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); @@ -58,7 +58,7 @@ export default class RevisionsStore extends Store { @action fetchPage = async ( - options: PaginationParams | undefined + options: { documentId: string } & (PaginationParams | undefined) ): Promise => { this.isFetching = true; diff --git a/app/stores/SubscriptionsStore.ts b/app/stores/SubscriptionsStore.ts index fd9a700779..a7d9d23217 100644 --- a/app/stores/SubscriptionsStore.ts +++ b/app/stores/SubscriptionsStore.ts @@ -1,4 +1,9 @@ +import invariant from "invariant"; +import { action } from "mobx"; +import { SubscriptionType } from "@shared/types"; import Subscription from "~/models/Subscription"; +import { client } from "~/utils/ApiClient"; +import { AuthorizationError, NotFoundError } from "~/utils/errors"; import RootStore from "./RootStore"; import Store, { RPCAction } from "./base/Store"; @@ -8,4 +13,42 @@ export default class SubscriptionsStore extends Store { constructor(rootStore: RootStore) { super(rootStore, Subscription); } + + @action + async fetchOne( + options: { event: SubscriptionType } & ( + | { documentId: string } + | { collectionId: string } + ) + ) { + const subscription = + "collectionId" in options + ? this.getByCollectionId(options.collectionId) + : this.getByDocumentId(options.documentId); + + if (subscription) { + return subscription; + } + + this.isFetching = true; + + try { + const res = await client.post(`/${this.apiEndpoint}.info`, options); + invariant(res?.data, "Data should be available"); + return this.add(res.data); + } catch (err) { + if (err instanceof AuthorizationError || err instanceof NotFoundError) { + return; + } + throw err; + } finally { + this.isFetching = false; + } + } + + getByDocumentId = (documentId: string): Subscription | undefined => + this.find({ documentId }); + + getByCollectionId = (collectionId: string): Subscription | undefined => + this.find({ collectionId }); } diff --git a/app/types.ts b/app/types.ts index 8431e63ad4..a940e08cdc 100644 --- a/app/types.ts +++ b/app/types.ts @@ -27,6 +27,7 @@ export type MenuItemButton = { selected?: boolean; disabled?: boolean; icon?: React.ReactNode; + tooltip?: React.ReactChild; }; export type MenuItemWithChildren = { @@ -205,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/package.json b/package.json index 055163afe8..7a577df052 100644 --- a/package.json +++ b/package.json @@ -48,17 +48,17 @@ "> 0.25%, not dead" ], "dependencies": { - "@aws-sdk/client-s3": "3.735.0", - "@aws-sdk/lib-storage": "3.735.0", - "@aws-sdk/s3-presigned-post": "3.735.0", - "@aws-sdk/s3-request-presigner": "3.735.0", - "@aws-sdk/signature-v4-crt": "^3.734.0", - "@babel/core": "^7.26.7", + "@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", "@babel/plugin-transform-destructuring": "^7.25.9", "@babel/plugin-transform-regenerator": "^7.25.9", - "@babel/preset-env": "^7.26.7", + "@babel/preset-env": "^7.26.9", "@babel/preset-react": "^7.26.3", "@benrbray/prosemirror-math": "^0.2.2", "@bull-board/api": "^4.2.2", @@ -108,7 +108,7 @@ "crypto-js": "^4.2.0", "datadog-metrics": "^0.11.2", "date-fns": "^3.6.0", - "dd-trace": "^3.58.0", + "dd-trace": "^5.41.0", "diff": "^5.2.0", "dotenv": "^16.4.7", "email-providers": "^1.14.0", @@ -118,7 +118,7 @@ "fast-deep-equal": "^3.1.3", "fetch-retry": "^5.0.6", "fetch-with-proxy": "^3.0.1", - "form-data": "^4.0.0", + "form-data": "^4.0.2", "fractional-index": "^1.0.0", "framer-motion": "^4.1.17", "fs-extra": "^11.2.0", @@ -136,13 +136,13 @@ "jszip": "^3.10.1", "katex": "^0.16.21", "kbar": "0.1.0-beta.41", - "koa": "^2.15.3", + "koa": "^2.15.4", "koa-body": "^6.0.1", "koa-compress": "^5.1.1", "koa-helmet": "^6.1.0", "koa-logger": "^3.2.1", "koa-mount": "^4.0.0", - "koa-router": "7.4.0", + "koa-router": "13.0.1", "koa-send": "5.0.1", "koa-sslify": "5.0.1", "koa-useragent": "^4.1.0", @@ -159,7 +159,7 @@ "mobx-utils": "^4.0.1", "natural-sort": "^1.0.0", "node-fetch": "2.7.0", - "nodemailer": "^6.9.16", + "nodemailer": "^6.10.0", "octokit": "^3.2.1", "outline-icons": "^3.10.0", "oy-vey": "^0.12.1", @@ -188,7 +188,7 @@ "prosemirror-transform": "1.10.0", "prosemirror-view": "^1.37.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", @@ -201,7 +201,7 @@ "react-helmet-async": "^2.0.5", "react-hook-form": "^7.54.2", "react-i18next": "^12.3.1", - "react-medium-image-zoom": "5.2.10", + "react-medium-image-zoom": "5.2.13", "react-merge-refs": "^2.1.1", "react-portal": "^4.2.2", "react-router-dom": "^5.3.4", @@ -217,7 +217,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", @@ -225,7 +225,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", @@ -237,11 +237,12 @@ "tiny-cookie": "^2.5.1", "tmp": "^0.2.3", "turndown": "^7.2.0", + "ukkonen": "^2.1.0", "umzug": "^3.8.2", "utility-types": "^3.11.0", "uuid": "^8.3.2", "validator": "13.12.0", - "vite": "^5.4.12", + "vite": "^5.4.14", "vite-plugin-pwa": "^0.20.3", "winston": "^3.17.0", "ws": "^7.5.10", @@ -256,14 +257,14 @@ "@babel/cli": "^7.26.4", "@babel/preset-typescript": "^7.26.0", "@faker-js/faker": "^8.4.1", - "@relative-ci/agent": "^4.2.13", + "@relative-ci/agent": "^4.2.14", "@testing-library/react": "^12.0.0", "@types/addressparser": "^1.0.3", "@types/body-scroll-lock": "^3.1.2", "@types/crypto-js": "^4.2.2", "@types/diff": "^5.0.9", "@types/dotenv": "^8.2.3", - "@types/emoji-regex": "^9.2.0", + "@types/emoji-regex": "^9.2.2", "@types/escape-html": "^1.0.4", "@types/express-useragent": "^1.0.5", "@types/formidable": "^2.0.6", @@ -298,8 +299,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", @@ -333,7 +334,7 @@ "discord-api-types": "^0.37.102", "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", - "eslint-import-resolver-typescript": "^3.7.0", + "eslint-import-resolver-typescript": "^3.8.0", "eslint-plugin-es": "^4.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", @@ -343,7 +344,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", @@ -355,7 +356,7 @@ "rimraf": "^2.5.4", "rollup-plugin-webpack-stats": "^2.0.1", "terser": "^5.37.0", - "typescript": "^5.7.2", + "typescript": "^5.7.3", "vite-plugin-static-copy": "^0.17.0", "yarn-deduplicate": "^6.0.2" }, @@ -369,5 +370,5 @@ "qs": "6.9.7", "rollup": "^4.5.1" }, - "version": "0.81.0" -} + "version": "0.82.0" +} \ No newline at end of file diff --git a/plugins/storage/server/api/files.test.ts b/plugins/storage/server/api/files.test.ts index 249e53cb61..10e454d2c1 100644 --- a/plugins/storage/server/api/files.test.ts +++ b/plugins/storage/server/api/files.test.ts @@ -4,9 +4,15 @@ import path from "path"; import FormData from "form-data"; import { ensureDirSync } from "fs-extra"; import { v4 as uuidV4 } from "uuid"; +import { FileOperationState, FileOperationType } from "@shared/types"; import env from "@server/env"; +import { Buckets } from "@server/models/helpers/AttachmentHelper"; import FileStorage from "@server/storage/files"; -import { buildAttachment, buildUser } from "@server/test/factories"; +import { + buildAttachment, + buildFileOperation, + buildUser, +} from "@server/test/factories"; import { getTestServer } from "@server/test/support"; const server = getTestServer(); @@ -236,7 +242,16 @@ describe("#files.get", () => { it("should succeed with status 200 ok when file is requested using signature", async () => { const user = await buildUser(); const fileName = "images.docx"; - const key = path.join("uploads", user.id, uuidV4(), fileName); + const { key } = await buildAttachment( + { + teamId: user.teamId, + userId: user.id, + contentType: + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + acl: "private", + }, + fileName + ); const signedUrl = await FileStorage.getSignedUrl(key); ensureDirSync( @@ -262,6 +277,13 @@ describe("#files.get", () => { it("should succeed with status 200 ok when avatar is requested using key", async () => { const user = await buildUser(); const key = path.join("avatars", user.id, uuidV4()); + await buildAttachment({ + key, + teamId: user.teamId, + userId: user.id, + contentType: "image/jpg", + acl: "public-read", + }); ensureDirSync( path.dirname(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key)) @@ -274,7 +296,40 @@ describe("#files.get", () => { const res = await server.get(`/api/files.get?key=${key}`); expect(res.status).toEqual(200); - expect(res.headers.get("Content-Type")).toEqual("application/octet-stream"); + expect(res.headers.get("Content-Type")).toEqual("image/jpg"); expect(res.headers.get("Content-Disposition")).toEqual("attachment"); }); + + it("should succeed with status 200 ok when exported file is requested using signature", async () => { + const user = await buildUser(); + const fileName = "export-markdown.zip"; + const key = `${Buckets.uploads}/${user.teamId}/${uuidV4()}/${fileName}`; + + await buildFileOperation({ + userId: user.id, + teamId: user.teamId, + type: FileOperationType.Export, + state: FileOperationState.Complete, + key, + }); + + ensureDirSync( + path.dirname(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key)) + ); + + copyFileSync( + path.resolve(__dirname, "..", "test", "fixtures", fileName), + path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key) + ); + + const signedUrl = await FileStorage.getSignedUrl(key); + const url = new URL(signedUrl); + const res = await server.get(url.pathname + url.search); + + expect(res.status).toEqual(200); + expect(res.headers.get("Content-Type")).toEqual("application/zip"); + expect(res.headers.get("Content-Disposition")).toEqual( + 'attachment; filename="export-markdown.zip"' + ); + }); }); diff --git a/plugins/storage/server/api/files.ts b/plugins/storage/server/api/files.ts index 904f8c236e..963e869335 100644 --- a/plugins/storage/server/api/files.ts +++ b/plugins/storage/server/api/files.ts @@ -5,6 +5,7 @@ import env from "@server/env"; import { AuthenticationError, AuthorizationError, + NotFoundError, ValidationError, } from "@server/errors"; import auth from "@server/middlewares/authentication"; @@ -77,19 +78,25 @@ router.get( const { isPublicBucket, fileName } = AttachmentHelper.parseKey(key); const skipAuthorize = isPublicBucket || isSignedRequest; const cacheHeader = "max-age=604800, immutable"; - let contentType = - (fileName ? mime.lookup(fileName) : undefined) || - "application/octet-stream"; + + const attachment = await Attachment.findOne({ + where: { key }, + }); + + // Attachment is requested with a key, but it was not found + if (!attachment && !!ctx.input.query.key) { + throw NotFoundError(); + } if (!skipAuthorize) { - const attachment = await Attachment.findOne({ - where: { key }, - rejectOnEmpty: true, - }); authorize(actor, "read", attachment); - contentType = attachment.contentType; } + const contentType = + attachment?.contentType || + (fileName ? mime.lookup(fileName) : undefined) || + "application/octet-stream"; + ctx.set("Accept-Ranges", "bytes"); ctx.set("Cache-Control", cacheHeader); ctx.set("Content-Type", contentType); diff --git a/plugins/storage/server/test/fixtures/export-markdown.zip b/plugins/storage/server/test/fixtures/export-markdown.zip new file mode 100644 index 0000000000..a5001085e0 Binary files /dev/null and b/plugins/storage/server/test/fixtures/export-markdown.zip differ diff --git a/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts b/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts index 13f4cf741f..46657afbd3 100644 --- a/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts +++ b/plugins/webhooks/server/tasks/CleanupWebhookDeliveriesTask.ts @@ -10,7 +10,7 @@ import BaseTask, { type Props = Record; export default class CleanupWebhookDeliveriesTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Day; public async perform() { Logger.info("task", `Deleting WebhookDeliveries older than one week…`); diff --git a/server/commands/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/pinCreator.ts b/server/commands/pinCreator.ts index 6c5adeb04a..b7e8039a57 100644 --- a/server/commands/pinCreator.ts +++ b/server/commands/pinCreator.ts @@ -62,12 +62,13 @@ export default async function pinCreator({ index = fractionalIndex(pins.length ? pins[0].index : null, null); } - const pin = await Pin.createWithCtx(ctx, { - createdById: user.id, - teamId: user.teamId, - collectionId, - documentId, - index, + const [pin] = await Pin.findOrCreateWithCtx(ctx, { + where: { + collectionId: collectionId ?? null, + documentId, + teamId: user.teamId, + }, + defaults: { index, createdById: user.id }, }); return pin; diff --git a/server/commands/subscriptionCreator.test.ts b/server/commands/subscriptionCreator.test.ts index 9799f288a2..84a96515b4 100644 --- a/server/commands/subscriptionCreator.test.ts +++ b/server/commands/subscriptionCreator.test.ts @@ -1,14 +1,51 @@ +import { SubscriptionType } from "@shared/types"; import { createContext } from "@server/context"; import { Subscription, Event } from "@server/models"; import { sequelize } from "@server/storage/database"; -import { buildDocument, buildUser } from "@server/test/factories"; +import { + buildCollection, + buildDocument, + buildUser, +} from "@server/test/factories"; import subscriptionCreator from "./subscriptionCreator"; describe("subscriptionCreator", () => { const ip = "127.0.0.1"; - const subscribedEvent = "documents.update"; + const subscribedEvent = SubscriptionType.Document; - it("should create a subscription", async () => { + it("should create a document subscription for the whole collection", async () => { + const user = await buildUser(); + + const collection = await buildCollection({ + userId: user.id, + teamId: user.teamId, + }); + + const subscription = await sequelize.transaction(async (transaction) => + subscriptionCreator({ + ctx: createContext({ user, transaction, ip }), + collectionId: collection.id, + event: SubscriptionType.Document, + }) + ); + + const event = await Event.findOne({ + where: { + teamId: user.teamId, + }, + }); + + expect(subscription.collectionId).toEqual(collection.id); + expect(subscription.documentId).toBeNull(); + expect(subscription.userId).toEqual(user.id); + expect(event?.name).toEqual("subscriptions.create"); + expect(event?.modelId).toEqual(subscription.id); + expect(event?.actorId).toEqual(subscription.userId); + expect(event?.userId).toEqual(subscription.userId); + expect(event?.collectionId).toEqual(subscription.collectionId); + }); + + it("should create a document subscription", async () => { const user = await buildUser(); const document = await buildDocument({ @@ -31,6 +68,7 @@ describe("subscriptionCreator", () => { }); expect(subscription.documentId).toEqual(document.id); + expect(subscription.collectionId).toBeNull(); expect(subscription.userId).toEqual(user.id); expect(event?.name).toEqual("subscriptions.create"); expect(event?.modelId).toEqual(subscription.id); @@ -210,6 +248,7 @@ describe("subscriptionCreator", () => { where: { teamId: user.teamId, }, + order: [["createdAt", "ASC"]], }); expect(events.length).toEqual(3); diff --git a/server/commands/subscriptionCreator.ts b/server/commands/subscriptionCreator.ts index 43049116f2..dffddd004a 100644 --- a/server/commands/subscriptionCreator.ts +++ b/server/commands/subscriptionCreator.ts @@ -1,3 +1,5 @@ +import { WhereOptions } from "sequelize"; +import { SubscriptionType } from "@shared/types"; import { createContext } from "@server/context"; import { Subscription, Document } from "@server/models"; import { sequelize } from "@server/storage/database"; @@ -8,8 +10,10 @@ type Props = { ctx: APIContext; /** The document to subscribe to */ documentId?: string; + /** The collection to subscribe to */ + collectionId?: string; /** Event to subscribe to */ - event: string; + event: SubscriptionType; /** Whether the subscription should be restored if it exists in a deleted state */ resubscribe?: boolean; }; @@ -22,16 +26,27 @@ type Props = { export default async function subscriptionCreator({ ctx, documentId, + collectionId, event, resubscribe = true, }: Props): Promise { const { user } = ctx.context.auth; + + const where: WhereOptions = { + userId: user.id, + event, + }; + + if (documentId) { + where.documentId = documentId; + } + + if (collectionId) { + where.collectionId = collectionId; + } + const [subscription] = await Subscription.findOrCreateWithCtx(ctx, { - where: { - userId: user.id, - documentId, - event, - }, + where, paranoid: false, // Previous subscriptions are soft-deleted, we want to know about them here. }); @@ -68,7 +83,7 @@ export const createSubscriptionsForDocument = async ( transaction, }), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, resubscribe: false, }); } 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/templates/ConfirmUserDeleteEmail.tsx b/server/emails/templates/ConfirmUserDeleteEmail.tsx index d0e9444341..882484ade6 100644 --- a/server/emails/templates/ConfirmUserDeleteEmail.tsx +++ b/server/emails/templates/ConfirmUserDeleteEmail.tsx @@ -11,6 +11,8 @@ import Heading from "./components/Heading"; type Props = EmailProps & { deleteConfirmationCode: string; + teamName: string; + teamUrl: string; }; /** @@ -29,15 +31,15 @@ export default class ConfirmUserDeleteEmail extends BaseEmail { return `Your requested account deletion code`; } - protected renderAsText({ deleteConfirmationCode }: Props): string { + protected renderAsText({ teamName, deleteConfirmationCode }: Props): string { return ` -You requested to permanently delete your ${env.APP_NAME} account. Please enter the code below to confirm your account deletion. +You requested to permanently delete your ${env.APP_NAME} user account in the ${teamName} workspace. Please enter the code below to confirm your account deletion. Code: ${deleteConfirmationCode} `; } - protected render({ deleteConfirmationCode }: Props) { + protected render({ teamUrl, teamName, deleteConfirmationCode }: Props) { return (
@@ -45,8 +47,9 @@ Code: ${deleteConfirmationCode} Your account deletion request

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

diff --git a/server/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/20250207120103-add-collectionId-to-subscriptions.js b/server/migrations/20250207120103-add-collectionId-to-subscriptions.js new file mode 100644 index 0000000000..9291a1cf45 --- /dev/null +++ b/server/migrations/20250207120103-add-collectionId-to-subscriptions.js @@ -0,0 +1,44 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.sequelize.transaction(async transaction => { + await queryInterface.addColumn( + "subscriptions", + "collectionId", + { + type: Sequelize.UUID, + allowNull: true, + onDelete: "cascade", + references: { + model: "collections", + }, + }, + { transaction } + ); + await queryInterface.addIndex( + "subscriptions", + ["userId", "collectionId", "event"], + { + name: "subscriptions_user_id_collection_id_event", + type: "UNIQUE", + transaction, + } + ); + }); + }, + + async down(queryInterface, Sequelize) { + await queryInterface.sequelize.transaction(async transaction => { + await queryInterface.removeIndex( + "subscriptions", + ["userId", "collectionId", "event"], + { transaction } + ); + await queryInterface.removeColumn("subscriptions", "collectionId", { + transaction, + }); + }); + }, +}; diff --git a/server/migrations/20250217012609-document-title-index.js b/server/migrations/20250217012609-document-title-index.js new file mode 100644 index 0000000000..082b681b65 --- /dev/null +++ b/server/migrations/20250217012609-document-title-index.js @@ -0,0 +1,19 @@ +'use strict'; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { +async up (queryInterface) { + await queryInterface.sequelize.query( + `CREATE EXTENSION IF NOT EXISTS "pg_trgm";`, + ); + await queryInterface.sequelize.query( + `CREATE INDEX CONCURRENTLY documents_title_idx ON documents USING GIN (title gin_trgm_ops);`, + ); + }, + + async down (queryInterface) { + await queryInterface.sequelize.query( + `DROP INDEX CONCURRENTLY documents_title_idx;`, + ); + } +}; diff --git a/server/migrations/20250217230810-add-team-previous-subdomains.js b/server/migrations/20250217230810-add-team-previous-subdomains.js new file mode 100644 index 0000000000..898348bc66 --- /dev/null +++ b/server/migrations/20250217230810-add-team-previous-subdomains.js @@ -0,0 +1,27 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.sequelize.transaction(async transaction => { + await queryInterface.addColumn("teams", "previousSubdomains", { + type: Sequelize.ARRAY(Sequelize.STRING), + allowNull: true, + }, { transaction }); + await queryInterface.sequelize.query( + `CREATE INDEX teams_previous_subdomains ON teams USING GIN ("previousSubdomains");`, + { transaction } + ); + }); + }, + + async down(queryInterface) { + await queryInterface.sequelize.transaction(async transaction => { + await queryInterface.sequelize.query( + `DROP INDEX teams_previous_subdomains;`, + { transaction } + ); + await queryInterface.removeColumn("teams", "previousSubdomains", { transaction }); + }); + }, +}; diff --git a/server/migrations/20250223142558-cascade-team-domain.js b/server/migrations/20250223142558-cascade-team-domain.js new file mode 100644 index 0000000000..d9be917340 --- /dev/null +++ b/server/migrations/20250223142558-cascade-team-domain.js @@ -0,0 +1,49 @@ +const tableName = "team_domains"; +// because of this issue in Sequelize the foreign key constraint may be named differently depending +// on when the previous migrations were ran https://github.com/sequelize/sequelize/pull/9890 + +const constraintNames = [ + "team_domains_createdById_fkey", + "createdById_foreign_idx" +]; + +module.exports = { + up: async (queryInterface, Sequelize) => { + let error; + + for (const constraintName of constraintNames) { + try { + await queryInterface.sequelize.query( + `alter table "${tableName}" drop constraint "${constraintName}"` + ); + await queryInterface.sequelize.query(`alter table "${tableName}" + add constraint "${constraintName}" foreign key("createdById") references "users" ("id") + on delete set null`); + return; + } catch (err) { + error = err; + } + } + + throw error; + }, + down: async (queryInterface, Sequelize) => { + let error; + + for (const constraintName of constraintNames) { + try { + await queryInterface.sequelize.query( + `alter table "${tableName}" drop constraint "${constraintName}"` + ); + await queryInterface.sequelize.query(`alter table "${tableName}"\ + add constraint "${constraintName}" foreign key("createdById") references "users" ("id") + on delete no action`); + return; + } catch (err) { + error = err; + } + } + + throw error; + }, +}; 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/ApiKey.test.ts b/server/models/ApiKey.test.ts index e783bcd169..ea2b4de895 100644 --- a/server/models/ApiKey.test.ts +++ b/server/models/ApiKey.test.ts @@ -46,6 +46,15 @@ describe("#ApiKey", () => { }); describe("canAccess", () => { + it("should account for query string", async () => { + const apiKey = await buildApiKey({ + name: "Dev", + scope: ["/api/documents.info"], + }); + + expect(apiKey.canAccess("/api/documents.info?foo=bar")).toBe(true); + }); + it("should return true for all resources if no scope", async () => { const apiKey = await buildApiKey({ name: "Dev", diff --git a/server/models/ApiKey.ts b/server/models/ApiKey.ts index e9ab31c183..f52079087f 100644 --- a/server/models/ApiKey.ts +++ b/server/models/ApiKey.ts @@ -174,6 +174,9 @@ class ApiKey extends ParanoidModel< return true; } + // strip any query string from the path + path = path.split("?")[0]; + const resource = path.split("/").pop() ?? ""; const [namespace, method] = resource.split("."); diff --git a/server/models/Document.ts b/server/models/Document.ts index 144711b879..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; @@ -981,7 +983,13 @@ class Document extends ArchivableModel< return false; }; - unpublish = async (user: User) => { + /** + * + * @param user User who is performing the action + * @param options.detach Whether to detach the document from the containing collection + * @returns Updated document + */ + unpublish = async (user: User, options: { detach: boolean }) => { // If the document is already a draft then calling unpublish should act like save if (!this.publishedAt) { return this.save(); @@ -1010,6 +1018,11 @@ class Document extends ArchivableModel< this.createdBy = user; this.updatedBy = user; this.publishedAt = null; + + if (options.detach) { + this.collectionId = null; + } + return this.save(); }; diff --git a/server/models/GroupMembership.ts b/server/models/GroupMembership.ts index bf96bbecc9..24c7ac3b9b 100644 --- a/server/models/GroupMembership.ts +++ b/server/models/GroupMembership.ts @@ -19,13 +19,17 @@ import { AfterCreate, AfterUpdate, AfterDestroy, + BeforeDestroy, + BeforeUpdate, } from "sequelize-typescript"; import { CollectionPermission, DocumentPermission } from "@shared/types"; +import { ValidationError } from "@server/errors"; import { APIContext } from "@server/types"; import Collection from "./Collection"; import Document from "./Document"; import Group from "./Group"; import User from "./User"; +import UserMembership from "./UserMembership"; import { type HookContext } from "./base/Model"; import ParanoidModel from "./base/ParanoidModel"; import Fix from "./decorators/Fix"; @@ -247,6 +251,36 @@ class GroupMembership extends ParanoidModel< } } + @BeforeUpdate + static async checkLastAdminBeforeUpdate( + model: GroupMembership, + ctx: APIContext["context"] + ) { + if ( + model.permission === CollectionPermission.Admin || + model.previous("permission") !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + + @BeforeDestroy + static async checkLastAdminBeforeDestroy( + model: GroupMembership, + ctx: APIContext["context"] + ) { + // Only check for last admin permission if this permission is admin + if ( + model.permission !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + @AfterUpdate static async publishAddGroupEventAfterUpdate( model: GroupMembership, @@ -366,6 +400,34 @@ class GroupMembership extends ParanoidModel< await Document.insertEvent(name, this, hookContext); } } + + private static async validateLastAdminPermission( + model: GroupMembership, + { transaction }: APIContext["context"] + ) { + const [userMemberships, groupMemberships] = await Promise.all([ + UserMembership.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + this.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + ]); + + if (userMemberships === 0 && groupMemberships === 1) { + throw ValidationError( + "At least one user or group must have manage permissions" + ); + } + } } export default GroupMembership; diff --git a/server/models/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/Subscription.ts b/server/models/Subscription.ts index 3b70a3a6b7..63c25c6997 100644 --- a/server/models/Subscription.ts +++ b/server/models/Subscription.ts @@ -8,6 +8,8 @@ import { IsIn, Scopes, } from "sequelize-typescript"; +import { SubscriptionType } from "@shared/types"; +import Collection from "./Collection"; import Document from "./Document"; import User from "./User"; import ParanoidModel from "./base/ParanoidModel"; @@ -42,7 +44,14 @@ class Subscription extends ParanoidModel< @Column(DataType.UUID) documentId: string | null; - @IsIn([["documents.update"]]) + @BelongsTo(() => Collection, "collectionId") + collection: Collection | null; + + @ForeignKey(() => Document) + @Column(DataType.UUID) + collectionId: string | null; + + @IsIn([Object.values(SubscriptionType)]) @Column(DataType.STRING) event: string; } diff --git a/server/models/Team.test.ts b/server/models/Team.test.ts index 5c5194752b..25665bea59 100644 --- a/server/models/Team.test.ts +++ b/server/models/Team.test.ts @@ -1,20 +1,43 @@ import { buildTeam, buildCollection } from "@server/test/factories"; -describe("collectionIds", () => { - it("should return non-private collection ids", async () => { - const team = await buildTeam(); - const collection = await buildCollection({ - teamId: team.id, +describe("Team", () => { + describe("collectionIds", () => { + it("should return non-private collection ids", async () => { + const team = await buildTeam(); + const collection = await buildCollection({ + teamId: team.id, + }); + // build a collection in another team + await buildCollection(); + // build a private collection + await buildCollection({ + teamId: team.id, + permission: null, + }); + const response = await team.collectionIds(); + expect(response.length).toEqual(1); + expect(response[0]).toEqual(collection.id); }); - // build a collection in another team - await buildCollection(); - // build a private collection - await buildCollection({ - teamId: team.id, - permission: null, + }); + + describe("previousSubdomains", () => { + it("should list the previous subdomains", async () => { + const team = await buildTeam({ + subdomain: "example", + }); + const subdomain = "updated"; + + await team.update({ subdomain }); + expect(team.subdomain).toEqual(subdomain); + expect(team.previousSubdomains?.length).toEqual(1); + expect(team.previousSubdomains?.[0]).toEqual("example"); + + const subdomain2 = "another"; + await team.update({ subdomain: subdomain2 }); + expect(team.subdomain).toEqual(subdomain2); + expect(team.previousSubdomains?.length).toEqual(2); + expect(team.previousSubdomains?.[0]).toEqual("example"); + expect(team.previousSubdomains?.[1]).toEqual(subdomain); }); - const response = await team.collectionIds(); - expect(response.length).toEqual(1); - expect(response[0]).toEqual(collection.id); }); }); diff --git a/server/models/Team.ts b/server/models/Team.ts index 43e052f840..2bf5d4c738 100644 --- a/server/models/Team.ts +++ b/server/models/Team.ts @@ -171,6 +171,9 @@ class Team extends ParanoidModel< @Column lastActiveAt: Date | null; + @Column(DataType.ARRAY(DataType.STRING)) + previousSubdomains: string[] | null; + // getters /** @@ -369,6 +372,25 @@ class Team extends ParanoidModel< return model; } + @BeforeUpdate + static async savePreviousSubdomain(model: Team) { + const previousSubdomain = model.previous("subdomain"); + if (previousSubdomain && previousSubdomain !== model.subdomain) { + model.previousSubdomains = model.previousSubdomains || []; + + if (!model.previousSubdomains.includes(previousSubdomain)) { + // Add the previous subdomain to the list of previous subdomains + // upto a maximum of 3 previous subdomains + model.previousSubdomains.push(previousSubdomain); + if (model.previousSubdomains.length > 3) { + model.previousSubdomains.shift(); + } + } + } + + return model; + } + @AfterUpdate static deletePreviousAvatar = async (model: Team) => { const previousAvatarUrl = model.previous("avatarUrl"); @@ -393,6 +415,41 @@ class Team extends ParanoidModel< } } }; + + /** + * Find a team by its current or previous subdomain. + * + * @param subdomain - The subdomain to search for. + * @returns The team with the given or previous subdomain, or null if not found. + */ + static async findBySubdomain(subdomain: string) { + // Preference is always given to the team with the subdomain currently + // otherwise we can try and find a team that previously used the subdomain. + return ( + (await this.findOne({ + where: { + subdomain, + }, + })) || (await this.findByPreviousSubdomain(subdomain)) + ); + } + + /** + * Find a team by its previous subdomain. + * + * @param previousSubdomain - The previous subdomain to search for. + * @returns The team with the given previous subdomain, or null if not found. + */ + static async findByPreviousSubdomain(previousSubdomain: string) { + return this.findOne({ + where: { + previousSubdomains: { + [Op.contains]: [previousSubdomain], + }, + }, + order: [["updatedAt", "DESC"]], + }); + } } export default Team; diff --git a/server/models/TeamDomain.test.ts b/server/models/TeamDomain.test.ts index b9c9b51e26..41610a0295 100644 --- a/server/models/TeamDomain.test.ts +++ b/server/models/TeamDomain.test.ts @@ -1,7 +1,7 @@ import { buildAdmin, buildTeam } from "@server/test/factories"; import TeamDomain from "./TeamDomain"; -describe("team domain model", () => { +describe("TeamDomain", () => { describe("create", () => { it("should allow creation of domains", async () => { const team = await buildTeam(); diff --git a/server/models/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/UserMembership.ts b/server/models/UserMembership.ts index bb385445b7..ceb1501d61 100644 --- a/server/models/UserMembership.ts +++ b/server/models/UserMembership.ts @@ -19,11 +19,15 @@ import { AfterUpdate, Length, AfterDestroy, + BeforeDestroy, + BeforeUpdate, } from "sequelize-typescript"; import { CollectionPermission, DocumentPermission } from "@shared/types"; +import { ValidationError } from "@server/errors"; import { APIContext } from "@server/types"; import Collection from "./Collection"; import Document from "./Document"; +import GroupMembership from "./GroupMembership"; import User from "./User"; import IdModel from "./base/IdModel"; import { HookContext } from "./base/Model"; @@ -249,6 +253,36 @@ class UserMembership extends IdModel< } } + @BeforeUpdate + static async checkLastAdminBeforeUpdate( + model: UserMembership, + ctx: APIContext["context"] + ) { + if ( + model.permission === CollectionPermission.Admin || + model.previous("permission") !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + + @BeforeDestroy + static async checkLastAdminBeforeDestroy( + model: UserMembership, + ctx: APIContext["context"] + ) { + // Only check for last admin permission if this permission is admin + if ( + model.permission !== CollectionPermission.Admin || + !model.collectionId + ) { + return; + } + await this.validateLastAdminPermission(model, ctx); + } + @AfterUpdate static async publishAddUserEventAfterUpdate( model: UserMembership, @@ -346,6 +380,34 @@ class UserMembership extends IdModel< await Document.insertEvent(name, this, hookContext); } } + + private static async validateLastAdminPermission( + model: UserMembership, + { transaction }: APIContext["context"] + ) { + const [userMemberships, groupMemberships] = await Promise.all([ + this.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + GroupMembership.count({ + where: { + collectionId: model.collectionId, + permission: CollectionPermission.Admin, + }, + transaction, + }), + ]); + + if (userMemberships === 1 && groupMemberships === 0) { + throw ValidationError( + "At least one user or group must have manage permissions" + ); + } + } } export default UserMembership; diff --git a/server/models/base/Model.test.ts b/server/models/base/Model.test.ts index acbdd1ba83..884e9f88b8 100644 --- a/server/models/base/Model.test.ts +++ b/server/models/base/Model.test.ts @@ -74,5 +74,27 @@ describe("Model", () => { expect(usersBatch[0].length).toEqual(100); expect(usersBatch[1].length).toEqual(5); }); + + it("should return data in batches with total limit", async () => { + const team = await buildTeam(); + await User.bulkCreate( + [...Array(10)].map(() => ({ + email: faker.internet.email().toLowerCase(), + name: faker.person.fullName(), + teamId: team.id, + })) + ); + + const usersBatch: User[][] = []; + + await User.findAllInBatches( + { where: { teamId: team.id }, batchLimit: 2, totalLimit: 4 }, + async (foundUsers) => void usersBatch.push(foundUsers) + ); + + expect(usersBatch.length).toEqual(2); + expect(usersBatch[0].length).toEqual(2); + expect(usersBatch[1].length).toEqual(2); + }); }); }); diff --git a/server/models/base/Model.ts b/server/models/base/Model.ts index f47dffd149..e27c416f85 100644 --- a/server/models/base/Model.ts +++ b/server/models/base/Model.ts @@ -282,7 +282,10 @@ class Model< * @param callback The function to call for each batch of results */ static async findAllInBatches( - query: Replace, "limit", "batchLimit">, + query: Replace, "limit", "batchLimit"> & { + /** The maximum number of results to return, after which the query will stop. */ + totalLimit?: number; + }, callback: (results: Array, query: FindOptions) => Promise ) { const mappedQuery = { @@ -298,7 +301,10 @@ class Model< results = await this.findAll(mappedQuery); await callback(results, mappedQuery); mappedQuery.offset += mappedQuery.limit; - } while (results.length >= mappedQuery.limit); + } while ( + results.length >= mappedQuery.limit && + (mappedQuery.totalLimit ?? Infinity) > mappedQuery.offset + ); } /** diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index 0809cdd6ff..cd9add19c1 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -1,5 +1,6 @@ import { JSDOM } from "jsdom"; import { Node } from "prosemirror-model"; +import ukkonen from "ukkonen"; import { updateYFragment, yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import textBetween from "@shared/editor/lib/textBetween"; @@ -146,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)) @@ -164,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 + " " : ""}${ @@ -478,25 +487,26 @@ export class DocumentHelper { } /** - * Compares two documents and returns true if the text content is equal. This does not take into account - * changes to other properties such as table column widths, other visual settings. + * Compares two documents or revisions and returns whether the text differs by more than the threshold. * * @param document The document to compare * @param other The other document to compare - * @returns True if the text content is equal + * @param threshold The threshold for the change in characters + * @returns True if the text differs by more than the threshold */ - public static isTextContentEqual( + public static isChangeOverThreshold( before: Document | Revision | null, - after: Document | Revision | null + after: Document | Revision | null, + threshold: number ) { if (!before || !after) { return false; } - return ( - before.title === after.title && - this.toMarkdown(before) === this.toMarkdown(after) - ); + const first = before.title + this.toPlainText(before); + const second = after.title + this.toPlainText(after); + const distance = ukkonen(first, second, threshold + 1); + return distance > threshold; } private static textSerializers = getTextSerializers(schema); diff --git a/server/models/helpers/NotificationHelper.test.ts b/server/models/helpers/NotificationHelper.test.ts new file mode 100644 index 0000000000..4cc18cec05 --- /dev/null +++ b/server/models/helpers/NotificationHelper.test.ts @@ -0,0 +1,259 @@ +import { NotificationEventType } from "@shared/types"; +import { + buildComment, + buildDocument, + buildSubscription, + buildUser, +} from "@server/test/factories"; +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(); + const document = await buildDocument({ + userId: documentAuthor.id, + teamId: documentAuthor.teamId, + }); + const notificationEnabledUser = await buildUser({ + teamId: document.teamId, + notificationSettings: { [NotificationEventType.UpdateDocument]: true }, + }); + + const recipients = + await NotificationHelper.getDocumentNotificationRecipients({ + document, + notificationType: NotificationEventType.UpdateDocument, + onlySubscribers: false, + actorId: documentAuthor.id, + }); + + expect(recipients.length).toEqual(1); + expect(recipients[0].id).toEqual(notificationEnabledUser.id); + }); + + it("should return users who have subscribed to the document", async () => { + const documentAuthor = await buildUser(); + const document = await buildDocument({ + userId: documentAuthor.id, + teamId: documentAuthor.teamId, + }); + const subscribedUser = await buildUser({ teamId: document.teamId }); + await buildSubscription({ + userId: subscribedUser.id, + documentId: document.id, + }); + + const recipients = + await NotificationHelper.getDocumentNotificationRecipients({ + document, + notificationType: NotificationEventType.UpdateDocument, + onlySubscribers: true, + actorId: documentAuthor.id, + }); + + expect(recipients.length).toEqual(1); + expect(recipients[0].id).toEqual(subscribedUser.id); + }); + + it("should return users who have subscribed to the collection", async () => { + const documentAuthor = await buildUser(); + const document = await buildDocument({ + userId: documentAuthor.id, + teamId: documentAuthor.teamId, + }); + const subscribedUser = await buildUser({ teamId: document.teamId }); + await buildSubscription({ + userId: subscribedUser.id, + collectionId: document.collectionId!, + }); + + const recipients = + await NotificationHelper.getDocumentNotificationRecipients({ + document, + notificationType: NotificationEventType.UpdateDocument, + onlySubscribers: true, + actorId: documentAuthor.id, + }); + + expect(recipients.length).toEqual(1); + expect(recipients[0].id).toEqual(subscribedUser.id); + }); + + it("should return users who have subscribed to either the document or the containing collection", async () => { + const documentAuthor = await buildUser(); + const document = await buildDocument({ + userId: documentAuthor.id, + teamId: documentAuthor.teamId, + }); + const [documentSubscribedUser, collectionSubscribedUser] = + await Promise.all([ + buildUser({ + teamId: document.teamId, + }), + buildUser({ + teamId: document.teamId, + }), + ]); + await Promise.all([ + buildSubscription({ + userId: documentSubscribedUser.id, + documentId: document.id, + }), + buildSubscription({ + userId: collectionSubscribedUser.id, + collectionId: document.collectionId!, + }), + ]); + + const recipients = + await NotificationHelper.getDocumentNotificationRecipients({ + document, + notificationType: NotificationEventType.UpdateDocument, + onlySubscribers: true, + actorId: documentAuthor.id, + }); + + expect(recipients.length).toEqual(2); + + const recipientIds = recipients.map((u) => u.id); + expect(recipientIds).toContain(collectionSubscribedUser.id); + expect(recipientIds).toContain(documentSubscribedUser.id); + }); + + it("should not return suspended users", async () => { + const documentAuthor = await buildUser(); + const document = await buildDocument({ + userId: documentAuthor.id, + teamId: documentAuthor.teamId, + }); + const notificationEnabledUser = await buildUser({ + teamId: document.teamId, + notificationSettings: { [NotificationEventType.UpdateDocument]: true }, + }); + // suspended user + await buildUser({ + suspendedAt: new Date(), + teamId: document.teamId, + notificationSettings: { [NotificationEventType.UpdateDocument]: true }, + }); + + const recipients = + await NotificationHelper.getDocumentNotificationRecipients({ + document, + notificationType: NotificationEventType.UpdateDocument, + onlySubscribers: false, + actorId: documentAuthor.id, + }); + + expect(recipients.length).toEqual(1); + expect(recipients[0].id).toEqual(notificationEnabledUser.id); + }); + }); +}); diff --git a/server/models/helpers/NotificationHelper.ts b/server/models/helpers/NotificationHelper.ts index db9fa8c62f..51868784b3 100644 --- a/server/models/helpers/NotificationHelper.ts +++ b/server/models/helpers/NotificationHelper.ts @@ -1,6 +1,10 @@ import uniq from "lodash/uniq"; import { Op } from "sequelize"; -import { NotificationEventType, MentionType } from "@shared/types"; +import { + NotificationEventType, + MentionType, + SubscriptionType, +} from "@shared/types"; import Logger from "@server/logging/Logger"; import { User, @@ -56,12 +60,12 @@ export default class NotificationHelper { comment: Comment, actorId: string ): Promise => { - let recipients = await this.getDocumentNotificationRecipients( + let recipients = await this.getDocumentNotificationRecipients({ document, - NotificationEventType.UpdateDocument, + notificationType: NotificationEventType.CreateComment, + onlySubscribers: !comment.parentCommentId, actorId, - !comment.parentCommentId - ); + }); recipients = recipients.filter((recipient) => recipient.subscribedToEventType(NotificationEventType.CreateComment) @@ -127,18 +131,22 @@ export default class NotificationHelper { * Get the recipients of a notification for a document event. * * @param document The document to get recipients for. - * @param eventType The event name. + * @param notificationType The notification type for which to find the recipients. + * @param onlySubscribers Whether to consider only the users who have active subscription to the document. * @param actorId The id of the user that performed the action. - * @param onlySubscribers Whether to only return recipients that are actively - * subscribed to the document. * @returns A list of recipients */ - public static getDocumentNotificationRecipients = async ( - document: Document, - eventType: NotificationEventType, - actorId: string, - onlySubscribers: boolean - ): Promise => { + public static getDocumentNotificationRecipients = async ({ + document, + notificationType, + onlySubscribers, + actorId, + }: { + document: Document; + notificationType: NotificationEventType; + onlySubscribers: boolean; + actorId: string; + }): Promise => { // First find all the users that have notifications enabled for this event // type at all and aren't the one that performed the action. let recipients = await User.findAll({ @@ -151,7 +159,7 @@ export default class NotificationHelper { }); recipients = recipients.filter((recipient) => - recipient.subscribedToEventType(eventType) + recipient.subscribedToEventType(notificationType) ); // Filter further to only those that have a subscription to the document… @@ -160,8 +168,11 @@ export default class NotificationHelper { attributes: ["userId"], where: { userId: recipients.map((recipient) => recipient.id), - documentId: document.id, - event: eventType, + event: SubscriptionType.Document, + [Op.or]: [ + { collectionId: document.collectionId }, + { documentId: document.id }, + ], }, }); 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 aa5323e878..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:*"); @@ -877,7 +922,7 @@ describe("SearchHelper", () => { "this&is&a&test:*" ); }); - test("should now wildcard quoted queries", () => { + test("should not wildcard quoted queries", () => { expect(SearchHelper.webSearchQuery(`"this is a test"`)).toBe( `"this<->is<->a<->test"` ); diff --git a/server/models/helpers/SearchHelper.ts b/server/models/helpers/SearchHelper.ts index c63e966f6c..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 = {} @@ -470,7 +499,7 @@ export default class SearchHelper { const likelyUrls = getUrls(options.query); // remove likely urls, and escape the rest of the query. - const limitedQuery = this.escapeQuery( + let limitedQuery = this.escapeQuery( likelyUrls .reduce((q, url) => q.replace(url, ""), options.query) .slice(0, this.maxQueryLength) @@ -482,6 +511,9 @@ export default class SearchHelper { (match) => match[1] ); + // remove quoted queries from the limited query + limitedQuery = limitedQuery.replace(/"([^"]*)"/g, ""); + const iLikeQueries = [...quotedQueries, ...likelyUrls].slice(0, 3); for (const match of iLikeQueries) { @@ -598,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", @@ -662,7 +696,6 @@ export default class SearchHelper { "because", "as", "until", - "while", "of", "at", "by", @@ -670,7 +703,6 @@ export default class SearchHelper { "with", "about", "against", - "between", "into", "through", "during", @@ -678,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", @@ -697,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", @@ -720,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/collection.ts b/server/policies/collection.ts index 2ec24f42d2..132bfdd68a 100644 --- a/server/policies/collection.ts +++ b/server/policies/collection.ts @@ -49,7 +49,7 @@ allow(User, "read", Collection, (user, collection) => { allow( User, - ["readDocument", "star", "unstar"], + ["readDocument", "star", "unstar", "subscribe", "unsubscribe"], Collection, (user, collection) => { if (!collection || user.teamId !== collection.teamId) { 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/presenters/subscription.ts b/server/presenters/subscription.ts index 084cb51630..d1cced5332 100644 --- a/server/presenters/subscription.ts +++ b/server/presenters/subscription.ts @@ -5,6 +5,7 @@ export default function presentSubscription(subscription: Subscription) { id: subscription.id, userId: subscription.userId, documentId: subscription.documentId, + collectionId: subscription.collectionId, event: subscription.event, createdAt: subscription.createdAt, updatedAt: subscription.updatedAt, diff --git a/server/queues/processors/DocumentSubscriptionProcessor.ts b/server/queues/processors/DocumentSubscriptionProcessor.ts new file mode 100644 index 0000000000..ff565f73ea --- /dev/null +++ b/server/queues/processors/DocumentSubscriptionProcessor.ts @@ -0,0 +1,51 @@ +import { Op } from "sequelize"; +import { GroupUser } from "@server/models"; +import { DocumentGroupEvent, DocumentUserEvent, Event } from "@server/types"; +import DocumentSubscriptionTask from "../tasks/DocumentSubscriptionTask"; +import BaseProcessor from "./BaseProcessor"; + +export default class DocumentSubscriptionProcessor extends BaseProcessor { + static applicableEvents: Event["name"][] = [ + "documents.remove_user", + "documents.remove_group", + ]; + + async perform(event: DocumentUserEvent | DocumentGroupEvent) { + switch (event.name) { + case "documents.remove_user": { + await DocumentSubscriptionTask.schedule(event); + return; + } + + case "documents.remove_group": + return this.handleGroup(event); + + default: + } + } + + private async handleGroup(event: DocumentGroupEvent) { + await GroupUser.findAllInBatches( + { + where: { + groupId: event.modelId, + userId: { + [Op.ne]: event.actorId, + }, + }, + batchLimit: 10, + }, + async (groupUsers) => { + await Promise.all( + groupUsers.map((groupUser) => + DocumentSubscriptionTask.schedule({ + ...event, + name: "documents.remove_user", + userId: groupUser.userId, + }) + ) + ); + } + ); + } +} diff --git a/server/queues/processors/DocumentUserAddedProcessor.ts b/server/queues/processors/DocumentUserAddedProcessor.ts deleted file mode 100644 index d93f059670..0000000000 --- a/server/queues/processors/DocumentUserAddedProcessor.ts +++ /dev/null @@ -1,31 +0,0 @@ -import subscriptionCreator from "@server/commands/subscriptionCreator"; -import { createContext } from "@server/context"; -import { User } from "@server/models"; -import { sequelize } from "@server/storage/database"; -import { DocumentUserEvent, Event } from "@server/types"; -import BaseProcessor from "./BaseProcessor"; - -export default class DocumentUserAddedProcessor extends BaseProcessor { - static applicableEvents: Event["name"][] = ["documents.add_user"]; - - async perform(event: DocumentUserEvent) { - const user = await User.findByPk(event.userId); - if (!user) { - return; - } - - await sequelize.transaction(async (transaction) => { - await subscriptionCreator({ - ctx: createContext({ - user, - authType: event.authType, - ip: event.ip, - transaction, - }), - documentId: event.documentId, - event: "documents.update", - resubscribe: false, - }); - }); - } -} 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/processors/WebsocketsProcessor.ts b/server/queues/processors/WebsocketsProcessor.ts index a3d261674b..75c49f37e9 100644 --- a/server/queues/processors/WebsocketsProcessor.ts +++ b/server/queues/processors/WebsocketsProcessor.ts @@ -42,7 +42,6 @@ export default class WebsocketsProcessor { switch (event.name) { case "documents.create": case "documents.publish": - case "documents.unpublish": case "documents.restore": { const document = await Document.findByPk(event.documentId, { paranoid: false, @@ -73,6 +72,28 @@ export default class WebsocketsProcessor { }); } + case "documents.unpublish": { + const document = await Document.findByPk(event.documentId, { + paranoid: false, + }); + + if (!document) { + return; + } + + const documentToPresent = await presentDocument(undefined, document); + + const channels = await this.getDocumentEventChannels(event, document); + + // We need to add the collection channel to let the members update the doc structure. + channels.push(`collection-${event.collectionId}`); + + return socketio.to(channels).emit(event.name, { + document: documentToPresent, + collectionId: event.collectionId, + }); + } + case "documents.unarchive": { const [document, srcCollection] = await Promise.all([ Document.findByPk(event.documentId, { paranoid: false }), diff --git a/server/queues/tasks/BaseTask.ts b/server/queues/tasks/BaseTask.ts index 4bd34fd2f7..e212d83730 100644 --- a/server/queues/tasks/BaseTask.ts +++ b/server/queues/tasks/BaseTask.ts @@ -9,8 +9,9 @@ export enum TaskPriority { } export enum TaskSchedule { - Daily = "daily", - Hourly = "hourly", + Day = "daily", + Hour = "hourly", + Minute = "minute", } export default abstract class BaseTask> { diff --git a/server/queues/tasks/CleanupDeletedDocumentsTask.ts b/server/queues/tasks/CleanupDeletedDocumentsTask.ts index 4c04095381..71646ba644 100644 --- a/server/queues/tasks/CleanupDeletedDocumentsTask.ts +++ b/server/queues/tasks/CleanupDeletedDocumentsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class CleanupDeletedDocumentsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info( diff --git a/server/queues/tasks/CleanupDeletedTeamsTask.ts b/server/queues/tasks/CleanupDeletedTeamsTask.ts index 403ee684db..daaa9d4ab6 100644 --- a/server/queues/tasks/CleanupDeletedTeamsTask.ts +++ b/server/queues/tasks/CleanupDeletedTeamsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class CleanupDeletedTeamsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info( diff --git a/server/queues/tasks/CleanupExpiredAttachmentsTask.ts b/server/queues/tasks/CleanupExpiredAttachmentsTask.ts index a5596666d3..195f511724 100644 --- a/server/queues/tasks/CleanupExpiredAttachmentsTask.ts +++ b/server/queues/tasks/CleanupExpiredAttachmentsTask.ts @@ -8,7 +8,7 @@ type Props = { }; export default class CleanupExpiredAttachmentsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info("task", `Deleting expired attachments…`); diff --git a/server/queues/tasks/CleanupExpiredFileOperationsTask.ts b/server/queues/tasks/CleanupExpiredFileOperationsTask.ts index 2a405d275a..4e3e79b1fa 100644 --- a/server/queues/tasks/CleanupExpiredFileOperationsTask.ts +++ b/server/queues/tasks/CleanupExpiredFileOperationsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class CleanupExpiredFileOperationsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info("task", `Expiring file operations older than 15 days…`); diff --git a/server/queues/tasks/CleanupOldEventsTask.ts b/server/queues/tasks/CleanupOldEventsTask.ts new file mode 100644 index 0000000000..6d1189f7e4 --- /dev/null +++ b/server/queues/tasks/CleanupOldEventsTask.ts @@ -0,0 +1,60 @@ +import { subDays } from "date-fns"; +import { Op } from "sequelize"; +import Logger from "@server/logging/Logger"; +import { Event } from "@server/models"; +import BaseTask, { + TaskPriority, + TaskSchedule, +} from "@server/queues/tasks/BaseTask"; + +type Props = Record; + +export default class CleanupOldEventsTask extends BaseTask { + static cron = TaskSchedule.Hour; + + public async perform() { + // TODO: Hardcoded right now, configurable later + const retentionDays = 365; + const cutoffDate = subDays(new Date(), retentionDays); + const maxEventsPerTask = 100000; + let totalEventsDeleted = 0; + + try { + await Event.findAllInBatches( + { + attributes: ["id"], + where: { + createdAt: { + [Op.lt]: cutoffDate, + }, + }, + batchLimit: 1000, + totalLimit: maxEventsPerTask, + order: [["createdAt", "ASC"]], + }, + async (events) => { + totalEventsDeleted += await Event.destroy({ + where: { + id: { + [Op.in]: events.map((event) => event.id), + }, + }, + }); + } + ); + } finally { + if (totalEventsDeleted > 0) { + Logger.info("task", `Deleted old events`, { + totalEventsDeleted, + }); + } + } + } + + public get options() { + return { + attempts: 1, + priority: TaskPriority.Background, + }; + } +} diff --git a/server/queues/tasks/CleanupOldNotificationsTask.ts b/server/queues/tasks/CleanupOldNotificationsTask.ts index 752f73de66..5a4624f528 100644 --- a/server/queues/tasks/CleanupOldNotificationsTask.ts +++ b/server/queues/tasks/CleanupOldNotificationsTask.ts @@ -7,7 +7,7 @@ import BaseTask, { TaskPriority, TaskSchedule } from "./BaseTask"; type Props = Record; export default class CleanupOldNotificationsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform() { Logger.info("task", `Permanently destroying old notifications…`); diff --git a/server/queues/tasks/CommentCreatedNotificationsTask.ts b/server/queues/tasks/CommentCreatedNotificationsTask.ts index ebb03896a0..7e6f86ee30 100644 --- a/server/queues/tasks/CommentCreatedNotificationsTask.ts +++ b/server/queues/tasks/CommentCreatedNotificationsTask.ts @@ -1,4 +1,8 @@ -import { MentionType, NotificationEventType } from "@shared/types"; +import { + MentionType, + NotificationEventType, + SubscriptionType, +} from "@shared/types"; import subscriptionCreator from "@server/commands/subscriptionCreator"; import { createContext } from "@server/context"; import { Comment, Document, Notification, User } from "@server/models"; @@ -6,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 { @@ -34,7 +38,7 @@ export default class CommentCreatedNotificationsTask 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 1db0ad5aa0..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 { @@ -51,12 +51,12 @@ export default class DocumentPublishedNotificationsTask extends BaseTask !userIdsMentioned.includes(recipient.id)); for (const recipient of recipients) { diff --git a/server/queues/tasks/DocumentSubscriptionTask.ts b/server/queues/tasks/DocumentSubscriptionTask.ts new file mode 100644 index 0000000000..e36147f403 --- /dev/null +++ b/server/queues/tasks/DocumentSubscriptionTask.ts @@ -0,0 +1,52 @@ +import { Transaction } from "sequelize"; +import { SubscriptionType } from "@shared/types"; +import { createContext } from "@server/context"; +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"; + +export default class DocumentSubscriptionTask extends BaseTask { + public async perform(event: DocumentUserEvent) { + const user = await User.findByPk(event.userId); + + if (!user || event.name !== "documents.remove_user") { + return; + } + + const document = await Document.findByPk(event.documentId, { + userId: user.id, + }); + + 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: SubscriptionType.Document, + }, + transaction, + lock: Transaction.LOCK.UPDATE, + }); + + await subscription?.destroyWithCtx( + createContext({ + user, + authType: event.authType, + ip: event.ip, + transaction, + }) + ); + }); + } +} 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/ErrorTimedOutFileOperationsTask.ts b/server/queues/tasks/ErrorTimedOutFileOperationsTask.ts index bc5f44eb4e..c5e99e33c0 100644 --- a/server/queues/tasks/ErrorTimedOutFileOperationsTask.ts +++ b/server/queues/tasks/ErrorTimedOutFileOperationsTask.ts @@ -10,7 +10,7 @@ type Props = { }; export default class ErrorTimedOutFileOperationsTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Hour; public async perform({ limit }: Props) { Logger.info("task", `Error file operations running longer than 12 hours…`); diff --git a/server/queues/tasks/ImportMarkdownZipTask.ts b/server/queues/tasks/ImportMarkdownZipTask.ts index 23c72eab0f..8155decd6e 100644 --- a/server/queues/tasks/ImportMarkdownZipTask.ts +++ b/server/queues/tasks/ImportMarkdownZipTask.ts @@ -176,7 +176,7 @@ export default class ImportMarkdownZipTask extends ImportTask { document.text = document.text .replace(new RegExp(escapeRegExp(encodedPath), "g"), reference) .replace( - new RegExp(`\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"), + new RegExp(`\\\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"), reference ); } diff --git a/server/queues/tasks/InviteReminderTask.ts b/server/queues/tasks/InviteReminderTask.ts index 3e1d238d31..be559c777f 100644 --- a/server/queues/tasks/InviteReminderTask.ts +++ b/server/queues/tasks/InviteReminderTask.ts @@ -9,7 +9,7 @@ import BaseTask, { TaskPriority, TaskSchedule } from "./BaseTask"; type Props = Record; export default class InviteReminderTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Day; public async perform() { const users = await User.scope("invited").findAll({ diff --git a/server/queues/tasks/RevisionCreatedNotificationsTask.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 041815298b..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 { @@ -28,10 +28,10 @@ export default class RevisionCreatedNotificationsTask extends BaseTask !userIdsMentioned.includes(recipient.id)); if (!recipients.length) { return; diff --git a/server/queues/tasks/UpdateTeamsAttachmentsSizeTask.ts b/server/queues/tasks/UpdateTeamsAttachmentsSizeTask.ts index 433a0835a7..48c7055033 100644 --- a/server/queues/tasks/UpdateTeamsAttachmentsSizeTask.ts +++ b/server/queues/tasks/UpdateTeamsAttachmentsSizeTask.ts @@ -11,7 +11,7 @@ type Props = { }; export default class UpdateTeamsAttachmentsSizeTask extends BaseTask { - static cron = TaskSchedule.Daily; + static cron = TaskSchedule.Day; public async perform({ limit }: Props) { Logger.info( diff --git a/server/routes/api/attachments/attachments.ts b/server/routes/api/attachments/attachments.ts index d2288c2151..120052231b 100644 --- a/server/routes/api/attachments/attachments.ts +++ b/server/routes/api/attachments/attachments.ts @@ -176,6 +176,8 @@ router.post( throw InvalidRequestError(response.error); } + await attachment.reload(); + ctx.body = { data: presentAttachment(attachment), }; diff --git a/server/routes/api/collections/collections.ts b/server/routes/api/collections/collections.ts index df3a1088df..0eb75ad298 100644 --- a/server/routes/api/collections/collections.ts +++ b/server/routes/api/collections/collections.ts @@ -708,7 +708,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 }); @@ -734,6 +734,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({ @@ -749,6 +755,8 @@ router.post( }); } + const replacements = { query: `%${query}%` }; + const [collections, total] = await Promise.all([ Collection.scope( statusFilter?.includes(CollectionStatusFilter.Archived) @@ -763,6 +771,7 @@ router.post( } ).findAll({ where, + replacements, order: [ Sequelize.literal('"collection"."index" collate "C"'), ["updatedAt", "DESC"], @@ -771,7 +780,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 e7b48d206b..1105a97b53 100644 --- a/server/routes/api/collections/schema.ts +++ b/server/routes/api/collections/schema.ts @@ -7,13 +7,13 @@ import { FileOperationFormat, } from "@shared/types"; import { Collection } from "@server/models"; -import { zodIconType } from "@server/utils/zod"; +import { zodIconType, zodIdType } from "@server/utils/zod"; import { ValidateColor, ValidateIndex } from "@server/validation"; import { BaseSchema, ProsemirrorSchema } from "../schema"; const BaseIdSchema = z.object({ /** Id of the collection to be updated */ - id: z.string(), + id: zodIdType(), }); export const CollectionsCreateSchema = BaseSchema.extend({ @@ -181,6 +181,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 774f07292b..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(), + /** 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/cron/cron.ts b/server/routes/api/cron/cron.ts index 88bb10fede..7b4f5f9fd9 100644 --- a/server/routes/api/cron/cron.ts +++ b/server/routes/api/cron/cron.ts @@ -3,13 +3,20 @@ import env from "@server/env"; import { AuthenticationError } from "@server/errors"; import validate from "@server/middlewares/validate"; import tasks from "@server/queues/tasks"; +import { TaskSchedule } from "@server/queues/tasks/BaseTask"; import { APIContext } from "@server/types"; import { safeEqual } from "@server/utils/crypto"; import * as T from "./schema"; const router = new Router(); +/** Whether the minutely cron job has been received */ +const receivedPeriods = new Set(); + const cronHandler = async (ctx: APIContext) => { + const period = Object.keys(TaskSchedule).includes(ctx.params.period) + ? (ctx.params.period as TaskSchedule) + : TaskSchedule.Day; const token = (ctx.input.body.token ?? ctx.input.query.token) as string; const limit = ctx.input.body.limit ?? ctx.input.query.limit; @@ -17,9 +24,26 @@ const cronHandler = async (ctx: APIContext) => { throw AuthenticationError("Invalid secret token"); } + receivedPeriods.add(period); + for (const name in tasks) { const TaskClass = tasks[name]; - if (TaskClass.cron) { + if (TaskClass.cron === period) { + await TaskClass.schedule({ limit }); + + // Backwards compatibility for installations that have not set up + // cron jobs periods other than daily. + } else if ( + TaskClass.cron === TaskSchedule.Minute && + !receivedPeriods.has(TaskSchedule.Minute) && + (period === TaskSchedule.Hour || period === TaskSchedule.Day) + ) { + await TaskClass.schedule({ limit }); + } else if ( + TaskClass.cron === TaskSchedule.Hour && + !receivedPeriods.has(TaskSchedule.Hour) && + period === TaskSchedule.Day + ) { await TaskClass.schedule({ limit }); } } diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index d43f786372..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, @@ -1997,14 +1998,18 @@ describe("#documents.templatize", () => { }); const body = await res.json(); expect(res.status).toBe(400); - expect(body.message).toBe("id: Required"); + expect(body.message).toBe("id: Must be a valid UUID or slug"); }); it("should require publish", async () => { const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); const res = await server.post("/api/documents.templatize", { body: { token: user.getJwtToken(), - id: "random-id", + id: document.id, }, }); const body = await res.json(); @@ -2581,7 +2586,7 @@ describe("#documents.move", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should fail for invalid index", async () => { @@ -2887,7 +2892,7 @@ describe("#documents.restore", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should fail for invalid collectionId", async () => { @@ -3253,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 () => { @@ -4331,7 +4341,7 @@ describe("#documents.update", () => { }); const body = await res.json(); expect(res.status).toBe(400); - expect(body.message).toBe("id: Required"); + expect(body.message).toBe("id: Must be a valid UUID or slug"); }); }); @@ -4345,7 +4355,7 @@ describe("#documents.archive", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should allow archiving document", async () => { @@ -4388,7 +4398,7 @@ describe("#documents.delete", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should allow deleting document", async () => { @@ -4537,7 +4547,7 @@ describe("#documents.unpublish", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should unpublish a document", async () => { @@ -5083,7 +5093,7 @@ describe("#documents.add_user", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should require authentication", async () => { @@ -5169,7 +5179,7 @@ describe("#documents.remove_user", () => { }); const body = await res.json(); expect(res.status).toEqual(400); - expect(body.message).toEqual("id: Required"); + expect(body.message).toEqual("id: Must be a valid UUID or slug"); }); it("should require authentication", async () => { diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 70dcfa42d6..a6a015c134 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -1454,7 +1454,7 @@ router.post( auth(), validate(T.DocumentsUnpublishSchema), async (ctx: APIContext) => { - const { id } = ctx.input.body; + const { id, detach } = ctx.input.body; const { user } = ctx.state.auth; const document = await Document.findByPk(id, { @@ -1473,14 +1473,14 @@ router.post( ); } - await document.unpublish(user); + // detaching would unset collectionId from document, so save a ref to the affected collectionId. + const collectionId = document.collectionId; + + await document.unpublish(user, { detach }); await Event.createFromContext(ctx, { name: "documents.unpublish", documentId: document.id, - collectionId: document.collectionId, - data: { - title: document.title, - }, + collectionId, }); ctx.body = { diff --git a/server/routes/api/documents/schema.ts b/server/routes/api/documents/schema.ts index f8f97421cf..be38350268 100644 --- a/server/routes/api/documents/schema.ts +++ b/server/routes/api/documents/schema.ts @@ -5,7 +5,7 @@ import { z } from "zod"; import { DocumentPermission, StatusFilter } from "@shared/types"; import { UrlHelper } from "@shared/utils/UrlHelper"; import { BaseSchema } from "@server/routes/api/schema"; -import { zodIconType } from "@server/utils/zod"; +import { zodIconType, zodIdType } from "@server/utils/zod"; import { ValidateColor } from "@server/validation"; const DocumentsSortParamsSchema = z.object({ @@ -64,7 +64,7 @@ const BaseSearchSchema = DateFilterSchema.extend({ const BaseIdSchema = z.object({ /** Id of the document to be updated */ - id: z.string(), + id: zodIdType(), }); export const DocumentsListSchema = BaseSchema.extend({ @@ -137,9 +137,7 @@ export type DocumentsDraftsReq = z.infer; export const DocumentsInfoSchema = BaseSchema.extend({ body: z.object({ - /** Id of the document to be retrieved */ - id: z.string().optional(), - + id: zodIdType().optional(), /** Share Id, if available */ shareId: z .string() @@ -302,6 +300,9 @@ export type DocumentsDeleteReq = z.infer; export const DocumentsUnpublishSchema = BaseSchema.extend({ body: BaseIdSchema.extend({ + /** Whether to detach the document from the collection */ + detach: z.boolean().default(false), + /** @deprecated Version of the API to be used, remove in a few releases */ apiVersion: z.number().optional(), }), @@ -328,7 +329,7 @@ export type DocumentsImportReq = z.infer; export const DocumentsCreateSchema = BaseSchema.extend({ body: z.object({ /** Id of the document to be created */ - id: z.string().uuid().optional(), + id: zodIdType().optional(), /** Document title */ title: z.string().optional(), @@ -393,9 +394,7 @@ export const DocumentsUsersSchema = BaseSchema.extend({ export type DocumentsUsersReq = z.infer; export const DocumentsAddUserSchema = BaseSchema.extend({ - body: z.object({ - /** Id of the document to which the user is supposed to be added */ - id: z.string().uuid(), + body: BaseIdSchema.extend({ /** Id of the user who is to be added */ userId: z.string().uuid(), /** Permission to be granted to the added user */ @@ -406,9 +405,7 @@ export const DocumentsAddUserSchema = BaseSchema.extend({ export type DocumentsAddUserReq = z.infer; export const DocumentsRemoveUserSchema = BaseSchema.extend({ - body: z.object({ - /** Id of the document from which to remove the user */ - id: z.string().uuid(), + body: BaseIdSchema.extend({ /** Id of the user who is to be removed */ userId: z.string().uuid(), }), diff --git a/server/routes/api/events/events.test.ts b/server/routes/api/events/events.test.ts index 3896fc6f5e..d845e162d3 100644 --- a/server/routes/api/events/events.test.ts +++ b/server/routes/api/events/events.test.ts @@ -228,6 +228,45 @@ describe("#events.list", () => { expect(body.data[0].id).toEqual(event.id); }); + it("should allow filtering by events param", async () => { + const user = await buildUser(); + const admin = await buildAdmin({ teamId: user.teamId }); + const collection = await buildCollection({ + userId: user.id, + teamId: user.teamId, + }); + const document = await buildDocument({ + userId: user.id, + collectionId: collection.id, + teamId: user.teamId, + }); + // audit event + await buildEvent({ + name: "users.promote", + teamId: user.teamId, + actorId: admin.id, + userId: user.id, + }); + // event viewable in activity stream + const event = await buildEvent({ + name: "documents.publish", + collectionId: collection.id, + documentId: document.id, + teamId: user.teamId, + actorId: user.id, + }); + const res = await server.post("/api/events.list", { + body: { + token: user.getJwtToken(), + events: ["documents.publish"], + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(1); + expect(body.data[0].id).toEqual(event.id); + }); + it("should return events with deleted actors", async () => { const user = await buildUser(); const admin = await buildAdmin({ teamId: user.teamId }); diff --git a/server/routes/api/events/events.ts b/server/routes/api/events/events.ts index f8591a73e4..d12207f63f 100644 --- a/server/routes/api/events/events.ts +++ b/server/routes/api/events/events.ts @@ -1,4 +1,5 @@ import Router from "koa-router"; +import intersection from "lodash/intersection"; import { Op, WhereOptions } from "sequelize"; import { EventHelper } from "@shared/utils/EventHelper"; import auth from "@server/middlewares/authentication"; @@ -20,20 +21,35 @@ router.post( async (ctx: APIContext) => { const { user } = ctx.state.auth; const { - sort, - direction, + name, + events, + auditLog, actorId, documentId, collectionId, - name, - auditLog, + sort, + direction, } = ctx.input.body; let where: WhereOptions = { - name: EventHelper.ACTIVITY_EVENTS, teamId: user.teamId, }; + if (auditLog) { + authorize(user, "audit", user.team); + where.name = events + ? intersection(EventHelper.AUDIT_EVENTS, events) + : EventHelper.AUDIT_EVENTS; + } else { + where.name = events + ? intersection(EventHelper.ACTIVITY_EVENTS, events) + : EventHelper.ACTIVITY_EVENTS; + } + + if (name && (where.name as string[]).includes(name)) { + where.name = name; + } + if (actorId) { where = { ...where, actorId }; } @@ -42,15 +58,6 @@ router.post( where = { ...where, documentId }; } - if (auditLog) { - authorize(user, "audit", user.team); - where.name = EventHelper.AUDIT_EVENTS; - } - - if (name && (where.name as string[]).includes(name)) { - where.name = name; - } - if (collectionId) { where = { ...where, collectionId }; @@ -77,7 +84,7 @@ router.post( }; } - const events = await Event.findAll({ + const loadedEvents = await Event.findAll({ where, order: [[sort, direction]], include: [ @@ -94,7 +101,7 @@ router.post( ctx.body = { pagination: ctx.state.pagination, data: await Promise.all( - events.map((event) => presentEvent(event, auditLog)) + loadedEvents.map((event) => presentEvent(event, auditLog)) ), }; } diff --git a/server/routes/api/events/schema.ts b/server/routes/api/events/schema.ts index 04b248e604..624011f160 100644 --- a/server/routes/api/events/schema.ts +++ b/server/routes/api/events/schema.ts @@ -1,8 +1,19 @@ import { z } from "zod"; +import { EventHelper } from "@shared/utils/EventHelper"; import { BaseSchema } from "@server/routes/api/schema"; export const EventsListSchema = BaseSchema.extend({ body: z.object({ + /** Events to retrieve */ + events: z + .array( + z.union([ + z.enum(EventHelper.ACTIVITY_EVENTS), + z.enum(EventHelper.AUDIT_EVENTS), + ]) + ) + .optional(), + /** Id of the user who performed the action */ actorId: z.string().uuid().optional(), @@ -15,7 +26,9 @@ export const EventsListSchema = BaseSchema.extend({ /** Whether to include audit events */ auditLog: z.boolean().default(false), - /** Name of the event to retrieve */ + /** @deprecated, use 'events' parameter instead + * Name of the event to retrieve + */ name: z.string().optional(), /** The attribute to sort the events by */ diff --git a/server/routes/api/index.ts b/server/routes/api/index.ts index 35b8de9684..2ca9bd2085 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 @@ -104,11 +106,11 @@ if (env.isDevelopment) { router.use("/", developer.routes()); } -router.post("*", (ctx) => { +router.post("*all", (ctx) => { ctx.throw(NotFoundError("Endpoint not found")); }); -router.get("*", (ctx) => { +router.get("*all", (ctx) => { ctx.throw(NotFoundError("Endpoint not found")); }); 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/notifications/schema.ts b/server/routes/api/notifications/schema.ts index e0a5074aab..2e4c66f48c 100644 --- a/server/routes/api/notifications/schema.ts +++ b/server/routes/api/notifications/schema.ts @@ -74,7 +74,7 @@ export type NotificationsUpdateAllReq = z.infer< export const NotificationsPixelSchema = BaseSchema.extend({ query: z.object({ - id: z.string(), + id: z.string().uuid(), token: z.string(), }), }); diff --git a/server/routes/api/pins/pins.test.ts b/server/routes/api/pins/pins.test.ts index f1936a0d35..0ebcf36295 100644 --- a/server/routes/api/pins/pins.test.ts +++ b/server/routes/api/pins/pins.test.ts @@ -168,6 +168,84 @@ describe("#pins.create", () => { }); }); +describe("#pins.info", () => { + it("should provide info about a home pin", async () => { + const admin = await buildAdmin(); + const document = await buildDocument({ + userId: admin.id, + teamId: admin.teamId, + }); + + await server.post("/api/pins.create", { + body: { + token: admin.getJwtToken(), + documentId: document.id, + }, + }); + + const res = await server.post("/api/pins.info", { + body: { + token: admin.getJwtToken(), + documentId: document.id, + }, + }); + const pin = await res.json(); + + expect(res.status).toEqual(200); + expect(pin.data.id).toBeDefined(); + expect(pin.data.documentId).toEqual(document.id); + expect(pin.data.collectionId).toBeFalsy(); + }); + + it("should provide info about a collection pin", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + + await server.post("/api/pins.create", { + body: { + token: user.getJwtToken(), + documentId: document.id, + collectionId: document.collectionId, + }, + }); + + const res = await server.post("/api/pins.info", { + body: { + token: user.getJwtToken(), + documentId: document.id, + collectionId: document.collectionId, + }, + }); + const pin = await res.json(); + + expect(res.status).toEqual(200); + expect(pin.data.id).toBeDefined(); + expect(pin.data.documentId).toEqual(document.id); + expect(pin.data.collectionId).toEqual(document.collectionId); + }); + + it("should throw 404 if no pin found", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + + const res = await server.post("/api/pins.info", { + body: { + token: user.getJwtToken(), + documentId: document.id, + collectionId: null, + }, + }); + + expect(res.status).toEqual(404); + }); +}); + describe("#pins.list", () => { let user: User; let pins: Pin[]; diff --git a/server/routes/api/pins/pins.ts b/server/routes/api/pins/pins.ts index 015661a532..676ea8a1c8 100644 --- a/server/routes/api/pins/pins.ts +++ b/server/routes/api/pins/pins.ts @@ -57,12 +57,41 @@ router.post( } ); +router.post( + "pins.info", + auth(), + validate(T.PinsInfoSchema), + async (ctx: APIContext) => { + const { user } = ctx.state.auth; + const { documentId, collectionId } = ctx.input.body; + + const document = await Document.findByPk(documentId, { userId: user.id }); + authorize(user, "read", document); + + // There can be only one pin with these props. + const pin = await Pin.findOne({ + where: { + documentId, + collectionId: collectionId ?? null, + createdById: user.id, + teamId: user.teamId, + }, + rejectOnEmpty: true, + }); + + ctx.body = { + data: presentPin(pin), + policies: presentPolicies(user, [pin]), + }; + } +); + router.post( "pins.list", auth(), validate(T.PinsListSchema), pagination(), - async (ctx: APIContext) => { + async (ctx: APIContext) => { const { collectionId } = ctx.input.body; const { user } = ctx.state.auth; diff --git a/server/routes/api/pins/schema.ts b/server/routes/api/pins/schema.ts index e659e72a41..823953ff92 100644 --- a/server/routes/api/pins/schema.ts +++ b/server/routes/api/pins/schema.ts @@ -1,6 +1,7 @@ import isUUID from "validator/lib/isUUID"; import { z } from "zod"; import { UrlHelper } from "@shared/utils/UrlHelper"; +import { zodIdType } from "@server/utils/zod"; import { BaseSchema } from "../schema"; export const PinsCreateSchema = BaseSchema.extend({ @@ -24,13 +25,24 @@ export const PinsCreateSchema = BaseSchema.extend({ export type PinsCreateReq = z.infer; +export const PinsInfoSchema = BaseSchema.extend({ + body: z.object({ + /** Document to get the pin info for. */ + documentId: zodIdType(), + /** Collection to which the pin belongs to. If not set, it's considered as "Home" pin. */ + collectionId: z.string().uuid().nullish(), + }), +}); + +export type PinsInfoReq = z.infer; + export const PinsListSchema = BaseSchema.extend({ body: z.object({ collectionId: z.string().uuid().nullish(), }), }); -export type PinsListReq = z.infer; +export type PinsListReq = z.infer; export const PinsUpdateSchema = BaseSchema.extend({ body: z.object({ diff --git a/server/routes/api/revisions/revisions.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 dd6e213cbc..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]), }; } ); @@ -125,6 +157,7 @@ router.post( const document = await Document.findByPk(documentId, { userId: user.id, + paranoid: false, }); authorize(user, "listRevisions", document); @@ -143,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/subscriptions/schema.ts b/server/routes/api/subscriptions/schema.ts index d1aa7dd607..f76cb3d941 100644 --- a/server/routes/api/subscriptions/schema.ts +++ b/server/routes/api/subscriptions/schema.ts @@ -1,36 +1,38 @@ +import isEmpty from "lodash/isEmpty"; import { z } from "zod"; +import { SubscriptionType } from "@shared/types"; import { ValidateDocumentId } from "@server/validation"; import { BaseSchema } from "../schema"; +const SubscriptionBody = z + .object({ + event: z.literal(SubscriptionType.Document), + collectionId: z.string().uuid().optional(), + documentId: z + .string() + .refine(ValidateDocumentId.isValid, { + message: ValidateDocumentId.message, + }) + .optional(), + }) + .refine((obj) => !(isEmpty(obj.collectionId) && isEmpty(obj.documentId)), { + message: "one of collectionId or documentId is required", + }); + export const SubscriptionsListSchema = BaseSchema.extend({ - body: z.object({ - documentId: z.string().refine(ValidateDocumentId.isValid, { - message: ValidateDocumentId.message, - }), - event: z.literal("documents.update"), - }), + body: SubscriptionBody, }); export type SubscriptionsListReq = z.infer; export const SubscriptionsInfoSchema = BaseSchema.extend({ - body: z.object({ - documentId: z.string().refine(ValidateDocumentId.isValid, { - message: ValidateDocumentId.message, - }), - event: z.literal("documents.update"), - }), + body: SubscriptionBody, }); export type SubscriptionsInfoReq = z.infer; export const SubscriptionsCreateSchema = BaseSchema.extend({ - body: z.object({ - documentId: z.string().refine(ValidateDocumentId.isValid, { - message: ValidateDocumentId.message, - }), - event: z.literal("documents.update"), - }), + body: SubscriptionBody, }); export type SubscriptionsCreateReq = z.infer; diff --git a/server/routes/api/subscriptions/subscriptions.test.ts b/server/routes/api/subscriptions/subscriptions.test.ts index ec07da330f..1cdae3d154 100644 --- a/server/routes/api/subscriptions/subscriptions.test.ts +++ b/server/routes/api/subscriptions/subscriptions.test.ts @@ -1,15 +1,41 @@ +import { SubscriptionType } from "@shared/types"; import { Event } from "@server/models"; import { buildUser, buildSubscription, buildDocument, + buildCollection, } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; const server = getTestServer(); describe("#subscriptions.create", () => { - it("should create a subscription", async () => { + it("should create a document subscription for the whole collection", async () => { + const user = await buildUser(); + + const collection = await buildCollection({ + userId: user.id, + teamId: user.teamId, + }); + + const res = await server.post("/api/subscriptions.create", { + body: { + token: user.getJwtToken(), + collectionId: collection.id, + event: SubscriptionType.Document, + }, + }); + + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.id).toBeDefined(); + expect(body.data.userId).toEqual(user.id); + expect(body.data.collectionId).toEqual(collection.id); + }); + + it("should create a document subscription", async () => { const user = await buildUser(); const document = await buildDocument({ @@ -21,7 +47,7 @@ describe("#subscriptions.create", () => { body: { token: user.getJwtToken(), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -45,7 +71,7 @@ describe("#subscriptions.create", () => { body: { token: user.getJwtToken(), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -79,7 +105,7 @@ describe("#subscriptions.create", () => { body: { token: user.getJwtToken(), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -88,7 +114,7 @@ describe("#subscriptions.create", () => { body: { token: user.getJwtToken(), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -97,17 +123,16 @@ describe("#subscriptions.create", () => { body: { token: user.getJwtToken(), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); - // List subscriptions associated with - // `document.id` + // List subscriptions associated with `document.id` const res = await server.post("/api/subscriptions.list", { body: { token: user.getJwtToken(), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -132,8 +157,7 @@ describe("#subscriptions.create", () => { body: { token: user.getJwtToken(), documentId: document.id, - // Subscription on event - // that cannot be subscribed to. + // Subscription on event that cannot be subscribed to. event: "documents.publish", }, }); @@ -147,10 +171,62 @@ describe("#subscriptions.create", () => { `event: Invalid literal value, expected "documents.update"` ); }); + + it("should throw 400 when neither documentId nor collectionId is provided", async () => { + const user = await buildUser(); + + const res = await server.post("/api/subscriptions.create", { + body: { + token: user.getJwtToken(), + event: SubscriptionType.Document, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(400); + expect(body.ok).toEqual(false); + expect(body.error).toEqual("validation_error"); + expect(body.message).toEqual( + "body: one of collectionId or documentId is required" + ); + }); }); describe("#subscriptions.info", () => { - it("should provide info about a subscription", async () => { + it("should provide info about a document subscription for the collection", async () => { + const user = await buildUser(); + + const subscriber = await buildUser({ teamId: user.teamId }); + + const collection = await buildCollection({ + userId: user.id, + teamId: user.teamId, + }); + + await server.post("/api/subscriptions.create", { + body: { + token: subscriber.getJwtToken(), + collectionId: collection.id, + event: SubscriptionType.Document, + }, + }); + + const res = await server.post("/api/subscriptions.info", { + body: { + token: subscriber.getJwtToken(), + collectionId: collection.id, + event: SubscriptionType.Document, + }, + }); + const subscription = await res.json(); + + expect(res.status).toEqual(200); + expect(subscription.data.id).toBeDefined(); + expect(subscription.data.userId).toEqual(subscriber.id); + expect(subscription.data.collectionId).toEqual(collection.id); + }); + + it("should provide info about a document subscription", async () => { const creator = await buildUser(); const subscriber = await buildUser({ teamId: creator.teamId }); @@ -171,7 +247,7 @@ describe("#subscriptions.info", () => { body: { token: subscriber.getJwtToken(), documentId: document0.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -180,7 +256,7 @@ describe("#subscriptions.info", () => { body: { token: subscriber.getJwtToken(), documentId: document1.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -190,7 +266,7 @@ describe("#subscriptions.info", () => { body: { token: subscriber.getJwtToken(), documentId: document0.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -202,6 +278,44 @@ describe("#subscriptions.info", () => { expect(response0.data.documentId).toEqual(document0.id); }); + it("should throw 400 when neither documentId nor collectionId is provided", async () => { + const user = await buildUser(); + + const res = await server.post("/api/subscriptions.info", { + body: { + token: user.getJwtToken(), + event: SubscriptionType.Document, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(400); + expect(body.ok).toEqual(false); + expect(body.error).toEqual("validation_error"); + expect(body.message).toEqual( + "body: one of collectionId or documentId is required" + ); + }); + + it("should throw 404 if no subscription found", async () => { + const author = await buildUser(); + const subscriber = await buildUser({ teamId: author.teamId }); + const document = await buildDocument({ + userId: author.id, + teamId: author.teamId, + }); + + const res = await server.post("/api/subscriptions.info", { + body: { + token: subscriber.getJwtToken(), + documentId: document.id, + event: SubscriptionType.Document, + }, + }); + + expect(res.status).toEqual(404); + }); + it("should not allow outsiders to gain info about a subscription", async () => { const creator = await buildUser(); const subscriber = await buildUser({ teamId: creator.teamId }); @@ -224,7 +338,7 @@ describe("#subscriptions.info", () => { body: { token: subscriber.getJwtToken(), documentId: document0.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -233,17 +347,16 @@ describe("#subscriptions.info", () => { body: { token: subscriber.getJwtToken(), documentId: document1.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); - // `viewer` wants info about `subscriber`'s - // subscription on `document0`. + // `viewer` wants info about `subscriber`'s subscription on `document0`. const subscription0 = await server.post("/api/subscriptions.info", { body: { token: viewer.getJwtToken(), documentId: document0.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -255,13 +368,12 @@ describe("#subscriptions.info", () => { expect(response0.error).toEqual("authorization_error"); expect(response0.message).toEqual("Authorization error"); - // `viewer` wants info about `subscriber`'s - // subscription on `document0`. + // `viewer` wants info about `subscriber`'s subscription on `document0`. const subscription1 = await server.post("/api/subscriptions.info", { body: { token: viewer.getJwtToken(), documentId: document1.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -297,7 +409,7 @@ describe("#subscriptions.info", () => { body: { token: subscriber.getJwtToken(), documentId: document0.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -306,13 +418,11 @@ describe("#subscriptions.info", () => { body: { token: subscriber.getJwtToken(), documentId: document1.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); - // `viewer` wants info about `subscriber`'s - // subscription on `document0`. - // They have requested an invalid event. + // `viewer` wants info about `subscriber`'s subscription on `document0` - they have requested an invalid event. const subscription0 = await server.post("/api/subscriptions.info", { body: { token: viewer.getJwtToken(), @@ -353,7 +463,7 @@ describe("#subscriptions.info", () => { }); describe("#subscriptions.list", () => { - it("should list user subscriptions", async () => { + it("should list user subscriptions for the document", async () => { const user = await buildUser(); const document = await buildDocument({ @@ -361,19 +471,16 @@ describe("#subscriptions.list", () => { teamId: user.teamId, }); - await buildSubscription(); - const subscription = await buildSubscription({ userId: user.id, documentId: document.id, - event: "documents.update", }); const res = await server.post("/api/subscriptions.list", { body: { token: user.getJwtToken(), documentId: document.id, - event: "documents.update", + event: SubscriptionType.Document, }, }); @@ -575,6 +682,25 @@ describe("#subscriptions.list", () => { expect(body.error).toEqual("authorization_error"); expect(body.message).toEqual("Authorization error"); }); + + it("should throw 400 when neither documentId nor collectionId is provided", async () => { + const user = await buildUser(); + + const res = await server.post("/api/subscriptions.list", { + body: { + token: user.getJwtToken(), + event: SubscriptionType.Document, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(400); + expect(body.ok).toEqual(false); + expect(body.error).toEqual("validation_error"); + expect(body.message).toEqual( + "body: one of collectionId or documentId is required" + ); + }); }); describe("#subscriptions.delete", () => { @@ -589,7 +715,6 @@ describe("#subscriptions.delete", () => { const subscription = await buildSubscription({ userId: user.id, documentId: document.id, - event: "documents.update", }); const res = await server.post("/api/subscriptions.delete", { @@ -618,7 +743,6 @@ describe("#subscriptions.delete", () => { const subscription = await buildSubscription({ userId: user.id, documentId: document.id, - event: "documents.update", }); const res = await server.post("/api/subscriptions.delete", { diff --git a/server/routes/api/subscriptions/subscriptions.ts b/server/routes/api/subscriptions/subscriptions.ts index c4dbad08d4..caa96b5703 100644 --- a/server/routes/api/subscriptions/subscriptions.ts +++ b/server/routes/api/subscriptions/subscriptions.ts @@ -1,5 +1,5 @@ import Router from "koa-router"; -import { Transaction } from "sequelize"; +import { Transaction, WhereOptions } from "sequelize"; import { QueryNotices } from "@shared/types"; import subscriptionCreator from "@server/commands/subscriptionCreator"; import { createContext } from "@server/context"; @@ -8,7 +8,7 @@ import auth from "@server/middlewares/authentication"; import { rateLimiter } from "@server/middlewares/rateLimiter"; import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; -import { Subscription, Document, User } from "@server/models"; +import { Subscription, Document, User, Collection } from "@server/models"; import SubscriptionHelper from "@server/models/helpers/SubscriptionHelper"; import { authorize } from "@server/policies"; import { presentSubscription } from "@server/presenters"; @@ -26,18 +26,32 @@ router.post( validate(T.SubscriptionsListSchema), async (ctx: APIContext) => { const { user } = ctx.state.auth; - const { documentId, event } = ctx.input.body; + const { event, collectionId, documentId } = ctx.input.body; - const document = await Document.findByPk(documentId, { userId: user.id }); + const where: WhereOptions = { + userId: user.id, + event, + }; - authorize(user, "read", document); + if (collectionId) { + const collection = await Collection.scope({ + method: ["withMembership", user.id], + }).findByPk(collectionId); + authorize(user, "read", collection); + + where.collectionId = collectionId; + } else { + // documentId will be available here + const document = await Document.findByPk(documentId!, { + userId: user.id, + }); + authorize(user, "read", document); + + where.documentId = documentId; + } const subscriptions = await Subscription.findAll({ - where: { - documentId: document.id, - userId: user.id, - event, - }, + where, order: [["createdAt", "DESC"]], offset: ctx.state.pagination.offset, limit: ctx.state.pagination.limit, @@ -56,19 +70,33 @@ router.post( validate(T.SubscriptionsInfoSchema), async (ctx: APIContext) => { const { user } = ctx.state.auth; - const { documentId, event } = ctx.input.body; + const { event, collectionId, documentId } = ctx.input.body; - const document = await Document.findByPk(documentId, { userId: user.id }); + const where: WhereOptions = { + userId: user.id, + event, + }; - authorize(user, "read", document); + if (collectionId) { + const collection = await Collection.scope({ + method: ["withMembership", user.id], + }).findByPk(collectionId); + authorize(user, "read", collection); + + where.collectionId = collectionId; + } else { + // documentId will be available here + const document = await Document.findByPk(documentId!, { + userId: user.id, + }); + authorize(user, "read", document); + + where.documentId = documentId; + } // There can be only one subscription with these props. const subscription = await Subscription.findOne({ - where: { - userId: user.id, - documentId: document.id, - event, - }, + where, rejectOnEmpty: true, }); @@ -84,20 +112,28 @@ router.post( validate(T.SubscriptionsCreateSchema), transaction(), async (ctx: APIContext) => { - const { transaction } = ctx.state; const { user } = ctx.state.auth; - const { documentId, event } = ctx.input.body; + const { event, collectionId, documentId } = ctx.input.body; - const document = await Document.findByPk(documentId, { - userId: user.id, - transaction, - }); + if (collectionId) { + const collection = await Collection.scope({ + method: ["withMembership", user.id], + }).findByPk(collectionId); - authorize(user, "subscribe", document); + authorize(user, "subscribe", collection); + } else { + // documentId will be available here + const document = await Document.findByPk(documentId!, { + userId: user.id, + }); + + authorize(user, "subscribe", document); + } const subscription = await subscriptionCreator({ ctx, - documentId: document.id, + documentId, + collectionId, event, }); 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/api/users/users.ts b/server/routes/api/users/users.ts index 511b28c9df..c6c42d8537 100644 --- a/server/routes/api/users/users.ts +++ b/server/routes/api/users/users.ts @@ -636,6 +636,8 @@ router.post( await new ConfirmUserDeleteEmail({ to: user.email, deleteConfirmationCode: user.deleteConfirmationCode, + teamName: user.team.name, + teamUrl: user.team.url, }).schedule(); ctx.body = { diff --git a/server/routes/app.ts b/server/routes/app.ts index 8d95367d2e..cd57a2bddc 100644 --- a/server/routes/app.ts +++ b/server/routes/app.ts @@ -76,7 +76,7 @@ export const renderApp = async ( const csp = ctx.response.get("Content-Security-Policy"); ctx.set( "Content-Security-Policy", - csp.replace("script-src", `script-src ${parsed.hostname}`) + csp.replace("script-src", `script-src ${parsed.host}`) ); } }); @@ -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/routes/index.ts b/server/routes/index.ts index 417da32381..c86df6047f 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -7,6 +7,7 @@ import send from "koa-send"; import userAgent, { UserAgentContext } from "koa-useragent"; import { languages } from "@shared/i18n"; import { IntegrationType, TeamPreference } from "@shared/types"; +import { parseDomain } from "@shared/utils/domains"; import { Day } from "@shared/utils/time"; import env from "@server/env"; import { NotFoundError } from "@server/errors"; @@ -26,33 +27,36 @@ const router = new Router(); koa.use(userAgent); // serve public assets -router.use(["/images/*", "/email/*", "/fonts/*"], async (ctx, next) => { - let done; +router.use( + ["/images/*path", "/email/*path", "/fonts/*path"], + async (ctx, next) => { + let done; - if (ctx.method === "HEAD" || ctx.method === "GET") { - try { - done = await send(ctx, ctx.path, { - root: path.resolve(__dirname, "../../../public"), - // 7 day expiry, these assets are mostly static but do not contain a hash - maxAge: Day.ms * 7, - setHeaders: (res) => { - res.setHeader("Access-Control-Allow-Origin", "*"); - }, - }); - } catch (err) { - if (err.status !== 404) { - throw err; + if (ctx.method === "HEAD" || ctx.method === "GET") { + try { + done = await send(ctx, ctx.path, { + root: path.resolve(__dirname, "../../../public"), + // 7 day expiry, these assets are mostly static but do not contain a hash + maxAge: Day.ms * 7, + setHeaders: (res) => { + res.setHeader("Access-Control-Allow-Origin", "*"); + }, + }); + } catch (err) { + if (err.status !== 404) { + throw err; + } } } - } - if (!done) { - await next(); + if (!done) { + await next(); + } } -}); +); router.use( - ["/share/:shareId", "/share/:shareId/doc/:documentSlug", "/share/:shareId/*"], + ["/share/:shareId{/*path}", "/share/:shareId/doc/:documentSlug"], (ctx) => { ctx.redirect(ctx.path.replace(/^\/share/, "/s")); ctx.status = 301; @@ -60,7 +64,7 @@ router.use( ); if (env.isProduction) { - router.get("/static/*", async (ctx) => { + router.get("/static/*path", async (ctx) => { try { const pathname = ctx.path.substring(8); if (!pathname) { @@ -122,9 +126,8 @@ router.get("/opensearch.xml", (ctx) => { ctx.body = opensearchResponse(ctx.request.URL.origin); }); -router.get("/s/:shareId", shareDomains(), renderShare); +router.get("/s/:shareId{/*path}", shareDomains(), renderShare); router.get("/s/:shareId/doc/:documentSlug", shareDomains(), renderShare); -router.get("/s/:shareId/*", shareDomains(), renderShare); router.get("/embeds/gitlab", renderEmbed); router.get("/embeds/github", renderEmbed); @@ -132,17 +135,32 @@ router.get("/embeds/dropbox", renderEmbed); router.get("/embeds/pinterest", renderEmbed); // catch all for application -router.get("*", shareDomains(), async (ctx, next) => { +router.get("*all", shareDomains(), async (ctx, next) => { if (ctx.state?.rootShare) { return renderShare(ctx, next); } const team = await getTeamFromContext(ctx); - // Redirect all requests to custom domain if one is set - if (team?.domain && team.domain !== ctx.hostname) { - ctx.redirect(ctx.href.replace(ctx.hostname, team.domain)); - return; + if (env.isCloudHosted) { + // Redirect all requests to custom domain if one is set + if (team?.domain) { + if (team.domain !== ctx.hostname) { + ctx.redirect(ctx.href.replace(ctx.hostname, team.domain)); + return; + } + } + + // Redirect if subdomain is not the current team's subdomain + else if (team?.subdomain) { + const { teamSubdomain } = parseDomain(ctx.href); + if (team?.subdomain !== teamSubdomain) { + ctx.redirect( + ctx.href.replace(`//${teamSubdomain}.`, `//${team.subdomain}.`) + ); + return; + } + } } const analytics = team diff --git a/server/scripts/20240930113921-hash-api-keys.ts b/server/scripts/20240930113921-hash-api-keys.ts index c361d422ce..41e5caabc7 100644 --- a/server/scripts/20240930113921-hash-api-keys.ts +++ b/server/scripts/20240930113921-hash-api-keys.ts @@ -12,6 +12,7 @@ export default async function main(exit = false, limit = 100) { let apiKeys: ApiKey[] = []; await sequelize.transaction(async (transaction) => { apiKeys = await ApiKey.unscoped().findAll({ + attributes: ["id", "secret", "value", "hash"], limit, offset: page * limit, order: [["createdAt", "ASC"]], diff --git a/server/services/cron.ts b/server/services/cron.ts index 32e460f801..cd418ea159 100644 --- a/server/services/cron.ts +++ b/server/services/cron.ts @@ -1,4 +1,4 @@ -import { Day, Hour, Second } from "@shared/utils/time"; +import { Day, Hour, Minute, Second } from "@shared/utils/time"; import tasks from "@server/queues/tasks"; import { TaskSchedule } from "@server/queues/tasks/BaseTask"; @@ -12,13 +12,15 @@ export default function init() { } } - setInterval(() => void run(TaskSchedule.Daily), Day.ms); - setInterval(() => void run(TaskSchedule.Hourly), Hour.ms); + setInterval(() => void run(TaskSchedule.Day), Day.ms); + setInterval(() => void run(TaskSchedule.Hour), Hour.ms); + setInterval(() => void run(TaskSchedule.Minute), Minute.ms); // Just give everything time to startup before running the first time. Not // _technically_ required to function. setTimeout(() => { - void run(TaskSchedule.Daily); - void run(TaskSchedule.Hourly); - }, 30 * Second.ms); + void run(TaskSchedule.Day); + void run(TaskSchedule.Hour); + void run(TaskSchedule.Minute); + }, 5 * Second.ms); } diff --git a/server/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 339262cc56..9c3850f4aa 100644 --- a/server/storage/files/BaseStorage.ts +++ b/server/storage/files/BaseStorage.ts @@ -1,10 +1,10 @@ import { Blob } from "buffer"; import { Readable } from "stream"; import { PresignedPost } from "@aws-sdk/s3-presigned-post"; -import { isBase64Url } from "@shared/utils/urls"; +import { isBase64Url, isInternalUrl } from "@shared/utils/urls"; import env from "@server/env"; import Logger from "@server/logging/Logger"; -import fetch, { RequestInit } from "@server/utils/fetch"; +import fetch, { chromeUserAgent, RequestInit } from "@server/utils/fetch"; export default abstract class BaseStorage { /** The default number of seconds until a signed URL expires. */ @@ -149,7 +149,7 @@ export default abstract class BaseStorage { const endpoint = this.getUploadUrl(true); // Early return if url is already uploaded to the storage provider - if (url.startsWith("/api") || url.startsWith(endpoint)) { + if (url.startsWith(endpoint) || isInternalUrl(url)) { return; } @@ -168,6 +168,9 @@ export default abstract class BaseStorage { options?.maxUploadSize ?? Infinity, env.FILE_STORAGE_UPLOAD_MAX_SIZE ), + headers: { + "User-Agent": chromeUserAgent, + }, timeout: 10000, ...init, }); diff --git a/server/test/factories.ts b/server/test/factories.ts index 6308be0c11..86e3f2da23 100644 --- a/server/test/factories.ts +++ b/server/test/factories.ts @@ -15,6 +15,7 @@ import { NotificationEventType, ProsemirrorData, ReactionSummary, + SubscriptionType, UserRole, } from "@shared/types"; import { parser, schema } from "@server/editor"; @@ -120,7 +121,7 @@ export async function buildSubscription(overrides: Partial = {}) { overrides.userId = user.id; } - if (!overrides.documentId) { + if (!overrides.documentId && !overrides.collectionId) { const document = await buildDocument({ createdById: overrides.userId, teamId: user.teamId, @@ -129,7 +130,7 @@ export async function buildSubscription(overrides: Partial = {}) { } return Subscription.create({ - event: "documents.update", + event: SubscriptionType.Document, ...overrides, }); } @@ -293,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 3b715a2bf2..ff116ba881 100644 --- a/server/types.ts +++ b/server/types.ts @@ -182,7 +182,6 @@ export type DocumentEvent = BaseEvent & name: | "documents.create" | "documents.publish" - | "documents.unpublish" | "documents.delete" | "documents.permanent_delete" | "documents.archive" @@ -194,6 +193,11 @@ export type DocumentEvent = BaseEvent & source?: "import"; }; } + | { + name: "documents.unpublish"; + documentId: string; + collectionId: string; + } | { name: "documents.unarchive"; documentId: string; @@ -423,6 +427,7 @@ export type SubscriptionEvent = BaseEvent & { modelId: string; userId: string; documentId: string | null; + collectionId: string | null; }; export type ViewEvent = BaseEvent & { @@ -459,6 +464,7 @@ export type NotificationEvent = BaseEvent & { commentId?: string; documentId?: string; collectionId?: string; + membershipId?: string; }; export type Event = diff --git a/server/typings/index.d.ts b/server/typings/index.d.ts index 3a023890b6..26f8d6b94e 100644 --- a/server/typings/index.d.ts +++ b/server/typings/index.d.ts @@ -19,3 +19,11 @@ declare module "@joplin/turndown-plugin-gfm" { export const taskListItems: Plugin; export const gfm: Plugin; } + +declare module "ukkonen" { + export default function ukkonen( + first: string, + second: string, + limit?: number + ): number; +} diff --git a/server/utils/fetch.ts b/server/utils/fetch.ts index 2e712b4015..19b4f1b5d7 100644 --- a/server/utils/fetch.ts +++ b/server/utils/fetch.ts @@ -7,6 +7,13 @@ import Logger from "@server/logging/Logger"; export type { RequestInit } from "node-fetch"; +/** + * Fake Chrome user agent string for use in fetch requests to + * improve reliability. + */ +export const chromeUserAgent = + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"; + /** * Wrapper around fetch that uses the request-filtering-agent in cloud hosted * environments to filter malicious requests, and the fetch-with-proxy library diff --git a/server/utils/passport.ts b/server/utils/passport.ts index a538df88a6..503b5f5fb4 100644 --- a/server/utils/passport.ts +++ b/server/utils/passport.ts @@ -127,9 +127,7 @@ export async function getTeamFromContext(ctx: Context) { } else if (domain.custom) { team = await Team.findOne({ where: { domain: domain.host } }); } else if (domain.teamSubdomain) { - team = await Team.findOne({ - where: { subdomain: domain.teamSubdomain }, - }); + team = await Team.findBySubdomain(domain.teamSubdomain); } return team; diff --git a/server/utils/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/server/utils/zod.ts b/server/utils/zod.ts index 5181c88f43..caedca0b51 100644 --- a/server/utils/zod.ts +++ b/server/utils/zod.ts @@ -1,6 +1,7 @@ import emojiRegex from "emoji-regex"; import { z } from "zod"; import { IconLibrary } from "@shared/utils/IconLibrary"; +import { UrlHelper } from "@shared/utils/UrlHelper"; export function zodEnumFromObjectKeys< TI extends Record, @@ -10,6 +11,11 @@ export function zodEnumFromObjectKeys< return z.enum([firstKey, ...otherKeys]); } +export const zodIdType = () => + z.union([z.string().regex(UrlHelper.SLUG_URL_REGEX), z.string().uuid()], { + message: "Must be a valid UUID or slug", + }); + export const zodIconType = () => z.union([ z.string().regex(emojiRegex()), diff --git a/shared/components/EmojiIcon.tsx b/shared/components/EmojiIcon.tsx index 5b448f0a24..63da8a8f67 100644 --- a/shared/components/EmojiIcon.tsx +++ b/shared/components/EmojiIcon.tsx @@ -33,7 +33,7 @@ const SVG = ({ size, emoji }: { size: number; emoji: string }) => ( { if (dispatch) { const offset = state.tr.selection.anchor + 1; - const nodes = createTableInner(state, rowsCount, colsCount); + const nodes = createTableInner(state, rowsCount, colsCount, colWidth); const tr = state.tr.replaceSelectionWith(nodes).scrollIntoView(); const resolvedPos = tr.doc.resolve(offset); tr.setSelection(TextSelection.near(resolvedPos)); @@ -41,6 +47,7 @@ function createTableInner( state: EditorState, rowsCount: number, colsCount: number, + colWidth: number, withHeaderRow = true, cellContent?: Node ) { @@ -49,23 +56,28 @@ function createTableInner( const cells: Node[] = []; const rows: Node[] = []; - const createCell = ( - cellType: NodeType, - cellContent: Fragment | Node | readonly Node[] | null | undefined - ) => + const createCell = (cellType: NodeType, attrs: Record | null) => cellContent - ? cellType.createChecked(null, cellContent) - : cellType.createAndFill(); + ? cellType.createChecked(attrs, cellContent) + : cellType.createAndFill(attrs); for (let index = 0; index < colsCount; index += 1) { - const cell = createCell(types.cell, cellContent); + const attrs = + colWidth && index < colsCount - 1 + ? { + colwidth: [colWidth], + colspan: 1, + rowspan: 1, + } + : null; + const cell = createCell(types.cell, attrs); if (cell) { cells.push(cell); } if (withHeaderRow) { - const headerCell = createCell(types.header_cell, cellContent); + const headerCell = createCell(types.header_cell, attrs); if (headerCell) { headerCells.push(headerCell); @@ -488,3 +500,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/Caption.tsx b/shared/editor/components/Caption.tsx index 4550f1fcee..9b68931b4c 100644 --- a/shared/editor/components/Caption.tsx +++ b/shared/editor/components/Caption.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import styled from "styled-components"; -import breakpoint from "styled-components-breakpoint"; import { s } from "../../styles"; +import { EditorStyleHelper } from "../styles/EditorStyleHelper"; type Props = { /** Callback triggered when the caption is blurred */ @@ -40,7 +40,7 @@ function Caption({ placeholder, children, isSelected, width, ...rest }: Props) { $isSelected={isSelected} onMouseDown={handleMouseDown} onPaste={handlePaste} - className="caption" + className={EditorStyleHelper.imageCaption} tabIndex={-1} role="textbox" contentEditable @@ -54,33 +54,16 @@ function Caption({ placeholder, children, isSelected, width, ...rest }: Props) { } const Content = styled.p<{ $width: number; $isSelected: boolean }>` - border: 0; - display: block; - font-style: italic; - font-weight: normal; - color: ${s("textSecondary")}; - padding: 8px 0 4px; - line-height: 16px; - text-align: center; - min-height: 1em; - outline: none; - background: none; - resize: none; - user-select: text; - margin: 0 auto !important; cursor: text; width: ${(props) => props.$width}px; min-width: 200px; - - ${breakpoint("tablet")` - font-size: 13px; - `}; + max-width: 100%; &:empty:not(:focus) { display: ${(props) => (props.$isSelected ? "block" : "none")}}; } - &:empty:before { + &:empty::before { color: ${s("placeholder")}; content: attr(data-caption); pointer-events: none; diff --git a/shared/editor/components/Embed.tsx b/shared/editor/components/Embed.tsx index 3a02d011b8..31f80c68ec 100644 --- a/shared/editor/components/Embed.tsx +++ b/shared/editor/components/Embed.tsx @@ -18,7 +18,7 @@ type Props = ComponentProps & { const Embed = (props: Props) => { const ref = React.useRef(null); const { node, isEditable, onChangeSize } = props; - const naturalWidth = 10000; + const naturalWidth = 0; const naturalHeight = 400; const isResizable = !!onChangeSize; diff --git a/shared/editor/components/Image.tsx b/shared/editor/components/Image.tsx index c0d9208e49..44a381bdd4 100644 --- a/shared/editor/components/Image.tsx +++ b/shared/editor/components/Image.tsx @@ -98,7 +98,10 @@ const Image = (props: Props) => { style={{ ...widthStyle, display: loaded ? "block" : "none", - pointerEvents: dragging ? "none" : "all", + pointerEvents: + dragging || (!props.isSelected && props.isEditable) + ? "none" + : "all", }} src={sanitizedSrc} onError={() => { 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/components/Styles.ts b/shared/editor/components/Styles.ts index 133f52209a..2850b60999 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -55,6 +55,7 @@ const mathStyle = (props: Props) => css` cursor: auto; white-space: pre-wrap; overflow-x: auto; + overflow-y: none; } .math-node.empty-math .math-render::before { @@ -251,10 +252,13 @@ const codeBlockStyle = (props: Props) => css` `; const findAndReplaceStyle = () => css` - .find-result { + .find-result:not(:has(.mention)), + .find-result .mention { background: rgba(255, 213, 0, 0.25); + } - &.current-result { + .find-result.current-result:not(:has(.mention)), + .find-result.current-result .mention { background: rgba(255, 213, 0, 0.75); animation: ${pulse} 150ms 1; } @@ -615,7 +619,6 @@ iframe.embed { } .column-resize-handle { - animation: ${fadeIn} 150ms ease-in-out; ${props.readOnly ? "display: none;" : ""} position: absolute; right: -1px; @@ -689,11 +692,29 @@ img.ProseMirror-separator { display: none; } +.${EditorStyleHelper.imageCaption} { + border: 0; + display: block; + font-style: italic; + font-weight: normal; + font-size: 13px; + color: ${props.theme.textSecondary}; + padding: 8px 0 4px; + line-height: 16px; + text-align: center; + min-height: 1em; + outline: none; + background: none; + resize: none; + user-select: text; + margin: 0 auto !important; +} + .ProseMirror[contenteditable="false"] { - .caption { + .${EditorStyleHelper.imageCaption} { pointer-events: none; } - .caption:empty { + .${EditorStyleHelper.imageCaption}:empty { visibility: hidden; } } @@ -1093,6 +1114,7 @@ ol { direction: rtl; } + &:has(p:dir(rtl)), &:dir(rtl) { margin: 0 ${props.staticHTML ? "0" : "-26px"} 0 0.1em; padding: 0 48px 0 0; diff --git a/shared/editor/embeds/Berrycast.tsx b/shared/editor/embeds/Berrycast.tsx index f858baa319..341b1b6cce 100644 --- a/shared/editor/embeds/Berrycast.tsx +++ b/shared/editor/embeds/Berrycast.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import useComponentSize from "../../hooks/useComponentSize"; +import { useComponentSize } from "../../hooks/useComponentSize"; import Frame from "../components/Frame"; import { EmbedProps as Props } from "."; diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index 6a29fc2462..5ca822d026 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -322,7 +322,6 @@ const embeds: EmbedDescriptor[] = [ regexMatch: [new RegExp("^https?://www\\.google\\.com/maps/embed\\?(.*)$")], transformMatch: (matches: RegExpMatchArray) => matches[0], icon: Google Maps, - visible: true, }), new EmbedDescriptor({ title: "Google Drawings", @@ -590,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/isMarkdown.test.ts b/shared/editor/lib/isMarkdown.test.ts index f0232c50af..5633c6fa8d 100644 --- a/shared/editor/lib/isMarkdown.test.ts +++ b/shared/editor/lib/isMarkdown.test.ts @@ -16,17 +16,6 @@ test("returns true for bullet list", () => { ).toBe(true); }); -test("returns true for numbered list", () => { - expect( - isMarkdown(`1. item one -1. item two`) - ).toBe(true); - expect( - isMarkdown(`1. item one -2. item two`) - ).toBe(true); -}); - test("returns true for code fence", () => { expect( isMarkdown(`\`\`\`javascript diff --git a/shared/editor/lib/isMarkdown.ts b/shared/editor/lib/isMarkdown.ts index 4909a63686..1adc61c3ea 100644 --- a/shared/editor/lib/isMarkdown.ts +++ b/shared/editor/lib/isMarkdown.ts @@ -33,7 +33,7 @@ export default function isMarkdown(text: string): boolean { } // list-ish - const listItems = text.match(/^([-*]|\d+.)\s\S+/gm); + const listItems = text.match(/^[-*]\s\S+/gm); if (listItems) { signals += listItems.length; } diff --git a/shared/editor/marks/Code.ts b/shared/editor/marks/Code.ts index ba6f04916f..f65cd435fb 100644 --- a/shared/editor/marks/Code.ts +++ b/shared/editor/marks/Code.ts @@ -21,7 +21,7 @@ export default class Code extends Mark { get schema(): MarkSpec { return { - excludes: "mention link placeholder highlight em strong", + excludes: "mention placeholder highlight em strong", parseDOM: [{ tag: "code.inline", preserveWhitespace: true }], toDOM: () => ["code", { class: "inline", spellCheck: "false" }], }; diff --git a/shared/editor/marks/Link.tsx b/shared/editor/marks/Link.tsx index 49d967350b..4d3b05325f 100644 --- a/shared/editor/marks/Link.tsx +++ b/shared/editor/marks/Link.tsx @@ -65,7 +65,7 @@ export default class Link extends Mark { inclusive: false, parseDOM: [ { - tag: "a[href]", + tag: "a[href]:not(.embed)", getAttrs: (dom: HTMLElement) => ({ href: dom.getAttribute("href"), title: dom.getAttribute("title"), diff --git a/shared/editor/nodes/Heading.ts b/shared/editor/nodes/Heading.ts index a966915722..1a610e4c9c 100644 --- a/shared/editor/nodes/Heading.ts +++ b/shared/editor/nodes/Heading.ts @@ -16,7 +16,7 @@ import splitHeading from "../commands/splitHeading"; import toggleBlockType from "../commands/toggleBlockType"; import headingToSlug, { headingToPersistenceKey } from "../lib/headingToSlug"; import { MarkdownSerializerState } from "../lib/markdown/serializer"; -import { FoldingHeadersPlugin } from "../plugins/FoldingHeaders"; +import { findCollapsedNodes } from "../queries/findCollapsedNodes"; import Node from "./Node"; export default class Heading extends Node { @@ -274,7 +274,23 @@ export default class Heading extends Node { }, }); - return [new FoldingHeadersPlugin(this.editor.props.id), plugin]; + const foldPlugin: Plugin = new Plugin({ + props: { + decorations: (state) => { + const { doc } = state; + const decorations: Decoration[] = findCollapsedNodes(doc).map( + (block) => + Decoration.node(block.pos, block.pos + block.node.nodeSize, { + class: "folded-content", + }) + ); + + return DecorationSet.create(doc, decorations); + }, + }, + }); + + return [foldPlugin, plugin]; } inputRules({ type }: { type: NodeType }) { diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index e49d5371f1..16839779f8 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -12,6 +12,7 @@ import { sanitizeUrl } from "../../utils/urls"; import Caption from "../components/Caption"; import ImageComponent from "../components/Image"; import { MarkdownSerializerState } from "../lib/markdown/serializer"; +import { EditorStyleHelper } from "../styles/EditorStyleHelper"; import { ComponentProps } from "../types"; import SimpleImage from "./SimpleImage"; @@ -152,11 +153,8 @@ export default class Image extends SimpleImage { const className = node.attrs.layoutClass ? `image image-${node.attrs.layoutClass}` : "image"; - return [ - "div", - { - class: className, - }, + + const children = [ [ "img", { @@ -167,7 +165,22 @@ export default class Image extends SimpleImage { contentEditable: "false", }, ], - ["p", { class: "caption" }, 0], + ]; + + if (node.attrs.alt) { + children.push([ + "p", + { class: EditorStyleHelper.imageCaption }, + node.attrs.alt, + ]); + } + + return [ + "div", + { + class: className, + }, + ...children, ]; }, toPlainText: (node) => 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/Notice.tsx b/shared/editor/nodes/Notice.tsx index 3c34b50389..1e1cba6079 100644 --- a/shared/editor/nodes/Notice.tsx +++ b/shared/editor/nodes/Notice.tsx @@ -2,6 +2,7 @@ import { Token } from "markdown-it"; import { WarningIcon, InfoIcon, StarredIcon, DoneIcon } from "outline-icons"; import { wrappingInputRule } from "prosemirror-inputrules"; import { NodeSpec, Node as ProsemirrorNode, NodeType } from "prosemirror-model"; +import { Command, EditorState, Transaction } from "prosemirror-state"; import * as React from "react"; import ReactDOM from "react-dom"; import { Primitive } from "utility-types"; @@ -10,6 +11,13 @@ import { MarkdownSerializerState } from "../lib/markdown/serializer"; import noticesRule from "../rules/notices"; import Node from "./Node"; +export enum NoticeTypes { + Info = "info", + Success = "success", + Tip = "tip", + Warning = "warning", +} + export default class Notice extends Node { get name() { return "container_notice"; @@ -23,7 +31,7 @@ export default class Notice extends Node { return { attrs: { style: { - default: "info", + default: NoticeTypes.Info, }, }, content: @@ -38,12 +46,12 @@ export default class Notice extends Node { contentElement: (node: HTMLDivElement) => node.querySelector("div.content") || node, getAttrs: (dom: HTMLDivElement) => ({ - style: dom.className.includes("tip") - ? "tip" - : dom.className.includes("warning") - ? "warning" - : dom.className.includes("success") - ? "success" + style: dom.className.includes(NoticeTypes.Tip) + ? NoticeTypes.Tip + : dom.className.includes(NoticeTypes.Warning) + ? NoticeTypes.Warning + : dom.className.includes(NoticeTypes.Success) + ? NoticeTypes.Success : undefined, }), }, @@ -60,10 +68,10 @@ export default class Notice extends Node { tag: "div.alert.theme-admonition", preserveWhitespace: "full", getAttrs: (dom: HTMLDivElement) => ({ - style: dom.className.includes("warning") - ? "warning" - : dom.className.includes("success") - ? "success" + style: dom.className.includes(NoticeTypes.Warning) + ? NoticeTypes.Warning + : dom.className.includes(NoticeTypes.Success) + ? NoticeTypes.Success : undefined, }), }, @@ -73,11 +81,11 @@ export default class Notice extends Node { preserveWhitespace: "full", getAttrs: (dom: HTMLDivElement) => ({ style: dom.className.includes("confluence-information-macro-tip") - ? "success" + ? NoticeTypes.Success : dom.className.includes("confluence-information-macro-note") - ? "tip" + ? NoticeTypes.Tip : dom.className.includes("confluence-information-macro-warning") - ? "warning" + ? NoticeTypes.Warning : undefined, }), }, @@ -87,11 +95,11 @@ export default class Notice extends Node { if (typeof document !== "undefined") { let component; - if (node.attrs.style === "tip") { + if (node.attrs.style === NoticeTypes.Tip) { component = ; - } else if (node.attrs.style === "warning") { + } else if (node.attrs.style === NoticeTypes.Warning) { component = ; - } else if (node.attrs.style === "success") { + } else if (node.attrs.style === NoticeTypes.Success) { component = ; } else { component = ; @@ -113,26 +121,40 @@ export default class Notice extends Node { } commands({ type }: { type: NodeType }) { - return (attrs: Record) => toggleWrap(type, attrs); + return { + container_notice: (attrs: Record) => + toggleWrap(type, attrs), + info: (): Command => (state, dispatch) => + this.handleStyleChange(state, dispatch, NoticeTypes.Info), + warning: (): Command => (state, dispatch) => + this.handleStyleChange(state, dispatch, NoticeTypes.Warning), + success: (): Command => (state, dispatch) => + this.handleStyleChange(state, dispatch, NoticeTypes.Success), + tip: (): Command => (state, dispatch) => + this.handleStyleChange(state, dispatch, NoticeTypes.Tip), + }; } - handleStyleChange = (event: InputEvent) => { - const { view } = this.editor; - const { tr } = view.state; - const element = event.target; - if (!(element instanceof HTMLSelectElement)) { - return; - } + handleStyleChange = ( + state: EditorState, + dispatch: ((tr: Transaction) => void) | undefined, + style: NoticeTypes + ): boolean => { + const { tr, selection } = state; + const { $from } = selection; + const node = $from.node(-1); - const { top, left } = element.getBoundingClientRect(); - const result = view.posAtCoords({ top, left }); - - if (result) { - const transaction = tr.setNodeMarkup(result.inside, undefined, { - style: element.value, - }); - view.dispatch(transaction); + if (node?.type.name === this.name) { + if (dispatch) { + const transaction = tr.setNodeMarkup($from.before(-1), undefined, { + ...node.attrs, + style, + }); + dispatch(transaction); + } + return true; } + return false; }; inputRules({ type }: { type: NodeType }) { 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/editor/nodes/TableRow.ts b/shared/editor/nodes/TableRow.ts index 1a36a93a0f..224096741a 100644 --- a/shared/editor/nodes/TableRow.ts +++ b/shared/editor/nodes/TableRow.ts @@ -17,6 +17,10 @@ export default class TableRow extends Node { }; } + toMarkdown() { + // see: renderTable + } + parseMarkdown() { return { block: "tr" }; } diff --git a/shared/editor/plugins/FoldingHeaders.ts b/shared/editor/plugins/FoldingHeaders.ts deleted file mode 100644 index 4c43316722..0000000000 --- a/shared/editor/plugins/FoldingHeaders.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { Plugin, PluginKey } from "prosemirror-state"; -import { Decoration, DecorationSet } from "prosemirror-view"; -import Storage from "../../utils/Storage"; -import { headingToPersistenceKey } from "../lib/headingToSlug"; -import { findBlockNodes } from "../queries/findChildren"; -import { findCollapsedNodes } from "../queries/findCollapsedNodes"; - -export class FoldingHeadersPlugin extends Plugin { - constructor(documentId: string | undefined) { - const plugin = new PluginKey("folding"); - let loaded = false; - - super({ - key: plugin, - view: (view) => { - loaded = false; - view.dispatch(view.state.tr.setMeta("folding", { loaded: true })); - return {}; - }, - appendTransaction: (transactions, oldState, newState) => { - if (loaded) { - return; - } - if ( - !transactions.some((transaction) => transaction.getMeta("folding")) - ) { - return; - } - - let modified = false; - const tr = newState.tr; - const blocks = findBlockNodes(newState.doc); - - for (const block of blocks) { - if (block.node.type.name === "heading") { - const persistKey = headingToPersistenceKey(block.node, documentId); - const persistedState = Storage.get(persistKey); - - if (persistedState === "collapsed") { - tr.setNodeMarkup(block.pos, undefined, { - ...block.node.attrs, - collapsed: true, - }); - modified = true; - } - } - } - - loaded = true; - return modified ? tr : null; - }, - props: { - decorations: (state) => { - const { doc } = state; - const decorations: Decoration[] = findCollapsedNodes(doc).map( - (block) => - Decoration.node(block.pos, block.pos + block.node.nodeSize, { - class: "folded-content", - }) - ); - - return DecorationSet.create(doc, decorations); - }, - }, - }); - } -} diff --git a/shared/editor/queries/isInNotice.ts b/shared/editor/queries/isInNotice.ts new file mode 100644 index 0000000000..eb1f8f523f --- /dev/null +++ b/shared/editor/queries/isInNotice.ts @@ -0,0 +1,13 @@ +import { EditorState } from "prosemirror-state"; +import { isNodeActive } from "./isNodeActive"; + +/** + * Returns true if the selection is inside a notice block. + * + * @param state The editor state. + * @returns True if the selection is inside a notice block. + */ +export function isInNotice(state: EditorState): boolean { + const { nodes } = state.schema; + return nodes.container_notice && isNodeActive(nodes.container_notice)(state); +} diff --git a/shared/editor/styles/EditorStyleHelper.ts b/shared/editor/styles/EditorStyleHelper.ts index c625c4ead2..e0981a38f6 100644 --- a/shared/editor/styles/EditorStyleHelper.ts +++ b/shared/editor/styles/EditorStyleHelper.ts @@ -6,6 +6,8 @@ export class EditorStyleHelper { static readonly imageHandle = "image-handle"; + static readonly imageCaption = "caption"; + // Comments static readonly comment = "comment-marker"; diff --git a/shared/editor/types/index.ts b/shared/editor/types/index.ts index f9d868d4f2..ef4b90d806 100644 --- a/shared/editor/types/index.ts +++ b/shared/editor/types/index.ts @@ -35,8 +35,8 @@ export type MenuItem = { children?: MenuItem[]; defaultHidden?: boolean; attrs?: - | Record - | ((state: EditorState) => Record); + | Record + | ((state: EditorState) => Record); visible?: boolean; active?: (state: EditorState) => boolean; appendSpace?: boolean; diff --git a/shared/editor/version.ts b/shared/editor/version.ts index 0cbb6c8011..db878816cc 100644 --- a/shared/editor/version.ts +++ b/shared/editor/version.ts @@ -1,3 +1,3 @@ -const EDITOR_VERSION = "13.0.0"; +const EDITOR_VERSION = "14.0.0"; export default EDITOR_VERSION; diff --git a/shared/hooks/useComponentSize.ts b/shared/hooks/useComponentSize.ts index 7573c78e56..47e8cd04cc 100644 --- a/shared/hooks/useComponentSize.ts +++ b/shared/hooks/useComponentSize.ts @@ -1,4 +1,4 @@ -import { useState, useEffect } from "react"; +import { useState, useLayoutEffect } from "react"; const defaultRect = { top: 0, @@ -11,12 +11,19 @@ const defaultRect = { height: 0, }; -export default function useComponentSize( - element: HTMLElement | null +/** + * A hook that returns the size of an element or ref. + * + * @param input The element or ref to observe + * @returns The size and position of the element + */ +export function useComponentSize( + input: HTMLElement | null | React.RefObject ): DOMRect | typeof defaultRect { + const element = input instanceof HTMLElement ? input : input?.current; const [size, setSize] = useState(() => element?.getBoundingClientRect()); - useEffect(() => { + useLayoutEffect(() => { const sizeObserver = new ResizeObserver(() => { element?.dispatchEvent(new CustomEvent("resize")); }); @@ -26,7 +33,7 @@ export default function useComponentSize( return () => sizeObserver.disconnect(); }, [element]); - useEffect(() => { + useLayoutEffect(() => { const handleResize = () => { setSize((state) => { const rect = element?.getBoundingClientRect(); diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index de68b80a38..0ff9001886 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -36,6 +36,7 @@ "Development": "Vývoj", "Open document": "Otevřít dokument", "New document": "Nový dokument", + "New draft": "New draft", "New from template": "Nový ze šablony", "New nested document": "Nový vnořený dokument", "Publish": "Zveřejnit", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "{{collectionName}} se také používá jako domovská stránka – odstraněním se obnoví výchozí nastavení.", "Sorry, an error occurred saving the collection": "Omlouváme se, při ukládání sbírky došlo k chybě", "Add a description": "Přidat popis", - "Collapse": "Sbalit", - "Expand": "Rozbalit", "Type a command or search": "Zadejte příkaz nebo začněte vyhledávat", "Choose a template": "Vybrat šablonu", "Are you sure you want to permanently delete this entire comment thread?": "Jste si jisti, že chcete natrvalo odstranit vlákno komentářů?", @@ -178,6 +177,7 @@ "view and edit access": "přístup k prohlížení a úpravám", "view only access": "přístup pouze pro čtení", "no access": "bez přístupu", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Přesunout dokument", "Moving": "Přesouvání", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Výchozí sbírka", "Install now": "Nainstalovat", "Deleted Collection": "Odstraněná sbírka", + "Untitled": "Bez názvu", "Unpin": "Zrušit připnutí", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Prohledat sbírky a dokumenty", "No results found": "Nebyly nalezeny žádné výsledky", - "Untitled": "Bez názvu", "New": "Nový", "Only visible to you": "Viditelné pouze pro vás", "Draft": "Návrh", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Nový dokument", - "You can't reorder documents in an alphabetically sorted collection": "Nemůžete změnit pořadí dokumentů v abecedně seřazené sbírce", "Empty": "Prázdné", "Collections": "Sbírky", + "Collapse": "Sbalit", + "Expand": "Rozbalit", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokument není podporován – zkuste Markdown, Plain text, HTML nebo Word", "Go back": "Jít zpět", "Go forward": "Jít vpřed", @@ -382,6 +382,10 @@ "Up to date": "Aktuální", "{{ releasesBehind }} versions behind": "Zastaralá verze {{ releasesBehind }}", "{{ releasesBehind }} versions behind_plural": "Zastaralé verze {{ releasesBehind }}", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Nemůžete změnit pořadí dokumentů v abecedně seřazené sbírce", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Zpět do aplikace", "Installation": "Instalace", "Unstar document": "Odznačit dokument", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} skupin s přístupem", "Archived by {{userName}}": "Archivoval {{userName}}", "Share": "Sdílet", + "Overview": "Overview", "Recently updated": "Nedávno aktualizováno", "Recently published": "Nedávno zveřejněné", "Least recently updated": "Naposledy aktualizováno", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Nebezpečí", "You can delete this entire workspace including collections, documents, and users.": "Můžete odstranit celý tento pracovní prostor včetně kolekcí, dokumentů a uživatelů.", "Export data": "Exportovat data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Úplný export může nějakou dobu trvat, zvažte export jednoho dokumentu nebo sbírky. Exportovaná data jsou zipem vašich dokumentů ve formátu Markdown. Po zahájení exportu můžete tuto stránku opustit – pokud máte povolená upozornění, pošleme vám e-mail s odkazem na {{ userEmail }} , až bude dokončen.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Nedávné exporty", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Spravujte volitelné funkce a funkce beta. Změna těchto nastavení ovlivní prostředí všech členů pracovního prostoru.", "Separate editing": "Oddělený režim úprav", @@ -1138,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 d14567f32d..630efa8649 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -36,6 +36,7 @@ "Development": "Udvikling", "Open document": "Åben dokument", "New document": "Nyt dokument", + "New draft": "New draft", "New from template": "Ny fra skabelon", "New nested document": "Nyt indlejret dokument", "Publish": "Udgive", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.", "Sorry, an error occurred saving the collection": "Sorry, an error occurred saving the collection", "Add a description": "Add a description", - "Collapse": "Collapse", - "Expand": "Expand", "Type a command or search": "Type a command or search", "Choose a template": "Choose a template", "Are you sure you want to permanently delete this entire comment thread?": "Are you sure you want to permanently delete this entire comment thread?", @@ -178,6 +177,7 @@ "view and edit access": "view and edit access", "view only access": "view only access", "no access": "no access", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Flyt dokument", "Moving": "Moving", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Default collection", "Install now": "Install now", "Deleted Collection": "Deleted Collection", + "Untitled": "Unavngivet", "Unpin": "Unpin", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Search collections & documents", "No results found": "Ingen resultater fundet", - "Untitled": "Unavngivet", "New": "Ny", "Only visible to you": "Kun synlig for dig", "Draft": "Udkast", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Nyt dokument", - "You can't reorder documents in an alphabetically sorted collection": "Du kan ikke omarrangere dokumenter i en alfabetisk sorteret samling", "Empty": "Tom", "Collections": "Samlinger", + "Collapse": "Collapse", + "Expand": "Expand", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokumentet understøttes ikke – prøv Markdown, Almindelig tekst, HTML, eller Word", "Go back": "Gå tilbage", "Go forward": "Gå fremad", @@ -382,6 +382,10 @@ "Up to date": "Up to date", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version behind", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions behind", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Du kan ikke omarrangere dokumenter i en alfabetisk sorteret samling", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Back to App", "Installation": "Installation", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", "Archived by {{userName}}": "Archived by {{userName}}", "Share": "Del", + "Overview": "Overview", "Recently updated": "Recently updated", "Recently published": "Recently published", "Least recently updated": "Least recently updated", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", @@ -1138,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 05cee89ed0..c4b98d1bd4 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -13,11 +13,11 @@ "Unstar": "Aus den Favoriten entfernen", "Archive": "Archiv", "Archive collection": "Private Sammlung", - "Collection archived": "Collection archived", + "Collection archived": "Sammlung archiviert", "Archiving": "Archiviere", - "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.", + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Bei der Archivierung dieser Sammlung werden auch alle darin enthaltenen Dokumente archiviert. Dokumente aus dieser Sammlung werden nicht mehr in den Suchergebnissen angezeigt.", "Restore": "Wiederherstellen", - "Collection restored": "Collection restored", + "Collection restored": "Sammlung wiederhergestellt", "Delete": "Löschen", "Delete collection": "Sammlung löschen", "New template": "Neue Vorlage", @@ -36,6 +36,7 @@ "Development": "Entwicklung", "Open document": "Dokument öffnen", "New document": "Neues Dokument", + "New draft": "New draft", "New from template": "Neu aus Vorlage", "New nested document": "Neues Unterdokument", "Publish": "Veröffentlichen", @@ -79,7 +80,7 @@ "Search documents for \"{{searchQuery}}\"": "Suche Dokumente für \"{{searchQuery}}\"", "Move to workspace": "Move to workspace", "Move": "Verschieben", - "Move to collection": "Move to collection", + "Move to collection": "Zu Sammlung verschieben", "Move {{ documentType }}": "Verschiebe {{ documentType }}", "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", "Document archived": "Dokument archiviert", @@ -94,7 +95,7 @@ "Insights": "Statistiken", "Disable viewer insights": "Leser Statistiken deaktivieren", "Enable viewer insights": "Leser Statistiken aktivieren", - "Leave document": "Leave document", + "Leave document": "Dokument verlassen", "You have left the shared document": "You have left the shared document", "Could not leave document": "Could not leave document", "Home": "Startseite", @@ -167,17 +168,16 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Die Sammlung {{collectionName}} wird außerdem als Startseite genutzt – sollte diese Sammlung gelöscht werden, wird die Startseite auf die Standardeinstellung zurückgesetzt.", "Sorry, an error occurred saving the collection": "Beim Speichern der Sammlung ist leider ein Fehler aufgetreten", "Add a description": "Beschreibung hinzufügen", - "Collapse": "Zusammenklappen", - "Expand": "Ausklappen", "Type a command or search": "Gib einen Befehl oder eine Suche ein", "Choose a template": "Wähle eine Vorlage", "Are you sure you want to permanently delete this entire comment thread?": "Bist du sicher, dass du diesen Kommentarverlauf löschen möchtest?", "Are you sure you want to permanently delete this comment?": "Bist du sicher, dass du diesen Kommentar löschen möchtest?", "Confirm": "Bestätigen", - "manage access": "manage access", + "manage access": "Zugriff verwalten", "view and edit access": "Zugriff anzeigen und bearbeiten", "view only access": "nur anzeigen Zugriff", "no access": "kein Zugriff", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Dokument verschieben", "Moving": "Bewegen", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,16 +196,16 @@ "Default collection": "Standardsammlung", "Install now": "Jetzt installieren", "Deleted Collection": "Gelöschte Sammlung", + "Untitled": "Ohne Titel", "Unpin": "Lospinnen", "{{ minutes }}m read": "{{ minutes }}m read", - "Select a location to copy": "Select a location to copy", - "Document copied": "Document copied", - "Couldn’t copy the document, try again?": "Couldn’t copy the document, try again?", + "Select a location to copy": "Ort zum Kopieren auswählen", + "Document copied": "Dokument kopiert", + "Couldn’t copy the document, try again?": "Das Dokument konnte nicht kopiert werden. Erneut versuchen?", "Include nested documents": "Verschachtelte Dokumente einbeziehen", - "Copy to {{ location }}": "Copy to {{ location }}", + "Copy to {{ location }}": "Kopieren nach {{ location }}", "Search collections & documents": "Sammlungen und Dokumente durchsuchen", "No results found": "Keine Ergebnisse gefunden", - "Untitled": "Ohne Titel", "New": "Neu", "Only visible to you": "Nur für Sie sichtbar", "Draft": "Entwurf", @@ -304,13 +304,13 @@ "Unknown": "Unbekannt", "Mark all as read": "Alle als gelesen markieren", "You're all caught up": "Du bist auf dem neusten Stand", - "{{ username }} reacted with {{ emoji }}": "{{ username }} reacted with {{ emoji }}", + "{{ username }} reacted with {{ emoji }}": "{{ username }} hat mit {{ emoji }} reagiert", "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }} and {{ count }} other reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}", - "Add reaction": "Add reaction", - "Reaction picker": "Reaction picker", - "Could not load reactions": "Could not load reactions", + "Add reaction": "Reaktion hinzufügen", + "Reaction picker": "Reaktions-Auswahl", + "Could not load reactions": "Reaktionen konnten nicht geladen werden", "Reaction": "Reaktion", "Results": "Ergebnisse", "No results for {{query}}": "Keine Ergebnisse für {{query}}", @@ -356,7 +356,7 @@ "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Jeder mit diesem Link kann darauf zugreifen, da das übergeordnete Dokument, <2>{{documentTitle}}, geteilt wird", "Allow anyone with the link to access": "Jedem mit dem Link Zugriff erlauben", "Publish to internet": "Im Internet veröffentlichen", - "Search engine indexing": "Search engine indexing", + "Search engine indexing": "Suchmaschinenindexierung", "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Verschachtelte Dokumente werden nicht im Web geteilt. Schalten Sie die Freigabe um, um den Zugriff zu ermöglichen, dies wird das Standardverhalten in Zukunft sein", "{{ userName }} was added to the document": "{{ userName }} was added to the document", @@ -365,12 +365,12 @@ "{{ count }} groups added to the document": "{{ count }} groups added to the document", "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", - "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", + "Archived collections": "Archivierte Sammlungen", "New doc": "Neues Dokument", - "You can't reorder documents in an alphabetically sorted collection": "Du kannst Dokumente in einer alphabetisch sortierten Sammlung nicht neu anordnen", "Empty": "Leer", "Collections": "Sammlungen", + "Collapse": "Zusammenklappen", + "Expand": "Ausklappen", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokument nicht unterstützt - versuche Markdown, Klartext, HTML oder Word", "Go back": "Zurück", "Go forward": "Vor", @@ -382,6 +382,10 @@ "Up to date": "Auf dem neuesten Stand", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} Versionen veraltet", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} Versionen veraltet", + "Change permissions?": "Berechtigungen ändern?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Du kannst Dokumente in einer alphabetisch sortierten Sammlung nicht neu anordnen", + "The {{ documentName }} cannot be moved here": "Der {{ documentName }} kann nicht dorthin verschoben werden", "Return to App": "Zurück zur App", "Installation": "Installation", "Unstar document": "Favorisierung entfernen", @@ -389,8 +393,8 @@ "Template created, go ahead and customize it": "Vorlage erstellt, fortfahren und anpassen", "Creating a template from {{titleWithDefault}} is a non-destructive action – we'll make a copy of the document and turn it into a template that can be used as a starting point for new documents.": "Das Erstellen einer Vorlage durch {{titleWithDefault}} ist eine non-destruktive Aktion – wir erstellen eine Kopie des Dokuments und verwandeln es in eine Vorlage, die als Ausgangspunkt für neue Dokumente verwendet werden kann.", "Published": "Veröffentlicht", - "Enable other members to use the template immediately": "Enable other members to use the template immediately", - "Location": "Location", + "Enable other members to use the template immediately": "Erlaube anderen Mitgliedern die Vorlage sofort zu verwenden", + "Location": "Ort", "Admins can manage the workspace and access billing.": "Administratoren können den Arbeitsbereich verwalten und auf die Abrechnung zugreifen.", "Editors can create, edit, and comment on documents.": "Redakteure können Dokumente erstellen, bearbeiten und kommentieren.", "Viewers can only view and comment on documents.": "Betrachter können nur Dokumente sehen und kommentieren.", @@ -401,11 +405,11 @@ "New name": "Neuer Name", "Name can't be empty": "Der Name darf nicht leer sein", "Check your email to verify the new address.": "Check your email to verify the new address.", - "The email will be changed once verified.": "The email will be changed once verified.", + "The email will be changed once verified.": "Die E-Mail wird geändert, sobald sie bestätigt wurde.", "You will receive an email to verify your new address. It must be unique in the workspace.": "You will receive an email to verify your new address. It must be unique in the workspace.", - "A confirmation email will be sent to the new address before it is changed.": "A confirmation email will be sent to the new address before it is changed.", - "New email": "New email", - "Email can't be empty": "Email can't be empty", + "A confirmation email will be sent to the new address before it is changed.": "Eine Bestätigungs-E-Mail wird an die neue Adresse geschickt, bevor sie geändert wird.", + "New email": "Neue E-Mail", + "Email can't be empty": "E-Mail darf nicht leer sein", "Your import completed": "Ihr Import ist abgeschlossen", "Previous match": "Vorheriger Treffer", "Next match": "Nächster Treffer", @@ -420,7 +424,7 @@ "Profile picture": "Profilbild", "Create a new doc": "Neues Dokument erstellen", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} won't be notified, as they do not have access to this document", - "Keep as link": "Keep as link", + "Keep as link": "Als Link beibehalten", "Embed": "Embed", "Add column after": "Spalte dahinter hinzufügen", "Add column before": "Spalte davor hinzufügen", @@ -450,11 +454,11 @@ "Italic": "Kursiv", "Sorry, that link won’t work for this embed type": "Dieser Link funktioniert für diesen Einbettungstyp leider nicht", "File attachment": "Dateianhang", - "Enter a link": "Enter a link", + "Enter a link": "Link eintragen", "Big heading": "Große Überschrift", "Medium heading": "Mittlere Überschrift", "Small heading": "Kleine Überschrift", - "Extra small heading": "Extra small heading", + "Extra small heading": "Extra kleine Überschrift", "Heading": "Überschrift", "Divider": "Trennlinie", "Image": "Bild", @@ -503,7 +507,7 @@ "Could not import file": "Datei konnte nicht importiert werden", "Unsubscribed from document": "Dokument nicht abonniert", "Account": "Konto", - "API Keys": "API Keys", + "API Keys": "API-Schlüssel", "Details": "Details", "Security": "Sicherheit", "Features": "Funktionen", @@ -521,8 +525,8 @@ "Export collection": "Sammlung exportieren", "Rename": "Umbenennen", "Sort in sidebar": "Seitenleiste sortieren", - "A-Z sort": "A-Z sort", - "Z-A sort": "Z-A sort", + "A-Z sort": "A-Z-Sortierung", + "Z-A sort": "Z-A-Sortierung", "Manual sort": "Manuelle Sortierung", "Comment options": "Kommentar Optionen", "Show document menu": "Dokumentmenü anzeigen", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} Gruppen mit Zugriff", "Archived by {{userName}}": "Archiviert durch {{userName}}", "Share": "Teilen", + "Overview": "Übersicht", "Recently updated": "Vor Kurzem aktualisiert", "Recently published": "Vor Kurzem veröffentlicht", "Least recently updated": "Am längsten nicht aktualisiert", @@ -614,8 +619,8 @@ "Most recent": "Most recent", "Order in doc": "Order in doc", "Resolved": "Resolved", - "Show {{ count }} reply": "Show {{ count }} reply", - "Show {{ count }} reply_plural": "Show {{ count }} replies", + "Show {{ count }} reply": "{{ count }} Antwort anzeigen", + "Show {{ count }} reply_plural": "{{ count }} -Antworten anzeigen", "Error updating comment": "Fehler beim Aktualisieren des Kommentars", "Document restored": "Dokument wiederhergestellt", "Images are still uploading.\nAre you sure you want to discard them?": "Bilder werden noch hochgeladen.\nMöchtest du sie wirklich verwerfen?", @@ -764,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", @@ -821,7 +826,7 @@ "Author": "Autor", "We were unable to find the page you’re looking for.": "Die von Ihnen gesuchte Seite konnte nicht gefunden werden.", "Search titles only": "Nur Titel durchsuchen", - "Something went wrong": "Something went wrong", + "Something went wrong": "Etwas ist schiefgelaufen", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Keine Dokumente für diese Suchfilter gefunden.", "API": "API", @@ -928,7 +933,7 @@ "Danger": "Achtung", "You can delete this entire workspace including collections, documents, and users.": "Du kannst den gesamten Arbeitsbereich einschließlich der Sammlungen, Dokumente und Benutzer löschen.", "Export data": "Daten exportieren", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Ein vollständiger Export kann einige Zeit dauern. Wenn möglich, sollte nur ein einzelnes Dokument oder eine einzelne Sammlung exportiert werden. Wir stellen eine Zip-Datei aller Dokumente im Markdown-Format zusammen und senden - falls Benachrichtigungen aktiviert sind - eine E-Mail an {{ userEmail }}, sobald der Export fertig ist.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Kürzliche Exporte", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Verwalten Sie optionale und Beta-Funktionen. Das Ändern dieser Einstellungen wirkt sich auf alle Mitglieder des Arbeitsbereichs aus.", "Separate editing": "Getrennte Bearbeitung", @@ -1138,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 907b6155a7..02b448b766 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -11,6 +11,10 @@ "Search in collection": "Search in collection", "Star": "Star", "Unstar": "Unstar", + "Subscribe": "Subscribe", + "Subscribed to document notifications": "Subscribed to document notifications", + "Unsubscribe": "Unsubscribe", + "Unsubscribed from document notifications": "Unsubscribed from document notifications", "Archive": "Archive", "Archive collection": "Archive collection", "Collection archived": "Collection archived", @@ -36,6 +40,7 @@ "Development": "Development", "Open document": "Open document", "New document": "New document", + "New draft": "New draft", "New from template": "New from template", "New nested document": "New nested document", "Publish": "Publish", @@ -43,10 +48,6 @@ "Publish document": "Publish document", "Unpublish": "Unpublish", "Unpublished {{ documentName }}": "Unpublished {{ documentName }}", - "Subscribe": "Subscribe", - "Subscribed to document notifications": "Subscribed to document notifications", - "Unsubscribe": "Unsubscribe", - "Unsubscribed from document notifications": "Unsubscribed from document notifications", "Share this document": "Share this document", "HTML": "HTML", "PDF": "PDF", @@ -136,6 +137,7 @@ "Update role": "Update role", "Delete user": "Delete user", "Collection": "Collection", + "Collections": "Collections", "Debug": "Debug", "Document": "Document", "Documents": "Documents", @@ -176,6 +178,7 @@ "view and edit access": "view and edit access", "view only access": "view only access", "no access": "no access", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Move document", "Moving": "Moving", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -194,6 +197,7 @@ "Default collection": "Default collection", "Install now": "Install now", "Deleted Collection": "Deleted Collection", + "Untitled": "Untitled", "Unpin": "Unpin", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -203,7 +207,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Search collections & documents", "No results found": "No results found", - "Untitled": "Untitled", "New": "New", "Only visible to you": "Only visible to you", "Draft": "Draft", @@ -364,11 +367,8 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "New doc", - "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", "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", @@ -382,6 +382,10 @@ "Up to date": "Up to date", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version behind", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions behind", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Back to App", "Installation": "Installation", "Unstar document": "Unstar document", @@ -529,6 +533,7 @@ "{{ documentName }} restored": "{{ documentName }} restored", "Document options": "Document options", "Choose a collection": "Choose a collection", + "Subscription inherited from collection": "Subscription inherited from collection", "Enable embeds": "Enable embeds", "Export options": "Export options", "Group members": "Group members", @@ -765,7 +770,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", @@ -789,7 +794,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", @@ -810,16 +815,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", @@ -929,7 +934,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index f6e7a3b612..7b42420c0a 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -36,6 +36,7 @@ "Development": "Desarrollo", "Open document": "Abrir documento", "New document": "Nuevo documento", + "New draft": "New draft", "New from template": "Nuevo desde plantilla", "New nested document": "Nuevo documento anidado", "Publish": "Publicar", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Además, la colección {{collectionName}} está siendo utilizada como vista inicial – eliminarla restablecerá la vista inicial a la página de Inicio.", "Sorry, an error occurred saving the collection": "Lo sentimos, se ha producido un error al guardar la colección", "Add a description": "Añadir una descripción", - "Collapse": "Colapsar", - "Expand": "Expandir", "Type a command or search": "Escribe un comando o busca", "Choose a template": "Elige una plantilla", "Are you sure you want to permanently delete this entire comment thread?": "¿Estás seguro de que quieres eliminar permanentemente todo este hilo de comentarios?", @@ -178,6 +177,7 @@ "view and edit access": "acceso de lectura y edición", "view only access": "acceso de solo lectura", "no access": "sin acceso", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Mover documento", "Moving": "Moviendo", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Colección predeterminada", "Install now": "Instalar ahora", "Deleted Collection": "Colección Eliminada", + "Untitled": "Sin título", "Unpin": "Desfijar", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copiar a {{ location }}", "Search collections & documents": "Buscar en colecciones y documentos", "No results found": "No se encontraron resultados", - "Untitled": "Sin título", "New": "Nuevo", "Only visible to you": "Solo visible para ti", "Draft": "Borrador", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} grupos invitados al documento", "Logo": "Logo", "Archived collections": "Colecciones archivadas", - "Change permissions?": "¿Cambiar permisos?", "New doc": "Nuevo doc", - "You can't reorder documents in an alphabetically sorted collection": "No puedes reordenar documentos en una colección ordenada alfabéticamente", "Empty": "Vacío", "Collections": "Colecciones", + "Collapse": "Colapsar", + "Expand": "Expandir", "Document not supported – try Markdown, Plain text, HTML, or Word": "Documento no compatible – intenta Markdown, Texto sin formato, HTML o Word", "Go back": "Volver", "Go forward": "Avanzar", @@ -382,6 +382,10 @@ "Up to date": "Al día", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versión atrás", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versiones atrás", + "Change permissions?": "¿Cambiar permisos?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "No puedes reordenar documentos en una colección ordenada alfabéticamente", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Volver a la aplicación", "Installation": "Instalación", "Unstar document": "Eliminar documento de favoritos", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupos con acceso", "Archived by {{userName}}": "Archivado por {{userName}}", "Share": "Compartir", + "Overview": "Overview", "Recently updated": "Actualizado recientemente", "Recently published": "Publicado recientemente", "Least recently updated": "Actualizado menos recientemente", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Peligro", "You can delete this entire workspace including collections, documents, and users.": "Puedes eliminar todo este espacio de trabajo incluyendo colecciones, documentos y usuarios.", "Export data": "Exportar datos", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Una exportación completa puede tardar algún tiempo, considere exportar un solo documento o colección. Los datos exportados son un zip de tus documentos en formato Markdown. Puedes salir de esta página una vez haya comenzado la exportación – si tienes las notificaciones activadas, te enviaremos un enlace por correo electrónico a {{ userEmail }} cuando esté lista.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exportaciones recientes", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gestiona funciones opcionales y beta. Cambiar esta configuración afectará la experiencia de todos los miembros del espacio de trabajo.", "Separate editing": "Edición separada", @@ -1138,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 eee9f9a50f..4ba0b7a26b 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -36,6 +36,7 @@ "Development": "محیط توسعه", "Open document": "باز کردن سند", "New document": "سند جدید", + "New draft": "New draft", "New from template": "جدید از قالب", "New nested document": "ایجاد زیرسند جدید", "Publish": "انتشار", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "همچنین، {{collectionName}} به عنوان نمای شروع استفاده می شود - با حذف آن، نمای شروع به صفحه اصلی بازگردانده می شود.", "Sorry, an error occurred saving the collection": "متاسفانه خطایی در ذخیره‌سازی مجموعه رخ داد", "Add a description": "توضیحاتی اضافه کنید", - "Collapse": "جمع کردن", - "Expand": "باز کردن", "Type a command or search": "دستوری تایپ و یا جستجو کنید", "Choose a template": "Choose a template", "Are you sure you want to permanently delete this entire comment thread?": "Are you sure you want to permanently delete this entire comment thread?", @@ -178,6 +177,7 @@ "view and edit access": "دسترسی مشاهده و ویرایش", "view only access": "دسترسی صرفا نمایش", "no access": "بدون دسترسی", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "انتقال سند", "Moving": "در حال حرکت", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "مجموعه پیش فرض", "Install now": "Install now", "Deleted Collection": "مجموعه‌های حذف شده", + "Untitled": "بدون عنوان", "Unpin": "برداشتن سنجاق", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "جستجوی مجموعه ها و اسناد", "No results found": "No results found", - "Untitled": "بدون عنوان", "New": "جدید", "Only visible to you": "تنها قابل مشاهده برای شما", "Draft": "پیش‌نویس", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "لوگو", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "سند جدید", - "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", "Empty": "خالی", "Collections": "مجموعه‌ها", + "Collapse": "جمع کردن", + "Expand": "باز کردن", "Document not supported – try Markdown, Plain text, HTML, or Word": "نوع سند پشتیبانی نمی‌شود - از Markdown، متن ساده، HTML، یا Word استفاده کنید", "Go back": "Go back", "Go forward": "Go forward", @@ -382,6 +382,10 @@ "Up to date": "به روز", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version behind", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions behind", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "بازگشت به برنامه", "Installation": "نسخه", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", "Archived by {{userName}}": "بایگانی شده توسط {{userName}}", "Share": "اشتراک‌گذاری", + "Overview": "Overview", "Recently updated": "آخرین به‌روزرسانی", "Recently published": "آخرین انتشار", "Least recently updated": "اولین به‌روزرسانی", @@ -764,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": "ورود", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "صادر شده های اخیر", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", @@ -1138,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 c6bb03d68e..53f7b39215 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -36,6 +36,7 @@ "Development": "Développement", "Open document": "Ouvrir le document", "New document": "Nouveau document", + "New draft": "New draft", "New from template": "Nouveau à partir d'un modèle", "New nested document": "Nouveau document imbriqué", "Publish": "Publier", @@ -96,7 +97,7 @@ "Enable viewer insights": "Activer le visualisateur d'analyses", "Leave document": "Leave document", "You have left the shared document": "You have left the shared document", - "Could not leave document": "Could not leave document", + "Could not leave document": "Impossible de quitter le document", "Home": "Accueil", "Drafts": "Brouillons", "Trash": "Corbeille", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "De plus, la collection {{collectionName}} est affichée par défaut au démarrage - sa suppression réinitialisera la vue de démarrage sur la page d'accueil.", "Sorry, an error occurred saving the collection": "Désolé, une erreur s'est produite lors de l'enregistrement de la collection", "Add a description": "Ajouter une description", - "Collapse": "Réduire", - "Expand": "Développer", "Type a command or search": "Entrez une commande ou faites une recherche", "Choose a template": "Choisir un modèle", "Are you sure you want to permanently delete this entire comment thread?": "Êtes-vous sûr de vouloir supprimer définitivement ce fil de commentaires ?", @@ -178,6 +177,7 @@ "view and edit access": "accès en lecture et écriture", "view only access": "accès en lecture seule", "no access": "pas d'accès", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Déplacer le document", "Moving": "En cours de déplacement", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Déplacer le document {{ title }} vers la collection {{ newCollectionName }} changera les permissions pour tous les membres de l'espace de travail de {{ prevPermission }} à {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Collection par défaut", "Install now": "Installer maintenant", "Deleted Collection": "Collection supprimée", + "Untitled": "Sans titre", "Unpin": "Désépingler", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Rechercher dans les collections et documents", "No results found": "Aucun résultat", - "Untitled": "Sans titre", "New": "Nouveau", "Only visible to you": "Visible uniquement pour vous", "Draft": "Brouillon", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groupes ajoutés au document", "Logo": "Logo", "Archived collections": "Collections archivées", - "Change permissions?": "Modifier les permissions ?", "New doc": "Nouveau doc", - "You can't reorder documents in an alphabetically sorted collection": "Vous ne pouvez pas réorganiser les documents dans une collection triée par ordre alphabétique", "Empty": "Vide", "Collections": "Collections", + "Collapse": "Réduire", + "Expand": "Développer", "Document not supported – try Markdown, Plain text, HTML, or Word": "Document non pris en charge - essayez un format Markdown, Text, HTML ou Word", "Go back": "Revenir en arrière", "Go forward": "Continuer", @@ -382,6 +382,10 @@ "Up to date": "À jour", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version de retard", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions de retard", + "Change permissions?": "Modifier les permissions ?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Vous ne pouvez pas réorganiser les documents dans une collection triée par ordre alphabétique", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Retour à l’app", "Installation": "Installation", "Unstar document": "Retirer le document des favoris", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groupes ont accès", "Archived by {{userName}}": "Archivé par {{userName}}", "Share": "Partager", + "Overview": "Overview", "Recently updated": "Récemment mis à jour", "Recently published": "Récemment publiés", "Least recently updated": "Anciennement modifiés", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "Vous pouvez supprimer tout l'espace de travail dont les collections, les documents et les utilisateurs.", "Export data": "Export des données", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Un export complet peut prendre un certain temps, pensez à exporter un seul document ou une seule collection. Les données sont exportées sous forme d'archive zip de vos documents en format Markdown. Une fois l'export commencé, ous pouvez fermer cette page – nous enverrons un lien à {{ userEmail }} quand ce sera terminé.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exports récents", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gérer les fonctionnalités optionnelles et bêta. La modification de ces paramètres sera effective pour tous les membres de l'espace de travail.", "Separate editing": "Édition séparée", @@ -1138,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 1ce023950b..526306cb55 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -36,6 +36,7 @@ "Development": "פיתוח", "Open document": "פתח מסמך", "New document": "מסמך חדש", + "New draft": "New draft", "New from template": "חדש מתבנית", "New nested document": "מסמך מקונן חדש", "Publish": "פירסום", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.", "Sorry, an error occurred saving the collection": "Sorry, an error occurred saving the collection", "Add a description": "Add a description", - "Collapse": "Collapse", - "Expand": "Expand", "Type a command or search": "Type a command or search", "Choose a template": "Choose a template", "Are you sure you want to permanently delete this entire comment thread?": "Are you sure you want to permanently delete this entire comment thread?", @@ -178,6 +177,7 @@ "view and edit access": "view and edit access", "view only access": "view only access", "no access": "no access", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Move document", "Moving": "Moving", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Default collection", "Install now": "Install now", "Deleted Collection": "Deleted Collection", + "Untitled": "Untitled", "Unpin": "Unpin", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Search collections & documents", "No results found": "No results found", - "Untitled": "Untitled", "New": "New", "Only visible to you": "Only visible to you", "Draft": "Draft", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "New doc", - "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", "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", "Go back": "Go back", "Go forward": "Go forward", @@ -382,6 +382,10 @@ "Up to date": "Up to date", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version behind", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions behind", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Back to App", "Installation": "Installation", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", "Archived by {{userName}}": "Archived by {{userName}}", "Share": "שיתוף", + "Overview": "Overview", "Recently updated": "Recently updated", "Recently published": "Recently published", "Least recently updated": "Least recently updated", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", @@ -1138,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 a91cfbb679..44d347da86 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -36,6 +36,7 @@ "Development": "Fejlesztés", "Open document": "Dokumentum megnyitása", "New document": "Új dokumentum", + "New draft": "New draft", "New from template": "Új, sablonból", "New nested document": "Új beágyozott dokumentum", "Publish": "Közzétesz", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Ezen felül a(z) {{collectionName}} gyűjtemény nyitólapként van beállítva – a törlése visszaállítja a nyitólapot is az eredetire.", "Sorry, an error occurred saving the collection": "Sajnálom, valami hiba merült fel a gyűjtemény mentése közben", "Add a description": "Adja meg a leírást", - "Collapse": "Összezárás", - "Expand": "Kinyitás", "Type a command or search": "Írjon be egy parancsot vagy keresést", "Choose a template": "Válasszon egy sablont", "Are you sure you want to permanently delete this entire comment thread?": "Biztos benne, hogy véglegesen törölni szeretné az egész hozzászólás szálat?", @@ -178,6 +177,7 @@ "view and edit access": "view and edit access", "view only access": "view only access", "no access": "nincs hozzáférés", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Dokumentum áthelyezése", "Moving": "Moving", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Alapértelmezett gyűjtemény", "Install now": "Telepítés most", "Deleted Collection": "Törölt gyűjtemény", + "Untitled": "Névtelen", "Unpin": "Feloldás", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Keresés a gyűteményekben és dokumentumokban", "No results found": "Nincs találat", - "Untitled": "Névtelen", "New": "Új", "Only visible to you": "Csak az Ön számára látható", "Draft": "Piszkozat", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logó", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Új doku", - "You can't reorder documents in an alphabetically sorted collection": "Nem tudja egy ABC szerint rendezett gyűjtemény elemeinek sorrendjét megváltoztatni", "Empty": "Üres", "Collections": "Gyűjtemények", + "Collapse": "Összezárás", + "Expand": "Kinyitás", "Document not supported – try Markdown, Plain text, HTML, or Word": "Ez a dokumentum nem támogatott – próbáljon Markdown, egyszerű szöveg, HTML vagy Word formátumot", "Go back": "Ugrás vissza", "Go forward": "Előrelépés", @@ -382,6 +382,10 @@ "Up to date": "Naprakész", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} verzióval régebbi", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} verzióval régebbi", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Nem tudja egy ABC szerint rendezett gyűjtemény elemeinek sorrendjét megváltoztatni", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Vissza az alkalmazáshoz", "Installation": "Telepítés", "Unstar document": "Dokumentum csillagozásának törlése", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} csoport rendelkezik hozzáféréssel", "Archived by {{userName}}": "Archiválta: {{userName}}", "Share": "Megosztás", + "Overview": "Overview", "Recently updated": "Nemrég módosítva", "Recently published": "Nemrég publikálva", "Least recently updated": "Legrégebben módosított", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Veszély", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", @@ -1138,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 0292944d12..5554aee9a1 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -36,6 +36,7 @@ "Development": "Pengembangan", "Open document": "Buka dokumen", "New document": "Dokumen baru", + "New draft": "New draft", "New from template": "Baru dari templat", "New nested document": "Buat dokumen bercabang", "Publish": "Terbitkan", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Dan, {{collectionName}} digunakan sebagai tampilan awal – menghapusnya akan mengatur ulang tampilan awal ke halaman Beranda.", "Sorry, an error occurred saving the collection": "Maaf, terjadi kesalahan saat menyimpan koleksi", "Add a description": "Tambahkan keterangan", - "Collapse": "Persingkat", - "Expand": "Perlengkap", "Type a command or search": "Ketik perintah atau penelusuran", "Choose a template": "Pilih templat", "Are you sure you want to permanently delete this entire comment thread?": "Apakah Anda yakin ingin menghapus semua komentar ini secara permanen?", @@ -178,6 +177,7 @@ "view and edit access": "melihat dan mengedit akses", "view only access": "akses hanya melihat", "no access": "tidak ada akses", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Pindahkan dokumen", "Moving": "Memindahkan", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Koleksi bawaan", "Install now": "Pasang sekarang", "Deleted Collection": "Koleksi Dihapus", + "Untitled": "Tak Berjudul", "Unpin": "Unpin", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Telusuri koleksi & dokumen", "No results found": "Tak ditemukan hasil", - "Untitled": "Tak Berjudul", "New": "Baru", "Only visible to you": "Hanya terlihat untuk Anda", "Draft": "Draf", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Dokumen baru", - "You can't reorder documents in an alphabetically sorted collection": "Anda tidak dapat menyusun ulang dokumen dalam koleksi yang diurutkan menurut abjad", "Empty": "Kosong", "Collections": "Koleksi", + "Collapse": "Persingkat", + "Expand": "Perlengkap", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokumen tidak didukung – coba Markdown, teks biasa, HTML, atau Word", "Go back": "Kembali", "Go forward": "Ke berikutnya", @@ -382,6 +382,10 @@ "Up to date": "Mutakhir", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versi di belakang", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versi di belakang", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Anda tidak dapat menyusun ulang dokumen dalam koleksi yang diurutkan menurut abjad", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Kembali ke Aplikasi", "Installation": "Pemasangan", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grup dengan akses", "Archived by {{userName}}": "Diarsipkan oleh {{userName}}", "Share": "Bagikan", + "Overview": "Overview", "Recently updated": "Baru diperbarui", "Recently published": "Baru diterbitkan", "Least recently updated": "Baru-baru ini diperbarui", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Ekspor data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Ekspor penuh mungkin memakan waktu lama, pertimbangkan untuk mengekspor satu dokumen atau koleksi. Data yang diekspor adalah zip dokumen Anda dalam format Markdown. Anda dapat meninggalkan laman ini setelah ekspor dimulai – jika Anda telah mengaktifkan pemberitahuan, kami akan mengirimkan tautan melalui email ke {{ userEmail }} setelah selesai.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Ekspor terbaru", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Kelola fitur opsional dan beta. Mengubah pengaturan ini akan memengaruhi pengalaman semua anggota workspace.", "Separate editing": "Separate editing", @@ -1138,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 4c01170e7f..cbaeec5736 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -36,6 +36,7 @@ "Development": "Sviluppo", "Open document": "Apri documento", "New document": "Nuovo documento", + "New draft": "New draft", "New from template": "Nuovo da template", "New nested document": "Nuovo documento annidato", "Publish": "Pubblica", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "{{collectionName}} è anche usata come schermata iniziale - eliminarla comporterebbe il reset della schermata iniziale alla pagina Home.", "Sorry, an error occurred saving the collection": "Spiacenti, si è verificato un errore durante il salvataggio della raccolta", "Add a description": "Aggiungi una descrizione", - "Collapse": "Raggruppa", - "Expand": "Espandi", "Type a command or search": "Digita un comando o cerca", "Choose a template": "Choose a template", "Are you sure you want to permanently delete this entire comment thread?": "Sei sicuro di voler eliminare definitivamente l'intero thread di commenti?", @@ -178,6 +177,7 @@ "view and edit access": "lettura e scrittura", "view only access": "sola lettura", "no access": "nessun accesso", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Sposta il documento", "Moving": "Spostamento", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Spostare il documento {{ title }} alla raccolta {{ newCollectionName }} cambierà i permessi per tutti i membri dello spazio di lavoro da {{ prevPermission }} a {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Raccolta predefinita", "Install now": "Install now", "Deleted Collection": "Raccolte Eliminate", + "Untitled": "Senza titolo", "Unpin": "Rimuovi contrassegno", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Cerca raccolte e documenti", "No results found": "Nessun risultato trovato", - "Untitled": "Senza titolo", "New": "Nuovo", "Only visible to you": "Visibile solo a te", "Draft": "Bozza", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Nuovo documento", - "You can't reorder documents in an alphabetically sorted collection": "Non è possibile riordinare i documenti in una raccolta ordinata alfabeticamente", "Empty": "Vuoto", "Collections": "Raccolta", + "Collapse": "Raggruppa", + "Expand": "Espandi", "Document not supported – try Markdown, Plain text, HTML, or Word": "Documento non supportato – prova Markdown, testo semplice, HTML o Word", "Go back": "Torna indietro", "Go forward": "Vai avanti", @@ -382,6 +382,10 @@ "Up to date": "Aggiornato", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versione indietro", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versioni indietro", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Non è possibile riordinare i documenti in una raccolta ordinata alfabeticamente", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Torna all'applicazione", "Installation": "Installazione", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} gruppi con accesso", "Archived by {{userName}}": "Archiviato da {{userName}}", "Share": "Condividi", + "Overview": "Overview", "Recently updated": "Aggiornati di recente", "Recently published": "Pubblicati di recente", "Least recently updated": "Aggiornati meno recentemente", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Esporta dati", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Un'esportazione completa potrebbe richiedere del tempo, prendi in considerazione l'esportazione di un singolo documento o raccolta. I dati esportati sono un zip dei tuoi documenti in formato Markdown. Puoi lasciare questa pagina una volta iniziata l'esportazione: se hai abilitato le notifiche, ti invieremo un link via email a {{ userEmail }} al termine dell'operazione.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Esportazioni recenti", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gestisci le funzionalità opzionali e beta. La modifica di queste impostazioni influirà sull'esperienza di tutti i membri dell'area di lavoro.", "Separate editing": "Separate editing", @@ -1138,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 d6ebad9292..6d524fed0e 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -36,6 +36,7 @@ "Development": "開発者メニュー", "Open document": "ドキュメントを開く", "New document": "ドキュメントを作成", + "New draft": "New draft", "New from template": "テンプレートから作成", "New nested document": "このページにドキュメントを作成", "Publish": "公開", @@ -95,8 +96,8 @@ "Disable viewer insights": "ビューアインサイトを無効にする", "Enable viewer insights": "ビューアインサイトを有効にする", "Leave document": "ドキュメントから退出する", - "You have left the shared document": "You have left the shared document", - "Could not leave document": "Could not leave document", + "You have left the shared document": "共有ドキュメントから退出しました", + "Could not leave document": "ドキュメントから退出することができませんでした", "Home": "ホーム", "Drafts": "下書き", "Trash": "ゴミ箱", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "また、{{collectionName}} がホームページとして使用されています – これを削除すると、ホームページはデフォルトのオプションにリセットされます。", "Sorry, an error occurred saving the collection": "コレクションの保存中にエラーが発生しました", "Add a description": "説明文を追加", - "Collapse": "折りたたむ", - "Expand": "展開", "Type a command or search": "コマンドを入力または検索", "Choose a template": "テンプレートを選択", "Are you sure you want to permanently delete this entire comment thread?": "このコメントのスレッド全体を完全に削除してもよろしいですか?", @@ -178,6 +177,7 @@ "view and edit access": "閲覧と編集", "view only access": "閲覧専用", "no access": "アクセス不可", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "{{ documentName }} を {{ collectionName }} コレクションに移動する権限がありません", "Move document": "ドキュメントを移動", "Moving": "移動中", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "ドキュメント {{ title }} を {{ newCollectionName }} コレクションに移動すると、 {{ prevPermission }} から {{ newPermission }} へのすべてのワークスペースメンバーの権限が変更されます。", @@ -196,16 +196,16 @@ "Default collection": "デフォルトコレクション", "Install now": "インストールしています", "Deleted Collection": "削除したコレクション", + "Untitled": "無題のドキュメント", "Unpin": "ピン留めを外す", - "{{ minutes }}m read": "{{ minutes }}m read", - "Select a location to copy": "Select a location to copy", - "Document copied": "Document copied", - "Couldn’t copy the document, try again?": "Couldn’t copy the document, try again?", + "{{ minutes }}m read": "{{ minutes }} ", + "Select a location to copy": "コピー先を選択してください", + "Document copied": "ドキュメントがコピーされました", + "Couldn’t copy the document, try again?": "ドキュメントをコピーできませんでした。もう一度お試しください。", "Include nested documents": "子ドキュメントを含める", - "Copy to {{ location }}": "Copy to {{ location }}", + "Copy to {{ location }}": "{{ location }} にコピーする", "Search collections & documents": "ドキュメントやコレクションを検索する", "No results found": "なにも見つかりませんでした", - "Untitled": "無題のドキュメント", "New": "新規作成", "Only visible to you": "あなたにのみ表示されます", "Draft": "下書き", @@ -304,12 +304,12 @@ "Unknown": "不明", "Mark all as read": "全て既読にする", "You're all caught up": "全て確認済み", - "{{ username }} reacted with {{ emoji }}": "{{ username }} reacted with {{ emoji }}", - "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}", - "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }} and {{ count }} other reacted with {{ emoji }}", - "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}", - "Add reaction": "Add reaction", - "Reaction picker": "Reaction picker", + "{{ username }} reacted with {{ emoji }}": "{{ username }} が {{ emoji }} でリアクション", + "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} と {{ secondUsername }} が {{ emoji }} でリアクション", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }}と他{{ count }}人が{{ emoji }}で反応した", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }}と他{{ count }}人が{{ emoji }}で反応した", + "Add reaction": "リアクションを追加", + "Reaction picker": "リアクションピッカー", "Could not load reactions": "リアクションを読み込めません", "Reaction": "リアクション", "Results": "検索結果", @@ -356,8 +356,8 @@ "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "親ドキュメント <2>{{documentTitle}} が共有されているため、リンクを持っている人は誰でもアクセスできます", "Allow anyone with the link to access": "リンクを持っている誰もがアクセス可能", "Publish to internet": "インターネットに公開する", - "Search engine indexing": "Search engine indexing", - "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", + "Search engine indexing": "検索エンジンのインデックス", + "Disable this setting to discourage search engines from indexing the page": "この設定を無効にすると、検索エンジンのインデックス化を防ぐことができます", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "子ドキュメントは Web で共有されません\nアクセスを有効にするためには共有を切り替えてください\nこれは今後のデフォルトとなります", "{{ userName }} was added to the document": "{{ userName }} をドキュメントに追加しました", "{{ count }} people added to the document": "{{ count }} 人をドキュメントに追加しました", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} グループをドキュメントに追加しました", "Logo": "ロゴ", "Archived collections": "アーカイブされたコレクション", - "Change permissions?": "権限を変更しますか?", "New doc": "ドキュメントを新規作成", - "You can't reorder documents in an alphabetically sorted collection": "五十音順で並べられたコレクション内のドキュメントは、並べ替えができません。", "Empty": "空", "Collections": "コレクション", + "Collapse": "折りたたむ", + "Expand": "展開", "Document not supported – try Markdown, Plain text, HTML, or Word": "ドキュメントはサポートされていません。\nMarkdown、プレーンテキスト、HTML、または Word をお試しください。", "Go back": "戻る", "Go forward": "進む", @@ -382,6 +382,10 @@ "Up to date": "最新の状態", "{{ releasesBehind }} versions behind": "最新版から {{ releasesBehind }} バージョン遅れています", "{{ releasesBehind }} versions behind_plural": "最新版から {{ releasesBehind }} バージョン遅れています", + "Change permissions?": "権限を変更しますか?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} は {{ parentDocumentName }} 以内には移動できません", + "You can't reorder documents in an alphabetically sorted collection": "五十音順で並べられたコレクション内のドキュメントは、並べ替えができません。", + "The {{ documentName }} cannot be moved here": "{{ documentName }} はここに移動できません", "Return to App": "アプリに戻る", "Installation": "インストール", "Unstar document": "お気に入りから削除", @@ -400,12 +404,12 @@ "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "{{ userName }} を凍結してもよろしいですか? \nこれによりユーザーはログインできなくなります。", "New name": "新しい名前", "Name can't be empty": "名前を空にすることはできません", - "Check your email to verify the new address.": "Check your email to verify the new address.", - "The email will be changed once verified.": "The email will be changed once verified.", - "You will receive an email to verify your new address. It must be unique in the workspace.": "You will receive an email to verify your new address. It must be unique in the workspace.", - "A confirmation email will be sent to the new address before it is changed.": "A confirmation email will be sent to the new address before it is changed.", - "New email": "New email", - "Email can't be empty": "Email can't be empty", + "Check your email to verify the new address.": "新しいアドレスを確認するためにメールを確認してください。", + "The email will be changed once verified.": "確認後、メールアドレスは変更されます。", + "You will receive an email to verify your new address. It must be unique in the workspace.": "新しいアドレスを確認するためのメールが届きます。ワークスペース内で同じアドレスである必要があります。", + "A confirmation email will be sent to the new address before it is changed.": "変更される前に新しいアドレスに確認メールが送信されます。", + "New email": "新しいメールアドレス", + "Email can't be empty": "メールアドレスを入力してください", "Your import completed": "インポートが完了しました", "Previous match": "前の一致", "Next match": "次の一致", @@ -420,8 +424,8 @@ "Profile picture": "プロフィール画像", "Create a new doc": "ドキュメントを作成", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} はこのドキュメントへのアクセス権限がないため、通知されません", - "Keep as link": "Keep as link", - "Embed": "Embed", + "Keep as link": "リンクとして保持", + "Embed": "埋め込み", "Add column after": "後ろに列を挿入", "Add column before": "前に列を挿入", "Add row after": "後ろに行を挿入", @@ -450,7 +454,7 @@ "Italic": "斜体", "Sorry, that link won’t work for this embed type": "この埋め込みではリンクが機能しません", "File attachment": "ファイル添付", - "Enter a link": "Enter a link", + "Enter a link": "リンクを入力", "Big heading": "見出し1", "Medium heading": "見出し2", "Small heading": "見出し3", @@ -503,7 +507,7 @@ "Could not import file": "ファイルをインポートできませんでした", "Unsubscribed from document": "ドキュメントの通知を解除しました", "Account": "アカウント", - "API Keys": "API Keys", + "API Keys": "APIキー", "Details": "詳細情報", "Security": "セキュリティ", "Features": "機能", @@ -550,7 +554,7 @@ "Headings you add to the document will appear here": "ドキュメントに追加した見出しがここに表示されます", "Table of contents": "目次", "Change name": "名前を変更", - "Change email": "Change email", + "Change email": "メールアドレスを変更する", "Suspend user": "ユーザーを凍結", "An error occurred while sending the invite": "招待を送信中にエラーが発生しました", "User options": "ユーザーオプション", @@ -565,13 +569,13 @@ "created the collection": "コレクションを作成しました", "mentioned you in": "あなたがメンションされました", "left a comment on": "がコメントを残しました", - "resolved a comment on": "resolved a comment on", + "resolved a comment on": "コメントを解決しました:", "shared": "共有済み", "invited you to": "あなたを招待しました", "Choose a date": "日付を選択", "API key created. Please copy the value now as it will not be shown again.": "API キーが作成されました。再度表示されないため、今すぐ値をコピーしてください。", - "Scopes": "Scopes", - "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access", + "Scopes": "スコープ", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "スペースで区切られたスコープは、この API キーのアクセスを特定の部分に制限します。フルアクセスするには空白のままにしてください。", "Expiration": "有効期限", "Never expires": "無期限", "7 days": "7日", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "アクセス権を持つ {{ groupsCount }} 個のグループ", "Archived by {{userName}}": "{{userName}} がアーカイブしました", "Share": "共有", + "Overview": "概要", "Recently updated": "更新日の新しい順", "Recently published": "最近公開されたもの", "Least recently updated": "更新日の古い順", @@ -614,8 +619,8 @@ "Most recent": "最新", "Order in doc": "ドキュメント内の順序", "Resolved": "解決済み", - "Show {{ count }} reply": "Show {{ count }} reply", - "Show {{ count }} reply_plural": "Show {{ count }} replies", + "Show {{ count }} reply": "{{ count }} 件の返信を表示", + "Show {{ count }} reply_plural": "{{ count }} 件の返信を表示", "Error updating comment": "コメントの更新中にエラーが発生しました", "Document restored": "ドキュメントが復元されました", "Images are still uploading.\nAre you sure you want to discard them?": "画像はまだアップロード中です\nこの操作を取り消しますか?", @@ -763,10 +768,10 @@ "LaTeX block": "LaTeX ブロック", "Inline code": "インラインコード", "Inline LaTeX": "インライン LaTeX", - "Triggers": "Triggers", - "Mention user or document": "Mention user or document", - "Emoji": "Emoji", - "Insert block": "Insert block", + "Triggers": "トリガー", + "Mention users and more": "ユーザーまたはドキュメントにメンション", + "Emoji": "絵文字", + "Insert block": "ブロックの挿入", "Sign In": "ログイン", "Continue with Email": "Eメール でログイン", "Continue with {{ authProviderName }}": "{{ authProviderName }} でログイン", @@ -790,7 +795,7 @@ "This workspace has been suspended. Please contact support to restore access.": "このワークスペースは凍結されています。アクセスを復元するにはサポートにお問い合わせください。", "Authentication failed – this login method was disabled by a team 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.": "アカウントを作成するには、参加しようとしているワークスペースの招待が必要です。 <1>ワークスペース管理者に招待をリクエストしてから、もう一度お試しください。", - "Sorry, an unknown error occurred.": "Sorry, an unknown error occurred.", + "Sorry, an unknown error occurred.": "申し訳ありません、不明なエラーが発生しました。", "Login": "ログイン", "Error": "エラー", "Failed to load configuration.": "構成の読み込みに失敗しました", @@ -825,11 +830,11 @@ "Please try again or contact support if the problem persists": "問題が解決しない場合は、もう一度やり直すか、サポートにお問い合わせください", "No documents found for your search filters.": "検索条件に該当するドキュメントは見つかりませんでした", "API": "API", - "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", - "by {{ name }}": "by {{ name }}", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API キーを使用すると、API で認証し、\n ワークスペースのデータをプログラムで制御できます。詳細については、開発者向けドキュメントを参照してください。", + "by {{ name }}": "{{ name }}", "Last used": "最終使用日", "No expiry": "無期限", - "Restricted scope": "Restricted scope", + "Restricted scope": "制限付きスコープ", "API key copied to clipboard": "API キーをクリップボードにコピーしました", "Copied": "コピーしました", "Revoking": "無効化しています", @@ -878,7 +883,7 @@ "Search people": "メンバーを検索", "No people matching your search": "検索に一致する人は見つかりませんでした", "No people left to add": "追加できる人は存在しません", - "Date created": "Date created", + "Date created": "作成日時", "Upload": "アップロード", "How does this work?": "これはどのように機能しますか?", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export Data.": "以前にエクスポートした zip ファイルをインポートできます。 {{ appName }} で、サイドバーの エクスポート画面 を開き、 データのエクスポート をクリックします。", @@ -928,7 +933,7 @@ "Danger": "危険", "You can delete this entire workspace including collections, documents, and users.": "コレクション、ドキュメント、およびユーザーを含むワークスペース全体を削除できます。", "Export data": "データのエクスポート", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "完全なデータをエクスポートするには、時間がかかることがあります。代わりに、単一のドキュメントまたはコレクションをエクスポートすることを検討してください。データのエクスポートは、すべてのドキュメントを Markdown 形式を含む Zip ファイルになります。処理が開始された後、このウェブページを閉じることができます。通知を有効にした場合、エクスポートが完了すると、Url が {{ userEmail }} にメールされます。", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "最近のエクスポート", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "オプション機能とベータ機能を管理します。これらの設定を変更すると、ワークスペースの全てのメンバーのエクスペリエンスに影響します。", "Separate editing": "閲覧モードで開く", @@ -936,7 +941,7 @@ "Commenting": "コメントの追加", "When enabled team members can add comments to documents.": "有効にすると、チームメンバーはドキュメントにコメントを追加できます。", "Create a group": "グループを作成", - "Could not load groups": "Could not load groups", + "Could not load groups": "グループを読み込めませんでした", "New group": "新規グループ", "Groups can be used to organize and manage the people on your team.": "グループを使用して、チームのメンバーを整理および管理できます。", "No groups have been created yet": "グループはまだ作成されていません", @@ -948,7 +953,7 @@ "Import pages from a Confluence instance": "Confluence からページをインポートする", "Enterprise": "エンタープライズ", "Recent imports": "最近のインポート", - "Could not load members": "Could not load members", + "Could not load members": "メンバーを読み込めませんでした", "Everyone that has signed into {{appName}} is listed here. It’s possible that there are other users who have access through {{signinMethods}} but haven’t signed in yet.": "{{appName}} にログインした全員が表示されます。\n{{signinMethods}} でアクセスできるものの、まだログインしていないユーザーが他にもいる可能性があります。", "Receive a notification whenever a new document is published": "新しいドキュメントが公開されたときに通知を受け取る", "Document updated": "ドキュメントの更新", @@ -957,7 +962,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "通知を有効にしているドキュメントや参加したスレッドにコメントされたときに通知を受け取る", "Mentioned": "メンション", "Receive a notification when someone mentions you in a document or comment": "誰かがあなたをドキュメントやコメントでメンションしたときに通知を受け取る", - "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", + "Receive a notification when a comment thread you were involved in is resolved": "参加したコメントスレッドが解決されたときに通知を受け取る", "Collection created": "コレクションが作成されました", "Receive a notification whenever a new collection is created": "新しいコレクションが作成されたときに通知を受け取る", "Invite accepted": "招待が承認されました", @@ -991,8 +996,8 @@ "When enabled, documents have a separate editing mode. When disabled, documents are always editable when you have permission.": "有効にすると、ドキュメントは編集のできない閲覧モードで開かれます。編集をするには、画面上部の編集ボタンを押す必要があります。\n無効にすると、許可がある場合は常に編集できる状態で開かれます。", "Remember previous location": "前回開いていた場所を記憶する", "Automatically return to the document you were last viewing when the app is re-opened.": "アプリを再度開いたときに、最後に表示していたドキュメントを自動的に表示します。", - "Smart text replacements": "Smart text replacements", - "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.", + "Smart text replacements": "スマートテキストの置換", + "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "ショートカットをシンボル、ダッシュ、スマート引用符、その他の組版要素に置き換えることでテキストを自動的に書式設定します。", "You may delete your account at any time, note that this is unrecoverable": "アカウントはいつでも削除することができます。これは取り返しのつかないことです。", "Profile saved": "プロフィールを保存しました", "Profile picture updated": "プロフィール画像の更新に成功しました", @@ -1031,7 +1036,7 @@ "Add your self-hosted draw.io installation url here to enable automatic embedding of diagrams within documents.": "セルフホストの draw.io URLを追加して、ドキュメント内の図の自動埋め込みを有効にします。", "Grist deployment": "Grist", "Add your self-hosted grist installation URL here.": "セルフホストしている Grist の URL をここに追加してください。", - "Could not load shares": "Could not load shares", + "Could not load shares": "共有を読み込めませんでした", "Sharing is currently disabled.": "共有は現在無効になっています", "You can globally enable and disable public document sharing in the security settings.": "セキュリティ設定 で公開ドキュメントの共有をグローバルに有効/無効にすることができます。", "Documents that have been shared are listed below. Anyone that has the public link can access a read-only version of the document until the link has been revoked.": "共有済みのドキュメントは以下のとおりです。\n公開リンクを知っている人は誰でも、リンクが無効になるまでドキュメントの読み取り専用バージョンにアクセスできます。", @@ -1138,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 f1fad92894..7b0c2532db 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -36,6 +36,7 @@ "Development": "개발", "Open document": "문서 열기", "New document": "새 문서", + "New draft": "New draft", "New from template": "새 템플릿 문서", "New nested document": "새 하위 문서", "Publish": "게시하기", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "또한 {{collectionName}} 는(은) 초기 화면으로 사용 중입니다. 삭제하면 초기 화면이 홈 페이지로 재설정됩니다.", "Sorry, an error occurred saving the collection": "컬렉션을 저장하는 중에 오류가 발생했습니다.", "Add a description": "설명 추가", - "Collapse": "감추기", - "Expand": "펼치기", "Type a command or search": "명령어를 입력하거나 검색", "Choose a template": "템플릿 선택", "Are you sure you want to permanently delete this entire comment thread?": "이 쓰레드에 있는 댓글들을 영구적으로 삭제하시겠습니까?", @@ -178,6 +177,7 @@ "view and edit access": "보기 및 편집 액세스", "view only access": "보기 전용 액세스", "no access": "접근 불가", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "문서 이동", "Moving": "이동 중", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "기본 컬렉션", "Install now": "지금 설치", "Deleted Collection": "삭제 된 콜렉션", + "Untitled": "제목없음", "Unpin": "고정 해제", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "복사할 위치 선택\n", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "컬렉션 및 문서 검색", "No results found": "결과가 없습니다.", - "Untitled": "제목없음", "New": "신규", "Only visible to you": "나에게만 보임", "Draft": "임시보관", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "로고", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "새 문서", - "You can't reorder documents in an alphabetically sorted collection": "알파벳순으로 정렬된 컬렉션에서는 문서를 재정렬할 수 없습니다.", "Empty": "비어 있음", "Collections": "컬렉션", + "Collapse": "감추기", + "Expand": "펼치기", "Document not supported – try Markdown, Plain text, HTML, or Word": "이 문서는 지원되지 않습니다 – Markdown, Plain Text, HTML이나 Word를 이용해주세요", "Go back": "돌아가기", "Go forward": "앞으로 가기", @@ -382,6 +382,10 @@ "Up to date": "최신 상태", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} 이전 버전", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} 이전 버전", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "알파벳순으로 정렬된 컬렉션에서는 문서를 재정렬할 수 없습니다.", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "앱으로 돌아가기", "Installation": "설치", "Unstar document": "문서 별표 해제", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "액세스 권한이 있는 그룹 {{ groupsCount }} 개", "Archived by {{userName}}": "{{userName}} 에 의해 보관됨", "Share": "공유하기", + "Overview": "Overview", "Recently updated": "최근 업데이트 순", "Recently published": "최근 게시 순", "Least recently updated": "오래된 순", @@ -764,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": "로그인", @@ -928,7 +933,7 @@ "Danger": "위험", "You can delete this entire workspace including collections, documents, and users.": "컬렉션, 문서, 사용자를 포함한 전체 워크스페이스를 삭제할 수 있습니다.", "Export data": "데이터 내보내기", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "전체 내보내기에는 시간이 걸릴 수 있습니다. 단일 문서 또는 컬렉션 내보내기를 고려하세요. 내보낸 데이터는 Markdown 형식의 문서 압축입니다. 내보내기가 시작되면 이 페이지를 떠날 수 있습니다. 만약 알림을 활성화한 경우라면, 작업 완료 후 {{ userEmail }} 이메일로 링크가 전송됩니다.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "최근 내보내기", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "선택적 기능 및 실험적 기능을 관리합니다. 이 설정을 변경하면 워크스페이스에 모든 멤버에게 영향을 미칩니다.", "Separate editing": "분할 편집", @@ -936,7 +941,7 @@ "Commenting": "댓글 달기", "When enabled team members can add comments to documents.": "활성화되면 팀 구성원이 문서에 댓글을 달 수 있습니다.", "Create a group": "그룹 만들기", - "Could not load groups": "Could not load groups", + "Could not load groups": "그룹을 불러올 수 없습니다", "New group": "그룹 만들기", "Groups can be used to organize and manage the people on your team.": "그룹을 사용하여 팀의 사용자들을 구성하고 관리할 수 있습니다.", "No groups have been created yet": "아직 생성 된 그룹이 없습니다", @@ -948,7 +953,7 @@ "Import pages from a Confluence instance": "Confluence 인스턴스에서 페이지 가져오기", "Enterprise": "엔터프라이즈", "Recent imports": "최근에 가져온", - "Could not load members": "Could not load members", + "Could not load members": "멤버를 불러올 수 없습니다", "Everyone that has signed into {{appName}} is listed here. It’s possible that there are other users who have access through {{signinMethods}} but haven’t signed in yet.": "{{appName}} 에 로그인한 모든 사람이 여기에 나열됩니다. {{signinMethods}} 을(를) 통해 접근한 비로그인 사용자가 있을 수 있습니다.", "Receive a notification whenever a new document is published": "새 문서가 게시될 때마다 알림을 받습니다", "Document updated": "문서 업데이트됨", @@ -1138,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 dfb5137f80..3bc7a8c65d 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -36,6 +36,7 @@ "Development": "Utvikling", "Open document": "Åpne dokument", "New document": "Nytt dokument", + "New draft": "Nytt utkast", "New from template": "Ny fra mal", "New nested document": "Nytt underdokument", "Publish": "Publiser", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "{{collectionName}} brukes som startvisning – å slette den vil tilbakestille startvisningen til hjemmesiden.", "Sorry, an error occurred saving the collection": "Beklager, det oppstod en feil ved lagring av samlingen", "Add a description": "Legg til en beskrivelse", - "Collapse": "Kollaps", - "Expand": "Utvid", "Type a command or search": "Skriv en kommando eller søk", "Choose a template": "Velg en mal", "Are you sure you want to permanently delete this entire comment thread?": "Er du sikker på at du vil slette hele kommentartråden permanent?", @@ -178,6 +177,7 @@ "view and edit access": "vis og rediger tilgang", "view only access": "kun visningstilgang", "no access": "ingen tilgang", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "Du har ikke tillatelse til å flytte {{ documentName }} til samlingen {{ collectionName }}", "Move document": "Flytt dokument", "Moving": "Flytter", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Ved å flytte dokumentet {{ title }} til samlingen {{ newCollectionName }}, vil tilgangen endres for alle brukere i arbeidsområdet fra {{ prevPermission }} til {{ newPermission }}.", @@ -196,8 +196,9 @@ "Default collection": "Standard samling", "Install now": "Installer nå", "Deleted Collection": "Slettet samling", + "Untitled": "Uten tittel", "Unpin": "Løsne", - "{{ minutes }}m read": "{{ minutes }}m read", + "{{ minutes }}m read": "{{ minutes }} min. lesetid", "Select a location to copy": "Velg en plassering å kopiere", "Document copied": "Dokument kopiert", "Couldn’t copy the document, try again?": "Kunne ikke kopiere dokumentet, prøv igjen?", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Kopier til {{ location }}", "Search collections & documents": "Søk i samlinger og dokumenter", "No results found": "Ingen resultater funnet", - "Untitled": "Uten tittel", "New": "Ny", "Only visible to you": "Bare synlig for deg", "Draft": "Utkast", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} grupper er lagt til i dokumentene", "Logo": "Logo", "Archived collections": "Arkiverte samlinger", - "Change permissions?": "Endre tillatelser?", "New doc": "Nytt dokument", - "You can't reorder documents in an alphabetically sorted collection": "Du kan ikke omorganisere dokumenter i en alfabetisk sortert samling", "Empty": "Tom", "Collections": "Samlinger", + "Collapse": "Kollaps", + "Expand": "Utvid", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokument ikke støttet – prøv Markdown, ren tekst, HTML eller Word", "Go back": "Gå tilbake", "Go forward": "Gå frem", @@ -382,6 +382,10 @@ "Up to date": "Oppdatert", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} ny versjon tilgjengelig", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} nye versjoner tilgjengelig", + "Change permissions?": "Endre tillatelser?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} kan ikke flyttes i {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Du kan ikke omorganisere dokumenter i en alfabetisk sortert samling", + "The {{ documentName }} cannot be moved here": "{{ documentName }} kan ikke flyttes hit", "Return to App": "Tilbake til appen", "Installation": "Installasjon", "Unstar document": "Fjern stjerne fra dokument", @@ -420,8 +424,8 @@ "Profile picture": "Profilbilde", "Create a new doc": "Lag et nytt dokument", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} vil ikke bli varslet, da de ikke har tilgang til dette dokumentet", - "Keep as link": "Keep as link", - "Embed": "Embed", + "Keep as link": "Behold som lenke", + "Embed": "Bygg inn", "Add column after": "Legg til kolonne etter", "Add column before": "Sett inn kolonne før", "Add row after": "Legg til rad etter", @@ -571,7 +575,7 @@ "Choose a date": "Velg en dato", "API key created. Please copy the value now as it will not be shown again.": "API-nøkkel opprettet. Kopier verdien nå, da den ikke vil bli vist igjen.", "Scopes": "Scopes", - "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Scopes separert med mellomrom begrenser tilgangen til denne API-nøkkelen til spesifikke deler av API-et. La stå tomt for full tilgang", "Expiration": "Utløper", "Never expires": "Utløper aldri", "7 days": "7 dager", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupper med tilgang", "Archived by {{userName}}": "Arkivert av {{userName}}", "Share": "Del", + "Overview": "Oversikt", "Recently updated": "Nylig oppdatert", "Recently published": "Nylig publisert", "Least recently updated": "Minst nylig oppdatert", @@ -763,10 +768,10 @@ "LaTeX block": "LaTeX-blokk", "Inline code": "Innebygd kode", "Inline LaTeX": "Innebygd LaTeX", - "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Triggers": "Utløsere", + "Mention users and more": "Nevn bruker eller dokument", "Emoji": "Emoji", - "Insert block": "Insert block", + "Insert block": "Sett inn blokk", "Sign In": "Logg inn", "Continue with Email": "Fortsett med e-post", "Continue with {{ authProviderName }}": "Fortsett med {{ authProviderName }}", @@ -829,7 +834,7 @@ "by {{ name }}": "av {{ name }}", "Last used": "Sist brukt", "No expiry": "Ingen utløpsdato", - "Restricted scope": "Restricted scope", + "Restricted scope": "Begrenset scope", "API key copied to clipboard": "API-nøkkel kopiert til utklippstavlen", "Copied": "Kopiert", "Revoking": "Tilbakekaller", @@ -928,7 +933,7 @@ "Danger": "Fare", "You can delete this entire workspace including collections, documents, and users.": "Du kan slette hele dette arbeidsområdet, inkludert samlinger, dokumenter og brukere.", "Export data": "Eksporter data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "En fullstendig eksport kan ta litt tid, vurder å eksportere et enkelt dokument eller en samling. Eksporterte data er en zip av dokumentene dine i Markdown-format. Du kan forlate denne siden så snart eksporten har startet – hvis du har varsler aktivert, vil vi sende en e-post med en lenke til {{ userEmail }} når den er fullført.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "En full eksport kan ta litt tid, vurder å eksportere et enkelt dokument eller en samling. Du kan forlate denne siden når eksporten har startet – hvis du har aktivert varsler, vil vi sende en lenke på e-post til {{ userEmail }} når den er ferdig.", "Recent exports": "Nylige eksporter", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Administrer valgfrie og beta-funksjoner. Å endre disse innstillingene vil påvirke opplevelsen for alle medlemmer av arbeidsområdet.", "Separate editing": "Separat redigering", @@ -1138,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 9132299f34..f0f55065c5 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -3,8 +3,8 @@ "Open collection": "Open collectie", "New collection": "Nieuwe collectie", "Create a collection": "Maak een collectie", - "Edit": "Bewerk", - "Edit collection": "Collectie bewerken", + "Edit": "Wijzig", + "Edit collection": "Wijzig collectie", "Permissions": "Rechten", "Collection permissions": "Verzamelingsrechten", "Share this collection": "Deel deze collectie", @@ -36,6 +36,7 @@ "Development": "Ontwikkeling", "Open document": "Open document", "New document": "Nieuw document", + "New draft": "New draft", "New from template": "Nieuw op basis van sjabloon", "New nested document": "Nieuw genest document", "Publish": "Publiceer", @@ -94,7 +95,7 @@ "Insights": "Inzichten", "Disable viewer insights": "Disable viewer insights", "Enable viewer insights": "Enable viewer insights", - "Leave document": "Leave document", + "Leave document": "Verlaat document", "You have left the shared document": "You have left the shared document", "Could not leave document": "Could not leave document", "Home": "Startscherm", @@ -115,7 +116,7 @@ "Download {{ platform }} app": "Download {{ platform }}-app", "Log out": "Uitloggen", "Mark notifications as read": "Markeer meldingen als gelezen", - "Archive all notifications": "Archive all notifications", + "Archive all notifications": "Archiveer alle meldingen", "Restore revision": "Revisie herstellen", "Link copied": "Link gekopieerd", "Dark": "Donker", @@ -134,7 +135,7 @@ "Promote to {{ role }}": "Promote to {{ role }}", "Demote to {{ role }}": "Demote to {{ role }}", "Update role": "Werk rol bij", - "Delete user": "Gebruiker verwijderen", + "Delete user": "Verwijder gebruiker", "Collection": "Collectie", "Debug": "Fout opsporen", "Document": "Document", @@ -167,35 +168,35 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Ook wordt {{collectionName}} gebruikt als de startweergave. Als je deze verwijdert, wordt de startweergave teruggezet naar het startscherm.", "Sorry, an error occurred saving the collection": "Er is een fout opgetreden bij het opslaan van de collectie", "Add a description": "Beschrijving toevoegen", - "Collapse": "Invouwen", - "Expand": "Uitvouwen", "Type a command or search": "Zoek of typ een opdracht", "Choose a template": "Kies een sjabloon", "Are you sure you want to permanently delete this entire comment thread?": "Weet je zeker dat je deze thread definitief wil verwijderen?", "Are you sure you want to permanently delete this comment?": "Weet je zeker dat je deze reactie definitief wilt verwijderen?", "Confirm": "Bevestigen", "manage access": "manage access", - "view and edit access": "bekijk en bewerk toegang", + "view and edit access": "bekijk en wijzig toegang", "view only access": "alleen toegang weergeven", "no access": "geen toegang", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Document verplaatsen", "Moving": "Verplaatsen", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", "Document is too large": "Document is te groot", - "This document has reached the maximum size and can no longer be edited": "Dit document heeft de maximale grootte bereikt en kan niet meer worden bewerkt", + "This document has reached the maximum size and can no longer be edited": "Bewerken is niet mogelijk. De maximale grootte van het document is bereikt.", "Authentication failed": "Authenticatie mislukt", "Please try logging out and back in again": "Probeer uit en opnieuw in te loggen", "Authorization failed": "Autorisatie mislukt", "You may have lost access to this document, try reloading": "Mogelijk heb je de toegang tot dit document verloren, probeer te herladen", "Too many users connected to document": "Te veel gebruikers verbonden met document", - "Your edits will sync once other users leave the document": "Je bewerkingen worden gesynchroniseerd zodra andere gebruikers het document verlaten", + "Your edits will sync once other users leave the document": "Je wijzigingen worden bijgewerkt zodra het document niet meer in gebruik is", "Server connection lost": "Verbinding met server verbroken", - "Edits you make will sync once you’re online": "Bewerkingen die je maakt worden gesynchroniseerd zodra je online bent", + "Edits you make will sync once you’re online": "Wijzigingen die je maakt worden gesynchroniseerd zodra je online bent", "Submenu": "Submenu", "Collections could not be loaded, please reload the app": "Collecties konden niet worden geladen, start de app alsjeblieft opnieuw op", "Default collection": "Standaard collectie", "Install now": "Nu installeren", "Deleted Collection": "Verwijderde Collectie", + "Untitled": "Naamloos", "Unpin": "Losmaken", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Zoeken in collecties en documenten", "No results found": "Geen resultaten gevonden", - "Untitled": "Naamloos", "New": "Nieuw", "Only visible to you": "Alleen zichtbaar voor jou", "Draft": "Concept", @@ -243,7 +243,7 @@ "our engineers have been notified": "onze technici zijn op de hoogte gebracht", "Show detail": "Toon detail", "Current version": "Huidige versie", - "{{userName}} edited": "{{userName}} bewerkt", + "{{userName}} edited": "{{userName}} bewerkte", "{{userName}} archived": "{{userName}} gearchiveerd", "{{userName}} restored": "{{userName}} hersteld", "{{userName}} deleted": "{{userName}} verwijderd", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Nieuw document", - "You can't reorder documents in an alphabetically sorted collection": "U kunt documenten in een alfabetisch gesorteerde verzameling niet opnieuw ordenen", "Empty": "Leeg", "Collections": "Collecties", + "Collapse": "Invouwen", + "Expand": "Uitvouwen", "Document not supported – try Markdown, Plain text, HTML, or Word": "Document niet ondersteund - probeer Markdown, platte tekst, HTML of Word", "Go back": "Vorige", "Go forward": "Volgende", @@ -382,6 +382,10 @@ "Up to date": "Bijgewerkt", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versie achter", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versies achter", + "Change permissions?": "Rechten wijzigen?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "U kunt documenten in een alfabetisch gesorteerde verzameling niet opnieuw ordenen", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Terug naar de app", "Installation": "Installatie", "Unstar document": "Document verwijderen uit favorieten", @@ -532,7 +536,7 @@ "Enable embeds": "Embeds inschakelen", "Export options": "Exporteer instellingen", "Group members": "Groepeer leden", - "Edit group": "Groep bewerken", + "Edit group": "Wijzig groep", "Delete group": "Verwijder groep", "Group options": "Groepsopties", "Member options": "Gebruikersopties", @@ -551,7 +555,7 @@ "Table of contents": "Inhoudsopgave", "Change name": "Naam wijzigen", "Change email": "Change email", - "Suspend user": "Gebruiker blokkeren", + "Suspend user": "Blokkeer gebruiker", "An error occurred while sending the invite": "Er is een fout opgetreden bij het verzenden van de uitnodiging", "User options": "Gebruikersopties", "Change role": "Wijzig rol", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groepen hebben toegang", "Archived by {{userName}}": "Gearchiveerd door {{userName}}", "Share": "Deel", + "Overview": "Overview", "Recently updated": "Onlangs bijgewerkt", "Recently published": "Onlangs gepubliceerd", "Least recently updated": "Minst recent bijgewerkt", @@ -629,7 +634,7 @@ "Hide contents": "Inhoud verbergen", "Show contents": "Inhoud weergeven", "available when headings are added": "available when headings are added", - "Edit {{noun}}": "{{noun}} bewerken", + "Edit {{noun}}": "Wijzig {{noun}}", "Switch to dark": "Wissel naar donker thema", "Switch to light": "Wissel naar licht thema", "Archived": "Gearchiveerd", @@ -668,7 +673,7 @@ "This template will be permanently deleted in <2> unless restored.": "Dit sjabloon wordt definitief verwijderd over <2> tenzij het hersteld wordt.", "This document will be permanently deleted in <2> unless restored.": "Dit document wordt definitief verwijderd over <2> als dit niet wordt hersteld.", "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Markeer wat tekst en gebruik het <1> hulpmiddel om tijdelijke aanduidingen toe te voegen die kunnen worden ingevuld bij het maken van nieuwe documenten", - "You’re editing a template": "Je bent een sjabloon aan het bewerken", + "You’re editing a template": "Je past een sjabloon aan", "Deleted by {{userName}}": "Verwijderd door {{userName}}", "Observing {{ userName }}": "Observeer {{ userName }}", "Backlinks": "Backlinks", @@ -735,7 +740,7 @@ "Enter": "Voer in", "Publish document and exit": "Document publiceren en verlaten", "Save document": "Document opslaan", - "Cancel editing": "Bewerken annuleren", + "Cancel editing": "Annuleer", "Collaboration": "Samenwerken", "Formatting": "Opmaak", "Paragraph": "Paragraaf", @@ -753,7 +758,7 @@ "Move list item up": "Verplaats item omhoog", "Move list item down": "Verplaats item omlaag", "Tables": "Tabellen", - "Insert row": "Insert row", + "Insert row": "Voeg rij in", "Next cell": "Volgende cel", "Previous cell": "Vorige cel", "Space": "Spatie", @@ -764,9 +769,9 @@ "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", + "Insert block": "Voeg blok in", "Sign In": "Aanmelden", "Continue with Email": "Verdergaan met e-mailadres", "Continue with {{ authProviderName }}": "Ga verder met {{ authProviderName }}", @@ -821,12 +826,12 @@ "Author": "Auteur", "We were unable to find the page you’re looking for.": "We kunnen de pagina die je zoekt niet vinden.", "Search titles only": "Zoek alleen titels", - "Something went wrong": "Something went wrong", + "Something went wrong": "Er ging iets mis", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Geen documenten gevonden voor je zoekfilters.", "API": "API", "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", - "by {{ name }}": "by {{ name }}", + "by {{ name }}": "door {{ name }}", "Last used": "Laatst gebruikt", "No expiry": "Geen vervaldatum", "Restricted scope": "Restricted scope", @@ -861,7 +866,7 @@ "{{userName}} requested": "{{userName}} verzoekt", "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering for example.": "Groepen zijn voor het organiseren van je team. Ze werken het beste als ze zijn gebaseerd op een functie of verantwoordelijkheid, bijvoorbeeld Support of Engineering.", "You’ll be able to add people to the group next.": "Je kunt hierna personen aan de groep toevoegen.", - "You can edit the name of this group at any time, however doing so too often might confuse your team mates.": "Je kunt de naam van deze groep op elk moment wijzigen, maar wanneer dit te vaak wordt gedaan kan je teamgenoten in de war brengen.", + "You can edit the name of this group at any time, however doing so too often might confuse your team mates.": "Wijzig de groepsnaam wanneer nodig, maar voorkom verwarring door dit niet te vaak te doen.", "Are you sure about that? Deleting the {{groupName}} group will cause its members to lose access to collections and documents that it is associated with.": "Weet je dat zeker? Bij het verwijderen van de {{groupName}} groep raken de leden van de groep de toegang tot de verzamelingen en documenten van de groep kwijt.", "Add people to {{groupName}}": "Personen toevoegen aan {{groupName}}", "{{userName}} was removed from the group": "{{userName}} is verwijderd uit de groep", @@ -870,7 +875,7 @@ "Listing members of the {{groupName}} group.": "Toon leden van de {{groupName}} groep.", "This group has no members.": "Deze groep heeft geen leden.", "{{userName}} was added to the group": "{{userName}} is aan de groep toegevoegd", - "Could not add user": "Gebruiker kan niet worden toegevoegd", + "Could not add user": "Kon gebruiker niet toevoegen", "Add members below to give them access to the group. Need to add someone who’s not yet a member?": "Voeg hieronder leden toe om ze toegang te geven tot de groep. Wil je iemand toevoegen die nog geen lid is?", "Invite them to {{teamName}}": "Nodig ze uit voor {{teamName}}", "Ask an admin to invite them first": "Vraag een beheerder om ze eerst uit te nodigen", @@ -878,7 +883,7 @@ "Search people": "Personen zoeken", "No people matching your search": "Geen personen die aan de zoekopdracht voldoen", "No people left to add": "Geen personen meer om toe te voegen", - "Date created": "Date created", + "Date created": "Aanmaakdatum", "Upload": "Upload", "How does this work?": "Hoe werkt dit?", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export Data.": "Je kunt een zipbestand importeren dat eerder is geëxporteerd vanuit de JSON-optie in een andere instantie. In {{ appName }}, open Exporteren in de zijbalk in Voorkeuren en klik op Exporteer gegevens.", @@ -928,7 +933,7 @@ "Danger": "Gevaar", "You can delete this entire workspace including collections, documents, and users.": "Je kunt deze hele workspace verwijderen inclusief collecties, documenten en gebruikers.", "Export data": "Exporteer gegevens", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Een volledige export kan enige tijd kosten, overweeg om één enkel document of collectie te exporteren. De geëxporteerde gegevens zijn een zip van je documenten in Markdown formaat. Je kunt deze pagina verlaten zodra de export is gestart. Als je notificaties aan hebt staan, we zullen een link naar {{ userEmail }} e-mailen wanneer het afgerond is.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recente exporten", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Beheer optionele en bètafuncties. Het wijzigen van deze instellingen heeft invloed op de ervaring voor alle leden van betreffende team.", "Separate editing": "Aparte bewerkingsmodus", @@ -936,7 +941,7 @@ "Commenting": "Reageren", "When enabled team members can add comments to documents.": "Indien ingeschakeld kunnen teamleden opmerkingen toevoegen aan documenten.", "Create a group": "Maak een groep", - "Could not load groups": "Could not load groups", + "Could not load groups": "Kon groepen niet laden", "New group": "Nieuwe groep", "Groups can be used to organize and manage the people on your team.": "Groepen kunnen worden gebruikt om personen in je team te organiseren en beheren.", "No groups have been created yet": "Er zijn nog geen groepen gemaakt", @@ -948,7 +953,7 @@ "Import pages from a Confluence instance": "Pagina's importeren van een Confluence instantie", "Enterprise": "Zakelijk", "Recent imports": "Recent geïmporteerd", - "Could not load members": "Could not load members", + "Could not load members": "Kon leden niet laden", "Everyone that has signed into {{appName}} is listed here. It’s possible that there are other users who have access through {{signinMethods}} but haven’t signed in yet.": "Everyone that has signed into {{appName}} is listed here. It’s possible that there are other users who have access through {{signinMethods}} but haven’t signed in yet.", "Receive a notification whenever a new document is published": "Ontvang een melding wanneer een nieuw document wordt gepubliceerd", "Document updated": "Document bijgewerkt", @@ -1019,7 +1024,7 @@ "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Indien ingeschakeld, kunnen documenten door elk lid van de workspace openbaar op internet worden gedeeld", "Viewer document exports": "Bekijkers kunnen documenten exporteren", "When enabled, viewers can see download options for documents": "Wanneer ingeschakeld, kunnen kijkers downloadopties voor documenten zien", - "Users can delete account": "Users can delete account", + "Users can delete account": "Gebruikers kunnen account verwijderen", "When enabled, users can delete their own account from the workspace": "When enabled, users can delete their own account from the workspace", "Rich service embeds": "Rich service-embeds", "Links to supported services are shown as rich embeds within your documents": "Links naar ondersteunde diensten worden weergegeven als rich embeds in je documenten", @@ -1106,7 +1111,7 @@ "Link your account in {{ appName }} settings to search from Slack": "Koppel je account in de {{ appName }}-instellingen om te zoeken vanuit Slack", "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.": "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.", "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}": "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}", - "Script name": "Script name", + "Script name": "Naam script", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", "Are you sure you want to delete the {{ name }} webhook?": "Weet je zeker dat je de {{ name }} webhook wilt verwijderen?", @@ -1122,7 +1127,7 @@ "All {{ groupName }} events": "Alle {{ groupName }} gebeurtenissen", "Delete webhook": "Verwijder Webhook", "Subscribed events": "Geabonneerde gebeurtenissen", - "Edit webhook": "Webhook bewerken", + "Edit webhook": "Wijzig webhook", "Webhook created": "Webhook is gemaakt", "Webhooks": "Webhooks", "New webhook": "Nieuwe webhook", @@ -1138,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 c749fc5207..d4d42aaf47 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -15,7 +15,7 @@ "Archive collection": "Zarchiwizuj kolekcję", "Collection archived": "Kolekcja zarchiwizowana", "Archiving": "Archiwizowanie", - "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiwizacja tej kolekcji będzie również archiwizować wszystkie dokumenty w niej. Dokumenty z kolekcji nie będą już widoczne w wynikach wyszukiwania.", + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiwizacja tej kolekcji zarchiwizuje wszystkie dokumenty w niej. Dokumenty z kolekcji nie będą już widoczne w wynikach wyszukiwania.", "Restore": "Przywróć", "Collection restored": "Odzyskano kolekcję", "Delete": "Usuń", @@ -36,6 +36,7 @@ "Development": "Wersja testowa", "Open document": "Otwórz dokument", "New document": "Nowy dokument", + "New draft": "New draft", "New from template": "Nowy z szablonu", "New nested document": "Nowy zagnieżdżony dokument", "Publish": "Opublikuj", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Ponadto widok {{collectionName}} jest używany jako widok początkowy – usunięcie go spowoduje zresetowanie widoku początkowego do strony głównej.", "Sorry, an error occurred saving the collection": "Przepraszamy, wystąpił błąd podczas zapisywania kolekcji", "Add a description": "Dodaj opis", - "Collapse": "Zwiń", - "Expand": "Rozwiń", "Type a command or search": "Wpisz komendę lub wyszukiwanie", "Choose a template": "Wybierz szablon", "Are you sure you want to permanently delete this entire comment thread?": "Czy na pewno chcesz permanentnie usunąć ten wątek komentarzy?", @@ -178,6 +177,7 @@ "view and edit access": "zobacz i edytuj dostęp", "view only access": "dostęp tylko do podglądu", "no access": "brak dostępu", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "Nie masz uprawnień aby przenieść {{ documentName }} do kolekcji {{ collectionName }}", "Move document": "Przenieś dokument", "Moving": "Przenoszenie", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Przenoszenie dokumentu {{ title }} do kolekcji {{ newCollectionName }} zmieni uprawnienia dla wszystkich członków obszaru roboczego z {{ prevPermission }} na {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Domyślna kolekcja", "Install now": "Zainstaluj teraz", "Deleted Collection": "Usunięta kolekcja", + "Untitled": "Bez tytułu", "Unpin": "Odepnij", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Wybierz lokalizację do przeniesienia", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Skopiuj do {{ location }}", "Search collections & documents": "Przeszukaj kolekcje i dokumenty", "No results found": "Nie znaleziono wyników", - "Untitled": "Bez tytułu", "New": "Nowe", "Only visible to you": "Widoczne tylko dla Ciebie", "Draft": "Szkic", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} grup dodanych do dokumentu", "Logo": "Logo", "Archived collections": "Zarchiwizowane kolekcje", - "Change permissions?": "Zmienić uprawnienia?", "New doc": "Nowy dok", - "You can't reorder documents in an alphabetically sorted collection": "Nie możesz zmieniać kolejności dokumentów w kolekcji posortowanej alfabetycznie", "Empty": "Pusty", "Collections": "Kolekcje", + "Collapse": "Zwiń", + "Expand": "Rozwiń", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokument nie jest obsługiwany – spróbuj formatu Markdown, zwykłego tekstu, HTML lub Word", "Go back": "Wróć", "Go forward": "Idź do przodu", @@ -382,6 +382,10 @@ "Up to date": "Aktualne", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} wersji do aktualizacji", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} wersji do aktualizacji", + "Change permissions?": "Zmienić uprawnienia?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Nie możesz zmieniać kolejności dokumentów w kolekcji posortowanej alfabetycznie", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Wróć do aplikacji", "Installation": "Instalacja", "Unstar document": "Usuń oznaczenie gwiazdką", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grup z dostępem", "Archived by {{userName}}": "Zarchiwizowane przez {{userName}}", "Share": "Udostępnij", + "Overview": "Overview", "Recently updated": "Ostatnio zaktualizowane", "Recently published": "Ostatnio opublikowane", "Least recently updated": "Najmniej ostatnio zaktualizowane", @@ -764,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ę", @@ -928,7 +933,7 @@ "Danger": "Uwaga", "You can delete this entire workspace including collections, documents, and users.": "Możesz usunąć całą tę przestrzeń roboczą, w tym kolekcje, dokumenty i użytkowników.", "Export data": "Eksportuj dane", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Pełny eksport może zająć trochę czasu, rozważ wyeksportowanie pojedynczego dokumentu lub kolekcji. Wyeksportowane dane to archiwum zip zawierające Twoje dokumenty w formacie Markdown. Możesz opuścić tę stronę po rozpoczęciu eksportu – jeśli masz włączone powiadomienia, wyślemy link do {{ userEmail }}, gdy eksport się zakończy.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Najnowsze eksporty", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Zarządzaj funkcjami opcjonalnymi i beta. Zmiana tych ustawień wpłynie na doświadczenie wszystkich członków przestrzeni roboczej.", "Separate editing": "Osobny tryb edycji", @@ -957,7 +962,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Otrzymuj powiadomienie, gdy dokument, który subskrybujesz, lub wątek, w którym uczestniczyłeś, otrzyma komentarz", "Mentioned": "Wspomniany", "Receive a notification when someone mentions you in a document or comment": "Otrzymuj powiadomienie, gdy ktoś wspomni o Tobie w dokumencie lub komentarzu", - "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", + "Receive a notification when a comment thread you were involved in is resolved": "Otrzymaj powiadomienie, gdy wątek komentarza, w który byłeś zaangażowany, został rozwiązany", "Collection created": "Kolekcja utworzona", "Receive a notification whenever a new collection is created": "Otrzymuj powiadomienie o każdym utworzeniu nowej kolekcji", "Invite accepted": "Zaproszenie przyjęte", @@ -1138,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 59fd15a55d..6543677117 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -1,5 +1,5 @@ { - "New API key": "Nova chave API", + "New API key": "Nova chave de API", "Open collection": "Abrir coleção", "New collection": "Nova coleção", "Create a collection": "Criar uma coleção", @@ -36,6 +36,7 @@ "Development": "Desenvolvimento", "Open document": "Abrir documento", "New document": "Novo documento", + "New draft": "New draft", "New from template": "Novo a partir do modelo", "New nested document": "Novo documento aninhado", "Publish": "Publicar", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Além disso, {{collectionName}} está sendo utilizada como visualização inicial – excluí-la irá redefinir a visualização inicial para a página inicial.", "Sorry, an error occurred saving the collection": "Desculpe, ocorreu um erro ao salvar a coleção", "Add a description": "Adicionar uma descrição", - "Collapse": "Recolher", - "Expand": "Expandir", "Type a command or search": "Digite um comando ou pesquise", "Choose a template": "Escolha um modelo", "Are you sure you want to permanently delete this entire comment thread?": "Tem certeza de que deseja excluir permanentemente todos os comentários associados a este tópico?", @@ -178,6 +177,7 @@ "view and edit access": "acesso para visualização e edição", "view only access": "acesso apenas para visualização", "no access": "sem acesso", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "Você não tem permissão para mover {{ documentName }} para a coleção {{ collectionName }}", "Move document": "Mover documento", "Moving": "Movendo", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Mover o documento {{ title }} para a coleção {{ newCollectionName }} mudará a permissão para todos os membros do espaço de trabalho de {{ prevPermission }} para {{ newPermission }}.", @@ -196,8 +196,9 @@ "Default collection": "Coleção padrão", "Install now": "Instalar agora", "Deleted Collection": "Excluir Coleção", + "Untitled": "Sem título", "Unpin": "Desafixar", - "{{ minutes }}m read": "{{ minutes }}m read", + "{{ minutes }}m read": "Leitura de {{ minutes }}min", "Select a location to copy": "Selecione um local para copiar", "Document copied": "Documento copiado", "Couldn’t copy the document, try again?": "Não foi possível copiar o documento, tentar novamente?", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copiar para {{ location }}", "Search collections & documents": "Pesquisar coleções e documentos", "No results found": "Nenhum resultado encontrado", - "Untitled": "Sem título", "New": "Novo", "Only visible to you": "Visível apenas para você", "Draft": "Rascunho", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} grupos foram adicionados ao documento", "Logo": "Logotipo", "Archived collections": "Coleções arquivadas", - "Change permissions?": "Alterar permissões?", "New doc": "Novo documento", - "You can't reorder documents in an alphabetically sorted collection": "Não é possível reordenar documentos em uma coleção ordenada alfabeticamente", "Empty": "Vazio", "Collections": "Coleções", + "Collapse": "Recolher", + "Expand": "Expandir", "Document not supported – try Markdown, Plain text, HTML, or Word": "Documento não compatível - experimente Markdown, Texto simples, HTML ou Word", "Go back": "Voltar", "Go forward": "Avançar", @@ -382,6 +382,10 @@ "Up to date": "Atualizado", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versão atrás", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versões atrás", + "Change permissions?": "Alterar permissões?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} não pode ser movido dentro de {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Não é possível reordenar documentos em uma coleção ordenada alfabeticamente", + "The {{ documentName }} cannot be moved here": "O {{ documentName }} não pode ser movido para aqui", "Return to App": "Voltar ao aplicativo", "Installation": "Instalação", "Unstar document": "Desfavoritar documento", @@ -420,8 +424,8 @@ "Profile picture": "Imagem do perfil", "Create a new doc": "Criar um novo documento", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} não será notificado, pois não tem acesso a este documento", - "Keep as link": "Keep as link", - "Embed": "Embed", + "Keep as link": "Manter como link", + "Embed": "Incorporar", "Add column after": "Adicionar coluna depois", "Add column before": "Adicionar coluna antes", "Add row after": "Adicionar linha após", @@ -450,7 +454,7 @@ "Italic": "Itálico", "Sorry, that link won’t work for this embed type": "Desculpe, esse link não funcionará para este tipo de incorporação", "File attachment": "Arquivo anexo", - "Enter a link": "Enter a link", + "Enter a link": "Insira um link", "Big heading": "Cabeçalho grande", "Medium heading": "Cabeçalho médio", "Small heading": "Cabeçalho pequeno", @@ -570,8 +574,8 @@ "invited you to": "convidou você para", "Choose a date": "Escolhar uma data", "API key created. Please copy the value now as it will not be shown again.": "Chave de API criada. Por favor, copie o valor agora, pois ele não será mostrado novamente.", - "Scopes": "Scopes", - "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access", + "Scopes": "Escopos", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Escopos separados por espaço, restringem o acesso desta chave de API para partes específicas da API. Deixe em branco para acesso total", "Expiration": "Expiração", "Never expires": "Nunca expira", "7 days": "7 dias", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupos com acesso", "Archived by {{userName}}": "Arquivado por {{userName}}", "Share": "Compartilhar", + "Overview": "Visão geral", "Recently updated": "Atualizado recentemente", "Recently published": "Publicado recentemente", "Least recently updated": "Menos recentemente atualizados", @@ -763,10 +768,10 @@ "LaTeX block": "Bloco LaTeX", "Inline code": "Código embutido", "Inline LaTeX": "LaTeX em linha", - "Triggers": "Triggers", - "Mention user or document": "Mention user or document", + "Triggers": "Gatilhos", + "Mention users and more": "Mencionar usuário ou documento", "Emoji": "Emoji", - "Insert block": "Insert block", + "Insert block": "Inserir bloco", "Sign In": "Entrar", "Continue with Email": "Continuar com E-mail", "Continue with {{ authProviderName }}": "Continuar com {{ authProviderName }}", @@ -829,7 +834,7 @@ "by {{ name }}": "por {{ name }}", "Last used": "Última utilização", "No expiry": "Não expira", - "Restricted scope": "Restricted scope", + "Restricted scope": "Escopo restrito", "API key copied to clipboard": "Chave da API copiada para a área de transferência", "Copied": "Copiado", "Revoking": "Revogando", @@ -928,7 +933,7 @@ "Danger": "Perigo", "You can delete this entire workspace including collections, documents, and users.": "Você pode excluir este espaço de trabalho por completo incluindo coleções, documentos e usuários.", "Export data": "Exportar dados", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Uma exportação completa pode levar algum tempo, considere exportar um único documento ou coleção. Os dados exportados são um arquivo zip de seus documentos no formato Markdown. Você pode sair desta página assim que a exportação for iniciada - se as notificações estiverem ativadas enviaremos um link por e-mail para {{ userEmail }} quando ela estiver concluída.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exportações recentes", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gerencie recursos opcionais e beta. A alteração dessas configurações afetará a experiência de todos os membros do espaço de trabalho.", "Separate editing": "Edição Separada", @@ -1138,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 b3ae86c6e0..8e57e16cbd 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -36,6 +36,7 @@ "Development": "Desenvolvimento", "Open document": "Abrir documento", "New document": "Novo documento", + "New draft": "New draft", "New from template": "Criar a partir do modelo", "New nested document": "Novo documento aninhado", "Publish": "Publicar", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Além disso, {{collectionName}} está a ser usada como vista inicial — Eliminar irá reiniciar a vista inicial da página inicial.", "Sorry, an error occurred saving the collection": "Ocorreu um erro ao guardar a coleção", "Add a description": "Adicionar descrição", - "Collapse": "Fechar", - "Expand": "Expandir", "Type a command or search": "Digite um comando ou pesquisa", "Choose a template": "Escolha um modelo", "Are you sure you want to permanently delete this entire comment thread?": "Tem certeza de que deseja excluir permanentemente todo o tópico?", @@ -178,6 +177,7 @@ "view and edit access": "ver e alterar", "view only access": "ver apenas", "no access": "sem acesso", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Mover documento", "Moving": "A mover", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Coleção predefinida", "Install now": "Instalar agora", "Deleted Collection": "Coleção eliminada", + "Untitled": "Sem título", "Unpin": "Tirar pino", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Procurar coleções e documentos", "No results found": "Nenhum resultado encontrado", - "Untitled": "Sem título", "New": "Novo", "Only visible to you": "Apenas visível para ti", "Draft": "Rascunho", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} grupos adicionados ao documento", "Logo": "Logótipo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Novo doc", - "You can't reorder documents in an alphabetically sorted collection": "Não pode reordenar documentos numa coleção ordenada alfabeticamente", "Empty": "Vazio", "Collections": "Coleções", + "Collapse": "Fechar", + "Expand": "Expandir", "Document not supported – try Markdown, Plain text, HTML, or Word": "Documento não suportado — tente Markdown, texto simples, HTML ou Word", "Go back": "Voltar", "Go forward": "Avançar", @@ -382,6 +382,10 @@ "Up to date": "Em dia", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versão atrás", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versões atrás", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Não pode reordenar documentos numa coleção ordenada alfabeticamente", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Voltar à Aplicação", "Installation": "Instalação", "Unstar document": "Desmarcar documento", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ usersCount }} grupos com acesso", "Archived by {{userName}}": "Arquivado por {{userName}}", "Share": "Compartilhar", + "Overview": "Overview", "Recently updated": "Atualizado recentemente", "Recently published": "Publicado recentemente", "Least recently updated": "Menos atualizado recentemente", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Perigo", "You can delete this entire workspace including collections, documents, and users.": "Pode eliminar a área de trabalho inteira, incluindo coleções, documentos e utilizadores.", "Export data": "Exportar dados", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Uma exportação completa pode levar algum tempo, considere a esportar um único documento ou colecção. Os dados exportados é um ZIP dos seus documentos no formato Markdown. Pode abandonar esta página quando a exportação começar - se tiver notificações ativas, enviaremos um e-mail com um link para {{ userEmail }} quando estiver terminado.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Exportações recentes", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Gerir recursos opcionais e funcionalidades beta. Alterar estas configurações afetará a experiência de todos os membros da área de trabalho.", "Separate editing": "Alteração separada", @@ -1138,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/ro_RO/translation.json b/shared/i18n/locales/ro_RO/translation.json new file mode 100644 index 0000000000..4bd24943c6 --- /dev/null +++ b/shared/i18n/locales/ro_RO/translation.json @@ -0,0 +1,1146 @@ +{ + "New API key": "New API key", + "Open collection": "Open collection", + "New collection": "New collection", + "Create a collection": "Creează o colecție", + "Edit": "Edit", + "Edit collection": "Edit collection", + "Permissions": "Permissions", + "Collection permissions": "Collection permissions", + "Share this collection": "Share this collection", + "Search in collection": "Search in collection", + "Star": "Star", + "Unstar": "Unstar", + "Archive": "Archive", + "Archive collection": "Archive collection", + "Collection archived": "Collection archived", + "Archiving": "Archiving", + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.", + "Restore": "Restore", + "Collection restored": "Collection restored", + "Delete": "Delete", + "Delete collection": "Delete collection", + "New template": "New template", + "Delete comment": "Delete comment", + "Mark as resolved": "Mark as resolved", + "Thread resolved": "Thread resolved", + "Mark as unresolved": "Mark as unresolved", + "View reactions": "View reactions", + "Reactions": "Reactions", + "Copy ID": "Copy ID", + "Clear IndexedDB cache": "Clear IndexedDB cache", + "IndexedDB cache cleared": "IndexedDB cache cleared", + "Toggle debug logging": "Toggle debug logging", + "Debug logging enabled": "Debug logging enabled", + "Debug logging disabled": "Debug logging disabled", + "Development": "Development", + "Open document": "Open document", + "New document": "New document", + "New draft": "New draft", + "New from template": "New from template", + "New nested document": "New nested document", + "Publish": "Publish", + "Published {{ documentName }}": "Published {{ documentName }}", + "Publish document": "Publish document", + "Unpublish": "Unpublish", + "Unpublished {{ documentName }}": "Unpublished {{ documentName }}", + "Subscribe": "Subscribe", + "Subscribed to document notifications": "Subscribed to document notifications", + "Unsubscribe": "Unsubscribe", + "Unsubscribed from document notifications": "Unsubscribed from document notifications", + "Share this document": "Share this document", + "HTML": "HTML", + "PDF": "PDF", + "Exporting": "Exporting", + "Markdown": "Markdown", + "Download": "Download", + "Download document": "Download document", + "Copy as Markdown": "Copy as Markdown", + "Markdown copied to clipboard": "Markdown copied to clipboard", + "Copy public link": "Copy public link", + "Link copied to clipboard": "Link copied to clipboard", + "Copy link": "Copy link", + "Copy": "Copy", + "Duplicate": "Duplicate", + "Duplicate document": "Duplicate document", + "Copy document": "Copy document", + "collection": "collection", + "Pin to {{collectionName}}": "Pin to {{collectionName}}", + "Pinned to collection": "Pinned to collection", + "Pin to home": "Pin to home", + "Pinned to home": "Pinned to home", + "Pin": "Pin", + "Search in document": "Search in document", + "Print": "Print", + "Print document": "Print document", + "Import document": "Import document", + "Templatize": "Templatize", + "Create template": "Create template", + "Open random document": "Open random document", + "Search documents for \"{{searchQuery}}\"": "Search documents for \"{{searchQuery}}\"", + "Move to workspace": "Move to workspace", + "Move": "Move", + "Move to collection": "Move to collection", + "Move {{ documentType }}": "Move {{ documentType }}", + "Are you sure you want to archive this document?": "Ești sigur că vrei să arhivezi acest document?", + "Document archived": "Document arhivat", + "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", + "Delete {{ documentName }}": "Delete {{ documentName }}", + "Permanently delete": "Permanently delete", + "Permanently delete {{ documentName }}": "Permanently delete {{ documentName }}", + "Empty trash": "Empty trash", + "Permanently delete documents in trash": "Permanently delete documents in trash", + "Comments": "Comments", + "History": "History", + "Insights": "Insights", + "Disable viewer insights": "Disable viewer insights", + "Enable viewer insights": "Enable viewer insights", + "Leave document": "Leave document", + "You have left the shared document": "You have left the shared document", + "Could not leave document": "Could not leave document", + "Home": "Home", + "Drafts": "Drafts", + "Trash": "Trash", + "Settings": "Settings", + "Profile": "Profile", + "Templates": "Templates", + "Notifications": "Notifications", + "Preferences": "Preferences", + "Documentation": "Documentation", + "API documentation": "API documentation", + "Toggle sidebar": "Toggle sidebar", + "Send us feedback": "Send us feedback", + "Report a bug": "Report a bug", + "Changelog": "Changelog", + "Keyboard shortcuts": "Keyboard shortcuts", + "Download {{ platform }} app": "Download {{ platform }} app", + "Log out": "Log out", + "Mark notifications as read": "Mark notifications as read", + "Archive all notifications": "Archive all notifications", + "Restore revision": "Restore revision", + "Link copied": "Link copied", + "Dark": "Dark", + "Light": "Light", + "System": "System", + "Appearance": "Appearance", + "Change theme": "Change theme", + "Change theme to": "Change theme to", + "Switch workspace": "Switch workspace", + "Select a workspace": "Select a workspace", + "New workspace": "New workspace", + "Create a workspace": "Create a workspace", + "Login to workspace": "Login to workspace", + "Invite people": "Invite people", + "Invite to workspace": "Invite to workspace", + "Promote to {{ role }}": "Promote to {{ role }}", + "Demote to {{ role }}": "Demote to {{ role }}", + "Update role": "Update role", + "Delete user": "Delete user", + "Collection": "Collection", + "Debug": "Debug", + "Document": "Document", + "Documents": "Documents", + "Recently viewed": "Recently viewed", + "Revision": "Revision", + "Navigation": "Navigation", + "Notification": "Notification", + "People": "People", + "Workspace": "Workspace", + "Recent searches": "Recent searches", + "currently editing": "currently editing", + "currently viewing": "currently viewing", + "previously edited": "previously edited", + "You": "You", + "Viewers": "Viewers", + "Collections are used to group documents and choose permissions": "Collections are used to group documents and choose permissions", + "Name": "Name", + "The default access for workspace members, you can share with more users or groups later.": "The default access for workspace members, you can share with more users or groups later.", + "Public document sharing": "Public document sharing", + "Allow documents within this collection to be shared publicly on the internet.": "Allow documents within this collection to be shared publicly on the internet.", + "Saving": "Saving", + "Save": "Save", + "Creating": "Creating", + "Create": "Create", + "Collection deleted": "Collection deleted", + "I’m sure – Delete": "I’m sure – Delete", + "Deleting": "Deleting", + "Are you sure about that? Deleting the {{collectionName}} collection is permanent and cannot be restored, however all published documents within will be moved to the trash.": "Are you sure about that? Deleting the {{collectionName}} collection is permanent and cannot be restored, however all published documents within will be moved to the trash.", + "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.", + "Sorry, an error occurred saving the collection": "Sorry, an error occurred saving the collection", + "Add a description": "Add a description", + "Type a command or search": "Type a command or search", + "Choose a template": "Choose a template", + "Are you sure you want to permanently delete this entire comment thread?": "Are you sure you want to permanently delete this entire comment thread?", + "Are you sure you want to permanently delete this comment?": "Are you sure you want to permanently delete this comment?", + "Confirm": "Confirm", + "manage access": "manage access", + "view and edit access": "view and edit access", + "view only access": "view only access", + "no access": "no access", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", + "Move document": "Move document", + "Moving": "Moving", + "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", + "Document is too large": "Document is too large", + "This document has reached the maximum size and can no longer be edited": "This document has reached the maximum size and can no longer be edited", + "Authentication failed": "Authentication failed", + "Please try logging out and back in again": "Please try logging out and back in again", + "Authorization failed": "Authorization failed", + "You may have lost access to this document, try reloading": "You may have lost access to this document, try reloading", + "Too many users connected to document": "Too many users connected to document", + "Your edits will sync once other users leave the document": "Your edits will sync once other users leave the document", + "Server connection lost": "Server connection lost", + "Edits you make will sync once you’re online": "Edits you make will sync once you’re online", + "Submenu": "Submenu", + "Collections could not be loaded, please reload the app": "Collections could not be loaded, please reload the app", + "Default collection": "Default collection", + "Install now": "Install now", + "Deleted Collection": "Deleted Collection", + "Untitled": "Untitled", + "Unpin": "Unpin", + "{{ minutes }}m read": "{{ minutes }}m read", + "Select a location to copy": "Select a location to copy", + "Document copied": "Document copied", + "Couldn’t copy the document, try again?": "Couldn’t copy the document, try again?", + "Include nested documents": "Include nested documents", + "Copy to {{ location }}": "Copy to {{ location }}", + "Search collections & documents": "Search collections & documents", + "No results found": "No results found", + "New": "New", + "Only visible to you": "Only visible to you", + "Draft": "Draft", + "Template": "Template", + "You updated": "You updated", + "{{ userName }} updated": "{{ userName }} updated", + "You deleted": "You deleted", + "{{ userName }} deleted": "{{ userName }} deleted", + "You archived": "You archived", + "{{ userName }} archived": "{{ userName }} archived", + "Imported": "Imported", + "You created": "You created", + "{{ userName }} created": "{{ userName }} created", + "You published": "You published", + "{{ userName }} published": "{{ userName }} published", + "Never viewed": "Never viewed", + "Viewed": "Viewed", + "in": "in", + "nested document": "nested document", + "nested document_plural": "nested documents", + "{{ total }} task": "{{ total }} task", + "{{ total }} task_plural": "{{ total }} tasks", + "{{ completed }} task done": "{{ completed }} task done", + "{{ completed }} task done_plural": "{{ completed }} tasks done", + "{{ completed }} of {{ total }} tasks": "{{ completed }} of {{ total }} tasks", + "Currently editing": "Currently editing", + "Currently viewing": "Currently viewing", + "Viewed {{ timeAgo }}": "Viewed {{ timeAgo }}", + "Module failed to load": "Module failed to load", + "Loading Failed": "Loading Failed", + "Sorry, part of the application failed to load. This may be because it was updated since you opened the tab or because of a failed network request. Please try reloading.": "Sorry, part of the application failed to load. This may be because it was updated since you opened the tab or because of a failed network request. Please try reloading.", + "Reload": "Reload", + "Something Unexpected Happened": "Something Unexpected Happened", + "Sorry, an unrecoverable error occurred{{notified}}. Please try reloading the page, it may have been a temporary glitch.": "Sorry, an unrecoverable error occurred{{notified}}. Please try reloading the page, it may have been a temporary glitch.", + "our engineers have been notified": "our engineers have been notified", + "Show detail": "Show detail", + "Current version": "Current version", + "{{userName}} edited": "{{userName}} edited", + "{{userName}} archived": "{{userName}} archived", + "{{userName}} restored": "{{userName}} restored", + "{{userName}} deleted": "{{userName}} deleted", + "{{userName}} added {{addedUserName}}": "{{userName}} added {{addedUserName}}", + "{{userName}} removed {{removedUserName}}": "{{userName}} removed {{removedUserName}}", + "{{userName}} moved from trash": "{{userName}} moved from trash", + "{{userName}} published": "{{userName}} published", + "{{userName}} unpublished": "{{userName}} unpublished", + "{{userName}} moved": "{{userName}} moved", + "Export started": "Export started", + "Your file will be available in {{ location }} soon": "Your file will be available in {{ location }} soon", + "View": "View", + "A ZIP file containing the images, and documents in the Markdown format.": "A ZIP file containing the images, and documents in the Markdown format.", + "A ZIP file containing the images, and documents as HTML files.": "A ZIP file containing the images, and documents as HTML files.", + "Structured data that can be used to transfer data to another compatible {{ appName }} instance.": "Structured data that can be used to transfer data to another compatible {{ appName }} instance.", + "Export": "Export", + "Exporting the collection {{collectionName}} may take some time.": "Exporting the collection {{collectionName}} may take some time.", + "You will receive an email when it's complete.": "You will receive an email when it's complete.", + "Include attachments": "Include attachments", + "Including uploaded images and files in the exported data": "Including uploaded images and files in the exported data", + "Filter": "Filter", + "No results": "No results", + "{{authorName}} created <3>": "{{authorName}} created <3>", + "{{authorName}} opened <3>": "{{authorName}} opened <3>", + "Search emoji": "Search emoji", + "Search icons": "Search icons", + "Choose default skin tone": "Choose default skin tone", + "Show menu": "Show menu", + "Icon Picker": "Icon Picker", + "Icons": "Icons", + "Emojis": "Emojis", + "Remove": "Remove", + "All": "All", + "Frequently Used": "Frequently Used", + "Search Results": "Search Results", + "Smileys & People": "Smileys & People", + "Animals & Nature": "Animals & Nature", + "Food & Drink": "Food & Drink", + "Activity": "Activity", + "Travel & Places": "Travel & Places", + "Objects": "Objects", + "Symbols": "Symbols", + "Flags": "Flags", + "Select a color": "Select a color", + "Loading": "Loading", + "Search": "Search", + "Permission": "Permission", + "View only": "View only", + "Can edit": "Can edit", + "No access": "No access", + "Default access": "Default access", + "Change Language": "Change Language", + "Dismiss": "Dismiss", + "You’re offline.": "You’re offline.", + "Sorry, an error occurred.": "Sorry, an error occurred.", + "Click to retry": "Click to retry", + "Back": "Back", + "Unknown": "Unknown", + "Mark all as read": "Mark all as read", + "You're all caught up": "You're all caught up", + "{{ username }} reacted with {{ emoji }}": "{{ username }} reacted with {{ emoji }}", + "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }} and {{ count }} other reacted with {{ emoji }}", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}", + "Add reaction": "Add reaction", + "Reaction picker": "Reaction picker", + "Could not load reactions": "Could not load reactions", + "Reaction": "Reaction", + "Results": "Results", + "No results for {{query}}": "No results for {{query}}", + "Manage": "Manage", + "All members": "All members", + "Everyone in the workspace": "Everyone in the workspace", + "{{ count }} member": "{{ count }} member", + "{{ count }} member_plural": "{{ count }} members", + "Invite": "Invite", + "{{ userName }} was added to the collection": "{{ userName }} was added to the collection", + "{{ count }} people added to the collection": "{{ count }} people added to the collection", + "{{ count }} people added to the collection_plural": "{{ count }} people added to the collection", + "{{ count }} people and {{ count2 }} groups added to the collection": "{{ count }} people and {{ count2 }} groups added to the collection", + "{{ count }} people and {{ count2 }} groups added to the collection_plural": "{{ count }} people and {{ count2 }} groups added to the collection", + "Add": "Add", + "Add or invite": "Add or invite", + "Viewer": "Viewer", + "Editor": "Editor", + "Suggestions for invitation": "Suggestions for invitation", + "No matches": "No matches", + "Can view": "Can view", + "Everyone in the collection": "Everyone in the collection", + "You have full access": "You have full access", + "Created the document": "Created the document", + "Other people": "Other people", + "Other workspace members may have access": "Other workspace members may have access", + "This document may be shared with more workspace members through a parent document or collection you do not have access to": "This document may be shared with more workspace members through a parent document or collection you do not have access to", + "Access inherited from collection": "Access inherited from collection", + "{{ userName }} was removed from the document": "{{ userName }} was removed from the document", + "Could not remove user": "Could not remove user", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Could not update user": "Could not update user", + "Has access through <2>parent": "Has access through <2>parent", + "Suspended": "Suspended", + "Invited": "Invited", + "Active <1> ago": "Active <1> ago", + "Never signed in": "Never signed in", + "Leave": "Leave", + "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", + "Sorry, this link has already been used": "Sorry, this link has already been used", + "Public link copied to clipboard": "Public link copied to clipboard", + "Web": "Web", + "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared", + "Allow anyone with the link to access": "Allow anyone with the link to access", + "Publish to internet": "Publish to internet", + "Search engine indexing": "Search engine indexing", + "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", + "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future", + "{{ userName }} was added to the document": "{{ userName }} was added to the document", + "{{ count }} people added to the document": "{{ count }} people added to the document", + "{{ count }} people added to the document_plural": "{{ count }} people added to the document", + "{{ count }} groups added to the document": "{{ count }} groups added to the document", + "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", + "Logo": "Logo", + "Archived collections": "Archived collections", + "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", + "Go back": "Go back", + "Go forward": "Go forward", + "Could not load shared documents": "Could not load shared documents", + "Shared with me": "Shared with me", + "Show more": "Show more", + "Could not load starred documents": "Could not load starred documents", + "Starred": "Starred", + "Up to date": "Up to date", + "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version behind", + "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions behind", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", + "Return to App": "Back to App", + "Installation": "Installation", + "Unstar document": "Unstar document", + "Star document": "Star document", + "Template created, go ahead and customize it": "Template created, go ahead and customize it", + "Creating a template from {{titleWithDefault}} is a non-destructive action – we'll make a copy of the document and turn it into a template that can be used as a starting point for new documents.": "Creating a template from {{titleWithDefault}} is a non-destructive action – we'll make a copy of the document and turn it into a template that can be used as a starting point for new documents.", + "Published": "Published", + "Enable other members to use the template immediately": "Enable other members to use the template immediately", + "Location": "Location", + "Admins can manage the workspace and access billing.": "Admins can manage the workspace and access billing.", + "Editors can create, edit, and comment on documents.": "Editors can create, edit, and comment on documents.", + "Viewers can only view and comment on documents.": "Viewers can only view and comment on documents.", + "Are you sure you want to make {{ userName }} a {{ role }}?": "Are you sure you want to make {{ userName }} a {{ role }}?", + "I understand, delete": "I understand, delete", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.", + "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.", + "New name": "New name", + "Name can't be empty": "Name can't be empty", + "Check your email to verify the new address.": "Check your email to verify the new address.", + "The email will be changed once verified.": "The email will be changed once verified.", + "You will receive an email to verify your new address. It must be unique in the workspace.": "You will receive an email to verify your new address. It must be unique in the workspace.", + "A confirmation email will be sent to the new address before it is changed.": "A confirmation email will be sent to the new address before it is changed.", + "New email": "New email", + "Email can't be empty": "Email can't be empty", + "Your import completed": "Your import completed", + "Previous match": "Previous match", + "Next match": "Next match", + "Find and replace": "Find and replace", + "Find": "Find", + "Match case": "Match case", + "Enable regex": "Enable regex", + "Replace options": "Replace options", + "Replacement": "Replacement", + "Replace": "Replace", + "Replace all": "Replace all", + "Profile picture": "Profile picture", + "Create a new doc": "Create a new doc", + "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} won't be notified, as they do not have access to this document", + "Keep as link": "Keep as link", + "Embed": "Embed", + "Add column after": "Add column after", + "Add column before": "Add column before", + "Add row after": "Add row after", + "Add row before": "Add row before", + "Align center": "Align center", + "Align left": "Align left", + "Align right": "Align right", + "Default width": "Default width", + "Full width": "Full width", + "Bulleted list": "Bulleted list", + "Todo list": "Task list", + "Code block": "Code block", + "Copied to clipboard": "Copied to clipboard", + "Code": "Code", + "Comment": "Comment", + "Create link": "Create link", + "Sorry, an error occurred creating the link": "Sorry, an error occurred creating the link", + "Create a new child doc": "Create a new child doc", + "Delete table": "Delete table", + "Delete file": "Delete file", + "Download file": "Download file", + "Replace file": "Replace file", + "Delete image": "Delete image", + "Download image": "Download image", + "Replace image": "Replace image", + "Italic": "Italic", + "Sorry, that link won’t work for this embed type": "Sorry, that link won’t work for this embed type", + "File attachment": "File attachment", + "Enter a link": "Enter a link", + "Big heading": "Big heading", + "Medium heading": "Medium heading", + "Small heading": "Small heading", + "Extra small heading": "Extra small heading", + "Heading": "Heading", + "Divider": "Divider", + "Image": "Image", + "Sorry, an error occurred uploading the file": "Sorry, an error occurred uploading the file", + "Write a caption": "Write a caption", + "Info": "Info", + "Info notice": "Info notice", + "Link": "Link", + "Highlight": "Highlight", + "Type '/' to insert": "Type '/' to insert", + "Keep typing to filter": "Keep typing to filter", + "Open link": "Open link", + "Go to link": "Go to link", + "Sorry, that type of link is not supported": "Sorry, that type of link is not supported", + "Ordered list": "Ordered list", + "Page break": "Page break", + "Paste a link": "Paste a link", + "Paste a {{service}} link…": "Paste a {{service}} link…", + "Placeholder": "Placeholder", + "Quote": "Quote", + "Remove link": "Remove link", + "Search or paste a link": "Search or paste a link", + "Strikethrough": "Strikethrough", + "Bold": "Bold", + "Subheading": "Subheading", + "Sort ascending": "Sort ascending", + "Sort descending": "Sort descending", + "Table": "Table", + "Export as CSV": "Export as CSV", + "Toggle header": "Toggle header", + "Math inline (LaTeX)": "Math inline (LaTeX)", + "Math block (LaTeX)": "Math block (LaTeX)", + "Tip": "Tip", + "Tip notice": "Tip notice", + "Warning": "Warning", + "Warning notice": "Warning notice", + "Success": "Success", + "Success notice": "Success notice", + "Current date": "Current date", + "Current time": "Current time", + "Current date and time": "Current date and time", + "Indent": "Indent", + "Outdent": "Outdent", + "Video": "Video", + "None": "None", + "Could not import file": "Could not import file", + "Unsubscribed from document": "Unsubscribed from document", + "Account": "Account", + "API Keys": "API Keys", + "Details": "Details", + "Security": "Security", + "Features": "Features", + "Members": "Members", + "Groups": "Groups", + "Shared Links": "Shared Links", + "Import": "Import", + "Self Hosted": "Self Hosted", + "Integrations": "Integrations", + "Revoke token": "Revoke token", + "Revoke": "Revoke", + "Show path to document": "Show path to document", + "Path to document": "Path to document", + "Group member options": "Group member options", + "Export collection": "Export collection", + "Rename": "Rename", + "Sort in sidebar": "Sort in sidebar", + "A-Z sort": "A-Z sort", + "Z-A sort": "Z-A sort", + "Manual sort": "Manual sort", + "Comment options": "Comment options", + "Show document menu": "Show document menu", + "{{ documentName }} restored": "{{ documentName }} restored", + "Document options": "Document options", + "Choose a collection": "Choose a collection", + "Enable embeds": "Enable embeds", + "Export options": "Export options", + "Group members": "Group members", + "Edit group": "Edit group", + "Delete group": "Delete group", + "Group options": "Group options", + "Member options": "Member options", + "New document in {{ collectionName }}": "New document in {{ collectionName }}", + "New child document": "New child document", + "Save in workspace": "Save in workspace", + "Notification settings": "Notification settings", + "Revision options": "Revision options", + "Share link revoked": "Share link revoked", + "Share link copied": "Share link copied", + "Share options": "Share options", + "Go to document": "Go to document", + "Revoke link": "Revoke link", + "Contents": "Contents", + "Headings you add to the document will appear here": "Headings you add to the document will appear here", + "Table of contents": "Table of contents", + "Change name": "Change name", + "Change email": "Change email", + "Suspend user": "Suspend user", + "An error occurred while sending the invite": "An error occurred while sending the invite", + "User options": "User options", + "Change role": "Change role", + "Resend invite": "Resend invite", + "Revoke invite": "Revoke invite", + "Activate user": "Activate user", + "template": "template", + "document": "document", + "published": "published", + "edited": "edited", + "created the collection": "created the collection", + "mentioned you in": "mentioned you in", + "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", + "shared": "shared", + "invited you to": "invited you to", + "Choose a date": "Choose a date", + "API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.", + "Scopes": "Scopes", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access", + "Expiration": "Expiration", + "Never expires": "Never expires", + "7 days": "7 days", + "30 days": "30 days", + "60 days": "60 days", + "90 days": "90 days", + "Custom": "Custom", + "No expiration": "No expiration", + "The document archive is empty at the moment.": "The document archive is empty at the moment.", + "Collection menu": "Collection menu", + "Drop documents to import": "Drop documents to import", + "{{ collectionName }} doesn’t contain any\n documents yet.": "{{ collectionName }} doesn’t contain any\n documents yet.", + "{{ usersCount }} users and {{ groupsCount }} groups with access": "{{ usersCount }} user and {{ groupsCount }} groups with access", + "{{ usersCount }} users and {{ groupsCount }} groups with access_plural": "{{ usersCount }} users and {{ groupsCount }} groups with access", + "{{ usersCount }} users and a group have access": "{{ usersCount }} user and a group have access", + "{{ usersCount }} users and a group have access_plural": "{{ usersCount }} users and a group have access", + "{{ usersCount }} users with access": "{{ usersCount }} user with access", + "{{ usersCount }} users with access_plural": "{{ usersCount }} users with access", + "{{ groupsCount }} groups with access": "{{ groupsCount }} group with access", + "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", + "Archived by {{userName}}": "Archived by {{userName}}", + "Share": "Share", + "Overview": "Overview", + "Recently updated": "Recently updated", + "Recently published": "Recently published", + "Least recently updated": "Least recently updated", + "A–Z": "A–Z", + "Signing in": "Signing in", + "You can safely close this window once the Outline desktop app has opened": "You can safely close this window once the Outline desktop app has opened", + "Error creating comment": "Error creating comment", + "Add a comment": "Add a comment", + "Add a reply": "Add a reply", + "Reply": "Reply", + "Post": "Post", + "Cancel": "Cancel", + "Upload image": "Upload image", + "No resolved comments": "No resolved comments", + "No comments yet": "No comments yet", + "New comments": "New comments", + "Sort comments": "Sort comments", + "Most recent": "Most recent", + "Order in doc": "Order in doc", + "Resolved": "Resolved", + "Show {{ count }} reply": "Show {{ count }} reply", + "Show {{ count }} reply_plural": "Show {{ count }} replies", + "Error updating comment": "Error updating comment", + "Document restored": "Document restored", + "Images are still uploading.\nAre you sure you want to discard them?": "Images are still uploading.\nAre you sure you want to discard them?", + "{{ count }} comment": "{{ count }} comment", + "{{ count }} comment_plural": "{{ count }} comments", + "Viewed by": "Viewed by", + "only you": "only you", + "person": "person", + "people": "people", + "Type '/' to insert, or start writing…": "Type '/' to insert, or start writing…", + "Hide contents": "Hide contents", + "Show contents": "Show contents", + "available when headings are added": "available when headings are added", + "Edit {{noun}}": "Edit {{noun}}", + "Switch to dark": "Switch to dark", + "Switch to light": "Switch to light", + "Archived": "Archived", + "Save draft": "Save draft", + "Done editing": "Done editing", + "Restore version": "Restore version", + "No history yet": "No history yet", + "Source": "Source", + "Imported from {{ source }}": "Imported from {{ source }}", + "Stats": "Stats", + "{{ count }} minute read": "{{ count }} minute read", + "{{ count }} minute read_plural": "{{ count }} minute read", + "{{ count }} words": "{{ count }} word", + "{{ count }} words_plural": "{{ count }} words", + "{{ count }} characters": "{{ count }} character", + "{{ count }} characters_plural": "{{ count }} characters", + "{{ number }} emoji": "{{ number }} emoji", + "No text selected": "No text selected", + "{{ count }} words selected": "{{ count }} word selected", + "{{ count }} words selected_plural": "{{ count }} words selected", + "{{ count }} characters selected": "{{ count }} character selected", + "{{ count }} characters selected_plural": "{{ count }} characters selected", + "Contributors": "Contributors", + "Created": "Created", + "Last updated": "Last updated", + "Creator": "Creator", + "Last edited": "Last edited", + "Previously edited": "Previously edited", + "No one else has viewed yet": "No one else has viewed yet", + "Viewed {{ count }} times by {{ teamMembers }} people": "Viewed {{ count }} time by {{ teamMembers }} people", + "Viewed {{ count }} times by {{ teamMembers }} people_plural": "Viewed {{ count }} times by {{ teamMembers }} people", + "Viewer insights are disabled.": "Viewer insights are disabled.", + "Sorry, the last change could not be persisted – please reload the page": "Sorry, the last change could not be persisted – please reload the page", + "{{ count }} days": "{{ count }} day", + "{{ count }} days_plural": "{{ count }} days", + "This template will be permanently deleted in <2> unless restored.": "This template will be permanently deleted in <2> unless restored.", + "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", + "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents", + "You’re editing a template": "You’re editing a template", + "Deleted by {{userName}}": "Deleted by {{userName}}", + "Observing {{ userName }}": "Observing {{ userName }}", + "Backlinks": "Backlinks", + "Close": "Close", + "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} is using {{ appName }} to share documents, please login to continue.", + "Are you sure you want to delete the {{ documentTitle }} template?": "Are you sure you want to delete the {{ documentTitle }} template?", + "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history.": "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history.", + "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history and {{ any }} nested document.": "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history and {{ any }} nested document.", + "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history and {{ any }} nested document._plural": "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history and {{ any }} nested documents.", + "If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.": "If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.", + "Select a location to move": "Select a location to move", + "Document moved": "Document moved", + "Couldn’t move the document, try again?": "Couldn’t move the document, try again?", + "Move to {{ location }}": "Move to {{ location }}", + "Couldn’t create the document, try again?": "Couldn’t create the document, try again?", + "Document permanently deleted": "Document permanently deleted", + "Are you sure you want to permanently delete the {{ documentTitle }} document? This action is immediate and cannot be undone.": "Are you sure you want to permanently delete the {{ documentTitle }} document? This action is immediate and cannot be undone.", + "Select a location to publish": "Select a location to publish", + "Document published": "Document published", + "Couldn’t publish the document, try again?": "Couldn’t publish the document, try again?", + "Publish in {{ location }}": "Publish in {{ location }}", + "Search documents": "Search documents", + "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?", + "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", + "Warning Sign": "Warning Sign", + "A workspace admin ({{ suspendedContactEmail }}) has suspended your account. To re-activate your account, please reach out to them directly.": "A workspace admin ({{ suspendedContactEmail }}) has suspended your account. To re-activate your account, please reach out to them directly.", + "Created by me": "Created by me", + "Weird, this shouldn’t ever be empty": "Weird, this shouldn’t ever be empty", + "You haven’t created any documents yet": "You haven’t created any documents yet", + "Documents you’ve recently viewed will be here for easy access": "Documents you’ve recently viewed will be here for easy access", + "We sent out your invites!": "We sent out your invites!", + "Those email addresses are already invited": "Those email addresses are already invited", + "Sorry, you can only send {{MAX_INVITES}} invites at a time": "Sorry, you can only send {{MAX_INVITES}} invites at a time", + "Invited {{roleName}} will receive access to": "Invited {{roleName}} will receive access to", + "{{collectionCount}} collections": "{{collectionCount}} collections", + "Admin": "Admin", + "Can manage all workspace settings": "Can manage all workspace settings", + "Can create, edit, and delete documents": "Can create, edit, and delete documents", + "Can view and comment": "Can view and comment", + "Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.", + "Invite members to join your workspace. They will need to sign in with {{signinMethods}}.": "Invite members to join your workspace. They will need to sign in with {{signinMethods}}.", + "As an admin you can also <2>enable email sign-in.": "As an admin you can also <2>enable email sign-in.", + "Invite as": "Invite as", + "Role": "Role", + "Email": "Email", + "Add another": "Add another", + "Inviting": "Inviting", + "Send Invites": "Send Invites", + "Open command menu": "Open command menu", + "Forward": "Forward", + "Edit current document": "Edit current document", + "Move current document": "Move current document", + "Open document history": "Open document history", + "Jump to search": "Jump to search", + "Jump to home": "Jump to home", + "Focus search input": "Focus search input", + "Open this guide": "Open this guide", + "Enter": "Enter", + "Publish document and exit": "Publish document and exit", + "Save document": "Save document", + "Cancel editing": "Cancel editing", + "Collaboration": "Collaboration", + "Formatting": "Formatting", + "Paragraph": "Paragraph", + "Large header": "Large header", + "Medium header": "Medium header", + "Small header": "Small header", + "Underline": "Underline", + "Undo": "Undo", + "Redo": "Redo", + "Lists": "Lists", + "Toggle task list item": "Toggle task list item", + "Tab": "Tab", + "Indent list item": "Indent list item", + "Outdent list item": "Outdent list item", + "Move list item up": "Move list item up", + "Move list item down": "Move list item down", + "Tables": "Tables", + "Insert row": "Insert row", + "Next cell": "Next cell", + "Previous cell": "Previous cell", + "Space": "Space", + "Numbered list": "Numbered list", + "Blockquote": "Blockquote", + "Horizontal divider": "Horizontal divider", + "LaTeX block": "LaTeX block", + "Inline code": "Inline code", + "Inline LaTeX": "Inline LaTeX", + "Triggers": "Triggers", + "Mention user or document": "Mention user or document", + "Emoji": "Emoji", + "Insert block": "Insert block", + "Sign In": "Sign In", + "Continue with Email": "Continue with Email", + "Continue with {{ authProviderName }}": "Continue with {{ authProviderName }}", + "Back to home": "Back to home", + "The workspace could not be found": "The workspace could not be found", + "To continue, enter your workspace’s subdomain.": "To continue, enter your workspace’s subdomain.", + "subdomain": "subdomain", + "Continue": "Continue", + "The domain associated with your email address has not been allowed for this workspace.": "The domain associated with your email address has not been allowed for this workspace.", + "Unable to sign-in. Please navigate to your workspace's custom URL, then try to sign-in again.<1>If you were invited to a workspace, you will find a link to it in the invite email.": "Unable to sign-in. Please navigate to your workspace's custom URL, then try to sign-in again.<1>If you were invited to a workspace, you will find a link to it in the invite email.", + "Sorry, a new account cannot be created with a personal Gmail address.<1>Please use a Google Workspaces account instead.": "Sorry, a new account cannot be created with a personal Gmail address.<1>Please use a Google Workspaces account instead.", + "The workspace associated with your user is scheduled for deletion and cannot be accessed at this time.": "The workspace associated with your user is scheduled for deletion and cannot be accessed at this time.", + "The workspace you authenticated with is not authorized on this installation. Try another?": "The workspace you authenticated with is not authorized on this installation. Try another?", + "We could not read the user info supplied by your identity provider.": "We could not read the user info supplied by your identity provider.", + "Your account uses email sign-in, please sign-in with email to continue.": "Your account uses email sign-in, please sign-in with email to continue.", + "An email sign-in link was recently sent, please check your inbox or try again in a few minutes.": "An email sign-in link was recently sent, please check your inbox or try again in a few minutes.", + "Authentication failed – we were unable to sign you in at this time. Please try again.": "Authentication failed – we were unable to sign you in at this time. Please try again.", + "Authentication failed – you do not have permission to access this workspace.": "Authentication failed – you do not have permission to access this workspace.", + "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.", + "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", + "Error": "Error", + "Failed to load configuration.": "Failed to load configuration.", + "Check the network requests and server logs for full details of the error.": "Check the network requests and server logs for full details of the error.", + "Custom domain setup": "Custom domain setup", + "Almost there": "Almost there", + "Your custom domain is successfully pointing at Outline. To complete the setup process please contact support.": "Your custom domain is successfully pointing at Outline. To complete the setup process please contact support.", + "Choose workspace": "Choose workspace", + "This login method requires choosing your workspace to continue": "This login method requires choosing your workspace to continue", + "Check your email": "Check your email", + "A magic sign-in link has been sent to the email {{ emailLinkSentTo }} if an account exists.": "A magic sign-in link has been sent to the email {{ emailLinkSentTo }} if an account exists.", + "Back to login": "Back to login", + "Get started by choosing a sign-in method for your new workspace below…": "Get started by choosing a sign-in method for your new workspace below…", + "Login to {{ authProviderName }}": "Login to {{ authProviderName }}", + "You signed in with {{ authProviderName }} last time.": "You signed in with {{ authProviderName }} last time.", + "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", + "Past day": "Past day", + "Past week": "Past week", + "Past month": "Past month", + "Past year": "Past year", + "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", + "No documents found for your search filters.": "No documents found for your search filters.", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", + "Last used": "Last used", + "No expiry": "No expiry", + "Restricted scope": "Restricted scope", + "API key copied to clipboard": "API key copied to clipboard", + "Copied": "Copied", + "Revoking": "Revoking", + "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", + "Disconnect integration": "Disconnect integration", + "Connected": "Connected", + "Disconnect": "Disconnect", + "Disconnecting": "Disconnecting", + "Allowed domains": "Allowed domains", + "The domains which should be allowed to create new accounts using SSO. Changing this setting does not affect existing user accounts.": "The domains which should be allowed to create new accounts using SSO. Changing this setting does not affect existing user accounts.", + "Remove domain": "Remove domain", + "Add a domain": "Add a domain", + "Save changes": "Save changes", + "Please choose a single file to import": "Please choose a single file to import", + "Your import is being processed, you can safely leave this page": "Your import is being processed, you can safely leave this page", + "File not supported – please upload a valid ZIP file": "File not supported – please upload a valid ZIP file", + "Set the default permission level for collections created from the import": "Set the default permission level for collections created from the import", + "Start import": "Start import", + "Processing": "Processing", + "Expired": "Expired", + "Completed": "Completed", + "Failed": "Failed", + "All collections": "All collections", + "Import deleted": "Import deleted", + "Export deleted": "Export deleted", + "Are you sure you want to delete this import?": "Are you sure you want to delete this import?", + "Deleting this import will also delete all collections and documents that were created from it. This cannot be undone.": "Deleting this import will also delete all collections and documents that were created from it. This cannot be undone.", + "Check server logs for more details.": "Check server logs for more details.", + "{{userName}} requested": "{{userName}} requested", + "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering for example.": "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering for example.", + "You’ll be able to add people to the group next.": "You’ll be able to add people to the group next.", + "You can edit the name of this group at any time, however doing so too often might confuse your team mates.": "You can edit the name of this group at any time, however doing so too often might confuse your team mates.", + "Are you sure about that? Deleting the {{groupName}} group will cause its members to lose access to collections and documents that it is associated with.": "Are you sure about that? Deleting the {{groupName}} group will cause its members to lose access to collections and documents that it is associated with.", + "Add people to {{groupName}}": "Add people to {{groupName}}", + "{{userName}} was removed from the group": "{{userName}} was removed from the group", + "Add and remove members to the {{groupName}} group. Members of the group will have access to any collections this group has been added to.": "Add and remove members to the {{groupName}} group. Members of the group will have access to any collections this group has been added to.", + "Add people": "Add people", + "Listing members of the {{groupName}} group.": "Listing members of the {{groupName}} group.", + "This group has no members.": "This group has no members.", + "{{userName}} was added to the group": "{{userName}} was added to the group", + "Could not add user": "Could not add user", + "Add members below to give them access to the group. Need to add someone who’s not yet a member?": "Add members below to give them access to the group. Need to add someone who’s not yet a member?", + "Invite them to {{teamName}}": "Invite them to {{teamName}}", + "Ask an admin to invite them first": "Ask an admin to invite them first", + "Search by name": "Search by name", + "Search people": "Search people", + "No people matching your search": "No people matching your search", + "No people left to add": "No people left to add", + "Date created": "Date created", + "Upload": "Upload", + "How does this work?": "How does this work?", + "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export Data.": "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export Data.", + "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload", + "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open Export in the Settings sidebar and click on Export Data.": "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open Export in the Settings sidebar and click on Export Data.", + "Drag and drop the zip file from the Markdown export option in {{appName}}, or click to upload": "Drag and drop the zip file from the Markdown export option in {{appName}}, or click to upload", + "Where do I find the file?": "Where do I find the file?", + "In Notion, click Settings & Members in the left sidebar and open Settings. Look for the Export section, and click Export all workspace content. Choose HTML as the format for the best data compatability.": "In Notion, click Settings & Members in the left sidebar and open Settings. Look for the Export section, and click Export all workspace content. Choose HTML as the format for the best data compatability.", + "Drag and drop the zip file from Notion's HTML export option, or click to upload": "Drag and drop the zip file from Notion's HTML export option, or click to upload", + "Last active": "Last active", + "Guest": "Guest", + "Shared by": "Shared by", + "Date shared": "Date shared", + "Last accessed": "Last accessed", + "Domain": "Domain", + "Views": "Views", + "All roles": "All roles", + "Admins": "Admins", + "Editors": "Editors", + "All status": "All status", + "Active": "Active", + "Settings saved": "Settings saved", + "Logo updated": "Logo updated", + "Unable to upload new logo": "Unable to upload new logo", + "Delete workspace": "Delete workspace", + "These settings affect the way that your workspace appears to everyone on the team.": "These settings affect the way that your workspace appears to everyone on the team.", + "Display": "Display", + "The logo is displayed at the top left of the application.": "The logo is displayed at the top left of the application.", + "The workspace name, usually the same as your company name.": "The workspace name, usually the same as your company name.", + "Theme": "Theme", + "Customize the interface look and feel.": "Customize the interface look and feel.", + "Reset theme": "Reset theme", + "Accent color": "Accent color", + "Accent text color": "Accent text color", + "Public branding": "Public branding", + "Show your team’s logo on public pages like login and shared documents.": "Show your team’s logo on public pages like login and shared documents.", + "Table of contents position": "Table of contents position", + "The side to display the table of contents in relation to the main content.": "The side to display the table of contents in relation to the main content.", + "Left": "Left", + "Right": "Right", + "Behavior": "Behavior", + "Subdomain": "Subdomain", + "Your workspace will be accessible at": "Your workspace will be accessible at", + "Choose a subdomain to enable a login page just for your team.": "Choose a subdomain to enable a login page just for your team.", + "Start view": "Start view", + "This is the screen that workspace members will first see when they sign in.": "This is the screen that workspace members will first see when they sign in.", + "Danger": "Danger", + "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", + "Export data": "Export data", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "Recent exports": "Recent exports", + "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", + "Separate editing": "Separate editing", + "When enabled documents have a separate editing mode by default instead of being always editable. This setting can be overridden by user preferences.": "When enabled documents have a separate editing mode by default instead of being always editable. This setting can be overridden by user preferences.", + "Commenting": "Commenting", + "When enabled team members can add comments to documents.": "When enabled team members can add comments to documents.", + "Create a group": "Create a group", + "Could not load groups": "Could not load groups", + "New group": "New group", + "Groups can be used to organize and manage the people on your team.": "Groups can be used to organize and manage the people on your team.", + "No groups have been created yet": "No groups have been created yet", + "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.", + "Import a zip file of Markdown documents (exported from version 0.67.0 or earlier)": "Import a zip file of Markdown documents (exported from version 0.67.0 or earlier)", + "Import data": "Import data", + "Import a JSON data file exported from another {{ appName }} instance": "Import a JSON data file exported from another {{ appName }} instance", + "Import pages exported from Notion": "Import pages exported from Notion", + "Import pages from a Confluence instance": "Import pages from a Confluence instance", + "Enterprise": "Enterprise", + "Recent imports": "Recent imports", + "Could not load members": "Could not load members", + "Everyone that has signed into {{appName}} is listed here. It’s possible that there are other users who have access through {{signinMethods}} but haven’t signed in yet.": "Everyone that has signed into {{appName}} is listed here. It’s possible that there are other users who have access through {{signinMethods}} but haven’t signed in yet.", + "Receive a notification whenever a new document is published": "Receive a notification whenever a new document is published", + "Document updated": "Document updated", + "Receive a notification when a document you are subscribed to is edited": "Receive a notification when a document you are subscribed to is edited", + "Comment posted": "Comment posted", + "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", + "Mentioned": "Mentioned", + "Receive a notification when someone mentions you in a document or comment": "Receive a notification when someone mentions you in a document or comment", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", + "Collection created": "Collection created", + "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", + "Invite accepted": "Invite accepted", + "Receive a notification when someone you invited creates an account": "Receive a notification when someone you invited creates an account", + "Invited to document": "Invited to document", + "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", + "Invited to collection": "Invited to collection", + "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Export completed": "Export completed", + "Receive a notification when an export you requested has been completed": "Receive a notification when an export you requested has been completed", + "Getting started": "Getting started", + "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", + "New features": "New features", + "Receive an email when new features of note are added": "Receive an email when new features of note are added", + "Notifications saved": "Notifications saved", + "Unsubscription successful. Your notification settings were updated": "Unsubscription successful. Your notification settings were updated", + "Manage when and where you receive email notifications.": "Manage when and where you receive email notifications.", + "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", + "Preferences saved": "Preferences saved", + "Delete account": "Delete account", + "Manage settings that affect your personal experience.": "Manage settings that affect your personal experience.", + "Language": "Language", + "Choose the interface language. Community translations are accepted though our <2>translation portal.": "Choose the interface language. Community translations are accepted though our <2>translation portal.", + "Choose your preferred interface color scheme.": "Choose your preferred interface color scheme.", + "Use pointer cursor": "Use pointer cursor", + "Show a hand cursor when hovering over interactive elements.": "Show a hand cursor when hovering over interactive elements.", + "Show line numbers": "Show line numbers", + "Show line numbers on code blocks in documents.": "Show line numbers on code blocks in documents.", + "When enabled, documents have a separate editing mode. When disabled, documents are always editable when you have permission.": "When enabled, documents have a separate editing mode. When disabled, documents are always editable when you have permission.", + "Remember previous location": "Remember previous location", + "Automatically return to the document you were last viewing when the app is re-opened.": "Automatically return to the document you were last viewing when the app is re-opened.", + "Smart text replacements": "Smart text replacements", + "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.", + "You may delete your account at any time, note that this is unrecoverable": "You may delete your account at any time, note that this is unrecoverable", + "Profile saved": "Profile saved", + "Profile picture updated": "Profile picture updated", + "Unable to upload new profile picture": "Unable to upload new profile picture", + "Manage how you appear to other members of the workspace.": "Manage how you appear to other members of the workspace.", + "Photo": "Photo", + "Choose a photo or image to represent yourself.": "Choose a photo or image to represent yourself.", + "This could be your real name, or a nickname — however you’d like people to refer to you.": "This could be your real name, or a nickname — however you’d like people to refer to you.", + "Email address": "Email address", + "Are you sure you want to require invites?": "Are you sure you want to require invites?", + "New users will first need to be invited to create an account. Default role and Allowed domains will no longer apply.": "New users will first need to be invited to create an account. Default role and Allowed domains will no longer apply.", + "Settings that impact the access, security, and content of your workspace.": "Settings that impact the access, security, and content of your workspace.", + "Allow members to sign-in with {{ authProvider }}": "Allow members to sign-in with {{ authProvider }}", + "Disabled": "Disabled", + "Allow members to sign-in using their email address": "Allow members to sign-in using their email address", + "The server must have SMTP configured to enable this setting": "The server must have SMTP configured to enable this setting", + "Access": "Access", + "Allow users to send invites": "Allow users to send invites", + "Allow editors to invite other people to the workspace": "Allow editors to invite other people to the workspace", + "Require invites": "Require invites", + "Require members to be invited to the workspace before they can create an account using SSO.": "Require members to be invited to the workspace before they can create an account using SSO.", + "Default role": "Default role", + "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "The default user role for new accounts. Changing this setting does not affect existing user accounts.", + "When enabled, documents can be shared publicly on the internet by any member of the workspace": "When enabled, documents can be shared publicly on the internet by any member of the workspace", + "Viewer document exports": "Viewer document exports", + "When enabled, viewers can see download options for documents": "When enabled, viewers can see download options for documents", + "Users can delete account": "Users can delete account", + "When enabled, users can delete their own account from the workspace": "When enabled, users can delete their own account from the workspace", + "Rich service embeds": "Rich service embeds", + "Links to supported services are shown as rich embeds within your documents": "Links to supported services are shown as rich embeds within your documents", + "Collection creation": "Collection creation", + "Allow editors to create new collections within the workspace": "Allow editors to create new collections within the workspace", + "Workspace creation": "Workspace creation", + "Allow editors to create new workspaces": "Allow editors to create new workspaces", + "Draw.io deployment": "Draw.io deployment", + "Add your self-hosted draw.io installation url here to enable automatic embedding of diagrams within documents.": "Add your self-hosted draw.io installation url here to enable automatic embedding of diagrams within documents.", + "Grist deployment": "Grist deployment", + "Add your self-hosted grist installation URL here.": "Add your self-hosted grist installation URL here.", + "Could not load shares": "Could not load shares", + "Sharing is currently disabled.": "Sharing is currently disabled.", + "You can globally enable and disable public document sharing in the security settings.": "You can globally enable and disable public document sharing in the security settings.", + "Documents that have been shared are listed below. Anyone that has the public link can access a read-only version of the document until the link has been revoked.": "Documents that have been shared are listed below. Anyone that has the public link can access a read-only version of the document until the link has been revoked.", + "You can create templates to help your team create consistent and accurate documentation.": "You can create templates to help your team create consistent and accurate documentation.", + "Alphabetical": "Alphabetical", + "There are no templates just yet.": "There are no templates just yet.", + "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.", + "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.", + "Confirmation code": "Confirmation code", + "Deleting the <1>{{workspaceName}} workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}} workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.", + "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.", + "Workspace name": "Workspace name", + "You are creating a new workspace using your current account — {{email}}": "You are creating a new workspace using your current account — {{email}}", + "To create a workspace under another email please sign up from the homepage": "To create a workspace under another email please sign up from the homepage", + "Trash emptied": "Trash emptied", + "Are you sure you want to permanently delete all the documents in Trash? This action is immediate and cannot be undone.": "Are you sure you want to permanently delete all the documents in Trash? This action is immediate and cannot be undone.", + "Recently deleted": "Recently deleted", + "Trash is empty at the moment.": "Trash is empty at the moment.", + "A confirmation code has been sent to your email address, please enter the code below to permanently destroy your account.": "A confirmation code has been sent to your email address, please enter the code below to permanently destroy your account.", + "Are you sure? Deleting your account will destroy identifying data associated with your user and cannot be undone. You will be immediately logged out of {{appName}} and all your API tokens will be revoked.": "Are you sure? Deleting your account will destroy identifying data associated with your user and cannot be undone. You will be immediately logged out of {{appName}} and all your API tokens will be revoked.", + "Delete my account": "Delete my account", + "Today": "Today", + "Yesterday": "Yesterday", + "Last week": "Last week", + "This month": "This month", + "Last month": "Last month", + "This year": "This year", + "Expired yesterday": "Expired yesterday", + "Expired {{ date }}": "Expired {{ date }}", + "Expires today": "Expires today", + "Expires tomorrow": "Expires tomorrow", + "Expires {{ date }}": "Expires {{ date }}", + "Connect": "Connect", + "Whoops, you need to accept the permissions in GitHub to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in GitHub to connect {{appName}} to your workspace. Try again?", + "Something went wrong while authenticating your request. Please try logging in again.": "Something went wrong while authenticating your request. Please try logging in again.", + "The owner of GitHub account has been requested to install the {{githubAppName}} GitHub app. Once approved, previews will be shown for respective links.": "The owner of GitHub account has been requested to install the {{githubAppName}} GitHub app. Once approved, previews will be shown for respective links.", + "Enable previews of GitHub issues and pull requests in documents by connecting a GitHub organization or specific repositories to {appName}.": "Enable previews of GitHub issues and pull requests in documents by connecting a GitHub organization or specific repositories to {appName}.", + "Enabled by {{integrationCreatedBy}}": "Enabled by {{integrationCreatedBy}}", + "Disconnecting will prevent previewing GitHub links from this organization in documents. Are you sure?": "Disconnecting will prevent previewing GitHub links from this organization in documents. Are you sure?", + "The GitHub integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The GitHub integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", + "Google Analytics": "Google Analytics", + "Add a Google Analytics 4 measurement ID to send document views and analytics from the workspace to your own Google Analytics account.": "Add a Google Analytics 4 measurement ID to send document views and analytics from the workspace to your own Google Analytics account.", + "Measurement ID": "Measurement ID", + "Create a \"Web\" stream in your Google Analytics admin dashboard and copy the measurement ID from the generated code snippet to install.": "Create a \"Web\" stream in your Google Analytics admin dashboard and copy the measurement ID from the generated code snippet to install.", + "Configure a Matomo installation to send views and analytics from the workspace to your own Matomo instance.": "Configure a Matomo installation to send views and analytics from the workspace to your own Matomo instance.", + "Instance URL": "Instance URL", + "The URL of your Matomo instance. If you are using Matomo Cloud it will end in matomo.cloud/": "The URL of your Matomo instance. If you are using Matomo Cloud it will end in matomo.cloud/", + "Site ID": "Site ID", + "An ID that uniquely identifies the website in your Matomo instance.": "An ID that uniquely identifies the website in your Matomo instance.", + "Add to Slack": "Add to Slack", + "document published": "document published", + "document updated": "document updated", + "Posting to the {{ channelName }} channel on": "Posting to the {{ channelName }} channel on", + "These events should be posted to Slack": "These events should be posted to Slack", + "This will prevent any future updates from being posted to this Slack channel. Are you sure?": "This will prevent any future updates from being posted to this Slack channel. Are you sure?", + "Whoops, you need to accept the permissions in Slack to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in Slack to connect {{appName}} to your workspace. Try again?", + "Personal account": "Personal account", + "Link your {{appName}} account to Slack to enable searching and previewing the documents you have access to, directly within chat.": "Link your {{appName}} account to Slack to enable searching and previewing the documents you have access to, directly within chat.", + "Disconnecting your personal account will prevent searching for documents from Slack. Are you sure?": "Disconnecting your personal account will prevent searching for documents from Slack. Are you sure?", + "Slash command": "Slash command", + "Get rich previews of {{ appName }} links shared in Slack and use the {{ command }} slash command to search for documents without leaving your chat.": "Get rich previews of {{ appName }} links shared in Slack and use the {{ command }} slash command to search for documents without leaving your chat.", + "This will remove the Outline slash command from your Slack workspace. Are you sure?": "This will remove the Outline slash command from your Slack workspace. Are you sure?", + "Connect {{appName}} collections to Slack channels. Messages will be automatically posted to Slack when documents are published or updated.": "Connect {{appName}} collections to Slack channels. Messages will be automatically posted to Slack when documents are published or updated.", + "Comment by {{ author }} on \"{{ title }}\"": "Comment by {{ author }} on \"{{ title }}\"", + "How to use {{ command }}": "How to use {{ command }}", + "To search your workspace use {{ command }}. \nType {{ command2 }} help to display this help text.": "To search your workspace use {{ command }}. \nType {{ command2 }} help to display this help text.", + "Post to Channel": "Post to Channel", + "This is what we found for \"{{ term }}\"": "This is what we found for \"{{ term }}\"", + "No results for \"{{ term }}\"": "No results for \"{{ term }}\"", + "It looks like you haven’t linked your {{ appName }} account to Slack yet": "It looks like you haven’t linked your {{ appName }} account to Slack yet", + "Link your account": "Link your account", + "Link your account in {{ appName }} settings to search from Slack": "Link your account in {{ appName }} settings to search from Slack", + "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.": "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.", + "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}": "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}", + "Script name": "Script name", + "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", + "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "Are you sure you want to delete the {{ name }} webhook?": "Are you sure you want to delete the {{ name }} webhook?", + "Webhook updated": "Webhook updated", + "Update": "Update", + "Updating": "Updating", + "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.", + "A memorable identifer": "A memorable identifer", + "URL": "URL", + "Signing secret": "Signing secret", + "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.", + "All events": "All events", + "All {{ groupName }} events": "All {{ groupName }} events", + "Delete webhook": "Delete webhook", + "Subscribed events": "Subscribed events", + "Edit webhook": "Edit webhook", + "Webhook created": "Webhook created", + "Webhooks": "Webhooks", + "New webhook": "New webhook", + "Webhooks can be used to notify your application when events happen in {{appName}}. Events are sent as a https request with a JSON payload in near real-time.": "Webhooks can be used to notify your application when events happen in {{appName}}. Events are sent as a https request with a JSON payload in near real-time.", + "Inactive": "Inactive", + "Create a webhook": "Create a webhook", + "Never logged in": "Never logged in", + "Online now": "Online now", + "Online {{ timeAgo }}": "Online {{ timeAgo }}", + "Viewed just now": "Viewed just now", + "You updated {{ timeAgo }}": "You updated {{ timeAgo }}", + "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", + "You created {{ timeAgo }}": "You created {{ timeAgo }}", + "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Uploading": "Uploading" +} diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index d1b33bf832..033d94acc7 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -36,6 +36,7 @@ "Development": "Utveckling", "Open document": "Öppna dokument", "New document": "Nytt dokument", + "New draft": "New draft", "New from template": "Ny från mall", "New nested document": "Nytt nästlat dokument", "Publish": "Publicera", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Dessutom används {{collectionName}} som startvyn – tar bort den kommer att återställa startvyn till startsidan.", "Sorry, an error occurred saving the collection": "Tyvärr, ett fel uppstod när samlingen skulle sparas", "Add a description": "Lägg till en beskrivning", - "Collapse": "Minimera", - "Expand": "Expandera", "Type a command or search": "Skriv ett kommando eller sök", "Choose a template": "Välj en mall", "Are you sure you want to permanently delete this entire comment thread?": "Är du säker på att du vill ta bort denna konversationen permanent?", @@ -178,6 +177,7 @@ "view and edit access": "visa och redigera åtkomst", "view only access": "visa endast åtkomst", "no access": "ingen behörighet", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "&Flytta dokument", "Moving": "Flyttar", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Förvald samling", "Install now": "Installera nu", "Deleted Collection": "Raderad samling", + "Untitled": "Utan titel", "Unpin": "Lossa", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Sök i samlingar och dokument", "No results found": "Inga resultat hittades", - "Untitled": "Utan titel", "New": "Ny", "Only visible to you": "Endast synlig för dig", "Draft": "Utkast", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Nytt dokument", - "You can't reorder documents in an alphabetically sorted collection": "Du kan inte ordna om dokument i en alfabetiskt sorterad samling", "Empty": "Tom", "Collections": "Samlingar", + "Collapse": "Minimera", + "Expand": "Expandera", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokumentet stöds inte – prova Markdown, ren text, HTML eller Word", "Go back": "Gå tillbaka", "Go forward": "Gå vidare", @@ -382,6 +382,10 @@ "Up to date": "Uppdaterad", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version efter", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versioner efter", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Du kan inte ordna om dokument i en alfabetiskt sorterad samling", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Tillbaka till appen", "Installation": "Installation", "Unstar document": "Ostjärnmärk dokument", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grupper med behörighet", "Archived by {{userName}}": "Arkiverad av {{userName}}", "Share": "Dela", + "Overview": "Overview", "Recently updated": "Nyligen uppdaterad", "Recently published": "Nyligen publicerade", "Least recently updated": "Äldst uppdaterade", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Varning", "You can delete this entire workspace including collections, documents, and users.": "Du kan ta bort hela arbetsytan inklusive samlingar, dokument och användare.", "Export data": "Exportera data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "En fullständig export kan ta lite tid, överväga att exportera ett enda dokument eller en samling. Den exporterade datan är en zip av dina dokument i Markdown format. Du kan lämna denna sida när exporten har startat – om du har aviseringar aktiverade, vi kommer att skicka en länk till {{ userEmail }} när den är klar.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Senaste exporter", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Hantera valfria och beta-funktioner. Om du ändrar dessa inställningar kommer upplevelsen att påverka alla medlemmar i arbetsytan.", "Separate editing": "Separat redigering", @@ -1138,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 2ac7dddf65..452c2ec0eb 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -36,6 +36,7 @@ "Development": "Development", "Open document": "เปิดเอกสาร", "New document": "เอกสารใหม่", + "New draft": "New draft", "New from template": "New from template", "New nested document": "เอกสารย่อยใหม่", "Publish": "Publish", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "นอกจากนี้ {{collectionName}} ยังถูกใช้เป็นมุมมองเริ่มต้น – การลบจะเป็นการรีเซ็ตมุมมองเริ่มต้นไปที่โฮมเพจ", "Sorry, an error occurred saving the collection": "ขออภัย เกิดข้อผิดพลาดขณะบันทึกคอลเลคชั่น", "Add a description": "เพิ่มคำอธิบาย", - "Collapse": "ย่อ", - "Expand": "ขยาย", "Type a command or search": "พิมพ์คำสั่งหรือค้นหา", "Choose a template": "Choose a template", "Are you sure you want to permanently delete this entire comment thread?": "Are you sure you want to permanently delete this entire comment thread?", @@ -178,6 +177,7 @@ "view and edit access": "view and edit access", "view only access": "view only access", "no access": "no access", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "ย้ายเอกสาร", "Moving": "Moving", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "คอลเลคชั่นเริ่มต้น", "Install now": "Install now", "Deleted Collection": "คอลเลคชั่นที่ถูกลบ", + "Untitled": "ไม่มีชื่อ", "Unpin": "เลิกปักหมุด", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Search collections & documents", "No results found": "No results found", - "Untitled": "ไม่มีชื่อ", "New": "สร้าง", "Only visible to you": "เฉพาะคุณเท่านั้นที่เห็นสิ่งนี้", "Draft": "ฉบับร่าง", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "โลโก้", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "สร้างเอกสารใหม่", - "You can't reorder documents in an alphabetically sorted collection": "คุณไม่สามารถจัดลำดับเอกสารใหม่ในคอลเลคชั่นที่เรียงตามตัวอักษร", "Empty": "ว่างเปล่า", "Collections": "คอลเลคชั่น", + "Collapse": "ย่อ", + "Expand": "ขยาย", "Document not supported – try Markdown, Plain text, HTML, or Word": "ไม่รองรับเอกสารชนิดนี้ – ลองใช้ Markdown, ข้อความธรรมดา, HTML หรือ Word", "Go back": "Go back", "Go forward": "Go forward", @@ -382,6 +382,10 @@ "Up to date": "Up to date", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} version behind", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions behind", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "คุณไม่สามารถจัดลำดับเอกสารใหม่ในคอลเลคชั่นที่เรียงตามตัวอักษร", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Back to App", "Installation": "การติดตั้ง", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} groups with access", "Archived by {{userName}}": "Archived by {{userName}}", "Share": "Share", + "Overview": "Overview", "Recently updated": "Recently updated", "Recently published": "Recently published", "Least recently updated": "Least recently updated", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Recent exports", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", @@ -1138,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 04276d303e..f2f0fe8c5a 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -1,5 +1,5 @@ { - "New API key": "New API key", + "New API key": "Yeni API Anahtarı", "Open collection": "Koleksiyonu Aç", "New collection": "Yeni koleksiyon", "Create a collection": "Bir koleksiyon oluştur", @@ -7,7 +7,7 @@ "Edit collection": "Koleksiyonu düzenle", "Permissions": "Yetkiler", "Collection permissions": "Koleksiyon yetkileri", - "Share this collection": "Share this collection", + "Share this collection": "Bu koleksiyonu paylaş", "Search in collection": "Koleksiyonda ara", "Star": "Yıldızla", "Unstar": "Yıldızı kaldır", @@ -36,6 +36,7 @@ "Development": "Development", "Open document": "Belgeyi aç", "New document": "Yeni belge", + "New draft": "New draft", "New from template": "Şablondan yeni", "New nested document": "Yeni iç içe belge", "Publish": "Yayınla", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Ayrıca, başlangıç görünümü olarak {{collectionName}} kullanılıyor - silinmesi, başlangıç görünümünü Ana sayfaya sıfırlayacaktır.", "Sorry, an error occurred saving the collection": "Üzgünüz, koleksiyon kaydedilirken bir hata oluştu", "Add a description": "Açıklama ekle", - "Collapse": "Daralt", - "Expand": "Genişlet", "Type a command or search": "Bir komut yazın veya arayın", "Choose a template": "Choose a template", "Are you sure you want to permanently delete this entire comment thread?": "Bu yorum dizisinin tamamını kalıcı olarak silmek istediğinizden emin misiniz?", @@ -178,6 +177,7 @@ "view and edit access": "erişimi görüntüleme ve düzenleme", "view only access": "yalnızca görüntüleme erişimi", "no access": "erişim yok", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Belgeyi taşı", "Moving": "Taşınıyor", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Varsayılan koleksiyon", "Install now": "Install now", "Deleted Collection": "Silinmiş Koleksiyon", + "Untitled": "Başlıksız", "Unpin": "Sabitlemeyi kaldır", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Koleksiyonlarda ve belgelerde arama yapın", "No results found": "Sonuç bulunamadı", - "Untitled": "Başlıksız", "New": "Yeni", "Only visible to you": "Sadece sana görünür", "Draft": "Taslak", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Yeni belge", - "You can't reorder documents in an alphabetically sorted collection": "Alfabetik olarak sıralanmış bir koleksiyondaki belgeleri yeniden sıralayamazsınız", "Empty": "Boş", "Collections": "Koleksiyonlar", + "Collapse": "Daralt", + "Expand": "Genişlet", "Document not supported – try Markdown, Plain text, HTML, or Word": "Belge desteklenmiyor - Markdown, Düz Metin, HTML veya Word'ü deneyin", "Go back": "Geri dön", "Go forward": "İleri git", @@ -382,6 +382,10 @@ "Up to date": "Güncel", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} sürümü geride", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} sürüm geride", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Alfabetik olarak sıralanmış bir koleksiyondaki belgeleri yeniden sıralayamazsınız", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Uygulamaya geri dön", "Installation": "Kurulum", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "erişimi olan {{ groupsCount }} grup", "Archived by {{userName}}": "{{userName}} tarafından arşivlendi", "Share": "Paylaş", + "Overview": "Overview", "Recently updated": "Yakında güncellendi", "Recently published": "Yakında yayınlandı", "Least recently updated": "En son güncellenen", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Export data", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Son dışa aktarmalar", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.", "Separate editing": "Separate editing", @@ -1138,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 4a8b67bfc4..a49b8a28fc 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -36,6 +36,7 @@ "Development": "Розробка", "Open document": "Відкрити документ", "New document": "Новий документ", + "New draft": "New draft", "New from template": "Новий з шаблону", "New nested document": "Новий вкладений документ", "Publish": "Зробити публічним", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Крім того, {{collectionName}} використовується як стартова сторінка – її видалення скине стартову сторінку до домашньої сторінки.", "Sorry, an error occurred saving the collection": "На жаль, під час збереження колекції сталася помилка", "Add a description": "Додати опис", - "Collapse": "Згорнути", - "Expand": "Розгорнути", "Type a command or search": "Введіть команду або текст для пошуку", "Choose a template": "Виберіть шаблон", "Are you sure you want to permanently delete this entire comment thread?": "Ви впевнені, що бажаєте остаточно видалити весь цей ланцюжок коментарів?", @@ -178,6 +177,7 @@ "view and edit access": "право перегляду та редагування", "view only access": "доступ лише на перегляд", "no access": "немає доступу", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Перемістити документ", "Moving": "Переміщення", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Переміщення документа {{ title }} до колекції {{ newCollectionName }} призведе до зміни дозволу для всіх учасників робочої області з {{ prevPermission }} на {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Колекція за замовчуванням", "Install now": "Встановити зараз", "Deleted Collection": "Видалена колекція", + "Untitled": "Без назви", "Unpin": "Відкріпити", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Пошук колекцій і документів", "No results found": "Результатів не знайдено", - "Untitled": "Без назви", "New": "Новий", "Only visible to you": "Видно лише вам", "Draft": "Чернетка", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Лого", "Archived collections": "Заархівовані колекції", - "Change permissions?": "Змінити права доступу?", "New doc": "Новий документ", - "You can't reorder documents in an alphabetically sorted collection": "Ви не можете змінити порядок документів у колекції, яка відсортована за алфавітом", "Empty": "Порожньо", "Collections": "Колекції", + "Collapse": "Згорнути", + "Expand": "Розгорнути", "Document not supported – try Markdown, Plain text, HTML, or Word": "Документ не підтримується – спробуйте Markdown, TXT-файл, HTML або Word", "Go back": "Назад", "Go forward": "Вперед", @@ -382,6 +382,10 @@ "Up to date": "Остання версія", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} версія позаду", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} версій позаду", + "Change permissions?": "Змінити права доступу?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Ви не можете змінити порядок документів у колекції, яка відсортована за алфавітом", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Назад до програми", "Installation": "Встановлення", "Unstar document": "Видалити з обраного", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} груп з доступом", "Archived by {{userName}}": "Архівовано {{userName}}", "Share": "Поширити", + "Overview": "Overview", "Recently updated": "Нещодавно оновлені", "Recently published": "Нещодавно опубліковані", "Least recently updated": "Останнє оновлення", @@ -764,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": "Увійти", @@ -928,7 +933,7 @@ "Danger": "Danger", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Експортувати дані", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Повний експорт може зайняти деякий час, спробуйте експортувати один документ або колекцію. Експортовані дані є архівом ваших документів у форматі Markdown. Ви можете залишити цю сторінку, коли експорт розпочнеться. Якщо у вас увімкнено сповіщення, ми надішлемо електронною поштою посилання на {{ userEmail }} , коли експорт буде завершено.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Останні експорти", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Керувати додатковими та бета-функціями. Зміна цих налаштувань вплине на роботу всіх учасників робочого простору.", "Separate editing": "Роздільне редагування", @@ -1138,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 1c2803c348..0849d86546 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -36,6 +36,7 @@ "Development": "Nhà phát triển", "Open document": "Mở tài liệu", "New document": "Tài liệu mới", + "New draft": "New draft", "New from template": "Tạo mới từ bản mẫu", "New nested document": "Tài liệu mới lồng nhau", "Publish": "Đăng tải", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Ngoài ra, {{collectionName}} đang được sử dụng làm chế độ xem bắt đầu - việc xóa nó sẽ đặt lại chế độ xem bắt đầu về Trang chủ.", "Sorry, an error occurred saving the collection": "Xin lỗi, đã xảy ra lỗi khi lưu bộ sưu tập", "Add a description": "Thêm mô tả", - "Collapse": "Thu nhỏ", - "Expand": "Mở rộng", "Type a command or search": "Nhập lệnh hoặc tìm kiếm", "Choose a template": "Chọn một kiểu mẫu", "Are you sure you want to permanently delete this entire comment thread?": "Bạn có chắc chắn muốn xóa bình luận này vĩnh viễn?", @@ -178,6 +177,7 @@ "view and edit access": "xem và chỉnh sửa quyền truy cập", "view only access": "chỉ xem quyền truy cập", "no access": "không có quyền truy cập", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "Chuyển tài liệu", "Moving": "Đang chuyển", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Việc di chuyển tài liệu {{ title }} sang bộ sưu tập {{ newCollectionName }} sẽ thay đổi quyền cho tất cả các thành viên trong không gian làm việc từ {{ prevPermission }} thành {{ newPermission }}.", @@ -196,6 +196,7 @@ "Default collection": "Bộ sưu tập mặc định", "Install now": "Cài đặt ngay", "Deleted Collection": "Xóa Bộ Sưu Tập", + "Untitled": "Chưa đặt tên", "Unpin": "Bỏ ghim", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "Select a location to copy", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "Copy to {{ location }}", "Search collections & documents": "Tìm kiếm bộ sưu tập và tài liệu", "No results found": "Không tìm thấy kết quả", - "Untitled": "Chưa đặt tên", "New": "Mới", "Only visible to you": "Chỉ hiển thị với bạn", "Draft": "Bản nháp", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} groups added to the document", "Logo": "Logo", "Archived collections": "Archived collections", - "Change permissions?": "Change permissions?", "New doc": "Tài liệu mới", - "You can't reorder documents in an alphabetically sorted collection": "Bạn không thể sắp xếp lại các tài liệu trong bộ sưu tập được sắp xếp theo thứ tự bảng chữ cái", "Empty": "Trống", "Collections": "Bộ sưu tập", + "Collapse": "Thu nhỏ", + "Expand": "Mở rộng", "Document not supported – try Markdown, Plain text, HTML, or Word": "Tài liệu không được hỗ trợ - hãy thử Markdown, Plain text, HTML hoặc Word", "Go back": "Quay lại", "Go forward": "Đi tiếp", @@ -382,6 +382,10 @@ "Up to date": "Đã cập nhật", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} phiên bản phía sau", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} phiên bản phía sau", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "Bạn không thể sắp xếp lại các tài liệu trong bộ sưu tập được sắp xếp theo thứ tự bảng chữ cái", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "Quay lại ứng dụng", "Installation": "Cài đặt", "Unstar document": "Unstar document", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} nhóm có quyền truy cập", "Archived by {{userName}}": "Được lưu trữ bởi {{userName}}", "Share": "Chia sẻ", + "Overview": "Overview", "Recently updated": "Được cập nhật gần đây", "Recently published": "Đăng tải gần đây", "Least recently updated": "Cập nhật ít nhất gần đây", @@ -764,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", @@ -928,7 +933,7 @@ "Danger": "Nguy hiểm", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", "Export data": "Xuất dữ liệu", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Quá trình xuất toàn bộ có thể mất chút thời gian, hãy cân nhắc xuất một tài liệu hoặc bộ sưu tập. Dữ liệu đã xuất là một tệp nén của tài liệu của bạn ở định dạng Markdown. Bạn có thể rời khỏi trang này sau khi quá trình xuất bắt đầu – nếu bạn đã bật thông báo, chúng tôi sẽ gửi email một liên kết tới {{ userEmail }} khi hoàn tất.", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "Kết xuất gần đây", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "Quản lý các tính năng tùy chọn và beta. Việc thay đổi các cài đặt này sẽ ảnh hưởng đến trải nghiệm của tất cả thành viên trong không gian làm việc.", "Separate editing": "Separate editing", @@ -1138,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 2dbd08a1a6..7c88fa7b47 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -36,6 +36,7 @@ "Development": "开发", "Open document": "打开文档", "New document": "新建文档", + "New draft": "New draft", "New from template": "从模板新建", "New nested document": "新建子文档", "Publish": "发布", @@ -59,7 +60,7 @@ "Copy public link": "复制公开链接", "Link copied to clipboard": "链接已复制到剪贴板", "Copy link": "复制链接", - "Copy": "拷贝", + "Copy": "复制", "Duplicate": "复制", "Duplicate document": "复制文档", "Copy document": "复制文档", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "另外,{{collectionName}} 被用作起始视图 - 删除它将重置起始视图为主页。", "Sorry, an error occurred saving the collection": "抱歉,保存文档集时出错", "Add a description": "添加描述", - "Collapse": "收起", - "Expand": "展开", "Type a command or search": "输入命令或搜索", "Choose a template": "选择模板", "Are you sure you want to permanently delete this entire comment thread?": "你确定要永久删除此评论吗?", @@ -178,6 +177,7 @@ "view and edit access": "可编辑", "view only access": "仅浏览权限", "no access": "无访问权限", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "你无权将 {{ documentName }} 移动到文档集 {{ collectionName }} 中", "Move document": "移动文档", "Moving": "移动", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "将文档 {{ title }} 移动到 {{ newCollectionName }} 集合将使所有工作区成员的权限从 {{ prevPermission }} 更改为 {{ newPermission }}。", @@ -196,6 +196,7 @@ "Default collection": "默认文档集", "Install now": "立即安装", "Deleted Collection": "删除文档集", + "Untitled": "无标题", "Unpin": "取消置顶", "{{ minutes }}m read": "阅读了{{ minutes }}分钟", "Select a location to copy": "选择要复制的目标位置", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "复制到 {{ location }}", "Search collections & documents": "搜索文档集和文档", "No results found": "未找到结果", - "Untitled": "无标题", "New": "新", "Only visible to you": "仅自己可见", "Draft": "草稿", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} 个组被添加到此文档", "Logo": "网站图标", "Archived collections": "归档文档集", - "Change permissions?": "更改权限?", "New doc": "新建文档", - "You can't reorder documents in an alphabetically sorted collection": "你不能在按字母排序的文档集中排序", "Empty": "空", "Collections": "文档集", + "Collapse": "收起", + "Expand": "展开", "Document not supported – try Markdown, Plain text, HTML, or Word": "不支持的文档类型 - 请用Markdown,纯文本,HTML或Word格式", "Go back": "返回", "Go forward": "前进", @@ -382,6 +382,10 @@ "Up to date": "已是最新版本", "{{ releasesBehind }} versions behind": "落后 {{ releasesBehind }} 个版本", "{{ releasesBehind }} versions behind_plural": "落后 {{ releasesBehind }} 个版本", + "Change permissions?": "更改权限?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} 不能在 {{ parentDocumentName }} 中被移动", + "You can't reorder documents in an alphabetically sorted collection": "你不能在按字母排序的文档集中排序", + "The {{ documentName }} cannot be moved here": "{{ documentName }} 不能被移动到这里", "Return to App": "返回应用", "Installation": "安装", "Unstar document": "取消收藏文档", @@ -570,8 +574,8 @@ "invited you to": "邀请你加入", "Choose a date": "选择一个日期", "API key created. Please copy the value now as it will not be shown again.": "API 密钥已创建。请现在复制值,因为它不会再次显示。", - "Scopes": "Scopes", - "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access", + "Scopes": "作用域", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "通过填写空格分割的作用域让此 API 密钥只能访问 API 的特定部分。留空以使其获得对 API 的完全访问权限", "Expiration": "过期时间", "Never expires": "永不过期", "7 days": "7 天", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} 个组有访问权限", "Archived by {{userName}}": "已被 {{userName}} 存档", "Share": "分享", + "Overview": "概览", "Recently updated": "最近更新", "Recently published": "最近发布", "Least recently updated": "最近最少更新", @@ -764,8 +769,8 @@ "Inline code": "行内代码", "Inline LaTeX": "行内公式", "Triggers": "Triggers", - "Mention user or document": "Mention user or document", - "Emoji": "Emoji", + "Mention users and more": "提及用户或文档", + "Emoji": "表情", "Insert block": "Insert block", "Sign In": "登录", "Continue with Email": "使用电子邮件继续", @@ -829,7 +834,7 @@ "by {{ name }}": "由 {{ name }}创建", "Last used": "最后使用的", "No expiry": "没有到期", - "Restricted scope": "Restricted scope", + "Restricted scope": "受限作用域", "API key copied to clipboard": "API key 已复制到剪贴板", "Copied": "已复制", "Revoking": "吊销中", @@ -928,7 +933,7 @@ "Danger": "危险操作", "You can delete this entire workspace including collections, documents, and users.": "你可以删除整个工作区,包括文档集、文档和用户。", "Export data": "导出数据", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "完整导出可能需要一些时间,请考虑导出单个文档或文档集。导出的数据是 Markdown 格式的文档压缩包。当导出已开始时你可以离开此页面。如果你开启了通知,当导出完成后,我们会发送链接至邮箱 {{ userEmail }}。", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "最近导出", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "管理可选功能和测试功能。更改这些设置将影响工作组内所有成员的使用。", "Separate editing": "独立编辑", @@ -977,7 +982,7 @@ "Manage when and where you receive email notifications.": "管理你接收电子邮件通知的时间和地点。", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "电子邮件集成当前已禁用。请设置相关的环境变量并重新启动服务器以启用通知。", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "创建个人的 API key 以通过 API 进行身份验证并在程序上控制\n 你的工作区数据。 API key 与你的用户帐户具有相同的权限。\n 关于更多详细信息,请参阅 开发者文档。", - "Personal keys": "私人 keys", + "Personal keys": "个人密钥", "Preferences saved": "首选项已保存", "Delete account": "删除账户", "Manage settings that affect your personal experience.": "管理影响你个人体验的设置。", @@ -1138,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 e6666005a7..2f7040b3af 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -36,6 +36,7 @@ "Development": "開發", "Open document": "打開文件", "New document": "建立新文件", + "New draft": "New draft", "New from template": "從範本建立", "New nested document": "建立新的子文件", "Publish": "發佈", @@ -167,8 +168,6 @@ "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "此外, {{collectionName}} 被用作開始視圖 - 刪除它會將開始頁面重置為主頁。", "Sorry, an error occurred saving the collection": "抱歉,儲存到文件集時發生了錯誤。", "Add a description": "新增描述", - "Collapse": "收合", - "Expand": "展開", "Type a command or search": "輸入或搜尋指令", "Choose a template": "選擇範本", "Are you sure you want to permanently delete this entire comment thread?": "您確定要永久刪除整個留言串嗎?", @@ -178,6 +177,7 @@ "view and edit access": "可以檢視與編輯", "view only access": "僅供檢視", "no access": "無存取權限", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection", "Move document": "移動文件", "Moving": "正在移動", "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "將文件{{ title }}移動至「{{ newCollectionName }}」文件集,會將所有工作區成員的權限從 「{{ prevPermission }}」 變更為 「 {{ newPermission }}」。", @@ -196,6 +196,7 @@ "Default collection": "預設文件集", "Install now": "立即安裝", "Deleted Collection": "刪除的文件集", + "Untitled": "無標題", "Unpin": "取消釘選", "{{ minutes }}m read": "{{ minutes }}m read", "Select a location to copy": "選擇要複製到的位置", @@ -205,7 +206,6 @@ "Copy to {{ location }}": "複製到{{ location }}", "Search collections & documents": "搜尋文件集與文件", "No results found": "找不到任何結果", - "Untitled": "無標題", "New": "新", "Only visible to you": "只有您可以檢視", "Draft": "草稿", @@ -366,11 +366,11 @@ "{{ count }} groups added to the document_plural": "{{ count }} 個團隊已新增至此文件", "Logo": "Logo", "Archived collections": "已封存的文件集", - "Change permissions?": "Change permissions?", "New doc": "新文件", - "You can't reorder documents in an alphabetically sorted collection": "您無法對按字母順序排序的文件集中的文件再重新排序", "Empty": "空無一物", "Collections": "文件集", + "Collapse": "收合", + "Expand": "展開", "Document not supported – try Markdown, Plain text, HTML, or Word": "不支援的文件格式-請嘗試使用 Markdown、純文字、HTML 或 Word 格式", "Go back": "返回", "Go forward": "前進", @@ -382,6 +382,10 @@ "Up to date": "已是最新版本", "{{ releasesBehind }} versions behind": "{{ releasesBehind }} 版本落後", "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} 數個版本落後", + "Change permissions?": "Change permissions?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "您無法對按字母順序排序的文件集中的文件再重新排序", + "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", "Return to App": "返回", "Installation": "安裝", "Unstar document": "取消星號", @@ -594,6 +598,7 @@ "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} 個群組擁有存取權限", "Archived by {{userName}}": "已由 {{userName}} 封存", "Share": "分享", + "Overview": "Overview", "Recently updated": "最近更新", "Recently published": "最近發布", "Least recently updated": "很久以前更新", @@ -764,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": "登入", @@ -928,7 +933,7 @@ "Danger": "危險", "You can delete this entire workspace including collections, documents, and users.": "您可以刪除整個工作區,包括文件集,文件,以及使用者。", "Export data": "匯出數據", - "A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "匯出所有文件集將會需要一些時間,可以的話,請考慮匯出單一的文件或文件集。我們會將您擁有的所有文件轉換為 Markdown 格式,並封裝為一個 zip 壓縮檔。\n在匯出作業開始後您即可離開這個頁面 – 如果您有開啟通知,匯出完成時我們會透過電子郵件寄送連結到 {{ userEmail }}。", + "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.", "Recent exports": "最近匯出的", "Manage optional and beta features. Changing these settings will affect the experience for all members of the workspace.": "管理可選和 Beta 測試的功能,更改這些設定會影響所有工作區的成員。", "Separate editing": "分開編輯", @@ -1138,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 66870bcc26..95e9de3ba6 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -62,6 +62,7 @@ export enum FileOperationState { export enum MentionType { User = "user", Document = "document", + Collection = "collection", } export type PublicEnv = { @@ -275,6 +276,10 @@ export type CollectionSort = { direction: "asc" | "desc"; }; +export enum SubscriptionType { + Document = "documents.update", +} + export enum NotificationEventType { PublishDocument = "documents.publish", UpdateDocument = "documents.update", diff --git a/shared/utils/EventHelper.ts b/shared/utils/EventHelper.ts index ce488355ec..18e61735cd 100644 --- a/shared/utils/EventHelper.ts +++ b/shared/utils/EventHelper.ts @@ -1,5 +1,5 @@ export class EventHelper { - public static readonly ACTIVITY_EVENTS = [ + public static ACTIVITY_EVENTS = [ "collections.create", "collections.delete", "collections.move", @@ -20,9 +20,9 @@ export class EventHelper { "users.create", "users.demote", "userMemberships.update", - ]; + ] as const; - public static readonly AUDIT_EVENTS = [ + public static AUDIT_EVENTS = [ "api_keys.create", "api_keys.delete", "authenticationProviders.update", @@ -73,5 +73,5 @@ export class EventHelper { "fileOperations.delete", "webhookSubscriptions.create", "webhookSubscriptions.delete", - ]; + ] as const; } diff --git a/shared/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 47aa863ee4..a0359c9857 100644 --- a/shared/validations.ts +++ b/shared/validations.ts @@ -29,7 +29,7 @@ export const ApiKeyValidation = { export const CollectionValidation = { /** The maximum length of the collection description */ - maxDescriptionLength: 10 * 1000, + maxDescriptionLength: 100 * 1000, /** The maximum length of the collection name */ maxNameLength: 100, @@ -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 f9c2925065..0e5e1f2a60 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.735.0": - version "3.735.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-s3/-/client-s3-3.735.0.tgz#c8b8c8303530982a82ae83b763f1941cb6c60c08" - integrity sha512-6NcxX06c4tnnu6FTFiyS8shoYLy+8TvIDkYjJ5r9tvbaysOptUKQdolOuh7+Lz95QyaqiznpCsNTxsfywLXcqw== +"@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.734.0" - "@aws-sdk/credential-provider-node" "3.734.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.735.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.734.0" + "@aws-sdk/middleware-sdk-s3" "3.758.0" "@aws-sdk/middleware-ssec" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.734.0" + "@aws-sdk/middleware-user-agent" "3.758.0" "@aws-sdk/region-config-resolver" "3.734.0" - "@aws-sdk/signature-v4-multi-region" "3.734.0" + "@aws-sdk/signature-v4-multi-region" "3.758.0" "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.734.0" + "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.734.0" + "@aws-sdk/util-user-agent-node" "3.758.0" "@aws-sdk/xml-builder" "3.734.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.1" + "@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.2" - "@smithy/middleware-retry" "^4.0.3" - "@smithy/middleware-serde" "^4.0.1" + "@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.2" + "@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.3" - "@smithy/util-defaults-mode-node" "^4.0.3" + "@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.0.2" + "@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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.734.0.tgz#789c98267f07aaa7155b404d0bfd4059c4b4deb9" - integrity sha512-oerepp0mut9VlgTwnG5Ds/lb0C0b2/rQ+hL/rF6q+HGKPfGsCuPvFx1GtwGKCXd49ase88/jVgrhcA9OQbz3kg== +"@aws-sdk/client-sso@3.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.734.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.734.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.734.0" + "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.734.0" + "@aws-sdk/util-user-agent-node" "3.758.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.1" + "@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.2" - "@smithy/middleware-retry" "^4.0.3" - "@smithy/middleware-serde" "^4.0.1" + "@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.2" + "@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.3" - "@smithy/util-defaults-mode-node" "^4.0.3" + "@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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.734.0.tgz#fa2289750efd75f4fb8c45719a4a4ea7e7755160" - integrity sha512-SxnDqf3vobdm50OLyAKfqZetv6zzwnSqwIwd3jrbopxxHKqNIM/I0xcYjD6Tn+mPig+u7iRKb9q3QnEooFTlmg== +"@aws-sdk/core@3.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.1" + "@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.2" + "@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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.734.0.tgz#6c0b1734764a7fb1616455836b1c3dacd99e50a3" - integrity sha512-gtRkzYTGafnm1FPpiNO8VBmJrYMoxhDlGPYDVcijzx3DlF8dhWnowuSBCxLSi+MJMx5hvwrX2A+e/q0QAeHqmw== +"@aws-sdk/credential-provider-env@3.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.734.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.734.0.tgz#21c5fbb380d1dd503491897b346e1e0b1d06ae41" - integrity sha512-JFSL6xhONsq+hKM8xroIPhM5/FOhiQ1cov0lZxhzZWj6Ai3UAjucy3zyIFDr9MgP1KfCYNdvyaUq9/o+HWvEDg== +"@aws-sdk/credential-provider-http@3.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.734.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.2" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" - "@smithy/util-stream" "^4.0.2" + "@smithy/util-stream" "^4.1.2" tslib "^2.6.2" -"@aws-sdk/credential-provider-ini@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.734.0.tgz#5769ae28cd255d4fc946799c0273b4af6f2f12bb" - integrity sha512-HEyaM/hWI7dNmb4NhdlcDLcgJvrilk8G4DQX6qz0i4pBZGC2l4iffuqP8K6ZQjUfz5/6894PzeFuhTORAMd+cg== +"@aws-sdk/credential-provider-ini@3.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.734.0" - "@aws-sdk/credential-provider-env" "3.734.0" - "@aws-sdk/credential-provider-http" "3.734.0" - "@aws-sdk/credential-provider-process" "3.734.0" - "@aws-sdk/credential-provider-sso" "3.734.0" - "@aws-sdk/credential-provider-web-identity" "3.734.0" - "@aws-sdk/nested-clients" "3.734.0" + "@aws-sdk/core" "3.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.734.0.tgz#86d54171c11cab5b64bfa55ab0def5e807440ad2" - integrity sha512-9NOSNbkPVb91JwaXOhyfahkzAwWdMsbWHL6fh5/PHlXYpsDjfIfT23I++toepNF2nODAJNLnOEHGYIxgNgf6jQ== +"@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.734.0" - "@aws-sdk/credential-provider-http" "3.734.0" - "@aws-sdk/credential-provider-ini" "3.734.0" - "@aws-sdk/credential-provider-process" "3.734.0" - "@aws-sdk/credential-provider-sso" "3.734.0" - "@aws-sdk/credential-provider-web-identity" "3.734.0" + "@aws-sdk/credential-provider-env" "3.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.734.0.tgz#eb1de678a9c3d2d7b382e74a670fa283327f9c45" - integrity sha512-zvjsUo+bkYn2vjT+EtLWu3eD6me+uun+Hws1IyWej/fKFAqiBPwyeyCgU7qjkiPQSXqk1U9+/HG9IQ6Iiz+eBw== +"@aws-sdk/credential-provider-process@3.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.734.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.734.0.tgz#68a9d678319e9743d65cf59e2d29c0c440d8975c" - integrity sha512-cCwwcgUBJOsV/ddyh1OGb4gKYWEaTeTsqaAK19hiNINfYV/DO9r4RMlnWAo84sSBfJuj9shUNsxzyoe6K7R92Q== +"@aws-sdk/credential-provider-sso@3.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.734.0" - "@aws-sdk/core" "3.734.0" - "@aws-sdk/token-providers" "3.734.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.734.0.tgz#666b61cc9f498a3aaecd8e38c9ae34aef37e2e64" - integrity sha512-t4OSOerc+ppK541/Iyn1AS40+2vT/qE+MFMotFkhCgCJbApeRF2ozEdnDN6tGmnl4ybcUuxnp9JWLjwDVlR/4g== +"@aws-sdk/credential-provider-web-identity@3.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.734.0" - "@aws-sdk/nested-clients" "3.734.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/crt-loader/-/crt-loader-3.734.0.tgz#a34ccbb7fb59bbbf98c96a9e1c9aa9935f9aa273" - integrity sha512-OIjMDTH5bbPAS0gvOKU4D9BEaNvAQ48ugj83RhlxqGuX9MBjkDB7i/faPwYWX1SJUMNWX+GMn4mW4sq+9HXvsA== +"@aws-sdk/crt-loader@3.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.734.0" + "@aws-sdk/util-user-agent-node" "3.758.0" aws-crt "^1.24.0" tslib "^2.6.2" -"@aws-sdk/lib-storage@3.735.0": - version "3.735.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/lib-storage/-/lib-storage-3.735.0.tgz#17821d983008ae7c4ce7c2bba4ff9adc8cbb28e3" - integrity sha512-rKCtjP1MC+coDXFJUpxVEZXY5qShE4aduWZTlmEdGptu81GgM6efNAU/GvMIB6Ttju/m+VqLYLWBuxG5js7Uhw== +"@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.2" - "@smithy/smithy-client" "^4.1.2" + "@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.735.0": - version "3.735.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.735.0.tgz#e83850711d6750df764d7cf3a1a8434fe91f1fb9" - integrity sha512-Tx7lYTPwQFRe/wQEHMR6Drh/S+X0ToAEq1Ava9QyxV1riwtepzRLojpNDELFb3YQVVYbX7FEiBMCJLMkmIIY+A== +"@aws-sdk/middleware-flexible-checksums@3.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.734.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.0.2" + "@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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.734.0.tgz#eaeec56fef54713a2a8baa1fbc8be74e8f49fb09" - integrity sha512-zeZPenDhkP/RXYMFG3exhNOe2Qukg2l2KpIjxq9o66meELiTULoIXjCmgPoWcM8zzrue06SBdTsaJDHfDl2vdA== +"@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.734.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.1" + "@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.2" + "@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.0.2" + "@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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.734.0.tgz#12d400ccb98593f2b02e4fb08239cb9835d41d3a" - integrity sha512-MFVzLWRkfFz02GqGPjqSOteLe5kPfElUrXZft1eElnqulqs6RJfVSpOV7mO90gu293tNAeggMWAVSGRPKIYVMg== +"@aws-sdk/middleware-user-agent@3.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.734.0" + "@aws-sdk/core" "3.758.0" "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.734.0" - "@smithy/core" "^3.1.1" + "@aws-sdk/util-endpoints" "3.743.0" + "@smithy/core" "^3.1.5" "@smithy/protocol-http" "^5.0.1" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/nested-clients@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.734.0.tgz#10a116d141522341c446b11783551ef863aabd27" - integrity sha512-iph2XUy8UzIfdJFWo1r0Zng9uWj3253yvW9gljhtu+y/LNmNvSnJxQk1f3D2BC5WmcoPZqTS3UsycT3mLPSzWA== +"@aws-sdk/nested-clients@3.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.734.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.734.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.734.0" + "@aws-sdk/util-endpoints" "3.743.0" "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.734.0" + "@aws-sdk/util-user-agent-node" "3.758.0" "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.1" + "@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.2" - "@smithy/middleware-retry" "^4.0.3" - "@smithy/middleware-serde" "^4.0.1" + "@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.2" + "@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.3" - "@smithy/util-defaults-mode-node" "^4.0.3" + "@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.735.0": - version "3.735.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/s3-presigned-post/-/s3-presigned-post-3.735.0.tgz#53363203c518512b89998cbad0eec6d54e88f1a3" - integrity sha512-NVbV2Wn2w/az8b5LanYdaf5fGpXrc4oaPHSkSirB3cVrGRFg5JhH5rclJy7pX4GkZXdAtEH4VF2y+r+GGanbMg== +"@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.735.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.2" + "@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.735.0": - version "3.735.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/s3-request-presigner/-/s3-request-presigner-3.735.0.tgz#f15e8e9849a4ec773294cc628cc04bf4a47d2360" - integrity sha512-PzfS4rWDLlp22NORWmezA8ZH6uwz7fAmYfdIbWsPKoy1Rpm+/6Kqn7Nx+Taz6UKNhGPtexutCoJqsMxCy0ZmxQ== +"@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.734.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.2" + "@smithy/middleware-endpoint" "^4.0.6" "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.2" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@aws-sdk/signature-v4-crt@^3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-crt/-/signature-v4-crt-3.734.0.tgz#797fefc215c39ab198a2696563c9681eb99313c1" - integrity sha512-G0qF8WSSo0RNAAo1jESM/qgB8oVYHpbsp1YTIRlJ4d79GE5/+nZCjldq+fMIUnTHQmDOa26jlxBDqxt69st7HQ== +"@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.734.0" - "@aws-sdk/signature-v4-multi-region" "3.734.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.734.0.tgz#218d254d85b5e97409266725fdd6e9c28c3fbcab" - integrity sha512-GSRP8UH30RIYkcpPILV4pWrKFjRmmNjtUd41HTKWde5GbjJvNYpxqFXw2aIJHjKTw/js3XEtGSNeTaQMVVt3CQ== +"@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.734.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.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.734.0.tgz#8880e94f21457fe5dd7074ecc52fdd43180cbb2c" - integrity sha512-2U6yWKrjWjZO8Y5SHQxkFvMVWHQWbS0ufqfAIBROqmIZNubOL7jXCiVdEFekz6MZ9LF2tvYGnOW4jX8OKDGfIw== +"@aws-sdk/token-providers@3.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.734.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" @@ -612,10 +612,10 @@ dependencies: tslib "^2.6.2" -"@aws-sdk/util-endpoints@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.734.0.tgz#43bac42a21a45477a386ccf398028e7f793bc217" - integrity sha512-w2+/E88NUbqql6uCVAsmMxDQKu7vsKV0KqhlQb0lL+RCq4zy07yXYptVNs13qrnuTfyX7uPXkXrlugvK9R1Ucg== +"@aws-sdk/util-endpoints@3.743.0": + version "3.743.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.743.0.tgz#fba654e0c5f1c8ba2b3e175dfee8e3ba4df2394a" + integrity sha512-sN1l559zrixeh5x+pttrnd0A3+r34r0tmPkJ/eaaMaAzXqsmKU/xYre9K3FNnsSS1J1k4PEfk/nHDTVUgFYjnw== dependencies: "@aws-sdk/types" "3.734.0" "@smithy/types" "^4.1.0" @@ -649,12 +649,12 @@ bowser "^2.11.0" tslib "^2.6.2" -"@aws-sdk/util-user-agent-node@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.734.0.tgz#d5c6ee192cea9d53a871178a2669b8b4dea39a68" - integrity sha512-c6Iinh+RVQKs6jYUFQ64htOU2HUXFQ3TVx+8Tu3EDF19+9vzWi9UukhIMH9rqyyEXIAkk9XL7avt8y2Uyw2dGA== +"@aws-sdk/util-user-agent-node@3.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.734.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" @@ -691,7 +691,7 @@ "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3" chokidar "^3.6.0" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.25.9", "@babel/code-frame@^7.26.2": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.26.2": version "7.26.2" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.26.2.tgz#4b5fab97d33338eff916235055f0ebc21e573a85" integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== @@ -700,44 +700,44 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.5.tgz#df93ac37f4417854130e21d72c66ff3d4b897fc7" - integrity sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg== +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.26.5", "@babel/compat-data@^7.26.8": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.8.tgz#821c1d35641c355284d4a870b8a4a7b0c141e367" + integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.20.12", "@babel/core@^7.24.4", "@babel/core@^7.26.7": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.7.tgz#0439347a183b97534d52811144d763a17f9d2b24" - integrity sha512-SRijHmF0PSPgLIBYlWnG0hyeJLwXE2CgpsXaMOrtt2yp9/86ALw6oUlj9KYuZ0JN07T4eBMVIW4li/9S1j2BGA== +"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.20.12", "@babel/core@^7.24.4", "@babel/core@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.9.tgz#71838542a4b1e49dfed353d7acbc6eb89f4a76f2" + integrity sha512-lWBYIrF7qK5+GjY5Uy+/hEgp8OJWOD/rpy74GplYRhEauvbHDeFB8t5hPOZxCZ0Oxf4Cc36tK51/l3ymJysrKw== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.5" + "@babel/generator" "^7.26.9" "@babel/helper-compilation-targets" "^7.26.5" "@babel/helper-module-transforms" "^7.26.0" - "@babel/helpers" "^7.26.7" - "@babel/parser" "^7.26.7" - "@babel/template" "^7.25.9" - "@babel/traverse" "^7.26.7" - "@babel/types" "^7.26.7" + "@babel/helpers" "^7.26.9" + "@babel/parser" "^7.26.9" + "@babel/template" "^7.26.9" + "@babel/traverse" "^7.26.9" + "@babel/types" "^7.26.9" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.26.5", "@babel/generator@^7.7.2": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.5.tgz#e44d4ab3176bbcaf78a5725da5f1dc28802a9458" - integrity sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw== +"@babel/generator@^7.26.9", "@babel/generator@^7.7.2": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.9.tgz#75a9482ad3d0cc7188a537aa4910bc59db67cbca" + integrity sha512-kEWdzjOAUMW4hAyrzJ0ZaTOu9OmpyDIQicIh0zg0EEcEkYXZb2TjtBhnHi2ViX7PKwZqF4xwqfAm299/QMP3lg== dependencies: - "@babel/parser" "^7.26.5" - "@babel/types" "^7.26.5" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" -"@babel/helper-annotate-as-pure@^7.22.5", "@babel/helper-annotate-as-pure@^7.25.7", "@babel/helper-annotate-as-pure@^7.25.9": +"@babel/helper-annotate-as-pure@^7.22.5", "@babel/helper-annotate-as-pure@^7.25.9": version "7.25.9" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz#d8eac4d2dc0d7b6e11fa6e535332e0d3184f06b4" integrity sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g== @@ -768,16 +768,7 @@ "@babel/traverse" "^7.25.9" semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.18.6": - version "7.25.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.7.tgz#dcb464f0e2cdfe0c25cc2a0a59c37ab940ce894e" - integrity sha512-byHhumTj/X47wJ6C6eLpK7wW/WBEcnUeb7D0FNc/jFQnQVw7DOso3Zz5u9x/zLrFVkHa89ZGDbkAa1D54NdrCQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.7" - regexpu-core "^6.1.1" - semver "^6.3.1" - -"@babel/helper-create-regexp-features-plugin@^7.25.9": +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.25.9": version "7.26.3" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz#5169756ecbe1d95f7866b90bb555b022595302a0" integrity sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong== @@ -800,10 +791,10 @@ resolve "^1.14.2" semver "^6.1.2" -"@babel/helper-define-polyfill-provider@^0.6.2": - version "0.6.2" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d" - integrity sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ== +"@babel/helper-define-polyfill-provider@^0.6.2", "@babel/helper-define-polyfill-provider@^0.6.3": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz#f4f2792fae2ef382074bc2d713522cf24e6ddb21" + integrity sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg== dependencies: "@babel/helper-compilation-targets" "^7.22.6" "@babel/helper-plugin-utils" "^7.22.5" @@ -843,7 +834,7 @@ dependencies: "@babel/types" "^7.25.9" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.26.5", "@babel/helper-plugin-utils@^7.8.0": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.26.5", "@babel/helper-plugin-utils@^7.8.0": version "7.26.5" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== @@ -898,20 +889,20 @@ "@babel/traverse" "^7.25.9" "@babel/types" "^7.25.9" -"@babel/helpers@^7.26.7": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.7.tgz#fd1d2a7c431b6e39290277aacfd8367857c576a4" - integrity sha512-8NHiL98vsi0mbPQmYAGWwfcFaOy4j2HY49fXJCfuDcdE7fMIsH9a7GdaeXpIBsbT7307WU8KCMp5pUVDNL4f9A== +"@babel/helpers@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.9.tgz#28f3fb45252fc88ef2dc547c8a911c255fc9fef6" + integrity sha512-Mz/4+y8udxBKdmzt/UjPACs4G3j5SshJJEFFKxlCGPydG4JAHXxjWjAwjd09tf6oINvl1VfMJo+nB7H2YKQ0dA== dependencies: - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.7" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.9" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.25.9", "@babel/parser@^7.26.5", "@babel/parser@^7.26.7", "@babel/parser@^7.7.0": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.7.tgz#e114cd099e5f7d17b05368678da0fb9f69b3385c" - integrity sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.26.9", "@babel/parser@^7.7.0": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.9.tgz#d9e78bee6dc80f9efd8f2349dcfbbcdace280fd5" + integrity sha512-81NWa1njQblgZbQHxWHpxxCzNsa3ZwvFqpUg7P+NNUU6f3UU2jBEg4OlF/J6rl8+PQGh1q6/zWScd001YwcA5A== dependencies: - "@babel/types" "^7.26.7" + "@babel/types" "^7.26.9" "@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.25.9": version "7.25.9" @@ -1078,20 +1069,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.25.9": +"@babel/plugin-syntax-typescript@^7.25.9", "@babel/plugin-syntax-typescript@^7.7.2": version "7.25.9" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz#67dda2b74da43727cf21d46cf9afef23f4365399" integrity sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ== dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-syntax-typescript@^7.7.2": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz#b3bcc51f396d15f3591683f90239de143c076844" - integrity sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-unicode-sets-regex@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357" @@ -1107,14 +1091,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-transform-async-generator-functions@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz#1b18530b077d18a407c494eb3d1d72da505283a2" - integrity sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw== +"@babel/plugin-transform-async-generator-functions@^7.26.8": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.26.8.tgz#5e3991135e3b9c6eaaf5eff56d1ae5a11df45ff8" + integrity sha512-He9Ej2X7tNf2zdKMAGOsmg2MrFc+hfoAhd3po4cWfo/NWjzEAKa0oQruj1ROVUdl0e6fb6/kE/G3SSxE0lRJOg== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.26.5" "@babel/helper-remap-async-to-generator" "^7.25.9" - "@babel/traverse" "^7.25.9" + "@babel/traverse" "^7.26.8" "@babel/plugin-transform-async-to-generator@^7.25.9": version "7.25.9" @@ -1226,12 +1210,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-transform-for-of@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz#4bdc7d42a213397905d89f02350c5267866d5755" - integrity sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A== +"@babel/plugin-transform-for-of@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz#27231f79d5170ef33b5111f07fe5cafeb2c96a56" + integrity sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.26.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" "@babel/plugin-transform-function-name@^7.25.9": @@ -1501,12 +1485,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/plugin-transform-template-literals@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz#6dbd4a24e8fad024df76d1fac6a03cf413f60fe1" - integrity sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw== +"@babel/plugin-transform-template-literals@^7.26.8": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.26.8.tgz#966b15d153a991172a540a69ad5e1845ced990b5" + integrity sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.26.5" "@babel/plugin-transform-typeof-symbol@^7.26.7": version "7.26.7" @@ -1557,12 +1541,12 @@ "@babel/helper-create-regexp-features-plugin" "^7.25.9" "@babel/helper-plugin-utils" "^7.25.9" -"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.26.7": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.26.7.tgz#24d38e211f4570b8d806337035cc3ae798e0c36d" - integrity sha512-Ycg2tnXwixaXOVb29rana8HNPgLVBof8qqtNQ9LE22IoyZboQbGSxI6ZySMdW3K5nAe6gu35IaJefUJflhUFTQ== +"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.26.9.tgz#2ec64e903d0efe743699f77a10bdf7955c2123c3" + integrity sha512-vX3qPGE8sEKEAZCWk05k3cpTAE3/nOYca++JA+Rd0z2NCNzabmYvEiSShKzm10zdquOIAVXsy2Ei/DTW34KlKQ== dependencies: - "@babel/compat-data" "^7.26.5" + "@babel/compat-data" "^7.26.8" "@babel/helper-compilation-targets" "^7.26.5" "@babel/helper-plugin-utils" "^7.26.5" "@babel/helper-validator-option" "^7.25.9" @@ -1576,7 +1560,7 @@ "@babel/plugin-syntax-import-attributes" "^7.26.0" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" "@babel/plugin-transform-arrow-functions" "^7.25.9" - "@babel/plugin-transform-async-generator-functions" "^7.25.9" + "@babel/plugin-transform-async-generator-functions" "^7.26.8" "@babel/plugin-transform-async-to-generator" "^7.25.9" "@babel/plugin-transform-block-scoped-functions" "^7.26.5" "@babel/plugin-transform-block-scoping" "^7.25.9" @@ -1591,7 +1575,7 @@ "@babel/plugin-transform-dynamic-import" "^7.25.9" "@babel/plugin-transform-exponentiation-operator" "^7.26.3" "@babel/plugin-transform-export-namespace-from" "^7.25.9" - "@babel/plugin-transform-for-of" "^7.25.9" + "@babel/plugin-transform-for-of" "^7.26.9" "@babel/plugin-transform-function-name" "^7.25.9" "@babel/plugin-transform-json-strings" "^7.25.9" "@babel/plugin-transform-literals" "^7.25.9" @@ -1619,7 +1603,7 @@ "@babel/plugin-transform-shorthand-properties" "^7.25.9" "@babel/plugin-transform-spread" "^7.25.9" "@babel/plugin-transform-sticky-regex" "^7.25.9" - "@babel/plugin-transform-template-literals" "^7.25.9" + "@babel/plugin-transform-template-literals" "^7.26.8" "@babel/plugin-transform-typeof-symbol" "^7.26.7" "@babel/plugin-transform-unicode-escapes" "^7.25.9" "@babel/plugin-transform-unicode-property-regex" "^7.25.9" @@ -1627,9 +1611,9 @@ "@babel/plugin-transform-unicode-sets-regex" "^7.25.9" "@babel/preset-modules" "0.1.6-no-external-plugins" babel-plugin-polyfill-corejs2 "^0.4.10" - babel-plugin-polyfill-corejs3 "^0.10.6" + babel-plugin-polyfill-corejs3 "^0.11.0" babel-plugin-polyfill-regenerator "^0.6.1" - core-js-compat "^3.38.1" + core-js-compat "^3.40.0" semver "^6.3.1" "@babel/preset-modules@0.1.6-no-external-plugins": @@ -1664,39 +1648,39 @@ "@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.9" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.9.tgz#aa4c6facc65b9cb3f87d75125ffd47781b475433" + integrity sha512-aA63XwOkcl4xxQa3HjPMqOP6LiK0ZDv3mUPYEFXkpHbaFjtGggE1A61FjFzJnB+p7/oy2gA8E+rcBNl/zC1tMg== dependencies: regenerator-runtime "^0.14.0" -"@babel/template@^7.25.9", "@babel/template@^7.3.3": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.9.tgz#ecb62d81a8a6f5dc5fe8abfc3901fc52ddf15016" - integrity sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg== - dependencies: - "@babel/code-frame" "^7.25.9" - "@babel/parser" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/traverse@^7.13.0", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.5", "@babel/traverse@^7.26.7", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.7.tgz#99a0a136f6a75e7fb8b0a1ace421e0b25994b8bb" - integrity sha512-1x1sgeyRLC3r5fQOM0/xtQKsYjyxmFjaOrLJNtZ81inNjyJHGIolTULPiSc/2qe1/qfpFLisLQYFnnZl7QoedA== +"@babel/template@^7.25.9", "@babel/template@^7.26.9", "@babel/template@^7.3.3": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.26.9.tgz#4577ad3ddf43d194528cff4e1fa6b232fa609bb2" + integrity sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA== dependencies: "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.5" - "@babel/parser" "^7.26.7" - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.7" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" + +"@babel/traverse@^7.13.0", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.5", "@babel/traverse@^7.26.8", "@babel/traverse@^7.26.9", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.9.tgz#4398f2394ba66d05d988b2ad13c219a2c857461a" + integrity sha512-ZYW7L+pL8ahU5fXmNbPF+iZFHCv5scFak7MZ9bwaRPLUhHh7QQEMjZUg0HevihoqCM5iSYHN61EyCoZvqC+bxg== + dependencies: + "@babel/code-frame" "^7.26.2" + "@babel/generator" "^7.26.9" + "@babel/parser" "^7.26.9" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.9" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.25.9", "@babel/types@^7.26.5", "@babel/types@^7.26.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": - version "7.26.7" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.7.tgz#5e2b89c0768e874d4d061961f3a5a153d71dc17a" - integrity sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg== +"@babel/types@^7.0.0", "@babel/types@^7.25.9", "@babel/types@^7.26.9", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.9.tgz#08b43dec79ee8e682c2ac631c010bdcac54a21ce" + integrity sha512-Y3IR1cRnOxOCDvMmNiym7XpXQ93iGDDPHx+Zj+NM+rg0fBaShfQLkg+hKPaZCEvg5N/LeCo4+Rj/i3FuJsIQaw== dependencies: "@babel/helper-string-parser" "^7.25.9" "@babel/helper-validator-identifier" "^7.25.9" @@ -1744,15 +1728,15 @@ dependencies: "@bull-board/api" "4.12.2" -"@bundle-stats/plugin-webpack-filter@4.16.0": - version "4.16.0" - resolved "https://registry.yarnpkg.com/@bundle-stats/plugin-webpack-filter/-/plugin-webpack-filter-4.16.0.tgz#9d3bd29cc3b896411350b7c34ed8658bf88a3f2a" - integrity sha512-+U5l8GSIvARjfPOrp+Nxjw0dGkr9rQVGtof5dqmamt7RmYUBnVsjZy85N4LJypivjEzSFOlRl79i/oqSCCT1/A== +"@bundle-stats/plugin-webpack-filter@4.17.0": + version "4.17.0" + resolved "https://registry.yarnpkg.com/@bundle-stats/plugin-webpack-filter/-/plugin-webpack-filter-4.17.0.tgz#761d94204b28afbeda4bd032f46ad1819134de87" + integrity sha512-sGC1c7oiRNKY19OLNB2Yha88Yt+UC7OJWlk8O6HBvN/OO8ACvZ6DuxRMNBXMyP0cDDAJlcY9v9rzy0bbnegzAw== -"@bundle-stats/plugin-webpack-validate@4.16.0": - version "4.16.0" - resolved "https://registry.yarnpkg.com/@bundle-stats/plugin-webpack-validate/-/plugin-webpack-validate-4.16.0.tgz#b9618787b1410527c0dae2a746605eb0fdf7f461" - integrity sha512-2i+iGMOBS1uPy7nZR9apHbdx8x+FBO9iW69J3IOvAoliwE/KHl2mBpXAUhg8U4f/Sv3ujfue2VFaVlP1gIqyLQ== +"@bundle-stats/plugin-webpack-validate@4.17.0": + version "4.17.0" + resolved "https://registry.yarnpkg.com/@bundle-stats/plugin-webpack-validate/-/plugin-webpack-validate-4.17.0.tgz#d507e21b00f779098078512a584c89bbc272351b" + integrity sha512-dsCAIYiQ1ohRt7wyR5gfQCT3OKLjHxRZ3F/uL0gnBO56+xnvDzO/s+A5QO4EerlXIRIUBW8JWWuYAhe8ccdFjA== dependencies: lodash "4.17.21" superstruct "2.0.2" @@ -1859,40 +1843,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" @@ -1981,225 +1970,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" @@ -2334,6 +2328,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" @@ -2462,6 +2463,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" @@ -2895,10 +2901,10 @@ before-after-hook "^2.2.0" universal-user-agent "^6.0.0" -"@octokit/endpoint@^9.0.1": - version "9.0.5" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.5.tgz#e6c0ee684e307614c02fc6ac12274c50da465c44" - integrity sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw== +"@octokit/endpoint@^9.0.6": + version "9.0.6" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.6.tgz#114d912108fe692d8b139cfe7fc0846dfd11b6c0" + integrity sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw== dependencies: "@octokit/types" "^13.1.0" universal-user-agent "^6.0.0" @@ -2995,22 +3001,22 @@ "@octokit/types" "^12.2.0" bottleneck "^2.15.3" -"@octokit/request-error@^5.0.0", "@octokit/request-error@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.0.tgz#ee4138538d08c81a60be3f320cd71063064a3b30" - integrity sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q== +"@octokit/request-error@^5.0.0", "@octokit/request-error@^5.1.0", "@octokit/request-error@^5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.1.tgz#b9218f9c1166e68bb4d0c89b638edc62c9334805" + integrity sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g== dependencies: "@octokit/types" "^13.1.0" deprecation "^2.0.0" once "^1.4.0" "@octokit/request@^8.0.1", "@octokit/request@^8.0.2", "@octokit/request@^8.3.1": - version "8.4.0" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.0.tgz#7f4b7b1daa3d1f48c0977ad8fffa2c18adef8974" - integrity sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw== + version "8.4.1" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.1.tgz#715a015ccf993087977ea4365c44791fc4572486" + integrity sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw== dependencies: - "@octokit/endpoint" "^9.0.1" - "@octokit/request-error" "^5.1.0" + "@octokit/endpoint" "^9.0.6" + "@octokit/request-error" "^5.1.1" "@octokit/types" "^13.1.0" universal-user-agent "^6.0.0" @@ -3048,10 +3054,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" @@ -3080,9 +3086,9 @@ passport-oauth "1.0.x" "@popperjs/core@^2.5.4", "@popperjs/core@^2.9.0": - version "2.11.6" - resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.6.tgz#cee20bd55e68a1720bdab363ecf0c821ded4cd45" - integrity "sha1-zuIL1V5ooXIL2rNj7PDIId7UzUU= sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==" + version "2.11.8" + resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" + integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": version "1.1.2" @@ -3377,14 +3383,14 @@ dependencies: "@react-types/shared" "^3.14.1" -"@relative-ci/agent@^4.2.13": - version "4.2.13" - resolved "https://registry.yarnpkg.com/@relative-ci/agent/-/agent-4.2.13.tgz#0cfd1732767dbf4e8f27e6b41c040d1a18cff0b2" - integrity sha512-vDNtYz38vScbK6NZ2FD8QxvjgQGKtY104wyassL3qMLYrYTdWUDqDiAJC7lHsh/LlUZOakv9M9lIPGVU99ue8Q== +"@relative-ci/agent@^4.2.14": + version "4.2.14" + resolved "https://registry.yarnpkg.com/@relative-ci/agent/-/agent-4.2.14.tgz#6e52656c5be0786d583ff6cdcce0e8c898b21172" + integrity sha512-JLrQv6ZQFuApsbT37qBJ07tfujxhhdDFm9Ap2Ap4kW9//H1JM/H1gPH7bLFi3OM2l8p7VOL2aJwz4fTlSVmY4A== dependencies: - "@bundle-stats/plugin-webpack-filter" "4.16.0" - "@bundle-stats/plugin-webpack-validate" "4.16.0" - core-js "3.38.1" + "@bundle-stats/plugin-webpack-filter" "4.17.0" + "@bundle-stats/plugin-webpack-validate" "4.17.0" + core-js "3.39.0" cosmiconfig "9.0.0" debug "4.3.7" dotenv "16.4.5" @@ -3714,17 +3720,17 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@smithy/core@^3.1.1", "@smithy/core@^3.1.2": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.1.2.tgz#f5b4c89bf054b717781d71c66b4fb594e06cbb62" - integrity sha512-htwQXkbdF13uwwDevz9BEzL5ABK+1sJpVQXywwGSH973AVOvisHNfpcB8A8761G6XgHoS2kHPqc9DqHJ2gp+/Q== +"@smithy/core@^3.1.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.0.2" + "@smithy/util-stream" "^4.1.2" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -3864,12 +3870,12 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@smithy/middleware-endpoint@^4.0.2", "@smithy/middleware-endpoint@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.0.3.tgz#74b64fb2473ae35649a8d22d41708bc5d8d99df2" - integrity sha512-YdbmWhQF5kIxZjWqPIgboVfi8i5XgiYMM7GGKFMTvBei4XjNQfNv8sukT50ITvgnWKKKpOtp0C0h7qixLgb77Q== +"@smithy/middleware-endpoint@^4.0.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.2" + "@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" @@ -3878,22 +3884,22 @@ "@smithy/util-middleware" "^4.0.1" tslib "^2.6.2" -"@smithy/middleware-retry@^4.0.3": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.0.4.tgz#95e55a1b163ff06264f20b4dbbcbd915c8028f60" - integrity sha512-wmxyUBGHaYUqul0wZiset4M39SMtDBOtUr2KpDuftKNN74Do9Y36Go6Eqzj9tL0mIPpr31ulB5UUtxcsCeGXsQ== +"@smithy/middleware-retry@^4.0.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.3" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" "@smithy/util-middleware" "^4.0.1" "@smithy/util-retry" "^4.0.1" tslib "^2.6.2" uuid "^9.0.1" -"@smithy/middleware-serde@^4.0.1", "@smithy/middleware-serde@^4.0.2": +"@smithy/middleware-serde@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@smithy/middleware-serde/-/middleware-serde-4.0.2.tgz#f792d72f6ad8fa6b172e3f19c6fe1932a856a56d" integrity sha512-Sdr5lOagCn5tt+zKsaW+U2/iwr6bI9p08wOkCp6/eL6iMbgdtc2R5Ety66rf87PeohR0ExI84Txz9GYv5ou3iQ== @@ -3919,10 +3925,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" @@ -3992,17 +3998,17 @@ "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/smithy-client@^4.1.2", "@smithy/smithy-client@^4.1.3": - version "4.1.3" - resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.1.3.tgz#2c8f9aff3377e7655cebe84239da6be277ba8554" - integrity sha512-A2Hz85pu8BJJaYFdX8yb1yocqigyqBzn+OVaVgm+Kwi/DkN8vhN2kbDVEfADo6jXf5hPKquMLGA3UINA64UZ7A== +"@smithy/smithy-client@^4.1.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.2" - "@smithy/middleware-endpoint" "^4.0.3" + "@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.0.2" + "@smithy/util-stream" "^4.1.2" tslib "^2.6.2" "@smithy/types@^4.1.0": @@ -4067,27 +4073,27 @@ dependencies: tslib "^2.6.2" -"@smithy/util-defaults-mode-browser@^4.0.3": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.4.tgz#6fa7ba64a80a77f27b9b5c6972918904578b8d5b" - integrity sha512-Ej1bV5sbrIfH++KnWxjjzFNq9nyP3RIUq2c9Iqq7SmMO/idUR24sqvKH2LUQFTSPy/K7G4sB2m8n7YYlEAfZaw== +"@smithy/util-defaults-mode-browser@^4.0.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.3" + "@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.3": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.4.tgz#5470fdc96672cee5199620b576d7025de3b17333" - integrity sha512-HE1I7gxa6yP7ZgXPCFfZSDmVmMtY7SHqzFF55gM/GPegzZKaQWZZ+nYn9C2Cc3JltCMyWe63VPR3tSFDEvuGjw== +"@smithy/util-defaults-mode-node@^4.0.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.3" + "@smithy/smithy-client" "^4.1.6" "@smithy/types" "^4.1.0" tslib "^2.6.2" @@ -4124,13 +4130,13 @@ "@smithy/types" "^4.1.0" tslib "^2.6.2" -"@smithy/util-stream@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-4.0.2.tgz#63495d3f7fba9d78748d540921136dc4a8d4c067" - integrity sha512-0eZ4G5fRzIoewtHtwaYyl8g2C+osYOT4KClXgfdNEDAgkbe2TYPqcnw4GAWabqkZCax2ihRGPe9LZnsPdIUIHA== +"@smithy/util-stream@^4.1.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" @@ -4622,10 +4628,10 @@ dependencies: dotenv "*" -"@types/emoji-regex@^9.2.0": - version "9.2.0" - resolved "https://registry.yarnpkg.com/@types/emoji-regex/-/emoji-regex-9.2.0.tgz#2e117de04f5fa561c5dcbe43a860ecd856517525" - integrity "sha1-LhF94E9fpWHF3L5DqGDs2FZRdSU= sha512-Q2BaUWiokKV2ZWk15twerRiNIex/VOGIz3pAgPMk6JZAeuGT9oAm/kA2Ri9InUtPc84bY0UQZzn/Pd2yUd33Ig==" +"@types/emoji-regex@^9.2.2": + version "9.2.2" + resolved "https://registry.yarnpkg.com/@types/emoji-regex/-/emoji-regex-9.2.2.tgz#b0b0ac07ab7d7fe1f23d9c629f0df2fad3198987" + integrity sha512-kg9a3lbO8WyO3LxZAhUtcS7X+u2FwptNcfsMCTsISiv0gV1BqLZlHgkL11XsG9n18t5uSPYtcQk6Zw8g7MbNRQ== dependencies: emoji-regex "*" @@ -5086,19 +5092,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": @@ -5601,26 +5606,19 @@ ansi-styles@^6.0.0, ansi-styles@^6.1.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" integrity "sha1-DmIyDPmcIa//OzASGSVGqsv7BcU= sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==" -any-promise@^1.0.0, any-promise@^1.1.0: +any-promise@^1.0.0: version "1.3.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" @@ -5828,6 +5826,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" @@ -5938,13 +5941,13 @@ babel-plugin-polyfill-corejs2@^0.4.10: "@babel/helper-define-polyfill-provider" "^0.6.2" semver "^6.3.1" -babel-plugin-polyfill-corejs3@^0.10.6: - version "0.10.6" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz#2deda57caef50f59c525aeb4964d3b2f867710c7" - integrity sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA== +babel-plugin-polyfill-corejs3@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.1.tgz#4e4e182f1bb37c7ba62e2af81d8dd09df31344f6" + integrity sha512-yGCqvBT4rwMczo28xkH/noxJ6MZ4nJfkVYdoDaC/utLtWrXxv27HVrzAeSbqR8SxDsp46n0YF47EbHoixy6rXQ== dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.2" - core-js-compat "^3.38.0" + "@babel/helper-define-polyfill-provider" "^0.6.3" + core-js-compat "^3.40.0" babel-plugin-polyfill-corejs3@^0.2.2: version "0.2.2" @@ -6094,6 +6097,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" @@ -6128,6 +6136,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" @@ -6224,15 +6241,15 @@ browserslist-to-esbuild@^1.2.0: dependencies: browserslist "^4.17.3" -browserslist@^4.17.3, browserslist@^4.23.3, browserslist@^4.24.0: - version "4.24.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4" - integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A== +browserslist@^4.17.3, browserslist@^4.24.0, browserslist@^4.24.3: + version "4.24.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" + integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== dependencies: - caniuse-lite "^1.0.30001663" - electron-to-chromium "^1.5.28" - node-releases "^2.0.18" - update-browserslist-db "^1.1.0" + caniuse-lite "^1.0.30001688" + electron-to-chromium "^1.5.73" + node-releases "^2.0.19" + update-browserslist-db "^1.1.1" bser@2.1.1: version "2.1.1" @@ -6256,11 +6273,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" @@ -6372,10 +6384,10 @@ camelize@^1.0.0: resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b" integrity "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs= sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg==" -caniuse-lite@^1.0.30001663: - version "1.0.30001667" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz#99fc5ea0d9c6e96897a104a8352604378377f949" - integrity sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw== +caniuse-lite@^1.0.30001688: + version "1.0.30001699" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001699.tgz#a102cf330d153bf8c92bfb5be3cd44c0a89c8c12" + integrity sha512-b+uH5BakXZ9Do9iK+CkDmctUSEqZl+SP056vc5usa0PL+ev5OHw003rZXcnjNDv3L8P5j6rwT6C0BPKSikW08w== chalk@5.3.0: version "5.3.0" @@ -6708,7 +6720,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==" @@ -6728,6 +6740,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" @@ -6771,7 +6788,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==" @@ -6842,7 +6859,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==" @@ -6881,17 +6898,17 @@ copy-to-clipboard@^3.3.3: dependencies: toggle-selection "^1.0.6" -core-js-compat@^3.38.0, core-js-compat@^3.38.1, core-js-compat@^3.9.1: - version "3.38.1" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.38.1.tgz#2bc7a298746ca5a7bcb9c164bcb120f2ebc09a09" - integrity sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw== +core-js-compat@^3.40.0, core-js-compat@^3.9.1: + version "3.40.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.40.0.tgz#7485912a5a4a4315c2fdb2cbdc623e6881c88b38" + integrity sha512-0XEDpr5y5mijvw8Lbc6E5AkjrHfp7eEoPlu36SWeAbcL8fn1G1ANe8DBlo2XoNN89oVpxWwOjYIPVzR4ZvsKCQ== dependencies: - browserslist "^4.23.3" + browserslist "^4.24.3" -core-js@3.38.1, core-js@^3.37.0: - version "3.38.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.38.1.tgz#aa375b79a286a670388a1a363363d53677c0383e" - integrity sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw== +core-js@3.39.0, core-js@^3.37.0: + version "3.39.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.39.0.tgz#57f7647f4d2d030c32a72ea23a0555b2eaa30f83" + integrity sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g== core-js@^2.4.0: version "2.6.11" @@ -7450,43 +7467,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.41.0: + version "5.41.0" + resolved "https://registry.yarnpkg.com/dd-trace/-/dd-trace-5.41.0.tgz#f64eed9b9445a3ff6e0fb48c2ecf1e98fb2d7b2f" + integrity sha512-fbveSa/36BFgd5qts6D/azGFm/kGWGieraqFfFmJas+I9zKlyFTXiLMLB2zCp+qlOwDRTv+sEkihg8/cGA99nQ== 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" @@ -7731,9 +7748,9 @@ domhandler@^5.0.1, domhandler@^5.0.2, domhandler@^5.0.3: domelementtype "^2.3.0" dompurify@^3.2.1: - version "3.2.3" - resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.2.3.tgz#05dd2175225324daabfca6603055a09b2382a4cd" - integrity sha512-U1U5Hzc2MO0oW3DF+G9qYN0aT7atAou4AgI0XjWz061nyBPbdxkfdhfy5uMgGn6+oLFCfn44ZGbdDqCzVmlOWA== + version "3.2.4" + resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.2.4.tgz#af5a5a11407524431456cf18836c55d13441cd8e" + integrity sha512-ysFSFEDVduQpyhzAob/kkuJjf5zWkZD8/A9ywSp1byueyuCfHamrCBa14/Oc2iiB0e51B+NpxSl5gmzn+Ms/mg== optionalDependencies: "@types/trusted-types" "^2.0.7" @@ -7782,7 +7799,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==" @@ -7836,10 +7853,10 @@ ejs@^3.1.6, ejs@^3.1.7: dependencies: jake "^10.8.5" -electron-to-chromium@^1.5.28: - version "1.5.32" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.32.tgz#4a05ee78e29e240aabaf73a67ce9fe73f52e1bc7" - integrity sha512-M+7ph0VGBQqqpTT2YrabjNKSQ2fEl9PVx6AK3N558gDH9NO8O6XN9SXXFWRo9u9PbEg/bWq+tjXQr+eXmxubCw== +electron-to-chromium@^1.5.73: + version "1.5.99" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.99.tgz#4817c7526d71b66e6c56c3e5231fe1113653a85d" + integrity sha512-77c/+fCyL2U+aOyqfIFi89wYLBeSTCs55xCZL0oFH0KjqsvSvyh6AdQ+UIl1vgpnQQE6g+/KK8hOIupH6VwPtg== email-providers@^1.14.0: version "1.14.0" @@ -8083,14 +8100,15 @@ es-object-atoms@^1.0.0: dependencies: es-errors "^1.3.0" -es-set-tostringtag@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz#8bb60f0a440c2e4281962428438d58545af39777" - integrity sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ== +es-set-tostringtag@^2.0.3, es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== dependencies: - get-intrinsic "^1.2.4" + es-errors "^1.3.0" + get-intrinsic "^1.2.6" has-tostringtag "^1.0.2" - hasown "^2.0.1" + hasown "^2.0.2" es-shim-unscopables@^1.0.0, es-shim-unscopables@^1.0.2: version "1.0.2" @@ -8155,33 +8173,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" @@ -8212,10 +8231,10 @@ esbuild@^0.21.3: "@esbuild/win32-ia32" "0.21.5" "@esbuild/win32-x64" "0.21.5" -escalade@^3.1.1, escalade@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== +escalade@^3.1.1, escalade@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-html@^1.0.3: version "1.0.3" @@ -8263,19 +8282,18 @@ eslint-import-resolver-node@^0.3.9: is-core-module "^2.13.0" resolve "^1.22.4" -eslint-import-resolver-typescript@^3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.7.0.tgz#e69925936a771a9cb2de418ccebc4cdf6c0818aa" - integrity sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow== +eslint-import-resolver-typescript@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.8.0.tgz#44a0f776d296b9c3823f4859441b54c2ec5fef9a" + integrity sha512-fItUrP/+xwpavWgadrn6lsvcMe80s08xIVFXkUXvhR4cZD2ga96kRF/z/iFGDI7ZDnvtlaZ0wGic7Tw+DhgVnA== dependencies: "@nolyfill/is-core-module" "1.0.39" debug "^4.3.7" enhanced-resolve "^5.15.0" - fast-glob "^3.3.2" - get-tsconfig "^4.7.5" + get-tsconfig "^4.10.0" is-bun-module "^1.0.2" - is-glob "^4.0.3" stable-hash "^0.0.4" + tinyglobby "^0.2.10" eslint-module-utils@^2.12.0: version "2.12.0" @@ -8536,11 +8554,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" @@ -8616,11 +8629,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" @@ -8636,10 +8644,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.1.0, 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" @@ -8669,10 +8677,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" @@ -8690,10 +8698,10 @@ fd-slicer@~1.1.0: dependencies: pend "~1.2.0" -fdir@^6.2.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.3.0.tgz#fcca5a23ea20e767b15e081ee13b3e6488ee0bb0" - integrity sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ== +fdir@^6.4.2: + version "6.4.3" + resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.3.tgz#011cdacf837eca9b811c89dbb902df714273db72" + integrity sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw== fecha@^4.2.0: version "4.2.1" @@ -8799,14 +8807,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" @@ -8824,13 +8824,14 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -form-data@*, form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity "sha1-k5Gdrq82HuUpWEubMWZNwSyfpFI= sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==" +form-data@*, form-data@^4.0.0, form-data@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.2.tgz#35cabbdd30c3ce73deb2c42d3c8d3ed9ca51794c" + integrity sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" mime-types "^2.1.12" formidable@^2.0.1: @@ -8926,13 +8927,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" @@ -9054,21 +9055,13 @@ get-symbol-description@^1.1.0: es-errors "^1.3.0" get-intrinsic "^1.2.6" -get-tsconfig@^4.7.5: - version "4.8.0" - resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.8.0.tgz#125dc13a316f61650a12b20c97c11b8fd996fedd" - integrity sha512-Pgba6TExTZ0FJAn1qkJAjIeKoDJ3CsI2ChuLohJnZl/tTU8MVrq3b+2t5UOPfRa4RMsorClBjJALkJUMjG1PAw== +get-tsconfig@^4.10.0: + version "4.10.0" + resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.10.0.tgz#403a682b373a823612475a4c2928c7326fc0f6bb" + integrity sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A== dependencies: resolve-pkg-maps "^1.0.0" -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" @@ -9083,21 +9076,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" @@ -9185,7 +9176,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==" @@ -9262,7 +9253,7 @@ has-tostringtag@^1.0.0, has-tostringtag@^1.0.2: dependencies: has-symbols "^1.0.3" -hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2: +hasown@^2.0.0, hasown@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== @@ -9395,7 +9386,7 @@ 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==" @@ -9406,7 +9397,7 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" -http-errors@^1.3.1, http-errors@^1.6.3, http-errors@^1.7.3, http-errors@^1.8.1: +http-errors@^1.6.3, http-errors@^1.7.3, http-errors@^1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.1.tgz#7c3f28577cbc8a207388455dbd62295ed07bd68c" integrity "sha1-fD8oV3y8iiBziEVdvWIpXtB71ow= sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==" @@ -9487,39 +9478,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" @@ -9539,7 +9535,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==" @@ -9567,12 +9563,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" @@ -9628,11 +9624,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" @@ -9684,19 +9675,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" @@ -9834,7 +9817,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==" @@ -9868,13 +9851,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" @@ -9960,13 +9936,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" @@ -10013,18 +9982,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" @@ -10055,11 +10012,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" @@ -10072,16 +10024,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" @@ -10843,13 +10795,6 @@ koa-body@^6.0.1: formidable "^2.0.1" zod "^3.19.1" -koa-compose@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/koa-compose/-/koa-compose-3.2.1.tgz#a85ccb40b7d986d8e5a345b3a1ace8eabcf54de7" - integrity "sha1-qFzLQLfZhtjlo0Wzoazo6rz1Tec= sha512-8gen2cvKHIZ35eDEik5WOo8zbVp9t4cP8p4hW4uE55waxolLRexKKrqfCpwhGVppnB40jWeF8bZeTVg99eZgPw==" - dependencies: - any-promise "^1.1.0" - koa-compose@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/koa-compose/-/koa-compose-4.1.0.tgz#507306b9371901db41121c812e923d0d67d3e877" @@ -10903,17 +10848,14 @@ koa-mount@^4.0.0: debug "^4.0.1" koa-compose "^4.1.0" -koa-router@7.4.0: - version "7.4.0" - resolved "https://registry.yarnpkg.com/koa-router/-/koa-router-7.4.0.tgz#aee1f7adc02d5cb31d7d67465c9eacc825e8c5e0" - integrity "sha1-ruH3rcAtXLMdfWdGXJ6syCXoxeA= sha512-IWhaDXeAnfDBEpWS6hkGdZ1ablgr6Q6pGdXCyK38RbzuH4LkUOpPqPw+3f8l8aTDrQmBQ7xJc0bs2yV4dzcO+g==" +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 "^3.1.0" - http-errors "^1.3.1" - koa-compose "^3.0.0" - methods "^1.0.1" - path-to-regexp "^1.1.1" - urijs "^1.19.0" + http-errors "^2.0.0" + koa-compose "^4.1.0" + path-to-regexp "^8.1.0" koa-router@^10.0.0: version "10.0.0" @@ -10969,10 +10911,10 @@ koa-views@^7.0.1: pretty "^2.0.0" resolve-path "^1.4.0" -koa@^2.13.1, koa@^2.15.3: - version "2.15.3" - resolved "https://registry.yarnpkg.com/koa/-/koa-2.15.3.tgz#062809266ee75ce0c75f6510a005b0e38f8c519a" - integrity sha512-j/8tY9j5t+GVMLeioLaxweJiKUayFhlGqNTzf2ZGwL0ZCQijd2RLHK0SLW5Tsko8YyyqCZC2cojIb0/s62qTAg== +koa@^2.13.1, koa@^2.15.4: + version "2.15.4" + resolved "https://registry.yarnpkg.com/koa/-/koa-2.15.4.tgz#7000b3d8354558671adb1ba1b1c09bedb5f8da75" + integrity sha512-7fNBIdrU2PEgLljXoPWoyY4r1e+ToWCmzS/wwMPbUNs7X+5MMET1ObhJBlUkF5uZG9B6QhM2zS1TsH6adegkiQ== dependencies: accepts "^1.3.5" cache-content-type "^1.0.0" @@ -11046,24 +10988,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" @@ -11137,11 +11070,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" @@ -11637,7 +11575,7 @@ mermaid@11.4.1: ts-dedent "^2.2.0" uuid "^9.0.1" -methods@^1.0.1, methods@^1.1.2: +methods@^1.1.2: 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==" @@ -11789,16 +11727,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" @@ -11859,7 +11787,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==" @@ -11896,16 +11824,21 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" -node-releases@^2.0.18: - version "2.0.18" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" - integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== +node-releases@^2.0.19: + version "2.0.19" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" + integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== -nodemailer@6.9.16, nodemailer@^6.9.16: +nodemailer@6.9.16: version "6.9.16" resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.9.16.tgz#3ebdf6c6f477c571c0facb0727b33892635e0b8b" integrity sha512-psAuZdTIRN08HKVd/E8ObdV6NO7NTBY3KsC30F7M4H1OnmLCUNaS56FpYxyb26zWLSyYF9Ozch9KYHhHegsiOQ== +nodemailer@^6.10.0: + version "6.10.0" + resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.10.0.tgz#1f24c9de94ad79c6206f66d132776b6503003912" + integrity sha512-SQ3wZCExjeSatLE/HBaXS5vqUOQk6GtBdIIKxiFdmm01mOQZX/POJkO3SUX1wDiYcwUOJwT23scFSC9fY2H8IA== + nodemon@^3.1.9: version "3.1.9" resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.9.tgz#df502cdc3b120e1c3c0c6e4152349019efa7387b" @@ -11936,14 +11869,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==" @@ -11953,12 +11879,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" @@ -12027,7 +11953,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== @@ -12100,7 +12026,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==" @@ -12175,13 +12101,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" @@ -12422,11 +12341,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" @@ -12462,12 +12376,12 @@ 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: +path-to-regexp@^1.7.0: version "1.8.0" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a" integrity "sha1-iHs7qdhDk+h6CgufTLdWGYtTVIo= sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==" @@ -12479,6 +12393,11 @@ path-to-regexp@^6.1.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" resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" @@ -12570,10 +12489,10 @@ pgpass@1.x: dependencies: split2 "^3.1.1" -picocolors@^1.0.0, picocolors@^1.0.1, picocolors@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" - integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== +picocolors@^1.0.0, picocolors@^1.1.0, picocolors@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" @@ -12992,14 +12911,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" @@ -13008,15 +12919,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" @@ -13078,24 +12980,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" @@ -13217,10 +13114,10 @@ react-is@^17.0.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity "sha1-GZQx7qqi4J+GQn77tPFHPttHYJs= sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" -react-medium-image-zoom@5.2.10: - version "5.2.10" - resolved "https://registry.yarnpkg.com/react-medium-image-zoom/-/react-medium-image-zoom-5.2.10.tgz#5e913804bc282a165b18d46a06aa3035bcc7b946" - integrity sha512-JBYf4u0zsocezIDtrjwStD+8sX+c8XuLsdz+HxPbojRj0sCicua0XOQKysuPetoFyX+YgStfj+vEtZ+699O/pg== +react-medium-image-zoom@5.2.13: + version "5.2.13" + resolved "https://registry.yarnpkg.com/react-medium-image-zoom/-/react-medium-image-zoom-5.2.13.tgz#72e0aa6987585250efe3ad5fe963891d5ffe99a0" + integrity sha512-KcBL4OsoUQJgIFh6vQgt/6sRGqDy6bQBcsbhGD2tsy4B5Pw3dWrboocVOyIm76RRALEZ6Qwp3EDvIvfEv0m5sg== react-merge-refs@^2.1.1: version "2.1.1" @@ -13340,16 +13237,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==" @@ -13362,6 +13250,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" @@ -13519,18 +13416,6 @@ regexpp@^3.0.0: resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" integrity "sha1-BCWido2PI7rXDKS5BGH6LxIT4bI= sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==" -regexpu-core@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.1.1.tgz#b469b245594cb2d088ceebc6369dceb8c00becac" - integrity sha512-k67Nb9jvwJcJmVpw0jPttR1/zVfnKf8Km0IPatrU/zJ5XeG3+Slx0xLXs9HByJSzXzrlz5EDvN6yLNMDc2qdnw== - dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties "^10.2.0" - regjsgen "^0.8.0" - regjsparser "^0.11.0" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" - regexpu-core@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.2.0.tgz#0e5190d79e542bf294955dccabae04d3c7d53826" @@ -13548,13 +13433,6 @@ regjsgen@^0.8.0: resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.8.0.tgz#df23ff26e0c5b300a6470cad160a9d090c3a37ab" integrity sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q== -regjsparser@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.11.1.tgz#ae55c74f646db0c8fcb922d4da635e33da405149" - integrity sha512-1DHODs4B8p/mQHU9kr+jv8+wIC9mtG4eBHxWxIq5mhjE3D5oORhCc6deRKzTjs9DcfRFmj9BHSDguZklqCGFWQ== - dependencies: - jsesc "~3.0.2" - regjsparser@^0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.12.0.tgz#0e846df6c6530586429377de56e0475583b088dc" @@ -13567,23 +13445,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" @@ -13643,12 +13504,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" @@ -13718,10 +13579,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" @@ -13925,6 +13786,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" @@ -13935,10 +13801,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" @@ -14177,10 +14043,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" @@ -14375,18 +14241,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" @@ -14707,6 +14582,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" @@ -14738,15 +14620,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==" @@ -14754,13 +14628,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" @@ -14794,12 +14661,12 @@ tinyexec@^0.3.0: resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-0.3.1.tgz#0ab0daf93b43e2c211212396bdb836b468c97c98" integrity sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ== -tinyglobby@^0.2.0: - version "0.2.5" - resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.5.tgz#8cdd1df1b155bf2a3c4d5ea2581489f967a38318" - integrity sha512-Dlqgt6h0QkoHttG53/WGADNh9QhcjCAIZMTERAVhdpmIBEejSuLI9ZmGKWzB7tweBjlk30+s/ofi4SLmBeTYhw== +tinyglobby@^0.2.0, tinyglobby@^0.2.10: + version "0.2.10" + resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.10.tgz#e712cf2dc9b95a1f5c5bbd159720e15833977a0f" + integrity sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew== dependencies: - fdir "^6.2.0" + fdir "^6.4.2" picomatch "^4.0.2" tippy.js@^6.3.1: @@ -14836,14 +14703,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" @@ -14856,12 +14715,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" @@ -14978,6 +14837,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" @@ -15104,15 +14970,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" @@ -15134,6 +14995,11 @@ uid2@0.0.3, uid2@0.0.x: resolved "https://registry.yarnpkg.com/uid2/-/uid2-0.0.3.tgz#483126e11774df2f71b8b639dcd799c376162b82" integrity "sha1-SDEm4Rd03y9xuLY53NeZw3YWK4I= sha512-5gSP1liv10Gjp8cMEnFd6shzkL/D6W1uhXSFNCxDC+YI8+L8wkCYCbJ7n77Ezb4wE/xzMogecE+DtamEe9PZjg==" +ukkonen@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/ukkonen/-/ukkonen-2.1.0.tgz#7af741397e603462290aa5d4e65e514f400b29f7" + integrity sha512-unACtiJBMpL5Q+JKEBYtB88DVClP4Ch42NFkuj7Ck7jcJ4UKkkfvvfGQ2WeaMeuq7OIGLkbm0X7YN+TGP9C5bw== + umzug@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/umzug/-/umzug-2.3.0.tgz#0ef42b62df54e216b05dcaf627830a6a8b84a184" @@ -15162,11 +15028,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" @@ -15213,14 +15074,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" @@ -15266,13 +15119,13 @@ upath@^1.2.0: resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity "sha1-j2bbzVWog6za5ECK+LA1pQRMGJQ= sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==" -update-browserslist-db@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" - integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== +update-browserslist-db@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz#97e9c96ab0ae7bcac08e9ae5151d26e6bc6b5580" + integrity sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg== dependencies: - escalade "^3.1.2" - picocolors "^1.0.1" + escalade "^3.2.0" + picocolors "^1.1.1" uri-js@^4.2.2: version "4.4.0" @@ -15281,11 +15134,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -urijs@^1.19.0: - version "1.19.11" - resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.11.tgz#204b0d6b605ae80bea54bea39280cdb7c9f923cc" - integrity "sha1-IEsNa2Ba6AvqVL6jkoDNt8n5I8w= sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" - url-parse@^1.4.3, url-parse@^1.5.3: version "1.5.10" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" @@ -15358,53 +15206,57 @@ 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" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" -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==" @@ -15416,7 +15268,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==" @@ -15448,10 +15300,10 @@ vite-plugin-static-copy@^0.17.0: fs-extra "^11.1.0" picocolors "^1.0.0" -vite@^5.4.12: - version "5.4.12" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.12.tgz#627d12ff06de3942557dfe8632fd712a12a072c7" - integrity sha512-KwUaKB27TvWwDJr1GjjWthLMATbGEbeWYZIbGZ5qFIsgPP3vWzLu4cVooqhm5/Z2SPDUMjyPVjTztm5tYKwQxA== +vite@^5.4.14: + version "5.4.14" + resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.14.tgz#ff8255edb02134df180dcfca1916c37a6abe8408" + integrity sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA== dependencies: esbuild "^0.21.3" postcss "^8.4.43" @@ -15937,7 +15789,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=="