From 56c3267186ff70b5859eae629894a80a17e90715 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 8 May 2026 23:22:00 -0400 Subject: [PATCH 001/286] Update popularity scoring to use `document_insights` table as data source (#12103) * Update popularity scoring to use document_insights as data source * Use UTC dates and guard against future-dated insights Derive threshold/today as UTC day boundaries to match how document_insights.date is written, and add an upper bound to prevent future-dated rollups from collapsing the decay denominator. Co-Authored-By: Claude Opus 4.7 --------- Co-authored-by: Claude Opus 4.7 --- ...UpdateDocumentsPopularityScoreTask.test.ts | 184 +++++++++++++----- .../UpdateDocumentsPopularityScoreTask.ts | 127 ++++++------ 2 files changed, 193 insertions(+), 118 deletions(-) diff --git a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts index 77488254c3..2339825546 100644 --- a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts +++ b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts @@ -1,12 +1,7 @@ import { subDays } from "date-fns"; -import { Document, Revision, View } from "@server/models"; +import { Document, DocumentInsight } from "@server/models"; import { sequelize, sequelizeReadOnly } from "@server/storage/database"; -import { - buildDocument, - buildTeam, - buildUser, - buildComment, -} from "@server/test/factories"; +import { buildDocument, buildTeam } from "@server/test/factories"; import UpdateDocumentsPopularityScoreTask from "./UpdateDocumentsPopularityScoreTask"; const props = { @@ -19,6 +14,8 @@ const props = { vi.setConfig({ testTimeout: 30000 }); +const dayStr = (d: Date) => d.toISOString().slice(0, 10); + describe("UpdateDocumentsPopularityScoreTask", () => { let task: UpdateDocumentsPopularityScoreTask; @@ -39,13 +36,19 @@ describe("UpdateDocumentsPopularityScoreTask", () => { vi.restoreAllMocks(); }); - it("should skip execution if not at a 6-hour interval", async () => { + it("should skip execution if not at a 12-hour interval", async () => { vi.spyOn(Date.prototype, "getHours").mockReturnValue(1); const team = await buildTeam(); const document = await buildDocument({ teamId: team.id, publishedAt: new Date(), }); + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(subDays(new Date(), 1)), + revisionCount: 1, + }); await task.perform(props); @@ -53,20 +56,18 @@ describe("UpdateDocumentsPopularityScoreTask", () => { expect(updatedDocument?.popularityScore).toBe(0); }); - it("should update popularity score based on revisions", async () => { + it("should update popularity score based on revision insights", async () => { const team = await buildTeam(); - const user = await buildUser({ teamId: team.id }); const document = await buildDocument({ teamId: team.id, publishedAt: new Date(), }); - await Revision.create({ + await DocumentInsight.create({ documentId: document.id, - userId: user.id, - title: document.title, - text: "Content", - createdAt: subDays(new Date(), 1), + teamId: team.id, + date: dayStr(subDays(new Date(), 1)), + revisionCount: 3, }); await task.perform(props); @@ -75,17 +76,18 @@ describe("UpdateDocumentsPopularityScoreTask", () => { expect(updatedDocument?.popularityScore).toBeGreaterThan(0); }); - it("should update popularity score based on views", async () => { + it("should update popularity score based on view insights", async () => { const team = await buildTeam(); - const user = await buildUser({ teamId: team.id }); const document = await buildDocument({ teamId: team.id, publishedAt: new Date(), }); - await View.create({ + await DocumentInsight.create({ documentId: document.id, - userId: user.id, + teamId: team.id, + date: dayStr(new Date()), + viewCount: 5, }); await task.perform(props); @@ -94,17 +96,18 @@ describe("UpdateDocumentsPopularityScoreTask", () => { expect(updatedDocument?.popularityScore).toBeGreaterThan(0); }); - it("should update popularity score based on comments", async () => { + it("should update popularity score based on comment insights", async () => { const team = await buildTeam(); - const user = await buildUser({ teamId: team.id }); const document = await buildDocument({ teamId: team.id, publishedAt: new Date(), }); - await buildComment({ + await DocumentInsight.create({ documentId: document.id, - userId: user.id, + teamId: team.id, + date: dayStr(new Date()), + commentCount: 2, }); await task.perform(props); @@ -113,9 +116,28 @@ describe("UpdateDocumentsPopularityScoreTask", () => { expect(updatedDocument?.popularityScore).toBeGreaterThan(0); }); - it("should handle multiple documents and give higher score to more recent activity", async () => { + it("should update popularity score based on reaction insights", async () => { + const team = await buildTeam(); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(new Date()), + reactionCount: 4, + }); + + await task.perform(props); + + const updatedDocument = await Document.findByPk(document.id); + expect(updatedDocument?.popularityScore).toBeGreaterThan(0); + }); + + it("should give higher score to more recent activity", async () => { const team = await buildTeam(); - const user = await buildUser({ teamId: team.id }); const doc1 = await buildDocument({ teamId: team.id, @@ -126,22 +148,18 @@ describe("UpdateDocumentsPopularityScoreTask", () => { publishedAt: new Date(), }); - // Recent activity for doc1 - await Revision.create({ + await DocumentInsight.create({ documentId: doc1.id, - userId: user.id, - title: doc1.title, - text: "Content", - createdAt: subDays(new Date(), 1), + teamId: team.id, + date: dayStr(subDays(new Date(), 1)), + revisionCount: 1, }); - // Older activity for doc2 - await Revision.create({ + await DocumentInsight.create({ documentId: doc2.id, - userId: user.id, - title: doc2.title, - text: "Content", - createdAt: subDays(new Date(), 5), + teamId: team.id, + date: dayStr(subDays(new Date(), 5)), + revisionCount: 1, }); await task.perform(props); @@ -154,35 +172,101 @@ describe("UpdateDocumentsPopularityScoreTask", () => { ); }); + it("should sum activity across multiple days within the threshold window", async () => { + const team = await buildTeam(); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(subDays(new Date(), 1)), + viewCount: 2, + commentCount: 1, + }); + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(subDays(new Date(), 3)), + viewCount: 3, + revisionCount: 1, + }); + + await task.perform(props); + + const updatedDocument = await Document.findByPk(document.id); + expect(updatedDocument?.popularityScore).toBeGreaterThan(0); + }); + + it("should ignore insights outside the threshold window", async () => { + const team = await buildTeam(); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(subDays(new Date(), 60)), + viewCount: 100, + }); + + await task.perform(props); + + const updatedDocument = await Document.findByPk(document.id); + expect(Number(updatedDocument?.popularityScore)).toBe(0); + }); + + it("should reset score to zero when activity falls outside the window", async () => { + const team = await buildTeam(); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + // Simulate a previously-computed non-zero score with no current activity + await document.update({ popularityScore: 5.2 }); + + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(subDays(new Date(), 60)), + viewCount: 100, + }); + + await task.perform(props); + + const updatedDocument = await Document.findByPk(document.id); + expect(Number(updatedDocument?.popularityScore)).toBe(0); + }); + it("should only process published and non-deleted documents", async () => { const team = await buildTeam(); - const user = await buildUser({ teamId: team.id }); - // Unpublished document (draft) const draft = await buildDocument({ teamId: team.id, publishedAt: undefined, }); - await Revision.create({ + await DocumentInsight.create({ documentId: draft.id, - userId: user.id, - title: draft.title, - text: "Content", - createdAt: new Date(), + teamId: team.id, + date: dayStr(new Date()), + revisionCount: 1, }); - // Deleted document const deleted = await buildDocument({ teamId: team.id, publishedAt: new Date(), deletedAt: new Date(), }); - await Revision.create({ + await DocumentInsight.create({ documentId: deleted.id, - userId: user.id, - title: deleted.title, - text: "Content", - createdAt: new Date(), + teamId: team.id, + date: dayStr(new Date()), + revisionCount: 1, }); await task.perform(props); diff --git a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts index 89300b019c..33fc305f5b 100644 --- a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts +++ b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts @@ -1,6 +1,6 @@ import crypto from "node:crypto"; import { setTimeout } from "node:timers/promises"; -import { subWeeks } from "date-fns"; +import { subDays } from "date-fns"; import { QueryTypes } from "sequelize"; import { Minute } from "@shared/utils/time"; import env from "@server/env"; @@ -23,6 +23,7 @@ const TIME_OFFSET_HOURS = 2; const ACTIVITY_WEIGHTS = { revision: 1.0, comment: 1.2, + reaction: 0.8, view: 0.5, }; @@ -64,7 +65,16 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { } const now = new Date(); - const threshold = subWeeks(now, env.POPULARITY_ACTIVITY_THRESHOLD_WEEKS); + // Use UTC day boundaries to match how document_insights.date is written by + // RollupDocumentInsightsTask (which derives dates via toISOString). Local + // timezone could shift the window by a day in some deployments. + const today = now.toISOString().slice(0, 10); + const thresholdDate = subDays( + now, + env.POPULARITY_ACTIVITY_THRESHOLD_WEEKS * 7 + ) + .toISOString() + .slice(0, 10); // Generate unique table name for this run to prevent conflicts const dateStr = now.toISOString().slice(0, 19).replace(/[-:T]/g, ""); @@ -76,7 +86,7 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { await this.cleanupStaleWorkingTables(); // Setup: Create working table and populate with active document IDs - await this.setupWorkingTable(threshold, partition); + await this.setupWorkingTable(thresholdDate, today, partition); const activeCount = await this.getWorkingTableCount(); @@ -104,7 +114,7 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { batchNumber++; try { - const updated = await this.processBatch(threshold, now); + const updated = await this.processBatch(thresholdDate, today); totalUpdated += updated; Logger.debug( @@ -144,7 +154,8 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { * skip WAL logging, and data loss on crash is acceptable here. */ private async setupWorkingTable( - threshold: Date, + thresholdDate: string, + today: string, partition: PartitionInfo ): Promise { // Drop any existing table first to avoid type conflicts from previous crashed runs @@ -160,9 +171,10 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { const [startUuid, endUuid] = this.getPartitionBounds(partition); - // Populate with documents that have recent activity and are valid - // (published, not deleted). Process in chunks to avoid long-running queries. - // Read from replica to avoid excessive locking on primary. + // Populate with documents that have recent activity OR a current non-zero + // score (so dormant docs decay back to zero once activity falls out of the + // window). Must be valid: published and not deleted. Process in chunks to + // avoid long-running queries. Read from replica to avoid excessive locking. let lastId = startUuid; let insertedCount = 0; const chunkSize = 1000; @@ -178,17 +190,12 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { ${lastId ? (insertedCount === 0 ? "AND d.id >= :lastId" : "AND d.id > :lastId") : ""} ${endUuid ? "AND d.id <= :endUuid" : ""} AND ( - EXISTS ( - SELECT 1 FROM revisions r - WHERE r."documentId" = d.id AND r."createdAt" >= :threshold - ) + d."popularityScore" > 0 OR EXISTS ( - SELECT 1 FROM comments c - WHERE c."documentId" = d.id AND c."createdAt" >= :threshold - ) - OR EXISTS ( - SELECT 1 FROM views v - WHERE v."documentId" = d.id AND v."updatedAt" >= :threshold + SELECT 1 FROM document_insights di + WHERE di."documentId" = d.id + AND di.date >= :thresholdDate::date + AND di.date <= :today::date ) ) ORDER BY d.id @@ -196,7 +203,8 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { `, { replacements: { - threshold, + thresholdDate, + today, lastId, endUuid, limit: chunkSize, @@ -257,7 +265,10 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { /** * Processes a batch of documents with retry logic. */ - private async processBatch(threshold: Date, now: Date): Promise { + private async processBatch( + thresholdDate: string, + today: string + ): Promise { // Step 1: Get batch of document IDs to process const batch = await sequelize.query<{ documentId: string }>( ` @@ -281,8 +292,8 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { // Step 2: Calculate scores outside of a transaction const scores = await this.calculateScoresForDocuments( documentIds, - threshold, - now + thresholdDate, + today ); // Step 3: Update document scores @@ -295,13 +306,14 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { } /** - * Calculates popularity scores for a set of documents. + * Calculates popularity scores for a set of documents by summing weighted, + * time-decayed daily activity counts from the document_insights rollup. * This is a read-only operation that doesn't require locks. */ private async calculateScoresForDocuments( documentIds: string[], - threshold: Date, - now: Date + thresholdDate: string, + today: string ): Promise { const results = await sequelizeReadOnly.query<{ documentId: string; @@ -310,60 +322,39 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { ` WITH batch_docs AS ( SELECT * FROM unnest(ARRAY[:documentIds]::uuid[]) AS t(id) - ), - revision_scores AS ( - SELECT - r."documentId", - SUM(:revisionWeight / POWER( - GREATEST(EXTRACT(EPOCH FROM (:now::timestamp - r."createdAt")) / 3600 + :timeOffset, 0.1), - :gravity - )) as score - FROM revisions r - INNER JOIN batch_docs bd ON r."documentId" = bd.id - WHERE r."createdAt" >= :threshold - GROUP BY r."documentId" - ), - comment_scores AS ( - SELECT - c."documentId", - SUM(:commentWeight / POWER( - GREATEST(EXTRACT(EPOCH FROM (:now::timestamp - c."createdAt")) / 3600 + :timeOffset, 0.1), - :gravity - )) as score - FROM comments c - INNER JOIN batch_docs bd ON c."documentId" = bd.id - WHERE c."createdAt" >= :threshold - GROUP BY c."documentId" - ), - view_scores AS ( - SELECT - v."documentId", - SUM(:viewWeight / POWER( - GREATEST(EXTRACT(EPOCH FROM (:now::timestamp - v."updatedAt")) / 3600 + :timeOffset, 0.1), - :gravity - )) as score - FROM views v - INNER JOIN batch_docs bd ON v."documentId" = bd.id - WHERE v."updatedAt" >= :threshold - GROUP BY v."documentId" ) SELECT - bd.id as "documentId", - COALESCE(rs.score, 0) + COALESCE(cs.score, 0) + COALESCE(vs.score, 0) as total_score + bd.id AS "documentId", + COALESCE(SUM( + (di."revisionCount" * :revisionWeight + + di."commentCount" * :commentWeight + + di."reactionCount" * :reactionWeight + + di."viewCount" * :viewWeight) + / POWER( + GREATEST( + (:today::date - di.date) * 24 + :timeOffset, + 0.1 + ), + :gravity + ) + ), 0) AS total_score FROM batch_docs bd - LEFT JOIN revision_scores rs ON bd.id = rs."documentId" - LEFT JOIN comment_scores cs ON bd.id = cs."documentId" - LEFT JOIN view_scores vs ON bd.id = vs."documentId" + LEFT JOIN document_insights di + ON di."documentId" = bd.id + AND di.date >= :thresholdDate::date + AND di.date <= :today::date + GROUP BY bd.id `, { replacements: { documentIds, - threshold, - now, + thresholdDate, + today, gravity: env.POPULARITY_GRAVITY, timeOffset: TIME_OFFSET_HOURS, revisionWeight: ACTIVITY_WEIGHTS.revision, commentWeight: ACTIVITY_WEIGHTS.comment, + reactionWeight: ACTIVITY_WEIGHTS.reaction, viewWeight: ACTIVITY_WEIGHTS.view, }, type: QueryTypes.SELECT, From b4cbb39f1776f32fc4869a36d061d48078f8bf12 Mon Sep 17 00:00:00 2001 From: Salihu <91833785+salihudickson@users.noreply.github.com> Date: Sat, 9 May 2026 13:42:47 +0100 Subject: [PATCH 002/286] feat: request document access (#10825) * feat: Request document access Allow users without permission to a document to request access. Notifies document managers via in-app notification and email; managers can grant or dismiss the request. - Adds AccessRequest model, migration, policy, presenter - Adds accessRequests.create/info/approve/dismiss endpoints - Adds DocumentAccessRequestNotificationsTask + email - Adds Error403 request flow with loading state and pending indicator - Auto-opens notifications popover via ?notifications=true (used in email) - Adds SplitButton primitive for permission selection in notifications - Refactors useConsumeQueryParam hook * refactor * fix: Make approve/dismiss idempotent on access requests Return success when the access request has already been dismissed, or when the user already has document membership at approve time, instead of throwing 400. Avoids racy double-clicks on notification actions producing user-visible errors. Co-Authored-By: Claude Opus 4.7 * Minor fixes --------- Co-authored-by: Tom Moor Co-authored-by: Claude Opus 4.7 --- .../Notifications/AccessRequestActions.tsx | 121 ++++ .../Notifications/NotificationListItem.tsx | 10 + .../Notifications/NotificationsPopover.tsx | 4 +- app/components/primitives/SplitButton.tsx | 288 +++++++++ app/hooks/useConsumeQueryParam.ts | 34 ++ app/hooks/useQueryNotices.ts | 18 +- app/models/Notification.ts | 24 + app/scenes/Document/components/DataLoader.tsx | 2 +- app/scenes/Errors/Error403.tsx | 97 ++- app/scenes/Settings/Notifications.tsx | 8 + .../server/tasks/DeliverWebhookTask.ts | 1 + .../templates/DocumentAccessRequestEmail.tsx | 94 +++ .../20260107213946-create-access-requests.js | 86 +++ ...000-add-access-request-to-notifications.js | 24 + server/models/AccessRequest.ts | 168 ++++++ server/models/Collection.ts | 22 +- server/models/Document.ts | 22 +- server/models/Notification.ts | 13 + server/models/index.ts | 2 + server/policies/accessRequest.ts | 14 + server/policies/index.ts | 1 + server/presenters/accessRequest.ts | 20 + server/presenters/index.ts | 2 + server/presenters/notification.ts | 2 + server/queues/processors/EmailsProcessor.ts | 17 + .../processors/NotificationsProcessor.ts | 9 + ...umentAccessRequestNotificationTask.test.ts | 336 +++++++++++ .../DocumentAccessRequestNotificationsTask.ts | 146 +++++ .../api/accessRequests/accessRequests.test.ts | 554 ++++++++++++++++++ .../api/accessRequests/accessRequests.ts | 180 ++++++ server/routes/api/accessRequests/index.ts | 1 + server/routes/api/accessRequests/schema.ts | 52 ++ server/routes/api/index.ts | 2 + server/types.ts | 9 + shared/i18n/locales/en_US/translation.json | 24 +- shared/types.ts | 2 + 36 files changed, 2375 insertions(+), 34 deletions(-) create mode 100644 app/components/Notifications/AccessRequestActions.tsx create mode 100644 app/components/primitives/SplitButton.tsx create mode 100644 app/hooks/useConsumeQueryParam.ts create mode 100644 server/emails/templates/DocumentAccessRequestEmail.tsx create mode 100644 server/migrations/20260107213946-create-access-requests.js create mode 100644 server/migrations/20260107220000-add-access-request-to-notifications.js create mode 100644 server/models/AccessRequest.ts create mode 100644 server/policies/accessRequest.ts create mode 100644 server/presenters/accessRequest.ts create mode 100644 server/queues/tasks/DocumentAccessRequestNotificationTask.test.ts create mode 100644 server/queues/tasks/DocumentAccessRequestNotificationsTask.ts create mode 100644 server/routes/api/accessRequests/accessRequests.test.ts create mode 100644 server/routes/api/accessRequests/accessRequests.ts create mode 100644 server/routes/api/accessRequests/index.ts create mode 100644 server/routes/api/accessRequests/schema.ts diff --git a/app/components/Notifications/AccessRequestActions.tsx b/app/components/Notifications/AccessRequestActions.tsx new file mode 100644 index 0000000000..cb694cb39d --- /dev/null +++ b/app/components/Notifications/AccessRequestActions.tsx @@ -0,0 +1,121 @@ +import { observer } from "mobx-react"; +import * as React from "react"; +import { useTranslation } from "react-i18next"; +import { toast } from "sonner"; +import styled from "styled-components"; +import { DocumentPermission } from "@shared/types"; +import type Notification from "~/models/Notification"; +import { client } from "~/utils/ApiClient"; +import Button from "../Button"; +import Flex from "../Flex"; +import { SplitButton } from "../primitives/SplitButton"; + +type Props = { + notification: Notification; +}; + +function AccessRequestActions({ notification }: Props) { + const { t } = useTranslation(); + const [processing, setProcessing] = React.useState(false); + const [selectedPermission, setSelectedPermission] = + React.useState(DocumentPermission.Read); + + const permissionOptions = React.useMemo( + () => [ + { + label: t("View only"), + value: DocumentPermission.Read, + description: t("Can view the document"), + }, + { + label: t("Can edit"), + value: DocumentPermission.ReadWrite, + description: t("Can view and edit the document"), + }, + { + label: t("Manage"), + value: DocumentPermission.Admin, + description: t("Full access including sharing"), + }, + ], + [t] + ); + + const selectedLabel = permissionOptions.find( + (o) => o.value === selectedPermission + )?.label; + + const handleApprove = React.useCallback(async () => { + if (!notification.actor || processing) { + return; + } + + setProcessing(true); + try { + await client.post("/accessRequests.approve", { + id: notification.accessRequestId, + permission: selectedPermission, + }); + notification.accessRequestStatus = "approved"; + toast.success( + t(`Permissions for {{ userName }} updated`, { + userName: notification.actor?.name, + }) + ); + void notification.markAsRead(); + } catch { + toast.error(t("Failed to approve access request")); + } finally { + setProcessing(false); + } + }, [notification, processing, selectedPermission, t]); + + const handleDismiss = React.useCallback(async () => { + if (processing) { + return; + } + + setProcessing(true); + try { + await client.post("/accessRequests.dismiss", { + id: notification.accessRequestId, + }); + notification.accessRequestStatus = "dismissed"; + toast.success(t("Access request dismissed")); + void notification.markAsRead(); + } catch { + toast.error(t("Failed to dismiss access request")); + } finally { + setProcessing(false); + } + }, [notification, processing, t]); + + const handleContainerClick = React.useCallback((e: React.MouseEvent) => { + e.preventDefault(); + e.stopPropagation(); + }, []); + + return ( + + + setSelectedPermission(value as DocumentPermission)} + onClick={handleApprove} + disabled={processing} + > + {t("Approve")} · {selectedLabel} + + + ); +} + +const Container = styled(Flex)` + margin-top: 8px; + flex-wrap: wrap; +`; + +export default observer(AccessRequestActions); diff --git a/app/components/Notifications/NotificationListItem.tsx b/app/components/Notifications/NotificationListItem.tsx index 2fcf91affe..0aea0a5034 100644 --- a/app/components/Notifications/NotificationListItem.tsx +++ b/app/components/Notifications/NotificationListItem.tsx @@ -5,6 +5,7 @@ import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import styled from "styled-components"; import { s, hover, truncateMultiline } from "@shared/styles"; +import { NotificationEventType } from "@shared/types"; import type Notification from "~/models/Notification"; import useStores from "~/hooks/useStores"; import { Avatar, AvatarSize, AvatarVariant } from "../Avatar"; @@ -21,6 +22,7 @@ import { notificationArchive, } from "~/actions/definitions/notifications"; import { NotificationSection } from "~/actions/sections"; +import AccessRequestActions from "./AccessRequestActions"; const CommentEditor = lazyWithRetry( () => import("~/scenes/Document/components/Comments/CommentEditor") @@ -37,6 +39,10 @@ function NotificationListItem({ notification, onNavigate }: Props) { const collectionId = notification.document?.collectionId; const collection = collectionId ? collections.get(collectionId) : undefined; + const isAccessRequestPending = + notification.event === NotificationEventType.RequestDocumentAccess && + notification.accessRequestStatus === "pending"; + const handleClick: React.MouseEventHandler = (event) => { if (event.altKey) { event.preventDefault(); @@ -86,6 +92,9 @@ function NotificationListItem({ notification, onNavigate }: Props) { defaultValue={toJS(notification.comment.data)} /> )} + {isAccessRequestPending && ( + + )} {notification.viewedAt ? null : } @@ -122,6 +131,7 @@ const Container = styled(Flex)<{ $unread: boolean }>` border-radius: 4px; ${StyledLink}[data-state=open] &, + &:has([data-state="open"]), &:${hover}, &:active { background: ${s("listItemHoverBackground")}; diff --git a/app/components/Notifications/NotificationsPopover.tsx b/app/components/Notifications/NotificationsPopover.tsx index da0ea18a9f..a322e5b570 100644 --- a/app/components/Notifications/NotificationsPopover.tsx +++ b/app/components/Notifications/NotificationsPopover.tsx @@ -12,6 +12,7 @@ import { PopoverTrigger, PopoverContent, } from "~/components/primitives/Popover"; +import useConsumeQueryParam from "~/hooks/useConsumeQueryParam"; import useMobile from "~/hooks/useMobile"; import useStores from "~/hooks/useStores"; import Notifications from "./Notifications"; @@ -23,7 +24,8 @@ type Props = { const NotificationsPopover: React.FC = ({ children }: Props) => { const { t } = useTranslation(); const { notifications } = useStores(); - const [open, setOpen] = useState(false); + const shouldOpen = useConsumeQueryParam("notifications") === "true"; + const [open, setOpen] = useState(shouldOpen); const isMobile = useMobile(); const scrollableRef = useRef(null); const drawerContentRef = useRef>(null); diff --git a/app/components/primitives/SplitButton.tsx b/app/components/primitives/SplitButton.tsx new file mode 100644 index 0000000000..e515f4fbca --- /dev/null +++ b/app/components/primitives/SplitButton.tsx @@ -0,0 +1,288 @@ +import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; +import { CheckmarkIcon, ExpandedIcon } from "outline-icons"; +import { darken, transparentize } from "polished"; +import * as React from "react"; +import styled, { css } from "styled-components"; +import { s } from "@shared/styles"; +import { fadeAndScaleIn } from "~/styles/animations"; +import { undraggableOnDesktop } from "~/styles"; + +interface Option { + /** Display label for the option. */ + label: string; + /** Value for the option. */ + value: string; + /** Optional description shown below the label. */ + description?: string; +} + +interface SplitButtonProps { + /** The options available in the dropdown. */ + options: Option[]; + /** The currently selected option value. */ + selectedValue: string; + /** Called when a dropdown option is selected. */ + onSelect: (value: string) => void; + /** Called when the main button area is clicked. */ + onClick: (event: React.MouseEvent) => void; + /** Whether the button is disabled. */ + disabled?: boolean; + /** Use the neutral color variant instead of accent. */ + neutral?: boolean; + children: React.ReactNode; +} + +/** + * A split button with a main action and a dropdown disclosure for selecting + * from a set of options. Built on Radix UI DropdownMenu. + */ +export function SplitButton({ + options, + selectedValue, + onSelect, + onClick, + disabled, + neutral, + children, +}: SplitButtonProps) { + const selectedOption = options.find((o) => o.value === selectedValue); + const containerRef = React.useRef(null); + const triggerRef = React.useRef(null); + const [alignOffset, setAlignOffset] = React.useState(0); + + const handleOpenChange = React.useCallback((open: boolean) => { + if (!open || !containerRef.current || !triggerRef.current) { + return; + } + const containerLeft = containerRef.current.getBoundingClientRect().left; + const triggerLeft = triggerRef.current.getBoundingClientRect().left; + setAlignOffset(containerLeft - triggerLeft); + }, []); + + return ( + + + + {children} + + + + + + + + + + + + e.stopPropagation()}> + {options.map((option) => ( + onSelect(option.value)} + > + + + {option.label} + {option.description && ( + + {option.description} + + )} + + + {option.value === selectedValue && ( + + )} + + + + ))} + + + + + ); +} + +const accentStyles = css` + background: ${s("accent")}; + color: ${s("accentText")}; + box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px; +`; + +const neutralStyles = css` + background: inherit; + color: ${(props) => props.theme.buttonNeutralText}; + box-shadow: + rgba(0, 0, 0, 0.07) 0px 1px 2px, + ${(props) => props.theme.buttonNeutralBorder} 0 0 0 1px inset; +`; + +const Container = styled.span<{ $neutral?: boolean; $disabled?: boolean }>` + display: inline-flex; + align-items: stretch; + border-radius: 6px; + height: 32px; + font-size: 14px; + font-weight: 500; + flex-shrink: 0; + ${undraggableOnDesktop()} + ${(props) => (props.$neutral ? neutralStyles : accentStyles)} + + ${(props) => + props.$disabled && + ` + cursor: default; + pointer-events: none; + opacity: 0.7; + `} +`; + +const buttonReset = css` + margin: 0; + padding: 0; + border: 0; + background: none; + color: inherit; + font: inherit; + cursor: var(--pointer); + appearance: none; + + &:disabled { + cursor: default; + pointer-events: none; + } +`; + +const MainButton = styled.button<{ $neutral?: boolean }>` + ${buttonReset} + display: flex; + align-items: center; + padding: 0 8px; + border-radius: 6px 0 0 6px; + white-space: nowrap; + transition: background 200ms ease-out; + + &:hover:not(:disabled) { + background: ${(props) => + props.$neutral + ? darken(0.05, props.theme.buttonNeutralBackground) + : "rgba(0, 0, 0, 0.1)"}; + transition: background 0s; + } +`; + +const DisclosureButton = styled.button<{ $neutral?: boolean }>` + ${buttonReset} + display: flex; + align-items: center; + justify-content: center; + padding: 0 4px; + border-radius: 0 6px 6px 0; + transition: background 200ms ease-out; + + &:hover:not(:disabled), + &[data-state="open"] { + background: ${(props) => + props.$neutral + ? darken(0.05, props.theme.buttonNeutralBackground) + : "rgba(0, 0, 0, 0.1)"}; + transition: background 0s; + } +`; + +const Divider = styled.span<{ $neutral?: boolean }>` + width: 1px; + align-self: stretch; + margin: 6px 0; + background: ${(props) => + props.$neutral + ? transparentize(0.7, props.theme.buttonNeutralText) + : "rgba(255, 255, 255, 0.3)"}; +`; + +const StyledExpandedIcon = styled(ExpandedIcon)` + opacity: 0.8; +`; + +const MenuContent = styled.div` + z-index: 4000; + min-width: 180px; + max-width: 276px; + background: ${s("menuBackground")}; + box-shadow: ${s("menuShadow")}; + border-radius: 6px; + padding: 6px; + outline: none; + + transform-origin: var(--radix-dropdown-menu-content-transform-origin); + &[data-state="open"] { + animation: ${fadeAndScaleIn} 150ms ease-out; + } +`; + +const MenuItem = styled.button` + ${buttonReset} + position: relative; + display: flex; + align-items: center; + width: 100%; + min-height: 32px; + font-size: 14px; + color: ${s("textSecondary")}; + border-radius: 4px; + padding: 4px 12px; + gap: 8px; + user-select: none; + + &[data-highlighted] { + color: ${s("accentText")}; + background: ${s("accent")}; + outline: none; + } +`; + +const MenuItemContent = styled.div` + display: flex; + flex-direction: column; + flex-grow: 1; + text-align: left; +`; + +const MenuItemLabel = styled.span` + font-weight: 500; +`; + +const MenuItemDescription = styled.span` + font-size: 12px; + opacity: 0.75; + margin-top: 1px; +`; + +const CheckmarkWrapper = styled.span` + width: 18px; + height: 18px; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; +`; diff --git a/app/hooks/useConsumeQueryParam.ts b/app/hooks/useConsumeQueryParam.ts new file mode 100644 index 0000000000..21397dffda --- /dev/null +++ b/app/hooks/useConsumeQueryParam.ts @@ -0,0 +1,34 @@ +import { useEffect, useRef } from "react"; +import { useHistory } from "react-router-dom"; +import useQuery from "./useQuery"; + +/** + * Hook that reads a query parameter from the URL and removes it after the first + * render. Returns the value that was present when the component mounted, or + * null if the parameter was absent. + * + * @param name - the query parameter name to consume. + * @returns the consumed value, or null. + */ +export default function useConsumeQueryParam(name: string): string | null { + const query = useQuery(); + const history = useHistory(); + const value = query.get(name); + const consumedRef = useRef(false); + + useEffect(() => { + if (value && !consumedRef.current) { + consumedRef.current = true; + + const params = new URLSearchParams(window.location.search); + params.delete(name); + const search = params.toString(); + history.replace({ + pathname: window.location.pathname, + search: search ? `?${search}` : "", + }); + } + }, [value, name, history]); + + return consumedRef.current ? null : value; +} diff --git a/app/hooks/useQueryNotices.ts b/app/hooks/useQueryNotices.ts index 8a3379f5ec..3dee76439d 100644 --- a/app/hooks/useQueryNotices.ts +++ b/app/hooks/useQueryNotices.ts @@ -1,9 +1,8 @@ import { useEffect } from "react"; import { useTranslation } from "react-i18next"; -import { useHistory } from "react-router-dom"; import { toast } from "sonner"; import { QueryNotices } from "@shared/types"; -import useQuery from "./useQuery"; +import useConsumeQueryParam from "./useConsumeQueryParam"; /** * Display a toast message based on a notice in the query string. This is usually @@ -11,10 +10,8 @@ import useQuery from "./useQuery"; * or emails. */ export default function useQueryNotices() { - const query = useQuery(); - const history = useHistory(); const { t } = useTranslation(); - const notice = query.get("notice") as QueryNotices; + const notice = useConsumeQueryParam("notice") as QueryNotices; useEffect(() => { let message: string | undefined; @@ -40,16 +37,7 @@ export default function useQueryNotices() { } if (message) { - // Remove the notice param from the URL to prevent duplicate toasts - const params = new URLSearchParams(window.location.search); - params.delete("notice"); - const search = params.toString(); - history.replace({ - pathname: window.location.pathname, - search: search ? `?${search}` : "", - }); - setTimeout(() => toast.success(message), 0); } - }, [t, notice, history]); + }, [t, notice]); } diff --git a/app/models/Notification.ts b/app/models/Notification.ts index 37f14a2e70..a09b9ab1f1 100644 --- a/app/models/Notification.ts +++ b/app/models/Notification.ts @@ -48,6 +48,7 @@ class Notification extends Model { NotificationEventType.UpdateDocument, NotificationEventType.CreateRevision, NotificationEventType.AddUserToDocument, + NotificationEventType.RequestDocumentAccess, ], collections: [ NotificationEventType.CreateCollection, @@ -75,6 +76,20 @@ class Notification extends Model { @observable archivedAt: Date | null; + /** + * Request ID on notifications for access requests. + */ + @Field + @observable + accessRequestId?: string; + + /** + * Status of the associated access request. + */ + @Field + @observable + accessRequestStatus?: string; + /** * The user that triggered the notification. */ @@ -195,6 +210,14 @@ class Notification extends Model { return t("shared"); case NotificationEventType.AddUserToCollection: return t("invited you to"); + case NotificationEventType.RequestDocumentAccess: + if (this.accessRequestStatus === "approved") { + return t("was granted access to"); + } + if (this.accessRequestStatus === "dismissed") { + return t("requested access to"); + } + return t("is requesting access to"); default: return this.event; } @@ -237,6 +260,7 @@ class Notification extends Model { : undefined; return collection ? collectionPath(collection) : ""; } + case NotificationEventType.RequestDocumentAccess: case NotificationEventType.AddUserToDocument: case NotificationEventType.GroupMentionedInDocument: case NotificationEventType.MentionedInDocument: { diff --git a/app/scenes/Document/components/DataLoader.tsx b/app/scenes/Document/components/DataLoader.tsx index a2a33960e5..c5fae17713 100644 --- a/app/scenes/Document/components/DataLoader.tsx +++ b/app/scenes/Document/components/DataLoader.tsx @@ -238,7 +238,7 @@ function DataLoader({ match, children }: Props) { ) : error instanceof PaymentRequiredError ? ( ) : error instanceof AuthorizationError ? ( - + ) : error instanceof NotFoundError ? ( ) : ( diff --git a/app/scenes/Errors/Error403.tsx b/app/scenes/Errors/Error403.tsx index 5c0c51d213..3143bdde9e 100644 --- a/app/scenes/Errors/Error403.tsx +++ b/app/scenes/Errors/Error403.tsx @@ -1,6 +1,7 @@ -import { useCallback } from "react"; +import { useCallback, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; -import { useHistory } from "react-router-dom"; +import { useHistory, useLocation } from "react-router-dom"; +import { toast } from "sonner"; import Button from "~/components/Button"; import Empty from "~/components/Empty"; import Heading from "~/components/Heading"; @@ -8,24 +9,98 @@ import Scene from "~/components/Scene"; import { navigateToHome } from "~/actions/definitions/navigation"; import { HStack } from "~/components/primitives/HStack"; import { VStack } from "~/components/primitives/VStack"; +import Loading from "~/scenes/Document/components/Loading"; +import { client } from "~/utils/ApiClient"; -const Error403 = () => { +type Props = { + /** The document ID to request access to. */ + documentId?: string; +}; + +const Error403 = ({ documentId }: Props) => { const { t } = useTranslation(); + const location = useLocation<{ title?: string }>(); const history = useHistory(); + const [requesting, setRequesting] = useState(false); + const [requested, setRequested] = useState(false); + const [loading, setLoading] = useState(!!documentId); + + useEffect(() => { + if (!documentId) { + return; + } + + const checkRequested = async () => { + try { + const request = await client.post("/accessRequests.info", { + documentId, + }); + setRequested(request?.data?.status === "pending"); + } catch { + // No pending request or error — leave as not requested + } finally { + setLoading(false); + } + }; + + void checkRequested(); + }, [documentId]); + + const handleRequestAccess = useCallback(async () => { + if (!documentId || requesting || requested) { + return; + } + + setRequesting(true); + try { + await client.post("/accessRequests.create", { documentId }); + setRequested(true); + toast.success(t("Access request sent")); + } catch (err) { + toast.error(err.message); + } finally { + setRequesting(false); + } + }, [documentId, t, requested, requesting]); + const handleGoBack = useCallback(() => history.goBack(), [history]); + if (loading) { + return ; + } + return ( {t("No access to this doc")} - - {t( - "It doesn’t look like you have permission to access this document." - )}{" "} - {t("Please request access from the document owner.")} - - - + )} + +

+ + + ); + } +} diff --git a/server/migrations/20260107213946-create-access-requests.js b/server/migrations/20260107213946-create-access-requests.js new file mode 100644 index 0000000000..faef287791 --- /dev/null +++ b/server/migrations/20260107213946-create-access-requests.js @@ -0,0 +1,86 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.createTable("access_requests", { + id: { + type: Sequelize.UUID, + primaryKey: true, + defaultValue: Sequelize.UUIDV4, + allowNull: false, + }, + status: { + type: Sequelize.STRING, + allowNull: false, + defaultValue: "pending", + }, + respondedAt: { + type: Sequelize.DATE, + allowNull: true, + }, + createdAt: { + type: Sequelize.DATE, + allowNull: false, + defaultValue: Sequelize.NOW, + }, + updatedAt: { + type: Sequelize.DATE, + allowNull: false, + defaultValue: Sequelize.NOW, + }, + documentId: { + type: Sequelize.UUID, + allowNull: false, + references: { + model: "documents", + key: "id", + }, + onDelete: "CASCADE", + onUpdate: "CASCADE", + }, + userId: { + type: Sequelize.UUID, + allowNull: false, + references: { + model: "users", + key: "id", + }, + onDelete: "CASCADE", + onUpdate: "CASCADE", + }, + teamId: { + type: Sequelize.UUID, + allowNull: false, + references: { + model: "teams", + key: "id", + }, + onDelete: "CASCADE", + onUpdate: "CASCADE", + }, + responderId: { + type: Sequelize.UUID, + allowNull: true, + references: { + model: "users", + key: "id", + }, + onDelete: "SET NULL", + onUpdate: "CASCADE", + }, + }); + + await queryInterface.addIndex("access_requests", ["documentId", "userId"], { + unique: true, + where: { status: "pending" }, + name: "access_requests_document_id_user_id_pending", + }); + await queryInterface.addIndex("access_requests", ["userId"]); + await queryInterface.addIndex("access_requests", ["teamId"]); + }, + + async down(queryInterface) { + await queryInterface.dropTable("access_requests"); + }, +}; diff --git a/server/migrations/20260107220000-add-access-request-to-notifications.js b/server/migrations/20260107220000-add-access-request-to-notifications.js new file mode 100644 index 0000000000..edf24d887a --- /dev/null +++ b/server/migrations/20260107220000-add-access-request-to-notifications.js @@ -0,0 +1,24 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addColumn("notifications", "accessRequestId", { + type: Sequelize.UUID, + allowNull: true, + references: { + model: "access_requests", + key: "id", + }, + onDelete: "SET NULL", + onUpdate: "CASCADE", + }); + + await queryInterface.addIndex("notifications", ["accessRequestId"]); + }, + + async down(queryInterface) { + await queryInterface.removeIndex("notifications", ["accessRequestId"]); + await queryInterface.removeColumn("notifications", "accessRequestId"); + }, +}; diff --git a/server/models/AccessRequest.ts b/server/models/AccessRequest.ts new file mode 100644 index 0000000000..909f98c76a --- /dev/null +++ b/server/models/AccessRequest.ts @@ -0,0 +1,168 @@ +import type { + InferAttributes, + InferCreationAttributes, + SaveOptions, +} from "sequelize"; +import { + Table, + ForeignKey, + Column, + BelongsTo, + DataType, + Default, + AllowNull, + DefaultScope, + BeforeCreate, +} from "sequelize-typescript"; +import Document from "./Document"; +import Team from "./Team"; +import User from "./User"; +import Fix from "./decorators/Fix"; +import IdModel from "./base/IdModel"; +import { IsIn } from "class-validator"; +import { ValidationError } from "@server/errors"; +import type { APIContext } from "@server/types"; + +export enum AccessRequestStatus { + Pending = "pending", + Approved = "approved", + Dismissed = "dismissed", +} + +@DefaultScope(() => ({ + include: [ + { + association: "user", + required: true, + }, + { + association: "responder", + required: false, + }, + ], +})) +@Table({ + tableName: "access_requests", + modelName: "access_request", +}) +@Fix +class AccessRequest extends IdModel< + InferAttributes, + Partial> +> { + @Default(AccessRequestStatus.Pending) + @IsIn([Object.values(AccessRequestStatus)]) + @Column(DataType.STRING) + status: AccessRequestStatus; + + @AllowNull + @Column + respondedAt: Date | null; + + // associations + @BelongsTo(() => Document, "documentId") + document: Document; + + @ForeignKey(() => Document) + @Column(DataType.UUID) + documentId: string; + + @BelongsTo(() => User, "userId") + user: User; + + @ForeignKey(() => User) + @Column(DataType.UUID) + userId: string; + + @BelongsTo(() => Team, "teamId") + team: Team; + + @ForeignKey(() => Team) + @Column(DataType.UUID) + teamId: string; + + @BelongsTo(() => User, "responderId") + responder: User | null; + + @AllowNull + @ForeignKey(() => User) + @Column(DataType.UUID) + responderId: string | null; + + @BeforeCreate + static async validateNoDuplicatePendingRequest( + instance: AccessRequest, + options: SaveOptions + ) { + const { documentId, userId } = instance; + + const existingRequest = await this.findOne({ + where: { + documentId, + userId, + status: AccessRequestStatus.Pending, + }, + transaction: options.transaction, + }); + + if (existingRequest) { + throw ValidationError( + "A pending access request already exists for this document and user." + ); + } + } + + /** + * Approve this access request, setting the status and responder, and persist. + * + * @param ctx the API context; the authenticated user is recorded as responder. + */ + public approve(ctx: APIContext) { + this.status = AccessRequestStatus.Approved; + this.responderId = ctx.state.auth.user.id; + this.respondedAt = new Date(); + return this.saveWithCtx(ctx); + } + + /** + * Dismiss this access request, setting the status and responder, and persist. + * + * @param ctx the API context; the authenticated user is recorded as responder. + */ + public dismiss(ctx: APIContext) { + this.status = AccessRequestStatus.Dismissed; + this.responderId = ctx.state.auth.user.id; + this.respondedAt = new Date(); + return this.saveWithCtx(ctx); + } + + /** + * get the user's pending request. + * + * @param documentId The document ID or slug. + * @param userId The user ID. + * + * @returns the pending request or null. + */ + public static async findPendingForUser({ + documentId, + userId, + }: { + documentId?: string; + userId?: string; + }): Promise { + if (!documentId || !userId) { + return null; + } + + return this.findOne({ + where: { + documentId, + userId, + status: AccessRequestStatus.Pending, + }, + }); + } +} + +export default AccessRequest; diff --git a/server/models/Collection.ts b/server/models/Collection.ts index 7e51f28062..4af1dc579f 100644 --- a/server/models/Collection.ts +++ b/server/models/Collection.ts @@ -563,12 +563,32 @@ class Collection extends ParanoidModel< * either via group or direct membership. * * @param collectionId + * @param permission optional permission filter + * * @returns userIds */ - static async membershipUserIds(collectionId: string) { + static async membershipUserIds( + collectionId: string, + permission?: CollectionPermission + ) { const collection = await this.scope("withAllMemberships").findOne({ where: { id: collectionId }, + include: [ + { + association: "memberships", + required: false, + ...(permission ? { where: { permission } } : {}), + separate: true, + }, + { + association: "groupMemberships", + required: false, + ...(permission ? { where: { permission } } : {}), + separate: true, + }, + ], }); + if (!collection) { return []; } diff --git a/server/models/Document.ts b/server/models/Document.ts index 924588b541..2b4c8d995a 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -38,6 +38,7 @@ import { import { MaxLength } from "class-validator"; import isUUID from "validator/lib/isUUID"; import type { + DocumentPermission, ImportableIntegrationService, NavigationNode, ProsemirrorData, @@ -682,11 +683,30 @@ class Document extends ArchivableModel< * either via group or direct membership. * * @param documentId + * @param permission optional permission filter + * * @returns userIds */ - static async membershipUserIds(documentId: string) { + static async membershipUserIds( + documentId: string, + permission?: DocumentPermission + ) { const document = await this.scope("withAllMemberships").findOne({ where: { id: documentId }, + include: [ + { + association: "memberships", + required: false, + ...(permission ? { where: { permission } } : {}), + separate: true, + }, + { + association: "groupMemberships", + required: false, + ...(permission ? { where: { permission } } : {}), + separate: true, + }, + ], }); if (!document) { return []; diff --git a/server/models/Notification.ts b/server/models/Notification.ts index 658794f1b6..c48105b234 100644 --- a/server/models/Notification.ts +++ b/server/models/Notification.ts @@ -33,6 +33,7 @@ import Team from "./Team"; import User from "./User"; import Group from "./Group"; import Fix from "./decorators/Fix"; +import AccessRequest from "./AccessRequest"; let baseDomain; @@ -90,6 +91,10 @@ let baseDomain; association: "actor", required: false, }, + { + association: "accessRequest", + required: false, + }, ], })) @Table({ @@ -196,6 +201,14 @@ class Notification extends Model< @Column(DataType.UUID) membershipId: string; + @BelongsTo(() => AccessRequest, "accessRequestId") + accessRequest: AccessRequest; + + @AllowNull + @ForeignKey(() => AccessRequest) + @Column(DataType.UUID) + accessRequestId: string; + @AfterCreate static async createEvent( model: Notification, diff --git a/server/models/index.ts b/server/models/index.ts index 4be4a88e16..c4ac58fd14 100644 --- a/server/models/index.ts +++ b/server/models/index.ts @@ -78,3 +78,5 @@ export { default as Subscription } from "./Subscription"; export { default as Emoji } from "./Emoji"; export { default as UserPasskey } from "./UserPasskey"; + +export { default as AccessRequest } from "./AccessRequest"; diff --git a/server/policies/accessRequest.ts b/server/policies/accessRequest.ts new file mode 100644 index 0000000000..0fed8e6f83 --- /dev/null +++ b/server/policies/accessRequest.ts @@ -0,0 +1,14 @@ +import { AccessRequest, User } from "@server/models"; +import { allow } from "./cancan"; +import { isOwner, isTeamModel, or, and } from "./utils"; + +allow( + User, + ["read", "update", "delete"], + AccessRequest, + (actor, accessRequest) => + and( + isTeamModel(actor, accessRequest), + or(actor.isAdmin, isOwner(actor, accessRequest)) + ) +); diff --git a/server/policies/index.ts b/server/policies/index.ts index 83aae1a724..2d92beef76 100644 --- a/server/policies/index.ts +++ b/server/policies/index.ts @@ -30,3 +30,4 @@ import "./webhookSubscription"; import "./userMembership"; import "./userPasskey"; import "./emoji"; +import "./accessRequest"; diff --git a/server/presenters/accessRequest.ts b/server/presenters/accessRequest.ts new file mode 100644 index 0000000000..99f1ff6bf9 --- /dev/null +++ b/server/presenters/accessRequest.ts @@ -0,0 +1,20 @@ +import type { AccessRequest } from "@server/models"; +import presentUser from "./user"; + +export default function present(accessRequest: AccessRequest) { + return { + id: accessRequest.id, + documentId: accessRequest.documentId, + userId: accessRequest.userId, + user: accessRequest.user ? presentUser(accessRequest.user) : undefined, + teamId: accessRequest.teamId, + status: accessRequest.status, + responderId: accessRequest.responderId, + responder: accessRequest.responder + ? presentUser(accessRequest.responder) + : undefined, + respondedAt: accessRequest.respondedAt, + createdAt: accessRequest.createdAt, + updatedAt: accessRequest.updatedAt, + }; +} diff --git a/server/presenters/index.ts b/server/presenters/index.ts index 60249226a2..7162e259fd 100644 --- a/server/presenters/index.ts +++ b/server/presenters/index.ts @@ -33,6 +33,7 @@ import presentTemplate from "./template"; import presentUser from "./user"; import presentView from "./view"; import presentEmoji from "./emoji"; +import presentAccessRequest from "./accessRequest"; export { presentApiKey, @@ -72,4 +73,5 @@ export { presentUser, presentView, presentEmoji, + presentAccessRequest, }; diff --git a/server/presenters/notification.ts b/server/presenters/notification.ts index d29c664bfe..69d6e4e2d8 100644 --- a/server/presenters/notification.ts +++ b/server/presenters/notification.ts @@ -10,6 +10,8 @@ export default async function presentNotification( return { id: notification.id, viewedAt: notification.viewedAt, + accessRequestId: notification.accessRequestId, + accessRequestStatus: notification.accessRequest?.status, archivedAt: notification.archivedAt, createdAt: notification.createdAt, event: notification.event, diff --git a/server/queues/processors/EmailsProcessor.ts b/server/queues/processors/EmailsProcessor.ts index 65dd721932..ec3e39642a 100644 --- a/server/queues/processors/EmailsProcessor.ts +++ b/server/queues/processors/EmailsProcessor.ts @@ -5,6 +5,7 @@ import CollectionSharedEmail from "@server/emails/templates/CollectionSharedEmai import CommentCreatedEmail from "@server/emails/templates/CommentCreatedEmail"; import CommentMentionedEmail from "@server/emails/templates/CommentMentionedEmail"; import CommentResolvedEmail from "@server/emails/templates/CommentResolvedEmail"; +import DocumentAccessRequestEmail from "@server/emails/templates/DocumentAccessRequestEmail"; import DocumentMentionedEmail from "@server/emails/templates/DocumentMentionedEmail"; import DocumentPublishedOrUpdatedEmail from "@server/emails/templates/DocumentPublishedOrUpdatedEmail"; import DocumentSharedEmail from "@server/emails/templates/DocumentSharedEmail"; @@ -207,6 +208,22 @@ export default class EmailsProcessor extends BaseProcessor { ).schedule({ delay: Minute.ms, }); + return; + } + + case NotificationEventType.RequestDocumentAccess: { + await new DocumentAccessRequestEmail( + { + to: notification.user.email, + documentId: notification.documentId, + actorId: notification.actorId, + teamUrl: notification.team.url, + }, + { notificationId: notification.id } + ).schedule({ + delay: Minute.ms, + }); + return; } } } diff --git a/server/queues/processors/NotificationsProcessor.ts b/server/queues/processors/NotificationsProcessor.ts index 16ea25d9bf..4d223d4381 100644 --- a/server/queues/processors/NotificationsProcessor.ts +++ b/server/queues/processors/NotificationsProcessor.ts @@ -1,4 +1,5 @@ import type { + AccessRequestEvent, CollectionEvent, RevisionEvent, Event, @@ -15,6 +16,7 @@ import CommentCreatedNotificationsTask from "../tasks/CommentCreatedNotification import CommentUpdatedNotificationsTask from "../tasks/CommentUpdatedNotificationsTask"; import ReactionCreatedNotificationsTask from "../tasks/ReactionCreatedNotificationsTask"; import ReactionRemovedNotificationsTask from "../tasks/ReactionRemovedNotificationsTask"; +import DocumentAccessRequestNotificationsTask from "../tasks/DocumentAccessRequestNotificationsTask"; import DocumentAddGroupNotificationsTask from "../tasks/DocumentAddGroupNotificationsTask"; import DocumentAddUserNotificationsTask from "../tasks/DocumentAddUserNotificationsTask"; import DocumentPublishedNotificationsTask from "../tasks/DocumentPublishedNotificationsTask"; @@ -27,6 +29,7 @@ export default class NotificationsProcessor extends BaseProcessor { "documents.publish", "documents.add_user", "documents.add_group", + "access_requests.create", "revisions.create", "collections.create", "collections.add_user", @@ -44,6 +47,8 @@ export default class NotificationsProcessor extends BaseProcessor { return this.documentAddUser(event); case "documents.add_group": return this.documentAddGroup(event); + case "access_requests.create": + return this.documentAccessRequest(event); case "revisions.create": return this.revisionCreated(event); case "collections.create": @@ -85,6 +90,10 @@ export default class NotificationsProcessor extends BaseProcessor { await new DocumentAddGroupNotificationsTask().schedule(event); } + async documentAccessRequest(event: AccessRequestEvent) { + await new DocumentAccessRequestNotificationsTask().schedule(event); + } + async revisionCreated(event: RevisionEvent) { await new RevisionCreatedNotificationsTask().schedule(event); await new ShareSubscriptionNotificationsTask().schedule(event); diff --git a/server/queues/tasks/DocumentAccessRequestNotificationTask.test.ts b/server/queues/tasks/DocumentAccessRequestNotificationTask.test.ts new file mode 100644 index 0000000000..f657049ef3 --- /dev/null +++ b/server/queues/tasks/DocumentAccessRequestNotificationTask.test.ts @@ -0,0 +1,336 @@ +import { + NotificationEventType, + DocumentPermission, + CollectionPermission, +} from "@shared/types"; +import Logger from "@server/logging/Logger"; +import { AccessRequest, Notification, UserMembership } from "@server/models"; +import DocumentAccessRequestNotificationsTask from "./DocumentAccessRequestNotificationsTask"; +import { + buildAdmin, + buildCollection, + buildDocument, + buildTeam, + buildUser, +} from "@server/test/factories"; + +const ip = "127.0.0.1"; + +describe("DocumentAccessRequestNotificationsTask", () => { + let task: DocumentAccessRequestNotificationsTask; + + beforeEach(() => { + task = new DocumentAccessRequestNotificationsTask(); + vi.clearAllMocks(); + }); + + describe("perform", () => { + it("should fail with the correct error if the document is not found", async () => { + const loggerSpy = vi.spyOn(Logger, "debug"); + + await task.perform({ + name: "access_requests.create", + modelId: "ar1", + documentId: "doc1", + teamId: "team1", + actorId: "actor1", + ip, + }); + + expect(loggerSpy).toHaveBeenCalledWith( + "task", + "Document not found for access request notification", + { documentId: "doc1" } + ); + }); + + it("should send notifications to document managers", async () => { + const spy = vi.spyOn(Notification, "create"); + const team = await buildTeam(); + const manager1 = await buildUser({ teamId: team.id }); + const manager2 = await buildUser({ teamId: team.id }); + + const actor = await buildUser({ teamId: team.id }); + const document = await buildDocument({ teamId: team.id }); + + await UserMembership.create({ + userId: manager1.id, + documentId: document.id, + createdById: manager1.id, + permission: DocumentPermission.Admin, + }); + await UserMembership.create({ + userId: manager2.id, + documentId: document.id, + createdById: manager2.id, + permission: DocumentPermission.Admin, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: actor.id, + teamId: team.id, + }); + + const task = new DocumentAccessRequestNotificationsTask(); + await task.perform({ + name: "access_requests.create", + modelId: accessRequest.id, + documentId: document.id, + teamId: team.id, + actorId: actor.id, + ip, + }); + + expect(spy).toHaveBeenCalledTimes(2); + expect(spy).toHaveBeenCalledWith( + expect.objectContaining({ + event: NotificationEventType.RequestDocumentAccess, + userId: manager1.id, + actorId: actor.id, + documentId: document.id, + teamId: team.id, + }) + ); + expect(spy).toHaveBeenCalledWith( + expect.objectContaining({ + event: NotificationEventType.RequestDocumentAccess, + userId: manager2.id, + actorId: actor.id, + documentId: document.id, + teamId: team.id, + }) + ); + }); + + it("should send notifications to collection managers", async () => { + const spy = vi.spyOn(Notification, "create"); + const team = await buildTeam(); + const manager1 = await buildAdmin({ teamId: team.id }); + const manager2 = await buildUser({ teamId: team.id }); + + const actor = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + createdById: manager1.id, + }); + const document = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + + await UserMembership.create({ + userId: manager2.id, + collectionId: collection.id, + createdById: manager2.id, + permission: CollectionPermission.Admin, + }); + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: actor.id, + teamId: team.id, + }); + + const task = new DocumentAccessRequestNotificationsTask(); + await task.perform({ + name: "access_requests.create", + modelId: accessRequest.id, + documentId: document.id, + teamId: team.id, + actorId: actor.id, + ip, + }); + + expect(spy).toHaveBeenCalledTimes(2); + expect(spy).toHaveBeenCalledWith( + expect.objectContaining({ + event: NotificationEventType.RequestDocumentAccess, + userId: manager1.id, + actorId: actor.id, + documentId: document.id, + teamId: team.id, + }) + ); + expect(spy).toHaveBeenCalledWith( + expect.objectContaining({ + event: NotificationEventType.RequestDocumentAccess, + userId: manager2.id, + actorId: actor.id, + documentId: document.id, + teamId: team.id, + }) + ); + }); + + it("should not send notifications to suspended users", async () => { + const spy = vi.spyOn(Notification, "create"); + const team = await buildTeam(); + const manager = await buildUser({ + teamId: team.id, + suspendedAt: new Date(), + }); + const actor = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + createdById: manager.id, + }); + + await UserMembership.create({ + userId: manager.id, + documentId: document.id, + permission: DocumentPermission.Admin, + createdById: manager.id, + }); + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: actor.id, + teamId: team.id, + }); + + const task = new DocumentAccessRequestNotificationsTask(); + await task.perform({ + name: "access_requests.create", + modelId: accessRequest.id, + documentId: document.id, + teamId: team.id, + actorId: actor.id, + ip, + }); + + expect(spy).not.toHaveBeenCalled(); + }); + + it("should not send notification if user has disabled this notification type", async () => { + const spy = vi.spyOn(Notification, "create"); + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const actor = await buildUser({ teamId: team.id }); + + const document = await buildDocument({ + teamId: team.id, + createdById: admin.id, + }); + + await UserMembership.create({ + userId: admin.id, + documentId: document.id, + permission: DocumentPermission.Admin, + createdById: admin.id, + }); + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: actor.id, + teamId: team.id, + }); + + // disable notifications for this event type + admin.setNotificationEventType( + NotificationEventType.RequestDocumentAccess, + false + ); + await admin.save(); + + const task = new DocumentAccessRequestNotificationsTask(); + await task.perform({ + name: "access_requests.create", + modelId: accessRequest.id, + documentId: document.id, + teamId: team.id, + actorId: actor.id, + ip, + }); + + expect(spy).not.toHaveBeenCalled(); + }); + + it("should fall back to workspace admins when no document or collection admin is set", async () => { + const spy = vi.spyOn(Notification, "create"); + const team = await buildTeam(); + const workspaceAdmin = await buildAdmin({ teamId: team.id }); + const actor = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + + // Remove the auto-created collection admin membership so workspace admin + // is the only fallback target. + await UserMembership.destroy({ where: { collectionId: collection.id } }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: actor.id, + teamId: team.id, + }); + + const task = new DocumentAccessRequestNotificationsTask(); + await task.perform({ + name: "access_requests.create", + modelId: accessRequest.id, + documentId: document.id, + teamId: team.id, + actorId: actor.id, + ip, + }); + + expect(spy).toHaveBeenCalledTimes(1); + expect(spy).toHaveBeenCalledWith( + expect.objectContaining({ + event: NotificationEventType.RequestDocumentAccess, + userId: workspaceAdmin.id, + actorId: actor.id, + documentId: document.id, + teamId: team.id, + }) + ); + }); + + it("should not fall back to workspace admins when document admins exist", async () => { + const spy = vi.spyOn(Notification, "create"); + const team = await buildTeam(); + const workspaceAdmin = await buildAdmin({ teamId: team.id }); + const documentAdmin = await buildUser({ teamId: team.id }); + const actor = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + createdById: documentAdmin.id, + }); + + await UserMembership.create({ + userId: documentAdmin.id, + documentId: document.id, + permission: DocumentPermission.Admin, + createdById: documentAdmin.id, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: actor.id, + teamId: team.id, + }); + + const task = new DocumentAccessRequestNotificationsTask(); + await task.perform({ + name: "access_requests.create", + modelId: accessRequest.id, + documentId: document.id, + teamId: team.id, + actorId: actor.id, + ip, + }); + + expect(spy).toHaveBeenCalledTimes(1); + expect(spy).toHaveBeenCalledWith( + expect.objectContaining({ + userId: documentAdmin.id, + }) + ); + expect(spy).not.toHaveBeenCalledWith( + expect.objectContaining({ + userId: workspaceAdmin.id, + }) + ); + }); + }); +}); diff --git a/server/queues/tasks/DocumentAccessRequestNotificationsTask.ts b/server/queues/tasks/DocumentAccessRequestNotificationsTask.ts new file mode 100644 index 0000000000..c984a2a185 --- /dev/null +++ b/server/queues/tasks/DocumentAccessRequestNotificationsTask.ts @@ -0,0 +1,146 @@ +import { Op } from "sequelize"; +import { uniq } from "es-toolkit/compat"; +import { + NotificationEventType, + DocumentPermission, + CollectionPermission, + UserRole, +} from "@shared/types"; +import Logger from "@server/logging/Logger"; +import { + Document, + Notification, + User, + Collection, + AccessRequest, +} from "@server/models"; +import { AccessRequestStatus } from "@server/models/AccessRequest"; +import type { AccessRequestEvent } from "@server/types"; +import { BaseTask, TaskPriority } from "./base/BaseTask"; + +/** + * Notification task that sends notifications to users who can manage a document + * when someone requests access to it. + */ +export default class DocumentAccessRequestNotificationsTask extends BaseTask { + public async perform(event: AccessRequestEvent) { + const document = await Document.findByPk(event.documentId); + if (!document) { + Logger.debug( + "task", + `Document not found for access request notification`, + { + documentId: event.documentId, + } + ); + return; + } + + const accessRequest = await AccessRequest.findByPk(event.modelId); + if ( + !accessRequest || + accessRequest.status !== AccessRequestStatus.Pending + ) { + Logger.debug("task", `Access request not pending for notification`, { + documentId: event.documentId, + accessRequestId: event.modelId, + }); + return; + } + + const recipients = await this.findDocumentAdmins(document); + Logger.debug("task", "Access request notification recipients", { + documentId: event.documentId, + accessRequestId: event.modelId, + recipientIds: recipients.map((r) => r.id), + }); + + for (const recipient of recipients) { + if (recipient.id === event.actorId) { + Logger.debug("task", "Skipping recipient: is the actor", { + documentId: event.documentId, + recipientId: recipient.id, + }); + continue; + } + if ( + !recipient.subscribedToEventType( + NotificationEventType.RequestDocumentAccess + ) + ) { + Logger.debug("task", "Skipping recipient: not subscribed", { + documentId: event.documentId, + recipientId: recipient.id, + }); + continue; + } + + await Notification.create({ + event: NotificationEventType.RequestDocumentAccess, + userId: recipient.id, + actorId: event.actorId, + teamId: event.teamId, + documentId: event.documentId, + accessRequestId: accessRequest.id, + }); + } + } + + /** + * Find users who can manage the document, with tiered fallback: + * document admins → collection admins → workspace admins. The first tier + * with any users is used. + * + * @param document - the document to find managers for. + * @returns list of users who can manage the document. + */ + private async findDocumentAdmins(document: Document): Promise { + const documentManagerIds = await Document.membershipUserIds( + document.id, + DocumentPermission.Admin + ); + + if (documentManagerIds.length > 0) { + return this.loadUsers(documentManagerIds, document.teamId); + } + + if (document.collectionId) { + const collectionManagerIds = await Collection.membershipUserIds( + document.collectionId, + CollectionPermission.Admin + ); + if (collectionManagerIds.length > 0) { + return this.loadUsers(collectionManagerIds, document.teamId); + } + } + + Logger.debug("task", "Falling back to workspace admins", { + documentId: document.id, + collectionId: document.collectionId, + }); + + return User.findAll({ + where: { + teamId: document.teamId, + role: UserRole.Admin, + suspendedAt: null, + }, + }); + } + + private async loadUsers(ids: string[], teamId: string): Promise { + return User.findAll({ + where: { + id: { [Op.in]: uniq(ids) }, + teamId, + suspendedAt: null, + }, + }); + } + + public get options() { + return { + priority: TaskPriority.Background, + }; + } +} diff --git a/server/routes/api/accessRequests/accessRequests.test.ts b/server/routes/api/accessRequests/accessRequests.test.ts new file mode 100644 index 0000000000..62adf9a5f9 --- /dev/null +++ b/server/routes/api/accessRequests/accessRequests.test.ts @@ -0,0 +1,554 @@ +import { DocumentPermission } from "@shared/types"; +import { AccessRequest, UserMembership } from "@server/models"; +import { AccessRequestStatus } from "@server/models/AccessRequest"; +import { + buildAdmin, + buildCollection, + buildDocument, + buildTeam, + buildUser, +} from "@server/test/factories"; +import { getTestServer } from "@server/test/support"; + +const server = getTestServer(); + +describe("#accessRequests.create", () => { + it("should require id", async () => { + const user = await buildUser(); + const res = await server.post("/api/accessRequests.create", { + body: { + token: user.getJwtToken(), + }, + }); + const body = await res.json(); + expect(res.status).toEqual(400); + expect(body.message).toEqual("documentId: Must be a valid UUID or slug"); + }); + + it("should require authentication", async () => { + const document = await buildDocument(); + const res = await server.post("/api/accessRequests.create", { + body: { + documentId: document.id, + }, + }); + expect(res.status).toEqual(401); + }); + + it("should return 404 for non-existent document", async () => { + const user = await buildUser(); + const res = await server.post("/api/accessRequests.create", { + body: { + token: user.getJwtToken(), + documentId: "a8f22c38-f4eb-4909-8c30-b927af36c5f3", + }, + }); + const body = await res.json(); + expect(res.status).toEqual(404); + expect(body.message).toEqual("Resource not found"); + }); + + it("should create access request for a document", async () => { + const team = await buildTeam(); + const owner = await buildUser({ teamId: team.id }); + const requester = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + userId: owner.id, + permission: null, + }); + const document = await buildDocument({ + teamId: team.id, + createdById: owner.id, + collectionId: collection.id, + }); + + const res = await server.post("/api/accessRequests.create", { + body: { + token: requester.getJwtToken(), + documentId: document.id, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.documentId).toEqual(document.id); + expect(body.data.userId).toEqual(requester.id); + }); + + it("should reject if user already has access", async () => { + const team = await buildTeam(); + const owner = await buildUser({ teamId: team.id }); + const requester = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + createdById: owner.id, + }); + + const res = await server.post("/api/accessRequests.create", { + body: { + token: requester.getJwtToken(), + documentId: document.id, + }, + }); + + expect(res.status).toEqual(400); + }); + + it("should work with document urlId", async () => { + const team = await buildTeam(); + const owner = await buildUser({ teamId: team.id }); + const requester = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + userId: owner.id, + permission: null, + }); + const document = await buildDocument({ + teamId: team.id, + createdById: owner.id, + collectionId: collection.id, + }); + + const res = await server.post("/api/accessRequests.create", { + body: { + token: requester.getJwtToken(), + documentId: document.urlId, + }, + }); + expect(res.status).toEqual(200); + }); + + it("should not allow new request if pending exists", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + userId: admin.id, + permission: null, + }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + collectionId: collection.id, + }); + + // Create first access request + const res1 = await server.post("/api/accessRequests.create", { + body: { + token: requester.getJwtToken(), + documentId: document.id, + }, + }); + + // Try to create another + const res2 = await server.post("/api/accessRequests.create", { + body: { + token: requester.getJwtToken(), + documentId: document.id, + }, + }); + + expect(res1.status).toEqual(200); + expect(res2.status).toEqual(400); + + // Verify only one access request exists + const count = await AccessRequest.count({ + where: { + documentId: document.id, + userId: requester.id, + }, + }); + expect(count).toEqual(1); + }); + + it("should allow creating new request after previous was dismissed", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + userId: admin.id, + permission: null, + }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + collectionId: collection.id, + }); + + // Create and dismiss first request + const res1 = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + status: AccessRequestStatus.Dismissed, + responderId: admin.id, + respondedAt: new Date(), + }); + + // Create new request + const res2 = await server.post("/api/accessRequests.create", { + body: { + token: requester.getJwtToken(), + documentId: document.id, + }, + }); + const body = await res2.json(); + + expect(res2.status).toEqual(200); + expect(body.data.id).not.toEqual(res1.id); + expect(body.data.status).toEqual(AccessRequestStatus.Pending); + }); +}); + +describe("#accessRequests.info", () => { + it("should require authentication", async () => { + const res = await server.post("/api/accessRequests.info"); + expect(res.status).toEqual(401); + }); + + it("should fail if both id and documentId are missing", async () => { + const user = await buildUser(); + const res = await server.post("/api/accessRequests.info", { + body: { + token: user.getJwtToken(), + }, + }); + expect(res.status).toEqual(400); + }); + + it("should return access request correctly by id", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + }); + + const res = await server.post("/api/accessRequests.info", { + body: { + token: requester.getJwtToken(), + id: accessRequest.id, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.id).toEqual(accessRequest.id); + expect(body.data.status).toEqual(AccessRequestStatus.Pending); + }); + + it("should return access request correctly by documentId", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + }); + + const res = await server.post("/api/accessRequests.info", { + body: { + token: requester.getJwtToken(), + documentId: document.urlId, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.id).toEqual(accessRequest.id); + expect(body.data.status).toEqual(AccessRequestStatus.Pending); + }); + + it("should return 404 if access request not found", async () => { + const user = await buildUser(); + const res = await server.post("/api/accessRequests.info", { + body: { + token: user.getJwtToken(), + id: "00000000-0000-0000-0000-000000000000", + }, + }); + expect(res.status).toEqual(404); + }); +}); + +describe("#accessRequests.approve", () => { + it("should require authentication", async () => { + const res = await server.post("/api/accessRequests.approve"); + expect(res.status).toEqual(401); + }); + + it("should approve an access request and grant access", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + status: AccessRequestStatus.Pending, + }); + + const res = await server.post("/api/accessRequests.approve", { + body: { + token: admin.getJwtToken(), + id: accessRequest.id, + permission: DocumentPermission.ReadWrite, + }, + }); + const body = await res.json(); + + expect(body.data.status).toEqual(AccessRequestStatus.Approved); + expect(body.data.responderId).toEqual(admin.id); + + // // Verify that the user now has access + const membership = await UserMembership.findOne({ + where: { + userId: requester.id, + documentId: document.id, + }, + }); + expect(membership).toBeTruthy(); + expect(membership?.permission).toEqual(DocumentPermission.ReadWrite); + }); + + it("should not allow non-managers to approve requests", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const nonManager = await buildUser(); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + await UserMembership.create({ + userId: admin.id, + documentId: document.id, + createdById: admin.id, + permission: DocumentPermission.ReadWrite, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + }); + + const res = await server.post("/api/accessRequests.approve", { + body: { + token: nonManager.getJwtToken(), + id: accessRequest.id, + permission: DocumentPermission.ReadWrite, + }, + }); + + expect(res.status).toEqual(403); + }); + + it("should be a no-op when user already has membership", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + await UserMembership.create({ + userId: requester.id, + documentId: document.id, + createdById: admin.id, + permission: DocumentPermission.Read, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + status: AccessRequestStatus.Pending, + }); + + const res = await server.post("/api/accessRequests.approve", { + body: { + token: admin.getJwtToken(), + id: accessRequest.id, + permission: DocumentPermission.ReadWrite, + }, + }); + + expect(res.status).toEqual(200); + + // Existing membership is unchanged. + const memberships = await UserMembership.findAll({ + where: { + userId: requester.id, + documentId: document.id, + }, + }); + expect(memberships).toHaveLength(1); + expect(memberships[0].permission).toEqual(DocumentPermission.Read); + }); + + it("should not allow approving requests that have been responded to", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + // Create access request that's already approved + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + status: AccessRequestStatus.Approved, + responderId: admin.id, + respondedAt: new Date(), + }); + + const res = await server.post("/api/accessRequests.approve", { + body: { + token: admin.getJwtToken(), + id: accessRequest.id, + permission: DocumentPermission.ReadWrite, + }, + }); + + expect(res.status).toEqual(400); + }); +}); + +describe("#accessRequests.dismiss", () => { + it("should require authentication", async () => { + const res = await server.post("/api/accessRequests.dismiss"); + expect(res.status).toEqual(401); + }); + + it("should dismiss an access request", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + // Create access request + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + }); + + const res = await server.post("/api/accessRequests.dismiss", { + body: { + token: admin.getJwtToken(), + id: accessRequest.id, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.status).toEqual(AccessRequestStatus.Dismissed); + expect(body.data.responderId).toEqual(admin.id); + + const membership = await UserMembership.findOne({ + where: { + userId: requester.id, + documentId: document.id, + }, + }); + expect(membership).toBeNull(); + }); + + it("should not allow non-managers to dismiss requests", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const nonManager = await buildUser(); + const document = await buildDocument({ + userId: admin.id, + teamId: team.id, + }); + + // add non-manager to the document with editor access + await UserMembership.create({ + userId: admin.id, + documentId: document.id, + createdById: admin.id, + permission: DocumentPermission.ReadWrite, + }); + + // Create access request + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + }); + + const res = await server.post("/api/accessRequests.dismiss", { + body: { + token: nonManager.getJwtToken(), + id: accessRequest.id, + }, + }); + + expect(res.status).toEqual(403); + }); + + it("should be a no-op when request has already been responded to", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const admin = await buildAdmin({ teamId: team.id }); + const responder = await buildAdmin({ teamId: team.id }); + const document = await buildDocument({ + createdById: admin.id, + teamId: team.id, + }); + + const respondedAt = new Date(); + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + status: AccessRequestStatus.Dismissed, + responderId: responder.id, + respondedAt, + }); + + const res = await server.post("/api/accessRequests.dismiss", { + body: { + token: admin.getJwtToken(), + id: accessRequest.id, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.status).toEqual(AccessRequestStatus.Dismissed); + expect(body.data.responderId).toEqual(responder.id); + }); +}); diff --git a/server/routes/api/accessRequests/accessRequests.ts b/server/routes/api/accessRequests/accessRequests.ts new file mode 100644 index 0000000000..ffc8af0cac --- /dev/null +++ b/server/routes/api/accessRequests/accessRequests.ts @@ -0,0 +1,180 @@ +import Router from "koa-router"; +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 { Document, AccessRequest, UserMembership } from "@server/models"; +import { AccessRequestStatus } from "@server/models/AccessRequest"; +import { authorize, can } from "@server/policies"; +import { presentAccessRequest, presentPolicies } from "@server/presenters"; +import type { APIContext } from "@server/types"; +import { RateLimiterStrategy } from "@server/utils/RateLimiter"; +import * as T from "./schema"; +import { InvalidRequestError, NotFoundError } from "@server/errors"; + +const router = new Router(); + +router.post( + "accessRequests.create", + rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), + auth(), + validate(T.AccessRequestsCreateSchema), + transaction(), + async (ctx: APIContext) => { + const { documentId } = ctx.input.body; + const { user } = ctx.state.auth; + const { transaction } = ctx.state; + + const document = await Document.findByPk(documentId, { + userId: user.id, + transaction, + rejectOnEmpty: true, + }); + + if (can(user, "read", document)) { + throw InvalidRequestError("User already has document access"); + } + if (user.teamId !== document.teamId) { + throw NotFoundError(); + } + + const accessRequest = await AccessRequest.createWithCtx(ctx, { + documentId: document.id, + teamId: user.teamId, + userId: user.id, + status: AccessRequestStatus.Pending, + }); + + ctx.body = { + data: presentAccessRequest(accessRequest), + policies: presentPolicies(user, [accessRequest]), + }; + } +); + +router.post( + "accessRequests.info", + rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), + auth(), + validate(T.AccessRequestsInfoSchema), + async (ctx: APIContext) => { + const { user } = ctx.state.auth; + const { id, documentId } = ctx.input.body; + let accessRequest: AccessRequest | null = null; + + if (id) { + accessRequest = await AccessRequest.findByPk(id); + } else if (documentId) { + const document = await Document.findByPk(documentId); + accessRequest = document + ? await AccessRequest.findPendingForUser({ + documentId: document.id, + userId: user.id, + }) + : null; + } + if (!accessRequest) { + throw NotFoundError("Access request not found"); + } + authorize(user, "read", accessRequest); + + ctx.body = { + data: presentAccessRequest(accessRequest), + policies: presentPolicies(user, [accessRequest]), + }; + } +); + +router.post( + "accessRequests.approve", + rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), + auth(), + validate(T.AccessRequestsApproveSchema), + transaction(), + async (ctx: APIContext) => { + const { id, permission } = ctx.input.body; + const { user } = ctx.state.auth; + const { transaction } = ctx.state; + + const accessRequest = await AccessRequest.findByPk(id, { + rejectOnEmpty: true, + transaction, + lock: { level: transaction.LOCK.UPDATE, of: AccessRequest }, + }); + authorize(user, "update", accessRequest); + authorize(user, "read", accessRequest.user); + + if (accessRequest.status !== AccessRequestStatus.Pending) { + throw InvalidRequestError("Access request has already been responded to"); + } + + const document = await Document.findByPk(accessRequest.documentId, { + userId: user.id, + transaction, + }); + authorize(user, "share", document); + + const membership = await UserMembership.findOne({ + where: { + userId: accessRequest.userId, + documentId: accessRequest.documentId, + }, + lock: transaction.LOCK.UPDATE, + transaction, + }); + + if (!membership) { + await UserMembership.createWithCtx(ctx, { + userId: accessRequest.userId, + documentId: accessRequest.documentId, + permission: permission, + createdById: user.id, + }); + } + + await accessRequest.approve(ctx); + + ctx.body = { + data: presentAccessRequest(accessRequest), + policies: presentPolicies(user, [accessRequest]), + }; + } +); + +router.post( + "accessRequests.dismiss", + rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), + auth(), + validate(T.AccessRequestsDismissSchema), + transaction(), + async (ctx: APIContext) => { + const { id } = ctx.input.body; + const { user } = ctx.state.auth; + const { transaction } = ctx.state; + + const accessRequest = await AccessRequest.findByPk(id, { + rejectOnEmpty: true, + transaction, + lock: { level: transaction.LOCK.UPDATE, of: AccessRequest }, + }); + authorize(user, "update", accessRequest); + authorize(user, "read", accessRequest.user); + + const document = await Document.findByPk(accessRequest.documentId, { + userId: user.id, + transaction, + }); + authorize(user, "share", document); + + if (accessRequest.status === AccessRequestStatus.Pending) { + await accessRequest.dismiss(ctx); + } + + ctx.body = { + data: presentAccessRequest(accessRequest), + policies: presentPolicies(user, [accessRequest]), + }; + } +); + +export default router; diff --git a/server/routes/api/accessRequests/index.ts b/server/routes/api/accessRequests/index.ts new file mode 100644 index 0000000000..f45a0444ab --- /dev/null +++ b/server/routes/api/accessRequests/index.ts @@ -0,0 +1 @@ +export { default } from "./accessRequests"; diff --git a/server/routes/api/accessRequests/schema.ts b/server/routes/api/accessRequests/schema.ts new file mode 100644 index 0000000000..9385ae40fd --- /dev/null +++ b/server/routes/api/accessRequests/schema.ts @@ -0,0 +1,52 @@ +import { z } from "zod"; +import { DocumentPermission } from "@shared/types"; +import { BaseSchema } from "@server/routes/api/schema"; +import { zodIdType } from "@server/utils/zod"; + +const BaseIdSchema = z.object({ + id: z.string().uuid(), +}); + +export const AccessRequestsCreateSchema = BaseSchema.extend({ + body: z.object({ + documentId: zodIdType(), + }), +}); + +export type AccessRequestsCreateReq = z.infer< + typeof AccessRequestsCreateSchema +>; + +export const AccessRequestsInfoSchema = BaseSchema.extend({ + body: z + .object({ + id: z.string().uuid().optional(), + documentId: zodIdType().optional(), + }) + .refine((data) => data.id || data.documentId, { + message: "Either 'id' or 'documentId' must be provided", + path: ["body"], + }), +}); + +export type AccessRequestsInfoReq = z.infer; + +export const AccessRequestsApproveSchema = BaseSchema.extend({ + body: BaseIdSchema.extend({ + permission: z + .nativeEnum(DocumentPermission) + .default(DocumentPermission.Read), + }), +}); + +export type AccessRequestsApproveReq = z.infer< + typeof AccessRequestsApproveSchema +>; + +export const AccessRequestsDismissSchema = BaseSchema.extend({ + body: BaseIdSchema, +}); + +export type AccessRequestsDismissReq = z.infer< + typeof AccessRequestsDismissSchema +>; diff --git a/server/routes/api/index.ts b/server/routes/api/index.ts index f9235858a0..3b6b7569ed 100644 --- a/server/routes/api/index.ts +++ b/server/routes/api/index.ts @@ -51,6 +51,7 @@ import urls from "./urls"; import userMemberships from "./userMemberships"; import users from "./users"; import views from "./views"; +import accessRequests from "./accessRequests"; const api = new Koa(); const router = new Router(); @@ -92,6 +93,7 @@ router.use("/", users.routes()); router.use("/", collections.routes()); router.use("/", comments.routes()); router.use("/", documents.routes()); +router.use("/", accessRequests.routes()); router.use("/", emojis.routes()); router.use("/", pins.routes()); router.use("/", revisions.routes()); diff --git a/server/types.ts b/server/types.ts index f5d6f77fae..5d419dc290 100644 --- a/server/types.ts +++ b/server/types.ts @@ -15,6 +15,7 @@ import type { import type { BaseSchema } from "@server/routes/api/schema"; import type { AccountProvisionerResult } from "./commands/accountProvisioner"; import type { + AccessRequest, ApiKey, Attachment, AuthenticationProvider, @@ -248,6 +249,7 @@ export type DocumentEvent = BaseEvent & createdAt: string; } | DocumentMovedEvent + | AccessRequestEvent ); export type TemplateEvent = BaseEvent & { @@ -308,6 +310,12 @@ export type DocumentUserEvent = BaseEvent & { }; }; +export type AccessRequestEvent = BaseEvent & { + name: "access_requests.create"; + modelId: string; + documentId: string; +}; + export type DocumentGroupEvent = BaseEvent & { name: "documents.add_group" | "documents.remove_group"; documentId: string; @@ -483,6 +491,7 @@ export type Event = | AuthenticationProviderEvent | DocumentEvent | DocumentUserEvent + | AccessRequestEvent | DocumentMovedEvent | DocumentGroupEvent | PinEvent diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 8d810c0fa6..4d37aa16d2 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -385,6 +385,15 @@ "Sorry, an error occurred.": "Sorry, an error occurred.", "Click to retry": "Click to retry", "Back": "Back", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Manage", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Unknown", "Mentions": "Mentions", @@ -417,7 +426,6 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m read", - "Manage": "Manage", "All members": "All members", "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} member", @@ -474,7 +482,6 @@ "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", @@ -719,6 +726,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "shared", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access 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", @@ -874,9 +884,13 @@ "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", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "We were unable to load the document while offline.", @@ -1312,6 +1326,8 @@ "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", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", diff --git a/shared/types.ts b/shared/types.ts index 6bf0f4313a..39860c05dd 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -480,6 +480,7 @@ export enum NotificationEventType { Onboarding = "emails.onboarding", Features = "emails.features", ExportCompleted = "emails.export_completed", + RequestDocumentAccess = "access_requests.create", } export enum NotificationChannelType { @@ -519,6 +520,7 @@ export const NotificationEventDefaults: Record = [NotificationEventType.ExportCompleted]: true, [NotificationEventType.AddUserToDocument]: true, [NotificationEventType.AddUserToCollection]: true, + [NotificationEventType.RequestDocumentAccess]: true, }; export enum UnfurlResourceType { From 7a75433bdc3a699341978c34fb01dd0ba5de9a32 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 9 May 2026 08:42:53 -0400 Subject: [PATCH 003/286] fix: Move OIDC redirect to useEffect (#12301) --- app/scenes/Login/Login.tsx | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/app/scenes/Login/Login.tsx b/app/scenes/Login/Login.tsx index 02c97a136f..423ea1b7ab 100644 --- a/app/scenes/Login/Login.tsx +++ b/app/scenes/Login/Login.tsx @@ -70,6 +70,23 @@ function Login({ children, onBack }: Props) { ); const [lastVisitedPath] = useLastVisitedPath(); const [spendPostLoginPath] = usePostLoginPath(); + const hasRedirectedToOidc = React.useRef(false); + + const shouldRedirectToOidc = + !auth.authenticated && + !auth.isFetching && + config?.providers.length === 1 && + config.providers[0].id === "oidc" && + !env.OIDC_DISABLE_REDIRECT && + !query.get("notice") && + !query.get("logout"); + + React.useEffect(() => { + if (shouldRedirectToOidc && !hasRedirectedToOidc.current && config) { + hasRedirectedToOidc.current = true; + window.location.href = getRedirectUrl(config.providers[0].authUrl); + } + }, [shouldRedirectToOidc, config]); const handleReset = React.useCallback(() => { setEmailLinkSentTo(""); @@ -270,16 +287,10 @@ function Login({ children, onBack }: Props) { ); } - // If there is only one provider and it's OIDC, redirect immediately. - if ( - config.providers.length === 1 && - config.providers[0].id === "oidc" && - !env.OIDC_DISABLE_REDIRECT && - !query.get("notice") && - !query.get("logout") - ) { - window.location.href = getRedirectUrl(config.providers[0].authUrl); - return null; + // If there is only one provider and it's OIDC, the redirect is performed + // from the effect above – render a loading indicator while we wait. + if (shouldRedirectToOidc) { + return ; } return ( From 4548fc00bf24d4bc2eb6d14ed403b458b9744b75 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 9 May 2026 09:02:50 -0400 Subject: [PATCH 004/286] chore(deps): Remove resolutions that no longer prevent downgrades (#12304) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): Remove resolutions that no longer prevent downgrades Audited each resolution by removing it and running yarn install to check whether any package would resolve to a lower version. Removed 31 entries that were no-ops because the natural resolution already satisfies (or exceeds) the resolution target — caret ranges that npm now publishes a matching or higher version for, and one fast-xml-parser pin where the underlying dependency moved. Kept 13 entries: those that still prevent a regression, plus the @types/* and prosemirror-transform pins that exist to dedupe transitive copies against the project's own pinned versions. * chore(deps): Bump @babel/preset-env to 7.29.5 to address GHSA-fv7c-fp4j-7gwp @babel/plugin-transform-modules-systemjs <=7.29.3 generates arbitrary code when compiling malicious input. Upgrading @babel/preset-env to ^7.29.5 brings in the patched ^7.29.4 transitively. --------- Co-authored-by: Claude --- package.json | 35 +------------ yarn.lock | 145 +++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 113 insertions(+), 67 deletions(-) diff --git a/package.json b/package.json index f50643fee3..a663e9755a 100644 --- a/package.json +++ b/package.json @@ -279,7 +279,7 @@ "@babel/core": "^7.28.6", "@babel/plugin-proposal-decorators": "^7.28.6", "@babel/plugin-transform-class-properties": "^7.27.1", - "@babel/preset-env": "^7.29.3", + "@babel/preset-env": "^7.29.5", "@babel/preset-react": "^7.28.5", "@babel/preset-typescript": "^7.28.5", "@faker-js/faker": "^8.4.1", @@ -382,45 +382,14 @@ "prosemirror-transform": "1.10.5", "debug": "4.3.4", "js-yaml": "^4.1.1", - "qs@npm:^6.5.2": "^6.14.2", - "qs@npm:^6.11.0": "^6.14.2", - "qs@npm:^6.14.0": "^6.14.2", "prismjs": "1.30.0", - "cheerio": "1.0.0-rc.12", "zod": "^4.3.6", - "fast-xml-parser@npm:5.5.7": "5.7.0", - "fast-xml-parser@npm:5.5.8": "5.7.0", - "@aws-sdk/xml-builder@npm:^3.972.18": "npm:3.972.22", - "ajv@npm:^8.0.0": "^8.18.0", - "ajv@npm:^8.6.0": "^8.18.0", - "ajv@npm:^8.17.1": "^8.18.0", "ajv@npm:~8.13.0": "^8.18.0", "@types/markdown-it": "14.1.2", - "minimatch@npm:^3.0.2": "^3.1.5", "ip-address@npm:10.1.0": "^10.2.0", - "ip-address@npm:^10.0.1": "^10.2.0", - "minimatch@npm:^3.0.4": "^3.1.5", - "minimatch@npm:^3.1.1": "^3.1.5", - "minimatch@npm:^5.0.1": "^5.1.9", "minimatch@npm:9.0.1": "9.0.9", - "minimatch@npm:^9.0.4": "^9.0.9", - "brace-expansion@npm:^1.1.7": "^1.1.13", - "brace-expansion@npm:^2.0.1": "^2.0.3", - "picomatch@npm:^2.0.4": "^2.3.2", - "picomatch@npm:^2.2.1": "^2.3.2", - "picomatch@npm:^2.2.2": "^2.3.2", - "picomatch@npm:^2.2.3": "^2.3.2", - "picomatch@npm:^2.3.1": "^2.3.2", - "picomatch@npm:^4.0.2": "^4.0.4", - "picomatch@npm:^4.0.3": "^4.0.4", "lodash@npm:4.17.21": "^4.18.1", - "lodash@npm:^4.17.11": "^4.18.1", - "lodash@npm:^4.17.20": "^4.18.1", - "lodash@npm:^4.17.21": "^4.18.1", - "lodash@npm:^4.17.23": "^4.18.1", - "lodash-es@npm:4.17.23": "^4.18.1", - "lodash-es@npm:^4.17.21": "^4.18.1", - "lodash-es@npm:^4.17.23": "^4.18.1" + "lodash-es@npm:4.17.23": "^4.18.1" }, "version": "1.7.1", "packageManager": "yarn@4.11.0" diff --git a/yarn.lock b/yarn.lock index ff6c56a8fc..af42c5f098 100644 --- a/yarn.lock +++ b/yarn.lock @@ -742,7 +742,7 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/xml-builder@npm:3.972.22": +"@aws-sdk/xml-builder@npm:^3.972.18": version: 3.972.22 resolution: "@aws-sdk/xml-builder@npm:3.972.22" dependencies: @@ -1510,9 +1510,9 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-systemjs@npm:^7.29.0": - version: 7.29.0 - resolution: "@babel/plugin-transform-modules-systemjs@npm:7.29.0" +"@babel/plugin-transform-modules-systemjs@npm:^7.29.4": + version: 7.29.4 + resolution: "@babel/plugin-transform-modules-systemjs@npm:7.29.4" dependencies: "@babel/helper-module-transforms": "npm:^7.28.6" "@babel/helper-plugin-utils": "npm:^7.28.6" @@ -1520,7 +1520,7 @@ __metadata: "@babel/traverse": "npm:^7.29.0" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/44ea502f2c990398b7d9adc5b44d9e1810a0a5e86eebc05c92d039458f0b3994fe243efa9353b90f8a648d8a91b79845fb353d8679d7324cc9de0162d732771d + checksum: 10c0/1da94f89ef8ba1aa1501136a80eb4c010c6a19f5550e10db84677b3ccb7a4934c8098f2b5134def87cf513bf05747ffa523d33722a1ea5a5c8ef956e9136c4c2 languageName: node linkType: hard @@ -1895,9 +1895,9 @@ __metadata: languageName: node linkType: hard -"@babel/preset-env@npm:^7.11.0, @babel/preset-env@npm:^7.29.3": - version: 7.29.3 - resolution: "@babel/preset-env@npm:7.29.3" +"@babel/preset-env@npm:^7.11.0, @babel/preset-env@npm:^7.29.5": + version: 7.29.5 + resolution: "@babel/preset-env@npm:7.29.5" dependencies: "@babel/compat-data": "npm:^7.29.3" "@babel/helper-compilation-targets": "npm:^7.28.6" @@ -1938,7 +1938,7 @@ __metadata: "@babel/plugin-transform-member-expression-literals": "npm:^7.27.1" "@babel/plugin-transform-modules-amd": "npm:^7.27.1" "@babel/plugin-transform-modules-commonjs": "npm:^7.28.6" - "@babel/plugin-transform-modules-systemjs": "npm:^7.29.0" + "@babel/plugin-transform-modules-systemjs": "npm:^7.29.4" "@babel/plugin-transform-modules-umd": "npm:^7.27.1" "@babel/plugin-transform-named-capturing-groups-regex": "npm:^7.29.0" "@babel/plugin-transform-new-target": "npm:^7.27.1" @@ -1972,7 +1972,7 @@ __metadata: semver: "npm:^6.3.1" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/40591ca097502b547eaf844fceaafbc71aa726a86bec95b66ca4e762b2642a8dfc224eb9204a9d0d952ad62b6b326008f6be4dfc9e274e4438503e4975848372 + checksum: 10c0/9d70ed5235f5f210bc793cd3e47ae7b108356c6d86b4ef3b4f9718e6ed5ec011dcd3d994e3d211e05e755e9442558eeb4723570bd2df3db7ba5863eaa98303e3 languageName: node linkType: hard @@ -8469,6 +8469,18 @@ __metadata: languageName: node linkType: hard +"ajv@npm:^8.0.0, ajv@npm:^8.17.1, ajv@npm:^8.6.0": + version: 8.20.0 + resolution: "ajv@npm:8.20.0" + dependencies: + fast-deep-equal: "npm:^3.1.3" + fast-uri: "npm:^3.0.1" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + checksum: 10c0/5df9a1c8f83863cde1bd3a9ddb426f599718f88e3dc9153616c79fb28e0be455335830d7f21d745576519f057b371352daa31047b6a33d7036fe08777d60cf2a + languageName: node + linkType: hard + "ajv@npm:^8.18.0": version: 8.18.0 resolution: "ajv@npm:8.18.0" @@ -8990,7 +9002,7 @@ __metadata: languageName: node linkType: hard -"brace-expansion@npm:^1.1.13": +"brace-expansion@npm:^1.1.7": version: 1.1.14 resolution: "brace-expansion@npm:1.1.14" dependencies: @@ -9000,7 +9012,7 @@ __metadata: languageName: node linkType: hard -"brace-expansion@npm:^2.0.2, brace-expansion@npm:^2.0.3": +"brace-expansion@npm:^2.0.1, brace-expansion@npm:^2.0.2": version: 2.1.0 resolution: "brace-expansion@npm:2.1.0" dependencies: @@ -9306,18 +9318,22 @@ __metadata: languageName: node linkType: hard -"cheerio@npm:1.0.0-rc.12": - version: 1.0.0-rc.12 - resolution: "cheerio@npm:1.0.0-rc.12" +"cheerio@npm:^1.0.0-rc.2": + version: 1.2.0 + resolution: "cheerio@npm:1.2.0" dependencies: cheerio-select: "npm:^2.1.0" dom-serializer: "npm:^2.0.0" domhandler: "npm:^5.0.3" - domutils: "npm:^3.0.1" - htmlparser2: "npm:^8.0.1" - parse5: "npm:^7.0.0" - parse5-htmlparser2-tree-adapter: "npm:^7.0.0" - checksum: 10c0/c85d2f2461e3f024345b78e0bb16ad8e41492356210470dd1e7d5a91391da9fcf6c0a7cb48a9ba8820330153f0cedb4d0a60c7af15d96ecdb3092299b9d9c0cc + domutils: "npm:^3.2.2" + encoding-sniffer: "npm:^0.2.1" + htmlparser2: "npm:^10.1.0" + parse5: "npm:^7.3.0" + parse5-htmlparser2-tree-adapter: "npm:^7.1.0" + parse5-parser-stream: "npm:^7.1.2" + undici: "npm:^7.19.0" + whatwg-mimetype: "npm:^4.0.0" + checksum: 10c0/91a566aabfa9962f28056045bb7d92d79c0f8f3abb1fb86a852a9d1760556adddeb01a36b6f08fa7c133282375d387ae450a181a659e76c6a64016c30cc3f611 languageName: node linkType: hard @@ -10759,7 +10775,7 @@ __metadata: languageName: node linkType: hard -"domutils@npm:^3.0.1": +"domutils@npm:^3.0.1, domutils@npm:^3.2.2": version: 3.2.2 resolution: "domutils@npm:3.2.2" dependencies: @@ -10981,6 +10997,16 @@ __metadata: languageName: node linkType: hard +"encoding-sniffer@npm:^0.2.1": + version: 0.2.1 + resolution: "encoding-sniffer@npm:0.2.1" + dependencies: + iconv-lite: "npm:^0.6.3" + whatwg-encoding: "npm:^3.1.1" + checksum: 10c0/d6b591880788f3baf8dd1744636dd189d24a1ec93e6f9817267c60ac3458a5191ca70ab1a186fb67731beff1c3489c6527dfdc4718158ed8460ab2f400dd5e7d + languageName: node + linkType: hard + "encoding@npm:^0.1.13": version: 0.1.13 resolution: "encoding@npm:0.1.13" @@ -11057,6 +11083,13 @@ __metadata: languageName: node linkType: hard +"entities@npm:^7.0.1": + version: 7.0.1 + resolution: "entities@npm:7.0.1" + checksum: 10c0/b4fb9937bb47ecb00aaaceb9db9cdd1cc0b0fb649c0e843d05cf5dbbd2e9d2df8f98721d8b1b286445689c72af7b54a7242fc2d63ef7c9739037a8c73363e7ca + languageName: node + linkType: hard + "env-ci@npm:7.3.0": version: 7.3.0 resolution: "env-ci@npm:7.3.0" @@ -12572,7 +12605,19 @@ __metadata: languageName: node linkType: hard -"htmlparser2@npm:^8.0.1, htmlparser2@npm:^8.0.2": +"htmlparser2@npm:^10.1.0": + version: 10.1.0 + resolution: "htmlparser2@npm:10.1.0" + dependencies: + domelementtype: "npm:^2.3.0" + domhandler: "npm:^5.0.3" + domutils: "npm:^3.2.2" + entities: "npm:^7.0.1" + checksum: 10c0/36394e29b80cfcc5e78e0fa4d3aa21fdaac3e6778d23e5c933e625c290987cd9a724a2eb0753ab60ed0c69dfaba0ab115f0ee50fb112fd8f0c4d522e7e0089a2 + languageName: node + linkType: hard + +"htmlparser2@npm:^8.0.2": version: 8.0.2 resolution: "htmlparser2@npm:8.0.2" dependencies: @@ -13001,7 +13046,7 @@ __metadata: languageName: node linkType: hard -"ip-address@npm:^10.2.0": +"ip-address@npm:^10.0.1, ip-address@npm:^10.2.0": version: 10.2.0 resolution: "ip-address@npm:10.2.0" checksum: 10c0/5a00aada6e922c9c69dfc800ed5d0fa3348675ebdeed0e1575f503f27ca385b5f534363c9af7ad1daf64c1f1409388cdd3cc2e9b9b0fe1c924a431378d55075a @@ -14361,7 +14406,7 @@ __metadata: languageName: node linkType: hard -"lodash-es@npm:^4.18.1": +"lodash-es@npm:^4.17.21, lodash-es@npm:^4.17.23, lodash-es@npm:^4.18.1": version: 4.18.1 resolution: "lodash-es@npm:4.18.1" checksum: 10c0/35d4dcf87ef07f8d090f409447575800108057e360b445f590d0d25d09e3d1e33a163d2fc100d4d072b0f901d5e2fc533cd7c4bfd8eeb38a06abec693823c8b8 @@ -14501,7 +14546,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.18.1": +"lodash@npm:^4.17.11, lodash@npm:^4.17.20, lodash@npm:^4.17.21, lodash@npm:^4.18.1": version: 4.18.1 resolution: "lodash@npm:4.18.1" checksum: 10c0/757228fc68805c59789e82185135cf85f05d0b2d3d54631d680ca79ec21944ec8314d4533639a14b8bcfbd97a517e78960933041a5af17ecb693ec6eecb99a27 @@ -14892,7 +14937,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:9.0.9, minimatch@npm:^9.0.9": +"minimatch@npm:9.0.9, minimatch@npm:^9.0.4": version: 9.0.9 resolution: "minimatch@npm:9.0.9" dependencies: @@ -14910,7 +14955,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^3.1.5": +"minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.1.1": version: 3.1.5 resolution: "minimatch@npm:3.1.5" dependencies: @@ -14919,7 +14964,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^5.1.9": +"minimatch@npm:^5.0.1": version: 5.1.9 resolution: "minimatch@npm:5.1.9" dependencies: @@ -15692,7 +15737,7 @@ __metadata: "@babel/core": "npm:^7.28.6" "@babel/plugin-proposal-decorators": "npm:^7.28.6" "@babel/plugin-transform-class-properties": "npm:^7.27.1" - "@babel/preset-env": "npm:^7.29.3" + "@babel/preset-env": "npm:^7.29.5" "@babel/preset-react": "npm:^7.28.5" "@babel/preset-typescript": "npm:^7.28.5" "@benrbray/prosemirror-math": "npm:^0.2.2" @@ -16313,7 +16358,7 @@ __metadata: languageName: node linkType: hard -"parse5-htmlparser2-tree-adapter@npm:^7.0.0": +"parse5-htmlparser2-tree-adapter@npm:^7.1.0": version: 7.1.0 resolution: "parse5-htmlparser2-tree-adapter@npm:7.1.0" dependencies: @@ -16323,7 +16368,16 @@ __metadata: languageName: node linkType: hard -"parse5@npm:^7.0.0, parse5@npm:^7.1.2": +"parse5-parser-stream@npm:^7.1.2": + version: 7.1.2 + resolution: "parse5-parser-stream@npm:7.1.2" + dependencies: + parse5: "npm:^7.0.0" + checksum: 10c0/e236c61000d38ecad369e725a48506b051cebad8abb00e6d4e8bff7aa85c183820fcb45db1559cc90955bdbbdbd665ea94c41259594e74566fff411478dc7fcb + languageName: node + linkType: hard + +"parse5@npm:^7.0.0, parse5@npm:^7.1.2, parse5@npm:^7.3.0": version: 7.3.0 resolution: "parse5@npm:7.3.0" dependencies: @@ -16683,14 +16737,14 @@ __metadata: languageName: node linkType: hard -"picomatch@npm:^2.3.2": +"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2, picomatch@npm:^2.3.1": version: 2.3.2 resolution: "picomatch@npm:2.3.2" checksum: 10c0/a554d1709e59be97d1acb9eaedbbc700a5c03dbd4579807baed95100b00420bc729335440ef15004ae2378984e2487a7c1cebd743cfdb72b6fa9ab69223c0d61 languageName: node linkType: hard -"picomatch@npm:^4.0.4": +"picomatch@npm:^4.0.2, picomatch@npm:^4.0.3, picomatch@npm:^4.0.4": version: 4.0.4 resolution: "picomatch@npm:4.0.4" checksum: 10c0/e2c6023372cc7b5764719a5ffb9da0f8e781212fa7ca4bd0562db929df8e117460f00dff3cb7509dacfc06b86de924b247f504d0ce1806a37fac4633081466b0 @@ -17209,7 +17263,7 @@ __metadata: languageName: node linkType: hard -"qs@npm:^6.14.2": +"qs@npm:^6.11.0, qs@npm:^6.14.0, qs@npm:^6.5.2": version: 6.15.1 resolution: "qs@npm:6.15.1" dependencies: @@ -20095,6 +20149,13 @@ __metadata: languageName: node linkType: hard +"undici@npm:^7.19.0": + version: 7.25.0 + resolution: "undici@npm:7.25.0" + checksum: 10c0/02a0b45dc14eb91bc488948750232450fe52f27a6b08086d6ac6736bb47908d600fe3a96d346f12eab24729c782e5c2f693bc8e8eca6696d4e4c09b1ed4cb4ec + languageName: node + linkType: hard + "unfetch@npm:^4.2.0": version: 4.2.0 resolution: "unfetch@npm:4.2.0" @@ -20865,6 +20926,15 @@ __metadata: languageName: node linkType: hard +"whatwg-encoding@npm:^3.1.1": + version: 3.1.1 + resolution: "whatwg-encoding@npm:3.1.1" + dependencies: + iconv-lite: "npm:0.6.3" + checksum: 10c0/273b5f441c2f7fda3368a496c3009edbaa5e43b71b09728f90425e7f487e5cef9eb2b846a31bd760dd8077739c26faf6b5ca43a5f24033172b003b72cf61a93e + languageName: node + linkType: hard + "whatwg-mimetype@npm:^3.0.0": version: 3.0.0 resolution: "whatwg-mimetype@npm:3.0.0" @@ -20872,6 +20942,13 @@ __metadata: languageName: node linkType: hard +"whatwg-mimetype@npm:^4.0.0": + version: 4.0.0 + resolution: "whatwg-mimetype@npm:4.0.0" + checksum: 10c0/a773cdc8126b514d790bdae7052e8bf242970cebd84af62fb2f35a33411e78e981f6c0ab9ed1fe6ec5071b09d5340ac9178e05b52d35a9c4bcf558ba1b1551df + languageName: node + linkType: hard + "whatwg-url@npm:^12.0.0, whatwg-url@npm:^12.0.1": version: 12.0.1 resolution: "whatwg-url@npm:12.0.1" From fba1bcef87c2d9f005d7b4fbde77fa9c647473f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 09:09:36 -0400 Subject: [PATCH 005/286] chore(deps): bump hono from 4.12.16 to 4.12.18 (#12305) Bumps [hono](https://github.com/honojs/hono) from 4.12.16 to 4.12.18. - [Release notes](https://github.com/honojs/hono/releases) - [Commits](https://github.com/honojs/hono/compare/v4.12.16...v4.12.18) --- updated-dependencies: - dependency-name: hono dependency-version: 4.12.18 dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index af42c5f098..b3901d0b78 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12556,9 +12556,9 @@ __metadata: linkType: hard "hono@npm:^4.11.4": - version: 4.12.16 - resolution: "hono@npm:4.12.16" - checksum: 10c0/3afee13722bf574780a641bd6d8812663c650fb7ac86df390f2d90293e1a6e2413aa9c45e4bc5b626a29c1b534fdb8353dd2151aab09bc4a95cd277aad4bd5c7 + version: 4.12.18 + resolution: "hono@npm:4.12.18" + checksum: 10c0/b0b9688fd9e41a1847b077d579dc0e92a28b67c247c6ee7d1e751c0bae269824c30c7773feff1a2874e40ea36a3d2f9d1fc5ba618a28ecdf2ca1b33ed2473864 languageName: node linkType: hard From 7ff1c84530374d35fb0c069338cc622c9d34687c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 9 May 2026 11:32:17 -0400 Subject: [PATCH 006/286] chore: Short-circuit common scanner/crawler routes (#12306) * Shortcircuit common scanner/crawler routes * PR feedback, remove query strings --- server/routes/index.test.ts | 33 +++++++++++++++++++++++++++++++++ server/routes/index.ts | 6 ++++++ server/utils/url.test.ts | 35 ++++++++++++++++++++++++++++++++++- server/utils/url.ts | 25 +++++++++++++++++++++++++ 4 files changed, 98 insertions(+), 1 deletion(-) diff --git a/server/routes/index.test.ts b/server/routes/index.test.ts index 005f162561..319189b105 100644 --- a/server/routes/index.test.ts +++ b/server/routes/index.test.ts @@ -163,3 +163,36 @@ describe("/s/:id", () => { expect(body).not.toContain("[Child Document]"); }); }); + +describe("scanner path 404s", () => { + it.each([ + "/.well-known/gpc.json", + "/.env", + "/.git/config", + "/cgi-bin/test.cgi", + "/wp-admin/setup-config.php", + "/wp-login.php", + "/xmlrpc.php", + "/admin.php", + "/phpmyadmin/index.php", + "/actuator/health", + "/HNAP1/", + ])("returns 404 for %s without rendering the app shell", async (path) => { + const res = await server.get(path); + const body = await res.text(); + expect(res.status).toEqual(404); + expect(body).not.toContain(""); + }); + + it("still serves the app shell for legitimate unknown paths", async () => { + const res = await server.get("/some-app-route"); + expect(res.status).toEqual(200); + }); + + it("still serves the OAuth well-known endpoint", async () => { + const res = await server.get("/.well-known/oauth-authorization-server"); + expect(res.status).toEqual(200); + const body = await res.json(); + expect(body.issuer).toBeDefined(); + }); +}); diff --git a/server/routes/index.ts b/server/routes/index.ts index 0d304ec501..7bf8bf6c13 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -15,6 +15,7 @@ import { Integration } from "@server/models"; import { opensearchResponse } from "@server/utils/opensearch"; import { getTeamFromContext } from "@server/utils/passport"; import { robotsResponse } from "@server/utils/robots"; +import { isInvalidAppPath } from "@server/utils/url"; import apexRedirect from "../middlewares/apexRedirect"; import { renderApp, renderShare } from "./app"; import { renderEmbed } from "./embeds"; @@ -217,6 +218,11 @@ router.get("/sitemap.xml", async (ctx) => { // catch all for application router.get("*", async (ctx, next) => { + if (isInvalidAppPath(ctx.path)) { + ctx.status = 404; + return; + } + if (ctx.state?.rootShare) { // Only allow root path for root share domains, return 404 for other paths. // Valid paths like /doc/:documentSlug and /sitemap.xml are handled above. diff --git a/server/utils/url.test.ts b/server/utils/url.test.ts index 132a221997..ca7f34b2e3 100644 --- a/server/utils/url.test.ts +++ b/server/utils/url.test.ts @@ -1,7 +1,7 @@ import dns from "node:dns"; import type { MockInstance } from "vitest"; import env from "@server/env"; -import { validateUrlNotPrivate } from "./url"; +import { isInvalidAppPath, validateUrlNotPrivate } from "./url"; describe("validateUrlNotPrivate", () => { let lookupSpy: MockInstance; @@ -98,3 +98,36 @@ describe("validateUrlNotPrivate", () => { }); }); }); + +describe("isInvalidAppPath", () => { + it.each([ + "/.well-known/gpc.json", + "/.env", + "/.env.production", + "/.git/config", + "/.DS_Store", + "/cgi-bin/test.cgi", + "/wp-admin/setup-config.php", + "/wp-login.php", + "/wp-content/plugins/foo", + "/xmlrpc.php", + "/admin.php", + "/phpmyadmin/index.php", + "/actuator/health", + "/HNAP1/", + "/index.php", + ])("returns true for scanner path %s", (path) => { + expect(isInvalidAppPath(path)).toBe(true); + }); + + it.each([ + "/", + "/home", + "/doc/document-slug", + "/collection/abc123", + "/settings/account", + "/api/documents.list", + ])("returns false for legitimate path %s", (path) => { + expect(isInvalidAppPath(path)).toBe(false); + }); +}); diff --git a/server/utils/url.ts b/server/utils/url.ts index 24df346045..61b5017c5d 100644 --- a/server/utils/url.ts +++ b/server/utils/url.ts @@ -18,6 +18,31 @@ const privateRanges = new Set([ export const generateUrlId = () => randomString(UrlIdLength); +// Paths probed by vulnerability scanners. +const scannerPathPattern = new RegExp( + [ + // paths + "^\\/(?:cgi-bin|wp-admin|wp-content|wp-includes|wp-json|wp-login\\.php|wordpress|xmlrpc\\.php|phpmyadmin|pma|myadmin|owa|autodiscover|actuator|vendor|webdav|cms|drupal|joomla|magento|laravel|adminer|console|server-status|server-info|HNAP1|boaform|hudson|jenkins)(?:\\/|$)", + // file endings + "\\.(?:php|asp|aspx|jsp|cgi|env|sql|bak|swp|htaccess|htpasswd)(?:$|[/?])", + // dotfiles + "^\\/\\.(?:well-known|env|git|svn|aws|ssh|DS_Store)", + ].join("|"), + "i" +); + +/** + * Checks whether a request path looks like an automated scanner probe rather + * than a legitimate application route, so the server can short-circuit with a + * 404 instead of rendering the SPA shell. + * + * @param path - the request path to check. + * @returns true if the path matches a known scanner pattern. + */ +export function isInvalidAppPath(path: string): boolean { + return scannerPathPattern.test(path); +} + /** * Checks if an IP address is private, loopback, or link-local. * From 2cb47aa421640e4e971e9508f0317bd6e71f7b3f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 9 May 2026 13:53:45 -0400 Subject: [PATCH 007/286] chore(deps): Bump i18next-parser to 9.4.0 to fix pre-commit hook (#12307) i18next-parser 8.13.0 used a default import for cheerio, which broke when cheerio dropped its default export. 9.x switched to a namespace import. Pin the parser's transitive i18next to ^23.16.8 so plural keys continue to be emitted in compatibilityJSON v3 format expected by the runtime (i18next 22.5.1). --- package.json | 5 +- yarn.lock | 313 ++++++++++++++++++++++++++------------------------- 2 files changed, 163 insertions(+), 155 deletions(-) diff --git a/package.json b/package.json index a663e9755a..0df5c9b41a 100644 --- a/package.json +++ b/package.json @@ -357,7 +357,7 @@ "concurrently": "^8.2.2", "discord-api-types": "^0.38.46", "husky": "^8.0.3", - "i18next-parser": "^8.13.0", + "i18next-parser": "^9.4.0", "ioredis-mock": "^8.13.1", "lint-staged": "^16.4.0", "msw": "^2.14.2", @@ -389,7 +389,8 @@ "ip-address@npm:10.1.0": "^10.2.0", "minimatch@npm:9.0.1": "9.0.9", "lodash@npm:4.17.21": "^4.18.1", - "lodash-es@npm:4.17.23": "^4.18.1" + "lodash-es@npm:4.17.23": "^4.18.1", + "i18next-parser/i18next": "^23.16.8" }, "version": "1.7.1", "packageManager": "yarn@4.11.0" diff --git a/yarn.lock b/yarn.lock index b3901d0b78..f874f22242 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2020,7 +2020,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.20.6, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.9.2": +"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.20.6, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.25.0, @babel/runtime@npm:^7.9.2": version: 7.29.2 resolution: "@babel/runtime@npm:7.29.2" checksum: 10c0/30b80a0140d16467792e1bbeb06f655b0dab70407da38dfac7fedae9c859f9ae9d846ef14ad77bd3814c064295fe9b1bc551f1541ea14646ae9f22b71a8bc17a @@ -2471,163 +2471,184 @@ __metadata: languageName: node linkType: hard -"@esbuild/aix-ppc64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/aix-ppc64@npm:0.20.2" +"@esbuild/aix-ppc64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/aix-ppc64@npm:0.25.12" conditions: os=aix & cpu=ppc64 languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/android-arm64@npm:0.20.2" +"@esbuild/android-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/android-arm64@npm:0.25.12" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@esbuild/android-arm@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/android-arm@npm:0.20.2" +"@esbuild/android-arm@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/android-arm@npm:0.25.12" conditions: os=android & cpu=arm languageName: node linkType: hard -"@esbuild/android-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/android-x64@npm:0.20.2" +"@esbuild/android-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/android-x64@npm:0.25.12" conditions: os=android & cpu=x64 languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/darwin-arm64@npm:0.20.2" +"@esbuild/darwin-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/darwin-arm64@npm:0.25.12" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/darwin-x64@npm:0.20.2" +"@esbuild/darwin-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/darwin-x64@npm:0.25.12" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/freebsd-arm64@npm:0.20.2" +"@esbuild/freebsd-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/freebsd-arm64@npm:0.25.12" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/freebsd-x64@npm:0.20.2" +"@esbuild/freebsd-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/freebsd-x64@npm:0.25.12" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-arm64@npm:0.20.2" +"@esbuild/linux-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-arm64@npm:0.25.12" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-arm@npm:0.20.2" +"@esbuild/linux-arm@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-arm@npm:0.25.12" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-ia32@npm:0.20.2" +"@esbuild/linux-ia32@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-ia32@npm:0.25.12" conditions: os=linux & cpu=ia32 languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-loong64@npm:0.20.2" +"@esbuild/linux-loong64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-loong64@npm:0.25.12" conditions: os=linux & cpu=loong64 languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-mips64el@npm:0.20.2" +"@esbuild/linux-mips64el@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-mips64el@npm:0.25.12" conditions: os=linux & cpu=mips64el languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-ppc64@npm:0.20.2" +"@esbuild/linux-ppc64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-ppc64@npm:0.25.12" conditions: os=linux & cpu=ppc64 languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-riscv64@npm:0.20.2" +"@esbuild/linux-riscv64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-riscv64@npm:0.25.12" conditions: os=linux & cpu=riscv64 languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-s390x@npm:0.20.2" +"@esbuild/linux-s390x@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-s390x@npm:0.25.12" conditions: os=linux & cpu=s390x languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/linux-x64@npm:0.20.2" +"@esbuild/linux-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/linux-x64@npm:0.25.12" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/netbsd-x64@npm:0.20.2" +"@esbuild/netbsd-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/netbsd-arm64@npm:0.25.12" + conditions: os=netbsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/netbsd-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/netbsd-x64@npm:0.25.12" conditions: os=netbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/openbsd-x64@npm:0.20.2" +"@esbuild/openbsd-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/openbsd-arm64@npm:0.25.12" + conditions: os=openbsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/openbsd-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/openbsd-x64@npm:0.25.12" conditions: os=openbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/sunos-x64@npm:0.20.2" +"@esbuild/openharmony-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/openharmony-arm64@npm:0.25.12" + conditions: os=openharmony & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/sunos-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/sunos-x64@npm:0.25.12" conditions: os=sunos & cpu=x64 languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/win32-arm64@npm:0.20.2" +"@esbuild/win32-arm64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/win32-arm64@npm:0.25.12" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/win32-ia32@npm:0.20.2" +"@esbuild/win32-ia32@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/win32-ia32@npm:0.25.12" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.20.2": - version: 0.20.2 - resolution: "@esbuild/win32-x64@npm:0.20.2" +"@esbuild/win32-x64@npm:0.25.12": + version: 0.25.12 + resolution: "@esbuild/win32-x64@npm:0.25.12" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -8469,7 +8490,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^8.0.0, ajv@npm:^8.17.1, ajv@npm:^8.6.0": +"ajv@npm:^8.0.0, ajv@npm:^8.17.1, ajv@npm:^8.18.0, ajv@npm:^8.6.0": version: 8.20.0 resolution: "ajv@npm:8.20.0" dependencies: @@ -8481,18 +8502,6 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^8.18.0": - version: 8.18.0 - resolution: "ajv@npm:8.18.0" - dependencies: - fast-deep-equal: "npm:^3.1.3" - fast-uri: "npm:^3.0.1" - json-schema-traverse: "npm:^1.0.0" - require-from-string: "npm:^2.0.2" - checksum: 10c0/e7517c426173513a07391be951879932bdf3348feaebd2199f5b901c20f99d60db8cd1591502d4d551dc82f594e82a05c4fe1c70139b15b8937f7afeaed9532f - languageName: node - linkType: hard - "ansi-escapes@npm:^7.0.0": version: 7.3.0 resolution: "ansi-escapes@npm:7.3.0" @@ -9318,7 +9327,7 @@ __metadata: languageName: node linkType: hard -"cheerio@npm:^1.0.0-rc.2": +"cheerio@npm:^1.0.0": version: 1.2.0 resolution: "cheerio@npm:1.2.0" dependencies: @@ -9585,7 +9594,7 @@ __metadata: languageName: node linkType: hard -"colors@npm:1.4.0": +"colors@npm:^1.4.0": version: 1.4.0 resolution: "colors@npm:1.4.0" checksum: 10c0/9af357c019da3c5a098a301cf64e3799d27549d8f185d86f79af23069e4f4303110d115da98483519331f6fb71c8568d5688fa1c6523600044fd4a54e97c4efb @@ -9629,13 +9638,20 @@ __metadata: languageName: node linkType: hard -"commander@npm:^11.1.0, commander@npm:~11.1.0": +"commander@npm:^11.1.0": version: 11.1.0 resolution: "commander@npm:11.1.0" checksum: 10c0/13cc6ac875e48780250f723fb81c1c1178d35c5decb1abb1b628b3177af08a8554e76b2c0f29de72d69eef7c864d12613272a71fabef8047922bc622ab75a179 languageName: node linkType: hard +"commander@npm:^12.1.0": + version: 12.1.0 + resolution: "commander@npm:12.1.0" + checksum: 10c0/6e1996680c083b3b897bfc1cfe1c58dfbcd9842fd43e1aaf8a795fbc237f65efcc860a3ef457b318e73f29a4f4a28f6403c3d653d021d960e4632dd45bde54a9 + languageName: node + linkType: hard + "commander@npm:^14.0.3": version: 14.0.3 resolution: "commander@npm:14.0.3" @@ -10537,13 +10553,6 @@ __metadata: languageName: node linkType: hard -"de-indent@npm:^1.0.2": - version: 1.0.2 - resolution: "de-indent@npm:1.0.2" - checksum: 10c0/7058ce58abd6dfc123dd204e36be3797abd419b59482a634605420f47ae97639d0c183ec5d1b904f308a01033f473673897afc2bd59bc620ebf1658763ef4291 - languageName: node - linkType: hard - "debug@npm:4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" @@ -11272,33 +11281,36 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.20.1": - version: 0.20.2 - resolution: "esbuild@npm:0.20.2" +"esbuild@npm:^0.25.0": + version: 0.25.12 + resolution: "esbuild@npm:0.25.12" dependencies: - "@esbuild/aix-ppc64": "npm:0.20.2" - "@esbuild/android-arm": "npm:0.20.2" - "@esbuild/android-arm64": "npm:0.20.2" - "@esbuild/android-x64": "npm:0.20.2" - "@esbuild/darwin-arm64": "npm:0.20.2" - "@esbuild/darwin-x64": "npm:0.20.2" - "@esbuild/freebsd-arm64": "npm:0.20.2" - "@esbuild/freebsd-x64": "npm:0.20.2" - "@esbuild/linux-arm": "npm:0.20.2" - "@esbuild/linux-arm64": "npm:0.20.2" - "@esbuild/linux-ia32": "npm:0.20.2" - "@esbuild/linux-loong64": "npm:0.20.2" - "@esbuild/linux-mips64el": "npm:0.20.2" - "@esbuild/linux-ppc64": "npm:0.20.2" - "@esbuild/linux-riscv64": "npm:0.20.2" - "@esbuild/linux-s390x": "npm:0.20.2" - "@esbuild/linux-x64": "npm:0.20.2" - "@esbuild/netbsd-x64": "npm:0.20.2" - "@esbuild/openbsd-x64": "npm:0.20.2" - "@esbuild/sunos-x64": "npm:0.20.2" - "@esbuild/win32-arm64": "npm:0.20.2" - "@esbuild/win32-ia32": "npm:0.20.2" - "@esbuild/win32-x64": "npm:0.20.2" + "@esbuild/aix-ppc64": "npm:0.25.12" + "@esbuild/android-arm": "npm:0.25.12" + "@esbuild/android-arm64": "npm:0.25.12" + "@esbuild/android-x64": "npm:0.25.12" + "@esbuild/darwin-arm64": "npm:0.25.12" + "@esbuild/darwin-x64": "npm:0.25.12" + "@esbuild/freebsd-arm64": "npm:0.25.12" + "@esbuild/freebsd-x64": "npm:0.25.12" + "@esbuild/linux-arm": "npm:0.25.12" + "@esbuild/linux-arm64": "npm:0.25.12" + "@esbuild/linux-ia32": "npm:0.25.12" + "@esbuild/linux-loong64": "npm:0.25.12" + "@esbuild/linux-mips64el": "npm:0.25.12" + "@esbuild/linux-ppc64": "npm:0.25.12" + "@esbuild/linux-riscv64": "npm:0.25.12" + "@esbuild/linux-s390x": "npm:0.25.12" + "@esbuild/linux-x64": "npm:0.25.12" + "@esbuild/netbsd-arm64": "npm:0.25.12" + "@esbuild/netbsd-x64": "npm:0.25.12" + "@esbuild/openbsd-arm64": "npm:0.25.12" + "@esbuild/openbsd-x64": "npm:0.25.12" + "@esbuild/openharmony-arm64": "npm:0.25.12" + "@esbuild/sunos-x64": "npm:0.25.12" + "@esbuild/win32-arm64": "npm:0.25.12" + "@esbuild/win32-ia32": "npm:0.25.12" + "@esbuild/win32-x64": "npm:0.25.12" dependenciesMeta: "@esbuild/aix-ppc64": optional: true @@ -11334,10 +11346,16 @@ __metadata: optional: true "@esbuild/linux-x64": optional: true + "@esbuild/netbsd-arm64": + optional: true "@esbuild/netbsd-x64": optional: true + "@esbuild/openbsd-arm64": + optional: true "@esbuild/openbsd-x64": optional: true + "@esbuild/openharmony-arm64": + optional: true "@esbuild/sunos-x64": optional: true "@esbuild/win32-arm64": @@ -11348,7 +11366,7 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: 10c0/66398f9fb2c65e456a3e649747b39af8a001e47963b25e86d9c09d2a48d61aa641b27da0ce5cad63df95ad246105e1d83e7fee0e1e22a0663def73b1c5101112 + checksum: 10c0/c205357531423220a9de8e1e6c6514242bc9b1666e762cd67ccdf8fdfdc3f1d0bd76f8d9383958b97ad4c953efdb7b6e8c1f9ca5951cd2b7c5235e8755b34a6b languageName: node linkType: hard @@ -11947,7 +11965,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^11.1.0, fs-extra@npm:^11.3.4, fs-extra@npm:~11.3.0": +"fs-extra@npm:^11.2.0, fs-extra@npm:^11.3.4, fs-extra@npm:~11.3.0": version: 11.3.4 resolution: "fs-extra@npm:11.3.4" dependencies: @@ -12470,7 +12488,7 @@ __metadata: languageName: node linkType: hard -"he@npm:1.2.0, he@npm:^1.2.0": +"he@npm:1.2.0": version: 1.2.0 resolution: "he@npm:1.2.0" bin: @@ -12764,31 +12782,30 @@ __metadata: languageName: node linkType: hard -"i18next-parser@npm:^8.13.0": - version: 8.13.0 - resolution: "i18next-parser@npm:8.13.0" +"i18next-parser@npm:^9.4.0": + version: 9.4.0 + resolution: "i18next-parser@npm:9.4.0" dependencies: - "@babel/runtime": "npm:^7.23.2" + "@babel/runtime": "npm:^7.25.0" broccoli-plugin: "npm:^4.0.7" - cheerio: "npm:^1.0.0-rc.2" - colors: "npm:1.4.0" - commander: "npm:~11.1.0" + cheerio: "npm:^1.0.0" + colors: "npm:^1.4.0" + commander: "npm:^12.1.0" eol: "npm:^0.9.1" - esbuild: "npm:^0.20.1" - fs-extra: "npm:^11.1.0" + esbuild: "npm:^0.25.0" + fs-extra: "npm:^11.2.0" gulp-sort: "npm:^2.0.0" - i18next: "npm:^23.5.1" - js-yaml: "npm:4.1.0" - lilconfig: "npm:^3.0.0" - rsvp: "npm:^4.8.2" + i18next: "npm:^23.5.1 || ^24.2.0" + js-yaml: "npm:^4.1.0" + lilconfig: "npm:^3.1.3" + rsvp: "npm:^4.8.5" sort-keys: "npm:^5.0.0" typescript: "npm:^5.0.4" - vinyl: "npm:~3.0.0" + vinyl: "npm:^3.0.0" vinyl-fs: "npm:^4.0.0" - vue-template-compiler: "npm:^2.6.11" bin: i18next: bin/cli.js - checksum: 10c0/e767d31cd2e05218ccebdff9734d9db9249a7de592ca435092c7561639fec2caad85ee48f282c1f0dab05c935b7954e4054128ccd944b7daa708ff947adb1e28 + checksum: 10c0/4a9c94d16ea0869e58cd600216d56e6ccb2d815bf5acdb96df1aba0750d053514abd52136434681de3601bc0f5324464b8a42f608bfe6c95961f5c2a2e38e3da languageName: node linkType: hard @@ -12801,7 +12818,7 @@ __metadata: languageName: node linkType: hard -"i18next@npm:^23.5.1": +"i18next@npm:^23.16.8": version: 23.16.8 resolution: "i18next@npm:23.16.8" dependencies: @@ -14327,7 +14344,7 @@ __metadata: languageName: node linkType: hard -"lilconfig@npm:^3.0.0": +"lilconfig@npm:^3.1.3": version: 3.1.3 resolution: "lilconfig@npm:3.1.3" checksum: 10c0/f5604e7240c5c275743561442fbc5abf2a84ad94da0f5adc71d25e31fa8483048de3dcedcb7a44112a942fed305fd75841cdf6c9681c7f640c63f1049e9a5dcc @@ -15902,7 +15919,7 @@ __metadata: i18next: "npm:^22.5.1" i18next-fs-backend: "npm:^2.6.4" i18next-http-backend: "npm:^3.0.5" - i18next-parser: "npm:^8.13.0" + i18next-parser: "npm:^9.4.0" invariant: "npm:^2.2.4" ioredis: "npm:^5.10.1" ioredis-mock: "npm:^8.13.1" @@ -18318,7 +18335,7 @@ __metadata: languageName: node linkType: hard -"rsvp@npm:^4.8.2": +"rsvp@npm:^4.8.5": version: 4.8.5 resolution: "rsvp@npm:4.8.5" checksum: 10c0/7978f01060a48204506a8ebe15cdbd468498f5ae538b1d7ee3e7630375ba7cb2f98df2f596c12d3f4d5d5c21badc1c6ca8009f5142baded8511609a28eabd19a @@ -20528,7 +20545,7 @@ __metadata: languageName: node linkType: hard -"vinyl@npm:^3.0.0, vinyl@npm:^3.0.1, vinyl@npm:~3.0.0": +"vinyl@npm:^3.0.0, vinyl@npm:^3.0.1": version: 3.0.1 resolution: "vinyl@npm:3.0.1" dependencies: @@ -20821,16 +20838,6 @@ __metadata: languageName: node linkType: hard -"vue-template-compiler@npm:^2.6.11": - version: 2.7.16 - resolution: "vue-template-compiler@npm:2.7.16" - dependencies: - de-indent: "npm:^1.0.2" - he: "npm:^1.2.0" - checksum: 10c0/66667ffd5095b707f169c902c4f1a011e9d5ab99fc228e4dac14eb5ca7f107ed99bff261b21578a4b391d2f3d320a8050e754404443472acad13ddaa4bd7bae2 - languageName: node - linkType: hard - "w3c-keyname@npm:^2.2.0": version: 2.2.8 resolution: "w3c-keyname@npm:2.2.8" From ab42e4fda8dbe1cf36a50895e8ecd6852b6e2990 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 10 May 2026 09:32:30 -0400 Subject: [PATCH 008/286] chore(deps): Remove js-yaml resolution that no longer prevents downgrades (#12309) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "js-yaml": "^4.1.1" resolution is now a no-op — every package that requests js-yaml in the dep graph already asks for ^4.1.0 or ^4.1.1, both of which naturally resolve to 4.1.1. Removing the resolution does not change any installed version. Audited the remaining resolutions; all still prevent a lower version from being installed (or are intentional dedupe pins for @types/* and prosemirror-transform per #12304, plus the i18next-parser compatibility pin from #12307). Co-authored-by: Claude <noreply@anthropic.com> --- package.json | 1 - yarn.lock | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 0df5c9b41a..5068dc90f5 100644 --- a/package.json +++ b/package.json @@ -381,7 +381,6 @@ "@types/koa": "2.15.0", "prosemirror-transform": "1.10.5", "debug": "4.3.4", - "js-yaml": "^4.1.1", "prismjs": "1.30.0", "zod": "^4.3.6", "ajv@npm:~8.13.0": "^8.18.0", diff --git a/yarn.lock b/yarn.lock index f874f22242..effd7296db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13665,7 +13665,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^4.1.1": +"js-yaml@npm:^4.1.0, js-yaml@npm:^4.1.1": version: 4.1.1 resolution: "js-yaml@npm:4.1.1" dependencies: From ff3b3ce552bf3ce5d0175ca3c4a79f4b16833536 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 10 May 2026 10:47:24 -0400 Subject: [PATCH 009/286] fix: Allow empty string in optional MCP fields (#12310) * fix: Allow empty string in optional fields * fix: Preserve empty strings for content fields in MCP tools Address review feedback by reverting content/text fields (description, document text, comment text) back to z.string().optional() so callers can intentionally clear values via "". optionalString() is reserved for identifier and query fields where "" is not a meaningful input. --- server/tools/collections.ts | 29 +++----- server/tools/comments.ts | 31 ++++---- server/tools/documents.ts | 86 ++++++++-------------- server/tools/users.ts | 19 +++-- server/tools/util.test.ts | 26 ++++++- server/tools/util.ts | 18 +++++ shared/i18n/locales/en_US/translation.json | 1 + 7 files changed, 111 insertions(+), 99 deletions(-) diff --git a/server/tools/collections.ts b/server/tools/collections.ts index 075de5b7e4..7739258272 100644 --- a/server/tools/collections.ts +++ b/server/tools/collections.ts @@ -13,6 +13,7 @@ import { error, getActorFromContext, buildAPIContext, + optionalString, pathToUrl, withTracing, } from "./util"; @@ -37,12 +38,9 @@ export function collectionTools(server: McpServer, scopes: string[]) { readOnlyHint: true, }, inputSchema: { - query: z - .string() - .optional() - .describe( - "An optional search query to filter collections by name." - ), + query: optionalString().describe( + "An optional search query to filter collections by name." + ), offset: z.coerce .number() .int() @@ -157,14 +155,12 @@ export function collectionTools(server: McpServer, scopes: string[]) { .string() .optional() .describe("A markdown description for the collection."), - icon: z - .string() - .optional() - .describe("An icon for the collection, e.g. an emoji."), - color: z - .string() - .optional() - .describe("The hex color for the collection icon, e.g. #FF0000."), + icon: optionalString().describe( + "An icon for the collection, e.g. an emoji." + ), + color: optionalString().describe( + "The hex color for the collection icon, e.g. #FF0000." + ), }, }, withTracing("create_collection", async (input, context) => { @@ -220,10 +216,7 @@ export function collectionTools(server: McpServer, scopes: string[]) { id: z .string() .describe("The unique identifier of the collection to update."), - name: z - .string() - .optional() - .describe("The new name for the collection."), + name: optionalString().describe("The new name for the collection."), description: z .string() .optional() diff --git a/server/tools/comments.ts b/server/tools/comments.ts index 4056598933..305520e528 100644 --- a/server/tools/comments.ts +++ b/server/tools/comments.ts @@ -17,6 +17,7 @@ import { success, buildAPIContext, getActorFromContext, + optionalString, withTracing, } from "./util"; @@ -63,18 +64,15 @@ export function commentTools(server: McpServer, scopes: string[]) { readOnlyHint: true, }, inputSchema: { - documentId: z - .string() - .optional() - .describe("The document ID to list comments for."), - collectionId: z - .string() - .optional() - .describe("The collection ID to list comments for."), - parentCommentId: z - .string() - .optional() - .describe("A parent comment ID to list only its replies."), + documentId: optionalString().describe( + "The document ID to list comments for." + ), + collectionId: optionalString().describe( + "The collection ID to list comments for." + ), + parentCommentId: optionalString().describe( + "A parent comment ID to list only the replies in that thread." + ), statusFilter: z .array(z.enum(CommentStatusFilter)) .optional() @@ -236,12 +234,9 @@ export function commentTools(server: McpServer, scopes: string[]) { text: z .string() .describe("The markdown text content of the comment."), - parentCommentId: z - .string() - .optional() - .describe( - "The parent comment ID to reply to. Omit for a top-level comment." - ), + parentCommentId: optionalString().describe( + "The parent comment ID to reply to. Omit for a top-level comment." + ), }, }, withTracing( diff --git a/server/tools/documents.ts b/server/tools/documents.ts index a189e9a7d4..b448f54c15 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -19,6 +19,7 @@ import { getActorFromContext, getBreadcrumbsForDocuments, getDocumentBreadcrumb, + optionalString, pathToUrl, withTracing, } from "./util"; @@ -45,16 +46,12 @@ export function documentTools(server: McpServer, scopes: string[]) { readOnlyHint: true, }, inputSchema: { - query: z - .string() - .optional() - .describe( - "A search query to find documents by content or title. When omitted, returns recent documents." - ), - collectionId: z - .string() - .optional() - .describe("An optional collection ID to filter documents by."), + query: optionalString().describe( + "A search query to find documents by content or title. When omitted, returns recent documents." + ), + collectionId: optionalString().describe( + "A collection ID to filter documents by." + ), offset: z.coerce .number() .int() @@ -285,22 +282,18 @@ export function documentTools(server: McpServer, scopes: string[]) { .string() .optional() .describe("The markdown content of the document."), - collectionId: z - .string() - .optional() - .describe("The collection to place the document in."), - parentDocumentId: z - .string() - .optional() - .describe("The parent document ID to nest this document under."), - icon: z - .string() - .optional() - .describe("An icon for the document, e.g. an emoji."), - color: z - .string() - .optional() - .describe("The hex color for the document icon, e.g. #FF0000."), + collectionId: optionalString().describe( + "The collection to place the document in." + ), + parentDocumentId: optionalString().describe( + "The parent document ID to nest this document under." + ), + icon: optionalString().describe( + "An icon for the document, e.g. an emoji." + ), + color: optionalString().describe( + "The hex color for the document icon, e.g. #FF0000." + ), publish: z .boolean() .optional() @@ -394,18 +387,12 @@ export function documentTools(server: McpServer, scopes: string[]) { id: z .string() .describe("The unique identifier of the document to move."), - collectionId: z - .string() - .optional() - .describe( - "The destination collection ID. Required if parentDocumentId is not provided." - ), - parentDocumentId: z - .string() - .optional() - .describe( - "The ID of the document to nest this document under. The document will be moved to the parent's collection." - ), + collectionId: optionalString().describe( + "The destination collection ID. Required if parentDocumentId is not provided." + ), + parentDocumentId: optionalString().describe( + "The ID of the document to nest this document under. The document will be moved to the parent's collection." + ), index: z .number() .int() @@ -530,10 +517,7 @@ export function documentTools(server: McpServer, scopes: string[]) { id: z .string() .describe("The unique identifier of the document to update."), - title: z - .string() - .optional() - .describe("The new title for the document."), + title: optionalString().describe("The new title for the document."), text: z .string() .optional() @@ -546,18 +530,12 @@ export function documentTools(server: McpServer, scopes: string[]) { .describe( 'How to apply the text update. "replace" (default) replaces the entire document content. "append" adds text to the end. "prepend" adds text to the beginning. "patch" finds the exact markdown specified in findText and replaces only that portion, preserving the rest of the document including any rich formatting that cannot be represented in markdown.' ), - findText: z - .string() - .optional() - .describe( - 'Required when editMode is "patch". The exact markdown substring to find in the document. This should be copied verbatim from the document\'s existing markdown content. The first occurrence will be replaced with the text parameter. Can span multiple blocks (paragraphs, headings, etc).' - ), - collectionId: z - .string() - .optional() - .describe( - "The collection ID to publish a draft to, required when publishing a draft that has no collection." - ), + findText: optionalString().describe( + 'Required when editMode is "patch". The exact markdown substring to find in the document. This should be copied verbatim from the document\'s existing markdown content. The first occurrence will be replaced with the text parameter. Can span multiple blocks (paragraphs, headings, etc).' + ), + collectionId: optionalString().describe( + "The collection ID to publish a draft to, required when publishing a draft that has no collection." + ), icon: z .string() .nullable() diff --git a/server/tools/users.ts b/server/tools/users.ts index 9df1cb925e..27864034e8 100644 --- a/server/tools/users.ts +++ b/server/tools/users.ts @@ -7,7 +7,13 @@ import { User, Team } from "@server/models"; import { authorize, can } from "@server/policies"; import { presentUser } from "@server/presenters"; import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; -import { error, success, getActorFromContext, withTracing } from "./util"; +import { + error, + success, + getActorFromContext, + optionalString, + withTracing, +} from "./util"; /** * Registers user-related MCP tools on the given server, filtered by the @@ -28,12 +34,9 @@ export function userTools(server: McpServer, scopes: string[]) { readOnlyHint: true, }, inputSchema: { - query: z - .string() - .optional() - .describe( - "An optional search query to filter users by name or email." - ), + query: optionalString().describe( + "An optional search query to filter users by name or email." + ), role: z .enum([ UserRole.Admin, @@ -47,7 +50,7 @@ export function userTools(server: McpServer, scopes: string[]) { .enum(["active", "suspended", "invited", "all"]) .optional() .describe( - "Filter users by status. 'suspended' is only available to admins. Defaults to active, non-suspended users." + "Filter users by status. Defaults to active, non-suspended users. Note filtering by 'suspended' is only available to admins." ), offset: z.coerce .number() diff --git a/server/tools/util.test.ts b/server/tools/util.test.ts index 5160e72a62..f98e996bd5 100644 --- a/server/tools/util.test.ts +++ b/server/tools/util.test.ts @@ -5,7 +5,11 @@ import { buildTeam, buildUser, } from "@server/test/factories"; -import { buildBreadcrumb, getBreadcrumbsForDocuments } from "./util"; +import { + buildBreadcrumb, + getBreadcrumbsForDocuments, + optionalString, +} from "./util"; const node = ( id: string, @@ -62,6 +66,26 @@ describe("buildBreadcrumb", () => { }); }); +describe("optionalString", () => { + const schema = optionalString(); + + it("returns undefined when input is omitted", () => { + expect(schema.parse(undefined)).toBeUndefined(); + }); + + it("coerces an empty string to undefined", () => { + expect(schema.parse("")).toBeUndefined(); + }); + + it("passes through a non-empty string", () => { + expect(schema.parse("hello")).toBe("hello"); + }); + + it("preserves whitespace-only strings", () => { + expect(schema.parse(" ")).toBe(" "); + }); +}); + describe("getBreadcrumbsForDocuments", () => { it("returns the collection name for a root-level document", async () => { const team = await buildTeam(); diff --git a/server/tools/util.ts b/server/tools/util.ts index 5350068550..f061a158ca 100644 --- a/server/tools/util.ts +++ b/server/tools/util.ts @@ -1,5 +1,6 @@ import type { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js"; import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; +import { z } from "zod"; import { Collection, type Team, type User } from "@server/models"; import { addTags } from "@server/logging/tracer"; import { traceFunction } from "@server/logging/tracing"; @@ -46,6 +47,23 @@ export function buildAPIContext(context: McpContext) { } as unknown as APIContext; } +/** + * Builds a zod schema for an optional string MCP tool input that coerces + * empty strings to `undefined`. MCP clients sometimes send `""` for fields + * the caller intended to omit. Use this for identifier, query, and similar + * fields where `""` is not a meaningful value — keep `z.string().optional()` + * for content/text fields where an empty string is a valid input (e.g. + * clearing a description). + * + * @returns a zod schema accepting `string | undefined`, with `""` treated as `undefined`. + */ +export function optionalString() { + return z + .string() + .optional() + .transform((v) => (v === "" ? undefined : v)); +} + /** * Helper function to format successful MCP tool responses. * diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 4d37aa16d2..b87b45f606 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -169,6 +169,7 @@ "New workspace": "New workspace", "Create a workspace": "Create a workspace", "Login to workspace": "Login to workspace", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Deleting", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", From 51a1d3bf504c828bab1c16e84224a256f72614f0 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 10 May 2026 11:09:57 -0400 Subject: [PATCH 010/286] perf: Cache decorations in editor plugins (#12030) Avoid full document traversal on every keystroke by mapping decorations through the transaction when no relevant nodes changed. Uses changedDescendants to detect when a heading, image, or code_inline-marked text actually changes; otherwise the existing DecorationSet is mapped to new positions cheaply. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- shared/editor/plugins/AnchorPlugin.ts | 54 ++++++++++++++++--- .../plugins/CodeWordDecorationsPlugin.ts | 44 +++++++++++++-- shared/editor/plugins/CommentedImagePlugin.ts | 34 ++++++++++-- 3 files changed, 118 insertions(+), 14 deletions(-) diff --git a/shared/editor/plugins/AnchorPlugin.ts b/shared/editor/plugins/AnchorPlugin.ts index dbd8b00aaf..cf16bfc207 100644 --- a/shared/editor/plugins/AnchorPlugin.ts +++ b/shared/editor/plugins/AnchorPlugin.ts @@ -1,8 +1,11 @@ import type { NodeAnchor } from "@shared/utils/ProsemirrorHelper"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; -import type { EditorState } from "prosemirror-state"; +import type { Node } from "prosemirror-model"; +import type { EditorState, Transaction } from "prosemirror-state"; import { Plugin } from "prosemirror-state"; import { Decoration, DecorationSet } from "prosemirror-view"; +import { changedDescendants } from "../lib/changedDescendants"; +import { isRemoteTransaction } from "../lib/multiplayer"; export class AnchorPlugin extends Plugin { constructor() { @@ -11,12 +14,18 @@ export class AnchorPlugin extends Plugin { init: (_, state: EditorState) => ({ decorations: this.createDecorations(state), }), - apply: (tr, pluginState, oldState, newState) => { - // Only recompute if doc changed - if (tr.docChanged) { + apply: (tr, pluginState, _oldState, newState) => { + if (!tr.docChanged) { + return pluginState; + } + + if (isRemoteTransaction(tr) || this.hasAnchorableChange(tr)) { return { decorations: this.createDecorations(newState) }; } - return pluginState; + + return { + decorations: pluginState.decorations.map(tr.mapping, tr.doc), + }; }, }, props: { @@ -28,8 +37,38 @@ export class AnchorPlugin extends Plugin { }); } - private createAnchorDecoration = (anchor: NodeAnchor) => - Decoration.widget( + private isAnchorable(node: Node): boolean { + return ( + node.type.name === "heading" || + (Array.isArray(node.attrs.marks) && + node.attrs.marks.some( + (mark: { type: string; attrs?: { id?: string } }) => + mark.type === "comment" && mark.attrs?.id + )) + ); + } + + /** + * Check if the transaction changed any heading or image-with-comment-mark + * nodes by comparing changed descendants in both directions. + */ + private hasAnchorableChange(tr: Transaction): boolean { + let found = false; + const check = (node: Node) => { + if (!found && this.isAnchorable(node)) { + found = true; + } + }; + + changedDescendants(tr.before, tr.doc, 0, check); + if (!found) { + changedDescendants(tr.doc, tr.before, 0, check); + } + return found; + } + + private createAnchorDecoration(anchor: NodeAnchor) { + return Decoration.widget( anchor.pos, () => { const anchorElement = document.createElement("a"); @@ -39,6 +78,7 @@ export class AnchorPlugin extends Plugin { }, { side: -1, key: anchor.id } ); + } private createDecorations(state: EditorState) { const anchors = ProsemirrorHelper.getAnchors(state.doc); diff --git a/shared/editor/plugins/CodeWordDecorationsPlugin.ts b/shared/editor/plugins/CodeWordDecorationsPlugin.ts index 7d5112b9e8..a398e2c78b 100644 --- a/shared/editor/plugins/CodeWordDecorationsPlugin.ts +++ b/shared/editor/plugins/CodeWordDecorationsPlugin.ts @@ -1,6 +1,9 @@ -import type { EditorState } from "prosemirror-state"; +import type { Node } from "prosemirror-model"; +import type { EditorState, Transaction } from "prosemirror-state"; import { Plugin } from "prosemirror-state"; import { Decoration, DecorationSet } from "prosemirror-view"; +import { changedDescendants } from "../lib/changedDescendants"; +import { isRemoteTransaction } from "../lib/multiplayer"; import { EditorStyleHelper } from "../styles/EditorStyleHelper"; interface CodeWordDecorationsConfig { @@ -22,13 +25,19 @@ class CodeWordDecorationsPlugin extends Plugin { decorations: this.createDecorations(state, finalConfig), }), apply: (tr, pluginState, _oldState, newState) => { - // Only recompute if doc changed - if (tr.docChanged) { + if (!tr.docChanged) { + return pluginState; + } + + if (isRemoteTransaction(tr) || this.hasCodeInlineChange(tr)) { return { decorations: this.createDecorations(newState, finalConfig), }; } - return pluginState; + + return { + decorations: pluginState.decorations.map(tr.mapping, tr.doc), + }; }, }, props: { @@ -40,6 +49,33 @@ class CodeWordDecorationsPlugin extends Plugin { }); } + /** + * Check if the transaction changed any text nodes with code_inline marks. + */ + private hasCodeInlineChange(tr: Transaction): boolean { + const codeMarkType = tr.doc.type.schema.marks.code_inline; + if (!codeMarkType) { + return false; + } + + let found = false; + const check = (node: Node) => { + if ( + !found && + node.isText && + node.marks.some((m) => m.type === codeMarkType) + ) { + found = true; + } + }; + + changedDescendants(tr.before, tr.doc, 0, check); + if (!found) { + changedDescendants(tr.doc, tr.before, 0, check); + } + return found; + } + private createDecorations( state: EditorState, config: Required<CodeWordDecorationsConfig> diff --git a/shared/editor/plugins/CommentedImagePlugin.ts b/shared/editor/plugins/CommentedImagePlugin.ts index 4bc93bfcf9..8351309481 100644 --- a/shared/editor/plugins/CommentedImagePlugin.ts +++ b/shared/editor/plugins/CommentedImagePlugin.ts @@ -1,6 +1,9 @@ -import type { EditorState } from "prosemirror-state"; +import type { Node } from "prosemirror-model"; +import type { EditorState, Transaction } from "prosemirror-state"; import { Plugin } from "prosemirror-state"; import { Decoration, DecorationSet } from "prosemirror-view"; +import { changedDescendants } from "../lib/changedDescendants"; +import { isRemoteTransaction } from "../lib/multiplayer"; /** * Plugin that applies a light outline decoration to image nodes that have @@ -15,10 +18,17 @@ export class CommentedImagePlugin extends Plugin { decorations: this.createDecorations(state), }), apply: (tr, pluginState, _oldState, newState) => { - if (tr.docChanged) { + if (!tr.docChanged) { + return pluginState; + } + + if (isRemoteTransaction(tr) || this.hasImageChange(tr)) { return { decorations: this.createDecorations(newState) }; } - return pluginState; + + return { + decorations: pluginState.decorations.map(tr.mapping, tr.doc), + }; }, }, props: { @@ -30,6 +40,24 @@ export class CommentedImagePlugin extends Plugin { }); } + /** + * Check if the transaction added, removed, or modified any image nodes. + */ + private hasImageChange(tr: Transaction): boolean { + let found = false; + const check = (node: Node) => { + if (!found && node.type.name === "image") { + found = true; + } + }; + + changedDescendants(tr.before, tr.doc, 0, check); + if (!found) { + changedDescendants(tr.doc, tr.before, 0, check); + } + return found; + } + private createDecorations(state: EditorState) { const decorations: Decoration[] = []; From 0eee576b814c9b826282956db7c68e3da5257967 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 20:17:07 -0400 Subject: [PATCH 011/286] chore(deps): bump the aws group with 5 updates (#12317) --- package.json | 10 +- yarn.lock | 591 +++++++++++++++++++++++---------------------------- 2 files changed, 269 insertions(+), 332 deletions(-) diff --git a/package.json b/package.json index 5068dc90f5..8861e1f4c1 100644 --- a/package.json +++ b/package.json @@ -52,11 +52,11 @@ "> 0.25%, not dead" ], "dependencies": { - "@aws-sdk/client-s3": "^3.1032.0", - "@aws-sdk/lib-storage": "^3.1032.0", - "@aws-sdk/s3-presigned-post": "^3.1032.0", - "@aws-sdk/s3-request-presigner": "^3.1032.0", - "@aws-sdk/signature-v4-crt": "^3.1032.0", + "@aws-sdk/client-s3": "^3.1045.0", + "@aws-sdk/lib-storage": "^3.1045.0", + "@aws-sdk/s3-presigned-post": "^3.1045.0", + "@aws-sdk/s3-request-presigner": "^3.1045.0", + "@aws-sdk/signature-v4-crt": "^3.1045.0", "@benrbray/prosemirror-math": "^0.2.2", "@bull-board/api": "^6.21.3", "@bull-board/koa": "^6.21.3", diff --git a/yarn.lock b/yarn.lock index effd7296db..ae763127a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -110,33 +110,33 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-s3@npm:3.1032.0, @aws-sdk/client-s3@npm:^3.1032.0": - version: 3.1032.0 - resolution: "@aws-sdk/client-s3@npm:3.1032.0" +"@aws-sdk/client-s3@npm:3.1045.0, @aws-sdk/client-s3@npm:^3.1045.0": + version: 3.1045.0 + resolution: "@aws-sdk/client-s3@npm:3.1045.0" dependencies: "@aws-crypto/sha1-browser": "npm:5.2.0" "@aws-crypto/sha256-browser": "npm:5.2.0" "@aws-crypto/sha256-js": "npm:5.2.0" - "@aws-sdk/core": "npm:^3.974.1" - "@aws-sdk/credential-provider-node": "npm:^3.972.32" + "@aws-sdk/core": "npm:^3.974.8" + "@aws-sdk/credential-provider-node": "npm:^3.972.39" "@aws-sdk/middleware-bucket-endpoint": "npm:^3.972.10" "@aws-sdk/middleware-expect-continue": "npm:^3.972.10" - "@aws-sdk/middleware-flexible-checksums": "npm:^3.974.9" + "@aws-sdk/middleware-flexible-checksums": "npm:^3.974.16" "@aws-sdk/middleware-host-header": "npm:^3.972.10" "@aws-sdk/middleware-location-constraint": "npm:^3.972.10" "@aws-sdk/middleware-logger": "npm:^3.972.10" "@aws-sdk/middleware-recursion-detection": "npm:^3.972.11" - "@aws-sdk/middleware-sdk-s3": "npm:^3.972.30" + "@aws-sdk/middleware-sdk-s3": "npm:^3.972.37" "@aws-sdk/middleware-ssec": "npm:^3.972.10" - "@aws-sdk/middleware-user-agent": "npm:^3.972.31" - "@aws-sdk/region-config-resolver": "npm:^3.972.12" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.18" + "@aws-sdk/middleware-user-agent": "npm:^3.972.38" + "@aws-sdk/region-config-resolver": "npm:^3.972.13" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-endpoints": "npm:^3.996.7" + "@aws-sdk/util-endpoints": "npm:^3.996.8" "@aws-sdk/util-user-agent-browser": "npm:^3.972.10" - "@aws-sdk/util-user-agent-node": "npm:^3.973.17" - "@smithy/config-resolver": "npm:^4.4.16" - "@smithy/core": "npm:^3.23.15" + "@aws-sdk/util-user-agent-node": "npm:^3.973.24" + "@smithy/config-resolver": "npm:^4.4.17" + "@smithy/core": "npm:^3.23.17" "@smithy/eventstream-serde-browser": "npm:^4.2.14" "@smithy/eventstream-serde-config-resolver": "npm:^4.3.14" "@smithy/eventstream-serde-node": "npm:^4.2.14" @@ -147,50 +147,51 @@ __metadata: "@smithy/invalid-dependency": "npm:^4.2.14" "@smithy/md5-js": "npm:^4.2.14" "@smithy/middleware-content-length": "npm:^4.2.14" - "@smithy/middleware-endpoint": "npm:^4.4.30" - "@smithy/middleware-retry": "npm:^4.5.3" - "@smithy/middleware-serde": "npm:^4.2.18" + "@smithy/middleware-endpoint": "npm:^4.4.32" + "@smithy/middleware-retry": "npm:^4.5.7" + "@smithy/middleware-serde": "npm:^4.2.20" "@smithy/middleware-stack": "npm:^4.2.14" "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/node-http-handler": "npm:^4.5.3" + "@smithy/node-http-handler": "npm:^4.6.1" "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.11" + "@smithy/smithy-client": "npm:^4.12.13" "@smithy/types": "npm:^4.14.1" "@smithy/url-parser": "npm:^4.2.14" "@smithy/util-base64": "npm:^4.3.2" "@smithy/util-body-length-browser": "npm:^4.2.2" "@smithy/util-body-length-node": "npm:^4.2.3" - "@smithy/util-defaults-mode-browser": "npm:^4.3.47" - "@smithy/util-defaults-mode-node": "npm:^4.2.52" - "@smithy/util-endpoints": "npm:^3.4.1" + "@smithy/util-defaults-mode-browser": "npm:^4.3.49" + "@smithy/util-defaults-mode-node": "npm:^4.2.54" + "@smithy/util-endpoints": "npm:^3.4.2" "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-retry": "npm:^4.3.2" - "@smithy/util-stream": "npm:^4.5.23" + "@smithy/util-retry": "npm:^4.3.6" + "@smithy/util-stream": "npm:^4.5.25" "@smithy/util-utf8": "npm:^4.2.2" - "@smithy/util-waiter": "npm:^4.2.16" + "@smithy/util-waiter": "npm:^4.3.0" tslib: "npm:^2.6.2" - checksum: 10c0/6fd51c53e561ec240dd3fba1d617b722f1939785e670a17f48c8d9c552e3735f9c16352d8695b763fd06cf2ceb815306f781af698e6e98c517248e5a768ef7a4 + checksum: 10c0/e1c017dd5ee22f57658f0527fcc736e6a240de0e836d49b125b2cde120cd7ff017c7d2e9ac172cca404ffa4c853048079221db068a49ab0faf5e2d6b7a2f93fa languageName: node linkType: hard -"@aws-sdk/core@npm:^3.974.1": - version: 3.974.1 - resolution: "@aws-sdk/core@npm:3.974.1" +"@aws-sdk/core@npm:^3.974.8": + version: 3.974.8 + resolution: "@aws-sdk/core@npm:3.974.8" dependencies: "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/xml-builder": "npm:^3.972.18" - "@smithy/core": "npm:^3.23.15" + "@aws-sdk/xml-builder": "npm:^3.972.22" + "@smithy/core": "npm:^3.23.17" "@smithy/node-config-provider": "npm:^4.3.14" "@smithy/property-provider": "npm:^4.2.14" "@smithy/protocol-http": "npm:^5.3.14" "@smithy/signature-v4": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.11" + "@smithy/smithy-client": "npm:^4.12.13" "@smithy/types": "npm:^4.14.1" "@smithy/util-base64": "npm:^4.3.2" "@smithy/util-middleware": "npm:^4.2.14" + "@smithy/util-retry": "npm:^4.3.6" "@smithy/util-utf8": "npm:^4.2.2" tslib: "npm:^2.6.2" - checksum: 10c0/6346c9245fc80e138ac31b637865cd93991f3676b849a6318158947e8dfbe828347188b3955c098c1ebbbebc0b3d7d4521cf1d2f149c6593d56a6cc1c72aad21 + checksum: 10c0/7b7e01e01e8b5f28b5d1b3d6f263bcf1b395600c2401009ad2b398a39b43ade33eacd59371c1e960c969f8164bfa9aff3ce950a5ba527a73c82eedc21456850f languageName: node linkType: hard @@ -204,166 +205,166 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-env@npm:^3.972.27": - version: 3.972.27 - resolution: "@aws-sdk/credential-provider-env@npm:3.972.27" +"@aws-sdk/credential-provider-env@npm:^3.972.34": + version: 3.972.34 + resolution: "@aws-sdk/credential-provider-env@npm:3.972.34" dependencies: - "@aws-sdk/core": "npm:^3.974.1" + "@aws-sdk/core": "npm:^3.974.8" "@aws-sdk/types": "npm:^3.973.8" "@smithy/property-provider": "npm:^4.2.14" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/f8f9960743fecf4d05f3d23fafb0ebb5f7d2b80e9b58c6fc6551ac62af9a4d54f488c4f5aa4d0e1d701a49823e6269e455ca897be9432ec917927bbe2e9d34fd + checksum: 10c0/2f75940784b92ff71292b6dc5e660982f80bcfb4c3fcd0f0a04b0ff7de0a5b91000505b947434813b1104647d05678c3504560a7937aa82639e0042cb4597705 languageName: node linkType: hard -"@aws-sdk/credential-provider-http@npm:^3.972.29": - version: 3.972.29 - resolution: "@aws-sdk/credential-provider-http@npm:3.972.29" +"@aws-sdk/credential-provider-http@npm:^3.972.36": + version: 3.972.36 + resolution: "@aws-sdk/credential-provider-http@npm:3.972.36" dependencies: - "@aws-sdk/core": "npm:^3.974.1" + "@aws-sdk/core": "npm:^3.974.8" "@aws-sdk/types": "npm:^3.973.8" "@smithy/fetch-http-handler": "npm:^5.3.17" - "@smithy/node-http-handler": "npm:^4.5.3" + "@smithy/node-http-handler": "npm:^4.6.1" "@smithy/property-provider": "npm:^4.2.14" "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.11" + "@smithy/smithy-client": "npm:^4.12.13" "@smithy/types": "npm:^4.14.1" - "@smithy/util-stream": "npm:^4.5.23" + "@smithy/util-stream": "npm:^4.5.25" tslib: "npm:^2.6.2" - checksum: 10c0/d97362d163564d7255e1bf91bcf4cb3dad2295994865c45bce8c32da6886359095815d40e1dca1de53bf727b0acf731f1700f367791458698090c729a36f709e + checksum: 10c0/b3dd17e4403b3ef026a65da15cc3d08fdfddd42449f6d10edc6a4b016ed05306f7d4fe1fe286abd00bcf6cf3817ed19556fd97db9b2449deb0182569980dcd01 languageName: node linkType: hard -"@aws-sdk/credential-provider-ini@npm:^3.972.31": - version: 3.972.31 - resolution: "@aws-sdk/credential-provider-ini@npm:3.972.31" +"@aws-sdk/credential-provider-ini@npm:^3.972.38": + version: 3.972.38 + resolution: "@aws-sdk/credential-provider-ini@npm:3.972.38" dependencies: - "@aws-sdk/core": "npm:^3.974.1" - "@aws-sdk/credential-provider-env": "npm:^3.972.27" - "@aws-sdk/credential-provider-http": "npm:^3.972.29" - "@aws-sdk/credential-provider-login": "npm:^3.972.31" - "@aws-sdk/credential-provider-process": "npm:^3.972.27" - "@aws-sdk/credential-provider-sso": "npm:^3.972.31" - "@aws-sdk/credential-provider-web-identity": "npm:^3.972.31" - "@aws-sdk/nested-clients": "npm:^3.996.21" + "@aws-sdk/core": "npm:^3.974.8" + "@aws-sdk/credential-provider-env": "npm:^3.972.34" + "@aws-sdk/credential-provider-http": "npm:^3.972.36" + "@aws-sdk/credential-provider-login": "npm:^3.972.38" + "@aws-sdk/credential-provider-process": "npm:^3.972.34" + "@aws-sdk/credential-provider-sso": "npm:^3.972.38" + "@aws-sdk/credential-provider-web-identity": "npm:^3.972.38" + "@aws-sdk/nested-clients": "npm:^3.997.6" "@aws-sdk/types": "npm:^3.973.8" "@smithy/credential-provider-imds": "npm:^4.2.14" "@smithy/property-provider": "npm:^4.2.14" "@smithy/shared-ini-file-loader": "npm:^4.4.9" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/e0d2c6e8a289c0574f5d7c9ef8db8510b82ccf9c5385192c31f684ba1d66827c6ae3541da854637e0296d54d725e8fc79aedc503cd8e6c2925459cd326bd494c + checksum: 10c0/198c7e3f88f525f814f599f6a1bc3a63c84ed046140017786f23de255adcb5c90f0bbcf9ec167c8c6771d63270f7ed9ac061713884ecddebc01da74be88ee6ea languageName: node linkType: hard -"@aws-sdk/credential-provider-login@npm:^3.972.31": - version: 3.972.31 - resolution: "@aws-sdk/credential-provider-login@npm:3.972.31" +"@aws-sdk/credential-provider-login@npm:^3.972.38": + version: 3.972.38 + resolution: "@aws-sdk/credential-provider-login@npm:3.972.38" dependencies: - "@aws-sdk/core": "npm:^3.974.1" - "@aws-sdk/nested-clients": "npm:^3.996.21" + "@aws-sdk/core": "npm:^3.974.8" + "@aws-sdk/nested-clients": "npm:^3.997.6" "@aws-sdk/types": "npm:^3.973.8" "@smithy/property-provider": "npm:^4.2.14" "@smithy/protocol-http": "npm:^5.3.14" "@smithy/shared-ini-file-loader": "npm:^4.4.9" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/43d7db1d41643315b652a0cd827accfa93cd9b6a6cf8f4751047f2e31ed19e3a62692cbff65816d1c0177e04a3202546129d6566d176f5c7f6b998560cee37e7 + checksum: 10c0/f84ab04b8fec3355dce3d2a0f9bd63e79ef04915f019f2b6731a267e853f7cfb066baf67a22c955e58aa86f5b6eded6acdfdfd67532cc923edeefb8e88f46d63 languageName: node linkType: hard -"@aws-sdk/credential-provider-node@npm:^3.972.32": - version: 3.972.32 - resolution: "@aws-sdk/credential-provider-node@npm:3.972.32" +"@aws-sdk/credential-provider-node@npm:^3.972.39": + version: 3.972.39 + resolution: "@aws-sdk/credential-provider-node@npm:3.972.39" dependencies: - "@aws-sdk/credential-provider-env": "npm:^3.972.27" - "@aws-sdk/credential-provider-http": "npm:^3.972.29" - "@aws-sdk/credential-provider-ini": "npm:^3.972.31" - "@aws-sdk/credential-provider-process": "npm:^3.972.27" - "@aws-sdk/credential-provider-sso": "npm:^3.972.31" - "@aws-sdk/credential-provider-web-identity": "npm:^3.972.31" + "@aws-sdk/credential-provider-env": "npm:^3.972.34" + "@aws-sdk/credential-provider-http": "npm:^3.972.36" + "@aws-sdk/credential-provider-ini": "npm:^3.972.38" + "@aws-sdk/credential-provider-process": "npm:^3.972.34" + "@aws-sdk/credential-provider-sso": "npm:^3.972.38" + "@aws-sdk/credential-provider-web-identity": "npm:^3.972.38" "@aws-sdk/types": "npm:^3.973.8" "@smithy/credential-provider-imds": "npm:^4.2.14" "@smithy/property-provider": "npm:^4.2.14" "@smithy/shared-ini-file-loader": "npm:^4.4.9" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/ef1c12d3c2dfa147d93b544e7780fa185ba74732aa490f8fd3f3f133a18314318e414acb1db4f56383645ab21b46b7c8b295ba715f40ae5348b4594374ff5254 + checksum: 10c0/e21808419372f95c842ed6f893d15599565a1fa9dffed81256a374f98ef3a3c276ab4be30fbaac963e5c4761b676fe10482f5a6b1fb2b03273b18e9ecd30c12d languageName: node linkType: hard -"@aws-sdk/credential-provider-process@npm:^3.972.27": - version: 3.972.27 - resolution: "@aws-sdk/credential-provider-process@npm:3.972.27" +"@aws-sdk/credential-provider-process@npm:^3.972.34": + version: 3.972.34 + resolution: "@aws-sdk/credential-provider-process@npm:3.972.34" dependencies: - "@aws-sdk/core": "npm:^3.974.1" + "@aws-sdk/core": "npm:^3.974.8" "@aws-sdk/types": "npm:^3.973.8" "@smithy/property-provider": "npm:^4.2.14" "@smithy/shared-ini-file-loader": "npm:^4.4.9" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/f4521da33eafd44d4c68db08ca1edcd273fc29d047fa2bfc5110053e2772c3897b5e348f6ad94539c05544c9763719c8f66e46f768daab207e75dd50d305f6e9 + checksum: 10c0/f65dbaaa40a81ba8e84d314e8ac0528f6d807b63b98820102ffccb38f47b1aa52f0c6dd4d7e4e8df186cef9cd57041e1d2d929c0e692804a8af0d06497f38a6a languageName: node linkType: hard -"@aws-sdk/credential-provider-sso@npm:^3.972.31": - version: 3.972.31 - resolution: "@aws-sdk/credential-provider-sso@npm:3.972.31" +"@aws-sdk/credential-provider-sso@npm:^3.972.38": + version: 3.972.38 + resolution: "@aws-sdk/credential-provider-sso@npm:3.972.38" dependencies: - "@aws-sdk/core": "npm:^3.974.1" - "@aws-sdk/nested-clients": "npm:^3.996.21" - "@aws-sdk/token-providers": "npm:3.1032.0" + "@aws-sdk/core": "npm:^3.974.8" + "@aws-sdk/nested-clients": "npm:^3.997.6" + "@aws-sdk/token-providers": "npm:3.1041.0" "@aws-sdk/types": "npm:^3.973.8" "@smithy/property-provider": "npm:^4.2.14" "@smithy/shared-ini-file-loader": "npm:^4.4.9" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/82438ec23a4b08e5a5bec0f4bc20ca6839b4dd4800805898cc9c252ae14dd138df0e3c5f927f32fa8053cbc66dc04a4bd86883f4c16e2ebc7e1088bb3a3897c7 + checksum: 10c0/4919362e1b8f6b73b8ec8ed0e0cc8f7a33db9b0d3ef63346a03047a024910d1acc6d80428a51444f6f15d58534dd535bc461b8505dd8f1cd6dc4fd8f863f956d languageName: node linkType: hard -"@aws-sdk/credential-provider-web-identity@npm:^3.972.31": - version: 3.972.31 - resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.31" +"@aws-sdk/credential-provider-web-identity@npm:^3.972.38": + version: 3.972.38 + resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.38" dependencies: - "@aws-sdk/core": "npm:^3.974.1" - "@aws-sdk/nested-clients": "npm:^3.996.21" + "@aws-sdk/core": "npm:^3.974.8" + "@aws-sdk/nested-clients": "npm:^3.997.6" "@aws-sdk/types": "npm:^3.973.8" "@smithy/property-provider": "npm:^4.2.14" "@smithy/shared-ini-file-loader": "npm:^4.4.9" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/b3b67b12083253b40b01563a5334d45eaa281213c349a6b80af342a7f49f1ada06b6a0116b182921f923a30140497232951de7149d92038517fd7179364dc0e1 + checksum: 10c0/7a235d693dae5578c15448c8484d68ca7749ffd327b4e3784e3a1c6784a14535b398cc09c6be26e97042779acc261adedc7064681b930d93ebcda26da17c1f72 languageName: node linkType: hard -"@aws-sdk/crt-loader@npm:^3.972.31": - version: 3.972.31 - resolution: "@aws-sdk/crt-loader@npm:3.972.31" +"@aws-sdk/crt-loader@npm:^3.972.38": + version: 3.972.38 + resolution: "@aws-sdk/crt-loader@npm:3.972.38" dependencies: - "@aws-sdk/util-user-agent-node": "npm:^3.973.17" + "@aws-sdk/util-user-agent-node": "npm:^3.973.24" aws-crt: "npm:^1.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/2581b0d9044c5a462151d6b2e9f0f35e01a7d823a807a85c7e09119a5ad3639d587a5584bfd9550d894dddfbf081e1f1a990ca89e680fa3c1a67081c4317ec3a + checksum: 10c0/cac06f67ec132f65eb1ff29fdf5adc700d2aa7ccf46e19f7d2cf75f3a16d16a60e4563f4e30b5afec66f29444fdcce25f15ea639324d54d8d5a4679608c5dd98 languageName: node linkType: hard -"@aws-sdk/lib-storage@npm:^3.1032.0": - version: 3.1032.0 - resolution: "@aws-sdk/lib-storage@npm:3.1032.0" +"@aws-sdk/lib-storage@npm:^3.1045.0": + version: 3.1045.0 + resolution: "@aws-sdk/lib-storage@npm:3.1045.0" dependencies: - "@smithy/middleware-endpoint": "npm:^4.4.30" + "@smithy/middleware-endpoint": "npm:^4.4.32" "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.11" + "@smithy/smithy-client": "npm:^4.12.13" "@smithy/types": "npm:^4.14.1" buffer: "npm:5.6.0" events: "npm:3.3.0" stream-browserify: "npm:3.0.0" tslib: "npm:^2.6.2" peerDependencies: - "@aws-sdk/client-s3": ^3.1032.0 - checksum: 10c0/1e9ed555350137b94904d40e1a246584bff7c00090f9473ffbe0b083cfb75500aa818cba9ff10a300bb87c73a0461db7b6c505a315ab776a13b57e0b56d0f343 + "@aws-sdk/client-s3": ^3.1045.0 + checksum: 10c0/7b17d5118f0c22780235c872b931dfa9d8af58bf3eea85f2e1514dd6169f5bcf56ad492cd87be20f68aabb22290f8fd7a8481b8bc3a0d5399933093b330c4f9a languageName: node linkType: hard @@ -394,14 +395,14 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/middleware-flexible-checksums@npm:^3.974.9": - version: 3.974.9 - resolution: "@aws-sdk/middleware-flexible-checksums@npm:3.974.9" +"@aws-sdk/middleware-flexible-checksums@npm:^3.974.16": + version: 3.974.16 + resolution: "@aws-sdk/middleware-flexible-checksums@npm:3.974.16" dependencies: "@aws-crypto/crc32": "npm:5.2.0" "@aws-crypto/crc32c": "npm:5.2.0" "@aws-crypto/util": "npm:5.2.0" - "@aws-sdk/core": "npm:^3.974.1" + "@aws-sdk/core": "npm:^3.974.8" "@aws-sdk/crc64-nvme": "npm:^3.972.7" "@aws-sdk/types": "npm:^3.973.8" "@smithy/is-array-buffer": "npm:^4.2.2" @@ -409,10 +410,10 @@ __metadata: "@smithy/protocol-http": "npm:^5.3.14" "@smithy/types": "npm:^4.14.1" "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-stream": "npm:^4.5.23" + "@smithy/util-stream": "npm:^4.5.25" "@smithy/util-utf8": "npm:^4.2.2" tslib: "npm:^2.6.2" - checksum: 10c0/76e35bb1c91178bd0e4dc7bee49886e9e925afee0eb0ccde29721d38664ba0973bbaf53c8caef94517e1aac6aef656e459415d27a93ae3f6aaec48e77fa66e48 + checksum: 10c0/0725e497e2ebd4201682a786b28da90acc9c86459bfd6a3a29591021b7be4e5e17aee2628b71921eba003740d49b88d48eab8bd80220dfc5aa16dc7c50488775 languageName: node linkType: hard @@ -463,25 +464,25 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/middleware-sdk-s3@npm:^3.972.30": - version: 3.972.30 - resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.30" +"@aws-sdk/middleware-sdk-s3@npm:^3.972.37": + version: 3.972.37 + resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.37" dependencies: - "@aws-sdk/core": "npm:^3.974.1" + "@aws-sdk/core": "npm:^3.974.8" "@aws-sdk/types": "npm:^3.973.8" "@aws-sdk/util-arn-parser": "npm:^3.972.3" - "@smithy/core": "npm:^3.23.15" + "@smithy/core": "npm:^3.23.17" "@smithy/node-config-provider": "npm:^4.3.14" "@smithy/protocol-http": "npm:^5.3.14" "@smithy/signature-v4": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.11" + "@smithy/smithy-client": "npm:^4.12.13" "@smithy/types": "npm:^4.14.1" "@smithy/util-config-provider": "npm:^4.2.2" "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-stream": "npm:^4.5.23" + "@smithy/util-stream": "npm:^4.5.25" "@smithy/util-utf8": "npm:^4.2.2" tslib: "npm:^2.6.2" - checksum: 10c0/673befb1cc25b662fba9cc2445cfb6981e99f533c3e7ce4e07a1ea60397cc866324f1fb8655cb90fd1143fab7d87958cdf9d6d4a8bb692d245c0e18f5f17d488 + checksum: 10c0/c8d4ad6aa908eca70ef085ac2c55362229071caa9518ed538574cc4d317d9f1f4e2173d6b01259dd83f77356ad4b68656b5720a31b3effe01f7fe10aec265aed languageName: node linkType: hard @@ -496,156 +497,157 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/middleware-user-agent@npm:^3.972.31": - version: 3.972.31 - resolution: "@aws-sdk/middleware-user-agent@npm:3.972.31" +"@aws-sdk/middleware-user-agent@npm:^3.972.38": + version: 3.972.38 + resolution: "@aws-sdk/middleware-user-agent@npm:3.972.38" dependencies: - "@aws-sdk/core": "npm:^3.974.1" + "@aws-sdk/core": "npm:^3.974.8" "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-endpoints": "npm:^3.996.7" - "@smithy/core": "npm:^3.23.15" + "@aws-sdk/util-endpoints": "npm:^3.996.8" + "@smithy/core": "npm:^3.23.17" "@smithy/protocol-http": "npm:^5.3.14" "@smithy/types": "npm:^4.14.1" - "@smithy/util-retry": "npm:^4.3.2" + "@smithy/util-retry": "npm:^4.3.6" tslib: "npm:^2.6.2" - checksum: 10c0/ef4d31ddaa22d4c983da75ab1c296470532789235d697f1a924dd3f427855bc52a41e0999bf021b8f450b2bf0d05a06807da2bab969d4973e9ebc62a3dc5b3bf + checksum: 10c0/b9cf9416bc276b4abf42513515de5ee45ee419255b5953c9e53b44010500fcc486de988351683ecae52bf00c6bb5819c67375261afe1375b8a2a44196a8b9884 languageName: node linkType: hard -"@aws-sdk/nested-clients@npm:^3.996.21": - version: 3.996.21 - resolution: "@aws-sdk/nested-clients@npm:3.996.21" +"@aws-sdk/nested-clients@npm:^3.997.6": + version: 3.997.6 + resolution: "@aws-sdk/nested-clients@npm:3.997.6" dependencies: "@aws-crypto/sha256-browser": "npm:5.2.0" "@aws-crypto/sha256-js": "npm:5.2.0" - "@aws-sdk/core": "npm:^3.974.1" + "@aws-sdk/core": "npm:^3.974.8" "@aws-sdk/middleware-host-header": "npm:^3.972.10" "@aws-sdk/middleware-logger": "npm:^3.972.10" "@aws-sdk/middleware-recursion-detection": "npm:^3.972.11" - "@aws-sdk/middleware-user-agent": "npm:^3.972.31" - "@aws-sdk/region-config-resolver": "npm:^3.972.12" + "@aws-sdk/middleware-user-agent": "npm:^3.972.38" + "@aws-sdk/region-config-resolver": "npm:^3.972.13" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-endpoints": "npm:^3.996.7" + "@aws-sdk/util-endpoints": "npm:^3.996.8" "@aws-sdk/util-user-agent-browser": "npm:^3.972.10" - "@aws-sdk/util-user-agent-node": "npm:^3.973.17" - "@smithy/config-resolver": "npm:^4.4.16" - "@smithy/core": "npm:^3.23.15" + "@aws-sdk/util-user-agent-node": "npm:^3.973.24" + "@smithy/config-resolver": "npm:^4.4.17" + "@smithy/core": "npm:^3.23.17" "@smithy/fetch-http-handler": "npm:^5.3.17" "@smithy/hash-node": "npm:^4.2.14" "@smithy/invalid-dependency": "npm:^4.2.14" "@smithy/middleware-content-length": "npm:^4.2.14" - "@smithy/middleware-endpoint": "npm:^4.4.30" - "@smithy/middleware-retry": "npm:^4.5.3" - "@smithy/middleware-serde": "npm:^4.2.18" + "@smithy/middleware-endpoint": "npm:^4.4.32" + "@smithy/middleware-retry": "npm:^4.5.7" + "@smithy/middleware-serde": "npm:^4.2.20" "@smithy/middleware-stack": "npm:^4.2.14" "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/node-http-handler": "npm:^4.5.3" + "@smithy/node-http-handler": "npm:^4.6.1" "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.11" + "@smithy/smithy-client": "npm:^4.12.13" "@smithy/types": "npm:^4.14.1" "@smithy/url-parser": "npm:^4.2.14" "@smithy/util-base64": "npm:^4.3.2" "@smithy/util-body-length-browser": "npm:^4.2.2" "@smithy/util-body-length-node": "npm:^4.2.3" - "@smithy/util-defaults-mode-browser": "npm:^4.3.47" - "@smithy/util-defaults-mode-node": "npm:^4.2.52" - "@smithy/util-endpoints": "npm:^3.4.1" + "@smithy/util-defaults-mode-browser": "npm:^4.3.49" + "@smithy/util-defaults-mode-node": "npm:^4.2.54" + "@smithy/util-endpoints": "npm:^3.4.2" "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-retry": "npm:^4.3.2" + "@smithy/util-retry": "npm:^4.3.6" "@smithy/util-utf8": "npm:^4.2.2" tslib: "npm:^2.6.2" - checksum: 10c0/9fdd147b08971b8e1fe9d2ce4ffb603f6fa6826445ffe60c0190f2e63ea354933331b9241e5d078a136b0ae9317d400bd8091f2165aba988bebb64930f7f9a48 + checksum: 10c0/05c74c7362be74c723b64667763bd1e635c8d566456f70b64fa26546e7c605a49bf1bede7c2f5c293a0677b737093bbdc9b957a26124b9e1de5acf715dc57bb4 languageName: node linkType: hard -"@aws-sdk/region-config-resolver@npm:^3.972.12": - version: 3.972.12 - resolution: "@aws-sdk/region-config-resolver@npm:3.972.12" +"@aws-sdk/region-config-resolver@npm:^3.972.13": + version: 3.972.13 + resolution: "@aws-sdk/region-config-resolver@npm:3.972.13" dependencies: "@aws-sdk/types": "npm:^3.973.8" - "@smithy/config-resolver": "npm:^4.4.16" + "@smithy/config-resolver": "npm:^4.4.17" "@smithy/node-config-provider": "npm:^4.3.14" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/fdef6b7c8b2cf00bfaa6118bc9698e922d9b28b538a9111a2593b14fa732a29a57c37c54dec8e4ddd921276e5989b09f1e9042c231fadbec64c2d0991130a126 + checksum: 10c0/8cc3e5433ccf9ec4efb6d12ccd924701cfd6fb018124c9e5106486da10402ea1b83b0855353dae5e0f31ad2c7b6d962ac832350a5cdbeda59a30231525fd1118 languageName: node linkType: hard -"@aws-sdk/s3-presigned-post@npm:^3.1032.0": - version: 3.1032.0 - resolution: "@aws-sdk/s3-presigned-post@npm:3.1032.0" +"@aws-sdk/s3-presigned-post@npm:^3.1045.0": + version: 3.1045.0 + resolution: "@aws-sdk/s3-presigned-post@npm:3.1045.0" dependencies: - "@aws-sdk/client-s3": "npm:3.1032.0" + "@aws-sdk/client-s3": "npm:3.1045.0" "@aws-sdk/types": "npm:^3.973.8" "@aws-sdk/util-format-url": "npm:^3.972.10" - "@smithy/middleware-endpoint": "npm:^4.4.30" + "@smithy/middleware-endpoint": "npm:^4.4.32" "@smithy/signature-v4": "npm:^5.3.14" "@smithy/types": "npm:^4.14.1" "@smithy/util-hex-encoding": "npm:^4.2.2" "@smithy/util-utf8": "npm:^4.2.2" tslib: "npm:^2.6.2" - checksum: 10c0/6f18836b4d30a4480f7fb7f811dcdcb03fdc47a6862d9ddc9ed35442978433b89a16de0d7c7e83997bb53d72a69348650092ec702ab9f7a8b5bae894ebc67f5f + checksum: 10c0/1cac9e6f0dcf31af1d1de2f3ebbe17cc0a6dca833aa1416cceec64753c53abd1c83b42109ba5a58888f981d33add58ae1ec3c3e427237bacacd0dcd93dcb103b languageName: node linkType: hard -"@aws-sdk/s3-request-presigner@npm:^3.1032.0": - version: 3.1032.0 - resolution: "@aws-sdk/s3-request-presigner@npm:3.1032.0" +"@aws-sdk/s3-request-presigner@npm:^3.1045.0": + version: 3.1045.0 + resolution: "@aws-sdk/s3-request-presigner@npm:3.1045.0" dependencies: - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.18" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" "@aws-sdk/types": "npm:^3.973.8" "@aws-sdk/util-format-url": "npm:^3.972.10" - "@smithy/middleware-endpoint": "npm:^4.4.30" + "@smithy/middleware-endpoint": "npm:^4.4.32" "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.11" + "@smithy/smithy-client": "npm:^4.12.13" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/39df5cdf2a195d06a6fbcb7536f62df6643bfe93225c11da533e71ebd7d1101fa016d0e8783ace78c62b7cf0971beafd9860809f528c289d79afbb3314fd89a0 + checksum: 10c0/f9068614a93850d9af495dad84abcc1198b162ec60a62e5622ecd96678f761c35ed0b60efcdbcc200bd8220d7ed6ff7190b8ec9e0b033a302d8b6c2ff684d8ff languageName: node linkType: hard -"@aws-sdk/signature-v4-crt@npm:^3.1032.0": - version: 3.1032.0 - resolution: "@aws-sdk/signature-v4-crt@npm:3.1032.0" +"@aws-sdk/signature-v4-crt@npm:^3.1045.0": + version: 3.1045.0 + resolution: "@aws-sdk/signature-v4-crt@npm:3.1045.0" dependencies: - "@aws-sdk/crt-loader": "npm:^3.972.31" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.18" + "@aws-sdk/crt-loader": "npm:^3.972.38" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" "@aws-sdk/types": "npm:^3.973.8" "@smithy/querystring-parser": "npm:^4.2.14" "@smithy/signature-v4": "npm:^5.3.14" "@smithy/types": "npm:^4.14.1" "@smithy/util-middleware": "npm:^4.2.14" tslib: "npm:^2.6.2" - checksum: 10c0/a95a7cd20fb9ca83e87117c9bf5d2a33f00db3c18a5a2618e671e810a448293753c4f872109117b388c3475e5008edb1aae0521944581f89d495be15e568ec04 + checksum: 10c0/f7197e1f2e60139b6e85114b941a050ea1fc340cb03596adbd6482414907a832638f4e2a91f05d85170f9dc4f8ec27cb324622ff442a7d29edd436f0d336ac0c languageName: node linkType: hard -"@aws-sdk/signature-v4-multi-region@npm:^3.996.18": - version: 3.996.18 - resolution: "@aws-sdk/signature-v4-multi-region@npm:3.996.18" +"@aws-sdk/signature-v4-multi-region@npm:^3.996.25": + version: 3.996.25 + resolution: "@aws-sdk/signature-v4-multi-region@npm:3.996.25" dependencies: - "@aws-sdk/middleware-sdk-s3": "npm:^3.972.30" + "@aws-sdk/middleware-sdk-s3": "npm:^3.972.37" "@aws-sdk/types": "npm:^3.973.8" "@smithy/protocol-http": "npm:^5.3.14" "@smithy/signature-v4": "npm:^5.3.14" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/b913971d62135a80ce1f5423ffeb2e93e9d1cd1b1b98df4841d39335b6219bc0d47bfb6c6496fde2db237ab90252e5cdb825e444a6cbf718f2951c9180cafd83 + checksum: 10c0/05196c85d265e5e59df621c7844235a449a940ebc8264578c0f87d76b6fbb741650a5634433589b9223a05003198be214068eef7d6e50596196de0f1d1954b5d languageName: node linkType: hard -"@aws-sdk/token-providers@npm:3.1032.0": - version: 3.1032.0 - resolution: "@aws-sdk/token-providers@npm:3.1032.0" +"@aws-sdk/token-providers@npm:3.1041.0": + version: 3.1041.0 + resolution: "@aws-sdk/token-providers@npm:3.1041.0" dependencies: - "@aws-sdk/core": "npm:^3.974.1" - "@aws-sdk/nested-clients": "npm:^3.996.21" + "@aws-sdk/core": "npm:^3.974.8" + "@aws-sdk/nested-clients": "npm:^3.997.6" "@aws-sdk/types": "npm:^3.973.8" "@smithy/property-provider": "npm:^4.2.14" "@smithy/shared-ini-file-loader": "npm:^4.4.9" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/4384eedd582d880b366354770a5691eab6b100e0a9bfb8f4fd82b3046e7837f3fca2632e72ada0433477fb677ebb077ce0acaa006ae784ae2d85fa4123bf8b1d + checksum: 10c0/af70f8e23a98a750dcb661b43bbd896e4a2425f553336c491b118a058e46691689ac4fa980f69d2dae42d1488f3b859adbd2f347d73ac1261f44b421d2041101 languageName: node linkType: hard @@ -668,16 +670,16 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/util-endpoints@npm:^3.996.7": - version: 3.996.7 - resolution: "@aws-sdk/util-endpoints@npm:3.996.7" +"@aws-sdk/util-endpoints@npm:^3.996.8": + version: 3.996.8 + resolution: "@aws-sdk/util-endpoints@npm:3.996.8" dependencies: "@aws-sdk/types": "npm:^3.973.8" "@smithy/types": "npm:^4.14.1" "@smithy/url-parser": "npm:^4.2.14" - "@smithy/util-endpoints": "npm:^3.4.1" + "@smithy/util-endpoints": "npm:^3.4.2" tslib: "npm:^2.6.2" - checksum: 10c0/047eb767192831c6fff5ec93711c7a7be88ef6dc477b867a6ea00a55449128da9e9b169f4beadee917b965918ab8b8b5878d366bd6e90674e5e719f11ec0c84e + checksum: 10c0/66f17e85357ab8e265ab7d1c9a69a064ad3bea99420c786be9ef1f92bc71dca22d328bbceeaf6c64b4a3c37161b78318a3e4a424bf247dcb211d7ae29344db2f languageName: node linkType: hard @@ -714,11 +716,11 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/util-user-agent-node@npm:^3.973.17": - version: 3.973.17 - resolution: "@aws-sdk/util-user-agent-node@npm:3.973.17" +"@aws-sdk/util-user-agent-node@npm:^3.973.24": + version: 3.973.24 + resolution: "@aws-sdk/util-user-agent-node@npm:3.973.24" dependencies: - "@aws-sdk/middleware-user-agent": "npm:^3.972.31" + "@aws-sdk/middleware-user-agent": "npm:^3.972.38" "@aws-sdk/types": "npm:^3.973.8" "@smithy/node-config-provider": "npm:^4.3.14" "@smithy/types": "npm:^4.14.1" @@ -729,7 +731,7 @@ __metadata: peerDependenciesMeta: aws-crt: optional: true - checksum: 10c0/b4c9a93021add98c05cfdc99a13bfabebf9b44f48570f0a8af0064d6df394d16c3609ed186fa91b130c60e59d85deeb327bd04941d77de410123c46fb9817085 + checksum: 10c0/859c6441d1d24594d73a125c2a335faeb412a5cc3ab318005ce2e4904c3f9a0c6781437ae0fb2e3a1eb2343146dafbb9ac037ea88fbd8e78d50f7153732c5bb4 languageName: node linkType: hard @@ -742,7 +744,7 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/xml-builder@npm:^3.972.18": +"@aws-sdk/xml-builder@npm:^3.972.22": version: 3.972.22 resolution: "@aws-sdk/xml-builder@npm:3.972.22" dependencies: @@ -6080,35 +6082,24 @@ __metadata: languageName: node linkType: hard -"@smithy/config-resolver@npm:^4.4.16": - version: 4.4.16 - resolution: "@smithy/config-resolver@npm:4.4.16" +"@smithy/config-resolver@npm:^4.4.17": + version: 4.5.0 + resolution: "@smithy/config-resolver@npm:4.5.0" dependencies: - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-config-provider": "npm:^4.2.2" - "@smithy/util-endpoints": "npm:^3.4.1" - "@smithy/util-middleware": "npm:^4.2.14" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/92aa853e11d4bdcfae66d8931b7eb92b9585dd5583ee7dccbb05d297f56521701b13af2fcadec08547006879e1f17d529d41c7aa284fde1100e9b2d6a76c514d + checksum: 10c0/d85777a1ee614c4574cf269ace4bde4ebf7dadf2d6bfc853d6e916246cb7679a47056d1a1f91f6c5f4eab01cdadc49a7f56b0c889e4f2e3929a06efbaa8e19ec languageName: node linkType: hard -"@smithy/core@npm:^3.23.15": - version: 3.23.15 - resolution: "@smithy/core@npm:3.23.15" +"@smithy/core@npm:^3.23.17, @smithy/core@npm:^3.24.0": + version: 3.24.0 + resolution: "@smithy/core@npm:3.24.0" dependencies: - "@smithy/protocol-http": "npm:^5.3.14" + "@aws-crypto/crc32": "npm:5.2.0" "@smithy/types": "npm:^4.14.1" - "@smithy/url-parser": "npm:^4.2.14" - "@smithy/util-base64": "npm:^4.3.2" - "@smithy/util-body-length-browser": "npm:^4.2.2" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-stream": "npm:^4.5.23" - "@smithy/util-utf8": "npm:^4.2.2" - "@smithy/uuid": "npm:^1.1.2" tslib: "npm:^2.6.2" - checksum: 10c0/2d951caa2842691c074bb305f57bdaaf398af1af1e71fef25c679677ffc5f883af42f0ec4cc34bc2189d48db7c6f9cda641292ebc7b3137beb4fb8db503ebbf9 + checksum: 10c0/f317e449a193e9e12afd76719ea58cdfb316d03fc46e6452b20a089665c86941a76f30e7c7a0bc9e2232334e673d432c08f647ca6651a2c145a33198ec0ee0d6 languageName: node linkType: hard @@ -6278,49 +6269,33 @@ __metadata: languageName: node linkType: hard -"@smithy/middleware-endpoint@npm:^4.4.30": - version: 4.4.30 - resolution: "@smithy/middleware-endpoint@npm:4.4.30" +"@smithy/middleware-endpoint@npm:^4.4.32": + version: 4.5.0 + resolution: "@smithy/middleware-endpoint@npm:4.5.0" dependencies: - "@smithy/core": "npm:^3.23.15" - "@smithy/middleware-serde": "npm:^4.2.18" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" - "@smithy/url-parser": "npm:^4.2.14" - "@smithy/util-middleware": "npm:^4.2.14" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/9ab2b144fe9de34cc354a6edaf34e18d50c1b0880e5fae30be29c7b178d5d6ba0fd94290efd5e14a28c4767bc7e40efde33cb95b2e6396f9a3cec42a977699b1 + checksum: 10c0/7e2dced85eda01cc4590a63d9c9f7c157a8a4bd6c08e6229a37cd68830e8ab0e902e9769fddf2f052bca640c70c911d9ea46300a9de3afbfd3b30f5ba21bec41 languageName: node linkType: hard -"@smithy/middleware-retry@npm:^4.5.3": - version: 4.5.3 - resolution: "@smithy/middleware-retry@npm:4.5.3" +"@smithy/middleware-retry@npm:^4.5.7": + version: 4.6.0 + resolution: "@smithy/middleware-retry@npm:4.6.0" dependencies: - "@smithy/core": "npm:^3.23.15" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/service-error-classification": "npm:^4.2.14" - "@smithy/smithy-client": "npm:^4.12.11" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-retry": "npm:^4.3.2" - "@smithy/uuid": "npm:^1.1.2" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/71b0834cd86f85c70fac3d4dff07a84632c8f3ca2df6fd1e60c5d6daaad343b9882f1033b1882831ce83094663f2168f43e50721a721b715b76248d99b412f57 + checksum: 10c0/fb94a3643833802e7c54c3e125b381a3445f1f6550355d8283480f13097bfaa9cd79fc77d6cd58dd42a4173430e244a892efbe8118a3aaec3f6fca504c04a5c4 languageName: node linkType: hard -"@smithy/middleware-serde@npm:^4.2.18": - version: 4.2.18 - resolution: "@smithy/middleware-serde@npm:4.2.18" +"@smithy/middleware-serde@npm:^4.2.20": + version: 4.3.0 + resolution: "@smithy/middleware-serde@npm:4.3.0" dependencies: - "@smithy/core": "npm:^3.23.15" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/40d49b5d63cdce8e73c4561d72b97db8cc42721045a3ae924ae0f8c211354deb1c9850d034dc94e1bc5d1b3a4a395dbc1165a49c66e0b5ba1d281ca8257395e2 + checksum: 10c0/e493ac0119d833eb1095ed3fda81e64a68397f64fc978da1390f7fb46d2d027b1caf5278fb47c18c3779ba46a05f6187a6678b204789f8dd9df044b5abbaa410 languageName: node linkType: hard @@ -6346,15 +6321,14 @@ __metadata: languageName: node linkType: hard -"@smithy/node-http-handler@npm:^4.5.3": - version: 4.5.3 - resolution: "@smithy/node-http-handler@npm:4.5.3" +"@smithy/node-http-handler@npm:^4.6.1": + version: 4.7.0 + resolution: "@smithy/node-http-handler@npm:4.7.0" dependencies: - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/querystring-builder": "npm:^4.2.14" + "@smithy/core": "npm:^3.24.0" "@smithy/types": "npm:^4.14.1" tslib: "npm:^2.6.2" - checksum: 10c0/2cde9993068f468f4a55d4b535abc95121a62e07ef4482c2078cab3a041b8d875202dca54383baa3dd169ab2e8288209fd69b1e00f450afa406ed529c0ecfbe1 + checksum: 10c0/bc0fc552675d0d74137b43cf6c7b1ec2a7f9a4d12e506b00aa1ab204d9e31fa5fe0904eb949c3a0be8d8209f8fd2ca658fe7b3561f979b3ed376e212c5122e10 languageName: node linkType: hard @@ -6399,15 +6373,6 @@ __metadata: languageName: node linkType: hard -"@smithy/service-error-classification@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/service-error-classification@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - checksum: 10c0/75598612b891ba100169df3c76b1afcafd273c53e645ce0ed64e97f8b68dfa8ceef5d9f9f1656f4d327996e04537440c54c7dfa0c1edfed0bc5a9ee8d8b0f85d - languageName: node - linkType: hard - "@smithy/shared-ini-file-loader@npm:^4.4.9": version: 4.4.9 resolution: "@smithy/shared-ini-file-loader@npm:4.4.9" @@ -6434,18 +6399,14 @@ __metadata: languageName: node linkType: hard -"@smithy/smithy-client@npm:^4.12.11": - version: 4.12.11 - resolution: "@smithy/smithy-client@npm:4.12.11" +"@smithy/smithy-client@npm:^4.12.13": + version: 4.13.0 + resolution: "@smithy/smithy-client@npm:4.13.0" dependencies: - "@smithy/core": "npm:^3.23.15" - "@smithy/middleware-endpoint": "npm:^4.4.30" - "@smithy/middleware-stack": "npm:^4.2.14" - "@smithy/protocol-http": "npm:^5.3.14" + "@smithy/core": "npm:^3.24.0" "@smithy/types": "npm:^4.14.1" - "@smithy/util-stream": "npm:^4.5.23" tslib: "npm:^2.6.2" - checksum: 10c0/5688db9635e4c9a89dd425706e45aa0b2dff7317d7c417a965fceb0b83f803690a73a1ebe749397a97c86b462bff7bd541005354538118888da2a489aec5e301 + checksum: 10c0/2f9aadfcfea48d3892a9ccac66bfb5b335231376d0c9f99d0fa0628ca126a3c6d9aa375db0ce0d28f347a15be49d74c75a8991c097664ebefa630fdd77a20c77 languageName: node linkType: hard @@ -6527,41 +6488,33 @@ __metadata: languageName: node linkType: hard -"@smithy/util-defaults-mode-browser@npm:^4.3.47": - version: 4.3.47 - resolution: "@smithy/util-defaults-mode-browser@npm:4.3.47" +"@smithy/util-defaults-mode-browser@npm:^4.3.49": + version: 4.4.0 + resolution: "@smithy/util-defaults-mode-browser@npm:4.4.0" dependencies: - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/smithy-client": "npm:^4.12.11" - "@smithy/types": "npm:^4.14.1" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/119c491b7c1a9a8cf5c1e006e6a3c17d6c8d72c4f81d5688ed527efe31c811c6690b339f2bcb3dc3fcc2eacbd72727fee1f8bef4cf734da920b45b1de00dc972 + checksum: 10c0/d85bae5eeeda85db720426490a079802f9432dd06b4bf8b0475deca1b3d8c724e8eee947fab9d6aa2a048a321a7ed393405c9bab7a992bf86b603f473de718da languageName: node linkType: hard -"@smithy/util-defaults-mode-node@npm:^4.2.52": - version: 4.2.52 - resolution: "@smithy/util-defaults-mode-node@npm:4.2.52" +"@smithy/util-defaults-mode-node@npm:^4.2.54": + version: 4.3.0 + resolution: "@smithy/util-defaults-mode-node@npm:4.3.0" dependencies: - "@smithy/config-resolver": "npm:^4.4.16" - "@smithy/credential-provider-imds": "npm:^4.2.14" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/smithy-client": "npm:^4.12.11" - "@smithy/types": "npm:^4.14.1" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/ef9373a99c282f9f00219805ef7de23f069d856c1660ca6c8a8bed7875e366be5cbbfbbd23aee404f074f548c4d07d9753940d284f489c72ae8f01079a1b4c5c + checksum: 10c0/a22cd4a14e79a9eb8ac30d59a78f165977ac755adc7851cec084efdafc29918af1075fb5c7398577871d26bdab4c53650182fc887eb48e07b7b0da896d7efa64 languageName: node linkType: hard -"@smithy/util-endpoints@npm:^3.4.1": - version: 3.4.1 - resolution: "@smithy/util-endpoints@npm:3.4.1" +"@smithy/util-endpoints@npm:^3.4.2": + version: 3.5.0 + resolution: "@smithy/util-endpoints@npm:3.5.0" dependencies: - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/types": "npm:^4.14.1" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/a8923934c275b9a4a640cb6ddd2ed2f36dcc2e5400d9e728b7a45b93528fdb798ed9c057af98f769e094aaeb885d5b242436abba8877b96770d7478212d3efdf + checksum: 10c0/b1598ad5424b4648be5df8f3ddea99c02b301cac56445ffd7fff66dca7f3a851578c86c9bb0b3e3332589103fc823a7f0a14157683de19b02d76fd299241cb04 languageName: node linkType: hard @@ -6584,30 +6537,23 @@ __metadata: languageName: node linkType: hard -"@smithy/util-retry@npm:^4.3.2": - version: 4.3.2 - resolution: "@smithy/util-retry@npm:4.3.2" +"@smithy/util-retry@npm:^4.3.6": + version: 4.4.0 + resolution: "@smithy/util-retry@npm:4.4.0" dependencies: - "@smithy/service-error-classification": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/3d66c65301f2e00ba5928b70841e434fe6d54407117c78a1e120f4c409225f64d7f6901bd3680f8359ef766776f316486b191f4ad6830c1af628cbd368a84161 + checksum: 10c0/c4e3a31331234f55f7473ad6c7165ff6f6a456b53f3a641e934bd8fa4591cf0fc2bc6a1c14a0ba44a5a9bb4565e7de61eccb2e5b5fb10dcf6dd61bdf71e2e8a8 languageName: node linkType: hard -"@smithy/util-stream@npm:^4.5.23": - version: 4.5.23 - resolution: "@smithy/util-stream@npm:4.5.23" +"@smithy/util-stream@npm:^4.5.25": + version: 4.6.0 + resolution: "@smithy/util-stream@npm:4.6.0" dependencies: - "@smithy/fetch-http-handler": "npm:^5.3.17" - "@smithy/node-http-handler": "npm:^4.5.3" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-base64": "npm:^4.3.2" - "@smithy/util-buffer-from": "npm:^4.2.2" - "@smithy/util-hex-encoding": "npm:^4.2.2" - "@smithy/util-utf8": "npm:^4.2.2" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/a33966bd600d522a6dce7eaf97f27c6b92fbca370abf29c1676b254f4f252c15c01bbb3f9e5224c07c31a85343404863a0a3f048619e9b133afeb647a9d489e4 + checksum: 10c0/283ae66729690496a191bc92726f8423acbad6773622fa93293d14263d90845b32a9bff68369b08fe35a5875a06d9c8828621a125126738bc59a2834d6fd4f4e languageName: node linkType: hard @@ -6640,22 +6586,13 @@ __metadata: languageName: node linkType: hard -"@smithy/util-waiter@npm:^4.2.16": - version: 4.2.16 - resolution: "@smithy/util-waiter@npm:4.2.16" +"@smithy/util-waiter@npm:^4.3.0": + version: 4.4.0 + resolution: "@smithy/util-waiter@npm:4.4.0" dependencies: - "@smithy/types": "npm:^4.14.1" + "@smithy/core": "npm:^3.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/c2ee5f83f5325af0c26be5d535ecd9166aa30b59c8f4ee3675bdd682521f3e2391015265afeae8585bf4009ba257d39ba7866ccc4a95c429ae14dc570ef3d9aa - languageName: node - linkType: hard - -"@smithy/uuid@npm:^1.1.2": - version: 1.1.2 - resolution: "@smithy/uuid@npm:1.1.2" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/cbedfe5e2c1ec5ee05ae0cd6cc3c9f6f5e600207362d62470278827488794e19148a05a61ee9b6a2359bb460985af1a528c48d54f365891fe1c4913504250667 + checksum: 10c0/f04d481d880ffaf18014ccaae6e776c0f39b0bd85f74620b5059d73183e81296ded8c8466033f1fb10d28f70b21f00edff8f25b270da06a5eecb9ac2a45a513a languageName: node linkType: hard @@ -15745,11 +15682,11 @@ __metadata: version: 0.0.0-use.local resolution: "outline@workspace:." dependencies: - "@aws-sdk/client-s3": "npm:^3.1032.0" - "@aws-sdk/lib-storage": "npm:^3.1032.0" - "@aws-sdk/s3-presigned-post": "npm:^3.1032.0" - "@aws-sdk/s3-request-presigner": "npm:^3.1032.0" - "@aws-sdk/signature-v4-crt": "npm:^3.1032.0" + "@aws-sdk/client-s3": "npm:^3.1045.0" + "@aws-sdk/lib-storage": "npm:^3.1045.0" + "@aws-sdk/s3-presigned-post": "npm:^3.1045.0" + "@aws-sdk/s3-request-presigner": "npm:^3.1045.0" + "@aws-sdk/signature-v4-crt": "npm:^3.1045.0" "@babel/cli": "npm:^7.28.6" "@babel/core": "npm:^7.28.6" "@babel/plugin-proposal-decorators": "npm:^7.28.6" From dcddab47e1f5e4f4c9a8fc4ac610558f9b0128c4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 20:17:56 -0400 Subject: [PATCH 012/286] chore(deps): bump koa-compress from 5.1.1 to 5.2.1 (#12318) --- package.json | 2 +- yarn.lock | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 8861e1f4c1..e7ccd081f3 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,7 @@ "kbar": "0.1.0-beta.48", "koa": "^3.0.3", "koa-body": "^6.0.1", - "koa-compress": "^5.1.1", + "koa-compress": "^5.2.1", "koa-helmet": "^6.1.0", "koa-logger": "^3.2.1", "koa-mount": "^4.2.0", diff --git a/yarn.lock b/yarn.lock index ae763127a8..db4c9aace7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12614,7 +12614,7 @@ __metadata: languageName: node linkType: hard -"http-errors@npm:^1.3.1, http-errors@npm:^1.7.3, http-errors@npm:^1.8.1, http-errors@npm:~1.8.0": +"http-errors@npm:^1.3.1, http-errors@npm:^1.7.3, http-errors@npm:~1.8.0": version: 1.8.1 resolution: "http-errors@npm:1.8.1" dependencies: @@ -13896,15 +13896,16 @@ __metadata: languageName: node linkType: hard -"koa-compress@npm:^5.1.1": - version: 5.1.1 - resolution: "koa-compress@npm:5.1.1" +"koa-compress@npm:^5.2.1": + version: 5.2.1 + resolution: "koa-compress@npm:5.2.1" dependencies: bytes: "npm:^3.1.2" compressible: "npm:^2.0.18" - http-errors: "npm:^1.8.1" + http-errors: "npm:^2.0.1" koa-is-json: "npm:^1.0.0" - checksum: 10c0/c3b9456330b1c3d02852af588a19b8a709616c67f2d2602d5d1bb2cf851a4387c76d350936ac373059b0c956c92dedb2d6cbe4aae3b5d3eb741835f949d22e9f + negotiator: "npm:^1.0.0" + checksum: 10c0/0fb075584b6be5f619a4de7c326f3f7cc503ba6dfeb40e4c714451d81c6358f14c60e2603f064528ffa25edac50ae7af040e8cac984a6e6d6e73b82a11e4f232 languageName: node linkType: hard @@ -15871,7 +15872,7 @@ __metadata: kbar: "npm:0.1.0-beta.48" koa: "npm:^3.0.3" koa-body: "npm:^6.0.1" - koa-compress: "npm:^5.1.1" + koa-compress: "npm:^5.2.1" koa-helmet: "npm:^6.1.0" koa-logger: "npm:^3.2.1" koa-mount: "npm:^4.2.0" From dab06d4dfaf217b044a603adb22fd78cc8f9752c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 20:19:11 -0400 Subject: [PATCH 013/286] chore(deps): bump i18next-fs-backend from 2.6.4 to 2.6.5 (#12319) --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e7ccd081f3..c9ea052020 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,7 @@ "http-errors": "2.0.1", "https-proxy-agent": "^7.0.6", "i18next": "^22.5.1", - "i18next-fs-backend": "^2.6.4", + "i18next-fs-backend": "^2.6.5", "i18next-http-backend": "^3.0.5", "invariant": "^2.2.4", "ioredis": "^5.10.1", diff --git a/yarn.lock b/yarn.lock index db4c9aace7..009de38f62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12703,10 +12703,10 @@ __metadata: languageName: node linkType: hard -"i18next-fs-backend@npm:^2.6.4": - version: 2.6.4 - resolution: "i18next-fs-backend@npm:2.6.4" - checksum: 10c0/b1658cbf5d5acf0f663a2b18ca8e70501ef1b6b14213bd3952eb9a271a36b9dcde4ecd2aa899fbaf2907e584cea7c6fa98e44433f1b7e3e30f67063eb1a26cf6 +"i18next-fs-backend@npm:^2.6.5": + version: 2.6.5 + resolution: "i18next-fs-backend@npm:2.6.5" + checksum: 10c0/650061345ca206c070d409565ee418056f87aa55a112ab669a128d2de77bea7c9aadd36987180185a48a603f9db3a008d7c424ae75689ac61c547c5b74d77f2f languageName: node linkType: hard @@ -15855,7 +15855,7 @@ __metadata: https-proxy-agent: "npm:^7.0.6" husky: "npm:^8.0.3" i18next: "npm:^22.5.1" - i18next-fs-backend: "npm:^2.6.4" + i18next-fs-backend: "npm:^2.6.5" i18next-http-backend: "npm:^3.0.5" i18next-parser: "npm:^9.4.0" invariant: "npm:^2.2.4" From 3109f49b40e59378870309188040540f5561abea Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 11 May 2026 22:16:20 -0400 Subject: [PATCH 014/286] feat: Allow MCP to access signed attachment urls through `fetch` tool (#12315) * feat: Add ability for MCP to access signed attachment urls through fetch tool * Potential fix for pull request finding * fix: non-admin cannot fetch attachments --- server/routes/mcp/index.ts | 4 +++- server/tools/fetch.ts | 46 +++++++++++++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/server/routes/mcp/index.ts b/server/routes/mcp/index.ts index 07885ca17e..36d81e56e3 100644 --- a/server/routes/mcp/index.ts +++ b/server/routes/mcp/index.ts @@ -26,7 +26,9 @@ const router = new Router(); const defaultInstructions = `Document markdown content must not begin with a top-level heading (H1) — the title is stored as a separate field, so set it via the title parameter and start the content with body text or a lower-level heading instead. -Document and collection markdown support @mentions using the syntax: @[Display Name](mention://user/userId). For example: @[John Doe](mention://user/c9a1b2e3-...). Use the list_users tool to find user IDs.`; +Document and collection markdown support @mentions using the syntax: @[Display Name](mention://user/userId). For example: @[John Doe](mention://user/c9a1b2e3-...). Use the "list_users" tool to find user IDs. + +Read images and attachments with the "fetch" tool by setting resource to "attachment" and passing either the attachment ID or an /api/attachments.redirect?id=... URL; the tool will return a signed URL for download.`; /** * Creates a fresh MCP server instance with tools filtered by the OAuth diff --git a/server/tools/fetch.ts b/server/tools/fetch.ts index b75ce348c0..ffb490c604 100644 --- a/server/tools/fetch.ts +++ b/server/tools/fetch.ts @@ -1,8 +1,9 @@ import { z } from "zod"; import { type McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { Collection, Document, User } from "@server/models"; +import { Attachment, Collection, Document, User } from "@server/models"; import { authorize, can } from "@server/policies"; +import { AuthorizationError } from "@server/errors"; import { presentCollection, presentDocument, @@ -32,8 +33,12 @@ const SELF_TOKENS = new Set(["self", "me", "current_user"]); function extractId(value: string): string { if (/^https?:\/\//.test(value)) { try { - const pathname = new URL(value).pathname; - const segments = pathname.split("/").filter(Boolean); + const url = new URL(value); + const queryId = url.searchParams.get("id"); + if (queryId) { + return queryId; + } + const segments = url.pathname.split("/").filter(Boolean); return segments[segments.length - 1] ?? value; } catch { return value; @@ -59,8 +64,17 @@ export function fetchTool(server: McpServer, scopes: string[]) { scopes ); const canReadUsers = AuthenticationHelper.canAccess("users.info", scopes); + const canReadAttachments = AuthenticationHelper.canAccess( + "attachments.info", + scopes + ); - if (!canReadDocuments && !canReadCollections && !canReadUsers) { + if ( + !canReadDocuments && + !canReadCollections && + !canReadUsers && + !canReadAttachments + ) { return; } @@ -68,6 +82,7 @@ export function fetchTool(server: McpServer, scopes: string[]) { ...(canReadDocuments ? ["document"] : []), ...(canReadCollections ? ["collection"] : []), ...(canReadUsers ? ["user"] : []), + ...(canReadAttachments ? ["attachment"] : []), ] as [string, ...string[]]; server.registerTool( @@ -75,7 +90,7 @@ export function fetchTool(server: McpServer, scopes: string[]) { { title: "Fetch", description: - 'Fetches a document, collection, or user by type and ID. When fetching a collection the response includes the full hierarchical document tree. For users, "current_user" can be used as the ID to get the authenticated user.', + 'Fetches a document, collection, user, or attachment by type and ID. When fetching a collection the response includes the full hierarchical document tree. For users, "current_user" can be used as the ID to get the authenticated user. For attachments, the response includes a short-lived signed URL that can be used to download the file contents directly.', annotations: { idempotentHint: true, readOnlyHint: true, @@ -161,6 +176,27 @@ export function fetchTool(server: McpServer, scopes: string[]) { ); } + case "attachment": { + const attachment = await Attachment.findByPk(id, { + rejectOnEmpty: true, + }); + + // Private attachments are accessible to any member of the workspace they + // belong to. This is intentional and not a permission bypass – attachments + // are owned by the workspace (team), not by individual documents or users. + if (attachment.teamId !== actor?.teamId) { + throw AuthorizationError(); + } + + return success({ + id: attachment.id, + name: attachment.name, + contentType: attachment.contentType, + size: attachment.size, + signedUrl: await attachment.signedUrl, + }); + } + default: return error(`Unknown resource: ${resource}`); } From fc01deeefda2c893ad5f2790bde84ea9c99f1d5e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 07:59:13 -0400 Subject: [PATCH 015/286] chore(deps-dev): bump oxlint-tsgolint from 0.14.2 to 0.22.1 (#12320) * chore(deps-dev): bump oxlint-tsgolint from 0.14.2 to 0.22.1 Bumps [oxlint-tsgolint](https://github.com/oxc-project/tsgolint) from 0.14.2 to 0.22.1. - [Release notes](https://github.com/oxc-project/tsgolint/releases) - [Commits](https://github.com/oxc-project/tsgolint/compare/v0.14.2...v0.22.1) --- updated-dependencies: - dependency-name: oxlint-tsgolint dependency-version: 0.22.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: Switch tsconfig to bundler resolution for tsgolint 0.22.1 oxlint-tsgolint 0.22.1 removed support for moduleResolution=node10 (the alias for "node"). Switch to "bundler" with resolvePackageJsonExports disabled so packages whose exports field omits a types condition still resolve. Update markdown-it type imports to sub-paths since the package's .d.mts entry only re-exports a subset of named types. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * fix: Resolve type-aware lint errors caught by tsgolint 0.22.1 oxlint-tsgolint 0.22.1 catches several await-thenable, no-floating-promises, and no-meaningless-void-operator cases the prior 0.14.2 missed: - Drop redundant inner `await` from Promise.all([await x, await y]) call sites so the array entries are real Promises rather than already-resolved values. - Replace Promise.all wrappers around synchronous presenters (presentEvent, presentTemplate, presentPublicTeam) with plain map / direct calls. - Wrap non-promise branches of ternaries inside Promise.all with Promise.resolve so the array remains thenable across both arms. - Add `void` to the unawaited provider.connect() in the auth-failed retry chain, and remove `void` from the disconnect() call which returns void. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- .../Document/components/MultiplayerEditor.tsx | 4 +- package.json | 2 +- server/models/GroupMembership.ts | 2 +- server/models/UserMembership.ts | 2 +- server/routes/api/events/events.ts | 4 +- server/routes/api/imports/imports.test.ts | 4 +- .../routes/api/integrations/integrations.ts | 2 +- server/routes/api/shares/shares.ts | 41 +++++++------ server/routes/api/templates/templates.ts | 4 +- server/utils/permissions.test.ts | 30 +++++----- shared/editor/lib/markdown/rules.ts | 8 ++- shared/editor/marks/Link.tsx | 2 +- shared/editor/nodes/Attachment.tsx | 2 +- shared/editor/nodes/CheckboxItem.ts | 2 +- shared/editor/nodes/CodeFence.ts | 2 +- shared/editor/nodes/Embed.tsx | 2 +- shared/editor/nodes/Emoji.tsx | 2 +- shared/editor/nodes/HorizontalRule.ts | 2 +- shared/editor/nodes/Image.tsx | 2 +- shared/editor/nodes/Mention.tsx | 2 +- shared/editor/nodes/Notice.tsx | 2 +- shared/editor/nodes/OrderedList.ts | 3 +- shared/editor/nodes/SimpleImage.tsx | 2 +- shared/editor/nodes/TableCell.ts | 2 +- shared/editor/nodes/TableHeader.ts | 2 +- shared/editor/nodes/Video.tsx | 2 +- shared/editor/rules/breaks.ts | 2 +- shared/editor/rules/checkboxes.ts | 2 +- shared/editor/rules/emoji.ts | 2 +- shared/editor/rules/links.ts | 2 +- shared/editor/rules/mark.ts | 5 +- shared/editor/rules/math.ts | 3 +- shared/editor/rules/mention.ts | 3 +- shared/editor/rules/notices.ts | 2 +- tsconfig.json | 3 +- yarn.lock | 58 +++++++++---------- 36 files changed, 109 insertions(+), 107 deletions(-) diff --git a/app/scenes/Document/components/MultiplayerEditor.tsx b/app/scenes/Document/components/MultiplayerEditor.tsx index d21060b40d..b9aa05e7e7 100644 --- a/app/scenes/Document/components/MultiplayerEditor.tsx +++ b/app/scenes/Document/components/MultiplayerEditor.tsx @@ -130,7 +130,7 @@ function MultiplayerEditor( .fetchAuth() .then(() => { provider.setConfiguration({ token: auth.collaborationToken }); - provider.connect(); + void provider.connect(); provider.shouldConnect = true; }) .catch(() => { @@ -284,7 +284,7 @@ function MultiplayerEditor( !isVisible && remoteProvider.status === WebSocketStatus.Connected ) { - void remoteProvider.disconnect(); + remoteProvider.disconnect(); } if ( diff --git a/package.json b/package.json index c9ea052020..06baf21e68 100644 --- a/package.json +++ b/package.json @@ -363,7 +363,7 @@ "msw": "^2.14.2", "nodemon": "^3.1.14", "oxlint": "1.50.0", - "oxlint-tsgolint": "0.14.2", + "oxlint-tsgolint": "0.22.1", "postinstall-postinstall": "^2.1.0", "prettier": "^3.6.2", "react-refresh": "^0.18.0", diff --git a/server/models/GroupMembership.ts b/server/models/GroupMembership.ts index 6b4e588e29..06796c39d9 100644 --- a/server/models/GroupMembership.ts +++ b/server/models/GroupMembership.ts @@ -192,7 +192,7 @@ class GroupMembership extends ParanoidModel< memberships.map((membership) => membership?.sourceId ? this.findByPk(membership.sourceId, options) - : membership + : Promise.resolve(membership) ) ); diff --git a/server/models/UserMembership.ts b/server/models/UserMembership.ts index debe79c7f8..4a14e826e9 100644 --- a/server/models/UserMembership.ts +++ b/server/models/UserMembership.ts @@ -193,7 +193,7 @@ class UserMembership extends IdModel< memberships.map((membership) => membership?.sourceId ? this.findByPk(membership.sourceId, options) - : membership + : Promise.resolve(membership) ) ); diff --git a/server/routes/api/events/events.ts b/server/routes/api/events/events.ts index d754eae15f..cef1ffbcb7 100644 --- a/server/routes/api/events/events.ts +++ b/server/routes/api/events/events.ts @@ -95,9 +95,7 @@ router.post( ctx.body = { pagination: ctx.state.pagination, - data: await Promise.all( - loadedEvents.map((event) => presentEvent(event, auditLog)) - ), + data: loadedEvents.map((event) => presentEvent(event, auditLog)), }; } ); diff --git a/server/routes/api/imports/imports.test.ts b/server/routes/api/imports/imports.test.ts index f6ba66356c..202c067a31 100644 --- a/server/routes/api/imports/imports.test.ts +++ b/server/routes/api/imports/imports.test.ts @@ -105,11 +105,11 @@ describe("#imports.list", () => { it("should list all imports", async () => { const admin = await buildAdmin(); const [importOne, importTwo] = await Promise.all([ - await buildImport({ + buildImport({ createdById: admin.id, teamId: admin.teamId, }), - await buildImport({ + buildImport({ createdById: admin.id, teamId: admin.teamId, }), diff --git a/server/routes/api/integrations/integrations.ts b/server/routes/api/integrations/integrations.ts index 93dcdbf3c5..572deb8544 100644 --- a/server/routes/api/integrations/integrations.ts +++ b/server/routes/api/integrations/integrations.ts @@ -49,7 +49,7 @@ router.post( }; const [integrations, total] = await Promise.all([ - await Integration.findAll({ + Integration.findAll({ where, order: [[sort, direction]], offset: ctx.state.pagination.offset, diff --git a/server/routes/api/shares/shares.ts b/server/routes/api/shares/shares.ts index b1daea22f8..a5ec7abbd7 100644 --- a/server/routes/api/shares/shares.ts +++ b/server/routes/api/shares/shares.ts @@ -80,27 +80,26 @@ router.post( const team = teamFromCtx?.id === share.teamId ? teamFromCtx : share.team; - const [serializedCollection, serializedDocument, serializedTeam] = - await Promise.all([ - collection - ? await presentCollection(ctx, collection, { - isPublic: cannot(user, "read", collection), - shareId: share.id, - includeUpdatedAt: share.showLastUpdated, - }) - : null, - document - ? await presentDocument(ctx, document, { - isPublic: cannot(user, "read", document), - shareId: share.id, - includeUpdatedAt: share.showLastUpdated, - }) - : null, - presentPublicTeam( - team, - !!team.getPreference(TeamPreference.PublicBranding) - ), - ]); + const [serializedCollection, serializedDocument] = await Promise.all([ + collection + ? presentCollection(ctx, collection, { + isPublic: cannot(user, "read", collection), + shareId: share.id, + includeUpdatedAt: share.showLastUpdated, + }) + : Promise.resolve(null), + document + ? presentDocument(ctx, document, { + isPublic: cannot(user, "read", document), + shareId: share.id, + includeUpdatedAt: share.showLastUpdated, + }) + : Promise.resolve(null), + ]); + const serializedTeam = presentPublicTeam( + team, + !!team.getPreference(TeamPreference.PublicBranding) + ); ctx.body = { data: { diff --git a/server/routes/api/templates/templates.ts b/server/routes/api/templates/templates.ts index 8f2f55de3d..76a25e0bae 100644 --- a/server/routes/api/templates/templates.ts +++ b/server/routes/api/templates/templates.ts @@ -124,9 +124,7 @@ router.post( Template.count({ where }), ]); - const data = await Promise.all( - templates.map((template) => presentTemplate(template)) - ); + const data = templates.map((template) => presentTemplate(template)); const policies = presentPolicies(user, templates); ctx.body = { diff --git a/server/utils/permissions.test.ts b/server/utils/permissions.test.ts index 7e490e05b2..7d3f00df43 100644 --- a/server/utils/permissions.test.ts +++ b/server/utils/permissions.test.ts @@ -49,18 +49,18 @@ describe("permissions", () => { }); const group = await buildGroup(); await Promise.all([ - await buildGroupUser({ + buildGroupUser({ groupId: group.id, userId: user.id, teamId: user.teamId, }), - await UserMembership.create({ + UserMembership.create({ createdById: user.id, documentId: document.id, userId: user.id, permission: DocumentPermission.Read, }), - await GroupMembership.create({ + GroupMembership.create({ createdById: user.id, documentId: document.id, groupId: group.id, @@ -89,18 +89,18 @@ describe("permissions", () => { }); const group = await buildGroup(); await Promise.all([ - await buildGroupUser({ + buildGroupUser({ groupId: group.id, userId: user.id, teamId: user.teamId, }), - await UserMembership.create({ + UserMembership.create({ createdById: user.id, documentId: document.id, userId: user.id, permission: DocumentPermission.Read, }), - await GroupMembership.create({ + GroupMembership.create({ createdById: user.id, documentId: document.id, groupId: group.id, @@ -129,18 +129,18 @@ describe("permissions", () => { }); const group = await buildGroup(); await Promise.all([ - await buildGroupUser({ + buildGroupUser({ groupId: group.id, userId: user.id, teamId: user.teamId, }), - await UserMembership.create({ + UserMembership.create({ createdById: user.id, documentId: document.id, userId: user.id, permission: DocumentPermission.Read, }), - await GroupMembership.create({ + GroupMembership.create({ createdById: user.id, documentId: document.id, groupId: group.id, @@ -216,18 +216,18 @@ describe("permissions", () => { }); const group = await buildGroup(); await Promise.all([ - await buildGroupUser({ + buildGroupUser({ groupId: group.id, userId: user.id, teamId: user.teamId, }), - await UserMembership.create({ + UserMembership.create({ createdById: user.id, documentId: document.id, userId: user.id, permission: DocumentPermission.Read, }), - await GroupMembership.create({ + GroupMembership.create({ createdById: user.id, documentId: document.id, groupId: group.id, @@ -255,18 +255,18 @@ describe("permissions", () => { }); const group = await buildGroup(); const [, , groupMembership] = await Promise.all([ - await buildGroupUser({ + buildGroupUser({ groupId: group.id, userId: user.id, teamId: user.teamId, }), - await UserMembership.create({ + UserMembership.create({ createdById: user.id, documentId: document.id, userId: user.id, permission: DocumentPermission.Read, }), - await GroupMembership.create({ + GroupMembership.create({ createdById: user.id, documentId: document.id, groupId: group.id, diff --git a/shared/editor/lib/markdown/rules.ts b/shared/editor/lib/markdown/rules.ts index 65c1f1cca2..b6ec30936a 100644 --- a/shared/editor/lib/markdown/rules.ts +++ b/shared/editor/lib/markdown/rules.ts @@ -1,10 +1,12 @@ -import type { PluginSimple } from "markdown-it"; -import markdownit from "markdown-it"; +import markdownit, { + type Options as MarkdownItOptions, + type PluginSimple, +} from "markdown-it"; import type { Schema } from "prosemirror-model"; type Options = { /** Markdown-it options. */ - rules?: markdownit.Options; + rules?: MarkdownItOptions; /** Markdown-it plugins. */ plugins?: PluginSimple[]; /** The schema for associated editor. */ diff --git a/shared/editor/marks/Link.tsx b/shared/editor/marks/Link.tsx index 5a6cb5bf18..df9d484e1f 100644 --- a/shared/editor/marks/Link.tsx +++ b/shared/editor/marks/Link.tsx @@ -1,5 +1,5 @@ import { t } from "i18next"; -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { InputRule } from "prosemirror-inputrules"; import type { MarkdownSerializerState } from "prosemirror-markdown"; import type { diff --git a/shared/editor/nodes/Attachment.tsx b/shared/editor/nodes/Attachment.tsx index 91e8d91c2b..dc0c91174e 100644 --- a/shared/editor/nodes/Attachment.tsx +++ b/shared/editor/nodes/Attachment.tsx @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { DownloadIcon } from "outline-icons"; import type { NodeSpec, diff --git a/shared/editor/nodes/CheckboxItem.ts b/shared/editor/nodes/CheckboxItem.ts index 2fbb353096..32402cefda 100644 --- a/shared/editor/nodes/CheckboxItem.ts +++ b/shared/editor/nodes/CheckboxItem.ts @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import type { NodeSpec, Node as ProsemirrorNode, diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index 06bb8eab98..ae99076016 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -1,6 +1,6 @@ import copy from "copy-to-clipboard"; import { t } from "i18next"; -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { textblockTypeInputRule } from "prosemirror-inputrules"; import type { NodeSpec, diff --git a/shared/editor/nodes/Embed.tsx b/shared/editor/nodes/Embed.tsx index 071f03ecd7..85d6f745e1 100644 --- a/shared/editor/nodes/Embed.tsx +++ b/shared/editor/nodes/Embed.tsx @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { Fragment, Slice, diff --git a/shared/editor/nodes/Emoji.tsx b/shared/editor/nodes/Emoji.tsx index 106ff04fac..92651ba366 100644 --- a/shared/editor/nodes/Emoji.tsx +++ b/shared/editor/nodes/Emoji.tsx @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import type { NodeSpec, Node as ProsemirrorNode, diff --git a/shared/editor/nodes/HorizontalRule.ts b/shared/editor/nodes/HorizontalRule.ts index 1028a94494..e72ba415af 100644 --- a/shared/editor/nodes/HorizontalRule.ts +++ b/shared/editor/nodes/HorizontalRule.ts @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { InputRule } from "prosemirror-inputrules"; import type { NodeSpec, diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index a01f85ca20..34c755ec5a 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -1,5 +1,5 @@ import { t } from "i18next"; -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { InputRule } from "prosemirror-inputrules"; import type { Node as ProsemirrorNode, diff --git a/shared/editor/nodes/Mention.tsx b/shared/editor/nodes/Mention.tsx index b311d3c6ef..86b6a11720 100644 --- a/shared/editor/nodes/Mention.tsx +++ b/shared/editor/nodes/Mention.tsx @@ -1,6 +1,6 @@ import { isMatch } from "es-toolkit/compat"; import { sanitizeUrl } from "../../utils/urls"; -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import type { NodeSpec, Node as ProsemirrorNode, diff --git a/shared/editor/nodes/Notice.tsx b/shared/editor/nodes/Notice.tsx index 34e69105c6..58fe9928ed 100644 --- a/shared/editor/nodes/Notice.tsx +++ b/shared/editor/nodes/Notice.tsx @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { WarningIcon, InfoIcon, StarredIcon, DoneIcon } from "outline-icons"; import { wrappingInputRule } from "prosemirror-inputrules"; import type { diff --git a/shared/editor/nodes/OrderedList.ts b/shared/editor/nodes/OrderedList.ts index be4bba749d..2d66be2c5c 100644 --- a/shared/editor/nodes/OrderedList.ts +++ b/shared/editor/nodes/OrderedList.ts @@ -1,4 +1,5 @@ -import type { PluginSimple, Token } from "markdown-it"; +import type { PluginSimple } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import type { NodeSpec, NodeType, diff --git a/shared/editor/nodes/SimpleImage.tsx b/shared/editor/nodes/SimpleImage.tsx index 5f7439fac6..895fc50216 100644 --- a/shared/editor/nodes/SimpleImage.tsx +++ b/shared/editor/nodes/SimpleImage.tsx @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { InputRule } from "prosemirror-inputrules"; import type { Node as ProsemirrorNode, diff --git a/shared/editor/nodes/TableCell.ts b/shared/editor/nodes/TableCell.ts index 6ae90c40cf..2e5370f605 100644 --- a/shared/editor/nodes/TableCell.ts +++ b/shared/editor/nodes/TableCell.ts @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { type Node as ProsemirrorNode, type NodeSpec, diff --git a/shared/editor/nodes/TableHeader.ts b/shared/editor/nodes/TableHeader.ts index 5f7fff9f93..a05383043d 100644 --- a/shared/editor/nodes/TableHeader.ts +++ b/shared/editor/nodes/TableHeader.ts @@ -1,4 +1,4 @@ -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import type { NodeSpec } from "prosemirror-model"; import type { EditorState } from "prosemirror-state"; import { Plugin, PluginKey } from "prosemirror-state"; diff --git a/shared/editor/nodes/Video.tsx b/shared/editor/nodes/Video.tsx index d4f9571636..649d6714eb 100644 --- a/shared/editor/nodes/Video.tsx +++ b/shared/editor/nodes/Video.tsx @@ -1,5 +1,5 @@ import { t } from "i18next"; -import type { Token } from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import type { NodeSpec, NodeType, diff --git a/shared/editor/rules/breaks.ts b/shared/editor/rules/breaks.ts index 418f8ed3ce..f32698b65d 100644 --- a/shared/editor/rules/breaks.ts +++ b/shared/editor/rules/breaks.ts @@ -1,5 +1,5 @@ -import type { Token } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; function isOldHardBreak(token: Token) { return token.type === "text" && token.content === "\\"; diff --git a/shared/editor/rules/checkboxes.ts b/shared/editor/rules/checkboxes.ts index 8901270bc3..b2e08f7060 100644 --- a/shared/editor/rules/checkboxes.ts +++ b/shared/editor/rules/checkboxes.ts @@ -1,5 +1,5 @@ -import type { Token } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; const CHECKBOX_REGEX = /\[(X|\s|_|-)\]\s(.*)?/i; diff --git a/shared/editor/rules/emoji.ts b/shared/editor/rules/emoji.ts index 2ced32e859..682a35b8da 100644 --- a/shared/editor/rules/emoji.ts +++ b/shared/editor/rules/emoji.ts @@ -1,5 +1,5 @@ -import type { StateInline } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type StateInline from "markdown-it/lib/rules_inline/state_inline.mjs"; import { full as emojiPlugin } from "markdown-it-emoji"; import { isUUID } from "validator"; import { nameToEmoji } from "../lib/emoji"; diff --git a/shared/editor/rules/links.ts b/shared/editor/rules/links.ts index 1977fa8777..8dff7b7d87 100644 --- a/shared/editor/rules/links.ts +++ b/shared/editor/rules/links.ts @@ -1,5 +1,5 @@ -import type { Token } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import env from "../../env"; function isParagraph(token: Token) { diff --git a/shared/editor/rules/mark.ts b/shared/editor/rules/mark.ts index 73df67448e..964d3dc4aa 100644 --- a/shared/editor/rules/mark.ts +++ b/shared/editor/rules/mark.ts @@ -1,8 +1,9 @@ // Adapted from: // https://github.com/markdown-it/markdown-it-mark/blob/master/index.js -import type { StateInline } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type StateInline from "markdown-it/lib/rules_inline/state_inline.mjs"; +import type { Delimiter } from "markdown-it/lib/rules_inline/state_inline.mjs"; export default function (options: { delim: string; mark: string }) { const delimCharCode = options.delim.charCodeAt(0); @@ -62,7 +63,7 @@ export default function (options: { delim: string; mark: string }) { // function postProcess( state: StateInline, - delimiters: StateInline.Delimiter[] + delimiters: Delimiter[] ) { let i = 0, j, diff --git a/shared/editor/rules/math.ts b/shared/editor/rules/math.ts index 43a176a801..66d50892d6 100644 --- a/shared/editor/rules/math.ts +++ b/shared/editor/rules/math.ts @@ -1,5 +1,6 @@ -import type { StateBlock, StateInline } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type StateBlock from "markdown-it/lib/rules_block/state_block.mjs"; +import type StateInline from "markdown-it/lib/rules_inline/state_inline.mjs"; export const REGEX_INLINE_MATH_DOLLARS = /\$\$(.+)\$\$$/; diff --git a/shared/editor/rules/mention.ts b/shared/editor/rules/mention.ts index 0f5ef0834f..3d04e5cde5 100644 --- a/shared/editor/rules/mention.ts +++ b/shared/editor/rules/mention.ts @@ -1,5 +1,6 @@ -import type { Token, StateCore } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type StateCore from "markdown-it/lib/rules_core/state_core.mjs"; +import type Token from "markdown-it/lib/token.mjs"; import { v4 as uuidv4 } from "uuid"; import parseMentionUrl from "@shared/utils/parseMentionUrl"; diff --git a/shared/editor/rules/notices.ts b/shared/editor/rules/notices.ts index 1ab75c34c2..7555ea82ab 100644 --- a/shared/editor/rules/notices.ts +++ b/shared/editor/rules/notices.ts @@ -1,5 +1,5 @@ -import type { Token } from "markdown-it"; import type MarkdownIt from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import customFence from "markdown-it-container"; export default function notice(md: MarkdownIt): void { diff --git a/tsconfig.json b/tsconfig.json index 0284bae74d..0384b882dd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,8 @@ "jsx": "react-jsx", "lib": ["dom", "es2020", "dom.iterable", "esnext.asynciterable"], "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", + "resolvePackageJsonExports": false, "noErrorTruncation": true, "noImplicitAny": true, "noImplicitOverride": false, diff --git a/yarn.lock b/yarn.lock index 009de38f62..8834d3fa63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4190,44 +4190,44 @@ __metadata: languageName: node linkType: hard -"@oxlint-tsgolint/darwin-arm64@npm:0.14.2": - version: 0.14.2 - resolution: "@oxlint-tsgolint/darwin-arm64@npm:0.14.2" +"@oxlint-tsgolint/darwin-arm64@npm:0.22.1": + version: 0.22.1 + resolution: "@oxlint-tsgolint/darwin-arm64@npm:0.22.1" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint-tsgolint/darwin-x64@npm:0.14.2": - version: 0.14.2 - resolution: "@oxlint-tsgolint/darwin-x64@npm:0.14.2" +"@oxlint-tsgolint/darwin-x64@npm:0.22.1": + version: 0.22.1 + resolution: "@oxlint-tsgolint/darwin-x64@npm:0.22.1" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint-tsgolint/linux-arm64@npm:0.14.2": - version: 0.14.2 - resolution: "@oxlint-tsgolint/linux-arm64@npm:0.14.2" +"@oxlint-tsgolint/linux-arm64@npm:0.22.1": + version: 0.22.1 + resolution: "@oxlint-tsgolint/linux-arm64@npm:0.22.1" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@oxlint-tsgolint/linux-x64@npm:0.14.2": - version: 0.14.2 - resolution: "@oxlint-tsgolint/linux-x64@npm:0.14.2" +"@oxlint-tsgolint/linux-x64@npm:0.22.1": + version: 0.22.1 + resolution: "@oxlint-tsgolint/linux-x64@npm:0.22.1" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@oxlint-tsgolint/win32-arm64@npm:0.14.2": - version: 0.14.2 - resolution: "@oxlint-tsgolint/win32-arm64@npm:0.14.2" +"@oxlint-tsgolint/win32-arm64@npm:0.22.1": + version: 0.22.1 + resolution: "@oxlint-tsgolint/win32-arm64@npm:0.22.1" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint-tsgolint/win32-x64@npm:0.14.2": - version: 0.14.2 - resolution: "@oxlint-tsgolint/win32-x64@npm:0.14.2" +"@oxlint-tsgolint/win32-x64@npm:0.22.1": + version: 0.22.1 + resolution: "@oxlint-tsgolint/win32-x64@npm:0.22.1" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -15899,7 +15899,7 @@ __metadata: octokit: "npm:^3.2.2" outline-icons: "npm:^4.3.0" oxlint: "npm:1.50.0" - oxlint-tsgolint: "npm:0.14.2" + oxlint-tsgolint: "npm:0.22.1" oy-vey: "npm:^0.12.1" pako: "npm:^2.1.0" passport: "npm:^0.7.0" @@ -16095,16 +16095,16 @@ __metadata: languageName: node linkType: hard -"oxlint-tsgolint@npm:0.14.2": - version: 0.14.2 - resolution: "oxlint-tsgolint@npm:0.14.2" +"oxlint-tsgolint@npm:0.22.1": + version: 0.22.1 + resolution: "oxlint-tsgolint@npm:0.22.1" dependencies: - "@oxlint-tsgolint/darwin-arm64": "npm:0.14.2" - "@oxlint-tsgolint/darwin-x64": "npm:0.14.2" - "@oxlint-tsgolint/linux-arm64": "npm:0.14.2" - "@oxlint-tsgolint/linux-x64": "npm:0.14.2" - "@oxlint-tsgolint/win32-arm64": "npm:0.14.2" - "@oxlint-tsgolint/win32-x64": "npm:0.14.2" + "@oxlint-tsgolint/darwin-arm64": "npm:0.22.1" + "@oxlint-tsgolint/darwin-x64": "npm:0.22.1" + "@oxlint-tsgolint/linux-arm64": "npm:0.22.1" + "@oxlint-tsgolint/linux-x64": "npm:0.22.1" + "@oxlint-tsgolint/win32-arm64": "npm:0.22.1" + "@oxlint-tsgolint/win32-x64": "npm:0.22.1" dependenciesMeta: "@oxlint-tsgolint/darwin-arm64": optional: true @@ -16120,7 +16120,7 @@ __metadata: optional: true bin: tsgolint: bin/tsgolint.js - checksum: 10c0/e228bd7de9614b1cfda73ed47bc4387c77412eb1e81e34751942d4e043af80a28405521e378b7859f897ddc1aa29599ecca1dd778daa38edef1bf714ff991d8f + checksum: 10c0/1f2e3840993e85ebe73f394e7e7441c1482aa4c7da38408c5887e2635be64a577edc887688c8a5232e9f3c8b963fbcecec93036e5fbf2fb863784175e1336aa4 languageName: node linkType: hard From 58f031c7e930d65bac5020f177538532e6738914 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 08:07:08 -0400 Subject: [PATCH 016/286] fix: Crash on misconfigured file storage env (#12325) closes #12323 --- server/storage/files/S3Storage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/storage/files/S3Storage.ts b/server/storage/files/S3Storage.ts index 7b605d49d2..b63bf36a0c 100644 --- a/server/storage/files/S3Storage.ts +++ b/server/storage/files/S3Storage.ts @@ -262,6 +262,10 @@ export default class S3Storage extends BaseStorage { return env.AWS_S3_ACCELERATE_URL; } + if (!env.AWS_S3_UPLOAD_BUCKET_URL) { + return undefined; + } + // support old path-style S3 uploads and new virtual host uploads by // checking for the bucket name in the endpoint url. if (env.AWS_S3_UPLOAD_BUCKET_NAME) { From 871cb52a233d0cbf550800c49f2a8ffd3fd4615d Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 08:15:25 -0400 Subject: [PATCH 017/286] fix: Print includes extra blank page (#12326) closes #12324 --- server/static/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/static/index.html b/server/static/index.html index 2f1df92096..f3efa1469e 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -62,6 +62,12 @@ white-space: nowrap; width: 1px; } + + @media print { + .screenreader-only { + display: none; + } + } </style> </head> From 935e0bb7b9269e6fac6379b4b286d78594033d1c Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 17:30:08 -0400 Subject: [PATCH 018/286] chore: Fix all no-misused-spread lint warnings (#12327) --- app/editor/components/SuggestionsMenu.tsx | 5 +- app/editor/index.tsx | 21 ++--- app/utils/ApiClient.ts | 13 ++- server/models/Document.ts | 5 +- server/models/FileOperation.ts | 14 +-- server/models/Team.ts | 2 +- server/models/base/Model.ts | 6 +- server/models/decorators/CounterCache.ts | 2 +- server/models/validators/Length.ts | 2 +- server/models/validators/TextLength.ts | 2 +- server/utils/fetch.ts | 10 +- shared/editor/lib/ChangesetHelper.ts | 5 +- shared/editor/lib/ExtensionManager.ts | 109 ++++++++++------------ 13 files changed, 94 insertions(+), 102 deletions(-) diff --git a/app/editor/components/SuggestionsMenu.tsx b/app/editor/components/SuggestionsMenu.tsx index e45d90b811..ecea2e8da5 100644 --- a/app/editor/components/SuggestionsMenu.tsx +++ b/app/editor/components/SuggestionsMenu.tsx @@ -407,10 +407,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { for (const embed of embeds) { if (embed.title && embed.visible !== false && !embed.disabled) { embedItems.push( - new EmbedDescriptor({ - ...embed, - name: "embed", - }) + new EmbedDescriptor(Object.assign({}, embed, { name: "embed" })) ); } } diff --git a/app/editor/index.tsx b/app/editor/index.tsx index 330c9fa93b..0e9e7d39b8 100644 --- a/app/editor/index.tsx +++ b/app/editor/index.tsx @@ -223,7 +223,7 @@ export class Editor extends React.PureComponent< [name: string]: NodeViewConstructor; }; - widgets: { [name: string]: (props: WidgetProps) => React.ReactElement }; + widgets: { [name: string]: React.FC<WidgetProps> }; renderers = observable.set<NodeViewRenderer<ComponentProps>>(); nodes: { [name: string]: NodeSpec }; marks: { [name: string]: MarkSpec }; @@ -367,13 +367,13 @@ export class Editor extends React.PureComponent< }); } - private createNodeViews() { - return this.extensions.extensions - .filter((extension: ReactNode) => extension.component) - .reduce( - (nodeViews, extension: ReactNode) => ({ - ...nodeViews, - [extension.name]: ( + private createNodeViews(): { [name: string]: NodeViewConstructor } { + return Object.fromEntries( + this.extensions.extensions + .filter((extension: ReactNode) => extension.component) + .map((extension: ReactNode) => [ + extension.name, + ( node: ProsemirrorNode, view: EditorView, getPos: () => number, @@ -387,9 +387,8 @@ export class Editor extends React.PureComponent< getPos, decorations, }), - }), - {} - ); + ]) + ) as { [name: string]: NodeViewConstructor }; } private createCommands() { diff --git a/app/utils/ApiClient.ts b/app/utils/ApiClient.ts index e71f42adf9..6da3166be1 100644 --- a/app/utils/ApiClient.ts +++ b/app/utils/ApiClient.ts @@ -71,11 +71,14 @@ class ApiClient { let isJson; if (this.shareId) { - // add to data - data = { - ...(data || {}), - shareId: this.shareId, - }; + if (data instanceof FormData) { + data.append("shareId", this.shareId); + } else { + data = { + ...(data || {}), + shareId: this.shareId, + }; + } } if (method === "GET") { diff --git a/server/models/Document.ts b/server/models/Document.ts index 2b4c8d995a..eac22c4a05 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -941,10 +941,7 @@ class Document extends ArchivableModel< collaborators = async (options?: FindOptions<User>): Promise<User[]> => await User.findAll({ ...options, - where: { - ...options?.where, - id: this.collaboratorIds, - }, + where: Object.assign({}, options?.where, { id: this.collaboratorIds }), }); /** diff --git a/server/models/FileOperation.ts b/server/models/FileOperation.ts index 1431143092..101df621c7 100644 --- a/server/models/FileOperation.ts +++ b/server/models/FileOperation.ts @@ -168,13 +168,15 @@ class FileOperation extends ParanoidModel< where: WhereOptions<FileOperation> = {} ): Promise<number> { return this.count({ - where: { - teamId, - createdAt: { - [Op.gt]: startDate, + where: Object.assign( + { + teamId, + createdAt: { + [Op.gt]: startDate, + }, }, - ...where, - }, + where + ), }); } diff --git a/server/models/Team.ts b/server/models/Team.ts index cb1fb192e1..6733ce0024 100644 --- a/server/models/Team.ts +++ b/server/models/Team.ts @@ -560,7 +560,7 @@ class Team extends ParanoidModel< return this.findOne({ ...options, - where: { ...options?.where, domain: normalized }, + where: Object.assign({}, options?.where, { domain: normalized }), }); } diff --git a/server/models/base/Model.ts b/server/models/base/Model.ts index 8408198a09..8493c52579 100644 --- a/server/models/base/Model.ts +++ b/server/models/base/Model.ts @@ -158,7 +158,11 @@ class Model< // Record not found, try to create it try { const created = await this.create( - { ...options.defaults, ...options.where } as CreationAttributes<M>, + Object.assign( + {}, + options.defaults, + options.where + ) as CreationAttributes<M>, { ...hookContext, transaction } ); return [created as M, true]; diff --git a/server/models/decorators/CounterCache.ts b/server/models/decorators/CounterCache.ts index 22314ce285..40ede25735 100644 --- a/server/models/decorators/CounterCache.ts +++ b/server/models/decorators/CounterCache.ts @@ -42,7 +42,7 @@ export function CounterCache< const computeCount = (id: unknown) => modelClass.count({ - where: { [options.foreignKey]: id, ...(options.where ?? {}) }, + where: Object.assign({ [options.foreignKey]: id }, options.where), include: options.include, distinct: !!options.include, }); diff --git a/server/models/validators/Length.ts b/server/models/validators/Length.ts index b8f906bfe1..78835f5d91 100644 --- a/server/models/validators/Length.ts +++ b/server/models/validators/Length.ts @@ -17,7 +17,7 @@ export default function Length({ addAttributeOptions(target, propertyName, { validate: { validLength(value: string | null | undefined) { - const length = value ? [...value].length : 0; + const length = value ? Array.from(value).length : 0; if (length > max || length < min) { throw new Error(msg); } diff --git a/server/models/validators/TextLength.ts b/server/models/validators/TextLength.ts index 91c1252224..529eb8607b 100644 --- a/server/models/validators/TextLength.ts +++ b/server/models/validators/TextLength.ts @@ -29,7 +29,7 @@ export default function TextLength({ throw new Error("Invalid data"); } - const length = text ? [...text].length : 0; + const length = text ? Array.from(text).length : 0; if (length > max || length < min) { throw new Error(msg); } diff --git a/server/utils/fetch.ts b/server/utils/fetch.ts index 8be7ba9e09..c6fc3f95d2 100644 --- a/server/utils/fetch.ts +++ b/server/utils/fetch.ts @@ -158,12 +158,14 @@ export default async function fetch( ); } + const headers = new Headers({ "User-Agent": outlineUserAgent }); + new Headers(rest?.headers).forEach((value, key) => { + headers.set(key, value); + }); + const response = await nodeFetch(url, { ...rest, - headers: { - "User-Agent": outlineUserAgent, - ...rest?.headers, - }, + headers, signal, agent: buildAgent(url, { signal, allowPrivateIPAddress }), }); diff --git a/shared/editor/lib/ChangesetHelper.ts b/shared/editor/lib/ChangesetHelper.ts index 7fbb72ade7..644b25c788 100644 --- a/shared/editor/lib/ChangesetHelper.ts +++ b/shared/editor/lib/ChangesetHelper.ts @@ -255,8 +255,7 @@ export class ChangesetHelper { } } - return { - ...change, + return Object.assign({}, change, { deleted: change.deleted.filter( (_, index) => !matchedDeletionIndices.has(index) ), @@ -264,7 +263,7 @@ export class ChangesetHelper { (_, index) => !matchedInsertionIndices.has(index) ), modified, - }; + }); }); return { diff --git a/shared/editor/lib/ExtensionManager.ts b/shared/editor/lib/ExtensionManager.ts index a58bad09be..28172b71fd 100644 --- a/shared/editor/lib/ExtensionManager.ts +++ b/shared/editor/lib/ExtensionManager.ts @@ -62,28 +62,25 @@ export default class ExtensionManager { } get widgets() { - return this.extensions - .filter((extension) => extension.widget({ rtl: false, readOnly: false })) - .reduce( - (memo, node: Node) => ({ - ...memo, - [node.name]: observer(((props: WidgetProps) => + return Object.fromEntries( + this.extensions + .filter((extension) => + extension.widget({ rtl: false, readOnly: false }) + ) + .map((node: Node) => [ + node.name, + observer(((props: WidgetProps) => node.widget(props)) as React.FC<WidgetProps>), - }), - {} - ); + ]) + ); } get nodes() { - const nodes: Record<string, NodeSpec> = this.extensions - .filter((extension) => extension.type === "node") - .reduce( - (memo, node: Node) => ({ - ...memo, - [node.name]: node.schema, - }), - {} - ); + const nodes: Record<string, NodeSpec> = Object.fromEntries( + this.extensions + .filter((extension) => extension.type === "node") + .map((node: Node) => [node.name, node.schema]) + ); for (const i in nodes) { const { marks } = nodes[i]; @@ -101,15 +98,11 @@ export default class ExtensionManager { } get marks() { - const marks: Record<string, MarkSpec> = this.extensions - .filter((extension) => extension.type === "mark") - .reduce( - (memo, mark: Mark) => ({ - ...memo, - [mark.name]: mark.schema, - }), - {} - ); + const marks: Record<string, MarkSpec> = Object.fromEntries( + this.extensions + .filter((extension) => extension.type === "mark") + .map((mark: Mark) => [mark.name, mark.schema]) + ); for (const i in marks) { const { excludes } = marks[i]; @@ -127,27 +120,25 @@ export default class ExtensionManager { } serializer() { - const nodes = this.extensions - .filter((extension) => extension.type === "node") - .reduce( - (memo, extension: Node) => ({ - ...memo, - [extension.name]: (...args: Parameters<Node["toMarkdown"]>) => + const nodes = Object.fromEntries( + this.extensions + .filter((extension) => extension.type === "node") + .map((extension: Node) => [ + extension.name, + (...args: Parameters<Node["toMarkdown"]>) => extension.toMarkdown(...args), - }), - {} - ); + ]) + ); - const marks = this.extensions - .filter((extension) => extension.type === "mark") - .reduce( - (memo, extension: Mark) => ({ - ...memo, - [extension.name]: (...args: Parameters<Mark["toMarkdown"]>) => + const marks = Object.fromEntries( + this.extensions + .filter((extension) => extension.type === "mark") + .map((extension: Mark) => [ + extension.name, + (...args: Parameters<Mark["toMarkdown"]>) => extension.toMarkdown(...args), - }), - {} - ); + ]) + ); return new MarkdownSerializer(nodes, marks); } @@ -161,21 +152,19 @@ export default class ExtensionManager { rules?: Options; plugins?: PluginSimple[]; }): MarkdownParser { - const tokens = this.extensions - .filter( - (extension) => extension.type === "mark" || extension.type === "node" - ) - .reduce((nodes, extension: Node | Mark) => { - const parseSpec = extension.parseMarkdown(); - if (!parseSpec) { - return nodes; - } - - return { - ...nodes, - [extension.markdownToken || extension.name]: parseSpec, - }; - }, {}); + const tokens = Object.fromEntries( + this.extensions + .filter( + (extension) => extension.type === "mark" || extension.type === "node" + ) + .flatMap((extension: Node | Mark) => { + const parseSpec = extension.parseMarkdown(); + if (!parseSpec) { + return []; + } + return [[extension.markdownToken || extension.name, parseSpec]]; + }) + ); return new MarkdownParser( schema, From 42a0958322c285f1ab63fc1cb7a9cc36c732c4ea Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 20:03:54 -0400 Subject: [PATCH 019/286] test: Fix flaky comments.list ordering assertion (#12329) Two comments built back-to-back could share a millisecond-precision createdAt, leaving the DESC-ordered result non-deterministic. Pass explicit createdAt values so the assertion on body.data[1] is stable. --- server/routes/api/comments/comments.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/routes/api/comments/comments.test.ts b/server/routes/api/comments/comments.test.ts index 18082c80a0..692cb17b76 100644 --- a/server/routes/api/comments/comments.test.ts +++ b/server/routes/api/comments/comments.test.ts @@ -187,10 +187,12 @@ describe("#comments.list", () => { const comment = await buildComment({ userId: user.id, documentId: document.id, + createdAt: new Date(Date.now() - 1000), }); await buildResolvedComment(user, { userId: user.id, documentId: document.id, + createdAt: new Date(), }); const res = await server.post("/api/comments.list", { body: { From 6bd775eb841543580975ff8ee99f6948a812a274 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 20:31:12 -0400 Subject: [PATCH 020/286] fix: Batch document deletes when emptying trash (#12328) * fix: Batch document deletes when emptying trash Splits the final parentDocumentId clear and destroy in documentPermanentDeleter into chunks of 100 to keep the exclusive lock window on the documents table short, preventing concurrent web SELECTs from queueing behind a single large DELETE. * fix: Skip parentDocumentId clear for documents restored mid-flight Re-checks deletedAt in the database before clearing parentDocumentId on children, so a parent restored between the caller's query and now keeps its children attached. --- .../commands/documentPermanentDeleter.test.ts | 21 +++++++ server/commands/documentPermanentDeleter.ts | 60 +++++++++++++------ 2 files changed, 64 insertions(+), 17 deletions(-) diff --git a/server/commands/documentPermanentDeleter.test.ts b/server/commands/documentPermanentDeleter.test.ts index 08eb7166bf..eaa13ccb3a 100644 --- a/server/commands/documentPermanentDeleter.test.ts +++ b/server/commands/documentPermanentDeleter.test.ts @@ -132,6 +132,27 @@ describe("documentPermanentDeleter", () => { ).toEqual(1); }); + it("should not detach children of a document restored between query and destroy", async () => { + const parent = await buildDocument({ + publishedAt: subDays(new Date(), 90), + deletedAt: subDays(new Date(), 60), + }); + const child = await buildDocument({ + teamId: parent.teamId, + parentDocumentId: parent.id, + }); + + await Document.unscoped().update( + { deletedAt: null }, + { where: { id: parent.id }, paranoid: false } + ); + + await documentPermanentDeleter([parent]); + + await child.reload(); + expect(child.parentDocumentId).toEqual(parent.id); + }); + it("should not destroy attachments referenced in other documents", async () => { const document1 = await buildDocument(); const document = await buildDocument({ diff --git a/server/commands/documentPermanentDeleter.ts b/server/commands/documentPermanentDeleter.ts index b136716391..4e090f14ad 100644 --- a/server/commands/documentPermanentDeleter.ts +++ b/server/commands/documentPermanentDeleter.ts @@ -1,4 +1,4 @@ -import { uniq } from "es-toolkit/compat"; +import { chunk, uniq } from "es-toolkit/compat"; import { Op, QueryTypes } from "sequelize"; import Logger from "@server/logging/Logger"; import { Document, Attachment } from "@server/models"; @@ -76,26 +76,52 @@ export default async function documentPermanentDeleter(documents: Document[]) { ); } - const documentIds = documents.map((document) => document.id); - await Document.update( - { - parentDocumentId: null, - }, - { - where: { - parentDocumentId: { - [Op.in]: documentIds, - }, - }, - paranoid: false, - } - ); + // Number of documents to delete per database statement. Keeps the exclusive + // lock window short enough to avoid blocking concurrent web requests that + // read from the documents table. + const BATCH_SIZE = 100; - return Document.scope("withDrafts").destroy({ + const documentIds = documents.map((document) => document.id); + + // Re-check deletedAt in the database to exclude documents that were restored + // between the caller's query and now. Otherwise the parentDocumentId clear + // below would detach children of a restored parent, breaking the hierarchy. + const stillDeleted = await Document.unscoped().findAll({ + attributes: ["id"], where: { id: documentIds, deletedAt: { [Op.ne]: null }, }, - force: true, + paranoid: false, }); + const deletedIds = stillDeleted.map((document) => document.id); + const batches = chunk(deletedIds, BATCH_SIZE); + + for (const batch of batches) { + await Document.update( + { + parentDocumentId: null, + }, + { + where: { + parentDocumentId: { + [Op.in]: batch, + }, + }, + paranoid: false, + } + ); + } + + let totalDeleted = 0; + for (const batch of batches) { + totalDeleted += await Document.scope("withDrafts").destroy({ + where: { + id: batch, + deletedAt: { [Op.ne]: null }, + }, + force: true, + }); + } + return totalDeleted; } From 6e99dff3c2471363da1356075774aee19d303f90 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 21:22:20 -0400 Subject: [PATCH 021/286] chore: Upgrade Mermaid (#12331) --- package.json | 2 +- yarn.lock | 163 ++++++++------------------------------------------- 2 files changed, 26 insertions(+), 139 deletions(-) diff --git a/package.json b/package.json index 06baf21e68..e82aa4ee10 100644 --- a/package.json +++ b/package.json @@ -170,7 +170,7 @@ "markdown-it": "^14.1.1", "markdown-it-container": "^3.0.0", "markdown-it-emoji": "^3.0.0", - "mermaid": "11.13.0", + "mermaid": "11.15.0", "mime-types": "^3.0.2", "mobx": "^4.15.7", "mobx-react": "^6.3.1", diff --git a/yarn.lock b/yarn.lock index 8834d3fa63..1185754b04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2149,48 +2149,13 @@ __metadata: languageName: node linkType: hard -"@chevrotain/cst-dts-gen@npm:11.1.2": - version: 11.1.2 - resolution: "@chevrotain/cst-dts-gen@npm:11.1.2" - dependencies: - "@chevrotain/gast": "npm:11.1.2" - "@chevrotain/types": "npm:11.1.2" - lodash-es: "npm:4.17.23" - checksum: 10c0/372a9573a404a1d717c92875024588a53d1eb078f12d2cd1d79d9c2c888c9b429eb62bbc85501b8ff168c14b22a675da99d97bb39b0a774e9fee000dc60fd8ff - languageName: node - linkType: hard - -"@chevrotain/gast@npm:11.1.2": - version: 11.1.2 - resolution: "@chevrotain/gast@npm:11.1.2" - dependencies: - "@chevrotain/types": "npm:11.1.2" - lodash-es: "npm:4.17.23" - checksum: 10c0/540bfc9270d752f398b29efe9c89bb907d2984a47db4308a943e50c1cbd261ee13ecbef15c0e07808cf476d835bc36e65854db0bd214c277296cc14013eca8f4 - languageName: node - linkType: hard - -"@chevrotain/regexp-to-ast@npm:11.1.2": - version: 11.1.2 - resolution: "@chevrotain/regexp-to-ast@npm:11.1.2" - checksum: 10c0/645f02ac94cb33e04c10547b197762c6936c7b7668966240684795ce131cb515a76b63e0cc500e787d669f1a36bd2f902ec518f27843ec857ecf9043c717527e - languageName: node - linkType: hard - -"@chevrotain/types@npm:11.1.2": +"@chevrotain/types@npm:~11.1.1": version: 11.1.2 resolution: "@chevrotain/types@npm:11.1.2" checksum: 10c0/c0c4679a3d407df34e18d5adfa7ac599b4a2bfddbf68da6e43678b9b3e16ab911de7766b37b9fc466261c3dead3db1b620e2e344f800fa9f0f381720475eda8f languageName: node linkType: hard -"@chevrotain/utils@npm:11.1.2": - version: 11.1.2 - resolution: "@chevrotain/utils@npm:11.1.2" - checksum: 10c0/72989e7051781b9084252486712844c55e3b454318c7da4a5f6ded28dcd3947ba2882773a6bf09b7e744599e8c8025df8d3de0d487121734e6edb66999450438 - languageName: node - linkType: hard - "@colors/colors@npm:1.6.0, @colors/colors@npm:^1.6.0": version: 1.6.0 resolution: "@colors/colors@npm:1.6.0" @@ -3349,12 +3314,12 @@ __metadata: languageName: node linkType: hard -"@mermaid-js/parser@npm:^1.0.1": - version: 1.0.1 - resolution: "@mermaid-js/parser@npm:1.0.1" +"@mermaid-js/parser@npm:^1.1.1": + version: 1.1.1 + resolution: "@mermaid-js/parser@npm:1.1.1" dependencies: - langium: "npm:^4.0.0" - checksum: 10c0/34231cb63412ddbb3c8c6dba6366b958f98b66293b2e5748d3bd6c286acde47862a6ac86b2f6a33e7b5dee6a1895035af06ee48863c787bc20415b89fe77d705 + "@chevrotain/types": "npm:~11.1.1" + checksum: 10c0/66414d9d66f3a86a6751427cb8890a00beaaee2b7eba34c21b34b60cdaf9237d21e9b50b9bf1f560a01a600ee332d33b949fd8f12cbda3238aba50edc0dfdf15 languageName: node linkType: hard @@ -9283,31 +9248,6 @@ __metadata: languageName: node linkType: hard -"chevrotain-allstar@npm:~0.3.1": - version: 0.3.1 - resolution: "chevrotain-allstar@npm:0.3.1" - dependencies: - lodash-es: "npm:^4.17.21" - peerDependencies: - chevrotain: ^11.0.0 - checksum: 10c0/5cadedffd3114eb06b15fd3939bb1aa6c75412dbd737fe302b52c5c24334f9cb01cee8edc1d1067d98ba80dddf971f1d0e94b387de51423fc6cf3c5d8b7ef27a - languageName: node - linkType: hard - -"chevrotain@npm:~11.1.1": - version: 11.1.2 - resolution: "chevrotain@npm:11.1.2" - dependencies: - "@chevrotain/cst-dts-gen": "npm:11.1.2" - "@chevrotain/gast": "npm:11.1.2" - "@chevrotain/regexp-to-ast": "npm:11.1.2" - "@chevrotain/types": "npm:11.1.2" - "@chevrotain/utils": "npm:11.1.2" - lodash-es: "npm:4.17.23" - checksum: 10c0/7f0b5780035c582d4c620c81e1fbb58c9f41a69f1c7efdae96819c7bc0928ddb4f046bb8239e71539f383b3b8ce460bd11f44b5fb5107e1d45a0cc91bd6a4198 - languageName: node - linkType: hard - "chokidar@npm:^3.5.2, chokidar@npm:^3.6.0": version: 3.6.0 resolution: "chokidar@npm:3.6.0" @@ -11199,7 +11139,7 @@ __metadata: languageName: node linkType: hard -"es-toolkit@npm:^1.46.1": +"es-toolkit@npm:^1.45.1, es-toolkit@npm:^1.46.1": version: 1.46.1 resolution: "es-toolkit@npm:1.46.1" dependenciesMeta: @@ -14031,19 +13971,6 @@ __metadata: languageName: node linkType: hard -"langium@npm:^4.0.0": - version: 4.2.1 - resolution: "langium@npm:4.2.1" - dependencies: - chevrotain: "npm:~11.1.1" - chevrotain-allstar: "npm:~0.3.1" - vscode-languageserver: "npm:~9.0.1" - vscode-languageserver-textdocument: "npm:~1.0.11" - vscode-uri: "npm:~3.1.0" - checksum: 10c0/19ddf79cc3c435ec70f8eb50de255571711db7cea89d171cf80bc97e7ed73d4d0bb6b4215899df8369fa6d0e17f442f30af4ec2e9657041bf2f93be1310ba50a - languageName: node - linkType: hard - "layout-base@npm:^1.0.0": version: 1.0.2 resolution: "layout-base@npm:1.0.2" @@ -14361,7 +14288,7 @@ __metadata: languageName: node linkType: hard -"lodash-es@npm:^4.17.21, lodash-es@npm:^4.17.23, lodash-es@npm:^4.18.1": +"lodash-es@npm:^4.17.21": version: 4.18.1 resolution: "lodash-es@npm:4.18.1" checksum: 10c0/35d4dcf87ef07f8d090f409447575800108057e360b445f590d0d25d09e3d1e33a163d2fc100d4d072b0f901d5e2fc533cd7c4bfd8eeb38a06abec693823c8b8 @@ -14800,13 +14727,13 @@ __metadata: languageName: node linkType: hard -"mermaid@npm:11.13.0": - version: 11.13.0 - resolution: "mermaid@npm:11.13.0" +"mermaid@npm:11.15.0": + version: 11.15.0 + resolution: "mermaid@npm:11.15.0" dependencies: "@braintree/sanitize-url": "npm:^7.1.1" "@iconify/utils": "npm:^3.0.2" - "@mermaid-js/parser": "npm:^1.0.1" + "@mermaid-js/parser": "npm:^1.1.1" "@types/d3": "npm:^7.4.3" "@upsetjs/venn.js": "npm:^2.0.0" cytoscape: "npm:^3.33.1" @@ -14817,15 +14744,15 @@ __metadata: dagre-d3-es: "npm:7.0.14" dayjs: "npm:^1.11.19" dompurify: "npm:^3.3.1" + es-toolkit: "npm:^1.45.1" katex: "npm:^0.16.25" khroma: "npm:^2.1.0" - lodash-es: "npm:^4.17.23" marked: "npm:^16.3.0" roughjs: "npm:^4.6.6" stylis: "npm:^4.3.6" ts-dedent: "npm:^2.2.0" - uuid: "npm:^11.1.0" - checksum: 10c0/9d908314d26cdb23d8fbb6a1183f3dc48440efa2cf25f31fd5f75ef3f72e973ef7c3b77768eb8399898035366d2b4a3a2bf0a0de9e35757848754935bf1288c0 + uuid: "npm:^11.1.0 || ^12 || ^13 || ^14.0.0" + checksum: 10c0/9085b47c30b66a1e94e07c93951d9e53e5c89ec8c9fff8814233bddeecf6b8eaf9036d3168e4d1360c3f5d07cd051c666da96860eb0f22f064bd749499a0c83f languageName: node linkType: hard @@ -15886,7 +15813,7 @@ __metadata: markdown-it: "npm:^14.1.1" markdown-it-container: "npm:^3.0.0" markdown-it-emoji: "npm:^3.0.0" - mermaid: "npm:11.13.0" + mermaid: "npm:11.15.0" mime-types: "npm:^3.0.2" mobx: "npm:^4.15.7" mobx-react: "npm:^6.3.1" @@ -20379,6 +20306,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^11.1.0 || ^12 || ^13 || ^14.0.0": + version: 14.0.0 + resolution: "uuid@npm:14.0.0" + bin: + uuid: dist-node/bin/uuid + checksum: 10c0/a57ae7794c45005c1a9208989196c5baf79a7679c30f43c1bee9033a2c4d113a2cea216fa6fcc9663b08b0d55635df1a7c6eb7e7f3d21c3e50688c698fa39a50 + languageName: node + linkType: hard + "uuid@npm:^8.3.0, uuid@npm:^8.3.2": version: 8.3.2 resolution: "uuid@npm:8.3.2" @@ -20727,55 +20663,6 @@ __metadata: languageName: node linkType: hard -"vscode-jsonrpc@npm:8.2.0": - version: 8.2.0 - resolution: "vscode-jsonrpc@npm:8.2.0" - checksum: 10c0/0789c227057a844f5ead55c84679206227a639b9fb76e881185053abc4e9848aa487245966cc2393fcb342c4541241b015a1a2559fddd20ac1e68945c95344e6 - languageName: node - linkType: hard - -"vscode-languageserver-protocol@npm:3.17.5": - version: 3.17.5 - resolution: "vscode-languageserver-protocol@npm:3.17.5" - dependencies: - vscode-jsonrpc: "npm:8.2.0" - vscode-languageserver-types: "npm:3.17.5" - checksum: 10c0/5f38fd80da9868d706eaa4a025f4aff9c3faad34646bcde1426f915cbd8d7e8b6c3755ce3fef6eebd256ba3145426af1085305f8a76e34276d2e95aaf339a90b - languageName: node - linkType: hard - -"vscode-languageserver-textdocument@npm:~1.0.11": - version: 1.0.12 - resolution: "vscode-languageserver-textdocument@npm:1.0.12" - checksum: 10c0/534349894b059602c4d97615a1147b6c4c031141c2093e59657f54e38570f5989c21b376836f13b9375419869242e9efb4066643208b21ab1e1dee111a0f00fb - languageName: node - linkType: hard - -"vscode-languageserver-types@npm:3.17.5": - version: 3.17.5 - resolution: "vscode-languageserver-types@npm:3.17.5" - checksum: 10c0/1e1260de79a2cc8de3e46f2e0182cdc94a7eddab487db5a3bd4ee716f67728e685852707d72c059721ce500447be9a46764a04f0611e94e4321ffa088eef36f8 - languageName: node - linkType: hard - -"vscode-languageserver@npm:~9.0.1": - version: 9.0.1 - resolution: "vscode-languageserver@npm:9.0.1" - dependencies: - vscode-languageserver-protocol: "npm:3.17.5" - bin: - installServerIntoExtension: bin/installServerIntoExtension - checksum: 10c0/8a0838d77c98a211c76e54bd3a6249fc877e4e1a73322673fb0e921168d8e91de4f170f1d4ff7e8b6289d0698207afc6aba6662d4c1cd8e4bd7cae96afd6b0c2 - languageName: node - linkType: hard - -"vscode-uri@npm:~3.1.0": - version: 3.1.0 - resolution: "vscode-uri@npm:3.1.0" - checksum: 10c0/5f6c9c10fd9b1664d71fab4e9fbbae6be93c7f75bb3a1d9d74399a88ab8649e99691223fd7cef4644376cac6e94fa2c086d802521b9a8e31c5af3e60f0f35624 - languageName: node - linkType: hard - "w3c-keyname@npm:^2.2.0": version: 2.2.8 resolution: "w3c-keyname@npm:2.2.8" From 925a43bd36d9f9a39e3df6a5fc18875f77f6bd18 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 21:22:38 -0400 Subject: [PATCH 022/286] feat: Inline comment support (#12322) * feat: Inline comment support * fix: wrap inline comment mark and creation in transaction with row lock * fix: lock document row when anchoring, error on failed anchor, use uuid import --- .../models/helpers/ProseMirrorHelper.test.ts | 470 ++++++++++++++++++ server/models/helpers/ProsemirrorHelper.tsx | 244 ++++++++- server/routes/api/comments/comments.ts | 48 +- server/routes/api/comments/schema.ts | 26 +- server/tools/comments.ts | 93 +++- 5 files changed, 861 insertions(+), 20 deletions(-) diff --git a/server/models/helpers/ProseMirrorHelper.test.ts b/server/models/helpers/ProseMirrorHelper.test.ts index feeb3fc96a..445f56c6e2 100644 --- a/server/models/helpers/ProseMirrorHelper.test.ts +++ b/server/models/helpers/ProseMirrorHelper.test.ts @@ -1,8 +1,12 @@ import { faker } from "@faker-js/faker"; +import { Node } from "prosemirror-model"; import type { DeepPartial } from "utility-types"; +import { prosemirrorToYDoc, yDocToProsemirrorJSON } from "y-prosemirror"; +import * as Y from "yjs"; import type { ProsemirrorData } from "@shared/types"; import { MentionType } from "@shared/types"; import { createContext } from "@server/context"; +import { schema } from "@server/editor"; import { buildProseMirrorDoc, buildUser } from "@server/test/factories"; import type { MentionAttrs } from "./ProsemirrorHelper"; import { ProsemirrorHelper } from "./ProsemirrorHelper"; @@ -1097,4 +1101,470 @@ describe("ProsemirrorHelper", () => { expect(result.toJSON()).toEqual(doc.toJSON()); }); }); + + describe("#applyCommentMarkByText", () => { + const buildDocState = (content: object[]) => { + const doc = Node.fromJSON(schema, { type: "doc", content }); + const ydoc = prosemirrorToYDoc(doc, "default"); + return Y.encodeStateAsUpdate(ydoc); + }; + + const getCommentMarks = (result: Uint8Array) => { + const ydoc = new Y.Doc(); + Y.applyUpdate(ydoc, result); + const doc = Node.fromJSON(schema, yDocToProsemirrorJSON(ydoc, "default")); + + const marks: { id: string; text: string }[] = []; + doc.descendants((node) => { + if (node.isText) { + const m = node.marks.find((mark) => mark.type.name === "comment"); + if (m) { + marks.push({ id: m.attrs.id, text: node.text ?? "" }); + } + } + return true; + }); + return marks; + }; + + it("anchors a comment to a substring within a single paragraph", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "The quick brown fox jumps" }], + }, + ]); + + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "brown fox", + commentId: "comment-1", + userId: "user-1", + }); + + expect(result).toBeInstanceOf(Uint8Array); + const marks = getCommentMarks(result!); + expect(marks).toHaveLength(1); + expect(marks[0]).toEqual({ id: "comment-1", text: "brown fox" }); + }); + + it("anchors a comment to text spanning multiple top-level blocks", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "first paragraph" }], + }, + { + type: "paragraph", + content: [{ type: "text", text: "second paragraph" }], + }, + ]); + + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "paragraph\nsecond", + commentId: "comment-1", + userId: "user-1", + }); + + expect(result).toBeInstanceOf(Uint8Array); + const marks = getCommentMarks(result!); + expect(marks.map((m) => m.text)).toEqual(["paragraph", "second"]); + expect(marks.every((m) => m.id === "comment-1")).toBe(true); + }); + + it("matches anchorText that crosses a leaf node's leafText (e.g. a mention)", () => { + // Mention nodes are atoms whose plain-text content comes from + // spec.leafText — for a User mention this is "@<label>". Without + // textBetween's leaf handling the mention would be invisible to the + // matcher, so a span like "Hello @Alice, how" would not be found. + // The mention itself disallows marks (schema marks: "") so the + // comment mark only attaches to the surrounding text — but the + // search must still resolve and the surrounding marks must apply. + const docState = buildDocState([ + { + type: "paragraph", + content: [ + { type: "text", text: "Hello " }, + { + type: "mention", + attrs: { + type: MentionType.User, + label: "Alice", + modelId: "00000000-0000-0000-0000-000000000001", + id: "00000000-0000-0000-0000-000000000002", + }, + }, + { type: "text", text: ", how are you?" }, + ], + }, + ]); + + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "Hello @Alice, how", + commentId: "comment-1", + userId: "user-1", + }); + + expect(result).toBeInstanceOf(Uint8Array); + + const marks = getCommentMarks(result!); + // Both text nodes flanking the mention should carry the comment mark, + // confirming the resolved range spans the leaf atom. + expect(marks.map((m) => m.text)).toEqual(["Hello ", ", how"]); + expect(marks.every((m) => m.id === "comment-1")).toBe(true); + }); + + it("throws when leaf text is not enabled (sanity check that the mention's leafText is visible to the matcher)", () => { + // Searching for the bare mention text "@Alice" should now succeed + // (it does not throw "not found"), proving textBetween surfaces the + // mention's leafText into the search corpus. + const docState = buildDocState([ + { + type: "paragraph", + content: [ + { type: "text", text: "before " }, + { + type: "mention", + attrs: { + type: MentionType.User, + label: "Alice", + modelId: "00000000-0000-0000-0000-000000000003", + id: "00000000-0000-0000-0000-000000000004", + }, + }, + { type: "text", text: " after" }, + ], + }, + ]); + + expect(() => + ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "@Alice", + commentId: "comment-1", + userId: "user-1", + }) + ).not.toThrow(); + }); + + it("matches across inline marks (plain text ignores formatting)", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [ + { type: "text", text: "the " }, + { + type: "text", + marks: [{ type: "strong" }], + text: "brown", + }, + { type: "text", text: " fox" }, + ], + }, + ]); + + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "the brown fox", + commentId: "comment-1", + userId: "user-1", + }); + + expect(result).toBeInstanceOf(Uint8Array); + const marks = getCommentMarks(result!); + expect(marks.map((m) => m.text).join("")).toBe("the brown fox"); + expect(marks.every((m) => m.id === "comment-1")).toBe(true); + }); + + it("throws ValidationError when anchorText is not found", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "hello world" }], + }, + ]); + + expect(() => + ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "nonexistent", + commentId: "comment-1", + userId: "user-1", + }) + ).toThrow(/not found/); + }); + + describe("with anchorPrefix and anchorSuffix", () => { + const fox = [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "the quick brown fox jumps over the lazy fox", + }, + ], + }, + ]; + + const findMarkedRange = (result: Uint8Array) => { + const ydoc = new Y.Doc(); + Y.applyUpdate(ydoc, result); + const doc = Node.fromJSON( + schema, + yDocToProsemirrorJSON(ydoc, "default") + ); + + // Concatenate the doc's plain text and locate the comment-marked + // span by scanning for marked text nodes. Returns the [start, end] + // offsets in the plain text. + let plain = ""; + let start = -1; + let end = -1; + doc.descendants((node) => { + if (node.isText) { + const len = (node.text ?? "").length; + const marked = node.marks.some((m) => m.type.name === "comment"); + if (marked) { + if (start === -1) { + start = plain.length; + } + end = plain.length + len; + } + plain += node.text ?? ""; + return false; + } + return true; + }); + return { plain, start, end }; + }; + + it("defaults to first occurrence when no prefix or suffix given", () => { + const docState = buildDocState(fox); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + }); + expect(result).toBeInstanceOf(Uint8Array); + const { plain, start, end } = findMarkedRange(result!); + expect(plain.slice(start, end)).toBe("fox"); + expect(start).toBe(plain.indexOf("fox")); + }); + + it("selects occurrence matching the given prefix", () => { + const docState = buildDocState(fox); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + prefix: "lazy ", + }); + const { plain, start, end } = findMarkedRange(result!); + expect(plain.slice(start, end)).toBe("fox"); + expect(start).toBe(plain.lastIndexOf("fox")); + }); + + it("selects occurrence matching the given suffix", () => { + const docState = buildDocState(fox); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + suffix: " jumps", + }); + const { plain, start, end } = findMarkedRange(result!); + expect(plain.slice(start, end)).toBe("fox"); + expect(plain.slice(end, end + 6)).toBe(" jumps"); + }); + + it("requires both prefix and suffix to match when both supplied", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [ + { + type: "text", + text: "alpha word beta word gamma word delta", + }, + ], + }, + ]); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "word", + commentId: "comment-1", + userId: "user-1", + prefix: "beta ", + suffix: " gamma", + }); + const { plain, start, end } = findMarkedRange(result!); + expect(plain.slice(start - 5, end + 6)).toBe("beta word gamma"); + }); + + it("treats empty prefix and suffix as no constraint", () => { + const docState = buildDocState(fox); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + prefix: "", + suffix: "", + }); + const { plain, start } = findMarkedRange(result!); + expect(start).toBe(plain.indexOf("fox")); + }); + + it("matches an occurrence anchored at the start of the document", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "fox runs and another fox runs" }], + }, + ]); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + prefix: "", + }); + const { start } = findMarkedRange(result!); + expect(start).toBe(0); + }); + + it("matches an occurrence anchored at the end of the document", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "fox runs and another fox" }], + }, + ]); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + suffix: "", + }); + const { plain, start } = findMarkedRange(result!); + // With no suffix constraint we still get the first occurrence. + expect(start).toBe(plain.indexOf("fox")); + }); + + it("disambiguates across multiple top-level blocks via newline", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "first fox here" }], + }, + { + type: "paragraph", + content: [{ type: "text", text: "second fox here" }], + }, + ]); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + prefix: "second ", + }); + const { plain, start, end } = findMarkedRange(result!); + expect(plain.slice(start - 7, end)).toBe("second fox"); + }); + + it("throws when prefix matches no occurrence", () => { + const docState = buildDocState(fox); + expect(() => + ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + prefix: "purple ", + }) + ).toThrow(/not found/); + }); + + it("throws when suffix matches no occurrence", () => { + const docState = buildDocState(fox); + expect(() => + ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + suffix: " sleeps", + }) + ).toThrow(/not found/); + }); + + it("throws when prefix is longer than the text before any occurrence", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "fox" }], + }, + ]); + // Document has nothing before "fox", so a non-empty prefix can never + // match — guards against negative-index slice false positives. + expect(() => + ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + prefix: "the lazy ", + }) + ).toThrow(/not found/); + }); + + it("throws when suffix is longer than the text after any occurrence", () => { + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "the fox" }], + }, + ]); + expect(() => + ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "fox", + commentId: "comment-1", + userId: "user-1", + suffix: " runs fast", + }) + ).toThrow(/not found/); + }); + + it("considers overlapping candidates when needle can overlap itself", () => { + // 'aba' matches in 'ababa' at indices 0 and 2 (overlapping). The + // search must advance one position at a time, not past the previous + // candidate's end, to reach the second match via prefix. + const docState = buildDocState([ + { + type: "paragraph", + content: [{ type: "text", text: "ababa" }], + }, + ]); + const result = ProsemirrorHelper.applyCommentMarkByText({ + docState, + anchorText: "aba", + commentId: "comment-1", + userId: "user-1", + prefix: "ab", + }); + const { plain, start, end } = findMarkedRange(result!); + expect(plain.slice(start, end)).toBe("aba"); + expect(start).toBe(2); + }); + }); + }); }); diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index c87920cf4b..9aa49f8b06 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -10,11 +10,16 @@ import { import { Node, Fragment } from "prosemirror-model"; import { renderToString } from "react-dom/server"; import styled, { ServerStyleSheet, ThemeProvider } from "styled-components"; -import { prosemirrorToYDoc } from "y-prosemirror"; +import { + prosemirrorToYDoc, + updateYFragment, + yDocToProsemirrorJSON, +} from "y-prosemirror"; import * as Y from "yjs"; import Diff from "@shared/editor/extensions/Diff"; import { EditorStyleHelper } from "@shared/editor/styles/EditorStyleHelper"; import type { ExtendedChange } from "@shared/editor/lib/ChangesetHelper"; +import textBetween from "@shared/editor/lib/textBetween"; import EditorContainer from "@shared/editor/components/Styles"; import GlobalStyles from "@shared/styles/globals"; import light from "@shared/styles/theme"; @@ -31,6 +36,7 @@ import { isInternalUrl } from "@shared/utils/urls"; import attachmentCreator from "@server/commands/attachmentCreator"; import { plugins, schema, parser } from "@server/editor"; import env from "@server/env"; +import { ValidationError } from "@server/errors"; import Logger from "@server/logging/Logger"; import { trace } from "@server/logging/tracing"; import Attachment from "@server/models/Attachment"; @@ -1001,4 +1007,240 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { return doc.copy(transformFragment(doc.content)); } + + /** + * Applies a comment mark to a document's Yjs state at the first occurrence + * of `anchorText` in the document's plain text content. + * + * Block boundaries are represented as a single newline; matches that span + * blocks apply the mark across the union of affected text ranges. + * + * `prefix` and `suffix` may be supplied to disambiguate when `anchorText` + * appears multiple times: the first occurrence whose immediately preceding + * text equals `prefix` and immediately following text equals `suffix` is + * used. Empty or omitted prefix/suffix imposes no constraint on that side. + * + * @param params.docState The current Yjs document state. + * @param params.anchorText The plain text substring to anchor the comment to. + * @param params.commentId The comment identifier. + * @param params.userId The user identifier. + * @param params.prefix Optional plain text immediately preceding the match. + * @param params.suffix Optional plain text immediately following the match. + * @returns Updated Yjs state, or null if the mark cannot be applied. + * @throws ValidationError when no match satisfies the prefix/suffix. + */ + static applyCommentMarkByText({ + docState, + anchorText, + commentId, + userId, + prefix, + suffix, + }: { + docState: Uint8Array; + anchorText: string; + commentId: string; + userId: string; + prefix?: string; + suffix?: string; + }): Buffer | null { + const yjsDoc = new Y.Doc(); + Y.applyUpdate(yjsDoc, docState); + const doc = Node.fromJSON(schema, yDocToProsemirrorJSON(yjsDoc, "default")); + const range = ProsemirrorHelper.findTextRange(doc, anchorText, { + prefix, + suffix, + }); + + if (!range) { + throw ValidationError("anchorText was not found in the document"); + } + + try { + return ProsemirrorHelper.applyCommentMarkAtRange( + yjsDoc, + doc, + range.from, + range.to, + commentId, + userId + ); + } catch (error) { + Logger.error("Error applying comment mark by text", error as Error); + return null; + } + } + + private static applyCommentMarkAtRange( + yjsDoc: Y.Doc, + doc: Node, + rangeStart: number, + rangeEnd: number, + commentId: string, + userId: string + ): Buffer | null { + const docSize = doc.content.size; + if (rangeStart < 0 || rangeEnd > docSize || rangeStart > rangeEnd) { + Logger.warn("Invalid position range for comment anchor", { + rangeStart, + rangeEnd, + docSize, + }); + return null; + } + + const initialState = EditorState.create({ + doc, + schema, + }); + + const markToAdd = schema.marks.comment.create({ + id: commentId, + userId, + draft: false, + }); + const stateTransform = initialState.tr.addMark( + rangeStart, + rangeEnd, + markToAdd + ); + const transformedState = initialState.apply(stateTransform); + + // Mutate the existing yjsDoc in place so the resulting state is a + // continuation of the original document — same client IDs, same operation + // history — rather than a fresh Y.Doc whose content would merge as + // duplicates against any client still holding the original state. + const yFragment = yjsDoc.get("default", Y.XmlFragment) as Y.XmlFragment; + if (!yFragment.doc) { + throw new Error("yFragment.doc not found"); + } + updateYFragment(yFragment.doc, yFragment, transformedState.doc, { + mapping: new Map(), + isOMark: new Map(), + }); + + return Buffer.from(Y.encodeStateAsUpdate(yjsDoc)); + } + + /** + * Locates an occurrence of `needle` in the document's plain text and + * returns the matching ProseMirror position range, or null if no match. + * Plain text is built using the editor's `textBetween` so leaf nodes + * with `spec.leafText` (e.g. mentions) participate in matching. + * + * When `prefix` or `suffix` is provided, the first occurrence whose + * immediately preceding / following plain text matches is selected. + * Empty or omitted values impose no constraint on that side. + * + * Atom nodes (whose plain content comes from `leafText`) cannot be + * sliced into; matches that fall inside an atom are clamped to the + * atom's full PM range. + */ + private static findTextRange( + doc: Node, + needle: string, + options: { prefix?: string; suffix?: string } = {} + ): { from: number; to: number } | null { + if (!needle.length) { + return null; + } + + const plain = textBetween(doc, 0, doc.content.size); + + // Mirror textBetween's traversal so segment.plainStart aligns with the + // characters in `plain`. If textBetween's algorithm changes, this walk + // must change with it. + type Segment = { + plainStart: number; + pmFrom: number; + pmTo: number; + length: number; + isAtom: boolean; + }; + const segments: Segment[] = []; + let plainPos = 0; + let first = true; + + doc.nodesBetween(0, doc.content.size, (node, pos) => { + let nodeText = ""; + let isLeafText = false; + + if (node.type.spec.leafText) { + nodeText = node.type.spec.leafText(node); + isLeafText = true; + } else if (node.isText) { + nodeText = node.text ?? ""; + } + + if (node.isBlock && ((node.isLeaf && nodeText) || node.isTextblock)) { + if (first) { + first = false; + } else { + plainPos += 1; // block separator '\n' + } + } + + if (nodeText) { + segments.push({ + plainStart: plainPos, + pmFrom: pos, + pmTo: pos + node.nodeSize, + length: nodeText.length, + isAtom: isLeafText, + }); + plainPos += nodeText.length; + } + + return !isLeafText; + }); + + const prefix = options.prefix ?? ""; + const suffix = options.suffix ?? ""; + + let startIdx = -1; + let searchFrom = 0; + while (true) { + const candidate = plain.indexOf(needle, searchFrom); + if (candidate === -1) { + return null; + } + const candidateEnd = candidate + needle.length; + const prefixOk = + prefix.length === 0 || + (candidate >= prefix.length && + plain.substring(candidate - prefix.length, candidate) === prefix); + const suffixOk = + suffix.length === 0 || + (candidateEnd + suffix.length <= plain.length && + plain.substring(candidateEnd, candidateEnd + suffix.length) === + suffix); + if (prefixOk && suffixOk) { + startIdx = candidate; + break; + } + searchFrom = candidate + 1; + } + + const endIdx = startIdx + needle.length; + + let from: number | null = null; + for (const s of segments) { + if (s.plainStart <= startIdx && startIdx < s.plainStart + s.length) { + from = s.isAtom ? s.pmFrom : s.pmFrom + (startIdx - s.plainStart); + break; + } + } + let to: number | null = null; + for (const s of segments) { + if (s.plainStart < endIdx && endIdx <= s.plainStart + s.length) { + to = s.isAtom ? s.pmTo : s.pmFrom + (endIdx - s.plainStart); + } + } + + if (from === null || to === null) { + return null; + } + + return { from, to }; + } } diff --git a/server/routes/api/comments/comments.ts b/server/routes/api/comments/comments.ts index 2564889619..90ccaa2c14 100644 --- a/server/routes/api/comments/comments.ts +++ b/server/routes/api/comments/comments.ts @@ -2,6 +2,7 @@ import Router from "koa-router"; import { difference } from "es-toolkit/compat"; import type { FindOptions, WhereOptions } from "sequelize"; import { Op } from "sequelize"; +import { v4 as uuidv4 } from "uuid"; import { CommentStatusFilter, TeamPreference, @@ -15,6 +16,7 @@ import { feature } from "@server/middlewares/feature"; import { rateLimiter } from "@server/middlewares/rateLimiter"; import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; +import { ValidationError } from "@server/errors"; import { Document, Comment, Collection, Reaction, Emoji } from "@server/models"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { TextHelper } from "@server/models/helpers/TextHelper"; @@ -35,13 +37,27 @@ router.post( validate(T.CommentsCreateSchema), transaction(), async (ctx: APIContext<T.CommentsCreateReq>) => { - const { id, documentId, parentCommentId } = ctx.input.body; + const { + id, + documentId, + parentCommentId, + anchorText, + anchorPrefix, + anchorSuffix, + } = ctx.input.body; const { user } = ctx.state.auth; const { transaction } = ctx.state; const document = await Document.findByPk(documentId, { userId: user.id, transaction, + // We only need to load the state binary if applying a comment mark + includeState: !!anchorText, + // Lock the row when anchoring so a concurrent inline comment can't + // overwrite our state update. + lock: anchorText + ? { level: transaction.LOCK.UPDATE, of: Document } + : undefined, }); authorize(user, "comment", document); @@ -56,8 +72,36 @@ router.post( ? commentParser.parse(text).toJSON() : ctx.input.body.data; + const commentId = id || uuidv4(); + + if (anchorText) { + if (!document.state) { + throw ValidationError("Cannot inline comment on this document"); + } + + const updatedState = ProsemirrorHelper.applyCommentMarkByText({ + docState: document.state, + anchorText, + commentId, + userId: user.id, + prefix: anchorPrefix, + suffix: anchorSuffix, + }); + + if (!updatedState) { + throw ValidationError( + "Could not anchor comment to the provided text in the document" + ); + } + + await document.update( + { state: updatedState }, + { transaction, hooks: false, silent: true } + ); + } + const comment = await Comment.createWithCtx(ctx, { - id, + id: commentId, data, createdById: user.id, documentId, diff --git a/server/routes/api/comments/schema.ts b/server/routes/api/comments/schema.ts index f354d6c6e1..091a971f47 100644 --- a/server/routes/api/comments/schema.ts +++ b/server/routes/api/comments/schema.ts @@ -41,10 +41,34 @@ export const CommentsCreateSchema = BaseSchema.extend({ /** Create comment with this text */ text: z.string().optional(), + + /** + * Plain text substring to anchor the comment to as an inline comment. + * The first occurrence in the document's plain text is used. + */ + anchorText: z.string().optional(), + + /** + * Plain text immediately preceding `anchorText` in the document, used + * to select a specific occurrence when `anchorText` is ambiguous. + */ + anchorPrefix: z.string().optional(), + + /** + * Plain text immediately following `anchorText` in the document, used + * to select a specific occurrence when `anchorText` is ambiguous. + */ + anchorSuffix: z.string().optional(), }) .refine((obj) => !(isEmpty(obj.data) && isEmpty(obj.text)), { error: "One of data or text is required", - }), + }) + .refine( + (obj) => !((obj.anchorPrefix || obj.anchorSuffix) && !obj.anchorText), + { + error: "anchorPrefix and anchorSuffix require anchorText", + } + ), }); export type CommentsCreateReq = z.infer<typeof CommentsCreateSchema>; diff --git a/server/tools/comments.ts b/server/tools/comments.ts index 305520e528..5bf4c689da 100644 --- a/server/tools/comments.ts +++ b/server/tools/comments.ts @@ -1,13 +1,15 @@ +import { v4 as uuidv4 } from "uuid"; import { z } from "zod"; -import { Op } from "sequelize"; +import { Op, Transaction } from "sequelize"; import type { FindOptions, WhereOptions } from "sequelize"; +import { sequelize } from "@server/storage/database"; import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; import { CommentStatusFilter } from "@shared/types"; -import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import type { CommentMark } from "@shared/utils/ProsemirrorHelper"; import { commentParser } from "@server/editor"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; +import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { Comment, Collection, Document } from "@server/models"; import { authorize } from "@server/policies"; import { presentComment } from "@server/presenters"; @@ -20,6 +22,7 @@ import { optionalString, withTracing, } from "./util"; +import { ValidationError } from "@server/errors"; /** * Presents a comment with a plain-text rendering of its content so that @@ -237,32 +240,90 @@ export function commentTools(server: McpServer, scopes: string[]) { parentCommentId: optionalString().describe( "The parent comment ID to reply to. Omit for a top-level comment." ), + anchorText: optionalString().describe( + "A plain text substring of the document to anchor this comment to as an inline comment. The first occurrence is used unless anchorPrefix or anchorSuffix is provided, omit for a general document comment." + ), + anchorPrefix: optionalString().describe( + "Only provide this if anchorText appears more than once in the document and you need to target a specific occurrence. Plain text that immediately precedes anchorText." + ), + anchorSuffix: optionalString().describe( + "Only provide this if anchorText appears more than once in the document and you need to target a specific occurrence. Plain text that immediately follows anchorText." + ), }, }, withTracing( "create_comment", - async ({ documentId, text, parentCommentId }, context) => { + async ( + { + documentId, + text, + parentCommentId, + anchorText, + anchorPrefix, + anchorSuffix, + }, + context + ) => { try { const ctx = buildAPIContext(context); const { user } = ctx.state.auth; - const document = await Document.findByPk(documentId, { - userId: user.id, - }); - authorize(user, "comment", document); - const data = commentParser.parse(text).toJSON(); + const commentId = uuidv4(); - const comment = await Comment.createWithCtx(ctx, { - data, - createdById: user.id, - documentId, - parentCommentId, + const comment = await sequelize.transaction(async (transaction) => { + ctx.state.transaction = transaction; + ctx.context.transaction = transaction; + + const document = await Document.findByPk(documentId, { + userId: user.id, + // We only need to load the state binary if applying a comment mark + includeState: !!anchorText, + transaction, + // Lock the row when anchoring so a concurrent comment-mark + // application can't overwrite our state update. + lock: anchorText ? Transaction.LOCK.UPDATE : undefined, + }); + authorize(user, "comment", document); + + if (anchorText) { + if (!document.state) { + throw ValidationError( + "Cannot inline comment on this document" + ); + } + + const updatedState = ProsemirrorHelper.applyCommentMarkByText({ + docState: document.state, + anchorText, + commentId, + userId: user.id, + prefix: anchorPrefix, + suffix: anchorSuffix, + }); + + if (!updatedState) { + throw ValidationError( + "Could not anchor comment to the provided text in the document" + ); + } + + await document.updateWithCtx(ctx, { state: updatedState }); + } + + const created = await Comment.createWithCtx(ctx, { + id: commentId, + data, + createdById: user.id, + documentId, + parentCommentId, + }); + + created.createdBy = user; + created.document = document!; + return created; }); - comment.createdBy = user; - comment.document = document!; - const presented = presentCommentWithText(comment); return { content: [ From 7c070df9428a802384260b0b4dc095deed8708aa Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 12 May 2026 22:22:52 -0400 Subject: [PATCH 023/286] fix: Correct locking in comment anchor for update (#12332) * fix: Lock error on MCP anchorText comment creation * refactor --- server/routes/api/comments/comments.ts | 16 +++++++++++----- server/tools/comments.ts | 15 ++++++++++++--- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/server/routes/api/comments/comments.ts b/server/routes/api/comments/comments.ts index 90ccaa2c14..acd5f5ec26 100644 --- a/server/routes/api/comments/comments.ts +++ b/server/routes/api/comments/comments.ts @@ -48,16 +48,22 @@ router.post( const { user } = ctx.state.auth; const { transaction } = ctx.state; + if (anchorText) { + // Acquire the row lock on the document directly when anchoring so a + // concurrent inline comment can't overwrite our state update. + await Document.unscoped().findOne({ + where: { id: documentId }, + attributes: ["id"], + transaction, + lock: transaction.LOCK.UPDATE, + }); + } + const document = await Document.findByPk(documentId, { userId: user.id, transaction, // We only need to load the state binary if applying a comment mark includeState: !!anchorText, - // Lock the row when anchoring so a concurrent inline comment can't - // overwrite our state update. - lock: anchorText - ? { level: transaction.LOCK.UPDATE, of: Document } - : undefined, }); authorize(user, "comment", document); diff --git a/server/tools/comments.ts b/server/tools/comments.ts index 5bf4c689da..eff0987a37 100644 --- a/server/tools/comments.ts +++ b/server/tools/comments.ts @@ -275,14 +275,23 @@ export function commentTools(server: McpServer, scopes: string[]) { ctx.state.transaction = transaction; ctx.context.transaction = transaction; + if (anchorText) { + // Acquire the row lock on the document directly when + // anchoring so a concurrent comment-mark application can't + // overwrite our state update. + await Document.unscoped().findOne({ + where: { id: documentId }, + attributes: ["id"], + transaction, + lock: Transaction.LOCK.UPDATE, + }); + } + const document = await Document.findByPk(documentId, { userId: user.id, // We only need to load the state binary if applying a comment mark includeState: !!anchorText, transaction, - // Lock the row when anchoring so a concurrent comment-mark - // application can't overwrite our state update. - lock: anchorText ? Transaction.LOCK.UPDATE : undefined, }); authorize(user, "comment", document); From bc6aa11f5d3da5f82ee1f85983cce2196b3496d0 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 13 May 2026 08:24:49 -0400 Subject: [PATCH 024/286] fix: Table cell selection should not show in print (#12334) --- shared/editor/components/Styles.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index d5f1ff9346..4638a18e21 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -2121,6 +2121,10 @@ table { /* fixes Firefox background color painting over border: * https://bugzilla.mozilla.org/show_bug.cgi?id=688556 */ background-clip: padding-box; + + @media print { + box-shadow: none; + } } .${EditorStyleHelper.tableAddRow}, From e325867716bd26318d9216f7cf8d5972e394fc37 Mon Sep 17 00:00:00 2001 From: Tor Anders Johansen <mail@toranders.com> Date: Wed, 13 May 2026 14:32:40 +0200 Subject: [PATCH 025/286] feat(mcp): add fullWidth parameter to create_document and update_document tools (#12338) The fullWidth field is already persisted on the Document model and supported in the REST API schemas (DocumentsCreateSchema, DocumentsUpdateSchema), but the built-in MCP server did not expose it. This patch adds fullWidth as an optional boolean parameter to both create_document and update_document MCP tools, passing it through to documentCreator and documentUpdater respectively. --- server/tools/documents.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server/tools/documents.ts b/server/tools/documents.ts index b448f54c15..00f807f407 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -300,6 +300,12 @@ export function documentTools(server: McpServer, scopes: string[]) { .describe( "Whether to publish the document. Defaults to true. Set to false to create as a draft." ), + fullWidth: z + .boolean() + .optional() + .describe( + "Whether the document should occupy full width of the screen. Defaults to false." + ), }, }, withTracing("create_document", async (input, context) => { @@ -340,6 +346,7 @@ export function documentTools(server: McpServer, scopes: string[]) { parentDocumentId: parentDocumentId, publish: input.publish !== false, collectionId: collection?.id, + fullWidth: input.fullWidth, }); const [{ text, ...attributes }, breadcrumb] = await Promise.all([ @@ -556,6 +563,12 @@ export function documentTools(server: McpServer, scopes: string[]) { .describe( "Set to true to publish a draft document, or false to convert a published document back to a draft." ), + fullWidth: z + .boolean() + .optional() + .describe( + "Whether the document should occupy full width of the screen." + ), }, }, withTracing("update_document", async (input, context) => { From 9603e6d7c8f7ccaec032327e3adce9b1a0d1db2c Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 13 May 2026 08:53:43 -0400 Subject: [PATCH 026/286] fix: Mermaid diagrams inside toggle containers do not render correctly (#12343) --- shared/editor/extensions/Mermaid.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shared/editor/extensions/Mermaid.ts b/shared/editor/extensions/Mermaid.ts index 43dd98a61c..e31c00d667 100644 --- a/shared/editor/extensions/Mermaid.ts +++ b/shared/editor/extensions/Mermaid.ts @@ -294,8 +294,11 @@ function getNewState({ const decorations: Decoration[] = []; let newEditingId: string | undefined; - // Find all blocks that represent Mermaid diagrams (supports both "mermaid" and "mermaidjs") - const blocks = findBlockNodes(doc).filter((item) => isMermaid(item.node)); + // Find all blocks that represent Mermaid diagrams (supports both "mermaid" and "mermaidjs"), + // descending into containers so diagrams inside toggle blocks are also discovered. + const blocks = findBlockNodes(doc, true).filter((item) => + isMermaid(item.node) + ); blocks.forEach((block) => { const existingDecorations = pluginState.decorationSet.find( From 0d76dfc9f443a02d8f645a2b3622c5ca4cc43319 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 13 May 2026 17:18:16 -0400 Subject: [PATCH 027/286] fix: Automatically expand code block if find result is within (#12346) --- app/editor/extensions/FindAndReplace.tsx | 14 ++++++++++++++ shared/editor/nodes/CodeFence.ts | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/app/editor/extensions/FindAndReplace.tsx b/app/editor/extensions/FindAndReplace.tsx index 29721ab420..d82fa7a3e6 100644 --- a/app/editor/extensions/FindAndReplace.tsx +++ b/app/editor/extensions/FindAndReplace.tsx @@ -163,6 +163,7 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt dispatch?.(state.tr.setMeta(pluginKey, {})); this.expandFoldedTogglesForCurrentMatch(); + this.expandCollapsedCodeBlockForCurrentMatch(); this.scrollToCurrentMatch(); return true; @@ -213,6 +214,7 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt dispatch?.(state.tr.setMeta(pluginKey, {})); this.expandFoldedTogglesForCurrentMatch(); + this.expandCollapsedCodeBlockForCurrentMatch(); this.scrollToCurrentMatch(); return true; }; @@ -298,6 +300,18 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt }); } + /** + * Expand a collapsed code block if it contains the current match. + */ + private expandCollapsedCodeBlockForCurrentMatch() { + const result = this.results[this.currentResultIndex]; + if (!result) { + return; + } + + this.editor.commands.expandCodeBlockAt(result.from); + } + private rebaseNextResult(replace: string, index: number, lastOffset = 0) { const nextIndex = index + 1; diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index ae99076016..68de028c39 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -244,6 +244,29 @@ export default class CodeFence extends Node<CodeFenceOptions> { ...attrs, }); }, + expandCodeBlockAt: + (pos: number): Command => + (state, dispatch) => { + const $pos = state.doc.resolve(pos); + const codeBlock = findParentNodeClosestToPos($pos, isCode); + if (!codeBlock) { + return false; + } + + const collapseState = CodeFence.collapseKey.getState(state); + if (!collapseState?.collapsedBlocks.has(codeBlock.pos)) { + return false; + } + + if (dispatch) { + dispatch( + state.tr + .setMeta(CodeFence.collapseKey, { expand: codeBlock.pos }) + .setMeta("addToHistory", false) + ); + } + return true; + }, toggleCodeBlockCollapse: (): Command => (state, dispatch) => { const codeBlock = findParentNode(isCode)(state.selection); if (!codeBlock) { From 4a324784bed237261eed435ccb9e7b0db41d2b41 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 13 May 2026 20:57:55 -0400 Subject: [PATCH 028/286] Refactor MCP tests (#12347) --- server/routes/mcp/index.test.ts | 822 +------------------------------ server/test/McpHelper.ts | 23 + server/tools/attachments.test.ts | 93 ++++ server/tools/collections.test.ts | 82 +++ server/tools/comments.test.ts | 322 ++++++++++++ server/tools/documents.test.ts | 365 ++++++++++++++ server/tools/documents.ts | 5 +- server/tools/fetch.test.ts | 58 +++ 8 files changed, 949 insertions(+), 821 deletions(-) create mode 100644 server/tools/attachments.test.ts create mode 100644 server/tools/collections.test.ts create mode 100644 server/tools/comments.test.ts create mode 100644 server/tools/documents.test.ts create mode 100644 server/tools/fetch.test.ts diff --git a/server/routes/mcp/index.test.ts b/server/routes/mcp/index.test.ts index 09422e2b04..d62f9b0a63 100644 --- a/server/routes/mcp/index.test.ts +++ b/server/routes/mcp/index.test.ts @@ -1,40 +1,23 @@ import { Scope, TeamPreference } from "@shared/types"; -import type { ProsemirrorData } from "@shared/types"; -import { Attachment } from "@server/models"; import { UserFlag } from "@server/models/User"; import { buildUser, - buildAdmin, buildCollection, buildDocument, buildComment, - buildCommentMark, buildOAuthAuthentication, } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; import { + buildOAuthUser, + callMcpTool, mcpHeaders, mcpRequest, parseMcpResponse, - callMcpTool, } from "@server/test/McpHelper"; const server = getTestServer(); -async function buildOAuthUser( - overrides: { teamId?: string; role?: string } = {} -) { - const user = - overrides.role === "admin" - ? await buildAdmin(overrides.teamId ? { teamId: overrides.teamId } : {}) - : await buildUser(overrides.teamId ? { teamId: overrides.teamId } : {}); - const auth = await buildOAuthAuthentication({ - user, - scope: [Scope.Read, Scope.Write, Scope.Create], - }); - return { user, accessToken: auth.accessToken! }; -} - describe("POST /mcp/", () => { describe("protocol", () => { it("should require authentication", async () => { @@ -134,807 +117,6 @@ describe("POST /mcp/", () => { }); }); - describe("collection tools", () => { - it("list_collections returns user collections", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - - const res = await callMcpTool(server, accessToken, "list_collections"); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - expect(data.length).toBeGreaterThanOrEqual(1); - const ids = data.map((c: { id: string }) => c.id); - expect(ids).toContain(collection.id); - - const match = data.find( - (c: { id: string }) => c.id === collection.id - ) as { url: string }; - expect(match.url).toMatch(/^https?:\/\//); - }); - - it("list_collections does not return collections from another team", async () => { - const { accessToken } = await buildOAuthUser(); - const otherUser = await buildUser(); - const otherCollection = await buildCollection({ - teamId: otherUser.teamId, - userId: otherUser.id, - }); - - const res = await callMcpTool(server, accessToken, "list_collections"); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - const ids = data.map((c: { id: string }) => c.id); - expect(ids).not.toContain(otherCollection.id); - }); - - it("create_collection creates with name, description, icon, color", async () => { - const { accessToken } = await buildOAuthUser(); - - const res = await callMcpTool(server, accessToken, "create_collection", { - name: "Test Collection", - description: "A test description", - icon: "rocket", - color: "#FF0000", - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.name).toEqual("Test Collection"); - expect(data.icon).toEqual("rocket"); - expect(data.color).toEqual("#FF0000"); - expect(data.id).toBeDefined(); - expect(data.url).toMatch(/^https?:\/\//); - }); - - it("update_collection updates fields on existing collection", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - - const res = await callMcpTool(server, accessToken, "update_collection", { - id: collection.id, - name: "Updated Name", - description: "Updated description", - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.name).toEqual("Updated Name"); - expect(data.url).toMatch(/^https?:\/\//); - }); - - it("fetch collection returns collection details", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - - const res = await callMcpTool(server, accessToken, "fetch", { - resource: "collection", - id: collection.id, - }); - - expect(res?.result?.content).toBeDefined(); - expect(res!.result!.content!.length).toBeGreaterThanOrEqual(1); - - const data = JSON.parse(res!.result!.content![0].text ?? "{}"); - expect(data.id).toEqual(collection.id); - expect(data.url).toMatch(/^https?:\/\//); - }); - }); - - describe("document tools", () => { - it("list_documents returns recent documents", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "list_documents"); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - const ids = data.map((d: { document: { id: string } }) => d.document.id); - expect(ids).toContain(document.id); - - const match = data.find( - (d: { document: { id: string } }) => d.document.id === document.id - ) as { document: { url: string } }; - expect(match.document.url).toMatch(/^https?:\/\//); - }); - - it("list_documents filters by collection", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection1 = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const collection2 = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const doc1 = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection1.id, - }); - await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection2.id, - }); - - const res = await callMcpTool(server, accessToken, "list_documents", { - collectionId: collection1.id, - }); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - const ids = data.map((d: { document: { id: string } }) => d.document.id); - expect(ids).toContain(doc1.id); - expect( - data.every( - (d: { document: { collectionId: string } }) => - d.document.collectionId === collection1.id - ) - ).toBe(true); - }); - - it("create_document creates in a collection", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - - const res = await callMcpTool(server, accessToken, "create_document", { - title: "New Document", - text: "Hello world", - collectionId: collection.id, - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.document.title).toEqual("New Document"); - expect(data.document.collectionId).toEqual(collection.id); - expect(data.document.id).toBeDefined(); - expect(data.document.url).toMatch(/^https?:\/\//); - }); - - it("create_document creates nested under parent document", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const parent = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "create_document", { - title: "Child Document", - text: "Nested content", - parentDocumentId: parent.id, - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.document.title).toEqual("Child Document"); - expect(data.document.parentDocumentId).toEqual(parent.id); - }); - - it("update_document updates title and text", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "update_document", { - id: document.id, - title: "Updated Title", - text: "Updated content", - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.document.title).toEqual("Updated Title"); - expect(data.document.url).toMatch(/^https?:\/\//); - }); - - it("update_document unpublishes a document", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "update_document", { - id: document.id, - publish: false, - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.document.id).toEqual(document.id); - expect(res?.result?.isError).toBeUndefined(); - }); - - it("update_document fails to unpublish a document with children", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - parentDocumentId: document.id, - }); - - const res = await callMcpTool(server, accessToken, "update_document", { - id: document.id, - publish: false, - }); - - expect(res?.result?.isError).toBe(true); - }); - - it("move_document moves to a different collection", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection1 = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const collection2 = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection1.id, - }); - - const res = await callMcpTool(server, accessToken, "move_document", { - id: document.id, - collectionId: collection2.id, - }); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - expect(res?.result?.isError).toBeUndefined(); - const moved = data.find( - (d: { document: { id: string } }) => d.document.id === document.id - ) as { document: { collectionId: string } }; - expect(moved).toBeDefined(); - expect(moved.document.collectionId).toEqual(collection2.id); - }); - - it("move_document moves under a parent document", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const parent = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const child = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "move_document", { - id: child.id, - parentDocumentId: parent.id, - }); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - expect(res?.result?.isError).toBeUndefined(); - const moved = data.find( - (d: { document: { id: string } }) => d.document.id === child.id - ) as { document: { parentDocumentId: string } }; - expect(moved).toBeDefined(); - expect(moved.document.parentDocumentId).toEqual(parent.id); - }); - - it("move_document fails without collectionId or parentDocumentId", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "move_document", { - id: document.id, - }); - - expect(res?.result?.isError).toBe(true); - }); - - it("move_document fails when nesting a document inside itself", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "move_document", { - id: document.id, - parentDocumentId: document.id, - }); - - expect(res?.result?.isError).toBe(true); - }); - - it("fetch document returns metadata and markdown", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - text: "# Hello\n\nWorld", - }); - - const res = await callMcpTool(server, accessToken, "fetch", { - resource: "document", - id: document.id, - }); - - expect(res?.result?.content).toBeDefined(); - expect(res!.result!.content!.length).toEqual(2); - - // First content is JSON metadata - const metadata = JSON.parse(res!.result!.content![0].text ?? "{}"); - expect(metadata.document.id).toEqual(document.id); - expect(metadata.document.title).toEqual(document.title); - expect(metadata.document.url).toMatch(/^https?:\/\//); - - // Second content is markdown text - expect(res!.result!.content![1].text).toContain("Hello"); - }); - }); - - describe("comment tools", () => { - it("list_comments returns comments on a document", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const comment = await buildComment({ - userId: user.id, - documentId: document.id, - }); - - const res = await callMcpTool(server, accessToken, "list_comments", { - documentId: document.id, - }); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - const ids = data.map((c: { id: string }) => c.id); - expect(ids).toContain(comment.id); - }); - - it("create_comment creates a comment on a document", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "create_comment", { - documentId: document.id, - text: "This is a test comment", - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.id).toBeDefined(); - expect(data.documentId).toEqual(document.id); - }); - - it("create_comment creates a reply to an existing comment", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const parentComment = await buildComment({ - userId: user.id, - documentId: document.id, - }); - - const res = await callMcpTool(server, accessToken, "create_comment", { - documentId: document.id, - text: "This is a reply", - parentCommentId: parentComment.id, - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.id).toBeDefined(); - expect(data.parentCommentId).toEqual(parentComment.id); - }); - - it("update_comment updates text", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const comment = await buildComment({ - userId: user.id, - documentId: document.id, - }); - - const res = await callMcpTool(server, accessToken, "update_comment", { - id: comment.id, - text: "Updated comment text", - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.id).toEqual(comment.id); - expect(data.text).toContain("Updated comment text"); - }); - - it("list_comments includes anchorText when comment is anchored", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const comment = await buildComment({ - userId: user.id, - documentId: document.id, - }); - - const anchorText = "highlighted text"; - const content = { - type: "doc", - content: [ - { - type: "paragraph", - content: [ - { - type: "text", - text: anchorText, - marks: [buildCommentMark({ id: comment.id, userId: user.id })], - }, - ], - }, - ], - } as ProsemirrorData; - await document.update({ content }); - - const res = await callMcpTool(server, accessToken, "list_comments", { - documentId: document.id, - }); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - const match = data.find((c: { id: string }) => c.id === comment.id) as { - anchorText: string; - }; - expect(match).toBeDefined(); - expect(match.anchorText).toEqual(anchorText); - }); - - it("list_comments returns undefined anchorText for non-anchored comment", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - await buildComment({ - userId: user.id, - documentId: document.id, - }); - - const res = await callMcpTool(server, accessToken, "list_comments", { - documentId: document.id, - }); - const data = (res?.result?.content ?? []).map((c: { text: string }) => - JSON.parse(c.text) - ); - - expect(data.length).toBeGreaterThanOrEqual(1); - expect(data[0].anchorText).toBeUndefined(); - }); - - it("create_comment includes anchorText in response", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - - const res = await callMcpTool(server, accessToken, "create_comment", { - documentId: document.id, - text: "A new comment", - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - // New comments have no anchor mark in the document, so anchorText is undefined - expect(data.id).toBeDefined(); - expect(data.anchorText).toBeUndefined(); - }); - - it("update_comment includes anchorText in response", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const comment = await buildComment({ - userId: user.id, - documentId: document.id, - }); - - const anchorText = "anchored content"; - const content = { - type: "doc", - content: [ - { - type: "paragraph", - content: [ - { - type: "text", - text: anchorText, - marks: [buildCommentMark({ id: comment.id, userId: user.id })], - }, - ], - }, - ], - } as ProsemirrorData; - await document.update({ content }); - - const res = await callMcpTool(server, accessToken, "update_comment", { - id: comment.id, - text: "Updated text", - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.id).toEqual(comment.id); - expect(data.anchorText).toEqual(anchorText); - }); - - it("delete_comment deletes own comment", async () => { - const { user, accessToken } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const comment = await buildComment({ - userId: user.id, - documentId: document.id, - }); - - const res = await callMcpTool(server, accessToken, "delete_comment", { - id: comment.id, - }); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.success).toBe(true); - }); - - it("delete_comment fails for non-author non-admin", async () => { - const { user } = await buildOAuthUser(); - const collection = await buildCollection({ - teamId: user.teamId, - userId: user.id, - }); - const document = await buildDocument({ - teamId: user.teamId, - userId: user.id, - collectionId: collection.id, - }); - const comment = await buildComment({ - userId: user.id, - documentId: document.id, - }); - - // Create a different non-admin user on the same team - const otherUser = await buildUser({ teamId: user.teamId }); - const otherAuth = await buildOAuthAuthentication({ - user: otherUser, - scope: [Scope.Read, Scope.Write, Scope.Create], - }); - - const res = await callMcpTool( - server, - otherAuth.accessToken!, - "delete_comment", - { id: comment.id } - ); - - expect(res?.result?.isError).toBe(true); - }); - }); - - describe("attachment tools", () => { - it("create_attachment returns absolute uploadUrl and proxied attachment url", async () => { - const { accessToken } = await buildOAuthUser(); - const res = await callMcpTool(server, accessToken, "create_attachment", { - contentType: "image/png", - name: "test.png", - size: 1000, - }); - - expect(res?.result?.isError).toBeFalsy(); - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - - expect(data.uploadUrl).toMatch(/^https?:\/\//); - expect(data.attachment.url).toMatch(/^https?:\/\//); - expect(data.attachment.url).toContain("/api/attachments.redirect?id="); - expect(data.curlCommand).toContain(data.uploadUrl); - }); - - it("create_attachment persists attachment record", async () => { - const { user, accessToken } = await buildOAuthUser(); - const res = await callMcpTool(server, accessToken, "create_attachment", { - contentType: "image/png", - name: "test.png", - size: 1000, - }); - - const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); - const attachment = await Attachment.findByPk(data.attachment.id, { - rejectOnEmpty: true, - }); - expect(Number(attachment.size)).toEqual(1000); - expect(attachment.contentType).toEqual("image/png"); - expect(attachment.userId).toEqual(user.id); - expect(attachment.teamId).toEqual(user.teamId); - }); - - it("create_attachment rejects size larger than max", async () => { - const { accessToken } = await buildOAuthUser(); - const res = await callMcpTool(server, accessToken, "create_attachment", { - contentType: "image/png", - name: "huge.png", - size: 10_000_000_000, - }); - expect(res?.result?.isError).toBe(true); - }); - - it("create_attachment rejects negative size", async () => { - const { accessToken } = await buildOAuthUser(); - const res = await callMcpTool(server, accessToken, "create_attachment", { - contentType: "image/png", - name: "neg.png", - size: -1, - }); - expect(res?.error ?? res?.result?.isError).toBeTruthy(); - }); - - it("create_attachment rejects fractional size", async () => { - const { accessToken } = await buildOAuthUser(); - const res = await callMcpTool(server, accessToken, "create_attachment", { - contentType: "image/png", - name: "frac.png", - size: 1.5, - }); - expect(res?.error ?? res?.result?.isError).toBeTruthy(); - }); - - it("read-only token does not have create_attachment tool", async () => { - const user = await buildUser(); - const auth = await buildOAuthAuthentication({ - user, - scope: [Scope.Read], - }); - const res = await callMcpTool( - server, - auth.accessToken!, - "create_attachment", - { - contentType: "image/png", - name: "test.png", - size: 1000, - } - ); - expect(res?.result?.isError).toBe(true); - }); - }); - describe("scope enforcement", () => { async function buildScopedOAuthUser(scope: Scope[]) { const user = await buildUser(); diff --git a/server/test/McpHelper.ts b/server/test/McpHelper.ts index ecef88d9e6..a45934b711 100644 --- a/server/test/McpHelper.ts +++ b/server/test/McpHelper.ts @@ -1,8 +1,31 @@ // eslint-disable no-restricted-imports import type { Response } from "node-fetch"; +import { Scope } from "@shared/types"; +import { buildAdmin, buildOAuthAuthentication, buildUser } from "./factories"; let nextId = 1; +/** + * Builds a user and an OAuth access token with read/write/create scopes for + * use with the MCP test helpers. + * + * @param overrides - optional team id and role overrides. + * @returns the created user and their access token. + */ +export async function buildOAuthUser( + overrides: { teamId?: string; role?: string } = {} +) { + const user = + overrides.role === "admin" + ? await buildAdmin(overrides.teamId ? { teamId: overrides.teamId } : {}) + : await buildUser(overrides.teamId ? { teamId: overrides.teamId } : {}); + const auth = await buildOAuthAuthentication({ + user, + scope: [Scope.Read, Scope.Write, Scope.Create], + }); + return { user, accessToken: auth.accessToken! }; +} + /** * Returns HTTP headers required for MCP requests with OAuth authentication. * diff --git a/server/tools/attachments.test.ts b/server/tools/attachments.test.ts new file mode 100644 index 0000000000..158f187347 --- /dev/null +++ b/server/tools/attachments.test.ts @@ -0,0 +1,93 @@ +import { Scope } from "@shared/types"; +import { Attachment } from "@server/models"; +import { buildOAuthAuthentication, buildUser } from "@server/test/factories"; +import { getTestServer } from "@server/test/support"; +import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; + +const server = getTestServer(); + +describe("create_attachment", () => { + it("returns absolute uploadUrl and proxied attachment url", async () => { + const { accessToken } = await buildOAuthUser(); + const res = await callMcpTool(server, accessToken, "create_attachment", { + contentType: "image/png", + name: "test.png", + size: 1000, + }); + + expect(res?.result?.isError).toBeFalsy(); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.uploadUrl).toMatch(/^https?:\/\//); + expect(data.attachment.url).toMatch(/^https?:\/\//); + expect(data.attachment.url).toContain("/api/attachments.redirect?id="); + expect(data.curlCommand).toContain(data.uploadUrl); + }); + + it("persists attachment record", async () => { + const { user, accessToken } = await buildOAuthUser(); + const res = await callMcpTool(server, accessToken, "create_attachment", { + contentType: "image/png", + name: "test.png", + size: 1000, + }); + + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + const attachment = await Attachment.findByPk(data.attachment.id, { + rejectOnEmpty: true, + }); + expect(Number(attachment.size)).toEqual(1000); + expect(attachment.contentType).toEqual("image/png"); + expect(attachment.userId).toEqual(user.id); + expect(attachment.teamId).toEqual(user.teamId); + }); + + it("rejects size larger than max", async () => { + const { accessToken } = await buildOAuthUser(); + const res = await callMcpTool(server, accessToken, "create_attachment", { + contentType: "image/png", + name: "huge.png", + size: 10_000_000_000, + }); + expect(res?.result?.isError).toBe(true); + }); + + it("rejects negative size", async () => { + const { accessToken } = await buildOAuthUser(); + const res = await callMcpTool(server, accessToken, "create_attachment", { + contentType: "image/png", + name: "neg.png", + size: -1, + }); + expect(res?.error ?? res?.result?.isError).toBeTruthy(); + }); + + it("rejects fractional size", async () => { + const { accessToken } = await buildOAuthUser(); + const res = await callMcpTool(server, accessToken, "create_attachment", { + contentType: "image/png", + name: "frac.png", + size: 1.5, + }); + expect(res?.error ?? res?.result?.isError).toBeTruthy(); + }); + + it("read-only token does not have create_attachment tool", async () => { + const user = await buildUser(); + const auth = await buildOAuthAuthentication({ + user, + scope: [Scope.Read], + }); + const res = await callMcpTool( + server, + auth.accessToken!, + "create_attachment", + { + contentType: "image/png", + name: "test.png", + size: 1000, + } + ); + expect(res?.result?.isError).toBe(true); + }); +}); diff --git a/server/tools/collections.test.ts b/server/tools/collections.test.ts new file mode 100644 index 0000000000..053093862e --- /dev/null +++ b/server/tools/collections.test.ts @@ -0,0 +1,82 @@ +import { buildCollection, buildUser } from "@server/test/factories"; +import { getTestServer } from "@server/test/support"; +import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; + +const server = getTestServer(); + +describe("collection tools", () => { + it("list_collections returns user collections", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + + const res = await callMcpTool(server, accessToken, "list_collections"); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + expect(data.length).toBeGreaterThanOrEqual(1); + const ids = data.map((c: { id: string }) => c.id); + expect(ids).toContain(collection.id); + + const match = data.find((c: { id: string }) => c.id === collection.id) as { + url: string; + }; + expect(match.url).toMatch(/^https?:\/\//); + }); + + it("list_collections does not return collections from another team", async () => { + const { accessToken } = await buildOAuthUser(); + const otherUser = await buildUser(); + const otherCollection = await buildCollection({ + teamId: otherUser.teamId, + userId: otherUser.id, + }); + + const res = await callMcpTool(server, accessToken, "list_collections"); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const ids = data.map((c: { id: string }) => c.id); + expect(ids).not.toContain(otherCollection.id); + }); + + it("create_collection creates with name, description, icon, color", async () => { + const { accessToken } = await buildOAuthUser(); + + const res = await callMcpTool(server, accessToken, "create_collection", { + name: "Test Collection", + description: "A test description", + icon: "rocket", + color: "#FF0000", + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.name).toEqual("Test Collection"); + expect(data.icon).toEqual("rocket"); + expect(data.color).toEqual("#FF0000"); + expect(data.id).toBeDefined(); + expect(data.url).toMatch(/^https?:\/\//); + }); + + it("update_collection updates fields on existing collection", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + + const res = await callMcpTool(server, accessToken, "update_collection", { + id: collection.id, + name: "Updated Name", + description: "Updated description", + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.name).toEqual("Updated Name"); + expect(data.url).toMatch(/^https?:\/\//); + }); +}); diff --git a/server/tools/comments.test.ts b/server/tools/comments.test.ts new file mode 100644 index 0000000000..4a3a0d7f5d --- /dev/null +++ b/server/tools/comments.test.ts @@ -0,0 +1,322 @@ +import { Scope } from "@shared/types"; +import type { ProsemirrorData } from "@shared/types"; +import { + buildCollection, + buildComment, + buildCommentMark, + buildDocument, + buildOAuthAuthentication, + buildUser, +} from "@server/test/factories"; +import { getTestServer } from "@server/test/support"; +import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; + +const server = getTestServer(); + +describe("list_comments", () => { + it("returns comments on a document", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const comment = await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const res = await callMcpTool(server, accessToken, "list_comments", { + documentId: document.id, + }); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const ids = data.map((c: { id: string }) => c.id); + expect(ids).toContain(comment.id); + }); + + it("includes anchorText when comment is anchored", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const comment = await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const anchorText = "highlighted text"; + const content = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: anchorText, + marks: [buildCommentMark({ id: comment.id, userId: user.id })], + }, + ], + }, + ], + } as ProsemirrorData; + await document.update({ content }); + + const res = await callMcpTool(server, accessToken, "list_comments", { + documentId: document.id, + }); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const match = data.find((c: { id: string }) => c.id === comment.id) as { + anchorText: string; + }; + expect(match).toBeDefined(); + expect(match.anchorText).toEqual(anchorText); + }); + + it("returns undefined anchorText for non-anchored comment", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const res = await callMcpTool(server, accessToken, "list_comments", { + documentId: document.id, + }); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + expect(data.length).toBeGreaterThanOrEqual(1); + expect(data[0].anchorText).toBeUndefined(); + }); +}); + +describe("create_comment", () => { + it("creates a comment on a document", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "create_comment", { + documentId: document.id, + text: "This is a test comment", + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.id).toBeDefined(); + expect(data.documentId).toEqual(document.id); + }); + + it("creates a reply to an existing comment", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const parentComment = await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const res = await callMcpTool(server, accessToken, "create_comment", { + documentId: document.id, + text: "This is a reply", + parentCommentId: parentComment.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.id).toBeDefined(); + expect(data.parentCommentId).toEqual(parentComment.id); + }); + + it("includes anchorText in response", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "create_comment", { + documentId: document.id, + text: "A new comment", + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + // New comments have no anchor mark in the document, so anchorText is undefined + expect(data.id).toBeDefined(); + expect(data.anchorText).toBeUndefined(); + }); +}); + +describe("update_comment", () => { + it("updates text", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const comment = await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const res = await callMcpTool(server, accessToken, "update_comment", { + id: comment.id, + text: "Updated comment text", + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.id).toEqual(comment.id); + expect(data.text).toContain("Updated comment text"); + }); + + it("includes anchorText in response", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const comment = await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const anchorText = "anchored content"; + const content = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: anchorText, + marks: [buildCommentMark({ id: comment.id, userId: user.id })], + }, + ], + }, + ], + } as ProsemirrorData; + await document.update({ content }); + + const res = await callMcpTool(server, accessToken, "update_comment", { + id: comment.id, + text: "Updated text", + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.id).toEqual(comment.id); + expect(data.anchorText).toEqual(anchorText); + }); +}); + +describe("delete_comment", () => { + it("deletes own comment", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const comment = await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const res = await callMcpTool(server, accessToken, "delete_comment", { + id: comment.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.success).toBe(true); + }); + + it("fails for non-author non-admin", async () => { + const { user } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const comment = await buildComment({ + userId: user.id, + documentId: document.id, + }); + + const otherUser = await buildUser({ teamId: user.teamId }); + const otherAuth = await buildOAuthAuthentication({ + user: otherUser, + scope: [Scope.Read, Scope.Write, Scope.Create], + }); + + const res = await callMcpTool( + server, + otherAuth.accessToken!, + "delete_comment", + { id: comment.id } + ); + + expect(res?.result?.isError).toBe(true); + }); +}); diff --git a/server/tools/documents.test.ts b/server/tools/documents.test.ts new file mode 100644 index 0000000000..826ba1a428 --- /dev/null +++ b/server/tools/documents.test.ts @@ -0,0 +1,365 @@ +import { CollectionPermission, Scope } from "@shared/types"; +import { + buildUser, + buildCollection, + buildDocument, + buildOAuthAuthentication, +} from "@server/test/factories"; +import { getTestServer } from "@server/test/support"; +import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; + +const server = getTestServer(); + +describe("list_documents", () => { + it("returns recent documents", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "list_documents"); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const ids = data.map((d: { document: { id: string } }) => d.document.id); + expect(ids).toContain(document.id); + + const match = data.find( + (d: { document: { id: string } }) => d.document.id === document.id + ) as { document: { url: string } }; + expect(match.document.url).toMatch(/^https?:\/\//); + }); + + it("filters by collection", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection1 = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const collection2 = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const doc1 = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection1.id, + }); + await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection2.id, + }); + + const res = await callMcpTool(server, accessToken, "list_documents", { + collectionId: collection1.id, + }); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const ids = data.map((d: { document: { id: string } }) => d.document.id); + expect(ids).toContain(doc1.id); + expect( + data.every( + (d: { document: { collectionId: string } }) => + d.document.collectionId === collection1.id + ) + ).toBe(true); + }); + + it("does not return private documents via exact urlId match", async () => { + const owner = await buildUser(); + const otherUser = await buildUser({ teamId: owner.teamId }); + + const privateCollection = await buildCollection({ + teamId: owner.teamId, + userId: owner.id, + permission: null, + }); + const privateDocument = await buildDocument({ + teamId: owner.teamId, + userId: owner.id, + collectionId: privateCollection.id, + title: "Confidential", + }); + + const auth = await buildOAuthAuthentication({ + user: otherUser, + scope: [Scope.Read], + }); + + const res = await callMcpTool(server, auth.accessToken!, "list_documents", { + query: privateDocument.urlId, + }); + + const data = (res?.result?.content ?? []).map((c: { text?: string }) => + JSON.parse(c.text ?? "{}") + ); + const ids = data.map((d: { document: { id: string } }) => d.document.id); + + expect(res?.result?.isError).not.toBe(true); + expect(ids).not.toContain(privateDocument.id); + }); + + it("returns documents via exact urlId match when the user has access", async () => { + const user = await buildUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + permission: CollectionPermission.ReadWrite, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const auth = await buildOAuthAuthentication({ + user, + scope: [Scope.Read], + }); + + const res = await callMcpTool(server, auth.accessToken!, "list_documents", { + query: document.urlId, + }); + + const data = (res?.result?.content ?? []).map((c: { text?: string }) => + JSON.parse(c.text ?? "{}") + ); + const ids = data.map((d: { document: { id: string } }) => d.document.id); + + expect(ids).toContain(document.id); + }); +}); + +describe("create_document", () => { + it("creates in a collection", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + + const res = await callMcpTool(server, accessToken, "create_document", { + title: "New Document", + text: "Hello world", + collectionId: collection.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.document.title).toEqual("New Document"); + expect(data.document.collectionId).toEqual(collection.id); + expect(data.document.id).toBeDefined(); + expect(data.document.url).toMatch(/^https?:\/\//); + }); + + it("creates nested under parent document", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const parent = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "create_document", { + title: "Child Document", + text: "Nested content", + parentDocumentId: parent.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.document.title).toEqual("Child Document"); + expect(data.document.parentDocumentId).toEqual(parent.id); + }); +}); + +describe("update_document", () => { + it("updates title and text", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "update_document", { + id: document.id, + title: "Updated Title", + text: "Updated content", + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.document.title).toEqual("Updated Title"); + expect(data.document.url).toMatch(/^https?:\/\//); + }); + + it("unpublishes a document", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "update_document", { + id: document.id, + publish: false, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(data.document.id).toEqual(document.id); + expect(res?.result?.isError).toBeUndefined(); + }); + + it("fails to unpublish a document with children", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + parentDocumentId: document.id, + }); + + const res = await callMcpTool(server, accessToken, "update_document", { + id: document.id, + publish: false, + }); + + expect(res?.result?.isError).toBe(true); + }); +}); + +describe("move_document", () => { + it("moves to a different collection", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection1 = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const collection2 = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection1.id, + }); + + const res = await callMcpTool(server, accessToken, "move_document", { + id: document.id, + collectionId: collection2.id, + }); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + expect(res?.result?.isError).toBeUndefined(); + const moved = data.find( + (d: { document: { id: string } }) => d.document.id === document.id + ) as { document: { collectionId: string } }; + expect(moved).toBeDefined(); + expect(moved.document.collectionId).toEqual(collection2.id); + }); + + it("moves under a parent document", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const parent = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const child = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "move_document", { + id: child.id, + parentDocumentId: parent.id, + }); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + expect(res?.result?.isError).toBeUndefined(); + const moved = data.find( + (d: { document: { id: string } }) => d.document.id === child.id + ) as { document: { parentDocumentId: string } }; + expect(moved).toBeDefined(); + expect(moved.document.parentDocumentId).toEqual(parent.id); + }); + + it("fails without collectionId or parentDocumentId", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "move_document", { + id: document.id, + }); + + expect(res?.result?.isError).toBe(true); + }); + + it("fails when nesting a document inside itself", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "move_document", { + id: document.id, + parentDocumentId: document.id, + }); + + expect(res?.result?.isError).toBe(true); + }); +}); diff --git a/server/tools/documents.ts b/server/tools/documents.ts index 00f807f407..30bde79273 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -7,7 +7,7 @@ import documentUpdater from "@server/commands/documentUpdater"; import { Op } from "sequelize"; import { Collection, Document } from "@server/models"; import { sequelize } from "@server/storage/database"; -import { authorize } from "@server/policies"; +import { authorize, can } from "@server/policies"; import { presentDocument, presentNavigationNode } from "@server/presenters"; import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; import { UrlHelper } from "@shared/utils/UrlHelper"; @@ -101,6 +101,9 @@ export function documentTools(server: McpServer, scopes: string[]) { exactMatch = await Document.findByPk(query, { userId: user.id, }); + if (exactMatch && !can(user, "read", exactMatch)) { + exactMatch = null; + } if ( exactMatch && collectionId && diff --git a/server/tools/fetch.test.ts b/server/tools/fetch.test.ts new file mode 100644 index 0000000000..3209a4d7b0 --- /dev/null +++ b/server/tools/fetch.test.ts @@ -0,0 +1,58 @@ +import { buildCollection, buildDocument } from "@server/test/factories"; +import { getTestServer } from "@server/test/support"; +import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; + +const server = getTestServer(); + +describe("fetch", () => { + it("returns collection details", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + + const res = await callMcpTool(server, accessToken, "fetch", { + resource: "collection", + id: collection.id, + }); + + expect(res?.result?.content).toBeDefined(); + expect(res!.result!.content!.length).toBeGreaterThanOrEqual(1); + + const data = JSON.parse(res!.result!.content![0].text ?? "{}"); + expect(data.id).toEqual(collection.id); + expect(data.url).toMatch(/^https?:\/\//); + }); + + it("returns document metadata and markdown", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + text: "# Hello\n\nWorld", + }); + + const res = await callMcpTool(server, accessToken, "fetch", { + resource: "document", + id: document.id, + }); + + expect(res?.result?.content).toBeDefined(); + expect(res!.result!.content!.length).toEqual(2); + + // First content is JSON metadata + const metadata = JSON.parse(res!.result!.content![0].text ?? "{}"); + expect(metadata.document.id).toEqual(document.id); + expect(metadata.document.title).toEqual(document.title); + expect(metadata.document.url).toMatch(/^https?:\/\//); + + // Second content is markdown text + expect(res!.result!.content![1].text).toContain("Hello"); + }); +}); From 954946ae12208c7d8ee938581f2cb683db464be1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 13 May 2026 21:14:42 -0400 Subject: [PATCH 029/286] fix: Re-render Mermaid diagrams in light theme for print (#12342) * fix: Re-render Mermaid diagrams in light theme for print Mermaid diagrams are rendered as SVG with theme-specific colors baked in, so when printing from dark mode the dark backgrounds carry through onto white paper. Listen for beforeprint/afterprint and re-dispatch the existing theme-changed event so the Mermaid plugin re-renders the diagrams in light theme for the duration of the print, then restores them after. The in-app print action also pre-dispatches the theme change to give Mermaid's async render time to complete before the print dialog captures the DOM. * Refactor to use media query --------- --- app/components/Theme.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/components/Theme.tsx b/app/components/Theme.tsx index 21cd192c12..3c6051fa5c 100644 --- a/app/components/Theme.tsx +++ b/app/components/Theme.tsx @@ -31,6 +31,26 @@ const Theme: React.FC = ({ children }: Props) => { ); }, [ui.resolvedTheme]); + // Some editor elements such as Mermaid diagrams rely on theme-changed event + // to render the correct color. + // Listen on the print media query, which fires consistently for both the + // print dialog and print preview. + React.useEffect(() => { + const mediaQuery = window.matchMedia("print"); + const handleChange = (event: MediaQueryListEvent) => { + window.dispatchEvent( + new CustomEvent("theme-changed", { + detail: { + isDark: event.matches ? false : ui.resolvedTheme === "dark", + }, + }) + ); + }; + + mediaQuery.addEventListener("change", handleChange); + return () => mediaQuery.removeEventListener("change", handleChange); + }, [ui.resolvedTheme]); + return ( <DirectionProvider dir={direction}> <ThemeProvider theme={theme}> From 9db539dfce3f70077cd199d8cdaf1f0416cb45bb Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 14 May 2026 09:08:58 -0400 Subject: [PATCH 030/286] fix: Disabling of authorization providers with env (#12349) * fix: Disabling of authorization providers with env * fix: type error in authenticationProviders delete test Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- .../authenticationProviders.test.ts | 30 ++++++++++++++++++- .../authenticationProviders.ts | 9 +++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/server/routes/api/authenticationProviders/authenticationProviders.test.ts b/server/routes/api/authenticationProviders/authenticationProviders.test.ts index b18fbcc755..bf2f175a35 100644 --- a/server/routes/api/authenticationProviders/authenticationProviders.test.ts +++ b/server/routes/api/authenticationProviders/authenticationProviders.test.ts @@ -1,4 +1,7 @@ import { randomUUID } from "node:crypto"; +import sharedEnv from "@shared/env"; +import env from "@server/env"; +import { AuthenticationProvider } from "@server/models"; import { buildUser, buildAdmin, buildTeam } from "@server/test/factories"; import { getTestServer, setSelfHosted } from "@server/test/support"; @@ -6,6 +9,10 @@ const server = getTestServer(); beforeEach(setSelfHosted); +function setCloudHosted() { + env.URL = sharedEnv.URL = "https://app.getoutline.com"; +} + describe("#authenticationProviders.info", () => { it("should return auth provider", async () => { const team = await buildTeam(); @@ -154,7 +161,28 @@ describe("#authenticationProviders.list", () => { }); describe("#authenticationProviders.delete", () => { - it("should allow admins to delete authentication provider", async () => { + it("should disable the provider on self-hosted and keep the row", async () => { + const team = await buildTeam(); + const user = await buildAdmin({ + teamId: team.id, + }); + const googleProvider = await team.$create("authenticationProvider", { + name: "google", + providerId: randomUUID(), + }); + const res = await server.post("/api/authenticationProviders.delete", { + body: { + id: googleProvider.id, + token: user.getJwtToken(), + }, + }); + expect(res.status).toEqual(200); + const reloaded = await AuthenticationProvider.findByPk(googleProvider.id); + expect(reloaded?.enabled).toBe(false); + }); + + it("should destroy the provider on cloud hosted", async () => { + setCloudHosted(); const team = await buildTeam(); const user = await buildAdmin({ teamId: team.id, diff --git a/server/routes/api/authenticationProviders/authenticationProviders.ts b/server/routes/api/authenticationProviders/authenticationProviders.ts index d162ed28bb..0edafe8bb8 100644 --- a/server/routes/api/authenticationProviders/authenticationProviders.ts +++ b/server/routes/api/authenticationProviders/authenticationProviders.ts @@ -1,5 +1,6 @@ import Router from "koa-router"; import { UserRole } from "@shared/types"; +import env from "@server/env"; import auth from "@server/middlewares/authentication"; import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; @@ -98,7 +99,13 @@ router.post( await authenticationProvider.disable(ctx); } - await authenticationProvider.destroy({ transaction }); + // On self-hosted, providers are typically registered via env vars and + // would re-appear on the login screen if the row was destroyed, so we + // keep the row with enabled=false. On cloud, destroy the row so the + // admin can reconnect with a different workspace. + if (env.isCloudHosted) { + await authenticationProvider.destroy({ transaction }); + } ctx.body = { success: true, From 246aa83071ee91c3b4822a5f89c49a463d6048a1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 14 May 2026 19:34:40 -0400 Subject: [PATCH 031/286] fix: Potential fix for mis-sized mermaid diagrams (#12354) closes #11874 --- shared/editor/extensions/Mermaid.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/editor/extensions/Mermaid.ts b/shared/editor/extensions/Mermaid.ts index e31c00d667..916e10d013 100644 --- a/shared/editor/extensions/Mermaid.ts +++ b/shared/editor/extensions/Mermaid.ts @@ -168,7 +168,8 @@ class MermaidRenderer { renderElement.style.visibility = "hidden"; renderElement.style.top = "0"; renderElement.style.left = "0"; - renderElement.style.width = "100%"; + const width = this.editor.view?.dom.clientWidth ?? window.innerWidth; + renderElement.style.width = `${width}px`; renderElement.style.zIndex = "-1"; document.body.appendChild(renderElement); From 061ba4625586e60e9b87d6e3d543cd5e7dee17e1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 14 May 2026 21:02:12 -0400 Subject: [PATCH 032/286] fix: Unable to link secondary auth provider on custom domain (#12356) * fix: Unable to link secondary auth provider on custom domain * doc --- app/scenes/Login/Login.tsx | 3 +- .../components/AuthenticationProvider.tsx | 2 +- app/scenes/Login/urls.ts | 26 ----------------- app/scenes/Settings/Authentication.tsx | 3 +- app/utils/urls.ts | 29 +++++++++++++++++++ 5 files changed, 34 insertions(+), 29 deletions(-) diff --git a/app/scenes/Login/Login.tsx b/app/scenes/Login/Login.tsx index 423ea1b7ab..9576208cd0 100644 --- a/app/scenes/Login/Login.tsx +++ b/app/scenes/Login/Login.tsx @@ -40,8 +40,9 @@ import { BackButton } from "./components/BackButton"; import { Background } from "./components/Background"; import { Centered } from "./components/Centered"; import { Notices } from "./components/Notices"; -import { getRedirectUrl, navigateToSubdomain } from "./urls"; +import { navigateToSubdomain } from "./urls"; import lazyWithRetry from "~/utils/lazyWithRetry"; +import { getRedirectUrl } from "~/utils/urls"; const WorkspaceSetup = lazyWithRetry( () => import("./components/WorkspaceSetup") diff --git a/app/scenes/Login/components/AuthenticationProvider.tsx b/app/scenes/Login/components/AuthenticationProvider.tsx index f23ff39262..00ad9cf7b2 100644 --- a/app/scenes/Login/components/AuthenticationProvider.tsx +++ b/app/scenes/Login/components/AuthenticationProvider.tsx @@ -11,7 +11,7 @@ import PluginIcon from "~/components/PluginIcon"; import Tooltip from "~/components/Tooltip"; import { client } from "~/utils/ApiClient"; import Desktop from "~/utils/Desktop"; -import { getRedirectUrl } from "../urls"; +import { getRedirectUrl } from "~/utils/urls"; import { CSRF } from "@shared/constants"; import { getCookie } from "tiny-cookie"; diff --git a/app/scenes/Login/urls.ts b/app/scenes/Login/urls.ts index 81a3fd92e1..fe1328a358 100644 --- a/app/scenes/Login/urls.ts +++ b/app/scenes/Login/urls.ts @@ -1,6 +1,3 @@ -import { Client } from "@shared/types"; -import { parseDomain } from "@shared/utils/domains"; -import env from "~/env"; import Desktop from "~/utils/Desktop"; function validateAndEncodeSubdomain(subdomain: string): string { @@ -12,29 +9,6 @@ function validateAndEncodeSubdomain(subdomain: string): string { return `https://${encodedSubdomain}.getoutline.com`; } -/** - * If we're on a custom domain or a subdomain then the auth must point to the - * apex (env.URL) for authentication so that the state cookie can be set and read. - * We pass the host into the auth URL so that the server can redirect on error - * and keep the user on the same page. - * - * @param authUrl The URL to redirect to after authentication - */ -export function getRedirectUrl(authUrl: string) { - const { custom, teamSubdomain, host } = parseDomain(window.location.origin); - const url = new URL(env.URL); - url.pathname = authUrl; - - if (custom || teamSubdomain) { - url.searchParams.set("host", host); - } - if (Desktop.isElectron()) { - url.searchParams.set("client", Client.Desktop); - } - - return url.toString(); -} - /** * Redirect to a subdomain, adding it to the custom hosts list on desktop first. * diff --git a/app/scenes/Settings/Authentication.tsx b/app/scenes/Settings/Authentication.tsx index 08c6c52c1f..07d92e3b41 100644 --- a/app/scenes/Settings/Authentication.tsx +++ b/app/scenes/Settings/Authentication.tsx @@ -19,6 +19,7 @@ import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; import SettingRow from "./components/SettingRow"; import { setPostLoginPath } from "~/hooks/useLastVisitedPath"; +import { getRedirectUrl } from "~/utils/urls"; import { settingsPath } from "~/utils/routeHelpers"; import DomainManagement from "./components/DomainManagement"; import Button from "~/components/Button"; @@ -97,7 +98,7 @@ function Authentication() { const handleConnectProvider = React.useCallback((name: string) => { setPostLoginPath(settingsPath("authentication")); - window.location.href = `/auth/${name}?host=${window.location.host}`; + window.location.href = getRedirectUrl(`/auth/${name}`); }, []); const handleToggleGroupSync = React.useCallback( diff --git a/app/utils/urls.ts b/app/utils/urls.ts index fe4e3a548e..6aed3f9ee3 100644 --- a/app/utils/urls.ts +++ b/app/utils/urls.ts @@ -1,3 +1,32 @@ +import { Client } from "@shared/types"; +import { parseDomain } from "@shared/utils/domains"; +import env from "~/env"; +import Desktop from "~/utils/Desktop"; + +/** + * Builds an absolute auth redirect URL against the apex (env.URL). When the + * user is on a custom domain or team subdomain the auth flow must start on the + * apex so that the OAuth state cookie can be set and later read by the + * callback. The originating host is forwarded as a query param so the server + * can return the user to the same page on error or after sign-in. + * + * @param authUrl The auth endpoint path to redirect to (e.g. "/auth/google"). + */ +export function getRedirectUrl(authUrl: string) { + const { custom, teamSubdomain, host } = parseDomain(window.location.origin); + const url = new URL(env.URL); + url.pathname = authUrl; + + if (custom || teamSubdomain) { + url.searchParams.set("host", host); + } + if (Desktop.isElectron()) { + url.searchParams.set("client", Client.Desktop); + } + + return url.toString(); +} + export function isHash(href: string) { if (href[0] === "#") { return true; From 2fb34a400d125404291a9fe46c3155d221f60817 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 14 May 2026 23:37:55 -0400 Subject: [PATCH 033/286] fix: Improve resilience of markdown importer (#12357) --- server/queues/tasks/ImportMarkdownZipTask.ts | 140 +++++++++++-------- 1 file changed, 80 insertions(+), 60 deletions(-) diff --git a/server/queues/tasks/ImportMarkdownZipTask.ts b/server/queues/tasks/ImportMarkdownZipTask.ts index 8a05a10854..88883c09de 100644 --- a/server/queues/tasks/ImportMarkdownZipTask.ts +++ b/server/queues/tasks/ImportMarkdownZipTask.ts @@ -39,6 +39,10 @@ export default class ImportMarkdownZipTask extends ImportTask { return false; } + if (node.title.toLowerCase() === "attachments") { + return true; + } + return node.children.every((child) => { // If child has children, it's a folder - recurse to check its contents if (child.children.length > 0) { @@ -113,71 +117,69 @@ export default class ImportMarkdownZipTask extends ImportTask { collectionId: string, parentDocumentId?: string ): Promise<void> => { - await Promise.all( - children.map(async (child) => { - // special case for folders of attachments - detect by content - if (child.children.length > 0 && this.isAttachmentFolder(child)) { - this.parseAttachmentFolder(child, output); - return; - } + for (const child of children) { + // special case for folders of attachments - detect by content + if (child.children.length > 0 && this.isAttachmentFolder(child)) { + this.parseAttachmentFolder(child, output); + continue; + } - const id = randomUUID(); + const id = randomUUID(); - const { title, icon, text } = await sequelize.transaction( - async (transaction) => - documentImporter({ - mimeType: "text/markdown", - fileName: child.name, - content: - child.children.length > 0 - ? "" - : await fs.readFile(child.path, "utf8"), - user, - ctx: createContext({ user, transaction }), - }) - ); - - const existingDocumentIndex = output.documents.findIndex( - (doc) => - doc.title === title && - doc.collectionId === collectionId && - doc.parentDocumentId === parentDocumentId - ); - - const existingDocument = output.documents[existingDocumentIndex]; - - // When there is a file and a folder with the same name this handles - // the case by combining the two into one document with nested children - if (existingDocument) { - docPathToIdMap.set(child.path, existingDocument.id); - - if (existingDocument.text === "") { - output.documents[existingDocumentIndex].text = text; - } - - await parseNodeChildren( - child.children, - collectionId, - existingDocument.id - ); - } else { - docPathToIdMap.set(child.path, id); - - output.documents.push({ - id, - title, - icon, - text, - collectionId, - parentDocumentId, - path: child.path, + const { title, icon, text } = await sequelize.transaction( + async (transaction) => + documentImporter({ mimeType: "text/markdown", - }); + fileName: child.name, + content: + child.children.length > 0 + ? "" + : await fs.readFile(child.path, "utf8"), + user, + ctx: createContext({ user, transaction }), + }) + ); - await parseNodeChildren(child.children, collectionId, id); + const existingDocumentIndex = output.documents.findIndex( + (doc) => + doc.title === title && + doc.collectionId === collectionId && + doc.parentDocumentId === parentDocumentId + ); + + const existingDocument = output.documents[existingDocumentIndex]; + + // When there is a file and a folder with the same name this handles + // the case by combining the two into one document with nested children + if (existingDocument) { + docPathToIdMap.set(child.path, existingDocument.id); + + if (existingDocument.text === "") { + output.documents[existingDocumentIndex].text = text; } - }) - ); + + await parseNodeChildren( + child.children, + collectionId, + existingDocument.id + ); + } else { + docPathToIdMap.set(child.path, id); + + output.documents.push({ + id, + title, + icon, + text, + collectionId, + parentDocumentId, + path: child.path, + mimeType: "text/markdown", + }); + + await parseNodeChildren(child.children, collectionId, id); + } + } }; // All nodes in the root level should be collections @@ -235,6 +237,24 @@ export default class ImportMarkdownZipTask extends ImportTask { new RegExp(`\\.?/?${escapeRegExp(genericNormalizedPath)}`, "g"), reference ); + + // Handle markdown links that reference attachments via a path rooted + // at an "attachments" folder, optionally prefixed with "./", e.g. + // ./attachments/foo.png or ./attachments/sub/foo.png. + const segments = attachment.path.split(path.sep); + const attachmentsIdx = segments.findIndex( + (seg) => seg.toLowerCase() === "attachments" + ); + if (attachmentsIdx >= 0) { + const relFromAttachments = segments.slice(attachmentsIdx).join("/"); + document.text = document.text.replace( + new RegExp( + `\\.?/?${escapeRegExp(encodeURI(relFromAttachments))}`, + "g" + ), + reference + ); + } } const basePath = path.dirname(document.path); From a5c22bbb09170912893e1fded5bf855b88ddef92 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 16 May 2026 08:42:48 -0400 Subject: [PATCH 034/286] feat(mcp): Add `commentCount` to document info response (#12355) * Add commentsCount to MCP document info response * fix: refine MCP document comment counts --- ...0000-cascade-resolved-to-reply-comments.js | 20 ++++ server/models/Comment.test.ts | 99 +++++++++++++++++++ server/models/Comment.ts | 83 +++++++++++++++- server/models/Document.test.ts | 99 +++++++++++++++++++ server/models/Document.ts | 9 ++ server/presenters/document.ts | 6 ++ server/tools/documents.test.ts | 3 + server/tools/documents.ts | 37 +++++-- server/tools/fetch.test.ts | 41 +++++++- server/tools/fetch.ts | 5 +- 10 files changed, 391 insertions(+), 11 deletions(-) create mode 100644 server/migrations/20260514000000-cascade-resolved-to-reply-comments.js diff --git a/server/migrations/20260514000000-cascade-resolved-to-reply-comments.js b/server/migrations/20260514000000-cascade-resolved-to-reply-comments.js new file mode 100644 index 0000000000..8c41c22563 --- /dev/null +++ b/server/migrations/20260514000000-cascade-resolved-to-reply-comments.js @@ -0,0 +1,20 @@ +"use strict"; + +module.exports = { + async up(queryInterface) { + await queryInterface.sequelize.query(` + UPDATE comments AS reply + SET "resolvedAt" = parent."resolvedAt", + "resolvedById" = parent."resolvedById" + FROM comments AS parent + WHERE reply."parentCommentId" = parent.id + AND parent."resolvedAt" IS NOT NULL + AND reply."resolvedAt" IS NULL; + `); + }, + + async down() { + // No-op: the inherited resolved state on replies is now load-bearing for + // the unresolved commentCount counter cache, so it cannot safely be undone. + }, +}; diff --git a/server/models/Comment.test.ts b/server/models/Comment.test.ts index 1b5799d530..15d0a76a7b 100644 --- a/server/models/Comment.test.ts +++ b/server/models/Comment.test.ts @@ -186,4 +186,103 @@ describe("Comment", () => { expect(() => comment.unresolve()).toThrow(); }); }); + + describe("cascade resolved state", () => { + it("propagates resolvedAt to existing replies when the thread is resolved", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const thread = await buildComment({ + userId: user.id, + documentId: document.id, + }); + const reply = await buildComment({ + userId: user.id, + documentId: document.id, + parentCommentId: thread.id, + }); + + thread.resolve(user); + await thread.save(); + + await reply.reload(); + expect(reply.resolvedAt).toEqual(thread.resolvedAt); + expect(reply.resolvedById).toEqual(user.id); + }); + + it("clears resolvedAt on replies when the thread is unresolved", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const thread = await buildComment({ + userId: user.id, + documentId: document.id, + }); + const reply = await buildComment({ + userId: user.id, + documentId: document.id, + parentCommentId: thread.id, + }); + + thread.resolve(user); + await thread.save(); + thread.unresolve(); + await thread.save(); + + await reply.reload(); + expect(reply.resolvedAt).toBeNull(); + expect(reply.resolvedById).toBeNull(); + }); + + it("inherits resolved state when a reply is created on a resolved thread", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const thread = await buildComment({ + userId: user.id, + documentId: document.id, + }); + thread.resolve(user); + await thread.save(); + + const reply = await buildComment({ + userId: user.id, + documentId: document.id, + parentCommentId: thread.id, + }); + + expect(reply.resolvedAt).toEqual(thread.resolvedAt); + expect(reply.resolvedById).toEqual(user.id); + }); + + it("rejects replies to comments in a different document", async () => { + const user = await buildUser(); + const document = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const otherDocument = await buildDocument({ + userId: user.id, + teamId: user.teamId, + }); + const thread = await buildComment({ + userId: user.id, + documentId: otherDocument.id, + }); + + await expect( + buildComment({ + userId: user.id, + documentId: document.id, + parentCommentId: thread.id, + }) + ).rejects.toThrow("Parent comment must belong to the same document"); + }); + }); }); diff --git a/server/models/Comment.ts b/server/models/Comment.ts index 59d0a79ef6..5129de6e60 100644 --- a/server/models/Comment.ts +++ b/server/models/Comment.ts @@ -1,20 +1,29 @@ import { Node } from "prosemirror-model"; -import type { InferAttributes, InferCreationAttributes } from "sequelize"; +import type { + CreateOptions, + InferAttributes, + InferCreationAttributes, + InstanceUpdateOptions, +} from "sequelize"; import { DataType, BelongsTo, + BeforeCreate, ForeignKey, Column, Table, Length, DefaultScope, AfterDestroy, + AfterUpdate, } from "sequelize-typescript"; import type { ProsemirrorData, ReactionSummary } from "@shared/types"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { CommentValidation } from "@shared/validations"; import { commentSchema } from "@server/editor"; import { ValidationError } from "@server/errors"; +import { CacheHelper } from "@server/utils/CacheHelper"; +import { RedisPrefixHelper } from "@server/utils/RedisPrefixHelper"; import Document from "./Document"; import User from "./User"; import { type HookContext } from "./base/Model"; @@ -143,6 +152,78 @@ class Comment extends ParanoidModel< // hooks + // A reply created on an already-resolved thread inherits the parent's + // resolved state so the resolvedAt column alone can answer "is this thread + // resolved?" — keeping read queries simple and the counter cache index-only. + @BeforeCreate + public static async inheritResolvedFromParent( + model: Comment, + options: CreateOptions<InferAttributes<Comment>> + ) { + if (!model.parentCommentId || model.resolvedAt) { + return; + } + const parent = await this.unscoped().findOne({ + where: { + id: model.parentCommentId, + documentId: model.documentId, + }, + transaction: options.transaction, + lock: options.transaction + ? { level: options.transaction.LOCK.UPDATE, of: this } + : undefined, + }); + if (!parent) { + throw ValidationError("Parent comment must belong to the same document"); + } + if (parent?.resolvedAt) { + model.resolvedAt = parent.resolvedAt; + model.resolvedById = parent.resolvedById; + } + } + + // When a thread root is resolved or unresolved, propagate the same state to + // its replies and invalidate the document's commentCount counter cache. + @AfterUpdate + public static async cascadeResolvedToReplies( + model: Comment, + options: InstanceUpdateOptions<InferAttributes<Comment>> + ) { + if (!model.changed("resolvedAt")) { + return; + } + + if (model.parentCommentId === null) { + await this.update( + { + resolvedAt: model.resolvedAt, + resolvedById: model.resolvedById, + }, + { + where: { parentCommentId: model.id, documentId: model.documentId }, + transaction: options.transaction, + hooks: false, + } + ); + } + + const invalidate = () => + CacheHelper.removeData( + RedisPrefixHelper.getCounterCacheKey( + "Document", + "unresolvedComments", + model.documentId + ) + ); + + if (options.transaction) { + const transaction = options.transaction.parent || options.transaction; + transaction.afterCommit(invalidate); + } else { + await invalidate(); + } + } + @AfterDestroy public static async deleteChildComments(model: Comment, ctx: HookContext) { const { transaction } = ctx; diff --git a/server/models/Document.test.ts b/server/models/Document.test.ts index e8636b5dc6..11372c37dd 100644 --- a/server/models/Document.test.ts +++ b/server/models/Document.test.ts @@ -7,6 +7,8 @@ import { buildDocument, buildDraftDocument, buildCollection, + buildComment, + buildResolvedComment, buildTeam, buildUser, buildGuestUser, @@ -352,3 +354,100 @@ describe("tasks", () => { expect(newTasks.total).toBe(3); }); }); + +describe("commentCount", () => { + it("returns 0 for a document with no comments", async () => { + const document = await buildDocument(); + expect(await document.commentCount).toEqual(0); + }); + + it("counts unresolved threads and their replies", async () => { + const document = await buildDocument(); + const thread = await buildComment({ + documentId: document.id, + userId: document.createdById, + }); + await buildComment({ + documentId: document.id, + userId: document.createdById, + parentCommentId: thread.id, + }); + expect(await document.commentCount).toEqual(2); + }); + + it("excludes resolved threads and their replies", async () => { + const document = await buildDocument(); + const user = await buildUser({ teamId: document.teamId }); + const resolved = await buildResolvedComment(user, { + documentId: document.id, + userId: user.id, + }); + await buildComment({ + documentId: document.id, + userId: user.id, + parentCommentId: resolved.id, + }); + await buildComment({ + documentId: document.id, + userId: user.id, + }); + expect(await document.commentCount).toEqual(1); + }); + + it("invalidates the cached count when a comment is destroyed", async () => { + const document = await buildDocument(); + const comment = await buildComment({ + documentId: document.id, + userId: document.createdById, + }); + await buildComment({ + documentId: document.id, + userId: document.createdById, + }); + + expect(await document.commentCount).toEqual(2); + + await comment.destroy(); + + expect(await document.commentCount).toEqual(1); + }); + + it("invalidates the cached count when a thread is resolved", async () => { + const document = await buildDocument(); + const user = await buildUser({ teamId: document.teamId }); + const thread = await buildComment({ + documentId: document.id, + userId: user.id, + }); + await buildComment({ + documentId: document.id, + userId: user.id, + parentCommentId: thread.id, + }); + + // Prime the cache. + expect(await document.commentCount).toEqual(2); + + thread.resolve(user); + await thread.save(); + + expect(await document.commentCount).toEqual(0); + }); + + it("invalidates the cached count when a resolved thread is unresolved", async () => { + const document = await buildDocument(); + const user = await buildUser({ teamId: document.teamId }); + const thread = await buildResolvedComment(user, { + documentId: document.id, + userId: user.id, + }); + + // Prime the cache (resolved thread is excluded). + expect(await document.commentCount).toEqual(0); + + thread.unresolve(); + await thread.save(); + + expect(await document.commentCount).toEqual(1); + }); +}); diff --git a/server/models/Document.ts b/server/models/Document.ts index eac22c4a05..5d8c1371cc 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -51,6 +51,7 @@ import { DocumentValidation } from "@shared/validations"; import { InvalidRequestError, ValidationError } from "@server/errors"; import { generateUrlId } from "@server/utils/url"; import Collection from "./Collection"; +import Comment from "./Comment"; import FileOperation from "./FileOperation"; import Group from "./Group"; import GroupMembership from "./GroupMembership"; @@ -64,6 +65,7 @@ import User from "./User"; import UserMembership from "./UserMembership"; import View from "./View"; import ArchivableModel from "./base/ArchivableModel"; +import { CounterCache } from "./decorators/CounterCache"; import Fix from "./decorators/Fix"; import { DocumentHelper } from "./helpers/DocumentHelper"; import IsHexColor from "./validators/IsHexColor"; @@ -678,6 +680,13 @@ class Document extends ArchivableModel< @HasMany(() => View) views: View[]; + @CounterCache(() => Comment, { + as: "unresolvedComments", + foreignKey: "documentId", + where: { resolvedAt: { [Op.is]: null } }, + }) + commentCount: Promise<number>; + /** * Returns an array of unique userIds that are members of a document * either via group or direct membership. diff --git a/server/presenters/document.ts b/server/presenters/document.ts index 45e363787e..9ea9f1bafa 100644 --- a/server/presenters/document.ts +++ b/server/presenters/document.ts @@ -18,6 +18,9 @@ type Options = { includeData?: boolean; /** Include the updatedAt timestamp for public documents. */ includeUpdatedAt?: boolean; + /** Include the unresolved comment count. Each call triggers a Redis lookup + * so only enable when the consumer needs the signal (e.g. MCP). */ + includeCommentCount?: boolean; /** Array of backlink document IDs to include in the response. */ backlinkIds?: string[]; }; @@ -112,6 +115,9 @@ async function presentDocument( res.templateId = document.templateId; res.insightsEnabled = document.insightsEnabled; res.popularityScore = document.popularityScore; + if (options.includeCommentCount) { + res.commentCount = await document.commentCount; + } res.sourceMetadata = document.sourceMetadata ? { importedAt: source?.createdAt ?? document.createdAt, diff --git a/server/tools/documents.test.ts b/server/tools/documents.test.ts index 826ba1a428..bdd0e3f74e 100644 --- a/server/tools/documents.test.ts +++ b/server/tools/documents.test.ts @@ -35,6 +35,9 @@ describe("list_documents", () => { (d: { document: { id: string } }) => d.document.id === document.id ) as { document: { url: string } }; expect(match.document.url).toMatch(/^https?:\/\//); + expect( + (match.document as { commentCount?: number }).commentCount + ).toBeUndefined(); }); it("filters by collection", async () => { diff --git a/server/tools/documents.ts b/server/tools/documents.ts index 30bde79273..e1f27eb544 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -8,7 +8,10 @@ import { Op } from "sequelize"; import { Collection, Document } from "@server/models"; import { sequelize } from "@server/storage/database"; import { authorize, can } from "@server/policies"; -import { presentDocument, presentNavigationNode } from "@server/presenters"; +import { + presentDocument as presentDocumentBase, + presentNavigationNode, +} from "@server/presenters"; import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; import { UrlHelper } from "@shared/utils/UrlHelper"; import { @@ -26,6 +29,26 @@ import { import { TextEditMode } from "@shared/types"; import SearchProviderManager from "@server/utils/SearchProviderManager"; +/** + * Presents a document for a tool response. Adds MCP-specific fields + * on top of the standard document presenter. + * + * @param document - the document to present. + * @param options - optional presenter options + * @returns the presented document object. + */ +export function presentDocument( + document: Document, + options: { + includeData?: boolean; + includeText?: boolean; + includeUpdatedAt?: boolean; + includeCommentCount?: boolean; + } = {} +) { + return presentDocumentBase(undefined, document, options); +} + /** * Registers document-related MCP tools on the given server, filtered by * the OAuth scopes granted to the current token. @@ -135,7 +158,7 @@ export function documentTools(server: McpServer, scopes: string[]) { filteredResults.map(async (result) => { const doc = pathToUrl( user.team, - await presentDocument(undefined, result.document, { + await presentDocument(result.document, { includeData: false, includeText: false, }) @@ -156,7 +179,7 @@ export function documentTools(server: McpServer, scopes: string[]) { if (exactMatch) { const doc = pathToUrl( user.team, - await presentDocument(undefined, exactMatch, { + await presentDocument(exactMatch, { includeData: false, includeText: false, }) @@ -199,7 +222,7 @@ export function documentTools(server: McpServer, scopes: string[]) { documents.map(async (document) => { const doc = pathToUrl( user.team, - await presentDocument(undefined, document, { + await presentDocument(document, { includeData: false, includeText: false, }) @@ -353,7 +376,7 @@ export function documentTools(server: McpServer, scopes: string[]) { }); const [{ text, ...attributes }, breadcrumb] = await Promise.all([ - presentDocument(undefined, document, { + presentDocument(document, { includeData: false, includeText: true, includeUpdatedAt: true, @@ -489,7 +512,7 @@ export function documentTools(server: McpServer, scopes: string[]) { documents.map(async (document) => { const doc = pathToUrl( user.team, - await presentDocument(undefined, document, { + await presentDocument(document, { includeData: false, includeText: false, }) @@ -603,7 +626,7 @@ export function documentTools(server: McpServer, scopes: string[]) { } const [{ text, ...attributes }, breadcrumb] = await Promise.all([ - presentDocument(undefined, updated, { + presentDocument(updated, { includeData: false, includeText: true, includeUpdatedAt: true, diff --git a/server/tools/fetch.test.ts b/server/tools/fetch.test.ts index 3209a4d7b0..ddf94b7561 100644 --- a/server/tools/fetch.test.ts +++ b/server/tools/fetch.test.ts @@ -1,4 +1,9 @@ -import { buildCollection, buildDocument } from "@server/test/factories"; +import { + buildCollection, + buildComment, + buildDocument, + buildResolvedComment, +} from "@server/test/factories"; import { getTestServer } from "@server/test/support"; import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; @@ -55,4 +60,38 @@ describe("fetch", () => { // Second content is markdown text expect(res!.result!.content![1].text).toContain("Hello"); }); + + it("returns unresolved commentCount on documents", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const thread = await buildComment({ + documentId: document.id, + userId: user.id, + }); + await buildComment({ + documentId: document.id, + userId: user.id, + parentCommentId: thread.id, + }); + await buildResolvedComment(user, { + documentId: document.id, + userId: user.id, + }); + + const res = await callMcpTool(server, accessToken, "fetch", { + resource: "document", + id: document.id, + }); + + const metadata = JSON.parse(res!.result!.content![0].text ?? "{}"); + expect(metadata.document.commentCount).toEqual(2); + }); }); diff --git a/server/tools/fetch.ts b/server/tools/fetch.ts index ffb490c604..c3acd98c66 100644 --- a/server/tools/fetch.ts +++ b/server/tools/fetch.ts @@ -6,11 +6,11 @@ import { authorize, can } from "@server/policies"; import { AuthorizationError } from "@server/errors"; import { presentCollection, - presentDocument, presentNavigationNode, presentUser, } from "@server/presenters"; import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; +import { presentDocument } from "./documents"; import { error, success, @@ -119,10 +119,11 @@ export function fetchTool(server: McpServer, scopes: string[]) { authorize(actor, "read", document); const [{ text, ...attributes }, breadcrumb] = await Promise.all([ - presentDocument(undefined, document, { + presentDocument(document, { includeData: false, includeText: true, includeUpdatedAt: true, + includeCommentCount: true, }), getDocumentBreadcrumb(document, actor), ]); From 170f59c6baf52754da90c367f8a02b281938d2f5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 16 May 2026 08:43:15 -0400 Subject: [PATCH 035/286] fix: Multi-tab logout OIDC redirect (#12333) --- app/components/Authenticated.tsx | 36 ++++++++++++++++++++++---------- app/stores/AuthStore.ts | 1 - 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/app/components/Authenticated.tsx b/app/components/Authenticated.tsx index 8b0ac6fcb6..9a50239400 100644 --- a/app/components/Authenticated.tsx +++ b/app/components/Authenticated.tsx @@ -1,5 +1,5 @@ import { observer } from "mobx-react"; -import { useEffect } from "react"; +import { useEffect, useRef } from "react"; import { useTranslation } from "react-i18next"; import { Redirect } from "react-router-dom"; import useCurrentUser from "~/hooks/useCurrentUser"; @@ -16,6 +16,7 @@ const Authenticated = ({ children }: Props) => { const { i18n } = useTranslation(); const user = useCurrentUser({ rejectOnEmpty: false }); const language = user?.language; + const hasLoggedOut = useRef(false); // Watching for language changes here as this is the earliest point we might have the user // available and means we can start loading translations faster @@ -23,23 +24,36 @@ const Authenticated = ({ children }: Props) => { void changeLanguage(language, i18n); }, [i18n, language]); + const shouldLogout = !auth.authenticated && !auth.isFetching; + + // Passive logout when we land here without an authenticated session – note we + // intentionally do not revoke the server-side token, as that would clobber + // the session in any other tab that may have already re-authenticated. + useEffect(() => { + if (shouldLogout && !hasLoggedOut.current) { + hasLoggedOut.current = true; + void auth.logout({ + savePath: true, + clearCache: false, + revokeToken: false, + }); + } + }, [shouldLogout, auth]); + + useEffect(() => { + if (auth.logoutRedirectUri) { + window.location.href = auth.logoutRedirectUri; + } + }, [auth.logoutRedirectUri]); + if (auth.authenticated) { return children; } - if (auth.isFetching) { + if (auth.isFetching || auth.logoutRedirectUri) { return <LoadingIndicator />; } - void auth.logout({ - savePath: true, - clearCache: false, - }); - - if (auth.logoutRedirectUri) { - window.location.href = auth.logoutRedirectUri; - return null; - } return <Redirect to="/" />; }; diff --git a/app/stores/AuthStore.ts b/app/stores/AuthStore.ts index 7e12ef5c44..77ac60d369 100644 --- a/app/stores/AuthStore.ts +++ b/app/stores/AuthStore.ts @@ -118,7 +118,6 @@ export default class AuthStore extends Store<Team> { savePath: false, clearCache: false, revokeToken: false, - userInitiated: true, }); } } else { From 82d7041b6b94fec7b6bc3dce75b8ba6d141bdd02 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 16 May 2026 14:10:15 -0400 Subject: [PATCH 036/286] chore: Refactor Markdown importer to use new import pipeline (#12361) * chore: Refactor Markdown importer to use new import pipeline --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- .../Settings/components/DropToImport.tsx | 23 +- .../processors/NotionImportsProcessor.ts | 4 + .../server/tasks/NotionAPIImportTask.ts | 25 +- ...00000-make-imports-integration-nullable.js | 16 + ...dd-import-task-phase-and-import-scratch.js | 21 + server/models/Import.ts | 12 +- server/models/ImportTask.ts | 6 +- .../FileOperationCreatedProcessor.ts | 10 +- server/queues/processors/ImportsProcessor.ts | 70 +- .../processors/MarkdownImportsProcessor.ts | 37 + server/queues/tasks/APIImportTask.ts | 127 +++- .../tasks/ImportMarkdownZipTask.test.ts | 139 ---- server/queues/tasks/ImportMarkdownZipTask.ts | 286 -------- .../tasks/MarkdownAPIImportTask.test.ts | 116 +++ server/queues/tasks/MarkdownAPIImportTask.ts | 672 ++++++++++++++++++ server/routes/api/collections/schema.ts | 6 +- server/routes/api/imports/imports.ts | 47 +- server/routes/api/imports/schema.ts | 6 + shared/schema.ts | 90 ++- shared/types.ts | 19 +- 20 files changed, 1224 insertions(+), 508 deletions(-) create mode 100644 server/migrations/20260515000000-make-imports-integration-nullable.js create mode 100644 server/migrations/20260516000000-add-import-task-phase-and-import-scratch.js create mode 100644 server/queues/processors/MarkdownImportsProcessor.ts delete mode 100644 server/queues/tasks/ImportMarkdownZipTask.test.ts delete mode 100644 server/queues/tasks/ImportMarkdownZipTask.ts create mode 100644 server/queues/tasks/MarkdownAPIImportTask.test.ts create mode 100644 server/queues/tasks/MarkdownAPIImportTask.ts diff --git a/app/scenes/Settings/components/DropToImport.tsx b/app/scenes/Settings/components/DropToImport.tsx index f4fd62e0ba..cbc675d92b 100644 --- a/app/scenes/Settings/components/DropToImport.tsx +++ b/app/scenes/Settings/components/DropToImport.tsx @@ -6,7 +6,12 @@ import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import styled from "styled-components"; import { s } from "@shared/styles"; -import { AttachmentPreset, CollectionPermission } from "@shared/types"; +import { + AttachmentPreset, + CollectionPermission, + FileOperationFormat, + IntegrationService, +} from "@shared/types"; import { bytesToHumanReadable } from "@shared/utils/files"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; @@ -27,7 +32,7 @@ type Props = { function DropToImport({ disabled, onSubmit, children, format }: Props) { const { t } = useTranslation(); - const { collections } = useStores(); + const { collections, imports } = useStores(); const [file, setFile] = useState<File | null>(null); const [isImporting, setImporting] = useState(false); const [permission, setPermission] = useState<CollectionPermission | null>( @@ -53,7 +58,19 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) { name: file.name, preset: AttachmentPreset.WorkspaceImport, }); - await collections.import(attachment.id, { format, permission }); + + if (format === FileOperationFormat.MarkdownZip) { + await imports.create( + { service: IntegrationService.Markdown }, + { + attachmentId: attachment.id, + permission: permission ?? undefined, + } + ); + } else { + await collections.import(attachment.id, { format, permission }); + } + onSubmit(); toast.message(file.name, { description: t( diff --git a/plugins/notion/server/processors/NotionImportsProcessor.ts b/plugins/notion/server/processors/NotionImportsProcessor.ts index e9f72cf45e..ee078b3cce 100644 --- a/plugins/notion/server/processors/NotionImportsProcessor.ts +++ b/plugins/notion/server/processors/NotionImportsProcessor.ts @@ -30,6 +30,10 @@ export class NotionImportsProcessor extends ImportsProcessor<IntegrationService. importModel: Import<IntegrationService.Notion>, transaction: Transaction ): Promise<NotionImportTaskInput> { + if (!importModel.integrationId) { + throw new Error("Notion import is missing integrationId"); + } + const integration = await Integration.scope("withAuthentication").findByPk( importModel.integrationId, { rejectOnEmpty: true } diff --git a/plugins/notion/server/tasks/NotionAPIImportTask.ts b/plugins/notion/server/tasks/NotionAPIImportTask.ts index 58f4b83f35..d66dc1329c 100644 --- a/plugins/notion/server/tasks/NotionAPIImportTask.ts +++ b/plugins/notion/server/tasks/NotionAPIImportTask.ts @@ -29,15 +29,19 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic ]; /** - * Process the Notion import task. + * Process a Notion page-phase import task. * This fetches data from Notion and converts it to task output. * * @param importTask ImportTask model to process. * @returns Promise with output that resolves once processing has completed. */ - protected async process( + protected async processPage( importTask: ImportTask<IntegrationService.Notion> ): Promise<ProcessOutput<IntegrationService.Notion>> { + if (!importTask.import.integrationId) { + throw new Error("Notion import is missing integrationId"); + } + const integration = await Integration.scope("withAuthentication").findByPk( importTask.import.integrationId, { rejectOnEmpty: true } @@ -47,7 +51,7 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic const parsedPages: (ParsePageOutput | null)[] = []; for (const item of importTask.input) { - parsedPages.push(await this.processPage({ item, client })); + parsedPages.push(await this.parsePage({ item, client })); } // Filter out any null results (from pages/databases that couldn't be accessed) @@ -56,7 +60,7 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic const taskOutput: ImportTaskOutput = validParsedPages.map((parsedPage) => ({ externalId: parsedPage.externalId, title: parsedPage.title, - emoji: parsedPage.emoji, + icon: parsedPage.icon, content: parsedPage.content, author: parsedPage.author, createdAt: parsedPage.createdAt, @@ -96,7 +100,7 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic * @param client Notion client. * @returns Promise of parsed page output that resolves when the task is scheduled. */ - private async processPage({ + private async parsePage({ item, client, }: { @@ -112,13 +116,14 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic try { // Convert Notion database to an empty page with "pages in database" as its children. if (item.type === PageType.Database) { - const { pages, ...databaseInfo } = await client.fetchDatabase( + const { pages, emoji, ...databaseInfo } = await client.fetchDatabase( item.externalId, { titleMaxLength } ); return { ...databaseInfo, + icon: emoji, externalId: item.externalId, content: ProsemirrorHelper.getEmptyDocument() as ProsemirrorDoc, collectionExternalId, @@ -129,12 +134,14 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic }; } - const { blocks, ...pageInfo } = await client.fetchPage(item.externalId, { - titleMaxLength, - }); + const { blocks, emoji, ...pageInfo } = await client.fetchPage( + item.externalId, + { titleMaxLength } + ); return { ...pageInfo, + icon: emoji, externalId: item.externalId, content: NotionConverter.page({ children: blocks } as NotionPage), collectionExternalId, diff --git a/server/migrations/20260515000000-make-imports-integration-nullable.js b/server/migrations/20260515000000-make-imports-integration-nullable.js new file mode 100644 index 0000000000..1d15490938 --- /dev/null +++ b/server/migrations/20260515000000-make-imports-integration-nullable.js @@ -0,0 +1,16 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface) { + await queryInterface.sequelize.query( + `ALTER TABLE "imports" ALTER COLUMN "integrationId" DROP NOT NULL` + ); + }, + + async down(queryInterface) { + await queryInterface.sequelize.query( + `ALTER TABLE "imports" ALTER COLUMN "integrationId" SET NOT NULL` + ); + }, +}; diff --git a/server/migrations/20260516000000-add-import-task-phase-and-import-scratch.js b/server/migrations/20260516000000-add-import-task-phase-and-import-scratch.js new file mode 100644 index 0000000000..63af5709e1 --- /dev/null +++ b/server/migrations/20260516000000-add-import-task-phase-and-import-scratch.js @@ -0,0 +1,21 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addColumn("import_tasks", "phase", { + type: Sequelize.STRING, + allowNull: false, + defaultValue: "page", + }); + await queryInterface.addColumn("imports", "scratch", { + type: Sequelize.JSONB, + allowNull: true, + }); + }, + + async down(queryInterface) { + await queryInterface.removeColumn("imports", "scratch"); + await queryInterface.removeColumn("import_tasks", "phase"); + }, +}; diff --git a/server/models/Import.ts b/server/models/Import.ts index 5f3f449cfc..707c253b06 100644 --- a/server/models/Import.ts +++ b/server/models/Import.ts @@ -1,5 +1,6 @@ import type { InferAttributes, InferCreationAttributes } from "sequelize"; import { + AllowNull, BelongsTo, Column, DataType, @@ -10,7 +11,7 @@ import { IsNumeric, Table, } from "sequelize-typescript"; -import { type ImportInput } from "@shared/schema"; +import { type ImportInput, type ImportScratch } from "@shared/schema"; import { ImportableIntegrationService, ImportState } from "@shared/types"; import { ImportValidation } from "@shared/validations"; import Integration from "./Integration"; @@ -55,6 +56,10 @@ class Import<T extends ImportableIntegrationService> extends ParanoidModel< @Column(DataType.JSONB) input: ImportInput<T>; + @AllowNull + @Column(DataType.JSONB) + scratch: ImportScratch<T> | null; + @IsNumeric @Default(0) @Column(DataType.INTEGER) @@ -66,11 +71,12 @@ class Import<T extends ImportableIntegrationService> extends ParanoidModel< // associations @BelongsTo(() => Integration, "integrationId") - integration: Integration; + integration: Integration | null; + @AllowNull @ForeignKey(() => Integration) @Column(DataType.UUID) - integrationId: string; + integrationId: string | null; @BelongsTo(() => User, "createdById") createdBy: User; diff --git a/server/models/ImportTask.ts b/server/models/ImportTask.ts index 6a7b5dd297..2e262aba3c 100644 --- a/server/models/ImportTask.ts +++ b/server/models/ImportTask.ts @@ -11,7 +11,7 @@ import { import type { ImportTaskOutput } from "@shared/schema"; import { type ImportTaskInput } from "@shared/schema"; import type { ImportableIntegrationService } from "@shared/types"; -import { ImportTaskState } from "@shared/types"; +import { ImportTaskPhase, ImportTaskState } from "@shared/types"; import Import from "./Import"; import IdModel from "./base/IdModel"; import Fix from "./decorators/Fix"; @@ -40,6 +40,10 @@ class ImportTask<T extends ImportableIntegrationService> extends IdModel< @Column(DataType.STRING) state: ImportTaskState; + @IsIn([Object.values(ImportTaskPhase)]) + @Column(DataType.STRING) + phase: ImportTaskPhase; + @Column(DataType.JSONB) input: ImportTaskInput<T>; diff --git a/server/queues/processors/FileOperationCreatedProcessor.ts b/server/queues/processors/FileOperationCreatedProcessor.ts index a16bb78fb8..59c6aff733 100644 --- a/server/queues/processors/FileOperationCreatedProcessor.ts +++ b/server/queues/processors/FileOperationCreatedProcessor.ts @@ -5,7 +5,6 @@ import ExportHTMLZipTask from "../tasks/ExportHTMLZipTask"; import ExportJSONTask from "../tasks/ExportJSONTask"; import ExportMarkdownZipTask from "../tasks/ExportMarkdownZipTask"; import ImportJSONTask from "../tasks/ImportJSONTask"; -import ImportMarkdownZipTask from "../tasks/ImportMarkdownZipTask"; import BaseProcessor from "./BaseProcessor"; export default class FileOperationCreatedProcessor extends BaseProcessor { @@ -19,14 +18,11 @@ export default class FileOperationCreatedProcessor extends BaseProcessor { } ); - // map file operation type and format to the appropriate task + // map file operation type and format to the appropriate task. Markdown + // zip imports flow through the API-import pipeline (`imports.create` → + // MarkdownAPIImportTask) and never reach this dispatcher. if (fileOperation.type === FileOperationType.Import) { switch (fileOperation.format) { - case FileOperationFormat.MarkdownZip: - await new ImportMarkdownZipTask().schedule({ - fileOperationId: event.modelId, - }); - break; case FileOperationFormat.JSON: await new ImportJSONTask().schedule({ fileOperationId: event.modelId, diff --git a/server/queues/processors/ImportsProcessor.ts b/server/queues/processors/ImportsProcessor.ts index 65bcabc02b..c245483b0a 100644 --- a/server/queues/processors/ImportsProcessor.ts +++ b/server/queues/processors/ImportsProcessor.ts @@ -5,14 +5,24 @@ import type { CreateOptions, CreationAttributes, Transaction } from "sequelize"; import { UniqueConstraintError } from "sequelize"; import { randomUUID } from "node:crypto"; import { randomElement } from "@shared/random"; -import type { ImportInput, ImportTaskInput } from "@shared/schema"; +import type { + BaseImportInput, + BaseImportTaskInput, + ImportInput, + ImportTaskInput, +} from "@shared/schema"; import type { ImportableIntegrationService, ProsemirrorData, ProsemirrorDoc, SourceMetadata, } from "@shared/types"; -import { ImportState, ImportTaskState, MentionType } from "@shared/types"; +import { + ImportState, + ImportTaskPhase, + ImportTaskState, + MentionType, +} from "@shared/types"; import { colorPalette } from "@shared/utils/collections"; import { CollectionValidation } from "@shared/validations"; import { createContext } from "@server/context"; @@ -118,22 +128,26 @@ export default abstract class ImportsProcessor< } const tasksInput = await this.buildTasksInput(importModel, transaction); + const phase = this.getInitialPhase(); const importTasks = await Promise.all( - chunk(tasksInput, PagePerImportTask).map((input) => { - const attrs = { - state: ImportTaskState.Created, - input, - importId: importModel.id, - } as ImportTaskCreationAttributes<T>; + chunk(tasksInput as BaseImportTaskInput, PagePerImportTask).map( + (input) => { + const attrs = { + state: ImportTaskState.Created, + phase, + input, + importId: importModel.id, + } as ImportTaskCreationAttributes<T>; - return ImportTask.create< - ImportTask<T>, - CreateOptions<ImportTaskAttributes<T>> - >(attrs as unknown as CreationAttributes<ImportTask<T>>, { - transaction, - }); - }) + return ImportTask.create< + ImportTask<T>, + CreateOptions<ImportTaskAttributes<T>> + >(attrs as unknown as CreationAttributes<ImportTask<T>>, { + transaction, + }); + } + ) ); importModel.state = ImportState.InProgress; @@ -271,8 +285,12 @@ export default abstract class ImportsProcessor< const createdCollections: Collection[] = []; // External id to internal model id. const idMap: Record<string, string> = {}; - // These will be imported as collections. - const importInput = keyBy(importModel.input, "externalId"); + // These will be imported as collections. Widened to the base input shape + // because the abstract class has no narrowed view of T. + const importInput = keyBy( + importModel.input as BaseImportInput, + "externalId" + ); const ctx = createContext({ user: importModel.createdBy, transaction }); const firstCollection = await Collection.findFirstCollectionForUser( @@ -361,8 +379,8 @@ export default abstract class ImportsProcessor< const collection = Collection.build({ id: internalId, name: output.title, - icon: output.emoji ?? "collection", - color: output.emoji ? undefined : randomElement(colorPalette), + icon: output.icon ?? "collection", + color: output.icon ? undefined : randomElement(colorPalette), content: transformedContent, description: truncate(description, { length: CollectionValidation.maxDescriptionLength, @@ -403,7 +421,7 @@ export default abstract class ImportsProcessor< const defaults = { title: output.title, - icon: output.emoji, + icon: output.icon, content: transformedContent, text: await DocumentHelper.toMarkdown(transformedContent, { includeTitle: false, @@ -602,6 +620,18 @@ export default abstract class ImportsProcessor< */ protected abstract canProcess(importModel: Import<T>): boolean; + /** + * Phase assigned to the initial ImportTask rows created from + * `buildTasksInput`. Sources that begin with a bootstrap step (e.g. + * Markdown zip extraction) override this to return `Bootstrap`. Sources + * that fan out directly into page work (e.g. Notion) leave the default. + * + * @returns Phase for the first wave of ImportTask rows. + */ + protected getInitialPhase(): ImportTaskPhase { + return ImportTaskPhase.Page; + } + /** * Build task inputs which will be used for `APIImportTask`s. * diff --git a/server/queues/processors/MarkdownImportsProcessor.ts b/server/queues/processors/MarkdownImportsProcessor.ts new file mode 100644 index 0000000000..5f6a851836 --- /dev/null +++ b/server/queues/processors/MarkdownImportsProcessor.ts @@ -0,0 +1,37 @@ +import type { Transaction } from "sequelize"; +import type { ImportTaskInput } from "@shared/schema"; +import { ImportTaskPhase, IntegrationService } from "@shared/types"; +import type { Import, ImportTask } from "@server/models"; +import MarkdownAPIImportTask from "../tasks/MarkdownAPIImportTask"; +import ImportsProcessor from "./ImportsProcessor"; + +export default class MarkdownImportsProcessor extends ImportsProcessor<IntegrationService.Markdown> { + protected canProcess( + importModel: Import<IntegrationService.Markdown> + ): boolean { + return importModel.service === IntegrationService.Markdown; + } + + protected getInitialPhase(): ImportTaskPhase { + return ImportTaskPhase.Bootstrap; + } + + protected async buildTasksInput( + importModel: Import<IntegrationService.Markdown>, + _transaction: Transaction + ): Promise<ImportTaskInput<IntegrationService.Markdown>> { + if (!importModel.scratch?.storageKey) { + throw new Error( + "Markdown import is missing scratch.storageKey for the bootstrap phase" + ); + } + + return [{ externalId: importModel.input[0].externalId }]; + } + + protected async scheduleTask( + importTask: ImportTask<IntegrationService.Markdown> + ): Promise<void> { + await new MarkdownAPIImportTask().schedule({ importTaskId: importTask.id }); + } +} diff --git a/server/queues/tasks/APIImportTask.ts b/server/queues/tasks/APIImportTask.ts index 41e3e3749b..5572bee3e3 100644 --- a/server/queues/tasks/APIImportTask.ts +++ b/server/queues/tasks/APIImportTask.ts @@ -4,13 +4,22 @@ import { Fragment, Node } from "prosemirror-model"; import type { WhereOptions } from "sequelize"; import { Transaction } from "sequelize"; import { randomUUID } from "node:crypto"; -import type { ImportTaskInput, ImportTaskOutput } from "@shared/schema"; +import type { + BaseImportTaskInput, + ImportTaskInput, + ImportTaskOutput, +} from "@shared/schema"; import type { ImportableIntegrationService, ProsemirrorData, ProsemirrorDoc, } from "@shared/types"; -import { AttachmentPreset, ImportState, ImportTaskState } from "@shared/types"; +import { + AttachmentPreset, + ImportState, + ImportTaskPhase, + ImportTaskState, +} from "@shared/types"; import { createContext } from "@server/context"; import { schema } from "@server/editor"; import Logger from "@server/logging/Logger"; @@ -134,31 +143,39 @@ export default abstract class APIImportTask< * @returns Promise that resolves once processing has completed. */ private async onProcess(importTask: ImportTask<T>) { - const { taskOutput, childTasksInput } = await this.process(importTask); + const { taskOutput, childTasksInput } = + importTask.phase === ImportTaskPhase.Bootstrap + ? await this.processBootstrap(importTask) + : await this.processPage(importTask); - const taskOutputWithReplacements = await Promise.all( - taskOutput.map(async (item) => ({ - ...item, - content: await this.uploadAttachments({ - doc: item.content, - externalId: item.externalId, - createdBy: importTask.import.createdBy, - }), - })) - ); + const taskOutputWithReplacements = this.shouldUploadAttachmentsPerPage() + ? await Promise.all( + taskOutput.map(async (item) => ({ + ...item, + content: await this.uploadAttachments({ + doc: item.content, + externalId: item.externalId, + createdBy: importTask.import.createdBy, + }), + })) + ) + : taskOutput; await sequelize.transaction(async (transaction) => { await Promise.all( - chunk(childTasksInput, PagePerImportTask).map(async (input) => { - await ImportTask.create( - { - state: ImportTaskState.Created, - input, - importId: importTask.importId, - }, - { transaction } - ); - }) + chunk(childTasksInput as BaseImportTaskInput, PagePerImportTask).map( + async (input) => { + await ImportTask.create( + { + state: ImportTaskState.Created, + phase: ImportTaskPhase.Page, + input: input as ImportTaskInput<T>, + importId: importTask.importId, + }, + { transaction } + ); + } + ) ); importTask.output = taskOutputWithReplacements; @@ -206,10 +223,16 @@ export default abstract class APIImportTask< return await this.scheduleNextTask(nextImportTask); } - // All tasks for this import have been processed. + // All tasks for this import have been processed. Run the post-completion + // hook before flipping state so subclasses can perform work that must + // happen before "imports.processed" downstream handlers fire. + await this.onAllTasksCompleted(importTask); + await sequelize.transaction(async (transaction) => { const associatedImport = importTask.import; associatedImport.state = ImportState.Processed; + // Release any cross-phase scratch state — the import is done with it. + associatedImport.scratch = null; await associatedImport.saveWithCtx( createContext({ user: associatedImport.createdBy, @@ -222,13 +245,63 @@ export default abstract class APIImportTask< } /** - * Process the import task. - * This fetches data from external source and converts it to task output. + * Whether the base class should create Attachment rows and upload S3 blobs + * per page during `onProcess`. Defaults to `true` for sources whose + * attachments are addressable by per-task URLs (e.g. Notion). Sources where + * attachments are shared across pages or live in a single archive may + * override this and handle attachment persistence in `onAllTasksCompleted`. + * + * @returns true to enable the per-page attachment upload step. + */ + protected shouldUploadAttachmentsPerPage(): boolean { + return true; + } + + /** + * Hook invoked after the final import task has been processed but before the + * associated `Import` state transitions to `Processed`. Subclasses can + * override to perform cross-task finalization (e.g. uploading shared + * attachments) that must happen before the persistence pass. + * + * @param lastImportTask The most recently completed ImportTask for the import. + * @returns Promise that resolves when finalization is complete. + */ + protected async onAllTasksCompleted( + // oxlint-disable-next-line @typescript-eslint/no-unused-vars + lastImportTask: ImportTask<T> + ): Promise<void> { + return; + } + + /** + * Bootstrap phase. Runs once per import on a worker that owns the source + * artifact (e.g. extracts a zip, walks the file tree, schedules child page + * tasks). Subclasses without a bootstrap step leave this unimplemented; the + * base only invokes it when an `ImportTask` is created with + * `phase === ImportTaskPhase.Bootstrap`. * * @param importTask ImportTask model to process. * @returns Promise with output that resolves once processing has completed. */ - protected abstract process( + protected processBootstrap( + // oxlint-disable-next-line @typescript-eslint/no-unused-vars + importTask: ImportTask<T> + ): Promise<ProcessOutput<T>> { + throw new Error( + `${this.constructor.name} does not implement processBootstrap()` + ); + } + + /** + * Page phase. Runs for every `ImportTask` row with + * `phase === ImportTaskPhase.Page`, transforming a batch of source pages + * into ProseMirror output and optionally cascading descendants as the next + * wave of child tasks. + * + * @param importTask ImportTask model to process. + * @returns Promise with output that resolves once processing has completed. + */ + protected abstract processPage( importTask: ImportTask<T> ): Promise<ProcessOutput<T>>; diff --git a/server/queues/tasks/ImportMarkdownZipTask.test.ts b/server/queues/tasks/ImportMarkdownZipTask.test.ts deleted file mode 100644 index d4bb91f3dc..0000000000 --- a/server/queues/tasks/ImportMarkdownZipTask.test.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* oxlint-disable @typescript-eslint/no-empty-function */ -import path from "node:path"; -import { FileOperation } from "@server/models"; -import { buildFileOperation } from "@server/test/factories"; -import ImportMarkdownZipTask from "./ImportMarkdownZipTask"; - -describe("ImportMarkdownZipTask", () => { - it("should import the documents, attachments", async () => { - const fileOperation = await buildFileOperation(); - Object.defineProperty(fileOperation, "handle", { - get() { - return { - path: path.resolve( - __dirname, - "..", - "..", - "test", - "fixtures", - "outline-markdown.zip" - ), - cleanup: async () => {}, - }; - }, - }); - vi.spyOn(FileOperation, "findByPk").mockResolvedValue(fileOperation); - - const props = { - fileOperationId: fileOperation.id, - }; - - const task = new ImportMarkdownZipTask(); - const response = await task.perform(props); - - expect(response.collections.size).toEqual(1); - expect(response.documents.size).toEqual(8); - expect(response.attachments.size).toEqual(6); - }, 10000); - - it("should import the documents, public attachments", async () => { - const fileOperation = await buildFileOperation(); - Object.defineProperty(fileOperation, "handle", { - get() { - return { - path: path.resolve( - __dirname, - "..", - "..", - "test", - "fixtures", - "outline-markdown-public.zip" - ), - cleanup: async () => {}, - }; - }, - }); - vi.spyOn(FileOperation, "findByPk").mockResolvedValue(fileOperation); - - const props = { - fileOperationId: fileOperation.id, - }; - - const task = new ImportMarkdownZipTask(); - const response = await task.perform(props); - - expect(response.collections.size).toEqual(1); - expect(response.documents.size).toEqual(2); - expect(response.attachments.size).toEqual(1); - }, 10000); - - it("should throw an error with corrupt zip", async () => { - const fileOperation = await buildFileOperation(); - Object.defineProperty(fileOperation, "handle", { - get() { - return { - path: path.resolve( - __dirname, - "..", - "..", - "test", - "fixtures", - "corrupt.zip" - ), - cleanup: async () => {}, - }; - }, - }); - vi.spyOn(FileOperation, "findByPk").mockResolvedValue(fileOperation); - - const props = { - fileOperationId: fileOperation.id, - }; - - let error; - try { - const task = new ImportMarkdownZipTask(); - await task.perform(props); - } catch (err) { - error = err; - } - - expect(error && error.message).toBeTruthy(); - }); - - it("should throw an error with empty collection in zip", async () => { - const fileOperation = await buildFileOperation(); - Object.defineProperty(fileOperation, "handle", { - get() { - return { - path: path.resolve( - __dirname, - "..", - "..", - "test", - "fixtures", - "empty.zip" - ), - cleanup: async () => {}, - }; - }, - }); - vi.spyOn(FileOperation, "findByPk").mockResolvedValue(fileOperation); - - const props = { - fileOperationId: fileOperation.id, - }; - - let error; - try { - const task = new ImportMarkdownZipTask(); - await task.perform(props); - } catch (err) { - error = err; - } - - expect(error && error.message).toContain( - "Uploaded file does not contain any valid collections" - ); - }); -}); diff --git a/server/queues/tasks/ImportMarkdownZipTask.ts b/server/queues/tasks/ImportMarkdownZipTask.ts deleted file mode 100644 index 88883c09de..0000000000 --- a/server/queues/tasks/ImportMarkdownZipTask.ts +++ /dev/null @@ -1,286 +0,0 @@ -import path from "node:path"; -import fs from "fs-extra"; -import { escapeRegExp } from "es-toolkit/compat"; -import mime from "mime-types"; -import { randomUUID } from "node:crypto"; -import documentImporter from "@server/commands/documentImporter"; -import { createContext } from "@server/context"; -import Logger from "@server/logging/Logger"; -import type { FileOperation } from "@server/models"; -import { User } from "@server/models"; -import { Buckets } from "@server/models/helpers/AttachmentHelper"; -import { sequelize } from "@server/storage/database"; -import type { FileTreeNode } from "@server/utils/ImportHelper"; -import ImportHelper from "@server/utils/ImportHelper"; -import type { StructuredImportData } from "./ImportTask"; -import ImportTask from "./ImportTask"; - -export default class ImportMarkdownZipTask extends ImportTask { - public async parseData( - dirPath: string, - fileOperation: FileOperation - ): Promise<StructuredImportData> { - const tree = await ImportHelper.toFileTree(dirPath); - if (!tree) { - throw new Error("Could not find valid content in zip file"); - } - - return this.parseFileTree(fileOperation, tree.children); - } - - /** - * Check if a folder contains only attachment files (no markdown documents). - * - * @param node The file tree node to check - * @returns true if the folder contains only non-markdown files - */ - private isAttachmentFolder(node: FileTreeNode): boolean { - if (node.children.length === 0) { - return false; - } - - if (node.title.toLowerCase() === "attachments") { - return true; - } - - return node.children.every((child) => { - // If child has children, it's a folder - recurse to check its contents - if (child.children.length > 0) { - return this.isAttachmentFolder(child); - } - - // Child has no children - could be a file or empty folder - const ext = path.extname(child.name).toLowerCase(); - - // If no extension, it's likely an empty folder, not a file. - // Be conservative and don't treat it as an attachment. - if (!ext) { - return false; - } - - // It's a file with an extension - check if it's NOT markdown - return ext !== ".md" && ext !== ".markdown"; - }); - } - - /** - * Recursively process all files in a folder as attachments. - * - * @param node The file tree node to process - * @param output The structured import data to add attachments to - */ - private parseAttachmentFolder( - node: FileTreeNode, - output: StructuredImportData - ): void { - for (const child of node.children) { - if (child.children.length > 0) { - this.parseAttachmentFolder(child, output); - } else { - const id = randomUUID(); - output.attachments.push({ - id, - name: child.name, - path: child.path, - mimeType: mime.lookup(child.path) || "application/octet-stream", - buffer: () => fs.readFile(child.path), - }); - } - } - } - - /** - * Converts the file structure from zipAsFileTree into documents, - * collections, and attachments. - * - * @param fileOperation The file operation - * @param tree An array of FileTreeNode representing root files in the zip - * @returns A StructuredImportData object - */ - private async parseFileTree( - fileOperation: FileOperation, - tree: FileTreeNode[] - ): Promise<StructuredImportData> { - const user = await User.findByPk(fileOperation.userId, { - rejectOnEmpty: true, - }); - const output: StructuredImportData = { - collections: [], - documents: [], - attachments: [], - }; - - const docPathToIdMap = new Map<string, string>(); - - const parseNodeChildren = async ( - children: FileTreeNode[], - collectionId: string, - parentDocumentId?: string - ): Promise<void> => { - for (const child of children) { - // special case for folders of attachments - detect by content - if (child.children.length > 0 && this.isAttachmentFolder(child)) { - this.parseAttachmentFolder(child, output); - continue; - } - - const id = randomUUID(); - - const { title, icon, text } = await sequelize.transaction( - async (transaction) => - documentImporter({ - mimeType: "text/markdown", - fileName: child.name, - content: - child.children.length > 0 - ? "" - : await fs.readFile(child.path, "utf8"), - user, - ctx: createContext({ user, transaction }), - }) - ); - - const existingDocumentIndex = output.documents.findIndex( - (doc) => - doc.title === title && - doc.collectionId === collectionId && - doc.parentDocumentId === parentDocumentId - ); - - const existingDocument = output.documents[existingDocumentIndex]; - - // When there is a file and a folder with the same name this handles - // the case by combining the two into one document with nested children - if (existingDocument) { - docPathToIdMap.set(child.path, existingDocument.id); - - if (existingDocument.text === "") { - output.documents[existingDocumentIndex].text = text; - } - - await parseNodeChildren( - child.children, - collectionId, - existingDocument.id - ); - } else { - docPathToIdMap.set(child.path, id); - - output.documents.push({ - id, - title, - icon, - text, - collectionId, - parentDocumentId, - path: child.path, - mimeType: "text/markdown", - }); - - await parseNodeChildren(child.children, collectionId, id); - } - } - }; - - // All nodes in the root level should be collections - for (const node of tree) { - if (node.children.length > 0) { - // Check if this is an attachments-only folder at root level - if (this.isAttachmentFolder(node)) { - this.parseAttachmentFolder(node, output); - continue; - } - - const collectionId = randomUUID(); - output.collections.push({ - id: collectionId, - name: node.title, - }); - await parseNodeChildren(node.children, collectionId); - } else { - Logger.debug("task", `Unhandled file in zip: ${node.path}`, { - fileOperationId: fileOperation.id, - }); - } - } - - for (const document of output.documents) { - // Check all of the attachments we've created against urls in the text - // and replace them out with attachment redirect urls before continuing. - for (const attachment of output.attachments) { - const encodedPath = encodeURI(attachment.path); - const attachmentFileName = path.basename(attachment.path); - const reference = `<<${attachment.id}>>`; - - // Pull the collection and subdirectory out of the path name, upload - // folders in an export are relative to the document itself. - // Support both legacy bucket names (uploads/public) and generic attachment folders. - let normalizedAttachmentPath = encodedPath - .replace( - new RegExp(`(.*)/${Buckets.uploads}/`), - `${Buckets.uploads}/` - ) - .replace(new RegExp(`(.*)/${Buckets.public}/`), `${Buckets.public}/`); - - // Also try normalizing to just the folder containing the attachment - // This handles arbitrary folder names like "attachments/" - const attachmentDir = path.basename(path.dirname(attachment.path)); - const genericNormalizedPath = `${attachmentDir}/${encodeURI(attachmentFileName)}`; - - document.text = document.text - .replace(new RegExp(escapeRegExp(encodedPath), "g"), reference) - .replace( - new RegExp(`\\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"), - reference - ) - .replace( - new RegExp(`\\.?/?${escapeRegExp(genericNormalizedPath)}`, "g"), - reference - ); - - // Handle markdown links that reference attachments via a path rooted - // at an "attachments" folder, optionally prefixed with "./", e.g. - // ./attachments/foo.png or ./attachments/sub/foo.png. - const segments = attachment.path.split(path.sep); - const attachmentsIdx = segments.findIndex( - (seg) => seg.toLowerCase() === "attachments" - ); - if (attachmentsIdx >= 0) { - const relFromAttachments = segments.slice(attachmentsIdx).join("/"); - document.text = document.text.replace( - new RegExp( - `\\.?/?${escapeRegExp(encodeURI(relFromAttachments))}`, - "g" - ), - reference - ); - } - } - - const basePath = path.dirname(document.path); - - // check internal document links in the text and replace them with placeholders. - // When persisting, the placeholders will be replaced with the right urls. - const internalLinks = [ - ...document.text.matchAll(/\[[^\]]+\]\(([^)]+\.md)\)/g), - ]; - - internalLinks.forEach((match) => { - const referredDocPath = match[1]; - const normalizedDocPath = decodeURI( - path.normalize(`${basePath}/${referredDocPath}`) - ); - - const referredDocId = docPathToIdMap.get(normalizedDocPath); - if (referredDocId) { - document.text = document.text.replace( - referredDocPath, - `<<${referredDocId}>>` - ); - } - }); - } - - return output; - } -} diff --git a/server/queues/tasks/MarkdownAPIImportTask.test.ts b/server/queues/tasks/MarkdownAPIImportTask.test.ts new file mode 100644 index 0000000000..5767f340b3 --- /dev/null +++ b/server/queues/tasks/MarkdownAPIImportTask.test.ts @@ -0,0 +1,116 @@ +import { + rewriteAttachmentPaths, + rewriteInternalLinks, +} from "./MarkdownAPIImportTask"; + +describe("rewriteAttachmentPaths", () => { + it("replaces a direct encoded path with the placeholder", () => { + const out = rewriteAttachmentPaths( + "![alt](My%20Collection/attachments/foo.png)", + [{ id: "att-1", pathInZip: "My Collection/attachments/foo.png" }] + ); + expect(out).toBe("![alt](<<att-1>>)"); + }); + + it("normalizes legacy `uploads/` bucket layout", () => { + const out = rewriteAttachmentPaths("![x](./uploads/abc/file.png)", [ + { + id: "att-2", + pathInZip: "Some Collection/uploads/abc/file.png", + }, + ]); + expect(out).toBe("![x](<<att-2>>)"); + }); + + it("normalizes legacy `public/` bucket layout", () => { + const out = rewriteAttachmentPaths("![x](./public/abc/file.png)", [ + { + id: "att-3", + pathInZip: "Some Collection/public/abc/file.png", + }, + ]); + expect(out).toBe("![x](<<att-3>>)"); + }); + + it("handles arbitrary folder names like 'attachments/'", () => { + const out = rewriteAttachmentPaths("![x](./attachments/foo.png)", [ + { id: "att-4", pathInZip: "Collection/attachments/foo.png" }, + ]); + expect(out).toBe("![x](<<att-4>>)"); + }); + + it("matches nested attachments folders", () => { + const out = rewriteAttachmentPaths("![x](./attachments/sub/bar.png)", [ + { + id: "att-5", + pathInZip: "Collection/Doc/attachments/sub/bar.png", + }, + ]); + expect(out).toBe("![x](<<att-5>>)"); + }); + + it("substitutes multiple references in the same document", () => { + const out = rewriteAttachmentPaths( + "![a](./attachments/a.png) and ![b](./attachments/b.png)", + [ + { id: "id-a", pathInZip: "C/attachments/a.png" }, + { id: "id-b", pathInZip: "C/attachments/b.png" }, + ] + ); + expect(out).toBe("![a](<<id-a>>) and ![b](<<id-b>>)"); + }); + + it("is a no-op when no attachments match", () => { + const out = rewriteAttachmentPaths("![x](https://example.com/a.png)", [ + { id: "id-a", pathInZip: "C/attachments/a.png" }, + ]); + expect(out).toBe("![x](https://example.com/a.png)"); + }); +}); + +describe("rewriteInternalLinks", () => { + it("rewrites a sibling .md link to a placeholder", () => { + const out = rewriteInternalLinks( + "see [other](./other.md)", + "Collection/parent.md", + { "Collection/other.md": "doc-1" } + ); + expect(out).toBe("see [other](<<doc-1>>)"); + }); + + it("rewrites a nested .md link", () => { + const out = rewriteInternalLinks( + "see [child](./sub/child.md)", + "Collection/parent.md", + { "Collection/sub/child.md": "doc-2" } + ); + expect(out).toBe("see [child](<<doc-2>>)"); + }); + + it("leaves unresolved .md links untouched", () => { + const out = rewriteInternalLinks( + "see [missing](./missing.md)", + "Collection/parent.md", + {} + ); + expect(out).toBe("see [missing](./missing.md)"); + }); + + it("ignores non-md links", () => { + const out = rewriteInternalLinks( + "see [site](https://example.com)", + "Collection/parent.md", + { "Collection/parent.md": "doc-self" } + ); + expect(out).toBe("see [site](https://example.com)"); + }); + + it("decodes encoded path segments before lookup", () => { + const out = rewriteInternalLinks( + "see [other](./My%20Doc.md)", + "Collection/parent.md", + { "Collection/My Doc.md": "doc-3" } + ); + expect(out).toBe("see [other](<<doc-3>>)"); + }); +}); diff --git a/server/queues/tasks/MarkdownAPIImportTask.ts b/server/queues/tasks/MarkdownAPIImportTask.ts new file mode 100644 index 0000000000..5221fa77bf --- /dev/null +++ b/server/queues/tasks/MarkdownAPIImportTask.ts @@ -0,0 +1,672 @@ +import path from "node:path"; +import { randomUUID } from "node:crypto"; +import { escapeRegExp } from "es-toolkit/compat"; +import fs from "fs-extra"; +import mime from "mime-types"; +import { UniqueConstraintError } from "sequelize"; +import tmp from "tmp"; +import type { + ImportTaskInput, + ImportTaskOutput, + MarkdownAttachmentManifestItem, + MarkdownPageImportTaskInputItem, +} from "@shared/schema"; +import type { IntegrationService, ProsemirrorDoc } from "@shared/types"; +import { AttachmentPreset } from "@shared/types"; +import attachmentCreator from "@server/commands/attachmentCreator"; +import { createContext } from "@server/context"; +import env from "@server/env"; +import Logger from "@server/logging/Logger"; +import type { ImportTask } from "@server/models"; +import { Attachment } from "@server/models"; +import { Buckets } from "@server/models/helpers/AttachmentHelper"; +import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; +import { sequelize } from "@server/storage/database"; +import FileStorage from "@server/storage/files"; +import type { FileTreeNode } from "@server/utils/ImportHelper"; +import ImportHelper from "@server/utils/ImportHelper"; +import ZipHelper from "@server/utils/ZipHelper"; +import type { ProcessOutput } from "./APIImportTask"; +import APIImportTask from "./APIImportTask"; +import { DocumentConverter } from "@server/utils/DocumentConverter"; + +type Markdown = IntegrationService.Markdown; + +interface ExtractedZip { + dirPath: string; + cleanup: () => Promise<void>; +} + +interface DiscoveredDocument { + id: string; + title: string; + pathInZip: string; + collectionId: string; + parentDocumentId?: string; + markdownText: string; + children: DiscoveredDocument[]; +} + +interface DiscoveredCollection { + id: string; + title: string; + children: DiscoveredDocument[]; +} + +interface AttachmentRef { + id: string; + pathInZip: string; +} + +/** + * Rewrites local attachment paths in markdown text into `<<attachmentId>>` + * placeholders. Supports legacy bucket layouts (`uploads/`, `public/`), + * arbitrary nested folder names, and `./attachments/...` rooted paths. Both + * encoded and unencoded path forms are matched. + * + * Exported for tests; not part of the module's public surface. + * + * @param markdown The raw markdown text from a single document. + * @param attachments Attachment manifest entries to substitute. + * @returns Markdown text with local paths replaced by `<<id>>` references. + */ +export function rewriteAttachmentPaths( + markdown: string, + attachments: AttachmentRef[] +): string { + let text = markdown; + + for (const attachment of attachments) { + const encodedPath = encodeURI(attachment.pathInZip); + const attachmentFileName = path.basename(attachment.pathInZip); + const reference = `<<${attachment.id}>>`; + + const normalizedAttachmentPath = encodedPath + .replace(new RegExp(`(.*)/${Buckets.uploads}/`), `${Buckets.uploads}/`) + .replace(new RegExp(`(.*)/${Buckets.public}/`), `${Buckets.public}/`); + + const attachmentDir = path.basename(path.dirname(attachment.pathInZip)); + const genericNormalizedPath = `${attachmentDir}/${encodeURI(attachmentFileName)}`; + + text = text + .replace(new RegExp(escapeRegExp(encodedPath), "g"), reference) + .replace( + new RegExp(`\\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"), + reference + ); + + const segments = attachment.pathInZip.split(path.sep); + const attachmentsIdx = segments.findIndex( + (seg) => seg.toLowerCase() === "attachments" + ); + if (attachmentsIdx >= 0) { + const relFromAttachments = segments.slice(attachmentsIdx).join("/"); + text = text.replace( + new RegExp(`\\.?/?${escapeRegExp(encodeURI(relFromAttachments))}`, "g"), + reference + ); + } + + text = text.replace( + new RegExp(`\\.?/?${escapeRegExp(genericNormalizedPath)}`, "g"), + reference + ); + } + + return text; +} + +/** + * Rewrites internal markdown links (`[label](./relative.md)`) into + * `<<documentId>>` placeholders, resolved against a path → id map built from + * the zip's full document tree. + * + * Exported for tests; not part of the module's public surface. + * + * @param markdown The raw markdown text from a single document. + * @param documentPath Zip-relative path of the document being rewritten + * (e.g. `Collection/parent.md`); used as the base for + * resolving relative link targets against docMap keys. + * @param docMap Map of document path (as it appeared in the zip) to its + * pre-assigned externalId. + * @returns Markdown text with internal `.md` link targets replaced by + * `<<id>>` references. + */ +export function rewriteInternalLinks( + markdown: string, + documentPath: string, + docMap: Record<string, string> +): string { + const basePath = path.dirname(documentPath); + const internalLinks = [...markdown.matchAll(/\[[^\]]+\]\(([^)]+\.md)\)/g)]; + + let text = markdown; + for (const match of internalLinks) { + const referredDocPath = match[1]; + const normalizedDocPath = decodeURI( + path.normalize(`${basePath}/${referredDocPath}`) + ); + + const referredDocId = docMap[normalizedDocPath]; + if (referredDocId) { + text = text.replace(referredDocPath, `<<${referredDocId}>>`); + } + } + + return text; +} + +export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { + protected shouldUploadAttachmentsPerPage(): boolean { + return false; + } + + protected async scheduleNextTask(importTask: ImportTask<Markdown>) { + await new MarkdownAPIImportTask().schedule({ importTaskId: importTask.id }); + } + + protected async onAllTasksCompleted( + lastImportTask: ImportTask<Markdown> + ): Promise<void> { + const scratch = lastImportTask.import.scratch; + if (!scratch?.storageKey || !scratch.manifest?.length) { + return; + } + + const { dirPath, cleanup } = await this.downloadAndExtract( + scratch.storageKey + ); + + try { + const createdBy = lastImportTask.import.createdBy; + + for (const item of scratch.manifest) { + const filePath = path.join(dirPath, item.pathInZip); + let buffer: Buffer; + try { + buffer = await fs.readFile(filePath); + } catch (err) { + Logger.warn( + `Markdown import attachment missing in zip, skipping: ${item.pathInZip}`, + err instanceof Error ? err : undefined + ); + continue; + } + + try { + await sequelize.transaction(async (transaction) => + attachmentCreator({ + source: "import", + preset: AttachmentPreset.DocumentAttachment, + id: item.id, + name: item.name, + type: item.mimeType, + buffer, + user: createdBy, + ctx: createContext({ user: createdBy, transaction }), + fetchOptions: { + timeout: env.FILE_STORAGE_IMPORT_TIMEOUT, + }, + }) + ); + } catch (err) { + // Each attachment commits in its own transaction, so a retry of + // this hook can re-encounter ids that already landed. Treat the + // unique-id collision as a no-op so the import remains resumable. + if (err instanceof UniqueConstraintError) { + continue; + } + throw err; + } + } + } finally { + await cleanup(); + } + } + + protected async processBootstrap( + importTask: ImportTask<Markdown> + ): Promise<ProcessOutput<Markdown>> { + const storageKey = importTask.import.scratch?.storageKey; + if (!storageKey) { + throw new Error("Markdown import is missing scratch.storageKey"); + } + + const { dirPath, cleanup } = await this.downloadAndExtract(storageKey); + + try { + const tree = await ImportHelper.toFileTree(dirPath); + if (!tree) { + throw new Error("Could not find valid content in zip file"); + } + + const collections: DiscoveredCollection[] = []; + const manifest: MarkdownAttachmentManifestItem[] = []; + + for (const node of tree.children) { + if (node.children.length === 0) { + Logger.debug("task", `Unhandled file in zip: ${node.path}`, { + importTaskId: importTask.id, + }); + continue; + } + + if (this.isAttachmentFolder(node)) { + this.collectAttachments(node, manifest, dirPath); + continue; + } + + const collection: DiscoveredCollection = { + id: randomUUID(), + title: node.title, + children: [], + }; + collections.push(collection); + + await this.collectDocumentsAndAttachments({ + children: node.children, + collectionId: collection.id, + out: collection.children, + manifest, + extractionRoot: dirPath, + }); + } + + // Build docMap (pathInZip -> externalId) for internal-link resolution. + // Walk the full document tree to collect every doc id, since internal + // markdown links can target any document regardless of depth. + const docMap: Record<string, string> = {}; + const collectDocMap = (docs: DiscoveredDocument[]) => { + for (const d of docs) { + docMap[d.pathInZip] = d.id; + collectDocMap(d.children); + } + }; + for (const c of collections) { + collectDocMap(c.children); + } + + // Replace (not append) anything past the create-time placeholder with + // the freshly discovered collections so a retried bootstrap doesn't + // accumulate duplicate entries with fresh UUIDs from a previous + // partial run. ImportsProcessor's persistence pass treats these as + // collections. + const associatedImport = importTask.import; + const placeholder = associatedImport.input[0]; + associatedImport.input = [ + placeholder, + ...collections.map((c) => ({ + externalId: c.id, + permission: placeholder.permission, + })), + ]; + associatedImport.scratch = { storageKey, manifest }; + await associatedImport.save(); + + // Append collection placeholder items so ImportsProcessor iterates + // them during the bootstrap row (the earliest createdAt) — that + // guarantees collections land in the DB before any per-page document + // references them. + const collectionInputItems: MarkdownPageImportTaskInputItem[] = + collections.map((c) => ({ + externalId: c.id, + title: c.title, + path: c.title, + markdownText: "", + attachmentMap: [], + docMap: {}, + })); + + importTask.input = [importTask.input[0], ...collectionInputItems]; + + const collectionOutputs: ImportTaskOutput = collections.map((c) => ({ + externalId: c.id, + title: c.title, + content: ProsemirrorHelper.getEmptyDocument() as ProsemirrorDoc, + })); + + // First wave of document tasks: only top-level docs in each collection. + // Each carries its descendants in `children` and the per-page handler + // re-emits them as the next wave of childTasksInput, producing a strict + // depth-ordered cascade of ImportTask rows so parent FKs are always + // satisfied at child-doc creation time. + const childTasksInput: ImportTaskInput<Markdown> = collections.flatMap( + (c) => c.children.map((d) => this.toPageInput(d, manifest, docMap)) + ); + + return { taskOutput: collectionOutputs, childTasksInput }; + } finally { + await cleanup(); + } + } + + /** + * Converts a discovered document subtree into a per-page task input, + * recursively packing the doc's descendants into the `children` field so + * each tree-depth runs as its own task wave. + * + * @param doc The discovered document, including its descendants. + * @param manifest The full attachment manifest (used for per-page refs). + * @param docMap Path → externalId map for internal link rewriting. + * @returns A self-contained per-page task input. + */ + private toPageInput( + doc: DiscoveredDocument, + manifest: MarkdownAttachmentManifestItem[], + docMap: Record<string, string> + ): MarkdownPageImportTaskInputItem { + return { + externalId: doc.id, + parentExternalId: doc.parentDocumentId, + collectionExternalId: doc.collectionId, + title: doc.title, + path: doc.pathInZip, + markdownText: doc.markdownText, + attachmentMap: this.attachmentsReferencedBy(doc.markdownText, manifest), + docMap, + children: doc.children.length + ? doc.children.map((c) => this.toPageInput(c, manifest, docMap)) + : undefined, + }; + } + + protected async processPage( + importTask: ImportTask<Markdown> + ): Promise<ProcessOutput<Markdown>> { + const taskOutput: ImportTaskOutput = []; + const childTasksInput: MarkdownPageImportTaskInputItem[] = []; + + const items = importTask.input as MarkdownPageImportTaskInputItem[]; + for (const item of items) { + // Empty markdown short-circuits — used by collection placeholders so + // ImportsProcessor sees their externalId paired with empty content and + // builds a Collection rather than a Document. (Currently collections + // are persisted via the bootstrap task itself, so this branch is only + // a defensive fallback.) + if (!item.markdownText) { + taskOutput.push({ + externalId: item.externalId, + title: item.title, + content: ProsemirrorHelper.getEmptyDocument() as ProsemirrorDoc, + }); + } else { + const transformedMarkdown = this.rewriteMarkdown(item); + const { doc, title, icon } = await DocumentConverter.convert( + transformedMarkdown, + path.basename(item.path), + "text/markdown" + ); + + taskOutput.push({ + externalId: item.externalId, + title: title || item.title, + icon, + content: doc.toJSON() as ProsemirrorDoc, + }); + } + + // Cascade this doc's direct descendants as the next task wave. Their + // ImportTask rows will be created after the current one returns, so + // their createdAt is strictly later — guaranteeing parent-before-child + // FK ordering during ImportsProcessor's persistence pass. + if (item.children?.length) { + childTasksInput.push(...item.children); + } + } + + return { taskOutput, childTasksInput }; + } + + /** + * Pre-rewrites a page's markdown text. Internal `.md` links become mention + * markdown so the editor parses them as Document mentions. Attachment paths + * are first reduced to `<<id>>` placeholders by the shared rewriter, then + * — distinct from the prosemirror-tree walk we used to do — substituted + * with their final attachment redirect URLs in the markdown text. Doing + * the resolution at the text layer avoids markdown-it parsing `<<id>>` as + * an angle-bracket-wrapped URL (which produced broken image src attrs). + * + * @param page The per-page task input. + * @returns Rewritten markdown text ready for DocumentConverter. + */ + private rewriteMarkdown(page: MarkdownPageImportTaskInputItem): string { + let text = rewriteInternalLinks(page.markdownText, page.path, page.docMap); + + // Convert `[label](<<id>>)` links from rewriteInternalLinks into mention + // markdown the editor recognises: `@[label](mention://<uuid>/document/<id>)`. + text = text.replace( + /\[([^\]]+)\]\(<<([^>]+)>>\)/g, + (_full, label: string, externalId: string) => + `@[${label}](mention://${randomUUID()}/document/${externalId})` + ); + + text = rewriteAttachmentPaths( + text, + page.attachmentMap.map((m) => ({ id: m.id, pathInZip: m.pathInZip })) + ); + + // Resolve remaining `<<id>>` placeholders to attachment redirect URLs. + text = text.replace(/<<([^>]+)>>/g, (_full, id: string) => + Attachment.getRedirectUrl(id) + ); + + return text; + } + + /** + * Returns the subset of the full manifest that is referenced anywhere in + * the given markdown text. Used to bound the per-page task input size. + * + * @param markdown Raw markdown text for a single document. + * @param manifest The full attachment manifest from the bootstrap phase. + * @returns Manifest entries that appear (by filename) in the markdown. + */ + private attachmentsReferencedBy( + markdown: string, + manifest: MarkdownAttachmentManifestItem[] + ): MarkdownAttachmentManifestItem[] { + return manifest.filter((item) => { + const fileName = path.basename(item.pathInZip); + return ( + markdown.includes(fileName) || markdown.includes(encodeURI(fileName)) + ); + }); + } + + /** + * Detects folders containing only attachments (no markdown documents). + * Recursively considers nested folders; mirrors the legacy heuristic. + * + * @param node FileTreeNode to inspect. + * @returns true when the folder appears to hold only attachments. + */ + private isAttachmentFolder(node: FileTreeNode): boolean { + if (node.children.length === 0) { + return false; + } + if (node.title.toLowerCase() === "attachments") { + return true; + } + return node.children.every((child) => { + if (child.children.length > 0) { + return this.isAttachmentFolder(child); + } + const ext = path.extname(child.name).toLowerCase(); + if (!ext) { + return false; + } + return ext !== ".md" && ext !== ".markdown"; + }); + } + + /** + * Recursively collects all files under an attachment-only folder into the + * manifest. `pathInZip` is stored as a path relative to the extraction + * root so it can be resolved again after the zip is re-extracted during + * the completion phase (which lands in a fresh tmp dir). + * + * @param node Attachment-folder FileTreeNode. + * @param manifest Manifest array to push entries into. + * @param extractionRoot Absolute path to the zip extraction root. + */ + private collectAttachments( + node: FileTreeNode, + manifest: MarkdownAttachmentManifestItem[], + extractionRoot: string + ): void { + for (const child of node.children) { + if (child.children.length > 0) { + this.collectAttachments(child, manifest, extractionRoot); + continue; + } + manifest.push({ + id: randomUUID(), + name: child.name, + pathInZip: path.relative(extractionRoot, child.path), + mimeType: mime.lookup(child.path) || "application/octet-stream", + }); + } + } + + /** + * Walks a collection subtree and gathers documents (markdown files) and + * loose attachments. Documents are appended to `out` as a tree — each + * entry's `children` holds its direct descendants. This is the shape the + * per-page task cascade consumes. + * + * @param children FileTreeNode children of the current folder. + * @param collectionId Pre-assigned id of the enclosing collection. + * @param parentDocumentId Optional parent document id when nested. + * @param out Sibling accumulator to push discovered documents into. + * @param manifest Attachment manifest accumulator. + * @returns Promise that resolves when the subtree has been processed. + */ + private async collectDocumentsAndAttachments({ + children, + collectionId, + parentDocumentId, + out, + manifest, + extractionRoot, + }: { + children: FileTreeNode[]; + collectionId: string; + parentDocumentId?: string; + out: DiscoveredDocument[]; + manifest: MarkdownAttachmentManifestItem[]; + extractionRoot: string; + }): Promise<void> { + for (const child of children) { + if (child.children.length > 0 && this.isAttachmentFolder(child)) { + this.collectAttachments(child, manifest, extractionRoot); + continue; + } + + const ext = path.extname(child.name).toLowerCase(); + const isMarkdown = ext === ".md" || ext === ".markdown"; + const isFolder = child.children.length > 0; + + if (!isMarkdown && !isFolder) { + manifest.push({ + id: randomUUID(), + name: child.name, + pathInZip: path.relative(extractionRoot, child.path), + mimeType: mime.lookup(child.path) || "application/octet-stream", + }); + continue; + } + + const id = randomUUID(); + const markdownText = isFolder + ? "" + : await fs.readFile(child.path, "utf8"); + + // Folder-and-file with the same title (a "name.md" alongside a "name/" + // directory) is merged onto a single document: the folder body picks up + // the file's markdown text, and the folder's contents become children. + const sibling = out.find((d) => d.title === child.title); + + if (sibling) { + if (sibling.markdownText === "" && markdownText) { + sibling.markdownText = markdownText; + } + if (isFolder) { + await this.collectDocumentsAndAttachments({ + children: child.children, + collectionId, + parentDocumentId: sibling.id, + out: sibling.children, + manifest, + extractionRoot, + }); + } + continue; + } + + const node: DiscoveredDocument = { + id, + title: child.title, + pathInZip: path.relative(extractionRoot, child.path), + collectionId, + parentDocumentId, + markdownText, + children: [], + }; + out.push(node); + + if (isFolder) { + await this.collectDocumentsAndAttachments({ + children: child.children, + collectionId, + parentDocumentId: id, + out: node.children, + manifest, + extractionRoot, + }); + } + } + } + + /** + * Downloads the zip from object storage and extracts it into a temporary + * directory. + * + * @param storageKey Storage key for the uploaded zip. + * @returns The temp dir path and a cleanup callback. Caller must invoke + * cleanup() once finished. + */ + private async downloadAndExtract(storageKey: string): Promise<ExtractedZip> { + const handle = await FileStorage.getFileHandle(storageKey); + + let dirPath: string | undefined; + try { + dirPath = await new Promise<string>((resolve, reject) => { + tmp.dir({ unsafeCleanup: true }, (err, tmpDir) => { + if (err) { + reject(err); + return; + } + resolve(tmpDir); + }); + }); + + await ZipHelper.extract(handle.path, dirPath); + + return { + dirPath, + cleanup: async () => { + await fs + .rm(dirPath!, { recursive: true, force: true }) + .catch(() => {}); + await handle.cleanup().catch(() => {}); + }, + }; + } catch (err) { + if (dirPath) { + await fs.rm(dirPath, { recursive: true, force: true }).catch(() => {}); + } + await handle.cleanup().catch(() => {}); + throw err; + } + } +} diff --git a/server/routes/api/collections/schema.ts b/server/routes/api/collections/schema.ts index 10f01debcb..7a746bfd77 100644 --- a/server/routes/api/collections/schema.ts +++ b/server/routes/api/collections/schema.ts @@ -76,9 +76,11 @@ export const CollectionsImportSchema = BaseSchema.extend({ .nullish() .transform((val) => (isUndefined(val) ? null : val)), attachmentId: z.uuid(), + // Markdown zip imports now run through `imports.create` → + // MarkdownAPIImportTask, so only JSON is accepted here. format: z - .enum(FileOperationFormat) - .prefault(FileOperationFormat.MarkdownZip), + .literal(FileOperationFormat.JSON) + .prefault(FileOperationFormat.JSON), }), }); diff --git a/server/routes/api/imports/imports.ts b/server/routes/api/imports/imports.ts index 58d5d58f59..581ac9beab 100644 --- a/server/routes/api/imports/imports.ts +++ b/server/routes/api/imports/imports.ts @@ -1,15 +1,16 @@ import Router from "koa-router"; +import { randomUUID } from "node:crypto"; import { truncate } from "es-toolkit/compat"; import type { WhereOptions } from "sequelize"; import type { IntegrationType } from "@shared/types"; -import { ImportState, UserRole } from "@shared/types"; +import { ImportState, IntegrationService, UserRole } from "@shared/types"; import { ImportValidation } from "@shared/validations"; import { UnprocessableEntityError } from "@server/errors"; 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 { Integration } from "@server/models"; +import { Attachment, Integration } from "@server/models"; import Import from "@server/models/Import"; import { authorize } from "@server/policies"; import { presentImport, presentPolicies } from "@server/presenters"; @@ -27,7 +28,7 @@ router.post( validate(T.ImportsCreateSchema), transaction(), async (ctx: APIContext<T.ImportsCreateReq>) => { - const { integrationId, service, input } = ctx.input.body; + const body = ctx.input.body; const { user } = ctx.state.auth; authorize(user, "createImport", user.team); @@ -47,9 +48,41 @@ router.post( throw UnprocessableEntityError("An import is already in progress"); } + if (body.service === IntegrationService.Markdown) { + const attachment = await Attachment.findByPk(body.attachmentId, { + rejectOnEmpty: true, + }); + authorize(user, "read", attachment); + + const importModel = await Import.createWithCtx(ctx, { + name: truncate(attachment.name, { + length: ImportValidation.maxNameLength, + }), + service: IntegrationService.Markdown, + state: ImportState.Created, + input: [ + { + externalId: randomUUID(), + permission: body.permission, + }, + ], + scratch: { storageKey: attachment.key }, + integrationId: null, + createdById: user.id, + teamId: user.teamId, + }); + importModel.createdBy = user; + + ctx.body = { + data: presentImport(importModel), + policies: presentPolicies(user, [importModel]), + }; + return; + } + const integration = await Integration.findByPk< Integration<IntegrationType.Import> - >(integrationId, { + >(body.integrationId, { rejectOnEmpty: true, }); authorize(user, "read", integration); @@ -58,10 +91,10 @@ router.post( const importModel = await Import.createWithCtx(ctx, { name: truncate(name, { length: ImportValidation.maxNameLength }), - service, + service: body.service, state: ImportState.Created, - input, - integrationId, + input: body.input, + integrationId: body.integrationId, createdById: user.id, teamId: user.teamId, }); diff --git a/server/routes/api/imports/schema.ts b/server/routes/api/imports/schema.ts index 522695c8c2..e94b82801e 100644 --- a/server/routes/api/imports/schema.ts +++ b/server/routes/api/imports/schema.ts @@ -1,6 +1,7 @@ import { z } from "zod"; import { NotionImportInputItemSchema } from "@shared/schema"; import { + CollectionPermission, ImportableIntegrationService, IntegrationService, } from "@shared/types"; @@ -37,6 +38,11 @@ export const ImportsCreateSchema = BaseSchema.extend({ service: z.literal(IntegrationService.Notion), input: z.array(NotionImportInputItemSchema), }), + z.object({ + service: z.literal(IntegrationService.Markdown), + attachmentId: z.uuid(), + permission: z.enum(CollectionPermission).optional(), + }), ]), }); diff --git a/shared/schema.ts b/shared/schema.ts index d1e3953559..fdf08c0ef1 100644 --- a/shared/schema.ts +++ b/shared/schema.ts @@ -20,8 +20,20 @@ export const NotionImportInputItemSchema = BaseImportInputItemSchema.extend({ export type NotionImportInput = z.infer<typeof NotionImportInputItemSchema>[]; +export const MarkdownImportInputItemSchema = BaseImportInputItemSchema.extend({ + externalId: z.string(), +}); + +export type MarkdownImportInput = z.infer< + typeof MarkdownImportInputItemSchema +>[]; + export type ImportInput<T extends ImportableIntegrationService> = - T extends IntegrationService.Notion ? NotionImportInput : BaseImportInput; + T extends IntegrationService.Notion + ? NotionImportInput + : T extends IntegrationService.Markdown + ? MarkdownImportInput + : BaseImportInput; export const BaseImportTaskInputItemSchema = z.object({ externalId: z.string(), @@ -42,16 +54,88 @@ export type NotionImportTaskInput = z.infer< typeof NotionImportTaskInputItemSchema >[]; +/** + * Manifest entry describing a single attachment discovered during the + * Markdown zip bootstrap phase. The `id` is a pre-assigned UUID used both + * as the attachment node id in per-page prosemirror output and as the + * Attachment row id created during completion. + */ +export const MarkdownAttachmentManifestItemSchema = z.object({ + id: z.uuid(), + name: z.string(), + mimeType: z.string(), + pathInZip: z.string(), +}); + +export type MarkdownAttachmentManifestItem = z.infer< + typeof MarkdownAttachmentManifestItemSchema +>; + +/** + * Markdown importer scratch state. `storageKey` is set at import creation + * (it's the only durable handle on the uploaded zip). `manifest` is added + * by the bootstrap phase so the completion phase can re-download the zip + * and create Attachment rows without re-walking the tree. + */ +export interface MarkdownImportScratch { + storageKey: string; + manifest?: MarkdownAttachmentManifestItem[]; +} + +/** + * Per-importer scratch shape stored on `Import.scratch`. Holds cross-phase + * state that the importer needs between bootstrap and completion but that + * isn't part of any single task's input. Cleared when the import flips to + * `Processed`. + */ +export type ImportScratch<T extends ImportableIntegrationService> = + T extends IntegrationService.Markdown ? MarkdownImportScratch : never; + +/** + * Per-page task input. Generated by the bootstrap task and consumed by + * subsequent MarkdownAPIImportTask runs. `children` carries this document's + * direct descendants so that each level of the document tree is scheduled + * as a separate task wave; this preserves parent-before-child ordering + * during persistence (createdAt of child tasks is strictly later than + * parents'). The type is defined as a TypeScript interface rather than via + * z.infer because it is only consumed internally — never validated at an + * API boundary — and zod's recursive-schema ergonomics aren't worth the + * cost here. + */ +export interface MarkdownPageImportTaskInputItem { + externalId: string; + parentExternalId?: string; + collectionExternalId?: string; + title: string; + path: string; + markdownText: string; + attachmentMap: MarkdownAttachmentManifestItem[]; + docMap: Record<string, string>; + children?: MarkdownPageImportTaskInputItem[]; +} + +/** + * Markdown import task input — a bootstrap row carrying only the base + * placeholder item (the zip's `storageKey` lives on `Import.scratch`), or a + * page row carrying per-document content. + */ +export type MarkdownImportTaskInput = ( + | BaseImportTaskInput[number] + | MarkdownPageImportTaskInputItem +)[]; + export type ImportTaskInput<T extends ImportableIntegrationService> = T extends IntegrationService.Notion ? NotionImportTaskInput - : BaseImportTaskInput; + : T extends IntegrationService.Markdown + ? MarkdownImportTaskInput + : BaseImportTaskInput; // No reason to be here except for co-location with import task input. export type ImportTaskOutput = { externalId: string; title: string; - emoji?: string; + icon?: string; author?: string; content: ProsemirrorDoc; createdAt?: Date; diff --git a/shared/types.ts b/shared/types.ts index 39860c05dd..4b8fc5dc31 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -97,6 +97,21 @@ export enum ImportTaskState { Canceled = "canceled", } +/** + * Classifies the work an `ImportTask` row represents. Set when the task is + * created and used by `APIImportTask` to dispatch to the right handler. + * + * - `Bootstrap` runs once per import on a worker that owns the source + * artifact (e.g. extracts a zip, discovers structure, schedules child + * tasks). Subclasses without a bootstrap step never produce these. + * - `Page` is the per-document work that the bootstrap (or `ImportsProcessor` + * for sources without a bootstrap, like Notion) fans out into. + */ +export enum ImportTaskPhase { + Bootstrap = "bootstrap", + Page = "page", +} + export enum MentionType { User = "user", Document = "document", @@ -151,15 +166,17 @@ export enum IntegrationService { Linear = "linear", Figma = "figma", Notion = "notion", + Markdown = "markdown", } export type ImportableIntegrationService = Extract< IntegrationService, - IntegrationService.Notion + IntegrationService.Notion | IntegrationService.Markdown >; export const ImportableIntegrationService = { Notion: IntegrationService.Notion, + Markdown: IntegrationService.Markdown, } as const; export type IssueTrackerIntegrationService = Extract< From 879d2b8198ad718e684f9202bcd4c6c5d9f32a26 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 16 May 2026 19:56:21 -0400 Subject: [PATCH 037/286] fix: Allow connecting additional auth providers on custom domain (#12364) * fix: Unable to link secondary auth provider on custom domain * doc * chore: Custom -> Apex transfer token * Refactor, address security concerns * Ensure OAuth intent is single-use * Secure OAuth state actor binding * Use scrypt for OAuth actor session binding --- plugins/azure/server/auth/azure.ts | 2 + plugins/discord/server/auth/discord.ts | 2 + plugins/google/server/auth/google.ts | 3 +- plugins/oidc/server/auth/oidcRouter.ts | 3 +- plugins/slack/server/auth/slack.ts | 3 +- server/commands/accountProvisioner.ts | 2 +- server/middlewares/passport.ts | 8 +- server/routes/api/documents/documents.ts | 4 +- server/routes/api/emojis/emojis.ts | 2 +- server/routes/api/shares/shares.ts | 6 +- server/routes/api/urls/urls.ts | 2 +- server/routes/app.ts | 2 +- server/routes/index.ts | 4 +- server/routes/oauth/index.ts | 2 +- server/types.ts | 3 + server/utils/oauthState.test.ts | 101 +++++++ server/utils/oauthState.ts | 177 ++++++++++++ server/utils/passport.ts | 325 ++++++++++++++++------- 18 files changed, 541 insertions(+), 110 deletions(-) create mode 100644 server/utils/oauthState.test.ts create mode 100644 server/utils/oauthState.ts diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index 1ab4ee0f4c..6b0deee13d 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -17,6 +17,7 @@ import { getTeamFromContext, getClientFromOAuthState, getUserFromOAuthState, + startOAuthFlow, } from "@server/utils/passport"; import config from "../../plugin.json"; import env from "../env"; @@ -143,6 +144,7 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { passport.use(strategy); router.get( config.id, + startOAuthFlow, passport.authenticate(config.id, { prompt: "select_account" }) ); router.get(`${config.id}.callback`, passportMiddleware(config.id)); diff --git a/plugins/discord/server/auth/discord.ts b/plugins/discord/server/auth/discord.ts index 78e34db1fa..00d940243e 100644 --- a/plugins/discord/server/auth/discord.ts +++ b/plugins/discord/server/auth/discord.ts @@ -24,6 +24,7 @@ import { getClientFromOAuthState, getUserFromOAuthState, request, + startOAuthFlow, } from "@server/utils/passport"; import config from "../../plugin.json"; import env from "../env"; @@ -226,6 +227,7 @@ if (env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET) { router.get( config.id, + startOAuthFlow, passport.authenticate(config.id, { scope, }) diff --git a/plugins/google/server/auth/google.ts b/plugins/google/server/auth/google.ts index b030950373..dbf241a8fa 100644 --- a/plugins/google/server/auth/google.ts +++ b/plugins/google/server/auth/google.ts @@ -19,6 +19,7 @@ import { getTeamFromContext, getClientFromOAuthState, getUserFromOAuthState, + startOAuthFlow, } from "@server/utils/passport"; import config from "../../plugin.json"; import env from "../env"; @@ -151,7 +152,7 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { ) ); - router.get(config.id, async (ctx, next) => { + router.get(config.id, startOAuthFlow, async (ctx, next) => { const team = await getTeamFromContext(ctx, { includeHostQueryParam: true, }); diff --git a/plugins/oidc/server/auth/oidcRouter.ts b/plugins/oidc/server/auth/oidcRouter.ts index 89eaa00cb8..4d8a98ca11 100644 --- a/plugins/oidc/server/auth/oidcRouter.ts +++ b/plugins/oidc/server/auth/oidcRouter.ts @@ -22,6 +22,7 @@ import { getClientFromOAuthState, getUserFromOAuthState, request, + startOAuthFlow, } from "@server/utils/passport"; import config from "../../plugin.json"; import env from "../env"; @@ -227,7 +228,7 @@ export function createOIDCRouter( ) ); - router.get(config.id, passport.authenticate(config.id)); + router.get(config.id, startOAuthFlow, passport.authenticate(config.id)); router.get(`${config.id}.callback`, passportMiddleware(config.id)); router.post(`${config.id}.callback`, passportMiddleware(config.id)); } diff --git a/plugins/slack/server/auth/slack.ts b/plugins/slack/server/auth/slack.ts index 4e5b12ba9f..6906702fe2 100644 --- a/plugins/slack/server/auth/slack.ts +++ b/plugins/slack/server/auth/slack.ts @@ -25,6 +25,7 @@ import { getTeamFromContext, getUserFromOAuthState, StateStore, + startOAuthFlow, } from "@server/utils/passport"; import { parseEmail } from "@shared/utils/email"; import env from "../env"; @@ -134,7 +135,7 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) { strategy.name = providerName; passport.use(strategy); - router.get("slack", passport.authenticate(providerName)); + router.get("slack", startOAuthFlow, passport.authenticate(providerName)); router.get("slack.callback", passportMiddleware(providerName)); router.get( diff --git a/server/commands/accountProvisioner.ts b/server/commands/accountProvisioner.ts index 448c9730a0..5992b0cc33 100644 --- a/server/commands/accountProvisioner.ts +++ b/server/commands/accountProvisioner.ts @@ -99,7 +99,7 @@ async function accountProvisioner( const actor = ctx.state.auth?.user; // If the user is already logged in and is an admin of the team then we - // allow them to connect a new authentication provider + // allow them to connect a new authentication provider. if (actor && actor.teamId === teamParams.teamId && actor.isAdmin) { const team = actor.team; const authenticationProvider = await AuthenticationProvider.findOne({ diff --git a/server/middlewares/passport.ts b/server/middlewares/passport.ts index f492701a7a..7bcb517f84 100644 --- a/server/middlewares/passport.ts +++ b/server/middlewares/passport.ts @@ -71,15 +71,17 @@ export default function createMiddleware(providerName: string) { // same domain or subdomain that they originated from (found in state). // get original host - const stateString = ctx.cookies.get("state"); + const stateString = + typeof ctx.query.state === "string" ? ctx.query.state : undefined; const state = stateString ? parseState(stateString) : undefined; + const oauthState = ctx.state.oauthState ?? state; // form a URL object with the err.redirectPath and replace the host const reqProtocol = - state?.client === Client.Desktop ? "outline" : ctx.protocol; + oauthState?.client === Client.Desktop ? "outline" : ctx.protocol; const requestHost = await getValidatedHost( - state?.host ?? ctx.hostname + oauthState?.host ?? ctx.hostname ); const url = new URL( env.isCloudHosted diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index e8f3cac070..8add886761 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -549,7 +549,7 @@ router.post( const { user } = ctx.state.auth; const apiVersion = getAPIVersion(ctx); const teamFromCtx = await getTeamFromContext(ctx, { - includeStateCookie: false, + includeOAuthState: false, }); let document: Document | null; @@ -1103,7 +1103,7 @@ router.post( if (shareId) { const teamFromCtx = await getTeamFromContext(ctx, { - includeStateCookie: false, + includeOAuthState: false, }); const result = await loadPublicShare({ id: shareId, diff --git a/server/routes/api/emojis/emojis.ts b/server/routes/api/emojis/emojis.ts index d874c573be..edbded9f73 100644 --- a/server/routes/api/emojis/emojis.ts +++ b/server/routes/api/emojis/emojis.ts @@ -85,7 +85,7 @@ router.get( if (shareId) { const teamFromCtx = await getTeamFromContext(ctx, { - includeStateCookie: false, + includeOAuthState: false, }); const { share } = await loadPublicShare({ id: shareId, diff --git a/server/routes/api/shares/shares.ts b/server/routes/api/shares/shares.ts index a5ec7abbd7..c4a3e94194 100644 --- a/server/routes/api/shares/shares.ts +++ b/server/routes/api/shares/shares.ts @@ -56,7 +56,7 @@ router.post( const { id, collectionId, documentId } = ctx.input.body; const { user } = ctx.state.auth; const teamFromCtx = await getTeamFromContext(ctx, { - includeStateCookie: false, + includeOAuthState: false, }); // only public link loads will send "id". @@ -440,7 +440,7 @@ router.get( validate(T.SharesSitemapSchema), async (ctx: APIContext<T.SharesSitemapReq>) => { const { id } = ctx.input.query; - const team = await getTeamFromContext(ctx, { includeStateCookie: false }); + const team = await getTeamFromContext(ctx, { includeOAuthState: false }); const { share, sharedTree } = await loadPublicShare({ id, @@ -473,7 +473,7 @@ router.post( const { shareId, documentId, email } = ctx.input.body; const { transaction } = ctx.state; - const team = await getTeamFromContext(ctx, { includeStateCookie: false }); + const team = await getTeamFromContext(ctx, { includeOAuthState: false }); // Validate the share exists and is published const { share, document } = await loadPublicShare({ diff --git a/server/routes/api/urls/urls.ts b/server/routes/api/urls/urls.ts index df8ed9cb81..93b5ead181 100644 --- a/server/routes/api/urls/urls.ts +++ b/server/routes/api/urls/urls.ts @@ -55,7 +55,7 @@ router.post( let teamId: string | undefined = actor?.teamId; if (!teamId && !isUUID(shareId)) { const teamFromCtx = await getTeamFromContext(ctx, { - includeStateCookie: false, + includeOAuthState: false, }); teamId = teamFromCtx?.id; } diff --git a/server/routes/app.ts b/server/routes/app.ts index 510dc59cb3..0c03789dc0 100644 --- a/server/routes/app.ts +++ b/server/routes/app.ts @@ -215,7 +215,7 @@ export const renderShare = async (ctx: Context, next: Next) => { let sharedTree; try { - team = await getTeamFromContext(ctx, { includeStateCookie: false }); + team = await getTeamFromContext(ctx, { includeOAuthState: false }); const result = await loadPublicShare({ id: shareId, collectionId: collectionSlug, diff --git a/server/routes/index.ts b/server/routes/index.ts index 7bf8bf6c13..4beb87e3fb 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -124,7 +124,7 @@ router.get( const origin = env.isCloudHosted ? ctx.request.URL.origin : new URL(env.URL).origin; - const team = await getTeamFromContext(ctx, { includeStateCookie: false }); + const team = await getTeamFromContext(ctx, { includeOAuthState: false }); const mcpEnabled = team?.getPreference(TeamPreference.MCP) ?? true; ctx.body = { @@ -151,7 +151,7 @@ router.get( "/.well-known/oauth-protected-resource/mcp", ], async (ctx) => { - const team = await getTeamFromContext(ctx, { includeStateCookie: false }); + const team = await getTeamFromContext(ctx, { includeOAuthState: false }); const mcpEnabled = team?.getPreference(TeamPreference.MCP) ?? true; if (!mcpEnabled) { diff --git a/server/routes/oauth/index.ts b/server/routes/oauth/index.ts index 84225be7ce..7151ec5e45 100644 --- a/server/routes/oauth/index.ts +++ b/server/routes/oauth/index.ts @@ -194,7 +194,7 @@ router.post( } = ctx.input.body; const team = await getTeamFromContext(ctx, { - includeStateCookie: false, + includeOAuthState: false, }); if (!team) { throw NotFoundError(); diff --git a/server/types.ts b/server/types.ts index 5d419dc290..bb14d03d4e 100644 --- a/server/types.ts +++ b/server/types.ts @@ -14,6 +14,7 @@ import type { } from "@shared/types"; import type { BaseSchema } from "@server/routes/api/schema"; import type { AccountProvisionerResult } from "./commands/accountProvisioner"; +import type { OAuthIntent, OAuthState } from "./utils/oauthState"; import type { AccessRequest, ApiKey, @@ -77,6 +78,8 @@ export type AppState = { transaction: Transaction; pagination: Pagination; oauthClient?: OAuthClient; + oauthIntent?: OAuthIntent; + oauthState?: OAuthState; }; export type AppContext = ParameterizedContext<AppState, DefaultContext>; diff --git a/server/utils/oauthState.test.ts b/server/utils/oauthState.test.ts new file mode 100644 index 0000000000..3d3ef55270 --- /dev/null +++ b/server/utils/oauthState.test.ts @@ -0,0 +1,101 @@ +import { Client } from "@shared/types"; +import env from "@server/env"; +import { + hashOAuthStateNonce, + signOAuthIntent, + signOAuthState, + verifyOAuthIntent, + verifyOAuthState, +} from "./oauthState"; + +describe("oauthState", () => { + const originalSecretKey = env.SECRET_KEY; + + afterEach(() => { + env.SECRET_KEY = originalSecretKey; + }); + + it("round-trips a signed OAuth intent", () => { + const token = signOAuthIntent({ + host: "docs.example.com", + actorId: "user-id", + actorSessionHash: "session-hash", + client: Client.Web, + }); + + const payload = verifyOAuthIntent(token); + + expect(payload.host).toBe("docs.example.com"); + expect(payload.actorId).toBe("user-id"); + expect(payload.actorSessionHash).toBe("session-hash"); + expect(payload.client).toBe(Client.Web); + expect(payload.type).toBe("oauth_intent"); + expect(payload.exp).toBeGreaterThan(payload.iat); + }); + + it("round-trips a signed OAuth state", () => { + const token = signOAuthState({ + host: "team.outline.dev", + actorId: "user-id", + actorSessionHash: "session-hash", + client: Client.Desktop, + codeVerifier: "pkce-verifier", + nonceHash: hashOAuthStateNonce("csrf-nonce"), + }); + + const payload = verifyOAuthState(token); + + expect(payload.host).toBe("team.outline.dev"); + expect(payload.actorId).toBe("user-id"); + expect(payload.actorSessionHash).toBe("session-hash"); + expect(payload.client).toBe(Client.Desktop); + expect(payload.type).toBe("oauth_state"); + expect(payload.codeVerifier).toBe("pkce-verifier"); + expect(payload.nonceHash).toBe(hashOAuthStateNonce("csrf-nonce")); + }); + + it("rejects a signed OAuth state as an OAuth intent", () => { + const token = signOAuthState({ + host: "team.outline.dev", + actorId: "user-id", + client: Client.Web, + nonceHash: hashOAuthStateNonce("csrf-nonce"), + }); + + expect(() => verifyOAuthIntent(token)).toThrow("Invalid OAuth intent"); + }); + + it("rejects a signed OAuth intent as an OAuth state", () => { + const token = signOAuthIntent({ + host: "docs.example.com", + actorId: "user-id", + client: Client.Web, + }); + + expect(() => verifyOAuthState(token)).toThrow("Invalid OAuth state"); + }); + + it("rejects a tampered token", () => { + const token = signOAuthState({ + host: "team.outline.dev", + client: Client.Web, + nonceHash: hashOAuthStateNonce("csrf-nonce"), + }); + const tamperedToken = `${token}tampered`; + + expect(() => verifyOAuthState(tamperedToken)).toThrow( + "Invalid OAuth state" + ); + }); + + it("rejects tokens signed with another secret", () => { + const token = signOAuthIntent({ + host: "docs.example.com", + client: Client.Web, + }); + + env.SECRET_KEY = "1".repeat(64); + + expect(() => verifyOAuthIntent(token)).toThrow("Invalid OAuth state"); + }); +}); diff --git a/server/utils/oauthState.ts b/server/utils/oauthState.ts new file mode 100644 index 0000000000..0fb167becd --- /dev/null +++ b/server/utils/oauthState.ts @@ -0,0 +1,177 @@ +import JWT from "jsonwebtoken"; +import { Client } from "@shared/types"; +import env from "@server/env"; +import { OAuthStateMismatchError } from "@server/errors"; +import { hash } from "./crypto"; + +const Algorithm = "HS256"; +const ExpiresInSeconds = 10 * 60; +const IntentType = "oauth_intent"; +const StateType = "oauth_state"; + +interface OAuthIntentInput { + host: string; + actorId?: string; + actorSessionHash?: string; + client: Client; +} + +interface OAuthStateInput extends OAuthIntentInput { + codeVerifier?: string; + nonceHash: string; +} + +interface OAuthIntentClaims extends OAuthIntentInput { + type: typeof IntentType; +} + +interface OAuthStateClaims extends OAuthStateInput { + type: typeof StateType; +} + +export interface OAuthIntent extends OAuthIntentClaims { + iat: number; + exp: number; +} + +export interface OAuthState extends OAuthStateClaims { + iat: number; + exp: number; +} + +/** + * Hashes an OAuth CSRF nonce for storage in signed OAuth state. + * + * @param nonce the nonce stored in the browser cookie. + * @returns the sha256 hash of the nonce. + */ +export function hashOAuthStateNonce(nonce: string): string { + return hash(nonce); +} + +/** + * Creates a short-lived signed OAuth intent token. + * + * @param payload the intent values to sign. + * @returns the signed intent token. + */ +export function signOAuthIntent(payload: OAuthIntentInput): string { + return sign({ + ...payload, + type: IntentType, + }); +} + +/** + * Verifies a signed OAuth intent token. + * + * @param token the token to verify. + * @returns the verified intent payload. + * @throws {OAuthStateMismatchError} if the token is missing, expired, invalid, + * or has an unexpected payload shape. + */ +export function verifyOAuthIntent(token: string): OAuthIntent { + const payload = verify(token); + + if (!isOAuthIntent(payload)) { + throw OAuthStateMismatchError("Invalid OAuth intent"); + } + + return payload; +} + +/** + * Creates a short-lived signed OAuth state token. + * + * @param payload the OAuth state values to sign. + * @returns the signed OAuth state token. + */ +export function signOAuthState(payload: OAuthStateInput): string { + return sign({ + ...payload, + type: StateType, + }); +} + +/** + * Verifies a signed OAuth state token. + * + * @param token the token to verify. + * @returns the verified OAuth state payload. + * @throws {OAuthStateMismatchError} if the token is missing, expired, invalid, + * or has an unexpected payload shape. + */ +export function verifyOAuthState(token: string): OAuthState { + const payload = verify(token); + + if (!isOAuthState(payload)) { + throw OAuthStateMismatchError("Invalid OAuth state"); + } + + return payload; +} + +function sign(payload: OAuthIntentClaims | OAuthStateClaims): string { + return JWT.sign(payload, env.SECRET_KEY, { + algorithm: Algorithm, + expiresIn: ExpiresInSeconds, + }); +} + +function verify(token: string): JWT.JwtPayload { + try { + const payload = JWT.verify(token, env.SECRET_KEY, { + algorithms: [Algorithm], + }); + + if (typeof payload === "string") { + throw OAuthStateMismatchError("Invalid OAuth state"); + } + + return payload; + } catch (err) { + if (err instanceof Error && err.name === "TokenExpiredError") { + throw OAuthStateMismatchError("Expired OAuth state"); + } + + throw OAuthStateMismatchError("Invalid OAuth state"); + } +} + +function isOAuthIntent(payload: JWT.JwtPayload): payload is OAuthIntent { + return ( + payload.type === IntentType && + typeof payload.host === "string" && + isClient(payload.client) && + isOptionalString(payload.actorId) && + isOptionalString(payload.actorSessionHash) && + payload.nonceHash === undefined && + payload.codeVerifier === undefined && + typeof payload.iat === "number" && + typeof payload.exp === "number" + ); +} + +function isOAuthState(payload: JWT.JwtPayload): payload is OAuthState { + return ( + payload.type === StateType && + typeof payload.host === "string" && + isClient(payload.client) && + isOptionalString(payload.actorId) && + isOptionalString(payload.actorSessionHash) && + typeof payload.iat === "number" && + typeof payload.exp === "number" && + typeof payload.nonceHash === "string" && + isOptionalString(payload.codeVerifier) + ); +} + +function isClient(value: string | undefined): value is Client { + return value === Client.Desktop || value === Client.Web; +} + +function isOptionalString( + value: string | undefined +): value is string | undefined { + return value === undefined || typeof value === "string"; +} diff --git a/server/utils/passport.ts b/server/utils/passport.ts index cd1a15c874..117a1d684b 100644 --- a/server/utils/passport.ts +++ b/server/utils/passport.ts @@ -1,6 +1,6 @@ import crypto from "node:crypto"; import { addMinutes, subMinutes } from "date-fns"; -import type { Context } from "koa"; +import type { Context, Next } from "koa"; import type { StateStoreStoreCallback, StateStoreVerifyCallback, @@ -9,12 +9,91 @@ import type { Primitive } from "utility-types"; import { Client } from "@shared/types"; import { getCookieDomain, parseDomain } from "@shared/utils/domains"; import env from "@server/env"; -import { Team } from "@server/models"; +import { Team, User } from "@server/models"; +import Redis from "@server/storage/redis"; import { InternalError, OAuthStateMismatchError } from "../errors"; -import { safeEqual } from "./crypto"; +import { hash, safeEqual } from "./crypto"; import fetch from "./fetch"; import { getUserForJWT } from "./jwt"; +import { + hashOAuthStateNonce, + signOAuthIntent, + signOAuthState, + verifyOAuthIntent, + verifyOAuthState, +} from "./oauthState"; +const FLOW_QUERY_PARAM = "flow"; +const OAUTH_CSRF_COOKIE = "oauth_csrf"; +const OAUTH_INTENT_PREFIX = "oauth:intent:"; +const OAUTH_INTENT_TTL_SECONDS = 10 * 60; +const ACTOR_SESSION_HASH_KEYLEN = 64; + +/** + * Middleware for OAuth start routes that bridges cookie scopes between custom + * team domains and the apex (env.URL) where the OAuth callback always lands. + * + * The OAuth callback always lands on the apex domain, while a user's + * `accessToken` session cookie may be host-scoped to a custom team domain. To + * make the "connect a new auth provider while signed in" flow work from a + * custom domain: + * + * 1. On a custom team domain — create a short-lived signed intent containing + * the original host and actor id, then bounce to the apex with it. + * 2. On the apex — verify the signed intent and stash it on `ctx.state` so + * `StateStore.store` can fold it into the signed OAuth `state` parameter. + * + * Non-custom team subdomains skip the bounce because the start route can read + * the host-scoped session and set the OAuth CSRF cookie on the base domain for + * the apex callback. Self-hosted deployments have a single domain and pass + * through. + */ +export async function startOAuthFlow(ctx: Context, next: Next) { + if (!env.isCloudHosted) { + return next(); + } + + const apex = new URL(env.URL); + const onApex = ctx.hostname === apex.hostname; + const isCustom = parseDomain(ctx.hostname).custom; + + if (isCustom && !onApex) { + const url = new URL(ctx.originalUrl, apex); + const client = getClientFromInput(ctx); + const actor = await getOAuthActor(ctx); + const flow = signOAuthIntent({ + host: ctx.hostname, + actorId: actor?.id, + actorSessionHash: actor ? getActorSessionHash(actor) : undefined, + client, + }); + + url.searchParams.delete(FLOW_QUERY_PARAM); + url.searchParams.set(FLOW_QUERY_PARAM, flow); + await storeOAuthIntent(flow); + + return ctx.redirect(url.toString()); + } + + const flow = ctx.query[FLOW_QUERY_PARAM]; + if (onApex && typeof flow === "string" && flow) { + try { + const intent = verifyOAuthIntent(flow); + if (await consumeOAuthIntent(flow)) { + ctx.state.oauthIntent = intent; + } + } catch { + // Invalid or expired intent — proceed without an actor. + // The user can still complete the OAuth flow as a fresh sign-in. + } + } + + return next(); +} + +/** + * Passport OAuth state store backed by signed state and a CSRF nonce cookie. + */ export class StateStore { constructor(private pkce = false) {} @@ -27,8 +106,8 @@ export class StateStore { _meta?: unknown, cb?: StateStoreStoreCallback ) => { - // token is a short lived one-time pad to prevent replay attacks - const token = crypto.randomBytes(8).toString("hex"); + const context = getKoaContext(ctx); + const csrfNonce = crypto.randomBytes(16).toString("hex"); // Note parameters are based on whether PKCE is in use or not, this is parameters // of how the underlying library is architected, see: @@ -44,24 +123,35 @@ export class StateStore { // We expect host to be a team subdomain, custom domain, or apex domain // that is passed via query param from the auth provider component. - const clientInput = ctx.query.client?.toString(); - const client = clientInput === Client.Desktop ? Client.Desktop : Client.Web; - const host = ctx.query.host?.toString() || parseDomain(ctx.hostname).host; - const accessToken = ctx.cookies.get("accessToken"); - const state = buildState({ + const client = + context.state.oauthIntent?.client ?? getClientFromInput(context); + const host = + context.state.oauthIntent?.host ?? + context.query.host?.toString() ?? + parseDomain(context.hostname).host; + const actorId = + context.state.oauthIntent?.actorId ?? getAuthenticatedUserId(context); + const actorSessionHash = + context.state.oauthIntent?.actorSessionHash ?? + getAuthenticatedUserSessionHash(context); + const state = signOAuthState({ host, - token, + actorId, + actorSessionHash, client, codeVerifier, - accessToken, + nonceHash: hashOAuthStateNonce(csrfNonce), }); - ctx.cookies.set(this.key, state, { + context.cookies.set(OAUTH_CSRF_COOKIE, csrfNonce, { + httpOnly: true, + sameSite: "lax", + secure: env.isProduction, expires: addMinutes(new Date(), 10), - domain: getCookieDomain(ctx.hostname, env.isCloudHosted), + domain: getCookieDomain(context.hostname, env.isCloudHosted), }); - callback(null, token); + callback(null, state); }; verify = ( @@ -69,34 +159,35 @@ export class StateStore { providedToken: string, callback: StateStoreVerifyCallback ) => { - const state = ctx.cookies.get(this.key); - - if (!state) { - return callback( - OAuthStateMismatchError("No state was available after OAuth flow"), - false, - state - ); - } - - const { token, codeVerifier } = parseState(state); - - // Destroy the one-time pad token and ensure it matches - ctx.cookies.set(this.key, "", { + const context = getKoaContext(ctx); + const csrfNonce = context.cookies.get(OAUTH_CSRF_COOKIE); + context.cookies.set(OAUTH_CSRF_COOKIE, "", { + httpOnly: true, + sameSite: "lax", + secure: env.isProduction, expires: subMinutes(new Date(), 1), - domain: getCookieDomain(ctx.hostname, env.isCloudHosted), + domain: getCookieDomain(context.hostname, env.isCloudHosted), }); - if (!safeEqual(token, providedToken)) { + let state; + try { + state = verifyOAuthState(providedToken); + } catch (err) { + return callback(err, false, providedToken); + } + + if (!safeEqual(hashOAuthStateNonce(csrfNonce ?? ""), state.nonceHash)) { return callback( - OAuthStateMismatchError("Token in state mismatched"), + OAuthStateMismatchError("OAuth CSRF nonce mismatched"), false, - token + providedToken ); } + context.state.oauthState = state; + // @ts-expect-error Type in library is wrong - callback(null, codeVerifier ?? true, state); + callback(null, state.codeVerifier ?? true, providedToken); }; } @@ -124,34 +215,18 @@ export async function request( } } -function buildState({ - host, - token, - client, - codeVerifier, - accessToken, -}: { - host: string; - token: string; - client?: Client; - codeVerifier?: string; - accessToken?: string; -}) { - return [host, token, client, codeVerifier, accessToken].join("|"); -} - /** * Parses the state string into its components. * * @param state The state string - * @returns An object containing the parsed components + * @returns An object containing the parsed components, if valid. */ export function parseState(state: string) { - const [host, token, client, rawCodeVerifier, rawAccessToken] = - state.split("|"); - const codeVerifier = rawCodeVerifier ? rawCodeVerifier : undefined; - const accessToken = rawAccessToken ? rawAccessToken : undefined; - return { host, token, client, codeVerifier, accessToken }; + try { + return verifyOAuthState(state); + } catch { + return undefined; + } } /** @@ -162,52 +237,45 @@ export function parseState(state: string) { * @returns The client type, defaults to Client.Web */ export function getClientFromOAuthState(ctx: Context): Client { - const state = ctx.cookies.get("state"); - const client = state ? parseState(state).client : undefined; + const context = getKoaContext(ctx); + const client = context.state.oauthState?.client; return client === Client.Desktop ? Client.Desktop : Client.Web; } /** - * Returns the access token from the context if available. This is used - * to restore the session during the OAuth flow when connecting additional - * providers to an existing team. + * Returns the actor referenced by verified OAuth state, if available. This is + * used to restore the originating user during the OAuth flow when connecting + * additional providers to an existing team. * * @param ctx The Koa context - * @returns The access token if available, otherwise undefined - */ -export function getAccessTokenFromOAuthState(ctx: Context): string | undefined { - const state = ctx.cookies.get("state"); - return state ? parseState(state).accessToken : undefined; -} - -/** - * Returns the user from the context if they are authenticated. This is used - * to restore the session during the OAuth flow. - * - * @param ctx The Koa context - * @returns The user if authenticated, otherwise undefined + * @returns The actor if available, otherwise undefined */ export async function getUserFromOAuthState(ctx: Context) { - const token = getAccessTokenFromOAuthState(ctx); - if (!token) { + const context = getKoaContext(ctx); + const state = context.state.oauthState; + if (!state?.actorId || !state.actorSessionHash) { return undefined; } - try { - const { user } = await getUserForJWT(token); - return user; - } catch (_err) { + const user = await User.scope("withTeam").findByPk(state.actorId); + if (!user) { return undefined; } + + if (!safeEqual(getActorSessionHash(user), state.actorSessionHash)) { + return undefined; + } + + return user; } type TeamFromContextOptions = { /** - * Whether to consider the state cookie in the context when determining the team. - * If true, the state cookie will be parsed to determine the host and infer the team + * Whether to consider OAuth state in the context when determining the team. + * If true, OAuth state will be used to determine the host and infer the team * this should only be used in the authentication process. */ - includeStateCookie?: boolean; + includeOAuthState?: boolean; /** * Whether to consider the host query parameter in the context when determining the team. * If true, the host query parameter will be used to determine the host and infer the team @@ -216,7 +284,7 @@ type TeamFromContextOptions = { }; /** - * Infers the team from the context based on the hostname or state cookie. + * Infers the team from the context based on the hostname or OAuth state. * * @param ctx The Koa context * @param options Options for determining the team @@ -224,18 +292,20 @@ type TeamFromContextOptions = { */ export async function getTeamFromContext( ctx: Context, - options: TeamFromContextOptions = { includeStateCookie: true } + options: TeamFromContextOptions = { includeOAuthState: true } ) { + const context = getKoaContext(ctx); // "domain" is the domain the user came from when attempting auth // we use it to infer the team they intend on signing into - const state = options.includeStateCookie - ? ctx.cookies.get("state") + const includeOAuthState = options.includeOAuthState ?? true; + const state = includeOAuthState + ? (context.state.oauthState ?? context.state.oauthIntent) : undefined; const queryHost = - options.includeHostQueryParam && typeof ctx.query.host === "string" - ? ctx.query.host + options.includeHostQueryParam && typeof context.query.host === "string" + ? context.query.host : undefined; - const host = (state ? parseState(state).host : queryHost) || ctx.hostname; + const host = state?.host ?? queryHost ?? context.hostname; const domain = parseDomain(host); let team; @@ -247,8 +317,8 @@ export async function getTeamFromContext( order: [["createdAt", "DESC"]], }); } - } else if (ctx.state?.rootShare) { - team = await Team.findByPk(ctx.state.rootShare.teamId); + } else if (context.state?.rootShare) { + team = await Team.findByPk(context.state.rootShare.teamId); } else if (domain.custom) { team = await Team.findByDomain(domain.host); } else if (domain.teamSubdomain) { @@ -257,3 +327,74 @@ export async function getTeamFromContext( return team; } + +function getClientFromInput(ctx: Context): Client { + const clientInput = ctx.query.client?.toString(); + return clientInput === Client.Desktop ? Client.Desktop : Client.Web; +} + +function getAuthenticatedUser(ctx: Context): User | undefined { + return ctx.state.auth && "user" in ctx.state.auth + ? ctx.state.auth.user + : undefined; +} + +function getAuthenticatedUserId(ctx: Context): string | undefined { + return getAuthenticatedUser(ctx)?.id; +} + +function getAuthenticatedUserSessionHash(ctx: Context): string | undefined { + const user = getAuthenticatedUser(ctx); + return user ? getActorSessionHash(user) : undefined; +} + +async function getOAuthActor(ctx: Context): Promise<User | undefined> { + const authenticatedUser = getAuthenticatedUser(ctx); + if (authenticatedUser) { + return authenticatedUser; + } + + const accessToken = ctx.cookies.get("accessToken"); + if (!accessToken) { + return undefined; + } + + try { + const { user } = await getUserForJWT(accessToken); + return user; + } catch { + return undefined; + } +} + +function getActorSessionHash(user: User): string { + return crypto + .scryptSync( + user.jwtSecret, + `oauth-actor-session:${env.SECRET_KEY}:${user.id}`, + ACTOR_SESSION_HASH_KEYLEN + ) + .toString("hex"); +} + +async function storeOAuthIntent(token: string): Promise<void> { + await Redis.defaultClient.set( + getOAuthIntentKey(token), + "1", + "EX", + OAUTH_INTENT_TTL_SECONDS + ); +} + +async function consumeOAuthIntent(token: string): Promise<boolean> { + const result = await Redis.defaultClient.getdel(getOAuthIntentKey(token)); + return result === "1"; +} + +function getOAuthIntentKey(token: string): string { + return `${OAUTH_INTENT_PREFIX}${hash(token)}`; +} + +function getKoaContext(ctx: Context): Context { + return (ctx as Context & { ctx?: Context }).ctx ?? ctx; +} From c1010fc410b9d396f1e31f3e02cb13474ebcb7d0 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 16 May 2026 21:08:03 -0400 Subject: [PATCH 038/286] fix: Back to using relative path --- app/utils/urls.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/utils/urls.ts b/app/utils/urls.ts index 6aed3f9ee3..7e7c0439ed 100644 --- a/app/utils/urls.ts +++ b/app/utils/urls.ts @@ -75,6 +75,17 @@ export function redirectTo(url: string) { window.location.href = url; } +/** + * Returns the relative path from a URL + * + * @param urlString The URL as a string + * @returns The relative path with query string and hash. + */ +export function toRelative(urlString: string) { + const url = new URL(urlString); + return `${url.pathname}${url.search}${url.hash}`; +} + /** * Check if a URI is a loopback address (localhost, 127.0.0.1, or [::1]). * From f4e7c43fe440b5b30e0abfa16880ce2349169236 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 17 May 2026 07:35:41 -0400 Subject: [PATCH 039/286] chore(deps): Remove obsolete lodash-es resolution (#12369) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `lodash-es@npm:4.17.23` resolution targeted a specific descriptor that is no longer requested by any package — only `lodash-es: ^4.17.21` appears in the dependency tree now, which resolves naturally to 4.18.1. Removing the resolution produces no change in yarn.lock. All other resolutions still prevent regressions (yarn install would install a strictly lower version without them) or serve as project-pin dedupe targets retained for compatibility, matching the rationale from the prior audit in #12304. Co-authored-by: Claude <noreply@anthropic.com> --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index e82aa4ee10..41606375a6 100644 --- a/package.json +++ b/package.json @@ -388,7 +388,6 @@ "ip-address@npm:10.1.0": "^10.2.0", "minimatch@npm:9.0.1": "9.0.9", "lodash@npm:4.17.21": "^4.18.1", - "lodash-es@npm:4.17.23": "^4.18.1", "i18next-parser/i18next": "^23.16.8" }, "version": "1.7.1", From 4774fa4fd0a76d8521b81b06856f9fed847f18a3 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 17 May 2026 09:48:30 -0400 Subject: [PATCH 040/286] Weekly insights rollup (#12113) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Weekly insights rollup * fix: Avoid eager db instance creation in DocumentInsight model Importing sequelize at the top level triggered createDatabaseInstance during module load, which caused unrelated test suites that transitively require the model to fail. Use the instance-bound this.sequelize in the static method instead. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * fix: Skip soft-deleted documents in weekly insights rollup The weekly task was deleting daily rows for soft-deleted documents without creating a weekly replacement, since rollupPeriod filters them out. Join to documents in both the week-discovery query and the DELETE to keep behavior consistent — historical daily rows for deleted docs are left for the cleanup task to remove at the retention boundary. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * refactor: Bind cutoff days param and add date predicate in weekly rollup Moves CUTOFF_DAYS from string interpolation to a bound parameter and adds a plain `date <` predicate so the planner can use the (documentId, date, period) index before evaluating date_trunc. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- ...9000000-add-period-to-document-insights.js | 55 +++ server/models/DocumentInsight.test.ts | 319 ++++++++++++++++++ server/models/DocumentInsight.ts | 148 +++++++- server/presenters/documentInsight.ts | 1 + ...ts => CleanupDocumentInsightsTask.test.ts} | 6 +- ...Task.ts => CleanupDocumentInsightsTask.ts} | 2 +- .../tasks/RollupDocumentInsightsTask.ts | 128 +------ .../RollupWeeklyDocumentInsightsTask.test.ts | 157 +++++++++ .../tasks/RollupWeeklyDocumentInsightsTask.ts | 95 ++++++ 9 files changed, 793 insertions(+), 118 deletions(-) create mode 100644 server/migrations/20260419000000-add-period-to-document-insights.js create mode 100644 server/models/DocumentInsight.test.ts rename server/queues/tasks/{CleanupExpiredDocumentInsightsTask.test.ts => CleanupDocumentInsightsTask.test.ts} (83%) rename server/queues/tasks/{CleanupExpiredDocumentInsightsTask.ts => CleanupDocumentInsightsTask.ts} (93%) create mode 100644 server/queues/tasks/RollupWeeklyDocumentInsightsTask.test.ts create mode 100644 server/queues/tasks/RollupWeeklyDocumentInsightsTask.ts diff --git a/server/migrations/20260419000000-add-period-to-document-insights.js b/server/migrations/20260419000000-add-period-to-document-insights.js new file mode 100644 index 0000000000..6d65c6e359 --- /dev/null +++ b/server/migrations/20260419000000-add-period-to-document-insights.js @@ -0,0 +1,55 @@ +"use strict"; + +module.exports = { + async up(queryInterface, Sequelize) { + return queryInterface.sequelize.transaction(async (transaction) => { + await queryInterface.addColumn( + "document_insights", + "period", + { + type: Sequelize.ENUM("day", "week"), + allowNull: false, + defaultValue: "day", + }, + { transaction } + ); + + await queryInterface.removeIndex( + "document_insights", + ["documentId", "date"], + { transaction } + ); + + await queryInterface.addIndex( + "document_insights", + ["documentId", "date", "period"], + { unique: true, transaction } + ); + }); + }, + + async down(queryInterface) { + return queryInterface.sequelize.transaction(async (transaction) => { + await queryInterface.removeIndex( + "document_insights", + ["documentId", "date", "period"], + { transaction } + ); + + await queryInterface.addIndex( + "document_insights", + ["documentId", "date"], + { unique: true, transaction } + ); + + await queryInterface.removeColumn("document_insights", "period", { + transaction, + }); + + await queryInterface.sequelize.query( + 'DROP TYPE IF EXISTS "enum_document_insights_period"', + { transaction } + ); + }); + }, +}; diff --git a/server/models/DocumentInsight.test.ts b/server/models/DocumentInsight.test.ts new file mode 100644 index 0000000000..01e70f9812 --- /dev/null +++ b/server/models/DocumentInsight.test.ts @@ -0,0 +1,319 @@ +import { format, startOfISOWeek, subDays } from "date-fns"; +import DocumentInsight, { + DocumentInsightPeriod, +} from "@server/models/DocumentInsight"; +import { Comment, Event, Revision } from "@server/models"; +import { buildDocument, buildTeam, buildUser } from "@server/test/factories"; + +const FULL_UUID_RANGE: [string, string] = [ + "00000000-0000-4000-8000-000000000000", + "ffffffff-ffff-4fff-bfff-ffffffffffff", +]; + +const dayStr = (d: Date) => format(d, "yyyy-MM-dd"); + +describe("DocumentInsight.rollupPeriod", () => { + it("writes nothing when no source activity exists in the window", async () => { + const team = await buildTeam(); + await buildDocument({ teamId: team.id }); + + const upserted = await DocumentInsight.rollupPeriod({ + periodStart: dayStr(subDays(new Date(), 1)), + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + + expect(upserted).toBe(0); + expect(await DocumentInsight.count({ where: { teamId: team.id } })).toBe(0); + }); + + it("respects the window boundaries and excludes events outside it", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + const target = subDays(new Date(), 10); + const before = subDays(target, 1); + const after = subDays(target, -1); + + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: before, + }); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: target, + }); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: after, + }); + + await DocumentInsight.rollupPeriod({ + periodStart: dayStr(target), + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + + const row = await DocumentInsight.findOne({ + where: { documentId: document.id, date: dayStr(target) }, + }); + expect(row).toBeTruthy(); + expect(row!.period).toBe(DocumentInsightPeriod.Day); + expect(row!.viewCount).toBe(1); + }); + + it("aggregates a 7-day window into a single weekly row", async () => { + const team = await buildTeam(); + const userA = await buildUser({ teamId: team.id }); + const userB = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + const weekStart = startOfISOWeek(subDays(new Date(), 60)); + + // Views across multiple days of the same week; userA on two days, userB on one. + await Event.create({ + name: "views.create", + teamId: team.id, + userId: userA.id, + documentId: document.id, + createdAt: subDays(weekStart, -1), // Tuesday + }); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: userA.id, + documentId: document.id, + createdAt: subDays(weekStart, -3), // Thursday + }); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: userB.id, + documentId: document.id, + createdAt: subDays(weekStart, -5), // Saturday + }); + + // Revision within the week by userB. + await Revision.create({ + documentId: document.id, + userId: userB.id, + title: document.title, + text: "x", + createdAt: subDays(weekStart, -2), + }); + + await DocumentInsight.rollupPeriod({ + periodStart: dayStr(weekStart), + intervalDays: 7, + period: DocumentInsightPeriod.Week, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + + const rows = await DocumentInsight.findAll({ + where: { documentId: document.id }, + }); + expect(rows).toHaveLength(1); + expect(rows[0].period).toBe(DocumentInsightPeriod.Week); + expect(rows[0].date).toBe(dayStr(weekStart)); + expect(rows[0].viewCount).toBe(3); + // Two distinct viewers across the week, not double-counted by day. + expect(rows[0].viewerCount).toBe(2); + expect(rows[0].revisionCount).toBe(1); + expect(rows[0].editorCount).toBe(1); + }); + + it("counts reactions on older comments when the reaction is in-window", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + const target = subDays(new Date(), 2); + const olderComment = await Comment.create({ + documentId: document.id, + createdById: user.id, + data: { type: "doc", content: [] }, + createdAt: subDays(target, 30), + }); + + const { Reaction } = await import("@server/models"); + await Reaction.create( + { + emoji: "🎉", + commentId: olderComment.id, + userId: user.id, + createdAt: target, + }, + { hooks: false } + ); + + await DocumentInsight.rollupPeriod({ + periodStart: dayStr(target), + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + + const row = await DocumentInsight.findOne({ + where: { documentId: document.id, date: dayStr(target) }, + }); + expect(row).toBeTruthy(); + expect(row!.commentCount).toBe(0); + expect(row!.reactionCount).toBe(1); + }); + + it("skips documents outside the partition UUID range", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + const target = subDays(new Date(), 1); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: target, + }); + + // An empty range that excludes all documents. + const [bogusStart, bogusEnd] = [ + "ffffffff-ffff-4fff-bfff-fffffffffffe", + "ffffffff-ffff-4fff-bfff-ffffffffffff", + ]; + // Only hits if the test document's UUID happens to fall in the range; in + // practice buildDocument generates a random v4 that won't. Assert that + // the rollup writes nothing for this document. + const upserted = await DocumentInsight.rollupPeriod({ + periodStart: dayStr(target), + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid: bogusStart, + endUuid: bogusEnd, + }); + + expect(upserted).toBe(0); + expect( + await DocumentInsight.count({ where: { documentId: document.id } }) + ).toBe(0); + }); + + it("upserts on (documentId, date, period) and updates counts on re-run", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + const target = subDays(new Date(), 1); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: target, + }); + + await DocumentInsight.rollupPeriod({ + periodStart: dayStr(target), + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + + // Add another event and re-run. + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: target, + }); + + await DocumentInsight.rollupPeriod({ + periodStart: dayStr(target), + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + + const rows = await DocumentInsight.findAll({ + where: { documentId: document.id }, + }); + expect(rows).toHaveLength(1); + expect(rows[0].viewCount).toBe(2); + }); + + it("stores daily and weekly rows for the same start date side-by-side", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + const weekStart = startOfISOWeek(subDays(new Date(), 60)); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: weekStart, + }); + + await DocumentInsight.rollupPeriod({ + periodStart: dayStr(weekStart), + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + await DocumentInsight.rollupPeriod({ + periodStart: dayStr(weekStart), + intervalDays: 7, + period: DocumentInsightPeriod.Week, + startUuid: FULL_UUID_RANGE[0], + endUuid: FULL_UUID_RANGE[1], + }); + + const rows = await DocumentInsight.findAll({ + where: { documentId: document.id }, + order: [["period", "ASC"]], + }); + expect(rows).toHaveLength(2); + expect(rows.map((r) => r.period).sort()).toEqual([ + DocumentInsightPeriod.Day, + DocumentInsightPeriod.Week, + ]); + }); +}); diff --git a/server/models/DocumentInsight.ts b/server/models/DocumentInsight.ts index 81d62632d9..af9f520131 100644 --- a/server/models/DocumentInsight.ts +++ b/server/models/DocumentInsight.ts @@ -1,4 +1,5 @@ import type { InferAttributes, InferCreationAttributes } from "sequelize"; +import { QueryTypes } from "sequelize"; import { BelongsTo, Column, @@ -13,12 +14,17 @@ import IdModel from "./base/IdModel"; import { SkipChangeset } from "./decorators/Changeset"; import Fix from "./decorators/Fix"; +export enum DocumentInsightPeriod { + Day = "day", + Week = "week", +} + @Table({ tableName: "document_insights", modelName: "documentInsight", indexes: [ { - fields: ["documentId", "date"], + fields: ["documentId", "date", "period"], unique: true, }, { @@ -34,6 +40,11 @@ class DocumentInsight extends IdModel< @Column(DataType.DATEONLY) date: string; + @Default(DocumentInsightPeriod.Day) + @Column(DataType.ENUM(...Object.values(DocumentInsightPeriod))) + @SkipChangeset + period: DocumentInsightPeriod; + @Default(0) @Column(DataType.INTEGER) @SkipChangeset @@ -79,6 +90,141 @@ class DocumentInsight extends IdModel< @ForeignKey(() => Team) @Column(DataType.UUID) teamId: string; + + /** + * Aggregate a time window of source activity (views, comments, reactions, + * revisions) into document_insights rows for documents whose id falls in the + * given UUID range. Upserts on the unique (documentId, date, period) index + * so the operation is idempotent. + * + * @param options.periodStart UTC date string (YYYY-MM-DD) marking the start of the window. + * @param options.intervalDays length of the window in days (1 for daily, 7 for weekly). + * @param options.period the period type to write on each row. + * @param options.startUuid inclusive lower bound of the document id partition. + * @param options.endUuid inclusive upper bound of the document id partition. + * @returns the number of rows upserted. + */ + public static async rollupPeriod({ + periodStart, + intervalDays, + period, + startUuid, + endUuid, + }: { + periodStart: string; + intervalDays: number; + period: DocumentInsightPeriod; + startUuid: string; + endUuid: string; + }): Promise<number> { + const [{ upserted }] = await this.sequelize!.query<{ upserted: string }>( + ` + WITH partitioned_documents AS ( + SELECT id, "teamId" + FROM documents + WHERE "deletedAt" IS NULL + AND id >= :startUuid::uuid + AND id <= :endUuid::uuid + ), + view_counts AS ( + SELECT + e."documentId", + COUNT(*) AS view_count, + COUNT(DISTINCT e."userId") AS viewer_count + FROM events e + INNER JOIN partitioned_documents pd ON pd.id = e."documentId" + WHERE e.name = 'views.create' + AND e."createdAt" >= :periodStart::timestamp AT TIME ZONE 'UTC' + AND e."createdAt" < (:periodStart::timestamp + (:intervalDays * INTERVAL '1 day')) AT TIME ZONE 'UTC' + GROUP BY e."documentId" + ), + comment_counts AS ( + SELECT c."documentId", COUNT(*) AS comment_count + FROM comments c + INNER JOIN partitioned_documents pd ON pd.id = c."documentId" + WHERE c."createdAt" >= :periodStart::timestamp AT TIME ZONE 'UTC' + AND c."createdAt" < (:periodStart::timestamp + (:intervalDays * INTERVAL '1 day')) AT TIME ZONE 'UTC' + GROUP BY c."documentId" + ), + reaction_counts AS ( + SELECT c."documentId", COUNT(rx.id) AS reaction_count + FROM reactions rx + INNER JOIN comments c ON c.id = rx."commentId" + INNER JOIN partitioned_documents pd ON pd.id = c."documentId" + WHERE rx."createdAt" >= :periodStart::timestamp AT TIME ZONE 'UTC' + AND rx."createdAt" < (:periodStart::timestamp + (:intervalDays * INTERVAL '1 day')) AT TIME ZONE 'UTC' + GROUP BY c."documentId" + ), + revision_counts AS ( + SELECT + r."documentId", + COUNT(*) AS revision_count, + COUNT(DISTINCT r."userId") AS editor_count + FROM revisions r + INNER JOIN partitioned_documents pd ON pd.id = r."documentId" + WHERE r."createdAt" >= :periodStart::timestamp AT TIME ZONE 'UTC' + AND r."createdAt" < (:periodStart::timestamp + (:intervalDays * INTERVAL '1 day')) AT TIME ZONE 'UTC' + GROUP BY r."documentId" + ), + active AS ( + SELECT "documentId" FROM view_counts + UNION SELECT "documentId" FROM comment_counts + UNION SELECT "documentId" FROM reaction_counts + UNION SELECT "documentId" FROM revision_counts + ), + inserted AS ( + INSERT INTO document_insights ( + id, "documentId", "teamId", date, period, + "viewCount", "viewerCount", + "commentCount", "reactionCount", + "revisionCount", "editorCount", + "createdAt", "updatedAt" + ) + SELECT + uuid_generate_v4(), + pd.id, + pd."teamId", + :periodStart::date, + :period, + COALESCE(v.view_count, 0), + COALESCE(v.viewer_count, 0), + COALESCE(c.comment_count, 0), + COALESCE(rx.reaction_count, 0), + COALESCE(r.revision_count, 0), + COALESCE(r.editor_count, 0), + NOW(), NOW() + FROM active a + INNER JOIN partitioned_documents pd ON pd.id = a."documentId" + LEFT JOIN view_counts v ON v."documentId" = pd.id + LEFT JOIN comment_counts c ON c."documentId" = pd.id + LEFT JOIN reaction_counts rx ON rx."documentId" = pd.id + LEFT JOIN revision_counts r ON r."documentId" = pd.id + ON CONFLICT ("documentId", date, period) DO UPDATE SET + "viewCount" = EXCLUDED."viewCount", + "viewerCount" = EXCLUDED."viewerCount", + "commentCount" = EXCLUDED."commentCount", + "reactionCount" = EXCLUDED."reactionCount", + "revisionCount" = EXCLUDED."revisionCount", + "editorCount" = EXCLUDED."editorCount", + "updatedAt" = NOW() + RETURNING 1 + ) + SELECT COUNT(*)::text AS upserted FROM inserted + `, + { + replacements: { + periodStart, + intervalDays, + period, + startUuid, + endUuid, + }, + type: QueryTypes.SELECT, + } + ); + + return parseInt(upserted, 10); + } } export default DocumentInsight; diff --git a/server/presenters/documentInsight.ts b/server/presenters/documentInsight.ts index 5ad673d204..8731d0afe3 100644 --- a/server/presenters/documentInsight.ts +++ b/server/presenters/documentInsight.ts @@ -3,6 +3,7 @@ import type { DocumentInsight } from "@server/models"; export default function presentDocumentInsight(insight: DocumentInsight) { return { date: insight.date, + period: insight.period, viewCount: insight.viewCount, viewerCount: insight.viewerCount, commentCount: insight.commentCount, diff --git a/server/queues/tasks/CleanupExpiredDocumentInsightsTask.test.ts b/server/queues/tasks/CleanupDocumentInsightsTask.test.ts similarity index 83% rename from server/queues/tasks/CleanupExpiredDocumentInsightsTask.test.ts rename to server/queues/tasks/CleanupDocumentInsightsTask.test.ts index 300f1ca835..98abc51f8b 100644 --- a/server/queues/tasks/CleanupExpiredDocumentInsightsTask.test.ts +++ b/server/queues/tasks/CleanupDocumentInsightsTask.test.ts @@ -1,12 +1,12 @@ import { format, subDays } from "date-fns"; import { DocumentInsight } from "@server/models"; import { buildDocument, buildTeam } from "@server/test/factories"; -import CleanupExpiredDocumentInsightsTask from "./CleanupExpiredDocumentInsightsTask"; +import CleanupDocumentInsightsTask from "./CleanupDocumentInsightsTask"; const daysAgo = (n: number) => subDays(new Date(), n); const dayStr = (d: Date) => format(d, "yyyy-MM-dd"); -describe("CleanupExpiredDocumentInsightsTask", () => { +describe("CleanupDocumentInsightsTask", () => { it("deletes rows older than the retention window", async () => { const team = await buildTeam(); const document = await buildDocument({ @@ -27,7 +27,7 @@ describe("CleanupExpiredDocumentInsightsTask", () => { viewCount: 1, }); - await new CleanupExpiredDocumentInsightsTask().perform(); + await new CleanupDocumentInsightsTask().perform(); const dates = ( await DocumentInsight.findAll({ diff --git a/server/queues/tasks/CleanupExpiredDocumentInsightsTask.ts b/server/queues/tasks/CleanupDocumentInsightsTask.ts similarity index 93% rename from server/queues/tasks/CleanupExpiredDocumentInsightsTask.ts rename to server/queues/tasks/CleanupDocumentInsightsTask.ts index 7a246e2604..d493b492c3 100644 --- a/server/queues/tasks/CleanupExpiredDocumentInsightsTask.ts +++ b/server/queues/tasks/CleanupDocumentInsightsTask.ts @@ -10,7 +10,7 @@ import { CronTask, TaskInterval } from "./base/CronTask"; */ const RETENTION_DAYS = 365; -export default class CleanupExpiredDocumentInsightsTask extends CronTask { +export default class CleanupDocumentInsightsTask extends CronTask { public async perform() { // Derive the cutoff in UTC from the database so retention isn't affected // by the worker's local timezone. `date` is stored as a UTC DATE. diff --git a/server/queues/tasks/RollupDocumentInsightsTask.ts b/server/queues/tasks/RollupDocumentInsightsTask.ts index 0466ed77c0..fd9f4d22a6 100644 --- a/server/queues/tasks/RollupDocumentInsightsTask.ts +++ b/server/queues/tasks/RollupDocumentInsightsTask.ts @@ -1,7 +1,7 @@ -import { QueryTypes } from "sequelize"; import { Day, Minute } from "@shared/utils/time"; import Logger from "@server/logging/Logger"; -import { sequelize } from "@server/storage/database"; +import { DocumentInsight } from "@server/models"; +import { DocumentInsightPeriod } from "@server/models/DocumentInsight"; import { TaskPriority } from "./base/BaseTask"; import type { Props } from "./base/CronTask"; import { CronTask, TaskInterval } from "./base/CronTask"; @@ -19,122 +19,24 @@ export default class RollupDocumentInsightsTask extends CronTask { const [startUuid, endUuid] = this.getPartitionBounds(partition); for (let offset = RECOMPUTE_DAYS; offset >= 0; offset--) { - const date = new Date(Date.now() - offset * Day.ms) + const periodStart = new Date(Date.now() - offset * Day.ms) .toISOString() .slice(0, 10); - await this.rollupDay(date, startUuid, endUuid); + + const upserted = await DocumentInsight.rollupPeriod({ + periodStart, + intervalDays: 1, + period: DocumentInsightPeriod.Day, + startUuid, + endUuid, + }); + + Logger.info("task", `Rolled up document insights for ${periodStart}`, { + upserted, + }); } } - private async rollupDay( - date: string, - startUuid: string, - endUuid: string - ): Promise<void> { - const [{ upserted }] = await sequelize.query<{ upserted: string }>( - ` - WITH partitioned_documents AS ( - SELECT id, "teamId" - FROM documents - WHERE "deletedAt" IS NULL - AND id >= :startUuid::uuid - AND id <= :endUuid::uuid - ), - view_counts AS ( - SELECT - e."documentId", - COUNT(*) AS view_count, - COUNT(DISTINCT e."userId") AS viewer_count - FROM events e - INNER JOIN partitioned_documents pd ON pd.id = e."documentId" - WHERE e.name = 'views.create' - AND e."createdAt" >= :dayStart::timestamp AT TIME ZONE 'UTC' - AND e."createdAt" < (:dayStart::timestamp + INTERVAL '1 day') AT TIME ZONE 'UTC' - GROUP BY e."documentId" - ), - comment_counts AS ( - SELECT c."documentId", COUNT(*) AS comment_count - FROM comments c - INNER JOIN partitioned_documents pd ON pd.id = c."documentId" - WHERE c."createdAt" >= :dayStart::timestamp AT TIME ZONE 'UTC' - AND c."createdAt" < (:dayStart::timestamp + INTERVAL '1 day') AT TIME ZONE 'UTC' - GROUP BY c."documentId" - ), - reaction_counts AS ( - SELECT c."documentId", COUNT(rx.id) AS reaction_count - FROM reactions rx - INNER JOIN comments c ON c.id = rx."commentId" - INNER JOIN partitioned_documents pd ON pd.id = c."documentId" - WHERE rx."createdAt" >= :dayStart::timestamp AT TIME ZONE 'UTC' - AND rx."createdAt" < (:dayStart::timestamp + INTERVAL '1 day') AT TIME ZONE 'UTC' - GROUP BY c."documentId" - ), - revision_counts AS ( - SELECT - r."documentId", - COUNT(*) AS revision_count, - COUNT(DISTINCT r."userId") AS editor_count - FROM revisions r - INNER JOIN partitioned_documents pd ON pd.id = r."documentId" - WHERE r."createdAt" >= :dayStart::timestamp AT TIME ZONE 'UTC' - AND r."createdAt" < (:dayStart::timestamp + INTERVAL '1 day') AT TIME ZONE 'UTC' - GROUP BY r."documentId" - ), - active AS ( - SELECT "documentId" FROM view_counts - UNION SELECT "documentId" FROM comment_counts - UNION SELECT "documentId" FROM reaction_counts - UNION SELECT "documentId" FROM revision_counts - ), - inserted AS ( - INSERT INTO document_insights ( - id, "documentId", "teamId", date, - "viewCount", "viewerCount", - "commentCount", "reactionCount", - "revisionCount", "editorCount", - "createdAt", "updatedAt" - ) - SELECT - uuid_generate_v4(), - pd.id, - pd."teamId", - :dayStart::date, - COALESCE(v.view_count, 0), - COALESCE(v.viewer_count, 0), - COALESCE(c.comment_count, 0), - COALESCE(rx.reaction_count, 0), - COALESCE(r.revision_count, 0), - COALESCE(r.editor_count, 0), - NOW(), NOW() - FROM active a - INNER JOIN partitioned_documents pd ON pd.id = a."documentId" - LEFT JOIN view_counts v ON v."documentId" = pd.id - LEFT JOIN comment_counts c ON c."documentId" = pd.id - LEFT JOIN reaction_counts rx ON rx."documentId" = pd.id - LEFT JOIN revision_counts r ON r."documentId" = pd.id - ON CONFLICT ("documentId", date) DO UPDATE SET - "viewCount" = EXCLUDED."viewCount", - "viewerCount" = EXCLUDED."viewerCount", - "commentCount" = EXCLUDED."commentCount", - "reactionCount" = EXCLUDED."reactionCount", - "revisionCount" = EXCLUDED."revisionCount", - "editorCount" = EXCLUDED."editorCount", - "updatedAt" = NOW() - RETURNING 1 - ) - SELECT COUNT(*)::text AS upserted FROM inserted - `, - { - replacements: { dayStart: date, startUuid, endUuid }, - type: QueryTypes.SELECT, - } - ); - - Logger.info("task", `Rolled up document insights for ${date}`, { - upserted: parseInt(upserted, 10), - }); - } - public get cron() { return { interval: TaskInterval.Day, diff --git a/server/queues/tasks/RollupWeeklyDocumentInsightsTask.test.ts b/server/queues/tasks/RollupWeeklyDocumentInsightsTask.test.ts new file mode 100644 index 0000000000..3e364cd62a --- /dev/null +++ b/server/queues/tasks/RollupWeeklyDocumentInsightsTask.test.ts @@ -0,0 +1,157 @@ +import { format, startOfISOWeek, subDays } from "date-fns"; +import { DocumentInsight, Event } from "@server/models"; +import { DocumentInsightPeriod } from "@server/models/DocumentInsight"; +import { buildDocument, buildTeam, buildUser } from "@server/test/factories"; +import RollupWeeklyDocumentInsightsTask from "./RollupWeeklyDocumentInsightsTask"; + +const props = { + limit: 10000, + partition: { + partitionIndex: 0, + partitionCount: 1, + }, +}; + +const daysAgo = (n: number) => subDays(new Date(), n); +const dayStr = (d: Date) => format(d, "yyyy-MM-dd"); + +vi.setConfig({ testTimeout: 30000 }); + +describe("RollupWeeklyDocumentInsightsTask", () => { + let task: RollupWeeklyDocumentInsightsTask; + + beforeEach(() => { + task = new RollupWeeklyDocumentInsightsTask(); + }); + + it("leaves recent daily rows untouched", async () => { + const team = await buildTeam(); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(daysAgo(5)), + period: DocumentInsightPeriod.Day, + viewCount: 3, + }); + + await task.perform(props); + + const rows = await DocumentInsight.findAll({ + where: { documentId: document.id }, + }); + expect(rows).toHaveLength(1); + expect(rows[0].period).toBe(DocumentInsightPeriod.Day); + }); + + it("collapses daily rows older than the cutoff into a weekly row", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + // Pick a date comfortably past the 30-day cutoff + week buffer. + const aDayInOldWeek = daysAgo(60); + const weekStart = startOfISOWeek(aDayInOldWeek); + + // A historical daily row within the old week. + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(aDayInOldWeek), + period: DocumentInsightPeriod.Day, + viewCount: 99, + }); + + // Source event in the same week so rollup can recompute accurately. + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: aDayInOldWeek, + }); + + await task.perform(props); + + const rows = await DocumentInsight.findAll({ + where: { documentId: document.id }, + }); + expect(rows).toHaveLength(1); + expect(rows[0].period).toBe(DocumentInsightPeriod.Week); + expect(rows[0].date).toBe(dayStr(weekStart)); + expect(rows[0].viewCount).toBe(1); + expect(rows[0].viewerCount).toBe(1); + }); + + it("preserves daily rows for soft-deleted documents", async () => { + const team = await buildTeam(); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + deletedAt: new Date(), + }); + + const aDayInOldWeek = daysAgo(60); + + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(aDayInOldWeek), + period: DocumentInsightPeriod.Day, + viewCount: 7, + }); + + await task.perform(props); + + const rows = await DocumentInsight.findAll({ + where: { documentId: document.id }, + }); + // The daily row stays put — rollupPeriod skips deleted documents, so we + // must not delete data we wouldn't replace. + expect(rows).toHaveLength(1); + expect(rows[0].period).toBe(DocumentInsightPeriod.Day); + expect(rows[0].viewCount).toBe(7); + }); + + it("is idempotent when re-run", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + + const aDayInOldWeek = daysAgo(60); + + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(aDayInOldWeek), + period: DocumentInsightPeriod.Day, + viewCount: 1, + }); + await Event.create({ + name: "views.create", + teamId: team.id, + userId: user.id, + documentId: document.id, + createdAt: aDayInOldWeek, + }); + + await task.perform(props); + await task.perform(props); + + const rows = await DocumentInsight.findAll({ + where: { documentId: document.id }, + }); + expect(rows).toHaveLength(1); + expect(rows[0].period).toBe(DocumentInsightPeriod.Week); + }); +}); diff --git a/server/queues/tasks/RollupWeeklyDocumentInsightsTask.ts b/server/queues/tasks/RollupWeeklyDocumentInsightsTask.ts new file mode 100644 index 0000000000..6e74d8b575 --- /dev/null +++ b/server/queues/tasks/RollupWeeklyDocumentInsightsTask.ts @@ -0,0 +1,95 @@ +import { QueryTypes } from "sequelize"; +import { Minute } from "@shared/utils/time"; +import Logger from "@server/logging/Logger"; +import { DocumentInsight } from "@server/models"; +import { DocumentInsightPeriod } from "@server/models/DocumentInsight"; +import { sequelize } from "@server/storage/database"; +import { TaskPriority } from "./base/BaseTask"; +import type { Props } from "./base/CronTask"; +import { CronTask, TaskInterval } from "./base/CronTask"; + +/** + * Daily rows older than this threshold are collapsed into weekly rollups to + * keep the table size manageable. Recent data remains at daily granularity. + */ +const CUTOFF_DAYS = 30; + +export default class RollupWeeklyDocumentInsightsTask extends CronTask { + public async perform({ partition }: Props) { + const [startUuid, endUuid] = this.getPartitionBounds(partition); + + // Find ISO week starts (Monday) whose Sunday end is older than the cutoff + // and still have daily rows inside this partition. Postgres `date_trunc` + // uses ISO weeks, so the result is always a Monday. Join to documents and + // filter out soft-deleted ones so we stay consistent with rollupPeriod — + // otherwise we'd delete daily rows it didn't replace. The `date <` bound + // is implied by the `date_trunc` filter but stated separately so the + // planner can short-circuit via the (documentId, date, period) index + // before evaluating the truncation. + const weeks = await sequelize.query<{ weekStart: string }>( + ` + SELECT DISTINCT date_trunc('week', di.date)::date AS "weekStart" + FROM document_insights di + INNER JOIN documents d + ON d.id = di."documentId" + AND d."deletedAt" IS NULL + WHERE di.period = 'day' + AND di."documentId" >= :startUuid::uuid + AND di."documentId" <= :endUuid::uuid + AND di.date < (NOW() AT TIME ZONE 'UTC')::date - (:cutoffDays::int * INTERVAL '1 day') + AND date_trunc('week', di.date) < (NOW() AT TIME ZONE 'UTC')::date - ((:cutoffDays::int + 6) * INTERVAL '1 day') + ORDER BY "weekStart" ASC + `, + { + replacements: { startUuid, endUuid, cutoffDays: CUTOFF_DAYS }, + type: QueryTypes.SELECT, + } + ); + + for (const { weekStart } of weeks) { + const upserted = await DocumentInsight.rollupPeriod({ + periodStart: weekStart, + intervalDays: 7, + period: DocumentInsightPeriod.Week, + startUuid, + endUuid, + }); + + await sequelize.query( + ` + DELETE FROM document_insights di + USING documents d + WHERE d.id = di."documentId" + AND d."deletedAt" IS NULL + AND di.period = 'day' + AND di."documentId" >= :startUuid::uuid + AND di."documentId" <= :endUuid::uuid + AND di.date >= :weekStart::date + AND di.date < :weekStart::date + INTERVAL '7 days' + `, + { + replacements: { startUuid, endUuid, weekStart }, + type: QueryTypes.DELETE, + } + ); + + Logger.info("task", `Rolled up document insights week ${weekStart}`, { + upserted, + }); + } + } + + public get cron() { + return { + interval: TaskInterval.Day, + partitionWindow: 30 * Minute.ms, + }; + } + + public get options() { + return { + attempts: 1, + priority: TaskPriority.Background, + }; + } +} From 77cee2806c8639113cc6677f33fee41470a1fe1f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 17 May 2026 16:58:52 -0400 Subject: [PATCH 041/286] chore: `getJWTToken` -> `getSessionToken` (#12371) * getJWTToken -> getSessionToken Ensure expiry is included in payload * Refactor test harness to avoid direct usage of getSessionToken --- plugins/figma/server/api/figma.test.ts | 6 +- plugins/github/server/api/github.test.ts | 6 +- plugins/gitlab/server/api/gitlab.test.ts | 6 +- plugins/linear/server/api/linear.test.ts | 6 +- plugins/notion/server/api/notion.test.ts | 6 +- plugins/slack/server/auth/slack.test.ts | 8 +- plugins/storage/server/api/files.test.ts | 21 +- .../server/api/webhookSubscriptions.test.ts | 45 +- server/middlewares/authentication.test.ts | 14 +- server/models/User.test.ts | 4 +- server/models/User.ts | 2 +- .../api/accessRequests/accessRequests.test.ts | 63 +- server/routes/api/apiKeys/apiKeys.test.ts | 51 +- .../api/attachments/attachments.test.ts | 88 +- server/routes/api/auth/auth.test.ts | 24 +- .../authenticationProviders.test.ts | 30 +- .../api/collections/collections.test.ts | 319 +++---- server/routes/api/comments/comments.test.ts | 102 +-- server/routes/api/documents/documents.test.ts | 806 +++++------------- server/routes/api/emojis/emojis.test.ts | 18 +- server/routes/api/events/events.test.ts | 54 +- .../api/fileOperations/fileOperations.test.ts | 66 +- .../groupMemberships/groupMemberships.test.ts | 18 +- server/routes/api/groups/groups.test.ts | 126 +-- server/routes/api/imports/imports.test.ts | 54 +- .../api/installation/installation.test.ts | 6 +- .../api/integrations/integrations.test.ts | 36 +- .../routes/api/middlewares/pagination.test.ts | 15 +- .../api/notifications/notifications.test.ts | 39 +- .../oauthAuthentications.test.ts | 24 +- .../api/oauthClients/oauthClients.test.ts | 36 +- server/routes/api/pins/pins.test.ts | 93 +- server/routes/api/reactions/reactions.test.ts | 3 +- .../api/relationships/relationships.test.ts | 57 +- server/routes/api/revisions/revisions.test.ts | 42 +- server/routes/api/searches/searches.test.ts | 30 +- server/routes/api/shares/shares.test.ts | 210 ++--- server/routes/api/stars/stars.test.ts | 33 +- .../api/subscriptions/subscriptions.test.ts | 146 ++-- server/routes/api/teams/teams.test.ts | 57 +- server/routes/api/templates/templates.test.ts | 105 +-- server/routes/api/urls/urls.test.ts | 63 +- .../userMemberships/userMemberships.test.ts | 15 +- server/routes/api/users/users.test.ts | 206 ++--- server/routes/api/views/views.test.ts | 21 +- server/routes/auth/index.test.ts | 31 +- server/routes/auth/index.ts | 5 +- server/routes/mcp/index.test.ts | 2 +- server/test/TestServer.ts | 166 +++- server/test/support.ts | 2 +- server/utils/authentication.ts | 2 +- 51 files changed, 1164 insertions(+), 2224 deletions(-) diff --git a/plugins/figma/server/api/figma.test.ts b/plugins/figma/server/api/figma.test.ts index d0f19386c4..9dcfaf0d19 100644 --- a/plugins/figma/server/api/figma.test.ts +++ b/plugins/figma/server/api/figma.test.ts @@ -13,7 +13,7 @@ describe("#figma.callback", () => { const res = await server.get( `/api/figma.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); const body = await res.json(); @@ -27,7 +27,7 @@ describe("#figma.callback", () => { const res = await server.get( `/api/figma.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); @@ -36,7 +36,7 @@ describe("#figma.callback", () => { it("should fail when state is not valid JSON", async () => { const user = await buildUser(); const res = await server.get( - `/api/figma.callback?state=bad&code=123&token=${user.getJwtToken()}`, + `/api/figma.callback?state=bad&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); diff --git a/plugins/github/server/api/github.test.ts b/plugins/github/server/api/github.test.ts index b3bb4a387b..f1a07198ec 100644 --- a/plugins/github/server/api/github.test.ts +++ b/plugins/github/server/api/github.test.ts @@ -14,7 +14,7 @@ describe("#github.callback", () => { const res = await server.get( `/api/github.callback?state=${encodeURIComponent( state - )}&code=123&setup_action=${SetupAction.install}&installation_id=1&token=${user.getJwtToken()}`, + )}&code=123&setup_action=${SetupAction.install}&installation_id=1&token=${user.getSessionToken()}`, { redirect: "manual" } ); const body = await res.json(); @@ -28,7 +28,7 @@ describe("#github.callback", () => { const res = await server.get( `/api/github.callback?state=${encodeURIComponent( state - )}&code=123&setup_action=${SetupAction.install}&installation_id=1&token=${user.getJwtToken()}`, + )}&code=123&setup_action=${SetupAction.install}&installation_id=1&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); @@ -37,7 +37,7 @@ describe("#github.callback", () => { it("should fail when state is not valid JSON", async () => { const user = await buildUser(); const res = await server.get( - `/api/github.callback?state=bad&code=123&setup_action=${SetupAction.install}&installation_id=1&token=${user.getJwtToken()}`, + `/api/github.callback?state=bad&code=123&setup_action=${SetupAction.install}&installation_id=1&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); diff --git a/plugins/gitlab/server/api/gitlab.test.ts b/plugins/gitlab/server/api/gitlab.test.ts index 3617f9cd99..b0d67bf08a 100644 --- a/plugins/gitlab/server/api/gitlab.test.ts +++ b/plugins/gitlab/server/api/gitlab.test.ts @@ -13,7 +13,7 @@ describe("#gitlab.callback", () => { const res = await server.get( `/api/gitlab.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); const body = await res.json(); @@ -27,7 +27,7 @@ describe("#gitlab.callback", () => { const res = await server.get( `/api/gitlab.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); @@ -36,7 +36,7 @@ describe("#gitlab.callback", () => { it("should fail when state is not valid JSON", async () => { const user = await buildUser(); const res = await server.get( - `/api/gitlab.callback?state=bad&code=123&token=${user.getJwtToken()}`, + `/api/gitlab.callback?state=bad&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); diff --git a/plugins/linear/server/api/linear.test.ts b/plugins/linear/server/api/linear.test.ts index 278bc27ede..e7cf805da7 100644 --- a/plugins/linear/server/api/linear.test.ts +++ b/plugins/linear/server/api/linear.test.ts @@ -13,7 +13,7 @@ describe("#linear.callback", () => { const res = await server.get( `/api/linear.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); const body = await res.json(); @@ -27,7 +27,7 @@ describe("#linear.callback", () => { const res = await server.get( `/api/linear.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); @@ -36,7 +36,7 @@ describe("#linear.callback", () => { it("should fail when state is not valid JSON", async () => { const user = await buildUser(); const res = await server.get( - `/api/linear.callback?state=bad&code=123&token=${user.getJwtToken()}`, + `/api/linear.callback?state=bad&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); diff --git a/plugins/notion/server/api/notion.test.ts b/plugins/notion/server/api/notion.test.ts index 4be9ae4e15..82f7106d27 100644 --- a/plugins/notion/server/api/notion.test.ts +++ b/plugins/notion/server/api/notion.test.ts @@ -13,7 +13,7 @@ describe("#notion.callback", () => { const res = await server.get( `/api/notion.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); const body = await res.json(); @@ -27,7 +27,7 @@ describe("#notion.callback", () => { const res = await server.get( `/api/notion.callback?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); @@ -36,7 +36,7 @@ describe("#notion.callback", () => { it("should fail when state is not valid JSON", async () => { const user = await buildUser(); const res = await server.get( - `/api/notion.callback?state=bad&code=123&token=${user.getJwtToken()}`, + `/api/notion.callback?state=bad&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); diff --git a/plugins/slack/server/auth/slack.test.ts b/plugins/slack/server/auth/slack.test.ts index a95e7ada06..cdefe2c24c 100644 --- a/plugins/slack/server/auth/slack.test.ts +++ b/plugins/slack/server/auth/slack.test.ts @@ -11,7 +11,7 @@ describe("#slack.post", () => { const res = await server.get( `/auth/slack.post?state=${JSON.stringify( {} - )}&code=123&token=${user.getJwtToken()}` + )}&code=123&token=${user.getSessionToken()}` ); expect(res.status).toEqual(400); }); @@ -19,7 +19,7 @@ describe("#slack.post", () => { it("should fail with status 400 bad request if query param state is not JSON", async () => { const user = await buildUser(); const res = await server.get( - `/auth/slack.post?state=bad&code=123&token=${user.getJwtToken()}` + `/auth/slack.post?state=bad&code=123&token=${user.getSessionToken()}` ); expect(res.status).toEqual(400); }); @@ -43,7 +43,7 @@ describe("#slack.post", () => { const res = await server.get( `/auth/slack.post?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); const body = await res.json(); @@ -60,7 +60,7 @@ describe("#slack.post", () => { const res = await server.get( `/auth/slack.post?state=${encodeURIComponent( state - )}&code=123&token=${user.getJwtToken()}`, + )}&code=123&token=${user.getSessionToken()}`, { redirect: "manual" } ); expect(res.status).toEqual(400); diff --git a/plugins/storage/server/api/files.test.ts b/plugins/storage/server/api/files.test.ts index 670fbb437c..2d9946172c 100644 --- a/plugins/storage/server/api/files.test.ts +++ b/plugins/storage/server/api/files.test.ts @@ -25,9 +25,8 @@ vi.setConfig({ testTimeout: 10000 }); describe("#files.create", () => { it("should fail with status 400 bad request if key is invalid", async () => { const user = await buildUser(); - const res = await server.post("/api/files.create", { + const res = await server.post("/api/files.create", user, { body: { - token: user.getJwtToken(), key: "public/foo/bar/baz.png", }, }); @@ -52,7 +51,7 @@ describe("#files.create", () => { const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), @@ -89,7 +88,7 @@ describe("#files.create", () => { const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), @@ -118,7 +117,7 @@ describe("#files.create", () => { const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), @@ -150,7 +149,7 @@ describe("#files.create", () => { const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), @@ -181,7 +180,7 @@ describe("#files.create", () => { const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), @@ -262,7 +261,7 @@ describe("#files.get", () => { const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); await server.post(`/api/files.create`, { headers: form.getHeaders(), @@ -298,7 +297,7 @@ describe("#files.get", () => { const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); await server.post(`/api/files.create`, { headers: form.getHeaders(), @@ -432,7 +431,7 @@ describe("#files.get", () => { // Non-owner user should be able to access public-read attachment const res = await server.get(`/api/files.get?key=${key}`, { headers: { - Authorization: `Bearer ${otherUser.getJwtToken()}`, + Authorization: `Bearer ${otherUser.getSessionToken()}`, }, }); expect(res.status).toEqual(200); @@ -467,7 +466,7 @@ describe("#files.get", () => { // Non-owner user should NOT be able to access private attachment const res = await server.get(`/api/files.get?key=${key}`, { headers: { - Authorization: `Bearer ${otherUser.getJwtToken()}`, + Authorization: `Bearer ${otherUser.getSessionToken()}`, }, }); expect(res.status).toEqual(403); diff --git a/plugins/webhooks/server/api/webhookSubscriptions.test.ts b/plugins/webhooks/server/api/webhookSubscriptions.test.ts index 9c355e0bc4..1eaf1d28de 100644 --- a/plugins/webhooks/server/api/webhookSubscriptions.test.ts +++ b/plugins/webhooks/server/api/webhookSubscriptions.test.ts @@ -21,9 +21,7 @@ describe("#webhookSubscriptions.list", () => { it("should fail with status 403 forbidden for non-admin user", async () => { const user = await buildUser(); - const res = await server.post("/api/webhookSubscriptions.list", { - body: { token: user.getJwtToken() }, - }); + const res = await server.post("/api/webhookSubscriptions.list", user); const body = await res.json(); expect(res.status).toEqual(403); @@ -43,9 +41,7 @@ describe("#webhookSubscriptions.list", () => { ) ); - const res = await server.post("/api/webhookSubscriptions.list", { - body: { token: user.getJwtToken() }, - }); + const res = await server.post("/api/webhookSubscriptions.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -70,8 +66,8 @@ describe("#webhookSubscriptions.list", () => { name: "Development Hook", }); - const res = await server.post("/api/webhookSubscriptions.list", { - body: { token: user.getJwtToken(), query: "webhook" }, + const res = await server.post("/api/webhookSubscriptions.list", user, { + body: { query: "webhook" }, }); const body = await res.json(); @@ -97,8 +93,8 @@ describe("#webhookSubscriptions.list", () => { name: "Staging Webhook", }); - const res = await server.post("/api/webhookSubscriptions.list", { - body: { token: user.getJwtToken(), query: "PRODUCTION" }, + const res = await server.post("/api/webhookSubscriptions.list", user, { + body: { query: "PRODUCTION" }, }); const body = await res.json(); @@ -115,8 +111,8 @@ describe("#webhookSubscriptions.list", () => { name: "Production Webhook", }); - const res = await server.post("/api/webhookSubscriptions.list", { - body: { token: user.getJwtToken(), query: "nonexistent" }, + const res = await server.post("/api/webhookSubscriptions.list", user, { + body: { query: "nonexistent" }, }); const body = await res.json(); @@ -139,9 +135,7 @@ describe("#webhookSubscriptions.create", () => { it("should fail with status 403 forbidden for non-admin user", async () => { const user = await buildUser(); - const res = await server.post("/api/webhookSubscriptions.create", { - body: { token: user.getJwtToken() }, - }); + const res = await server.post("/api/webhookSubscriptions.create", user); const body = await res.json(); expect(res.status).toEqual(403); @@ -155,9 +149,8 @@ describe("#webhookSubscriptions.create", () => { const events = ["comments"]; const secret = "Test secret"; - const res = await server.post("/api/webhookSubscriptions.create", { + const res = await server.post("/api/webhookSubscriptions.create", user, { body: { - token: user.getJwtToken(), name, url, events, @@ -190,9 +183,7 @@ describe("#webhookSubscriptions.update", () => { it("should fail with status 403 forbidden for non-admin user", async () => { const user = await buildUser(); - const res = await server.post("/api/webhookSubscriptions.update", { - body: { token: user.getJwtToken() }, - }); + const res = await server.post("/api/webhookSubscriptions.update", user); const body = await res.json(); expect(res.status).toEqual(403); @@ -213,9 +204,8 @@ describe("#webhookSubscriptions.update", () => { teamId: user.teamId, }); - const res = await server.post("/api/webhookSubscriptions.update", { + const res = await server.post("/api/webhookSubscriptions.update", user, { body: { - token: user.getJwtToken(), id: existingWebhook.id, name, url, @@ -247,9 +237,8 @@ describe("#webhookSubscriptions.update", () => { enabled: false, }); - const res = await server.post("/api/webhookSubscriptions.update", { + const res = await server.post("/api/webhookSubscriptions.update", user, { body: { - token: user.getJwtToken(), id: disabledWebhook.id, name, url, @@ -281,9 +270,7 @@ describe("#webhookSubscriptions.delete", () => { it("should fail with status 403 forbidden for non-admin user", async () => { const user = await buildUser(); - const res = await server.post("/api/webhookSubscriptions.delete", { - body: { token: user.getJwtToken() }, - }); + const res = await server.post("/api/webhookSubscriptions.delete", user); const body = await res.json(); expect(res.status).toEqual(403); @@ -300,8 +287,8 @@ describe("#webhookSubscriptions.delete", () => { teamId: user.teamId, }); - const res = await server.post("/api/webhookSubscriptions.delete", { - body: { token: user.getJwtToken(), id: createdWebhook.id }, + const res = await server.post("/api/webhookSubscriptions.delete", user, { + body: { id: createdWebhook.id }, }); const body = await res.json(); diff --git a/server/middlewares/authentication.test.ts b/server/middlewares/authentication.test.ts index 661d553e2e..fc4608cdfe 100644 --- a/server/middlewares/authentication.test.ts +++ b/server/middlewares/authentication.test.ts @@ -21,7 +21,7 @@ describe("Authentication middleware", () => { { // @ts-expect-error mock request request: { - get: vi.fn(() => `Bearer ${user.getJwtToken()}`), + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), }, state, cache: {}, @@ -41,7 +41,7 @@ describe("Authentication middleware", () => { { // @ts-expect-error mock request request: { - get: vi.fn(() => `Bearer ${user.getJwtToken()}error`), + get: vi.fn(() => `Bearer ${user.getSessionToken()}error`), }, state, cache: {}, @@ -65,7 +65,7 @@ describe("Authentication middleware", () => { { // @ts-expect-error mock request request: { - get: vi.fn(() => `Bearer ${user.getJwtToken()}`), + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), }, state, cache: {}, @@ -295,7 +295,7 @@ describe("Authentication middleware", () => { // @ts-expect-error mock request get: vi.fn(() => null), query: { - token: user.getJwtToken(), + token: user.getSessionToken(), }, }, state, @@ -316,7 +316,7 @@ describe("Authentication middleware", () => { // @ts-expect-error mock request get: vi.fn(() => null), body: { - token: user.getJwtToken(), + token: user.getSessionToken(), }, }, state, @@ -342,7 +342,7 @@ describe("Authentication middleware", () => { { // @ts-expect-error mock request request: { - get: vi.fn(() => `Bearer ${user.getJwtToken()}`), + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), }, state, cache: {}, @@ -372,7 +372,7 @@ describe("Authentication middleware", () => { { // @ts-expect-error mock request request: { - get: vi.fn(() => `Bearer ${user.getJwtToken()}`), + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), }, state, cache: {}, diff --git a/server/models/User.test.ts b/server/models/User.test.ts index 48f7b0af32..ddb0b9a2bd 100644 --- a/server/models/User.test.ts +++ b/server/models/User.test.ts @@ -153,10 +153,10 @@ describe("user model", () => { }); }); - describe("getJwtToken", () => { + describe("getSessionToken", () => { it("should set JWT secret", async () => { const user = await buildUser(); - expect(user.getJwtToken()).toBeTruthy(); + expect(user.getSessionToken()).toBeTruthy(); }); }); diff --git a/server/models/User.ts b/server/models/User.ts index 1b60040a81..06ae43fd52 100644 --- a/server/models/User.ts +++ b/server/models/User.ts @@ -608,7 +608,7 @@ class User extends ParanoidModel< * @param service The authentication service used to generate the token, if applicable * @returns The session token */ - getJwtToken = (expiresAt?: Date, service?: string) => + getSessionToken = (expiresAt?: Date, service?: string) => JWT.sign( { id: this.id, diff --git a/server/routes/api/accessRequests/accessRequests.test.ts b/server/routes/api/accessRequests/accessRequests.test.ts index 62adf9a5f9..1173295911 100644 --- a/server/routes/api/accessRequests/accessRequests.test.ts +++ b/server/routes/api/accessRequests/accessRequests.test.ts @@ -15,11 +15,7 @@ const server = getTestServer(); describe("#accessRequests.create", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/accessRequests.create", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/accessRequests.create", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("documentId: Must be a valid UUID or slug"); @@ -37,9 +33,8 @@ describe("#accessRequests.create", () => { it("should return 404 for non-existent document", async () => { const user = await buildUser(); - const res = await server.post("/api/accessRequests.create", { + const res = await server.post("/api/accessRequests.create", user, { body: { - token: user.getJwtToken(), documentId: "a8f22c38-f4eb-4909-8c30-b927af36c5f3", }, }); @@ -63,9 +58,8 @@ describe("#accessRequests.create", () => { collectionId: collection.id, }); - const res = await server.post("/api/accessRequests.create", { + const res = await server.post("/api/accessRequests.create", requester, { body: { - token: requester.getJwtToken(), documentId: document.id, }, }); @@ -85,9 +79,8 @@ describe("#accessRequests.create", () => { createdById: owner.id, }); - const res = await server.post("/api/accessRequests.create", { + const res = await server.post("/api/accessRequests.create", requester, { body: { - token: requester.getJwtToken(), documentId: document.id, }, }); @@ -110,9 +103,8 @@ describe("#accessRequests.create", () => { collectionId: collection.id, }); - const res = await server.post("/api/accessRequests.create", { + const res = await server.post("/api/accessRequests.create", requester, { body: { - token: requester.getJwtToken(), documentId: document.urlId, }, }); @@ -135,17 +127,15 @@ describe("#accessRequests.create", () => { }); // Create first access request - const res1 = await server.post("/api/accessRequests.create", { + const res1 = await server.post("/api/accessRequests.create", requester, { body: { - token: requester.getJwtToken(), documentId: document.id, }, }); // Try to create another - const res2 = await server.post("/api/accessRequests.create", { + const res2 = await server.post("/api/accessRequests.create", requester, { body: { - token: requester.getJwtToken(), documentId: document.id, }, }); @@ -189,9 +179,8 @@ describe("#accessRequests.create", () => { }); // Create new request - const res2 = await server.post("/api/accessRequests.create", { + const res2 = await server.post("/api/accessRequests.create", requester, { body: { - token: requester.getJwtToken(), documentId: document.id, }, }); @@ -211,11 +200,7 @@ describe("#accessRequests.info", () => { it("should fail if both id and documentId are missing", async () => { const user = await buildUser(); - const res = await server.post("/api/accessRequests.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/accessRequests.info", user); expect(res.status).toEqual(400); }); @@ -234,9 +219,8 @@ describe("#accessRequests.info", () => { teamId: team.id, }); - const res = await server.post("/api/accessRequests.info", { + const res = await server.post("/api/accessRequests.info", requester, { body: { - token: requester.getJwtToken(), id: accessRequest.id, }, }); @@ -262,9 +246,8 @@ describe("#accessRequests.info", () => { teamId: team.id, }); - const res = await server.post("/api/accessRequests.info", { + const res = await server.post("/api/accessRequests.info", requester, { body: { - token: requester.getJwtToken(), documentId: document.urlId, }, }); @@ -277,9 +260,8 @@ describe("#accessRequests.info", () => { it("should return 404 if access request not found", async () => { const user = await buildUser(); - const res = await server.post("/api/accessRequests.info", { + const res = await server.post("/api/accessRequests.info", user, { body: { - token: user.getJwtToken(), id: "00000000-0000-0000-0000-000000000000", }, }); @@ -309,9 +291,8 @@ describe("#accessRequests.approve", () => { status: AccessRequestStatus.Pending, }); - const res = await server.post("/api/accessRequests.approve", { + const res = await server.post("/api/accessRequests.approve", admin, { body: { - token: admin.getJwtToken(), id: accessRequest.id, permission: DocumentPermission.ReadWrite, }, @@ -355,9 +336,8 @@ describe("#accessRequests.approve", () => { teamId: team.id, }); - const res = await server.post("/api/accessRequests.approve", { + const res = await server.post("/api/accessRequests.approve", nonManager, { body: { - token: nonManager.getJwtToken(), id: accessRequest.id, permission: DocumentPermission.ReadWrite, }, @@ -389,9 +369,8 @@ describe("#accessRequests.approve", () => { status: AccessRequestStatus.Pending, }); - const res = await server.post("/api/accessRequests.approve", { + const res = await server.post("/api/accessRequests.approve", admin, { body: { - token: admin.getJwtToken(), id: accessRequest.id, permission: DocumentPermission.ReadWrite, }, @@ -429,9 +408,8 @@ describe("#accessRequests.approve", () => { respondedAt: new Date(), }); - const res = await server.post("/api/accessRequests.approve", { + const res = await server.post("/api/accessRequests.approve", admin, { body: { - token: admin.getJwtToken(), id: accessRequest.id, permission: DocumentPermission.ReadWrite, }, @@ -463,9 +441,8 @@ describe("#accessRequests.dismiss", () => { teamId: team.id, }); - const res = await server.post("/api/accessRequests.dismiss", { + const res = await server.post("/api/accessRequests.dismiss", admin, { body: { - token: admin.getJwtToken(), id: accessRequest.id, }, }); @@ -509,9 +486,8 @@ describe("#accessRequests.dismiss", () => { teamId: team.id, }); - const res = await server.post("/api/accessRequests.dismiss", { + const res = await server.post("/api/accessRequests.dismiss", nonManager, { body: { - token: nonManager.getJwtToken(), id: accessRequest.id, }, }); @@ -539,9 +515,8 @@ describe("#accessRequests.dismiss", () => { respondedAt, }); - const res = await server.post("/api/accessRequests.dismiss", { + const res = await server.post("/api/accessRequests.dismiss", admin, { body: { - token: admin.getJwtToken(), id: accessRequest.id, }, }); diff --git a/server/routes/api/apiKeys/apiKeys.test.ts b/server/routes/api/apiKeys/apiKeys.test.ts index fc12563647..68acaff701 100644 --- a/server/routes/api/apiKeys/apiKeys.test.ts +++ b/server/routes/api/apiKeys/apiKeys.test.ts @@ -14,9 +14,8 @@ describe("#apiKeys.create", () => { const now = new Date(); const user = await buildUser(); - const res = await server.post("/api/apiKeys.create", { + const res = await server.post("/api/apiKeys.create", user, { body: { - token: user.getJwtToken(), name: "My API Key", expiresAt: now.toISOString(), }, @@ -32,9 +31,8 @@ describe("#apiKeys.create", () => { it("should allow creating an api key without expiry", async () => { const user = await buildUser(); - const res = await server.post("/api/apiKeys.create", { + const res = await server.post("/api/apiKeys.create", user, { body: { - token: user.getJwtToken(), name: "My API Key", }, }); @@ -49,9 +47,8 @@ describe("#apiKeys.create", () => { it("should allow creating an api key with scopes", async () => { const user = await buildUser(); - const res = await server.post("/api/apiKeys.create", { + const res = await server.post("/api/apiKeys.create", user, { body: { - token: user.getJwtToken(), name: "My API Key", scope: [ "/api/documents.list", @@ -82,9 +79,8 @@ describe("#apiKeys.create", () => { it("should allow viewers to create an api key", async () => { const viewer = await buildViewer(); - const res = await server.post("/api/apiKeys.create", { + const res = await server.post("/api/apiKeys.create", viewer, { body: { - token: viewer.getJwtToken(), name: "My API Key", }, }); @@ -97,9 +93,8 @@ describe("#apiKeys.create", () => { it("should not allow guests to create an api key", async () => { const guest = await buildGuestUser(); - const res = await server.post("/api/apiKeys.create", { + const res = await server.post("/api/apiKeys.create", guest, { body: { - token: guest.getJwtToken(), name: "My API Key", }, }); @@ -119,10 +114,9 @@ describe("#apiKeys.list", () => { const admin = await buildAdmin({ teamId: user.teamId }); await buildApiKey({ userId: user.id }); - const res = await server.post("/api/apiKeys.list", { + const res = await server.post("/api/apiKeys.list", admin, { body: { userId: user.id, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -137,10 +131,9 @@ describe("#apiKeys.list", () => { await buildApiKey({ userId: user.id }); await buildApiKey({ userId: admin.id }); - const res = await server.post("/api/apiKeys.list", { + const res = await server.post("/api/apiKeys.list", admin, { body: { userId: admin.id, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -156,11 +149,7 @@ describe("#apiKeys.list", () => { await buildApiKey({ userId: user.id }); await buildApiKey(); - const res = await server.post("/api/apiKeys.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/apiKeys.list", admin); const body = await res.json(); @@ -174,9 +163,8 @@ describe("#apiKeys.list", () => { await buildApiKey({ userId: admin.id, name: "Staging Key" }); await buildApiKey({ userId: admin.id, name: "Development Token" }); - const res = await server.post("/api/apiKeys.list", { + const res = await server.post("/api/apiKeys.list", admin, { body: { - token: admin.getJwtToken(), query: "key", }, }); @@ -196,9 +184,8 @@ describe("#apiKeys.list", () => { await buildApiKey({ userId: admin.id, name: "Production Key" }); await buildApiKey({ userId: admin.id, name: "Staging Key" }); - const res = await server.post("/api/apiKeys.list", { + const res = await server.post("/api/apiKeys.list", admin, { body: { - token: admin.getJwtToken(), query: "PRODUCTION", }, }); @@ -213,9 +200,8 @@ describe("#apiKeys.list", () => { const admin = await buildAdmin(); await buildApiKey({ userId: admin.id, name: "Production Key" }); - const res = await server.post("/api/apiKeys.list", { + const res = await server.post("/api/apiKeys.list", admin, { body: { - token: admin.getJwtToken(), query: "nonexistent", }, }); @@ -229,9 +215,8 @@ describe("#apiKeys.list", () => { const viewer = await buildViewer(); await buildApiKey({ userId: viewer.id }); - const res = await server.post("/api/apiKeys.list", { + const res = await server.post("/api/apiKeys.list", viewer, { body: { - token: viewer.getJwtToken(), userId: viewer.id, }, }); @@ -255,9 +240,8 @@ describe("#apiKeys.delete", () => { userId: user.id, }); - const res = await server.post("/api/apiKeys.delete", { + const res = await server.post("/api/apiKeys.delete", user, { body: { - token: user.getJwtToken(), id: apiKey.id, }, }); @@ -273,9 +257,8 @@ describe("#apiKeys.delete", () => { userId: otherUser.id, }); - const res = await server.post("/api/apiKeys.delete", { + const res = await server.post("/api/apiKeys.delete", user, { body: { - token: user.getJwtToken(), id: apiKey.id, }, }); @@ -291,9 +274,8 @@ describe("#apiKeys.delete", () => { userId: user.id, }); - const res = await server.post("/api/apiKeys.delete", { + const res = await server.post("/api/apiKeys.delete", admin, { body: { - token: admin.getJwtToken(), id: apiKey.id, }, }); @@ -305,9 +287,8 @@ describe("#apiKeys.delete", () => { const viewer = await buildViewer(); const apiKey = await buildApiKey({ userId: viewer.id }); - const res = await server.post("/api/apiKeys.delete", { + const res = await server.post("/api/apiKeys.delete", viewer, { body: { - token: viewer.getJwtToken(), id: apiKey.id, }, }); diff --git a/server/routes/api/attachments/attachments.test.ts b/server/routes/api/attachments/attachments.test.ts index a113e162cf..7c738f135b 100644 --- a/server/routes/api/attachments/attachments.test.ts +++ b/server/routes/api/attachments/attachments.test.ts @@ -33,11 +33,7 @@ describe("#attachments.list", () => { userId: user.id, }); - const res = await server.post("/api/attachments.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/attachments.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -61,10 +57,9 @@ describe("#attachments.list", () => { userId: admin.id, }); - const res = await server.post("/api/attachments.list", { + const res = await server.post("/api/attachments.list", admin, { body: { userId: user.id, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -90,10 +85,9 @@ describe("#attachments.list", () => { userId: user.id, }); - const res = await server.post("/api/attachments.list", { + const res = await server.post("/api/attachments.list", user, { body: { documentId: document.id, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -113,11 +107,7 @@ describe("#attachments.list", () => { userId: anotherUser.id, }); - const res = await server.post("/api/attachments.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/attachments.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -139,13 +129,12 @@ describe("#attachments.create", () => { describe("member", () => { it("should allow upload using avatar preset", async () => { const user = await buildUser(); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: 1000, preset: AttachmentPreset.Avatar, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -164,14 +153,13 @@ describe("#attachments.create", () => { userId: user.id, }); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: 1000, documentId: document.id, preset: AttachmentPreset.DocumentAttachment, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -179,13 +167,12 @@ describe("#attachments.create", () => { it("should create expiring attachment using import preset", async () => { const user = await buildUser(); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.zip", contentType: "application/zip", size: 10000, preset: AttachmentPreset.WorkspaceImport, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -201,14 +188,13 @@ describe("#attachments.create", () => { const user = await buildUser(); const document = await buildDocument(); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: 1000, documentId: document.id, preset: AttachmentPreset.DocumentAttachment, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(403); @@ -216,13 +202,12 @@ describe("#attachments.create", () => { it("should not allow file upload for avatar preset", async () => { const user = await buildUser(); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.pdf", contentType: "application/pdf", size: 1000, preset: AttachmentPreset.Avatar, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(400); @@ -230,13 +215,12 @@ describe("#attachments.create", () => { it("should reject negative size", async () => { const user = await buildUser(); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: -1, preset: AttachmentPreset.Emoji, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(400); @@ -244,13 +228,12 @@ describe("#attachments.create", () => { it("should reject non-integer size", async () => { const user = await buildUser(); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: 1.5, preset: AttachmentPreset.Emoji, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(400); @@ -276,14 +259,13 @@ describe("#attachments.create", () => { permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: 1000, documentId: document.id, preset: AttachmentPreset.DocumentAttachment, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -293,14 +275,13 @@ describe("#attachments.create", () => { const user = await buildViewer(); const document = await buildDocument({ teamId: user.teamId }); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: 1000, documentId: document.id, preset: AttachmentPreset.DocumentAttachment, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(403); @@ -308,13 +289,12 @@ describe("#attachments.create", () => { it("should allow upload using avatar preset", async () => { const user = await buildViewer(); - const res = await server.post("/api/attachments.create", { + const res = await server.post("/api/attachments.create", user, { body: { name: "test.png", contentType: "image/png", size: 1000, preset: AttachmentPreset.Avatar, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -334,9 +314,8 @@ describe("#attachments.delete", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/attachments.delete", { + const res = await server.post("/api/attachments.delete", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, }); @@ -358,9 +337,8 @@ describe("#attachments.delete", () => { }); attachment.documentId = null; await attachment.save(); - const res = await server.post("/api/attachments.delete", { + const res = await server.post("/api/attachments.delete", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, }); @@ -381,9 +359,8 @@ describe("#attachments.delete", () => { }); attachment.documentId = null; await attachment.save(); - const res = await server.post("/api/attachments.delete", { + const res = await server.post("/api/attachments.delete", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, }); @@ -402,9 +379,8 @@ describe("#attachments.delete", () => { const attachment = await buildAttachment(); attachment.documentId = null; await attachment.save(); - const res = await server.post("/api/attachments.delete", { + const res = await server.post("/api/attachments.delete", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, }); @@ -418,9 +394,8 @@ describe("#attachments.delete", () => { }); attachment.documentId = null; await attachment.save(); - const res = await server.post("/api/attachments.delete", { + const res = await server.post("/api/attachments.delete", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, }); @@ -443,9 +418,8 @@ describe("#attachments.delete", () => { documentId: document.id, acl: "private", }); - const res = await server.post("/api/attachments.delete", { + const res = await server.post("/api/attachments.delete", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, }); @@ -460,9 +434,8 @@ describe("#attachments.redirect", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/attachments.redirect", { + const res = await server.post("/api/attachments.redirect", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, redirect: "manual", @@ -478,10 +451,8 @@ describe("#attachments.redirect", () => { }); const res = await server.post( `/api/attachments.redirect?id=${attachment.id}`, + user, { - body: { - token: user.getJwtToken(), - }, redirect: "manual", } ); @@ -505,9 +476,8 @@ describe("#attachments.redirect", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/attachments.redirect", { + const res = await server.post("/api/attachments.redirect", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, redirect: "manual", @@ -532,9 +502,8 @@ describe("#attachments.redirect", () => { userId: user.id, documentId: document.id, }); - const res = await server.post("/api/attachments.redirect", { + const res = await server.post("/api/attachments.redirect", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, redirect: "manual", @@ -587,9 +556,8 @@ describe("#attachments.redirect", () => { documentId: document.id, acl: "private", }); - const res = await server.post("/api/attachments.redirect", { + const res = await server.post("/api/attachments.redirect", user, { body: { - token: user.getJwtToken(), id: attachment.id, }, }); @@ -598,11 +566,7 @@ describe("#attachments.redirect", () => { it("should fail in absence of id", async () => { const user = await buildUser(); - const res = await server.post("/api/attachments.redirect", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/attachments.redirect", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id is required"); diff --git a/server/routes/api/auth/auth.test.ts b/server/routes/api/auth/auth.test.ts index 5da0e784e0..5466361d4b 100644 --- a/server/routes/api/auth/auth.test.ts +++ b/server/routes/api/auth/auth.test.ts @@ -27,11 +27,7 @@ describe("#auth.info", () => { teamId: team2.id, email: user.email, }); - const res = await server.post("/api/auth.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/auth.info", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -52,11 +48,7 @@ describe("#auth.info", () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); await team.destroy(); - const res = await server.post("/api/auth.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/auth.info", user); expect(res.status).toEqual(401); }); @@ -69,18 +61,10 @@ describe("#auth.info", () => { describe("#auth.delete", () => { it("should make the access token unusable", async () => { const user = await buildUser(); - const res = await server.post("/api/auth.delete", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/auth.delete", user); expect(res.status).toEqual(200); - const res2 = await server.post("/api/auth.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res2 = await server.post("/api/auth.info", user); expect(res2.status).toEqual(401); }); diff --git a/server/routes/api/authenticationProviders/authenticationProviders.test.ts b/server/routes/api/authenticationProviders/authenticationProviders.test.ts index bf2f175a35..cd50ef6005 100644 --- a/server/routes/api/authenticationProviders/authenticationProviders.test.ts +++ b/server/routes/api/authenticationProviders/authenticationProviders.test.ts @@ -20,10 +20,9 @@ describe("#authenticationProviders.info", () => { teamId: team.id, }); const authenticationProviders = await team.$get("authenticationProviders"); - const res = await server.post("/api/authenticationProviders.info", { + const res = await server.post("/api/authenticationProviders.info", user, { body: { id: authenticationProviders[0].id, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -39,10 +38,9 @@ describe("#authenticationProviders.info", () => { const team = await buildTeam(); const user = await buildUser(); const authenticationProviders = await team.$get("authenticationProviders"); - const res = await server.post("/api/authenticationProviders.info", { + const res = await server.post("/api/authenticationProviders.info", user, { body: { id: authenticationProviders[0].id, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(403); @@ -69,11 +67,10 @@ describe("#authenticationProviders.update", () => { teamId: team.id, }); const authenticationProviders = await team.$get("authenticationProviders"); - const res = await server.post("/api/authenticationProviders.update", { + const res = await server.post("/api/authenticationProviders.update", user, { body: { id: authenticationProviders[0].id, isEnabled: false, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(400); @@ -88,11 +85,10 @@ describe("#authenticationProviders.update", () => { name: "google", providerId: randomUUID(), }); - const res = await server.post("/api/authenticationProviders.update", { + const res = await server.post("/api/authenticationProviders.update", user, { body: { id: googleProvider.id, isEnabled: false, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -106,11 +102,10 @@ describe("#authenticationProviders.update", () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); const authenticationProviders = await team.$get("authenticationProviders"); - const res = await server.post("/api/authenticationProviders.update", { + const res = await server.post("/api/authenticationProviders.update", user, { body: { id: authenticationProviders[0].id, isEnabled: false, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(403); @@ -135,11 +130,7 @@ describe("#authenticationProviders.list", () => { const user = await buildAdmin({ teamId: team.id, }); - const res = await server.post("/api/authenticationProviders.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/authenticationProviders.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toBe(3); @@ -170,10 +161,9 @@ describe("#authenticationProviders.delete", () => { name: "google", providerId: randomUUID(), }); - const res = await server.post("/api/authenticationProviders.delete", { + const res = await server.post("/api/authenticationProviders.delete", user, { body: { id: googleProvider.id, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -191,10 +181,9 @@ describe("#authenticationProviders.delete", () => { name: "google", providerId: randomUUID(), }); - const res = await server.post("/api/authenticationProviders.delete", { + const res = await server.post("/api/authenticationProviders.delete", user, { body: { id: googleProvider.id, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -213,10 +202,9 @@ describe("#authenticationProviders.delete", () => { name: "google", providerId: randomUUID(), }); - const res = await server.post("/api/authenticationProviders.delete", { + const res = await server.post("/api/authenticationProviders.delete", user, { body: { id: googleProvider.id, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(403); diff --git a/server/routes/api/collections/collections.test.ts b/server/routes/api/collections/collections.test.ts index d6d723f857..d47fbc5aa4 100644 --- a/server/routes/api/collections/collections.test.ts +++ b/server/routes/api/collections/collections.test.ts @@ -27,11 +27,7 @@ describe("#collections.list", () => { userId: user.id, teamId: team.id, }); - const res = await server.post("/api/collections.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -47,9 +43,8 @@ describe("#collections.list", () => { teamId: team.id, archivedAt: new Date(), }); - const res = await server.post("/api/collections.list", { + const res = await server.post("/api/collections.list", admin, { body: { - token: admin.getJwtToken(), statusFilter: [CollectionStatusFilter.Archived], }, }); @@ -68,11 +63,7 @@ describe("#collections.list", () => { teamId: team.id, archivedAt: new Date(), }); - const res = await server.post("/api/collections.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.list", admin); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(0); @@ -89,11 +80,7 @@ describe("#collections.list", () => { permission: null, teamId: user.teamId, }); - const res = await server.post("/api/collections.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -112,11 +99,7 @@ describe("#collections.list", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/collections.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(2); @@ -149,11 +132,7 @@ describe("#collections.list", () => { createdById: user.id, }, }); - const res = await server.post("/api/collections.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(2); @@ -169,11 +148,7 @@ describe("#collections.list", () => { teamId: team.id, archivedAt: new Date(), }); - const res = await server.post("/api/collections.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -187,30 +162,21 @@ describe("#collections.list", () => { teamId: team.id, }); - const beforeArchiveRes = await server.post("/api/collections.list", { - body: { - token: user.getJwtToken(), - }, - }); + const beforeArchiveRes = await server.post("/api/collections.list", user); const beforeArchiveBody = await beforeArchiveRes.json(); expect(beforeArchiveRes.status).toEqual(200); expect(beforeArchiveBody.data).toHaveLength(1); expect(beforeArchiveBody.data[0].id).toEqual(collection.id); - const archiveRes = await server.post("/api/collections.archive", { + const archiveRes = await server.post("/api/collections.archive", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); expect(archiveRes.status).toEqual(200); - const afterArchiveRes = await server.post("/api/collections.list", { - body: { - token: user.getJwtToken(), - }, - }); + const afterArchiveRes = await server.post("/api/collections.list", user); const afterArchiveBody = await afterArchiveRes.json(); expect(afterArchiveRes.status).toEqual(200); @@ -221,11 +187,7 @@ describe("#collections.list", () => { describe("#collections.import", () => { it("should error if no attachmentId is passed", async () => { const user = await buildUser(); - const res = await server.post("/api/collections.import", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.import", user); expect(res.status).toEqual(400); }); @@ -248,9 +210,8 @@ describe("#collections.move", () => { it("should require authorization", async () => { const user = await buildUser(); const collection = await buildCollection(); - const res = await server.post("/api/collections.move", { + const res = await server.post("/api/collections.move", user, { body: { - token: user.getJwtToken(), id: collection.id, index: "P", }, @@ -262,9 +223,8 @@ describe("#collections.move", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.move", { + const res = await server.post("/api/collections.move", admin, { body: { - token: admin.getJwtToken(), id: collection.id, index: "P", icon: "flame", @@ -279,9 +239,8 @@ describe("#collections.move", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.move", { + const res = await server.post("/api/collections.move", admin, { body: { - token: admin.getJwtToken(), id: collection.id, index: "P", icon: "😁", @@ -296,9 +255,8 @@ describe("#collections.move", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.move", { + const res = await server.post("/api/collections.move", admin, { body: { - token: admin.getJwtToken(), id: collection.id, icon: "nonsRence", }, @@ -310,9 +268,8 @@ describe("#collections.move", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.move", { + const res = await server.post("/api/collections.move", admin, { body: { - token: admin.getJwtToken(), id: collection.id, index: "يونيكود", }, @@ -330,9 +287,9 @@ describe("#collections.move", () => { }); const createdCollectionResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "Test", sharing: false, index: "Q", @@ -340,13 +297,16 @@ describe("#collections.move", () => { } ); await createdCollectionResponse.json(); - const movedCollectionRes = await server.post("/api/collections.move", { - body: { - token: admin.getJwtToken(), - id: collection.id, - index: "Q", - }, - }); + const movedCollectionRes = await server.post( + "/api/collections.move", + admin, + { + body: { + id: collection.id, + index: "Q", + }, + } + ); const movedCollection = await movedCollectionRes.json(); expect(movedCollectionRes.status).toEqual(200); expect(movedCollection.success).toBe(true); @@ -360,9 +320,9 @@ describe("#collections.move", () => { const user = await buildUser({ teamId: team.id }); const createdCollectionAResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "A", sharing: false, index: "a", @@ -371,9 +331,9 @@ describe("#collections.move", () => { ); const createdCollectionBResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "B", sharing: false, index: "b", @@ -382,9 +342,9 @@ describe("#collections.move", () => { ); const createdCollectionCResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "C", sharing: false, index: "c", @@ -396,9 +356,9 @@ describe("#collections.move", () => { const createdCollectionC = await createdCollectionCResponse.json(); const movedCollectionCResponse = await server.post( "/api/collections.move", + admin, { body: { - token: admin.getJwtToken(), id: createdCollectionC.data.id, index: "a", }, @@ -420,9 +380,8 @@ describe("#collections.export", () => { permission: null, teamId: user.teamId, }); - const res = await server.post("/api/collections.export", { + const res = await server.post("/api/collections.export", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -441,9 +400,8 @@ describe("#collections.export", () => { userId: admin.id, permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/collections.export", { + const res = await server.post("/api/collections.export", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -470,9 +428,8 @@ describe("#collections.export", () => { createdById: admin.id, }, }); - const res = await server.post("/api/collections.export", { + const res = await server.post("/api/collections.export", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -493,9 +450,8 @@ describe("#collections.export", () => { userId: admin.id, teamId: admin.teamId, }); - const res = await server.post("/api/collections.export", { + const res = await server.post("/api/collections.export", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -507,9 +463,8 @@ describe("#collections.export", () => { const collection = await buildCollection({ teamId: admin.teamId, }); - const res = await server.post("/api/collections.export", { + const res = await server.post("/api/collections.export", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -530,21 +485,13 @@ describe("#collections.export_all", () => { it("should require authorization", async () => { const user = await buildUser(); - const res = await server.post("/api/collections.export_all", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.export_all", user); expect(res.status).toEqual(403); }); it("should return success", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/collections.export_all", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/collections.export_all", admin); expect(res.status).toEqual(200); }); }); @@ -566,9 +513,8 @@ describe("#collections.add_user", () => { userId: user.id, permission: CollectionPermission.Admin, }); - const res = await server.post("/api/collections.add_user", { + const res = await server.post("/api/collections.add_user", user, { body: { - token: user.getJwtToken(), id: collection.id, userId: anotherUser.id, }, @@ -588,9 +534,8 @@ describe("#collections.add_user", () => { const anotherUser = await buildUser({ teamId: admin.teamId, }); - const res = await server.post("/api/collections.add_user", { + const res = await server.post("/api/collections.add_user", admin, { body: { - token: admin.getJwtToken(), id: collection.id, userId: anotherUser.id, }, @@ -606,9 +551,8 @@ describe("#collections.add_user", () => { teamId: user.teamId, permission: null, }); - const res = await server.post("/api/collections.add_user", { + const res = await server.post("/api/collections.add_user", user, { body: { - token: user.getJwtToken(), id: collection.id, userId: user.id, }, @@ -625,9 +569,8 @@ describe("#collections.add_user", () => { permission: null, }); const anotherUser = await buildUser(); - const res = await server.post("/api/collections.add_user", { + const res = await server.post("/api/collections.add_user", user, { body: { - token: user.getJwtToken(), id: collection.id, userId: anotherUser.id, }, @@ -648,9 +591,8 @@ describe("#collections.add_user", () => { const anotherUser = await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/collections.add_user", { + const res = await server.post("/api/collections.add_user", user, { body: { - token: user.getJwtToken(), id: collection.id, userId: anotherUser.id, }, @@ -670,9 +612,8 @@ describe("#collections.add_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/collections.add_group", { + const res = await server.post("/api/collections.add_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, }, @@ -692,9 +633,8 @@ describe("#collections.add_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/collections.add_group", { + const res = await server.post("/api/collections.add_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, permission: null, @@ -715,9 +655,8 @@ describe("#collections.add_group", () => { permission: null, }); const group = await buildGroup(); - const res = await server.post("/api/collections.add_group", { + const res = await server.post("/api/collections.add_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, }, @@ -738,9 +677,8 @@ describe("#collections.add_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/collections.add_group", { + const res = await server.post("/api/collections.add_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, }, @@ -760,18 +698,16 @@ describe("#collections.remove_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - await server.post("/api/collections.add_group", { + await server.post("/api/collections.add_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, }, }); let groups = await collection.$get("groups"); expect(groups.length).toEqual(1); - const res = await server.post("/api/collections.remove_group", { + const res = await server.post("/api/collections.remove_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, }, @@ -788,9 +724,8 @@ describe("#collections.remove_group", () => { permission: null, }); const group = await buildGroup(); - const res = await server.post("/api/collections.remove_group", { + const res = await server.post("/api/collections.remove_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, }, @@ -811,9 +746,8 @@ describe("#collections.remove_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/collections.remove_group", { + const res = await server.post("/api/collections.remove_group", user, { body: { - token: user.getJwtToken(), id: collection.id, groupId: group.id, }, @@ -833,16 +767,14 @@ describe("#collections.remove_user", () => { const anotherUser = await buildUser({ teamId: admin.teamId, }); - await server.post("/api/collections.add_user", { + await server.post("/api/collections.add_user", admin, { body: { - token: admin.getJwtToken(), id: collection.id, userId: anotherUser.id, }, }); - const res = await server.post("/api/collections.remove_user", { + const res = await server.post("/api/collections.remove_user", admin, { body: { - token: admin.getJwtToken(), id: collection.id, userId: anotherUser.id, }, @@ -862,9 +794,8 @@ describe("#collections.remove_user", () => { const nonMember = await buildUser({ teamId: admin.teamId, }); - const res = await server.post("/api/collections.remove_user", { + const res = await server.post("/api/collections.remove_user", admin, { body: { - token: admin.getJwtToken(), id: collection.id, userId: nonMember.id, }, @@ -881,9 +812,8 @@ describe("#collections.remove_user", () => { permission: null, }); const anotherUser = await buildUser(); - const res = await server.post("/api/collections.remove_user", { + const res = await server.post("/api/collections.remove_user", user, { body: { - token: user.getJwtToken(), id: collection.id, userId: anotherUser.id, }, @@ -904,9 +834,8 @@ describe("#collections.remove_user", () => { const anotherUser = await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/collections.remove_user", { + const res = await server.post("/api/collections.remove_user", user, { body: { - token: user.getJwtToken(), id: collection.id, userId: anotherUser.id, }, @@ -937,9 +866,8 @@ describe("#collections.group_memberships", () => { groupId: group.id, permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/collections.group_memberships", { + const res = await server.post("/api/collections.group_memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -987,9 +915,8 @@ describe("#collections.group_memberships", () => { groupId: group2.id, permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/collections.group_memberships", { + const res = await server.post("/api/collections.group_memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, query: "will", }, @@ -1030,9 +957,8 @@ describe("#collections.group_memberships", () => { groupId: group2.id, permission: CollectionPermission.Read, }); - const res = await server.post("/api/collections.group_memberships", { + const res = await server.post("/api/collections.group_memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, permission: CollectionPermission.Read, }, @@ -1056,9 +982,8 @@ describe("#collections.group_memberships", () => { permission: null, teamId: user.teamId, }); - const res = await server.post("/api/collections.group_memberships", { + const res = await server.post("/api/collections.group_memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1077,9 +1002,8 @@ describe("#collections.memberships", () => { collection.permission = null; await collection.save(); - const res = await server.post("/api/collections.memberships", { + const res = await server.post("/api/collections.memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1111,9 +1035,8 @@ describe("#collections.memberships", () => { userId: user2.id, permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/collections.memberships", { + const res = await server.post("/api/collections.memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, query: user.name.slice(0, 3), }, @@ -1144,9 +1067,8 @@ describe("#collections.memberships", () => { userId: user2.id, permission: CollectionPermission.Read, }); - const res = await server.post("/api/collections.memberships", { + const res = await server.post("/api/collections.memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, permission: CollectionPermission.Read, }, @@ -1167,9 +1089,8 @@ describe("#collections.memberships", () => { it("should require authorization", async () => { const collection = await buildCollection(); const user = await buildUser(); - const res = await server.post("/api/collections.memberships", { + const res = await server.post("/api/collections.memberships", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1187,9 +1108,8 @@ describe("#collections.info", () => { archivedAt: new Date(), archivedById: user.id, }); - const res = await server.post("/api/collections.info", { + const res = await server.post("/api/collections.info", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1205,9 +1125,8 @@ describe("#collections.info", () => { userId: user.id, teamId: team.id, }); - const res = await server.post("/api/collections.info", { + const res = await server.post("/api/collections.info", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1223,9 +1142,8 @@ describe("#collections.info", () => { userId: user.id, teamId: team.id, }); - const res = await server.post("/api/collections.info", { + const res = await server.post("/api/collections.info", user, { body: { - token: user.getJwtToken(), id: `any-slug-${collection.urlId}`, }, }); @@ -1250,9 +1168,8 @@ describe("#collections.info", () => { userId: user.id, }, }); - const res = await server.post("/api/collections.info", { + const res = await server.post("/api/collections.info", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1274,9 +1191,8 @@ describe("#collections.info", () => { createdById: user.id, permission: CollectionPermission.Read, }); - const res = await server.post("/api/collections.info", { + const res = await server.post("/api/collections.info", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1295,9 +1211,8 @@ describe("#collections.info", () => { it("should require authorization", async () => { const collection = await buildCollection(); const user = await buildUser(); - const res = await server.post("/api/collections.info", { + const res = await server.post("/api/collections.info", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1315,9 +1230,8 @@ describe("#collections.create", () => { it("should create collection", async () => { const user = await buildUser(); - const res = await server.post("/api/collections.create", { + const res = await server.post("/api/collections.create", user, { body: { - token: user.getJwtToken(), name: "Test", }, }); @@ -1333,9 +1247,8 @@ describe("#collections.create", () => { it("should error when index is invalid", async () => { const user = await buildUser(); - const res = await server.post("/api/collections.create", { + const res = await server.post("/api/collections.create", user, { body: { - token: user.getJwtToken(), name: "Test", index: "يونيكود", }, @@ -1345,9 +1258,8 @@ describe("#collections.create", () => { it("should allow setting sharing to false", async () => { const user = await buildUser(); - const res = await server.post("/api/collections.create", { + const res = await server.post("/api/collections.create", user, { body: { - token: user.getJwtToken(), name: "Test", sharing: false, }, @@ -1360,9 +1272,8 @@ describe("#collections.create", () => { it("should return correct policies with private collection", async () => { const user = await buildUser(); - const res = await server.post("/api/collections.create", { + const res = await server.post("/api/collections.create", user, { body: { - token: user.getJwtToken(), name: "Test", permission: null, }, @@ -1381,15 +1292,13 @@ describe("#collections.create", () => { buildAdmin({ teamId: team.id }), ]); - const resA = await server.post("/api/collections.create", { + const resA = await server.post("/api/collections.create", adminA, { body: { - token: adminA.getJwtToken(), name: "Test A", }, }); - const resB = await server.post("/api/collections.create", { + const resB = await server.post("/api/collections.create", adminB, { body: { - token: adminB.getJwtToken(), name: "Test B", }, }); @@ -1404,9 +1313,9 @@ describe("#collections.create", () => { const user = await buildUser(); const createdCollectionAResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "A", sharing: false, index: "a", @@ -1416,9 +1325,9 @@ describe("#collections.create", () => { await createdCollectionAResponse.json(); const createCollectionResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "C", sharing: false, index: "a", @@ -1435,9 +1344,9 @@ describe("#collections.create", () => { const user = await buildUser(); const createdCollectionAResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "A", sharing: false, index: "a", @@ -1446,9 +1355,9 @@ describe("#collections.create", () => { ); const createdCollectionBResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "B", sharing: false, index: "b", @@ -1459,9 +1368,9 @@ describe("#collections.create", () => { await createdCollectionBResponse.json(); const createCollectionResponse = await server.post( "/api/collections.create", + user, { body: { - token: user.getJwtToken(), name: "C", sharing: false, index: "a", @@ -1493,9 +1402,8 @@ describe("#collections.update", () => { it("should require authorization", async () => { const collection = await buildCollection(); const user = await buildUser(); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", user, { body: { - token: user.getJwtToken(), id: collection.id, name: "Test", }, @@ -1507,9 +1415,8 @@ describe("#collections.update", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, name: "Test", }, @@ -1524,9 +1431,8 @@ describe("#collections.update", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, description: "Test", }, @@ -1545,9 +1451,8 @@ describe("#collections.update", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, data: { content: [ @@ -1570,9 +1475,8 @@ describe("#collections.update", () => { field: "index", direction: "desc", }; - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, sort, }, @@ -1587,9 +1491,8 @@ describe("#collections.update", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, permission: null, }, @@ -1604,9 +1507,8 @@ describe("#collections.update", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, permission: null, name: " Test ", @@ -1633,9 +1535,8 @@ describe("#collections.update", () => { createdById: admin.id, permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, permission: CollectionPermission.ReadWrite, name: "Test", @@ -1662,9 +1563,8 @@ describe("#collections.update", () => { createdById: admin.id, permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, name: "Test", }, @@ -1695,9 +1595,8 @@ describe("#collections.update", () => { createdById: user.id, }, }); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", user, { body: { - token: user.getJwtToken(), id: collection.id, name: "Test", }, @@ -1729,9 +1628,8 @@ describe("#collections.update", () => { }, } ); - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", user, { body: { - token: user.getJwtToken(), id: collection.id, name: "Test", }, @@ -1747,9 +1645,8 @@ describe("#collections.update", () => { field: "blah", direction: "desc", }; - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, sort, }, @@ -1765,9 +1662,8 @@ describe("#collections.update", () => { field: "title", direction: "blah", }; - const res = await server.post("/api/collections.update", { + const res = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, sort, }, @@ -1787,9 +1683,8 @@ describe("#collections.delete", () => { it("should require authorization", async () => { const collection = await buildCollection(); const user = await buildUser(); - const res = await server.post("/api/collections.delete", { + const res = await server.post("/api/collections.delete", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1800,9 +1695,8 @@ describe("#collections.delete", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const collection = await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.delete", { + const res = await server.post("/api/collections.delete", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -1815,9 +1709,8 @@ describe("#collections.delete", () => { const collection = await buildCollection({ teamId: team.id }); await buildCollection({ teamId: team.id }); - const res = await server.post("/api/collections.delete", { + const res = await server.post("/api/collections.delete", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -1840,9 +1733,8 @@ describe("#collections.delete", () => { collectionId: collection.id, archivedAt: new Date(), }); - const res = await server.post("/api/collections.delete", { + const res = await server.post("/api/collections.delete", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -1881,9 +1773,8 @@ describe("#collections.delete", () => { createdById: user.id, }, }); - const res = await server.post("/api/collections.delete", { + const res = await server.post("/api/collections.delete", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -1907,9 +1798,8 @@ describe("#collections.archive", () => { await collection.reload(); expect(collection.documentStructure).not.toBe(null); expect(document.archivedAt).toBe(null); - const res = await server.post("/api/collections.archive", { + const res = await server.post("/api/collections.archive", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -1941,9 +1831,8 @@ describe("#collections.restore", () => { // reload to ensure documentStructure is set await collection.reload(); expect(collection.documentStructure).not.toBe(null); - const archiveRes = await server.post("/api/collections.archive", { + const archiveRes = await server.post("/api/collections.archive", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -1953,9 +1842,8 @@ describe("#collections.restore", () => { ]); expect(archiveRes.status).toEqual(200); expect(archiveBody.data.archivedAt).not.toBe(null); - const res = await server.post("/api/collections.restore", { + const res = await server.post("/api/collections.restore", admin, { body: { - token: admin.getJwtToken(), id: collection.id, }, }); @@ -1982,9 +1870,8 @@ describe("#collections.restore", () => { expect(collection.index).toEqual("P"); expect(archivedCollection.index).toEqual("P"); - const res = await server.post("/api/collections.restore", { + const res = await server.post("/api/collections.restore", admin, { body: { - token: admin.getJwtToken(), id: archivedCollection.id, }, }); diff --git a/server/routes/api/comments/comments.test.ts b/server/routes/api/comments/comments.test.ts index 692cb17b76..2c8076a7ac 100644 --- a/server/routes/api/comments/comments.test.ts +++ b/server/routes/api/comments/comments.test.ts @@ -36,9 +36,8 @@ describe("#comments.info", () => { userId: user2.id, documentId: document.id, }); - const res = await server.post("/api/comments.info", { + const res = await server.post("/api/comments.info", user, { body: { - token: user.getJwtToken(), id: comment.id, }, }); @@ -65,9 +64,8 @@ describe("#comments.info", () => { userId: user2.id, documentId: document.id, }); - const res = await server.post("/api/comments.info", { + const res = await server.post("/api/comments.info", user, { body: { - token: user.getJwtToken(), id: comment.id, }, }); @@ -111,9 +109,8 @@ describe("#comments.info", () => { } as ProsemirrorData; await document.update({ content }); - const res = await server.post("/api/comments.info", { + const res = await server.post("/api/comments.info", user, { body: { - token: user.getJwtToken(), id: comment.id, includeAnchorText: true, }, @@ -154,9 +151,8 @@ describe("#comments.info", () => { } as ProsemirrorData; await document.update({ content }); - const res = await server.post("/api/comments.info", { + const res = await server.post("/api/comments.info", user, { body: { - token: user.getJwtToken(), id: comment.id, includeAnchorText: true, }, @@ -194,9 +190,8 @@ describe("#comments.list", () => { documentId: document.id, createdAt: new Date(), }); - const res = await server.post("/api/comments.list", { + const res = await server.post("/api/comments.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -244,9 +239,8 @@ describe("#comments.list", () => { } as ProsemirrorData; await document.update({ content }); - const res = await server.post("/api/comments.list", { + const res = await server.post("/api/comments.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, includeAnchorText: true, sort: "createdAt", @@ -279,9 +273,8 @@ describe("#comments.list", () => { userId: user.id, documentId: document.id, }); - const res = await server.post("/api/comments.list", { + const res = await server.post("/api/comments.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); @@ -311,9 +304,8 @@ describe("#comments.list", () => { documentId: document.id, parentCommentId: comment.id, }); - const res = await server.post("/api/comments.list", { + const res = await server.post("/api/comments.list", user, { body: { - token: user.getJwtToken(), parentCommentId: comment.id, }, }); @@ -342,9 +334,8 @@ describe("#comments.list", () => { userId: user.id, documentId: document.id, }); - const res = await server.post("/api/comments.list", { + const res = await server.post("/api/comments.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, statusFilter: [CommentStatusFilter.Resolved], }, @@ -390,11 +381,7 @@ describe("#comments.list", () => { userId: user.id, documentId: document2.id, }); - const res = await server.post("/api/comments.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/comments.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -425,9 +412,8 @@ describe("#comments.list", () => { reactions, }); - const res = await server.post("/api/comments.list", { + const res = await server.post("/api/comments.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -464,9 +450,8 @@ describe("#comments.create", () => { documentId: document.id, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: comment.data, }, @@ -491,9 +476,8 @@ describe("#comments.create", () => { const text = "test\n\n- list item 1\n- list item 2"; - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, text, }, @@ -515,17 +499,15 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: null, }, }); - const anotherRes = await server.post("/api/comments.create", { + const anotherRes = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "doc", @@ -546,9 +528,8 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "doc", @@ -573,9 +554,8 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "doc", @@ -608,9 +588,8 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "doc", @@ -643,9 +622,8 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "nonsense", @@ -664,9 +642,8 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "doc", @@ -692,9 +669,8 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "doc", @@ -730,9 +706,8 @@ describe("#comments.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/comments.create", { + const res = await server.post("/api/comments.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, data: { type: "doc", @@ -796,9 +771,8 @@ describe("#comments.update", () => { documentId: document.id, }); - const res = await server.post("/api/comments.update", { + const res = await server.post("/api/comments.update", user, { body: { - token: user.getJwtToken(), id: comment.id, data: comment.data, }, @@ -825,9 +799,8 @@ describe("#comments.update", () => { documentId: document.id, }); - const res = await server.post("/api/comments.update", { + const res = await server.post("/api/comments.update", user, { body: { - token: user.getJwtToken(), id: comment.id, data: { type: "doc", @@ -867,9 +840,8 @@ describe("#comments.resolve", () => { documentId: document.id, }); - const res = await server.post("/api/comments.resolve", { + const res = await server.post("/api/comments.resolve", user, { body: { - token: user.getJwtToken(), id: comment.id, }, }); @@ -907,9 +879,8 @@ describe("#comments.resolve", () => { parentCommentId: parentComment.id, }); - const res = await server.post("/api/comments.resolve", { + const res = await server.post("/api/comments.resolve", user, { body: { - token: user.getJwtToken(), id: comment.id, }, }); @@ -938,9 +909,8 @@ describe("#comments.unresolve", () => { documentId: document.id, }); - const res = await server.post("/api/comments.unresolve", { + const res = await server.post("/api/comments.unresolve", user, { body: { - token: user.getJwtToken(), id: comment.id, }, }); @@ -980,9 +950,8 @@ describe("#comments.add_reaction", () => { documentId: document.id, }); - const res = await server.post("/api/comments.add_reaction", { + const res = await server.post("/api/comments.add_reaction", user, { body: { - token: user.getJwtToken(), id: comment.id, emoji: "😄", }, @@ -1016,9 +985,8 @@ describe("#comments.add_reaction", () => { reactions: [{ emoji: "😄", userIds: ["test-user"] }], }); - const res = await server.post("/api/comments.add_reaction", { + const res = await server.post("/api/comments.add_reaction", user, { body: { - token: user.getJwtToken(), id: comment.id, emoji: "😄", }, @@ -1055,9 +1023,8 @@ describe("#comments.add_reaction", () => { createdById: user.id, }); - const res = await server.post("/api/comments.add_reaction", { + const res = await server.post("/api/comments.add_reaction", user, { body: { - token: user.getJwtToken(), id: comment.id, emoji: emoji.id, }, @@ -1094,9 +1061,8 @@ describe("#comments.add_reaction", () => { teamId: otherTeam.id, }); - const res = await server.post("/api/comments.add_reaction", { + const res = await server.post("/api/comments.add_reaction", user, { body: { - token: user.getJwtToken(), id: comment.id, emoji: emoji.id, }, @@ -1134,9 +1100,8 @@ describe("#comments.remove_reaction", () => { { hooks: false } ); - const res = await server.post("/api/comments.remove_reaction", { + const res = await server.post("/api/comments.remove_reaction", user, { body: { - token: user.getJwtToken(), id: comment.id, emoji: "😄", }, @@ -1176,9 +1141,8 @@ describe("#comments.remove_reaction", () => { { hooks: false } ); - const res = await server.post("/api/comments.remove_reaction", { + const res = await server.post("/api/comments.remove_reaction", user, { body: { - token: user.getJwtToken(), id: comment.id, emoji: "😄", }, diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index 1e06fe1b24..1c35680930 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -63,9 +63,8 @@ describe("#documents.info", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -80,9 +79,8 @@ describe("#documents.info", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), id: document.urlId, }, }); @@ -98,9 +96,8 @@ describe("#documents.info", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -118,9 +115,8 @@ describe("#documents.info", () => { const document = await buildDocument({ collectionId: collection.id, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -133,9 +129,8 @@ describe("#documents.info", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -179,16 +174,14 @@ describe("#documents.info", () => { teamId: user.teamId, userId: user.id, }); - await server.post("/api/collections.delete", { + await server.post("/api/collections.delete", user, { body: { id: collection.id, - token: user.getJwtToken(), }, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user2, { body: { id: doc.id, - token: user2.getJwtToken(), }, }); expect(res.status).toEqual(403); @@ -206,16 +199,14 @@ describe("#documents.info", () => { teamId: user.teamId, userId: user.id, }); - await server.post("/api/collections.delete", { + await server.post("/api/collections.delete", user, { body: { id: collection.id, - token: user.getJwtToken(), }, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { id: doc.id, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -405,9 +396,8 @@ describe("#documents.info", () => { teamId: document.teamId, userId: user.id, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), shareId: share.id, }, }); @@ -430,9 +420,8 @@ describe("#documents.info", () => { teamId: document.teamId, userId: user.id, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), shareId: share.id, }, }); @@ -460,9 +449,8 @@ describe("#documents.info", () => { teamId: document.teamId, userId: user.id, }); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), shareId: share.id, }, }); @@ -473,9 +461,8 @@ describe("#documents.info", () => { it("should not error if document doesn't exist", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), id: "9bcbf864-1090-4eb6-ba05-4da0c3a5c58e", }, }); @@ -495,9 +482,8 @@ describe("#documents.info", () => { it("should require authorization with incorrect token", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/documents.info", { + const res = await server.post("/api/documents.info", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -523,9 +509,8 @@ describe("#documents.export", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.export", { + const res = await server.post("/api/documents.export", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -540,9 +525,8 @@ describe("#documents.export", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.export", { + const res = await server.post("/api/documents.export", user, { body: { - token: user.getJwtToken(), id: document.id, }, headers: { @@ -560,9 +544,8 @@ describe("#documents.export", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.export", { + const res = await server.post("/api/documents.export", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -580,9 +563,8 @@ describe("#documents.export", () => { const document = await buildDocument({ collectionId: collection.id, }); - const res = await server.post("/api/documents.export", { + const res = await server.post("/api/documents.export", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -595,9 +577,8 @@ describe("#documents.export", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.export", { + const res = await server.post("/api/documents.export", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -619,9 +600,8 @@ describe("#documents.export", () => { it("should require authorization with incorrect token", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/documents.export", { + const res = await server.post("/api/documents.export", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -632,9 +612,8 @@ describe("#documents.export", () => { describe("#documents.list", () => { it("should fail for invalid userId", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), userId: "invalid", }, }); @@ -645,9 +624,8 @@ describe("#documents.list", () => { it("should fail for invalid collectionId", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), collectionId: "invalid", }, }); @@ -658,9 +636,8 @@ describe("#documents.list", () => { it("should fail for invalid parentDocumentId", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), parentDocumentId: "invalid", }, }); @@ -671,9 +648,8 @@ describe("#documents.list", () => { it("should fail for invalid backlinkDocumentId", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), backlinkDocumentId: "invalid", }, }); @@ -688,11 +664,7 @@ describe("#documents.list", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -712,9 +684,8 @@ describe("#documents.list", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), parentDocumentId: null, }, }); @@ -730,11 +701,7 @@ describe("#documents.list", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -748,11 +715,7 @@ describe("#documents.list", () => { }); document.archivedAt = new Date(); await document.save(); - const res = await server.post("/api/documents.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -781,9 +744,8 @@ describe("#documents.list", () => { }), ]); await withAPIContext(user, (ctx) => docs[0].archiveWithCtx(ctx)); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), statusFilter: [StatusFilter.Archived], collectionId: collection.id, }, @@ -825,9 +787,8 @@ describe("#documents.list", () => { withAPIContext(user, (ctx) => docs[0].archiveWithCtx(ctx)), withAPIContext(user, (ctx) => docs[1].archiveWithCtx(ctx)), ]); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), statusFilter: [StatusFilter.Archived], }, }); @@ -852,11 +813,7 @@ describe("#documents.list", () => { teamId: team.id, }); - const res = await server.post("/api/documents.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -874,9 +831,8 @@ describe("#documents.list", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), direction: "ASC", }, }); @@ -906,9 +862,8 @@ describe("#documents.list", () => { }); await collection.reload(); await collection.addDocumentToStructure(anotherDoc, 0); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, sort: "index", direction: "ASC", @@ -945,9 +900,8 @@ describe("#documents.list", () => { const expectedOrder = documents.slice().reverse(); // First page (offset=0, limit=10) - const res1 = await server.post("/api/documents.list", { + const res1 = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, sort: "index", direction: "ASC", @@ -962,9 +916,8 @@ describe("#documents.list", () => { expect(body1.data[9].id).toEqual(expectedOrder[9].id); // Second page (offset=10, limit=10) - this tests the bug fix - const res2 = await server.post("/api/documents.list", { + const res2 = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, sort: "index", direction: "ASC", @@ -979,9 +932,8 @@ describe("#documents.list", () => { expect(body2.data[9].id).toEqual(expectedOrder[19].id); // Third page (offset=20, limit=10) - const res3 = await server.post("/api/documents.list", { + const res3 = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, sort: "index", direction: "ASC", @@ -1002,9 +954,8 @@ describe("#documents.list", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), collectionId: document.collectionId, }, }); @@ -1038,9 +989,8 @@ describe("#documents.list", () => { }, } ); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); @@ -1067,9 +1017,8 @@ describe("#documents.list", () => { documentId: document.id, userId: user.id, }); - const res = await server.post("/api/documents.list", { + const res = await server.post("/api/documents.list", user, { body: { - token: user.getJwtToken(), backlinkDocumentId: document.id, }, }); @@ -1094,9 +1043,8 @@ describe("#documents.drafts", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.drafts", { + const res = await server.post("/api/documents.drafts", user, { body: { - token: user.getJwtToken(), collectionId: "invalid", }, }); @@ -1111,9 +1059,8 @@ describe("#documents.drafts", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.drafts", { + const res = await server.post("/api/documents.drafts", user, { body: { - token: user.getJwtToken(), dateFilter: "invalid", }, }); @@ -1128,11 +1075,7 @@ describe("#documents.drafts", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.drafts", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.drafts", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -1154,11 +1097,7 @@ describe("#documents.drafts", () => { }); drafts.push(draftDocument); - const res = await server.post("/api/documents.drafts", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.drafts", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(drafts.length); @@ -1176,11 +1115,7 @@ describe("#documents.drafts", () => { teamId: user.teamId, }); - const res = await server.post("/api/documents.drafts", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.drafts", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -1209,16 +1144,14 @@ describe("#documents.search_titles", () => { teamId: user.teamId, }); // add member to the document - await server.post("/api/documents.add_user", { + await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", member, { body: { - token: member.getJwtToken(), query: "title", statusFilter: [StatusFilter.Draft], }, @@ -1248,16 +1181,14 @@ describe("#documents.search_titles", () => { teamId: user.teamId, }); // add member to the document - await server.post("/api/documents.add_user", { + await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", member, { body: { - token: member.getJwtToken(), query: "title", }, }); @@ -1269,11 +1200,7 @@ describe("#documents.search_titles", () => { it("should fail without query", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.search_titles", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.search_titles", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -1288,9 +1215,8 @@ describe("#documents.search_titles", () => { teamId: user.teamId, title: "Super secret", }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", user, { body: { - token: user.getJwtToken(), query: "SECRET", }, }); @@ -1309,9 +1235,8 @@ describe("#documents.search_titles", () => { createdAt: subDays(new Date(), 365), updatedAt: subDays(new Date(), 365), }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", user, { body: { - token: user.getJwtToken(), query: "SECRET", dateFilter: "day", }, @@ -1329,9 +1254,8 @@ describe("#documents.search_titles", () => { title: "Super secret", archivedAt: new Date(), }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", user, { body: { - token: user.getJwtToken(), query: "SECRET", statusFilter: [StatusFilter.Archived], }, @@ -1349,9 +1273,8 @@ describe("#documents.search_titles", () => { teamId: user.teamId, title: "Super secret", }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", user, { body: { - token: user.getJwtToken(), query: "SECRET", statusFilter: [StatusFilter.Draft], }, @@ -1369,9 +1292,8 @@ describe("#documents.search_titles", () => { teamId: user.teamId, title: "Super secret", }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", user, { body: { - token: user.getJwtToken(), query: "SECRET", userId: user.id, }, @@ -1396,9 +1318,8 @@ describe("#documents.search_titles", () => { title: "Super secret", deletedAt: new Date(), }); - const res = await server.post("/api/documents.search_titles", { + const res = await server.post("/api/documents.search_titles", user, { body: { - token: user.getJwtToken(), query: "SECRET", statusFilter: [StatusFilter.Published, StatusFilter.Draft], }, @@ -1422,9 +1343,8 @@ describe("#documents.search", () => { teamId: user.teamId, title: "Much test support", }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "much", }, }); @@ -1486,9 +1406,8 @@ describe("#documents.search", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), shareId: share.id, statusFilter: [StatusFilter.Draft], query: "test", @@ -1542,9 +1461,8 @@ describe("#documents.search", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", }, }); @@ -1575,9 +1493,8 @@ describe("#documents.search", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: `search -random`, }, }); @@ -1601,9 +1518,8 @@ describe("#documents.search", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: `"search term"`, }, }); @@ -1623,9 +1539,8 @@ describe("#documents.search", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", statusFilter: [StatusFilter.Published, StatusFilter.Archived], }, @@ -1637,9 +1552,8 @@ describe("#documents.search", () => { it("should not error when search term is very long", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much much longer search term", }, @@ -1658,9 +1572,8 @@ describe("#documents.search", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", statusFilter: [StatusFilter.Draft], }, @@ -1680,9 +1593,8 @@ describe("#documents.search", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), statusFilter: [StatusFilter.Draft], query: "text", }, @@ -1700,9 +1612,8 @@ describe("#documents.search", () => { publishedAt: null, teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", statusFilter: [StatusFilter.Draft], }, @@ -1720,9 +1631,8 @@ describe("#documents.search", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", statusFilter: [StatusFilter.Published, StatusFilter.Draft], }, @@ -1740,9 +1650,8 @@ describe("#documents.search", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", statusFilter: [StatusFilter.Archived], }, @@ -1767,9 +1676,8 @@ describe("#documents.search", () => { text: "search term", teamId: user.teamId, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", userId: user.id, }, @@ -1799,9 +1707,8 @@ describe("#documents.search", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", collectionId: collection.id, }, @@ -1827,9 +1734,8 @@ describe("#documents.search", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", collectionId: document.collectionId, }, @@ -1853,9 +1759,8 @@ describe("#documents.search", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", }, }); @@ -1866,9 +1771,8 @@ describe("#documents.search", () => { it("should not allow unknown dateFilter values", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "search term", dateFilter: "DROP TABLE students;", }, @@ -1889,9 +1793,8 @@ describe("#documents.search", () => { it("should save search term, hits and source", async () => { const user = await buildUser(); - await server.post("/api/documents.search", { + await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), query: "my term", }, }); @@ -1926,16 +1829,14 @@ describe("#documents.search", () => { teamId: user.teamId, }); // add member to the document - await server.post("/api/documents.add_user", { + await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", member, { body: { - token: member.getJwtToken(), query: "title", }, }); @@ -1966,16 +1867,14 @@ describe("#documents.search", () => { teamId: user.teamId, }); // add member to the document - await server.post("/api/documents.add_user", { + await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, }); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", member, { body: { - token: member.getJwtToken(), query: "title", statusFilter: [StatusFilter.Draft], }, @@ -2024,9 +1923,8 @@ describe("#documents.search", () => { title: "document 2 in collection 2", }), ]); - const res = await server.post("/api/documents.search", { + const res = await server.post("/api/documents.search", user, { body: { - token: user.getJwtToken(), collectionId: collection1.id, }, }); @@ -2044,11 +1942,7 @@ describe("#documents.search", () => { describe("#documents.templatize", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.templatize", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.templatize", user); const body = await res.json(); expect(res.status).toBe(400); expect(body.message).toBe("id: Must be a valid UUID or slug"); @@ -2059,9 +1953,8 @@ describe("#documents.templatize", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -2082,9 +1975,8 @@ describe("#documents.templatize", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, publish: true, @@ -2106,9 +1998,8 @@ describe("#documents.templatize", () => { teamId: admin.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", admin, { body: { - token: admin.getJwtToken(), id: document.id, publish: true, }, @@ -2129,9 +2020,8 @@ describe("#documents.templatize", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, publish: false, @@ -2153,9 +2043,8 @@ describe("#documents.templatize", () => { teamId: admin.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", admin, { body: { - token: admin.getJwtToken(), id: document.id, publish: false, }, @@ -2180,9 +2069,8 @@ describe("#documents.templatize", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: anotherCollection.id, publish: true, @@ -2204,9 +2092,8 @@ describe("#documents.templatize", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", user, { body: { - token: user.getJwtToken(), id: document.id, publish: true, }, @@ -2232,9 +2119,8 @@ describe("#documents.templatize", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.templatize", { + const res = await server.post("/api/documents.templatize", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, publish: true, @@ -2275,9 +2161,8 @@ describe("#documents.archived", () => { ), ]); - const res = await server.post("/api/documents.archived", { + const res = await server.post("/api/documents.archived", user, { body: { - token: user.getJwtToken(), collectionId: firstCollection.id, }, }); @@ -2318,11 +2203,7 @@ describe("#documents.archived", () => { ), ]); - const res = await server.post("/api/documents.archived", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.archived", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -2335,11 +2216,7 @@ describe("#documents.archived", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.archived", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.archived", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -2352,11 +2229,7 @@ describe("#documents.archived", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); - const res = await server.post("/api/documents.archived", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.archived", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -2372,11 +2245,7 @@ describe("#documents.archived", () => { collectionId: collection.id, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.archived", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.archived", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -2384,11 +2253,7 @@ describe("#documents.archived", () => { it("should require member", async () => { const viewer = await buildViewer(); - const res = await server.post("/api/documents.archived", { - body: { - token: viewer.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.archived", viewer); expect(res.status).toEqual(403); }); @@ -2406,11 +2271,7 @@ describe("#documents.deleted", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); - const res = await server.post("/api/documents.deleted", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.deleted", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -2441,11 +2302,7 @@ describe("#documents.deleted", () => { withAPIContext(user, (ctx) => draftDocument.destroyWithCtx(ctx)), withAPIContext(user2, (ctx) => otherUserDraft.destroyWithCtx(ctx)), ]); - const res = await server.post("/api/documents.deleted", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.deleted", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(2); @@ -2461,11 +2318,7 @@ describe("#documents.deleted", () => { teamId: admin.teamId, }); await withAPIContext(admin, (ctx) => document.destroyWithCtx(ctx)); - const res = await server.post("/api/documents.deleted", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.deleted", admin); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -2484,11 +2337,7 @@ describe("#documents.deleted", () => { collectionId: collection.id, }); await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); - const res = await server.post("/api/documents.deleted", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.deleted", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -2496,11 +2345,7 @@ describe("#documents.deleted", () => { it("should require member", async () => { const viewer = await buildViewer(); - const res = await server.post("/api/documents.deleted", { - body: { - token: viewer.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.deleted", viewer); expect(res.status).toEqual(403); }); @@ -2513,11 +2358,7 @@ describe("#documents.deleted", () => { describe("#documents.viewed", () => { it("should return empty result if no views", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.viewed", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.viewed", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -2533,11 +2374,7 @@ describe("#documents.viewed", () => { documentId: document.id, userId: user.id, }); - const res = await server.post("/api/documents.viewed", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.viewed", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -2556,11 +2393,7 @@ describe("#documents.viewed", () => { userId: user.id, }); await document.destroy(); - const res = await server.post("/api/documents.viewed", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.viewed", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -2588,11 +2421,7 @@ describe("#documents.viewed", () => { collectionId: collection.id, }, }); - const res = await server.post("/api/documents.viewed", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.viewed", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -2613,12 +2442,11 @@ describe("#documents.move", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { id: document.id, collectionId: document.collectionId, parentDocumentId: document.id, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -2645,12 +2473,11 @@ describe("#documents.move", () => { collectionId: document.collectionId, parentDocumentId: document.id, }); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { id: document.id, collectionId: document.collectionId, parentDocumentId: childDocument.id, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -2676,12 +2503,11 @@ describe("#documents.move", () => { teamId: document.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { id: document.id, collectionId: collection.id, parentDocumentId: draft.id, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -2691,11 +2517,7 @@ describe("#documents.move", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.move", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.move", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -2712,9 +2534,8 @@ describe("#documents.move", () => { collectionId: collection.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, index: -1, @@ -2736,9 +2557,8 @@ describe("#documents.move", () => { collectionId: collection.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, index: 0, @@ -2758,9 +2578,8 @@ describe("#documents.move", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -2778,9 +2597,8 @@ describe("#documents.move", () => { teamId: user.teamId, }); const collection = await buildCollection(); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -2803,9 +2621,8 @@ describe("#documents.move", () => { collectionId: collection.id, }); const user = await buildUser(); - const res = await server.post("/api/documents.move", { + const res = await server.post("/api/documents.move", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -2827,18 +2644,16 @@ describe("#documents.restore", () => { collectionId: collection.id, }); - const archiveRes = await server.post("/api/collections.archive", { + const archiveRes = await server.post("/api/collections.archive", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); expect(archiveRes.status).toEqual(200); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -2862,9 +2677,8 @@ describe("#documents.restore", () => { collectionId: collection.id, }); - const archiveRes = await server.post("/api/collections.archive", { + const archiveRes = await server.post("/api/collections.archive", user, { body: { - token: user.getJwtToken(), id: collection.id, }, }); @@ -2873,9 +2687,8 @@ describe("#documents.restore", () => { const anotherCollection = await buildCollection(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: anotherCollection.id, }, @@ -2891,11 +2704,7 @@ describe("#documents.restore", () => { teamId: user.teamId, }); await document.destroy(); - const res = await server.post("/api/documents.restore", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.restore", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -2908,9 +2717,8 @@ describe("#documents.restore", () => { teamId: user.teamId, }); await document.destroy(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: "invalid", }, @@ -2933,9 +2741,8 @@ describe("#documents.restore", () => { }); await document.destroy(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -2959,9 +2766,8 @@ describe("#documents.restore", () => { }); await document.destroy(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -2987,9 +2793,8 @@ describe("#documents.restore", () => { }); await document.destroy(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -3005,9 +2810,8 @@ describe("#documents.restore", () => { teamId: user.teamId, }); await document.destroy(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -3027,9 +2831,8 @@ describe("#documents.restore", () => { teamId: user.teamId, }); await document.destroy(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -3059,9 +2862,8 @@ describe("#documents.restore", () => { await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); await collection.destroy({ hooks: false }); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: anotherCollection.id, }, @@ -3089,9 +2891,8 @@ describe("#documents.restore", () => { await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); await collection.destroy({ hooks: false }); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -3118,9 +2919,8 @@ describe("#documents.restore", () => { collection.archivedAt = new Date(); await collection.save(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -3142,9 +2942,8 @@ describe("#documents.restore", () => { collectionId: collection.id, }); await document.destroy(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, }, @@ -3159,9 +2958,8 @@ describe("#documents.restore", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -3184,9 +2982,8 @@ describe("#documents.restore", () => { }); await withAPIContext(user, (ctx) => childDocument.archiveWithCtx(ctx)); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: childDocument.id, }, }); @@ -3213,9 +3010,8 @@ describe("#documents.restore", () => { document.content = parser.parse("updated")?.toJSON(); await document.save(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, revisionId, }, @@ -3240,9 +3036,8 @@ describe("#documents.restore", () => { anotherDoc ); const revisionId = revision.id; - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, revisionId, }, @@ -3252,9 +3047,8 @@ describe("#documents.restore", () => { it("should not error if document doesn't exist", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: "76fe8ba4-4e6a-4a75-8a10-9bf57330b24c", }, }); @@ -3280,9 +3074,8 @@ describe("#documents.restore", () => { ); const revisionId = revision.id; const user = await buildUser(); - const res = await server.post("/api/documents.restore", { + const res = await server.post("/api/documents.restore", user, { body: { - token: user.getJwtToken(), id: document.id, revisionId, }, @@ -3294,11 +3087,7 @@ describe("#documents.restore", () => { describe("#documents.import", () => { it("should require collectionId or parentDocumentId", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.import", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.import", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -3312,9 +3101,8 @@ describe("#documents.import", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.import", { + const res = await server.post("/api/documents.import", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); @@ -3355,7 +3143,7 @@ describe("#documents.import", () => { ); const form = new FormData(); form.append("file", content, "markdown.md"); - form.append("token", user.getJwtToken()); + form.append("token", user.getSessionToken()); form.append("collectionId", collection.id); const res = await server.post("/api/documents.import", { @@ -3390,9 +3178,8 @@ describe("#documents.create", () => { title: "template title", text, }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), templateId: template.id, }, }); @@ -3408,9 +3195,8 @@ describe("#documents.create", () => { it("should create a document with empty title if no title is explicitly passed", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), text: "hello", }, }); @@ -3426,9 +3212,8 @@ describe("#documents.create", () => { teamId: user.teamId, title: "template title", }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), templateId: template.id, }, }); @@ -3444,9 +3229,8 @@ describe("#documents.create", () => { teamId: user.teamId, title: "template title", }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), templateId: template.id, title: "doc title", }, @@ -3463,9 +3247,8 @@ describe("#documents.create", () => { teamId: user.teamId, text: "template text", }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), templateId: template.id, text: "doc text", }, @@ -3477,9 +3260,8 @@ describe("#documents.create", () => { it("should fail for invalid collectionId", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), collectionId: "invalid", title: "new document", text: "hello", @@ -3492,9 +3274,8 @@ describe("#documents.create", () => { it("should succeed if collectionId is null", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), collectionId: null, title: "new document", text: "hello", @@ -3506,9 +3287,8 @@ describe("#documents.create", () => { it("should succeed with specific createdAt date in the past", async () => { const user = await buildUser(); const createdAt = new Date().toISOString(); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), collectionId: null, title: "new document", createdAt, @@ -3523,9 +3303,8 @@ describe("#documents.create", () => { it("should fail with createdAt date in the future", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), collectionId: null, title: "new document", createdAt: addMinutes(new Date(), 1).toISOString(), @@ -3538,9 +3317,8 @@ describe("#documents.create", () => { it("should fail for invalid parentDocumentId", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), parentDocumentId: "invalid", title: "new document", text: "hello", @@ -3558,9 +3336,8 @@ describe("#documents.create", () => { userId: user.id, teamId: team.id, }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, icon: "🚢", title: "new document", @@ -3580,9 +3357,8 @@ describe("#documents.create", () => { it("should create a draft document not belonging to any collection", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), title: "draft document", text: "draft document without collection", }, @@ -3598,10 +3374,9 @@ describe("#documents.create", () => { it("should allow creating a draft template without a collection", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { template: true, - token: user.getJwtToken(), title: "template", text: "template without collection", }, @@ -3616,9 +3391,8 @@ describe("#documents.create", () => { it("should not allow publishing without specifying the collection", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), title: "title", text: "text", publish: true, @@ -3639,9 +3413,8 @@ describe("#documents.create", () => { userId: user.id, teamId: team.id, }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, title: "This is a really long title that is not acceptable to Outline because it is so ridiculously long that we need to have a limit somewhere", @@ -3663,9 +3436,8 @@ describe("#documents.create", () => { userId: user.id, teamId: team.id, }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, title: "This text would be exactly 100 chars long if the following unicode character was counted as 1 char 🛡", @@ -3687,9 +3459,8 @@ describe("#documents.create", () => { collectionId: collection.id, teamId: team.id, }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), parentDocumentId: document.id, title: "new document", text: "hello", @@ -3705,9 +3476,8 @@ describe("#documents.create", () => { it("should error with invalid parentDocument", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), parentDocumentId: "d7a4eb73-fac1-4028-af45-d7e34d54db8e", title: "new document", text: "hello", @@ -3730,9 +3500,8 @@ describe("#documents.create", () => { collectionId: collection.id, teamId: team.id, }); - const res = await server.post("/api/documents.create", { + const res = await server.post("/api/documents.create", user, { body: { - token: user.getJwtToken(), parentDocumentId: document.id, title: "new document", text: "hello", @@ -3753,9 +3522,8 @@ describe("#documents.update", () => { teamId: user.teamId, icon: "library", }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated title", text: "Updated text", @@ -3784,9 +3552,8 @@ describe("#documents.update", () => { collectionId: null, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated title", text: "Updated text", @@ -3815,9 +3582,8 @@ describe("#documents.update", () => { userId: user.id, collectionId: null, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated title", text: "Updated text", @@ -3847,9 +3613,8 @@ describe("#documents.update", () => { const anotherTeam = await buildTeam(); user.teamId = anotherTeam.id; await user.save(); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated title", text: "Updated text", @@ -3867,9 +3632,8 @@ describe("#documents.update", () => { teamId: user.teamId, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, icon: ":)", }, @@ -3886,9 +3650,8 @@ describe("#documents.update", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, icon: "beaker", color: "#FFDDEE", @@ -3908,9 +3671,8 @@ describe("#documents.update", () => { icon: "beaker", color: "#FFDDEE", }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, icon: null, color: null, @@ -3945,9 +3707,8 @@ describe("#documents.update", () => { }, } ); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, collectionId: collection.id, title: "Updated title", @@ -3974,9 +3735,8 @@ describe("#documents.update", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated title", text: "Updated text", @@ -4014,9 +3774,8 @@ describe("#documents.update", () => { }, ]; await collection.save(); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated title", }, @@ -4052,9 +3811,8 @@ describe("#documents.update", () => { }, } ); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Changed text", }, @@ -4091,9 +3849,8 @@ describe("#documents.update", () => { }, } ); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, text: "Changed text", }, @@ -4121,9 +3878,8 @@ describe("#documents.update", () => { collectionId: collection.id, }, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, text: "Changed text", }, @@ -4137,9 +3893,8 @@ describe("#documents.update", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, text: "Additional text", append: true, @@ -4157,9 +3912,8 @@ describe("#documents.update", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated Title", append: true, @@ -4176,9 +3930,8 @@ describe("#documents.update", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: "Updated Title", text: "", @@ -4195,9 +3948,8 @@ describe("#documents.update", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, title: document.title, }, @@ -4227,9 +3979,8 @@ describe("#documents.update", () => { it("should require authorization", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, text: "Updated", }, @@ -4240,9 +3991,8 @@ describe("#documents.update", () => { it("should fail for invalid collectionId", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), id: document.id, text: "Updated", collectionId: "invalid", @@ -4255,9 +4005,8 @@ describe("#documents.update", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.update", { + const res = await server.post("/api/documents.update", user, { body: { - token: user.getJwtToken(), text: "Updated", }, }); @@ -4270,11 +4019,7 @@ describe("#documents.update", () => { describe("#documents.archive", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.archive", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.archive", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -4292,9 +4037,8 @@ describe("#documents.archive", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.archive", { + const res = await server.post("/api/documents.archive", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4318,11 +4062,7 @@ describe("#documents.archive", () => { describe("#documents.delete", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.delete", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.delete", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -4334,9 +4074,8 @@ describe("#documents.delete", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.delete", { + const res = await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4352,9 +4091,8 @@ describe("#documents.delete", () => { userId: user.id, deletedAt: null, }); - const res = await server.post("/api/documents.delete", { + const res = await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4379,9 +4117,8 @@ describe("#documents.delete", () => { userId: anotherUser.id, collectionId: null, }); - const res = await server.post("/api/documents.delete", { + const res = await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4403,9 +4140,8 @@ describe("#documents.delete", () => { publishedAt: null, }); - const res = await server.post("/api/documents.delete", { + const res = await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4424,15 +4160,13 @@ describe("#documents.delete", () => { userId: user.id, teamId: user.teamId, }); - await server.post("/api/documents.delete", { + await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); - const res = await server.post("/api/documents.delete", { + const res = await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, permanent: true, }, @@ -4449,15 +4183,13 @@ describe("#documents.delete", () => { userId: user.id, teamId: team.id, }); - await server.post("/api/documents.delete", { + await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); - const res = await server.post("/api/documents.delete", { + const res = await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, permanent: true, }, @@ -4483,9 +4215,8 @@ describe("#documents.delete", () => { await collection.destroy({ hooks: false, }); - const res = await server.post("/api/documents.delete", { + const res = await server.post("/api/documents.delete", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4510,11 +4241,7 @@ describe("#documents.delete", () => { describe("#documents.unpublish", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.unpublish", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.unpublish", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -4526,9 +4253,8 @@ describe("#documents.unpublish", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.unpublish", { + const res = await server.post("/api/documents.unpublish", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4557,9 +4283,8 @@ describe("#documents.unpublish", () => { parentDocumentId: document.id, }); await withAPIContext(user, (ctx) => child.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.unpublish", { + const res = await server.post("/api/documents.unpublish", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4581,9 +4306,8 @@ describe("#documents.unpublish", () => { teamId: user.teamId, collectionId: collection.id, }); - const res = await server.post("/api/documents.unpublish", { + const res = await server.post("/api/documents.unpublish", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4603,9 +4327,8 @@ describe("#documents.unpublish", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/documents.unpublish", { + const res = await server.post("/api/documents.unpublish", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4619,9 +4342,8 @@ describe("#documents.unpublish", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); - const res = await server.post("/api/documents.unpublish", { + const res = await server.post("/api/documents.unpublish", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4635,9 +4357,8 @@ describe("#documents.unpublish", () => { teamId: user.teamId, }); await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); - const res = await server.post("/api/documents.unpublish", { + const res = await server.post("/api/documents.unpublish", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4682,9 +4403,8 @@ describe("#documents.users", () => { }), ]); - const res = await server.post("/api/documents.users", { + const res = await server.post("/api/documents.users", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4741,9 +4461,8 @@ describe("#documents.users", () => { permission: DocumentPermission.ReadWrite, }); - const res = await server.post("/api/documents.users", { + const res = await server.post("/api/documents.users", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -4839,9 +4558,8 @@ describe("#documents.users", () => { }), ]); - const res = await server.post("/api/documents.users", { + const res = await server.post("/api/documents.users", user, { body: { - token: user.getJwtToken(), id: document.id, query: "Al", }, @@ -4853,9 +4571,8 @@ describe("#documents.users", () => { expect(body.data[0].id).toContain(alan.id); expect(body.data[0].name).toBe(alan.name); - const anotherRes = await server.post("/api/documents.users", { + const anotherRes = await server.post("/api/documents.users", user, { body: { - token: user.getJwtToken(), id: document.id, query: "e", }, @@ -4950,9 +4667,8 @@ describe("#documents.users", () => { }), ]); - const res = await server.post("/api/documents.users", { + const res = await server.post("/api/documents.users", user, { body: { - token: user.getJwtToken(), id: document.id, userId: alan.id, }, @@ -4964,9 +4680,8 @@ describe("#documents.users", () => { expect(body.data[0].id).toContain(alan.id); expect(body.data[0].name).toBe(alan.name); - const anotherRes = await server.post("/api/documents.users", { + const anotherRes = await server.post("/api/documents.users", user, { body: { - token: user.getJwtToken(), id: document.id, userId: jamie.id, }, @@ -5035,9 +4750,8 @@ describe("#documents.users", () => { alan.suspendedAt = new Date(); await alan.save(); - const res = await server.post("/api/documents.users", { + const res = await server.post("/api/documents.users", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -5056,11 +4770,7 @@ describe("#documents.users", () => { describe("#documents.add_user", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.add_user", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.add_user", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -5089,9 +4799,8 @@ describe("#documents.add_user", () => { teamId: user.teamId, }); - const res = await server.post("/api/documents.add_user", { + const res = await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: user.id, }, @@ -5116,9 +4825,8 @@ describe("#documents.add_user", () => { }); const member = await buildUser({ teamId: user.teamId }); - const res = await server.post("/api/documents.add_user", { + const res = await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, @@ -5142,11 +4850,7 @@ describe("#documents.add_user", () => { describe("#documents.remove_user", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.remove_user", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.remove_user", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -5168,9 +4872,8 @@ describe("#documents.remove_user", () => { const anotherUser = await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/documents.remove_user", { + const res = await server.post("/api/documents.remove_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: anotherUser.id, }, @@ -5193,18 +4896,16 @@ describe("#documents.remove_user", () => { const member = await buildUser({ teamId: user.teamId, }); - await server.post("/api/documents.add_user", { + await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, }); let users = await document.$get("users"); expect(users.length).toEqual(1); - const res = await server.post("/api/documents.remove_user", { + const res = await server.post("/api/documents.remove_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, @@ -5218,11 +4919,7 @@ describe("#documents.remove_user", () => { describe("#documents.add_group", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.add_group", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.add_group", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -5246,9 +4943,8 @@ describe("#documents.add_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/documents.add_group", { + const res = await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5269,9 +4965,8 @@ describe("#documents.add_group", () => { teamId: user.teamId, }); const group = await buildGroup(); - const res = await server.post("/api/documents.add_group", { + const res = await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5294,9 +4989,8 @@ describe("#documents.add_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/documents.add_group", { + const res = await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5332,9 +5026,8 @@ describe("#documents.add_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/documents.add_group", { + const res = await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, permission: DocumentPermission.Read, @@ -5368,9 +5061,8 @@ describe("#documents.add_group", () => { }); // First add with Read permission - await server.post("/api/documents.add_group", { + await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, permission: DocumentPermission.Read, @@ -5378,9 +5070,8 @@ describe("#documents.add_group", () => { }); // Then update to ReadWrite permission - const res = await server.post("/api/documents.add_group", { + const res = await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, permission: DocumentPermission.ReadWrite, @@ -5411,11 +5102,7 @@ describe("#documents.add_group", () => { describe("#documents.remove_group", () => { it("should require id", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.remove_group", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.remove_group", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -5439,9 +5126,8 @@ describe("#documents.remove_group", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/documents.remove_group", { + const res = await server.post("/api/documents.remove_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5462,9 +5148,8 @@ describe("#documents.remove_group", () => { teamId: user.teamId, }); const group = await buildGroup(); - const res = await server.post("/api/documents.remove_group", { + const res = await server.post("/api/documents.remove_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5489,9 +5174,8 @@ describe("#documents.remove_group", () => { }); // First add the group - await server.post("/api/documents.add_group", { + await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5503,9 +5187,8 @@ describe("#documents.remove_group", () => { expect(groupMemberships.length).toEqual(1); // Then remove the group - const res = await server.post("/api/documents.remove_group", { + const res = await server.post("/api/documents.remove_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5535,9 +5218,8 @@ describe("#documents.remove_group", () => { }); // Try to remove group that was never added - const res = await server.post("/api/documents.remove_group", { + const res = await server.post("/api/documents.remove_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, @@ -5569,24 +5251,21 @@ describe("#documents.memberships", () => { buildUser({ teamId: actor.teamId }), ]); await Promise.all([ - server.post("/api/documents.add_user", { + server.post("/api/documents.add_user", actor, { body: { - token: actor.getJwtToken(), id: document.id, userId: members[0].id, }, }), - server.post("/api/documents.add_user", { + server.post("/api/documents.add_user", actor, { body: { - token: actor.getJwtToken(), id: document.id, userId: members[1].id, }, }), ]); - const res = await server.post("/api/documents.memberships", { + const res = await server.post("/api/documents.memberships", actor, { body: { - token: actor.getJwtToken(), id: document.id, }, }); @@ -5607,26 +5286,23 @@ describe("#documents.memberships", () => { buildUser({ teamId: actor.teamId }), ]); await Promise.all([ - server.post("/api/documents.add_user", { + server.post("/api/documents.add_user", actor, { body: { - token: actor.getJwtToken(), id: document.id, userId: members[0].id, permission: DocumentPermission.ReadWrite, }, }), - server.post("/api/documents.add_user", { + server.post("/api/documents.add_user", actor, { body: { - token: actor.getJwtToken(), id: document.id, userId: members[1].id, permission: DocumentPermission.Read, }, }), ]); - const res = await server.post("/api/documents.memberships", { + const res = await server.post("/api/documents.memberships", actor, { body: { - token: actor.getJwtToken(), id: document.id, permission: DocumentPermission.Read, }, @@ -5652,9 +5328,8 @@ describe("#documents.duplicate", () => { fullWidth: true, }); - const res = await server.post("/api/documents.duplicate", { + const res = await server.post("/api/documents.duplicate", user, { body: { - token: user.getJwtToken(), id: document.id, }, }); @@ -5685,9 +5360,8 @@ describe("#documents.duplicate", () => { fullWidth: true, }); - const res = await server.post("/api/documents.duplicate", { + const res = await server.post("/api/documents.duplicate", user, { body: { - token: user.getJwtToken(), id: parent.id, recursive: true, }, @@ -5710,22 +5384,14 @@ describe("#documents.empty_trash", () => { }); it("should allow admin users", async () => { const user = await buildAdmin(); - const res = await server.post("/api/documents.empty_trash", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.empty_trash", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.success).toEqual(true); }); it("should not allow non-admin users", async () => { const user = await buildUser(); - const res = await server.post("/api/documents.empty_trash", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/documents.empty_trash", user); const body = await res.json(); expect(res.status).toEqual(403); expect(body).toMatchSnapshot(); @@ -5759,9 +5425,8 @@ describe("#documents.documents", () => { title: "Child 2", }); - const res = await server.post("/api/documents.documents", { + const res = await server.post("/api/documents.documents", user, { body: { - token: user.getJwtToken(), id: parent.id, }, }); @@ -5786,9 +5451,8 @@ describe("#documents.documents", () => { teamId: user.teamId, }); - const res = await server.post("/api/documents.documents", { + const res = await server.post("/api/documents.documents", user, { body: { - token: user.getJwtToken(), id: parent.id, }, }); @@ -5807,9 +5471,8 @@ describe("#documents.documents", () => { collectionId: null, }); - const res = await server.post("/api/documents.documents", { + const res = await server.post("/api/documents.documents", user, { body: { - token: user.getJwtToken(), id: doc.id, }, }); @@ -5856,9 +5519,8 @@ describe("#documents.documents", () => { teamId: otherUser.teamId, }); - const res = await server.post("/api/documents.documents", { + const res = await server.post("/api/documents.documents", user, { body: { - token: user.getJwtToken(), id: parent.id, }, }); diff --git a/server/routes/api/emojis/emojis.test.ts b/server/routes/api/emojis/emojis.test.ts index e08a2dcab5..22710f2afa 100644 --- a/server/routes/api/emojis/emojis.test.ts +++ b/server/routes/api/emojis/emojis.test.ts @@ -33,9 +33,8 @@ describe("#emojis.update", () => { userId: user.id, }); - const res = await server.post("/api/emojis.update", { + const res = await server.post("/api/emojis.update", user, { body: { - token: user.getJwtToken(), id: emoji.id, attachmentId: newAttachment.id, }, @@ -69,9 +68,8 @@ describe("#emojis.update", () => { userId: admin.id, }); - const res = await server.post("/api/emojis.update", { + const res = await server.post("/api/emojis.update", admin, { body: { - token: admin.getJwtToken(), id: emoji.id, attachmentId: newAttachment.id, }, @@ -97,9 +95,8 @@ describe("#emojis.update", () => { userId: user.id, }); - const res = await server.post("/api/emojis.update", { + const res = await server.post("/api/emojis.update", user, { body: { - token: user.getJwtToken(), id: emoji.id, attachmentId: newAttachment.id, }, @@ -121,9 +118,8 @@ describe("#emojis.update", () => { userId: user.id, }); - const res = await server.post("/api/emojis.update", { + const res = await server.post("/api/emojis.update", user, { body: { - token: user.getJwtToken(), id: emoji.id, attachmentId: newAttachment.id, }, @@ -139,9 +135,8 @@ describe("#emojis.update", () => { userId: user.id, }); - const res = await server.post("/api/emojis.update", { + const res = await server.post("/api/emojis.update", user, { body: { - token: user.getJwtToken(), id: "00000000-0000-0000-0000-000000000000", attachmentId: newAttachment.id, }, @@ -157,9 +152,8 @@ describe("#emojis.update", () => { createdById: user.id, }); - const res = await server.post("/api/emojis.update", { + const res = await server.post("/api/emojis.update", user, { body: { - token: user.getJwtToken(), id: emoji.id, attachmentId: "00000000-0000-0000-0000-000000000000", }, diff --git a/server/routes/api/events/events.test.ts b/server/routes/api/events/events.test.ts index 82435d6890..fe959be7d1 100644 --- a/server/routes/api/events/events.test.ts +++ b/server/routes/api/events/events.test.ts @@ -37,9 +37,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: admin.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); @@ -76,9 +75,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: admin.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", admin, { body: { - token: admin.getJwtToken(), auditLog: true, }, }); @@ -116,9 +114,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: user.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", admin, { body: { - token: admin.getJwtToken(), auditLog: true, actorId: admin.id, }, @@ -156,9 +153,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: user.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", user, { body: { - token: user.getJwtToken(), actorId: admin.id, }, }); @@ -193,9 +189,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: user.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", user, { body: { - token: user.getJwtToken(), actorId: user.id, collectionId: collection.id, }, @@ -225,9 +220,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: user.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", admin, { body: { - token: admin.getJwtToken(), documentId: document.id, }, }); @@ -256,9 +250,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: user.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", actor, { body: { - token: actor.getJwtToken(), documentId: document.id, }, }); @@ -292,9 +285,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: user.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", user, { body: { - token: user.getJwtToken(), name: "documents.publish", collectionId: collection.id, }, @@ -332,9 +324,8 @@ describe("#events.list", () => { teamId: user.teamId, actorId: user.id, }); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", user, { body: { - token: user.getJwtToken(), events: ["documents.publish"], collectionId: collection.id, }, @@ -366,11 +357,7 @@ describe("#events.list", () => { actorId: user.id, }); await user.destroy({ hooks: false }); - const res = await server.post("/api/events.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/events.list", admin); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -379,9 +366,8 @@ describe("#events.list", () => { it("should require authorization for audit events", async () => { const user = await buildUser(); - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", user, { body: { - token: user.getJwtToken(), auditLog: true, }, }); @@ -421,19 +407,14 @@ describe("#events.list", () => { }); // user2 tries to list events without specifying documentId/collectionId - const res = await server.post("/api/events.list", { - body: { - token: user2.getJwtToken(), - }, - }); + const res = await server.post("/api/events.list", user2); // Non-admins cannot list events without documentId or collectionId expect(res.status).toEqual(403); // Also verify user2 cannot see the draft when filtering by documentId - const res2 = await server.post("/api/events.list", { + const res2 = await server.post("/api/events.list", user2, { body: { - token: user2.getJwtToken(), documentId: privateDraft.id, }, }); @@ -462,11 +443,7 @@ describe("#events.list", () => { }); // admin lists events - const res = await server.post("/api/events.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/events.list", admin); const body = await res.json(); expect(res.status).toEqual(200); @@ -497,9 +474,8 @@ describe("#events.list", () => { }); // user lists events for their collection - const res = await server.post("/api/events.list", { + const res = await server.post("/api/events.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); diff --git a/server/routes/api/fileOperations/fileOperations.test.ts b/server/routes/api/fileOperations/fileOperations.test.ts index 8902aa16f4..d01114c077 100644 --- a/server/routes/api/fileOperations/fileOperations.test.ts +++ b/server/routes/api/fileOperations/fileOperations.test.ts @@ -25,10 +25,9 @@ describe("#fileOperations.info", () => { teamId: team.id, userId: admin.id, }); - const res = await server.post("/api/fileOperations.info", { + const res = await server.post("/api/fileOperations.info", admin, { body: { id: exportData.id, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -45,10 +44,9 @@ describe("#fileOperations.info", () => { teamId: team.id, userId: user.id, }); - const res = await server.post("/api/fileOperations.info", { + const res = await server.post("/api/fileOperations.info", user, { body: { id: exportData.id, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -65,10 +63,9 @@ describe("#fileOperations.info", () => { teamId: team.id, userId: admin.id, }); - const res = await server.post("/api/fileOperations.info", { + const res = await server.post("/api/fileOperations.info", user, { body: { id: exportData.id, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(403); @@ -83,10 +80,9 @@ describe("#fileOperations.info", () => { teamId: team.id, userId: admin1.id, }); - const res = await server.post("/api/fileOperations.info", { + const res = await server.post("/api/fileOperations.info", admin2, { body: { id: exportData.id, - token: admin2.getJwtToken(), }, }); const body = await res.json(); @@ -103,10 +99,9 @@ describe("#fileOperations.info", () => { teamId: team.id, userId: admin1.id, }); - const res = await server.post("/api/fileOperations.info", { + const res = await server.post("/api/fileOperations.info", admin2, { body: { id: importOp.id, - token: admin2.getJwtToken(), }, }); const body = await res.json(); @@ -125,10 +120,9 @@ describe("#fileOperations.info", () => { teamId: team.id, userId: admin.id, }); - const res = await server.post("/api/fileOperations.info", { + const res = await server.post("/api/fileOperations.info", admin, { body: { id: exportData.id, - token: admin.getJwtToken(), }, }); expect(res.status).toEqual(403); @@ -146,9 +140,8 @@ describe("#fileOperations.list", () => { teamId: team.id, userId: admin.id, }); - const res = await server.post("/api/fileOperations.list", { + const res = await server.post("/api/fileOperations.list", admin, { body: { - token: admin.getJwtToken(), type: FileOperationType.Export, }, }); @@ -176,9 +169,8 @@ describe("#fileOperations.list", () => { userId: admin.id, collectionId: collection.id, }); - const res = await server.post("/api/fileOperations.list", { + const res = await server.post("/api/fileOperations.list", admin, { body: { - token: admin.getJwtToken(), type: FileOperationType.Export, }, }); @@ -210,9 +202,8 @@ describe("#fileOperations.list", () => { await collection.destroy({ hooks: false }); const isCollectionPresent = await Collection.findByPk(collection.id); expect(isCollectionPresent).toBe(null); - const res = await server.post("/api/fileOperations.list", { + const res = await server.post("/api/fileOperations.list", admin, { body: { - token: admin.getJwtToken(), type: FileOperationType.Export, }, }); @@ -247,9 +238,8 @@ describe("#fileOperations.list", () => { await admin.destroy(); const isAdminPresent = await User.findByPk(admin.id); expect(isAdminPresent).toBe(null); - const res = await server.post("/api/fileOperations.list", { + const res = await server.post("/api/fileOperations.list", admin2, { body: { - token: admin2.getJwtToken(), type: FileOperationType.Export, }, }); @@ -265,9 +255,8 @@ describe("#fileOperations.list", () => { it("should require admin", async () => { const user = await buildUser(); - const res = await server.post("/api/fileOperations.list", { + const res = await server.post("/api/fileOperations.list", user, { body: { - token: user.getJwtToken(), type: FileOperationType.Export, }, }); @@ -286,9 +275,8 @@ describe("#fileOperations.redirect", () => { teamId: team.id, userId: admin.id, }); - const res = await server.post("/api/fileOperations.redirect", { + const res = await server.post("/api/fileOperations.redirect", admin, { body: { - token: admin.getJwtToken(), id: exportData.id, }, }); @@ -307,9 +295,8 @@ describe("#fileOperations.redirect", () => { teamId: team.id, userId: admin1.id, }); - const res = await server.post("/api/fileOperations.redirect", { + const res = await server.post("/api/fileOperations.redirect", admin2, { body: { - token: admin2.getJwtToken(), id: exportData.id, }, redirect: "manual", @@ -326,9 +313,8 @@ describe("#fileOperations.redirect", () => { teamId: team.id, userId: user.id, }); - const res = await server.post("/api/fileOperations.redirect", { + const res = await server.post("/api/fileOperations.redirect", user, { body: { - token: user.getJwtToken(), id: exportData.id, }, redirect: "manual", @@ -346,9 +332,8 @@ describe("#fileOperations.redirect", () => { teamId: team.id, userId: admin.id, }); - const res = await server.post("/api/fileOperations.redirect", { + const res = await server.post("/api/fileOperations.redirect", user, { body: { - token: user.getJwtToken(), id: exportData.id, }, }); @@ -365,9 +350,8 @@ describe("#fileOperations.redirect", () => { teamId: team.id, userId: user.id, }); - const res = await server.post("/api/fileOperations.redirect", { + const res = await server.post("/api/fileOperations.redirect", admin, { body: { - token: admin.getJwtToken(), id: exportData.id, }, }); @@ -387,12 +371,15 @@ describe("#fileOperations.delete", () => { userId: admin.id, state: FileOperationState.Complete, }); - const deleteResponse = await server.post("/api/fileOperations.delete", { - body: { - token: admin.getJwtToken(), - id: exportData.id, - }, - }); + const deleteResponse = await server.post( + "/api/fileOperations.delete", + admin, + { + body: { + id: exportData.id, + }, + } + ); expect(deleteResponse.status).toBe(200); expect( await Event.count({ @@ -420,9 +407,8 @@ describe("#fileOperations.delete", () => { teamId: team.id, userId: user.id, }); - const res = await server.post("/api/fileOperations.delete", { + const res = await server.post("/api/fileOperations.delete", admin, { body: { - token: admin.getJwtToken(), id: exportData.id, }, }); diff --git a/server/routes/api/groupMemberships/groupMemberships.test.ts b/server/routes/api/groupMemberships/groupMemberships.test.ts index 55447ff64e..92b96d9f27 100644 --- a/server/routes/api/groupMemberships/groupMemberships.test.ts +++ b/server/routes/api/groupMemberships/groupMemberships.test.ts @@ -41,19 +41,14 @@ describe("groupMemberships.list", () => { createdById: user.id, }); - await server.post("/api/documents.add_group", { + await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, }); - const res = await server.post("/api/groupMemberships.list", { - body: { - token: member.getJwtToken(), - }, - }); + const res = await server.post("/api/groupMemberships.list", member); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).not.toBeFalsy(); @@ -107,20 +102,15 @@ describe("groupMemberships.list", () => { ]); for (const document of documents) { - await server.post("/api/documents.add_group", { + await server.post("/api/documents.add_group", user, { body: { - token: user.getJwtToken(), id: document.id, groupId: group.id, }, }); } - const res = await server.post("/api/groupMemberships.list", { - body: { - token: member.getJwtToken(), - }, - }); + const res = await server.post("/api/groupMemberships.list", member); const body = await res.json(); expect(res.status).toEqual(200); expect(body.pagination).not.toBeFalsy(); diff --git a/server/routes/api/groups/groups.test.ts b/server/routes/api/groups/groups.test.ts index f462a9db43..032a6aae48 100644 --- a/server/routes/api/groups/groups.test.ts +++ b/server/routes/api/groups/groups.test.ts @@ -15,9 +15,8 @@ describe("#groups.create", () => { it("should create a group", async () => { const name = "hello I am a group"; const user = await buildAdmin(); - const res = await server.post("/api/groups.create", { + const res = await server.post("/api/groups.create", user, { body: { - token: user.getJwtToken(), name, externalId: "123", }, @@ -46,9 +45,8 @@ describe("#groups.update", () => { it("should require admin", async () => { const group = await buildGroup(); const user = await buildUser(); - const res = await server.post("/api/groups.update", { + const res = await server.post("/api/groups.update", user, { body: { - token: user.getJwtToken(), id: group.id, name: "Test", }, @@ -59,9 +57,8 @@ describe("#groups.update", () => { it("should require authorization", async () => { const group = await buildGroup(); const user = await buildAdmin(); - const res = await server.post("/api/groups.update", { + const res = await server.post("/api/groups.update", user, { body: { - token: user.getJwtToken(), id: group.id, name: "Test", }, @@ -79,9 +76,8 @@ describe("#groups.update", () => { }); it("allows admin to edit a group", async () => { - const res = await server.post("/api/groups.update", { + const res = await server.post("/api/groups.update", user, { body: { - token: user.getJwtToken(), id: group.id, name: "Test", externalId: "123", @@ -113,9 +109,8 @@ describe("#groups.update", () => { const admin = await buildAdmin({ teamId: user.teamId, }); - await server.post("/api/groups.add_user", { + await server.post("/api/groups.add_user", admin, { body: { - token: admin.getJwtToken(), id: group.id, userId: user.id, permission: "admin", @@ -124,9 +119,8 @@ describe("#groups.update", () => { }); it("allows group admin to edit a group", async () => { - const res = await server.post("/api/groups.update", { + const res = await server.post("/api/groups.update", user, { body: { - token: user.getJwtToken(), id: group.id, name: "Test by Group Admin", }, @@ -147,9 +141,8 @@ describe("#groups.update", () => { }); it("does not create an event if the update is a noop", async () => { - const res = await server.post("/api/groups.update", { + const res = await server.post("/api/groups.update", user, { body: { - token: user.getJwtToken(), id: group.id, name: group.name, }, @@ -171,9 +164,8 @@ describe("#groups.update", () => { teamId: user.teamId, name: "test", }); - const res = await server.post("/api/groups.update", { + const res = await server.post("/api/groups.update", user, { body: { - token: user.getJwtToken(), id: group.id, name: "TEST", }, @@ -203,11 +195,7 @@ describe("#groups.list", () => { createdById: user.id, }, }); - const res = await server.post("/api/groups.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/groups.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.pagination.total).toEqual(1); @@ -239,11 +227,7 @@ describe("#groups.list", () => { }, }); await user.destroy({ hooks: false }); - const res = await server.post("/api/groups.list", { - body: { - token: me.getJwtToken(), - }, - }); + const res = await server.post("/api/groups.list", me); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.groups.length).toEqual(1); @@ -277,11 +261,7 @@ describe("#groups.list", () => { createdById: user.id, }, }); - const res = await server.post("/api/groups.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/groups.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -304,10 +284,9 @@ describe("#groups.list", () => { ).toBe(true); expect(body.policies.length).toEqual(2); - const anotherRes = await server.post("/api/groups.list", { + const anotherRes = await server.post("/api/groups.list", user, { body: { userId: user.id, - token: user.getJwtToken(), }, }); const anotherBody = await anotherRes.json(); @@ -335,10 +314,9 @@ describe("#groups.list", () => { const group = await buildGroup({ teamId: user.teamId }); await buildGroup({ teamId: user.teamId }); - const res = await server.post("/api/groups.list", { + const res = await server.post("/api/groups.list", user, { body: { name: group.name, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -353,10 +331,9 @@ describe("#groups.list", () => { const group = await buildGroup({ teamId: user.teamId, externalId: "123" }); await buildGroup({ teamId: user.teamId }); - const res = await server.post("/api/groups.list", { + const res = await server.post("/api/groups.list", user, { body: { externalId: "123", - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -371,10 +348,9 @@ describe("#groups.list", () => { await buildGroup({ teamId: user.teamId }); await buildGroup({ teamId: user.teamId }); - const res = await server.post("/api/groups.list", { + const res = await server.post("/api/groups.list", user, { body: { limit: 1, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -414,10 +390,9 @@ describe("#groups.list", () => { teamId: otherUser.teamId, }); - const res = await server.post("/api/groups.list", { + const res = await server.post("/api/groups.list", user, { body: { source: authProvider.name, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -433,9 +408,8 @@ describe("#groups.info", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/groups.info", { + const res = await server.post("/api/groups.info", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -450,9 +424,8 @@ describe("#groups.info", () => { teamId: user.teamId, externalId: "456", }); - const res = await server.post("/api/groups.info", { + const res = await server.post("/api/groups.info", user, { body: { - token: user.getJwtToken(), externalId: "456", }, }); @@ -471,9 +444,8 @@ describe("#groups.info", () => { createdById: user.id, }, }); - const res = await server.post("/api/groups.info", { + const res = await server.post("/api/groups.info", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -487,9 +459,8 @@ describe("#groups.info", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/groups.info", { + const res = await server.post("/api/groups.info", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -510,9 +481,8 @@ describe("#groups.info", () => { it("should require authorization", async () => { const user = await buildUser(); const group = await buildGroup(); - const res = await server.post("/api/groups.info", { + const res = await server.post("/api/groups.info", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -536,9 +506,8 @@ describe("#groups.delete", () => { it("should require admin", async () => { const group = await buildGroup(); const user = await buildUser(); - const res = await server.post("/api/groups.delete", { + const res = await server.post("/api/groups.delete", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -548,9 +517,8 @@ describe("#groups.delete", () => { it("should require authorization", async () => { const group = await buildGroup(); const user = await buildAdmin(); - const res = await server.post("/api/groups.delete", { + const res = await server.post("/api/groups.delete", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -562,9 +530,8 @@ describe("#groups.delete", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/groups.delete", { + const res = await server.post("/api/groups.delete", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -585,9 +552,8 @@ describe("#groups.memberships", () => { createdById: user.id, }, }); - const res = await server.post("/api/groups.memberships", { + const res = await server.post("/api/groups.memberships", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -627,9 +593,8 @@ describe("#groups.memberships", () => { }, }); await user3.destroy(); - const res = await server.post("/api/groups.memberships", { + const res = await server.post("/api/groups.memberships", user, { body: { - token: user.getJwtToken(), id: group.id, query: user.name.slice(0, 3), }, @@ -650,9 +615,8 @@ describe("#groups.memberships", () => { it("should require authorization", async () => { const user = await buildUser(); const group = await buildGroup(); - const res = await server.post("/api/groups.memberships", { + const res = await server.post("/api/groups.memberships", user, { body: { - token: user.getJwtToken(), id: group.id, }, }); @@ -666,9 +630,8 @@ describe("#groups.add_user", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/groups.add_user", { + const res = await server.post("/api/groups.add_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: user.id, }, @@ -686,9 +649,8 @@ describe("#groups.add_user", () => { const group = await buildGroup({ teamId: user.teamId, }); - const res = await server.post("/api/groups.add_user", { + const res = await server.post("/api/groups.add_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, permission: GroupPermission.Admin, @@ -712,9 +674,8 @@ describe("#groups.add_user", () => { teamId: user.teamId, }); const anotherUser = await buildUser(); - const res = await server.post("/api/groups.add_user", { + const res = await server.post("/api/groups.add_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, }, @@ -732,9 +693,8 @@ describe("#groups.add_user", () => { const anotherUser = await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/groups.add_user", { + const res = await server.post("/api/groups.add_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, }, @@ -751,18 +711,16 @@ describe("#groups.remove_user", () => { const group = await buildGroup({ teamId: user.teamId, }); - await server.post("/api/groups.add_user", { + await server.post("/api/groups.add_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: user.id, }, }); const users = await group.$get("users"); expect(users.length).toEqual(1); - const res = await server.post("/api/groups.remove_user", { + const res = await server.post("/api/groups.remove_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: user.id, }, @@ -783,9 +741,8 @@ describe("#groups.remove_user", () => { teamId: user.teamId, }); const anotherUser = await buildUser(); - const res = await server.post("/api/groups.remove_user", { + const res = await server.post("/api/groups.remove_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, }, @@ -803,9 +760,8 @@ describe("#groups.remove_user", () => { const anotherUser = await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/groups.remove_user", { + const res = await server.post("/api/groups.remove_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, }, @@ -833,9 +789,8 @@ describe("#groups.update_user", () => { }); // Then update the user to be an admin - const res = await server.post("/api/groups.update_user", { + const res = await server.post("/api/groups.update_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, permission: GroupPermission.Admin, @@ -849,9 +804,8 @@ describe("#groups.update_user", () => { ); // Update the user to not be an admin - const res2 = await server.post("/api/groups.update_user", { + const res2 = await server.post("/api/groups.update_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, permission: "member", @@ -891,9 +845,8 @@ describe("#groups.update_user", () => { }); // Try to update as non-admin - const res = await server.post("/api/groups.update_user", { + const res = await server.post("/api/groups.update_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, permission: GroupPermission.Admin, @@ -912,9 +865,8 @@ describe("#groups.update_user", () => { teamId: user.teamId, }); - const res = await server.post("/api/groups.update_user", { + const res = await server.post("/api/groups.update_user", user, { body: { - token: user.getJwtToken(), id: group.id, userId: anotherUser.id, permission: GroupPermission.Admin, diff --git a/server/routes/api/imports/imports.test.ts b/server/routes/api/imports/imports.test.ts index 202c067a31..5238cb038c 100644 --- a/server/routes/api/imports/imports.test.ts +++ b/server/routes/api/imports/imports.test.ts @@ -37,12 +37,11 @@ describe("#imports.create", () => { }); const input: NotionImportInput = [{ permission: undefined }]; - const res = await server.post("/api/imports.create", { + const res = await server.post("/api/imports.create", admin, { body: { integrationId: integration.id, service: IntegrationService.Notion, input, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -70,12 +69,11 @@ describe("#imports.create", () => { integrationId: integration.id, }); - const res = await server.post("/api/imports.create", { + const res = await server.post("/api/imports.create", admin, { body: { integrationId: integration.id, service: ImportableIntegrationService.Notion, input, - token: admin.getJwtToken(), }, }); @@ -91,11 +89,7 @@ describe("#imports.create", () => { it("should require user to be admin", async () => { const user = await buildUser(); - const res = await server.post("/api/imports.create", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/imports.create", user); expect(res.status).toEqual(403); }); @@ -115,10 +109,9 @@ describe("#imports.list", () => { }), ]); - const res = await server.post("/api/imports.list", { + const res = await server.post("/api/imports.list", admin, { body: { service: IntegrationService.Notion, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -143,11 +136,7 @@ describe("#imports.list", () => { it("should require user to be admin", async () => { const user = await buildUser(); - const res = await server.post("/api/imports.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/imports.list", user); expect(res.status).toEqual(403); }); @@ -161,10 +150,9 @@ describe("#imports.info", () => { teamId: admin.teamId, }); - const res = await server.post("/api/imports.info", { + const res = await server.post("/api/imports.info", admin, { body: { id: importModel.id, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -182,11 +170,7 @@ describe("#imports.info", () => { it("should require user to be admin", async () => { const user = await buildUser(); - const res = await server.post("/api/imports.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/imports.info", user); expect(res.status).toEqual(403); }); @@ -201,10 +185,9 @@ describe("#imports.delete", () => { teamId: admin.teamId, }); - const res = await server.post("/api/imports.delete", { + const res = await server.post("/api/imports.delete", admin, { body: { id: importModel.id, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -221,10 +204,9 @@ describe("#imports.delete", () => { teamId: admin.teamId, }); - const res = await server.post("/api/imports.delete", { + const res = await server.post("/api/imports.delete", admin, { body: { id: importModel.id, - token: admin.getJwtToken(), }, }); @@ -240,11 +222,7 @@ describe("#imports.delete", () => { it("should require user to be admin", async () => { const user = await buildUser(); - const res = await server.post("/api/imports.delete", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/imports.delete", user); expect(res.status).toEqual(403); }); @@ -258,10 +236,9 @@ describe("#imports.cancel", () => { teamId: admin.teamId, }); - const res = await server.post("/api/imports.cancel", { + const res = await server.post("/api/imports.cancel", admin, { body: { id: importModel.id, - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -279,10 +256,9 @@ describe("#imports.cancel", () => { teamId: admin.teamId, }); - const res = await server.post("/api/imports.cancel", { + const res = await server.post("/api/imports.cancel", admin, { body: { id: importModel.id, - token: admin.getJwtToken(), }, }); @@ -298,11 +274,7 @@ describe("#imports.cancel", () => { it("should require user to be admin", async () => { const user = await buildUser(); - const res = await server.post("/api/imports.cancel", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/imports.cancel", user); expect(res.status).toEqual(403); }); diff --git a/server/routes/api/installation/installation.test.ts b/server/routes/api/installation/installation.test.ts index 1fb3f43b65..c2d5a75edb 100644 --- a/server/routes/api/installation/installation.test.ts +++ b/server/routes/api/installation/installation.test.ts @@ -64,11 +64,7 @@ describe("installation.info", () => { it.skip("should return installation information", async () => { const user = await buildUser(); - const res = await server.post("/api/installation.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/installation.info", user); const body = await res.json(); diff --git a/server/routes/api/integrations/integrations.test.ts b/server/routes/api/integrations/integrations.test.ts index 604d2e2721..2c80c516d4 100644 --- a/server/routes/api/integrations/integrations.test.ts +++ b/server/routes/api/integrations/integrations.test.ts @@ -20,10 +20,9 @@ describe("#integrations.update", () => { teamId: team.id, }); - const res = await server.post("/api/integrations.update", { + const res = await server.post("/api/integrations.update", user, { body: { events: ["documents.update"], - token: user.getJwtToken(), id: integration.id, }, }); @@ -38,9 +37,8 @@ describe("#integrations.update", () => { const integration = await buildIntegration({ userId: user.id, }); - const res = await server.post("/api/integrations.update", { + const res = await server.post("/api/integrations.update", user, { body: { - token: user.getJwtToken(), id: integration.id, }, }); @@ -58,9 +56,8 @@ describe("#integrations.update", () => { settings: { url: "https://example.com" }, }); - const res = await server.post("/api/integrations.update", { + const res = await server.post("/api/integrations.update", admin, { body: { - token: admin.getJwtToken(), id: integration.id, settings: { url: "https://foo.bar" }, }, @@ -82,9 +79,8 @@ describe("#integrations.update", () => { settings: { url: "https://example.com" }, }); - const res = await server.post("/api/integrations.update", { + const res = await server.post("/api/integrations.update", admin, { body: { - token: admin.getJwtToken(), id: integration.id, settings: { url: "https://grist.example.com" }, }, @@ -100,9 +96,8 @@ describe("#integrations.create", () => { it("should fail with status 400 bad request for an invalid url value supplied in settings param", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/integrations.create", { + const res = await server.post("/api/integrations.create", admin, { body: { - token: admin.getJwtToken(), type: IntegrationType.Embed, service: IntegrationService.Diagrams, settings: { url: "not a url" }, @@ -116,9 +111,8 @@ describe("#integrations.create", () => { it("should succeed with status 200 ok for an integration without url", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/integrations.create", { + const res = await server.post("/api/integrations.create", admin, { body: { - token: admin.getJwtToken(), type: IntegrationType.Analytics, service: IntegrationService.GoogleAnalytics, settings: { measurementId: "123" }, @@ -135,9 +129,8 @@ describe("#integrations.create", () => { it("should succeed with status 200 ok for an grist integration", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/integrations.create", { + const res = await server.post("/api/integrations.create", admin, { body: { - token: admin.getJwtToken(), type: IntegrationType.Embed, service: IntegrationService.Grist, settings: { url: "https://grist.example.com" }, @@ -171,9 +164,8 @@ describe("#integrations.delete", () => { it("should fail with status 403 unauthorized when the user is not an admin", async () => { const user = await buildUser(); - const res = await server.post("/api/integrations.delete", { + const res = await server.post("/api/integrations.delete", user, { body: { - token: user.getJwtToken(), id: integration.id, }, }); @@ -181,11 +173,7 @@ describe("#integrations.delete", () => { }); it("should fail with status 400 bad request when id is not sent", async () => { - const res = await server.post("/api/integrations.delete", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/integrations.delete", admin); const body = await res.json(); expect(res.status).toEqual(400); @@ -202,9 +190,8 @@ describe("#integrations.delete", () => { service: IntegrationService.Slack, type: IntegrationType.LinkedAccount, }); - const res = await server.post("/api/integrations.delete", { + const res = await server.post("/api/integrations.delete", user, { body: { - token: user.getJwtToken(), id: linkedAccount.id, }, }); @@ -212,9 +199,8 @@ describe("#integrations.delete", () => { }); it("should succeed with status 200 ok when integration is deleted", async () => { - const res = await server.post("/api/integrations.delete", { + const res = await server.post("/api/integrations.delete", admin, { body: { - token: admin.getJwtToken(), id: integration.id, }, }); diff --git a/server/routes/api/middlewares/pagination.test.ts b/server/routes/api/middlewares/pagination.test.ts index 8c930c4fe3..3ff63b0461 100644 --- a/server/routes/api/middlewares/pagination.test.ts +++ b/server/routes/api/middlewares/pagination.test.ts @@ -6,9 +6,8 @@ const server = getTestServer(); describe("#pagination", () => { it("should allow offset and limit", async () => { const user = await buildUser(); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { - token: user.getJwtToken(), limit: 1, offset: 1, }, @@ -18,9 +17,8 @@ describe("#pagination", () => { it("should not allow negative limit", async () => { const user = await buildUser(); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { - token: user.getJwtToken(), limit: -1, }, }); @@ -29,9 +27,8 @@ describe("#pagination", () => { it("should not allow non-integer limit", async () => { const user = await buildUser(); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { - token: user.getJwtToken(), limit: "blah", }, }); @@ -40,9 +37,8 @@ describe("#pagination", () => { it("should not allow negative offset", async () => { const user = await buildUser(); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { - token: user.getJwtToken(), offset: -1, }, }); @@ -51,9 +47,8 @@ describe("#pagination", () => { it("should not allow non-integer offset", async () => { const user = await buildUser(); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { - token: user.getJwtToken(), offset: "blah", }, }); diff --git a/server/routes/api/notifications/notifications.test.ts b/server/routes/api/notifications/notifications.test.ts index 345199cdf3..1bd09095e8 100644 --- a/server/routes/api/notifications/notifications.test.ts +++ b/server/routes/api/notifications/notifications.test.ts @@ -64,11 +64,7 @@ describe("#notifications.list", () => { }), ]); - const res = await server.post("/api/notifications.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/notifications.list", user); const body = await res.json(); expect(res.status).toBe(200); @@ -130,9 +126,8 @@ describe("#notifications.list", () => { }), ]); - const res = await server.post("/api/notifications.list", { + const res = await server.post("/api/notifications.list", user, { body: { - token: user.getJwtToken(), eventType: NotificationEventType.MentionedInComment, }, }); @@ -197,9 +192,8 @@ describe("#notifications.list", () => { }), ]); - const res = await server.post("/api/notifications.list", { + const res = await server.post("/api/notifications.list", user, { body: { - token: user.getJwtToken(), archived: true, }, }); @@ -265,9 +259,8 @@ describe("#notifications.list", () => { }), ]); - const res = await server.post("/api/notifications.list", { + const res = await server.post("/api/notifications.list", user, { body: { - token: user.getJwtToken(), archived: false, }, }); @@ -385,9 +378,8 @@ describe("#notifications.update", () => { expect(notification.viewedAt).toBeNull(); - const res = await server.post("/api/notifications.update", { + const res = await server.post("/api/notifications.update", user, { body: { - token: user.getJwtToken(), id: notification.id, viewedAt: new Date(), }, @@ -425,9 +417,8 @@ describe("#notifications.update", () => { expect(notification.archivedAt).toBeNull(); - const res = await server.post("/api/notifications.update", { + const res = await server.post("/api/notifications.update", user, { body: { - token: user.getJwtToken(), id: notification.id, archivedAt: new Date(), }, @@ -483,11 +474,7 @@ describe("#notifications.update_all", () => { }), ]); - const res = await server.post("/api/notifications.update_all", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/notifications.update_all", user); const body = await res.json(); expect(res.status).toBe(200); expect(body.success).toBe(true); @@ -536,9 +523,8 @@ describe("#notifications.update_all", () => { }), ]); - const res = await server.post("/api/notifications.update_all", { + const res = await server.post("/api/notifications.update_all", user, { body: { - token: user.getJwtToken(), viewedAt: new Date(), }, }); @@ -591,9 +577,8 @@ describe("#notifications.update_all", () => { }), ]); - const res = await server.post("/api/notifications.update_all", { + const res = await server.post("/api/notifications.update_all", user, { body: { - token: user.getJwtToken(), viewedAt: null, }, }); @@ -645,9 +630,8 @@ describe("#notifications.update_all", () => { }), ]); - const res = await server.post("/api/notifications.update_all", { + const res = await server.post("/api/notifications.update_all", user, { body: { - token: user.getJwtToken(), archivedAt: new Date(), }, }); @@ -700,9 +684,8 @@ describe("#notifications.update_all", () => { }), ]); - const res = await server.post("/api/notifications.update_all", { + const res = await server.post("/api/notifications.update_all", user, { body: { - token: user.getJwtToken(), archivedAt: null, }, }); diff --git a/server/routes/api/oauthAuthentications/oauthAuthentications.test.ts b/server/routes/api/oauthAuthentications/oauthAuthentications.test.ts index 465ea5a80f..4274fa9d67 100644 --- a/server/routes/api/oauthAuthentications/oauthAuthentications.test.ts +++ b/server/routes/api/oauthAuthentications/oauthAuthentications.test.ts @@ -32,11 +32,7 @@ describe("oauthAuthentications.list", () => { scope: ["read"], }); - const res = await server.post("/api/oauthAuthentications.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/oauthAuthentications.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -63,11 +59,7 @@ describe("oauthAuthentications.list", () => { scope: ["read"], }); - const res = await server.post("/api/oauthAuthentications.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/oauthAuthentications.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -87,9 +79,8 @@ describe("oauthAuthentications.delete", () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/oauthAuthentications.delete", { + const res = await server.post("/api/oauthAuthentications.delete", user, { body: { - token: user.getJwtToken(), oauthClientId: "", }, }); @@ -113,9 +104,8 @@ describe("oauthAuthentications.delete", () => { scope: ["read"], }); - const res = await server.post("/api/oauthAuthentications.delete", { + const res = await server.post("/api/oauthAuthentications.delete", user, { body: { - token: user.getJwtToken(), oauthClientId: oauthClient.id, }, }); @@ -154,9 +144,8 @@ describe("oauthAuthentications.delete", () => { scope: ["write"], }); - const res = await server.post("/api/oauthAuthentications.delete", { + const res = await server.post("/api/oauthAuthentications.delete", user, { body: { - token: user.getJwtToken(), oauthClientId: oauthClient.id, scope: ["read"], }, @@ -193,9 +182,8 @@ describe("oauthAuthentications.delete", () => { scope: ["read"], }); - await server.post("/api/oauthAuthentications.delete", { + await server.post("/api/oauthAuthentications.delete", user, { body: { - token: user.getJwtToken(), oauthClientId: oauthClient.id, scope: "read", }, diff --git a/server/routes/api/oauthClients/oauthClients.test.ts b/server/routes/api/oauthClients/oauthClients.test.ts index b15f0bc693..743423d4ac 100644 --- a/server/routes/api/oauthClients/oauthClients.test.ts +++ b/server/routes/api/oauthClients/oauthClients.test.ts @@ -41,11 +41,7 @@ describe("oauthClients.list", () => { published: false, }); - const res = await server.post("/api/oauthClients.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/oauthClients.list", admin); const body = await res.json(); expect(res.status).toEqual(200); @@ -78,9 +74,8 @@ describe("oauthClients.info", () => { redirectUris: ["https://example.com/callback"], }); - const res = await server.post("/api/oauthClients.info", { + const res = await server.post("/api/oauthClients.info", user, { body: { - token: user.getJwtToken(), id: client.id, }, }); @@ -105,9 +100,8 @@ describe("oauthClients.info", () => { redirectUris: ["https://example.com/callback"], }); - const res = await server.post("/api/oauthClients.info", { + const res = await server.post("/api/oauthClients.info", user, { body: { - token: user.getJwtToken(), id: client.id, }, }); @@ -132,9 +126,8 @@ describe("oauthClients.info", () => { published: true, }); - const res = await server.post("/api/oauthClients.info", { + const res = await server.post("/api/oauthClients.info", user, { body: { - token: user.getJwtToken(), id: client.id, }, }); @@ -160,9 +153,8 @@ describe("oauthClients.info", () => { published: true, }); - const res = await server.post("/api/oauthClients.info", { + const res = await server.post("/api/oauthClients.info", user, { body: { - token: user.getJwtToken(), clientId: client.clientId, }, }); @@ -192,9 +184,8 @@ describe("oauthClients.info", () => { }); // Test with valid redirectUri - const validRes = await server.post("/api/oauthClients.info", { + const validRes = await server.post("/api/oauthClients.info", user, { body: { - token: user.getJwtToken(), clientId: client.clientId, redirectUri: "https://example.com/callback", }, @@ -205,9 +196,8 @@ describe("oauthClients.info", () => { expect(validBody.data.name).toEqual("Test Client"); // Test with invalid redirectUri - const invalidRes = await server.post("/api/oauthClients.info", { + const invalidRes = await server.post("/api/oauthClients.info", user, { body: { - token: user.getJwtToken(), clientId: client.clientId, redirectUri: "https://malicious.com/callback", }, @@ -228,9 +218,8 @@ describe("oauthClients.create", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/oauthClients.create", { + const res = await server.post("/api/oauthClients.create", admin, { body: { - token: admin.getJwtToken(), name: "Test Client", redirectUris: ["https://example.com/callback"], }, @@ -264,9 +253,8 @@ describe("oauthclients.update", () => { published: true, }); - const res = await server.post("/api/oauthClients.update", { + const res = await server.post("/api/oauthClients.update", admin, { body: { - token: admin.getJwtToken(), id: client.id, published: false, name: "Renamed", @@ -301,9 +289,8 @@ describe("oauthClients.rotate_secret", () => { const originalSecret = client.clientSecret; - const res = await server.post("/api/oauthClients.rotate_secret", { + const res = await server.post("/api/oauthClients.rotate_secret", admin, { body: { - token: admin.getJwtToken(), id: client.id, }, }); @@ -335,9 +322,8 @@ describe("oauthClients.delete", () => { redirectUris: ["https://example.com/callback"], }); - const res = await server.post("/api/oauthClients.delete", { + const res = await server.post("/api/oauthClients.delete", admin, { body: { - token: admin.getJwtToken(), id: client.id, }, }); diff --git a/server/routes/api/pins/pins.test.ts b/server/routes/api/pins/pins.test.ts index 94ef783af0..fb17ec7607 100644 --- a/server/routes/api/pins/pins.test.ts +++ b/server/routes/api/pins/pins.test.ts @@ -47,20 +47,15 @@ describe("#pins.create", () => { }); it("should fail with status 400 bad request when documentId is not suppled", async () => { - const res = await server.post("/api/pins.create", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/pins.create", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("documentId: required"); }); it("should fail with status 400 bad request when documentId is invalid", async () => { - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", user, { body: { - token: user.getJwtToken(), documentId: "foo", }, }); @@ -70,9 +65,8 @@ describe("#pins.create", () => { }); it("should fail with status 400 bad request when index is invalid", async () => { - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", user, { body: { - token: user.getJwtToken(), documentId: "foo1234567", index: "😀", }, @@ -83,9 +77,8 @@ describe("#pins.create", () => { }); it("should fail with status 403 forbidden when user is disallowed to read the document", async () => { - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", anotherUser, { body: { - token: anotherUser.getJwtToken(), documentId: document.id, }, }); @@ -95,9 +88,8 @@ describe("#pins.create", () => { }); it("should fail with status 403 forbidden when user is disallowed to update the collection", async () => { - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, collectionId: collection.id, }, @@ -113,9 +105,8 @@ describe("#pins.create", () => { teamId: admin.teamId, collectionId: collection.id, }); - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", admin, { body: { - token: admin.getJwtToken(), // A draft document cannot be pinned, neither by a member nor by an admin documentId: draft.id, collectionId: collection.id, @@ -127,9 +118,8 @@ describe("#pins.create", () => { }); it("should fail with status 403 forbidden when user is disallowed to pin the document to home page", async () => { - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -139,9 +129,8 @@ describe("#pins.create", () => { }); it("should succeed with status 200 ok when user is allowed to pin", async () => { - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", admin, { body: { - token: admin.getJwtToken(), documentId: document.id, }, }); @@ -153,9 +142,8 @@ describe("#pins.create", () => { }); it("should succeed with status 200 ok when valid collectionId is supplied", async () => { - const res = await server.post("/api/pins.create", { + const res = await server.post("/api/pins.create", admin, { body: { - token: admin.getJwtToken(), documentId: document.id, collectionId: collection.id, }, @@ -176,16 +164,14 @@ describe("#pins.info", () => { teamId: admin.teamId, }); - await server.post("/api/pins.create", { + await server.post("/api/pins.create", admin, { body: { - token: admin.getJwtToken(), documentId: document.id, }, }); - const res = await server.post("/api/pins.info", { + const res = await server.post("/api/pins.info", admin, { body: { - token: admin.getJwtToken(), documentId: document.id, }, }); @@ -204,17 +190,15 @@ describe("#pins.info", () => { teamId: user.teamId, }); - await server.post("/api/pins.create", { + await server.post("/api/pins.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, collectionId: document.collectionId, }, }); - const res = await server.post("/api/pins.info", { + const res = await server.post("/api/pins.info", user, { body: { - token: user.getJwtToken(), documentId: document.id, collectionId: document.collectionId, }, @@ -234,9 +218,8 @@ describe("#pins.info", () => { teamId: user.teamId, }); - const res = await server.post("/api/pins.info", { + const res = await server.post("/api/pins.info", user, { body: { - token: user.getJwtToken(), documentId: document.id, collectionId: null, }, @@ -292,11 +275,7 @@ describe("#pins.list", () => { }); it("should succeed with status 200 ok returning pinned documents", async () => { - const res = await server.post("/api/pins.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/pins.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toBeTruthy(); @@ -311,9 +290,8 @@ describe("#pins.list", () => { }); it("should succeed with status 200 ok returning pinned documents filtered by collectionId supplied", async () => { - const res = await server.post("/api/pins.list", { + const res = await server.post("/api/pins.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); @@ -345,9 +323,8 @@ describe("#pins.list", () => { // Create a user on the same team but without access to the private collection const teamMember = await buildUser({ teamId: otherUser.teamId }); - const res = await server.post("/api/pins.list", { + const res = await server.post("/api/pins.list", teamMember, { body: { - token: teamMember.getJwtToken(), collectionId: privateCollection.id, }, }); @@ -372,9 +349,8 @@ describe("#pins.list", () => { teamId: user.teamId, }); - const res = await server.post("/api/pins.list", { + const res = await server.post("/api/pins.list", user, { body: { - token: user.getJwtToken(), collectionId: collectionWithPins.id, }, }); @@ -387,9 +363,8 @@ describe("#pins.list", () => { }); it("should fail with status 403 forbidden when collection does not exist", async () => { - const res = await server.post("/api/pins.list", { + const res = await server.post("/api/pins.list", user, { body: { - token: user.getJwtToken(), collectionId: "00000000-0000-0000-0000-000000000000", }, }); @@ -437,11 +412,7 @@ describe("#pins.update", () => { }); it("should fail with status 400 bad request when id is missing", async () => { - const res = await server.post("/api/pins.update", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/pins.update", admin); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -450,9 +421,8 @@ describe("#pins.update", () => { }); it("should fail with status 400 bad request when index is missing", async () => { - const res = await server.post("/api/pins.update", { + const res = await server.post("/api/pins.update", admin, { body: { - token: admin.getJwtToken(), id: pin.id, }, }); @@ -464,9 +434,8 @@ describe("#pins.update", () => { }); it("should fail with status 400 bad request when an invalid index is sent", async () => { - const res = await server.post("/api/pins.update", { + const res = await server.post("/api/pins.update", admin, { body: { - token: admin.getJwtToken(), id: pin.id, index: "😀", }, @@ -477,9 +446,8 @@ describe("#pins.update", () => { }); it("should fail with status 403 forbidden when user is disallowed to update the pin", async () => { - const res = await server.post("/api/pins.update", { + const res = await server.post("/api/pins.update", user, { body: { - token: user.getJwtToken(), id: pin.id, index: "b", }, @@ -490,9 +458,8 @@ describe("#pins.update", () => { }); it("should succeed with status 200 ok and when user is allowed to update the pin", async () => { - const res = await server.post("/api/pins.update", { + const res = await server.post("/api/pins.update", admin, { body: { - token: admin.getJwtToken(), id: pin.id, index: "b", }, @@ -527,11 +494,7 @@ describe("#pins.delete", () => { }); it("should fail with status 400 bad request when id is missing", async () => { - const res = await server.post("/api/pins.delete", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/pins.delete", admin); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -543,9 +506,8 @@ describe("#pins.delete", () => { const user = await buildUser({ teamId: admin.teamId, }); - const res = await server.post("/api/pins.delete", { + const res = await server.post("/api/pins.delete", user, { body: { - token: user.getJwtToken(), id: pin.id, }, }); @@ -555,9 +517,8 @@ describe("#pins.delete", () => { }); it("should succeed with status 200 ok when user is allowed to delete the pin", async () => { - const res = await server.post("/api/pins.delete", { + const res = await server.post("/api/pins.delete", admin, { body: { - token: admin.getJwtToken(), id: pin.id, }, }); diff --git a/server/routes/api/reactions/reactions.test.ts b/server/routes/api/reactions/reactions.test.ts index 4439ba9d7d..8f5a671e6b 100644 --- a/server/routes/api/reactions/reactions.test.ts +++ b/server/routes/api/reactions/reactions.test.ts @@ -33,9 +33,8 @@ describe("#reactions.list", () => { { emoji: "😅", commentId: comment.id, userId: user.id }, ]); - const res = await server.post("/api/reactions.list", { + const res = await server.post("/api/reactions.list", user, { body: { - token: user.getJwtToken(), commentId: comment.id, }, }); diff --git a/server/routes/api/relationships/relationships.test.ts b/server/routes/api/relationships/relationships.test.ts index a1207e703f..e9353ec689 100644 --- a/server/routes/api/relationships/relationships.test.ts +++ b/server/routes/api/relationships/relationships.test.ts @@ -55,11 +55,7 @@ describe("#relationships.info", () => { }); it("should fail with status 400 bad request when id is not supplied", async () => { - const res = await server.post("/api/relationships.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/relationships.info", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -68,9 +64,8 @@ describe("#relationships.info", () => { }); it("should fail with status 400 bad request when id is not a valid UUID", async () => { - const res = await server.post("/api/relationships.info", { + const res = await server.post("/api/relationships.info", user, { body: { - token: user.getJwtToken(), id: "invalid-uuid", }, }); @@ -80,9 +75,8 @@ describe("#relationships.info", () => { }); it("should fail with status 404 not found when relationship does not exist", async () => { - const res = await server.post("/api/relationships.info", { + const res = await server.post("/api/relationships.info", admin, { body: { - token: admin.getJwtToken(), id: "550e8400-e29b-41d4-a716-446655440000", }, }); @@ -92,9 +86,8 @@ describe("#relationships.info", () => { }); it("should fail with status 403 forbidden when user cannot read the document", async () => { - const res = await server.post("/api/relationships.info", { + const res = await server.post("/api/relationships.info", anotherUser, { body: { - token: anotherUser.getJwtToken(), id: relationship.id, }, }); @@ -104,9 +97,8 @@ describe("#relationships.info", () => { }); it("should succeed with status 200 ok when user can read the document", async () => { - const res = await server.post("/api/relationships.info", { + const res = await server.post("/api/relationships.info", admin, { body: { - token: admin.getJwtToken(), id: relationship.id, }, }); @@ -143,9 +135,8 @@ describe("#relationships.info", () => { reverseDocumentId: adminDocument.id, }); - const res = await server.post("/api/relationships.info", { + const res = await server.post("/api/relationships.info", user, { body: { - token: user.getJwtToken(), id: userRelationship.id, }, }); @@ -165,9 +156,8 @@ describe("#relationships.info", () => { // Make user team member so they can read both documents const teamUser = await buildUser({ teamId: admin.teamId }); - const res = await server.post("/api/relationships.info", { + const res = await server.post("/api/relationships.info", teamUser, { body: { - token: teamUser.getJwtToken(), id: relationship.id, }, }); @@ -243,11 +233,7 @@ describe("#relationships.list", () => { }); it("should succeed with status 200 ok returning all relationships", async () => { - const res = await server.post("/api/relationships.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/relationships.list", admin); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toBeTruthy(); @@ -259,9 +245,8 @@ describe("#relationships.list", () => { }); it("should succeed with status 200 ok returning relationships filtered by type", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), type: RelationshipType.Backlink, }, }); @@ -277,9 +262,8 @@ describe("#relationships.list", () => { }); it("should succeed with status 200 ok returning relationships filtered by documentId", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), documentId: documents[0].id, }, }); @@ -295,9 +279,8 @@ describe("#relationships.list", () => { }); it("should succeed with status 200 ok returning relationships filtered by reverseDocumentId", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), reverseDocumentId: documents[1].id, }, }); @@ -313,9 +296,8 @@ describe("#relationships.list", () => { }); it("should succeed with status 200 ok returning relationships with multiple filters", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), type: RelationshipType.Backlink, documentId: documents[0].id, }, @@ -335,9 +317,8 @@ describe("#relationships.list", () => { }); it("should fail with status 400 bad request when documentId is invalid", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), documentId: "invalid-id", }, }); @@ -345,9 +326,8 @@ describe("#relationships.list", () => { }); it("should fail with status 400 bad request when reverseDocumentId is invalid", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), reverseDocumentId: "invalid-id", }, }); @@ -357,9 +337,8 @@ describe("#relationships.list", () => { }); it("should respect pagination", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), limit: 1, offset: 0, }, @@ -373,9 +352,8 @@ describe("#relationships.list", () => { }); it("should return empty results when no relationships match filters", async () => { - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", admin, { body: { - token: admin.getJwtToken(), documentId: "550e8400-e29b-41d4-a716-446655440000", }, }); @@ -411,9 +389,8 @@ describe("#relationships.list", () => { reverseDocumentId: cannotAccessDocument.id, }); - const res = await server.post("/api/relationships.list", { + const res = await server.post("/api/relationships.list", user, { body: { - token: user.getJwtToken(), documentId: userDocument.id, }, }); diff --git a/server/routes/api/revisions/revisions.test.ts b/server/routes/api/revisions/revisions.test.ts index 4588f081ae..00254261ce 100644 --- a/server/routes/api/revisions/revisions.test.ts +++ b/server/routes/api/revisions/revisions.test.ts @@ -21,9 +21,8 @@ describe("#revisions.info", () => { createContext({ user }), document ); - const res = await server.post("/api/revisions.info", { + const res = await server.post("/api/revisions.info", user, { body: { - token: user.getJwtToken(), id: revision.id, }, }); @@ -44,9 +43,8 @@ describe("#revisions.info", () => { document ); const user = await buildUser(); - const res = await server.post("/api/revisions.info", { + const res = await server.post("/api/revisions.info", user, { body: { - token: user.getJwtToken(), id: revision.id, }, }); @@ -66,9 +64,8 @@ describe("#revisions.update", () => { document ); - const res = await server.post("/api/revisions.update", { + const res = await server.post("/api/revisions.update", user, { body: { - token: user.getJwtToken(), id: revision.id, name: "new name", }, @@ -89,9 +86,8 @@ describe("#revisions.update", () => { document ); - const res = await server.post("/api/revisions.update", { + const res = await server.post("/api/revisions.update", user, { body: { - token: user.getJwtToken(), id: revision.id, name: null, }, @@ -112,9 +108,8 @@ describe("#revisions.update", () => { document ); - const res = await server.post("/api/revisions.update", { + const res = await server.post("/api/revisions.update", user, { body: { - token: user.getJwtToken(), id: revision.id, name: "", }, @@ -133,9 +128,8 @@ describe("#revisions.update", () => { document ); - const res = await server.post("/api/revisions.update", { + const res = await server.post("/api/revisions.update", admin, { body: { - token: admin.getJwtToken(), id: revision.id, name: "new name", }, @@ -156,9 +150,8 @@ describe("#revisions.update", () => { document ); const user = await buildUser(); - const res = await server.post("/api/revisions.update", { + const res = await server.post("/api/revisions.update", user, { body: { - token: user.getJwtToken(), id: revision.id, name: "new name", }, @@ -175,9 +168,8 @@ describe("#revisions.list", () => { teamId: user.teamId, }); await Revision.createFromDocument(createContext({ user }), document); - const res = await server.post("/api/revisions.list", { + const res = await server.post("/api/revisions.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -208,9 +200,8 @@ describe("#revisions.list", () => { collectionId: collection.id, }, }); - const res = await server.post("/api/revisions.list", { + const res = await server.post("/api/revisions.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -220,9 +211,8 @@ describe("#revisions.list", () => { it("should require authorization", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/revisions.list", { + const res = await server.post("/api/revisions.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -241,9 +231,8 @@ describe("#revisions.export", () => { createContext({ user }), document ); - const res = await server.post("/api/revisions.export", { + const res = await server.post("/api/revisions.export", user, { body: { - token: user.getJwtToken(), id: revision.id, }, }); @@ -262,9 +251,8 @@ describe("#revisions.export", () => { createContext({ user }), document ); - const res = await server.post("/api/revisions.export", { + const res = await server.post("/api/revisions.export", user, { body: { - token: user.getJwtToken(), id: revision.id, }, headers: { @@ -286,9 +274,8 @@ describe("#revisions.export", () => { createContext({ user }), document ); - const res = await server.post("/api/revisions.export", { + const res = await server.post("/api/revisions.export", user, { body: { - token: user.getJwtToken(), id: revision.id, }, headers: { @@ -330,9 +317,8 @@ describe("#revisions.export", () => { document ); const user = await buildUser(); - const res = await server.post("/api/revisions.export", { + const res = await server.post("/api/revisions.export", user, { body: { - token: user.getJwtToken(), id: revision.id, }, }); diff --git a/server/routes/api/searches/searches.test.ts b/server/routes/api/searches/searches.test.ts index 38a24484d1..3dacdacba3 100644 --- a/server/routes/api/searches/searches.test.ts +++ b/server/routes/api/searches/searches.test.ts @@ -31,11 +31,7 @@ describe("#searches.list", () => { }); it("should succeed with status 200 ok returning results", async () => { - const res = await server.post("/api/searches.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/searches.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(3); @@ -46,9 +42,8 @@ describe("#searches.list", () => { }); it("should allow filtering by source", async () => { - const res = await server.post("/api/searches.list", { + const res = await server.post("/api/searches.list", user, { body: { - token: user.getJwtToken(), source: "api", }, }); @@ -72,9 +67,8 @@ describe("#searches.update", () => { }); it("should fail with status 400 bad request when an invalid id is provided", async () => { - const res = await server.post("/api/searches.update", { + const res = await server.post("/api/searches.update", user, { body: { - token: user.getJwtToken(), id: "id", score: 1, }, @@ -83,9 +77,8 @@ describe("#searches.update", () => { }); it("should fail with status 400 bad request when an invalid score is provided", async () => { - const res = await server.post("/api/searches.update", { + const res = await server.post("/api/searches.update", user, { body: { - token: user.getJwtToken(), id: searchQuery.id, score: 2, }, @@ -94,9 +87,8 @@ describe("#searches.update", () => { }); it("should succeed with status 200 ok and successfully update the query", async () => { - const res = await server.post("/api/searches.update", { + const res = await server.post("/api/searches.update", user, { body: { - token: user.getJwtToken(), id: searchQuery.id, score: 1, }, @@ -123,11 +115,7 @@ describe("#searches.delete", () => { }); it("should fail with status 400 bad request when no id or query is provided", async () => { - const res = await server.post("/api/searches.delete", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/searches.delete", user); const body = await res.json(); expect(res.status).toEqual(400); @@ -135,9 +123,8 @@ describe("#searches.delete", () => { }); it("should fail with status 400 bad request when an invalid id is provided", async () => { - const res = await server.post("/api/searches.delete", { + const res = await server.post("/api/searches.delete", user, { body: { - token: user.getJwtToken(), id: "id", }, }); @@ -156,9 +143,8 @@ describe("#searches.delete", () => { }); expect(searchQueries).toHaveLength(1); - const res = await server.post("/api/searches.delete", { + const res = await server.post("/api/searches.delete", user, { body: { - token: user.getJwtToken(), id: searchQuery.id, }, }); diff --git a/server/routes/api/shares/shares.test.ts b/server/routes/api/shares/shares.test.ts index 91be73380c..6ce258bfe8 100644 --- a/server/routes/api/shares/shares.test.ts +++ b/server/routes/api/shares/shares.test.ts @@ -19,9 +19,8 @@ const server = getTestServer(); describe("#shares.list", () => { it("should fail with status 400 bad request when an invalid sort value is suppled", async () => { const user = await buildUser(); - const res = await server.post("/api/shares.list", { + const res = await server.post("/api/shares.list", user, { body: { - token: user.getJwtToken(), sort: "foo", }, }); @@ -47,11 +46,7 @@ describe("#shares.list", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -71,9 +66,8 @@ describe("#shares.list", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.list", { + const res = await server.post("/api/shares.list", user, { body: { - token: user.getJwtToken(), query: "test", }, }); @@ -98,9 +92,8 @@ describe("#shares.list", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.list", { + const res = await server.post("/api/shares.list", user, { body: { - token: user.getJwtToken(), query: "test", }, }); @@ -123,11 +116,7 @@ describe("#shares.list", () => { userId: user.id, }); await share.revoke(createContext({ user })); - const res = await server.post("/api/shares.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -145,11 +134,7 @@ describe("#shares.list", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -167,11 +152,7 @@ describe("#shares.list", () => { userId: user.id, }); await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); - const res = await server.post("/api/shares.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.list", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -187,11 +168,7 @@ describe("#shares.list", () => { teamId: admin.teamId, userId: user.id, }); - const res = await server.post("/api/shares.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.list", admin); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(1); @@ -219,11 +196,7 @@ describe("#shares.list", () => { }); collection.permission = null; await collection.save(); - const res = await server.post("/api/shares.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.list", admin); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.length).toEqual(0); @@ -240,11 +213,7 @@ describe("#shares.list", () => { describe("#shares.create", () => { it("should fail with status 400 bad request when both documentId and collectionId are missing", async () => { const user = await buildUser(); - const res = await server.post("/api/shares.create", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.create", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -254,9 +223,8 @@ describe("#shares.create", () => { it("should fail with status 400 bad request when documentId is invalid", async () => { const user = await buildUser(); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: "foo", }, }); @@ -271,9 +239,8 @@ describe("#shares.create", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); @@ -289,9 +256,8 @@ describe("#shares.create", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -307,9 +273,8 @@ describe("#shares.create", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, includeChildDocuments: true, published: true, @@ -330,9 +295,8 @@ describe("#shares.create", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, published: true, }, @@ -349,9 +313,8 @@ describe("#shares.create", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, published: true, allowIndexing: false, @@ -392,9 +355,8 @@ describe("#shares.create", () => { }, } ); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, published: true, }, @@ -428,17 +390,15 @@ describe("#shares.create", () => { }, } ); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); const body = await res.json(); expect(res.status).toEqual(200); - const response = await server.post("/api/shares.update", { + const response = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: body.data.id, published: true, }, @@ -458,9 +418,8 @@ describe("#shares.create", () => { userId: user.id, }); await share.revoke(createContext({ user })); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -481,9 +440,8 @@ describe("#shares.create", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -499,17 +457,15 @@ describe("#shares.create", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); const body = await res.json(); expect(res.status).toEqual(200); - const response = await server.post("/api/shares.update", { + const response = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: body.data.id, published: true, }, @@ -529,17 +485,15 @@ describe("#shares.create", () => { collectionId: collection.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); const body = await res.json(); expect(res.status).toEqual(200); - const response = await server.post("/api/shares.update", { + const response = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: body.data.id, published: true, }, @@ -562,9 +516,8 @@ describe("#shares.create", () => { it("should require authorization", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -575,9 +528,8 @@ describe("#shares.create", () => { const user = await buildUser(); const otherDocument = await buildDocument(); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: otherDocument.id, }, }); @@ -588,9 +540,8 @@ describe("#shares.create", () => { const user = await buildUser(); const otherDocument = await buildDocument(); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), documentId: otherDocument.id, published: true, }, @@ -602,9 +553,8 @@ describe("#shares.create", () => { const user = await buildUser(); const otherCollection = await buildCollection(); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), collectionId: otherCollection.id, }, }); @@ -622,9 +572,8 @@ describe("#shares.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, documentId: document.id, }, @@ -643,9 +592,8 @@ describe("#shares.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/shares.create", { + const res = await server.post("/api/shares.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, documentId: document.id, published: true, @@ -658,11 +606,7 @@ describe("#shares.create", () => { describe("#shares.info", () => { it("should fail with status 400 bad request when id, collectionId and documentId are missing", async () => { const user = await buildUser(); - const res = await server.post("/api/shares.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.info", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -672,9 +616,8 @@ describe("#shares.info", () => { it("should fail with status 400 bad request when documentId is invalid", async () => { const user = await buildUser(); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), documentId: "foo", }, }); @@ -702,9 +645,8 @@ describe("#shares.info", () => { teamId: admin.teamId, userId: admin.id, }); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -722,9 +664,8 @@ describe("#shares.info", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), id: share.id, }, }); @@ -747,9 +688,8 @@ describe("#shares.info", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -765,9 +705,8 @@ describe("#shares.info", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -803,9 +742,8 @@ describe("#shares.info", () => { }); await collection.reload(); await collection.addDocumentToStructure(childDocument, 0); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), documentId: childDocument.id, }, }); @@ -852,9 +790,8 @@ describe("#shares.info", () => { userId: user.id, }); await collection.addDocumentToStructure(childDocument, 0); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), documentId: childDocument.id, }, }); @@ -897,9 +834,8 @@ describe("#shares.info", () => { }); await collection.reload(); await collection.addDocumentToStructure(childDocument, 0); - const res = await server.post("/api/shares.info", { + const res = await server.post("/api/shares.info", user, { body: { - token: user.getJwtToken(), documentId: childDocument.id, }, }); @@ -928,9 +864,8 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, urlId: "url_id", }, @@ -944,9 +879,8 @@ describe("#shares.update", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), urlId: "url-id", }, }); @@ -967,9 +901,8 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, urlId: "url-id", }, @@ -989,17 +922,15 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - await server.post("/api/shares.update", { + await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, urlId: "url-id", }, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, urlId: null, }, @@ -1019,9 +950,8 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, title: "Custom Title", iconUrl: "https://example.com/icon.png", @@ -1045,9 +975,8 @@ describe("#shares.update", () => { title: "Custom Title", iconUrl: "https://example.com/icon.png", }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, title: null, iconUrl: null, @@ -1070,9 +999,8 @@ describe("#shares.update", () => { teamId: user.teamId, title: "Custom Title", }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, title: "", }, @@ -1092,9 +1020,8 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, iconUrl: "/uploads/icon.png", }, @@ -1114,9 +1041,8 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, iconUrl: "not a url", }, @@ -1134,9 +1060,8 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, iconUrl: "javascript:alert(1)", }, @@ -1154,9 +1079,8 @@ describe("#shares.update", () => { documentId: document.id, teamId: user.teamId, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, published: true, }, @@ -1178,9 +1102,8 @@ describe("#shares.update", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, published: true, }, @@ -1201,9 +1124,8 @@ describe("#shares.update", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", admin, { body: { - token: admin.getJwtToken(), id: share.id, published: true, }, @@ -1246,9 +1168,8 @@ describe("#shares.update", () => { teamId: admin.teamId, userId: admin.id, }); - const res = await server.post("/api/shares.update", { + const res = await server.post("/api/shares.update", user, { body: { - token: user.getJwtToken(), id: share.id, published: true, }, @@ -1260,11 +1181,7 @@ describe("#shares.update", () => { describe("#shares.revoke", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); - const res = await server.post("/api/shares.revoke", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/shares.revoke", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -1283,9 +1200,8 @@ describe("#shares.revoke", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.revoke", { + const res = await server.post("/api/shares.revoke", user, { body: { - token: user.getJwtToken(), id: share.id, }, }); @@ -1303,9 +1219,8 @@ describe("#shares.revoke", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.revoke", { + const res = await server.post("/api/shares.revoke", user, { body: { - token: user.getJwtToken(), id: share.id, }, }); @@ -1324,9 +1239,8 @@ describe("#shares.revoke", () => { userId: user.id, }); await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); - const res = await server.post("/api/shares.revoke", { + const res = await server.post("/api/shares.revoke", user, { body: { - token: user.getJwtToken(), id: share.id, }, }); @@ -1343,9 +1257,8 @@ describe("#shares.revoke", () => { teamId: user.teamId, userId: user.id, }); - const res = await server.post("/api/shares.revoke", { + const res = await server.post("/api/shares.revoke", admin, { body: { - token: admin.getJwtToken(), id: share.id, }, }); @@ -1383,9 +1296,8 @@ describe("#shares.revoke", () => { teamId: admin.teamId, userId: admin.id, }); - const res = await server.post("/api/shares.revoke", { + const res = await server.post("/api/shares.revoke", user, { body: { - token: user.getJwtToken(), id: share.id, }, }); diff --git a/server/routes/api/stars/stars.test.ts b/server/routes/api/stars/stars.test.ts index a3b1b5e948..d659c043dc 100644 --- a/server/routes/api/stars/stars.test.ts +++ b/server/routes/api/stars/stars.test.ts @@ -7,11 +7,7 @@ describe("#stars.create", () => { it("should fail with status 400 bad request when both documentId and collectionId are missing", async () => { const user = await buildUser(); - const res = await server.post("/api/stars.create", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/stars.create", user); const body = await res.json(); expect(res.status).toEqual(400); @@ -27,9 +23,8 @@ describe("#stars.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/stars.create", { + const res = await server.post("/api/stars.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -55,11 +50,7 @@ describe("#stars.list", () => { userId: user.id, }); - const res = await server.post("/api/stars.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/stars.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -76,11 +67,7 @@ describe("#stars.list", () => { describe("#stars.update", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); - const res = await server.post("/api/stars.update", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/stars.update", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -93,9 +80,8 @@ describe("#stars.update", () => { const star = await buildStar({ userId: user.id, }); - const res = await server.post("/api/stars.update", { + const res = await server.post("/api/stars.update", user, { body: { - token: user.getJwtToken(), id: star.id, index: "i", }, @@ -111,11 +97,7 @@ describe("#stars.update", () => { describe("#stars.delete", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); - const res = await server.post("/api/stars.delete", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/stars.delete", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( @@ -129,10 +111,9 @@ describe("#stars.delete", () => { userId: user.id, }); - const res = await server.post("/api/stars.delete", { + const res = await server.post("/api/stars.delete", user, { body: { id: star.id, - token: user.getJwtToken(), }, }); diff --git a/server/routes/api/subscriptions/subscriptions.test.ts b/server/routes/api/subscriptions/subscriptions.test.ts index a48778f4cd..bd63d0871c 100644 --- a/server/routes/api/subscriptions/subscriptions.test.ts +++ b/server/routes/api/subscriptions/subscriptions.test.ts @@ -22,9 +22,8 @@ describe("#subscriptions.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/subscriptions.create", { + const res = await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, event: SubscriptionType.Document, }, @@ -46,9 +45,8 @@ describe("#subscriptions.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/subscriptions.create", { + const res = await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, @@ -70,9 +68,8 @@ describe("#subscriptions.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/subscriptions.create", { + const res = await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, @@ -104,36 +101,32 @@ describe("#subscriptions.create", () => { }); // First `subscriptions.create` request. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, }); // Second `subscriptions.create` request. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, }); // Third `subscriptions.create` request. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, }); // List subscriptions associated with `document.id` - const res = await server.post("/api/subscriptions.list", { + const res = await server.post("/api/subscriptions.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, @@ -156,9 +149,8 @@ describe("#subscriptions.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/subscriptions.create", { + const res = await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, // Subscription on event that cannot be subscribed to. event: "documents.publish", @@ -178,9 +170,8 @@ describe("#subscriptions.create", () => { it("should throw 400 when neither documentId nor collectionId is provided", async () => { const user = await buildUser(); - const res = await server.post("/api/subscriptions.create", { + const res = await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), event: SubscriptionType.Document, }, }); @@ -205,9 +196,8 @@ describe("#subscriptions.create", () => { teamId: user.teamId, }); - const res = await server.post("/api/subscriptions.create", { + const res = await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, documentId: document.id, event: SubscriptionType.Document, @@ -236,9 +226,8 @@ describe("#subscriptions.create", () => { teamId: otherUser.teamId, }); - const res = await server.post("/api/subscriptions.create", { + const res = await server.post("/api/subscriptions.create", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, documentId: otherDocument.id, event: SubscriptionType.Document, @@ -265,17 +254,15 @@ describe("#subscriptions.info", () => { teamId: user.teamId, }); - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber, { body: { - token: subscriber.getJwtToken(), collectionId: collection.id, event: SubscriptionType.Document, }, }); - const res = await server.post("/api/subscriptions.info", { + const res = await server.post("/api/subscriptions.info", subscriber, { body: { - token: subscriber.getJwtToken(), collectionId: collection.id, event: SubscriptionType.Document, }, @@ -305,18 +292,16 @@ describe("#subscriptions.info", () => { }); // `subscriber` subscribes to `document0`. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber, { body: { - token: subscriber.getJwtToken(), documentId: document0.id, event: SubscriptionType.Document, }, }); // `subscriber` subscribes to `document1`. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber, { body: { - token: subscriber.getJwtToken(), documentId: document1.id, event: SubscriptionType.Document, }, @@ -324,13 +309,16 @@ describe("#subscriptions.info", () => { // `subscriber` wants info about // their subscription on `document0`. - const subscription0 = await server.post("/api/subscriptions.info", { - body: { - token: subscriber.getJwtToken(), - documentId: document0.id, - event: SubscriptionType.Document, - }, - }); + const subscription0 = await server.post( + "/api/subscriptions.info", + subscriber, + { + body: { + documentId: document0.id, + event: SubscriptionType.Document, + }, + } + ); const response0 = await subscription0.json(); @@ -343,9 +331,8 @@ describe("#subscriptions.info", () => { it("should throw 400 when neither documentId nor collectionId is provided", async () => { const user = await buildUser(); - const res = await server.post("/api/subscriptions.info", { + const res = await server.post("/api/subscriptions.info", user, { body: { - token: user.getJwtToken(), event: SubscriptionType.Document, }, }); @@ -367,9 +354,8 @@ describe("#subscriptions.info", () => { teamId: author.teamId, }); - const res = await server.post("/api/subscriptions.info", { + const res = await server.post("/api/subscriptions.info", subscriber, { body: { - token: subscriber.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, @@ -396,27 +382,24 @@ describe("#subscriptions.info", () => { }); // `subscriber` subscribes to `document0`. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber, { body: { - token: subscriber.getJwtToken(), documentId: document0.id, event: SubscriptionType.Document, }, }); // `subscriber` subscribes to `document1`. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber, { body: { - token: subscriber.getJwtToken(), documentId: document1.id, event: SubscriptionType.Document, }, }); // `viewer` wants info about `subscriber`'s subscription on `document0`. - const subscription0 = await server.post("/api/subscriptions.info", { + const subscription0 = await server.post("/api/subscriptions.info", viewer, { body: { - token: viewer.getJwtToken(), documentId: document0.id, event: SubscriptionType.Document, }, @@ -431,9 +414,8 @@ describe("#subscriptions.info", () => { expect(response0.message).toEqual("Authorization error"); // `viewer` wants info about `subscriber`'s subscription on `document0`. - const subscription1 = await server.post("/api/subscriptions.info", { + const subscription1 = await server.post("/api/subscriptions.info", viewer, { body: { - token: viewer.getJwtToken(), documentId: document1.id, event: SubscriptionType.Document, }, @@ -467,27 +449,24 @@ describe("#subscriptions.info", () => { }); // `subscriber` subscribes to `document0`. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber, { body: { - token: subscriber.getJwtToken(), documentId: document0.id, event: SubscriptionType.Document, }, }); // `subscriber` subscribes to `document1`. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber, { body: { - token: subscriber.getJwtToken(), documentId: document1.id, event: SubscriptionType.Document, }, }); // `viewer` wants info about `subscriber`'s subscription on `document0` - they have requested an invalid event. - const subscription0 = await server.post("/api/subscriptions.info", { + const subscription0 = await server.post("/api/subscriptions.info", viewer, { body: { - token: viewer.getJwtToken(), documentId: document0.id, event: "documents.changed", }, @@ -505,9 +484,8 @@ describe("#subscriptions.info", () => { // `viewer` wants info about `subscriber`'s // subscription on `document0`. // They have requested an invalid event. - const subscription1 = await server.post("/api/subscriptions.info", { + const subscription1 = await server.post("/api/subscriptions.info", viewer, { body: { - token: viewer.getJwtToken(), documentId: document1.id, event: "doc.affected", }, @@ -538,9 +516,8 @@ describe("#subscriptions.list", () => { documentId: document.id, }); - const res = await server.post("/api/subscriptions.list", { + const res = await server.post("/api/subscriptions.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, event: SubscriptionType.Document, }, @@ -570,9 +547,8 @@ describe("#subscriptions.list", () => { // `subscriber0` wants to be notified about // changes on this document. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber0, { body: { - token: subscriber0.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -580,9 +556,8 @@ describe("#subscriptions.list", () => { // `subscriber1` wants to be notified about // changes on this document. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber1, { body: { - token: subscriber1.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -590,9 +565,8 @@ describe("#subscriptions.list", () => { // `viewer` just wants to know the subscribers // for this document. - const res = await server.post("/api/subscriptions.list", { + const res = await server.post("/api/subscriptions.list", viewer, { body: { - token: viewer.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -606,9 +580,8 @@ describe("#subscriptions.list", () => { // `subscriber0` wants to know the subscribers // for this document. - const res0 = await server.post("/api/subscriptions.list", { + const res0 = await server.post("/api/subscriptions.list", subscriber0, { body: { - token: subscriber0.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -623,9 +596,8 @@ describe("#subscriptions.list", () => { // `subscriber1` wants to know the subscribers // for this document. - const res1 = await server.post("/api/subscriptions.list", { + const res1 = await server.post("/api/subscriptions.list", subscriber1, { body: { - token: subscriber1.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -654,9 +626,8 @@ describe("#subscriptions.list", () => { // `subscriber0` wants to be notified about // changes on this document. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber0, { body: { - token: subscriber0.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -664,9 +635,8 @@ describe("#subscriptions.list", () => { // `subscriber1` wants to be notified about // changes on this document. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber1, { body: { - token: subscriber1.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -674,9 +644,8 @@ describe("#subscriptions.list", () => { // `viewer` just wants to know the subscribers // for this document. - const res = await server.post("/api/subscriptions.list", { + const res = await server.post("/api/subscriptions.list", viewer, { body: { - token: viewer.getJwtToken(), documentId: document.id, event: "changes.on.documents", }, @@ -707,9 +676,8 @@ describe("#subscriptions.list", () => { // `subscriber0` wants to be notified about // changes on this document. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber0, { body: { - token: subscriber0.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -717,9 +685,8 @@ describe("#subscriptions.list", () => { // `subscriber1` wants to be notified about // changes on this document. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber1, { body: { - token: subscriber1.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -727,9 +694,8 @@ describe("#subscriptions.list", () => { // `viewer` wants to know the subscribers // for this internal document. - const res = await server.post("/api/subscriptions.info", { + const res = await server.post("/api/subscriptions.info", viewer, { body: { - token: viewer.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -748,9 +714,8 @@ describe("#subscriptions.list", () => { it("should throw 400 when neither documentId nor collectionId is provided", async () => { const user = await buildUser(); - const res = await server.post("/api/subscriptions.list", { + const res = await server.post("/api/subscriptions.list", user, { body: { - token: user.getJwtToken(), event: SubscriptionType.Document, }, }); @@ -870,10 +835,9 @@ describe("#subscriptions.delete", () => { documentId: document.id, }); - const res = await server.post("/api/subscriptions.delete", { + const res = await server.post("/api/subscriptions.delete", user, { body: { id: subscription.id, - token: user.getJwtToken(), }, }); @@ -904,10 +868,9 @@ describe("#subscriptions.delete", () => { collectionId: collection.id, }); - const res = await server.post("/api/subscriptions.delete", { + const res = await server.post("/api/subscriptions.delete", user, { body: { id: subscription.id, - token: user.getJwtToken(), }, }); @@ -943,9 +906,8 @@ describe("#subscriptions.delete", () => { // `subscriber0` wants to be notified about // changes on this document. - await server.post("/api/subscriptions.create", { + await server.post("/api/subscriptions.create", subscriber0, { body: { - token: subscriber0.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -953,9 +915,8 @@ describe("#subscriptions.delete", () => { // `subscriber1` wants to be notified about // changes on this document. - const resp = await server.post("/api/subscriptions.create", { + const resp = await server.post("/api/subscriptions.create", subscriber1, { body: { - token: subscriber1.getJwtToken(), documentId: document.id, event: "documents.update", }, @@ -966,10 +927,9 @@ describe("#subscriptions.delete", () => { // `subscriber0` wants to change `subscriber1`'s // subscription for this document. - const res = await server.post("/api/subscriptions.delete", { + const res = await server.post("/api/subscriptions.delete", subscriber0, { body: { id: subscription1Id, - token: subscriber0.getJwtToken(), }, }); diff --git a/server/routes/api/teams/teams.test.ts b/server/routes/api/teams/teams.test.ts index 4e42b77fe2..5473f13921 100644 --- a/server/routes/api/teams/teams.test.ts +++ b/server/routes/api/teams/teams.test.ts @@ -15,9 +15,8 @@ describe("teams.create", () => { const team = await buildTeam(); const user = await buildAdmin({ teamId: team.id }); const name = faker.company.name(); - const res = await server.post("/api/teams.create", { + const res = await server.post("/api/teams.create", user, { body: { - token: user.getJwtToken(), name, }, }); @@ -31,9 +30,8 @@ describe("teams.create", () => { const team = await buildTeam(); const user = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/teams.create", { + const res = await server.post("/api/teams.create", user, { body: { - token: user.getJwtToken(), name: faker.company.name(), }, }); @@ -45,9 +43,8 @@ describe("#team.update", () => { it("should update team details", async () => { const admin = await buildAdmin(); const name = faker.company.name(); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), name, }, }); @@ -59,9 +56,8 @@ describe("#team.update", () => { it("should add avatar", async () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), avatarUrl: "https://random-url.com", }, }); @@ -73,9 +69,8 @@ describe("#team.update", () => { it("should remove avatar", async () => { const team = await buildTeam({ avatarUrl: "https://random-url.com" }); const admin = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), avatarUrl: null, }, }); @@ -86,9 +81,8 @@ describe("#team.update", () => { it("should not invalidate request if subdomain is sent as null", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), subdomain: null, }, }); @@ -100,9 +94,8 @@ describe("#team.update", () => { const admin = await buildAdmin({ teamId: team.id }); const domain1 = faker.internet.domainName(); const domain2 = faker.internet.domainName(); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), allowedDomains: [domain1, "", domain2, "", ""], }, }); @@ -127,9 +120,8 @@ describe("#team.update", () => { createdById: admin.id, }); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), allowedDomains: [], }, }); @@ -156,9 +148,8 @@ describe("#team.update", () => { const domain1 = faker.internet.domainName(); const domain2 = faker.internet.domainName(); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), allowedDomains: [domain1, domain2], }, }); @@ -177,16 +168,14 @@ describe("#team.update", () => { it("should only allow member,viewer or admin as default role", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), defaultUserRole: "New name", }, }); expect(res.status).toEqual(400); - const successRes = await server.post("/api/team.update", { + const successRes = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), defaultUserRole: "viewer", }, }); @@ -198,9 +187,8 @@ describe("#team.update", () => { it("should allow identical team details", async () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), name: team.name, }, }); @@ -211,9 +199,8 @@ describe("#team.update", () => { it("should require admin", async () => { const user = await buildUser(); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", user, { body: { - token: user.getJwtToken(), name: faker.company.name(), }, }); @@ -227,9 +214,8 @@ describe("#team.update", () => { it("should not allow setting team name to null", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), name: null, }, }); @@ -244,9 +230,8 @@ describe("#team.update", () => { userId: admin.id, }); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), defaultCollectionId: collection.id, }, }); @@ -268,9 +253,8 @@ describe("#team.update", () => { userId: admin.id, }); - const res = await server.post("/api/team.update", { + const res = await server.post("/api/team.update", admin, { body: { - token: admin.getJwtToken(), defaultCollectionId: collection.id, }, }); @@ -279,9 +263,8 @@ describe("#team.update", () => { expect(res.status).toEqual(200); expect(body.data.defaultCollectionId).toEqual(collection.id); - const updateRes = await server.post("/api/collections.update", { + const updateRes = await server.post("/api/collections.update", admin, { body: { - token: admin.getJwtToken(), id: collection.id, permission: null, }, @@ -289,11 +272,7 @@ describe("#team.update", () => { expect(updateRes.status).toEqual(200); - const res3 = await server.post("/api/auth.info", { - body: { - token: admin.getJwtToken(), - }, - }); + const res3 = await server.post("/api/auth.info", admin); const body3 = await res3.json(); expect(res3.status).toEqual(200); expect(body3.data.team.defaultCollectionId).toEqual(null); diff --git a/server/routes/api/templates/templates.test.ts b/server/routes/api/templates/templates.test.ts index da6bd721b1..947aa6c017 100644 --- a/server/routes/api/templates/templates.test.ts +++ b/server/routes/api/templates/templates.test.ts @@ -20,11 +20,7 @@ describe("#templates.list", () => { teamId: user.teamId, }); - const res = await server.post("/api/templates.list", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/templates.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -45,9 +41,8 @@ describe("#templates.list", () => { collectionId: collection.id, }); - const res = await server.post("/api/templates.list", { + const res = await server.post("/api/templates.list", user, { body: { - token: user.getJwtToken(), collectionId: collection.id, }, }); @@ -72,9 +67,8 @@ describe("#templates.info", () => { teamId: user.teamId, }); - const res = await server.post("/api/templates.info", { + const res = await server.post("/api/templates.info", user, { body: { - token: user.getJwtToken(), id: template.id, }, }); @@ -92,9 +86,8 @@ describe("#templates.info", () => { it("should fail for invalid template id", async () => { const user = await buildUser(); - const res = await server.post("/api/templates.info", { + const res = await server.post("/api/templates.info", user, { body: { - token: user.getJwtToken(), id: "invalid", }, }); @@ -112,9 +105,8 @@ describe("#templates.update", () => { title: "Original title", }); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", user, { body: { - token: user.getJwtToken(), id: template.id, title: "New title", }, @@ -148,9 +140,8 @@ describe("#templates.update", () => { ], }; - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", user, { body: { - token: user.getJwtToken(), id: template.id, data, }, @@ -173,9 +164,8 @@ describe("#templates.update", () => { teamId: admin.teamId, }); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", admin, { body: { - token: admin.getJwtToken(), id: template.id, collectionId: targetCollection.id, }, @@ -199,9 +189,8 @@ describe("#templates.update", () => { permission: null, }); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", user, { body: { - token: user.getJwtToken(), id: template.id, collectionId: inaccessibleCollection.id, }, @@ -222,9 +211,8 @@ describe("#templates.update", () => { // but is not a team admin const user = await buildUser({ teamId: admin.teamId }); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", user, { body: { - token: user.getJwtToken(), id: template.id, collectionId: null, }, @@ -240,9 +228,8 @@ describe("#templates.update", () => { teamId: admin.teamId, }); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", admin, { body: { - token: admin.getJwtToken(), id: template.id, collectionId: null, }, @@ -255,9 +242,8 @@ describe("#templates.update", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", user, { body: { - token: user.getJwtToken(), title: "New title", }, }); @@ -281,9 +267,8 @@ describe("#templates.duplicate", () => { title: "test", }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", user, { body: { - token: user.getJwtToken(), id: template.id, }, }); @@ -302,9 +287,8 @@ describe("#templates.duplicate", () => { teamId: user.teamId, }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", user, { body: { - token: user.getJwtToken(), id: template.id, title: "New title", }, @@ -329,9 +313,8 @@ describe("#templates.duplicate", () => { teamId: admin.teamId, }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", admin, { body: { - token: admin.getJwtToken(), id: template.id, collectionId: targetCollection.id, }, @@ -355,9 +338,8 @@ describe("#templates.duplicate", () => { permission: null, }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", user, { body: { - token: user.getJwtToken(), id: template.id, collectionId: inaccessibleCollection.id, }, @@ -376,9 +358,8 @@ describe("#templates.duplicate", () => { // Non-admin member on the same team const user = await buildUser({ teamId: admin.teamId }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", user, { body: { - token: user.getJwtToken(), id: template.id, collectionId: null, }, @@ -394,9 +375,8 @@ describe("#templates.duplicate", () => { teamId: admin.teamId, }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", admin, { body: { - token: admin.getJwtToken(), id: template.id, collectionId: null, }, @@ -414,9 +394,8 @@ describe("#templates.duplicate", () => { teamId: user.teamId, }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", user, { body: { - token: user.getJwtToken(), id: template.id, }, }); @@ -433,9 +412,8 @@ describe("#templates.duplicate", () => { it("should fail for invalid template id", async () => { const user = await buildUser(); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", user, { body: { - token: user.getJwtToken(), id: "invalid", }, }); @@ -452,9 +430,8 @@ describe("#templates.delete", () => { teamId: user.teamId, }); - const res = await server.post("/api/templates.delete", { + const res = await server.post("/api/templates.delete", user, { body: { - token: user.getJwtToken(), id: template.id, }, }); @@ -466,11 +443,7 @@ describe("#templates.delete", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); - const res = await server.post("/api/templates.delete", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/templates.delete", user); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Must be a valid UUID or slug"); @@ -494,9 +467,8 @@ describe("templateManagement", () => { const member = await buildUser({ teamId: admin.teamId }); - const res = await server.post("/api/templates.create", { + const res = await server.post("/api/templates.create", member, { body: { - token: member.getJwtToken(), collectionId: collection.id, title: "Member template", data: { @@ -527,9 +499,8 @@ describe("templateManagement", () => { const member = await buildUser({ teamId: admin.teamId }); - const res = await server.post("/api/templates.create", { + const res = await server.post("/api/templates.create", member, { body: { - token: member.getJwtToken(), collectionId: collection.id, title: "Member template", data: { @@ -564,9 +535,8 @@ describe("templateManagement", () => { permission: CollectionPermission.ReadWrite, }); - const res = await server.post("/api/templates.create", { + const res = await server.post("/api/templates.create", member, { body: { - token: member.getJwtToken(), collectionId: collection.id, title: "Member template", data: { @@ -603,9 +573,8 @@ describe("templateManagement", () => { permission: CollectionPermission.Read, }); - const res = await server.post("/api/templates.create", { + const res = await server.post("/api/templates.create", member, { body: { - token: member.getJwtToken(), collectionId: collection.id, title: "Member template", data: { @@ -640,9 +609,8 @@ describe("templateManagement", () => { collectionId: collection.id, }); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", member, { body: { - token: member.getJwtToken(), id: template.id, title: "Updated by member", }, @@ -668,9 +636,8 @@ describe("templateManagement", () => { collectionId: collection.id, }); - const res = await server.post("/api/templates.update", { + const res = await server.post("/api/templates.update", member, { body: { - token: member.getJwtToken(), id: template.id, title: "Updated by member", }, @@ -696,9 +663,8 @@ describe("templateManagement", () => { collectionId: collection.id, }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", member, { body: { - token: member.getJwtToken(), id: template.id, }, }); @@ -723,9 +689,8 @@ describe("templateManagement", () => { collectionId: collection.id, }); - const res = await server.post("/api/templates.duplicate", { + const res = await server.post("/api/templates.duplicate", member, { body: { - token: member.getJwtToken(), id: template.id, }, }); @@ -751,9 +716,8 @@ describe("templateManagement", () => { }); await template.destroy(); - const res = await server.post("/api/templates.restore", { + const res = await server.post("/api/templates.restore", member, { body: { - token: member.getJwtToken(), id: template.id, }, }); @@ -779,9 +743,8 @@ describe("templateManagement", () => { }); await template.destroy(); - const res = await server.post("/api/templates.restore", { + const res = await server.post("/api/templates.restore", member, { body: { - token: member.getJwtToken(), id: template.id, }, }); @@ -806,9 +769,8 @@ describe("templateManagement", () => { collectionId: collection.id, }); - const res = await server.post("/api/templates.delete", { + const res = await server.post("/api/templates.delete", member, { body: { - token: member.getJwtToken(), id: template.id, }, }); @@ -833,9 +795,8 @@ describe("templateManagement", () => { collectionId: collection.id, }); - const res = await server.post("/api/templates.delete", { + const res = await server.post("/api/templates.delete", member, { body: { - token: member.getJwtToken(), id: template.id, }, }); diff --git a/server/routes/api/urls/urls.test.ts b/server/routes/api/urls/urls.test.ts index dd41ceeed5..28ac6fe78f 100644 --- a/server/routes/api/urls/urls.test.ts +++ b/server/routes/api/urls/urls.test.ts @@ -53,9 +53,8 @@ describe("#urls.unfurl", () => { }); it("should fail with status 400 bad request when url is invalid", async () => { - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: "/doc/foo-bar", }, }); @@ -66,9 +65,8 @@ describe("#urls.unfurl", () => { }); it("should fail with status 400 bad request when mention url is invalid", async () => { - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: "mention://1/foo/1", }, }); @@ -79,9 +77,8 @@ describe("#urls.unfurl", () => { }); it("should fail with status 400 bad request when mention url is supplied without documentId", async () => { - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: "mention://2767ba0e-ac5c-4533-b9cf-4f5fc456600e/user/34095ac1-c808-45c0-8c6e-6c554497de64", }, }); @@ -92,9 +89,8 @@ describe("#urls.unfurl", () => { }); it("should fail with status 404 not found when mention user does not exist", async () => { - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: "mention://2767ba0e-ac5c-4533-b9cf-4f5fc456600e/user/34095ac1-c808-45c0-8c6e-6c554497de64", documentId: "2767ba0e-ac5c-4533-b9cf-4f5fc456600e", }, @@ -110,9 +106,8 @@ describe("#urls.unfurl", () => { teamId: user.teamId, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `mention://2767ba0e-ac5c-4533-b9cf-4f5fc456600e/user/${mentionedUser.id}`, documentId: "2767ba0e-ac5c-4533-b9cf-4f5fc456600e", }, @@ -129,9 +124,8 @@ describe("#urls.unfurl", () => { teamId: user.teamId, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `mention://2767ba0e-ac5c-4533-b9cf-4f5fc456600e/user/${mentionedUser.id}`, documentId: document.id, }, @@ -147,9 +141,8 @@ describe("#urls.unfurl", () => { teamId: user.teamId, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `mention://2767ba0e-ac5c-4533-b9cf-4f5fc456600e/user/${mentionedUser.id}`, documentId: document.id, }, @@ -161,9 +154,8 @@ describe("#urls.unfurl", () => { }); it("should return 204 when internal document url points to non-existent document", async () => { - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `${env.URL}/doc/non-existent-doc-abc123`, }, }); @@ -175,9 +167,8 @@ describe("#urls.unfurl", () => { teamId: user.teamId, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `${env.URL}/${document.url}`, documentId: document.id, }, @@ -200,9 +191,8 @@ describe("#urls.unfurl", () => { published: true, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `${env.URL}/s/${share.id}/doc/${document.urlId}`, }, }); @@ -225,9 +215,8 @@ describe("#urls.unfurl", () => { published: true, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `${env.URL}/s/${share.urlId}/doc/${document.urlId}`, }, }); @@ -272,9 +261,8 @@ describe("#urls.unfurl", () => { published: true, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `${env.URL}/s/${share.id}/doc/${document.urlId}`, }, }); @@ -294,9 +282,8 @@ describe("#urls.unfurl", () => { published: true, }); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: `${env.URL}/s/${share.id}`, }, }); @@ -337,9 +324,8 @@ describe("#urls.unfurl", () => { }) ); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: "https://www.flickr.com", }, }); @@ -368,9 +354,8 @@ describe("#urls.unfurl", () => { }) ); - const res = await server.post("/api/urls.unfurl", { + const res = await server.post("/api/urls.unfurl", user, { body: { - token: user.getJwtToken(), url: "https://random.url", }, }); @@ -386,19 +371,14 @@ describe("#urls.checkEmbed", () => { }); it("should fail with status 400 bad request when url is missing", async () => { - const res = await server.post("/api/urls.checkEmbed", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/urls.checkEmbed", user); expect(res.status).toEqual(400); }); it("should fail with status 400 bad request when url is not a valid URL", async () => { - const res = await server.post("/api/urls.checkEmbed", { + const res = await server.post("/api/urls.checkEmbed", user, { body: { - token: user.getJwtToken(), url: "not-a-url", }, }); @@ -408,9 +388,8 @@ describe("#urls.checkEmbed", () => { it("should return a result for valid URLs", async () => { // Use a YouTube URL which matches a known embed pattern - const res = await server.post("/api/urls.checkEmbed", { + const res = await server.post("/api/urls.checkEmbed", user, { body: { - token: user.getJwtToken(), url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", }, }); @@ -425,9 +404,8 @@ describe("#urls.checkEmbed", () => { describe("#urls.validateCustomDomain", () => { it("should succeed with custom domain pointing at server", async () => { const user = await buildUser(); - const res = await server.post("/api/urls.validateCustomDomain", { + const res = await server.post("/api/urls.validateCustomDomain", user, { body: { - token: user.getJwtToken(), hostname: "valid.custom.domain", }, }); @@ -436,9 +414,8 @@ describe("#urls.validateCustomDomain", () => { it("should fail with another domain", async () => { const user = await buildUser(); - const res = await server.post("/api/urls.validateCustomDomain", { + const res = await server.post("/api/urls.validateCustomDomain", user, { body: { - token: user.getJwtToken(), hostname: "google.com", }, }); diff --git a/server/routes/api/userMemberships/userMemberships.test.ts b/server/routes/api/userMemberships/userMemberships.test.ts index 180ff33105..93aa453745 100644 --- a/server/routes/api/userMemberships/userMemberships.test.ts +++ b/server/routes/api/userMemberships/userMemberships.test.ts @@ -30,20 +30,15 @@ describe("#userMemberships.list", () => { const member = await buildUser({ teamId: user.teamId, }); - await server.post("/api/documents.add_user", { + await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, }); const users = await document.$get("users"); expect(users.length).toEqual(1); - const res = await server.post("/api/userMemberships.list", { - body: { - token: member.getJwtToken(), - }, - }); + const res = await server.post("/api/userMemberships.list", member); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).not.toBeFalsy(); @@ -79,9 +74,8 @@ describe("#userMemberships.update", () => { const member = await buildUser({ teamId: user.teamId, }); - const resp = await server.post("/api/documents.add_user", { + const resp = await server.post("/api/documents.add_user", user, { body: { - token: user.getJwtToken(), id: document.id, userId: member.id, }, @@ -93,9 +87,8 @@ describe("#userMemberships.update", () => { const users = await document.$get("users"); expect(users.length).toEqual(1); - const res = await server.post("/api/userMemberships.update", { + const res = await server.post("/api/userMemberships.update", member, { body: { - token: member.getJwtToken(), id: respBody.data.memberships[0].id, index: "V", }, diff --git a/server/routes/api/users/users.test.ts b/server/routes/api/users/users.test.ts index 998512ae88..3ecbeaa929 100644 --- a/server/routes/api/users/users.test.ts +++ b/server/routes/api/users/users.test.ts @@ -27,10 +27,9 @@ describe("#users.list", () => { email: "john.doe@example.com", }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { query: "john.doe@e", - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -49,10 +48,9 @@ describe("#users.list", () => { teamId: user.teamId, suspendedAt: new Date(), }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { query: "test", - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -69,10 +67,9 @@ describe("#users.list", () => { name: "Admin", teamId: user.teamId, }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { role: UserRole.Admin, - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -88,11 +85,10 @@ describe("#users.list", () => { teamId: admin.teamId, suspendedAt: new Date(), }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", admin, { body: { query: "test", filter: "suspended", - token: admin.getJwtToken(), }, }); const body = await res.json(); @@ -107,10 +103,9 @@ describe("#users.list", () => { teamId: user.teamId, suspendedAt: new Date(), }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { query: "test", - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -126,11 +121,10 @@ describe("#users.list", () => { name: "Tester", teamId: user.teamId, }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { query: "test", filter: "active", - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -147,11 +141,10 @@ describe("#users.list", () => { teamId: user.teamId, lastActiveAt: null, }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", user, { body: { query: "test", filter: "invited", - token: user.getJwtToken(), }, }); const body = await res.json(); @@ -164,9 +157,8 @@ describe("#users.list", () => { const admin = await buildAdmin({ teamId: team.id }); await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", admin, { body: { - token: admin.getJwtToken(), sort: "createdAt", direction: "DESC", }, @@ -181,9 +173,8 @@ describe("#users.list", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", admin, { body: { - token: admin.getJwtToken(), ids: [user.id], }, }); @@ -198,9 +189,8 @@ describe("#users.list", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", admin, { body: { - token: admin.getJwtToken(), emails: [user.email], }, }); @@ -216,9 +206,8 @@ describe("#users.list", () => { const user = await buildUser({ teamId: team.id }); // Test with uppercase email - const res = await server.post("/api/users.list", { + const res = await server.post("/api/users.list", admin, { body: { - token: admin.getJwtToken(), emails: [user.email!.toUpperCase()], }, }); @@ -235,9 +224,8 @@ describe("#users.list", () => { ) .join("@"); - const res2 = await server.post("/api/users.list", { + const res2 = await server.post("/api/users.list", admin, { body: { - token: admin.getJwtToken(), emails: [mixedCaseEmail], }, }); @@ -251,11 +239,7 @@ describe("#users.list", () => { const team = await buildTeam(); await buildUser({ teamId: team.id }); const guest = await buildUser({ teamId: team.id, role: UserRole.Guest }); - const res = await server.post("/api/users.list", { - body: { - token: guest.getJwtToken(), - }, - }); + const res = await server.post("/api/users.list", guest); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -267,11 +251,7 @@ describe("#users.list", () => { const team = await buildTeam(); await buildUser({ teamId: team.id }); const viewer = await buildUser({ teamId: team.id, role: UserRole.Viewer }); - const res = await server.post("/api/users.list", { - body: { - token: viewer.getJwtToken(), - }, - }); + const res = await server.post("/api/users.list", viewer); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -283,11 +263,7 @@ describe("#users.list", () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); const member = await buildUser({ teamId: team.id, role: UserRole.Member }); - const res = await server.post("/api/users.list", { - body: { - token: member.getJwtToken(), - }, - }); + const res = await server.post("/api/users.list", member); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -299,11 +275,7 @@ describe("#users.list", () => { const team = await buildTeam(); await buildUser({ teamId: team.id }); const guest = await buildUser({ teamId: team.id, role: UserRole.Guest }); - const res = await server.post("/api/users.list", { - body: { - token: guest.getJwtToken(), - }, - }); + const res = await server.post("/api/users.list", guest); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -321,11 +293,7 @@ describe("#users.list", () => { const team = await buildTeam(); await buildUser({ teamId: team.id }); const viewer = await buildUser({ teamId: team.id, role: UserRole.Viewer }); - const res = await server.post("/api/users.list", { - body: { - token: viewer.getJwtToken(), - }, - }); + const res = await server.post("/api/users.list", viewer); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -343,11 +311,7 @@ describe("#users.list", () => { const team = await buildTeam(); await buildUser({ teamId: team.id }); const member = await buildUser({ teamId: team.id, role: UserRole.Member }); - const res = await server.post("/api/users.list", { - body: { - token: member.getJwtToken(), - }, - }); + const res = await server.post("/api/users.list", member); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -365,11 +329,7 @@ describe("#users.list", () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.list", { - body: { - token: admin.getJwtToken(), - }, - }); + const res = await server.post("/api/users.list", admin); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toHaveLength(2); @@ -389,11 +349,7 @@ describe("#users.list", () => { describe("#users.info", () => { it("should return current user with no id", async () => { const user = await buildUser(); - const res = await server.post("/api/users.info", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/users.info", user); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.id).toEqual(user.id); @@ -406,9 +362,8 @@ describe("#users.info", () => { const another = await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/users.info", { + const res = await server.post("/api/users.info", user, { body: { - token: user.getJwtToken(), id: another.id, }, }); @@ -423,9 +378,8 @@ describe("#users.info", () => { it("should now return user without permission", async () => { const user = await buildUser(); const another = await buildUser(); - const res = await server.post("/api/users.info", { + const res = await server.post("/api/users.info", user, { body: { - token: user.getJwtToken(), id: another.id, }, }); @@ -441,9 +395,8 @@ describe("#users.info", () => { describe("#users.invite", () => { it("should return sent invites", async () => { const user = await buildAdmin(); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", user, { body: { - token: user.getJwtToken(), invites: [ { email: "test@example.com", @@ -460,9 +413,8 @@ describe("#users.invite", () => { it("should require invites to be an array", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", admin, { body: { - token: admin.getJwtToken(), invites: { email: "test@example.com", name: "Test", @@ -475,9 +427,8 @@ describe("#users.invite", () => { it("should allow members to invite members", async () => { const user = await buildUser(); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", user, { body: { - token: user.getJwtToken(), invites: [ { email: "test@example.com", @@ -494,9 +445,8 @@ describe("#users.invite", () => { it("should now allow viewers to invite", async () => { const user = await buildViewer(); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", user, { body: { - token: user.getJwtToken(), invites: [ { email: "test@example.com", @@ -515,9 +465,8 @@ describe("#users.invite", () => { await team.save(); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", user, { body: { - token: user.getJwtToken(), invites: [ { email: "test@example.com", @@ -532,9 +481,8 @@ describe("#users.invite", () => { it("should invite user as an admin", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", admin, { body: { - token: admin.getJwtToken(), invites: [ { email: "test@example.com", @@ -552,9 +500,8 @@ describe("#users.invite", () => { it("should invite user as a viewer", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", admin, { body: { - token: admin.getJwtToken(), invites: [ { email: "test@example.com", @@ -572,9 +519,8 @@ describe("#users.invite", () => { it("should limit number of invites", async () => { const user = await buildUser(); - const res = await server.post("/api/users.invite", { + const res = await server.post("/api/users.invite", user, { body: { - token: user.getJwtToken(), invites: new Array(21).fill({ email: "test@example.com", name: "Test", @@ -597,11 +543,7 @@ describe("#users.delete", () => { await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/users.delete", { - body: { - token: user.getJwtToken(), - }, - }); + const res = await server.post("/api/users.delete", user); expect(res.status).toEqual(400); }); @@ -610,10 +552,9 @@ describe("#users.delete", () => { await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/users.delete", { + const res = await server.post("/api/users.delete", user, { body: { code: "123", - token: user.getJwtToken(), }, }); expect(res.status).toEqual(400); @@ -624,10 +565,9 @@ describe("#users.delete", () => { await buildUser({ teamId: user.teamId, }); - const res = await server.post("/api/users.delete", { + const res = await server.post("/api/users.delete", user, { body: { code: user.deleteConfirmationCode, - token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -638,10 +578,9 @@ describe("#users.delete", () => { const user = await buildUser({ teamId: admin.teamId, }); - const res = await server.post("/api/users.delete", { + const res = await server.post("/api/users.delete", admin, { body: { id: user.id, - token: admin.getJwtToken(), }, }); expect(res.status).toEqual(200); @@ -658,9 +597,8 @@ describe("#users.delete", () => { describe("#users.update", () => { it("should update user profile information", async () => { const user = await buildUser(); - const res = await server.post("/api/users.update", { + const res = await server.post("/api/users.update", user, { body: { - token: user.getJwtToken(), name: "New name", }, }); @@ -674,10 +612,9 @@ describe("#users.update", () => { const user = await buildUser({ teamId: admin.teamId, }); - const res = await server.post("/api/users.update", { + const res = await server.post("/api/users.update", admin, { body: { id: user.id, - token: admin.getJwtToken(), name: "New name", }, }); @@ -692,10 +629,9 @@ describe("#users.update", () => { const user = await buildUser({ teamId: actor.teamId, }); - const res = await server.post("/api/users.update", { + const res = await server.post("/api/users.update", actor, { body: { id: user.id, - token: actor.getJwtToken(), name: "New name", }, }); @@ -704,9 +640,8 @@ describe("#users.update", () => { it("should fail upon sending invalid user preference", async () => { const user = await buildUser(); - const res = await server.post("/api/users.update", { + const res = await server.post("/api/users.update", user, { body: { - token: user.getJwtToken(), name: "New name", preferences: { invalidPreference: "invalidValue" }, }, @@ -716,9 +651,8 @@ describe("#users.update", () => { it("should fail upon sending invalid user preference value", async () => { const user = await buildUser(); - const res = await server.post("/api/users.update", { + const res = await server.post("/api/users.update", user, { body: { - token: user.getJwtToken(), name: "New name", preferences: { rememberLastPath: "invalidValue" }, }, @@ -728,9 +662,8 @@ describe("#users.update", () => { it("should update rememberLastPath user preference", async () => { const user = await buildUser(); - const res = await server.post("/api/users.update", { + const res = await server.post("/api/users.update", user, { body: { - token: user.getJwtToken(), name: "New name", preferences: { rememberLastPath: true, @@ -744,9 +677,8 @@ describe("#users.update", () => { it("should update user timezone", async () => { const user = await buildUser(); - const res = await server.post("/api/users.update", { + const res = await server.post("/api/users.update", user, { body: { - token: user.getJwtToken(), timezone: "Asia/Calcutta", }, }); @@ -768,9 +700,8 @@ describe("#users.updateEmail", () => { it("should trigger verification email", async () => { const spy = vi.spyOn(ConfirmUpdateEmail.prototype, "schedule"); const user = await buildUser(); - const res = await server.post("/api/users.updateEmail", { + const res = await server.post("/api/users.updateEmail", user, { body: { - token: user.getJwtToken(), email: faker.internet.email(), }, }); @@ -791,9 +722,8 @@ describe("#users.updateEmail", () => { createdById: user.id, }); - const res = await server.post("/api/users.updateEmail", { + const res = await server.post("/api/users.updateEmail", user, { body: { - token: user.getJwtToken(), email: faker.internet.email(), }, }); @@ -807,9 +737,8 @@ describe("#users.updateEmail", () => { const email = faker.internet.email().toLowerCase(); await buildUser({ teamId: user.teamId, email }); - const res = await server.post("/api/users.updateEmail", { + const res = await server.post("/api/users.updateEmail", user, { body: { - token: user.getJwtToken(), email, }, }); @@ -831,7 +760,7 @@ describe("#users.updateEmail", () => { const user = await buildUser(); const email = faker.internet.email(); await server.get( - `/api/users.updateEmail?token=${user.getJwtToken()}&code=${user.getEmailUpdateToken( + `/api/users.updateEmail?token=${user.getSessionToken()}&code=${user.getEmailUpdateToken( email )}&follow=true` ); @@ -848,9 +777,8 @@ describe("#users.update_role", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.update_role", { + const res = await server.post("/api/users.update_role", admin, { body: { - token: admin.getJwtToken(), id: user.id, role: UserRole.Admin, }, @@ -864,9 +792,8 @@ describe("#users.update_role", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/users.update_role", { + const res = await server.post("/api/users.update_role", admin, { body: { - token: admin.getJwtToken(), id: user.id, role: UserRole.Viewer, }, @@ -880,9 +807,8 @@ describe("#users.update_role", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/users.update_role", { + const res = await server.post("/api/users.update_role", admin, { body: { - token: admin.getJwtToken(), id: user.id, role: UserRole.Admin, }, @@ -897,9 +823,8 @@ describe("#users.promote", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.promote", { + const res = await server.post("/api/users.promote", admin, { body: { - token: admin.getJwtToken(), id: user.id, }, }); @@ -908,9 +833,8 @@ describe("#users.promote", () => { it("should require admin", async () => { const user = await buildUser(); - const res = await server.post("/api/users.promote", { + const res = await server.post("/api/users.promote", user, { body: { - token: user.getJwtToken(), id: user.id, }, }); @@ -926,9 +850,8 @@ describe("#users.demote", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/users.demote", { + const res = await server.post("/api/users.demote", admin, { body: { - token: admin.getJwtToken(), id: user.id, }, }); @@ -940,9 +863,8 @@ describe("#users.demote", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/users.demote", { + const res = await server.post("/api/users.demote", admin, { body: { - token: admin.getJwtToken(), id: user.id, to: "viewer", }, @@ -955,9 +877,8 @@ describe("#users.demote", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildAdmin({ teamId: team.id }); - const res = await server.post("/api/users.demote", { + const res = await server.post("/api/users.demote", admin, { body: { - token: admin.getJwtToken(), id: user.id, to: "member", }, @@ -968,9 +889,8 @@ describe("#users.demote", () => { it("should not allow demoting self", async () => { const admin = await buildAdmin(); await buildAdmin({ teamId: admin.teamId }); - const res = await server.post("/api/users.demote", { + const res = await server.post("/api/users.demote", admin, { body: { - token: admin.getJwtToken(), id: admin.id, }, }); @@ -981,9 +901,8 @@ describe("#users.demote", () => { it("should require admin", async () => { const user = await buildUser(); - const res = await server.post("/api/users.promote", { + const res = await server.post("/api/users.promote", user, { body: { - token: user.getJwtToken(), id: user.id, }, }); @@ -999,9 +918,8 @@ describe("#users.suspend", () => { const admin = await buildAdmin({ teamId: team.id }); const user = await buildUser({ teamId: team.id }); - const res = await server.post("/api/users.suspend", { + const res = await server.post("/api/users.suspend", admin, { body: { - token: admin.getJwtToken(), id: user.id, }, }); @@ -1010,9 +928,8 @@ describe("#users.suspend", () => { it("should not allow suspending self", async () => { const admin = await buildAdmin(); - const res = await server.post("/api/users.suspend", { + const res = await server.post("/api/users.suspend", admin, { body: { - token: admin.getJwtToken(), id: admin.id, }, }); @@ -1023,9 +940,8 @@ describe("#users.suspend", () => { it("should require admin", async () => { const user = await buildUser(); - const res = await server.post("/api/users.suspend", { + const res = await server.post("/api/users.suspend", user, { body: { - token: user.getJwtToken(), id: user.id, }, }); @@ -1046,9 +962,8 @@ describe("#users.activate", () => { suspendedAt: new Date(), }); expect(user.isSuspended).toBe(true); - const res = await server.post("/api/users.activate", { + const res = await server.post("/api/users.activate", admin, { body: { - token: admin.getJwtToken(), id: user.id, }, }); @@ -1057,9 +972,8 @@ describe("#users.activate", () => { it("should require admin", async () => { const user = await buildUser(); - const res = await server.post("/api/users.activate", { + const res = await server.post("/api/users.activate", user, { body: { - token: user.getJwtToken(), id: user.id, }, }); diff --git a/server/routes/api/views/views.test.ts b/server/routes/api/views/views.test.ts index 16bc70e584..9a077b9305 100644 --- a/server/routes/api/views/views.test.ts +++ b/server/routes/api/views/views.test.ts @@ -23,9 +23,8 @@ describe("#views.list", () => { documentId: document.id, userId: user.id, }); - const res = await server.post("/api/views.list", { + const res = await server.post("/api/views.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -47,9 +46,8 @@ describe("#views.list", () => { await user.update({ suspendedAt: new Date() }); - const res = await server.post("/api/views.list", { + const res = await server.post("/api/views.list", admin, { body: { - token: admin.getJwtToken(), documentId: document.id, }, }); @@ -82,9 +80,8 @@ describe("#views.list", () => { documentId: document.id, userId: user.id, }); - const res = await server.post("/api/views.list", { + const res = await server.post("/api/views.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -109,9 +106,8 @@ describe("#views.list", () => { it("should require authorization", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/views.list", { + const res = await server.post("/api/views.list", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -126,9 +122,8 @@ describe("#views.create", () => { userId: user.id, teamId: user.teamId, }); - const res = await server.post("/api/views.create", { + const res = await server.post("/api/views.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -157,9 +152,8 @@ describe("#views.create", () => { userId: user.id, permission: CollectionPermission.Read, }); - const res = await server.post("/api/views.create", { + const res = await server.post("/api/views.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); @@ -183,9 +177,8 @@ describe("#views.create", () => { it("should require authorization", async () => { const document = await buildDocument(); const user = await buildUser(); - const res = await server.post("/api/views.create", { + const res = await server.post("/api/views.create", user, { body: { - token: user.getJwtToken(), documentId: document.id, }, }); diff --git a/server/routes/auth/index.test.ts b/server/routes/auth/index.test.ts index 61bd5f308b..e976758598 100644 --- a/server/routes/auth/index.test.ts +++ b/server/routes/auth/index.test.ts @@ -1,5 +1,7 @@ +import { addMonths } from "date-fns"; import { buildUser, buildCollection } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; +import { getJWTPayload } from "@server/utils/jwt"; const server = getTestServer(); @@ -33,9 +35,36 @@ describe("auth/redirect", () => { expect(res.headers.get("location")!.includes(collection.path)).toBeTruthy(); }); + it("should issue a session token with an expiry", async () => { + const user = await buildUser(); + const before = Date.now(); + const res = await server.get( + `/auth/redirect?token=${user.getTransferToken()}`, + { + redirect: "manual", + } + ); + expect(res.status).toEqual(302); + + const cookie = res.headers.get("set-cookie"); + expect(cookie).not.toBeNull(); + const match = cookie!.match(/accessToken=([^;]+)/); + expect(match).not.toBeNull(); + + const payload = getJWTPayload(match![1]); + expect(payload.type).toEqual("session"); + expect(payload.expiresAt).toBeDefined(); + + const expiresAt = new Date(payload.expiresAt as string).getTime(); + const expectedMin = addMonths(before, 3).getTime() - 1000; + const expectedMax = addMonths(Date.now(), 3).getTime() + 1000; + expect(expiresAt).toBeGreaterThanOrEqual(expectedMin); + expect(expiresAt).toBeLessThanOrEqual(expectedMax); + }); + it("should prevent token extension by rejecting JWT tokens", async () => { const user = await buildUser(); - const jwtToken = user.getJwtToken(); + const jwtToken = user.getSessionToken(); const res = await server.get(`/auth/redirect?token=${jwtToken}`, { redirect: "manual", diff --git a/server/routes/auth/index.ts b/server/routes/auth/index.ts index b869955e38..4121f325fe 100644 --- a/server/routes/auth/index.ts +++ b/server/routes/auth/index.ts @@ -43,14 +43,15 @@ router.get( throw AuthenticationError("Cannot extend token"); } - const jwtToken = user.getJwtToken(undefined, service); + const expires = addMonths(new Date(), 3); + const jwtToken = user.getSessionToken(expires, service); // ensure that the lastActiveAt on user is updated to prevent replay requests await user.updateActiveAt(ctx, true); ctx.cookies.set("accessToken", jwtToken, { sameSite: "lax", - expires: addMonths(new Date(), 3), + expires, }); const [team, collection, view] = await Promise.all([ Team.findByPk(user.teamId), diff --git a/server/routes/mcp/index.test.ts b/server/routes/mcp/index.test.ts index d62f9b0a63..4cdcd8231c 100644 --- a/server/routes/mcp/index.test.ts +++ b/server/routes/mcp/index.test.ts @@ -34,7 +34,7 @@ describe("POST /mcp/", () => { const { body } = mcpRequest("tools/list"); const res = await server.post("/mcp/", { headers: { - Authorization: `Bearer ${user.getJwtToken()}`, + Authorization: `Bearer ${user.getSessionToken()}`, Accept: "application/json, text/event-stream", }, body, diff --git a/server/test/TestServer.ts b/server/test/TestServer.ts index 68072b77d7..aa7a7a639e 100644 --- a/server/test/TestServer.ts +++ b/server/test/TestServer.ts @@ -11,6 +11,34 @@ type TestRequestOptions = Omit<RequestInit, "body" | "headers"> & { headers?: Record<string, string>; }; +interface Authable { + getSessionToken(): string; +} + +const tokenCache = new WeakMap<Authable, string>(); + +function getCachedSessionToken(user: Authable): string { + let token = tokenCache.get(user); + if (!token) { + token = user.getSessionToken(); + tokenCache.set(user, token); + } + return token; +} + +function normalizeArgs( + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions +): { user?: Authable; opts: TestRequestOptions } { + if ( + userOrOpts && + typeof (userOrOpts as Authable).getSessionToken === "function" + ) { + return { user: userOrOpts as Authable, opts: maybeOpts ?? {} }; + } + return { opts: (userOrOpts as TestRequestOptions) ?? {} }; +} + class TestServer { private server: http.Server; private listener?: Promise<void> | null; @@ -36,10 +64,24 @@ class TestServer { return this.listener; } - fetch(path: string, opts: TestRequestOptions) { + fetch(path: string, opts?: TestRequestOptions): ReturnType<typeof nodeFetch>; + fetch( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + fetch( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); return this.listen().then(() => { const url = `${this.address}${path}`; const headers: Record<string, string> = { ...opts.headers }; + if (user && !headers.Authorization && !headers.authorization) { + headers.Authorization = `Bearer ${getCachedSessionToken(user)}`; + } let body = opts.body; const contentType = headers["Content-Type"] ?? headers["content-type"]; // automatic JSON encoding @@ -62,32 +104,126 @@ class TestServer { this.server.close(); } - delete(path: string, options?: TestRequestOptions) { - return this.fetch(path, { ...options, method: "DELETE" }); + delete(path: string, opts?: TestRequestOptions): ReturnType<typeof nodeFetch>; + delete( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + delete( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); + return user + ? this.fetch(path, user, { ...opts, method: "DELETE" }) + : this.fetch(path, { ...opts, method: "DELETE" }); } - get(path: string, options?: TestRequestOptions) { - return this.fetch(path, { ...options, method: "GET" }); + get(path: string, opts?: TestRequestOptions): ReturnType<typeof nodeFetch>; + get( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + get( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); + return user + ? this.fetch(path, user, { ...opts, method: "GET" }) + : this.fetch(path, { ...opts, method: "GET" }); } - head(path: string, options?: TestRequestOptions) { - return this.fetch(path, { ...options, method: "HEAD" }); + head(path: string, opts?: TestRequestOptions): ReturnType<typeof nodeFetch>; + head( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + head( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); + return user + ? this.fetch(path, user, { ...opts, method: "HEAD" }) + : this.fetch(path, { ...opts, method: "HEAD" }); } - options(path: string, options?: TestRequestOptions) { - return this.fetch(path, { ...options, method: "OPTIONS" }); + options( + path: string, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + options( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + options( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); + return user + ? this.fetch(path, user, { ...opts, method: "OPTIONS" }) + : this.fetch(path, { ...opts, method: "OPTIONS" }); } - patch(path: string, options?: TestRequestOptions) { - return this.fetch(path, { ...options, method: "PATCH" }); + patch(path: string, opts?: TestRequestOptions): ReturnType<typeof nodeFetch>; + patch( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + patch( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); + return user + ? this.fetch(path, user, { ...opts, method: "PATCH" }) + : this.fetch(path, { ...opts, method: "PATCH" }); } - post(path: string, options?: TestRequestOptions) { - return this.fetch(path, { ...options, method: "POST" }); + post(path: string, opts?: TestRequestOptions): ReturnType<typeof nodeFetch>; + post( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + post( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); + return user + ? this.fetch(path, user, { ...opts, method: "POST" }) + : this.fetch(path, { ...opts, method: "POST" }); } - put(path: string, options?: TestRequestOptions) { - return this.fetch(path, { ...options, method: "PUT" }); + put(path: string, opts?: TestRequestOptions): ReturnType<typeof nodeFetch>; + put( + path: string, + user: Authable, + opts?: TestRequestOptions + ): ReturnType<typeof nodeFetch>; + put( + path: string, + userOrOpts?: Authable | TestRequestOptions, + maybeOpts?: TestRequestOptions + ) { + const { user, opts } = normalizeArgs(userOrOpts, maybeOpts); + return user + ? this.fetch(path, user, { ...opts, method: "PUT" }) + : this.fetch(path, { ...opts, method: "PUT" }); } } diff --git a/server/test/support.ts b/server/test/support.ts index 747e86538e..bb0e4bb814 100644 --- a/server/test/support.ts +++ b/server/test/support.ts @@ -64,7 +64,7 @@ export function withAPIContext<T>( auth: { user, type: AuthenticationType.APP, - token: user.getJwtToken(), + token: user.getSessionToken(), }, transaction, }; diff --git a/server/utils/authentication.ts b/server/utils/authentication.ts index 2ee94e0709..4c86f007d3 100644 --- a/server/utils/authentication.ts +++ b/server/utils/authentication.ts @@ -134,7 +134,7 @@ export async function signIn( ); } } else { - ctx.cookies.set("accessToken", user.getJwtToken(expires, service), { + ctx.cookies.set("accessToken", user.getSessionToken(expires, service), { sameSite: "lax", expires, }); From 1d919cc56ac5d1f39893519441977a66efcfe310 Mon Sep 17 00:00:00 2001 From: mehmet turac <mehmetturac@gmail.com> Date: Mon, 18 May 2026 01:11:31 +0300 Subject: [PATCH 042/286] fix: initialize text selection state (#12366) * fix: initialize text selection state * Delete app/hooks/useTextSelection.test.ts --------- Co-authored-by: Tom Moor <tom.moor@gmail.com> --- app/hooks/useTextSelection.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/hooks/useTextSelection.ts b/app/hooks/useTextSelection.ts index 6894fd8a07..131d4c092b 100644 --- a/app/hooks/useTextSelection.ts +++ b/app/hooks/useTextSelection.ts @@ -1,20 +1,27 @@ import { useState } from "react"; import useEventListener from "./useEventListener"; +/** + * Returns the current selected text in the document. + * + * @returns the current selected text. + */ +export function getSelectedText() { + return window.getSelection()?.toString() ?? ""; +} + /** * A hook that returns the currently selected text. * * @returns The selected text */ export default function useTextSelection() { - const [selection, setSelection] = useState<string>(""); + const [selection, setSelection] = useState(getSelectedText); useEventListener( "selectionchange", () => { - const selection = window.getSelection(); - const text = selection?.toString(); - setSelection(text ?? ""); + setSelection(getSelectedText()); }, document ); From ab3994f3f12d27484d6b161a486a254a966358b7 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 17 May 2026 18:57:19 -0400 Subject: [PATCH 043/286] feat: Comments sidebar in image lightbox (#12335) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Toggle comments sidebar in editor lightbox Adds a new comments toggle button to the lightbox top-right actions. When toggled the sidebar slides out on the right and shows only the threads anchored to the active image node. A new comment form at the bottom creates a thread anchored to the image via a comment mark on the node. https://claude.ai/code/session_01W3duHkZJ6vgNPCQJL8hQK7 * fix: Make lightbox comments sidebar interactable The sidebar was being rendered as a sibling of Dialog.Content, so Radix's focus/click-outside trap blocked all interaction with it. Move it inside Dialog.Content so clicks and focus stay within the dialog. Also scope the lightbox handleKeyDown to only preventDefault and act on arrow/escape keys — and bail out entirely when typing into an input, textarea, or contenteditable so the comment form receives keystrokes. https://claude.ai/code/session_01W3duHkZJ6vgNPCQJL8hQK7 * fix: Align lightbox comments header with action buttons Nudge the sidebar Comments heading 4px down so its baseline lines up with the lightbox top-right action bar. https://claude.ai/code/session_01W3duHkZJ6vgNPCQJL8hQK7 * fix: Render lightbox sidebar popovers inside the dialog Reactions, menus, and tooltips inside the lightbox comments sidebar were portalling into the editor wrapper via PortalContext — which is hidden behind the lightbox overlay. Provide a PortalContext that targets the sidebar element itself so popovers render inside the dialog and remain visible. https://claude.ai/code/session_01W3duHkZJ6vgNPCQJL8hQK7 * fix: Prevent lightbox handlers from stealing focus from reply input Pointer events bubbling out of the comments sidebar were reaching the ancestor Dialog.Content / lightbox handlers and somehow disrupting focus on the ProseMirror reply input. Stop propagation of pointer, mouse, and click events at the CommentsSidebar so the sidebar owns its own interaction handling. https://claude.ai/code/session_01W3duHkZJ6vgNPCQJL8hQK7 * fix: Anchor lightbox close animation to current image position The close animation's translation was calculated relative to the image position cached when the image first loaded — before the comments sidebar could shift the image left. Recapture the natural position at the start of setupZoomOut so the animation correctly starts where the image actually is when the sidebar is open. https://claude.ai/code/session_01W3duHkZJ6vgNPCQJL8hQK7 * fix: Fade the comments sidebar with the rest of the lightbox The sidebar previously had only a slide-in animation on mount and stayed fully opaque while the rest of the lightbox faded out on close. Wire the sidebar to the shared fadeOut animation so it disappears in lockstep with the overlay and action controls. https://claude.ai/code/session_01W3duHkZJ6vgNPCQJL8hQK7 * Final fixes --------- Co-authored-by: Claude <noreply@anthropic.com> --- app/components/Lightbox.tsx | 184 ++++++++++++++++-- .../components/Comments/CommentForm.tsx | 9 + .../components/Comments/LightboxComments.tsx | 181 +++++++++++++++++ shared/utils/ProsemirrorHelper.ts | 23 +++ 4 files changed, 386 insertions(+), 11 deletions(-) create mode 100644 app/scenes/Document/components/Comments/LightboxComments.tsx diff --git a/app/components/Lightbox.tsx b/app/components/Lightbox.tsx index 448dd59a5f..fa4b9bdbc3 100644 --- a/app/components/Lightbox.tsx +++ b/app/components/Lightbox.tsx @@ -2,7 +2,12 @@ import { observer } from "mobx-react"; import * as Dialog from "@radix-ui/react-dialog"; import type { Keyframes } from "styled-components"; import styled, { css, keyframes } from "styled-components"; -import type { ComponentProps, HTMLAttributes, ReactNode } from "react"; +import type { + ComponentProps, + HTMLAttributes, + ReactNode, + SyntheticEvent, +} from "react"; import { createContext, forwardRef, @@ -18,6 +23,7 @@ import { Error as ImageError } from "@shared/editor/components/Image"; import { BackIcon, CloseIcon, + CommentIcon, CrossIcon, DownloadIcon, LinkIcon, @@ -55,6 +61,9 @@ import { NodeSelection } from "prosemirror-state"; import { ImageSource } from "@shared/editor/lib/FileHelper"; import Desktop from "~/utils/Desktop"; import { HStack } from "./primitives/HStack"; +import { useDocumentContext } from "./DocumentContext"; +import LightboxComments from "~/scenes/Document/components/Comments/LightboxComments"; +import { PortalContext } from "./Portal"; export enum LightboxStatus { READY_TO_OPEN, @@ -88,6 +97,15 @@ type Animation = { const ANIMATION_DURATION = 0.3 * Second.ms; +/** + * Stops a React synthetic event from propagating to ancestor handlers, including + * Radix Dialog's outside-interaction detection and the editor's own click + * handlers, so the comments sidebar can manage its own focus. + */ +const stopPropagation = (event: SyntheticEvent) => { + event.stopPropagation(); +}; + type Props = { /** List of allowed images */ images: LightboxImage[]; @@ -225,6 +243,11 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { const overlayRef = useRef<HTMLDivElement | null>(null); const contentRef = useRef<HTMLDivElement | null>(null); const [status, setStatus] = useState<Status>({ lightbox: null, image: null }); + const [commentsOpen, setCommentsOpen] = useState(false); + const [commentsRendered, setCommentsRendered] = useState(false); + const [commentsVisible, setCommentsVisible] = useState(false); + const [commentsPortalEl, setCommentsPortalEl] = + useState<HTMLDivElement | null>(null); const animation = useRef<Animation | null>(null); const finalImage = useRef<{ center: { x: number; y: number }; @@ -233,6 +256,10 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { } | null>(null); const zoomPanPinchRef = useRef<ReactZoomPanPinchRef>(null); const editor = useEditor(); + const { document: contextDocument } = useDocumentContext(); + const activeNode = editor?.view?.state?.doc?.nodeAt(activeImage.pos); + const canShowComments = + !!contextDocument && activeNode?.type.name === "image"; const currentImageIndex = findIndex( images, @@ -312,6 +339,19 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { } }, [status.lightbox]); + useEffect(() => { + if (commentsOpen) { + setCommentsRendered(true); + const frame = window.requestAnimationFrame(() => + setCommentsVisible(true) + ); + return () => window.cancelAnimationFrame(frame); + } + setCommentsVisible(false); + const timer = window.setTimeout(() => setCommentsRendered(false), 200); + return () => window.clearTimeout(timer); + }, [commentsOpen]); + useEffect(() => { if (status.image === ImageStatus.MIN_ZOOM) { // It was observed that focus went to `body` as the zoom out button was disabled @@ -441,6 +481,10 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { status.image === ImageStatus.MAX_ZOOM ) ) { + // Refresh the cached natural image position to account for any layout + // changes (e.g., the comments sidebar opening) since the image loaded. + rememberImagePosition(); + // in lightbox const lightboxImgDOMRect = imgRef.current.getBoundingClientRect(); const { @@ -632,17 +676,30 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { }, [activeImage, status.lightbox]); const handleKeyDown = (ev: React.KeyboardEvent<HTMLDivElement>) => { - ev.preventDefault(); + // Don't intercept keys while typing into an input, textarea, or editor. + const target = ev.target as HTMLElement | null; + if ( + target && + target !== ev.currentTarget && + (target.tagName === "INPUT" || + target.tagName === "TEXTAREA" || + target.isContentEditable) + ) { + return; + } switch (ev.key) { case "ArrowLeft": { + ev.preventDefault(); prev(); break; } case "ArrowRight": { + ev.preventDefault(); next(); break; } case "Escape": { + ev.preventDefault(); close(); break; } @@ -698,14 +755,21 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { onAnimationStart={handleFadeStart} onAnimationEnd={handleFadeEnd} /> - <StyledContent onKeyDown={handleKeyDown} ref={contentRef}> + <StyledContent + onKeyDown={handleKeyDown} + ref={contentRef} + $commentsOpen={canShowComments && commentsOpen} + > <VisuallyHidden.Root> <Dialog.Title>{t("Lightbox")}</Dialog.Title> <Dialog.Description> {t("View, navigate, or download images in the document")} </Dialog.Description> </VisuallyHidden.Root> - <Actions animation={animation.current}> + <Actions + animation={animation.current} + $commentsOpen={canShowComments && commentsOpen} + > <Tooltip content={t("Zoom in")} placement="bottom"> <ActionButton tabIndex={-1} @@ -788,7 +852,22 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { /> </Tooltip> )} - <Separator /> + {canShowComments && ( + <Tooltip content={t("Comments")} placement="bottom"> + <ActionButton + tabIndex={-1} + onClick={() => setCommentsOpen((open) => !open)} + aria-label={t("Comments")} + aria-pressed={commentsOpen} + size={32} + icon={<CommentIcon />} + borderOnHover + neutral + /> + </Tooltip> + )} + </Actions> + <CloseAction animation={animation.current}> <Dialog.Close asChild> <Tooltip content={t("Close")} shortcut="Esc" placement="bottom"> <ActionButton @@ -802,7 +881,7 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { /> </Tooltip> </Dialog.Close> - </Actions> + </CloseAction> {currentImageIndex > 0 && !( status.image === ImageStatus.ZOOMED || @@ -878,12 +957,36 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { status.image === ImageStatus.ZOOMED || status.image === ImageStatus.MAX_ZOOM ) && ( - <Nav dir="right" $hidden={isIdle} animation={animation.current}> + <Nav + dir="right" + $hidden={isIdle} + animation={animation.current} + $commentsOpen={canShowComments && commentsOpen} + > <NavButton onClick={next} size={32} aria-label={t("Next")}> <NextIcon size={32} /> </NavButton> </Nav> )} + {canShowComments && commentsRendered && contextDocument && ( + <CommentsSidebar + ref={setCommentsPortalEl} + animation={animation.current} + $open={commentsVisible} + onPointerDown={stopPropagation} + onPointerUp={stopPropagation} + onMouseDown={stopPropagation} + onMouseUp={stopPropagation} + onClick={stopPropagation} + > + <PortalContext.Provider value={commentsPortalEl}> + <LightboxComments + document={contextDocument} + pos={activeImage.pos} + /> + </PortalContext.Provider> + </CommentsSidebar> + )} </StyledContent> </Dialog.Portal> </Dialog.Root> @@ -1090,7 +1193,7 @@ const StyledImg = styled.img<{ : ""} `; -const StyledContent = styled(Dialog.Content)` +const StyledContent = styled(Dialog.Content)<{ $commentsOpen: boolean }>` position: fixed; inset: 0; z-index: ${depths.modal}; @@ -1098,6 +1201,8 @@ const StyledContent = styled(Dialog.Content)` justify-content: center; align-items: center; outline: none; + padding-inline-end: ${(props) => (props.$commentsOpen ? "360px" : "0")}; + transition: padding-inline-end 200ms ease-out; `; const ActionButton = styled(Button)` @@ -1106,15 +1211,45 @@ const ActionButton = styled(Button)` const Actions = styled(HStack)<{ animation: Animation | null; + $commentsOpen: boolean; }>` position: absolute; top: 0; - right: 0; + right: ${(props) => (props.$commentsOpen ? "360px" : "44px")}; margin: 16px 12px; z-index: ${depths.modal}; background: ${(props) => transparentize(0.2, props.theme.background)}; backdrop-filter: blur(4px); border-radius: 6px; + transition: right 200ms ease-out; + + ${(props) => + props.animation === null + ? css` + opacity: 0; + ` + : props.animation.fadeIn + ? css` + animation: ${props.animation.fadeIn.apply()} + ${props.animation.fadeIn.duration}ms; + ` + : props.animation.fadeOut + ? css` + animation: ${props.animation.fadeOut.apply()} + ${props.animation.fadeOut.duration}ms; + ` + : ""} +`; + +const CloseAction = styled.div<{ animation: Animation | null }>` + position: fixed; + top: 0; + right: 0; + margin: 16px 12px; + z-index: ${depths.modal + 1}; + background: ${(props) => transparentize(0.2, props.theme.background)}; + backdrop-filter: blur(4px); + border-radius: 6px; ${(props) => props.animation === null @@ -1138,10 +1273,16 @@ const Nav = styled.div<{ $hidden: boolean; dir: "left" | "right"; animation: Animation | null; + $commentsOpen?: boolean; }>` position: absolute; - ${(props) => (props.dir === "left" ? "left: 0;" : "right: 0;")} - transition: opacity 500ms ease-in-out; + ${(props) => + props.dir === "left" + ? "left: 0;" + : `right: ${props.$commentsOpen ? "360px" : "0"};`} + transition: + opacity 500ms ease-in-out, + right 200ms ease-out; z-index: ${depths.modal}; ${(props) => props.$hidden && "opacity: 0;"} ${(props) => @@ -1183,6 +1324,27 @@ const StyledError = styled(ImageError)<{ : ""} `; +const CommentsSidebar = styled.div<{ + animation: Animation | null; + $open: boolean; +}>` + position: fixed; + top: 0; + right: 0; + bottom: 0; + z-index: ${depths.modal}; + display: flex; + transform: translateX(${(props) => (props.$open ? "0" : "100%")}); + transition: transform 200ms ease-out; + ${(props) => + props.animation?.fadeOut + ? css` + animation: ${props.animation.fadeOut.apply()} + ${props.animation.fadeOut.duration}ms; + ` + : ""} +`; + const NavButton = styled(NudeButton)` margin: 16px; opacity: 0.75; diff --git a/app/scenes/Document/components/Comments/CommentForm.tsx b/app/scenes/Document/components/Comments/CommentForm.tsx index 07278d1544..3b594da18a 100644 --- a/app/scenes/Document/components/Comments/CommentForm.tsx +++ b/app/scenes/Document/components/Comments/CommentForm.tsx @@ -57,6 +57,11 @@ type Props = { onBlur?: () => void; /** Callback when user presses up arrow at the start of the editor */ onUpArrowAtStart?: () => void; + /** + * Callback invoked when a new top-level comment is about to be created, + * just before it is added to the store. Receives the generated comment id. + */ + onBeforeCreate?: (commentId: string) => void; }; function CommentForm({ @@ -68,6 +73,7 @@ function CommentForm({ onFocus, onBlur, onUpArrowAtStart, + onBeforeCreate, autoFocus, standalone, placeholder, @@ -167,6 +173,9 @@ function CommentForm({ ); comment.id = uuidv4(); + if (!thread) { + onBeforeCreate?.(comment.id); + } comments.add(comment); comment diff --git a/app/scenes/Document/components/Comments/LightboxComments.tsx b/app/scenes/Document/components/Comments/LightboxComments.tsx new file mode 100644 index 0000000000..e51ca879d1 --- /dev/null +++ b/app/scenes/Document/components/Comments/LightboxComments.tsx @@ -0,0 +1,181 @@ +import { observer } from "mobx-react"; +import { useCallback, useRef } from "react"; +import { useTranslation } from "react-i18next"; +import styled from "styled-components"; +import { s } from "@shared/styles"; +import type { ProsemirrorData, ProsemirrorMark } from "@shared/types"; +import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; +import Empty from "~/components/Empty"; +import Flex from "~/components/Flex"; +import Scrollable from "~/components/Scrollable"; +import { useDocumentContext } from "~/components/DocumentContext"; +import useCurrentUser from "~/hooks/useCurrentUser"; +import usePersistedState from "~/hooks/usePersistedState"; +import usePolicy from "~/hooks/usePolicy"; +import useStores from "~/hooks/useStores"; +import type Document from "~/models/Document"; +import CommentForm from "./CommentForm"; +import CommentThread from "./CommentThread"; + +type Props = { + /** The document the image belongs to. */ + document: Document; + /** The position of the image node in the document. */ + pos: number; +}; + +function LightboxComments({ document, pos }: Props) { + const { comments } = useStores(); + const { editor, focusedCommentId, setFocusedCommentId } = + useDocumentContext(); + const user = useCurrentUser(); + const { t } = useTranslation(); + const can = usePolicy(document); + + const [draft, onSaveDraft] = usePersistedState<ProsemirrorData | undefined>( + `draft-${document.id}-image-${pos}`, + undefined + ); + + const commentIds = editor?.view?.state?.doc + ? ProsemirrorHelper.getCommentIdsAtPos(editor.view.state.doc, pos) + : []; + + const threads = comments + .threadsInDocument(document.id) + .filter( + (comment) => commentIds.includes(comment.id) && !comment.isResolved + ); + + const draftCommentIdRef = useRef<string | null>(null); + + // When submitting a new comment from the bottom form, anchor it to the image + // by adding a draft comment mark to the image node's `attrs.marks`. The mark + // is flipped to `draft: false` in `handleSubmit` once the comment has been + // persisted on the server. + const handleBeforeCreate = useCallback( + (commentId: string) => { + if (!editor) { + return; + } + const { state, dispatch } = editor.view; + const node = state.doc.nodeAt(pos); + if (!node) { + return; + } + + const existingMarks = (node.attrs.marks ?? []) as ProsemirrorMark[]; + const newMark: ProsemirrorMark = { + type: "comment", + attrs: { + id: commentId, + userId: user.id, + draft: true, + }, + }; + const newAttrs = { + ...node.attrs, + marks: [...existingMarks, newMark], + }; + dispatch(state.tr.setNodeMarkup(pos, undefined, newAttrs)); + draftCommentIdRef.current = commentId; + }, + [editor, pos, user.id] + ); + + const handleSubmit = useCallback(() => { + setFocusedCommentId(null); + const commentId = draftCommentIdRef.current; + if (commentId) { + editor?.updateComment(commentId, { draft: false }); + draftCommentIdRef.current = null; + } + }, [editor, setFocusedCommentId]); + + const focusedComment = + focusedCommentId && commentIds.includes(focusedCommentId) + ? comments.get(focusedCommentId) + : undefined; + + const hasComments = threads.length > 0; + const canComment = can.comment; + + return ( + <Wrapper column> + <Header>{t("Comments")}</Header> + <Body bottomShadow={!focusedComment} hiddenScrollbars topShadow> + <List $hasComments={hasComments}> + {hasComments ? ( + threads.map((thread) => ( + <CommentThread + key={thread.id} + comment={thread} + document={document} + recessed={!!focusedComment && focusedComment.id !== thread.id} + focused={focusedComment?.id === thread.id} + /> + )) + ) : ( + <NoComments align="center" justify="center" auto> + <Empty>{t("No comments yet")}</Empty> + </NoComments> + )} + </List> + </Body> + {canComment && !focusedComment && ( + <NewCommentForm + draft={draft} + onSaveDraft={onSaveDraft} + documentId={document.id} + placeholder={`${t("Add a comment")}…`} + autoFocus={false} + standalone + onBeforeCreate={handleBeforeCreate} + onSubmit={handleSubmit} + /> + )} + </Wrapper> + ); +} + +const Wrapper = styled(Flex)` + width: 360px; + max-width: 100%; + height: 100%; + background: ${s("background")}; + border-inline-start: 1px solid ${s("divider")}; +`; + +const Header = styled.div` + flex-shrink: 0; + padding: 20px 16px 16px; + font-size: 16px; + font-weight: 600; + color: ${s("text")}; + user-select: none; +`; + +const Body = styled(Scrollable)` + flex: 1 1 auto; + min-height: 0; +`; + +const List = styled.div<{ $hasComments: boolean }>` + height: ${(props) => (props.$hasComments ? "auto" : "100%")}; + padding-bottom: 12px; +`; + +const NoComments = styled(Flex)` + height: 100%; + padding: 24px; +`; + +const NewCommentForm = styled(CommentForm)` + flex-shrink: 0; + padding: 12px; + padding-inline-end: 18px; + padding-inline-start: 12px; + border-top: 1px solid ${s("divider")}; +`; + +export default observer(LightboxComments); diff --git a/shared/utils/ProsemirrorHelper.ts b/shared/utils/ProsemirrorHelper.ts index 4dfa30bb9d..9ace5ee68c 100644 --- a/shared/utils/ProsemirrorHelper.ts +++ b/shared/utils/ProsemirrorHelper.ts @@ -300,6 +300,29 @@ export class ProsemirrorHelper { ]; } + /** + * Returns the ids of comment marks attached to the node at the given position. + * + * @param doc Prosemirror document node. + * @param pos Position of the node within the document. + * @returns array of comment ids anchored to the node. + */ + static getCommentIdsAtPos(doc: Node, pos: number): string[] { + const node = doc.nodeAt(pos); + if (!node || !Array.isArray(node.attrs?.marks)) { + return []; + } + + return ( + node.attrs.marks as { type?: string; attrs?: { id?: string } }[] + ) + .filter( + (mark): mark is { type: "comment"; attrs: { id: string } } => + mark?.type === "comment" && !!mark?.attrs?.id + ) + .map((mark) => mark.attrs.id); + } + /** * Builds the consolidated anchor text for the given comment-id. * From 5d32db86cfaae30db0d8c93d50c04d436230ae39 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 14:18:16 -0400 Subject: [PATCH 044/286] chore(deps): bump brace-expansion from 5.0.5 to 5.0.6 (#12376) Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.5 to 5.0.6. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](https://github.com/juliangruber/brace-expansion/compare/v5.0.5...v5.0.6) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 5.0.6 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1185754b04..59a2a4d348 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8933,11 +8933,11 @@ __metadata: linkType: hard "brace-expansion@npm:^5.0.5": - version: 5.0.5 - resolution: "brace-expansion@npm:5.0.5" + version: 5.0.6 + resolution: "brace-expansion@npm:5.0.6" dependencies: balanced-match: "npm:^4.0.2" - checksum: 10c0/4d238e14ed4f5cc9c07285550a41cef23121ca08ba99fa9eb5b55b580dcb6bf868b8210aa10526bdc9f8dc97f33ca2a7259039c4cc131a93042beddb424c48e3 + checksum: 10c0/8c919869b90f61d533b341d3340be5ee4413232ea89b8246cbc2f38eb014f1d8182785c98a006eaf6111d02dc9eeffefdc240d5ac158625b2ed084dccd4bbf9b languageName: node linkType: hard From ee5164290d7dce7526b02aba35ef27eac08c2989 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 18 May 2026 18:32:58 -0400 Subject: [PATCH 045/286] perf: Move Markdown importer to zip stream (#12372) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: Move Markdown importer to zip stream * refactor * refactor: Extract zip walk + tree builder into ZipHelper Adds `ZipHelper.walk` and `ZipHelper.toFileTree` so other importers can stream zip contents without extracting to disk. Tree construction uses an O(1) path → node map; `./`-prefixed entries are normalized, while dotfiles, `__MACOSX`, and `..` segments are filtered. * PR feedback --- server/queues/tasks/MarkdownAPIImportTask.ts | 194 ++++++++-------- server/utils/ZipHelper.test.ts | 89 ++++++++ server/utils/ZipHelper.ts | 221 ++++++++++++++++++- 3 files changed, 395 insertions(+), 109 deletions(-) diff --git a/server/queues/tasks/MarkdownAPIImportTask.ts b/server/queues/tasks/MarkdownAPIImportTask.ts index 5221fa77bf..0f125ed97a 100644 --- a/server/queues/tasks/MarkdownAPIImportTask.ts +++ b/server/queues/tasks/MarkdownAPIImportTask.ts @@ -1,10 +1,9 @@ import path from "node:path"; import { randomUUID } from "node:crypto"; import { escapeRegExp } from "es-toolkit/compat"; -import fs from "fs-extra"; import mime from "mime-types"; import { UniqueConstraintError } from "sequelize"; -import tmp from "tmp"; +import { DocumentValidation } from "@shared/validations"; import type { ImportTaskInput, ImportTaskOutput, @@ -19,12 +18,13 @@ import env from "@server/env"; import Logger from "@server/logging/Logger"; import type { ImportTask } from "@server/models"; import { Attachment } from "@server/models"; -import { Buckets } from "@server/models/helpers/AttachmentHelper"; +import AttachmentHelper, { + Buckets, +} from "@server/models/helpers/AttachmentHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { sequelize } from "@server/storage/database"; import FileStorage from "@server/storage/files"; -import type { FileTreeNode } from "@server/utils/ImportHelper"; -import ImportHelper from "@server/utils/ImportHelper"; +import type { ZipTreeNode } from "@server/utils/ZipHelper"; import ZipHelper from "@server/utils/ZipHelper"; import type { ProcessOutput } from "./APIImportTask"; import APIImportTask from "./APIImportTask"; @@ -32,11 +32,6 @@ import { DocumentConverter } from "@server/utils/DocumentConverter"; type Markdown = IntegrationService.Markdown; -interface ExtractedZip { - dirPath: string; - cleanup: () => Promise<void>; -} - interface DiscoveredDocument { id: string; title: string; @@ -173,25 +168,31 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { return; } - const { dirPath, cleanup } = await this.downloadAndExtract( - scratch.storageKey - ); + const handle = await FileStorage.getFileHandle(scratch.storageKey); try { const createdBy = lastImportTask.import.createdBy; + const manifestByPath = new Map<string, MarkdownAttachmentManifestItem>( + scratch.manifest.map((item) => [item.pathInZip, item]) + ); + const maxAttachmentSize = AttachmentHelper.presetToMaxUploadSize( + AttachmentPreset.DocumentAttachment + ); + const seen = new Set<string>(); - for (const item of scratch.manifest) { - const filePath = path.join(dirPath, item.pathInZip); - let buffer: Buffer; - try { - buffer = await fs.readFile(filePath); - } catch (err) { - Logger.warn( - `Markdown import attachment missing in zip, skipping: ${item.pathInZip}`, - err instanceof Error ? err : undefined - ); - continue; + await ZipHelper.walk(handle.path, async (entry) => { + if (entry.isDirectory) { + return; } + // Normalize to match the bootstrap-phase pathInZip (segments rejoined + // with `/`, no leading `./` or empty segments). + const normalized = entry.fileName.split("/").filter(Boolean).join("/"); + const item = manifestByPath.get(normalized); + if (!item) { + return; + } + seen.add(item.pathInZip); + const buffer = await entry.readBuffer(maxAttachmentSize); try { await sequelize.transaction(async (transaction) => @@ -214,13 +215,21 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { // this hook can re-encounter ids that already landed. Treat the // unique-id collision as a no-op so the import remains resumable. if (err instanceof UniqueConstraintError) { - continue; + return; } throw err; } + }); + + for (const item of scratch.manifest) { + if (!seen.has(item.pathInZip)) { + Logger.warn( + `Markdown import attachment missing in zip, skipping: ${item.pathInZip}` + ); + } } } finally { - await cleanup(); + await handle.cleanup().catch(() => {}); } } @@ -232,11 +241,28 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { throw new Error("Markdown import is missing scratch.storageKey"); } - const { dirPath, cleanup } = await this.downloadAndExtract(storageKey); + const handle = await FileStorage.getFileHandle(storageKey); try { - const tree = await ImportHelper.toFileTree(dirPath); - if (!tree) { + // Side map of pre-loaded markdown text keyed by tree node identity. + // ZipHelper's tree carries only metadata; we capture text during the + // single walk so the downstream pass doesn't have to re-open the zip. + const markdownByNode = new Map<ZipTreeNode, string>(); + + const tree = await ZipHelper.toFileTree( + handle.path, + async (node, entry) => { + const ext = path.extname(node.name).toLowerCase(); + if (ext === ".md" || ext === ".markdown") { + const buffer = await entry.readBuffer( + DocumentValidation.maxStateLength + ); + markdownByNode.set(node, buffer.toString("utf8")); + } + } + ); + + if (tree.children.length === 0) { throw new Error("Could not find valid content in zip file"); } @@ -245,14 +271,14 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { for (const node of tree.children) { if (node.children.length === 0) { - Logger.debug("task", `Unhandled file in zip: ${node.path}`, { + Logger.debug("task", `Unhandled file in zip: ${node.pathInZip}`, { importTaskId: importTask.id, }); continue; } if (this.isAttachmentFolder(node)) { - this.collectAttachments(node, manifest, dirPath); + this.collectAttachments(node, manifest); continue; } @@ -263,12 +289,12 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { }; collections.push(collection); - await this.collectDocumentsAndAttachments({ + this.collectDocumentsAndAttachments({ children: node.children, collectionId: collection.id, out: collection.children, manifest, - extractionRoot: dirPath, + markdownByNode, }); } @@ -336,7 +362,7 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { return { taskOutput: collectionOutputs, childTasksInput }; } finally { - await cleanup(); + await handle.cleanup().catch(() => {}); } } @@ -477,10 +503,10 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { * Detects folders containing only attachments (no markdown documents). * Recursively considers nested folders; mirrors the legacy heuristic. * - * @param node FileTreeNode to inspect. + * @param node ZipTreeNode to inspect. * @returns true when the folder appears to hold only attachments. */ - private isAttachmentFolder(node: FileTreeNode): boolean { + private isAttachmentFolder(node: ZipTreeNode): boolean { if (node.children.length === 0) { return false; } @@ -501,29 +527,26 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { /** * Recursively collects all files under an attachment-only folder into the - * manifest. `pathInZip` is stored as a path relative to the extraction - * root so it can be resolved again after the zip is re-extracted during - * the completion phase (which lands in a fresh tmp dir). + * manifest. `pathInZip` is stored verbatim so the completion phase can find + * the same entry when re-walking the archive. * - * @param node Attachment-folder FileTreeNode. + * @param node Attachment-folder ZipTreeNode. * @param manifest Manifest array to push entries into. - * @param extractionRoot Absolute path to the zip extraction root. */ private collectAttachments( - node: FileTreeNode, - manifest: MarkdownAttachmentManifestItem[], - extractionRoot: string + node: ZipTreeNode, + manifest: MarkdownAttachmentManifestItem[] ): void { for (const child of node.children) { if (child.children.length > 0) { - this.collectAttachments(child, manifest, extractionRoot); + this.collectAttachments(child, manifest); continue; } manifest.push({ id: randomUUID(), name: child.name, - pathInZip: path.relative(extractionRoot, child.path), - mimeType: mime.lookup(child.path) || "application/octet-stream", + pathInZip: child.pathInZip, + mimeType: mime.lookup(child.name) || "application/octet-stream", }); } } @@ -534,31 +557,31 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { * entry's `children` holds its direct descendants. This is the shape the * per-page task cascade consumes. * - * @param children FileTreeNode children of the current folder. + * @param children ZipTreeNode children of the current folder. * @param collectionId Pre-assigned id of the enclosing collection. * @param parentDocumentId Optional parent document id when nested. * @param out Sibling accumulator to push discovered documents into. * @param manifest Attachment manifest accumulator. - * @returns Promise that resolves when the subtree has been processed. + * @param markdownByNode Pre-loaded markdown text keyed by tree node. */ - private async collectDocumentsAndAttachments({ + private collectDocumentsAndAttachments({ children, collectionId, parentDocumentId, out, manifest, - extractionRoot, + markdownByNode, }: { - children: FileTreeNode[]; + children: ZipTreeNode[]; collectionId: string; parentDocumentId?: string; out: DiscoveredDocument[]; manifest: MarkdownAttachmentManifestItem[]; - extractionRoot: string; - }): Promise<void> { + markdownByNode: Map<ZipTreeNode, string>; + }): void { for (const child of children) { if (child.children.length > 0 && this.isAttachmentFolder(child)) { - this.collectAttachments(child, manifest, extractionRoot); + this.collectAttachments(child, manifest); continue; } @@ -570,16 +593,14 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { manifest.push({ id: randomUUID(), name: child.name, - pathInZip: path.relative(extractionRoot, child.path), - mimeType: mime.lookup(child.path) || "application/octet-stream", + pathInZip: child.pathInZip, + mimeType: mime.lookup(child.name) || "application/octet-stream", }); continue; } const id = randomUUID(); - const markdownText = isFolder - ? "" - : await fs.readFile(child.path, "utf8"); + const markdownText = isFolder ? "" : (markdownByNode.get(child) ?? ""); // Folder-and-file with the same title (a "name.md" alongside a "name/" // directory) is merged onto a single document: the folder body picks up @@ -591,13 +612,13 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { sibling.markdownText = markdownText; } if (isFolder) { - await this.collectDocumentsAndAttachments({ + this.collectDocumentsAndAttachments({ children: child.children, collectionId, parentDocumentId: sibling.id, out: sibling.children, manifest, - extractionRoot, + markdownByNode, }); } continue; @@ -606,7 +627,7 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { const node: DiscoveredDocument = { id, title: child.title, - pathInZip: path.relative(extractionRoot, child.path), + pathInZip: child.pathInZip, collectionId, parentDocumentId, markdownText, @@ -615,58 +636,15 @@ export default class MarkdownAPIImportTask extends APIImportTask<Markdown> { out.push(node); if (isFolder) { - await this.collectDocumentsAndAttachments({ + this.collectDocumentsAndAttachments({ children: child.children, collectionId, parentDocumentId: id, out: node.children, manifest, - extractionRoot, + markdownByNode, }); } } } - - /** - * Downloads the zip from object storage and extracts it into a temporary - * directory. - * - * @param storageKey Storage key for the uploaded zip. - * @returns The temp dir path and a cleanup callback. Caller must invoke - * cleanup() once finished. - */ - private async downloadAndExtract(storageKey: string): Promise<ExtractedZip> { - const handle = await FileStorage.getFileHandle(storageKey); - - let dirPath: string | undefined; - try { - dirPath = await new Promise<string>((resolve, reject) => { - tmp.dir({ unsafeCleanup: true }, (err, tmpDir) => { - if (err) { - reject(err); - return; - } - resolve(tmpDir); - }); - }); - - await ZipHelper.extract(handle.path, dirPath); - - return { - dirPath, - cleanup: async () => { - await fs - .rm(dirPath!, { recursive: true, force: true }) - .catch(() => {}); - await handle.cleanup().catch(() => {}); - }, - }; - } catch (err) { - if (dirPath) { - await fs.rm(dirPath, { recursive: true, force: true }).catch(() => {}); - } - await handle.cleanup().catch(() => {}); - throw err; - } - } } diff --git a/server/utils/ZipHelper.test.ts b/server/utils/ZipHelper.test.ts index 0e0cacf1ee..c2f6bdcdf1 100644 --- a/server/utils/ZipHelper.test.ts +++ b/server/utils/ZipHelper.test.ts @@ -66,3 +66,92 @@ describe("ZipHelper.extract", () => { expect(await fs.pathExists(path.join(scratchCwd, filename))).toBe(false); }); }); + +describe("ZipHelper.toFileTree", () => { + it("builds a nested tree with normalized pathInZip", async () => { + const zipPath = await writeZip({ + "Collection/sub/page.md": "# hi", + "Collection/other.md": "other", + }); + + const root = await ZipHelper.toFileTree(zipPath); + expect(root.children).toHaveLength(1); + + const collection = root.children[0]; + expect(collection.name).toBe("Collection"); + expect(collection.pathInZip).toBe("Collection"); + expect(collection.children.map((c) => c.name).sort()).toEqual([ + "other.md", + "sub", + ]); + + const sub = collection.children.find((c) => c.name === "sub"); + expect(sub?.children[0].pathInZip).toBe("Collection/sub/page.md"); + }); + + it("normalizes `./`-prefixed entries instead of dropping them", async () => { + const zipPath = await writeZip({ + "./Collection/page.md": "body", + }); + + const root = await ZipHelper.toFileTree(zipPath); + expect(root.children).toHaveLength(1); + expect(root.children[0].name).toBe("Collection"); + expect(root.children[0].children[0].pathInZip).toBe("Collection/page.md"); + }); + + it("filters macOS metadata and dotfiles at any depth", async () => { + const zipPath = await writeZip({ + "__MACOSX/Collection/page.md": "junk", + "Collection/.DS_Store": "junk", + "Collection/page.md": "body", + }); + + const root = await ZipHelper.toFileTree(zipPath); + expect(root.children).toHaveLength(1); + expect(root.children[0].name).toBe("Collection"); + expect(root.children[0].children.map((c) => c.name)).toEqual(["page.md"]); + }); + + it("invokes onFile for each file entry with a readable handle", async () => { + const zipPath = await writeZip({ + "Collection/page.md": "hello world", + "Collection/image.png": "binary", + }); + + const seen: Record<string, string> = {}; + await ZipHelper.toFileTree(zipPath, async (node, entry) => { + if (node.name.endsWith(".md")) { + const buf = await entry.readBuffer(100); + seen[node.pathInZip] = buf.toString("utf8"); + } + }); + + expect(seen).toEqual({ "Collection/page.md": "hello world" }); + }); + + it("rejects reads larger than the provided max size", async () => { + const zipPath = await writeZip({ + "Collection/page.md": "hello world", + }); + + await expect( + ZipHelper.toFileTree(zipPath, async (_node, entry) => { + await entry.readBuffer(10); + }) + ).rejects.toThrow("Collection/page.md is too large"); + }); + + it("exposes entry sizes before the entry is read", async () => { + const zipPath = await writeZip({ + "Collection/page.md": "hello world", + }); + + const sizes: Record<string, number> = {}; + await ZipHelper.toFileTree(zipPath, (node, entry) => { + sizes[node.pathInZip] = entry.uncompressedSize; + }); + + expect(sizes).toEqual({ "Collection/page.md": 11 }); + }); +}); diff --git a/server/utils/ZipHelper.ts b/server/utils/ZipHelper.ts index 05a0dc46fe..8f6c373840 100644 --- a/server/utils/ZipHelper.ts +++ b/server/utils/ZipHelper.ts @@ -5,12 +5,40 @@ import tmp from "tmp"; import type { Entry } from "yauzl"; import yauzl, { validateFileName } from "yauzl"; import { bytesToHumanReadable } from "@shared/utils/files"; +import { ValidationError } from "@server/errors"; import Logger from "@server/logging/Logger"; import { trace } from "@server/logging/tracing"; -import { trimFilenameAndExt } from "./fs"; +import { deserializeFilename, trimFilenameAndExt } from "./fs"; const MAX_FILE_NAME_LENGTH = 255; +export interface ZipEntryHandle { + /** UTF-8 filename as recorded in the zip; directory entries end with `/`. */ + fileName: string; + /** Size of the uncompressed entry in bytes. */ + uncompressedSize: number; + /** True when this entry is a directory marker rather than a file. */ + isDirectory: boolean; + /** + * Read the entry's contents into memory. Safe to skip — entries the caller + * does not read are simply advanced past. + * + * @param maxSize Maximum uncompressed size to read into memory, in bytes. + */ + readBuffer(maxSize: number): Promise<Buffer>; +} + +export interface ZipTreeNode { + /** The file name (last path segment) including extension. */ + name: string; + /** Title derived from the file name (extension stripped, deserialized). */ + title: string; + /** Path within the zip (no leading slash, segments joined with `/`). */ + pathInZip: string; + /** Nested children — populated for directory entries. */ + children: ZipTreeNode[]; +} + @trace() export default class ZipHelper { public static defaultStreamOptions: JSZip.JSZipGeneratorOptions<"nodebuffer"> = @@ -104,6 +132,189 @@ export default class ZipHelper { }); } + /** + * Iterate through entries in a zip file without extracting it to disk. + * Entries are visited serially in archive order. `onEntry` may be async; the + * next entry is only read once the previous handler resolves. + * + * @param filePath The file path where the zip is located. + * @param onEntry Handler invoked for each entry. Skip an entry by returning + * without calling `entry.readBuffer(maxSize)`. + * @returns Promise that resolves once the archive has been fully walked. + */ + public static walk( + filePath: string, + onEntry: (entry: ZipEntryHandle) => Promise<void> | void + ): Promise<void> { + return new Promise((resolve, reject) => { + yauzl.open( + filePath, + { + lazyEntries: true, + autoClose: true, + decodeStrings: false, + }, + function (err, zipfile) { + if (err) { + return reject(err); + } + + let settled = false; + const fail = (error: Error) => { + if (settled) { + return; + } + settled = true; + zipfile.close(); + reject(error); + }; + + zipfile.on("entry", (entry: Entry) => { + const fileName = Buffer.from(entry.fileName).toString("utf8"); + + if (validateFileName(fileName)) { + Logger.warn("Invalid zip entry", { fileName }); + zipfile.readEntry(); + return; + } + + const handle: ZipEntryHandle = { + fileName, + uncompressedSize: entry.uncompressedSize, + isDirectory: /\/$/.test(fileName), + readBuffer: (maxSize) => + new Promise<Buffer>((res, rej) => { + if (entry.uncompressedSize > maxSize) { + return rej(ZipHelper.entryTooLargeError(fileName, maxSize)); + } + + zipfile.openReadStream(entry, (rErr, readStream) => { + if (rErr) { + return rej(rErr); + } + const chunks: Buffer[] = []; + let bytesRead = 0; + readStream.on("data", (chunk: Buffer) => { + bytesRead += chunk.length; + if (bytesRead > maxSize) { + readStream.destroy( + ZipHelper.entryTooLargeError(fileName, maxSize) + ); + return; + } + chunks.push(chunk); + }); + readStream.on("end", () => res(Buffer.concat(chunks))); + readStream.on("error", rej); + }); + }), + }; + + Promise.resolve() + .then(() => onEntry(handle)) + .then(() => { + if (!settled) { + zipfile.readEntry(); + } + }) + .catch(fail); + }); + + zipfile.on("close", () => { + if (!settled) { + settled = true; + resolve(); + } + }); + zipfile.on("error", (error) => fail(error)); + zipfile.readEntry(); + } + ); + }); + } + + /** + * Walk a zip file once and build a tree of its entries without extracting + * to disk. macOS metadata directories (`__MACOSX`) and dotfiles are + * filtered out at any path segment. + * + * The optional `onFile` callback fires once per file entry as it is + * encountered, with both the materialized tree node and a handle to the + * raw entry. Callers that need to pre-load contents (e.g. small text + * files) can call `entry.readBuffer(maxSize)`; callers that only need the tree + * structure can omit the callback entirely. + * + * @param filePath Local filesystem path to the zip. + * @param onFile Optional per-file hook; not called for directory entries. + * @returns A synthetic root node whose `children` are the zip's top-level + * entries. + */ + public static async toFileTree( + filePath: string, + onFile?: (node: ZipTreeNode, entry: ZipEntryHandle) => Promise<void> | void + ): Promise<ZipTreeNode> { + const root: ZipTreeNode = { + name: "", + title: "", + pathInZip: "", + children: [], + }; + + const isFiltered = (segment: string) => + segment === "__MACOSX" || segment.startsWith("."); + + const nodesByPath = new Map<string, ZipTreeNode>(); + + const resolveNode = (entryName: string): ZipTreeNode | null => { + // Drop empty segments and the path-no-op `.` (e.g. entries written as + // `./Collection/page.md`). `..` is preserved so the dotfile filter + // below rejects it — we never resolve path traversal in zip entries. + const segments = entryName + .split("/") + .filter((s) => s !== "" && s !== "."); + if (segments.length === 0) { + return null; + } + + let current = root; + let pathSoFar = ""; + for (let i = 0; i < segments.length; i++) { + const segment = segments[i]; + if (isFiltered(segment)) { + return null; + } + + pathSoFar = pathSoFar ? `${pathSoFar}/${segment}` : segment; + let next = nodesByPath.get(pathSoFar); + if (!next) { + next = { + name: segment, + title: deserializeFilename(path.parse(segment).name), + pathInZip: pathSoFar, + children: [], + }; + current.children.push(next); + nodesByPath.set(pathSoFar, next); + } + current = next; + } + + return current; + }; + + await this.walk(filePath, async (entry) => { + const node = resolveNode(entry.fileName); + if (!node || entry.isDirectory) { + return; + } + if (onFile) { + await onFile(node, entry); + } + }); + + return root; + } + /** * Write a zip file to a disk location * @@ -231,4 +442,12 @@ export default class ZipHelper { ); }); } + + private static entryTooLargeError(fileName: string, maxSize: number): Error { + return ValidationError( + `${fileName} is too large - the maximum size is ${bytesToHumanReadable( + maxSize + )}` + ); + } } From a60d02898e7c9394c3bcb69255a6f9372e8e2f9f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 18 May 2026 20:07:53 -0400 Subject: [PATCH 046/286] fix: Hide position submenu for alphabetically-sorted collections (#12377) When a collection is sorted alphabetically the document position is auto-determined, so the "New document" submenu (Before/After/Nested) is replaced by a direct "New document" action that creates a nested document. --- app/actions/definitions/documents.tsx | 78 ++++++++++++++++++++++----- app/hooks/useDocumentMenuAction.tsx | 2 + 2 files changed, 67 insertions(+), 13 deletions(-) diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index 4a4fe5fcf1..091903661f 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -269,10 +269,14 @@ const createDocumentBefore = createInternalLinkAction({ return false; } const document = stores.documents.get(activeDocumentId); - return ( - !!document?.collectionId && - stores.policies.abilities(currentTeamId).createDocument - ); + if (!document?.collectionId) { + return false; + } + const collection = stores.collections.get(document.collectionId); + if (collection?.sort.field === "title") { + return false; + } + return stores.policies.abilities(currentTeamId).createDocument; }, to: ({ activeDocumentId, stores, sidebarContext }) => { const document = activeDocumentId @@ -307,10 +311,14 @@ const createDocumentAfter = createInternalLinkAction({ return false; } const document = stores.documents.get(activeDocumentId); - return ( - !!document?.collectionId && - stores.policies.abilities(currentTeamId).createDocument - ); + if (!document?.collectionId) { + return false; + } + const collection = stores.collections.get(document.collectionId); + if (collection?.sort.field === "title") { + return false; + } + return stores.policies.abilities(currentTeamId).createDocument; }, to: ({ activeDocumentId, stores, sidebarContext }) => { const document = activeDocumentId @@ -335,6 +343,18 @@ const createDocumentAfter = createInternalLinkAction({ }, }); +function isAlphabeticallySorted( + stores: ActionContext["stores"], + activeDocumentId: string +): boolean { + const document = stores.documents.get(activeDocumentId); + if (!document?.collectionId) { + return false; + } + const collection = stores.collections.get(document.collectionId); + return collection?.sort.field === "title"; +} + export const createNewDocument = createActionWithChildren({ name: ({ t }) => t("New document"), analyticsName: "New document", @@ -342,17 +362,48 @@ export const createNewDocument = createActionWithChildren({ icon: <NewDocumentIcon />, keywords: "create", visible: ({ currentTeamId, activeDocumentId, stores }) => { - if (!activeDocumentId) { + if (!activeDocumentId || !currentTeamId) { return false; } - - return ( - !!currentTeamId && stores.policies.abilities(currentTeamId).createDocument - ); + if (!stores.policies.abilities(currentTeamId).createDocument) { + return false; + } + return !isAlphabeticallySorted(stores, activeDocumentId); }, children: [createDocumentBefore, createDocumentAfter, createNestedDocument], }); +export const createNewDocumentInAlphabeticalCollection = + createInternalLinkAction({ + name: ({ t }) => t("New document"), + analyticsName: "New document", + section: ActiveDocumentSection, + icon: <NewDocumentIcon />, + keywords: "create", + visible: ({ currentTeamId, activeDocumentId, stores }) => { + if (!activeDocumentId || !currentTeamId) { + return false; + } + if (!stores.policies.abilities(currentTeamId).createDocument) { + return false; + } + if (!stores.policies.abilities(activeDocumentId).createChildDocument) { + return false; + } + return isAlphabeticallySorted(stores, activeDocumentId); + }, + to: ({ activeDocumentId, sidebarContext }) => { + const [pathname, search] = + newNestedDocumentPath(activeDocumentId).split("?"); + + return { + pathname, + search, + state: { sidebarContext }, + }; + }, + }); + export const starDocument = createAction({ name: ({ t }) => t("Star"), analyticsName: "Star document", @@ -1528,6 +1579,7 @@ export const rootDocumentActions = [ createDocument, createDraftDocument, createNewDocument, + createNewDocumentInAlphabeticalCollection, createNestedDocument, createTemplateFromDocument, deleteDocument, diff --git a/app/hooks/useDocumentMenuAction.tsx b/app/hooks/useDocumentMenuAction.tsx index 559e764b2b..c6de673d1a 100644 --- a/app/hooks/useDocumentMenuAction.tsx +++ b/app/hooks/useDocumentMenuAction.tsx @@ -12,6 +12,7 @@ import { editDocument, shareDocument, createNewDocument, + createNewDocumentInAlphabeticalCollection, importDocument, createTemplateFromDocument, duplicateDocument, @@ -103,6 +104,7 @@ export function useDocumentMenuAction({ applyTemplateFactory({ actions: templateMenuActions }), importDocument, createNewDocument, + createNewDocumentInAlphabeticalCollection, pinDocument, ActionSeparator, openDocumentComments, From 4a6e94be3f1b4f9861ea14dc321768c84b7bc49c Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 18 May 2026 20:08:12 -0400 Subject: [PATCH 047/286] fix: avoid "Imported from undefined" in document insights (#12378) Only render the "Imported from" line when a source name or filename is actually available, since sourceMetadata can exist without either. --- app/scenes/Document/components/Insights.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/Insights.tsx b/app/scenes/Document/components/Insights.tsx index e454950983..62a78b888d 100644 --- a/app/scenes/Document/components/Insights.tsx +++ b/app/scenes/Document/components/Insights.tsx @@ -58,12 +58,13 @@ function Insights({ document }: Props) { {t(`Last updated`)}{" "} <Time dateTime={document.updatedAt} addSuffix /> </li> - {document.sourceMetadata && ( + {(document.sourceName || + document.sourceMetadata?.fileName) && ( <li> {t("Imported from {{ source }}", { source: document.sourceName ?? - `“${document.sourceMetadata.fileName}”`, + `“${document.sourceMetadata?.fileName}”`, })} </li> )} From 597b6d801c7c74e0d2b293c0746dc3e146eff558 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 18 May 2026 21:37:16 -0400 Subject: [PATCH 048/286] fix: Allow deleting failed and canceled imports (#12379) * fix: Allow deleting failed and canceled imports The delete policy only permitted imports in the Completed state, so the overflow menu for Errored or Canceled imports rendered with no items. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * test: Cover Errored and Canceled in imports.delete Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/policies/import.ts | 8 +++++- server/routes/api/imports/imports.test.ts | 35 ++++++++++++----------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/server/policies/import.ts b/server/policies/import.ts index 05b51011a8..a017e3007f 100644 --- a/server/policies/import.ts +++ b/server/policies/import.ts @@ -3,6 +3,12 @@ import { User, Team, Import } from "@server/models"; import { allow, can } from "./cancan"; import { and, isTeamAdmin, isTeamMutable, or } from "./utils"; +const TerminalStates = [ + ImportState.Completed, + ImportState.Errored, + ImportState.Canceled, +]; + allow(User, ["createImport", "listImports"], Team, (actor, team) => and(isTeamAdmin(actor, team), isTeamMutable(actor)) ); @@ -14,7 +20,7 @@ allow(User, "read", Import, (actor, importModel) => allow(User, "delete", Import, (actor, importModel) => and( can(actor, "read", importModel), - importModel?.state === ImportState.Completed + !!importModel && TerminalStates.includes(importModel.state) ) ); diff --git a/server/routes/api/imports/imports.test.ts b/server/routes/api/imports/imports.test.ts index 5238cb038c..eb5f949ad7 100644 --- a/server/routes/api/imports/imports.test.ts +++ b/server/routes/api/imports/imports.test.ts @@ -177,24 +177,27 @@ describe("#imports.info", () => { }); describe("#imports.delete", () => { - it("should delete the import", async () => { - const admin = await buildAdmin(); - const importModel = await buildImport({ - state: ImportState.Completed, - createdById: admin.id, - teamId: admin.teamId, - }); + it.each([ImportState.Completed, ImportState.Errored, ImportState.Canceled])( + "should delete the import when in %s state", + async (state) => { + const admin = await buildAdmin(); + const importModel = await buildImport({ + state, + createdById: admin.id, + teamId: admin.teamId, + }); - const res = await server.post("/api/imports.delete", admin, { - body: { - id: importModel.id, - }, - }); - const body = await res.json(); + const res = await server.post("/api/imports.delete", admin, { + body: { + id: importModel.id, + }, + }); + const body = await res.json(); - expect(res.status).toEqual(200); - expect(body.success).toEqual(true); - }); + expect(res.status).toEqual(200); + expect(body.success).toEqual(true); + } + ); it("should throw error when import is not in deletable state", async () => { const admin = await buildAdmin(); From d2b719a5a9182109660bf1498e964b472c70f313 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 18 May 2026 22:00:45 -0400 Subject: [PATCH 049/286] fix: Not possible to collapse code block at beginning of doc (#12381) --- shared/editor/nodes/CodeFence.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index 68de028c39..bca0828da6 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -480,7 +480,7 @@ export default class CodeFence extends Node<CodeFenceOptions> { // Click handler for toggle button + auto-expand on focus new Plugin({ key: new PluginKey("collapse-toggle"), - appendTransaction: (transactions, _oldState, newState) => { + appendTransaction: (transactions, oldState, newState) => { const hasCollapseMeta = transactions.some((tr) => tr.getMeta(collapseKey) ); @@ -498,6 +498,14 @@ export default class CodeFence extends Node<CodeFenceOptions> { return null; } + // Only auto-expand when the selection moved INTO the block. If the + // selection was already inside this block (e.g. after the user just + // clicked Collapse while the cursor was inside), don't re-expand. + const oldCodeBlock = findParentNode(isCode)(oldState.selection); + if (oldCodeBlock?.pos === codeBlock.pos) { + return null; + } + return newState.tr .setMeta(collapseKey, { expand: codeBlock.pos }) .setMeta("addToHistory", false); From 158cac0a8a7a877628922b57d012705f1aef332b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 22:08:39 -0400 Subject: [PATCH 050/286] chore(deps): bump react-hook-form from 7.74.0 to 7.76.0 (#12382) Bumps [react-hook-form](https://github.com/react-hook-form/react-hook-form) from 7.74.0 to 7.76.0. - [Release notes](https://github.com/react-hook-form/react-hook-form/releases) - [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md) - [Commits](https://github.com/react-hook-form/react-hook-form/compare/v7.74.0...v7.76.0) --- updated-dependencies: - dependency-name: react-hook-form dependency-version: 7.76.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 41606375a6..ae3afc234f 100644 --- a/package.json +++ b/package.json @@ -219,7 +219,7 @@ "react-dom": "^17.0.2", "react-dropzone": "^11.7.1", "react-helmet-async": "^2.0.5", - "react-hook-form": "^7.72.1", + "react-hook-form": "^7.76.0", "react-i18next": "^12.3.1", "react-merge-refs": "^2.1.1", "react-portal": "^4.3.0", diff --git a/yarn.lock b/yarn.lock index 59a2a4d348..4cc0ad0eed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15868,7 +15868,7 @@ __metadata: react-dom: "npm:^17.0.2" react-dropzone: "npm:^11.7.1" react-helmet-async: "npm:^2.0.5" - react-hook-form: "npm:^7.72.1" + react-hook-form: "npm:^7.76.0" react-i18next: "npm:^12.3.1" react-merge-refs: "npm:^2.1.1" react-portal: "npm:^4.3.0" @@ -17359,12 +17359,12 @@ __metadata: languageName: node linkType: hard -"react-hook-form@npm:^7.72.1": - version: 7.74.0 - resolution: "react-hook-form@npm:7.74.0" +"react-hook-form@npm:^7.76.0": + version: 7.76.0 + resolution: "react-hook-form@npm:7.76.0" peerDependencies: react: ^16.8.0 || ^17 || ^18 || ^19 - checksum: 10c0/54d18c584aedea6db266a4981fb9de3df6bdf238996d2009a4dbf2e28b1fdd53b0644faba72fb55b087db7f93c6ea50753bc1a1691f43d1ba5f92861dc3fd096 + checksum: 10c0/b78ff45a5beca6a954d8ef513031c484f9f30f726c174957228866c9faf0528e24dd5523dac850a8dd6db46753ca3485aae0cd61772f9a131a1a77293bb6931c languageName: node linkType: hard From aab7de9781fd3d986e16787c84492cb215680417 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 22:09:06 -0400 Subject: [PATCH 051/286] chore(deps): bump i18next-http-backend from 3.0.5 to 3.0.6 (#12383) Bumps [i18next-http-backend](https://github.com/i18next/i18next-http-backend) from 3.0.5 to 3.0.6. - [Changelog](https://github.com/i18next/i18next-http-backend/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/i18next-http-backend/compare/v3.0.5...v3.0.6) --- updated-dependencies: - dependency-name: i18next-http-backend dependency-version: 3.0.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index ae3afc234f..11aeffc8d8 100644 --- a/package.json +++ b/package.json @@ -143,7 +143,7 @@ "https-proxy-agent": "^7.0.6", "i18next": "^22.5.1", "i18next-fs-backend": "^2.6.5", - "i18next-http-backend": "^3.0.5", + "i18next-http-backend": "^3.0.6", "invariant": "^2.2.4", "ioredis": "^5.10.1", "ipaddr.js": "^2.3.0", diff --git a/yarn.lock b/yarn.lock index 4cc0ad0eed..8cd72564e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12650,12 +12650,12 @@ __metadata: languageName: node linkType: hard -"i18next-http-backend@npm:^3.0.5": - version: 3.0.5 - resolution: "i18next-http-backend@npm:3.0.5" +"i18next-http-backend@npm:^3.0.6": + version: 3.0.6 + resolution: "i18next-http-backend@npm:3.0.6" dependencies: cross-fetch: "npm:4.1.0" - checksum: 10c0/ca26555be3487eb34c0b2dc879ba8ddbca426fd3fbd2568cb15cd1a8e2c641b8196cb8420fabb09762d1752d612895e54847f5e7db630a75a82301e7e829a90e + checksum: 10c0/b799c4c49943cca5f215d8a7b563785e194e9061724213d5942c049855ed00a340a2478a305dd66cac59cf5fc32c90cbfe3d62c7063a59ad4401948196d430a5 languageName: node linkType: hard @@ -15783,7 +15783,7 @@ __metadata: husky: "npm:^8.0.3" i18next: "npm:^22.5.1" i18next-fs-backend: "npm:^2.6.5" - i18next-http-backend: "npm:^3.0.5" + i18next-http-backend: "npm:^3.0.6" i18next-parser: "npm:^9.4.0" invariant: "npm:^2.2.4" ioredis: "npm:^5.10.1" From c8c2bd8cc96598afa362546c62139215a7b33dd4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 22:09:19 -0400 Subject: [PATCH 052/286] chore(deps-dev): bump @types/koa from 2.15.0 to 2.15.1 (#12384) Bumps [@types/koa](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/koa) from 2.15.0 to 2.15.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/koa) --- updated-dependencies: - dependency-name: "@types/koa" dependency-version: 2.15.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 4 ++-- yarn.lock | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 11aeffc8d8..ce1ad59f1b 100644 --- a/package.json +++ b/package.json @@ -304,7 +304,7 @@ "@types/jsdom": "^28.0.1", "@types/jsonwebtoken": "^8.5.9", "@types/katex": "^0.16.8", - "@types/koa": "^2.15.0", + "@types/koa": "^2.15.1", "@types/koa-compress": "^4.0.7", "@types/koa-helmet": "^6.0.8", "@types/koa-logger": "^3.1.5", @@ -378,7 +378,7 @@ }, "resolutions": { "@types/react": "17.0.91", - "@types/koa": "2.15.0", + "@types/koa": "2.15.1", "prosemirror-transform": "1.10.5", "debug": "4.3.4", "prismjs": "1.30.0", diff --git a/yarn.lock b/yarn.lock index 8cd72564e1..11782014b0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7573,9 +7573,9 @@ __metadata: languageName: node linkType: hard -"@types/koa@npm:2.15.0": - version: 2.15.0 - resolution: "@types/koa@npm:2.15.0" +"@types/koa@npm:2.15.1": + version: 2.15.1 + resolution: "@types/koa@npm:2.15.1" dependencies: "@types/accepts": "npm:*" "@types/content-disposition": "npm:*" @@ -7585,7 +7585,7 @@ __metadata: "@types/keygrip": "npm:*" "@types/koa-compose": "npm:*" "@types/node": "npm:*" - checksum: 10c0/3fd591e25ecffc32ffa7cb152d2c5caeccefe5a72cb09d187102d8f41101bdaeeb802a07a6672eac58f805fa59892e79c1cc203ca7b27b0de75d7eac508c2b47 + checksum: 10c0/a46944d7b982ddb05501edf12853df50138b0e05ca70daf9a7cb860e20c65314ceab8bb6ee2bc451b6997f279082111d80276d47123724d3d40e293a8428fa79 languageName: node linkType: hard @@ -15693,7 +15693,7 @@ __metadata: "@types/jsdom": "npm:^28.0.1" "@types/jsonwebtoken": "npm:^8.5.9" "@types/katex": "npm:^0.16.8" - "@types/koa": "npm:^2.15.0" + "@types/koa": "npm:^2.15.1" "@types/koa-compress": "npm:^4.0.7" "@types/koa-helmet": "npm:^6.0.8" "@types/koa-logger": "npm:^3.1.5" From 8f8cbb6b715c3beaac17103cc5ff91ac19fd343c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 22:09:53 -0400 Subject: [PATCH 053/286] chore(deps): bump umzug from 3.8.2 to 3.8.3 (#12385) Bumps [umzug](https://github.com/sequelize/umzug) from 3.8.2 to 3.8.3. - [Release notes](https://github.com/sequelize/umzug/releases) - [Changelog](https://github.com/sequelize/umzug/blob/main/CHANGELOG.md) - [Commits](https://github.com/sequelize/umzug/compare/v3.8.2...v3.8.3) --- updated-dependencies: - dependency-name: umzug dependency-version: 3.8.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 204 ++++++++++++++++++++++----------------------------- 2 files changed, 89 insertions(+), 117 deletions(-) diff --git a/package.json b/package.json index ce1ad59f1b..26ee8dd353 100644 --- a/package.json +++ b/package.json @@ -257,7 +257,7 @@ "tmp": "^0.2.5", "tunnel-agent": "^0.6.0", "ukkonen": "^2.2.0", - "umzug": "^3.8.2", + "umzug": "^3.8.3", "utility-types": "^3.11.0", "uuid": "^11.1.0", "validator": "13.15.35", diff --git a/yarn.lock b/yarn.lock index 11782014b0..705b2efef0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3544,33 +3544,6 @@ __metadata: languageName: node linkType: hard -"@nodelib/fs.scandir@npm:2.1.5": - version: 2.1.5 - resolution: "@nodelib/fs.scandir@npm:2.1.5" - dependencies: - "@nodelib/fs.stat": "npm:2.0.5" - run-parallel: "npm:^1.1.9" - checksum: 10c0/732c3b6d1b1e967440e65f284bd06e5821fedf10a1bea9ed2bb75956ea1f30e08c44d3def9d6a230666574edbaf136f8cfd319c14fd1f87c66e6a44449afb2eb - languageName: node - linkType: hard - -"@nodelib/fs.stat@npm:2.0.5, @nodelib/fs.stat@npm:^2.0.2": - version: 2.0.5 - resolution: "@nodelib/fs.stat@npm:2.0.5" - checksum: 10c0/88dafe5e3e29a388b07264680dc996c17f4bda48d163a9d4f5c1112979f0ce8ec72aa7116122c350b4e7976bc5566dc3ddb579be1ceaacc727872eb4ed93926d - languageName: node - linkType: hard - -"@nodelib/fs.walk@npm:^1.2.3": - version: 1.2.8 - resolution: "@nodelib/fs.walk@npm:1.2.8" - dependencies: - "@nodelib/fs.scandir": "npm:2.1.5" - fastq: "npm:^1.6.0" - checksum: 10c0/db9de047c3bb9b51f9335a7bb46f4fcfb6829fb628318c12115fbaf7d369bfce71c15b103d1fc3b464812d936220ee9bc1c8f762d032c9f6be9acc99249095b1 - languageName: node - linkType: hard - "@notionhq/client@npm:^2.3.0": version: 2.3.0 resolution: "@notionhq/client@npm:2.3.0" @@ -5819,51 +5792,49 @@ __metadata: languageName: node linkType: hard -"@rushstack/node-core-library@npm:5.13.0": - version: 5.13.0 - resolution: "@rushstack/node-core-library@npm:5.13.0" +"@rushstack/node-core-library@npm:4.0.2": + version: 4.0.2 + resolution: "@rushstack/node-core-library@npm:4.0.2" dependencies: - ajv: "npm:~8.13.0" - ajv-draft-04: "npm:~1.0.0" - ajv-formats: "npm:~3.0.1" - fs-extra: "npm:~11.3.0" + fs-extra: "npm:~7.0.1" import-lazy: "npm:~4.0.0" jju: "npm:~1.4.0" resolve: "npm:~1.22.1" semver: "npm:~7.5.4" + z-schema: "npm:~5.0.2" peerDependencies: "@types/node": "*" peerDependenciesMeta: "@types/node": optional: true - checksum: 10c0/5d0e1a6ae85790c6352d26ca424b8b17e91843471aa980e028aec9eb4ea37c3e81f0ff1c25459c94e9356b22b2f22c035a3849e4c05b53f0a284fe64a686387c + checksum: 10c0/b60070b5b8f4da0cbda5b37f950ed5d3843f3c68aab13ce1d4383b9fd71ca94065dfdd2e3b10b361ae0ef5fd0182d891da2addfd3f1ca21e7789110f6266d83f languageName: node linkType: hard -"@rushstack/terminal@npm:0.15.2": - version: 0.15.2 - resolution: "@rushstack/terminal@npm:0.15.2" +"@rushstack/terminal@npm:0.10.0": + version: 0.10.0 + resolution: "@rushstack/terminal@npm:0.10.0" dependencies: - "@rushstack/node-core-library": "npm:5.13.0" + "@rushstack/node-core-library": "npm:4.0.2" supports-color: "npm:~8.1.1" peerDependencies: "@types/node": "*" peerDependenciesMeta: "@types/node": optional: true - checksum: 10c0/744fb342afabf83b6220a96a6748c6b76a6628e608373d4d57452aedcd253a294118db1b97a2ce56365ce6037bdd9e850b0254eea55c035f8812137c78919715 + checksum: 10c0/128d13d353265bd318fc52a5d2eaf6d352d3abd29fc3500d630b4d114b43392e2dfe8c4df200e855dc2c07e6d4e8f2175c38b5a8b71dff1eee7aa1f5a261e1c7 languageName: node linkType: hard -"@rushstack/ts-command-line@npm:^4.12.2": - version: 4.23.7 - resolution: "@rushstack/ts-command-line@npm:4.23.7" +"@rushstack/ts-command-line@npm:4.19.1": + version: 4.19.1 + resolution: "@rushstack/ts-command-line@npm:4.19.1" dependencies: - "@rushstack/terminal": "npm:0.15.2" + "@rushstack/terminal": "npm:0.10.0" "@types/argparse": "npm:1.0.38" argparse: "npm:~1.0.9" string-argv: "npm:~0.3.1" - checksum: 10c0/d77d2099ed295a0ef66f0763ad4cdbd64b7ab998dda0e5714d13ae34156c813ee59fa92633763ed6f2b5eeea98afaee143f1088e2f58b0d88b920694194e739d + checksum: 10c0/329184ae53b3d5dc0218ef63dbbd65efc3a3f423595cf69865cb47ee7ae233cfa8c93d87c31cdb1ef8a00f286d3dd56dc629a16c5903777a9eb1f603dd801c25 languageName: node linkType: hard @@ -8366,19 +8337,7 @@ __metadata: languageName: node linkType: hard -"ajv-draft-04@npm:~1.0.0": - version: 1.0.0 - resolution: "ajv-draft-04@npm:1.0.0" - peerDependencies: - ajv: ^8.5.0 - peerDependenciesMeta: - ajv: - optional: true - checksum: 10c0/6044310bd38c17d77549fd326bd40ce1506fa10b0794540aa130180808bf94117fac8c9b448c621512bea60e4a947278f6a978e87f10d342950c15b33ddd9271 - languageName: node - linkType: hard - -"ajv-formats@npm:^3.0.1, ajv-formats@npm:~3.0.1": +"ajv-formats@npm:^3.0.1": version: 3.0.1 resolution: "ajv-formats@npm:3.0.1" dependencies: @@ -8392,7 +8351,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^8.0.0, ajv@npm:^8.17.1, ajv@npm:^8.18.0, ajv@npm:^8.6.0": +"ajv@npm:^8.0.0, ajv@npm:^8.17.1, ajv@npm:^8.6.0": version: 8.20.0 resolution: "ajv@npm:8.20.0" dependencies: @@ -9557,6 +9516,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^9.4.1": + version: 9.5.0 + resolution: "commander@npm:9.5.0" + checksum: 10c0/5f7784fbda2aaec39e89eb46f06a999e00224b3763dc65976e05929ec486e174fe9aac2655f03ba6a5e83875bd173be5283dc19309b7c65954701c02025b3c1d + languageName: node + linkType: hard + "commist@npm:^1.0.0": version: 1.1.0 resolution: "commist@npm:1.1.0" @@ -11459,19 +11425,6 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.3.2": - version: 3.3.3 - resolution: "fast-glob@npm:3.3.3" - dependencies: - "@nodelib/fs.stat": "npm:^2.0.2" - "@nodelib/fs.walk": "npm:^1.2.3" - glob-parent: "npm:^5.1.2" - merge2: "npm:^1.3.0" - micromatch: "npm:^4.0.8" - checksum: 10c0/f6aaa141d0d3384cf73cbcdfc52f475ed293f6d5b65bfc5def368b09163a9f7e5ec2b3014d80f733c405f58e470ee0cc451c2937685045cddcdeaa24199c43fe - languageName: node - linkType: hard - "fast-json-stable-stringify@npm:^2.1.0": version: 2.1.0 resolution: "fast-json-stable-stringify@npm:2.1.0" @@ -11534,7 +11487,7 @@ __metadata: languageName: node linkType: hard -"fastq@npm:^1.13.0, fastq@npm:^1.6.0": +"fastq@npm:^1.13.0": version: 1.19.1 resolution: "fastq@npm:1.19.1" dependencies: @@ -11842,7 +11795,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^11.2.0, fs-extra@npm:^11.3.4, fs-extra@npm:~11.3.0": +"fs-extra@npm:^11.2.0, fs-extra@npm:^11.3.4": version: 11.3.4 resolution: "fs-extra@npm:11.3.4" dependencies: @@ -11876,6 +11829,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:~7.0.1": + version: 7.0.1 + resolution: "fs-extra@npm:7.0.1" + dependencies: + graceful-fs: "npm:^4.1.2" + jsonfile: "npm:^4.0.0" + universalify: "npm:^0.1.0" + checksum: 10c0/1943bb2150007e3739921b8d13d4109abdc3cc481e53b97b7ea7f77eda1c3c642e27ae49eac3af074e3496ea02fde30f411ef410c760c70a38b92e656e5da784 + languageName: node + linkType: hard + "fs-merger@npm:^3.2.1": version: 3.2.1 resolution: "fs-merger@npm:3.2.1" @@ -12103,15 +12067,6 @@ __metadata: languageName: node linkType: hard -"glob-parent@npm:^5.1.2, glob-parent@npm:~5.1.2": - version: 5.1.2 - resolution: "glob-parent@npm:5.1.2" - dependencies: - is-glob: "npm:^4.0.1" - checksum: 10c0/cab87638e2112bee3f839ef5f6e0765057163d39c66be8ec1602f3823da4692297ad4e972de876ea17c44d652978638d2fd583c6713d0eb6591706825020c9ee - languageName: node - linkType: hard - "glob-parent@npm:^6.0.2": version: 6.0.2 resolution: "glob-parent@npm:6.0.2" @@ -12121,6 +12076,15 @@ __metadata: languageName: node linkType: hard +"glob-parent@npm:~5.1.2": + version: 5.1.2 + resolution: "glob-parent@npm:5.1.2" + dependencies: + is-glob: "npm:^4.0.1" + checksum: 10c0/cab87638e2112bee3f839ef5f6e0765057163d39c66be8ec1602f3823da4692297ad4e972de876ea17c44d652978638d2fd583c6713d0eb6591706825020c9ee + languageName: node + linkType: hard + "glob-stream@npm:^8.0.3": version: 8.0.3 resolution: "glob-stream@npm:8.0.3" @@ -12244,7 +12208,7 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.8": +"graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.8": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" checksum: 10c0/386d011a553e02bc594ac2ca0bd6d9e4c22d7fa8cfbfc448a6d148c59ea881b092db9dbe3547ae4b88e55f1b01f7c4a2ecc53b310c042793e63aa44cf6c257f2 @@ -14323,6 +14287,13 @@ __metadata: languageName: node linkType: hard +"lodash.get@npm:^4.4.2": + version: 4.4.2 + resolution: "lodash.get@npm:4.4.2" + checksum: 10c0/48f40d471a1654397ed41685495acb31498d5ed696185ac8973daef424a749ca0c7871bf7b665d5c14f5cc479394479e0307e781f61d5573831769593411be6e + languageName: node + linkType: hard + "lodash.groupby@npm:^4.6.0": version: 4.6.0 resolution: "lodash.groupby@npm:4.6.0" @@ -14351,6 +14322,13 @@ __metadata: languageName: node linkType: hard +"lodash.isequal@npm:^4.5.0": + version: 4.5.0 + resolution: "lodash.isequal@npm:4.5.0" + checksum: 10c0/dfdb2356db19631a4b445d5f37868a095e2402292d59539a987f134a8778c62a2810c2452d11ae9e6dcac71fc9de40a6fedcb20e2952a15b431ad8b29e50e28f + languageName: node + linkType: hard + "lodash.isfunction@npm:^3.0.9": version: 3.0.9 resolution: "lodash.isfunction@npm:3.0.9" @@ -14720,13 +14698,6 @@ __metadata: languageName: node linkType: hard -"merge2@npm:^1.3.0": - version: 1.4.1 - resolution: "merge2@npm:1.4.1" - checksum: 10c0/254a8a4605b58f450308fc474c82ac9a094848081bf4c06778200207820e5193726dc563a0d2c16468810516a5c97d9d3ea0ca6585d23c58ccfff2403e8dbbeb - languageName: node - linkType: hard - "mermaid@npm:11.15.0": version: 11.15.0 resolution: "mermaid@npm:11.15.0" @@ -14763,7 +14734,7 @@ __metadata: languageName: node linkType: hard -"micromatch@npm:^4.0.2, micromatch@npm:^4.0.8": +"micromatch@npm:^4.0.2": version: 4.0.8 resolution: "micromatch@npm:4.0.8" dependencies: @@ -15911,7 +15882,7 @@ __metadata: tunnel-agent: "npm:^0.6.0" typescript: "npm:^5.9.3" ukkonen: "npm:^2.2.0" - umzug: "npm:^3.8.2" + umzug: "npm:^3.8.3" unplugin-swc: "npm:^1.5.9" utility-types: "npm:^3.11.0" uuid: "npm:^11.1.0" @@ -17173,13 +17144,6 @@ __metadata: languageName: node linkType: hard -"queue-microtask@npm:^1.2.2": - version: 1.2.3 - resolution: "queue-microtask@npm:1.2.3" - checksum: 10c0/900a93d3cdae3acd7d16f642c29a642aea32c2026446151f0778c62ac089d4b8e6c986811076e1ae180a694cedf077d453a11b58ff0a865629a4f82ab558e102 - languageName: node - linkType: hard - "quick-temp@npm:^0.1.8": version: 0.1.9 resolution: "quick-temp@npm:0.1.9" @@ -18214,15 +18178,6 @@ __metadata: languageName: node linkType: hard -"run-parallel@npm:^1.1.9": - version: 1.2.0 - resolution: "run-parallel@npm:1.2.0" - dependencies: - queue-microtask: "npm:^1.2.2" - checksum: 10c0/200b5ab25b5b8b7113f9901bfe3afc347e19bb7475b267d55ad0eb86a62a46d77510cb0f232507c9e5d497ebda569a08a9867d0d14f57a82ad5564d991588b39 - languageName: node - linkType: hard - "rw@npm:1": version: 1.3.3 resolution: "rw@npm:1.3.3" @@ -19961,16 +19916,16 @@ __metadata: languageName: node linkType: hard -"umzug@npm:^3.8.2": - version: 3.8.2 - resolution: "umzug@npm:3.8.2" +"umzug@npm:^3.8.3": + version: 3.8.3 + resolution: "umzug@npm:3.8.3" dependencies: - "@rushstack/ts-command-line": "npm:^4.12.2" + "@rushstack/ts-command-line": "npm:4.19.1" emittery: "npm:^0.13.0" - fast-glob: "npm:^3.3.2" pony-cause: "npm:^2.1.4" + tinyglobby: "npm:^0.2.16" type-fest: "npm:^4.0.0" - checksum: 10c0/b5b9659fc3e85f486fa3b701cf0b592117b38974d3c5c039d78fd8dbc60dcbaf04ce6430aa5b79a544a64bd99f230d7c9b3deffa2528fcb00c590cd6909fbc32 + checksum: 10c0/6f5a4412ff942682193da1c843eb2871b847e0c0b3a78d071d0761ba38ee1f2c147d6c73ca0b98d980a3bc101ed0ea5566bf44bbd6155e5a86792e5145a0f360 languageName: node linkType: hard @@ -20333,7 +20288,7 @@ __metadata: languageName: node linkType: hard -"validator@npm:13.15.35, validator@npm:^13.15.22, validator@npm:^13.9.0": +"validator@npm:13.15.35, validator@npm:^13.15.22, validator@npm:^13.7.0, validator@npm:^13.9.0": version: 13.15.35 resolution: "validator@npm:13.15.35" checksum: 10c0/1958ebcad578128d154853a2b9bf5b95e7738dcc7d1d065e50a969812272312ec379dcaf375b9d7545e04a71de6755f60f5a4b49c1405737a9c80e11da297eef @@ -21427,6 +21382,23 @@ __metadata: languageName: node linkType: hard +"z-schema@npm:~5.0.2": + version: 5.0.5 + resolution: "z-schema@npm:5.0.5" + dependencies: + commander: "npm:^9.4.1" + lodash.get: "npm:^4.4.2" + lodash.isequal: "npm:^4.5.0" + validator: "npm:^13.7.0" + dependenciesMeta: + commander: + optional: true + bin: + z-schema: bin/z-schema + checksum: 10c0/e4c812cfe6468c19b2a21d07d4ff8fb70359062d33400b45f89017eaa3efe9d51e85963f2b115eaaa99a16b451782249bf9b1fa8b31d35cc473e7becb3e44264 + languageName: node + linkType: hard + "zod-to-json-schema@npm:^3.25.1": version: 3.25.1 resolution: "zod-to-json-schema@npm:3.25.1" From 16470f0b8deaab8d2a2db1d661cc22b9ef7a011e Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Mon, 18 May 2026 22:10:30 -0400 Subject: [PATCH 054/286] New Crowdin updates (#12166) * fix: New French translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] --- shared/i18n/locales/ca_ES/translation.json | 521 ++++++------ shared/i18n/locales/cs_CZ/translation.json | 227 ++--- shared/i18n/locales/da_DK/translation.json | 227 ++--- shared/i18n/locales/de_DE/translation.json | 267 +++--- shared/i18n/locales/en_GB/translation.json | 227 ++--- shared/i18n/locales/es_ES/translation.json | 923 +++++++++++---------- shared/i18n/locales/fa_IR/translation.json | 227 ++--- shared/i18n/locales/fr_FR/translation.json | 257 +++--- shared/i18n/locales/he_IL/translation.json | 227 ++--- shared/i18n/locales/hu_HU/translation.json | 227 ++--- shared/i18n/locales/id_ID/translation.json | 227 ++--- shared/i18n/locales/it_IT/translation.json | 247 +++--- shared/i18n/locales/ja_JP/translation.json | 227 ++--- shared/i18n/locales/ko_KR/translation.json | 237 +++--- shared/i18n/locales/nb_NO/translation.json | 227 ++--- shared/i18n/locales/nl_NL/translation.json | 227 ++--- shared/i18n/locales/pl_PL/translation.json | 227 ++--- shared/i18n/locales/pt_BR/translation.json | 227 ++--- shared/i18n/locales/pt_PT/translation.json | 227 ++--- shared/i18n/locales/ro_RO/translation.json | 227 ++--- shared/i18n/locales/sv_SE/translation.json | 227 ++--- shared/i18n/locales/th_TH/translation.json | 227 ++--- shared/i18n/locales/tr_TR/translation.json | 227 ++--- shared/i18n/locales/uk_UA/translation.json | 227 ++--- shared/i18n/locales/vi_VN/translation.json | 227 ++--- shared/i18n/locales/zh_CN/translation.json | 507 +++++------ shared/i18n/locales/zh_TW/translation.json | 227 ++--- 27 files changed, 4006 insertions(+), 3493 deletions(-) diff --git a/shared/i18n/locales/ca_ES/translation.json b/shared/i18n/locales/ca_ES/translation.json index 8a2dd1a3b4..d22c890d23 100644 --- a/shared/i18n/locales/ca_ES/translation.json +++ b/shared/i18n/locales/ca_ES/translation.json @@ -1,24 +1,24 @@ { - "New API key": "Nova clau API", + "New API key": "Clau API nova", "Copy": "Còpia", "API key copied": "S'ha copiat la clau API", "Delete": "Elimina", "Revoke": "Revoca", "Revoke API key": "Revoca la clau API", "Revoke token": "Revoca el token", - "Open collection": "Open collection", - "New collection": "New collection", - "Create a collection": "Create a collection", - "Edit": "Edit", - "Edit collection": "Edit collection", - "Permissions": "Permissions", - "Collection permissions": "Collection permissions", - "Share this collection": "Share this collection", - "Import document": "Import document", + "Open collection": "Obrir col·lecció", + "New collection": "Col·lecció nova", + "Create a collection": "Crear una col·lecció", + "Edit": "Editar", + "Edit collection": "Editar col·lecció", + "Permissions": "Permisos", + "Collection permissions": "Permisos de col·lecció", + "Share this collection": "Compartir aquesta col·lecció", + "Import document": "Importar document", "Uploading": "S'està carregant", - "Sort in sidebar": "Sort in sidebar", - "A-Z sort": "A-Z sort", - "Z-A sort": "Z-A sort", + "Sort in sidebar": "Ordena a la barra lateral", + "A-Z sort": "Classificació A-Z", + "Z-A sort": "Classificació Z-A", "Manual sort": "Ordenació manual", "Search in collection": "Cerca a la col·lecció", "Star": "Destaca", @@ -50,31 +50,31 @@ "IndexedDB cache cleared": "S'ha netejat la memòria cau d'IndexedDB", "Clear local storage": "Neteja l'emmagatzemament local", "Local storage cleared": "S'ha netejat l'emmagatzemament local", - "Toggle debug logging": "Toggle debug logging", - "Debug logging enabled": "Debug logging enabled", - "Debug logging disabled": "Debug logging disabled", - "Development": "Development", + "Toggle debug logging": "Activa/desactiva el registre de depuració", + "Debug logging enabled": "El registre de depuració està activat", + "Debug logging disabled": "El registre de depuració està desactivat", + "Development": "Desenvolupament", "Open document": "Obre el document", "New draft": "Nou esborrany", - "Nested document": "Nested document", + "Nested document": "Document enllaçat", "Before": "Abans", "After": "Després", - "Publish": "Publica", + "Publish": "Pública", "Published {{ documentName }}": "{{ documentName }} s'ha publicat", "Publish document": "Publica el document", "Unpublish": "Despublica", "Unpublished {{ documentName }}": "Despublica {{ documentName }}", - "Subscription inherited from collection": "Subscription inherited from collection", + "Subscription inherited from collection": "Subscripció heretada des de la col·lecció", "Share this document": "Comparteix aquest document", "Download": "Descarrega", "Download document": "Descarrega el document", "Download as Markdown": "Descarrega com a Markdown", "Download as HTML": "Descarrega com a HTML", "Download as PDF": "Descarrega com a PDF", - "Copy as Markdown": "Copy as Markdown", - "Markdown copied to clipboard": "Markdown copied to clipboard", - "Copy as text": "Copy as text", - "Text copied to clipboard": "Text copied to clipboard", + "Copy as Markdown": "Copiar com Markdown", + "Markdown copied to clipboard": "Markdown copiat al porta-retalls", + "Copy as text": "Copiar com a text", + "Text copied to clipboard": "Text copiat al porta-retalls", "Copy public link": "Còpia l'enllaç públic", "Link copied to clipboard": "S'ha copiat l'enllaç al porta-retalls", "Copy link": "Còpia l'enllaç", @@ -88,38 +88,38 @@ "Pinned to home": "S'ha fixat a la pàgina principal", "Pin": "Fixa", "Search in document": "Cerca al document", - "Print": "Imprimex", + "Print": "Imprimir", "Print document": "Imprimeix el document", "Open in desktop app": "Obre en una aplicació d'escriptori", - "Present": "Present", - "Present document": "Present document", - "Templatize": "Templatize", + "Present": "Presentar", + "Present document": "Presentar document", + "Templatize": "Convertir en plantilla", "Create template": "Crea una plantilla", "Open random document": "Obre un document a l'atzar", - "Search documents for \"{{searchQuery}}\"": "Search documents for \"{{searchQuery}}\"", + "Search documents for \"{{searchQuery}}\"": "Cercar documents amb \"{{searchQuery}}\"", "Move": "Mou", "Move {{ documentType }}": "Mou {{ documentType }}", - "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", + "Are you sure you want to archive this document?": "Esteu segur que voleu arxivar aquest document?", "Document archived": "S'ha arxivat el document", - "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", - "{{ documentName }} restored": "{{ documentName }} restored", + "Archiving this document will remove it from the collection and search results.": "Arxivar aquest document l'eliminarà de la col·lecció i dels resultats de cerca.", + "{{ documentName }} restored": "{{ documentName }} restaurat", "Choose a collection": "Escull una col·lecció", - "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", + "Delete {{ documentName }}": "Eliminar {{ documentName }}", + "Permanently delete": "Eliminat permanentment", + "Permanently delete {{ documentName }}": "Eliminar permanentment {{ documentName }}", + "Empty trash": "Buidar paperera", + "Permanently delete documents in trash": "Suprimeix permanentment els documents de la paperera", + "Comments": "Comentaris", "History": "Història", - "Insights": "Insights", + "Insights": "Coneixements", "Leave document": "Deixa el document", - "You have left the shared document": "You have left the shared document", - "Could not leave document": "Could not leave document", - "Apply template": "Apply template", + "You have left the shared document": "Has abandonat el document compartit", + "Could not leave document": "No s'ha pogut abandonar el document", + "Apply template": "Aplicar plantilla", "New emoji": "Nova emoticona", "Upload emoji": "Puja una emoticona", "Disconnect": "Desconnecta", - "Disconnect analytics": "Disconnect analytics", + "Disconnect analytics": "Desconnectar analítiques", "Home": "Inici", "Drafts": "Esborranys", "Search": "Cerca", @@ -129,20 +129,20 @@ "Templates": "Plantilles", "Notification settings": "Configuració de les notificacions", "Notifications": "Notificacions", - "Preferences": "Preferences", - "Documentation": "Documentation", - "API documentation": "API documentation", + "Preferences": "Preferències", + "Documentation": "Documentació", + "API documentation": "Documentació API", "Toggle sidebar": "Commuta la barra lateral", - "Send us feedback": "Send us feedback", - "Report a bug": "Report a bug", + "Send us feedback": "Envia'ns comentaris", + "Report a bug": "Informa d'un error", "Changelog": "Registre de canvis", "Keyboard shortcuts": "Dreceres del teclat", - "Download {{ platform }} app": "Download {{ platform }} app", + "Download {{ platform }} app": "Descarregar l'aplicació {{ platform }}", "Log out": "Tanca la sessió", - "Mark notifications as read": "Mark notifications as read", - "Archive all notifications": "Archive all notifications", - "Mark as read": "Mark as read", - "Mark as unread": "Mark as unread", + "Mark notifications as read": "Marcar totes les limitacions com a llegides", + "Archive all notifications": "Arxivar totes les notificacions", + "Mark as read": "Marcar com a llegit", + "Mark as unread": "Marcar com a no llegit", "New App": "Nova aplicació", "New Application": "Nova aplicació", "This version of the document was deleted": "Aquesta versió del document s'ha suprimit", @@ -151,7 +151,7 @@ "PDF": "PDF", "Exporting": "S'està exportant", "Markdown": "Markdown", - "Download revision": "Download revision", + "Download revision": "Baixar revisió", "Dark": "Fosc", "Light": "Clar", "Toggle theme": "Commuta el tema", @@ -169,12 +169,13 @@ "New workspace": "Nou espai de treball", "Create a workspace": "Crea un espai de treball", "Login to workspace": "Inicia sessió a un espai de treball", + "template": "plantilla", "Template deleted": "S'ha eliminat la plantilla", "Deleting": "S'està eliminat", - "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", + "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Estàs segur sobre això? Eliminar la plantilla <em>{{ templateName }}</em> és permanent.", "Move to workspace": "Mou a l'espai de treball", "Template moved": "S'ha mogut la plantilla", - "Couldn't move the template, try again?": "Couldn't move the template, try again?", + "Couldn't move the template, try again?": "No s'ha pogut moure la plantilla, provar de nou?", "Move to collection": "Mou a la col·lecció", "Move template": "Mou la plantilla", "Print template": "Plantilla d'impressió", @@ -205,103 +206,104 @@ "previously edited": "s'ha editat anteriorment", "You": "Tu", "Avatar of {{ name }}": "Avatar de {{ name }}", - "Viewers": "Viewers", - "Managers": "Managers", + "Viewers": "Visualitzadors", + "Managers": "Administradors", "Members": "Membres", "Manage templates": "Gestiona les plantilles", - "Choose who can create and edit templates in this collection.": "Choose who can create and edit templates in this collection.", - "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.", - "Commenting": "Commenting", - "Allow commenting on documents within this collection.": "Allow commenting on documents within this collection.", - "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.", - "Advanced options": "Advanced options", - "Saving": "Saving", + "Choose who can create and edit templates in this collection.": "Escull qui pot crear i editar plantilles a aquesta col·lecció.", + "Public document sharing": "Compartició de documents públics", + "Allow documents within this collection to be shared publicly on the internet.": "Permet que els documents d'aquesta col·lecció es comparteixin públicament a Internet.", + "Commenting": "Comentaris", + "Allow commenting on documents within this collection.": "Permet comentar documents d'aquesta col·lecció.", + "Collections are used to group documents and choose permissions": "Les col·leccions s'utilitzen per agrupar documents i triar permisos", + "Name": "Nom", + "The default access for workspace members, you can share with more users or groups later.": "L'accés per defecte per als membres de l'espai de treball, podeu compartir amb més usuaris o grups més tard.", + "Advanced options": "Opcions avançades", + "Saving": "Guardant", "Save": "Desa", - "Creating": "Creating", - "Create": "Create", - "Collection deleted": "Collection deleted", - "I’m sure – Delete": "I’m sure – Delete", - "Are you sure about that? Deleting the <em>{{collectionName}}</em> 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 <em>{{collectionName}}</em> collection is permanent and cannot be restored, however all published documents within will be moved to the trash.", - "Also, <em>{{collectionName}}</em> is being used as the start view – deleting it will reset the start view to the Home page.": "Also, <em>{{collectionName}}</em> is being used as the start view – deleting it will reset the start view to the Home page.", - "Type a command or search": "Type a command or search", - "New from template": "New from template", - "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 <em>{{ title }}</em> to the {{ newCollectionName }} collection will change permission for all workspace members from <em>{{ prevPermission }}</em> to <em>{{ newPermission }}</em>.": "Moving the document <em>{{ title }}</em> to the {{ newCollectionName }} collection will change permission for all workspace members from <em>{{ prevPermission }}</em> to <em>{{ newPermission }}</em>.", - "Collections could not be loaded, please reload the app": "Collections could not be loaded, please reload the app", - "Start view": "Start view", - "Install now": "Install now", - "Deleted Collection": "Deleted Collection", - "Untitled": "Untitled", - "Collection options": "Collection options", - "Document options": "Document options", - "Unpin": "Unpin", - "Export started": "Export started", - "A link to your file will be sent through email soon": "A link to your file will be sent through email soon", - "Preparing your download": "Preparing your download", - "A file containing the selected documents in Markdown format.": "A file containing the selected documents in Markdown format.", - "A file containing the selected documents in HTML format.": "A file containing the selected documents in HTML format.", - "A file containing the selected documents in PDF format.": "A file containing the selected documents in PDF format.", - "Include child documents": "Include child documents", - "When selected, exporting the document <em>{{documentName}}</em> may take some time.": "When selected, exporting the document <em>{{documentName}}</em> may take some time.", - "You will receive an email when it's complete.": "You will receive an email when it's complete.", - "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 <em>{{ location }}</em>": "Copy to <em>{{ location }}</em>", - "Copying": "Copying", - "Search collections & documents": "Search collections & documents", - "Search collections": "Search collections", - "No results found": "No results found", - "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 <em>{{ location }}</em>": "Move to <em>{{ location }}</em>", - "Couldn’t move the template, try again?": "Couldn’t move the template, try again?", - "New": "New", - "Only visible to you": "Only visible to you", - "Draft": "Draft", - "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", + "Creating": "Creant", + "Create": "Crear", + "Collection deleted": "Col·lecció suprimida", + "I’m sure – Delete": "Estic segur - Eliminar", + "Are you sure about that? Deleting the <em>{{collectionName}}</em> collection is permanent and cannot be restored, however all published documents within will be moved to the trash.": "N'estàs segur? Suprimir la col·lecció <em>{{collectionName}}</em> és permanent i no es pot restaurar, però tots els documents publicats es mouran a la paperera.", + "Also, <em>{{collectionName}}</em> is being used as the start view – deleting it will reset the start view to the Home page.": "A més, <em>{{collectionName}}</em> s'està utilitzant com a vista d'inici, suprimint-la es restablirà la vista inicial a la pàgina d'inici.", + "Type a command or search": "Escriu una ordre o cerca", + "New from template": "Nou a partir d'una plantilla", + "Choose a template": "Escolliu una plantilla", + "Are you sure you want to permanently delete this entire comment thread?": "Estàs segur que vols eliminar permanentment aquest fil complert de comentaris?", + "Are you sure you want to permanently delete this comment?": "Estàs segur que vols eliminar permanentment aquest comentari?", + "Confirm": "Confirmar", + "manage access": "Gestionar l'accés", + "view and edit access": "accés de lectura i edició", + "view only access": "accés només de lectura", + "no access": "Sense accés", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "No teniu permís per moure {{ documentName }} a la col·lecció {{ collectionName }}", + "Move document": "Moure document", + "Moving": "Movent", + "Moving the document <em>{{ title }}</em> to the {{ newCollectionName }} collection will change permission for all workspace members from <em>{{ prevPermission }}</em> to <em>{{ newPermission }}</em>.": "En moure el document <em>{{ title }}</em> a la col·lecció {{ newCollectionName }} es canviarà el permís per a tots els membres de l'espai de treball de <em>{{ prevPermission }}</em> a <em>{{ newPermission }}</em>.", + "Collections could not be loaded, please reload the app": "No s'han pogut carregar les col·leccions. Torneu a carregar l'aplicació", + "Start view": "Vista inicial", + "Install now": "Instal·lar ara", + "Deleted Collection": "Col·lecció eliminada", + "Untitled": "Sense títol", + "Collection options": "Opcions de col·lecció", + "Document options": "Opcions del document", + "Unpin": "Deixa de fixar", + "Export started": "Exportació iniciada", + "A link to your file will be sent through email soon": "Un enllaç al teu fitxer serà enviat aviat.", + "Preparing your download": "Preparant la teva descàrrega", + "A file containing the selected documents in Markdown format.": "Un fitxer que conté els documents seleccionats en format Markdown.", + "A file containing the selected documents in HTML format.": "Un fitxer que conté els documents seleccionats en format HTML.", + "A file containing the selected documents in PDF format.": "Un fitxer que conté els documents seleccionats en format PDF.", + "Include child documents": "Inclou documents fills", + "When selected, exporting the document <em>{{documentName}}</em> may take some time.": "Quan se selecciona, exportar el document <em>{{documentName}}</em> pot trigar una estona.", + "You will receive an email when it's complete.": "Rebràs un correu electrònic quan estigui complet.", + "Select a location to copy": "Sel·lecciona una ubicació per a copiar", + "Document copied": "Document copiat", + "Couldn’t copy the document, try again?": "No s'ha pogut copiar el document, provar de nou?", + "Include nested documents": "Inclou documents imbricats", + "Copy to <em>{{ location }}</em>": "Copia a <em>{{ location }}</em>", + "Copying": "Copiant", + "Search collections & documents": "Cerca col·leccions i documents", + "Search collections": "Cerca col·leccions", + "No results found": "No s'ha trobat cap resultat", + "Select a location to move": "Selecciona una ubicació a moure", + "Document moved": "Document mogut", + "Couldn’t move the document, try again?": "No s'ha pogut moure el document, torneu-ho a provar?", + "Move to <em>{{ location }}</em>": "Mou a <em>{{ location }}</em>", + "Couldn’t move the template, try again?": "No s'ha pogut moure la plantilla, torneu-ho a provar?", + "New": "Nou", + "Only visible to you": "Només visible per a tu", + "Draft": "Esborrany", + "You updated": "Heu actualitzat", + "{{ userName }} updated": "{{ userName }} actualitzat", + "You deleted": "Heu suprimit", + "{{ userName }} deleted": "{{ userName }} suprimit", + "You archived": "Heu arxivat", + "{{ userName }} archived": "{{ userName }} arxivat", + "Imported": "Importat", + "You created": "Heu creat", + "{{ userName }} created": "{{ userName }} ha creat un document", + "You published": "Heu publicat", + "{{ userName }} published": "{{ userName }} ha publicat", + "Never viewed": "Mai vist", + "Viewed": "Vist", + "in": "en", + "nested document": "document imbricat", + "nested document_plural": "documents imbricats", + "{{ total }} task": "{{ total }} tasca", + "{{ total }} task_plural": "{{ total }} tasques", + "{{ completed }} task done": "{{ completed }} tasca finalitzada", + "{{ completed }} task done_plural": "{{ completed }} tasques finalitzades", + "{{ completed }} of {{ total }} tasks": "{{ completed }} de {{ total }} tasques", + "Currently editing": "Edició actual", "Currently viewing": "Currently viewing", "Viewed {{ timeAgo }}": "Viewed {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", - "Drop the image here": "Drop the image here", + "Drop the image here": "Deixa anar la imatge aquí", "Click, drop, or paste an image here": "Click, drop, or paste an image here", "PNG, JPG, GIF, or WebP up to {{ size }}": "PNG, JPG, GIF, or WebP up to {{ size }}", "Please enter a name for the emoji": "Please enter a name for the emoji", @@ -309,8 +311,8 @@ "Emoji created successfully": "Emoji created successfully", "Add emoji": "Add emoji", "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.", - "Upload an image": "Upload an image", - "Choose a name": "Choose a name", + "Upload an image": "Puja una imatge", + "Choose a name": "Trieu un nom", "name can only contain lowercase letters, numbers, and underscores.": "name can only contain lowercase letters, numbers, and underscores.", "This emoji will be available as": "This emoji will be available as", "Emoji replaced": "Emoji replaced", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Sorry, an error occurred.", "Click to retry": "Click to retry", "Back": "Back", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Manage", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Unknown", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m read", - "Manage": "Manage", "All members": "All members", "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} member", "{{ count }} member_plural": "{{ count }} members", + "Public link copied to clipboard": "Public link copied to clipboard", "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", + "Publish to web": "Publish to web", "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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "Invite", "{{ userName }} was added to the collection": "{{ userName }} was added to the collection", @@ -445,8 +447,24 @@ "Switch to dark": "Switch to dark", "Switch to light": "Switch to light", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Add", "Add or invite": "Add or invite", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Show last modified", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Behavior", + "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", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "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</2>": "Has access through <2>parent</2>", "Suspended": "Suspended", @@ -475,14 +492,12 @@ "Leave": "Leave", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Archived collections", @@ -548,10 +563,18 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Go to link": "Go to link", + "Open link": "Open link", + "Remove link": "Remove link", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Search or paste a link", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "Paste a link", + "Delete embed": "Delete embed", + "Delete image": "Delete image", "Profile picture": "Profile picture", "Create a new doc": "Create a new doc", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mention", "Embed": "Embed", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Sorry, that link won’t work for this embed type", "Upload file": "Upload file", + "Paste a {{service}} link…": "Paste a {{service}} link…", "More options": "More options", - "Rename": "Rename", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "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", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Code block", - "Copied to clipboard": "Copied to clipboard", - "Code": "Code", - "Comment": "Comment", - "Create link": "Create link", - "Edit image URL": "Edit image URL", - "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", + "Type '/' to insert": "Type '/' to insert", + "Keep typing to filter": "Keep typing to filter", + "Replace file": "Replace file", "Delete file": "Delete file", "Show preview": "Show preview", - "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", - "Embed PDF": "Embed PDF", - "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", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Write a caption", - "Info": "Info", - "Info notice": "Info notice", - "Link": "Link", - "Highlight": "Highlight", - "Background color": "Background color", - "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", + "Todo list": "Task list", + "Bulleted list": "Bulleted list", "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", + "Image": "Image", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "File attachment", "Table": "Table", - "Export as CSV": "Export as CSV", - "Toggle header": "Toggle header", - "Math inline (LaTeX)": "Math inline (LaTeX)", + "Quote": "Quote", + "Code block": "Code block", "Math block (LaTeX)": "Math block (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Tip", - "Tip notice": "Tip notice", - "Warning": "Warning", - "Warning notice": "Warning notice", - "Success": "Success", - "Success notice": "Success notice", + "Toggle block": "Toggle block", + "Divider": "Divider", + "Page break": "Page break", "Current date": "Current date", "Current time": "Current time", "Current date and time": "Current date and time", - "Indent": "Indent", - "Outdent": "Outdent", - "Video": "Video", - "None": "None", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Info notice", + "Success notice": "Success notice", + "Warning notice": "Warning notice", + "Tip notice": "Tip notice", "Wrap text": "Wrap text", + "Placeholder": "Placeholder", + "Bold": "Bold", + "Italic": "Italic", + "Strikethrough": "Strikethrough", + "Background color": "Background color", + "None": "None", + "Highlight": "Highlight", + "Code": "Code", + "Heading": "Heading", + "Subheading": "Subheading", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Outdent", + "Indent": "Indent", + "Create link": "Create link", + "Comment": "Comment", + "Align left": "Align left", + "Align center": "Align center", + "Align right": "Align right", + "Full width": "Full width", + "Download image": "Download image", + "Replace image": "Replace image", + "Edit image URL": "Edit image URL", + "Default width": "Default width", + "Distribute columns": "Distribute columns", + "Delete table": "Delete table", + "Export as CSV": "Export as CSV", + "Sort ascending": "Sort ascending", + "Sort descending": "Sort descending", + "Toggle header": "Toggle header", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Rename", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "shared", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access 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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Backlinks", + "Clear search highlight": "Clear search highlight", + "Warning": "Warning", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", @@ -885,9 +885,13 @@ "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", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "We were unable to load the document while offline.", @@ -936,6 +940,7 @@ "Large header": "Large header", "Medium header": "Medium header", "Small header": "Small header", + "Link": "Link", "Underline": "Underline", "Undo": "Undo", "Redo": "Redo", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Copied to clipboard", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferences saved", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "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.", @@ -1317,6 +1327,8 @@ "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", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", @@ -1325,7 +1337,6 @@ "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.", "All notifications": "All notifications", - "Preferences saved": "Preferences saved", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Delete account", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Sorry, an error occurred uploading the file", + "Sorry, that type of link is not supported": "Sorry, that type of link is not supported", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "Loading", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Write a caption", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 3be19d0585..67051ea38e 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -169,6 +169,7 @@ "New workspace": "Nový pracovní prostor", "Create a workspace": "Vytvořit pracovní prostor", "Login to workspace": "Přihlásit se do pracovního prostoru", + "template": "template", "Template deleted": "Šablona byla odstraněna", "Deleting": "Odstraňování…", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Jste si jisti? Smazání šablony <em>{{ templateName }}</em> je trvalé.", @@ -298,6 +299,7 @@ "Currently editing": "Právě upravuje", "Currently viewing": "Právě prohlíží", "Viewed {{ timeAgo }}": "Zobrazeno před {{ timeAgo }}", + "Uploading… {{ progress }}%": "Nahrávání… {{ progress }} %", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Typ souboru není podporován. Použijte PNG, JPG, GIF nebo WebP.", "File size too large. Maximum size is {{ size }}.": "Soubor je příliš velký. Maximální velikost je {{ size }}.", "Click or drag to replace": "Kliknutím nebo přetažením nahradit", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Došlo k chybě.", "Click to retry": "Zkuste to znovu", "Back": "Zpět", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Spravovat", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Oprávnění pro uživatele {{ userName }} byla aktualizována", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Možnosti oznámení", "Unknown": "Neznámý", "Mentions": "Zmínky", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "Doba čtení: {{ hours }} h {{ minutes }} min", "{{ hours }}h read": "Doba čtení: {{ hours }} h", "{{ minutes }}m read": "Doba čtení: {{ minutes }} min", - "Manage": "Spravovat", "All members": "Všichni členové", "Everyone in the workspace": "Všichni v pracovním prostoru", "{{ count }} member": "{{ count }} člen", "{{ count }} member_plural": "Členové: {{ count }}", + "Public link copied to clipboard": "Veřejný odkaz byl zkopírován do schránky", "Only lowercase letters, digits and dashes allowed": "Jsou povolena pouze malá písmena, číslice a pomlčky", "Sorry, this link has already been used": "Odkaz již byl použit.", - "Public link copied to clipboard": "Veřejný odkaz byl zkopírován do schránky", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Povolit přístup komukoli s odkazem", "Publish to internet": "Zveřejnit na internetu", - "Search engine indexing": "Indexace vyhledávači", - "Disable this setting to discourage search engines from indexing the page": "Vypnutím tohoto nastavení zabráníte vyhledávačům v indexování stránky.", - "Email subscriptions": "E-mailové odběry", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Povolit uživatelům odběr oznámení o aktualizaci dokumentů přes e-mail", - "Show last modified": "Zobrazit poslední úpravu", - "Display the last modified timestamp on the shared page": "Zobrazit čas poslední úpravy na sdílené stránce", - "Show table of contents": "Zobrazit obsah", - "Display the table of contents on documents by default": "Ve výchozím nastavení u dokumentů zobrazovat obsah", "All documents in this collection will be shared on the web, including any new documents added later": "Všechny dokumenty v této kolekci budou sdíleny na webu, včetně nových dokumentů přidaných později.", "Invite": "Pozvat", "{{ userName }} was added to the collection": "{{ userName }} byl přidán do kolekce", @@ -445,8 +447,24 @@ "Switch to dark": "Přepnout na tmavý režim", "Switch to light": "Přepnout na světlý režim", "Subscribe to updates": "Přihlásit se k odběru aktualizací", + "Logo": "Logo", "Add": "Přidat", "Add or invite": "Přidat nebo pozvat", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Zobrazit poslední úpravu", + "Display the last modified timestamp on the shared page": "Zobrazit čas poslední úpravy na sdílené stránce", + "Show table of contents": "Zobrazit obsah", + "Display the table of contents on documents by default": "Ve výchozím nastavení u dokumentů zobrazovat obsah", + "Behavior": "Chování", + "Search engine indexing": "Indexace vyhledávači", + "Disable this setting to discourage search engines from indexing the page": "Vypnutím tohoto nastavení zabráníte vyhledávačům v indexování stránky.", + "Email subscriptions": "E-mailové odběry", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Povolit uživatelům odběr oznámení o aktualizaci dokumentů přes e-mail", "Something went wrong": "Něco se pokazilo", "Check your email to confirm your subscription": "Zkontrolujte svůj e-mail a potvrďte odběr", "Get notified when this document is updated": "Dostat oznámení o aktualizaci tohoto dokumentu", @@ -465,7 +483,6 @@ "Access inherited from collection": "Přístup zděděn z kolekce", "{{ userName }} was removed from the document": "Uživatel {{ userName }} byl z dokumentu odebrán", "Could not remove user": "Uživatele se nepodařilo odebrat", - "Permissions for {{ userName }} updated": "Oprávnění pro uživatele {{ userName }} byla aktualizována", "Could not update user": "Uživatele se nepodařilo aktualizovat", "Has access through <2>parent</2>": "Má přístup přes <2>nadřazený prvek</2>", "Suspended": "Pozastaveno", @@ -475,14 +492,12 @@ "Leave": "Opustit", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Přístup má kdokoli s odkazem, protože kolekce <2>{sharedParent.sourceTitle}</2> je sdílená.", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Přístup má kdokoli s odkazem, protože nadřazený dokument <2>{sharedParent.sourceTitle}</2> je sdílený.", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Povolit uživatelům odběr oznámení o aktualizaci dokumentu přes e-mail", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Vnořené dokumenty nejsou automaticky sdíleny na webu. Chcete-li k nim povolit přístup, zapněte sdílení.", "{{ userName }} was added to the document": "{{ userName }} byl přidán do dokumentu", "{{ count }} people added to the document": "{{ count }} osob bylo přidáno do dokumentu", "{{ count }} people added to the document_plural": "{{ count }} osob bylo přidáno do dokumentu", "{{ count }} groups added to the document": "Do dokumentu přidáno skupin: {{ count }}", "{{ count }} groups added to the document_plural": "Do dokumentu přidáno skupin: {{ count }}", - "Logo": "Logo", "Expand sidebar": "Rozbalit boční panel", "Collapse sidebar": "Sbalit boční panel", "Archived collections": "Archivované kolekce", @@ -548,10 +563,18 @@ "Replacement": "Nahrazení", "Replace": "Nahradit", "Replace all": "Nahradit vše", + "Go to link": "Přejít na odkaz", + "Open link": "Otevřít odkaz", + "Remove link": "Odstranit odkaz", + "Formatting controls": "Prvky formátování", + "Search or paste a link": "Hledat nebo vložit odkaz", "Image width": "Šířka obrázku", "Width": "Šířka", "Image height": "Výška obrázku", "Height": "Výška", + "Paste a link": "Vložit odkaz", + "Delete embed": "Odstranit vložený prvek", + "Delete image": "Odstranit obrázek", "Profile picture": "Profilový obrázek", "Create a new doc": "Vytvořit nový dokument", "Create a nested doc": "Vytvořit zanořený dokument", @@ -561,106 +584,78 @@ "Mention": "Zmínit", "Embed": "Vložit", "Not supported": "Nepodporováno", + "Sorry, that link won’t work for this embed type": "Odkaz není pro daný typ vložení podporován.", "Upload file": "Nahrát soubor", + "Paste a {{service}} link…": "Vložit odkaz na {{service}}…", "More options": "Další možnosti", - "Rename": "Přejmenovat", - "Insert after": "Vložit za", - "Insert before": "Vložit před", - "Move up": "Přesunout nahoru", - "Move down": "Přesunout dolů", - "Move left": "Přesunout doleva", - "Move right": "Přesunout doprava", - "Align center": "Zarovnat na střed", - "Align left": "Zarovnat doleva", - "Align right": "Zarovnat doprava", - "Default width": "Výchozí šířka", - "Full width": "Plná šířka", - "Bulleted list": "Odrážkový seznam", - "Todo list": "Seznam úkolů", - "Show {{ count }} completed": "Zobrazit {{ count }} dokončené", - "Show {{ count }} completed_plural": "Zobrazit {{ count }} dokončených", - "Hide completed": "Skrýt dokončené", - "Code block": "Blok kódu", - "Copied to clipboard": "Zkopírováno do schránky", - "Code": "Kód", - "Comment": "Komentář", - "Create link": "Vytvořit odkaz", - "Edit image URL": "Upravit URL obrázku", - "Sorry, an error occurred creating the link": "Při vytváření odkazu došlo k chybě.", - "Create a new child doc": "Vytvořit nový podřazený dokument", - "Delete table": "Odstranit tabulku", + "Type '/' to insert": "Pro vložení stiskněte „/“", + "Keep typing to filter": "Psaním filtrujte…", + "Replace file": "Nahradit soubor", "Delete file": "Odstranit soubor", "Show preview": "Zobrazit náhled", - "Download file": "Stáhnout soubor", - "Replace file": "Nahradit soubor", - "Delete image": "Odstranit obrázek", - "Download image": "Stáhnout obrázek", - "Replace image": "Nahradit obrázek", - "Italic": "Kurzíva", - "Sorry, that link won’t work for this embed type": "Odkaz není pro daný typ vložení podporován.", - "File attachment": "Příloha", - "Embed PDF": "Vložit PDF", - "Enter a link": "Vložit odkaz", "Big heading": "Nadpis 1", "Medium heading": "Nadpis 2", "Small heading": "Nadpis 3", "Extra small heading": "Nadpis 4", - "Heading": "Nadpis", - "Divider": "Oddělovač", - "Image": "Obrázek", - "Sorry, an error occurred uploading the file": "Při nahrávání souboru došlo k chybě.", - "Uploading… {{ progress }}%": "Nahrávání… {{ progress }} %", - "Write a caption": "Napsat popisek", - "Info": "Informace", - "Info notice": "Informační upozornění", - "Link": "Odkaz", - "Highlight": "Zvýraznění", - "Background color": "Barva pozadí", - "Type '/' to insert": "Pro vložení stiskněte „/“", - "Keep typing to filter": "Psaním filtrujte…", - "Open link": "Otevřít odkaz", - "Go to link": "Přejít na odkaz", - "Sorry, that type of link is not supported": "Typ odkazu není podporován.", + "Todo list": "Seznam úkolů", + "Bulleted list": "Odrážkový seznam", "Ordered list": "Číslovaný seznam", - "Page break": "Konec stránky", - "Paste a link": "Vložit odkaz", - "Paste a {{service}} link…": "Vložit odkaz na {{service}}…", - "Placeholder": "Zástupný text", - "Quote": "Citace", - "Remove link": "Odstranit odkaz", - "Search or paste a link": "Hledat nebo vložit odkaz", - "Strikethrough": "Přeškrtnuté", - "Bold": "Tučné", - "Subheading": "Podnadpis", - "Sort ascending": "Seřadit vzestupně", - "Sort descending": "Seřadit sestupně", + "Image": "Obrázek", + "Video": "Video", + "Embed PDF": "Vložit PDF", + "File attachment": "Příloha", "Table": "Tabulka", - "Export as CSV": "Exportovat do CSV", - "Toggle header": "Přepnout záhlaví", - "Math inline (LaTeX)": "Matematický zápis (vložený LaTeX)", + "Quote": "Citace", + "Code block": "Blok kódu", "Math block (LaTeX)": "Matematický blok (LaTeX)", - "Merge cells": "Sloučit buňky", - "Split cell": "Rozdělit buňku", - "Tip": "Tip", - "Tip notice": "Tip", - "Warning": "Varování", - "Warning notice": "Varování", - "Success": "Úspěch", - "Success notice": "Úspěch", + "Toggle block": "Přepnout blok", + "Divider": "Oddělovač", + "Page break": "Konec stránky", "Current date": "Aktuální datum", "Current time": "Aktuální čas", "Current date and time": "Aktuální datum a čas", - "Indent": "Zvětšit odsazení", - "Outdent": "Zmenšit odsazení", - "Video": "Video", - "None": "Žádné", - "Toggle block": "Přepnout blok", - "Add title": "Přidat titulek", - "Add content": "Přidat obsah", - "Delete embed": "Odstranit vložený prvek", - "Formatting controls": "Prvky formátování", - "Distribute columns": "Rozložit sloupce", + "Info notice": "Informační upozornění", + "Success notice": "Úspěch", + "Warning notice": "Varování", + "Tip notice": "Tip", "Wrap text": "Zalamovat text", + "Placeholder": "Zástupný text", + "Bold": "Tučné", + "Italic": "Kurzíva", + "Strikethrough": "Přeškrtnuté", + "Background color": "Barva pozadí", + "None": "Žádné", + "Highlight": "Zvýraznění", + "Code": "Kód", + "Heading": "Nadpis", + "Subheading": "Podnadpis", + "Merge cells": "Sloučit buňky", + "Split cell": "Rozdělit buňku", + "Outdent": "Zmenšit odsazení", + "Indent": "Zvětšit odsazení", + "Create link": "Vytvořit odkaz", + "Comment": "Komentář", + "Align left": "Zarovnat doleva", + "Align center": "Zarovnat na střed", + "Align right": "Zarovnat doprava", + "Full width": "Plná šířka", + "Download image": "Stáhnout obrázek", + "Replace image": "Nahradit obrázek", + "Edit image URL": "Upravit URL obrázku", + "Default width": "Výchozí šířka", + "Distribute columns": "Rozložit sloupce", + "Delete table": "Odstranit tabulku", + "Export as CSV": "Exportovat do CSV", + "Sort ascending": "Seřadit vzestupně", + "Sort descending": "Seřadit sestupně", + "Toggle header": "Přepnout záhlaví", + "Insert after": "Vložit za", + "Insert before": "Vložit před", + "Move left": "Přesunout doleva", + "Move right": "Přesunout doprava", + "Move up": "Přesunout nahoru", + "Move down": "Přesunout dolů", + "Rename": "Přejmenovat", "Delete Emoji": "Odstranit emoji", "Emoji deleted": "Emoji bylo odstraněno", "I'm sure – Delete": "Jsem si jistý - odstranit", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reagoval {{ emoji }} na komentář v", "shared": "sdíleno", "invited you to": "vás pozval do", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Vybrat datum", "API key created. Please copy the value now as it will not be shown again.": "API klíč byl vytvořen. Hodnotu si ihned zkopírujte, znovu se již nezobrazí.", "Scopes": "Rozsahy", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Přidejte do dokumentu obsah a poté použijte nadpisy nebo oddělovače pro jeho rozdělení do snímků pro prezentaci.", "Learn more": "Zjistit více", "Backlinks": "Zpětné odkazy", + "Clear search highlight": "Clear search highlight", + "Warning": "Varování", "This document is large which may affect performance": "Dokument je rozsáhlý, což může ovlivnit výkon aplikace.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Opravdu chcete pokračovat? Odstraněním dokumentu <em>{{ documentTitle }}</em> smažete i celou jeho historii.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Opravdu chcete pokračovat? Odstraněním dokumentu <em>{{ documentTitle }}</em> smažete celou jeho historii i <em>{{ any }} vnořený dokument</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Pro vybrané filtry nebyly nalezeny žádné dokumenty.", "You’ve not got any drafts at the moment.": "Momentálně nemáte žádné koncepty.", "Payment Required": "Vyžadována platba", + "Access request sent": "Access request sent", "No access to this doc": "K tomuto dokumentu nemáte přístup", - "It doesn’t look like you have permission to access this document.": "Zdá se, že nemáte oprávnění k přístupu k tomuto dokumentu.", - "Please request access from the document owner.": "Požádejte o přístup vlastníka dokumentu.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Nenalezeno", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Hledaná stránka nebyla nalezena. Mohla být odstraněna nebo je odkaz neplatný.", "We were unable to load the document while offline.": "V režimu offline se dokument nepodařilo načíst.", @@ -936,6 +940,7 @@ "Large header": "Nadpis 1", "Medium header": "Nadpis 2", "Small header": "Nadpis 3", + "Link": "Odkaz", "Underline": "Podtržené", "Undo": "Zpět", "Redo": "Znovu", @@ -1092,6 +1097,7 @@ "Credentials": "Přihlašovací údaje", "OAuth client ID": "ID OAuth klienta", "The public identifier for this app": "Veřejný identifikátor aplikace", + "Copied to clipboard": "Zkopírováno do schránky", "OAuth client secret": "Tajný klíč OAuth klienta", "Store this value securely, do not expose it publicly": "Tuto hodnotu bezpečně uložte, nikde ji nezveřejňujte.", "Where users are redirected after authorizing this app": "Adresa pro přesměrování uživatelů po autorizaci", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Předvolby byly uloženy", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Odpojit integraci", "Disconnecting": "Odpojování…", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Opravdu chcete odpojit integraci <em>{{ service }}</em>?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Zobrazovat logo, popis a branding pracovního prostoru na veřejně sdílených stránkách.", "Table of contents position": "Umístění obsahu", "The side to display the table of contents in relation to the main content.": "Strana, na které se zobrazí obsah vzhledem k hlavnímu textu.", - "Behavior": "Chování", "Subdomain": "Subdoména", "Your workspace will be accessible at": "Pracovní prostor bude přístupný na:", "Choose a subdomain to enable a login page just for your team.": "Zvolte subdoménu pro vytvoření přihlašovací stránky vyhrazené týmu.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Dostávat upozornění, když získáte přístup ke kolekci", "Export completed": "Export byl dokončen", "Receive a notification when an export you requested has been completed": "Dostávat upozornění na dokončení požadovaného exportu", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Začínáme", "Tips on getting started with features and functionality": "Tipy, jak začít pracovat s funkcemi aplikace", "New features": "Nové funkce", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Odběr byl zrušen. Nastavení upozornění bylo aktualizováno.", "Manage when and where you receive email notifications.": "Správa e-mailových upozornění.", "All notifications": "Všechna oznámení", - "Preferences saved": "Předvolby byly uloženy", "Unread count": "Počet nepřečtených", "Unread indicator": "Indikátor nepřečtených zpráv", "Delete account": "Odstranit účet", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "Uživatel {{ user }} aktualizoval {{ timeAgo }}", "You created {{ timeAgo }}": "Vytvořil jste {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "Uživatel {{ user }} vytvořil {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Při nahrávání souboru došlo k chybě.", + "Sorry, that type of link is not supported": "Typ odkazu není podporován.", "Caption": "Popisek", "Empty diagram": "Prázdný diagram", "Double click to edit": "Dvojklikem upravíte", "Open": "Otevřít", "Loading": "Načítání…", - "Error loading data": "Chyba při načítání dat" + "Error loading data": "Chyba při načítání dat", + "Show {{ count }} completed": "Zobrazit {{ count }} dokončené", + "Show {{ count }} completed_plural": "Zobrazit {{ count }} dokončených", + "Hide completed": "Skrýt dokončené", + "Write a caption": "Napsat popisek", + "Add title": "Přidat titulek", + "Add content": "Přidat obsah" } diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 42cd11d542..72a26cce61 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -169,6 +169,7 @@ "New workspace": "Nyt arbejdsområde", "Create a workspace": "Opret et arbejdsområde", "Login to workspace": "Log ind på arbejdsområdet", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Sletter", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Redigerer nu", "Currently viewing": "Ser nu", "Viewed {{ timeAgo }}": "Set {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Filtype understøttes ikke. Brug venligst PNG, JPG, GIF eller WebP.", "File size too large. Maximum size is {{ size }}.": "Filstørrelsen er for stor. Maksimal størrelse er {{ size }}.", "Click or drag to replace": "Klik eller træk for at erstatte", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Beklager, der opstod en fejl.", "Click to retry": "Tryk for at prøve igen", "Back": "Tilbage", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Administrér", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Tilladelser for {{ userName }} opdateret", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Ukendt", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m læst", "{{ hours }}h read": "{{ hours }}h læst", "{{ minutes }}m read": "{{ minutes }}m læst", - "Manage": "Administrér", "All members": "Alle medlemmer", "Everyone in the workspace": "Alle i arbejdsområdet", "{{ count }} member": "{{ count }} medlem", "{{ count }} member_plural": "{{ count }} medlemmer", + "Public link copied to clipboard": "Link kopieret til udklipsholder", "Only lowercase letters, digits and dashes allowed": "Kun små bogstaver, cifre og bindestreger tilladt", "Sorry, this link has already been used": "Beklager, dette link er allerede blevet brugt", - "Public link copied to clipboard": "Link kopieret til udklipsholder", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Tillad alle med linket adgang", "Publish to internet": "Offentliggør på internettet", - "Search engine indexing": "Søgemaskine indeksering", - "Disable this setting to discourage search engines from indexing the page": "Deaktivér denne indstilling for at forhindre søgemaskiner i at indeksere siden", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Vis sidst ændret", - "Display the last modified timestamp on the shared page": "Vis det sidst ændrede tidsstempel på den delte side", - "Show table of contents": "Vis indholdsfortegnelse", - "Display the table of contents on documents by default": "Vis indholdsfortegnelsen på dokumenter som standard", "All documents in this collection will be shared on the web, including any new documents added later": "Alle dokumenter i denne samling vil blive delt på nettet, herunder eventuelle nye dokumenter tilføjet senere", "Invite": "Invitér", "{{ userName }} was added to the collection": "{{ userName }} blev tilføjet til samlingen", @@ -445,8 +447,24 @@ "Switch to dark": "Skift til mørk", "Switch to light": "Skift til lys", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Tilføj", "Add or invite": "Tilføj eller invitér", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Vis sidst ændret", + "Display the last modified timestamp on the shared page": "Vis det sidst ændrede tidsstempel på den delte side", + "Show table of contents": "Vis indholdsfortegnelse", + "Display the table of contents on documents by default": "Vis indholdsfortegnelsen på dokumenter som standard", + "Behavior": "Behavior", + "Search engine indexing": "Søgemaskine indeksering", + "Disable this setting to discourage search engines from indexing the page": "Deaktivér denne indstilling for at forhindre søgemaskiner i at indeksere siden", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Adgang arvet fra samling", "{{ userName }} was removed from the document": "{{ userName }} blev fjernet fra dokumentet", "Could not remove user": "Kunne ikke fjerne bruger", - "Permissions for {{ userName }} updated": "Tilladelser for {{ userName }} opdateret", "Could not update user": "Kunne ikke opdatere bruger", "Has access through <2>parent</2>": "Har adgang gennem <2>forældre</2>", "Suspended": "Suspenderet", @@ -475,14 +492,12 @@ "Leave": "Forlad", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Alle med linket kan tilgå, fordi den indeholdende samling, <2>{sharedParent.sourceTitle}</2>, er delt", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Alle med linket kan tilgå, fordi det overordnede dokument, <2>{sharedParent.sourceTitle}</2>, er delt", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Indlejrede dokumenter deles ikke på nettet. Slå deling til for at aktivere adgang, dette vil være standardopførsel i fremtiden", "{{ userName }} was added to the document": "{{ userName }} blev tilføjet til dokumentet", "{{ count }} people added to the document": "{{ count }} personer tilføjet til dokumentet", "{{ count }} people added to the document_plural": "{{ count }} personer tilføjet til dokumentet", "{{ count }} groups added to the document": "{{ count }} grupper tilføjet til dokumentet", "{{ count }} groups added to the document_plural": "{{ count }} grupper tilføjet til dokumentet", - "Logo": "Logo", "Expand sidebar": "Udvid sidepanel", "Collapse sidebar": "Skjul sidepanel", "Archived collections": "Arkiverede samlinger", @@ -548,10 +563,18 @@ "Replacement": "Udskiftning", "Replace": "Udskift", "Replace all": "Udskift alle", + "Go to link": "Gå til link", + "Open link": "Åbn link", + "Remove link": "Fjern link", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Søg eller indsæt et link", "Image width": "Billedbredde", "Width": "Bredde", "Image height": "Billedhøjde", "Height": "Højde", + "Paste a link": "Indsæt et link", + "Delete embed": "Delete embed", + "Delete image": "Slet billede", "Profile picture": "Profilbillede", "Create a new doc": "Opret et nyt dokument", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Nævn", "Embed": "Indlejr", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Beklager, linket virker ikke for denne indlejrede type", "Upload file": "Upload file", + "Paste a {{service}} link…": "Indsæt et {{service}} link…", "More options": "Flere indstillinger", - "Rename": "Omdøb", - "Insert after": "Indsæt efter", - "Insert before": "Indsæt før", - "Move up": "Flyt op", - "Move down": "Flyt ned", - "Move left": "Flyt til venstre", - "Move right": "Flyt til højre", - "Align center": "Juster centreret", - "Align left": "Venstrejustér", - "Align right": "Højrejustér", - "Default width": "Standardbredde", - "Full width": "Fuld bredde", - "Bulleted list": "Punktliste", - "Todo list": "Opgaveliste", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Kodeblok", - "Copied to clipboard": "Kopieret til udklipsholder", - "Code": "Kode", - "Comment": "Kommentar", - "Create link": "Opret link", - "Edit image URL": "Redigér billede URL", - "Sorry, an error occurred creating the link": "Beklager, der opstod en fejl under oprettelse af linket", - "Create a new child doc": "Opret et nyt underordnet dokument", - "Delete table": "Slet tabel", + "Type '/' to insert": "Indtast '/' for at indsætte", + "Keep typing to filter": "Fortsæt med at skrive for at filtrere", + "Replace file": "Erstat fil", "Delete file": "Slet fil", "Show preview": "Show preview", - "Download file": "Hent fil", - "Replace file": "Erstat fil", - "Delete image": "Slet billede", - "Download image": "Download billede", - "Replace image": "Erstat billede", - "Italic": "Kursiv", - "Sorry, that link won’t work for this embed type": "Beklager, linket virker ikke for denne indlejrede type", - "File attachment": "Vedhæftet fil", - "Embed PDF": "Embed PDF", - "Enter a link": "Indsæt et link", "Big heading": "Stor overskrift", "Medium heading": "Mellem overskrift", "Small heading": "Lille overskrift", "Extra small heading": "Ekstra lille overskrift", - "Heading": "Overskrift", - "Divider": "Skillelinje", - "Image": "Billede", - "Sorry, an error occurred uploading the file": "Beklager, en fejl opstod under upload af filen", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Skriv en tekst", - "Info": "Information", - "Info notice": "Info-meddelelse", - "Link": "Link", - "Highlight": "Fremhæv", - "Background color": "Background color", - "Type '/' to insert": "Indtast '/' for at indsætte", - "Keep typing to filter": "Fortsæt med at skrive for at filtrere", - "Open link": "Åbn link", - "Go to link": "Gå til link", - "Sorry, that type of link is not supported": "Beklager, denne type link er ikke understøttet", + "Todo list": "Opgaveliste", + "Bulleted list": "Punktliste", "Ordered list": "Sorteret liste", - "Page break": "Sideskift", - "Paste a link": "Indsæt et link", - "Paste a {{service}} link…": "Indsæt et {{service}} link…", - "Placeholder": "Pladsholder", - "Quote": "Citat", - "Remove link": "Fjern link", - "Search or paste a link": "Søg eller indsæt et link", - "Strikethrough": "Overstrejning", - "Bold": "Fed", - "Subheading": "Underoverskrift", - "Sort ascending": "Sorter stigende", - "Sort descending": "Sorter faldende", + "Image": "Billede", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "Vedhæftet fil", "Table": "Table", - "Export as CSV": "Export as CSV", - "Toggle header": "Toggle header", - "Math inline (LaTeX)": "Math inline (LaTeX)", + "Quote": "Citat", + "Code block": "Kodeblok", "Math block (LaTeX)": "Math block (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Tip", - "Tip notice": "Tip notice", - "Warning": "Warning", - "Warning notice": "Warning notice", - "Success": "Success", - "Success notice": "Success notice", + "Toggle block": "Toggle block", + "Divider": "Skillelinje", + "Page break": "Sideskift", "Current date": "Current date", "Current time": "Current time", "Current date and time": "Current date and time", - "Indent": "Indent", - "Outdent": "Outdent", - "Video": "Video", - "None": "None", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Info-meddelelse", + "Success notice": "Success notice", + "Warning notice": "Warning notice", + "Tip notice": "Tip notice", "Wrap text": "Wrap text", + "Placeholder": "Pladsholder", + "Bold": "Fed", + "Italic": "Kursiv", + "Strikethrough": "Overstrejning", + "Background color": "Background color", + "None": "None", + "Highlight": "Fremhæv", + "Code": "Kode", + "Heading": "Overskrift", + "Subheading": "Underoverskrift", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Outdent", + "Indent": "Indent", + "Create link": "Opret link", + "Comment": "Kommentar", + "Align left": "Venstrejustér", + "Align center": "Juster centreret", + "Align right": "Højrejustér", + "Full width": "Fuld bredde", + "Download image": "Download billede", + "Replace image": "Erstat billede", + "Edit image URL": "Redigér billede URL", + "Default width": "Standardbredde", + "Distribute columns": "Distribute columns", + "Delete table": "Slet tabel", + "Export as CSV": "Export as CSV", + "Sort ascending": "Sorter stigende", + "Sort descending": "Sorter faldende", + "Toggle header": "Toggle header", + "Insert after": "Indsæt efter", + "Insert before": "Indsæt før", + "Move left": "Flyt til venstre", + "Move right": "Flyt til højre", + "Move up": "Flyt op", + "Move down": "Flyt ned", + "Rename": "Omdøb", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "shared", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access 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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Backlinks", + "Clear search highlight": "Clear search highlight", + "Warning": "Warning", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", @@ -885,9 +885,13 @@ "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", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "We were unable to load the document while offline.", @@ -936,6 +940,7 @@ "Large header": "Large header", "Medium header": "Medium header", "Small header": "Small header", + "Link": "Link", "Underline": "Underline", "Undo": "Undo", "Redo": "Redo", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Kopieret til udklipsholder", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferences saved", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "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.", @@ -1317,6 +1327,8 @@ "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", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", @@ -1325,7 +1337,6 @@ "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.", "All notifications": "All notifications", - "Preferences saved": "Preferences saved", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Slet konto", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} opdateret {{ timeAgo }}", "You created {{ timeAgo }}": "Du oprettede {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} oprettet {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Beklager, en fejl opstod under upload af filen", + "Sorry, that type of link is not supported": "Beklager, denne type link er ikke understøttet", "Caption": "Caption", "Empty diagram": "Tomt diagram", "Double click to edit": "Dobbeltklik for at redigere", "Open": "Åbn", "Loading": "Indlæser", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Skriv en tekst", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index 1e9478440a..1dd943df6e 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -1,7 +1,7 @@ { "New API key": "Neuer API-Schlüssel", "Copy": "Kopieren", - "API key copied": "API key copied", + "API key copied": "API-Schlüssel kopiert", "Delete": "Löschen", "Revoke": "Widerrufen", "Revoke API key": "API Key widerrufen", @@ -169,6 +169,7 @@ "New workspace": "Neuer Arbeitsbereich", "Create a workspace": "Arbeitsbereich erstellen", "Login to workspace": "Im Arbeitsbereich anmelden", + "template": "Vorlage", "Template deleted": "Vorlage gelöscht", "Deleting": "Wird gelöscht", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Sind Sie sicher? Die <em>{{ templateName }}</em> Vorlage wird dauerhaft gelöscht.", @@ -298,6 +299,7 @@ "Currently editing": "Derzeit in Bearbeitung", "Currently viewing": "Gerade angezeigt", "Viewed {{ timeAgo }}": "Angesehen {{ timeAgo }}", + "Uploading… {{ progress }}%": "Hochladen… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Dateityp ist nicht unterstützt. Bitte verwende ein PNG, JPG, GIF oder WebP.", "File size too large. Maximum size is {{ size }}.": "Die Datei ist zu groß. Maximal erlaubte Größe {{ size }}.", "Click or drag to replace": "Klicken oder ziehen, um zu ersetzen", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Tut uns leid, ein Fehler ist aufgetreten.", "Click to retry": "Erneut versuchen", "Back": "Zurück", + "Can view the document": "Kann das Dokument ansehen", + "Can view and edit the document": "Kann Dokument ansehen und bearbeiten", + "Manage": "Verwalten", + "Full access including sharing": "Voller Zugriff inklusive Teilen", + "Permissions for {{ userName }} updated": "Berechtigungen für {{ userName }} aktualisiert", + "Failed to approve access request": "Zugriffsanfrage konnte nicht genehmigt werden", + "Access request dismissed": "Zugriffsanfrage abgewiesen", + "Failed to dismiss access request": "Zugriffsanfrage konnte nicht abgebrochen werden", + "Approve": "Genehmigen", "Notification options": "Benachrichtigungseinstellungen", "Unknown": "Unbekannt", "Mentions": "Erwähnungen", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }} Stunden {{ minutes }} Minuten gelesen", "{{ hours }}h read": "{{ hours }} Stunden gelesen", "{{ minutes }}m read": "{{ minutes }}m gelesen", - "Manage": "Verwalten", "All members": "Alle Mitglieder", "Everyone in the workspace": "Alle im Arbeitsbereich", "{{ count }} member": "{{ count }} Mitglied", "{{ count }} member_plural": "{{ count }} Mitglieder", + "Public link copied to clipboard": "Öffentlicher Link in Zwischenablage kopiert", "Only lowercase letters, digits and dashes allowed": "Nur Kleinbuchstaben, Ziffern und Bindestriche zulässig", "Sorry, this link has already been used": "Entschuldige, dieser Link wurde bereits verwendet", - "Public link copied to clipboard": "Öffentlicher Link in Zwischenablage kopiert", - "Web": "Web", + "Publish to web": "Im Web veröffentlichen", "Allow anyone with the link to access": "Jedem mit dem Link Zugriff erlauben", "Publish to internet": "Im Internet veröffentlichen", - "Search engine indexing": "Suchmaschinenindexierung", - "Disable this setting to discourage search engines from indexing the page": "Deaktivieren Sie diese Einstellung, um Suchmaschinen davon abzuhalten, die Seite zu indizieren", - "Email subscriptions": "E-Mail-Abonnements", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Beobachtern erlauben, E-Mail-Benachrichtigungen zu abonnieren und zu erhalten, wenn Dokumente aktualisiert werden", - "Show last modified": "Änderungsdatum anzeigen", - "Display the last modified timestamp on the shared page": "Zeige das Änderungsdatum auf der geteilten Seite", - "Show table of contents": "Inhaltsverzeichnis anzeigen", - "Display the table of contents on documents by default": "Inhaltsverzeichnis standardmäßig in Dokumenten anzeigen", "All documents in this collection will be shared on the web, including any new documents added later": "Alle Dokumente in dieser Sammlung werden im Internet geteilt. Dies schließt neue Dokumente ein, die später hinzugefügt werden", "Invite": "Einladen", "{{ userName }} was added to the collection": "{{ userName }} wurde zur Sammlung hinzugefügt", @@ -445,8 +447,24 @@ "Switch to dark": "Wechsel zum Dark-Mode", "Switch to light": "Wechsel zum Light-Mode", "Subscribe to updates": "Aktualisierungen abonnieren", + "Logo": "Logo", "Add": "Hinzufügen", "Add or invite": "Hinzufügen oder einladen", + "Sharing settings updated": "Freigabeeinstellungen aktualisiert", + "Display settings": "Anzeigeeinstellungen", + "Customize how the published document is displayed": "Anpassen, wie das veröffentlichte Dokument angezeigt wird", + "Image options": "Bildoptionen", + "Upload": "Upload", + "Site title": "Seitentitel", + "Show last modified": "Änderungsdatum anzeigen", + "Display the last modified timestamp on the shared page": "Zeige das Änderungsdatum auf der geteilten Seite", + "Show table of contents": "Inhaltsverzeichnis anzeigen", + "Display the table of contents on documents by default": "Inhaltsverzeichnis standardmäßig in Dokumenten anzeigen", + "Behavior": "Verhalten", + "Search engine indexing": "Suchmaschinenindexierung", + "Disable this setting to discourage search engines from indexing the page": "Deaktivieren Sie diese Einstellung, um Suchmaschinen davon abzuhalten, die Seite zu indizieren", + "Email subscriptions": "E-Mail-Abonnements", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Beobachtern erlauben, E-Mail-Benachrichtigungen zu abonnieren und zu erhalten, wenn Dokumente aktualisiert werden", "Something went wrong": "Etwas ist schiefgelaufen", "Check your email to confirm your subscription": "Überprüfen Sie Ihr E-Mail-Postfach, um Ihr Abonnement zu bestätigen", "Get notified when this document is updated": "Lassen Sie sich benachrichtigen, wenn das Dokument aktualisiert wurde", @@ -465,7 +483,6 @@ "Access inherited from collection": "Zugriff von Sammlung vererbt", "{{ userName }} was removed from the document": "{{ userName }} wurde vom Dokument entfernt", "Could not remove user": "Benutzer konnte nicht entfernt werden", - "Permissions for {{ userName }} updated": "Berechtigungen für {{ userName }} aktualisiert", "Could not update user": "Benutzer konnte nicht aktualisiert werden", "Has access through <2>parent</2>": "Hat Zugriff durch <2>Eltern</2>", "Suspended": "Gesperrt", @@ -475,14 +492,12 @@ "Leave": "Verlassen", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Jeder mit diesem Link kann darauf zugreifen, da die übergeordnete Sammlung, <2>{sharedParent.sourceTitle}</2>, geteilt wird", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Jeder mit dem Link kann darauf zugreifen, da das übergeordnete Dokument, <2>{sharedParent.sourceTitle}</2>, geteilt wird", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Beobachtern erlauben, E-Mail-Benachrichtigungen zu abonnieren und zu erhalten, wenn das Dokument aktualisiert wurde", "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 }} wurde dem Dokument hinzugefügt", "{{ count }} people added to the document": "{{ count }} Personen zu dem Dokument eingeladen", "{{ count }} people added to the document_plural": "{{ count }} Personen wurden dem Dokument hinzugefügt", "{{ count }} groups added to the document": "{{ count }} Gruppen zu dem Dokument eingeladen", "{{ count }} groups added to the document_plural": "{{ count }} Gruppen wurden dem Dokument hinzugefügt", - "Logo": "Logo", "Expand sidebar": "Seitenleiste ausklappen", "Collapse sidebar": "Seitenleiste einklappen", "Archived collections": "Archivierte Sammlungen", @@ -494,7 +509,7 @@ "Expand": "Ausklappen", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokument nicht unterstützt - versuche Markdown, Klartext, HTML oder Word", "Import files": "Dateien importieren", - "Recent": "Recent", + "Recent": "Aktuell", "Go back": "Zurück", "Go forward": "Vor", "Could not load shared documents": "Konnte geteilte Dokumente nicht laden", @@ -548,10 +563,18 @@ "Replacement": "Ersetzung", "Replace": "Ersetzen", "Replace all": "Alle ersetzen", + "Go to link": "Gehe zu Link", + "Open link": "Link öffnen", + "Remove link": "Link entfernen", + "Formatting controls": "Formatierungssteuerung", + "Search or paste a link": "Suchen oder fügen Sie ein Link ein", "Image width": "Bildbreite", "Width": "Breite", "Image height": "Bildhöhe", "Height": "Höhe", + "Paste a link": "Link einfügen", + "Delete embed": "Einbindung löschen", + "Delete image": "Bild löschen", "Profile picture": "Profilbild", "Create a new doc": "Neues Dokument erstellen", "Create a nested doc": "Neues untergeordnetes Dokument erstellen", @@ -561,106 +584,78 @@ "Mention": "Erwähnung", "Embed": "Einbetten", "Not supported": "Nicht unterstützt", + "Sorry, that link won’t work for this embed type": "Dieser Link funktioniert für diesen Einbettungstyp leider nicht", "Upload file": "Datei hochladen", + "Paste a {{service}} link…": "{{service}} Link einfügen…", "More options": "Weitere Optionen", - "Rename": "Umbenennen", - "Insert after": "Danach einfügen", - "Insert before": "Davor einfügen", - "Move up": "Nach oben", - "Move down": "Nach unten", - "Move left": "Nach links bewegen", - "Move right": "Nach rechts bewegen", - "Align center": "Zentrieren", - "Align left": "Links ausrichten", - "Align right": "Rechts ausrichten", - "Default width": "Standardbreite", - "Full width": "Volle Breite", - "Bulleted list": "Punkteliste", - "Todo list": "Aufgabenliste", - "Show {{ count }} completed": "Zeige {{ count }} abgeschlossenen", - "Show {{ count }} completed_plural": "Zeige {{ count }} abgeschlossene", - "Hide completed": "Abgeschlossene ausblenden", - "Code block": "Codeblock", - "Copied to clipboard": "In die Zwischenablage kopiert", - "Code": "Code", - "Comment": "Kommentieren", - "Create link": "Link erstellen", - "Edit image URL": "Bild-URL bearbeiten", - "Sorry, an error occurred creating the link": "Beim Erstellen des Links ist leider ein Fehler aufgetreten", - "Create a new child doc": "Neues untergeordnetes Dokument erstellen", - "Delete table": "Tabelle löschen", + "Type '/' to insert": "Gib '/' zum Suchen ein", + "Keep typing to filter": "Tippen Sie weiter um zu filtern", + "Replace file": "Datei ersetzen", "Delete file": "Datei löschen", "Show preview": "Vorschau anzeigen", - "Download file": "Datei herunterladen", - "Replace file": "Datei ersetzen", - "Delete image": "Bild löschen", - "Download image": "Bild herunterladen", - "Replace image": "Bild ersetzen", - "Italic": "Kursiv", - "Sorry, that link won’t work for this embed type": "Dieser Link funktioniert für diesen Einbettungstyp leider nicht", - "File attachment": "Dateianhang", - "Embed PDF": "Eingebettete PDF", - "Enter a link": "Link eintragen", "Big heading": "Große Überschrift", "Medium heading": "Mittlere Überschrift", "Small heading": "Kleine Überschrift", "Extra small heading": "Extra kleine Überschrift", - "Heading": "Überschrift", - "Divider": "Trennlinie", - "Image": "Bild", - "Sorry, an error occurred uploading the file": "Beim Hochladen dieses Bildes ist ein Fehler aufgetreten", - "Uploading… {{ progress }}%": "Hochladen… {{ progress }}%", - "Write a caption": "Untertitel schreiben", - "Info": "Info", - "Info notice": "Info-Hinweis", - "Link": "Link", - "Highlight": "Hervorheben", - "Background color": "Hintergrundfarbe", - "Type '/' to insert": "Gib '/' zum Suchen ein", - "Keep typing to filter": "Tippen Sie weiter um zu filtern", - "Open link": "Link öffnen", - "Go to link": "Gehe zu Link", - "Sorry, that type of link is not supported": "Entschuldige, diese Art von Link wird nicht unterstützt", + "Todo list": "Aufgabenliste", + "Bulleted list": "Punkteliste", "Ordered list": "Nummerierte Liste", - "Page break": "Seitenumbruch", - "Paste a link": "Link einfügen", - "Paste a {{service}} link…": "{{service}} Link einfügen…", - "Placeholder": "Platzhalter", - "Quote": "Zitat", - "Remove link": "Link entfernen", - "Search or paste a link": "Suchen oder fügen Sie ein Link ein", - "Strikethrough": "Durchstreichen", - "Bold": "Fett", - "Subheading": "Untertitel", - "Sort ascending": "Aufsteigend sortieren", - "Sort descending": "Absteigend sortieren", + "Image": "Bild", + "Video": "Video", + "Embed PDF": "Eingebettete PDF", + "File attachment": "Dateianhang", "Table": "Tabelle", - "Export as CSV": "Exportiere als CSV", - "Toggle header": "Kopfzeile umschalten", - "Math inline (LaTeX)": "Mathe-Inline (LaTeX)", + "Quote": "Zitat", + "Code block": "Codeblock", "Math block (LaTeX)": "Mathe-Block (LaTeX)", - "Merge cells": "Zellen zusammenführen", - "Split cell": "Zelle aufteilen", - "Tip": "Hinweis", - "Tip notice": "Tipp Hinweis", - "Warning": "Warnung", - "Warning notice": "Warnhinweis", - "Success": "Erfolgreich", - "Success notice": "Erfolgsmitteilung", + "Toggle block": "Block ein-/ausblenden", + "Divider": "Trennlinie", + "Page break": "Seitenumbruch", "Current date": "Aktuelles Datum", "Current time": "Aktuelle Zeit", "Current date and time": "Aktuelles Datum & Zeit", - "Indent": "Einrückung", - "Outdent": "Ausrückung", - "Video": "Video", - "None": "Keine", - "Toggle block": "Block ein-/ausblenden", - "Add title": "Titel hinzufügen", - "Add content": "Inhalte hinzufügen", - "Delete embed": "Einbindung löschen", - "Formatting controls": "Formatierungssteuerung", - "Distribute columns": "Spalten teilen", + "Info notice": "Info-Hinweis", + "Success notice": "Erfolgsmitteilung", + "Warning notice": "Warnhinweis", + "Tip notice": "Tipp Hinweis", "Wrap text": "Mit Text umschließen", + "Placeholder": "Platzhalter", + "Bold": "Fett", + "Italic": "Kursiv", + "Strikethrough": "Durchstreichen", + "Background color": "Hintergrundfarbe", + "None": "Keine", + "Highlight": "Hervorheben", + "Code": "Code", + "Heading": "Überschrift", + "Subheading": "Untertitel", + "Merge cells": "Zellen zusammenführen", + "Split cell": "Zelle aufteilen", + "Outdent": "Ausrückung", + "Indent": "Einrückung", + "Create link": "Link erstellen", + "Comment": "Kommentieren", + "Align left": "Links ausrichten", + "Align center": "Zentrieren", + "Align right": "Rechts ausrichten", + "Full width": "Volle Breite", + "Download image": "Bild herunterladen", + "Replace image": "Bild ersetzen", + "Edit image URL": "Bild-URL bearbeiten", + "Default width": "Standardbreite", + "Distribute columns": "Spalten teilen", + "Delete table": "Tabelle löschen", + "Export as CSV": "Exportiere als CSV", + "Sort ascending": "Aufsteigend sortieren", + "Sort descending": "Absteigend sortieren", + "Toggle header": "Kopfzeile umschalten", + "Insert after": "Danach einfügen", + "Insert before": "Davor einfügen", + "Move left": "Nach links bewegen", + "Move right": "Nach rechts bewegen", + "Move up": "Nach oben", + "Move down": "Nach unten", + "Rename": "Umbenennen", "Delete Emoji": "Emoji löschen", "Emoji deleted": "Emoji gelöscht", "I'm sure – Delete": "Ich bin mir sicher – Löschen", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reagierte mit {{ emoji }} auf Ihren Kommentar", "shared": "geteilt", "invited you to": "hat dich eingeladen zu", + "was granted access to": "wurde Zugriff gewährt auf", + "requested access to": "bittet um Zugriff auf", + "is requesting access to": "bittet um Zugriff auf", "Choose a date": "Datum auswählen", "API key created. Please copy the value now as it will not be shown again.": "API-Schlüssel erstellt. Bitte kopieren Sie den Wert jetzt, da er nicht wieder angezeigt werden kann.", "Scopes": "Bereiche", @@ -828,9 +826,9 @@ "{{userName}} published": "{{userName}} veröffentlichte", "{{userName}} unpublished": "{{userName}} nicht veröffentlicht", "{{userName}} moved": "{{userName}} verschob", - "Previous version": "Previous version", + "Previous version": "Vorgängerversion", "Highlight changes": "Änderungen hervorheben", - "Compare to": "Compare to", + "Compare to": "Vergleichen mit", "No history yet": "Noch keine Historie", "Revision deleted": "Überarbeitung gelöscht", "Current version": "Aktuelle Version", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Fügen Sie dem Dokument Inhalte hinzu, dann verwenden Sie Überschriften oder Trennlinien, um das Dokument in Folien zu trennen.", "Learn more": "Mehr erfahren", "Backlinks": "Backlinks", + "Clear search highlight": "Hervorhebung löschen", + "Warning": "Warnung", "This document is large which may affect performance": "Dieses Dokument ist groß und kann die Leistung negativ beeinträchtigen", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Bist du sicher? Durch Löschen des Dokuments <em>{{ documentTitle }}</em> wird auch der gesamte Verlauf davon gelöscht</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Bist du sicher? Durch Löschen des Dokuments <em>{{ documentTitle }}</em> wird der gesamte Verlauf sowie <em>{{ any }} Unterdokumente</em> gelöscht.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Keine Dokumente anhand Ihre Filter gefunden.", "You’ve not got any drafts at the moment.": "Sie haben im Moment keine Entwürfe.", "Payment Required": "Zahlung erforderlich", + "Access request sent": "Zugriffsanfrage gesendet", "No access to this doc": "Kein Zugriff auf dieses Dokument", - "It doesn’t look like you have permission to access this document.": "Sie scheinen keine Berechtigung zu haben, um auf dieses Dokument zuzugreifen.", - "Please request access from the document owner.": "Bitte fordern Sie den Zugriff beim Eigentümer des Dokuments an.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Ihre Anfrage zum Zugriff auf dieses Dokument wurde gesendet. Sie werden benachrichtigt, sobald der Zugriff gewährt wurde.", + "It doesn't look like you have permission to access this document. You can request access.": "Es sieht nicht so aus, als hätten Sie die Berechtigung auf dieses Dokument zuzugreifen. Sie können Zugriff anfordern.", + "Access requested": "Zugriff angefordert", + "Requesting…": "Requesting…", + "Request access": "Zugang anfordern", "Not found": "Nicht gefunden", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Die von Ihnen gesuchte Seite kann nicht gefunden werden. Möglicherweise wurde sie gelöscht oder der Link ist fehlerhaft.", "We were unable to load the document while offline.": "Wir konnten das Dokument nicht offline laden.", @@ -936,6 +940,7 @@ "Large header": "Große Überschrift", "Medium header": "Mittlere Überschrift", "Small header": "Kleine Überschrift", + "Link": "Link", "Underline": "Unterstreichen", "Undo": "Rückgängig machen", "Redo": "Wiederholen", @@ -1069,12 +1074,12 @@ "Search titles only": "Nur Titel durchsuchen", "Please try again or contact support if the problem persists": "Bitte versuchen Sie es erneut oder wenden Sie sich an den Support, falls das Problem weiterhin besteht", "No documents found for your search filters.": "Keine Dokumente für diese Suchfilter gefunden.", - "Personal keys": "Personal keys", + "Personal keys": "Persönliche Schlüssel", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "Erstellen Sie persönliche API Key, um sich bei der API zu authentifizieren und die Daten Ihres Arbeitsbereichs programmatisch zu verwalten. Weitere Informationen finden Sie in der <em>Entwicklerdokumentation</em>.", "API keys have been disabled by an admin for your account": "API Keys wurden von einem Administrator für Ihr Konto deaktiviert.", "Application access": "Anwendungszugriff", "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Verwalten Sie, welchen Drittanbieter- und internen Anwendungen Zugriff auf Ihr {{ appName }}-Konto gewährt wurde.", - "Could not load API keys": "Could not load API keys", + "Could not load API keys": "API-Schlüssel konnten nicht geladen werden", "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 <em>developer documentation</em>.": "API-Schlüssel können verwendet werden, um sich mit der API zu authentifizieren und die Daten des Arbeitsbereiches\n programmatisch zu steuern. Weitere Details finden Sie in der <em>Entwicklerdokumentation</em>.", "Application published": "Anwendung veröffentlicht", @@ -1092,6 +1097,7 @@ "Credentials": "Zugangsdaten", "OAuth client ID": "OAuth-Client-ID", "The public identifier for this app": "Der öffentliche Identifikator für diese App", + "Copied to clipboard": "In die Zwischenablage kopiert", "OAuth client secret": "OAuth Client Secret", "Store this value securely, do not expose it publicly": "Speichern Sie diesen Wert sicher ab und stellen Sie ihn nicht öffentlich zur Verfügung", "Where users are redirected after authorizing this app": "Wohin Benutzer nach der Autorisierung dieser App weitergeleitet werden", @@ -1134,10 +1140,15 @@ "API key copied to clipboard": "API-Schlüssel wurde in die Zwischenablage kopiert", "Copied": "Kopiert", "Are you sure you want to revoke the {{ tokenName }} token?": "Sind Sie sicher, den Token {{ tokenName }} zu widerrufen?", - "Key": "Key", - "Created by": "Created by", - "Never": "Never", + "Key": "Schlüssel", + "Created by": "Erstellt von", + "Never": "Niemals", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Einstellungen gespeichert", + "Could not save preference": "Could not save preference", + "Open on startup": "Beim Start öffnen", + "Automatically launch {{ appName }} when you sign in to your computer.": "Starten Sie {{ appName }} automatisch, wenn Sie sich bei Ihrem Computer anmelden.", "Disconnect integration": "Integration trennen", "Disconnecting": "Trenne", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Sind Sie sicher, dass Sie die <em>{{ service }}</em> Integration trennen möchten?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Zeigen Sie das Logo, die Beschreibung und das Branding Ihres Arbeitsbereichs auf öffentlich geteilten Seiten an.", "Table of contents position": "Inhaltsverzeichnis Position", "The side to display the table of contents in relation to the main content.": "Die Seite, auf der das Inhaltsverzeichnis in Bezug auf den Hauptinhalt angezeigt wird.", - "Behavior": "Verhalten", "Subdomain": "Subdomain", "Your workspace will be accessible at": "Dein Arbeitsbereich wird zugänglich sein unter", "Choose a subdomain to enable a login page just for your team.": "Wählen Sie eine Subdomain, um eine Login-Seite nur für Ihr Team zu aktivieren.", @@ -1272,7 +1282,7 @@ "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Verwenden Sie den folgenden Endpunkt, um sich mit dem MCP-Server von Ihrer App zu verbinden. Erfahren Sie mehr über die Einrichtung in <a>der Dokumentation</a>.", "Copy URL": "URL kopieren", "Additional guidance": "Zusätzliche Hinweise", - "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "You can use these optional instructions to tell MCP clients how to use your knowledge base.", + "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "Sie können diese optionalen Anweisungen verwenden, um MCP-Clients zu erklären, wie sie Ihre Wissensdatenbank verwenden können.", "AI answers": "KI-Antworten", "Use AI to get direct answers to questions in search. This feature requires a paid license.": "Benutzen Sie die KI um direkte Antworten auf Fragen bei der Suche zu erhalten. Diese Funktion erfordert eine kostenpflichtige Lizenz.", "Add people to {{groupName}}": "Personen zu {{groupName }} hinzufügen", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Benachrichtigen, wenn Sie Zugriff auf eine Sammlung erhalten", "Export completed": "Export abgeschlossen", "Receive a notification when an export you requested has been completed": "Erhalten Sie eine Benachrichtigung, wenn ein von Ihnen angeforderter Export abgeschlossen ist", + "Document access requested": "Dokumentzugriff angefordert", + "Receive a notification when a user requests access to a document you manage": "Benachrichtigung erhalten, wenn ein Benutzer den Zugriff auf ein Dokument anfordert, das Sie verwalten", "Getting started": "Erste Schritte", "Tips on getting started with features and functionality": "Tipps zum Einstieg über die Features und Funktionen", "New features": "Neue Funktionen", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Abmeldung erfolgreich. Ihre Benachrichtigungseinstellungen wurden aktualisiert", "Manage when and where you receive email notifications.": "Verwalten Sie, wann und wo Sie E-Mail-Benachrichtigungen erhalten.", "All notifications": "Alle Benachrichtigungen", - "Preferences saved": "Einstellungen gespeichert", "Unread count": "Anzahl Ungelesen", "Unread indicator": "Ungelesene Anzeige", "Delete account": "Konto löschen", @@ -1602,7 +1613,7 @@ "All {{ groupName }} events": "Alle {{ groupName }} Ereignisse", "Webhook": "Webhook", "Webhook created": "Webhook erstellt", - "Could not load webhooks": "Could not load webhooks", + "Could not load webhooks": "Webhooks konnten nicht geladen werden", "Webhooks": "Webhooks", "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 können verwendet werden, um andere Anwendungen zu benachrichtigen, wenn Ereignisse in {{appName}} auftreten. Ereignisse werden als HTTPS-Anfrage mit einer JSON-Nachricht, annähernd in Echtzeit verschickt.", "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier ist eine Plattform, die es {{appName}} ermöglicht, sich einfach mit Tausenden anderer Business-Tools zu verbinden. Automatisiere deine Arbeitsabläufe, synchronisieren deine Daten und mehr.", @@ -1642,17 +1653,17 @@ "{{ actorName }} resolved a comment on": "{{ actorName }} löste einen Kommentar auf", "Your workspace deletion request": "Ihre Löschanforderung eines Arbeitsbereiches", "Your requested workspace deletion code": "Ihr angeforderter Arbeitsbereich-Löschcode", - "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.", + "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "Sie haben angefordert, Ihren {{ appName }} Arbeitsbereich dauerhaft zu löschen. Bitte geben Sie den unten angegebenen Code ein, um Ihre Löschung zu bestätigen.", "Your email update request": "Your email update request", "Here’s your email change confirmation.": "Hier ist die Bestätigung Ihrer E-Mail Änderung.", "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.", "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.", "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to", - "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "You requested to update your {{ appName }} account email. Please click below to confirm the change to", + "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "Sie haben angefragt, Ihre E-Mail des {{ appName }} Accounts zu aktualisieren. Bitte klicken Sie unten, um die Änderung zu bestätigen", "Confirm Change": "Änderung bestätigen", "Your account deletion request": "Ihre Anfrage zur Löschung Ihres Kontos", "Your requested account deletion code": "Ihr angeforderter Code zur Account-Löschung", - "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.", + "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "Sie haben angefordert, Ihr {{ appName }} Benutzerkonto im Arbeitsbereich von {{ teamName }} dauerhaft zu löschen. Bitte geben Sie den unten angegebenen Code ein, um Ihr Konto zu löschen.", "You requested to permanently delete your {{ appName }} user account in the": "You requested to permanently delete your {{ appName }} user account in the", "workspace. Please enter the code below to confirm your account deletion.": "workspace. Please enter the code below to confirm your account deletion.", "{{ actorName }} mentioned you": "{{ actorName }} hat Sie erwähnt", @@ -1661,7 +1672,7 @@ "Open Document": "Dokument öffnen", "View Document": "Dokument anzeigen", "{{ actorName }} mentioned you in the document": "{{ actorName }} hat Sie im Dokument erwähnt", - "updated": "updated", + "updated": "aktualisiert", "“{{ documentTitle }}” {{ eventName }}": "“{{ documentTitle }}” {{ eventName }}", "{{ actorName }} {{ eventName }} a document": "{{ actorName }} {{ eventName }} a document", "\"{{ documentTitle }}\" {{ eventName }}": "\"{{ documentTitle }}” {{ eventName }}", @@ -1673,18 +1684,18 @@ "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} hat “{{ documentTitle }}” mit Ihnen geteilt.", "edit": "bearbeiten", "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} invited you to {{ permission }} the", - "Your requested export": "Your requested export", + "Your requested export": "Ihr angeforderter Export", "Sorry, your requested data export has failed": "Entschuldigung, Ihr angeforderter Datenexport ist fehlgeschlagen", - "Your Data Export": "Your Data Export", + "Your Data Export": "Ihr Datenexport", "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.", "Sorry, your requested data export has failed, please visit the": "Sorry, your requested data export has failed, please visit the", "admin section": "Admin Bereich", "to try again – if the problem persists please contact support.": "to try again – if the problem persists please contact support.", "Go to export": "Zum Export gehen", "Here's your request data export from {{ appName }}": "Here's your request data export from {{ appName }}", - "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.", + "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "Ihr angeforderter Datenexport ist abgeschlossen, Sie können den Export über den Link unterhalb in einem Browser herunterladen, der in Ihrem Konto angemeldet ist.", "Download export": "Export herunterladen", - "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.", + "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "Ihr angeforderter Datenexport ist abgeschlossen, Sie können den Export über den Link unterhalb in einem Browser herunterladen, der in Ihrem Konto angemeldet ist.", "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "Die {{ groupName }} Gruppe wurde in “{{ documentTitle }} ” erwähnt", "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "{{ actorName }} erwähnte die “{{ groupName }}” Gruppe in einem Thread", "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "{{ actorName }} erwähnte die “{{ groupName }}” Gruppe in einem Kommentar auf “{{ documentTitle }}”", @@ -1705,7 +1716,7 @@ "Join now": "Jetzt beitreten", "Reminder": "Erinnerung", "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "", - "We only send a reminder once.": "We only send a reminder once.", + "We only send a reminder once.": "Wir senden eine Erinnerung nur einmal zu.", "If you haven't signed up yet, you can do so here": "Wenn Sie noch nicht registriert sind, können Sie dies hier tun", "\"{{ documentTitle }}\" updated": "{{ documentTitle }}\" aktualisiert", "\"{{ documentTitle }}\" has been updated.": "{{ documentTitle }}\" wurde aktualisiert.", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} aktualisierte vor {{ timeAgo }}", "You created {{ timeAgo }}": "Du hast vor {{ timeAgo }} erstellt", "{{ user }} created {{ timeAgo }}": "{{ user }} erstellte vor {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Beim Hochladen dieses Bildes ist ein Fehler aufgetreten", + "Sorry, that type of link is not supported": "Entschuldige, diese Art von Link wird nicht unterstützt", "Caption": "Beschriftung", "Empty diagram": "Leeres Diagramm", "Double click to edit": "Doppelklick zum Bearbeiten", "Open": "Öffnen", "Loading": "Laden", - "Error loading data": "Fehler beim Laden der Daten" + "Error loading data": "Fehler beim Laden der Daten", + "Show {{ count }} completed": "Zeige {{ count }} abgeschlossenen", + "Show {{ count }} completed_plural": "Zeige {{ count }} abgeschlossene", + "Hide completed": "Abgeschlossene ausblenden", + "Write a caption": "Untertitel schreiben", + "Add title": "Titel hinzufügen", + "Add content": "Inhalte hinzufügen" } diff --git a/shared/i18n/locales/en_GB/translation.json b/shared/i18n/locales/en_GB/translation.json index e680eb095c..ecf6dadea5 100644 --- a/shared/i18n/locales/en_GB/translation.json +++ b/shared/i18n/locales/en_GB/translation.json @@ -169,6 +169,7 @@ "New workspace": "New workspace", "Create a workspace": "Create a workspace", "Login to workspace": "Login to workspace", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Deleting", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Currently editing", "Currently viewing": "Currently viewing", "Viewed {{ timeAgo }}": "Viewed {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Sorry, an error occurred.", "Click to retry": "Click to retry", "Back": "Back", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Manage", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Unknown", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m read", - "Manage": "Manage", "All members": "All members", "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} member", "{{ count }} member_plural": "{{ count }} members", + "Public link copied to clipboard": "Public link copied to clipboard", "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", + "Publish to web": "Publish to web", "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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "Invite", "{{ userName }} was added to the collection": "{{ userName }} was added to the collection", @@ -445,8 +447,24 @@ "Switch to dark": "Switch to dark", "Switch to light": "Switch to light", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Add", "Add or invite": "Add or invite", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Show last modified", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Behavior", + "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", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "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</2>": "Has access through <2>parent</2>", "Suspended": "Suspended", @@ -475,14 +492,12 @@ "Leave": "Leave", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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 behaviour 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", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Archived collections", @@ -548,10 +563,18 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Go to link": "Go to link", + "Open link": "Open link", + "Remove link": "Remove link", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Search or paste a link", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "Paste a link", + "Delete embed": "Delete embed", + "Delete image": "Delete image", "Profile picture": "Profile picture", "Create a new doc": "Create a new doc", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mention", "Embed": "Embed", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Sorry, that link won’t work for this embed type", "Upload file": "Upload file", + "Paste a {{service}} link…": "Paste a {{service}} link…", "More options": "More options", - "Rename": "Rename", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "Align centre", - "Align left": "Align left", - "Align right": "Align right", - "Default width": "Default width", - "Full width": "Full width", - "Bulleted list": "Bulleted list", - "Todo list": "Task list", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Code block", - "Copied to clipboard": "Copied to clipboard", - "Code": "Code", - "Comment": "Comment", - "Create link": "Create link", - "Edit image URL": "Edit image URL", - "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", + "Type '/' to insert": "Type '/' to insert", + "Keep typing to filter": "Keep typing to filter", + "Replace file": "Replace file", "Delete file": "Delete file", "Show preview": "Show preview", - "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", - "Embed PDF": "Embed PDF", - "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", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Write a caption", - "Info": "Info", - "Info notice": "Info notice", - "Link": "Link", - "Highlight": "Highlight", - "Background color": "Background color", - "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", + "Todo list": "Task list", + "Bulleted list": "Bulleted list", "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", + "Image": "Image", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "File attachment", "Table": "Table", - "Export as CSV": "Export as CSV", - "Toggle header": "Toggle header", - "Math inline (LaTeX)": "Math inline (LaTeX)", + "Quote": "Quote", + "Code block": "Code block", "Math block (LaTeX)": "Math block (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Tip", - "Tip notice": "Tip notice", - "Warning": "Warning", - "Warning notice": "Warning notice", - "Success": "Success", - "Success notice": "Success notice", + "Toggle block": "Toggle block", + "Divider": "Divider", + "Page break": "Page break", "Current date": "Current date", "Current time": "Current time", "Current date and time": "Current date and time", - "Indent": "Indent", - "Outdent": "Outdent", - "Video": "Video", - "None": "None", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Info notice", + "Success notice": "Success notice", + "Warning notice": "Warning notice", + "Tip notice": "Tip notice", "Wrap text": "Wrap text", + "Placeholder": "Placeholder", + "Bold": "Bold", + "Italic": "Italic", + "Strikethrough": "Strikethrough", + "Background color": "Background color", + "None": "None", + "Highlight": "Highlight", + "Code": "Code", + "Heading": "Heading", + "Subheading": "Subheading", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Outdent", + "Indent": "Indent", + "Create link": "Create link", + "Comment": "Comment", + "Align left": "Align left", + "Align center": "Align centre", + "Align right": "Align right", + "Full width": "Full width", + "Download image": "Download image", + "Replace image": "Replace image", + "Edit image URL": "Edit image URL", + "Default width": "Default width", + "Distribute columns": "Distribute columns", + "Delete table": "Delete table", + "Export as CSV": "Export as CSV", + "Sort ascending": "Sort ascending", + "Sort descending": "Sort descending", + "Toggle header": "Toggle header", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Rename", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "shared", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access 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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Backlinks", + "Clear search highlight": "Clear search highlight", + "Warning": "Warning", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", @@ -885,9 +885,13 @@ "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", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "We were unable to load the document while offline.", @@ -936,6 +940,7 @@ "Large header": "Large header", "Medium header": "Medium header", "Small header": "Small header", + "Link": "Link", "Underline": "Underline", "Undo": "Undo", "Redo": "Redo", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Copied to clipboard", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferences saved", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "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.", @@ -1317,6 +1327,8 @@ "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", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", @@ -1325,7 +1337,6 @@ "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.", "All notifications": "All notifications", - "Preferences saved": "Preferences saved", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Delete account", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Sorry, an error occurred uploading the file", + "Sorry, that type of link is not supported": "Sorry, that type of link is not supported", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "Loading", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Write a caption", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index 97324ff685..899a5f2453 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -1,7 +1,7 @@ { "New API key": "Nueva clave API", "Copy": "Copiar", - "API key copied": "Clave Api copiada", + "API key copied": "Clave API copiada", "Delete": "Eliminar", "Revoke": "Revocar", "Revoke API key": "Revocar clave de la API", @@ -169,6 +169,7 @@ "New workspace": "Nuevo espacio de trabajo", "Create a workspace": "Crear un espacio de trabajo", "Login to workspace": "Iniciar sesión al espacio de trabajo", + "template": "template", "Template deleted": "Plantilla eliminada", "Deleting": "Eliminando", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "¿Estás seguro de eso? Eliminar la plantilla <em>{{ templateName }}</em> es permanente.", @@ -298,6 +299,7 @@ "Currently editing": "Editando actualmente", "Currently viewing": "Visualizando actualmente", "Viewed {{ timeAgo }}": "Visto {{ timeAgo }}", + "Uploading… {{ progress }}%": "Subiendo… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Tipo de archivo no soportado. Por favor use PNG, JPG, GIF o WebP.", "File size too large. Maximum size is {{ size }}.": "El tamaño del archivo es demasiado grande. El tamaño máximo es {{ size }}.", "Click or drag to replace": "Haga clic o arrastre para reemplazar", @@ -314,7 +316,7 @@ "name can only contain lowercase letters, numbers, and underscores.": "el nombre sólo puede contener letras minúsculas, números y guiones bajos.", "This emoji will be available as": "Este emoji estará disponible como", "Emoji replaced": "Emoji reemplazado", - "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.", + "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Sube una nueva imagen para reemplazar la actual para <em>{{emojiName}}</em>. Todos los usos existentes de este emoji se actualizarán automáticamente.", "Module failed to load": "El módulo no ha podido ser cargado", "Loading Failed": "Carga fallida", "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.": "Lo sentimos, parte de la aplicación no pudo ser cargada. Esto puede deberse a que se actualizó desde que abriste la pestaña o debido a una solicitud de red fallida. Por favor intenta recargar la página.", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Lo sentimos, ha ocurrido un error.", "Click to retry": "Haz clic para volver a intentarlo", "Back": "Atrás", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Administrar", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permisos para {{ userName }} actualizados", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Opciones de notificación", "Unknown": "Desconocido", "Mentions": "Menciones", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m leído", "{{ hours }}h read": "{{ hours }}h leído", "{{ minutes }}m read": "Lectura de {{ minutes }}m", - "Manage": "Administrar", "All members": "Todos los miembros", "Everyone in the workspace": "Todos en el espacio de trabajo", "{{ count }} member": "{{ count }} miembro", "{{ count }} member_plural": "{{ count }} miembros", + "Public link copied to clipboard": "Enlace público copiado al portapapeles", "Only lowercase letters, digits and dashes allowed": "Solo se permiten letras minúsculas, dígitos y guiones", "Sorry, this link has already been used": "Lo sentimos, este enlace ya ha sido utilizado", - "Public link copied to clipboard": "Enlace público copiado al portapapeles", - "Web": "Web", + "Publish to web": "Publicar en la web", "Allow anyone with the link to access": "Permitir acceso a cualquiera con el enlace", "Publish to internet": "Publicar en Internet", - "Search engine indexing": "Indexación del motor de búsqueda", - "Disable this setting to discourage search engines from indexing the page": "Desactivar esta opción para desalentar que los motores de búsqueda indexen la página", - "Email subscriptions": "Suscripciones de correo", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Permitir a los espectadores suscribirse y recibir notificaciones por correo electrónico cuando se actualicen los documentos", - "Show last modified": "Mostrar última modificación", - "Display the last modified timestamp on the shared page": "Mostrar la última fecha de modificación en la página compartida", - "Show table of contents": "Mostrar tabla de contenidos", - "Display the table of contents on documents by default": "Mostrar por defecto la tabla de contenidos en los documentos", "All documents in this collection will be shared on the web, including any new documents added later": "Todos los documentos de esta colección serán compartidos en la web, incluyendo cualquier nuevo documento añadido más tarde", "Invite": "Invitar", "{{ userName }} was added to the collection": "{{ userName }} fue agregado a la colección", @@ -445,8 +447,24 @@ "Switch to dark": "Cambiar al modo oscuro", "Switch to light": "Cambiar al modo claro", "Subscribe to updates": "Suscribirse a actualizaciones", + "Logo": "Logo", "Add": "Agregar", "Add or invite": "Añadir o invitar", + "Sharing settings updated": "Ajustes de uso compartido actualizados", + "Display settings": "Ajustes de pantalla", + "Customize how the published document is displayed": "Personalizar cómo se muestra el documento publicado", + "Image options": "Opciones de imagen", + "Upload": "Subir", + "Site title": "Título del sitio", + "Show last modified": "Mostrar última modificación", + "Display the last modified timestamp on the shared page": "Mostrar la última fecha de modificación en la página compartida", + "Show table of contents": "Mostrar tabla de contenidos", + "Display the table of contents on documents by default": "Mostrar por defecto la tabla de contenidos en los documentos", + "Behavior": "Comportamiento", + "Search engine indexing": "Indexación del motor de búsqueda", + "Disable this setting to discourage search engines from indexing the page": "Desactivar esta opción para desalentar que los motores de búsqueda indexen la página", + "Email subscriptions": "Suscripciones de correo", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Permitir a los espectadores suscribirse y recibir notificaciones por correo electrónico cuando se actualicen los documentos", "Something went wrong": "Algo ha salido mal", "Check your email to confirm your subscription": "Revisa tu correo electrónico para confirmar tu suscripción.", "Get notified when this document is updated": "Notificar cuando se actualice este documento", @@ -465,7 +483,6 @@ "Access inherited from collection": "Acceso heredado de la colección", "{{ userName }} was removed from the document": "{{ userName }} fue quitado del documento", "Could not remove user": "No se pudo remover al usuario", - "Permissions for {{ userName }} updated": "Permisos para {{ userName }} actualizados", "Could not update user": "No se pudo actualizar el usuario", "Has access through <2>parent</2>": "Tiene acceso a través de <2>parent</2>", "Suspended": "Suspendido", @@ -473,16 +490,14 @@ "Active <1></1> ago": "Activo hace <1></1>", "Never signed in": "No ha iniciado sesión nunca", "Leave": "Salir", - "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", - "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Permitir a los espectadores suscribirse y recibir notificaciones por correo electrónico cuando se actualicen los documentos", + "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Cualquiera con el enlace puede acceder porque la colección contenedora, <2>{sharedParent.sourceTitle}</2>, es compartida", + "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Cualquiera con el enlace puede acceder porque el documento padre, <2>{{documentTitle}}</2>, es compartido", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Los documentos anidados no son compartidos en la web. Cambia las reglas de compartir para habilitar el acceso, este será el comportamiento predeterminado en el futuro", "{{ userName }} was added to the document": "{{ userName }} ha sido añadido al documento", "{{ count }} people added to the document": "{{ count }} persona ha sido añadida al documento", "{{ count }} people added to the document_plural": "{{ count }} personas han sido añadidas al documento", "{{ count }} groups added to the document": "{{ count }} grupo invitado al documento", "{{ count }} groups added to the document_plural": "{{ count }} grupos invitados al documento", - "Logo": "Logo", "Expand sidebar": "Expandir barra lateral", "Collapse sidebar": "Contraer barra lateral", "Archived collections": "Colecciones archivadas", @@ -548,10 +563,18 @@ "Replacement": "Reemplazo", "Replace": "Reemplazar", "Replace all": "Reemplazar todas", + "Go to link": "Ir al enlace", + "Open link": "Abrir enlace", + "Remove link": "Eliminar enlace", + "Formatting controls": "Controles de formato", + "Search or paste a link": "Buscar o pegar un enlace", "Image width": "Ancho de la imagen", "Width": "Ancho", "Image height": "Alto de la imagen", "Height": "Alto", + "Paste a link": "Pegar un enlace", + "Delete embed": "Eliminar incrustado", + "Delete image": "Eliminar imagen", "Profile picture": "Foto de perfil", "Create a new doc": "Crea un nuevo documento", "Create a nested doc": "Crear un documento anidado", @@ -561,110 +584,82 @@ "Mention": "Mencionar", "Embed": "Embed", "Not supported": "No soportado", + "Sorry, that link won’t work for this embed type": "Lo sentimos, ese enlace no funcionará para este tipo de embed", "Upload file": "Subir archivo", + "Paste a {{service}} link…": "Pegar un enlace de {{service}}…", "More options": "Más opciones", - "Rename": "Renombrar", - "Insert after": "Insertar después", - "Insert before": "Insertar antes", - "Move up": "Mover hacia arriba", - "Move down": "Mover hacia abajo", - "Move left": "Mover a izquierda", - "Move right": "Mover a derecha", - "Align center": "Centrar", - "Align left": "Alinear a la izquierda", - "Align right": "Alinear a la derecha", - "Default width": "Ancho predeterminado", - "Full width": "Ancho total", - "Bulleted list": "Lista con viñetas", - "Todo list": "Lista de tareas", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Ocultar completados", - "Code block": "Bloque de código", - "Copied to clipboard": "Copiado al portapapeles", - "Code": "Código", - "Comment": "Comentar", - "Create link": "Nuevo enlace", - "Edit image URL": "Editar URL de la imagen", - "Sorry, an error occurred creating the link": "Lo sentimos, se ha producido un error al crear el enlace", - "Create a new child doc": "Crear un nuevo documento hijo", - "Delete table": "Eliminar tabla", + "Type '/' to insert": "Escriba '/' para insertar", + "Keep typing to filter": "Sigue escribiendo para filtrar", + "Replace file": "Reemplazar el archivo", "Delete file": "Eliminar el archivo", "Show preview": "Vista previa", - "Download file": "Descargar el archivo", - "Replace file": "Reemplazar el archivo", - "Delete image": "Eliminar imagen", - "Download image": "Descargar imagen", - "Replace image": "Reemplazar imagen", - "Italic": "Cursiva", - "Sorry, that link won’t work for this embed type": "Lo sentimos, ese enlace no funcionará para este tipo de embed", - "File attachment": "Archivo adjunto", - "Embed PDF": "Embed PDF", - "Enter a link": "Introduce un enlace", "Big heading": "Encabezado grande", "Medium heading": "Encabezado mediano", "Small heading": "Encabezado pequeño", "Extra small heading": "Encabezado extra pequeño", - "Heading": "Encabezado", - "Divider": "Divisor", - "Image": "Imagen", - "Sorry, an error occurred uploading the file": "Lo sentimos, ocurrió un error cargando el archivo", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Escribe un pie de foto", - "Info": "Información", - "Info notice": "Aviso de información", - "Link": "Enlace", - "Highlight": "Resaltar", - "Background color": "Color de fondo", - "Type '/' to insert": "Escriba '/' para insertar", - "Keep typing to filter": "Sigue escribiendo para filtrar", - "Open link": "Abrir enlace", - "Go to link": "Ir al enlace", - "Sorry, that type of link is not supported": "Lo sentimos, ese tipo de enlace no es compatible", + "Todo list": "Lista de tareas", + "Bulleted list": "Lista con viñetas", "Ordered list": "Lista ordenada", - "Page break": "Salto de página", - "Paste a link": "Pegar un enlace", - "Paste a {{service}} link…": "Pegar un enlace de {{service}}…", - "Placeholder": "Marcador", - "Quote": "Cita", - "Remove link": "Eliminar enlace", - "Search or paste a link": "Buscar o pegar un enlace", - "Strikethrough": "Tachado", - "Bold": "Negrita", - "Subheading": "Sub-encabezado", - "Sort ascending": "Ordenar ascendentemente", - "Sort descending": "Ordenar descendientemente", + "Image": "Imagen", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "Archivo adjunto", "Table": "Tabla", - "Export as CSV": "Exportar como CSV", - "Toggle header": "Mostrar/Ocultar cabecera", - "Math inline (LaTeX)": "Fórmula matemática en línea (LaTeX)", + "Quote": "Cita", + "Code block": "Bloque de código", "Math block (LaTeX)": "Bloque de matemáticas (LaTeX)", - "Merge cells": "Combinar celdas", - "Split cell": "Dividir la celda", - "Tip": "Sugerencia", - "Tip notice": "Aviso de sugerencia", - "Warning": "Atención", - "Warning notice": "Aviso de advertencia", - "Success": "Éxito", - "Success notice": "Aviso de éxito", + "Toggle block": "Alternar bloque", + "Divider": "Divisor", + "Page break": "Salto de página", "Current date": "Fecha actual", "Current time": "Hora actual", "Current date and time": "Fecha y hora actual", - "Indent": "Aumentar sangría", - "Outdent": "Reducir sangría", - "Video": "Video", + "Info notice": "Aviso de información", + "Success notice": "Aviso de éxito", + "Warning notice": "Aviso de advertencia", + "Tip notice": "Aviso de sugerencia", + "Wrap text": "Ajustar texto", + "Placeholder": "Marcador", + "Bold": "Negrita", + "Italic": "Cursiva", + "Strikethrough": "Tachado", + "Background color": "Color de fondo", "None": "Nada", - "Toggle block": "Alternar bloque", - "Add title": "Añadir título", - "Add content": "Añadir contenido", - "Delete embed": "Eliminar incrustado", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", - "Wrap text": "Wrap text", + "Highlight": "Resaltar", + "Code": "Código", + "Heading": "Encabezado", + "Subheading": "Sub-encabezado", + "Merge cells": "Combinar celdas", + "Split cell": "Dividir la celda", + "Outdent": "Reducir sangría", + "Indent": "Aumentar sangría", + "Create link": "Nuevo enlace", + "Comment": "Comentar", + "Align left": "Alinear a la izquierda", + "Align center": "Centrar", + "Align right": "Alinear a la derecha", + "Full width": "Ancho total", + "Download image": "Descargar imagen", + "Replace image": "Reemplazar imagen", + "Edit image URL": "Editar URL de la imagen", + "Default width": "Ancho predeterminado", + "Distribute columns": "Distribuir columnas", + "Delete table": "Eliminar tabla", + "Export as CSV": "Exportar como CSV", + "Sort ascending": "Ordenar ascendentemente", + "Sort descending": "Ordenar descendientemente", + "Toggle header": "Mostrar/Ocultar cabecera", + "Insert after": "Insertar después", + "Insert before": "Insertar antes", + "Move left": "Mover a izquierda", + "Move right": "Mover a derecha", + "Move up": "Mover hacia arriba", + "Move down": "Mover hacia abajo", + "Rename": "Renombrar", "Delete Emoji": "Eliminar emoji", "Emoji deleted": "Emoji eliminado", "I'm sure – Delete": "Estoy seguro – Eliminar", - "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.": "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.", + "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.": "¿Estás seguro de que quieres eliminar los emojis <em>{{emojiName}}</em> ? Ya no podrá utilizarlo en sus documentos o colecciones.", "Edit group": "Editar grupo", "Delete group": "Eliminar grupo", "Could not import file": "No se pudo importar el archivo", @@ -683,7 +678,7 @@ "Shared Links": "Enlaces compartidos", "Import": "Importar", "Embeds": "Embeds", - "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", + "Configure which embed providers are available in the editor.": "Configurar qué proveedores embebidos están disponibles en el editor.", "Install": "Instalar", "Change name": "Cambiar nombre", "Change email": "Modificar correo electrónico", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reaccionó {{ emoji }} a tu comentario el", "shared": "compartido", "invited you to": "te invitó a", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Elige una fecha", "API key created. Please copy the value now as it will not be shown again.": "Clave API creada. Por favor, copia el valor ahora, ya que no se mostrará de nuevo.", "Scopes": "Ámbitos", @@ -866,9 +864,11 @@ "Next slide": "Siguiente diapositiva", "Toggle fullscreen": "Alternar pantalla completa", "Create your presentation": "Cree su presentación", - "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", - "Learn more": "Learn more", + "Add content to your document, then use headings or dividers to separate it into slides.": "Añada contenido a su documento, luego utilice encabezados o divisores para separarlo en diapositivas.", + "Learn more": "Saber más", "Backlinks": "Enlaces de retroceso", + "Clear search highlight": "Borrar resaltado de búsqueda", + "Warning": "Atención", "This document is large which may affect performance": "Este documento es grande y puede afectar al rendimiento", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "¿Estás seguro? Eliminar el documento <em>{{ documentTitle }}</em> eliminará todo su historial</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "¿Estás seguro? Eliminar el documento <em>{{ documentTitle }}</em> eliminará todo su historial y <em>{{ any }} documento anidado</em>.", @@ -885,19 +885,23 @@ "No documents found for your filters.": "No se encontraron documentos para tus filtros.", "You’ve not got any drafts at the moment.": "No tienes borradores en este momento.", "Payment Required": "Pago Requerido", + "Access request sent": "Access request sent", "No access to this doc": "Sin acceso a este documento", - "It doesn’t look like you have permission to access this document.": "Parece que no tienes permiso para acceder a este documento.", - "Please request access from the document owner.": "Solicita acceso al propietario del documento.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "No encontrado", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "No se puede encontrar la página que estás buscando. Es posible que haya sido eliminada o que el enlace sea incorrecto.", "We were unable to load the document while offline.": "No pudimos cargar el documento sin conexión.", "Your account has been suspended": "Tu cuenta ha sido suspendida", "Warning Sign": "Señal de Advertencia", "A workspace admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.": "Un administrador del espacio de trabajo (<em>{{ suspendedContactEmail }}</em>) ha suspendido tu cuenta. Para reactivarla, por favor contáctalo directamente.", - "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.": "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.", + "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.": "Lo sentimos, se ha producido un error desconocido al cargar la página. Por favor, inténtelo de nuevo o póngase en contacto con el soporte técnico si el problema persiste.", "Created by me": "Creado por mí", - "Weird, this shouldn't ever be empty": "Weird, this shouldn't ever be empty", - "Documents with recent activity will appear here": "Documents with recent activity will appear here", + "Weird, this shouldn't ever be empty": "Que raro, esto nunca debería estar vacío", + "Documents with recent activity will appear here": "Los documentos con actividad reciente aparecerán aquí", "You haven’t created any documents yet": "Aún no has creado ningún documento", "Documents you’ve recently viewed will be here for easy access": "Los documentos que hayas visto recientemente estarán aquí para fácil acceso", "{{ count }} invites sent": "{{ count }} invitacion enviada", @@ -936,6 +940,7 @@ "Large header": "Encabezado grande", "Medium header": "Encabezado mediano", "Small header": "Encabezado pequeño", + "Link": "Enlace", "Underline": "Subrayar", "Undo": "Deshacer", "Redo": "Rehacer", @@ -994,7 +999,7 @@ "The workspace you are trying to join requires an invite before you can create an account.<1></1>Please request an invite from your workspace admin and try again.": "El espacio de trabajo al que estás intentando unirte requiere una invitación antes de que puedas crear una cuenta.<1></1>Por favor, solicita una invitación del administrador de tu espacio de trabajo e inténtalo de nuevo.", "Sorry, an unknown error occurred.": "Lo sentimos, se ha producido un error desconocido.", "Choose a workspace": "Elegir un espacio de trabajo", - "Choose an {{ appName }} workspace or login to continue connecting this app": "Choose an {{ appName }} workspace or login to continue connecting this app", + "Choose an {{ appName }} workspace or login to continue connecting this app": "Elige un espacio de trabajo {{ appName }} o inicia sesión para continuar conectando esta aplicación", "Create workspace": "Crear espacio de trabajo", "Setup your workspace by providing a name and details for admin login. You can change these later.": "Configure su área de trabajo proporcionando un nombre y detalles para el inicio de sesión del administrador. Puede cambiarlos más tarde.", "Workspace name": "Nombre del espacio de trabajo", @@ -1026,9 +1031,9 @@ "Authorize": " Ocurrió un error", "{{ appName }} wants to access {{ teamName }}": "", "By <em>{{ developerName }}</em>": "Por <em>{{ developerName }}</em>", - "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} will be able to access your account and perform the following actions", + "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} podrá acceder a su cuenta y realizar las siguientes acciones", "You will be redirected to a local application after authorizing.": "Usted será redirigido a una aplicación local después de la autorización.", - "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", + "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Serás redirigido a <em>{{ redirectUri }}</em> después de autorizar. Asegúrate de confiar en esta URL.", "read": "leer", "write": "escribir", "read and write": "leer y escribir", @@ -1060,21 +1065,21 @@ "Any status": "Cualquier estado", "Recent searches": "Búsquedas recientes", "Remove search": "Eliminar búsqueda", - "Relevance": "Relevance", - "Newest": "Newest", - "Oldest": "Oldest", + "Relevance": "Relevancia", + "Newest": "Más reciente", + "Oldest": "Más antiguo", "A → Z": "A → Z", "Z → A": "Z → A", "Any author": "Cualquier autor", "Search titles only": "Buscar solamente títulos", "Please try again or contact support if the problem persists": "Por favor, inténtelo de nuevo o póngase en contacto con el soporte técnico si el problema persiste", "No documents found for your search filters.": "No se encontraron documentos para tus filtros de búsqueda.", - "Personal keys": "Personal keys", + "Personal keys": "Claves personales", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": ".", - "API keys have been disabled by an admin for your account": "API keys have been disabled by an admin for your account", + "API keys have been disabled by an admin for your account": "Las claves API han sido deshabilitadas por un administrador de tu cuenta", "Application access": ".", - "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Manage which third-party and internal applications have been granted access to your {{ appName }} account.", - "Could not load API keys": "Could not load API keys", + "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Gestione qué aplicaciones externas e internas han obtenido acceso a su cuenta {{ appName }}.", + "Could not load API keys": "No se pudo cargar las claves API", "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 <em>developer documentation</em>.": "Las claves API se pueden usar para autenticarse con la API y controlar de forma programática los datos de tu espacio de trabajo. Para más detalles, consulta la <em>documentación para desarrolladores</em>.", "Application published": "Aplicación publicada", @@ -1083,49 +1088,50 @@ "Rotate secret": "Rotar secreto", "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.": "Rotar el secreto del cliente invalidará el secreto actual. Asegúrate de actualizar cualquier aplicación que utilice estas credenciales.", "Displayed to users when authorizing": "Mostrado a los usuarios mientras se autorizan", - "Application icon": "Application icon", - "Confidential clients can securely store a secret": "Confidential clients can securely store a secret", - "Developer information shown to users when authorizing": "Developer information shown to users when authorizing", + "Application icon": "Icono de aplicación", + "Confidential clients can securely store a secret": "Clientes confidenciales pueden almacenar un secreto", + "Developer information shown to users when authorizing": "Información del desarrollador mostrada a los usuarios al autorizar", "Developer name": "Nombre del desarrollador", "Developer URL": "URL de desarollo", - "Allow users from other workspaces to authorize this app": "Allow users from other workspaces to authorize this app", + "Allow users from other workspaces to authorize this app": "Permitir a los usuarios de otras áreas de trabajo autorizar esta aplicación", "Credentials": "Credenciales", "OAuth client ID": "ID de cliente OAuth", "The public identifier for this app": "El identificador público de esta aplicación", + "Copied to clipboard": "Copiado al portapapeles", "OAuth client secret": "Secreto de cliente OAuth", "Store this value securely, do not expose it publicly": "Guarda este valor de forma segura, no lo expongas públicamente", "Where users are redirected after authorizing this app": "Donde se redirige a los usuarios después de autorizar esta aplicación", "Authorization URL": "URL de autorización", - "Where users are redirected to authorize this app": "Where users are redirected to authorize this app", - "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.": "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.", + "Where users are redirected to authorize this app": "Donde los usuarios son redirigidos para autorizar esta aplicación", + "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.": "Las aplicaciones le permiten construir integraciones internas o públicas con Outline y proporcionar acceso seguro a través de OAuth. Para obtener más información, consulte la documentación <em>del desarrollador</em>.", "Settings saved": "Configuración guardada", "Are you sure?": "¿Está seguro?", "Removing": "Eliminando", - "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.", + "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "Eliminar este proveedor de autenticación impedirá que los miembros inicien sesión con {{ authProvider }}.", "Disable group sync": "Desactivar sincronización de grupo", - "Manage how members sign-in to your workspace and which authentication providers are enabled.": "Manage how members sign-in to your workspace and which authentication providers are enabled.", + "Manage how members sign-in to your workspace and which authentication providers are enabled.": "Administre cómo los miembros se conectan a su área de trabajo y qué proveedores de autenticación están habilitados.", "Allow members to sign-in with {{ authProvider }}": "Permitir que los miembros inicien sesión con {{ authProvider }}", - "Connect {{ authProvider }} to allow members to sign-in": "Connect {{ authProvider }} to allow members to sign-in", + "Connect {{ authProvider }} to allow members to sign-in": "Conéctate a {{ authProvider }} para permitir a los miembros iniciar sesión", "Connected": "Conectado", "Disabled": "Deshabilitado", "Connect": "Conectar", "Group sync": "Sincronización de grupo", "Sync group memberships from {{ authProvider }} on each sign-in": "Sincronizar membresías de grupo de {{ authProvider }} en cada inicio de sesión", "Group claim": "Group claim", - "The claim in the provider response that contains group names (e.g. groups, roles)": "The claim in the provider response that contains group names (e.g. groups, roles)", + "The claim in the provider response that contains group names (e.g. groups, roles)": "La reclamación en la respuesta del proveedor que contiene nombres de grupo (por ejemplo, grupos, roles)", "Allow members to sign-in using their email address": "Permitir que los miembros inicien sesión usando su dirección de correo electrónico", "The server must have SMTP configured to enable this setting": "El servidor debe tener SMTP configurado para habilitar esta opción", "Passkeys": "Passkeys", - "Allow members to sign-in with a WebAuthn passkey": "Allow members to sign-in with a WebAuthn passkey", - "Restrictions": "Restrictions", - "Keep synced groups": "Keep synced groups", - "Groups will remain but no longer update": "Groups will remain but no longer update", - "Delete synced groups": "Delete synced groups", - "Remove all groups created by sync": "Remove all groups created by sync", - "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "Group memberships will no longer be synced from {{ authProvider }} when members sign in.", - "Existing groups": "Existing groups", - "Disabling": "Disabling", - "Disable": "Disable", + "Allow members to sign-in with a WebAuthn passkey": "Permitir a los miembros iniciar sesión con una passkey WebAuthn", + "Restrictions": "Restricciones", + "Keep synced groups": "Mantener grupos sincronizados", + "Groups will remain but no longer update": "Los grupos permanecerán pero ya no se actualizarán", + "Delete synced groups": "Eliminar grupos sincronizados", + "Remove all groups created by sync": "Eliminar todos los grupos creados por sincronización", + "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "Las membresías de grupo ya no se sincronizarán desde {{ authProvider }} cuando los miembros inicien sesión.", + "Existing groups": "Grupos existentes", + "Disabling": "Desactivando", + "Disable": "Desactivar", "by {{ name }}": "por {{ name }}", "Expired": "Expirado", "Last used": "Utilizado por última vez", @@ -1134,10 +1140,15 @@ "API key copied to clipboard": "Clave API copiada al portapapeles", "Copied": "Copiado", "Are you sure you want to revoke the {{ tokenName }} token?": "¿Estás seguro de que quieres revocar el token {{ tokenName }}?", - "Key": "Key", - "Created by": "Created by", - "Never": "Never", - "Expires": "Expires", + "Key": "Clave", + "Created by": "Creado por", + "Never": "Nunca", + "Expires": "Caduca", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferencias guardadas", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Desconectar integración", "Disconnecting": "Desconectando", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "¿Estás seguro de que quieres desconectar la integración <em>{{ service }}</em>?", @@ -1152,11 +1163,11 @@ "File not supported – please upload a valid ZIP file": "Archivo no soportado - por favor sube un archivo ZIP válido", "Set the default permission level for collections created from the import": "Establecer el nivel de permisos por defecto para las colecciones creadas a partir de la importación", "Start import": "Iniciar importación", - "Added by": "Added by", - "Date added": "Date added", - "Members exported successfully": "Members exported successfully", - "Failed to export members": "Failed to export members", - "Download CSV": "Download CSV", + "Added by": "Agregado por", + "Date added": "Agregado en la fecha", + "Members exported successfully": "Miembros exportados correctamente", + "Failed to export members": "Error al exportar los miembros", + "Download CSV": "Descargar CSV", "Processing": "Procesando", "Completed": "Completado", "Failed": "Ha fallado", @@ -1168,13 +1179,13 @@ "Check server logs for more details.": "Revisa los logs del servidor para más detalles.", "{{userName}} requested": "{{userName}} ha solicitado", "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering for example.": "Los grupos son para organizar tu equipo. Funcionan mejor cuando se centran en una función o una responsabilidad — Soporte o Ingeniería, por ejemplo.", - "Optional": "Optional", + "Optional": "Opcional", "You’ll be able to add people to the group next.": "A continuación, podrás añadir personas al grupo.", - "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.", + "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "Este grupo es administrado por un proveedor de autenticación externa. El nombre se sincroniza automáticamente y no se puede cambiar.", "You can edit the name of this group at any time, however doing so too often might confuse your team mates.": "Puedes editar el nombre de este grupo en cualquier momento, sin embargo, hacerlo con demasiada frecuencia podría confundir a tus compañeros de equipo.", "Description": "Descripción", - "Hidden": "Hidden", - "Prevent this group from being mentionable in documents or comments": "Prevent this group from being mentionable in documents or comments", + "Hidden": "Escondido", + "Prevent this group from being mentionable in documents or comments": "Evitar que este grupo sea mencionable en documentos o comentarios", "Are you sure about that? Deleting the <em>{{groupName}}</em> group will cause its members to lose access to collections and documents that it is associated with.": "¿Estás seguro de eso? Eliminar el grupo <em>{{groupName}}</em> hará que sus miembros pierdan el acceso a las colecciones y documentos con los que está asociado.", "{{userName}} was added to the group": "{{userName}} fue agregado al grupo", "Could not add user": "No se pudo agregar al usuario", @@ -1185,17 +1196,17 @@ "Search people": "Buscar personas", "No people matching your search": "No hay personas que coincidan con tu búsqueda", "No people left to add": "No quedan personas para agregar", - "Group admin": "Group admin", - "Member": "Member", + "Group admin": "Administrador de grupo", + "Member": "Miembro", "{{userName}} was removed from the group": "{{userName}} fue eliminado del grupo", "Last active": "Última vez activo", - "All permissions": "All permissions", - "All sources": "All sources", + "All permissions": "Todos los permisos", + "All sources": "Todas las fuentes", "Manual": "Manual", - "This group is hidden": "This group is hidden", - "Synced <2></2>": "Synced <2></2>", + "This group is hidden": "Este grupo está oculto", + "Synced <2></2>": "Sincronizado <2></2>", "Date created": "Fecha de creación", - "Crop Image": "Crop Image", + "Crop Image": "Recortar imagen", "Crop image": "Recortar imagen", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "Puedes importar un archivo zip que se exportó previamente desde la opción JSON en otra instancia. En {{ appName }}, abre <em>Exportar</em> en la barra lateral de configuración y haz clic en <em>Exportar datos</em>.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Arrastra y suelta el archivo zip de la opción de exportación JSON de {{appName}}, o haz clic para cargarlo", @@ -1219,15 +1230,15 @@ "Last accessed": "Ultimo acceso", "Domain": "Dominio", "Views": "Vistas", - "Visibility": "Visibility", - "Updated by": "Updated by", + "Visibility": "Visibilidad", + "Updated by": "Actualizado por", "All roles": "Todos los roles", "Admins": "Administradores", "Editors": "Editores", "All status": "Todos los estados", "Active": "Activo", - "Could not load emojis": "Could not load emojis", - "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", + "Could not load emojis": "No se pudieron cargar los emojis", + "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Los emojis personalizados pueden utilizarse en todo su espacio de trabajo en documentos, comentarios y reacciones.", "Left": "Izquierda", "Right": "Derecha", "Logo updated": "Logo actualizado", @@ -1236,7 +1247,7 @@ "These settings affect the way that your workspace appears to everyone on the team.": "Estas configuraciones afectan la forma en la que el espacio de trabajo aparece para todos en el equipo.", "Display": "Aspecto", "The logo is displayed at the top left of the application.": "El logo se muestra en la parte superior izquierda de la aplicación.", - "Workspace logo": "Workspace logo", + "Workspace logo": "Logotipo del espacio de trabajo", "The workspace name, usually the same as your company name.": "Nombre del espacio de trabajo, usualmente igual al nombre de tu empresa.", "A short description of your workspace.": "Una breve descripción de tu espacio de trabajo.", "Theme": "Tema", @@ -1245,10 +1256,9 @@ "Accent color": "Color primario", "Accent text color": "Color del texto primario", "Public branding": "Marca pública", - "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", + "Show your workspace logo, description, and branding on publicly shared pages.": "Mostrar el logotipo, descripción y marca de su área de trabajo en páginas públicas compartidas.", "Table of contents position": "Posición de la tabla de contenidos", "The side to display the table of contents in relation to the main content.": "El lado para mostrar la tabla de contenidos en relación con el contenido principal.", - "Behavior": "Comportamiento", "Subdomain": "Subdominio", "Your workspace will be accessible at": "Tu espacio de trabajo podrá ser accedido en", "Choose a subdomain to enable a login page just for your team.": "Elige un subdominio para habilitar una página de inicio de sesión única para tu equipo.", @@ -1257,29 +1267,29 @@ "When enabled documents have a separate editing mode by default instead of being always editable. This setting can be overridden by user preferences.": "Cuando está activado, los documentos tienen un modo de edición separada por defecto en lugar de ser siempre editables. Esta configuración puede ser sobrescrita por las preferencias del usuario.", "When enabled team members can add comments to documents.": "Cuando está activado, miembros del equipo pueden añadir comentarios a los documentos.", "Danger": "Peligro", - "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", - "Enabled": "Enabled", - "Allow supported providers to be inserted as interactive embeds in documents.": "Allow supported providers to be inserted as interactive embeds in documents.", - "Providers": "Providers", - "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.", - "All providers": "All providers", + "You can delete this entire workspace including collections, documents, and users.": "Puedes eliminar todo este espacio de trabajo incluyendo colecciones, documentos y usuarios.", + "Enabled": "Habilitado", + "Allow supported providers to be inserted as interactive embeds in documents.": "Permitir que los proveedores soportados sean insertados como incrustaciones interactivas en los documentos.", + "Providers": "Proveedores", + "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Los proveedores habilitados aparecerán en el menú de barra del editor e incrustarán automáticamente cuando se pegue un enlace compatible. Las incrustaciones existentes en documentos continuarán mostrándose independientemente de estos ajustes.", + "All providers": "Todos los proveedores", "Export data": "Exportar datos", "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 <em>{{ userEmail }}</em> when it’s complete.": "Una exportación completa puede tardar un poco. Considera exportar un solo documento o colección. Puedes salir de esta página una vez iniciada la exportación; si tienes las notificaciones activadas, te enviaremos un enlace a <em>{{ userEmail }}</em> cuando haya finalizado.", "Recent exports": "Exportaciones recientes", - "Manage AI and integration features for your workspace.": "Manage AI and integration features for your workspace.", - "MCP server": "MCP server", - "Allow members to connect to this workspace with MCP to read and write data.": "Allow members to connect to this workspace with MCP to read and write data.", - "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.", - "Copy URL": "Copy URL", - "Additional guidance": "Additional guidance", - "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "You can use these optional instructions to tell MCP clients how to use your knowledge base.", - "AI answers": "AI answers", - "Use AI to get direct answers to questions in search. This feature requires a paid license.": "Use AI to get direct answers to questions in search. This feature requires a paid license.", + "Manage AI and integration features for your workspace.": "Administre IA y funciones de integración para su espacio de trabajo.", + "MCP server": "Servidor MCP", + "Allow members to connect to this workspace with MCP to read and write data.": "Permitir a los miembros conectarse a este espacio de trabajo con MCP leer y escribir datos.", + "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Utilice el siguiente endpoint para conectarse al servidor MCP desde su aplicación. Descubra más sobre configuración en <a>los documentos</a>.", + "Copy URL": "Copiar URL", + "Additional guidance": "Guía adicional", + "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "Puede utilizar estas instrucciones opcionales para decirle a los clientes de MCP cómo utilizar su base de conocimientos.", + "AI answers": "Respuestas IA", + "Use AI to get direct answers to questions in search. This feature requires a paid license.": "Utilice IA para obtener respuestas directas a las preguntas en la búsqueda. Esta característica requiere una licencia de pago.", "Add people to {{groupName}}": "Añadir personas a {{groupName}}", - "Could not load group members": "Could not load group members", + "Could not load group members": "No se pudieron cargar los miembros del grupo", "Add people": "Agregar personas", - "Synced to {{ provider }}": "Synced to {{ provider }}", - "No description": "No description", + "Synced to {{ provider }}": "Sincronizado con {{ provider }}", + "No description": "Sin descripción", "Create a group": "Crear un grupo", "Could not load groups": "No se han podido cargar los grupos", "New group": "Nuevo grupo", @@ -1289,7 +1299,7 @@ "Import data": "Importar datos", "Import a JSON data file exported from another {{ appName }} instance": "Importar un archivo de datos JSON exportado desde otra instancia {{ appName }}", "Import pages from a Confluence instance": "Importar páginas de una instancia de Confluence", - "Enterprise": "Enterprise", + "Enterprise": "Empresarial", "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.": "Transfiere rápidamente tus documentos, páginas y archivos existentes desde otras herramientas y servicios a {{appName}}. También puedes arrastrar y soltar cualquier archivo HTML, Markdown y de texto directamente a Colecciones en la aplicación.", "Recent imports": "Importaciones recientes", "Configure a variety of integrations with third-party services.": "Configurar una variedad de integraciones con servicios de terceros.", @@ -1302,8 +1312,8 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Recibir una notificación cuando un documento al que estás suscrito o un hilo en el que has participado recibe un comentario", "Mentioned": "Mencionado", "Receive a notification when someone mentions you in a document or comment": "Recibir una notificación cuando alguien te mencione en un documento o comentario", - "Group mentions": "Group mentions", - "Receive a notification when someone mentions a group you are a member of in a document or comment": "Receive a notification when someone mentions a group you are a member of in a document or comment", + "Group mentions": "Menciones de grupo", + "Receive a notification when someone mentions a group you are a member of in a document or comment": "Recibe una notificación cuando alguien mencione un grupo al que eres miembro en un documento o comentario", "Receive a notification when a comment thread you were involved in is resolved": "Recibir una notificación cuando se resuelva un hilo de comentarios en el que participó", "Reaction added": "Reacción añadida", "Receive a notification when someone reacts to your comment": "Recibir una notificación cuando alguien reaccione a tu comentario", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Recibir una notificación cuando se te da acceso a una colección", "Export completed": "Exportación completada", "Receive a notification when an export you requested has been completed": "Recibir una notificación cuando se complete una exportación que hayas solicitado", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Primeros pasos", "Tips on getting started with features and functionality": "Consejos para empezar con las características y funcionalidades", "New features": "Nuevas características", @@ -1324,10 +1336,9 @@ "Notifications saved": "Notificaciones guardadas", "Unsubscription successful. Your notification settings were updated": "Cancelación de suscripción exitosa. Tu configuración de notificaciones se ha actualizado", "Manage when and where you receive email notifications.": "Gestiona cuándo y dónde recibirás notificaciones por correo electrónico.", - "All notifications": "All notifications", - "Preferences saved": "Preferencias guardadas", - "Unread count": "Unread count", - "Unread indicator": "Unread indicator", + "All notifications": "Todas las notificaciones", + "Unread count": "Número de no leídos", + "Unread indicator": "Indicador no leído", "Delete account": "Eliminar cuenta", "Manage settings that affect your personal experience.": "Administra las configuraciones que afectan tu experiencia personal.", "Language": "Idioma", @@ -1343,7 +1354,7 @@ "Smart text replacements": "Sustituciones inteligentes de texto", "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "Da formato automático al texto reemplazando atajos por símbolos, guiones, comillas inteligentes y otros elementos tipográficos.", "Notification badge": "Icono de notificacion", - "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", + "Choose how unread notifications are indicated on the app icon.": "Elija cómo se indican las notificaciones sin leer en el icono de la aplicación.", "You may delete your account at any time, note that this is unrecoverable": "Puedes eliminar tu cuenta en cualquier momento, ten en cuenta que esta es una operación irreversible", "Profile saved": "Perfil guardado", "Profile picture updated": "Foto de perfil guardada", @@ -1352,26 +1363,26 @@ "Photo": "Foto", "Choose a photo or image to represent yourself.": "Elige una foto o imagen para representarte.", "This could be your real name, or a nickname — however you’d like people to refer to you.": "Este podría ser tu nombre real, o un apodo — como te gustaría que la gente se refiriera a ti.", - "Members and guests": "Members and guests", - "No one": "No one", + "Members and guests": "Miembros e invitados", + "No one": "Ninguno", "Are you sure you want to require invites?": "¿Estás seguro de que quieres requerir invitaciones?", "New users will first need to be invited to create an account. <em>Default role</em> and <em>Allowed domains</em> will no longer apply.": "Los nuevos usuarios primero tendrán que ser invitados para crear una cuenta. El <em>rol predeterminado</em> y los <em>dominios permitidos</em> ya no serán aplicables.", "Settings that impact the access, security, and content of your workspace.": "Configuraciones que impactan el acceso, seguridad y contenido de tu espacio de trabajo.", - "Invites": "Invites", + "Invites": "Invitaciones", "Allow users to send invites": "Permitir a los usuarios enviar invitaciones", "Allow editors to invite other people to the workspace": "Permitir a los editores invitar a otras personas al área de trabajo", "Require invites": "Requerir invitaciones", "Require members to be invited to the workspace before they can create an account using SSO.": "Requiere que los miembros sean invitados al área de trabajo antes de que puedan crear una cuenta usando SSO.", "Default role": "Rol predeterminado", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "El rol de usuario predeterminado para cuentas nuevas. Cambiar esta configuración no afecta a las cuentas de usuario existentes.", - "Allow users to sign in with passkeys for passwordless authentication": "Allow users to sign in with passkeys for passwordless authentication", + "Allow users to sign in with passkeys for passwordless authentication": "Permitir a los usuarios iniciar sesión con claves de acceso para autenticación sin contraseña", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Cuando está activado, los documentos pueden ser compartidos públicamente en Internet por cualquier miembro del espacio de trabajo", "Viewer document exports": "Lectores pueden exportar documentos", "When enabled, viewers can see download options for documents": "Cuando está habilitado, los lectores pueden ver las opciones de descarga de documentos", "Users can delete account": "Los usuarios pueden eliminar la cuenta", "When enabled, users can delete their own account from the workspace": "Cuando está habilitado, los usuarios pueden eliminar su propia cuenta del espacio de trabajo", - "Email address visibility": "Email address visibility", - "Controls who can see user email addresses in the workspace": "Controls who can see user email addresses in the workspace", + "Email address visibility": "Visibilidad de la dirección de correo", + "Controls who can see user email addresses in the workspace": "Controla quién puede ver las direcciones de correo electrónico del usuario en el área de trabajo", "Collection creation": "Creación de colección", "Allow editors to create new collections within the workspace": "Permitir a los editores crear nuevas colecciones dentro del área de trabajo", "Workspace creation": "Creación de espacio de trabajo", @@ -1380,10 +1391,10 @@ "Sharing is currently disabled.": "Compartir está deshabilitado actualmente.", "You can globally enable and disable public document sharing in the <em>security settings</em>.": "Puedes activar y desactivar globalmente el uso de documentos compartidos públicamente en la <em>configuración de seguridad</em>.", "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.": "Los documentos que se han compartido se enumeran a continuación. Cualquiera que tenga el enlace público podrá acceder a una versión de solo lectura del documento hasta que se revoque el enlace.", - "A template must have content": "A template must have content", - "Could not load templates": "Could not load templates", - "Templates help your team create consistent and accurate documentation.": "Templates help your team create consistent and accurate documentation.", - "No templates have been created yet": "No templates have been created yet", + "A template must have content": "Una plantilla debe tener contenido", + "Could not load templates": "No se pudieron cargar las plantillas", + "Templates help your team create consistent and accurate documentation.": "Puedes crear plantillas para ayudar a tu equipo a crear documentación coherente y precisa.", + "No templates have been created yet": "Aún no se han creado plantillas", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} está usando {{ appName }} para compartir documentos, inicia sesión para continuar.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Un código de confirmación ha sido enviado a tu dirección de correo electrónico, por favor ingresa el código a continuación para eliminar permanentemente este espacio de trabajo.", "Confirmation code": "Código de confirmación", @@ -1409,119 +1420,119 @@ "Expires today": "Expira hoy", "Expires tomorrow": "Expira mañana", "Expires {{ date }}": "Expira el {{ date }}", - "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", - "Installation URL": "Installation URL", - "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net": "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net", - "New attribute": "New attribute", - "Paper size": "Paper size", - "Ask AI \"{{question}}\"": "Ask AI \"{{question}}\"", - "Are you sure you want to delete?": "Are you sure you want to delete?", - "Deleting this version of the document will permanently and irrevocably remove it from the history.": "Deleting this version of the document will permanently and irrevocably remove it from the history.", - "Format": "Format", - "Add option": "Add option", - "Choose a size for your exported document": "Choose a size for your exported document", - "Revision renamed": "Revision renamed", - "Failed to save revision": "Failed to save revision", - "Invite to document": "Invite to document", - "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", - "Edit attribute": "Edit attribute", - "Property": "Property", - "Yes": "Yes", + "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure una URL de instalación personalizada de Diagrams.net para usar su propia instancia autoalojada para incrustar diagramas en sus documentos.", + "Installation URL": "URL de instalación", + "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net": "La URL de su instalación de Diagrams.net. Deje en blanco para usar la nube app.diagrams.net alojada", + "New attribute": "Nuevo atributo", + "Paper size": "Tamaño del papel", + "Ask AI \"{{question}}\"": "Preguntar a la IA \"{{question}}\"", + "Are you sure you want to delete?": "¿Está seguro que desea eliminar?", + "Deleting this version of the document will permanently and irrevocably remove it from the history.": "Al eliminar esta versión del documento se eliminará de forma permanente y irrevocable del historial.", + "Format": "Formato", + "Add option": "Añadir opción", + "Choose a size for your exported document": "Elija un tamaño para su documento exportado", + "Revision renamed": "Revisión renombrada", + "Failed to save revision": "Error al guardar la revisión", + "Invite to document": "Invitar al documento", + "Sorry, invalid embed link": "Enlace incrustado inválido", + "Data Attributes": "Atributos de datos", + "Edit attribute": "Editar atributo", + "Property": "Propiedad", + "Yes": "Si", "No": "No", - "Search or ask a question": "Search or ask a question", - "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.": "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.", - "Can view only what is explicitly shared": "Can view only what is explicitly shared", - "SAML assertion was invalid or missing fields, please check your configuration": "SAML assertion was invalid or missing fields, please check your configuration", - "AI generated answer based on related documents in your workspace": "AI generated answer based on related documents in your workspace", - "References": "References", - "Enable AI answers to get direct answers to searched questions.": "Enable AI answers to get direct answers to searched questions.", - "Go to settings": "Go to settings", - "Where do I find the file?": "Where do I find the file?", - "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.": "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.", - "Drag and drop the zip file from Confluence's HTML export option, or click to upload": "Drag and drop the zip file from Confluence's HTML export option, or click to upload", - "Guests": "Guests", - "New Attribute": "New Attribute", - "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.": "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.", - "Custom domain": "Custom domain", - "Use AI to directly answer searched questions using content in your workspace.": "Use AI to directly answer searched questions using content in your workspace.", - "API access": "API access", - "Allow members to create API keys for programmatic access": "Allow members to create API keys for programmatic access", - "Public document embedding": "Public document embedding", - "When enabled, publicly shared documents can be embedded in third-party websites": "When enabled, publicly shared documents can be embedded in third-party websites", - "Include previews in emails": "Include previews in emails", - "When enabled, email notifications will include content previews": "When enabled, email notifications will include content previews", - "Boolean": "Boolean", - "Number": "Number", - "Text": "Text", - "List": "List", - "Could not load events": "Could not load events", - "Audit Log": "Audit Log", - "The audit log details the history of security related and other events across your knowledge base.": "The audit log details the history of security related and other events across your knowledge base.", - "IP address": "IP address", + "Search or ask a question": "Buscar o hacer una pregunta", + "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.": "El {{roleName}} invitado no recibirá acceso a ninguna colección o documento a menos que se comparta explícitamente.", + "Can view only what is explicitly shared": "Puede ver sólo lo que se comparte explícitamente", + "SAML assertion was invalid or missing fields, please check your configuration": "La afirmación SAML no es válida o faltan campos, por favor compruebe su configuración", + "AI generated answer based on related documents in your workspace": "Respuesta generada por IA basada en documentos relacionados en su espacio de trabajo", + "References": "Referencias", + "Enable AI answers to get direct answers to searched questions.": "Habilitar respuestas IA para obtener respuestas directas a preguntas buscadas.", + "Go to settings": "Ir a ajustes", + "Where do I find the file?": "¿Dónde encuentro el archivo?", + "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.": "En un espacio de Confluencia, vaya a <em>Configuración del espacio-> Administrar espacio -> Exportar espacio</em> y elija exportar como HTML con la opción \"Exportación Normal\".", + "Drag and drop the zip file from Confluence's HTML export option, or click to upload": "Arrastra y suelta el archivo zip desde la opción de exportación HTML de Confluence, o haz clic para subir", + "Guests": "Invitados", + "New Attribute": "Nuevo atributo", + "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.": "Los atributos le permiten definir los datos que se almacenarán con sus documentos. Pueden utilizarse para almacenar propiedades personalizadas, metadatos o cualquier otra información estructurada que sea común a través de documentos.", + "Custom domain": "Dominio personalizado", + "Use AI to directly answer searched questions using content in your workspace.": "Utilice IA para responder directamente a las preguntas buscadas usando contenido en su espacio de trabajo.", + "API access": "Acceso API", + "Allow members to create API keys for programmatic access": "Permitir a los miembros crear claves API para el acceso programático", + "Public document embedding": "Compartir documentos públicamente", + "When enabled, publicly shared documents can be embedded in third-party websites": "Cuando está habilitado, los documentos compartidos pueden ser incrustados en sitios web de terceros", + "Include previews in emails": "Incluye vistas previas en correos", + "When enabled, email notifications will include content previews": "Cuando está habilitado, las notificaciones por correo electrónico incluirán previsualizaciones de contenido", + "Boolean": "Booleano", + "Number": "Número", + "Text": "Texto", + "List": "Lista", + "Could not load events": "No se han podido cargar los eventos.", + "Audit Log": "Registro de Auditoría", + "The audit log details the history of security related and other events across your knowledge base.": "El registro de auditoría detalla el historial de seguridad y otros eventos relacionados con su base de conocimientos.", + "IP address": "Dirección IP", "Actor": "Actor", - "Event": "Event", - "Timestamp": "Timestamp", + "Event": "Evento", + "Timestamp": "Marca de Tiempo", "IP": "IP", - "a group": "a group", - "All users": "All users", - "Private": "Private", - "View and edit": "View and edit", - "Sharing enabled": "Sharing enabled", - "Date archived": "Date archived", - "Could not load collections": "Could not load collections", - "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.", - "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.": "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.", + "a group": "un grupo", + "All users": "Todos los usuarios", + "Private": "Privado", + "View and edit": "Ver y editar", + "Sharing enabled": "Habilitar compartir", + "Date archived": "Fecha archivado", + "Could not load collections": "No se pudieron cargar las colecciones", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Administre los permisos y ajustes de todas las colecciones en la base de conocimiento. Como administrador del espacio de trabajo, también puede administrar colecciones privadas.", + "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.": "Indexar y buscar automáticamente contenido de documentos de {{appName}} dentro de <4>Glean</4> en tiempo real.", "API Endpoint": "API Endpoint", "API Secret": "API Secret", - "Datasource": "Datasource", - "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.": "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.", - "Sorry, an answer could not be found in the collection, try widening your search.": "Sorry, an answer could not be found in the collection, try widening your search.", - "Sorry, an answer could not be found in the workspace, try widening your search.": "Sorry, an answer could not be found in the workspace, try widening your search.", - "Looking for answers": "Looking for answers", - "Answer to \"{{ query }}\"": "Answer to \"{{ query }}\"", - "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?", + "Datasource": "Fuente de datos", + "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.": "Detalles de la licencia actual de {{appName}} . Para organizar la renovación del contrato a medida que se aproximan los límites de vencimiento o asientos o aumentar los asientos con licencia, póngase en contacto con el administrador de su cuenta o envíe un correo electrónico a <4>priority@getoutline.com</4>.", + "Sorry, an answer could not be found in the collection, try widening your search.": "Lo sentimos, no se pudo encontrar una respuesta en la colección, intente ampliar su búsqueda.", + "Sorry, an answer could not be found in the workspace, try widening your search.": "Lo sentimos, no se pudo encontrar una respuesta en la colección, intente ampliar su búsqueda.", + "Looking for answers": "Buscando respuestas", + "Answer to \"{{ query }}\"": "Responder a \"{{ query }}\"", + "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?": "Ups, necesitas aceptar los permisos de Figma para conectar {{appName}} a tu área de trabajo. ¿Intentar de nuevo?", "Something went wrong while authenticating your request. Please try logging in again.": "Ocurrió un error autenticando tu solicitud. Por favor, intenta iniciar sesión de nuevo.", - "Something went wrong while processing your request. Please try again.": "Something went wrong while processing your request. Please try again.", - "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.": "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.", - "Enabled on": "Enabled on", - "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?": "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?", - "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", + "Something went wrong while processing your request. Please try again.": "Algo salió mal al autenticar tu solicitud. Por favor, inténtalo de nuevo.", + "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.": "Vincula tu cuenta {{appName}} a Figma para habilitar las vistas previas de los archivos de diseño a los que tienes acceso, directamente dentro de los documentos.", + "Enabled on": "Habilitado en", + "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?": "Desconectar impedirá previsualizar archivos de diseño de Figma de esta cuenta en los documentos. ¿Estás seguro?", + "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "La integración con Figma está actualmente deshabilitada. Por favor, establezca las variables de entorno asociadas y reinicie el servidor para habilitar la integración.", "Whoops, you need to accept the permissions in GitHub to connect {{appName}} to your workspace. Try again?": "Ups, necesitas aceptar los permisos en GitHub para conectar {{appName}} a tu área de trabajo. ¿Intentar de nuevo?", "The owner of GitHub account has been requested to install the {{githubAppName}} GitHub app. Once approved, previews will be shown for respective links.": "Se ha solicitado al propietario de la cuenta de GitHub que instale la aplicación de GitHub {{githubAppName}}. Una vez aprobada, las vistas previas se mostrarán para los enlaces respectivos.", "Enable previews of GitHub issues and pull requests in documents by connecting a GitHub organization or specific repositories to {appName}.": "Habilitar vistas previas de incidencias de GitHub y pull requests en documentos conectando una organización de GitHub o repositorios específicos a {appName}.", "Enabled by {{integrationCreatedBy}}": "Habilitado por {{integrationCreatedBy}}", "Disconnecting will prevent previewing GitHub links from this organization in documents. Are you sure?": "Desconectar impedirá previsualizar los enlaces de GitHub de esta organización en documentos. ¿Estás seguro?", "The GitHub integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "La integración de GitHub está desactivada. Configura las variables de entorno asociadas y reinicia el servidor para habilitar la integración.", - "Connect GitLab": "Connect GitLab", - "Enter the details for your GitLab instance.": "Enter the details for your GitLab instance.", - "GitLab URL": "GitLab URL", - "URL must start with https": "URL must start with https", - "Client ID": "Client ID", - "OAuth application ID": "OAuth application ID", + "Connect GitLab": "Conectar a GitLab", + "Enter the details for your GitLab instance.": "Introduzca los detalles de su instancia de GitLab.", + "GitLab URL": "URL de GitLab", + "URL must start with https": "La URL debe comenzar con https", + "Client ID": "ID de cliente", + "OAuth application ID": "ID de aplicación OAuth", "Client Secret": "Client Secret", "OAuth application secret": "OAuth application secret", - "Connecting": "Connecting", - "Choose which GitLab instance to connect to.": "Choose which GitLab instance to connect to.", - "GitLab Cloud": "GitLab Cloud", - "Connect to your account on gitlab.com": "Connect to your account on gitlab.com", - "GitLab Cloud credentials are not configured": "GitLab Cloud credentials are not configured", - "Self-managed": "Self-managed", - "Connect to a custom GitLab installation": "Connect to a custom GitLab installation", - "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?": "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?", - "The GitLab account is already connected to this workspace.": "The GitLab account is already connected to this workspace.", - "Something went wrong while authenticating your request. Please try again.": "Something went wrong while authenticating your request. Please try again.", - "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.": "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.", - "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.": "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.", - "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?": "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?", + "Connecting": "Conectando", + "Choose which GitLab instance to connect to.": "Elija a qué instancia de GitLab conectar.", + "GitLab Cloud": "Nube de GitLab", + "Connect to your account on gitlab.com": "Conéctate a tu cuenta en gitlab.com", + "GitLab Cloud credentials are not configured": "Las credenciales de GitLab Cloud no están configuradas", + "Self-managed": "Auto-gestionado", + "Connect to a custom GitLab installation": "Conectar a una instalación personalizada de GitLab", + "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?": "Necesitas aceptar los permisos en GitLab para conectar {{appName}} a tu espacio de trabajo. ¿Intentar de nuevo?", + "The GitLab account is already connected to this workspace.": "La cuenta de GitLab ya está conectada a este área de trabajo.", + "Something went wrong while authenticating your request. Please try again.": "Algo salió mal al autenticar tu solicitud. Por favor, inténtalo de nuevo.", + "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.": "Se ha pedido al propietario de la cuenta de GitLab que instale la aplicación. Una vez aprobada, la conexión se completará.", + "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.": "Habilitar vistas previas de problemas de GitLab y merge requests en documentos conectando una organización de GitLab o repositorios específicos a {appName}.", + "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?": "Desconectar impedirá previsualizar los enlaces de GitLab de esta organización en documentos. ¿Estás seguro?", "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.": "Añade un ID de seguimiento de Google Analytics 4 para enviar vistas y análisis de documentos desde el espacio de trabajo a tu propia cuenta de Google Analytics.", "Measurement ID": "ID de seguimiento", "Create a \"Web\" stream in your Google Analytics admin dashboard and copy the measurement ID from the generated code snippet to install.": "Crea un flujo \"Web\" en tu panel de administración de Google Analytics y copia el ID de seguimiento del fragmento de código generado para instalar.", - "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?", - "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.", - "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?", - "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", + "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "Ups, necesitas aceptar los permisos en Linear para conectar {{appName}} a tu área de trabajo. ¿Intentar de nuevo?", + "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Habilitar previsualizaciones de problemas lineales en documentos conectando un espacio de trabajo lineal a {{appName}}.", + "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "Desconectar impedirá previsualizar enlaces de linear de este área de trabajo en documentos. ¿Está seguro?", + "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "La integración lineal está actualmente deshabilitada. Por favor, establezca las variables de entorno asociadas y reinicie el servidor para habilitar la integración.", "Configure a Matomo installation to send views and analytics from the workspace to your own Matomo instance.": "Configura una instalación de Matomo para enviar vistas y analíticas desde el espacio de trabajo a tu propia instancia de Matomo.", "Instance URL": "URL de la instancia", "The URL of your Matomo instance. If you are using Matomo Cloud it will end in matomo.cloud/": "La URL de tu instancia Matomo. Si estás usando Matomo Cloud, esta terminará en matomo.cloud/", @@ -1529,35 +1540,35 @@ "An ID that uniquely identifies the website in your Matomo instance.": "Un ID que identifica de forma única el sitio web en tu instancia de Matomo.", "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?": "Ups, necesitas aceptar los permisos en Notion para conectar {{ appName }} con tu espacio de trabajo. ¿Quieres intentarlo de nuevo?", "Import pages from Notion": "Importar páginas de Notion", - "Passkey options": "Passkey options", - "Registered {{ timeAgo }}": "Registered {{ timeAgo }}", - "Passkey updated": "Passkey updated", - "Failed to update passkey. Please try again.": "Failed to update passkey. Please try again.", - "Give your passkey a memorable name to easily identify it.": "Give your passkey a memorable name to easily identify it.", - "Enter passkey name": "Enter passkey name", - "Failed to load passkeys": "Failed to load passkeys", - "Passkey added successfully": "Passkey added successfully", - "Failed to register passkey. Please try again.": "Failed to register passkey. Please try again.", - "Rename passkey": "Rename passkey", - "Delete passkey": "Delete passkey", - "Passkey deleted successfully": "Passkey deleted successfully", - "Failed to delete passkey. Please try again.": "Failed to delete passkey. Please try again.", - "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.": "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.", - "Registering": "Registering", - "Add Passkey": "Add Passkey", - "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.": "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.", - "Sign-in with Passkey is currently disabled for this team.": "Sign-in with Passkey is currently disabled for this team.", - "Enable for all users in Settings -> Authentication.": "Enable for all users in Settings -> Authentication.", - "Contact a workspace admin to enable it.": "Contact a workspace admin to enable it.", - "You don't have any passkeys yet.": "You don't have any passkeys yet.", - "New passkey added to your {{ appName }} account": "New passkey added to your {{ appName }} account", - "A new passkey was created for your account.": "A new passkey was created for your account.", - "New Passkey Created": "New Passkey Created", - "A new passkey has been added to your {{ appName }} account": "A new passkey has been added to your {{ appName }} account", - "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.", - "You can manage your passkeys at any time": "You can manage your passkeys at any time", - "If you have any concerns about your account security, please contact a workspace admin.": "If you have any concerns about your account security, please contact a workspace admin.", - "Manage Passkeys": "Manage Passkeys", + "Passkey options": "Opciones de Passkey", + "Registered {{ timeAgo }}": "Registrado {{ timeAgo }}", + "Passkey updated": "Passkey actualizado", + "Failed to update passkey. Please try again.": "Error al actualizar passkey. Inténtelo de nuevo.", + "Give your passkey a memorable name to easily identify it.": "Dale a tu passkey un nombre memorable para identificarla fácilmente.", + "Enter passkey name": "Introduce el nombre de passkey", + "Failed to load passkeys": "Error al cargar las passkeys", + "Passkey added successfully": "passkey añadida correctamente", + "Failed to register passkey. Please try again.": "Error al actualizar passkey. Inténtelo de nuevo.", + "Rename passkey": "Renombrar passkey", + "Delete passkey": "Eliminar Passkey", + "Passkey deleted successfully": "Passkey eliminada con éxito", + "Failed to delete passkey. Please try again.": "Error al eliminar la passkey. Vuelve a intentarlo.", + "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.": "¿Está seguro de que desea eliminar esta passkey? Ya no podrá utilizarla para iniciar sesión.", + "Registering": "Registrando", + "Add Passkey": "Añadir passkey", + "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.": "Passkey le permiten iniciar sesión de forma segura sin contraseña usando la autenticación biométrica de su dispositivo (Face ID, Touch ID, Windows Hello) o clave de seguridad.", + "Sign-in with Passkey is currently disabled for this team.": "Iniciar sesión con Passkey está actualmente desactivado para este equipo.", + "Enable for all users in Settings -> Authentication.": "Habilitar para todos los usuarios en Ajustes -> Autenticación.", + "Contact a workspace admin to enable it.": "Contacte a un administrador de espacio de trabajo para habilitarlo.", + "You don't have any passkeys yet.": "Aún no tienes ninguna clave de acceso.", + "New passkey added to your {{ appName }} account": "Nueva passkey añadida a tu cuenta de {{ appName }}", + "A new passkey was created for your account.": "Se ha creado una nueva passkey para tu cuenta.", + "New Passkey Created": "Nueva passkey creada", + "A new passkey has been added to your {{ appName }} account": "Se ha añadido una nueva passkey a tu cuenta {{ appName }}", + "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "Passkey proporcionan una forma segura y sin contraseña de iniciar sesión en su cuenta. Si no ha creado esta contraseña, revise la configuración de seguridad de su cuenta inmediatamente.", + "You can manage your passkeys at any time": "Puedes administrar tus passkeys en cualquier momento", + "If you have any concerns about your account security, please contact a workspace admin.": "Si tiene alguna duda sobre la seguridad de su cuenta, póngase en contacto con un administrador del área de trabajo.", + "Manage Passkeys": "Administrar Passkeys", "Add to Slack": "Añadir a Slack", "document published": "documento publicado", "document updated": "documento actualizado", @@ -1602,143 +1613,143 @@ "All {{ groupName }} events": "Todos los eventos de {{ groupName }}", "Webhook": "Webhook", "Webhook created": "Webhook creado", - "Could not load webhooks": "Could not load webhooks", + "Could not load webhooks": "No se pudieron cargar webhooks", "Webhooks": "Webhooks", "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.": "Los webhooks pueden ser utilizados para notificar tu aplicación cuando ocurren eventos en {{appName}}. Los eventos se envían como una solicitud HTTPS con una carga útil JSON casi en tiempo real.", "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier es una plataforma que permite que {{appName}} se integre fácilmente con miles de otras herramientas de negocio. Automatiza tus flujos de trabajo, sincroniza datos y más.", - "Delayed notification": "Delayed notification", - "“{{ collectionName }}” created": "“{{ collectionName }}” created", - "{{ userName }} created a collection": "{{ userName }} created a collection", - "{{ userName }} created the collection “{{ collectionName }}”": "{{ userName }} created the collection “{{ collectionName }}”", - "Open Collection": "Open Collection", - "View Collection": "View Collection", - "{{ userName }} created the collection “{{ collectionName }}”.": "{{ userName }} created the collection “{{ collectionName }}”.", - "Unsubscribe from these emails": "Unsubscribe from these emails", - "{{ actorName }} invited you to the “{{ collectionName }}” collection": "{{ actorName }} invited you to the “{{ collectionName }}” collection", - "{{ actorName }} invited you to a collection": "{{ actorName }} invited you to a collection", - "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "{{ actorName }} invited you to the “{{ collectionName }}” collection.", - "view and edit": "view and edit", - "manage": "manage", - "view": "view", - "{{ actorName }} invited you to {{ permission }} documents in the": "{{ actorName }} invited you to {{ permission }} documents in the", + "Delayed notification": "Notificación de retraso", + "“{{ collectionName }}” created": "“{{ collectionName }}” creado", + "{{ userName }} created a collection": "{{ userName }} creó una colección", + "{{ userName }} created the collection “{{ collectionName }}”": "{{ userName }} creó la colección “{{ collectionName }}”", + "Open Collection": "Abrir colección", + "View Collection": "Ver Colección", + "{{ userName }} created the collection “{{ collectionName }}”.": "{{ userName }} creó la colección “{{ collectionName }}”.", + "Unsubscribe from these emails": "Darse de baja de estos correos electrónicos", + "{{ actorName }} invited you to the “{{ collectionName }}” collection": "{{ actorName }} te invitó a la colección “{{ collectionName }}”", + "{{ actorName }} invited you to a collection": "{{ actorName }} te invitó a una colección", + "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "{{ actorName }} te invitó a la colección “{{ collectionName }}”", + "view and edit": "ver y editar", + "manage": "administrar", + "view": "ver", + "{{ actorName }} invited you to {{ permission }} documents in the": "{{ actorName }} te ha invitado a {{ permission }} documentos en", "Re": "Re", "New comment on “{{ documentTitle }}” - {{ trimmedText }}": "Nuevo comentario en “{{ documentTitle }}” - {{ trimmedText }}", - "{{ actorName }} replied in a thread": "{{ actorName }} replied in a thread", + "{{ actorName }} replied in a thread": "{{ actorName }} respondió en un hilo", "{{ actorName }} commented on the document": "{{ actorName }} comentó en el documento", - "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "{{ actorName }} replied to a thread in “{{ documentTitle }}”", + "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "{{ actorName }} respondió a un hilo en “{{ documentTitle }}”", "{{ actorName }} commented on “{{ documentTitle }}”": "{{ actorName }} comentó en “{{ documentTitle }}”", - "in the {{ collectionName }} collection": "in the {{ collectionName }} collection", + "in the {{ collectionName }} collection": "en la colección {{ collectionName }}", "Open Thread": "Hilo abierto", "View Thread": "Ver hilo", "{{ actorName }} replied to a thread in": "{{ actorName }} respondió a un hilo en", "{{ actorName }} commented on": "{{ actorName }} comentó en", - "Mentioned you in “{{ documentTitle }}”": "Mentioned you in “{{ documentTitle }}”", + "Mentioned you in “{{ documentTitle }}”": "Te mencionó en “{{ documentTitle }}”", "{{ actorName }} mentioned you in a thread": "{{ actorName }} te mencionó en un hilo", - "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”": "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”", - "{{ actorName }} mentioned you in a comment on": "{{ actorName }} mentioned you in a comment on", - "Resolved a comment thread in “{{ documentTitle }}”": "Resolved a comment thread in “{{ documentTitle }}”", + "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”": "{{ actorName }} te mencionó en un comentario sobre “{{ documentTitle }}”", + "{{ actorName }} mentioned you in a comment on": "{{ actorName }} te mencionó en un comentario en", + "Resolved a comment thread in “{{ documentTitle }}”": "Resolvió un hilo de comentarios en “{{ documentTitle }}”", "{{ actorName }} resolved a comment thread": "{{ actorName }} ha resuelto un hilo de comentarios", - "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”", - "{{ actorName }} resolved a comment on": "{{ actorName }} resolved a comment on", - "Your workspace deletion request": "Your workspace deletion request", - "Your requested workspace deletion code": "Your requested workspace deletion code", - "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.", - "Your email update request": "Your email update request", - "Here’s your email change confirmation.": "Here’s your email change confirmation.", - "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.", - "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.", - "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to", - "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "You requested to update your {{ appName }} account email. Please click below to confirm the change to", - "Confirm Change": "Confirm Change", - "Your account deletion request": "Your account deletion request", - "Your requested account deletion code": "Your requested account deletion code", - "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.", - "You requested to permanently delete your {{ appName }} user account in the": "You requested to permanently delete your {{ appName }} user account in the", - "workspace. Please enter the code below to confirm your account deletion.": "workspace. Please enter the code below to confirm your account deletion.", - "{{ actorName }} mentioned you": "{{ actorName }} mentioned you", - "You were mentioned": "You were mentioned", - "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.", - "Open Document": "Open Document", - "View Document": "View Document", - "{{ actorName }} mentioned you in the document": "{{ actorName }} mentioned you in the document", - "updated": "updated", + "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "{{ actorName }} resolvió un hilo de comentarios en “{{ documentTitle }}”", + "{{ actorName }} resolved a comment on": "{{ actorName }} ha resuelto un comentario en", + "Your workspace deletion request": "Su solicitud de eliminación de espacio de trabajo", + "Your requested workspace deletion code": "El código de eliminación de cuenta solicitado", + "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "Ha solicitado eliminar permanentemente su área de trabajo {{ appName }} . Por favor, introduzca el código de abajo para confirmar la eliminación de su área de trabajo.", + "Your email update request": "Tu solicitud de actualización por email", + "Here’s your email change confirmation.": "Aquí está tu confirmación de cambio de correo electrónico.", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "Has solicitado actualizar el correo electrónico de tu cuenta {{ appName }} . Por favor, sigue el enlace de abajo para confirmar el cambio de {{ previous }} a {{ to }}.", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "Has solicitado actualizar el correo electrónico de tu cuenta {{ appName }} . Por favor, sigue el enlace de abajo para confirmar el cambio a {{ to }}.", + "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "Has solicitado actualizar el correo electrónico de tu cuenta {{ appName }} . Por favor, sigue el enlace de abajo para confirmar el cambio de {{ previous }} a", + "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "Has solicitado actualizar tu correo electrónico de cuenta {{ appName }} . Por favor, haz clic a continuación para confirmar el cambio a", + "Confirm Change": "Confirmar el cambio", + "Your account deletion request": "Solicitud de eliminación de su cuenta", + "Your requested account deletion code": "El código de eliminación de cuenta solicitado", + "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "Has solicitado eliminar permanentemente tu cuenta de usuario {{ appName }} en el área de trabajo {{ teamName }} . Por favor, introduce el código de abajo para confirmar la eliminación de tu cuenta.", + "You requested to permanently delete your {{ appName }} user account in the": "Has solicitado eliminar permanentemente tu cuenta de usuario de {{ appName }} en el", + "workspace. Please enter the code below to confirm your account deletion.": "espacio de trabajo. Por favor, introduzca el código de abajo para confirmar la eliminación de su cuenta.", + "{{ actorName }} mentioned you": "{{ actorName }} te mencionó", + "You were mentioned": "Has sido mencionado", + "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "{{ actorName }} te mencionó en el documento “{{ documentTitle }}”.", + "Open Document": "Abrir documento", + "View Document": "Ver Documento", + "{{ actorName }} mentioned you in the document": "{{ actorName }} te mencionó en el documento", + "updated": "actualizado", "“{{ documentTitle }}” {{ eventName }}": "“{{ documentTitle }}” {{ eventName }}", - "{{ actorName }} {{ eventName }} a document": "{{ actorName }} {{ eventName }} a document", + "{{ actorName }} {{ eventName }} a document": "{{ actorName }} {{ eventName }} un documento", "\"{{ documentTitle }}\" {{ eventName }}": "\"{{ documentTitle }}\" {{ eventName }}", - "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"", - "{{ actorName }} {{ eventName }} the document": "{{ actorName }} {{ eventName }} the document", - "Unsubscribe from this doc": "Unsubscribe from this doc", + "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }} {{ eventName }} el documento \"{{ documentTitle }}\"", + "{{ actorName }} {{ eventName }} the document": "{{ actorName }} {{ eventName }} el documento", + "Unsubscribe from this doc": "Desuscribirse de este documento", "{{ actorName }} shared “{{ documentTitle }}” with you": "{{ actorName }} shared “{{ documentTitle }}” with you", - "{{ actorName }} shared a document": "{{ actorName }} shared a document", + "{{ actorName }} shared a document": "{{ actorName }} compartió un documento", "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} shared “{{ documentTitle }}” with you.", - "edit": "edit", - "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} invited you to {{ permission }} the", - "Your requested export": "Your requested export", - "Sorry, your requested data export has failed": "Sorry, your requested data export has failed", - "Your Data Export": "Your Data Export", - "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.", - "Sorry, your requested data export has failed, please visit the": "Sorry, your requested data export has failed, please visit the", - "admin section": "admin section", - "to try again – if the problem persists please contact support.": "to try again – if the problem persists please contact support.", - "Go to export": "Go to export", - "Here's your request data export from {{ appName }}": "Here's your request data export from {{ appName }}", - "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.", - "Download export": "Download export", - "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.", - "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "The {{ groupName }} group was mentioned in “{{ documentTitle }}”", + "edit": "editar", + "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} te ha invitado a {{ permission }} el", + "Your requested export": "La exportación solicitada", + "Sorry, your requested data export has failed": "Lo sentimos, la exportación de datos solicitada ha fallado", + "Your Data Export": "Sus datos exportados", + "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "Lo sentimos, la exportación de datos solicitada ha fallado, por favor visite la sección de administración para intentarlo de nuevo - si el problema persiste, póngase en contacto con soporte.", + "Sorry, your requested data export has failed, please visit the": "Lo sentimos, la exportación de datos solicitada ha fallado, por favor visite el", + "admin section": "sección de admin", + "to try again – if the problem persists please contact support.": "para volver a intentarlo. Si el problema persiste, póngase en contacto con soporte.", + "Go to export": "Ir a exportacion", + "Here's your request data export from {{ appName }}": "Esta es la exportación de datos de tu solicitud desde {{ appName }}", + "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "La exportación de datos solicitada está completa. Puede descargar desde el enlace de abajo en un navegador que haya iniciado sesión en su cuenta.", + "Download export": "Descargar exportación", + "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "La exportación de datos solicitada está completa. Puede descargar desde el enlace de abajo en un navegador que ha iniciado sesión en su cuenta.", + "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "El grupo {{ groupName }} fue mencionado en “{{ documentTitle }}”", "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "{{ actorName }} mencionó el grupo “{{ groupName }}” en un hilo", - "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”", - "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on", - "{{ actorName }} mentioned the “{{ groupName }}” group": "{{ actorName }} mentioned the “{{ groupName }}” group", - "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", - "Your group was mentioned": "Your group was mentioned", - "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document": "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", - "Great news, {{ invitedName }}, accepted your invitation": "Great news, {{ invitedName }}, accepted your invitation", - "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", - "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", - "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", - "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", - "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", - "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", - "Join now": "Join now", - "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", - "We only send a reminder once.": "We only send a reminder once.", - "If you haven't signed up yet, you can do so here": "If you haven't signed up yet, you can do so here", - "\"{{ documentTitle }}\" updated": "\"{{ documentTitle }}\" updated", - "\"{{ documentTitle }}\" has been updated.": "\"{{ documentTitle }}\" has been updated.", - "A document you subscribed to has been updated.": "A document you subscribed to has been updated.", - "Click below to view the latest version.": "Click below to view the latest version.", - "Confirm your subscription": "Confirm your subscription", - "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.": "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.", - "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.", - "Confirm Subscription": "Confirm Subscription", - "This link will expire in 24 hours.": "This link will expire in 24 hours.", - "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.", - "Please confirm your subscription by clicking the button below.": "Please confirm your subscription by clicking the button below.", - "Magic Sign-in Link": "Magic Sign-in Link", - "Sign in verification code": "Sign in verification code", - "Here’s your link to signin to {{ appName }}.": "Here’s your link to signin to {{ appName }}.", - "Use the link below to sign in": "Use the link below to sign in", - "If the link expired you can request a new one from your team's signin page at": "If the link expired you can request a new one from your team's signin page at", - "Enter this verification code": "Enter this verification code", - "If the code expired you can request a new one from your team's signin page at": "If the code expired you can request a new one from your team's signin page at", - "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", - "If the link expired you can request a new one from your team's sign-in page at": "If the link expired you can request a new one from your team's sign-in page at", - "Sign-in Code": "Sign-in Code", - "Enter this code on your team's sign-in page to continue.": "Enter this code on your team's sign-in page to continue.", - "If the code expired you can request a new one from your team's sign-in page at": "If the code expired you can request a new one from your team's sign-in page at", - "Webhook disabled": "Webhook disabled", - "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", - "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.": "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.", - "Webhook settings": "Webhook settings", - "Welcome to {{ appName }}!": "Welcome to {{ appName }}!", - "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.", - "Or, learn more about everything {{ appName }} can do in the guide": "Or, learn more about everything {{ appName }} can do in the guide", - "Or, learn more about everything {{ appName }} can do in": "Or, learn more about everything {{ appName }} can do in", - "the guide": "the guide", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "{{ actorName }} mencionó el grupo “{{ groupName }}” en un comentario en “{{ documentTitle }}”", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "{{ actorName }} mencionó el grupo “{{ groupName }}” en un comentario en", + "{{ actorName }} mentioned the “{{ groupName }}” group": "{{ actorName }} mencionó el grupo \"{{ groupName }}\"", + "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mencionó el grupo “{{ groupName }}” en el documento “{{ documentTitle }}”.", + "Your group was mentioned": "Tu grupo ha sido mencionado", + "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document": "{{ actorName }} mencionó el grupo \"{{ groupName }}\" en el documento", + "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} se ha unido a tu equipo de {{ appName }}", + "Great news, {{ invitedName }}, accepted your invitation": "Grandes noticias, {{ invitedName }}, aceptaron tu invitación", + "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Buenas noticias, {{ invitedName }} acaba de aceptar tu invitación y ha creado una cuenta. Ahora puedes empezar a colaborar en documentos.", + "Open {{ appName }}": "Abrir {{ appName }}", + "{{ invitedName }} has joined your team": "{{ invitedName }} se ha unido a tu equipo", + "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} te ha invitado a unirte al área de trabajo {{ teamName }}", + "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} es un lugar para que tu equipo pueda construir y compartir conocimientos.", + "Join {{ teamName }} on {{ appName }}": "Únase a {{ teamName }} en {{ appName }}", + "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "te ha invitado a unirte a {{ appName }}, un lugar para que tu equipo pueda construir y compartir conocimientos.", + "Join now": "Regístrese ahora", + "Reminder": "Recordatorio", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Este es solo un rápido recordatorio de que {{ actorName }} {{ actorEmail }} te ha invitado a unirte al equipo {{ teamName }} en {{ appName }}, un lugar para que tu equipo construya y comparta conocimientos.", + "We only send a reminder once.": "Sólo enviamos un recordatorio una vez.", + "If you haven't signed up yet, you can do so here": "Si aún no te has registrado, puedes hacerlo aquí", + "\"{{ documentTitle }}\" updated": "\"{{ documentTitle }}\" actualizado", + "\"{{ documentTitle }}\" has been updated.": "\"{{ documentTitle }}\" ha sido actualizada.", + "A document you subscribed to has been updated.": "Un documento al que se ha suscrito ha sido actualizado.", + "Click below to view the latest version.": "Haga clic abajo para ver la última versión.", + "Confirm your subscription": "Confirme su suscripción", + "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.": "Confirme su suscripción para recibir actualizaciones cuando el \"{{ documentTitle }}\" cambie.", + "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.": "Has solicitado recibir notificaciones por correo electrónico cuando \"{{ documentTitle }}\" se actualiza en {{ appName }}. Por favor, confirma tu suscripción siguiendo el enlace de abajo.", + "Confirm Subscription": "Confirme su suscripción", + "This link will expire in 24 hours.": "Este enlace caducará en 24 horas.", + "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.": "Has solicitado recibir notificaciones por correo electrónico cuando se actualiza \"{{ documentTitle }}\" en {{ appName }}.", + "Please confirm your subscription by clicking the button below.": "Por favor, confirma tu suscripción haciendo clic en el botón de abajo.", + "Magic Sign-in Link": "Enlace de inicio de sesión mágico", + "Sign in verification code": "Introduzca este código de verificación", + "Here’s your link to signin to {{ appName }}.": "Este es tu enlace para iniciar sesión en {{ appName }}.", + "Use the link below to sign in": "Usa el enlace de abajo para iniciar sesión", + "If the link expired you can request a new one from your team's signin page at": "Si el enlace caducó puedes solicitar uno nuevo desde la página de inicio de sesión de tu equipo en", + "Enter this verification code": "Introduzca este código de verificación", + "If the code expired you can request a new one from your team's signin page at": "Si el código caducó puedes solicitar uno nuevo desde la página de inicio de sesión de tu equipo en", + "Click the button below to sign in to {{ appName }}.": "Haz clic en el botón de abajo para iniciar sesión en {{ appName }}.", + "If the link expired you can request a new one from your team's sign-in page at": "Si el enlace caducó puedes solicitar uno nuevo desde la página de inicio de sesión de tu equipo en", + "Sign-in Code": "Código de inicio de sesión", + "Enter this code on your team's sign-in page to continue.": "Introduzca este código en la página de inicio de sesión de su equipo para continuar.", + "If the code expired you can request a new one from your team's sign-in page at": "Si el código caducó, puede solicitar uno nuevo desde la página de inicio de sesión de su equipo en", + "Webhook disabled": "Webhook Desactivado", + "Your webhook ({{ webhookName }}) has been disabled": "Tu webhook ({{ webhookName }}) ha sido deshabilitado", + "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.": "Tu webhook ({{ webhookName }}) ha sido deshabilitado automáticamente debido a un alto índice de fallo en los recientes intentos de entrega. Puede volver a activar editando el webhook.", + "Webhook settings": "Configuración de webhook", + "Welcome to {{ appName }}!": "¡Bienvenido a { appName }!", + "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "Para empezar, dirígete a la pantalla de inicio y trata de crear una colección para documentar tus procesos, crear libros de reproducción o planificar el trabajo de tu equipo.", + "Or, learn more about everything {{ appName }} can do in the guide": "O aprender más sobre todo lo que {{ appName }} puede hacer en la guía", + "Or, learn more about everything {{ appName }} can do in": "O aprender más sobre todo lo que {{ appName }} puede hacer en", + "the guide": "la guía", "Never logged in": "Nunca ha iniciado sesión", "Online now": "En línea ahora", "Online {{ timeAgo }}": "En línea {{ timeAgo }}", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} lo actualizó {{ timeAgo }}", "You created {{ timeAgo }}": "Tú lo creaste {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} lo creó {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Lo sentimos, ocurrió un error cargando el archivo", + "Sorry, that type of link is not supported": "Lo sentimos, ese tipo de enlace no es compatible", "Caption": "Caption", - "Empty diagram": "Empty diagram", - "Double click to edit": "Double click to edit", - "Open": "Open", + "Empty diagram": "Diagrama vacío", + "Double click to edit": "Doble click para editar", + "Open": "Abrir", "Loading": "Cargando", - "Error loading data": "Error al cargar datos" + "Error loading data": "Error al cargar datos", + "Show {{ count }} completed": "Mostrar {{ count }} completado", + "Show {{ count }} completed_plural": "Mostrar {{ count }} completados", + "Hide completed": "Ocultar completados", + "Write a caption": "Escribe un pie de foto", + "Add title": "Añadir título", + "Add content": "Añadir contenido" } diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index 73023a0d2b..eabc0d3fcd 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -169,6 +169,7 @@ "New workspace": "مجموعه جدید", "Create a workspace": "مجموعه ایجاد کنید", "Login to workspace": "وارد شدن به workspace", + "template": "template", "Template deleted": "Template deleted", "Deleting": "در حال حذف کردن", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "در حال ویرایش", "Currently viewing": "در حال مشاهده", "Viewed {{ timeAgo }}": "مشاهده شده {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "متاسفیم، یک خطا رخ داد.", "Click to retry": "برای امتحان مجدد کلیک کنید", "Back": "بازگشت", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "مدیریت", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "دسترسی‌های {{ userName }} به‌روزرسانی شد", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "ناشناخته", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }} دقیقه مطالعه", - "Manage": "مدیریت", "All members": "همه اعضا", "Everyone in the workspace": "همه اعضای فضای کار", "{{ count }} member": "{{ count }} عضو", "{{ count }} member_plural": "{{ count }} عضو", + "Public link copied to clipboard": "لینک عمومی کپی شد", "Only lowercase letters, digits and dashes allowed": "فقط حروف کوچک، اعداد و خط تیره مجاز است", "Sorry, this link has already been used": "متاسفیم، این لینک قبلاً استفاده شده است", - "Public link copied to clipboard": "لینک عمومی کپی شد", - "Web": "وب", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "اجازه دهید هر کسی با لینک به این محتوا دسترسی داشته باشد", "Publish to internet": "انتشار روی اینترنت", - "Search engine indexing": "ایندکس‌ توسط موتورهای جستجو", - "Disable this setting to discourage search engines from indexing the page": "این تنظیم را غیرفعال کنید تا موتورهای جستجو را از ایندکس این صفحه منصرف کنید", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "نمایش آخرین ویرایش", - "Display the last modified timestamp on the shared page": "نمایش زمان آخرین ویرایش در صفحه به اشتراک گذاشته شده", - "Show table of contents": "نمایش فهرست مطالب", - "Display the table of contents on documents by default": "نمایش فهرست مطالب به‌طور پیش‌فرض در اسناد", "All documents in this collection will be shared on the web, including any new documents added later": "تمام اسناد در این مجموعه به‌طور آنلاین به اشتراک گذاشته خواهند شد، از جمله هر سند جدیدی که بعداً اضافه شود", "Invite": "دعوت", "{{ userName }} was added to the collection": "{{ userName }} به مجموعه اضافه شد", @@ -445,8 +447,24 @@ "Switch to dark": "تغییر به تیره", "Switch to light": "تغییر به روشن", "Subscribe to updates": "Subscribe to updates", + "Logo": "لوگو", "Add": "افزودن", "Add or invite": "افزودن یا دعوت", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "نمایش آخرین ویرایش", + "Display the last modified timestamp on the shared page": "نمایش زمان آخرین ویرایش در صفحه به اشتراک گذاشته شده", + "Show table of contents": "نمایش فهرست مطالب", + "Display the table of contents on documents by default": "نمایش فهرست مطالب به‌طور پیش‌فرض در اسناد", + "Behavior": "رفتار", + "Search engine indexing": "ایندکس‌ توسط موتورهای جستجو", + "Disable this setting to discourage search engines from indexing the page": "این تنظیم را غیرفعال کنید تا موتورهای جستجو را از ایندکس این صفحه منصرف کنید", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "مشکلی پیش آمد", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "دسترسی به ارث از مجموعه", "{{ userName }} was removed from the document": "{{ userName }} از سند حذف شد", "Could not remove user": "امکان حذف کاربر وجود نداشت", - "Permissions for {{ userName }} updated": "دسترسی‌های {{ userName }} به‌روزرسانی شد", "Could not update user": "امکان به‌روزرسانی کاربر وجود نداشت", "Has access through <2>parent</2>": "دسترسی از طریق <2>والد</2> دارد", "Suspended": "تعلیق شده", @@ -475,14 +492,12 @@ "Leave": "خارج شدن", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "هر کسی با لینک می‌تواند دسترسی داشته باشد، زیرا مجموعهٔ <2>{sharedParent.sourceTitle}</2> به اشتراک گذاشته شده است", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "هر کسی با لینک می‌تواند دسترسی داشته باشد، زیرا سند والد <2>{sharedParent.sourceTitle}</2> به اشتراک گذاشته شده است", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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 }} به سند اضافه شد", "{{ count }} people added to the document": "{{ count }} کاربر به سند اضافه شدند", "{{ count }} people added to the document_plural": "{{ count }} کاربر به سند اضافه شدند", "{{ count }} groups added to the document": "{{ count }} گروه به سند اضافه شدند", "{{ count }} groups added to the document_plural": "{{ count }} گروه به سند اضافه شدند", - "Logo": "لوگو", "Expand sidebar": "نمایش نوار کناری", "Collapse sidebar": "پنهان کردن نوار کناری", "Archived collections": "مجموعه‌های بایگانی شده", @@ -548,10 +563,18 @@ "Replacement": "مقدار جایگزین", "Replace": "جایگزین کردن", "Replace all": "جایگزینی همه", + "Go to link": "برو به لینک", + "Open link": "باز کردن لینک", + "Remove link": "حذف لینک", + "Formatting controls": "Formatting controls", + "Search or paste a link": "جستجو کنید یا یک لینک جایگذاری کنید", "Image width": "عرض تصویر", "Width": "عرض", "Image height": "ارتفاع تصویر", "Height": "ارتفاع", + "Paste a link": "جایگذاری لینک", + "Delete embed": "حذف جاسازی", + "Delete image": "حذف تصویر", "Profile picture": "تصویر پروفایل", "Create a new doc": "ایجاد سند جدید", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "منشن", "Embed": "جاسازی", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "متأسفیم، این لینک برای این نوع جاسازی کار نمی‌کند", "Upload file": "Upload file", + "Paste a {{service}} link…": "جایگذاری لینک {{service}}…", "More options": "گزینه‌های بیشتر", - "Rename": "تغییر نام", - "Insert after": "درج بعد از", - "Insert before": "درج قبل از", - "Move up": "انتقال به بالا", - "Move down": "انتقال به پایین", - "Move left": "انتقال به چپ", - "Move right": "انتقال به راست", - "Align center": "وسط‌چین", - "Align left": "چپ‌چین", - "Align right": "راست‌چین", - "Default width": "عرض پیش‌فرض", - "Full width": "عرض کامل", - "Bulleted list": "لیست نشانه‌دار", - "Todo list": "چک‌لیست", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "بلوک کد", - "Copied to clipboard": "در کلیپ‌بورد کپی شد", - "Code": "کد", - "Comment": "نظر", - "Create link": "ایجاد لینک", - "Edit image URL": "ویرایش آدرس تصویر", - "Sorry, an error occurred creating the link": "متأسفیم، هنگام ایجاد لینک خطایی رخ داد", - "Create a new child doc": "ایجاد زیرسند جدید", - "Delete table": "حذف جدول", + "Type '/' to insert": "برای درج '/' را تایپ کنید", + "Keep typing to filter": "برای جستجو به نوشتن ادامه دهید", + "Replace file": "تعویض فایل", "Delete file": "حذف فایل", "Show preview": "Show preview", - "Download file": "دانلود فایل", - "Replace file": "تعویض فایل", - "Delete image": "حذف تصویر", - "Download image": "دانلود تصویر", - "Replace image": "تعویض تصویر", - "Italic": "مورب", - "Sorry, that link won’t work for this embed type": "متأسفیم، این لینک برای این نوع جاسازی کار نمی‌کند", - "File attachment": "پیوست فایل", - "Embed PDF": "Embed PDF", - "Enter a link": "لینک را وارد کنید", "Big heading": "عنوان بزرگ", "Medium heading": "عنوان متوسط", "Small heading": "عنوان کوچک", "Extra small heading": "عنوان خیلی کوچک", - "Heading": "عنوان", - "Divider": "جدا کننده", - "Image": "تصویر", - "Sorry, an error occurred uploading the file": "متأسفیم، هنگام بارگذاری فایل خطایی رخ داد", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "عنوانی بنویسید", - "Info": "اطلاع‌رسانی", - "Info notice": "اخطار اطلاع‌رسانی", - "Link": "لینک", - "Highlight": "هایلایت", - "Background color": "Background color", - "Type '/' to insert": "برای درج '/' را تایپ کنید", - "Keep typing to filter": "برای جستجو به نوشتن ادامه دهید", - "Open link": "باز کردن لینک", - "Go to link": "برو به لینک", - "Sorry, that type of link is not supported": "متأسفیم، این نوع لینک پشتیبانی نمی‌شود", + "Todo list": "چک‌لیست", + "Bulleted list": "لیست نشانه‌دار", "Ordered list": "لیست شماره‌دار", - "Page break": "جداکننده صفحه", - "Paste a link": "جایگذاری لینک", - "Paste a {{service}} link…": "جایگذاری لینک {{service}}…", - "Placeholder": "محل نگهدارنده", - "Quote": "نقل قول", - "Remove link": "حذف لینک", - "Search or paste a link": "جستجو کنید یا یک لینک جایگذاری کنید", - "Strikethrough": "خط خورده", - "Bold": "پررنگ", - "Subheading": "زیرعنوان", - "Sort ascending": "مرتب‌سازی صعودی", - "Sort descending": "مرتب‌سازی نزولی", + "Image": "تصویر", + "Video": "ویدئو", + "Embed PDF": "Embed PDF", + "File attachment": "پیوست فایل", "Table": "جدول", - "Export as CSV": "خروجی به CSV", - "Toggle header": "تغییر وضعیت هدر", - "Math inline (LaTeX)": "فرمول درون‌خطی (LaTeX)", + "Quote": "نقل قول", + "Code block": "بلوک کد", "Math block (LaTeX)": "بلوک فرمول (LaTeX)", - "Merge cells": "ادغام سلول‌ها", - "Split cell": "تقسیم سلول", - "Tip": "نکته", - "Tip notice": "بلوک نکته", - "Warning": "هشدار", - "Warning notice": "بلوک هشدار", - "Success": "موفقیت", - "Success notice": "اعلان موفقیت", + "Toggle block": "Toggle block", + "Divider": "جدا کننده", + "Page break": "جداکننده صفحه", "Current date": "تاریخ فعلی", "Current time": "زمان فعلی", "Current date and time": "تاریخ و زمان فعلی", - "Indent": "افزایش تورفتگی", - "Outdent": "کاهش تورفتگی", - "Video": "ویدئو", - "None": "هیچ‌کدام", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "حذف جاسازی", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "اخطار اطلاع‌رسانی", + "Success notice": "اعلان موفقیت", + "Warning notice": "بلوک هشدار", + "Tip notice": "بلوک نکته", "Wrap text": "Wrap text", + "Placeholder": "محل نگهدارنده", + "Bold": "پررنگ", + "Italic": "مورب", + "Strikethrough": "خط خورده", + "Background color": "Background color", + "None": "هیچ‌کدام", + "Highlight": "هایلایت", + "Code": "کد", + "Heading": "عنوان", + "Subheading": "زیرعنوان", + "Merge cells": "ادغام سلول‌ها", + "Split cell": "تقسیم سلول", + "Outdent": "کاهش تورفتگی", + "Indent": "افزایش تورفتگی", + "Create link": "ایجاد لینک", + "Comment": "نظر", + "Align left": "چپ‌چین", + "Align center": "وسط‌چین", + "Align right": "راست‌چین", + "Full width": "عرض کامل", + "Download image": "دانلود تصویر", + "Replace image": "تعویض تصویر", + "Edit image URL": "ویرایش آدرس تصویر", + "Default width": "عرض پیش‌فرض", + "Distribute columns": "Distribute columns", + "Delete table": "حذف جدول", + "Export as CSV": "خروجی به CSV", + "Sort ascending": "مرتب‌سازی صعودی", + "Sort descending": "مرتب‌سازی نزولی", + "Toggle header": "تغییر وضعیت هدر", + "Insert after": "درج بعد از", + "Insert before": "درج قبل از", + "Move left": "انتقال به چپ", + "Move right": "انتقال به راست", + "Move up": "انتقال به بالا", + "Move down": "انتقال به پایین", + "Rename": "تغییر نام", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "به نظر شما در مورد {{ emoji }} واکنش نشان داد", "shared": "به اشتراک گذاشته شده", "invited you to": "شما را به این دعوت کرد", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "یک تاریخ انتخاب کنید", "API key created. Please copy the value now as it will not be shown again.": "کلید API ایجاد شد. لطفاً مقدار را اکنون کپی کنید چون دوباره نمایش داده نخواهد شد", "Scopes": "محدوده‌ها", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "بک لینک ها", + "Clear search highlight": "Clear search highlight", + "Warning": "هشدار", "This document is large which may affect performance": "این سند بزرگ است و ممکن است بر عملکرد تأثیر بگذارد", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "آیا مطمئن هستید؟ حذف سند <em>{{ documentTitle }}</em> تمام تاریخچه آن را حذف خواهد کرد.</em>", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "آیا مطمئن هستید؟ حذف سند <em>{{ documentTitle }}</em> تمام تاریخچه آن و <em>{{ any }} سند تو در تو</em> را حذف خواهد کرد.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "سندی با فیلترهای شما پیدا نشد.", "You’ve not got any drafts at the moment.": "در حال حاضر پیش‌نویسی ندارید.", "Payment Required": "پرداخت الزامی است", + "Access request sent": "Access request sent", "No access to this doc": "دسترسی به این سند وجود ندارد", - "It doesn’t look like you have permission to access this document.": "به نظر می‌رسد که شما اجازه دسترسی به این سند را ندارید.", - "Please request access from the document owner.": "لطفاً دسترسی را از صاحب سند درخواست کنید.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "یافت نشد", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "صفحه‌ای که به دنبال آن هستید پیدا نشد. ممکن است حذف شده باشد یا لینک نادرست باشد.", "We were unable to load the document while offline.": "امکان بارگیری سند در حالت آفلاین وجود نداشت.", @@ -936,6 +940,7 @@ "Large header": "عنوان بزرگ", "Medium header": "عنوان متوسط", "Small header": "عنوان کوچک", + "Link": "لینک", "Underline": "خط زیر", "Undo": "برگشت", "Redo": "تکرار", @@ -1092,6 +1097,7 @@ "Credentials": "اعتبارنامه‌ها", "OAuth client ID": "شناسه کلاینت OAuth", "The public identifier for this app": "شناسه عمومی برای این برنامه", + "Copied to clipboard": "در کلیپ‌بورد کپی شد", "OAuth client secret": "رمز کلاینت OAuth", "Store this value securely, do not expose it publicly": "این مقدار را به‌طور ایمن ذخیره کنید و به‌طور عمومی در معرض نمایش قرار ندهید", "Where users are redirected after authorizing this app": "محل هدایت کاربران پس از مجوزدهی به این برنامه", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "تنظیمات ذخیره شد", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "قطع ادغام", "Disconnecting": "در حال قطع اتصال", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "آیا مطمئن هستید که می‌خواهید یکپارچه‌سازی <em>{{ service }}</em> را قطع کنید؟", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "نمایش لوگو، توضیحات و برندینگ فضای کار شما در صفحات به اشتراک گذاشته شده عمومی.", "Table of contents position": "موقعیت فهرست مطالب", "The side to display the table of contents in relation to the main content.": "سمتی که فهرست مطالب در رابطه با محتوای اصلی نمایش داده می‌شود.", - "Behavior": "رفتار", "Subdomain": "زیردامنه", "Your workspace will be accessible at": "فضای کار شما در دسترس خواهد بود در", "Choose a subdomain to enable a login page just for your team.": "یک زیردامنه انتخاب کنید تا صفحه ورود فقط برای تیم شما فعال شود.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "هر زمان که به یک مجموعه دسترسی پیدا کنید، اعلانی دریافت کنید", "Export completed": "خروجی ها کامل شد", "Receive a notification when an export you requested has been completed": "هر زمان که خروجی های که درخواست کرده‌اید کامل شد، اعلانی دریافت کنید", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "راهنمای شروع به کار", "Tips on getting started with features and functionality": "نکاتی برای شروع کار با ویژگی‌ها و عملکردها", "New features": "ویژگی‌های جدید", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "لغو اشتراک موفقیت‌آمیز بود. تنظیمات اعلان شما به روز شد", "Manage when and where you receive email notifications.": "مدیریت زمان و مکانی که اعلان‌های ایمیلی را دریافت می‌کنید.", "All notifications": "All notifications", - "Preferences saved": "تنظیمات ذخیره شد", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "حذف حساب", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} {{ timeAgo }} به‌روزرسانی کرد", "You created {{ timeAgo }}": "شما {{ timeAgo }} ایجاد کردید", "{{ user }} created {{ timeAgo }}": "{{ user }} {{ timeAgo }} ایجاد کرد", + "Sorry, an error occurred uploading the file": "متأسفیم، هنگام بارگذاری فایل خطایی رخ داد", + "Sorry, that type of link is not supported": "متأسفیم، این نوع لینک پشتیبانی نمی‌شود", "Caption": "زیرنویس", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "باز کردن", "Loading": "بارگذاری", - "Error loading data": "خطا در بارگذاری دیتا" + "Error loading data": "خطا در بارگذاری دیتا", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "عنوانی بنویسید", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index 1fcf92a2ab..3fde1951f4 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -1,7 +1,7 @@ { "New API key": "Nouvelle clé d'API", "Copy": "Copier", - "API key copied": "API key copied", + "API key copied": "Clé API copiée", "Delete": "Supprimer", "Revoke": "Révoquer", "Revoke API key": "Révoquer la clé API", @@ -56,9 +56,9 @@ "Development": "Développement", "Open document": "Ouvrir le document", "New draft": "Nouveau brouillon", - "Nested document": "Nested document", - "Before": "Before", - "After": "After", + "Nested document": "Document imbriqué", + "Before": "Avant", + "After": "Après", "Publish": "Publier", "Published {{ documentName }}": "Publication de {{ documentName }}", "Publish document": "Publier le document", @@ -90,8 +90,8 @@ "Search in document": "Rechercher dans le document", "Print": "Imprimer", "Print document": "Imprimer le document", - "Open in desktop app": "Open in desktop app", - "Present": "Present", + "Open in desktop app": "Ouvrir dans l'application bureau", + "Present": "Présent", "Present document": "Present document", "Templatize": "En faire un modèle", "Create template": "Créer un modèle", @@ -169,15 +169,16 @@ "New workspace": "Nouvel espace de travail", "Create a workspace": "Créer un espace de travail", "Login to workspace": "Connexion à l'espace de travail", - "Template deleted": "Template deleted", + "template": "modèle", + "Template deleted": "Modèle supprimé", "Deleting": "Suppression", - "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", + "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Êtes-vous sûr ? La suppression du modèle <em>{{ templateName }}</em> est permanente.", "Move to workspace": "Déplacer vers l'espace de travail", - "Template moved": "Template moved", + "Template moved": "Modèle déplacé", "Couldn't move the template, try again?": "Impossible de déplacer le modèle, essayez de nouveau ?", "Move to collection": "Déplacer vers la collection", - "Move template": "Move template", - "Print template": "Print template", + "Move template": "Déplacer le modèle", + "Print template": "Modèles d'impression", "Invite people": "Inviter des personnes", "Invite to workspace": "Inviter à l'espace de travail", "Promote to {{ role }}": "Promouvoir en {{ role }}", @@ -188,7 +189,7 @@ "Collections": "Collections", "Debug": "Débogage", "Document": "Document", - "Search results": "Search results", + "Search results": "Résultats de la recherche", "Documents": "Documents", "Template": "Modèle", "Recently viewed": "Vu récemment", @@ -217,7 +218,7 @@ "Collections are used to group documents and choose permissions": "Les collections sont utilisées pour regrouper les documents et définir les permissions", "Name": "Nom", "The default access for workspace members, you can share with more users or groups later.": "L'accès par défaut pour les membres de l'espace de travail, vous pouvez partager avec plus d'utilisateurs ou de groupes plus tard.", - "Advanced options": "Advanced options", + "Advanced options": "Options avancées", "Saving": "Enregistrement", "Save": "Enregistrer", "Creating": "Création en cours", @@ -298,6 +299,7 @@ "Currently editing": "En cours de modification", "Currently viewing": "En train de consulter", "Viewed {{ timeAgo }}": "Vu il y a {{ timeAgo }}", + "Uploading… {{ progress }}%": "Téléchargement… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Type de fichier non pris en charge. Veuillez utiliser PNG, JPG, GIF, ou WebP.", "File size too large. Maximum size is {{ size }}.": "La taille du fichier est trop grande. La taille maximale est {{ size }}.", "Click or drag to replace": "Cliquer ou glisser pour remplacer", @@ -313,7 +315,7 @@ "Choose a name": "Choisir un nom", "name can only contain lowercase letters, numbers, and underscores.": "le nom ne peut contenir que des minuscules, des chiffres et des underscores.", "This emoji will be available as": "Cette émoticône sera disponible en tant que", - "Emoji replaced": "Emoji replaced", + "Emoji replaced": "Emoji remplacé", "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.", "Module failed to load": "Le module n'a pas pu être chargé", "Loading Failed": "Échec du chargement", @@ -342,7 +344,7 @@ "{{authorName}} created <3></3>": "{{authorName}} créé <3></3>", "Lead": "Lead", "Target date": "Target date", - "Labels": "Labels", + "Labels": "Étiquettes", "{{authorName}} opened <3></3>": "{{authorName}} a ouvert <3></3>", "Search emoji": "Rechercher un emoji", "Search icons": "Rechercher des icônes", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Désolé, une erreur est survenue.", "Click to retry": "Cliquez pour réessayer", "Back": "Retour", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Gérer", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Les permissions pour {{ userName }} ont été mises à jour", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Accepter", "Notification options": "Options de notification", "Unknown": "Inconnu", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m de lecture", "{{ hours }}h read": "{{ hours }}h de lecture", "{{ minutes }}m read": "{{ minutes }}m de lecture", - "Manage": "Gérer", "All members": "Tous les membres", "Everyone in the workspace": "Tout le monde dans l'espace de travail", "{{ count }} member": "{{ count }} membre", "{{ count }} member_plural": "{{ count }} membres", + "Public link copied to clipboard": "Lien public copié dans le presse-papier", "Only lowercase letters, digits and dashes allowed": "Seuls les lettres minuscules, les chiffres et le tiret sont autorisés", "Sorry, this link has already been used": "Désolé, ce lien a déjà été utilisé", - "Public link copied to clipboard": "Lien public copié dans le presse-papier", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Permettre à toute personne ayant le lien d'accéder", "Publish to internet": "Publier sur Internet", - "Search engine indexing": "Indexation des moteurs de recherche", - "Disable this setting to discourage search engines from indexing the page": "Désactivez ce paramètre pour empêcher les moteurs de recherche d'indexer la page.", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Afficher les dernières modifications", - "Display the last modified timestamp on the shared page": "Afficher le dernier horodatage modifié sur la page partagée", - "Show table of contents": "Montrer la table des matières", - "Display the table of contents on documents by default": "Affiche par défaut la table des matières dans les documents", "All documents in this collection will be shared on the web, including any new documents added later": "Tous les documents de cette collection seront partagés sur le web, y compris les nouveaux documents ajoutés plus tard", "Invite": "Inviter", "{{ userName }} was added to the collection": "{{ userName }} été ajouté à la collection", @@ -445,8 +447,24 @@ "Switch to dark": "Passer en mode sombre", "Switch to light": "Passer en mode clair", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Ajouter", "Add or invite": "Ajouter ou inviter", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Afficher les dernières modifications", + "Display the last modified timestamp on the shared page": "Afficher le dernier horodatage modifié sur la page partagée", + "Show table of contents": "Montrer la table des matières", + "Display the table of contents on documents by default": "Affiche par défaut la table des matières dans les documents", + "Behavior": "Comportement", + "Search engine indexing": "Indexation des moteurs de recherche", + "Disable this setting to discourage search engines from indexing the page": "Désactivez ce paramètre pour empêcher les moteurs de recherche d'indexer la page.", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Un problème est survenu", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Accès hérité de la collection", "{{ userName }} was removed from the document": "{{ userName }} a été enlevé du document", "Could not remove user": "Impossible de supprimer l'utilisateur", - "Permissions for {{ userName }} updated": "Les permissions pour {{ userName }} ont été mises à jour", "Could not update user": "Impossible de mettre à jour l'utilisateur", "Has access through <2>parent</2>": "A accès via <2>parent</2>", "Suspended": "Suspendu", @@ -475,14 +492,12 @@ "Leave": "Quitter", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "N'importe qui avec le lien peut y accéder car la collection, <2>{sharedParent.sourceTitle}</2>, est partagée", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "N'importe qui avec le lien peut y accéder car le document parent, <2>{sharedParent.sourceTitle}</2>, est partagé", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Les documents imbriqués ne sont pas partagés sur le web. Activer/désactiver le partage pour activer l'accès, ce sera le comportement par défaut dans le futur", "{{ userName }} was added to the document": "{{ userName }} a été ajouté au document", "{{ count }} people added to the document": "{{ count }} personnes ajoutées au document", "{{ count }} people added to the document_plural": "{{ count }} personnes ajoutées au document", "{{ count }} groups added to the document": "{{ count }} groupes ajoutés au document", "{{ count }} groups added to the document_plural": "{{ count }} groupes ajoutés au document", - "Logo": "Logo", "Expand sidebar": "Développer la barre latérale", "Collapse sidebar": "Réduire la barre latérale", "Archived collections": "Collections archivées", @@ -548,10 +563,18 @@ "Replacement": "Remplacement", "Replace": "Remplacer", "Replace all": "Tout remplacer", + "Go to link": "Accéder au lien", + "Open link": "Ouvrir le lien", + "Remove link": "Supprimer le lien", + "Formatting controls": "Commandes de mise en forme", + "Search or paste a link": "Rechercher ou coller un lien", "Image width": "Largeur de l'image", "Width": "Largeur", "Image height": "Hauteur de l'image", "Height": "Hauteur", + "Paste a link": "Coller un lien", + "Delete embed": "Supprimer l'intégration", + "Delete image": "Supprimer l'image", "Profile picture": "Photo de profil", "Create a new doc": "Créer un nouveau doc", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mentionner", "Embed": "Intégrer", "Not supported": "Non supporté", + "Sorry, that link won’t work for this embed type": "Désolé, ce lien ne fonctionne pas pour ce type d'intégration", "Upload file": "Upload file", + "Paste a {{service}} link…": "Collez un lien {{service}}…", "More options": "Plus d'options", - "Rename": "Renommer", - "Insert after": "Insérer après", - "Insert before": "Insérer avant", - "Move up": "Déplacer vers le haut", - "Move down": "Déplacer vers le bas", - "Move left": "Déplacer vers la gauche", - "Move right": "Déplacer vers la droite", - "Align center": "Aligner au centre", - "Align left": "Aligner à gauche", - "Align right": "Aligner à droite", - "Default width": "Largeur par défaut", - "Full width": "Largeur totale", - "Bulleted list": "Liste à puces", - "Todo list": "Liste des tâches", - "Show {{ count }} completed": "Afficher {{ count }} complété", - "Show {{ count }} completed_plural": "Afficher {{ count }} complétés", - "Hide completed": "Cacher les complétés", - "Code block": "Bloc de code", - "Copied to clipboard": "Copié dans le presse-papier", - "Code": "Code", - "Comment": "Commenter", - "Create link": "Créer un lien", - "Edit image URL": "Modifier l'URL de l'image", - "Sorry, an error occurred creating the link": "Désolé, une erreur s'est produite lors de la création du lien", - "Create a new child doc": "Créer un nouveau document enfant", - "Delete table": "Supprimer ce tableau", + "Type '/' to insert": "Saisir '/' pour insérer", + "Keep typing to filter": "Continuez à taper pour filtrer", + "Replace file": "Remplacer le fichier", "Delete file": "Supprimer le fichier", "Show preview": "Show preview", - "Download file": "Télécharger le fichier", - "Replace file": "Remplacer le fichier", - "Delete image": "Supprimer l'image", - "Download image": "Télécharger l’image", - "Replace image": "Remplacer l'image", - "Italic": "Italique", - "Sorry, that link won’t work for this embed type": "Désolé, ce lien ne fonctionne pas pour ce type d'intégration", - "File attachment": "Pièce jointe", - "Embed PDF": "PDF intégré", - "Enter a link": "Entrez un lien", "Big heading": "En-tête", "Medium heading": "Titre moyen", "Small heading": "Petit titre", "Extra small heading": "En-tête extrêmement petit", - "Heading": "Titre", - "Divider": "Séparateur", - "Image": "Image", - "Sorry, an error occurred uploading the file": "Désolé, une erreur s'est produite lors du chargement du fichier", - "Uploading… {{ progress }}%": "Téléchargement… {{ progress }}%", - "Write a caption": "Ajoutez une légende", - "Info": "Informations", - "Info notice": "Avis d'information", - "Link": "Lien", - "Highlight": "Surligné", - "Background color": "Couleur d'arrière-plan", - "Type '/' to insert": "Saisir '/' pour insérer", - "Keep typing to filter": "Continuez à taper pour filtrer", - "Open link": "Ouvrir le lien", - "Go to link": "Accéder au lien", - "Sorry, that type of link is not supported": "Désolé, ce type de lien n'est pas pris en charge", + "Todo list": "Liste des tâches", + "Bulleted list": "Liste à puces", "Ordered list": "Liste ordonnée", - "Page break": "Saut de page", - "Paste a link": "Coller un lien", - "Paste a {{service}} link…": "Collez un lien {{service}}…", - "Placeholder": "Indication", - "Quote": "Citation", - "Remove link": "Supprimer le lien", - "Search or paste a link": "Rechercher ou coller un lien", - "Strikethrough": "Barré", - "Bold": "Gras", - "Subheading": "Sous-titre", - "Sort ascending": "Tri croissant", - "Sort descending": "Tri décroissant", + "Image": "Image", + "Video": "Vidéo", + "Embed PDF": "PDF intégré", + "File attachment": "Pièce jointe", "Table": "Tableau", - "Export as CSV": "Exporter en CSV", - "Toggle header": "Activer/Désactiver l'en-tête", - "Math inline (LaTeX)": "Mathématiques en ligne (LaTeX)", + "Quote": "Citation", + "Code block": "Bloc de code", "Math block (LaTeX)": "Bloc mathématique (LaTeX)", - "Merge cells": "Fusionner les cellules", - "Split cell": "Diviser la cellule", - "Tip": "Astuce", - "Tip notice": "Astuce", - "Warning": "Avertissement", - "Warning notice": "Avertissement", - "Success": "Succès", - "Success notice": "Avis de succès", + "Toggle block": "Basculer le bloc", + "Divider": "Séparateur", + "Page break": "Saut de page", "Current date": "Date actuelle", "Current time": "Heure actuelle", "Current date and time": "Date et heure actuelle", - "Indent": "Indenter", - "Outdent": "Désindenter", - "Video": "Vidéo", - "None": "Abc", - "Toggle block": "Basculer le bloc", - "Add title": "Ajouter un titre", - "Add content": "Ajouter du contenu", - "Delete embed": "Supprimer l'intégration", - "Formatting controls": "Commandes de mise en forme", - "Distribute columns": "Répartir les colonnes", + "Info notice": "Avis d'information", + "Success notice": "Avis de succès", + "Warning notice": "Avertissement", + "Tip notice": "Astuce", "Wrap text": "Wrap text", + "Placeholder": "Indication", + "Bold": "Gras", + "Italic": "Italique", + "Strikethrough": "Barré", + "Background color": "Couleur d'arrière-plan", + "None": "Abc", + "Highlight": "Surligné", + "Code": "Code", + "Heading": "Titre", + "Subheading": "Sous-titre", + "Merge cells": "Fusionner les cellules", + "Split cell": "Diviser la cellule", + "Outdent": "Désindenter", + "Indent": "Indenter", + "Create link": "Créer un lien", + "Comment": "Commenter", + "Align left": "Aligner à gauche", + "Align center": "Aligner au centre", + "Align right": "Aligner à droite", + "Full width": "Largeur totale", + "Download image": "Télécharger l’image", + "Replace image": "Remplacer l'image", + "Edit image URL": "Modifier l'URL de l'image", + "Default width": "Largeur par défaut", + "Distribute columns": "Répartir les colonnes", + "Delete table": "Supprimer ce tableau", + "Export as CSV": "Exporter en CSV", + "Sort ascending": "Tri croissant", + "Sort descending": "Tri décroissant", + "Toggle header": "Activer/Désactiver l'en-tête", + "Insert after": "Insérer après", + "Insert before": "Insérer avant", + "Move left": "Déplacer vers la gauche", + "Move right": "Déplacer vers la droite", + "Move up": "Déplacer vers le haut", + "Move down": "Déplacer vers le bas", + "Rename": "Renommer", "Delete Emoji": "Supprimer les émoticônes", "Emoji deleted": "Émoji supprimé", "I'm sure – Delete": "Je suis certain - Supprimer", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "a réagi {{ emoji }} à votre commentaire sur", "shared": "partagé", "invited you to": "vous a invité à", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Choisissez une date", "API key created. Please copy the value now as it will not be shown again.": "Clé d'API créée. Veuillez copier la valeur maintenant car elle ne sera plus affichée.", "Scopes": "portée", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Rétroliens", + "Clear search highlight": "Clear search highlight", + "Warning": "Avertissement", "This document is large which may affect performance": "Ce document est volumineux et peut affecter les performances", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Êtes-vous sûr ? La suppression de <em>{{ documentTitle }}</em> supprimera tout son historique</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Êtes-vous sûr ? Supprimer le document <em>{{ documentTitle }}</em> effacera tout son historique et <em>{{ any }} documents imbriqués</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Aucun documents trouvés pour votre recherche.", "You’ve not got any drafts at the moment.": "Vous n'avez aucun brouillon pour le moment.", "Payment Required": "Paiement requis", + "Access request sent": "Access request sent", "No access to this doc": "Pas d'accès à ce document", - "It doesn’t look like you have permission to access this document.": "Désolé, il semble que vous n’ayez pas la permission d’accéder à ce document.", - "Please request access from the document owner.": "Veuillez demander l'accès au propriétaire du document.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Non trouvé", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "La page que vous cherchez est introuvable. Elle a peut-être été supprimée ou le lien est incorrect.", "We were unable to load the document while offline.": "Impossible de charger le document en mode hors-ligne.", @@ -936,6 +940,7 @@ "Large header": "En-tête large", "Medium header": "En-tête moyen", "Small header": "Petit en-tête", + "Link": "Lien", "Underline": "Souligner", "Undo": "Annuler", "Redo": "Rétablir", @@ -1092,6 +1097,7 @@ "Credentials": "Identifiants", "OAuth client ID": "ID du client OAuth", "The public identifier for this app": "L'identifiant public pour cette application", + "Copied to clipboard": "Copié dans le presse-papier", "OAuth client secret": "Secret du client OAuth", "Store this value securely, do not expose it publicly": "Stocker cette valeur en toute sécurité, ne l'exposer pas publiquement", "Where users are redirected after authorizing this app": "Là où les utilisateurs sont redirigés après avoir autorisé cette application", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Préférences enregistrées", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Déconnecter l'intégration", "Disconnecting": "Déconnexion en cours", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Êtes-vous sûr de vouloir déconnecter l'intégration <em>{{ service }}</em>?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Afficher le logo, la description et la marque de votre espace de travail sur les pages partagées publiquement.", "Table of contents position": "Position de la table des matières", "The side to display the table of contents in relation to the main content.": "Le côté pour afficher la table des matières en relation avec le contenu principal.", - "Behavior": "Comportement", "Subdomain": "Sous-domaine", "Your workspace will be accessible at": "Votre espace de travail sera accessible à", "Choose a subdomain to enable a login page just for your team.": "Choisissez un sous-domaine pour activer une page de connexion propre à votre équipe.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Recevoir une notification lorsque vous avez accès à une collection", "Export completed": "Export terminé", "Receive a notification when an export you requested has been completed": "Recevoir une notification une fois l'export terminé", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Premiers Pas", "Tips on getting started with features and functionality": "Conseils pour aborder les fonctionnalités et le fonctionnement d'Outline", "New features": "Nouvelles fonctionnalités", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Désinscription réussie. Vos paramètres de notification ont été mis à jour", "Manage when and where you receive email notifications.": "Gérez quand et où vous recevez des notifications par e-mail.", "All notifications": "All notifications", - "Preferences saved": "Préférences enregistrées", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Supprimer compte", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "Mis à jour par {{ user }} il y a {{ timeAgo }}", "You created {{ timeAgo }}": "Créé par vous il y a {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "Créé par {{ user }} il y a {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Désolé, une erreur s'est produite lors du chargement du fichier", + "Sorry, that type of link is not supported": "Désolé, ce type de lien n'est pas pris en charge", "Caption": "Légende", "Empty diagram": "Diagramme vide", "Double click to edit": "Double-cliquer pour éditer", "Open": "Ouvrir", "Loading": "Chargement", - "Error loading data": "Erreur de chargement des données" + "Error loading data": "Erreur de chargement des données", + "Show {{ count }} completed": "Afficher {{ count }} complété", + "Show {{ count }} completed_plural": "Afficher {{ count }} complétés", + "Hide completed": "Cacher les complétés", + "Write a caption": "Ajoutez une légende", + "Add title": "Ajouter un titre", + "Add content": "Ajouter du contenu" } diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index 1e64f21ed1..6c203e08df 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -169,6 +169,7 @@ "New workspace": "מרחב עבודה חדש", "Create a workspace": "יצירת סביבת עבודה", "Login to workspace": "העבר לעזור העבודה", + "template": "template", "Template deleted": "התבנית נמחקה", "Deleting": "מוחק", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "אתה בטוח בזה? מחיקת התבנית <em>{{ templateName }}</em> היא לצמיתות.", @@ -298,6 +299,7 @@ "Currently editing": "כרגע בעריכה", "Currently viewing": "צופה כרגע", "Viewed {{ timeAgo }}": "נצפה {{ timeAgo }}", + "Uploading… {{ progress }}%": "מעלה... {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "סוג הקובץ אינו נתמך. אנא השתמש ב-PNG, JPG, GIF או WebP.", "File size too large. Maximum size is {{ size }}.": "גודל הקובץ גדול מדי. הגודל המרבי הוא {{ size }}.", "Click or drag to replace": "לחץ או גרור כדי להחליף", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "מצטערים, אירעה שגיאה.", "Click to retry": "לחץ כדי לנסות שוב", "Back": "בְּחֲזָרָה", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "לְנַהֵל", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "ההרשאות עבור {{ userName }} עודכנו", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "אפשרויות התראות", "Unknown": "לֹא יְדוּעַ", "Mentions": "אזכורים", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m קריאה", "{{ hours }}h read": "{{ hours }} שעות קריאה", "{{ minutes }}m read": "{{ דקות }} קראתי", - "Manage": "לְנַהֵל", "All members": "כל החברים", "Everyone in the workspace": "כולם בסביבת העבודה", "{{ count }} member": "חבר {{ count }}", "{{ count }} member_plural": "{{ count }} חברים", + "Public link copied to clipboard": "הקישור הציבורי הועתק ללוח", "Only lowercase letters, digits and dashes allowed": "מותרים רק אותיות קטנות, ספרות ומקפים", "Sorry, this link has already been used": "מצטערים, הקישור הזה כבר היה בשימוש", - "Public link copied to clipboard": "הקישור הציבורי הועתק ללוח", - "Web": "אינטרנט", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "אפשר לכל מי שיש לו את הקישור לגשת", "Publish to internet": "פרסם לאינטרנט", - "Search engine indexing": "אינדקס למנועי חיפוש", - "Disable this setting to discourage search engines from indexing the page": "השבת הגדרה זו כדי למנוע ממנועי חיפוש להוסיף את הדף לאינדקס", - "Email subscriptions": "מנויי אימייל", - "Allow viewers to subscribe and receive email notifications when documents are updated": "אפשר לצופים להירשם ולקבל התראות באימייל כאשר מסמכים מתעדכנים", - "Show last modified": "הצג את השינוי האחרון", - "Display the last modified timestamp on the shared page": "הצג את חותמת הזמן ששונתה לאחרונה בדף המשותף", - "Show table of contents": "הצג את תוכן העניינים", - "Display the table of contents on documents by default": "הצג את תוכן העניינים במסמכים כברירת מחדל", "All documents in this collection will be shared on the web, including any new documents added later": "כל המסמכים באוסף זה ישותפו באינטרנט, כולל כל מסמכים חדשים שנוספו מאוחר יותר", "Invite": "לְהַזמִין", "{{ userName }} was added to the collection": "{{ userName }} התווסף לאוסף", @@ -445,8 +447,24 @@ "Switch to dark": "עוברים לחושך", "Switch to light": "עוברים לאור", "Subscribe to updates": "הירשם לעדכונים", + "Logo": "סֵמֶל", "Add": "לְהוֹסִיף", "Add or invite": "הוסף או הזמן", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "הצג את השינוי האחרון", + "Display the last modified timestamp on the shared page": "הצג את חותמת הזמן ששונתה לאחרונה בדף המשותף", + "Show table of contents": "הצג את תוכן העניינים", + "Display the table of contents on documents by default": "הצג את תוכן העניינים במסמכים כברירת מחדל", + "Behavior": "הִתְנַהֲגוּת", + "Search engine indexing": "אינדקס למנועי חיפוש", + "Disable this setting to discourage search engines from indexing the page": "השבת הגדרה זו כדי למנוע ממנועי חיפוש להוסיף את הדף לאינדקס", + "Email subscriptions": "מנויי אימייל", + "Allow viewers to subscribe and receive email notifications when documents are updated": "אפשר לצופים להירשם ולקבל התראות באימייל כאשר מסמכים מתעדכנים", "Something went wrong": "משהו השתבש", "Check your email to confirm your subscription": "בדוק את האימייל שלך כדי לאשר את המנוי שלך", "Get notified when this document is updated": "קבל הודעה כאשר מסמך זה מתעדכן", @@ -465,7 +483,6 @@ "Access inherited from collection": "גישה שעברה בירושה מהאוסף", "{{ userName }} was removed from the document": "{{ userName }} הוסר מהמסמך", "Could not remove user": "לא ניתן להסיר את המשתמש", - "Permissions for {{ userName }} updated": "ההרשאות עבור {{ userName }} עודכנו", "Could not update user": "לא ניתן היה לעדכן את המשתמש", "Has access through <2>parent</2>": "יש גישה דרך <2>הורה</2>", "Suspended": "מוּשׁהֶה", @@ -475,14 +492,12 @@ "Leave": "לַעֲזוֹב", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "כל מי שיש לו את הקישור יכול לגשת מכיוון שהאוסף המכיל, <2>{sharedParent.sourceTitle}</2>, משותף", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "כל מי שיש לו את הקישור יכול לגשת מכיוון שמסמך האב, <2>{sharedParent.sourceTitle}</2>, משותף", - "Allow viewers to subscribe and receive email notifications when this document is updated": "אפשר לצופים להירשם ולקבל הודעות דוא\"ל כאשר מסמך זה מתעדכן", "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 }} נוסף למסמך", "{{ count }} people added to the document": "{{ count }} אנשים נוספו למסמך", "{{ count }} people added to the document_plural": "{{ count }} אנשים נוספו למסמך", "{{ count }} groups added to the document": "{{ count }} קבוצות נוספו למסמך", "{{ count }} groups added to the document_plural": "{{ count }} קבוצות נוספו למסמך", - "Logo": "סֵמֶל", "Expand sidebar": "הרחב את סרגל הצד", "Collapse sidebar": "כווץ את סרגל הצד", "Archived collections": "אוספים בארכיון", @@ -548,10 +563,18 @@ "Replacement": "תַחֲלִיף", "Replace": "לְהַחלִיף", "Replace all": "החלף הכל", + "Go to link": "עבור לקישור", + "Open link": "פתח קישור", + "Remove link": "Error 500 (Server Error)!!1500.That’s an error.There was an error. Please try again later.That’s all we know.", + "Formatting controls": "פקדי עיצוב", + "Search or paste a link": "חפש או הדבק קישור", "Image width": "רוחב תמונה", "Width": "רוֹחַב", "Image height": "גובה התמונה", "Height": "גוֹבַה", + "Paste a link": "הדבק קישור", + "Delete embed": "מחק הטמעה", + "Delete image": "מחק תמונה", "Profile picture": "תמונת פרופיל", "Create a new doc": "צור מסמך חדש", "Create a nested doc": "צור מסמך מקונן", @@ -561,106 +584,78 @@ "Mention": "אִזְכּוּר", "Embed": "לְשַׁבֵּץ", "Not supported": "לא נתמך", + "Sorry, that link won’t work for this embed type": "מצטערים, הקישור הזה לא יעבוד עבור סוג ההטמעה הזה", "Upload file": "העלה קובץ", + "Paste a {{service}} link…": "הדבק קישור {{service}}...", "More options": "אפשרויות נוספות", - "Rename": "שנה שם", - "Insert after": "הכנס אחרי", - "Insert before": "הכנס לפני", - "Move up": "לזוז למעלה", - "Move down": "לזוז למטה", - "Move left": "זז שמאלה", - "Move right": "זז ימינה", - "Align center": "יישר מרכז", - "Align left": "יישר שמאלה", - "Align right": "יישר ימינה", - "Default width": "רוחב ברירת מחדל", - "Full width": "רוחב מלא", - "Bulleted list": "רשימת תבליטים", - "Todo list": "רשימת משימות", - "Show {{ count }} completed": "הצגת {{ count }} הושלמה", - "Show {{ count }} completed_plural": "הצגת {{ count }} הושלמה", - "Hide completed": "הסתרה הושלמה", - "Code block": "בלוק קוד", - "Copied to clipboard": "הועתק ללוח", - "Code": "קוד", - "Comment": "הֶעָרָה", - "Create link": "צור קישור", - "Edit image URL": "ערוך את כתובת האתר של התמונה", - "Sorry, an error occurred creating the link": "מצטערים, אירעה שגיאה ביצירת הקישור", - "Create a new child doc": "צור מסמך צאצא חדש", - "Delete table": "מחק טבלה", + "Type '/' to insert": "הקלד '/' כדי להוסיף", + "Keep typing to filter": "המשך להקליד כדי לסנן", + "Replace file": "החלף קובץ", "Delete file": "מחק קובץ", "Show preview": "הצג תצוגה מקדימה", - "Download file": "הורד קובץ", - "Replace file": "החלף קובץ", - "Delete image": "מחק תמונה", - "Download image": "הורד תמונה", - "Replace image": "החלף תמונה", - "Italic": "נטוי", - "Sorry, that link won’t work for this embed type": "מצטערים, הקישור הזה לא יעבוד עבור סוג ההטמעה הזה", - "File attachment": "קובץ מצורף", - "Embed PDF": "הטמעת PDF", - "Enter a link": "הכנס קישור", "Big heading": "כותרת גדולה", "Medium heading": "כותרת בינונית", "Small heading": "כותרת קטנה", "Extra small heading": "כותרת קטנה במיוחד", - "Heading": "כּוֹתֶרֶת", - "Divider": "מְחַלֵק", - "Image": "תְמוּנָה", - "Sorry, an error occurred uploading the file": "מצטערים, אירעה שגיאה בהעלאת הקובץ", - "Uploading… {{ progress }}%": "מעלה... {{ progress }}%", - "Write a caption": "כתוב כיתוב", - "Info": "מידע", - "Info notice": "הודעת מידע", - "Link": "לְקַשֵׁר", - "Highlight": "שִׂיא", - "Background color": "צבע רקע", - "Type '/' to insert": "הקלד '/' כדי להוסיף", - "Keep typing to filter": "המשך להקליד כדי לסנן", - "Open link": "פתח קישור", - "Go to link": "עבור לקישור", - "Sorry, that type of link is not supported": "מצטערים, סוג קישור זה אינו נתמך", + "Todo list": "רשימת משימות", + "Bulleted list": "רשימת תבליטים", "Ordered list": "רשימה מסודרת", - "Page break": "מעבר עמוד", - "Paste a link": "הדבק קישור", - "Paste a {{service}} link…": "הדבק קישור {{service}}...", - "Placeholder": "מציין מקום", - "Quote": "לְצַטֵט", - "Remove link": "Error 500 (Server Error)!!1500.That’s an error.There was an error. Please try again later.That’s all we know.", - "Search or paste a link": "חפש או הדבק קישור", - "Strikethrough": "חוצה", - "Bold": "נוֹעָז", - "Subheading": "כּוֹתֶרֶת מִשְׁנֶה", - "Sort ascending": "מיין עולה", - "Sort descending": "מיון יורד", + "Image": "תְמוּנָה", + "Video": "וִידֵאוֹ", + "Embed PDF": "הטמעת PDF", + "File attachment": "קובץ מצורף", "Table": "לוּחַ", - "Export as CSV": "ייצא כ-CSV", - "Toggle header": "החלף את הכותרת", - "Math inline (LaTeX)": "מתמטיקה מוטבעת (LaTeX)", + "Quote": "לְצַטֵט", + "Code block": "בלוק קוד", "Math block (LaTeX)": "בלוק מתמטי (LaTeX)", - "Merge cells": "מיזוג תאים", - "Split cell": "פיצול תא", - "Tip": "עֵצָה", - "Tip notice": "הודעת טיפ", - "Warning": "אַזהָרָה", - "Warning notice": "הערת אזהרה", - "Success": "הַצלָחָה", - "Success notice": "הודעת הצלחה", + "Toggle block": "החלף בלוק", + "Divider": "מְחַלֵק", + "Page break": "מעבר עמוד", "Current date": "תאריך נוכחי", "Current time": "זמן נוכחי", "Current date and time": "תאריך ושעה נוכחיים", - "Indent": "לְשַׁנֵן", - "Outdent": "Outdent", - "Video": "וִידֵאוֹ", - "None": "אַף לֹא אֶחָד", - "Toggle block": "החלף בלוק", - "Add title": "הוסף כותרת", - "Add content": "הוסף תוכן", - "Delete embed": "מחק הטמעה", - "Formatting controls": "פקדי עיצוב", - "Distribute columns": "חלוקת עמודות", + "Info notice": "הודעת מידע", + "Success notice": "הודעת הצלחה", + "Warning notice": "הערת אזהרה", + "Tip notice": "הודעת טיפ", "Wrap text": "גלישת טקסט", + "Placeholder": "מציין מקום", + "Bold": "נוֹעָז", + "Italic": "נטוי", + "Strikethrough": "חוצה", + "Background color": "צבע רקע", + "None": "אַף לֹא אֶחָד", + "Highlight": "שִׂיא", + "Code": "קוד", + "Heading": "כּוֹתֶרֶת", + "Subheading": "כּוֹתֶרֶת מִשְׁנֶה", + "Merge cells": "מיזוג תאים", + "Split cell": "פיצול תא", + "Outdent": "Outdent", + "Indent": "לְשַׁנֵן", + "Create link": "צור קישור", + "Comment": "הֶעָרָה", + "Align left": "יישר שמאלה", + "Align center": "יישר מרכז", + "Align right": "יישר ימינה", + "Full width": "רוחב מלא", + "Download image": "הורד תמונה", + "Replace image": "החלף תמונה", + "Edit image URL": "ערוך את כתובת האתר של התמונה", + "Default width": "רוחב ברירת מחדל", + "Distribute columns": "חלוקת עמודות", + "Delete table": "מחק טבלה", + "Export as CSV": "ייצא כ-CSV", + "Sort ascending": "מיין עולה", + "Sort descending": "מיון יורד", + "Toggle header": "החלף את הכותרת", + "Insert after": "הכנס אחרי", + "Insert before": "הכנס לפני", + "Move left": "זז שמאלה", + "Move right": "זז ימינה", + "Move up": "לזוז למעלה", + "Move down": "לזוז למטה", + "Rename": "שנה שם", "Delete Emoji": "מחק אימוג'י", "Emoji deleted": "אמוג'י נמחק", "I'm sure – Delete": "אני בטוח - מחק", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "הגיב {{ emoji }} לתגובה שלך על", "shared": "מְשׁוּתָף", "invited you to": "הזמין אותך", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "בחר תאריך", "API key created. Please copy the value now as it will not be shown again.": "מפתח API נוצר. אנא העתק את הערך כעת מכיוון שהוא לא יוצג שוב.", "Scopes": "היקפים", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "הוסף תוכן למסמך שלך, ולאחר מכן השתמש בכותרות או חוצצים כדי להפריד אותו לשקופיות.", "Learn more": "למידע נוסף", "Backlinks": "קישורים נכנסים", + "Clear search highlight": "Clear search highlight", + "Warning": "אַזהָרָה", "This document is large which may affect performance": "מסמך זה גדול מה שעשוי להשפיע על הביצועים", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "אתה בטוח בזה? מחיקת המסמך <em>{{ documentTitle }}</em> תמחק את כל ההיסטוריה שלו</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "אתה בטוח בזה? מחיקת המסמך <em>{{ documentTitle }}</em> תמחק את כל ההיסטוריה שלו ואת <em>{{ any }} המסמך המקונן</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "לא נמצאו מסמכים עבור המסננים שלך.", "You’ve not got any drafts at the moment.": "אין לך שום טיוטות כרגע.", "Payment Required": "נדרש תשלום", + "Access request sent": "Access request sent", "No access to this doc": "אין גישה למסמך זה", - "It doesn’t look like you have permission to access this document.": "לא נראה שיש לך הרשאה לגשת למסמך הזה.", - "Please request access from the document owner.": "בקש גישה מבעל המסמך.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "לא נמצא", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "לא ניתן למצוא את הדף שאתה מחפש. ייתכן שהוא נמחק או שהקישור שגוי.", "We were unable to load the document while offline.": "לא הצלחנו לטעון את המסמך במצב לא מקוון.", @@ -936,6 +940,7 @@ "Large header": "כותרת גדולה", "Medium header": "כותרת בינונית", "Small header": "כותרת קטנה", + "Link": "לְקַשֵׁר", "Underline": "לָשִׂים דָגֵשׁ", "Undo": "לְבַטֵל", "Redo": "לַעֲשׂוֹת שׁוּב", @@ -1092,6 +1097,7 @@ "Credentials": "אישורים", "OAuth client ID": "מזהה לקוח OAuth", "The public identifier for this app": "המזהה הציבורי של האפליקציה הזו", + "Copied to clipboard": "הועתק ללוח", "OAuth client secret": "סוד לקוח OAuth", "Store this value securely, do not expose it publicly": "אחסן ערך זה בצורה מאובטחת, אל תחשוף אותו בפומבי", "Where users are redirected after authorizing this app": "לאן משתמשים מופנים לאחר הרשאת אפליקציה זו", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "ההעדפות נשמרו", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "ניתוק אינטגרציה", "Disconnecting": "מתנתק", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "האם אתה בטוח שברצונך לנתק את השילוב <em>{{ service }}</em>?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "הצג את הלוגו, התיאור והמיתוג של סביבת העבודה שלך בדפים ששותפו לציבור.", "Table of contents position": "עמדת תוכן העניינים", "The side to display the table of contents in relation to the main content.": "הצד להצגת תוכן העניינים ביחס לתוכן הראשי.", - "Behavior": "הִתְנַהֲגוּת", "Subdomain": "תת-דומיין", "Your workspace will be accessible at": "סביבת העבודה שלך תהיה נגישה ב", "Choose a subdomain to enable a login page just for your team.": "בחר תת-דומיין כדי לאפשר דף התחברות רק עבור הצוות שלך.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "קבל התראה כאשר ניתנת לך גישה לאוסף", "Export completed": "הייצוא הושלם", "Receive a notification when an export you requested has been completed": "קבל הודעה כאשר ייצוא שביקשת הושלם", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "מתחילים", "Tips on getting started with features and functionality": "טיפים לתחילת העבודה עם תכונות ופונקציונליות", "New features": "תכונות חדשות", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "ביטול המנוי הצליח. הגדרות ההתראות שלך עודכנו", "Manage when and where you receive email notifications.": "נהל מתי והיכן אתה מקבל התראות באימייל.", "All notifications": "כל ההתראות", - "Preferences saved": "ההעדפות נשמרו", "Unread count": "ספירה שלא נקראה", "Unread indicator": "מחוון שלא נקרא", "Delete account": "מחק חשבון", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} עודכן {{ timeAgo }}", "You created {{ timeAgo }}": "יצרת את {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} נוצר {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "מצטערים, אירעה שגיאה בהעלאת הקובץ", + "Sorry, that type of link is not supported": "מצטערים, סוג קישור זה אינו נתמך", "Caption": "כּוֹתֶרֶת", "Empty diagram": "דיאגרמה ריקה", "Double click to edit": "לחץ פעמיים כדי לערוך", "Open": "לִפְתוֹחַ", "Loading": "טְעִינָה", - "Error loading data": "שגיאה בטעינת נתונים" + "Error loading data": "שגיאה בטעינת נתונים", + "Show {{ count }} completed": "הצגת {{ count }} הושלמה", + "Show {{ count }} completed_plural": "הצגת {{ count }} הושלמה", + "Hide completed": "הסתרה הושלמה", + "Write a caption": "כתוב כיתוב", + "Add title": "הוסף כותרת", + "Add content": "הוסף תוכן" } diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index e909a76ac8..8c196210f6 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -169,6 +169,7 @@ "New workspace": "Új munkaterület", "Create a workspace": "Munkaterület létrehozása", "Login to workspace": "Bejelentkezés a munkaterületbe", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Törlés", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Jelenleg szerkeszti", "Currently viewing": "Jelenleg megtekinti", "Viewed {{ timeAgo }}": "Megtekintve: {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Elnézést, valami hiba történt.", "Click to retry": "Kattintson az újrapróbáláshoz", "Back": "Vissza", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Kezelés", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "{{ userName }} jogosultságai frissítve", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Ismeretlen", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }} perccel ezelőtt olvasta", - "Manage": "Kezelés", "All members": "Összes tag", "Everyone in the workspace": "Mindenki a munkaterületen", "{{ count }} member": "{{ count }} tag", "{{ count }} member_plural": "{{ count }} tag", + "Public link copied to clipboard": "A nyilvános link a vágólapra lett másolva", "Only lowercase letters, digits and dashes allowed": "Csak kisbetűk, számok és kötőjelek használhatók", "Sorry, this link has already been used": "Elnézést, ez a hivatkozás már használatban van", - "Public link copied to clipboard": "A nyilvános link a vágólapra lett másolva", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "A link birtokában bárki hozzáférhet", "Publish to internet": "Publikálás interneten", - "Search engine indexing": "Keresőmotor indexelése", - "Disable this setting to discourage search engines from indexing the page": "Kapcsold ki ezt a beállítást, hogy megakadályozzd a keresőmotorokat az oldal indexelésében.", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Az utolsó módosítás idejének megjelenítése a megosztott oldalon", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "A gyűjteményben található összes dokumentum meg lesz osztva a weben, a jövőben hozzáadott dokumentumokkal együtt", "Invite": "Meghívás", "{{ userName }} was added to the collection": "{{ userName }} hozzáadva a gyűjteményhez", @@ -445,8 +447,24 @@ "Switch to dark": "Váltás sötét módra", "Switch to light": "Váltás világos módra", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logó", "Add": "Hozzáadás", "Add or invite": "Hozzáadás vagy meghívás", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Show last modified", + "Display the last modified timestamp on the shared page": "Az utolsó módosítás idejének megjelenítése a megosztott oldalon", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Viselkedés", + "Search engine indexing": "Keresőmotor indexelése", + "Disable this setting to discourage search engines from indexing the page": "Kapcsold ki ezt a beállítást, hogy megakadályozzd a keresőmotorokat az oldal indexelésében.", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Hozzáférés örökölve a gyűjteményből", "{{ userName }} was removed from the document": "{{ userName }} eltávolítva a dokumentumból", "Could not remove user": "Nem lehet a felhasználót eltávolítani", - "Permissions for {{ userName }} updated": "{{ userName }} jogosultságai frissítve", "Could not update user": "Nem lehet a felhasználót frissíteni", "Has access through <2>parent</2>": "Has access through <2>parent</2>", "Suspended": "Felfüggesztve", @@ -475,14 +492,12 @@ "Leave": "Elhagy", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "A beágyazott dokumentumok nem kerülnek megosztásra a weben. Kapcsolja be a megosztást a hozzáférés engedélyezéséhez, ez lesz az alapértelmezett viselkedés a jövőben.", "{{ userName }} was added to the document": "{{ userName }} eltávolítva a dokumentumból", "{{ count }} people added to the document": "{{ count }} eltávolítva a dokumentumból", "{{ count }} people added to the document_plural": "{{ count }} eltávolítva a dokumentumból", "{{ count }} groups added to the document": "{{ count }} eltávolítva a dokumentumból", "{{ count }} groups added to the document_plural": "{{ count }} eltávolítva a dokumentumból", - "Logo": "Logó", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Keresés a gyűjteményben", @@ -548,10 +563,18 @@ "Replacement": "Csere", "Replace": "Cserél", "Replace all": "Összeset cseréli", + "Go to link": "Ugrás a hivatkozásra", + "Open link": "Hivatkozás megnyitása", + "Remove link": "Hivatkozás eltávolítása", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Keressen vagy szúrjon be egy hivatkozást", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "Szúrjon be egy hivatkozást", + "Delete embed": "Delete embed", + "Delete image": "Kép törlése", "Profile picture": "Profilkép", "Create a new doc": "Új doku létrehozása", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mention", "Embed": "Beágyazott", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Sajnálom, ez a hivatkozás nem működik ennél a beágyazott típusnál", "Upload file": "Upload file", + "Paste a {{service}} link…": "Szúrjon be egy {{service}} hivatkozást…", "More options": "További lehetőségek", - "Rename": "Átnevezés", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "Középre igazítás", - "Align left": "Balra igazítás", - "Align right": "Jobbra igazítás", - "Default width": "Alapértelmezett szélesség", - "Full width": "Teljes szélesség", - "Bulleted list": "Felsorolásjeles lista", - "Todo list": "Feladatlista", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Kódblokk", - "Copied to clipboard": "Vágólapra másolva", - "Code": "Kód", - "Comment": "Hozzászólás", - "Create link": "Hivatkozás létrehozása", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "Sajnálom, valami hiba merült fel a hivatkozás létrehozása közben", - "Create a new child doc": "Új doku létrehozása", - "Delete table": "Táblázat törlése", + "Type '/' to insert": "Gépeljen be egy „/” karaktert a beszúráshoz", + "Keep typing to filter": "Gépeljen tovább a szűréshez", + "Replace file": "Fájl lecserélése", "Delete file": "Fájl törlése", "Show preview": "Show preview", - "Download file": "Fájl letöltése", - "Replace file": "Fájl lecserélése", - "Delete image": "Kép törlése", - "Download image": "Kép letöltése", - "Replace image": "Kép cseréje", - "Italic": "Dőlt", - "Sorry, that link won’t work for this embed type": "Sajnálom, ez a hivatkozás nem működik ennél a beágyazott típusnál", - "File attachment": "Fájlmelléklet", - "Embed PDF": "Embed PDF", - "Enter a link": "Enter a link", "Big heading": "Nagy címsor", "Medium heading": "Közepes címsor", "Small heading": "Kis címsor", "Extra small heading": "Nagyon kicsi címsor", - "Heading": "Címsor", - "Divider": "Elválasztó", - "Image": "Kép", - "Sorry, an error occurred uploading the file": "Elnézést, valami hiba történt a fájl feltöltése közben", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Írjon egy elnevezést", - "Info": "Infó", - "Info notice": "Információs értesítés", - "Link": "Hivatkozás", - "Highlight": "Kiemelés", - "Background color": "Background color", - "Type '/' to insert": "Gépeljen be egy „/” karaktert a beszúráshoz", - "Keep typing to filter": "Gépeljen tovább a szűréshez", - "Open link": "Hivatkozás megnyitása", - "Go to link": "Ugrás a hivatkozásra", - "Sorry, that type of link is not supported": "Elnézést, ez a hivatkozás típus nem támogatott", + "Todo list": "Feladatlista", + "Bulleted list": "Felsorolásjeles lista", "Ordered list": "Rendezett lista", - "Page break": "Oldaltörés", - "Paste a link": "Szúrjon be egy hivatkozást", - "Paste a {{service}} link…": "Szúrjon be egy {{service}} hivatkozást…", - "Placeholder": "Helykitöltő", - "Quote": "Idézet", - "Remove link": "Hivatkozás eltávolítása", - "Search or paste a link": "Keressen vagy szúrjon be egy hivatkozást", - "Strikethrough": "Áthúzott", - "Bold": "Félkövér", - "Subheading": "Alcímsor", - "Sort ascending": "Rendezés növekvő sorrendben", - "Sort descending": "Rendezés csökkenő sorrendben", + "Image": "Kép", + "Video": "Videó", + "Embed PDF": "Embed PDF", + "File attachment": "Fájlmelléklet", "Table": "Táblázat", - "Export as CSV": "CSV exportálás", - "Toggle header": "Fejléc be- vagy kikapcsolása", - "Math inline (LaTeX)": "Matek képlet a sorban (LaTeX)", + "Quote": "Idézet", + "Code block": "Kódblokk", "Math block (LaTeX)": "Matematikablokk (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Tipp", - "Tip notice": "Tipp értesítés", - "Warning": "Figyelmeztetés", - "Warning notice": "Figyelmeztető értesítés", - "Success": "Siker", - "Success notice": "Siker értesítés", + "Toggle block": "Toggle block", + "Divider": "Elválasztó", + "Page break": "Oldaltörés", "Current date": "Jelenlegi dátum", "Current time": "Jelenlegi idő", "Current date and time": "Jelenlegi dátum és idő", - "Indent": "Behúzás növelése", - "Outdent": "Behúzás csökkentése", - "Video": "Videó", - "None": "Nincs", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Információs értesítés", + "Success notice": "Siker értesítés", + "Warning notice": "Figyelmeztető értesítés", + "Tip notice": "Tipp értesítés", "Wrap text": "Wrap text", + "Placeholder": "Helykitöltő", + "Bold": "Félkövér", + "Italic": "Dőlt", + "Strikethrough": "Áthúzott", + "Background color": "Background color", + "None": "Nincs", + "Highlight": "Kiemelés", + "Code": "Kód", + "Heading": "Címsor", + "Subheading": "Alcímsor", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Behúzás csökkentése", + "Indent": "Behúzás növelése", + "Create link": "Hivatkozás létrehozása", + "Comment": "Hozzászólás", + "Align left": "Balra igazítás", + "Align center": "Középre igazítás", + "Align right": "Jobbra igazítás", + "Full width": "Teljes szélesség", + "Download image": "Kép letöltése", + "Replace image": "Kép cseréje", + "Edit image URL": "Edit image URL", + "Default width": "Alapértelmezett szélesség", + "Distribute columns": "Distribute columns", + "Delete table": "Táblázat törlése", + "Export as CSV": "CSV exportálás", + "Sort ascending": "Rendezés növekvő sorrendben", + "Sort descending": "Rendezés csökkenő sorrendben", + "Toggle header": "Fejléc be- vagy kikapcsolása", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Átnevezés", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "megosztva", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Válassz dátumot", "API key created. Please copy the value now as it will not be shown again.": "API-kulcs létrehozva. Most másolja ki az értéket, mivel ez többé nem jelenik meg.", "Scopes": "Hatáskörök", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Vissza-hivatkozások", + "Clear search highlight": "Clear search highlight", + "Warning": "Figyelmeztetés", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "No documents found for your filters.", "You’ve not got any drafts at the moment.": "Jelenleg nincs egy piszkozatod se.", "Payment Required": "Payment Required", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "We were unable to load the document while offline.", @@ -936,6 +940,7 @@ "Large header": "Nagy címsor", "Medium header": "Közepes címsor", "Small header": "Kis címsor", + "Link": "Hivatkozás", "Underline": "Aláhúzás", "Undo": "Visszavonás", "Redo": "Redo", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Vágólapra másolva", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Beállítások elmentve", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Kapcsolat megszakítása", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Biztos vagy benne, hogy le akarod választani a {{ service }} integrációt?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "Behavior": "Viselkedés", "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.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Értesítés fogadása, amikor hozzáférést kap egy gyűjteményhez", "Export completed": "Exportálás befejezve", "Receive a notification when an export you requested has been completed": "Értesítés fogadása, amikor az Ön által kért exportálás befejeződött", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Első lépések", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "Új funkciók", @@ -1325,7 +1337,6 @@ "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.", "All notifications": "All notifications", - "Preferences saved": "Beállítások elmentve", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Fiók törlése", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", "You created {{ timeAgo }}": "Ön hozta létre {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Elnézést, valami hiba történt a fájl feltöltése közben", + "Sorry, that type of link is not supported": "Elnézést, ez a hivatkozás típus nem támogatott", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "Betöltés", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Írjon egy elnevezést", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index 3b2cfac07a..f10dbabb6f 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -169,6 +169,7 @@ "New workspace": "Ruang kerja baru", "Create a workspace": "Buat ruang kerja", "Login to workspace": "Login to workspace", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Menghapus", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Sedang menyunting", "Currently viewing": "Sedang melihat", "Viewed {{ timeAgo }}": "Dilihat {{ timeAgo }} lalu", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Maaf, telah terjadi kesalahan.", "Click to retry": "Klik untuk mencoba lagi", "Back": "Kembali", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Manage", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Unknown", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m read", - "Manage": "Manage", "All members": "All members", "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} anggota", "{{ count }} member_plural": "{{ count }} anggota", + "Public link copied to clipboard": "Public link copied to clipboard", "Only lowercase letters, digits and dashes allowed": "Hanya huruf kecil, angka, dan tanda hubung diperbolehkan", "Sorry, this link has already been used": "Maaf, tautan ini telah digunakan", - "Public link copied to clipboard": "Public link copied to clipboard", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Allow anyone with the link to access", "Publish to internet": "Terbitkan ke 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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "Invite", "{{ userName }} was added to the collection": "{{ userName }} ditambahkan ke koleksi", @@ -445,8 +447,24 @@ "Switch to dark": "Beralih ke gelap", "Switch to light": "Beralih ke cerah", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Tambahkan", "Add or invite": "Add or invite", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Show last modified", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Perilaku", + "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", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Access inherited from collection", "{{ userName }} was removed from the document": "{{ userName }} was removed from the document", "Could not remove user": "Tidak dapat menghapus pengguna", - "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", "Could not update user": "Tidak dapat memperbarui pengguna", "Has access through <2>parent</2>": "Has access through <2>parent</2>", "Suspended": "Disuspen", @@ -475,14 +492,12 @@ "Leave": "Meninggalkan", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Archived collections", @@ -548,10 +563,18 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Go to link": "Buka tautan", + "Open link": "Buka tautan", + "Remove link": "Hapus tautan", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Telusuri atau tempel tautan", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "Tempel tautan", + "Delete embed": "Delete embed", + "Delete image": "Hapus gambar", "Profile picture": "Gambar profil", "Create a new doc": "Buat dokumen baru", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mention", "Embed": "Embed", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Maaf, tautan itu tidak berfungsi untuk jenis embed ini", "Upload file": "Upload file", + "Paste a {{service}} link…": "Tempel tautan {{service}}…", "More options": "More options", - "Rename": "Rename", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "Rata tengah", - "Align left": "Rata kiri", - "Align right": "Rata kanan", - "Default width": "Default width", - "Full width": "Full width", - "Bulleted list": "Daftar berpoin", - "Todo list": "Daftar tugas", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Blok kode", - "Copied to clipboard": "Disalin ke papan klip", - "Code": "Kode", - "Comment": "Komentari", - "Create link": "Buat tautan", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "Maaf, terjadi kesalahan saat membuat tautan", - "Create a new child doc": "Create a new child doc", - "Delete table": "Hapus tabel", + "Type '/' to insert": "Ketik '/' untuk menyisipkan", + "Keep typing to filter": "Terus mengetik untuk menyaring", + "Replace file": "Replace file", "Delete file": "Delete file", "Show preview": "Show preview", - "Download file": "Download file", - "Replace file": "Replace file", - "Delete image": "Hapus gambar", - "Download image": "Unduh gambar", - "Replace image": "Ubah gambar", - "Italic": "Miring", - "Sorry, that link won’t work for this embed type": "Maaf, tautan itu tidak berfungsi untuk jenis embed ini", - "File attachment": "Lampiran berkas", - "Embed PDF": "Embed PDF", - "Enter a link": "Enter a link", "Big heading": "Judul besar", "Medium heading": "Judul sedang", "Small heading": "Judul kecil", "Extra small heading": "Extra small heading", - "Heading": "Judul", - "Divider": "Pemisah", - "Image": "Gambar", - "Sorry, an error occurred uploading the file": "Maaf, terjadi kesalahan saat mengunggah gambar", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Tulis keterangan", - "Info": "Informasi", - "Info notice": "Pemberitahuan info", - "Link": "Tautan", - "Highlight": "Sorot", - "Background color": "Background color", - "Type '/' to insert": "Ketik '/' untuk menyisipkan", - "Keep typing to filter": "Terus mengetik untuk menyaring", - "Open link": "Buka tautan", - "Go to link": "Buka tautan", - "Sorry, that type of link is not supported": "Maaf, jenis tautan tersebut tidak didukung", + "Todo list": "Daftar tugas", + "Bulleted list": "Daftar berpoin", "Ordered list": "Daftar berurut", - "Page break": "Halaman Pemisah", - "Paste a link": "Tempel tautan", - "Paste a {{service}} link…": "Tempel tautan {{service}}…", - "Placeholder": "Placeholder", - "Quote": "Kutipan", - "Remove link": "Hapus tautan", - "Search or paste a link": "Telusuri atau tempel tautan", - "Strikethrough": "Dicoret", - "Bold": "Tebal", - "Subheading": "Subjudul", - "Sort ascending": "Sort ascending", - "Sort descending": "Sort descending", + "Image": "Gambar", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "Lampiran berkas", "Table": "Tabel", - "Export as CSV": "Export as CSV", - "Toggle header": "Toggle header", - "Math inline (LaTeX)": "Matematika inline (LaTeX)", + "Quote": "Kutipan", + "Code block": "Blok kode", "Math block (LaTeX)": "Blok matematika (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Tip", - "Tip notice": "Pemberitahuan tip", - "Warning": "Peringatan", - "Warning notice": "Pemberitahuan peringatan", - "Success": "Sukses", - "Success notice": "Pemberitahuan sukses", + "Toggle block": "Toggle block", + "Divider": "Pemisah", + "Page break": "Halaman Pemisah", "Current date": "Tanggal saat ini", "Current time": "Waktu saat ini", "Current date and time": "Tanggal dan waktu saat ini", - "Indent": "Indentasi", - "Outdent": "Outdent", - "Video": "Video", - "None": "None", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Pemberitahuan info", + "Success notice": "Pemberitahuan sukses", + "Warning notice": "Pemberitahuan peringatan", + "Tip notice": "Pemberitahuan tip", "Wrap text": "Wrap text", + "Placeholder": "Placeholder", + "Bold": "Tebal", + "Italic": "Miring", + "Strikethrough": "Dicoret", + "Background color": "Background color", + "None": "None", + "Highlight": "Sorot", + "Code": "Kode", + "Heading": "Judul", + "Subheading": "Subjudul", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Outdent", + "Indent": "Indentasi", + "Create link": "Buat tautan", + "Comment": "Komentari", + "Align left": "Rata kiri", + "Align center": "Rata tengah", + "Align right": "Rata kanan", + "Full width": "Full width", + "Download image": "Unduh gambar", + "Replace image": "Ubah gambar", + "Edit image URL": "Edit image URL", + "Default width": "Default width", + "Distribute columns": "Distribute columns", + "Delete table": "Hapus tabel", + "Export as CSV": "Export as CSV", + "Sort ascending": "Sort ascending", + "Sort descending": "Sort descending", + "Toggle header": "Toggle header", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Rename", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "shared", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access 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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Tautan balik", + "Clear search highlight": "Clear search highlight", + "Warning": "Peringatan", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Apakah Anda yakin? Menghapus dokumen <em>{{ documentTitle }}</em> akan menghapus semua riwayatnya</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Apakah Anda yakin? Menghapus dokumen <em>{{ documentTitle }}</em> akan menghapus semua riwayatnya dan <em>{{ any }} dokumen bersarang</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Tidak ditemukan hasil untuk filter tersebut.", "You’ve not got any drafts at the moment.": "Anda tidak memiliki draf apa pun saat ini.", "Payment Required": "Payment Required", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "Kami tidak dapat memuat dokumen saat luring.", @@ -936,6 +940,7 @@ "Large header": "Judul besar", "Medium header": "Judul sedang", "Small header": "Judul kecil", + "Link": "Tautan", "Underline": "Garis bawah", "Undo": "Urungkan", "Redo": "Kembalikan", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Disalin ke papan klip", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferensi disimpan", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "Behavior": "Perilaku", "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.": "Pilih subdomain untuk mengaktifkan halaman masuk hanya untuk tim Anda.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", "Export completed": "Ekspor selesai", "Receive a notification when an export you requested has been completed": "Terima pemberitahuan saat ekspor yang Anda minta telah selesai", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Memulai", "Tips on getting started with features and functionality": "Tips untuk memulai dengan fitur dan fungsionalitas", "New features": "Fitur baru", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Berhasil berhenti berlangganan. Pengaturan notifikasi Anda diperbarui", "Manage when and where you receive email notifications.": "Kelola kapan dan di mana Anda mendapat notifikasi surel.", "All notifications": "All notifications", - "Preferences saved": "Preferensi disimpan", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Hapus akun", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Maaf, terjadi kesalahan saat mengunggah gambar", + "Sorry, that type of link is not supported": "Maaf, jenis tautan tersebut tidak didukung", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "Memuat", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Tulis keterangan", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index 1005760a2a..b9f36b2dbc 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -1,7 +1,7 @@ { "New API key": "Nuova chiave API", "Copy": "Copia", - "API key copied": "API key copied", + "API key copied": "Chiave API copiata", "Delete": "Elimina", "Revoke": "Revoca", "Revoke API key": "Revoca chiave API", @@ -169,6 +169,7 @@ "New workspace": "Nuova area di lavoro", "Create a workspace": "Crea area di lavoro", "Login to workspace": "Accedi allo spazio di lavoro", + "template": "modello", "Template deleted": "Modello eliminato", "Deleting": "Sto eliminando", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Ne sei sicuro? L'eliminazione del modello <em>{{ templateName }}</em> è definitiva.", @@ -298,6 +299,7 @@ "Currently editing": "Attualemente in modifica", "Currently viewing": "Attualmente visualizzato", "Viewed {{ timeAgo }}": "Visualizzato", + "Uploading… {{ progress }}%": "Caricamento… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Tipo di file non supportato. Utilizzare PNG, JPG, GIF o WebP.", "File size too large. Maximum size is {{ size }}.": "La dimensione del file è troppo grande. La dimensione massima è {{ size }}.", "Click or drag to replace": "Fai clic o trascina per sostituire", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Spiacenti, si è verificato un errore.", "Click to retry": "Clicca per riprovare", "Back": "Indietro", + "Can view the document": "Può vedere il documento", + "Can view and edit the document": "Può vedere e modificare il documento", + "Manage": "Gestisci", + "Full access including sharing": "Accesso completo, compresa la condivisione", + "Permissions for {{ userName }} updated": "Permessi aggiornati per {{ userName }}", + "Failed to approve access request": "Approvazione della richiesta di accesso non riuscita", + "Access request dismissed": "Richiesta accesso respinta", + "Failed to dismiss access request": "Impossibile rifiutare la richiesta di accesso", + "Approve": "Approva", "Notification options": "Opzioni di notifica", "Unknown": "Sconosciuto", "Mentions": "Menzioni", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m letto", "{{ hours }}h read": "{{ hours }}h letto", "{{ minutes }}m read": "{{ minutes }} minuti di lettura", - "Manage": "Gestisci", "All members": "Tutti i membri", "Everyone in the workspace": "Tutti nel workspace", "{{ count }} member": "{{ count }} membro", "{{ count }} member_plural": "{{ count }} membri", + "Public link copied to clipboard": "Link pubblico copiato negli appunti", "Only lowercase letters, digits and dashes allowed": "Sono consentite solo lettere minuscole, cifre e trattini", "Sorry, this link has already been used": "Spiacenti, questo link è già stato utilizzato", - "Public link copied to clipboard": "Link pubblico copiato negli appunti", - "Web": "Web", + "Publish to web": "Pubblica su web", "Allow anyone with the link to access": "Consenti a chiunque abbia il link di accedere", "Publish to internet": "Pubblica su internet", - "Search engine indexing": "Indicizzazione nei motori di ricerca", - "Disable this setting to discourage search engines from indexing the page": "Disabilita questa impostazione per scoraggiare i motori di ricerca dall'indicizzare la pagina", - "Email subscriptions": "Iscrizioni via email", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Consenti agli utenti di iscriversi e ricevere notifiche via email quando i documenti vengono aggiornati", - "Show last modified": "Mostra l'ultima modifica", - "Display the last modified timestamp on the shared page": "Mostra la data dell'ultima modifica nella pagina condivisa", - "Show table of contents": "Mostra indice", - "Display the table of contents on documents by default": "Visualizza l'indice dei documenti per impostazione predefinita", "All documents in this collection will be shared on the web, including any new documents added later": "Tutti i documenti in questa raccolta saranno condivisi sul web, inclusi eventuali nuovi documenti aggiunti successivamente", "Invite": "Invita", "{{ userName }} was added to the collection": "{{ userName }} stato aggiunto alla raccolta", @@ -445,8 +447,24 @@ "Switch to dark": "Passa al tema scuro", "Switch to light": "Passa al tema chiaro", "Subscribe to updates": "Iscriviti per ricevere aggiornamenti", + "Logo": "Logo", "Add": "Aggiungi", "Add or invite": "Aggiungi o invita", + "Sharing settings updated": "Impostazioni di condivisione aggiornate", + "Display settings": "Impostazioni di visualizzazione", + "Customize how the published document is displayed": "Personalizza come viene visualizzato il documento pubblicato", + "Image options": "Opzioni dell'immagine", + "Upload": "Carica", + "Site title": "Titolo del sito", + "Show last modified": "Mostra l'ultima modifica", + "Display the last modified timestamp on the shared page": "Mostra la data dell'ultima modifica nella pagina condivisa", + "Show table of contents": "Mostra indice", + "Display the table of contents on documents by default": "Visualizza l'indice dei documenti per impostazione predefinita", + "Behavior": "Comportamento", + "Search engine indexing": "Indicizzazione nei motori di ricerca", + "Disable this setting to discourage search engines from indexing the page": "Disabilita questa impostazione per scoraggiare i motori di ricerca dall'indicizzare la pagina", + "Email subscriptions": "Iscrizioni via email", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Consenti agli utenti di iscriversi e ricevere notifiche via email quando i documenti vengono aggiornati", "Something went wrong": "Qualcosa è andato storto", "Check your email to confirm your subscription": "Controlla la tua email per confermare la tua iscrizione", "Get notified when this document is updated": "Ricevi una notifica quando questo documento viene aggiornat", @@ -465,7 +483,6 @@ "Access inherited from collection": "Accesso ereditato dalla collezione", "{{ userName }} was removed from the document": "È stato rimosso dal documento", "Could not remove user": "Impossibile eliminare l'utente", - "Permissions for {{ userName }} updated": "Permessi aggiornati per {{ userName }}", "Could not update user": "Impossibile aggiornare l'utente", "Has access through <2>parent</2>": "Ha accesso tramite <2>genitori </2>", "Suspended": "Sospeso", @@ -475,14 +492,12 @@ "Leave": "Lascia", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Chiunque abbia il collegamento può accedere perché la raccolta contenente, <2>{sharedParent.sourceTitle}</2>, è condiviso", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Chiunque con il link può accedere perché il documento genitore, <2>{sharedParent.sourceTitle}</2>, è condiviso", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Consenti agli utenti di iscriversi e ricevere notifiche via email quando questo documento viene aggiornato", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "I sottodocumenti non sono condivisi sul web. Attiva la condivisione per abilitare l'accesso, questo sarà il comportamento predefinito in futuro.\n\n\n\n\n\n\n\n\n", "{{ userName }} was added to the document": "È stato aggiunto al documento", "{{ count }} people added to the document": "È stato aggiunto al documento", "{{ count }} people added to the document_plural": "È stato aggiunto al documento", "{{ count }} groups added to the document": "Gruppi aggiunti al documento", "{{ count }} groups added to the document_plural": "Gruppi aggiunti al documento", - "Logo": "Logo", "Expand sidebar": "Espandi barra laterale", "Collapse sidebar": "Nascondi barra laterale", "Archived collections": "Collezioni archiviate", @@ -548,10 +563,18 @@ "Replacement": "Sostituire", "Replace": "Sostituisci", "Replace all": "Sostituisci tutti", + "Go to link": "Vai al link", + "Open link": "Apri collegamento", + "Remove link": "Elimina link", + "Formatting controls": "Controlli di formattazione", + "Search or paste a link": "Cerca o incolla un link", "Image width": "Larghezza immagine", "Width": "Largezza", "Image height": "Altezza immagine", "Height": "Altezza", + "Paste a link": "Incolla un link", + "Delete embed": "Elimina incorporamento", + "Delete image": "Elimina immagine", "Profile picture": "Immagine del profilo", "Create a new doc": "Crea un nuovo documento", "Create a nested doc": "Crea un documento annidato", @@ -561,106 +584,78 @@ "Mention": "Menzione", "Embed": "Incorpora", "Not supported": "Non supportato", + "Sorry, that link won’t work for this embed type": "Siamo spiacenti, questo link non funzionerà per questo tipo di embed", "Upload file": "Carica file", + "Paste a {{service}} link…": "Incolla un link {{service}}…", "More options": "Più opzioni", - "Rename": "Rinomina", - "Insert after": "Inserisci dopo", - "Insert before": "Inserisci prima", - "Move up": "Sposta su", - "Move down": "Sposta giù", - "Move left": "Sposta a sinistra", - "Move right": "Sposta a destra", - "Align center": "Allinea al centro", - "Align left": "Allinea a sinistra", - "Align right": "Allinea a destra", - "Default width": "Larghezza default", - "Full width": "Larghezza massima", - "Bulleted list": "Elenco puntato", - "Todo list": "Elenco attività", - "Show {{ count }} completed": "Mostra {{ count }} completati", - "Show {{ count }} completed_plural": "Mostra {{ count }} completati", - "Hide completed": "Nascondi completati", - "Code block": "Blocco di codice", - "Copied to clipboard": "Copiato negli appunti", - "Code": "Codice", - "Comment": "Commenta", - "Create link": "Crea collegamento", - "Edit image URL": "Modifica URL immagine", - "Sorry, an error occurred creating the link": "Spiacenti, si è verificato un errore durante la creazione del collegamento", - "Create a new child doc": "Crea un nuovo sottodocumento", - "Delete table": "Elimina tabella", + "Type '/' to insert": "Digita '/' per inserire", + "Keep typing to filter": "Continua a digitare per filtrare", + "Replace file": "Sostituisci file", "Delete file": "Elimina file", "Show preview": "Mostra anteprima", - "Download file": "Scarica il file", - "Replace file": "Sostituisci file", - "Delete image": "Elimina immagine", - "Download image": "Scarica immagine", - "Replace image": "Sostituisci immagine", - "Italic": "Corsivo", - "Sorry, that link won’t work for this embed type": "Siamo spiacenti, questo link non funzionerà per questo tipo di embed", - "File attachment": "File allegato", - "Embed PDF": "Incorpora PDF", - "Enter a link": "Inserisci un link", "Big heading": "Titolo grande", "Medium heading": "Titolo medio", "Small heading": "Titolo piccolo", "Extra small heading": "Intestazione molto piccola", - "Heading": "Titolo", - "Divider": "Divisore", - "Image": "Immagine", - "Sorry, an error occurred uploading the file": "Spiacenti, si è verificato un errore durante il caricamento del file", - "Uploading… {{ progress }}%": "Caricamento… {{ progress }}%", - "Write a caption": "Scrivi una descrizione", - "Info": "Informazioni", - "Info notice": "Nota informativa", - "Link": "Collegamento", - "Highlight": "In evidenza", - "Background color": "Colore di sfondo", - "Type '/' to insert": "Digita '/' per inserire", - "Keep typing to filter": "Continua a digitare per filtrare", - "Open link": "Apri collegamento", - "Go to link": "Vai al link", - "Sorry, that type of link is not supported": "Spiacenti, questo tipo di link non è supportato", + "Todo list": "Elenco attività", + "Bulleted list": "Elenco puntato", "Ordered list": "Elenco ordinato", - "Page break": "Interruzione di pagina", - "Paste a link": "Incolla un link", - "Paste a {{service}} link…": "Incolla un link {{service}}…", - "Placeholder": "Segnaposto", - "Quote": "Citazione", - "Remove link": "Elimina link", - "Search or paste a link": "Cerca o incolla un link", - "Strikethrough": "Testo barrato", - "Bold": "Grassetto", - "Subheading": "Sottotitolo", - "Sort ascending": "Ordinamento crescente", - "Sort descending": "Ordinamento decrescente", + "Image": "Immagine", + "Video": "Video", + "Embed PDF": "Incorpora PDF", + "File attachment": "File allegato", "Table": "Tabella", - "Export as CSV": "Esporta in CSV", - "Toggle header": "Attiva/disattiva Intestazione", - "Math inline (LaTeX)": "Matematica espressione in linea (LaTeX)", + "Quote": "Citazione", + "Code block": "Blocco di codice", "Math block (LaTeX)": "Matematica blocco codice (LaTeX)", - "Merge cells": "Unisci celle", - "Split cell": "Dividi cella", - "Tip": "Suggerimento", - "Tip notice": "Nota di suggerimento", - "Warning": "Avviso", - "Warning notice": "Nota di avviso", - "Success": "Successo", - "Success notice": "", + "Toggle block": "Attiva blocco", + "Divider": "Divisore", + "Page break": "Interruzione di pagina", "Current date": "Data corrente", "Current time": "Ora corrente", "Current date and time": "Data e ora correnti", - "Indent": "Rientro", - "Outdent": "Riduci rientro", - "Video": "Video", - "None": "Nessuno", - "Toggle block": "Attiva blocco", - "Add title": "Aggiungi titolo", - "Add content": "Aggiungi contenuto", - "Delete embed": "Elimina incorporamento", - "Formatting controls": "Controlli di formattazione", - "Distribute columns": "Distribuisci colonne", + "Info notice": "Nota informativa", + "Success notice": "", + "Warning notice": "Nota di avviso", + "Tip notice": "Nota di suggerimento", "Wrap text": "Testo a capo", + "Placeholder": "Segnaposto", + "Bold": "Grassetto", + "Italic": "Corsivo", + "Strikethrough": "Testo barrato", + "Background color": "Colore di sfondo", + "None": "Nessuno", + "Highlight": "In evidenza", + "Code": "Codice", + "Heading": "Titolo", + "Subheading": "Sottotitolo", + "Merge cells": "Unisci celle", + "Split cell": "Dividi cella", + "Outdent": "Riduci rientro", + "Indent": "Rientro", + "Create link": "Crea collegamento", + "Comment": "Commenta", + "Align left": "Allinea a sinistra", + "Align center": "Allinea al centro", + "Align right": "Allinea a destra", + "Full width": "Larghezza massima", + "Download image": "Scarica immagine", + "Replace image": "Sostituisci immagine", + "Edit image URL": "Modifica URL immagine", + "Default width": "Larghezza default", + "Distribute columns": "Distribuisci colonne", + "Delete table": "Elimina tabella", + "Export as CSV": "Esporta in CSV", + "Sort ascending": "Ordinamento crescente", + "Sort descending": "Ordinamento decrescente", + "Toggle header": "Attiva/disattiva Intestazione", + "Insert after": "Inserisci dopo", + "Insert before": "Inserisci prima", + "Move left": "Sposta a sinistra", + "Move right": "Sposta a destra", + "Move up": "Sposta su", + "Move down": "Sposta giù", + "Rename": "Rinomina", "Delete Emoji": "Elimina Emoji", "Emoji deleted": "Emoji eliminata", "I'm sure – Delete": "Sono sicuro – Elimina", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "ha reagito con {{ emoji }} al tuo commento su", "shared": "condiviso", "invited you to": "Ti ha invitato a", + "was granted access to": "è stato concesso l'accesso a", + "requested access to": "richiesto accesso a", + "is requesting access to": "sta chiedendo l'accesso a", "Choose a date": "Seleziona una data", "API key created. Please copy the value now as it will not be shown again.": "Chiave API creata. Si prega di copiare il valore ora perché non verrà mostrato di nuovo.", "Scopes": "Ambiti", @@ -828,9 +826,9 @@ "{{userName}} published": "{{userName}} pubblicato", "{{userName}} unpublished": "{{userName}} ha annullato la pubblicazione", "{{userName}} moved": "{{userName}} ha spostato", - "Previous version": "Previous version", + "Previous version": "Versione precedente", "Highlight changes": "Evidenzia modifiche", - "Compare to": "Compare to", + "Compare to": "Confronta con", "No history yet": "Nessuna cronologia", "Revision deleted": "Revisione eliminata", "Current version": "Versione corrente", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Aggiungi il contenuto al documento, quindi utilizza titoli o divisori per suddividerlo in diapositive.", "Learn more": "Altre informazioni", "Backlinks": "Backlink", + "Clear search highlight": "Pulisci evidenziazione ricerca", + "Warning": "Avviso", "This document is large which may affect performance": "Questo documento è grande, potrebbe influenzare le prestazioni", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Sei sicuro? L'eliminazione del documento <em>{{ documentTitle }}</em> cancellerà tutta la sua cronologia</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Sei sicuro? L'eliminazione del documento <em>{{ documentTitle }}</em> cancellerà tutta la sua cronologia e <em>{{ any }} sottodocumento </em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Nessun documento trovato per i tuoi filtri.", "You’ve not got any drafts at the moment.": "Al momento non hai bozze.", "Payment Required": "Pagamento Richiesto", + "Access request sent": "Richiesta di accesso inviata", "No access to this doc": "Non hai accesso a questo documento", - "It doesn’t look like you have permission to access this document.": "Sembra che tu non abbia i permessi per accedere a questo documento", - "Please request access from the document owner.": "Richiedi l'accesso al proprietario del documento", + "Your request to access this document has been sent. You will be notified once access is granted.": "La tua richiesta di accesso a questo documento è stata inviata. Sarai avvisato una volta ottenuto l'accesso.", + "It doesn't look like you have permission to access this document. You can request access.": "Sembra che tu abbia il permesso di accedere a questo documento. Puoi richiedere l'accesso.", + "Access requested": "Accesso richiesto", + "Requesting…": "Richiesta in corso…", + "Request access": "Richiedi l'accesso", "Not found": "Non trovato", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "La pagina che stai cercando non è stata trovata. Potrebbe essere stata eliminata oppure il link non è corretto.", "We were unable to load the document while offline.": "Impossibile caricare il documento offline.", @@ -936,6 +940,7 @@ "Large header": "Intestazione grande", "Medium header": "Intestazione media", "Small header": "Intestazione piccola", + "Link": "Collegamento", "Underline": "Sottolineato", "Undo": "Annulla", "Redo": "Ripristina", @@ -1069,12 +1074,12 @@ "Search titles only": "Cerca solo nei titoli", "Please try again or contact support if the problem persists": "Riprova o contatta l'assistenza se il problema persiste", "No documents found for your search filters.": "Nessun documento trovato per i tuoi filtri.", - "Personal keys": "Personal keys", + "Personal keys": "Chiavi personali", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "Crea chiavi API personali per autenticarti con l'API e controllare a livello di programmazione\n i dati del tuo spazio di lavoro. Per maggiori dettagli, consulta la <em>documentazione per sviluppatori</em>.", "API keys have been disabled by an admin for your account": "Le chiavi API sono state disabilitate da un amministratore per il tuo account", "Application access": "Accesso all'applicazione", "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Gestisci quali applicazioni di terze parti e interne hanno avuto accesso al tuo account {{ appName }}.", - "Could not load API keys": "Could not load API keys", + "Could not load API keys": "Impossibile caricare le chiavi API", "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 <em>developer documentation</em>.": "Le chiavi API possono essere usate per autenticarsi con l'API e controllare programmaticamente i dati\n del tuo spazio di lavoro. Per maggiori dettagli consultare la documentazione <em>dello sviluppatore</em>.", "Application published": "Applicazione pubblicata", @@ -1092,6 +1097,7 @@ "Credentials": "Credenziali", "OAuth client ID": "Id client OAuth", "The public identifier for this app": "L'identificatore pubblico per questa app", + "Copied to clipboard": "Copiato negli appunti", "OAuth client secret": "Segreto client OAuth", "Store this value securely, do not expose it publicly": "Conserva questo valore in modo sicuro, non esporlo pubblicamente", "Where users are redirected after authorizing this app": "Dove vengono reindirizzati gli utenti dopo aver autorizzato questa app", @@ -1134,10 +1140,15 @@ "API key copied to clipboard": "Chiave API copiata negli appunti", "Copied": "Copiato", "Are you sure you want to revoke the {{ tokenName }} token?": "Sei sicuro di voler revocare il token {{ tokenName }}?", - "Key": "Key", - "Created by": "Created by", - "Never": "Never", - "Expires": "Expires", + "Key": "Chiave", + "Created by": "Creato da", + "Never": "Mai", + "Expires": "Scadenza", + "Could not load preference": "Impossibile caricare le preferenze", + "Preferences saved": "Impostazioni salvate", + "Could not save preference": "Impossibile salvare le preferenze", + "Open on startup": "Aprire all'avvio", + "Automatically launch {{ appName }} when you sign in to your computer.": "Lancia automaticamente {{ appName }} quando accedi al computer.", "Disconnect integration": "Disconnetti integrazione", "Disconnecting": "Disconnessione in corso", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Sei sicuro di voler disconnettere l'integrazione con <em>{{ service }}</em>?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Mostra il logo, la descrizione e il marchio del tuo spazio di lavoro sulle pagine condivise pubblicamente.", "Table of contents position": "Posizione dell'indice", "The side to display the table of contents in relation to the main content.": "Il lato in cui visualizzare l'indice in relazione al contenuto principale.", - "Behavior": "Comportamento", "Subdomain": "Sottodominio", "Your workspace will be accessible at": "Il tuo spazio di lavoro sarà accessibile a", "Choose a subdomain to enable a login page just for your team.": "Scegli un sottodominio per abilitare una pagina di accesso solo per il tuo team.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Ricevi una notifica quando ti viene concesso l'accesso a una raccolta", "Export completed": "Esportazione completata", "Receive a notification when an export you requested has been completed": "Ricevi una notifica quando un'esportazione che hai richiesto è stata completata", + "Document access requested": "Accesso al documento richiesto", + "Receive a notification when a user requests access to a document you manage": "Ricevi una notifica quando un utente richiede l'accesso ad un documento che gestisci", "Getting started": "Come iniziare", "Tips on getting started with features and functionality": "Suggerimenti per iniziare a utilizzare le caratteristiche e le funzionalità", "New features": "Nuove funzionalità", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Annullamento dell'iscrizione riuscito. Le tue impostazioni di notifica sono state aggiornate", "Manage when and where you receive email notifications.": "Gestisci quando e dove ricevere le notifiche email.", "All notifications": "Tutte le notifiche", - "Preferences saved": "Impostazioni salvate", "Unread count": "Conteggio dei non letti", "Unread indicator": "Indicatore di messaggi non letti", "Delete account": "Elimina l'account", @@ -1602,7 +1613,7 @@ "All {{ groupName }} events": "Tutti gli eventi del gruppo {{ groupName }}", "Webhook": "Webhook", "Webhook created": "Webhook creato", - "Could not load webhooks": "Could not load webhooks", + "Could not load webhooks": "Impossibile caricare i webhooks", "Webhooks": "Webhooks", "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.": "I webhook possono essere utilizzati per creare notifiche nella tua applicazione quando si verificano eventi in {{appName}}. Gli eventi vengono inviati come richiesta https con un payload JSON quasi in tempo reale.", "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier è una piattaforma che consente a {{appName}} di integrarsi facilmente con migliaia di altri strumenti aziendali. Automatizza i tuoi flussi di lavoro, sincronizza i dati e altro ancora.", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} aggiornato {{ timeAgo }}", "You created {{ timeAgo }}": "Hai creato {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} creato {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Spiacenti, si è verificato un errore durante il caricamento del file", + "Sorry, that type of link is not supported": "Spiacenti, questo tipo di link non è supportato", "Caption": "Didascalia", "Empty diagram": "Diagramma vuoto", "Double click to edit": "Doppio clic per modificare", "Open": "Apri", "Loading": "Caricamento in corso", - "Error loading data": "Errore durante il caricamento dei dati" + "Error loading data": "Errore durante il caricamento dei dati", + "Show {{ count }} completed": "Mostra {{ count }} completati", + "Show {{ count }} completed_plural": "Mostra {{ count }} completati", + "Hide completed": "Nascondi completati", + "Write a caption": "Scrivi una descrizione", + "Add title": "Aggiungi titolo", + "Add content": "Aggiungi contenuto" } diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index 7df8751ba3..3e6ccfc1de 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -169,6 +169,7 @@ "New workspace": "新しいワークスペース", "Create a workspace": "ワークスペースを作成", "Login to workspace": "ワークスペースにログイン", + "template": "template", "Template deleted": "テンプレートが削除されました", "Deleting": "削除中", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "編集中", "Currently viewing": "閲覧中", "Viewed {{ timeAgo }}": "{{ timeAgo }} 前に閲覧済み", + "Uploading… {{ progress }}%": "アップロード中... {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "サポートされていないファイル形式です。PNG、JPG、GIF、WebP を使用してください。", "File size too large. Maximum size is {{ size }}.": "ファイルサイズが大きすぎます。最大サイズは {{ size }} です。", "Click or drag to replace": "クリックまたはドラッグして置き換えます", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "エラーが発生しました", "Click to retry": "再試行", "Back": "戻る", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "管理者", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "{{ userName }} の権限が更新されました", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "通知の設定", "Unknown": "不明", "Mentions": "あなた宛て", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }} ", - "Manage": "管理者", "All members": "全員", "Everyone in the workspace": "ワークスペースにいる全ての人", "{{ count }} member": "{{ count }} 人のメンバー", "{{ count }} member_plural": "{{ count }} 人のメンバー", + "Public link copied to clipboard": "公開リンクをクリップボードにコピーしました", "Only lowercase letters, digits and dashes allowed": "小文字、数字、ダッシュのみ使用できます", "Sorry, this link has already been used": "このリンクは既に使用されています", - "Public link copied to clipboard": "公開リンクをクリップボードにコピーしました", - "Web": "ウェブ", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "リンクを持っている誰もがアクセス可能", "Publish to internet": "インターネットに公開する", - "Search engine indexing": "検索エンジンのインデックス", - "Disable this setting to discourage search engines from indexing the page": "この設定を無効にすると、検索エンジンのインデックス化を防ぐことができます", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "最終更新日を表示", - "Display the last modified timestamp on the shared page": "共有ページに最終更新日時を表示する", - "Show table of contents": "目次を表示", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "招待", "{{ userName }} was added to the collection": "{{ userName }} をコレクションに追加しました", @@ -445,8 +447,24 @@ "Switch to dark": "ダークテーマに切り替え", "Switch to light": "ライトテーマに切り替え", "Subscribe to updates": "Subscribe to updates", + "Logo": "ロゴ", "Add": "追加", "Add or invite": "追加または招待", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "最終更新日を表示", + "Display the last modified timestamp on the shared page": "共有ページに最終更新日時を表示する", + "Show table of contents": "目次を表示", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "動作", + "Search engine indexing": "検索エンジンのインデックス", + "Disable this setting to discourage search engines from indexing the page": "この設定を無効にすると、検索エンジンのインデックス化を防ぐことができます", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "エラーが発生しました", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "コレクションから継承したアクセス", "{{ userName }} was removed from the document": "{{ userName }} がドキュメントから削除されました", "Could not remove user": "このユーザーを削除することはできません。", - "Permissions for {{ userName }} updated": "{{ userName }} の権限が更新されました", "Could not update user": "ユーザーを更新できませんでした", "Has access through <2>parent</2>": "<2>親ドキュメント</2>を通じてアクセス可能", "Suspended": "保留中", @@ -475,14 +492,12 @@ "Leave": "退出する", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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 }} 人をドキュメントに追加しました", "{{ count }} people added to the document_plural": "{{ count }} 人をドキュメントに追加しました", "{{ count }} groups added to the document": "{{ count }} グループをドキュメントに追加しました", "{{ count }} groups added to the document_plural": "{{ count }} グループをドキュメントに追加しました", - "Logo": "ロゴ", "Expand sidebar": "サイドバーを開く", "Collapse sidebar": "サイドバーを閉じる", "Archived collections": "アーカイブされたコレクション", @@ -548,10 +563,18 @@ "Replacement": "置換する", "Replace": "置換", "Replace all": "全て置換", + "Go to link": "リンクへ移動", + "Open link": "リンクを開く", + "Remove link": "リンクを削除", + "Formatting controls": "書式設定", + "Search or paste a link": "リンクを検索または貼り付ける", "Image width": "画像の幅", "Width": "幅", "Image height": "画像の高さ", "Height": "高さ", + "Paste a link": "リンクを貼り付け", + "Delete embed": "埋め込みを削除", + "Delete image": "画像を削除", "Profile picture": "プロフィール画像", "Create a new doc": "ドキュメントを作成", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "メンション", "Embed": "埋め込み", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "この埋め込みではリンクが機能しません", "Upload file": "Upload file", + "Paste a {{service}} link…": "{{service}} のリンクを貼り付ける", "More options": "詳細設定", - "Rename": "名前を変更", - "Insert after": "下に挿入", - "Insert before": "上に挿入", - "Move up": "上に移動", - "Move down": "下に移動", - "Move left": "左に移動", - "Move right": "右に移動", - "Align center": "中央揃え", - "Align left": "左揃え", - "Align right": "右揃え", - "Default width": "デフォルトの幅", - "Full width": "左右の余白を縮小", - "Bulleted list": "箇条書きリスト", - "Todo list": "タスク一覧", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "コードブロック", - "Copied to clipboard": "クリップボードにコピー", - "Code": "コード", - "Comment": "コメント", - "Create link": "リンクを作成", - "Edit image URL": "画像のURLを編集", - "Sorry, an error occurred creating the link": "リンクの作成に失敗しました", - "Create a new child doc": "ドキュメントを作成", - "Delete table": "テーブルを削除", + "Type '/' to insert": "文字を入力するか、「/」でコマンドを呼び出します...", + "Keep typing to filter": "入力を続けてフィルターを適用", + "Replace file": "ファイルを置換", "Delete file": "ファイルを削除", "Show preview": "Show preview", - "Download file": "ファイルをダウンロード", - "Replace file": "ファイルを置換", - "Delete image": "画像を削除", - "Download image": "画像をダウンロード", - "Replace image": "画像を置換", - "Italic": "斜体", - "Sorry, that link won’t work for this embed type": "この埋め込みではリンクが機能しません", - "File attachment": "ファイル添付", - "Embed PDF": "埋め込みPDF", - "Enter a link": "リンクを入力", "Big heading": "見出し1", "Medium heading": "見出し2", "Small heading": "見出し3", "Extra small heading": "追加の小さな見出し", - "Heading": "見出し", - "Divider": "区切り線", - "Image": "画像", - "Sorry, an error occurred uploading the file": "ファイルのアップロード中にエラーが発生しました", - "Uploading… {{ progress }}%": "アップロード中... {{ progress }}%", - "Write a caption": "脚注を書く", - "Info": "情報", - "Info notice": "アラート - INFO", - "Link": "リンク", - "Highlight": "ハイライト", - "Background color": "背景色", - "Type '/' to insert": "文字を入力するか、「/」でコマンドを呼び出します...", - "Keep typing to filter": "入力を続けてフィルターを適用", - "Open link": "リンクを開く", - "Go to link": "リンクへ移動", - "Sorry, that type of link is not supported": "このリンクは現在未対応です", + "Todo list": "タスク一覧", + "Bulleted list": "箇条書きリスト", "Ordered list": "番号付きリスト", - "Page break": "ページ区切り", - "Paste a link": "リンクを貼り付け", - "Paste a {{service}} link…": "{{service}} のリンクを貼り付ける", - "Placeholder": "プレースホルダー", - "Quote": "引用", - "Remove link": "リンクを削除", - "Search or paste a link": "リンクを検索または貼り付ける", - "Strikethrough": "取り消し線", - "Bold": "太字", - "Subheading": "小見出し", - "Sort ascending": "昇順に並べ替え", - "Sort descending": "降順にソート", + "Image": "画像", + "Video": "動画", + "Embed PDF": "埋め込みPDF", + "File attachment": "ファイル添付", "Table": "表", - "Export as CSV": "CSV 形式でエクスポート", - "Toggle header": "ヘッダーの切り替え", - "Math inline (LaTeX)": "インライン数式 (LaTeX)", + "Quote": "引用", + "Code block": "コードブロック", "Math block (LaTeX)": "ブロック数式 (LaTeX)", - "Merge cells": "セルを結合", - "Split cell": "セルを分割", - "Tip": "ヒント", - "Tip notice": "アラート - TIP", - "Warning": "警告", - "Warning notice": "アラート - WARNING", - "Success": "成功しました", - "Success notice": "アラート - SUCCESS", + "Toggle block": "Toggle block", + "Divider": "区切り線", + "Page break": "ページ区切り", "Current date": "現在の日付", "Current time": "現在の時刻", "Current date and time": "現在の日時", - "Indent": "インデント", - "Outdent": "インデント解除", - "Video": "動画", - "None": "なし", - "Toggle block": "Toggle block", - "Add title": "タイトルを追加", - "Add content": "コンテンツを追加", - "Delete embed": "埋め込みを削除", - "Formatting controls": "書式設定", - "Distribute columns": "Distribute columns", + "Info notice": "アラート - INFO", + "Success notice": "アラート - SUCCESS", + "Warning notice": "アラート - WARNING", + "Tip notice": "アラート - TIP", "Wrap text": "Wrap text", + "Placeholder": "プレースホルダー", + "Bold": "太字", + "Italic": "斜体", + "Strikethrough": "取り消し線", + "Background color": "背景色", + "None": "なし", + "Highlight": "ハイライト", + "Code": "コード", + "Heading": "見出し", + "Subheading": "小見出し", + "Merge cells": "セルを結合", + "Split cell": "セルを分割", + "Outdent": "インデント解除", + "Indent": "インデント", + "Create link": "リンクを作成", + "Comment": "コメント", + "Align left": "左揃え", + "Align center": "中央揃え", + "Align right": "右揃え", + "Full width": "左右の余白を縮小", + "Download image": "画像をダウンロード", + "Replace image": "画像を置換", + "Edit image URL": "画像のURLを編集", + "Default width": "デフォルトの幅", + "Distribute columns": "Distribute columns", + "Delete table": "テーブルを削除", + "Export as CSV": "CSV 形式でエクスポート", + "Sort ascending": "昇順に並べ替え", + "Sort descending": "降順にソート", + "Toggle header": "ヘッダーの切り替え", + "Insert after": "下に挿入", + "Insert before": "上に挿入", + "Move left": "左に移動", + "Move right": "右に移動", + "Move up": "上に移動", + "Move down": "下に移動", + "Rename": "名前を変更", "Delete Emoji": "絵文字を削除", "Emoji deleted": "絵文字を削除しました", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "あなたのコメントに {{ emoji }} が付きました", "shared": "共有済み", "invited you to": "あなたを招待しました", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "日付を選択", "API key created. Please copy the value now as it will not be shown again.": "API キーが作成されました。再度表示されないため、今すぐ値をコピーしてください。", "Scopes": "スコープ", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "ハイパーリンク", + "Clear search highlight": "Clear search highlight", + "Warning": "警告", "This document is large which may affect performance": "このドキュメントはパフォーマンスに影響を与える可能性があります", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "<em>{{ documentTitle }}</em>ドキュメントを削除すると、その履歴もすべて削除されます。このまま続けますか?", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "<em>{{ documentTitle }}</em> ドキュメントを削除すると、その履歴と <em>ドキュメント内の{{ any }} </em>も全て削除されます。よろしいですか?", @@ -885,9 +885,13 @@ "No documents found for your filters.": "検索結果はありませんでした。", "You’ve not got any drafts at the moment.": "下書きはありません", "Payment Required": "支払いが必要です", + "Access request sent": "Access request sent", "No access to this doc": "このドキュメントにアクセスできません", - "It doesn’t look like you have permission to access this document.": "このドキュメントにアクセスする権限がないようです。", - "Please request access from the document owner.": "ドキュメント所有者にアクセスをリクエストしてください。", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "見つかりません", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "お探しのページが見つかりません。削除されたか、リンクが正しくありません。", "We were unable to load the document while offline.": "インターネットに接続していない状態でドキュメントを読み込むことができません。", @@ -936,6 +940,7 @@ "Large header": "大見出し", "Medium header": "中見出し", "Small header": "小見出し", + "Link": "リンク", "Underline": "下線", "Undo": "元に戻す", "Redo": "やり直し", @@ -1092,6 +1097,7 @@ "Credentials": "認証情報", "OAuth client ID": "OAuthクライアントID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "クリップボードにコピー", "OAuth client secret": "OAuthクライアントシークレット", "Store this value securely, do not expose it publicly": "この値を安全に保管し、公開しないこと", "Where users are redirected after authorizing this app": "ユーザーがこのアプリを承認した後にリダイレクトされる場所", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "設定を保存しました", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "連携を解除", "Disconnecting": "切断中", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "ワークスペースのロゴ、説明、およびブランディングを公開共有ページに表示します。", "Table of contents position": "目次位置", "The side to display the table of contents in relation to the main content.": "目次を表示する場所", - "Behavior": "動作", "Subdomain": "サブドメイン", "Your workspace will be accessible at": "あなたのワークスペースは次のドメインでアクセスできます", "Choose a subdomain to enable a login page just for your team.": "サブドメインを選択して、チーム専用のログインページを有効にします。", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "コレクションへのアクセスが付与されたときに通知を受け取る", "Export completed": "エクスポート完了", "Receive a notification when an export you requested has been completed": "エクスポートが完了したときに通知を受け取る", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "はじめに", "Tips on getting started with features and functionality": "機能を使いこなすためのヒント", "New features": "新機能", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "通知を解除しました。", "Manage when and where you receive email notifications.": "メール通知を管理する", "All notifications": "All notifications", - "Preferences saved": "設定を保存しました", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "アカウントの削除", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} が {{ timeAgo }} に更新しました", "You created {{ timeAgo }}": "あなたが {{ timeAgo }} に作成しました", "{{ user }} created {{ timeAgo }}": "{{ user }} が {{ timeAgo }} に作成しました", + "Sorry, an error occurred uploading the file": "ファイルのアップロード中にエラーが発生しました", + "Sorry, that type of link is not supported": "このリンクは現在未対応です", "Caption": "Caption", "Empty diagram": "空のダイアグラム", "Double click to edit": "ダブルクリックで編集", "Open": "開く", "Loading": "ローディング", - "Error loading data": "データ読込エラー" + "Error loading data": "データ読込エラー", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "脚注を書く", + "Add title": "タイトルを追加", + "Add content": "コンテンツを追加" } diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index 27db2a1317..857721e5d8 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -43,7 +43,7 @@ "Mark as resolved": "해결됨으로 표시", "Thread resolved": "스레드 해결됨", "Mark as unresolved": "미해결로 표시", - "View reactions": "컬렉션 보기", + "View reactions": "반응 보기", "Reactions": "반응", "Copy ID": "ID 복사", "Clear IndexedDB cache": "IndexedDB 캐시 삭제", @@ -91,7 +91,7 @@ "Print": "인쇄", "Print document": "문서 인쇄", "Open in desktop app": "데스크톱 앱에서 열기", - "Present": "발표하다", + "Present": "프레젠테이션", "Present document": "제시 문서", "Templatize": "템플릿화", "Create template": "템플릿 만들기", @@ -169,6 +169,7 @@ "New workspace": "새 워크스페이스", "Create a workspace": "워크스페이스 만들기", "Login to workspace": "워크스페이스에 로그인", + "template": "template", "Template deleted": "템플릿이 삭제됨", "Deleting": "삭제 중", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "정말로 진행할까요? <em>{{ templateName }}</em> 템플릿을 삭제하면 되돌릴 수 없습니다.", @@ -298,6 +299,7 @@ "Currently editing": "현재 수정 중", "Currently viewing": "현재 보는 중", "Viewed {{ timeAgo }}": "{{ timeAgo }} 전에 봄", + "Uploading… {{ progress }}%": "업로드 중… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "지원되지 않는 파일 형식입니다. PNG, JPG, GIF 또는 WebP 형식을 사용해 주세요.", "File size too large. Maximum size is {{ size }}.": "파일 크기가 너무 큽니다. 최대 크기는 {{ size }}입니다.", "Click or drag to replace": "클릭하거나 드래그하여 교체", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "죄송합니다. 오류가 발생했습니다.", "Click to retry": "클릭하여 재시도하기", "Back": "뒤로 가기", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "관리", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "{{ userName }} 에 대한 권한 업데이트됨", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "알림 옵션", "Unknown": "알 수 없음", "Mentions": "멘션", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "읽는 데 {{ hours }}시간 {{ minutes }}분", "{{ hours }}h read": "{{ hours }}시 읽음", "{{ minutes }}m read": "{{ minutes }}분 전에 읽음", - "Manage": "관리", "All members": "모든 구성원", "Everyone in the workspace": "워크스페이스의 모든 구성원", "{{ count }} member": "{{ count }}명", "{{ count }} member_plural": "{{ count }}명", + "Public link copied to clipboard": "공개 링크를 클립보드에 복사했습니다", "Only lowercase letters, digits and dashes allowed": "소문자, 숫자, 대시만 허용됩니다.", "Sorry, this link has already been used": "죄송하지만, 이 링크는 이미 사용중입니다.", - "Public link copied to clipboard": "공개 링크를 클립보드에 복사했습니다", - "Web": "웹", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "링크가 있는 모든 사람에 대해 접근 허용", "Publish to internet": "인터넷에 게시", - "Search engine indexing": "검색 엔진 인덱싱 허용", - "Disable this setting to discourage search engines from indexing the page": "검색 엔진이 페이지를 인덱싱하지 못하도록 하려면 이 옵션을 비활성화 합니다", - "Email subscriptions": "이메일 구독", - "Allow viewers to subscribe and receive email notifications when documents are updated": "시청자가 구독하고 문서가 업데이트될 때 이메일 알림을 받을 수 있도록 허용합니다.", - "Show last modified": "최종 수정일 표시", - "Display the last modified timestamp on the shared page": "공유 페이지에 마지막으로 수정된 타임스탬프 표시", - "Show table of contents": "목차 표시", - "Display the table of contents on documents by default": "기본적으로 문서의 목차 표시", "All documents in this collection will be shared on the web, including any new documents added later": "이 컬렉션의 모든 문서는 나중에 추가된 새 문서를 포함하여 웹에서 공유됨", "Invite": "초대", "{{ userName }} was added to the collection": "{{ userName }}님이 컬렉션에 추가됨", @@ -445,11 +447,27 @@ "Switch to dark": "어두운테마로 변경", "Switch to light": "밝은테마로 변경", "Subscribe to updates": "새로운 소식 구독하기", + "Logo": "로고", "Add": "추가", "Add or invite": "추가 또는 초대", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "최종 수정일 표시", + "Display the last modified timestamp on the shared page": "공유 페이지에 마지막으로 수정된 타임스탬프 표시", + "Show table of contents": "목차 표시", + "Display the table of contents on documents by default": "기본적으로 문서의 목차 표시", + "Behavior": "동작", + "Search engine indexing": "검색 엔진 인덱싱 허용", + "Disable this setting to discourage search engines from indexing the page": "검색 엔진이 페이지를 인덱싱하지 못하도록 하려면 이 옵션을 비활성화 합니다", + "Email subscriptions": "이메일 구독", + "Allow viewers to subscribe and receive email notifications when documents are updated": "시청자가 구독하고 문서가 업데이트될 때 이메일 알림을 받을 수 있도록 허용합니다.", "Something went wrong": "문제가 발생했습니다", "Check your email to confirm your subscription": "이메일 확인해서 구독을 확정하세요", - "Get notified when this document is updated": "이 문서가 갱신되었을 때 알림을 받기", + "Get notified when this document is updated": "이 문서가 갱신되었을 때 알림을 받습니다", "Email address": "이메일 주소", "Viewer": "뷰어", "Editor": "편집기", @@ -465,7 +483,6 @@ "Access inherited from collection": "컬렉션으로부터 상속된 접근 권한", "{{ userName }} was removed from the document": "{{ userName }}님이 문서에서 제거됨", "Could not remove user": "사용자를 제거할 수 없습니다", - "Permissions for {{ userName }} updated": "{{ userName }} 에 대한 권한 업데이트됨", "Could not update user": "사용자 정보를 업데이트하지 못했습니다.", "Has access through <2>parent</2>": "<2>상위 문서</2> 권한 설정으로 인해 접근 가능", "Suspended": "사용 중지됨", @@ -475,14 +492,12 @@ "Leave": "나가기", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "<2>{sharedParent.sourceTitle}</2> 컬렉션이 공유되어 있어, 링크를 가진 누구나 접근할 수 있음", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "상위 문서 <2>{sharedParent.sourceTitle}</2> 공유로 인해 링크가 있는 누구나 접근할 수 있음", - "Allow viewers to subscribe and receive email notifications when this document is updated": "시청자가 구독하고 이 문서가 업데이트될 때 이메일 알림을 받을 수 있도록 허용합니다.", "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 }}님이 문서에 추가됨", "{{ count }} people added to the document": "{{ count }} 명이 문서에 추가됨", "{{ count }} people added to the document_plural": "{{ count }} 명이 문서에 추가됨", "{{ count }} groups added to the document": "{{ count }} 개의 그룹이 문서에 추가됨", "{{ count }} groups added to the document_plural": "{{ count }} 개의 그룹이 문서에 추가됨", - "Logo": "로고", "Expand sidebar": "사이드바 펼치기", "Collapse sidebar": "사이드바 축소", "Archived collections": "보관된 컬렉션", @@ -548,10 +563,18 @@ "Replacement": "대체", "Replace": "바꾸기", "Replace all": "모두 바꾸기", + "Go to link": "링크로 이동", + "Open link": "링크 열기", + "Remove link": "링크 삭제", + "Formatting controls": "포맷 제어", + "Search or paste a link": "링크 검색 또는 붙여넣기", "Image width": "이미지 너비", "Width": "너비", "Image height": "이미지 높이", "Height": "높이", + "Paste a link": "링크 붙여 넣기", + "Delete embed": "임베드 삭제", + "Delete image": "이미지 삭제", "Profile picture": "프로필 사진", "Create a new doc": "새 문서 만들기", "Create a nested doc": "하위 문서 생성", @@ -561,106 +584,78 @@ "Mention": "언급됨", "Embed": "내장", "Not supported": "지원되지 않음", + "Sorry, that link won’t work for this embed type": "죄송합니다, 해당 링크를 이 임베드 유형에서 사용할 수 없습니다", "Upload file": "파일 업로드", + "Paste a {{service}} link…": "{{service}} 링크 붙여 넣기…", "More options": "더 많은 옵션", - "Rename": "이름변경", - "Insert after": "다음에 삽입", - "Insert before": "이전에 삽입", - "Move up": "위로 이동", - "Move down": "아래로 이동", - "Move left": "왼쪽으로 이동", - "Move right": "오른쪽으로 이동", - "Align center": "가운데 정렬", - "Align left": "왼쪽 정렬", - "Align right": "오른쪽 정렬", - "Default width": "기본 너비", - "Full width": "전체 너비", - "Bulleted list": "글머리 기호 목록", - "Todo list": "작업 목록", - "Show {{ count }} completed": "{{ count }}건 완료 표시", - "Show {{ count }} completed_plural": "{{ count }}건 완료 표시", - "Hide completed": "완료 숨기기", - "Code block": "코드블럭", - "Copied to clipboard": "클립보드에 복사되었습니다", - "Code": "코드", - "Comment": "댓글", - "Create link": "링크 생성", - "Edit image URL": "이미지 URL 수정", - "Sorry, an error occurred creating the link": "죄송합니다, 링크 생성 중 에러가 발생했습니다", - "Create a new child doc": "새 하위 문서 생성", - "Delete table": "테이블 삭제", + "Type '/' to insert": "삽입하려면 '/'를 입력하세요.", + "Keep typing to filter": "찾으실 항목을 입력해 주세요", + "Replace file": "파일 바꾸기", "Delete file": "파일 삭제", "Show preview": "미리보기 표시", - "Download file": "파일 다운로드", - "Replace file": "파일 바꾸기", - "Delete image": "이미지 삭제", - "Download image": "이미지 다운로드", - "Replace image": "이미지 교체", - "Italic": "이탤릭체", - "Sorry, that link won’t work for this embed type": "죄송합니다, 해당 링크를 이 임베드 유형에서 사용할 수 없습니다", - "File attachment": "첨부 파일", - "Embed PDF": "PDF 삽입", - "Enter a link": "링크 입력", "Big heading": "큰 제목", "Medium heading": "중간 제목", "Small heading": "작은 제목", "Extra small heading": "아주 작은 제목", - "Heading": "제목", - "Divider": "구분선", - "Image": "이미지", - "Sorry, an error occurred uploading the file": "죄송합니다. 파일 업로드 중 에러가 발생했습니다", - "Uploading… {{ progress }}%": "업로드 중… {{ progress }}%", - "Write a caption": "캡션 입력", - "Info": "정보", - "Info notice": "정보 공지", - "Link": "링크", - "Highlight": "강조", - "Background color": "배경색", - "Type '/' to insert": "삽입하려면 '/'를 입력하세요.", - "Keep typing to filter": "찾으실 항목을 입력해 주세요", - "Open link": "링크 열기", - "Go to link": "링크로 이동", - "Sorry, that type of link is not supported": "죄송합니다. 이런 종류의 링크는 아직 지원되지 않습니다.", + "Todo list": "작업 목록", + "Bulleted list": "글머리 기호 목록", "Ordered list": "번호가 있는 목록", - "Page break": "페이지 나누기", - "Paste a link": "링크 붙여 넣기", - "Paste a {{service}} link…": "{{service}} 링크 붙여 넣기…", - "Placeholder": "플레이스홀더", - "Quote": "인용구", - "Remove link": "링크 삭제", - "Search or paste a link": "링크 검색 또는 붙여넣기", - "Strikethrough": "취소선", - "Bold": "굵게", - "Subheading": "부제목", - "Sort ascending": "오름차순 정렬", - "Sort descending": "내림차순 정렬", + "Image": "이미지", + "Video": "동영상", + "Embed PDF": "PDF 삽입", + "File attachment": "첨부 파일", "Table": "표", - "Export as CSV": "CSV로 내보내기", - "Toggle header": "토글 제목", - "Math inline (LaTeX)": "인라인 수식 (LaTeX)", + "Quote": "인용구", + "Code block": "코드블럭", "Math block (LaTeX)": "수식 블록 (LaTeX)", - "Merge cells": "셀 병합", - "Split cell": "셀 나누기", - "Tip": "팁", - "Tip notice": "팁 공지", - "Warning": "주의", - "Warning notice": "주의 공지", - "Success": "성공", - "Success notice": "성공 안내", + "Toggle block": "블록 전환", + "Divider": "구분선", + "Page break": "페이지 나누기", "Current date": "현재 날짜", "Current time": "현재 시간", "Current date and time": "현재 날짜 및 시간", - "Indent": "들여쓰기", - "Outdent": "내어쓰기", - "Video": "동영상", - "None": "없음", - "Toggle block": "블록 전환", - "Add title": "제목 추가", - "Add content": "콘텐츠 추가", - "Delete embed": "임베드 삭제", - "Formatting controls": "포맷 제어", - "Distribute columns": "열 배분", + "Info notice": "정보 공지", + "Success notice": "성공 안내", + "Warning notice": "주의 공지", + "Tip notice": "팁 공지", "Wrap text": "텍스트 줄바꿈", + "Placeholder": "플레이스홀더", + "Bold": "굵게", + "Italic": "이탤릭체", + "Strikethrough": "취소선", + "Background color": "배경색", + "None": "없음", + "Highlight": "강조", + "Code": "코드", + "Heading": "제목", + "Subheading": "부제목", + "Merge cells": "셀 병합", + "Split cell": "셀 나누기", + "Outdent": "내어쓰기", + "Indent": "들여쓰기", + "Create link": "링크 생성", + "Comment": "댓글", + "Align left": "왼쪽 정렬", + "Align center": "가운데 정렬", + "Align right": "오른쪽 정렬", + "Full width": "전체 너비", + "Download image": "이미지 다운로드", + "Replace image": "이미지 교체", + "Edit image URL": "이미지 URL 수정", + "Default width": "기본 너비", + "Distribute columns": "열 배분", + "Delete table": "테이블 삭제", + "Export as CSV": "CSV로 내보내기", + "Sort ascending": "오름차순 정렬", + "Sort descending": "내림차순 정렬", + "Toggle header": "토글 제목", + "Insert after": "다음에 삽입", + "Insert before": "이전에 삽입", + "Move left": "왼쪽으로 이동", + "Move right": "오른쪽으로 이동", + "Move up": "위로 이동", + "Move down": "아래로 이동", + "Rename": "이름변경", "Delete Emoji": "이모지 삭제", "Emoji deleted": "이모지 삭제됨", "I'm sure – Delete": "확실합니다 – 삭제", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "{{ emoji }}로 댓글에 반응함", "shared": "공유됨", "invited you to": "당신을 초대하였습니다:", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "날짜를 선택하세요", "API key created. Please copy the value now as it will not be shown again.": "API 키가 생성되었습니다. 지금 값을 복사해 두세요. 이후에는 다시 표시되지 않습니다.", "Scopes": "범위", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "문서에 내용을 추가한 다음, 제목이나 구분선을 사용하여 슬라이드로 나누세요.", "Learn more": "자세히", "Backlinks": "백링크", + "Clear search highlight": "Clear search highlight", + "Warning": "주의", "This document is large which may affect performance": "이 문서의 크기가 커서 성능에 영향을 줄 수 있음", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "정말 <em>{{ documentTitle }}</em> 문서를 삭제하시겠습니까? 문서를 삭제하면 모든 이력이 삭제됩니다.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "정말 <em>{{ documentTitle }}</em> 문서를 삭제하시겠습니까? 문서를 삭제하면 모든 이력과 <em>{{ any }} 하위 문서들</em>이 삭제됩니다.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "검색조건과 맞는 문서를 찾을 수 없습니다.", "You’ve not got any drafts at the moment.": "현재 임시보관 된 문서가 없습니다.", "Payment Required": "결제 필요", + "Access request sent": "Access request sent", "No access to this doc": "이 문서에 접근할 수 없음", - "It doesn’t look like you have permission to access this document.": "이 문서에 접근할 수 있는 권한이 없는 것 같습니다.", - "Please request access from the document owner.": "문서 소유자에게 접근 권한을 요청하세요.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "찾을 수 없음", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "찾고 있는 페이지를 찾을 수 없습니다. 삭제되었거나 링크가 올바르지 않을 수 있습니다.", "We were unable to load the document while offline.": "오프라인 상태에서는 문서를 불러 올 수 없습니다.", @@ -936,6 +940,7 @@ "Large header": "큰 제목", "Medium header": "중간 제목", "Small header": "작은 제목", + "Link": "링크", "Underline": "밑줄", "Undo": "실행 취소", "Redo": "복원하기", @@ -1069,7 +1074,7 @@ "Search titles only": "제목에서만 찾기", "Please try again or contact support if the problem persists": "다시 한 번 시도해 보시고 문제가 계속된다면 문의해주세요", "No documents found for your search filters.": "검색조건과 맞는 문서를 찾을 수 없습니다.", - "Personal keys": "Personal keys", + "Personal keys": "개인 키", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "개인 API 키를 생성하여 API를 인증하고 작업 공간 데이터를 프로그래밍 방식으로 제어하세요.\n 자세한 내용은 <em>개발자 문서</em>를 참조하세요.", "API keys have been disabled by an admin for your account": "관리자가 귀하의 계정에 대한 API 키를 비활성화했습니다.", "Application access": "애플리케이션 액세스", @@ -1092,6 +1097,7 @@ "Credentials": "자격 증명", "OAuth client ID": "OAuth 클라이언트 ID", "The public identifier for this app": "이 앱의 공개 식별자", + "Copied to clipboard": "클립보드에 복사되었습니다", "OAuth client secret": "OAuth 클라이언트 시크릿", "Store this value securely, do not expose it publicly": "이 값을 안전하게 저장하고 공개적으로 노출하지 마세요.", "Where users are redirected after authorizing this app": "이 앱을 승인한 후 사용자가 리디렉션되는 위치", @@ -1104,7 +1110,7 @@ "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "이 인증 공급자를 제거하면 회원이 {{ authProvider }}를 사용하여 로그인할 수 없게 됩니다.", "Disable group sync": "그룹 동기화 비활", "Manage how members sign-in to your workspace and which authentication providers are enabled.": "작업공간에 멤버가 로그인하는 방법과 사용 가능한 인증 공급자를 관리하세요.", - "Allow members to sign-in with {{ authProvider }}": "멤버가 {{ authProvider }} 으로 로그인하도록 허용", + "Allow members to sign-in with {{ authProvider }}": "멤버가 {{ authProvider }} 계정으로 로그인 허용", "Connect {{ authProvider }} to allow members to sign-in": "멤버들이 로그인할 수 있도록 {{ authProvider }}를 연결하세요", "Connected": "연결됨", "Disabled": "비활성화됨", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "설정 저장됨", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "통합 해제", "Disconnecting": "연결을 해제하는 중", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "서비스 <em>{{ service }}</em>와 통합을 해제하시겠습니까?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "공개로 공유된 페이지에 워크스페이스 로고, 설명 및 브랜딩을 표시합니다.", "Table of contents position": "목차 위치", "The side to display the table of contents in relation to the main content.": "본문에 관한 목차를 표시할 위치입니다.", - "Behavior": "동작", "Subdomain": "하위 도메인", "Your workspace will be accessible at": "워크스페이스는 다음에서 액세스할 수 있습니다.", "Choose a subdomain to enable a login page just for your team.": "팀 전용 로그인 페이지를 활성화하려면 하위 도메인을 선택하십시오.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "컬렉션 접근 권한이 부여되면 알림을 받습니다", "Export completed": "내보내기 완료", "Receive a notification when an export you requested has been completed": "요청한 내보내기가 완료되면 알림을 받습니다", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "시작하기", "Tips on getting started with features and functionality": "기능과 특징을 시작하기 위한 팁", "New features": "새로운 기능", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "구독 취소에 성공했습니다. 알림 설정이 업데이트되었습니다.", "Manage when and where you receive email notifications.": "이메일 알림을 받는 시기와 장소를 관리합니다.", "All notifications": "모든 알림", - "Preferences saved": "설정 저장됨", "Unread count": "안 읽은 횟수", "Unread indicator": "읽지 않음 표시", "Delete account": "계정 삭제", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} 업데이트 됨 {{ timeAgo }}", "You created {{ timeAgo }}": "{{ timeAgo }} 전에 내가 생성함", "{{ user }} created {{ timeAgo }}": "{{ user }}님이 {{ timeAgo }} 전에 생성", + "Sorry, an error occurred uploading the file": "죄송합니다. 파일 업로드 중 에러가 발생했습니다", + "Sorry, that type of link is not supported": "죄송합니다. 이런 종류의 링크는 아직 지원되지 않습니다.", "Caption": "캡션", "Empty diagram": "빈 다이어그램", "Double click to edit": "두 번 클릭하여 편집", "Open": "열기", "Loading": "로딩 중", - "Error loading data": "데이터 로딩 오류" + "Error loading data": "데이터 로딩 오류", + "Show {{ count }} completed": "{{ count }}건 완료 표시", + "Show {{ count }} completed_plural": "{{ count }}건 완료 표시", + "Hide completed": "완료 숨기기", + "Write a caption": "캡션 입력", + "Add title": "제목 추가", + "Add content": "콘텐츠 추가" } diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index 887e717f74..dd42680ed3 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -169,6 +169,7 @@ "New workspace": "Nytt arbeidsområde", "Create a workspace": "Opprett et arbeidsområde", "Login to workspace": "Logg inn i arbeidsområdet", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Sletter", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Redigerer nå", "Currently viewing": "Ser nå", "Viewed {{ timeAgo }}": "Sett {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Beklager, det oppstod en feil.", "Click to retry": "Klikk for å prøve igjen", "Back": "Tilbake", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Administrer", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Tillatelser for {{ userName }} er oppdatert", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Ukjent", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }} min. lesetid", - "Manage": "Administrer", "All members": "Alle medlemmer", "Everyone in the workspace": "Alle i arbeidsområdet", "{{ count }} member": "{{ count }} medlem", "{{ count }} member_plural": "{{ count }} medlemmer", + "Public link copied to clipboard": "Offentlig lenke kopiert til utklippstavlen", "Only lowercase letters, digits and dashes allowed": "Kun små bokstaver, sifre og bindestreker tillatt", "Sorry, this link has already been used": "Beklager, denne lenken har allerede blitt brukt", - "Public link copied to clipboard": "Offentlig lenke kopiert til utklippstavlen", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Tillat alle med lenken å få tilgang til", "Publish to internet": "Publiser til internett", - "Search engine indexing": "Søkemotorindeksering", - "Disable this setting to discourage search engines from indexing the page": "Deaktiver denne innstillingen for å fraråde søkemotorer til å indeksere denne siden", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Vis sist endret", - "Display the last modified timestamp on the shared page": "Vis sist endret tidsstempel på den delte siden", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "Alle dokumenter i denne samlingen deles på nettet, inkludert eventuelle nye dokumenter som legges til senere", "Invite": "Inviter", "{{ userName }} was added to the collection": "{{ userName }} ble lagt til i samlingen", @@ -445,8 +447,24 @@ "Switch to dark": "Bytt til mørkt", "Switch to light": "Bytt til lyst", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Legg til", "Add or invite": "Legg til eller inviter", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Vis sist endret", + "Display the last modified timestamp on the shared page": "Vis sist endret tidsstempel på den delte siden", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Oppførsel", + "Search engine indexing": "Søkemotorindeksering", + "Disable this setting to discourage search engines from indexing the page": "Deaktiver denne innstillingen for å fraråde søkemotorer til å indeksere denne siden", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Noe gikk galt", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Tilgang arvet fra samlingen", "{{ userName }} was removed from the document": "{{ userName }} ble fjernet fra dokumentet", "Could not remove user": "Kunne ikke fjerne bruker", - "Permissions for {{ userName }} updated": "Tillatelser for {{ userName }} er oppdatert", "Could not update user": "Kunne ikke oppdatere bruker", "Has access through <2>parent</2>": "Har tilgang gjennom <2>foreldre</2>", "Suspended": "Suspendert", @@ -475,14 +492,12 @@ "Leave": "Forlat", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Alle med lenken får tilgang til fordi den inneholder samlingen, <2>{sharedParent.sourceTitle}</2>, deles", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Alle med lenken får tilgang til fordi det overordnede dokumentet, <2>{sharedParent.sourceTitle}</2>, deles", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Underdokumenter deles ikke på nettet. Aktiver deling for å tillate tilgang, dette vil være standard oppførsel i fremtiden", "{{ userName }} was added to the document": "{{ userName }} ble lagt til i dokumentet", "{{ count }} people added to the document": "{{ count }} person er lagt til i dokumentet", "{{ count }} people added to the document_plural": "{{ count }} personer er lagt til i dokumentetene", "{{ count }} groups added to the document": "{{ count }} grupper er lagt til i dokumentet", "{{ count }} groups added to the document_plural": "{{ count }} grupper er lagt til i dokumentene", - "Logo": "Logo", "Expand sidebar": "Vis sidepanel", "Collapse sidebar": "Skjul sidepanelet", "Archived collections": "Arkiverte samlinger", @@ -548,10 +563,18 @@ "Replacement": "Erstatning", "Replace": "Erstatt", "Replace all": "Erstatt alle", + "Go to link": "Gå til lenke", + "Open link": "Åpne lenke", + "Remove link": "Fjern lenke", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Søk eller lim inn en lenke", "Image width": "Bildebredde", "Width": "Bredde", "Image height": "Bildehøyde", "Height": "Høyde", + "Paste a link": "Lim inn en lenke", + "Delete embed": "Slett embed", + "Delete image": "Slett bilde", "Profile picture": "Profilbilde", "Create a new doc": "Lag et nytt dokument", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Nevn", "Embed": "Bygg inn", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Beklager, den lenken vil ikke fungere for denne innebygde typen", "Upload file": "Upload file", + "Paste a {{service}} link…": "Lim inn en {{service}} lenke…", "More options": "Flere alternativer", - "Rename": "Gi nytt navn", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "Sentrer", - "Align left": "Venstrejuster", - "Align right": "Høyrejuster", - "Default width": "Standardbredde", - "Full width": "Full bredde", - "Bulleted list": "Punktliste", - "Todo list": "Oppgaveliste", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Kodeblokk", - "Copied to clipboard": "Kopiert til utklippstavlen", - "Code": "Kode", - "Comment": "Kommentar", - "Create link": "Opprett lenke", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "Beklager, det oppstod en feil ved oppretting av lenken", - "Create a new child doc": "Lag et nytt underdokument", - "Delete table": "Slett tabell", + "Type '/' to insert": "Skriv '/' for å sette inn", + "Keep typing to filter": "Fortsett å skrive for å filtrere", + "Replace file": "Erstatt fil", "Delete file": "Slett fil", "Show preview": "Show preview", - "Download file": "Last ned fil", - "Replace file": "Erstatt fil", - "Delete image": "Slett bilde", - "Download image": "Last ned bilde", - "Replace image": "Erstatt bilde", - "Italic": "Kursiv", - "Sorry, that link won’t work for this embed type": "Beklager, den lenken vil ikke fungere for denne innebygde typen", - "File attachment": "Filvedlegg", - "Embed PDF": "Embed PDF", - "Enter a link": "Skriv inn en lenke", "Big heading": "Stor overskrift", "Medium heading": "Middels overskrift", "Small heading": "Liten overskrift", "Extra small heading": "Ekstra liten overskrift", - "Heading": "Overskrift", - "Divider": "Skillelinje", - "Image": "Bilde", - "Sorry, an error occurred uploading the file": "Beklager, det oppstod en feil ved opplasting av filen", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Skriv en bildetekst", - "Info": "Info", - "Info notice": "Infovarsel", - "Link": "Lenke", - "Highlight": "Uthev", - "Background color": "Background color", - "Type '/' to insert": "Skriv '/' for å sette inn", - "Keep typing to filter": "Fortsett å skrive for å filtrere", - "Open link": "Åpne lenke", - "Go to link": "Gå til lenke", - "Sorry, that type of link is not supported": "Beklager, den typen lenke støttes ikke", + "Todo list": "Oppgaveliste", + "Bulleted list": "Punktliste", "Ordered list": "Nummerert liste", - "Page break": "Sideskift", - "Paste a link": "Lim inn en lenke", - "Paste a {{service}} link…": "Lim inn en {{service}} lenke…", - "Placeholder": "Plassholder", - "Quote": "Sitat", - "Remove link": "Fjern lenke", - "Search or paste a link": "Søk eller lim inn en lenke", - "Strikethrough": "Gjennomstreking", - "Bold": "Fet", - "Subheading": "Underoverskrift", - "Sort ascending": "Sorter stigende", - "Sort descending": "Sorter synkende", + "Image": "Bilde", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "Filvedlegg", "Table": "Tabell", - "Export as CSV": "Eksporter som CSV", - "Toggle header": "Vis/skjul topp", - "Math inline (LaTeX)": "Matematikk i linje (LaTeX)", + "Quote": "Sitat", + "Code block": "Kodeblokk", "Math block (LaTeX)": "Matematikkblokk (LaTeX)", - "Merge cells": "Slå sammen celler", - "Split cell": "Del celle", - "Tip": "Tips", - "Tip notice": "Tipsvarsel", - "Warning": "Advarsel", - "Warning notice": "Advarselvarsel", - "Success": "Suksess", - "Success notice": "Suksessvarsel", + "Toggle block": "Toggle block", + "Divider": "Skillelinje", + "Page break": "Sideskift", "Current date": "Nåværende dato", "Current time": "Nåværende tid", "Current date and time": "Nåværende dato og tid", - "Indent": "Innrykk", - "Outdent": "Utrykk", - "Video": "Video", - "None": "Ingen", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Slett embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Infovarsel", + "Success notice": "Suksessvarsel", + "Warning notice": "Advarselvarsel", + "Tip notice": "Tipsvarsel", "Wrap text": "Wrap text", + "Placeholder": "Plassholder", + "Bold": "Fet", + "Italic": "Kursiv", + "Strikethrough": "Gjennomstreking", + "Background color": "Background color", + "None": "Ingen", + "Highlight": "Uthev", + "Code": "Kode", + "Heading": "Overskrift", + "Subheading": "Underoverskrift", + "Merge cells": "Slå sammen celler", + "Split cell": "Del celle", + "Outdent": "Utrykk", + "Indent": "Innrykk", + "Create link": "Opprett lenke", + "Comment": "Kommentar", + "Align left": "Venstrejuster", + "Align center": "Sentrer", + "Align right": "Høyrejuster", + "Full width": "Full bredde", + "Download image": "Last ned bilde", + "Replace image": "Erstatt bilde", + "Edit image URL": "Edit image URL", + "Default width": "Standardbredde", + "Distribute columns": "Distribute columns", + "Delete table": "Slett tabell", + "Export as CSV": "Eksporter som CSV", + "Sort ascending": "Sorter stigende", + "Sort descending": "Sorter synkende", + "Toggle header": "Vis/skjul topp", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Gi nytt navn", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reagerte med {{ emoji }} til din kommentar på", "shared": "delt", "invited you to": "inviterte deg til", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Tilbakekoblinger", + "Clear search highlight": "Clear search highlight", + "Warning": "Advarsel", "This document is large which may affect performance": "Dette dokumentet er stort og kan påvirke ytelsen", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Er du sikker på det? Sletting av <em>{{ documentTitle }}</em>-dokumentet vil slette hele dens historikk</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Er du sikker på det? Sletting av <em>{{ documentTitle }}</em>-dokumentet vil slette hele dens historikk og <em>{{ any }} underdokument</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Ingen dokumenter funnet for dine filtre.", "You’ve not got any drafts at the moment.": "Du har ingen utkast for øyeblikket.", "Payment Required": "Betaling kreves", + "Access request sent": "Access request sent", "No access to this doc": "Ingen tilgang til dette dokumentet", - "It doesn’t look like you have permission to access this document.": "Det ser ikke ut til at du har tillatelse til å se dette dokumentet.", - "Please request access from the document owner.": "Vennligst be om tilgang fra eieren av dokumentet.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Ikke funnet", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Siden du leter etter finnes ikke. Den kan ha blitt slettet, eller så er lenken feil.", "We were unable to load the document while offline.": "Vi kunne ikke laste inn dokumentet mens vi var frakoblet.", @@ -936,6 +940,7 @@ "Large header": "Stor overskrift", "Medium header": "Middels overskrift", "Small header": "Liten overskrift", + "Link": "Lenke", "Underline": "Understreking", "Undo": "Angre", "Redo": "Gjør om", @@ -1092,6 +1097,7 @@ "Credentials": "Nøkler", "OAuth client ID": "OAuth-klient ID", "The public identifier for this app": "Den offentlige identifikatoren for denne appen", + "Copied to clipboard": "Kopiert til utklippstavlen", "OAuth client secret": "OAuth-klientnøkkel", "Store this value securely, do not expose it publicly": "Lagre verdien et sikkert sted, ikke vis den offentlig", "Where users are redirected after authorizing this app": "Dit brukere blir omdirigert etter autorisering av denne appen", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferanser lagret", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Koble fra integrasjon", "Disconnecting": "Kobler fra", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Er du sikker på at du vil koble fra <em>{{ service }}</em>-integrasjonen?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Vis ditt arbeidsområde sin logo, beskrivelse og merkevare på offentlige delte sider.", "Table of contents position": "Posisjon for innholdsfortegnelse", "The side to display the table of contents in relation to the main content.": "Siden for plasseringen av innholdsfortegnelsen i relasjon til hovedinnholdet.", - "Behavior": "Oppførsel", "Subdomain": "Underdomene", "Your workspace will be accessible at": "Arbeidsområdet ditt vil være tilgjengelig på", "Choose a subdomain to enable a login page just for your team.": "Velg et underdomene for å aktivere en innloggingsside bare for teamet ditt.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Motta et varsel når du får tilgang til en samling", "Export completed": "Eksport fullført", "Receive a notification when an export you requested has been completed": "Motta en varsling når en eksport du har bedt om er fullført", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Komme i gang", "Tips on getting started with features and functionality": "Tips for å komme i gang med funksjoner og funksjonalitet", "New features": "Nye funksjoner", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Avmelding vellykket. Dine varslingsinnstillinger er oppdatert", "Manage when and where you receive email notifications.": "Administrer når og hvor du mottar e-postvarsler.", "All notifications": "All notifications", - "Preferences saved": "Preferanser lagret", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Slett konto", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} oppdaterte {{ timeAgo }}", "You created {{ timeAgo }}": "Du opprettet {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} opprettet {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Beklager, det oppstod en feil ved opplasting av filen", + "Sorry, that type of link is not supported": "Beklager, den typen lenke støttes ikke", "Caption": "Bildetekst", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Åpen", "Loading": "Laster", - "Error loading data": "Feil ved lasting av data" + "Error loading data": "Feil ved lasting av data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Skriv en bildetekst", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index d7da0dc43f..a9f4e02d80 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -169,6 +169,7 @@ "New workspace": "Nieuwe werkruimte", "Create a workspace": "Werkruimte aanmaken", "Login to workspace": "Inloggen op werkruimte", + "template": "template", "Template deleted": "Sjabloon verwijderd", "Deleting": "Verwijderen", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Weet je het zeker? Het verwijderen van het sjabloon <em>{{ templateName }}</em> is definitief.", @@ -298,6 +299,7 @@ "Currently editing": "Momenteel aan het bewerken", "Currently viewing": "Momenteel aan het bekijken", "Viewed {{ timeAgo }}": "{{ timeAgo }} bekeken", + "Uploading… {{ progress }}%": "Uploaden… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Bestandstype niet ondersteund. Gebruik PNG, JPG, GIF of WebP.", "File size too large. Maximum size is {{ size }}.": "Bestand is te groot. Maximale grootte is {{ size }}.", "Click or drag to replace": "Klik of sleep om te vervangen", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Sorry, er is iets fout gegaan.", "Click to retry": "Klik om opnieuw te proberen", "Back": "Terug", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Beheer", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Machtigingen voor {{ userName }} bijgewerkt", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Meldingsopties", "Unknown": "Onbekend", "Mentions": "Vermeldingen", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}u {{ minutes }}m gelezen", "{{ hours }}h read": "{{ hours }}u gelezen", "{{ minutes }}m read": "{{ minutes }}m gelezen", - "Manage": "Beheer", "All members": "Alle leden", "Everyone in the workspace": "Iedereen in de werkruimte", "{{ count }} member": "{{ count }} lid", "{{ count }} member_plural": "{{ count }} leden", + "Public link copied to clipboard": "Openbare link gekopieerd naar klembord", "Only lowercase letters, digits and dashes allowed": "Alleen kleine letters, cijfers en streepjes zijn toegestaan", "Sorry, this link has already been used": "Sorry, deze link is al in gebruik", - "Public link copied to clipboard": "Openbare link gekopieerd naar klembord", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Geef iedereen met de link toegang", "Publish to internet": "Publiceer op internet", - "Search engine indexing": "Indexering zoekmachine", - "Disable this setting to discourage search engines from indexing the page": "Schakel deze instelling uit om zoekmachines te ontmoedigen bij het indexeren van de pagina", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Toon laatst gewijzigd", - "Display the last modified timestamp on the shared page": "De laatst gewijzigde tijdstempel op de gedeelde pagina weergeven", - "Show table of contents": "Inhoudsopgave tonen", - "Display the table of contents on documents by default": "Standaard de inhoudsopgave van documenten weergeven", "All documents in this collection will be shared on the web, including any new documents added later": "Alle documenten in deze collectie worden op het web gedeeld, inclusief nieuwe documenten die later worden toegevoegd", "Invite": "Uitnodigen", "{{ userName }} was added to the collection": "{{ userName }} is aan de collectie toegevoegd", @@ -445,8 +447,24 @@ "Switch to dark": "Wissel naar donker thema", "Switch to light": "Wissel naar licht thema", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Toevoegen", "Add or invite": "Toevoegen of uitnodigen", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Toon laatst gewijzigd", + "Display the last modified timestamp on the shared page": "De laatst gewijzigde tijdstempel op de gedeelde pagina weergeven", + "Show table of contents": "Inhoudsopgave tonen", + "Display the table of contents on documents by default": "Standaard de inhoudsopgave van documenten weergeven", + "Behavior": "Gedrag", + "Search engine indexing": "Indexering zoekmachine", + "Disable this setting to discourage search engines from indexing the page": "Schakel deze instelling uit om zoekmachines te ontmoedigen bij het indexeren van de pagina", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Er ging iets mis", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Toegang overgenomen van collectie", "{{ userName }} was removed from the document": "{{ userName }} is verwijderd uit het document", "Could not remove user": "Kon gebruiker niet verwijderen", - "Permissions for {{ userName }} updated": "Machtigingen voor {{ userName }} bijgewerkt", "Could not update user": "Kon gebruiker niet wijzigen", "Has access through <2>parent</2>": "Heeft toegang via <2>bovenliggend document</2>", "Suspended": "Geschorst", @@ -475,14 +492,12 @@ "Leave": "Afsluiten", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Iedereen met de link heeft toegang omdat de collectie <2>{sharedParent.sourceTitle}</2> wordt gedeeld", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Iedereen met de link heeft toegang omdat het bovenliggende document, omdat <2>{sharedParent.sourceTitle}</2> wordt gedeeld", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Geneste documenten worden niet gedeeld op het web, schakel hiervoor delen in. Dit zal in de toekomst de standaardinstelling zijn.", "{{ userName }} was added to the document": "{{ userName }} is uitgenodigd voor het document", "{{ count }} people added to the document": "{{ count }} persoon uitgenodigd voor het document", "{{ count }} people added to the document_plural": "{{ count }} persoon uitgenodigd voor het document", "{{ count }} groups added to the document": "{{ count }} persoon uitgenodigd voor het document", "{{ count }} groups added to the document_plural": "{{ count }} persoon uitgenodigd voor het document", - "Logo": "Logo", "Expand sidebar": "Zijbalk uitvouwen", "Collapse sidebar": "Zijbalk invouwen", "Archived collections": "Gearchiveerde collecties", @@ -548,10 +563,18 @@ "Replacement": "Vervanging", "Replace": "Vervang", "Replace all": "Vervang alle", + "Go to link": "Ga naar link", + "Open link": "Open link", + "Remove link": "Verwijder link", + "Formatting controls": "Opmaakbesturing", + "Search or paste a link": "Zoek of plak een link", "Image width": "Afbeelding breedte", "Width": "Breedte", "Image height": "Afbeelding hoogte", "Height": "Hoogte", + "Paste a link": "Plak een link", + "Delete embed": "Insluiting verwijderen", + "Delete image": "Afbeelding verwijderen", "Profile picture": "Profielfoto", "Create a new doc": "Maak een nieuw document", "Create a nested doc": "Een geneste doc aanmaken", @@ -561,106 +584,78 @@ "Mention": "Vermelding", "Embed": "Insluiten", "Not supported": "Niet ondersteund", + "Sorry, that link won’t work for this embed type": "Sorry, die link werkt niet voor dit insluitingstype", "Upload file": "Bestand uploaden", + "Paste a {{service}} link…": "Plak een {{service}} link..", "More options": "Meer opties", - "Rename": "Hernoem", - "Insert after": "Invoegen achter", - "Insert before": "Invoegen voor", - "Move up": "Omhoog verplaatsen", - "Move down": "Omlaag verplaatsen", - "Move left": "Links verplaatsen", - "Move right": "Rechts verplaatsen", - "Align center": "Centreer", - "Align left": "Links uitlijnen", - "Align right": "Rechts uitlijnen", - "Default width": "Standaardbreedte", - "Full width": "Volledige breedte", - "Bulleted list": "Lijst met opsommingstekens", - "Todo list": "Takenlijst", - "Show {{ count }} completed": "Toon {{ count }} voltooid", - "Show {{ count }} completed_plural": "Toon {{ count }} voltooid", - "Hide completed": "Verbergen voltooid", - "Code block": "Codeblok", - "Copied to clipboard": "Gekopieerd naar het klembord", - "Code": "Code", - "Comment": "Reageer", - "Create link": "Link maken", - "Edit image URL": "Afbeeldingslink bewerken", - "Sorry, an error occurred creating the link": "Sorry, er is een fout opgetreden bij het maken van de link", - "Create a new child doc": "Maak een nieuw subdocument", - "Delete table": "Tabel verwijderen", + "Type '/' to insert": "Typ '/' om in te voegen", + "Keep typing to filter": "Blijf typen om te filteren", + "Replace file": "Vervang bestand", "Delete file": "Verwijder bestand", "Show preview": "Voorbeeld weergeven", - "Download file": "Download bestand", - "Replace file": "Vervang bestand", - "Delete image": "Afbeelding verwijderen", - "Download image": "Afbeelding downloaden", - "Replace image": "Afbeelding vervangen", - "Italic": "Cursief", - "Sorry, that link won’t work for this embed type": "Sorry, die link werkt niet voor dit insluitingstype", - "File attachment": "Bestandsbijlage", - "Embed PDF": "PDF insluiten", - "Enter a link": "Voer een link in", "Big heading": "Grote titel", "Medium heading": "Middelgrote titel", "Small heading": "Kleine titel", "Extra small heading": "Extra kleine kop", - "Heading": "Kop", - "Divider": "Scheidingslijn", - "Image": "Afbeelding", - "Sorry, an error occurred uploading the file": "Sorry, er is een fout opgetreden bij het uploaden van het bestand", - "Uploading… {{ progress }}%": "Uploaden… {{ progress }}%", - "Write a caption": "Schrijf een onderschrift", - "Info": "Info", - "Info notice": "Informatie opmerking", - "Link": "Link", - "Highlight": "Markeer", - "Background color": "Achtergrondkleur", - "Type '/' to insert": "Typ '/' om in te voegen", - "Keep typing to filter": "Blijf typen om te filteren", - "Open link": "Open link", - "Go to link": "Ga naar link", - "Sorry, that type of link is not supported": "Sorry, dat type link wordt niet ondersteund", + "Todo list": "Takenlijst", + "Bulleted list": "Lijst met opsommingstekens", "Ordered list": "Geordende lijst", - "Page break": "Pagina-einde", - "Paste a link": "Plak een link", - "Paste a {{service}} link…": "Plak een {{service}} link..", - "Placeholder": "Tijdelijke aanduiding", - "Quote": "Citaat", - "Remove link": "Verwijder link", - "Search or paste a link": "Zoek of plak een link", - "Strikethrough": "Doorstrepen", - "Bold": "Dikgedrukt", - "Subheading": "Subtitel", - "Sort ascending": "Oplopend sorteren", - "Sort descending": "Aflopend sorteren", + "Image": "Afbeelding", + "Video": "Video", + "Embed PDF": "PDF insluiten", + "File attachment": "Bestandsbijlage", "Table": "Tabel", - "Export as CSV": "Exporteren als CSV", - "Toggle header": "Schakel koptekst", - "Math inline (LaTeX)": "Wiskunde inlijn (LaTeX)", + "Quote": "Citaat", + "Code block": "Codeblok", "Math block (LaTeX)": "Wiskundeblok (LaTeX)", - "Merge cells": "Cellen samenvoegen", - "Split cell": "Cel splitsen", - "Tip": "Tip", - "Tip notice": "Tip opmerking", - "Warning": "Waarschuwing", - "Warning notice": "Waarschuwing opmerking", - "Success": "Succes", - "Success notice": "Succes bericht", + "Toggle block": "Uitklapbaar blok", + "Divider": "Scheidingslijn", + "Page break": "Pagina-einde", "Current date": "Huidige datum", "Current time": "Huidige tijd", "Current date and time": "Huidige datum en tijd", - "Indent": "Inspringen", - "Outdent": "Uitspringen", - "Video": "Video", - "None": "Geen", - "Toggle block": "Uitklapbaar blok", - "Add title": "Titel toevoegen", - "Add content": "Inhoud toevoegen", - "Delete embed": "Insluiting verwijderen", - "Formatting controls": "Opmaakbesturing", - "Distribute columns": "Kolommen verdelen", + "Info notice": "Informatie opmerking", + "Success notice": "Succes bericht", + "Warning notice": "Waarschuwing opmerking", + "Tip notice": "Tip opmerking", "Wrap text": "Tekst-terugloop", + "Placeholder": "Tijdelijke aanduiding", + "Bold": "Dikgedrukt", + "Italic": "Cursief", + "Strikethrough": "Doorstrepen", + "Background color": "Achtergrondkleur", + "None": "Geen", + "Highlight": "Markeer", + "Code": "Code", + "Heading": "Kop", + "Subheading": "Subtitel", + "Merge cells": "Cellen samenvoegen", + "Split cell": "Cel splitsen", + "Outdent": "Uitspringen", + "Indent": "Inspringen", + "Create link": "Link maken", + "Comment": "Reageer", + "Align left": "Links uitlijnen", + "Align center": "Centreer", + "Align right": "Rechts uitlijnen", + "Full width": "Volledige breedte", + "Download image": "Afbeelding downloaden", + "Replace image": "Afbeelding vervangen", + "Edit image URL": "Afbeeldingslink bewerken", + "Default width": "Standaardbreedte", + "Distribute columns": "Kolommen verdelen", + "Delete table": "Tabel verwijderen", + "Export as CSV": "Exporteren als CSV", + "Sort ascending": "Oplopend sorteren", + "Sort descending": "Aflopend sorteren", + "Toggle header": "Schakel koptekst", + "Insert after": "Invoegen achter", + "Insert before": "Invoegen voor", + "Move left": "Links verplaatsen", + "Move right": "Rechts verplaatsen", + "Move up": "Omhoog verplaatsen", + "Move down": "Omlaag verplaatsen", + "Rename": "Hernoem", "Delete Emoji": "Emoji verwijderen", "Emoji deleted": "Emoji verwijderd", "I'm sure – Delete": "Ik weet het zeker - Verwijderen", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reageerde met {{ emoji }} op jouw reactie op", "shared": "gedeeld", "invited you to": "heeft je uitgenodigd voor", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Kies een datum", "API key created. Please copy the value now as it will not be shown again.": "API-sleutel gemaakt. Kopieer de waarde nu omdat deze niet meer zal worden getoond.", "Scopes": "Werkingssferen", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Voeg inhoud toe aan je document, gebruik koppen of scheidingen om het te scheiden in dia's.", "Learn more": "Meer informatie", "Backlinks": "Backlinks", + "Clear search highlight": "Clear search highlight", + "Warning": "Waarschuwing", "This document is large which may affect performance": "Dit document is groot wat de prestaties kan beïnvloeden", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Weet je het zeker? Door het document <em>{{ documentTitle }}</em> te verwijderen zal ook alle geschiedenis ervan worden verwijderd</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Weet je het zeker? Door het document <em>{{ documentTitle }}</em> te verwijderen zal ook alle geschiedenis en <em>{{ any }} onderliggend document worden verwijderd</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Geen documenten gevonden voor je filters.", "You’ve not got any drafts at the moment.": "Je hebt momenteel geen concepten.", "Payment Required": "Betaling vereist", + "Access request sent": "Access request sent", "No access to this doc": "Geen toegang tot deze verwijzing", - "It doesn’t look like you have permission to access this document.": "Het lijkt erop dat je geen toegang hebt tot dit document.", - "Please request access from the document owner.": "Vraag toegang aan van de documenteigenaar.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Niet gevonden", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "De pagina die je zoekt kan niet worden gevonden. Het is mogelijk verwijderd of de link is onjuist.", "We were unable to load the document while offline.": "We konden het document niet laden terwijl je offline was.", @@ -936,6 +940,7 @@ "Large header": "Grote kop", "Medium header": "Middelgrote kop", "Small header": "Kleine kop", + "Link": "Link", "Underline": "Onderstrepen", "Undo": "Ongedaan maken", "Redo": "Opnieuw", @@ -1092,6 +1097,7 @@ "Credentials": "Inloggegevens", "OAuth client ID": "OAuth client-ID", "The public identifier for this app": "De publieke identificatie voor deze app", + "Copied to clipboard": "Gekopieerd naar het klembord", "OAuth client secret": "OAuth clientgeheim", "Store this value securely, do not expose it publicly": "Sla deze waarde veilig op, maak deze niet openbaar", "Where users are redirected after authorizing this app": "Waar gebruikers worden omgeleid na het autoriseren van deze app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Voorkeuren opgeslagen", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Ontkoppel integratie", "Disconnecting": "Ontkoppelen", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Weet je zeker dat je de koppeling met <em>{{ service }}</em> wilt verbreken?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Werkruimte-logo, -beschrijving en -merk weergeven op openbaar gedeelde pagina's.", "Table of contents position": "Positie inhoudsopgave", "The side to display the table of contents in relation to the main content.": "De zijde om de inhoudsopgave weer te geven in relatie tot de hoofdinhoud.", - "Behavior": "Gedrag", "Subdomain": "Subdomein", "Your workspace will be accessible at": "Je werkruimte is toegankelijk via", "Choose a subdomain to enable a login page just for your team.": "Kies een subdomein om een inlogpagina alleen voor jouw team in te schakelen.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Ontvang een melding wanneer je toegang krijgt tot een collectie", "Export completed": "Export afgerond", "Receive a notification when an export you requested has been completed": "Ontvang een melding wanneer een aangevraagde export is afgerond", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Aan de slag", "Tips on getting started with features and functionality": "Tips om aan de slag te gaan met de features en functionaliteit", "New features": "Nieuwe features", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Uitschrijven gelukt. Je instellingen voor meldingen zijn bijgewerkt", "Manage when and where you receive email notifications.": "Beheer wanneer en waar je e-mailmeldingen ontvangt.", "All notifications": "Alle meldingen", - "Preferences saved": "Voorkeuren opgeslagen", "Unread count": "Aantal ongelezen", "Unread indicator": "Ongelezen indicator", "Delete account": "Verwijder account", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ timeAgo }} door {{ user }} bijgewerkt", "You created {{ timeAgo }}": "{{ timeAgo }} door jou aangemaakt", "{{ user }} created {{ timeAgo }}": "{{ timeAgo }} door {{ user }} aangemaakt", + "Sorry, an error occurred uploading the file": "Sorry, er is een fout opgetreden bij het uploaden van het bestand", + "Sorry, that type of link is not supported": "Sorry, dat type link wordt niet ondersteund", "Caption": "Onderschrift", "Empty diagram": "Diagram leegmaken", "Double click to edit": "Dubbelklik om te bewerken", "Open": "Open", "Loading": "Aan het laden", - "Error loading data": "Fout bij laden van gegevens" + "Error loading data": "Fout bij laden van gegevens", + "Show {{ count }} completed": "Toon {{ count }} voltooid", + "Show {{ count }} completed_plural": "Toon {{ count }} voltooid", + "Hide completed": "Verbergen voltooid", + "Write a caption": "Schrijf een onderschrift", + "Add title": "Titel toevoegen", + "Add content": "Inhoud toevoegen" } diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index c0c35de714..e0abc9fa9e 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -169,6 +169,7 @@ "New workspace": "Nowy obszar roboczy", "Create a workspace": "Stwórz obszar roboczy", "Login to workspace": "Zaloguj się do projektu", + "template": "template", "Template deleted": "Szablon usunięty", "Deleting": "Usuwanie", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Aktualnie edytujesz", "Currently viewing": "Aktualnie wyświetlasz", "Viewed {{ timeAgo }}": "Przeglądnięty {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Przepraszamy, wystąpił błąd.", "Click to retry": "Kliknij, aby spróbować ponownie", "Back": "Wstecz", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Zarządzaj", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Uprawnienia dla {{ userName }} zostały zaktualizowane", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Nieznane", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }} minut czytania", - "Manage": "Zarządzaj", "All members": "Wszyscy członkowie", "Everyone in the workspace": "Wszyscy w projekcie", "{{ count }} member": "{{ count }} członek", "{{ count }} member_plural": "{{ count }} członków", + "Public link copied to clipboard": "Publiczny link skopiowany do schowka", "Only lowercase letters, digits and dashes allowed": "Dozwolone są tylko małe litery, cyfry i myślniki", "Sorry, this link has already been used": "Przepraszamy, ten link został już użyty", - "Public link copied to clipboard": "Publiczny link skopiowany do schowka", - "Web": "Sieć", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Zezwól każdemu z linkiem na dostęp", "Publish to internet": "Opublikuj w internecie", - "Search engine indexing": "Indeksowanie wyszukiwarki", - "Disable this setting to discourage search engines from indexing the page": "Wyłącz to ustawienie, aby zniechęcać wyszukiwarki do indeksowania strony", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Pokaż ostatnio zmodyfikowane", - "Display the last modified timestamp on the shared page": "Wyświetl ostatnio zmodyfikowany znacznik czasu na wspólnej stronie", - "Show table of contents": "Pokaż spis treści", - "Display the table of contents on documents by default": "Domyślnie wyświetlaj spis treści w dokumentach", "All documents in this collection will be shared on the web, including any new documents added later": "Wszystkie dokumenty w tej kolekcji będą udostępniane w sieci, w tym wszelkie nowe dokumenty dodane później", "Invite": "Zaproś", "{{ userName }} was added to the collection": "{{ userName }} został dodany do kolekcji", @@ -445,8 +447,24 @@ "Switch to dark": "Przełącz na tryb nocny", "Switch to light": "Przełącz na tryb dzienny", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Dodaj", "Add or invite": "Dodaj lub zaproś", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Pokaż ostatnio zmodyfikowane", + "Display the last modified timestamp on the shared page": "Wyświetl ostatnio zmodyfikowany znacznik czasu na wspólnej stronie", + "Show table of contents": "Pokaż spis treści", + "Display the table of contents on documents by default": "Domyślnie wyświetlaj spis treści w dokumentach", + "Behavior": "Zachowanie", + "Search engine indexing": "Indeksowanie wyszukiwarki", + "Disable this setting to discourage search engines from indexing the page": "Wyłącz to ustawienie, aby zniechęcać wyszukiwarki do indeksowania strony", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Coś poszło nie tak", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Dostęp dziedziczony z kolekcji", "{{ userName }} was removed from the document": "{{ userName }} został usunięty z dokumentu", "Could not remove user": "Nie można usunąć użytkownika", - "Permissions for {{ userName }} updated": "Uprawnienia dla {{ userName }} zostały zaktualizowane", "Could not update user": "Nie można zaktualizować użytkownika", "Has access through <2>parent</2>": "Ma dostęp przez <2>parent</2>", "Suspended": "Zawieszony/a", @@ -475,14 +492,12 @@ "Leave": "Opuść", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Każdy, kto posiada link, może uzyskać dostęp, ponieważ kolekcja, <2>{sharedParent.sourceTitle}</2>, jest udostępniona", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Każdy, kto posiada link, może uzyskać dostęp, ponieważ kolekcja, <2>{sharedParent.sourceTitle}</2>, jest udostępniona", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Zagnieżdżone dokumenty nie są udostępniane w sieci. Przełącz udostępnianie, aby umożliwić dostęp, będzie to domyślne zachowanie w przyszłości", "{{ userName }} was added to the document": "{{ userName }} został dodany do dokumentu", "{{ count }} people added to the document": "{{ count }} osoba dodanya do dokumentu", "{{ count }} people added to the document_plural": "{{ count }} osób dodanych do dokumentu", "{{ count }} groups added to the document": "{{ count }} grupa dodana do dokumentu", "{{ count }} groups added to the document_plural": "{{ count }} grup dodanych do dokumentu", - "Logo": "Logo", "Expand sidebar": "Rozwiń pasek boczny", "Collapse sidebar": "Zwiń pasek boczny", "Archived collections": "Zarchiwizowane kolekcje", @@ -548,10 +563,18 @@ "Replacement": "Zastąpienie", "Replace": "Zamień", "Replace all": "Zamień wszystko", + "Go to link": "Przejdź do linku", + "Open link": "Otwórz link", + "Remove link": "Usuń link", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Wyszukaj lub wklej link", "Image width": "Szerokość obrazu", "Width": "Szerokość", "Image height": "Wysokość obrazu", "Height": "Wysokość", + "Paste a link": "Wklej link", + "Delete embed": "Usuń osadzenie", + "Delete image": "Usuń obraz", "Profile picture": "Zdjęcie profilowe", "Create a new doc": "Utwórz nowy dokument", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Wzmianka", "Embed": "Osadzenie", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Niestety, ten link nie będzie działał dla tego typu osadzenia", "Upload file": "Upload file", + "Paste a {{service}} link…": "Wklej link {{service}}…", "More options": "Więcej opcji", - "Rename": "Zmień nazwę", - "Insert after": "Wstaw po", - "Insert before": "Wstaw przed", - "Move up": "Przesuń w górę", - "Move down": "Przesuń w dół", - "Move left": "Przesuń w lewo", - "Move right": "Przesuń w prawo", - "Align center": "Wyrównaj do środka", - "Align left": "Wyrównanie do lewej", - "Align right": "Wyrównaj do prawej", - "Default width": "Domyślna szerokość", - "Full width": "Pełna szerokość", - "Bulleted list": "Wypunktowana lista", - "Todo list": "Lista zadań", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Blok kodu", - "Copied to clipboard": "Skopiowane do schowka", - "Code": "Kod", - "Comment": "Komentarz", - "Create link": "Utwórz link", - "Edit image URL": "Zmień adres obrazu", - "Sorry, an error occurred creating the link": "Niestety, wystąpił błąd podczas tworzenia łącza", - "Create a new child doc": "Utwórz nowy dokument podrzędny", - "Delete table": "Usuń tabelę", + "Type '/' to insert": "Wpisz '/' aby wstawić", + "Keep typing to filter": "Kontynuuj pisanie, aby filtrować", + "Replace file": "Zastąp plik", "Delete file": "Usuń plik", "Show preview": "Show preview", - "Download file": "Pobierz plik", - "Replace file": "Zastąp plik", - "Delete image": "Usuń obraz", - "Download image": "Pobierz obraz", - "Replace image": "Zastąp obraz", - "Italic": "Kursywa", - "Sorry, that link won’t work for this embed type": "Niestety, ten link nie będzie działał dla tego typu osadzenia", - "File attachment": "Załącznik pliku", - "Embed PDF": "Embed PDF", - "Enter a link": "Wprowadź link", "Big heading": "Duży nagłówek", "Medium heading": "Średni nagłówek", "Small heading": "Mały nagłówek", "Extra small heading": "Bardzo mały nagłówek", - "Heading": "Nagłówek", - "Divider": "Separator", - "Image": "Obraz", - "Sorry, an error occurred uploading the file": "Przepraszamy, wystąpił błąd podczas przesyłania pliku", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Napisz podpis", - "Info": "Informacja", - "Info notice": "Zawiadomienie informacyjne", - "Link": "Link", - "Highlight": "Wyróżnienie", - "Background color": "Background color", - "Type '/' to insert": "Wpisz '/' aby wstawić", - "Keep typing to filter": "Kontynuuj pisanie, aby filtrować", - "Open link": "Otwórz link", - "Go to link": "Przejdź do linku", - "Sorry, that type of link is not supported": "Przepraszamy, ten typ linku nie jest obsługiwany", + "Todo list": "Lista zadań", + "Bulleted list": "Wypunktowana lista", "Ordered list": "Lista uporządkowana", - "Page break": "Podział strony", - "Paste a link": "Wklej link", - "Paste a {{service}} link…": "Wklej link {{service}}…", - "Placeholder": "Symbol zastępczy", - "Quote": "Cytat", - "Remove link": "Usuń link", - "Search or paste a link": "Wyszukaj lub wklej link", - "Strikethrough": "Przekreślenie", - "Bold": "Pogrubienie", - "Subheading": "Podtytuł", - "Sort ascending": "Sortuj rosnąco", - "Sort descending": "Sortuj malejąco", + "Image": "Obraz", + "Video": "Wideo", + "Embed PDF": "Embed PDF", + "File attachment": "Załącznik pliku", "Table": "Tabela", - "Export as CSV": "Eksport jako CSV", - "Toggle header": "Przełącz nagłówek", - "Math inline (LaTeX)": "Matematyka w linii (LaTeX)", + "Quote": "Cytat", + "Code block": "Blok kodu", "Math block (LaTeX)": "Blok matematyczny (LaTeX)", - "Merge cells": "Scal komórki", - "Split cell": "Podziel komórkę", - "Tip": "Porada", - "Tip notice": "Zawiadomienie z poradą", - "Warning": "Ostrzeżenie", - "Warning notice": "Zawiadomienie ostrzegawcze", - "Success": "Sukces", - "Success notice": "Zawiadomienie o sukcesie", + "Toggle block": "Toggle block", + "Divider": "Separator", + "Page break": "Podział strony", "Current date": "Aktualna data", "Current time": "Aktualny czas", "Current date and time": "Aktualna data i czas", - "Indent": "Wcięcie", - "Outdent": "Zmniejsz wcięcie", - "Video": "Wideo", - "None": "Brak", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Usuń osadzenie", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Zawiadomienie informacyjne", + "Success notice": "Zawiadomienie o sukcesie", + "Warning notice": "Zawiadomienie ostrzegawcze", + "Tip notice": "Zawiadomienie z poradą", "Wrap text": "Wrap text", + "Placeholder": "Symbol zastępczy", + "Bold": "Pogrubienie", + "Italic": "Kursywa", + "Strikethrough": "Przekreślenie", + "Background color": "Background color", + "None": "Brak", + "Highlight": "Wyróżnienie", + "Code": "Kod", + "Heading": "Nagłówek", + "Subheading": "Podtytuł", + "Merge cells": "Scal komórki", + "Split cell": "Podziel komórkę", + "Outdent": "Zmniejsz wcięcie", + "Indent": "Wcięcie", + "Create link": "Utwórz link", + "Comment": "Komentarz", + "Align left": "Wyrównanie do lewej", + "Align center": "Wyrównaj do środka", + "Align right": "Wyrównaj do prawej", + "Full width": "Pełna szerokość", + "Download image": "Pobierz obraz", + "Replace image": "Zastąp obraz", + "Edit image URL": "Zmień adres obrazu", + "Default width": "Domyślna szerokość", + "Distribute columns": "Distribute columns", + "Delete table": "Usuń tabelę", + "Export as CSV": "Eksport jako CSV", + "Sort ascending": "Sortuj rosnąco", + "Sort descending": "Sortuj malejąco", + "Toggle header": "Przełącz nagłówek", + "Insert after": "Wstaw po", + "Insert before": "Wstaw przed", + "Move left": "Przesuń w lewo", + "Move right": "Przesuń w prawo", + "Move up": "Przesuń w górę", + "Move down": "Przesuń w dół", + "Rename": "Zmień nazwę", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "zareagował {{ emoji }} na Twój komentarz na", "shared": "udostępnione", "invited you to": "zaprosił cię do", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Wybierz datę", "API key created. Please copy the value now as it will not be shown again.": "Klucz API został utworzony. Skopiuj wartość teraz, ponieważ nie będzie wyświetlany ponownie.", "Scopes": "Zakresy", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Linki zwrotne", + "Clear search highlight": "Clear search highlight", + "Warning": "Ostrzeżenie", "This document is large which may affect performance": "Ten dokument jest duży, co może mieć wpływ na wydajność", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Czy jesteś tego pewien? Usunięcie dokumentu <em>{{ documentTitle }}</em> spowoduje usunięcie całej jego historii</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Czy jesteś tego pewien? Usunięcie dokumentu <em>{{ documentTitle }}</em> spowoduje usunięcie całej jego historii oraz <em>{{ any }} zagnieżdżonych dokumentów</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Nie znaleziono dokumentów dla Twoich filtrów.", "You’ve not got any drafts at the moment.": "Nie masz obecnie żadnych szkiców.", "Payment Required": "Wymagana płatność", + "Access request sent": "Access request sent", "No access to this doc": "Brak dostępu do tego dokumentu", - "It doesn’t look like you have permission to access this document.": "Wygląda na to, że nie masz uprawnień dostępu do tego dokumentu.", - "Please request access from the document owner.": "Poproś właściciela dokumentu o dostęp.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Nie znaleziono", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Nie można znaleźć strony, której szukasz. Mogła zostać usunięta lub link jest nieprawidłowy.", "We were unable to load the document while offline.": "Nie mogliśmy załadować dokumentu podczas trybu offline.", @@ -936,6 +940,7 @@ "Large header": "Duży nagłówek", "Medium header": "Średni nagłówek", "Small header": "Mały nagłówek", + "Link": "Link", "Underline": "Podkreślenie", "Undo": "Cofnij", "Redo": "Ponów", @@ -1092,6 +1097,7 @@ "Credentials": "Poświadczenia", "OAuth client ID": "Identyfikator klienta OAuth", "The public identifier for this app": "Publiczny identyfikator tej aplikacji", + "Copied to clipboard": "Skopiowane do schowka", "OAuth client secret": "Sekret klienta OAuth", "Store this value securely, do not expose it publicly": "Przechowuj tę wartość bezpiecznie, nie ujawniaj jej publicznie", "Where users are redirected after authorizing this app": "Gdzie użytkownicy są przekierowywani po autoryzacji aplikacji", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferencje zostały zapisane", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Rozłącz integrację", "Disconnecting": "Rozłączanie", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Czy na pewno chcesz odłączyć integrację <em>{{ service }}</em>?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Pokaż logo swojego obszaru roboczego, opis i markę na publicznie udostępnianych stronach.", "Table of contents position": "", "The side to display the table of contents in relation to the main content.": "Część wyświetlająca spis treści w odniesieniu do treści głównej.", - "Behavior": "Zachowanie", "Subdomain": "Domena podrzędna", "Your workspace will be accessible at": "Twoja przestrzeń robocza będzie dostępna pod adresem", "Choose a subdomain to enable a login page just for your team.": "Wybierz subdomenę, aby umożliwić stronę logowania tylko dla Twojego zespołu.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Otrzymuj powiadomienie, gdy zostanie Ci przyznany dostęp do kolekcji", "Export completed": "Eksport zakończony", "Receive a notification when an export you requested has been completed": "Otrzymuj powiadomienie, gdy zażądany eksport zostanie zakończony", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Rozpoczynanie", "Tips on getting started with features and functionality": "Wskazówki, jak zacząć korzystać z funkcji i funkcjonalności", "New features": "Nowe funkcje", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Udało się anulować subskrypcję. Twoje ustawienia powiadomień zostały zaktualizowane", "Manage when and where you receive email notifications.": "Zarządzaj, kiedy i gdzie otrzymujesz powiadomienia e-mail.", "All notifications": "All notifications", - "Preferences saved": "Preferencje zostały zapisane", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Usuń konto", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} zaktualizował {{ timeAgo }}", "You created {{ timeAgo }}": "Utworzyłeś {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} utworzył {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Przepraszamy, wystąpił błąd podczas przesyłania pliku", + "Sorry, that type of link is not supported": "Przepraszamy, ten typ linku nie jest obsługiwany", "Caption": "Podpis", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Otwórz", "Loading": "Ładowanie", - "Error loading data": "Błąd ładowania danych" + "Error loading data": "Błąd ładowania danych", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Napisz podpis", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index b3bf414ca4..6e3326aee6 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -169,6 +169,7 @@ "New workspace": "Novo espaço de trabalho", "Create a workspace": "Criar um espaço de trabalho", "Login to workspace": "Conectar-se ao espaço de trabalho", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Excluindo", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Atualmente editando", "Currently viewing": "Atualmente visualizando", "Viewed {{ timeAgo }}": "Visualizou {{ timeAgo }} atrás", + "Uploading… {{ progress }}%": "Carregando… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Tipo de arquivo não suportado. Por favor, use PNG, JPG, GIF ou WebP.", "File size too large. Maximum size is {{ size }}.": "Arquivo muito grande. O tamanho máximo é {{ size }}.", "Click or drag to replace": "Clique ou arraste para substituir", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Desculpe, ocorreu um erro.", "Click to retry": "Clique para tentar novamente", "Back": "Voltar", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Gerenciar", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissões atualizadas para {{ userName }}", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Opções de notificação", "Unknown": "Desconhecido", "Mentions": "Menções", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m de leitura", "{{ hours }}h read": "{{ hours }}h de leitura", "{{ minutes }}m read": "Leitura de {{ minutes }}min", - "Manage": "Gerenciar", "All members": "Todos os membros", "Everyone in the workspace": "Todos no espaço de trabalho", "{{ count }} member": "{{ count }} membro", "{{ count }} member_plural": "{{ count }} membros", + "Public link copied to clipboard": "Link público copiado para área de transferência", "Only lowercase letters, digits and dashes allowed": "Somente letras minúsculas, dígitos e travessões são permitidos", "Sorry, this link has already been used": "Desculpe, este link já foi utilizado", - "Public link copied to clipboard": "Link público copiado para área de transferência", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Permitir qualquer pessoa com o link acessar", "Publish to internet": "Publicar na internet", - "Search engine indexing": "Indexação de motor de busca", - "Disable this setting to discourage search engines from indexing the page": "Desativar essa configuração para desencorajar os motores de busca de indexar a página", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Permitir que os visualizadores se inscrevam e recebam notificações por e-mail quando documentos forem atualizados", - "Show last modified": "Mostrar última modificação", - "Display the last modified timestamp on the shared page": "Exibir horário da última modificação na página compartilhada", - "Show table of contents": "Mostrar tabela de conteúdo", - "Display the table of contents on documents by default": "Exibir a tabela de conteúdo nos documentos por padrão", "All documents in this collection will be shared on the web, including any new documents added later": "Todos os documentos desta coleção serão compartilhados na web, incluindo quaisquer novos documentos adicionados mais tarde", "Invite": "Convite", "{{ userName }} was added to the collection": "{{ userName }} foi adicionado à coleção", @@ -445,8 +447,24 @@ "Switch to dark": "Alterar para escuro", "Switch to light": "Alternar para claro", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logotipo", "Add": "Adicionar", "Add or invite": "Adicionar ou convidar", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Mostrar última modificação", + "Display the last modified timestamp on the shared page": "Exibir horário da última modificação na página compartilhada", + "Show table of contents": "Mostrar tabela de conteúdo", + "Display the table of contents on documents by default": "Exibir a tabela de conteúdo nos documentos por padrão", + "Behavior": "Comportamento", + "Search engine indexing": "Indexação de motor de busca", + "Disable this setting to discourage search engines from indexing the page": "Desativar essa configuração para desencorajar os motores de busca de indexar a página", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Permitir que os visualizadores se inscrevam e recebam notificações por e-mail quando documentos forem atualizados", "Something went wrong": "Algo deu errado", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Acesso herdado da coleção", "{{ userName }} was removed from the document": "{{ userName }} foi removido do documento", "Could not remove user": "Não foi possível remover o usuário", - "Permissions for {{ userName }} updated": "Permissões atualizadas para {{ userName }}", "Could not update user": "Não foi possível atualizar o usuário", "Has access through <2>parent</2>": "Tem acesso através do <2>documento principal</2>", "Suspended": "Suspenso", @@ -475,14 +492,12 @@ "Leave": "Sair", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Qualquer pessoa com o link pode acessar, porque a coleção contendo <2>{sharedParent.sourceTitle}</2>, está compartilhada", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Qualquer pessoa com o link pode acessar porque o documento principal, <2>{sharedParent.sourceTitle}</2>, está compartilhado", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Documentos aninhados não são compartilhados na web. Ative o compartilhamento para ativar o acesso, este será o comportamento padrão no futuro", "{{ userName }} was added to the document": "{{ userName }} foi adicionado ao documento", "{{ count }} people added to the document": "{{ count }} pessoas foram adicionadas ao documento", "{{ count }} people added to the document_plural": "{{ count }} pessoa foi adicionada ao documento", "{{ count }} groups added to the document": "{{ count }} grupos foram adicionados ao documento", "{{ count }} groups added to the document_plural": "{{ count }} grupos foram adicionados ao documento", - "Logo": "Logotipo", "Expand sidebar": "Expandir barra lateral", "Collapse sidebar": "Minimizar barra lateral", "Archived collections": "Coleções arquivadas", @@ -548,10 +563,18 @@ "Replacement": "Substituição", "Replace": "Substituir", "Replace all": "Substituir todos", + "Go to link": "Ir para o link", + "Open link": "Abrir link", + "Remove link": "Excluir link", + "Formatting controls": "Controles de Formatação", + "Search or paste a link": "Pesquise ou cole um link", "Image width": "Largura da imagem", "Width": "Largura", "Image height": "Altura da imagem", "Height": "Altura", + "Paste a link": "Cole um link", + "Delete embed": "Deletar embed", + "Delete image": "Excluir imagem", "Profile picture": "Imagem do perfil", "Create a new doc": "Criar um novo documento", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Menção", "Embed": "Incorporar", "Not supported": "Não Suportado", + "Sorry, that link won’t work for this embed type": "Desculpe, esse link não funcionará para este tipo de incorporação", "Upload file": "Upload file", + "Paste a {{service}} link…": "Cole um link de {{service}}…", "More options": "Mais opções", - "Rename": "Renomear", - "Insert after": "Inserir depois", - "Insert before": "Inserir antes", - "Move up": "Mover acima", - "Move down": "Mover abaixo", - "Move left": "Mover à esquerda", - "Move right": "Mover à direita", - "Align center": "Alinhar ao centro", - "Align left": "Alinhar à esquerda", - "Align right": "Alinhar à direita", - "Default width": "Default width", - "Full width": "Largura total", - "Bulleted list": "Lista não ordenada", - "Todo list": "Lista de tarefas", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Bloco de código", - "Copied to clipboard": "Copiado para a área de transferência", - "Code": "Código", - "Comment": "Comentar", - "Create link": "Criar atalho", - "Edit image URL": "Editar URL da imagem", - "Sorry, an error occurred creating the link": "Desculpe, ocorreu um erro ao criar o link", - "Create a new child doc": "Criar um documento filho", - "Delete table": "Excluir tabela", + "Type '/' to insert": "Digite '/' para inserir", + "Keep typing to filter": "Continue digitando para filtrar", + "Replace file": "Substituir arquivo", "Delete file": "Excluir arquivo", "Show preview": "Show preview", - "Download file": "Baixar arquivo", - "Replace file": "Substituir arquivo", - "Delete image": "Excluir imagem", - "Download image": "Baixar imagem", - "Replace image": "Substituir imagem", - "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", - "Embed PDF": "Embutir PDF", - "Enter a link": "Insira um link", "Big heading": "Cabeçalho grande", "Medium heading": "Cabeçalho médio", "Small heading": "Cabeçalho pequeno", "Extra small heading": "Cabeçalho extra pequeno", - "Heading": "Cabeçalho", - "Divider": "Divisor", - "Image": "Imagem", - "Sorry, an error occurred uploading the file": "Desculpe, ocorreu um erro ao enviar arquivo", - "Uploading… {{ progress }}%": "Carregando… {{ progress }}%", - "Write a caption": "Escreva uma legenda", - "Info": "Informação", - "Info notice": "Aviso de informação", - "Link": "Link", - "Highlight": "Destaque", - "Background color": "Cor de fundo", - "Type '/' to insert": "Digite '/' para inserir", - "Keep typing to filter": "Continue digitando para filtrar", - "Open link": "Abrir link", - "Go to link": "Ir para o link", - "Sorry, that type of link is not supported": "Desculpe, este tipo de link não é suportado", + "Todo list": "Lista de tarefas", + "Bulleted list": "Lista não ordenada", "Ordered list": "Lista ordenada", - "Page break": "Quebra de página", - "Paste a link": "Cole um link", - "Paste a {{service}} link…": "Cole um link de {{service}}…", - "Placeholder": "Placeholder", - "Quote": "Citação", - "Remove link": "Excluir link", - "Search or paste a link": "Pesquise ou cole um link", - "Strikethrough": "Riscado", - "Bold": "Negrito", - "Subheading": "Subtítulo", - "Sort ascending": "Ordenação ascendente", - "Sort descending": "Ordenação decrescente", + "Image": "Imagem", + "Video": "Vídeo", + "Embed PDF": "Embutir PDF", + "File attachment": "Arquivo anexo", "Table": "Tabela", - "Export as CSV": "Exportar como CSV", - "Toggle header": "Ativar/desativar cabeçalho", - "Math inline (LaTeX)": "Matemática em linha (LaTeX)", + "Quote": "Citação", + "Code block": "Bloco de código", "Math block (LaTeX)": "Bloco de matemática (LaTeX)", - "Merge cells": "Mesclar células", - "Split cell": "Dividir célula", - "Tip": "Dica", - "Tip notice": "Aviso de dica", - "Warning": "Atenção", - "Warning notice": "Aviso de atenção", - "Success": "Sucesso", - "Success notice": "Aviso de Sucesso", + "Toggle block": "Alternar Bloco", + "Divider": "Divisor", + "Page break": "Quebra de página", "Current date": "Data atual", "Current time": "Horário atual", "Current date and time": "Data e hora atual", - "Indent": "Indentar", - "Outdent": "Remover indentação", - "Video": "Vídeo", - "None": "Nada", - "Toggle block": "Alternar Bloco", - "Add title": "Adicionar Título", - "Add content": "Adicionar conteúdo", - "Delete embed": "Deletar embed", - "Formatting controls": "Controles de Formatação", - "Distribute columns": "Distribuir colunas", + "Info notice": "Aviso de informação", + "Success notice": "Aviso de Sucesso", + "Warning notice": "Aviso de atenção", + "Tip notice": "Aviso de dica", "Wrap text": "Wrap text", + "Placeholder": "Placeholder", + "Bold": "Negrito", + "Italic": "Itálico", + "Strikethrough": "Riscado", + "Background color": "Cor de fundo", + "None": "Nada", + "Highlight": "Destaque", + "Code": "Código", + "Heading": "Cabeçalho", + "Subheading": "Subtítulo", + "Merge cells": "Mesclar células", + "Split cell": "Dividir célula", + "Outdent": "Remover indentação", + "Indent": "Indentar", + "Create link": "Criar atalho", + "Comment": "Comentar", + "Align left": "Alinhar à esquerda", + "Align center": "Alinhar ao centro", + "Align right": "Alinhar à direita", + "Full width": "Largura total", + "Download image": "Baixar imagem", + "Replace image": "Substituir imagem", + "Edit image URL": "Editar URL da imagem", + "Default width": "Default width", + "Distribute columns": "Distribuir colunas", + "Delete table": "Excluir tabela", + "Export as CSV": "Exportar como CSV", + "Sort ascending": "Ordenação ascendente", + "Sort descending": "Ordenação decrescente", + "Toggle header": "Ativar/desativar cabeçalho", + "Insert after": "Inserir depois", + "Insert before": "Inserir antes", + "Move left": "Mover à esquerda", + "Move right": "Mover à direita", + "Move up": "Mover acima", + "Move down": "Mover abaixo", + "Rename": "Renomear", "Delete Emoji": "Excluir Emoji", "Emoji deleted": "Emoji excluído", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reagiu com {{ emoji }} ao seu comentário em", "shared": "compartilhado", "invited you to": "convidou você para", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Escolha 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": "Escopos", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Links de referência", + "Clear search highlight": "Clear search highlight", + "Warning": "Atenção", "This document is large which may affect performance": "Este documento é grande o que pode afetar a performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Você tem certeza disso? Excluir o documento <em>{{ documentTitle }}</em> excluirá todo o seu histórico</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Você tem certeza sobre isso? Excluir o documento <em>{{ documentTitle }}</em> excluirá todo o seu histórico e <em>{{ any }} documento aninhado</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Nenhum documento foi encontrado para seus filtros.", "You’ve not got any drafts at the moment.": "Você não tem rascunhos no momento.", "Payment Required": "Pagamento necessário", + "Access request sent": "Access request sent", "No access to this doc": "Sem acesso a este documento", - "It doesn’t look like you have permission to access this document.": "Parece que você não tem permissão para acessar este documento.", - "Please request access from the document owner.": "Por favor, solicite acesso ao proprietário do documento.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Não encontrado", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "A página que você está procurando não pôde ser encontrada. Ela pode ter sido excluída ou o link está incorreto.", "We were unable to load the document while offline.": "Não foi possível carregar o documento enquanto desconectado.", @@ -936,6 +940,7 @@ "Large header": "Cabeçalho grande", "Medium header": "Cabeçalho médio", "Small header": "Cabeçalho pequeno", + "Link": "Link", "Underline": "Sublinhado", "Undo": "Desfazer", "Redo": "Refazer", @@ -1092,6 +1097,7 @@ "Credentials": "Credenciais", "OAuth client ID": "ID de cliente OAuth", "The public identifier for this app": "O identificador público para este aplicativo", + "Copied to clipboard": "Copiado para a área de transferência", "OAuth client secret": "Segredo de cliente OAuth", "Store this value securely, do not expose it publicly": "Armazene este valor de forma segura, não o exponha publicamente", "Where users are redirected after authorizing this app": "Onde os usuários são redirecionados após a autorização deste aplicativo", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferências salvas", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Desconectar integração", "Disconnecting": "Desconectando", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Você realmente deseja desconectar a integração <em>{{ service }}</em>?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Mostrar o logotipo da sua área de trabalho, descrição e marca em páginas compartilhadas publicamente.", "Table of contents position": "Posição da tabela de conteúdos", "The side to display the table of contents in relation to the main content.": "O lado para exibir a tabela de conteúdo em relação ao conteúdo principal.", - "Behavior": "Comportamento", "Subdomain": "Subdomínio", "Your workspace will be accessible at": "Sua base de conhecimento estará acessível em", "Choose a subdomain to enable a login page just for your team.": "Escolha um subdomínio para habilitar uma página de login apenas para a sua equipe.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Receba uma notificação quando lhe for dado acesso a uma coleção", "Export completed": "Exportação concluída", "Receive a notification when an export you requested has been completed": "Receba uma notificação quando sua solicitação de exportação for concluída", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Guia de introdução", "Tips on getting started with features and functionality": "Dicas para começar a usar os recursos e funcionalidades", "New features": "Novas funcionalidades", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Cancelamento de inscrição bem-sucedido. Suas configurações de notificação foram atualizadas", "Manage when and where you receive email notifications.": "Gerencie quando e onde você recebe notificações por e-mail.", "All notifications": "All notifications", - "Preferences saved": "Preferências salvas", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Excluir a conta", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} atualizou {{ timeAgo }}", "You created {{ timeAgo }}": "Você criou {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} criou {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Desculpe, ocorreu um erro ao enviar arquivo", + "Sorry, that type of link is not supported": "Desculpe, este tipo de link não é suportado", "Caption": "Título", "Empty diagram": "Diagrama vazio", "Double click to edit": "Double click to edit", "Open": "Abrir", "Loading": "Carregando", - "Error loading data": "Erro ao carregar os dados" + "Error loading data": "Erro ao carregar os dados", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Escreva uma legenda", + "Add title": "Adicionar Título", + "Add content": "Adicionar conteúdo" } diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index b78b4c0932..c304313476 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -169,6 +169,7 @@ "New workspace": "Nova área de trabalho", "Create a workspace": "Criar área de trabalho", "Login to workspace": "Entrar em área de trabalho", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Excluindo", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Em edição", "Currently viewing": "Em visualização", "Viewed {{ timeAgo }}": "Visto {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Tipo de arquivo não suportado. Use PNG, JPG, GIF ou WebP.", "File size too large. Maximum size is {{ size }}.": "Tamanho do arquivo muito grande. O tamanho máximo é {{ size }}.", "Click or drag to replace": "Clique ou arraste para substituir", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Desculpa, ocorreu um erro.", "Click to retry": "Clique para tentar de novo", "Back": "Voltar", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Gerir", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissões para {{ userName }} atualizadas", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Opções de notificação", "Unknown": "Desconhecido", "Mentions": "Menções", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m read", - "Manage": "Gerir", "All members": "Todos os membros", "Everyone in the workspace": "Todos no espaço de trabalho", "{{ count }} member": "{{ count }} membro", "{{ count }} member_plural": "{{ count }} membros", + "Public link copied to clipboard": "Ligação pública copiada para a área de transferência", "Only lowercase letters, digits and dashes allowed": "Apenas letras minúsculas, dígitos e traços permitidos", "Sorry, this link has already been used": "Desculpe, esta ligação já foi utilizada", - "Public link copied to clipboard": "Ligação pública copiada para a área de transferência", - "Web": "Internet", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Permitir que qualquer um com a ligação aceda", "Publish to internet": "Publicar na 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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "Convidar", "{{ userName }} was added to the collection": "{{ userName }} foi adicionado à coleção", @@ -445,8 +447,24 @@ "Switch to dark": "Alterar para escuro", "Switch to light": "Alterar para claro", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logótipo", "Add": "Adicionar", "Add or invite": "Adicionar ou convidar", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Show last modified", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Comportamento", + "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", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Ocorreu um erro", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Acesso herdado da coleção", "{{ userName }} was removed from the document": "{{ userName}} foi removido do documento", "Could not remove user": "Não foi possível remover o usuário", - "Permissions for {{ userName }} updated": "Permissões para {{ userName }} atualizadas", "Could not update user": "Não foi possível actualizar o utilizador", "Has access through <2>parent</2>": "Tem acesso através de <2>parent</2>", "Suspended": "Suspendido", @@ -475,14 +492,12 @@ "Leave": "Sair", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Subdocumentos não são compartilhados. Altere a partilha para ativar o acesso, este será o comportamento por defeito no futuro", "{{ userName }} was added to the document": "{{ userName }} adicionado ao documento", "{{ count }} people added to the document": "{{ count }} pessoa adicionada ao documento", "{{ count }} people added to the document_plural": "{{ count }} pessoas adicionadas ao documento", "{{ count }} groups added to the document": "{{ count }} grupo adicionado ao documento", "{{ count }} groups added to the document_plural": "{{ count }} grupos adicionados ao documento", - "Logo": "Logótipo", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Archived collections", @@ -548,10 +563,18 @@ "Replacement": "Substituição", "Replace": "Substituir", "Replace all": "Trocar todos", + "Go to link": "Ir para o link", + "Open link": "Abrir link", + "Remove link": "Remover link", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Procure ou insira um link", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "Inserir um link", + "Delete embed": "Delete embed", + "Delete image": "Eliminar imagem", "Profile picture": "Imagem de perfil", "Create a new doc": "Criar um novo documento", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mention", "Embed": "Embed", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Desculpe, esse link não funcionará para este tipo de incorporação", "Upload file": "Upload file", + "Paste a {{service}} link…": "Inserir um {{service}} link…", "More options": "More options", - "Rename": "Renomear", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "Alinhar ao centro", - "Align left": "Alinhar à esquerda", - "Align right": "Alinhar à direita", - "Default width": "Largura padrão", - "Full width": "Largura total", - "Bulleted list": "Lista com marcadores", - "Todo list": "Lista de tarefas", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Bloco de código", - "Copied to clipboard": "Copiado para o clipboard", - "Code": "Código", - "Comment": "Comentar", - "Create link": "Criar link", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "Desculpe, ocorreu um erro ao criar o link", - "Create a new child doc": "Criar novo subdocumento", - "Delete table": "Eliminar tabela", + "Type '/' to insert": "Digite '/' para inserir", + "Keep typing to filter": "Continue a escrever para filtrar", + "Replace file": "Substituir arquivo", "Delete file": "Eliminar ficheiro", "Show preview": "Show preview", - "Download file": "Transferir ficheiro", - "Replace file": "Substituir arquivo", - "Delete image": "Eliminar imagem", - "Download image": "Transferir imagem", - "Replace image": "Substituir imagem", - "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": "Anexo", - "Embed PDF": "Embed PDF", - "Enter a link": "Enter a link", "Big heading": "Cabeçalho grande", "Medium heading": "Cabeçalho médio", "Small heading": "Cabeçalho pequeno", "Extra small heading": "Extra small heading", - "Heading": "Cabeçalho", - "Divider": "Separador", - "Image": "Imagem", - "Sorry, an error occurred uploading the file": "Ocorreu um erro ao criar a ligação", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Escreva uma legenda", - "Info": "Informação", - "Info notice": "Aviso de informação", - "Link": "Link", - "Highlight": "Destaque", - "Background color": "Background color", - "Type '/' to insert": "Digite '/' para inserir", - "Keep typing to filter": "Continue a escrever para filtrar", - "Open link": "Abrir link", - "Go to link": "Ir para o link", - "Sorry, that type of link is not supported": "Este tipo de link não é suportado", + "Todo list": "Lista de tarefas", + "Bulleted list": "Lista com marcadores", "Ordered list": "Lista ordenada", - "Page break": "Quebra de página", - "Paste a link": "Inserir um link", - "Paste a {{service}} link…": "Inserir um {{service}} link…", - "Placeholder": "Espaço em branco", - "Quote": "Citação", - "Remove link": "Remover link", - "Search or paste a link": "Procure ou insira um link", - "Strikethrough": "Riscado", - "Bold": "Negrito", - "Subheading": "Subtítulo", - "Sort ascending": "Ordenação ascendente", - "Sort descending": "Ordenação descendente", + "Image": "Imagem", + "Video": "Vídeo", + "Embed PDF": "Embed PDF", + "File attachment": "Anexo", "Table": "Tabela", - "Export as CSV": "Export as CSV", - "Toggle header": "Alternar cabeçalho", - "Math inline (LaTeX)": "Matemática embutida (LaTeX)", + "Quote": "Citação", + "Code block": "Bloco de código", "Math block (LaTeX)": "Bloco de matemática (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Dica", - "Tip notice": "Aviso de dica", - "Warning": "Aviso", - "Warning notice": "Aviso de alerta", - "Success": "Sucesso", - "Success notice": "Notificação de sucesso", + "Toggle block": "Toggle block", + "Divider": "Separador", + "Page break": "Quebra de página", "Current date": "Data atual", "Current time": "Hora atual", "Current date and time": "Data e hora atual", - "Indent": "Indentar", - "Outdent": "Recuar", - "Video": "Vídeo", - "None": "Nenhum", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Aviso de informação", + "Success notice": "Notificação de sucesso", + "Warning notice": "Aviso de alerta", + "Tip notice": "Aviso de dica", "Wrap text": "Wrap text", + "Placeholder": "Espaço em branco", + "Bold": "Negrito", + "Italic": "Itálico", + "Strikethrough": "Riscado", + "Background color": "Background color", + "None": "Nenhum", + "Highlight": "Destaque", + "Code": "Código", + "Heading": "Cabeçalho", + "Subheading": "Subtítulo", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Recuar", + "Indent": "Indentar", + "Create link": "Criar link", + "Comment": "Comentar", + "Align left": "Alinhar à esquerda", + "Align center": "Alinhar ao centro", + "Align right": "Alinhar à direita", + "Full width": "Largura total", + "Download image": "Transferir imagem", + "Replace image": "Substituir imagem", + "Edit image URL": "Edit image URL", + "Default width": "Largura padrão", + "Distribute columns": "Distribute columns", + "Delete table": "Eliminar tabela", + "Export as CSV": "Export as CSV", + "Sort ascending": "Ordenação ascendente", + "Sort descending": "Ordenação descendente", + "Toggle header": "Alternar cabeçalho", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Renomear", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "partilhado", "invited you to": "convidou-o para", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Escolher data", "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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Ligações ascendentes", + "Clear search highlight": "Clear search highlight", + "Warning": "Aviso", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Tem certeza? Apagar o documento <em>{{ documentTitle }}</em> apagará todo o seu histórico</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Tem certeza? Apagar o documento <em>{{ documentTitle }}</em> apagará todo o seu histórico e </em>{{ any }} subdocumento</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Nenhum documento encontrado com os seus filtros.", "You’ve not got any drafts at the moment.": "Não tem nenhum rascunho de momento.", "Payment Required": "Pagamento Necessário", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "Não foi possível carregar o documento em modo offline.", @@ -936,6 +940,7 @@ "Large header": "Cabeçalho grande", "Medium header": "Cabeçalho médio", "Small header": "Cabeçalho pequeno", + "Link": "Link", "Underline": "Sublinhado", "Undo": "Anular", "Redo": "Repetir", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Copiado para o clipboard", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferências guardadas", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Desligar integração", "Disconnecting": "A desligar", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "Table of contents position": "Posição do índice", "The side to display the table of contents in relation to the main content.": "O lado para exibir a tabela de conteúdo em relação ao conteúdo principal.", - "Behavior": "Comportamento", "Subdomain": "Subdomínio", "Your workspace will be accessible at": "Área de trabalho ficará acessível em", "Choose a subdomain to enable a login page just for your team.": "Escolha um subdomínio para habilitar uma página de login apenas para a sua equipa.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Receber notificação quando lhe for dado acesso a uma coleção", "Export completed": "Exportação concluída", "Receive a notification when an export you requested has been completed": "Receber notificação quando exportação que pediu for concluída", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Introdução", "Tips on getting started with features and functionality": "Dicas sobre como começar a usar as funcionalidades", "New features": "Novas funcionalidades", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Inscrição anulada. Configurações de notificação atualizadas", "Manage when and where you receive email notifications.": "Gerir quando e onde recebe notificações por e-mail.", "All notifications": "All notifications", - "Preferences saved": "Preferências guardadas", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Apagar conta", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} atualizado à {{ timeAgo }}", "You created {{ timeAgo }}": "Criou à {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} criado à {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Ocorreu um erro ao criar a ligação", + "Sorry, that type of link is not supported": "Este tipo de link não é suportado", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "A carregar", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Escreva uma legenda", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/ro_RO/translation.json b/shared/i18n/locales/ro_RO/translation.json index 9d98f10495..6d1355d8ed 100644 --- a/shared/i18n/locales/ro_RO/translation.json +++ b/shared/i18n/locales/ro_RO/translation.json @@ -169,6 +169,7 @@ "New workspace": "New workspace", "Create a workspace": "Create a workspace", "Login to workspace": "Login to workspace", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Deleting", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Currently editing", "Currently viewing": "Currently viewing", "Viewed {{ timeAgo }}": "Viewed {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Sorry, an error occurred.", "Click to retry": "Click to retry", "Back": "Back", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Manage", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Unknown", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m read", - "Manage": "Manage", "All members": "All members", "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} member", "{{ count }} member_plural": "{{ count }} members", + "Public link copied to clipboard": "Public link copied to clipboard", "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", + "Publish to web": "Publish to web", "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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "Invite", "{{ userName }} was added to the collection": "{{ userName }} was added to the collection", @@ -445,8 +447,24 @@ "Switch to dark": "Switch to dark", "Switch to light": "Switch to light", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Add", "Add or invite": "Add or invite", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Show last modified", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Behavior", + "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", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "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</2>": "Has access through <2>parent</2>", "Suspended": "Suspended", @@ -475,14 +492,12 @@ "Leave": "Leave", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Archived collections", @@ -548,10 +563,18 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Go to link": "Go to link", + "Open link": "Open link", + "Remove link": "Remove link", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Search or paste a link", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "Paste a link", + "Delete embed": "Delete embed", + "Delete image": "Delete image", "Profile picture": "Profile picture", "Create a new doc": "Create a new doc", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mention", "Embed": "Embed", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Sorry, that link won’t work for this embed type", "Upload file": "Upload file", + "Paste a {{service}} link…": "Paste a {{service}} link…", "More options": "More options", - "Rename": "Rename", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "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", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Code block", - "Copied to clipboard": "Copied to clipboard", - "Code": "Code", - "Comment": "Comment", - "Create link": "Create link", - "Edit image URL": "Edit image URL", - "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", + "Type '/' to insert": "Type '/' to insert", + "Keep typing to filter": "Keep typing to filter", + "Replace file": "Replace file", "Delete file": "Delete file", "Show preview": "Show preview", - "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", - "Embed PDF": "Embed PDF", - "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", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Write a caption", - "Info": "Info", - "Info notice": "Info notice", - "Link": "Link", - "Highlight": "Highlight", - "Background color": "Background color", - "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", + "Todo list": "Task list", + "Bulleted list": "Bulleted list", "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", + "Image": "Image", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "File attachment", "Table": "Table", - "Export as CSV": "Export as CSV", - "Toggle header": "Toggle header", - "Math inline (LaTeX)": "Math inline (LaTeX)", + "Quote": "Quote", + "Code block": "Code block", "Math block (LaTeX)": "Math block (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Tip", - "Tip notice": "Tip notice", - "Warning": "Warning", - "Warning notice": "Warning notice", - "Success": "Success", - "Success notice": "Success notice", + "Toggle block": "Toggle block", + "Divider": "Divider", + "Page break": "Page break", "Current date": "Current date", "Current time": "Current time", "Current date and time": "Current date and time", - "Indent": "Indent", - "Outdent": "Outdent", - "Video": "Video", - "None": "None", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Info notice", + "Success notice": "Success notice", + "Warning notice": "Warning notice", + "Tip notice": "Tip notice", "Wrap text": "Wrap text", + "Placeholder": "Placeholder", + "Bold": "Bold", + "Italic": "Italic", + "Strikethrough": "Strikethrough", + "Background color": "Background color", + "None": "None", + "Highlight": "Highlight", + "Code": "Code", + "Heading": "Heading", + "Subheading": "Subheading", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Outdent", + "Indent": "Indent", + "Create link": "Create link", + "Comment": "Comment", + "Align left": "Align left", + "Align center": "Align center", + "Align right": "Align right", + "Full width": "Full width", + "Download image": "Download image", + "Replace image": "Replace image", + "Edit image URL": "Edit image URL", + "Default width": "Default width", + "Distribute columns": "Distribute columns", + "Delete table": "Delete table", + "Export as CSV": "Export as CSV", + "Sort ascending": "Sort ascending", + "Sort descending": "Sort descending", + "Toggle header": "Toggle header", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Rename", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "shared", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access 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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Backlinks", + "Clear search highlight": "Clear search highlight", + "Warning": "Warning", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", @@ -885,9 +885,13 @@ "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", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "We were unable to load the document while offline.", @@ -936,6 +940,7 @@ "Large header": "Large header", "Medium header": "Medium header", "Small header": "Small header", + "Link": "Link", "Underline": "Underline", "Undo": "Undo", "Redo": "Redo", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Copied to clipboard", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferences saved", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "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.", @@ -1317,6 +1327,8 @@ "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", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", @@ -1325,7 +1337,6 @@ "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.", "All notifications": "All notifications", - "Preferences saved": "Preferences saved", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Delete account", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Sorry, an error occurred uploading the file", + "Sorry, that type of link is not supported": "Sorry, that type of link is not supported", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "Loading", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Write a caption", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index a4cef3e7bf..da970078de 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -169,6 +169,7 @@ "New workspace": "Ny arbetsyta", "Create a workspace": "Skapa arbetsyta", "Login to workspace": "Logga in till arbetsytan", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Raderar", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Redigerar just nu", "Currently viewing": "Visar för närvarande", "Viewed {{ timeAgo }}": "Visades för {{ timeAgo }} sedan", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Tyvärr, ett fel har uppstått.", "Click to retry": "Klicka för att försöka igen", "Back": "Tillbaka", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Administrera", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Behörigheter för {{ userName }} uppdaterat", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Okänd", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m läst", - "Manage": "Administrera", "All members": "Alla medlemmar", "Everyone in the workspace": "Alla i arbetsytan", "{{ count }} member": "{{ count }} medlem", "{{ count }} member_plural": "{{ count }} medlemmar", + "Public link copied to clipboard": "Offentlig länk har kopierats till urklipp", "Only lowercase letters, digits and dashes allowed": "Endast små bokstäver, siffror och bindestreck tillåts", "Sorry, this link has already been used": "Tyvärr, denna länk har redan använts", - "Public link copied to clipboard": "Offentlig länk har kopierats till urklipp", - "Web": "Webb", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Tillåt vem som helst med länken att komma åt", "Publish to internet": "Publicera på internet", - "Search engine indexing": "Sökmotorindexering", - "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Visa senast ändrad", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "Alla dokument i denna samling kommer att delas på webben, inklusive nya dokument som läggs till senare", "Invite": "Bjud in", "{{ userName }} was added to the collection": "{{ userName }} har lagts till i samlingen", @@ -445,8 +447,24 @@ "Switch to dark": "Växla till mörkt", "Switch to light": "Växla till ljust", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Lägg till", "Add or invite": "Lägg till eller bjud in", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Visa senast ändrad", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Beteende", + "Search engine indexing": "Sökmotorindexering", + "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Något gick fel", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Åtkomst nedärvd från samling", "{{ userName }} was removed from the document": "{{ userName }} togs bort från dokumentet", "Could not remove user": "Kunde inte ta bort användaren", - "Permissions for {{ userName }} updated": "Behörigheter för {{ userName }} uppdaterat", "Could not update user": "Kunde inte uppdatera användaren", "Has access through <2>parent</2>": "Har tillgång genom <2>förälder</2>", "Suspended": "Avstängd", @@ -475,14 +492,12 @@ "Leave": "Lämna", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Vem som helst med länken kan komma åt eftersom samlingen, <2>{sharedParent.sourceTitle}</2>, delas", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Nästlade dokument delas inte på internet. Aktivera delning för att möjliggöra åtkomst, detta kommer att vara standardbeteendet i framtiden", "{{ userName }} was added to the document": "{{ userName }} was added to the document", "{{ count }} people added to the document": "{{ count }} personer har lagts till i dokumentet", "{{ count }} people added to the document_plural": "{{ count }} personer har lagts till i dokumentet", "{{ count }} groups added to the document": "{{ count }} grupper har lagts till i dokumentet", "{{ count }} groups added to the document_plural": "{{ count }} grupper har lagts till i dokumentet", - "Logo": "Logo", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Arkiverade samlingar", @@ -548,10 +563,18 @@ "Replacement": "Ersättning", "Replace": "Ersätt", "Replace all": "Ersätt alla", + "Go to link": "Gå till länk", + "Open link": "Öppna länk", + "Remove link": "Ta bort länk", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Sök eller klistra in en länk", "Image width": "Bildbredd", "Width": "Bredd", "Image height": "Bildhöjd", "Height": "Höjd", + "Paste a link": "Klistra in en länk", + "Delete embed": "Ta bort inbäddning", + "Delete image": "Ta bort bild", "Profile picture": "Profilbild", "Create a new doc": "Skapa nytt dokument", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Nämn", "Embed": "Bädda in", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Den länken fungerar tyvärr inte för den här inbäddningstypen", "Upload file": "Upload file", + "Paste a {{service}} link…": "Klistra in en {{service}} länk…", "More options": "Fler alternativ", - "Rename": "Döp om", - "Insert after": "Infoga efter", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "Centrera", - "Align left": "Vänsterjustera", - "Align right": "Högerjustera", - "Default width": "Standardbredd", - "Full width": "Full bredd", - "Bulleted list": "Punktlista", - "Todo list": "Uppgiftslista", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Kodblock", - "Copied to clipboard": "Kopierat till urklipp", - "Code": "Kod", - "Comment": "Kommentar", - "Create link": "Skapa länk", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "Tyvärr, ett fel uppstod när länken skapades", - "Create a new child doc": "Skapa ett nytt underordnat dokument", - "Delete table": "Ta bort tabell", + "Type '/' to insert": "Skriv '/' för att infoga", + "Keep typing to filter": "Fortsätt skriva för att filtrera", + "Replace file": "Ersätt fil", "Delete file": "Radera fil", "Show preview": "Show preview", - "Download file": "Ladda ner fil", - "Replace file": "Ersätt fil", - "Delete image": "Ta bort bild", - "Download image": "Hämta bild", - "Replace image": "Ersätt bild", - "Italic": "Kursiv", - "Sorry, that link won’t work for this embed type": "Den länken fungerar tyvärr inte för den här inbäddningstypen", - "File attachment": "Bifogad fil", - "Embed PDF": "Embed PDF", - "Enter a link": "Ange en länk", "Big heading": "Stor rubrik", "Medium heading": "Medelstor rubrik", "Small heading": "Liten rubrik", "Extra small heading": "Extra small heading", - "Heading": "Rubrik", - "Divider": "Avdelare", - "Image": "Bild", - "Sorry, an error occurred uploading the file": "Ett fel inträffade vid uppladdningen", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Skriv en bildtext", - "Info": "Info", - "Info notice": "Infomeddelande", - "Link": "Länk", - "Highlight": "Markera", - "Background color": "Background color", - "Type '/' to insert": "Skriv '/' för att infoga", - "Keep typing to filter": "Fortsätt skriva för att filtrera", - "Open link": "Öppna länk", - "Go to link": "Gå till länk", - "Sorry, that type of link is not supported": "Tyvärr, den typen av länk stöds inte", + "Todo list": "Uppgiftslista", + "Bulleted list": "Punktlista", "Ordered list": "Sorterad lista", - "Page break": "Sidbrytning", - "Paste a link": "Klistra in en länk", - "Paste a {{service}} link…": "Klistra in en {{service}} länk…", - "Placeholder": "Platshållare", - "Quote": "Citat", - "Remove link": "Ta bort länk", - "Search or paste a link": "Sök eller klistra in en länk", - "Strikethrough": "Genomstrykning", - "Bold": "Fetstil", - "Subheading": "Underrubrik", - "Sort ascending": "Sortera stigande", - "Sort descending": "Sortera fallande", + "Image": "Bild", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "Bifogad fil", "Table": "Tabell", - "Export as CSV": "Exportera som CSV", - "Toggle header": "Visa/dölj topp", - "Math inline (LaTeX)": "Math inline (LaTeX)", + "Quote": "Citat", + "Code block": "Kodblock", "Math block (LaTeX)": "Math block (LaTeX)", - "Merge cells": "Sammanfoga celler", - "Split cell": "Dela cell", - "Tip": "Tips", - "Tip notice": "Tipsnotis", - "Warning": "Varning", - "Warning notice": "Varningsmeddelande", - "Success": "Slutförd", - "Success notice": "Meddelande om framgång", + "Toggle block": "Toggle block", + "Divider": "Avdelare", + "Page break": "Sidbrytning", "Current date": "Aktuellt datum", "Current time": "Aktuell tid", "Current date and time": "Nuvarande datum och tid", - "Indent": "Indrag", - "Outdent": "Minska indrag", - "Video": "Video", - "None": "Ingen", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Ta bort inbäddning", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Infomeddelande", + "Success notice": "Meddelande om framgång", + "Warning notice": "Varningsmeddelande", + "Tip notice": "Tipsnotis", "Wrap text": "Wrap text", + "Placeholder": "Platshållare", + "Bold": "Fetstil", + "Italic": "Kursiv", + "Strikethrough": "Genomstrykning", + "Background color": "Background color", + "None": "Ingen", + "Highlight": "Markera", + "Code": "Kod", + "Heading": "Rubrik", + "Subheading": "Underrubrik", + "Merge cells": "Sammanfoga celler", + "Split cell": "Dela cell", + "Outdent": "Minska indrag", + "Indent": "Indrag", + "Create link": "Skapa länk", + "Comment": "Kommentar", + "Align left": "Vänsterjustera", + "Align center": "Centrera", + "Align right": "Högerjustera", + "Full width": "Full bredd", + "Download image": "Hämta bild", + "Replace image": "Ersätt bild", + "Edit image URL": "Edit image URL", + "Default width": "Standardbredd", + "Distribute columns": "Distribute columns", + "Delete table": "Ta bort tabell", + "Export as CSV": "Exportera som CSV", + "Sort ascending": "Sortera stigande", + "Sort descending": "Sortera fallande", + "Toggle header": "Visa/dölj topp", + "Insert after": "Infoga efter", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Döp om", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reagerade {{ emoji }} på din kommentar på", "shared": "delad", "invited you to": "bjöd in dig till", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Välj ett datum", "API key created. Please copy the value now as it will not be shown again.": "API-nyckel skapad. Kopiera värdet nu eftersom det inte visas igen.", "Scopes": "Scopes", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Bakåtlänkar", + "Clear search highlight": "Clear search highlight", + "Warning": "Varning", "This document is large which may affect performance": "Detta dokument är stort vilket kan påverka prestanda", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Är du säker på det? Ta bort <em>{{ documentTitle }}</em> dokumentet kommer att ta bort all dess historik</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Är du säker på det? Borttagning av <em>{{ documentTitle }}</em> dokumentet kommer att ta bort all dess historik och <em>{{ any }} nested document</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Inga dokument funna för dina sökfilter.", "You’ve not got any drafts at the moment.": "Du har inte fått några utkast just nu.", "Payment Required": "Betalning krävs", + "Access request sent": "Access request sent", "No access to this doc": "Ingen åtkomst till detta dokument", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Hittades inte", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "Vi kunde inte läsa in dokumentet när vi är offline.", @@ -936,6 +940,7 @@ "Large header": "Stor rubrik", "Medium header": "Mellanstor rubrik", "Small header": "Liten rubrik", + "Link": "Länk", "Underline": "Understruken", "Undo": "Ångra", "Redo": "Upprepa", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Kopierat till urklipp", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Inställningar sparade", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Koppla från integration", "Disconnecting": "Bortkopplar", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Är du säker på att du vill koppla från <em>{{ service }}</em>-integrationen?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "Table of contents position": "Position för innehållsförteckning", "The side to display the table of contents in relation to the main content.": "Den sida där innehållsförteckningen ska visas i förhållande till huvudinnehållet.", - "Behavior": "Beteende", "Subdomain": "Underdomän", "Your workspace will be accessible at": "Din arbetsyta kommer att vara tillgänglig på", "Choose a subdomain to enable a login page just for your team.": "Välj en underdomän för att aktivera en inloggningssida bara för ditt team.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Få en notis när du får tillgång till en samling", "Export completed": "Export slutförd", "Receive a notification when an export you requested has been completed": "Få ett meddelande när en export du begärt har slutförts", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Kom igång", "Tips on getting started with features and functionality": "Tips om att komma igång med funktioner och funktionalitet", "New features": "Nya funktioner", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Avprenumerationen lyckades. Dina aviseringsinställningar uppdaterades", "Manage when and where you receive email notifications.": "Hantera när och var du får e-postmeddelanden.", "All notifications": "All notifications", - "Preferences saved": "Inställningar sparade", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Radera konto", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} uppdaterade {{ timeAgo }}", "You created {{ timeAgo }}": "Du skapade {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} skapade {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Ett fel inträffade vid uppladdningen", + "Sorry, that type of link is not supported": "Tyvärr, den typen av länk stöds inte", "Caption": "Bildtext", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Öppna", "Loading": "Laddar", - "Error loading data": "Fel vid inläsning av data" + "Error loading data": "Fel vid inläsning av data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Skriv en bildtext", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index 0d482bede6..db121c404b 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -169,6 +169,7 @@ "New workspace": "New workspace", "Create a workspace": "Create a workspace", "Login to workspace": "Login to workspace", + "template": "template", "Template deleted": "Template deleted", "Deleting": "กำลังลบ", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "กำลังแก้ไข", "Currently viewing": "กำลังดู", "Viewed {{ timeAgo }}": "Viewed {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Sorry, an error occurred.", "Click to retry": "Click to retry", "Back": "ย้อนกลับ", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Manage", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Unknown", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }}m read", - "Manage": "Manage", "All members": "All members", "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} member", "{{ count }} member_plural": "{{ count }} members", + "Public link copied to clipboard": "Public link copied to clipboard", "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", + "Publish to web": "Publish to web", "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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "Invite", "{{ userName }} was added to the collection": "เพิ่ม {{ userName }} ลงในคอลเล็กชันแล้ว", @@ -445,8 +447,24 @@ "Switch to dark": "Switch to dark", "Switch to light": "Switch to light", "Subscribe to updates": "Subscribe to updates", + "Logo": "โลโก้", "Add": "เพิ่ม", "Add or invite": "Add or invite", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Show last modified", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Behavior", + "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", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Access inherited from collection", "{{ userName }} was removed from the document": "{{ userName }} was removed from the document", "Could not remove user": "ไม่สามารถลบผู้ใช้", - "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", "Could not update user": "ไม่สามารถอัปเดตผู้ใช้", "Has access through <2>parent</2>": "Has access through <2>parent</2>", "Suspended": "Suspended", @@ -475,14 +492,12 @@ "Leave": "Leave", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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": "โลโก้", "Expand sidebar": "Expand sidebar", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Archived collections", @@ -548,10 +563,18 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Go to link": "ไปที่ลิงค์", + "Open link": "เปิดลิงก์", + "Remove link": "ลบลิงก์", + "Formatting controls": "Formatting controls", + "Search or paste a link": "ค้นหาหรือวางลิงก์", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "วางลิงก์", + "Delete embed": "Delete embed", + "Delete image": "ลบรูป", "Profile picture": "Profile picture", "Create a new doc": "สร้างเอกสารใหม่", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Mention", "Embed": "Embed", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "ขออภัย ลิงก์นั้นใช้ไม่ได้สำหรับเนื้อหาประเภทนี้", "Upload file": "Upload file", + "Paste a {{service}} link…": "วางลิงก์ {{service}}…", "More options": "More options", - "Rename": "Rename", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "จัดตำแหน่งกึ่งกลาง", - "Align left": "จัดตำแหน่งชิดซ้าย", - "Align right": "จัดตำแหน่งชิดขวา", - "Default width": "Default width", - "Full width": "ความกว้างเต็ม", - "Bulleted list": "รายการหัวข้อ", - "Todo list": "Task list", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Codeblock", - "Copied to clipboard": "คัดลอกไปยังคลิปบอร์ดแล้ว", - "Code": "Code", - "Comment": "Comment", - "Create link": "สร้างลิงก์", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "ขออภัย เกิดข้อผิดพลาดขณะสร้างลิงก์", - "Create a new child doc": "Create a new child doc", - "Delete table": "ลบตาราง", + "Type '/' to insert": "พิมพ์ '/' เพื่อแทรก", + "Keep typing to filter": "พิมพ์ต่อไปเพื่อกรอง", + "Replace file": "Replace file", "Delete file": "Delete file", "Show preview": "Show preview", - "Download file": "Download file", - "Replace file": "Replace file", - "Delete image": "ลบรูป", - "Download image": "ดาวน์โหลดภาพ", - "Replace image": "แทนที่ภาพ", - "Italic": "ตัวเอียง", - "Sorry, that link won’t work for this embed type": "ขออภัย ลิงก์นั้นใช้ไม่ได้สำหรับเนื้อหาประเภทนี้", - "File attachment": "ไฟล์แนบ", - "Embed PDF": "Embed PDF", - "Enter a link": "Enter a link", "Big heading": "หัวเรื่องหลัก", "Medium heading": "หัวเรื่องรอง", "Small heading": "หัวเรื่องย่อย", "Extra small heading": "Extra small heading", - "Heading": "หัวเรื่อง", - "Divider": "ตัวแบ่ง", - "Image": "ภาพ", - "Sorry, an error occurred uploading the file": "ขออภัย เกิดข้อผิดพลาดในการอัปโหลดไฟล์", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "เขียนแคปชั่น", - "Info": "ข้อมูล", - "Info notice": "ประกาศข้อมูล", - "Link": "ลิงค์", - "Highlight": "ไฮไลท์", - "Background color": "Background color", - "Type '/' to insert": "พิมพ์ '/' เพื่อแทรก", - "Keep typing to filter": "พิมพ์ต่อไปเพื่อกรอง", - "Open link": "เปิดลิงก์", - "Go to link": "ไปที่ลิงค์", - "Sorry, that type of link is not supported": "Sorry, that type of link is not supported", + "Todo list": "Task list", + "Bulleted list": "รายการหัวข้อ", "Ordered list": "รายการเรียงลำดับ", - "Page break": "แบ่งหน้า", - "Paste a link": "วางลิงก์", - "Paste a {{service}} link…": "วางลิงก์ {{service}}…", - "Placeholder": "ตัวยึด", - "Quote": "อ้างคำพูด", - "Remove link": "ลบลิงก์", - "Search or paste a link": "ค้นหาหรือวางลิงก์", - "Strikethrough": "ขีดเส้นทับข้อความ", - "Bold": "ตัวหนา", - "Subheading": "หัวเรื่องย่อย", - "Sort ascending": "Sort ascending", - "Sort descending": "Sort descending", + "Image": "ภาพ", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "ไฟล์แนบ", "Table": "ตาราง", - "Export as CSV": "Export as CSV", - "Toggle header": "Toggle header", - "Math inline (LaTeX)": "Math inline (LaTeX)", + "Quote": "อ้างคำพูด", + "Code block": "Codeblock", "Math block (LaTeX)": "Math block (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "เคล็ดลับ", - "Tip notice": "ข้อควรทราบ", - "Warning": "คำเตือน", - "Warning notice": "คำเตือน", - "Success": "Success", - "Success notice": "Success notice", + "Toggle block": "Toggle block", + "Divider": "ตัวแบ่ง", + "Page break": "แบ่งหน้า", "Current date": "วันที่ปัจจุบัน", "Current time": "เวลาปัจจุบัน", "Current date and time": "วันที่และเวลาปัจจุบัน", - "Indent": "Indent", - "Outdent": "Outdent", - "Video": "Video", - "None": "None", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Delete embed", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "ประกาศข้อมูล", + "Success notice": "Success notice", + "Warning notice": "คำเตือน", + "Tip notice": "ข้อควรทราบ", "Wrap text": "Wrap text", + "Placeholder": "ตัวยึด", + "Bold": "ตัวหนา", + "Italic": "ตัวเอียง", + "Strikethrough": "ขีดเส้นทับข้อความ", + "Background color": "Background color", + "None": "None", + "Highlight": "ไฮไลท์", + "Code": "Code", + "Heading": "หัวเรื่อง", + "Subheading": "หัวเรื่องย่อย", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Outdent", + "Indent": "Indent", + "Create link": "สร้างลิงก์", + "Comment": "Comment", + "Align left": "จัดตำแหน่งชิดซ้าย", + "Align center": "จัดตำแหน่งกึ่งกลาง", + "Align right": "จัดตำแหน่งชิดขวา", + "Full width": "ความกว้างเต็ม", + "Download image": "ดาวน์โหลดภาพ", + "Replace image": "แทนที่ภาพ", + "Edit image URL": "Edit image URL", + "Default width": "Default width", + "Distribute columns": "Distribute columns", + "Delete table": "ลบตาราง", + "Export as CSV": "Export as CSV", + "Sort ascending": "Sort ascending", + "Sort descending": "Sort descending", + "Toggle header": "Toggle header", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Rename", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "shared", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access 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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Backlinks", + "Clear search highlight": "Clear search highlight", + "Warning": "คำเตือน", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", @@ -885,9 +885,13 @@ "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", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Not found", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "We were unable to load the document while offline.", @@ -936,6 +940,7 @@ "Large header": "Large header", "Medium header": "Medium header", "Small header": "Small header", + "Link": "ลิงค์", "Underline": "Underline", "Undo": "Undo", "Redo": "Redo", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "คัดลอกไปยังคลิปบอร์ดแล้ว", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Preferences saved", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "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.", @@ -1317,6 +1327,8 @@ "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", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", @@ -1325,7 +1337,6 @@ "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.", "All notifications": "All notifications", - "Preferences saved": "Preferences saved", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Delete account", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "ขออภัย เกิดข้อผิดพลาดในการอัปโหลดไฟล์", + "Sorry, that type of link is not supported": "Sorry, that type of link is not supported", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "กำลังโหลด", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "เขียนแคปชั่น", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index f7af6b8317..5d60f8125b 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -169,6 +169,7 @@ "New workspace": "Yeni çalışma alanı", "Create a workspace": "Bir çalışma alanı oluştur", "Login to workspace": "Çalışma alanına giriş yap", + "template": "template", "Template deleted": "Şablon silindi", "Deleting": "Siliniyor", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Bu işlemi yapmak istediğinizden emin misiniz? <em>{{ templateName }}</em> şablonu kalıcı olarak silinecektir.", @@ -298,6 +299,7 @@ "Currently editing": "Şu anda düzenliyor", "Currently viewing": "Şu anda görüntülüyor", "Viewed {{ timeAgo }}": "{{ timeAgo }} tarihinde görüntülendi", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Dosya türü desteklenmiyor. Lütfen PNG, JPG, GIF veya WebP kullanın.", "File size too large. Maximum size is {{ size }}.": "Dosya boyutu çok yüksek. Maksimum boyutu {{ size }} olmalıdır.", "Click or drag to replace": "Değiştirmek için tıklayın veya sürükleyin", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Üzgünüz, bir hata oluştu.", "Click to retry": "Tekrar denemek için tıklayın", "Back": "Geri", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Yönet", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "{{ userName }} için izinler güncellendi", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Bildirim seçenekleri", "Unknown": "Bilinmeyen", "Mentions": "Bahsetmeler", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}s {{ minutes }}d okuma", "{{ hours }}h read": "{{ hours }}s okuma", "{{ minutes }}m read": "{{ minutes }}d okuma", - "Manage": "Yönet", "All members": "Tüm üyeler", "Everyone in the workspace": "Çalışma alanındaki herkes", "{{ count }} member": "{{ count }} üye", "{{ count }} member_plural": "{{ count }} üye", + "Public link copied to clipboard": "Genel bağlantı panoya kopyalandı", "Only lowercase letters, digits and dashes allowed": "Yalnızca küçük harfler, rakamlar ve kısa çizgiler izin verilir", "Sorry, this link has already been used": "Üzgünüz, bu bağlantı zaten kullanılmış", - "Public link copied to clipboard": "Genel bağlantı panoya kopyalandı", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Bağlantıya sahip olan herkesin erişmesine izin ver", "Publish to internet": "İnternette yayınla", - "Search engine indexing": "Arama motoru indeksleme", - "Disable this setting to discourage search engines from indexing the page": "Arama motorlarının sayfayı indekslemesini engellemek için bu ayarı devre dışı bırakın", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Son düzenleme tarihini göster", - "Display the last modified timestamp on the shared page": "Paylaşılan sayfada son düzenleme zaman damgasını göster", - "Show table of contents": "İçindekiler tablosunu göster", - "Display the table of contents on documents by default": "Belgelerde varsayılan olarak içindekiler tablosunu göster", "All documents in this collection will be shared on the web, including any new documents added later": "Bu koleksiyondaki tüm belgeler, daha sonra eklenen yeni belgeler de dahil olmak üzere web'de paylaşılacaktır", "Invite": "Davet et", "{{ userName }} was added to the collection": "{{ userName }} koleksiyona eklendi", @@ -445,8 +447,24 @@ "Switch to dark": "Koyu temaya geç", "Switch to light": "Açık temaya geç", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Ekle", "Add or invite": "Ekle veya davet et", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Son düzenleme tarihini göster", + "Display the last modified timestamp on the shared page": "Paylaşılan sayfada son düzenleme zaman damgasını göster", + "Show table of contents": "İçindekiler tablosunu göster", + "Display the table of contents on documents by default": "Belgelerde varsayılan olarak içindekiler tablosunu göster", + "Behavior": "Davranış", + "Search engine indexing": "Arama motoru indeksleme", + "Disable this setting to discourage search engines from indexing the page": "Arama motorlarının sayfayı indekslemesini engellemek için bu ayarı devre dışı bırakın", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Bir şeyler yanlış gitti", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Koleksiyondan miras alınan erişim", "{{ userName }} was removed from the document": "{{ userName }} belgeden kaldırıldı", "Could not remove user": "Kullanıcı kaldırılamadı", - "Permissions for {{ userName }} updated": "{{ userName }} için izinler güncellendi", "Could not update user": "Kullanıcı güncellenemedi", "Has access through <2>parent</2>": "<2>Üst belge</2> aracılığıyla erişime sahip", "Suspended": "Askıya alındı", @@ -475,14 +492,12 @@ "Leave": "Ayrıl", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Bağlantıya sahip olan herkes erişebilir, çünkü kapsayan koleksiyon <2>{sharedParent.sourceTitle}</2> paylaşılıyor", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Bağlantıya sahip olan herkes erişebilir, çünkü üst belge <2>{sharedParent.sourceTitle}</2> paylaşılıyor", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "İç içe belgeler web'de paylaşılmaz. Erişimi etkinleştirmek için paylaşımı açın, bu gelecekte varsayılan davranış olacaktır", "{{ userName }} was added to the document": "{{ userName }} belgeye eklendi", "{{ count }} people added to the document": "{{ count }} kişi belgeye eklendi", "{{ count }} people added to the document_plural": "{{ count }} kişi belgeye eklendi", "{{ count }} groups added to the document": "{{ count }} grup belgeye eklendi", "{{ count }} groups added to the document_plural": "{{ count }} grup belgeye eklendi", - "Logo": "Logo", "Expand sidebar": "Kenar çubuğunu genişlet", "Collapse sidebar": "Kenar çubuğunu daralt", "Archived collections": "Arşivlenmiş koleksiyonlar", @@ -548,10 +563,18 @@ "Replacement": "Değiştirme", "Replace": "Değiştir", "Replace all": "Tümünü değiştir", + "Go to link": "Bağlantıya git", + "Open link": "Bağlantıyı aç", + "Remove link": "Bağlantıyı kaldır", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Bağlantı arayın veya yapıştırın", "Image width": "Görsel genişliği", "Width": "Genişlik", "Image height": "Görsel yüksekliği", "Height": "Yükseklik", + "Paste a link": "Bir bağlantı yapıştırın", + "Delete embed": "Yerleştirmeyi sil", + "Delete image": "Resmi sil", "Profile picture": "Profil fotoğrafı", "Create a new doc": "Yeni bir belge oluştur", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Bahset", "Embed": "Yerleştir", "Not supported": "Desteklenmiyor", + "Sorry, that link won’t work for this embed type": "Üzgünüz, bu bağlantı bu yerleştirme türü için çalışmayacaktır", "Upload file": "Dosya yükle", + "Paste a {{service}} link…": "Bir {{service}} bağlantısı yapıştırın…", "More options": "Daha fazla seçenek", - "Rename": "Yeniden adlandır", - "Insert after": "Sonrasına ekle", - "Insert before": "Öncesine ekle", - "Move up": "Yukarı taşı", - "Move down": "Aşağı taşı", - "Move left": "Sola taşı", - "Move right": "Sağa taşı", - "Align center": "Ortaya hizala", - "Align left": "Sola hizala", - "Align right": "Sağa hizala", - "Default width": "Varsayılan genişlik", - "Full width": "Tam genişlik", - "Bulleted list": "Madde işaretli liste", - "Todo list": "Görev listesi", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Tamamlananları gizle", - "Code block": "Kod bloğu", - "Copied to clipboard": "Panoya kopyalandı", - "Code": "Kod", - "Comment": "Yorum", - "Create link": "Bağlantı oluştur", - "Edit image URL": "Görsel URL'sini düzenle", - "Sorry, an error occurred creating the link": "Üzgünüz, bağlantı oluşturulurken bir hata oluştu", - "Create a new child doc": "Yeni bir alt belge oluştur", - "Delete table": "Tabloyu sil", + "Type '/' to insert": "Eklemek için '/' yazın", + "Keep typing to filter": "Filtrelemek için yazmaya devam edin", + "Replace file": "Dosyayı değiştir", "Delete file": "Dosyayı sil", "Show preview": "Önizlemeyi göster", - "Download file": "Dosyayı indir", - "Replace file": "Dosyayı değiştir", - "Delete image": "Resmi sil", - "Download image": "Resmi indir", - "Replace image": "Görseli değiştir", - "Italic": "İtalik", - "Sorry, that link won’t work for this embed type": "Üzgünüz, bu bağlantı bu yerleştirme türü için çalışmayacaktır", - "File attachment": "Dosya eki", - "Embed PDF": "Embed PDF", - "Enter a link": "Bir bağlantı girin", "Big heading": "Büyük başlık", "Medium heading": "Orta başlık", "Small heading": "Küçük başlık", "Extra small heading": "Ekstra küçük başlık", - "Heading": "Başlık", - "Divider": "Ayırıcı", - "Image": "Resim", - "Sorry, an error occurred uploading the file": "Üzgünüz, dosya yüklenirken bir hata oluştu", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Bir başlık yazın", - "Info": "Bilgi", - "Info notice": "Bilgi bildirimi", - "Link": "Bağlantı", - "Highlight": "Vurgula", - "Background color": "Background color", - "Type '/' to insert": "Eklemek için '/' yazın", - "Keep typing to filter": "Filtrelemek için yazmaya devam edin", - "Open link": "Bağlantıyı aç", - "Go to link": "Bağlantıya git", - "Sorry, that type of link is not supported": "Üzgünüz, bu bağlantı türü desteklenmiyor", + "Todo list": "Görev listesi", + "Bulleted list": "Madde işaretli liste", "Ordered list": "Sıralı Liste", - "Page break": "Sayfa sonu", - "Paste a link": "Bir bağlantı yapıştırın", - "Paste a {{service}} link…": "Bir {{service}} bağlantısı yapıştırın…", - "Placeholder": "Yer tutucu", - "Quote": "Alıntı", - "Remove link": "Bağlantıyı kaldır", - "Search or paste a link": "Bağlantı arayın veya yapıştırın", - "Strikethrough": "Üstü çizili", - "Bold": "Kalın", - "Subheading": "Alt başlık", - "Sort ascending": "Artan sırada sırala", - "Sort descending": "Azalan sırada sırala", + "Image": "Resim", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "Dosya eki", "Table": "Tablo", - "Export as CSV": "CSV olarak dışa aktar", - "Toggle header": "Başlığı aç/kapat", - "Math inline (LaTeX)": "Satır içi matematik (LaTeX)", + "Quote": "Alıntı", + "Code block": "Kod bloğu", "Math block (LaTeX)": "Matematik bloğu (LaTeX)", - "Merge cells": "Hücreleri birleştir", - "Split cell": "Hücreyi böl", - "Tip": "İpucu", - "Tip notice": "İpucu bildirimi", - "Warning": "Uyarı", - "Warning notice": "Uyarı bildirimi", - "Success": "Başarılı", - "Success notice": "Başarı bildirimi", + "Toggle block": "Toggle block", + "Divider": "Ayırıcı", + "Page break": "Sayfa sonu", "Current date": "Şimdiki tarih", "Current time": "Şimdiki saat", "Current date and time": "Şimdiki tarih ve saat", - "Indent": "Girintiyi arttır", - "Outdent": "Girintiyi azalt", - "Video": "Video", - "None": "Hiçbiri", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Yerleştirmeyi sil", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Bilgi bildirimi", + "Success notice": "Başarı bildirimi", + "Warning notice": "Uyarı bildirimi", + "Tip notice": "İpucu bildirimi", "Wrap text": "Wrap text", + "Placeholder": "Yer tutucu", + "Bold": "Kalın", + "Italic": "İtalik", + "Strikethrough": "Üstü çizili", + "Background color": "Background color", + "None": "Hiçbiri", + "Highlight": "Vurgula", + "Code": "Kod", + "Heading": "Başlık", + "Subheading": "Alt başlık", + "Merge cells": "Hücreleri birleştir", + "Split cell": "Hücreyi böl", + "Outdent": "Girintiyi azalt", + "Indent": "Girintiyi arttır", + "Create link": "Bağlantı oluştur", + "Comment": "Yorum", + "Align left": "Sola hizala", + "Align center": "Ortaya hizala", + "Align right": "Sağa hizala", + "Full width": "Tam genişlik", + "Download image": "Resmi indir", + "Replace image": "Görseli değiştir", + "Edit image URL": "Görsel URL'sini düzenle", + "Default width": "Varsayılan genişlik", + "Distribute columns": "Distribute columns", + "Delete table": "Tabloyu sil", + "Export as CSV": "CSV olarak dışa aktar", + "Sort ascending": "Artan sırada sırala", + "Sort descending": "Azalan sırada sırala", + "Toggle header": "Başlığı aç/kapat", + "Insert after": "Sonrasına ekle", + "Insert before": "Öncesine ekle", + "Move left": "Sola taşı", + "Move right": "Sağa taşı", + "Move up": "Yukarı taşı", + "Move down": "Aşağı taşı", + "Rename": "Yeniden adlandır", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "yorumunuza {{ emoji }} ile tepki verdi:", "shared": "paylaştı", "invited you to": "sizi davet etti:", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Bir tarih seçin", "API key created. Please copy the value now as it will not be shown again.": "API anahtarı oluşturuldu. Lütfen değeri şimdi kopyalayın, tekrar gösterilmeyecektir.", "Scopes": "Kapsamlar", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Belgenize içerik ekleyin, ardından başlıklar veya ayırıcılarla slaytlara ayırın.", "Learn more": "Daha fazla bilgi edinin", "Backlinks": "Geri bağlantılar", + "Clear search highlight": "Clear search highlight", + "Warning": "Uyarı", "This document is large which may affect performance": "Bu belge büyük, bu da performansı etkileyebilir", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Bundan emin misiniz? <em>{{ documentTitle }}</em> belgesini silmek, tüm geçmişini silecektir.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Bundan emin misiniz? <em>{{ documentTitle }}</em> belgesini silmek, tüm geçmişini ve <em>{{ any }} iç içe belgeyi</em> silecektir.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Filtreleriniz için belge bulunamadı.", "You’ve not got any drafts at the moment.": "Şu anda hiç taslağınız yok.", "Payment Required": "Ödeme Gerekiyor", + "Access request sent": "Access request sent", "No access to this doc": "Bu belgeye erişim yok", - "It doesn’t look like you have permission to access this document.": "Bu belgeye erişim izniniz yok gibi görünüyor.", - "Please request access from the document owner.": "Lütfen belge sahibinden erişim talep edin.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Bulunamadı", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Aradığınız sayfa bulunamadı. Silinmiş olabilir veya bağlantı yanlış olabilir.", "We were unable to load the document while offline.": "Çevrimdışıyken belgeyi yükleyemedik.", @@ -936,6 +940,7 @@ "Large header": "Büyük başlık", "Medium header": "Orta başlık", "Small header": "Küçük başlık", + "Link": "Bağlantı", "Underline": "Altı çizili", "Undo": "Geri al", "Redo": "Yinele", @@ -1092,6 +1097,7 @@ "Credentials": "Kimlik Bilgileri", "OAuth client ID": "OAuth istemci kimliği", "The public identifier for this app": "Bu uygulama için herkese açık tanımlayıcı", + "Copied to clipboard": "Panoya kopyalandı", "OAuth client secret": "OAuth istemci gizlisi", "Store this value securely, do not expose it publicly": "Bu değeri güvenli bir şekilde saklayın, herkese açık olarak ifşa etmeyin", "Where users are redirected after authorizing this app": "Kullanıcıların bu uygulamayı yetkilendirdikten sonra yönlendirildiği yer", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Tercihler kaydedildi", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Entegrasyon bağlantısını kes", "Disconnecting": "Bağlantı kesiliyor", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "<em>{{ service }}</em> entegrasyonunun bağlantısını kesmek istediğinizden emin misiniz?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Çalışma alanınızın logosunu, açıklamasını ve marka bilincini herkese açık paylaşılan sayfalarda gösterin.", "Table of contents position": "İçindekiler tablosu konumu", "The side to display the table of contents in relation to the main content.": "İçindekiler tablosunu ana içeriğe göre hangi tarafta göstereceğiniz.", - "Behavior": "Davranış", "Subdomain": "Alt alan adı", "Your workspace will be accessible at": "Çalışma alanınıza şu adresten erişilebilecek:", "Choose a subdomain to enable a login page just for your team.": "Yalnızca ekibiniz için bir giriş sayfasını etkinleştirmek üzere bir alt alan adı seçin.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Bir koleksiyona erişim verildiğinde bildirim alın", "Export completed": "Dışa aktarma tamamlandı", "Receive a notification when an export you requested has been completed": "Talep ettiğiniz bir dışa aktarma tamamlandığında bildirim alın", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Başlarken", "Tips on getting started with features and functionality": "Özellikler ve işlevsellik ile ilgili başlangıç ipuçları", "New features": "Yeni özellikler", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Abonelikten çıkma başarılı. Bildirim ayarlarınız güncellendi", "Manage when and where you receive email notifications.": "E-posta bildirimlerini ne zaman ve nerede alacağınızı yönetin.", "All notifications": "All notifications", - "Preferences saved": "Tercihler kaydedildi", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Hesabı sil", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} {{ timeAgo }} önce güncelledi", "You created {{ timeAgo }}": "Siz {{ timeAgo }} önce oluşturdunuz", "{{ user }} created {{ timeAgo }}": "{{ user }} {{ timeAgo }} önce oluşturdu", + "Sorry, an error occurred uploading the file": "Üzgünüz, dosya yüklenirken bir hata oluştu", + "Sorry, that type of link is not supported": "Üzgünüz, bu bağlantı türü desteklenmiyor", "Caption": "Altyazı", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Aç", "Loading": "Yükleniyor", - "Error loading data": "Veri yüklenirken hata" + "Error loading data": "Veri yüklenirken hata", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Tamamlananları gizle", + "Write a caption": "Bir başlık yazın", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index 0195589c84..33fc58278e 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -169,6 +169,7 @@ "New workspace": "Новий робочий простір", "Create a workspace": "Створити робочий простір", "Login to workspace": "Увійти в робоче середовище", + "template": "template", "Template deleted": "Шаблон видалено", "Deleting": "Видаляємо", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Ви впевнені? Видалення шаблону <em>{{ templateName }}</em> є незворотним.", @@ -298,6 +299,7 @@ "Currently editing": "Зараз редагується", "Currently viewing": "Зараз переглядають", "Viewed {{ timeAgo }}": "Переглянуто {{ timeAgo }}", + "Uploading… {{ progress }}%": "Вивантаження… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Тип файлу не підтримується. Будь ласка, використайте PNG, JPG, GIF або WebP.", "File size too large. Maximum size is {{ size }}.": "Надто великий розмір файлу. Максимальний розмір файлу {{ size }}.", "Click or drag to replace": "Натисніть або перетягніть для заміни", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Вибачте, виникла помилка.", "Click to retry": "Натисніть, щоб повторити", "Back": "Назад", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Керування", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Права для {{ userName }} оновлено", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Параметри сповіщень", "Unknown": "Невідомо", "Mentions": "Згадування", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }} год {{ minutes }} хв читання", "{{ hours }}h read": "{{ hours }} год читання", "{{ minutes }}m read": "{{ minutes }} хв читання", - "Manage": "Керування", "All members": "Усі учасники", "Everyone in the workspace": "Усі у робочому середовищі", "{{ count }} member": "{{ count }} учасник", "{{ count }} member_plural": "{{ count }} учасників", + "Public link copied to clipboard": "Публічне посилання скопійовано в буфер обміну", "Only lowercase letters, digits and dashes allowed": "Допускаються тільки маленькі літери, цифри і дефіси", "Sorry, this link has already been used": "Вибачте, це посилання вже використано", - "Public link copied to clipboard": "Публічне посилання скопійовано в буфер обміну", - "Web": "Веб", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Дозволити будь-кому з посиланням для доступу", "Publish to internet": "Опублікувати в інтернеті", - "Search engine indexing": "Індексація пошуковою системою", - "Disable this setting to discourage search engines from indexing the page": "Вимкніть цей параметр, щоб заборонити пошуковій системі індексувати сторінку", - "Email subscriptions": "Підписки електронної пошти", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Показати останні зміни", - "Display the last modified timestamp on the shared page": "Показувати час останньої зміни на спільній сторінці", - "Show table of contents": "Показ змісту", - "Display the table of contents on documents by default": "Показувати зміст документів за замовчуванням", "All documents in this collection will be shared on the web, including any new documents added later": "Всі документи у цій колекції будуть опубліковані в Інтернеті, включаючи будь-які нові документи, додані пізніше", "Invite": "Запросити", "{{ userName }} was added to the collection": "{{ userName }} додано до колекції", @@ -445,8 +447,24 @@ "Switch to dark": "Увімкнути темну тему", "Switch to light": "Увімкнути світлу тему", "Subscribe to updates": "Subscribe to updates", + "Logo": "Лого", "Add": "Додати", "Add or invite": "Додати або запросити", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Показати останні зміни", + "Display the last modified timestamp on the shared page": "Показувати час останньої зміни на спільній сторінці", + "Show table of contents": "Показ змісту", + "Display the table of contents on documents by default": "Показувати зміст документів за замовчуванням", + "Behavior": "Режим", + "Search engine indexing": "Індексація пошуковою системою", + "Disable this setting to discourage search engines from indexing the page": "Вимкніть цей параметр, щоб заборонити пошуковій системі індексувати сторінку", + "Email subscriptions": "Підписки електронної пошти", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Щось пішло не так", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Доступ успадковано від колекції", "{{ userName }} was removed from the document": "{{ userName }} було видалено з документа", "Could not remove user": "Не вдалось вилучити користувача", - "Permissions for {{ userName }} updated": "Права для {{ userName }} оновлено", "Could not update user": "Неможливо оновити користувача", "Has access through <2>parent</2>": "Має доступ через <2>parent</2>", "Suspended": "Призупинено", @@ -475,14 +492,12 @@ "Leave": "Вихід", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Будь-хто з посиланням може отримати доступ, оскільки батьківська колекція <2>{sharedParent.sourceTitle}</2>, публічна", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Будь-хто з посиланням може отримати доступ, оскільки батьківський документ <2>{sharedParent.sourceTitle}</2>, публічний", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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 }} було додано до документа", "{{ count }} people added to the document": "{{ count }} людей було додано до документа", "{{ count }} people added to the document_plural": "{{ count }} людей було додано до документа", "{{ count }} groups added to the document": "{{ count }} груп було додано до документа", "{{ count }} groups added to the document_plural": "{{ count }} груп було додано до документа", - "Logo": "Лого", "Expand sidebar": "Розгорнути бокову панель", "Collapse sidebar": "Згорнути бокову панель", "Archived collections": "Заархівовані колекції", @@ -548,10 +563,18 @@ "Replacement": "Заміна", "Replace": "Замінити", "Replace all": "Замінити все", + "Go to link": "Перейти за посиланням", + "Open link": "Відкрити посилання", + "Remove link": "Видалити посилання", + "Formatting controls": "Управління форматуванням", + "Search or paste a link": "Пошук або вставте посилання", "Image width": "Ширина зображення", "Width": "Ширина", "Image height": "Висота зображення", "Height": "Висота", + "Paste a link": "Вставити посилання", + "Delete embed": "Видалити вкладення", + "Delete image": "Видалити зображення", "Profile picture": "Аватар", "Create a new doc": "Створіть новий документ", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Згадка", "Embed": "Вставити", "Not supported": "Не підтримується", + "Sorry, that link won’t work for this embed type": "На жаль, це посилання не працюватиме для цього типу вставлення", "Upload file": "Upload file", + "Paste a {{service}} link…": "Вставте {{service}} посилання…", "More options": "Більше параметрів", - "Rename": "Змінити назву", - "Insert after": "Вставити після", - "Insert before": "Вставити до", - "Move up": "Підняти вгору", - "Move down": "Опустити вниз", - "Move left": "Посунути ліворуч", - "Move right": "Посунути праворуч", - "Align center": "Вирівняти по центру", - "Align left": "Вирівняти по лівому краю", - "Align right": "Вирівняти по правому краю", - "Default width": "Стандартна ширина", - "Full width": "На всю ширину", - "Bulleted list": "Маркований список", - "Todo list": "Список завдань", - "Show {{ count }} completed": "Показати {{ count }} виконаних", - "Show {{ count }} completed_plural": "Показати {{ count }} виконаних", - "Hide completed": "Приховати виконані", - "Code block": "Блок коду", - "Copied to clipboard": "Скопійовано в буфер обміну", - "Code": "Код", - "Comment": "Коментар", - "Create link": "Створити посилання", - "Edit image URL": "Редагувати посилання на зображення", - "Sorry, an error occurred creating the link": "На жаль, під час створення посилання сталася помилка", - "Create a new child doc": "Створити новий вкладений документ", - "Delete table": "Видалити таблицю", + "Type '/' to insert": "Введіть '/', для вставки", + "Keep typing to filter": "Продовжуйте вводити, щоб фільтрувати", + "Replace file": "Замінити файл", "Delete file": "Видалити файл", "Show preview": "Show preview", - "Download file": "Завантажити файл", - "Replace file": "Замінити файл", - "Delete image": "Видалити зображення", - "Download image": "Завантажити зображення", - "Replace image": "Замінити зображення", - "Italic": "Курсив", - "Sorry, that link won’t work for this embed type": "На жаль, це посилання не працюватиме для цього типу вставлення", - "File attachment": "Вкладений файл", - "Embed PDF": "Вставити PDF", - "Enter a link": "Ввести посилання", "Big heading": "Великий заголовок", "Medium heading": "Середній заголовок", "Small heading": "Маленький заголовок", "Extra small heading": "Дуже малий заголовок", - "Heading": "Заголовок", - "Divider": "Роздільник", - "Image": "Зображення", - "Sorry, an error occurred uploading the file": "На жаль, під час завантаження файлу сталася помилка", - "Uploading… {{ progress }}%": "Вивантаження… {{ progress }}%", - "Write a caption": "Напишіть підпис", - "Info": "Інформація", - "Info notice": "Інформаційне повідомлення", - "Link": "Посилання", - "Highlight": "Виділення", - "Background color": "Колір фону", - "Type '/' to insert": "Введіть '/', для вставки", - "Keep typing to filter": "Продовжуйте вводити, щоб фільтрувати", - "Open link": "Відкрити посилання", - "Go to link": "Перейти за посиланням", - "Sorry, that type of link is not supported": "Це посилання не підтримується", + "Todo list": "Список завдань", + "Bulleted list": "Маркований список", "Ordered list": "Впорядкований список", - "Page break": "Розрив сторінки", - "Paste a link": "Вставити посилання", - "Paste a {{service}} link…": "Вставте {{service}} посилання…", - "Placeholder": "Поле для заповнення", - "Quote": "Цитата", - "Remove link": "Видалити посилання", - "Search or paste a link": "Пошук або вставте посилання", - "Strikethrough": "Перекреслений", - "Bold": "Жирний", - "Subheading": "Підзаголовок", - "Sort ascending": "Сортування за зростанням", - "Sort descending": "Сортувати за спаданням", + "Image": "Зображення", + "Video": "Відео", + "Embed PDF": "Вставити PDF", + "File attachment": "Вкладений файл", "Table": "Таблиця", - "Export as CSV": "Експортувати у форматі CSV", - "Toggle header": "Перемикнути заголовок", - "Math inline (LaTeX)": "Математика (LaTeX)", + "Quote": "Цитата", + "Code block": "Блок коду", "Math block (LaTeX)": "Математичний блок (LaTeX)", - "Merge cells": "Об'єднати комірки", - "Split cell": "Розділити комірку", - "Tip": "Підказка", - "Tip notice": "Підказка", - "Warning": "Застереження", - "Warning notice": "Попереджувальне повідомлення", - "Success": "Успіх", - "Success notice": "Сповіщення про успіх", + "Toggle block": "Перемикач блоку", + "Divider": "Роздільник", + "Page break": "Розрив сторінки", "Current date": "Поточна дата", "Current time": "Поточний час", "Current date and time": "Поточні дата і час", - "Indent": "Відступ", - "Outdent": "Відступ", - "Video": "Відео", - "None": "Нічого", - "Toggle block": "Перемикач блоку", - "Add title": "Додати заголовок", - "Add content": "Додати вміст", - "Delete embed": "Видалити вкладення", - "Formatting controls": "Управління форматуванням", - "Distribute columns": "Розподілити стовпці", + "Info notice": "Інформаційне повідомлення", + "Success notice": "Сповіщення про успіх", + "Warning notice": "Попереджувальне повідомлення", + "Tip notice": "Підказка", "Wrap text": "Wrap text", + "Placeholder": "Поле для заповнення", + "Bold": "Жирний", + "Italic": "Курсив", + "Strikethrough": "Перекреслений", + "Background color": "Колір фону", + "None": "Нічого", + "Highlight": "Виділення", + "Code": "Код", + "Heading": "Заголовок", + "Subheading": "Підзаголовок", + "Merge cells": "Об'єднати комірки", + "Split cell": "Розділити комірку", + "Outdent": "Відступ", + "Indent": "Відступ", + "Create link": "Створити посилання", + "Comment": "Коментар", + "Align left": "Вирівняти по лівому краю", + "Align center": "Вирівняти по центру", + "Align right": "Вирівняти по правому краю", + "Full width": "На всю ширину", + "Download image": "Завантажити зображення", + "Replace image": "Замінити зображення", + "Edit image URL": "Редагувати посилання на зображення", + "Default width": "Стандартна ширина", + "Distribute columns": "Розподілити стовпці", + "Delete table": "Видалити таблицю", + "Export as CSV": "Експортувати у форматі CSV", + "Sort ascending": "Сортування за зростанням", + "Sort descending": "Сортувати за спаданням", + "Toggle header": "Перемикнути заголовок", + "Insert after": "Вставити після", + "Insert before": "Вставити до", + "Move left": "Посунути ліворуч", + "Move right": "Посунути праворуч", + "Move up": "Підняти вгору", + "Move down": "Опустити вниз", + "Rename": "Змінити назву", "Delete Emoji": "Видалення емодзі", "Emoji deleted": "Емодзі видалено", "I'm sure – Delete": "Я впевнений – Видалити", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "відреагував(-ла) {{ emoji }} на ваш коментар", "shared": "спільний", "invited you to": "вас запрошено до", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Обрати дату", "API key created. Please copy the value now as it will not be shown again.": "Ключ API створено. Будь ласка, скопіюйте значення зараз, оскільки він більше не буде показуватись.", "Scopes": "Область дії", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Зворотні посилання", + "Clear search highlight": "Clear search highlight", + "Warning": "Застереження", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Ви впевнені в цьому? Видалення документа <em>{{ documentTitle }}</em> призведе до видалення всієї його історії</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Ви впевнені в цьому? Видалення документа <em>{{ documentTitle }}</em> призведе до видалення всієї його історії та <em>{{ any }} вкладених документів</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Не знайдено жодного документу за вашими фільтрами.", "You’ve not got any drafts at the moment.": "Наразі у вас немає чернеток.", "Payment Required": "Вимагається Оплата", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Не знайдено", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", "We were unable to load the document while offline.": "Нам не вдалося завантажити документ у режимі офлайн.", @@ -936,6 +940,7 @@ "Large header": "Великий заголовок", "Medium header": "Середній заголовок", "Small header": "Маленький заголовок", + "Link": "Посилання", "Underline": "Підкреслення", "Undo": "Скасувати", "Redo": "Повторити дію", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Скопійовано в буфер обміну", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Налаштування збережено", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Показувати логотип, опис та брендування свого робочого простору на загальнодоступних сторінках.", "Table of contents position": "Розташування вмісту", "The side to display the table of contents in relation to the main content.": "Сторона для відображення змісту відносно основного матеріалу.", - "Behavior": "Режим", "Subdomain": "Піддомен", "Your workspace will be accessible at": "Ваша база знань буде доступна за адресою", "Choose a subdomain to enable a login page just for your team.": "Виберіть піддомен, щоб увімкнути сторінку входу лише для вашої команди.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", "Export completed": "Експорт завершено", "Receive a notification when an export you requested has been completed": "Отримувати повідомлення, коли запит на експорт завершено", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Розпочати", "Tips on getting started with features and functionality": "Поради щодо початку роботи з функціями та функціональністю", "New features": "Нові функції", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Відписка пройшла успішно. Ваші налаштування сповіщень було оновлено", "Manage when and where you receive email notifications.": "Керувати коли і де ви отримуєте повідомлення на електронну пошту.", "All notifications": "All notifications", - "Preferences saved": "Налаштування збережено", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Видалити обліковий запис", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} оновив {{ timeAgo }}", "You created {{ timeAgo }}": "Ви створили {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} створив {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "На жаль, під час завантаження файлу сталася помилка", + "Sorry, that type of link is not supported": "Це посилання не підтримується", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "Завантаження", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Показати {{ count }} виконаних", + "Show {{ count }} completed_plural": "Показати {{ count }} виконаних", + "Hide completed": "Приховати виконані", + "Write a caption": "Напишіть підпис", + "Add title": "Додати заголовок", + "Add content": "Додати вміст" } diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index beea941b63..2b44c3818b 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -169,6 +169,7 @@ "New workspace": "Workspace mới", "Create a workspace": "Tạo workspace", "Login to workspace": "Đăng nhập vào không gian làm việc", + "template": "template", "Template deleted": "Template deleted", "Deleting": "Đang xóa", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -298,6 +299,7 @@ "Currently editing": "Hiện đang chỉnh sửa", "Currently viewing": "Hiện đang xem", "Viewed {{ timeAgo }}": "Đã xem {{ timeAgo }}", + "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", "Click or drag to replace": "Click or drag to replace", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "Xin lỗi, đã xảy ra lỗi.", "Click to retry": "Nhấp để thử lại", "Back": "Quay Lại", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "Quản lý", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "Notification options", "Unknown": "Không xác định", "Mentions": "Mentions", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", "{{ hours }}h read": "{{ hours }}h read", "{{ minutes }}m read": "{{ minutes }} phút đọc ", - "Manage": "Quản lý", "All members": "Tất cả thành viên", "Everyone in the workspace": "Người tham gia không gian làm việc", "{{ count }} member": "{{$count}} Thành viên", "{{ count }} member_plural": "{{$count}} Thành viên", + "Public link copied to clipboard": "Public link copied to clipboard", "Only lowercase letters, digits and dashes allowed": "Chỉ cho phép chữ thường, chữ số và dấu gạch ngang", "Sorry, this link has already been used": "Xin lỗi, liên kết này đã được sử dụng", - "Public link copied to clipboard": "Public link copied to clipboard", - "Web": "Web", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "Allow anyone with the link to access", "Publish to internet": "Đăng tải lên 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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "Hiện lần sửa cuối", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", "Invite": "Mời", "{{ userName }} was added to the collection": "{{ userName }} đã được thêm vào bộ sưu tập", @@ -445,8 +447,24 @@ "Switch to dark": "Chuyển sang Dark", "Switch to light": "Chuyển sang Light", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "Thêm", "Add or invite": "Thêm hoặc gửi lời mời", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "Hiện lần sửa cuối", + "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", + "Show table of contents": "Show table of contents", + "Display the table of contents on documents by default": "Display the table of contents on documents by default", + "Behavior": "Hành vi", + "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", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "Access inherited from collection", "{{ userName }} was removed from the document": "{{ userName }} was removed from the document", "Could not remove user": "Không thể xóa người dùng", - "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", "Could not update user": "Không thể cập nhật người dùng", "Has access through <2>parent</2>": "Has access through <2>parent</2>", "Suspended": "Bị tạm ngưng", @@ -475,14 +492,12 @@ "Leave": "Thoát", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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 }} đã được thêm vào tài liệu", "{{ count }} people added to the document": "{{ count }} người đã được thêm vào tài liệu", "{{ count }} people added to the document_plural": "{{ count }} người đã được thêm vào tài liệu", "{{ count }} groups added to the document": "{{ count }} nhóm đã được thêm vào tài liệu", "{{ count }} groups added to the document_plural": "{{ count }} nhóm đã được thêm vào tài liệu", - "Logo": "Logo", "Expand sidebar": "Mở bảng điều hướng", "Collapse sidebar": "Collapse sidebar", "Archived collections": "Bộ sưu tập đã lưu trữ", @@ -548,10 +563,18 @@ "Replacement": "Thay thế", "Replace": "Thay thế", "Replace all": "Thay thế tất cả", + "Go to link": "Đi đến liên kết", + "Open link": "Mở đường Link", + "Remove link": "Gỡ bỏ đường Link", + "Formatting controls": "Formatting controls", + "Search or paste a link": "Tìm kiếm hoặc dán một đường Link", "Image width": "Image width", "Width": "Width", "Image height": "Image height", "Height": "Height", + "Paste a link": "Dán đường link", + "Delete embed": "Xóa phần nhúng", + "Delete image": "Xóa ảnh", "Profile picture": "Ảnh đại diện", "Create a new doc": "Tạo một tài liệu mới", "Create a nested doc": "Create a nested doc", @@ -561,106 +584,78 @@ "Mention": "Nhắc đến", "Embed": "Nhúng", "Not supported": "Not supported", + "Sorry, that link won’t work for this embed type": "Xin lỗi, liên kết đó sẽ không hoạt động cho loại nhúng này", "Upload file": "Upload file", + "Paste a {{service}} link…": "Dán đường Link {{service}}…", "More options": "More options", - "Rename": "Đổi tên", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move up": "Move up", - "Move down": "Move down", - "Move left": "Move left", - "Move right": "Move right", - "Align center": "Căn giữa", - "Align left": "Căn trái", - "Align right": "Căn phải", - "Default width": "Chiều rộng mặc định", - "Full width": "Rộng toàn bộ", - "Bulleted list": "Danh sách dấu đầu dòng", - "Todo list": "Danh sách tác vụ", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Code block": "Khối Code", - "Copied to clipboard": "Chép vào bộ nhớ tạm", - "Code": "Code", - "Comment": "Bình luận", - "Create link": "Tạo đường link", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "Xin lỗi, đã xảy ra lỗi khi tạo đường link", - "Create a new child doc": "Create a new child doc", - "Delete table": "Xóa bảng", + "Type '/' to insert": "Gõ '/' để chèn", + "Keep typing to filter": "Tiếp tục nhập để lọc", + "Replace file": "Thay thế tập tin", "Delete file": "Xóa tệp tin", "Show preview": "Show preview", - "Download file": "Tải xuống tập tin", - "Replace file": "Thay thế tập tin", - "Delete image": "Xóa ảnh", - "Download image": "Tải ảnh", - "Replace image": "Thay thế ảnh", - "Italic": "Nghiêng", - "Sorry, that link won’t work for this embed type": "Xin lỗi, liên kết đó sẽ không hoạt động cho loại nhúng này", - "File attachment": "Tài liệu đính kèm", - "Embed PDF": "Embed PDF", - "Enter a link": "Enter a link", "Big heading": "Tiêu đề lớn", "Medium heading": "Tiêu đề vừa", "Small heading": "Tiêu đề nhỏ", "Extra small heading": "Extra small heading", - "Heading": "Tiêu đề", - "Divider": "Phân cách", - "Image": "Ảnh", - "Sorry, an error occurred uploading the file": "Đã xảy ra lỗi khi đang tải lên ảnh", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "Write a caption": "Viết chú thích", - "Info": "Thông tin", - "Info notice": "Thông báo thông tin", - "Link": "Đường link", - "Highlight": "Điểm nổi bật", - "Background color": "Background color", - "Type '/' to insert": "Gõ '/' để chèn", - "Keep typing to filter": "Tiếp tục nhập để lọc", - "Open link": "Mở đường Link", - "Go to link": "Đi đến liên kết", - "Sorry, that type of link is not supported": "Xin lỗi, loại liên kết đó không được hỗ trợ", + "Todo list": "Danh sách tác vụ", + "Bulleted list": "Danh sách dấu đầu dòng", "Ordered list": "Danh sách thứ tự", - "Page break": "Ngắt trang", - "Paste a link": "Dán đường link", - "Paste a {{service}} link…": "Dán đường Link {{service}}…", - "Placeholder": "Giữ chỗ", - "Quote": "Trích dẫn", - "Remove link": "Gỡ bỏ đường Link", - "Search or paste a link": "Tìm kiếm hoặc dán một đường Link", - "Strikethrough": "Gạch ngang", - "Bold": "Đậm", - "Subheading": "Tiêu đề phụ", - "Sort ascending": "Sắp xếp tăng dần", - "Sort descending": "Sắp xếp giảm dần", + "Image": "Ảnh", + "Video": "Video", + "Embed PDF": "Embed PDF", + "File attachment": "Tài liệu đính kèm", "Table": "Bảng", - "Export as CSV": "Export as CSV", - "Toggle header": "Toggle header", - "Math inline (LaTeX)": "Toán nội tuyến (LaTeX)", + "Quote": "Trích dẫn", + "Code block": "Khối Code", "Math block (LaTeX)": "Khối toán (LaTeX)", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Tip": "Mẹo", - "Tip notice": "Thông báo mẹo", - "Warning": "Cảnh báo", - "Warning notice": "Thông báo cảnh báo", - "Success": "Hoàn tất", - "Success notice": "Thông báo hoàn tất", + "Toggle block": "Toggle block", + "Divider": "Phân cách", + "Page break": "Ngắt trang", "Current date": "Ngày hiện tại", "Current time": "Thời gian hiện tại", "Current date and time": "Ngày giờ hiện tại", - "Indent": "Thụt lề", - "Outdent": "Nhô lề", - "Video": "Video", - "None": "Không", - "Toggle block": "Toggle block", - "Add title": "Add title", - "Add content": "Add content", - "Delete embed": "Xóa phần nhúng", - "Formatting controls": "Formatting controls", - "Distribute columns": "Distribute columns", + "Info notice": "Thông báo thông tin", + "Success notice": "Thông báo hoàn tất", + "Warning notice": "Thông báo cảnh báo", + "Tip notice": "Thông báo mẹo", "Wrap text": "Wrap text", + "Placeholder": "Giữ chỗ", + "Bold": "Đậm", + "Italic": "Nghiêng", + "Strikethrough": "Gạch ngang", + "Background color": "Background color", + "None": "Không", + "Highlight": "Điểm nổi bật", + "Code": "Code", + "Heading": "Tiêu đề", + "Subheading": "Tiêu đề phụ", + "Merge cells": "Merge cells", + "Split cell": "Split cell", + "Outdent": "Nhô lề", + "Indent": "Thụt lề", + "Create link": "Tạo đường link", + "Comment": "Bình luận", + "Align left": "Căn trái", + "Align center": "Căn giữa", + "Align right": "Căn phải", + "Full width": "Rộng toàn bộ", + "Download image": "Tải ảnh", + "Replace image": "Thay thế ảnh", + "Edit image URL": "Edit image URL", + "Default width": "Chiều rộng mặc định", + "Distribute columns": "Distribute columns", + "Delete table": "Xóa bảng", + "Export as CSV": "Export as CSV", + "Sort ascending": "Sắp xếp tăng dần", + "Sort descending": "Sắp xếp giảm dần", + "Toggle header": "Toggle header", + "Insert after": "Insert after", + "Insert before": "Insert before", + "Move left": "Move left", + "Move right": "Move right", + "Move up": "Move up", + "Move down": "Move down", + "Rename": "Đổi tên", "Delete Emoji": "Delete Emoji", "Emoji deleted": "Emoji deleted", "I'm sure – Delete": "I'm sure – Delete", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "được chia sẻ", "invited you to": "invited you to", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "Chọn ngày", "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", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "Learn more", "Backlinks": "Liên kết ngược", + "Clear search highlight": "Clear search highlight", + "Warning": "Cảnh báo", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Bạn có chắc chắn không? Xóa văn bản <em>{{ documentTitle }}</em> sẽ xóa tất cả lịch sử của nó</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Bạn có chắc chắn về điều đó không? Xóa tài liệu <em>{{ documentTitle }}</em> sẽ xóa tất cả lịch sử của nó và <em>{{ any }} tài liệu lồng nhau</em>.", @@ -885,9 +885,13 @@ "No documents found for your filters.": "Không tìm thấy tài liệu nào cho bộ lọc của bạn.", "You’ve not got any drafts at the moment.": "Bạn không có bất kỳ bản nháp nào vào lúc này.", "Payment Required": "Payment Required", + "Access request sent": "Access request sent", "No access to this doc": "No access to this doc", - "It doesn’t look like you have permission to access this document.": "It doesn’t look like you have permission to access this document.", - "Please request access from the document owner.": "Please request access from the document owner.", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "Không tồn tại", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Trang bạn muốn truy cập không tồn tại. Có thể tài liệu đã bị xóa hoặc liên kết bị sai.", "We were unable to load the document while offline.": "Chúng tôi không thể tải tài liệu khi ngoại tuyến.", @@ -936,6 +940,7 @@ "Large header": "Tiêu đề lớn", "Medium header": "Tiêu đề trung bình", "Small header": "Tiêu đề nhỏ", + "Link": "Đường link", "Underline": "Gạch dưới", "Undo": "Hoàn tác", "Redo": "Làm lại", @@ -1092,6 +1097,7 @@ "Credentials": "Credentials", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "The public identifier for this app", + "Copied to clipboard": "Chép vào bộ nhớ tạm", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "Lưu tùy chọn", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "Disconnect integration", "Disconnecting": "Disconnecting", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "Behavior": "Hành vi", "Subdomain": "Tên miền phụ", "Your workspace will be accessible at": "Your workspace will be accessible at", "Choose a subdomain to enable a login page just for your team.": "Chọn một miền phụ để kích hoạt trang đăng nhập chỉ dành cho nhóm của bạn.", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", "Export completed": "Xuất hoàn tất", "Receive a notification when an export you requested has been completed": "Nhận thông báo khi quá trình xuất mà bạn yêu cầu đã hoàn tất", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "Bắt đầu", "Tips on getting started with features and functionality": "Mẹo bắt đầu với các tính năng và chức năng", "New features": "Tính năng mới", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "Hủy đăng ký thành công. Cài đặt thông báo của bạn đã được cập nhật", "Manage when and where you receive email notifications.": "Quản lý thời gian và địa điểm bạn nhận được thông báo qua email.", "All notifications": "All notifications", - "Preferences saved": "Lưu tùy chọn", "Unread count": "Unread count", "Unread indicator": "Unread indicator", "Delete account": "Xoá tài khoản", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}", "You created {{ timeAgo }}": "You created {{ timeAgo }}", "{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Đã xảy ra lỗi khi đang tải lên ảnh", + "Sorry, that type of link is not supported": "Xin lỗi, loại liên kết đó không được hỗ trợ", "Caption": "Caption", "Empty diagram": "Empty diagram", "Double click to edit": "Double click to edit", "Open": "Open", "Loading": "Đang tải", - "Error loading data": "Error loading data" + "Error loading data": "Error loading data", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "Hide completed", + "Write a caption": "Viết chú thích", + "Add title": "Add title", + "Add content": "Add content" } diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index c866b36f92..86febc2dd0 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -1,7 +1,7 @@ { "New API key": "创建 API 密钥", "Copy": "复制", - "API key copied": "API key copied", + "API key copied": "API 密钥已复制", "Delete": "删除", "Revoke": "撤销", "Revoke API key": "撤销 API 密钥", @@ -57,8 +57,8 @@ "Open document": "打开文档", "New draft": "新建草稿", "Nested document": "子文档", - "Before": "Before", - "After": "After", + "Before": "之前", + "After": "之后", "Publish": "发布", "Published {{ documentName }}": "已发布 {{ documentName }}", "Publish document": "发布文档", @@ -90,7 +90,7 @@ "Search in document": "在文档中搜索", "Print": "打印", "Print document": "打印文档", - "Open in desktop app": "Open in desktop app", + "Open in desktop app": "在桌面应用程序中打开", "Present": "Present", "Present document": "Present document", "Templatize": "模板化", @@ -169,15 +169,16 @@ "New workspace": "新建工作区", "Create a workspace": "创建工作区", "Login to workspace": "登陆到工作区", - "Template deleted": "Template deleted", + "template": "template", + "Template deleted": "模板已删除", "Deleting": "正在删除", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", "Move to workspace": "移动到工作区", - "Template moved": "Template moved", - "Couldn't move the template, try again?": "Couldn't move the template, try again?", + "Template moved": "模板已移动", + "Couldn't move the template, try again?": "无法移动模板,请重试", "Move to collection": "移动到文档集", - "Move template": "Move template", - "Print template": "Print template", + "Move template": "移动模板", + "Print template": "打印模板", "Invite people": "邀请其他人", "Invite to workspace": "邀请到工作区", "Promote to {{ role }}": "提升为 {{ role }}", @@ -188,7 +189,7 @@ "Collections": "文档集", "Debug": "调试", "Document": "文档", - "Search results": "Search results", + "Search results": "搜索结果", "Documents": "文档", "Template": "模板", "Recently viewed": "最近浏览过", @@ -206,10 +207,10 @@ "You": "你", "Avatar of {{ name }}": "{{ name }}的头像", "Viewers": "浏览者", - "Managers": "Managers", + "Managers": "管理员", "Members": "成员", - "Manage templates": "Manage templates", - "Choose who can create and edit templates in this collection.": "Choose who can create and edit templates in this collection.", + "Manage templates": "管理模板", + "Choose who can create and edit templates in this collection.": "选择谁可以在此文档集中创建和编辑模板。", "Public document sharing": "公开共享文档", "Allow documents within this collection to be shared publicly on the internet.": "允许此文档集中的文档在互联网上公开共享。", "Commenting": "评论", @@ -217,7 +218,7 @@ "Collections are used to group documents and choose permissions": "文档集用于对文档进行分组和权限管理", "Name": "名称", "The default access for workspace members, you can share with more users or groups later.": "工作区成员的默认访问权限,你可以稍后与更多的用户或组分享。", - "Advanced options": "Advanced options", + "Advanced options": "高级选项", "Saving": "保存中", "Save": "保存", "Creating": "创建中", @@ -245,7 +246,7 @@ "Install now": "立即安装", "Deleted Collection": "删除文档集", "Untitled": "无标题", - "Collection options": "Collection options", + "Collection options": "文档集选项", "Document options": "文档选项", "Unpin": "取消置顶", "Export started": "导出已开始", @@ -270,7 +271,7 @@ "Document moved": "文档已被移动", "Couldn’t move the document, try again?": "无法移动文档,请重试", "Move to <em>{{ location }}</em>": "移动到 <em>{{ location }}</em>", - "Couldn’t move the template, try again?": "Couldn’t move the template, try again?", + "Couldn’t move the template, try again?": "无法移动模板,请重试", "New": "新", "Only visible to you": "仅自己可见", "Draft": "草稿", @@ -298,6 +299,7 @@ "Currently editing": "正在编辑", "Currently viewing": "正在浏览", "Viewed {{ timeAgo }}": "{{ timeAgo }} 浏览", + "Uploading… {{ progress }}%": "上传中... {{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "不支持的文件类型,请使用PNG、JPG、GIF或WebP。", "File size too large. Maximum size is {{ size }}.": "上传文件过大. 文件大小限制为{{ size }}。", "Click or drag to replace": "单击或拖动以替换", @@ -308,12 +310,12 @@ "Please select an image file": "请选择一个图像文件", "Emoji created successfully": "表情创建成功", "Add emoji": "添加表情符号", - "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.", + "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "透明背景的方形图像效果最好。如果您的图像太大,我们会尝试为您调整尺寸。", "Upload an image": "上传图片", "Choose a name": "选择一个名字", "name can only contain lowercase letters, numbers, and underscores.": "名称只能包含小写字母、数字和下划线。", "This emoji will be available as": "这个表情将可用作", - "Emoji replaced": "Emoji replaced", + "Emoji replaced": "表情已替换", "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.", "Module failed to load": "模块加载失败", "Loading Failed": "加载失败", @@ -341,8 +343,8 @@ "{{ count }} members_plural": "{{ count }} 位成员", "{{authorName}} created <3></3>": "{{authorName}} 已创建 <3></3>", "Lead": "Lead", - "Target date": "Target date", - "Labels": "Labels", + "Target date": "目标日期", + "Labels": "标签", "{{authorName}} opened <3></3>": "{{authorName}} 已打开 <3></3>", "Search emoji": "搜索表情", "Search icons": "搜索图标", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "抱歉,出错了。", "Click to retry": "点击重试", "Back": "返回", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "管理", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "{{ userName }} 的权限已更新", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "通知选项", "Unknown": "未知", "Mentions": "提及", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "已读 {{ hours }} 小时 {{ minutes }} 分钟", "{{ hours }}h read": "已读 {{ hours }} 小时", "{{ minutes }}m read": "阅读了{{ minutes }}分钟", - "Manage": "管理", "All members": "所有成员", "Everyone in the workspace": "工作区中的所有人", "{{ count }} member": "{{ count }} 位成员", "{{ count }} member_plural": "{{ count }} 位成员", + "Public link copied to clipboard": "公开链接已复制到剪贴板", "Only lowercase letters, digits and dashes allowed": "只允许使用小写字母、数字和破折号", "Sorry, this link has already been used": "抱歉,该链接已被占用", - "Public link copied to clipboard": "公开链接已复制到剪贴板", - "Web": "网页", + "Publish to web": "发布至网络", "Allow anyone with the link to access": "允许所有知道链接的人访问", "Publish to internet": "发布到互联网", - "Search engine indexing": "搜索引擎索引", - "Disable this setting to discourage search engines from indexing the page": "禁用此设置以阻止搜索引擎对该页建立索引", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "显示最后修改", - "Display the last modified timestamp on the shared page": "在分享页面上显示最后修改的时间戳", - "Show table of contents": "显示目录", - "Display the table of contents on documents by default": "默认在文档中显示目录", "All documents in this collection will be shared on the web, including any new documents added later": "此文档集中的所有文档将在网上共享,包括以后添加的任何新文档", "Invite": "邀请", "{{ userName }} was added to the collection": "{{ userName }} 已添加到文档集", @@ -444,12 +446,28 @@ "{{ count }} people and {{ count2 }} groups added to the collection_plural": "已添加 {{ count }} 人和 {{ count2 }} 组到文档集中", "Switch to dark": "切换至深色", "Switch to light": "切换至浅色", - "Subscribe to updates": "Subscribe to updates", + "Subscribe to updates": "订阅更新", + "Logo": "网站图标", "Add": "添加", "Add or invite": "添加或邀请", + "Sharing settings updated": "共享设置已更新", + "Display settings": "显示设置", + "Customize how the published document is displayed": "自定义已发布文档的显示方式", + "Image options": "图像选项", + "Upload": "上传", + "Site title": "网站名称", + "Show last modified": "显示最后修改", + "Display the last modified timestamp on the shared page": "在分享页面上显示最后修改的时间戳", + "Show table of contents": "显示目录", + "Display the table of contents on documents by default": "默认在文档中显示目录", + "Behavior": "行为", + "Search engine indexing": "搜索引擎索引", + "Disable this setting to discourage search engines from indexing the page": "禁用此设置以阻止搜索引擎对该页建立索引", + "Email subscriptions": "电子邮件订阅", + "Allow viewers to subscribe and receive email notifications when documents are updated": "允许查看者在文档更新时订阅和接收电子邮件通知", "Something went wrong": "出现了一些错误", - "Check your email to confirm your subscription": "Check your email to confirm your subscription", - "Get notified when this document is updated": "Get notified when this document is updated", + "Check your email to confirm your subscription": "检查您的电子邮件以确认您的订阅", + "Get notified when this document is updated": "当此文档更新时获得通知", "Email address": "电子邮箱地址", "Viewer": "浏览者", "Editor": "编辑者", @@ -465,7 +483,6 @@ "Access inherited from collection": "访问权限继承自集合", "{{ userName }} was removed from the document": "已从文档中移除 {{ userName }}", "Could not remove user": "无法删除用户", - "Permissions for {{ userName }} updated": "{{ userName }} 的权限已更新", "Could not update user": "无法更新用户", "Has access through <2>parent</2>": "通过 <2>父级</2> 访问", "Suspended": "已停用", @@ -475,14 +492,12 @@ "Leave": "离开", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "任何拥有此链接的人均可访问,因为其所属文档集 <2>{sharedParent.sourceTitle}</2> 已设为分享状态", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "任何拥有此链接的人均可访问,因为其父级文档 <2>{sharedParent.sourceTitle}</2> 已设为分享状态", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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 }} 已被添加到此文档", "{{ count }} people added to the document": "{{ count }} 个人被添加到此文档", "{{ count }} people added to the document_plural": "{{ count }} 个人被添加到此文档", "{{ count }} groups added to the document": "{{ count }} 个组被添加到此文档", "{{ count }} groups added to the document_plural": "{{ count }} 个组被添加到此文档", - "Logo": "网站图标", "Expand sidebar": "展开侧边栏", "Collapse sidebar": "收起侧边栏", "Archived collections": "归档文档集", @@ -494,7 +509,7 @@ "Expand": "展开", "Document not supported – try Markdown, Plain text, HTML, or Word": "不支持的文档类型 - 请用Markdown,纯文本,HTML或Word格式", "Import files": "导入文件", - "Recent": "Recent", + "Recent": "最近", "Go back": "返回", "Go forward": "前进", "Could not load shared documents": "无法加载共享文档", @@ -548,119 +563,99 @@ "Replacement": "替换", "Replace": "替换", "Replace all": "全部替换", + "Go to link": "转到链接", + "Open link": "打开链接", + "Remove link": "移除链接", + "Formatting controls": "格式化控制", + "Search or paste a link": "搜索或粘贴一个链接", "Image width": "图像宽度", "Width": "宽", "Image height": "图像高度", "Height": "高", + "Paste a link": "粘贴链接", + "Delete embed": "删除嵌入", + "Delete image": "删除图片", "Profile picture": "个人头像", "Create a new doc": "新建文档", - "Create a nested doc": "Create a nested doc", + "Create a nested doc": "创建一个嵌套的文档", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} 不会被通知,因为他们没有访问此文档的权限", "Members of \"{{ groupName }}\" that have access to this document will be notified": "“{{ groupName }}“中有权访问此文档的成员将会收到通知", "Keep as link": "保留为链接", "Mention": "提及", "Embed": "嵌入", "Not supported": "未支持", - "Upload file": "Upload file", - "More options": "更多选项", - "Rename": "重命名", - "Insert after": "在之后插入", - "Insert before": "在之前插入", - "Move up": "上移", - "Move down": "下移", - "Move left": "左移", - "Move right": "右移", - "Align center": "居中对齐", - "Align left": "左对齐", - "Align right": "右对齐", - "Default width": "默认宽度", - "Full width": "全屏宽度", - "Bulleted list": "无序列表", - "Todo list": "任务列表", - "Show {{ count }} completed": "显示 {{ count }} 项已完成项目", - "Show {{ count }} completed_plural": "显示 {{ count }} 项已完成项目", - "Hide completed": "隐藏已完成", - "Code block": "代码块", - "Copied to clipboard": "已复制到剪切板", - "Code": "代码", - "Comment": "评论", - "Create link": "创建链接", - "Edit image URL": "编辑图片 URL", - "Sorry, an error occurred creating the link": "抱歉,创建链接时发生错误", - "Create a new child doc": "创建一个新的子文档", - "Delete table": "删除表格", - "Delete file": "删除文件", - "Show preview": "Show preview", - "Download file": "下载文件", - "Replace file": "替换文件", - "Delete image": "删除图片", - "Download image": "下载图片", - "Replace image": "替换图片", - "Italic": "斜体", "Sorry, that link won’t work for this embed type": "抱歉,该链接不适用于此嵌入类型", - "File attachment": "附件", - "Embed PDF": "PDF", - "Enter a link": "输入一个链接", + "Upload file": "上传文件", + "Paste a {{service}} link…": "粘贴一个 {{service}} 链接…", + "More options": "更多选项", + "Type '/' to insert": "输入'/'来插入", + "Keep typing to filter": "继续输入以过滤", + "Replace file": "替换文件", + "Delete file": "删除文件", + "Show preview": "显示预览", "Big heading": "主标题", "Medium heading": "次标题", "Small heading": "小标题", "Extra small heading": "附加小标题", - "Heading": "标题", - "Divider": "分割线", - "Image": "图片", - "Sorry, an error occurred uploading the file": "抱歉,上传文件时发生错误", - "Uploading… {{ progress }}%": "上传中... {{ progress }}%", - "Write a caption": "撰写一个标题", - "Info": "信息", - "Info notice": "提示信息", - "Link": "链接", - "Highlight": "高亮", - "Background color": "背景色", - "Type '/' to insert": "输入'/'来插入", - "Keep typing to filter": "继续输入以过滤", - "Open link": "打开链接", - "Go to link": "转到链接", - "Sorry, that type of link is not supported": "抱歉,尚不支持该类型的链接", + "Todo list": "任务列表", + "Bulleted list": "无序列表", "Ordered list": "有序列表", - "Page break": "分页符", - "Paste a link": "粘贴链接", - "Paste a {{service}} link…": "粘贴一个 {{service}} 链接…", - "Placeholder": "占位符", - "Quote": "引用", - "Remove link": "移除链接", - "Search or paste a link": "搜索或粘贴一个链接", - "Strikethrough": "删除线", - "Bold": "加粗", - "Subheading": "副标题", - "Sort ascending": "升序排序", - "Sort descending": "降序排序", + "Image": "图片", + "Video": "视频", + "Embed PDF": "PDF", + "File attachment": "附件", "Table": "表格", - "Export as CSV": "导出为 CSV", - "Toggle header": "切换标题", - "Math inline (LaTeX)": "行内数学 (LaTeX)", + "Quote": "引用", + "Code block": "代码块", "Math block (LaTeX)": "数学块 (LaTeX)", - "Merge cells": "合并单元格", - "Split cell": "拆分单元格", - "Tip": "提示", - "Tip notice": "提示信息", - "Warning": "警告", - "Warning notice": "警告信息", - "Success": "成功", - "Success notice": "成功通知", + "Toggle block": "切换块", + "Divider": "分割线", + "Page break": "分页符", "Current date": "当前日期", "Current time": "当前时间", "Current date and time": "当前日期和时间", - "Indent": "缩进", - "Outdent": "减少缩进", - "Video": "视频", - "None": "空", - "Toggle block": "切换块", - "Add title": "添加标题", - "Add content": "添加内容", - "Delete embed": "删除嵌入", - "Formatting controls": "格式化控制", - "Distribute columns": "分布列", + "Info notice": "提示信息", + "Success notice": "成功通知", + "Warning notice": "警告信息", + "Tip notice": "提示信息", "Wrap text": "Wrap text", + "Placeholder": "占位符", + "Bold": "加粗", + "Italic": "斜体", + "Strikethrough": "删除线", + "Background color": "背景色", + "None": "空", + "Highlight": "高亮", + "Code": "代码", + "Heading": "标题", + "Subheading": "副标题", + "Merge cells": "合并单元格", + "Split cell": "拆分单元格", + "Outdent": "减少缩进", + "Indent": "缩进", + "Create link": "创建链接", + "Comment": "评论", + "Align left": "左对齐", + "Align center": "居中对齐", + "Align right": "右对齐", + "Full width": "全屏宽度", + "Download image": "下载图片", + "Replace image": "替换图片", + "Edit image URL": "编辑图片 URL", + "Default width": "默认宽度", + "Distribute columns": "分布列", + "Delete table": "删除表格", + "Export as CSV": "导出为 CSV", + "Sort ascending": "升序排序", + "Sort descending": "降序排序", + "Toggle header": "切换标题", + "Insert after": "在之后插入", + "Insert before": "在之前插入", + "Move left": "左移", + "Move right": "右移", + "Move up": "上移", + "Move down": "下移", + "Rename": "重命名", "Delete Emoji": "删除表情", "Emoji deleted": "表情已删除", "I'm sure – Delete": "我确定——删除", @@ -670,8 +665,8 @@ "Could not import file": "无法导入文件", "Unsubscribed from document": "取消订阅文档", "Unsubscribed from collection": "取消订阅集合", - "Subscription successful": "Subscription successful", - "Unsubscribed": "Unsubscribed", + "Subscription successful": "订阅成功", + "Unsubscribed": "已取消订阅", "Account": "账号", "API & Access": "API & Access", "Details": "详情", @@ -716,7 +711,7 @@ "Headings you add to the document will appear here": "添加到文档中的标题将显示在这里", "Contents": "目录", "Table of contents": "目录", - "Template options": "Template options", + "Template options": "模板选项", "User options": "用户选项", "document": "文档", "Export complete": "导出完成", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "对您的评价做出了 {{ emoji }} 反应", "shared": "已共享", "invited you to": "邀请你加入", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "选择一个日期", "API key created. Please copy the value now as it will not be shown again.": "API 密钥已创建。请现在复制值,因为它不会再次显示。", "Scopes": "作用域", @@ -828,9 +826,9 @@ "{{userName}} published": "已被 {{userName}} 发布", "{{userName}} unpublished": "{{userName}} 未发布", "{{userName}} moved": "已被 {{userName}} 移动", - "Previous version": "Previous version", + "Previous version": "之前的版本", "Highlight changes": "高亮显示更改", - "Compare to": "Compare to", + "Compare to": "比较", "No history yet": "暂无历史记录", "Revision deleted": "修订已被删除", "Current version": "当前版本", @@ -862,13 +860,15 @@ "This document will be permanently deleted in <2></2> unless restored.": "此文档将在 <2></2> 后永久删除,除非手动恢复。", "Deleted by {{userName}}": "已被 {{userName}} 删除", "Observing {{ userName }}": "观察 {{ userName }}", - "Previous slide": "Previous slide", - "Next slide": "Next slide", - "Toggle fullscreen": "Toggle fullscreen", - "Create your presentation": "Create your presentation", + "Previous slide": "上一张", + "Next slide": "下一张", + "Toggle fullscreen": "切换全屏", + "Create your presentation": "创建您的演示文稿", "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", - "Learn more": "Learn more", + "Learn more": "了解更多", "Backlinks": "反向链接", + "Clear search highlight": "清除搜索高亮", + "Warning": "警告", "This document is large which may affect performance": "此文档较大,可能会影响性能", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "您确定吗?删除 <em>{{ documentTitle }}</em> 文档将一并删除其所有历史记录</em>。", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "您确定吗?删除文档 <em>{{ documentTitle }}</em> 将一并删除其所有历史记录与其包含的 <em>{{ any }} 份子文档</em>。", @@ -885,9 +885,13 @@ "No documents found for your filters.": "未找到相关文档。", "You’ve not got any drafts at the moment.": "你目前还没有任何草稿。", "Payment Required": "需要付款", + "Access request sent": "Access request sent", "No access to this doc": "无法访问此文档", - "It doesn’t look like you have permission to access this document.": "您无权访问这个文档。", - "Please request access from the document owner.": "请向文档所有者请求访问权限。", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "未找到", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "找不到您要找的页面。它可能已被删除或链接不正确。", "We were unable to load the document while offline.": "离线状态无法加载文档。", @@ -936,6 +940,7 @@ "Large header": "大标题", "Medium header": "中标题", "Small header": "小标题", + "Link": "链接", "Underline": "下划线", "Undo": "撤销", "Redo": "重做", @@ -1021,13 +1026,13 @@ "An error occurred": "发生错误", "The OAuth client could not be found, please check the provided client ID": "找不到 OAuth 客户端,请检查提供的客户端 ID", "The OAuth client could not be loaded, please check the redirect URI is valid": "无法加载 OAuth 客户端,请检查回调 URI 是否有效", - "The OAuth client could not be loaded, please check your workspace subdomain is correct": "The OAuth client could not be loaded, please check your workspace subdomain is correct", + "The OAuth client could not be loaded, please check your workspace subdomain is correct": "无法加载 OAuth 客户端,请检查您的工作区子域是否正确", "Required OAuth parameters are missing": "缺少所需的 OAuth 链接参数", "Authorize": "授权", "{{ appName }} wants to access {{ teamName }}": "应用 {{ appName }} 想要访问 {{ teamName }}", "By <em>{{ developerName }}</em>": "创建人 <em>{{ developerName }}</em>", "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} 将会获得访问您账户的权限,并将可以执行以下操作", - "You will be redirected to a local application after authorizing.": "You will be redirected to a local application after authorizing.", + "You will be redirected to a local application after authorizing.": "授权后,您将被重定向到本地应用程序。", "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "读", "write": "写", @@ -1069,12 +1074,12 @@ "Search titles only": "仅搜索标题", "Please try again or contact support if the problem persists": "如果问题持续存在,请重试或联系支持人员。", "No documents found for your search filters.": "未找到符合当前筛选条件的文档。", - "Personal keys": "Personal keys", + "Personal keys": "个人密钥", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "创建个人 API 密钥以便通过 API 进行身份验证,并以编程方式管控您的工作区的数据。详见 <em>开发者文档</em>。", "API keys have been disabled by an admin for your account": "您的账户的 API 密钥已被管理员禁用", "Application access": "应用权限", "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "管理第三方及内部应用对您 {{ appName }} 账户的访问权限。", - "Could not load API keys": "Could not load API keys", + "Could not load API keys": "无法加载 API 密钥", "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 <em>developer documentation</em>.": "API 密钥可以用于验证 API 并通过编程的方式控制\n 您的工作区数据。 了解更多详情,请参阅 <em>开发者文档</em>", "Application published": "应用已发布", @@ -1092,6 +1097,7 @@ "Credentials": "凭据", "OAuth client ID": "OAuth 客户端 ID", "The public identifier for this app": "此应用的公共标识符", + "Copied to clipboard": "已复制到剪切板", "OAuth client secret": "OAuth 客户端密钥", "Store this value securely, do not expose it publicly": "将在这个值储存在非公开的安全位置", "Where users are redirected after authorizing this app": "用户授权此应用时被重定向到的地址", @@ -1102,14 +1108,14 @@ "Are you sure?": "您确定吗?", "Removing": "正在删除", "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "移除此身份验证提供程序将阻止成员使用 {{ authProvider }} 登录。", - "Disable group sync": "Disable group sync", + "Disable group sync": "禁用群组同步", "Manage how members sign-in to your workspace and which authentication providers are enabled.": "管理成员如何登录到您的工作区以及启用哪些身份验证提供者。", "Allow members to sign-in with {{ authProvider }}": "允许成员使用 {{ authProvider }} 登录", "Connect {{ authProvider }} to allow members to sign-in": "连接 {{ authProvider }} 以允许成员登录", "Connected": "已连接", "Disabled": "已禁用", "Connect": "连接", - "Group sync": "Group sync", + "Group sync": "群组同步", "Sync group memberships from {{ authProvider }} on each sign-in": "Sync group memberships from {{ authProvider }} on each sign-in", "Group claim": "Group claim", "The claim in the provider response that contains group names (e.g. groups, roles)": "The claim in the provider response that contains group names (e.g. groups, roles)", @@ -1124,8 +1130,8 @@ "Remove all groups created by sync": "Remove all groups created by sync", "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "Group memberships will no longer be synced from {{ authProvider }} when members sign in.", "Existing groups": "Existing groups", - "Disabling": "Disabling", - "Disable": "Disable", + "Disabling": "正在禁用", + "Disable": "禁用", "by {{ name }}": "由 {{ name }}创建", "Expired": "已过期", "Last used": "最后使用的", @@ -1134,10 +1140,15 @@ "API key copied to clipboard": "API key 已复制到剪贴板", "Copied": "已复制", "Are you sure you want to revoke the {{ tokenName }} token?": "确认吊销这个 {{ tokenName }} token 吗?", - "Key": "Key", - "Created by": "Created by", - "Never": "Never", - "Expires": "Expires", + "Key": "密钥", + "Created by": "创建者", + "Never": "从不", + "Expires": "到期日", + "Could not load preference": "Could not load preference", + "Preferences saved": "首选项已保存", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "断开集成", "Disconnecting": "正在断开连接", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "您确定要移除与 <em>{{ service }}</em> 的集成吗?", @@ -1170,10 +1181,10 @@ "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering for example.": "群组旨在帮助您有效地组织团队。我们建议您依据职能(如“支持组”或“工程组”)或责任来创建群组以实现最佳效果。", "Optional": "可选", "You’ll be able to add people to the group next.": "接下来,您将能够将成员添加到群组中。", - "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.", + "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "此群组由外部身份验证提供商管理。名称已自动同步,无法更改。", "You can edit the name of this group at any time, however doing so too often might confuse your team mates.": "您可以随时编辑此群组的名称,但过于频繁的更改可能会造成团队成员的困惑。", "Description": "描述", - "Hidden": "Hidden", + "Hidden": "隐藏", "Prevent this group from being mentionable in documents or comments": "阻止在文件或评论中提及这个组", "Are you sure about that? Deleting the <em>{{groupName}}</em> group will cause its members to lose access to collections and documents that it is associated with.": "你确定吗?删除 <em>{{groupName}}</em> 组将使其成员无法访问它所关联的文档集和文档。", "{{userName}} was added to the group": "{{userName}} 已添加到群组", @@ -1189,11 +1200,11 @@ "Member": "成员", "{{userName}} was removed from the group": "从群组中移除 {{userName}}。", "Last active": "最近活跃", - "All permissions": "All permissions", - "All sources": "All sources", - "Manual": "Manual", - "This group is hidden": "This group is hidden", - "Synced <2></2>": "Synced <2></2>", + "All permissions": "所有权限", + "All sources": "全部来源", + "Manual": "手动", + "This group is hidden": "此群组已隐藏", + "Synced <2></2>": "已同步 <2></2>", "Date created": "创建日期", "Crop Image": "裁剪图片", "Crop image": "裁剪图像", @@ -1220,7 +1231,7 @@ "Domain": "域", "Views": "浏览次数", "Visibility": "可见性", - "Updated by": "Updated by", + "Updated by": "更新者", "All roles": "所有角色", "Admins": "管理员", "Editors": "编辑者", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "在公开分享的页面上显示您的工作区的标志、描述和品牌。", "Table of contents position": "目录位置", "The side to display the table of contents in relation to the main content.": "与主要内容相关的目录的显示位置。", - "Behavior": "行为", "Subdomain": "子域", "Your workspace will be accessible at": "你的工作区将在", "Choose a subdomain to enable a login page just for your team.": "选择一个子域名,为您的团队创建独立专属的登录页。", @@ -1258,28 +1268,28 @@ "When enabled team members can add comments to documents.": "启用后,团队成员可以向文档添加评论。", "Danger": "危险操作", "You can delete this entire workspace including collections, documents, and users.": "你可以删除整个工作区,包括文档集、文档和用户。", - "Enabled": "Enabled", - "Allow supported providers to be inserted as interactive embeds in documents.": "Allow supported providers to be inserted as interactive embeds in documents.", - "Providers": "Providers", - "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.", - "All providers": "All providers", + "Enabled": "已启用", + "Allow supported providers to be inserted as interactive embeds in documents.": "允许支持的提供者作为交互式嵌入文档。", + "Providers": "提供商", + "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "启用的提供商将出现在编辑器斜杠菜单中,并在粘贴兼容的链接时自动嵌入。 无论这些设置如何,现有的文档将继续显示。", + "All providers": "所有提供商", "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 <em>{{ userEmail }}</em> when it’s complete.": "完整导出可能需要一些时间,请考虑导出单个文档或文档集。导出的数据是 Markdown 格式的文档压缩包。当导出已开始时您可以离开此页面。如果你开启了通知,当导出完成后,我们会发送链接至电子邮件 <em>{{ userEmail }}</em>。", "Recent exports": "最近导出", - "Manage AI and integration features for your workspace.": "Manage AI and integration features for your workspace.", - "MCP server": "MCP server", - "Allow members to connect to this workspace with MCP to read and write data.": "Allow members to connect to this workspace with MCP to read and write data.", - "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.", - "Copy URL": "Copy URL", - "Additional guidance": "Additional guidance", - "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "You can use these optional instructions to tell MCP clients how to use your knowledge base.", + "Manage AI and integration features for your workspace.": "管理您的工作区的 AI 和集成功能。", + "MCP server": "MCP 服务器", + "Allow members to connect to this workspace with MCP to read and write data.": "允许成员使用 MCP 连接到此工作区读写数据。", + "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "使用以下端点从您的应用程序连接到 MCP服务器。了解更多关于 <a>文档</a> 设置的信息。", + "Copy URL": "复制链接", + "Additional guidance": "补充指南", + "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "您可以使用这些可选的说明来告诉MCP客户端如何使用您的知识库。", "AI answers": "AI 回答", "Use AI to get direct answers to questions in search. This feature requires a paid license.": "使用 AI 获取搜索中问题的直接答案。此功能需要付费许可证。", "Add people to {{groupName}}": "添加用户到 {{groupName}}", - "Could not load group members": "Could not load group members", + "Could not load group members": "无法加载群组成员", "Add people": "添加人员", "Synced to {{ provider }}": "Synced to {{ provider }}", - "No description": "No description", + "No description": "没有描述", "Create a group": "创建群组", "Could not load groups": "无法加载组", "New group": "新建群组", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "当你有权访问文档集时收到通知", "Export completed": "导出已完成", "Receive a notification when an export you requested has been completed": "当你请求的导出任务完成时接收通知", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "新手指南", "Tips on getting started with features and functionality": "有关特性和功能的入门提示", "New features": "新特性", @@ -1324,10 +1336,9 @@ "Notifications saved": "通知配置已保存", "Unsubscription successful. Your notification settings were updated": "取消订阅成功。你的通知设置已更新", "Manage when and where you receive email notifications.": "自定义电子邮件通知的接收时间与位置。", - "All notifications": "All notifications", - "Preferences saved": "首选项已保存", - "Unread count": "Unread count", - "Unread indicator": "Unread indicator", + "All notifications": "所有通知", + "Unread count": "未读数", + "Unread indicator": "未读指示器", "Delete account": "删除账户", "Manage settings that affect your personal experience.": "调整个性化设置", "Language": "语言", @@ -1342,8 +1353,8 @@ "Automatically return to the document you were last viewing when the app is re-opened.": "重新打开应用程序时自动返回到您上次浏览的文档。", "Smart text replacements": "智能文本替换", "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "用符号、破折号、 智能引号和其他排版元素替换快捷方式来自动格式化文本。", - "Notification badge": "Notification badge", - "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", + "Notification badge": "通知角标", + "Choose how unread notifications are indicated on the app icon.": "选择应用程序图标上显示未读通知的方式。", "You may delete your account at any time, note that this is unrecoverable": "您可以随时删除您的帐户,请注意这不可恢复", "Profile saved": "配置已保存", "Profile picture updated": "头像已更新", @@ -1380,8 +1391,8 @@ "Sharing is currently disabled.": "共享功能当前被禁用。", "You can globally enable and disable public document sharing in the <em>security settings</em>.": "你可以在<em>安全设置</em> 中对共享文档功能进行全局启用或禁用。", "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.": "这是你分享给其他人的所有文档,在你撤销链接之前,任何人都可以通过该链接阅读该文档。", - "A template must have content": "A template must have content", - "Could not load templates": "Could not load templates", + "A template must have content": "模板必须包含内容", + "Could not load templates": "无法加载模板", "Templates help your team create consistent and accurate documentation.": "Templates help your team create consistent and accurate documentation.", "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} 正在使用 {{ appName }} 共享文档,请登录以继续。", @@ -1554,10 +1565,10 @@ "A new passkey was created for your account.": "A new passkey was created for your account.", "New Passkey Created": "New Passkey Created", "A new passkey has been added to your {{ appName }} account": "A new passkey has been added to your {{ appName }} account", - "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.", - "You can manage your passkeys at any time": "You can manage your passkeys at any time", + "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "通行密钥提供了一个安全的、无密码的登录方式。 如果您没有创建此通行密钥,请立即查看您的帐户安全设置。", + "You can manage your passkeys at any time": "您可以随时管理您的通行密钥", "If you have any concerns about your account security, please contact a workspace admin.": "If you have any concerns about your account security, please contact a workspace admin.", - "Manage Passkeys": "Manage Passkeys", + "Manage Passkeys": "管理通行密钥", "Add to Slack": "添加到 Slack", "document published": "文档已发布", "document updated": "文档已更新", @@ -1602,24 +1613,24 @@ "All {{ groupName }} events": "全部 {{ groupName }} 事件", "Webhook": "Webhook", "Webhook created": "已创建 Webhook", - "Could not load webhooks": "Could not load webhooks", + "Could not load webhooks": "无法加载 webhook", "Webhooks": "Webhooks", "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.": "Webhook 可用于让您的应用订阅 {{appName}} 内的事件动态。当事件发生时,相关信息会以 HTTPS 请求的形式,携带 JSON 格式的有效载荷,以近实时的方式发送至您的应用。", "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier 是一个平台,可以让 {{appName}} 轻松地与数以千计的其它业务工具集成。自动化您的工作流程、同步数据等。", - "Delayed notification": "Delayed notification", + "Delayed notification": "延迟通知", "“{{ collectionName }}” created": "“{{ collectionName }}” created", "{{ userName }} created a collection": "{{ userName }} created a collection", "{{ userName }} created the collection “{{ collectionName }}”": "{{ userName }} created the collection “{{ collectionName }}”", - "Open Collection": "Open Collection", - "View Collection": "View Collection", + "Open Collection": "打开文档集", + "View Collection": "浏览文档集", "{{ userName }} created the collection “{{ collectionName }}”.": "{{ userName }} created the collection “{{ collectionName }}”.", - "Unsubscribe from these emails": "Unsubscribe from these emails", + "Unsubscribe from these emails": "取消订阅这些电子邮件", "{{ actorName }} invited you to the “{{ collectionName }}” collection": "{{ actorName }} invited you to the “{{ collectionName }}” collection", "{{ actorName }} invited you to a collection": "{{ actorName }} invited you to a collection", "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "{{ actorName }} invited you to the “{{ collectionName }}” collection.", - "view and edit": "view and edit", - "manage": "manage", - "view": "view", + "view and edit": "浏览并编辑", + "manage": "管理", + "view": "浏览", "{{ actorName }} invited you to {{ permission }} documents in the": "{{ actorName }} invited you to {{ permission }} documents in the", "Re": "Re", "New comment on “{{ documentTitle }}” - {{ trimmedText }}": "New comment on “{{ documentTitle }}” - {{ trimmedText }}", @@ -1628,8 +1639,8 @@ "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "{{ actorName }} replied to a thread in “{{ documentTitle }}”", "{{ actorName }} commented on “{{ documentTitle }}”": "{{ actorName }} commented on “{{ documentTitle }}”", "in the {{ collectionName }} collection": "in the {{ collectionName }} collection", - "Open Thread": "Open Thread", - "View Thread": "View Thread", + "Open Thread": "打开主题", + "View Thread": "查看主题", "{{ actorName }} replied to a thread in": "{{ actorName }} replied to a thread in", "{{ actorName }} commented on": "{{ actorName }} commented on", "Mentioned you in “{{ documentTitle }}”": "Mentioned you in “{{ documentTitle }}”", @@ -1640,50 +1651,50 @@ "{{ actorName }} resolved a comment thread": "{{ actorName }} resolved a comment thread", "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”", "{{ actorName }} resolved a comment on": "{{ actorName }} resolved a comment on", - "Your workspace deletion request": "Your workspace deletion request", - "Your requested workspace deletion code": "Your requested workspace deletion code", + "Your workspace deletion request": "您的工作区删除请求", + "Your requested workspace deletion code": "您请求的工作区删除代码", "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.", - "Your email update request": "Your email update request", - "Here’s your email change confirmation.": "Here’s your email change confirmation.", + "Your email update request": "您的电子邮件更新请求", + "Here’s your email change confirmation.": "这是您的电子邮件变更确认。", "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.", "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.", "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to", "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "You requested to update your {{ appName }} account email. Please click below to confirm the change to", - "Confirm Change": "Confirm Change", - "Your account deletion request": "Your account deletion request", - "Your requested account deletion code": "Your requested account deletion code", + "Confirm Change": "确认更改", + "Your account deletion request": "您的帐户删除请求", + "Your requested account deletion code": "您请求的帐户删除代码", "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.", "You requested to permanently delete your {{ appName }} user account in the": "You requested to permanently delete your {{ appName }} user account in the", - "workspace. Please enter the code below to confirm your account deletion.": "workspace. Please enter the code below to confirm your account deletion.", + "workspace. Please enter the code below to confirm your account deletion.": "工作区。请输入下面的代码以确认您的帐户删除。", "{{ actorName }} mentioned you": "{{ actorName }} mentioned you", - "You were mentioned": "You were mentioned", + "You were mentioned": "您被提及了", "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.", - "Open Document": "Open Document", - "View Document": "View Document", + "Open Document": "打开文档", + "View Document": "浏览文档", "{{ actorName }} mentioned you in the document": "{{ actorName }} mentioned you in the document", - "updated": "updated", + "updated": "已更新", "“{{ documentTitle }}” {{ eventName }}": "“{{ documentTitle }}” {{ eventName }}", "{{ actorName }} {{ eventName }} a document": "{{ actorName }} {{ eventName }} a document", "\"{{ documentTitle }}\" {{ eventName }}": "\"{{ documentTitle }}\" {{ eventName }}", "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"", "{{ actorName }} {{ eventName }} the document": "{{ actorName }} {{ eventName }} the document", - "Unsubscribe from this doc": "Unsubscribe from this doc", + "Unsubscribe from this doc": "取消订阅此文档", "{{ actorName }} shared “{{ documentTitle }}” with you": "{{ actorName }} shared “{{ documentTitle }}” with you", "{{ actorName }} shared a document": "{{ actorName }} shared a document", "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} shared “{{ documentTitle }}” with you.", - "edit": "edit", + "edit": "编辑", "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} invited you to {{ permission }} the", - "Your requested export": "Your requested export", - "Sorry, your requested data export has failed": "Sorry, your requested data export has failed", - "Your Data Export": "Your Data Export", - "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.", - "Sorry, your requested data export has failed, please visit the": "Sorry, your requested data export has failed, please visit the", - "admin section": "admin section", - "to try again – if the problem persists please contact support.": "to try again – if the problem persists please contact support.", - "Go to export": "Go to export", + "Your requested export": "您请求的导出", + "Sorry, your requested data export has failed": "对不起,您请求的数据导出失败", + "Your Data Export": "您的数据导出", + "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "对不起,您请求的数据导出失败,请访问管理员区再试一次 - 如果问题仍然存在,请联系支持人员。", + "Sorry, your requested data export has failed, please visit the": "对不起,您请求的数据导出失败,请访问", + "admin section": "管理后台", + "to try again – if the problem persists please contact support.": "重试 - 如果问题仍然存在,请联系技术支持人员。", + "Go to export": "转至导出", "Here's your request data export from {{ appName }}": "Here's your request data export from {{ appName }}", - "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.", - "Download export": "Download export", + "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "您请求的数据导出已完成,您可以在登录到您账户的浏览器中从下面的链接下载。", + "Download export": "下载导出文件", "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.", "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "The {{ groupName }} group was mentioned in “{{ documentTitle }}”", "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "{{ actorName }} mentioned the “{{ groupName }}” group in a thread", @@ -1691,7 +1702,7 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on", "{{ actorName }} mentioned the “{{ groupName }}” group": "{{ actorName }} mentioned the “{{ groupName }}” group", "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", - "Your group was mentioned": "Your group was mentioned", + "Your group was mentioned": "您的群组已被提及", "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document": "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document", "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", "Great news, {{ invitedName }}, accepted your invitation": "Great news, {{ invitedName }}, accepted your invitation", @@ -1702,43 +1713,43 @@ "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", - "Join now": "Join now", - "Reminder": "Reminder", + "Join now": "立即加入", + "Reminder": "提醒", "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", - "We only send a reminder once.": "We only send a reminder once.", - "If you haven't signed up yet, you can do so here": "If you haven't signed up yet, you can do so here", + "We only send a reminder once.": "我们只发送一次提醒。", + "If you haven't signed up yet, you can do so here": "如果您尚未注册,您可以在这里注册", "\"{{ documentTitle }}\" updated": "\"{{ documentTitle }}\" updated", "\"{{ documentTitle }}\" has been updated.": "\"{{ documentTitle }}\" has been updated.", - "A document you subscribed to has been updated.": "A document you subscribed to has been updated.", - "Click below to view the latest version.": "Click below to view the latest version.", - "Confirm your subscription": "Confirm your subscription", + "A document you subscribed to has been updated.": "您订阅的文档已更新。", + "Click below to view the latest version.": "点击下方查看最新版本。", + "Confirm your subscription": "确认您的订阅📬", "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.": "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.", "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.", - "Confirm Subscription": "Confirm Subscription", - "This link will expire in 24 hours.": "This link will expire in 24 hours.", + "Confirm Subscription": "确认订阅", + "This link will expire in 24 hours.": "此链接将在 24 小时后过期。", "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.", - "Please confirm your subscription by clicking the button below.": "Please confirm your subscription by clicking the button below.", - "Magic Sign-in Link": "Magic Sign-in Link", - "Sign in verification code": "Sign in verification code", + "Please confirm your subscription by clicking the button below.": "请点击下面的按钮来确认您的订阅。", + "Magic Sign-in Link": "魔法登录链接", + "Sign in verification code": "登录验证码", "Here’s your link to signin to {{ appName }}.": "Here’s your link to signin to {{ appName }}.", - "Use the link below to sign in": "Use the link below to sign in", + "Use the link below to sign in": "使用下面的链接登录", "If the link expired you can request a new one from your team's signin page at": "If the link expired you can request a new one from your team's signin page at", - "Enter this verification code": "Enter this verification code", - "If the code expired you can request a new one from your team's signin page at": "If the code expired you can request a new one from your team's signin page at", + "Enter this verification code": "输入这个验证码", + "If the code expired you can request a new one from your team's signin page at": "如果代码已过期,您可以从您团队的登录页面请求一个新的代码。", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", - "If the link expired you can request a new one from your team's sign-in page at": "If the link expired you can request a new one from your team's sign-in page at", - "Sign-in Code": "Sign-in Code", - "Enter this code on your team's sign-in page to continue.": "Enter this code on your team's sign-in page to continue.", - "If the code expired you can request a new one from your team's sign-in page at": "If the code expired you can request a new one from your team's sign-in page at", - "Webhook disabled": "Webhook disabled", + "If the link expired you can request a new one from your team's sign-in page at": "如果链接过期,您可以从您的团队的登录页面请求一个新的链接", + "Sign-in Code": "登录代码", + "Enter this code on your team's sign-in page to continue.": "在您的团队登录页面输入此代码以继续。", + "If the code expired you can request a new one from your team's sign-in page at": "如果代码已过期,您可以从您团队的登录页面请求一个新的代码。", + "Webhook disabled": "Webhook 已禁用", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.": "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.", - "Webhook settings": "Webhook settings", + "Webhook settings": "Webhook 设置", "Welcome to {{ appName }}!": "Welcome to {{ appName }}!", - "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.", + "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "若要开始,请到主屏幕并尝试创建一个文档集来帮助记录您的进程,创建游戏簿,或规划您的团队的工作。", "Or, learn more about everything {{ appName }} can do in the guide": "Or, learn more about everything {{ appName }} can do in the guide", "Or, learn more about everything {{ appName }} can do in": "Or, learn more about everything {{ appName }} can do in", - "the guide": "the guide", + "the guide": "向导", "Never logged in": "从未登录", "Online now": "当前在线", "Online {{ timeAgo }}": "{{ timeAgo }} 在线", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ timeAgo }} 由 {{ user }} 更新", "You created {{ timeAgo }}": "{{ timeAgo }} 由你创建", "{{ user }} created {{ timeAgo }}": "{{ timeAgo }} 由 {{ user }} 创建", + "Sorry, an error occurred uploading the file": "抱歉,上传文件时发生错误", + "Sorry, that type of link is not supported": "抱歉,尚不支持该类型的链接", "Caption": "说明", "Empty diagram": "空白图表", "Double click to edit": "双击以编辑", "Open": "打开", "Loading": "加载中", - "Error loading data": "加载数据时出错" + "Error loading data": "加载数据时出错", + "Show {{ count }} completed": "显示 {{ count }} 项已完成项目", + "Show {{ count }} completed_plural": "显示 {{ count }} 项已完成项目", + "Hide completed": "隐藏已完成", + "Write a caption": "撰写一个标题", + "Add title": "添加标题", + "Add content": "添加内容" } diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index 162521b58a..c99439cff6 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -169,6 +169,7 @@ "New workspace": "新建的工作空間", "Create a workspace": "建立新的工作空間", "Login to workspace": "登入工作區", + "template": "template", "Template deleted": "範本已刪除", "Deleting": "正在刪除", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "您確定要刪除 <em>{{ templateName }}</em> 範本? 此動作無法復原。", @@ -298,6 +299,7 @@ "Currently editing": "正在編輯", "Currently viewing": "正在瀏覽", "Viewed {{ timeAgo }}": "{{ timeAgo }} 前瀏覽過", + "Uploading… {{ progress }}%": "上傳中…{{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "不支援的檔案格式,請使用 PNG、JPG、GIF 或 WebP。", "File size too large. Maximum size is {{ size }}.": "已超過最大檔案限制 {{ size }} 。", "Click or drag to replace": "點擊或拖曳來取代", @@ -384,6 +386,15 @@ "Sorry, an error occurred.": "抱歉,發生錯誤。", "Click to retry": "按此重新嘗試", "Back": "上一步", + "Can view the document": "Can view the document", + "Can view and edit the document": "Can view and edit the document", + "Manage": "管理", + "Full access including sharing": "Full access including sharing", + "Permissions for {{ userName }} updated": "{{ userName }} 的權限已更新", + "Failed to approve access request": "Failed to approve access request", + "Access request dismissed": "Access request dismissed", + "Failed to dismiss access request": "Failed to dismiss access request", + "Approve": "Approve", "Notification options": "通知選項", "Unknown": "未知", "Mentions": "提及", @@ -416,25 +427,16 @@ "{{ hours }}h {{ minutes }}m read": "{{ hours }}小時{{ minutes }}分閱讀", "{{ hours }}h read": "{{ hours }}小時閱讀", "{{ minutes }}m read": "{{ minutes }}分鐘閱讀", - "Manage": "管理", "All members": "所有成員", "Everyone in the workspace": "工作區裡的所有人", "{{ count }} member": "{{ count }} 位成員", "{{ count }} member_plural": "{{ count }} 位成員", + "Public link copied to clipboard": "已將連結複製到剪貼簿", "Only lowercase letters, digits and dashes allowed": "只允許使用小寫字母、數字和破折號", "Sorry, this link has already been used": "抱歉,此連結已被使用", - "Public link copied to clipboard": "已將連結複製到剪貼簿", - "Web": "網頁", + "Publish to web": "Publish to web", "Allow anyone with the link to access": "允許任何知道該連結的人訪問", "Publish to internet": "發佈到網路", - "Search engine indexing": "搜索引擎索引", - "Disable this setting to discourage search engines from indexing the page": "停用此設定可阻止搜尋引擎為此頁面建立索引", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Show last modified": "顯示最後修改", - "Display the last modified timestamp on the shared page": "顯示最後修改時間戳記於分享頁面", - "Show table of contents": "顯示目錄", - "Display the table of contents on documents by default": "預設顯示文件目錄", "All documents in this collection will be shared on the web, including any new documents added later": "所有在此文件集的文件將發佈於網路,包含任何未來新增的文件", "Invite": "邀請", "{{ userName }} was added to the collection": "{{ userName }} 已經被新增到文件集", @@ -445,8 +447,24 @@ "Switch to dark": "切換到深色模式", "Switch to light": "切換到淺色模式", "Subscribe to updates": "Subscribe to updates", + "Logo": "Logo", "Add": "新增", "Add or invite": "新增或邀請", + "Sharing settings updated": "Sharing settings updated", + "Display settings": "Display settings", + "Customize how the published document is displayed": "Customize how the published document is displayed", + "Image options": "Image options", + "Upload": "Upload", + "Site title": "Site title", + "Show last modified": "顯示最後修改", + "Display the last modified timestamp on the shared page": "顯示最後修改時間戳記於分享頁面", + "Show table of contents": "顯示目錄", + "Display the table of contents on documents by default": "預設顯示文件目錄", + "Behavior": "行為", + "Search engine indexing": "搜索引擎索引", + "Disable this setting to discourage search engines from indexing the page": "停用此設定可阻止搜尋引擎為此頁面建立索引", + "Email subscriptions": "Email subscriptions", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", "Something went wrong": "發生了某些錯誤", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -465,7 +483,6 @@ "Access inherited from collection": "從文件集繼承的存取權", "{{ userName }} was removed from the document": "{{ userName }} 已經從文件中移除", "Could not remove user": "無法移除使用者", - "Permissions for {{ userName }} updated": "{{ userName }} 的權限已更新", "Could not update user": "無法更新使用者資料", "Has access through <2>parent</2>": "透過<2>上層文件</2>取得存取權", "Suspended": "已停用", @@ -475,14 +492,12 @@ "Leave": "離開", "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "任何擁有連結的人都可以存取,因為文件集 <2>{sharedParent.sourceTitle}</2> 已設為公開。", "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "任何擁有連結的人都可以存取,因為父文件 <2>{sharedParent.sourceTitle}</2> 已設為公開。", - "Allow viewers to subscribe and receive email notifications when this document is updated": "Allow viewers to subscribe and receive email notifications when this document is updated", "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 }} 已新增至此文件", "{{ count }} people added to the document": "{{ count }} 人已新增至此文件", "{{ count }} people added to the document_plural": "{{ count }} 人已新增至此文件", "{{ count }} groups added to the document": "{{ count }} 個團隊已新增至此文件", "{{ count }} groups added to the document_plural": "{{ count }} 個團隊已新增至此文件", - "Logo": "Logo", "Expand sidebar": "展開側欄", "Collapse sidebar": "收起側欄", "Archived collections": "已封存的文件集", @@ -548,10 +563,18 @@ "Replacement": "替代", "Replace": "取代", "Replace all": "全部取代", + "Go to link": "前往連結", + "Open link": "開啟連結", + "Remove link": "移除連結", + "Formatting controls": "格式設定", + "Search or paste a link": "搜尋或貼上網址", "Image width": "影像寬度", "Width": "寬度", "Image height": "影像高度", "Height": "高度", + "Paste a link": "貼上連結", + "Delete embed": "刪除嵌入", + "Delete image": "刪除圖片", "Profile picture": "大頭貼", "Create a new doc": "建立新文件", "Create a nested doc": "建立子文件", @@ -561,106 +584,78 @@ "Mention": "提及", "Embed": "嵌入", "Not supported": "不支援", + "Sorry, that link won’t work for this embed type": "抱歉,不支援將這個連結嵌入到文件", "Upload file": "上傳文件", + "Paste a {{service}} link…": "貼上 {{service}} 連結...", "More options": "更多選項", - "Rename": "重新命名", - "Insert after": "下方插入", - "Insert before": "上方插入", - "Move up": "往上移動", - "Move down": "往下移動", - "Move left": "往左移動", - "Move right": "往右移動", - "Align center": "置中對齊", - "Align left": "靠左對齊", - "Align right": "靠右對齊", - "Default width": "預設寬度:", - "Full width": "全螢幕寬度", - "Bulleted list": "項目清單", - "Todo list": "工作清單", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "隱藏已完成項目", - "Code block": "程式碼區塊", - "Copied to clipboard": "已複製到剪貼簿", - "Code": "程式碼", - "Comment": "評論", - "Create link": "建立超連結", - "Edit image URL": "Edit image URL", - "Sorry, an error occurred creating the link": "抱歉,建立分享連結時發生錯誤", - "Create a new child doc": "建立子文件", - "Delete table": "刪除表格", + "Type '/' to insert": "輸入 '/' 進行插入", + "Keep typing to filter": "繼續輸入以進行篩選", + "Replace file": "取代檔案", "Delete file": "刪除檔案", "Show preview": "顯示預覽", - "Download file": "下載檔案", - "Replace file": "取代檔案", - "Delete image": "刪除圖片", - "Download image": "下載圖片", - "Replace image": "替換圖片", - "Italic": "斜體", - "Sorry, that link won’t work for this embed type": "抱歉,不支援將這個連結嵌入到文件", - "File attachment": "附加檔案", - "Embed PDF": "Embed PDF", - "Enter a link": "輸入一個連結", "Big heading": "大標題", "Medium heading": "中標題", "Small heading": "小標題", "Extra small heading": "更小的標題", - "Heading": "標題", - "Divider": "分隔線", - "Image": "圖片", - "Sorry, an error occurred uploading the file": "抱歉,上傳檔案時發生錯誤", - "Uploading… {{ progress }}%": "上傳中…{{ progress }}%", - "Write a caption": "撰寫說明文字", - "Info": "資訊", - "Info notice": "訊息通知", - "Link": "連結", - "Highlight": "強調", - "Background color": "背景顏色", - "Type '/' to insert": "輸入 '/' 進行插入", - "Keep typing to filter": "繼續輸入以進行篩選", - "Open link": "開啟連結", - "Go to link": "前往連結", - "Sorry, that type of link is not supported": "抱歉,尚未支援此類型的連結", + "Todo list": "工作清單", + "Bulleted list": "項目清單", "Ordered list": "有序清單", - "Page break": "分頁符號", - "Paste a link": "貼上連結", - "Paste a {{service}} link…": "貼上 {{service}} 連結...", - "Placeholder": "占位符", - "Quote": "引用", - "Remove link": "移除連結", - "Search or paste a link": "搜尋或貼上網址", - "Strikethrough": "刪除線", - "Bold": "粗體", - "Subheading": "副標題", - "Sort ascending": "由小到大排序", - "Sort descending": "由大到小排序", + "Image": "圖片", + "Video": "影片", + "Embed PDF": "Embed PDF", + "File attachment": "附加檔案", "Table": "表格", - "Export as CSV": "匯出為CSV", - "Toggle header": "切換標題列", - "Math inline (LaTeX)": "行內數學 (LaTeX)", + "Quote": "引用", + "Code block": "程式碼區塊", "Math block (LaTeX)": "數學區塊 (LaTeX)", - "Merge cells": "合併儲存格", - "Split cell": "分割儲存格", - "Tip": "提示", - "Tip notice": "小幫手", - "Warning": "警告", - "Warning notice": "警告", - "Success": "成功", - "Success notice": "成功通知", + "Toggle block": "摺疊區塊", + "Divider": "分隔線", + "Page break": "分頁符號", "Current date": "當前日期", "Current time": "當前時間", "Current date and time": "當前日期和時間", - "Indent": "縮排", - "Outdent": "凸排", - "Video": "影片", - "None": "無", - "Toggle block": "摺疊區塊", - "Add title": "加入標題", - "Add content": "新增內容", - "Delete embed": "刪除嵌入", - "Formatting controls": "格式設定", - "Distribute columns": "平均分配欄寬", + "Info notice": "訊息通知", + "Success notice": "成功通知", + "Warning notice": "警告", + "Tip notice": "小幫手", "Wrap text": "自動換行", + "Placeholder": "占位符", + "Bold": "粗體", + "Italic": "斜體", + "Strikethrough": "刪除線", + "Background color": "背景顏色", + "None": "無", + "Highlight": "強調", + "Code": "程式碼", + "Heading": "標題", + "Subheading": "副標題", + "Merge cells": "合併儲存格", + "Split cell": "分割儲存格", + "Outdent": "凸排", + "Indent": "縮排", + "Create link": "建立超連結", + "Comment": "評論", + "Align left": "靠左對齊", + "Align center": "置中對齊", + "Align right": "靠右對齊", + "Full width": "全螢幕寬度", + "Download image": "下載圖片", + "Replace image": "替換圖片", + "Edit image URL": "Edit image URL", + "Default width": "預設寬度:", + "Distribute columns": "平均分配欄寬", + "Delete table": "刪除表格", + "Export as CSV": "匯出為CSV", + "Sort ascending": "由小到大排序", + "Sort descending": "由大到小排序", + "Toggle header": "切換標題列", + "Insert after": "下方插入", + "Insert before": "上方插入", + "Move left": "往左移動", + "Move right": "往右移動", + "Move up": "往上移動", + "Move down": "往下移動", + "Rename": "重新命名", "Delete Emoji": "刪除表情符號", "Emoji deleted": "表情符號已刪除", "I'm sure – Delete": "我確定「刪除」", @@ -732,6 +727,9 @@ "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", "shared": "已分享", "invited you to": "邀請您到", + "was granted access to": "was granted access to", + "requested access to": "requested access to", + "is requesting access to": "is requesting access to", "Choose a date": "選擇日期", "API key created. Please copy the value now as it will not be shown again.": "API 金鑰已建立。請立即複製該值,因為它不會再次顯示。", "Scopes": "範圍", @@ -869,6 +867,8 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", "Learn more": "瞭解更多", "Backlinks": "反向連結", + "Clear search highlight": "Clear search highlight", + "Warning": "警告", "This document is large which may affect performance": "This document is large which may affect performance", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "你確定嗎?刪除 <em>{{ documentTitle }}</em> 文件將刪除其所有歷史記錄</em>。", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "您確定要這麼做嗎?將文件 <em>{{ documentTitle }}</em> 刪除同時也會刪除所有它的歷史紀錄以及 <em>{{ any }} 所屬的子文件</em>。", @@ -885,9 +885,13 @@ "No documents found for your filters.": "沒有符合過篩選條件的文件。", "You’ve not got any drafts at the moment.": "目前您還沒有任何草稿。", "Payment Required": "需要付款", + "Access request sent": "Access request sent", "No access to this doc": "無法存取此文件", - "It doesn’t look like you have permission to access this document.": "抱歉,您似乎沒有權限存取該文件。", - "Please request access from the document owner.": "向文件擁有者請求存取權限", + "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", + "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", + "Access requested": "Access requested", + "Requesting…": "Requesting…", + "Request access": "Request access", "Not found": "找不到頁面", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "您所在的頁面無法找到,可能是已刪除或連結不正確。", "We were unable to load the document while offline.": "我們無法在離線狀態下讀取文件。", @@ -936,6 +940,7 @@ "Large header": "大標題", "Medium header": "中標題", "Small header": "小標題", + "Link": "連結", "Underline": "底線", "Undo": "復原", "Redo": "重做", @@ -1092,6 +1097,7 @@ "Credentials": "憑證", "OAuth client ID": "OAuth client ID", "The public identifier for this app": "此應用程式公開 ID", + "Copied to clipboard": "已複製到剪貼簿", "OAuth client secret": "OAuth client secret", "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", @@ -1138,6 +1144,11 @@ "Created by": "Created by", "Never": "Never", "Expires": "Expires", + "Could not load preference": "Could not load preference", + "Preferences saved": "已保存偏好設定", + "Could not save preference": "Could not save preference", + "Open on startup": "Open on startup", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", "Disconnect integration": "中斷整合", "Disconnecting": "正在中斷", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", @@ -1248,7 +1259,6 @@ "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", "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.", - "Behavior": "行為", "Subdomain": "子網域", "Your workspace will be accessible at": "您的工作區可以透過此超連結存取", "Choose a subdomain to enable a login page just for your team.": "選擇一個子域名來為您的團隊啟用登入頁面。", @@ -1317,6 +1327,8 @@ "Receive a notification when you are given access to a collection": "被授予文件集權限時收到通知", "Export completed": "匯出已完成", "Receive a notification when an export you requested has been completed": "當您要求的匯出完成時收到通知", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", "Getting started": "快速入門", "Tips on getting started with features and functionality": "幫助您開始使用 Outline 功能的提示", "New features": "新功能", @@ -1325,7 +1337,6 @@ "Unsubscription successful. Your notification settings were updated": "取消訂閱成功。您的通知設定已被更新", "Manage when and where you receive email notifications.": "管理您接收電子郵件通知的時間和地點。", "All notifications": "所有通知", - "Preferences saved": "已保存偏好設定", "Unread count": "未讀數", "Unread indicator": "未讀指示", "Delete account": "刪除帳號", @@ -1747,10 +1758,18 @@ "{{ user }} updated {{ timeAgo }}": "{{ timeAgo }} 由 {{ user }} 更新", "You created {{ timeAgo }}": "{{ timeAgo }} 由您新增", "{{ user }} created {{ timeAgo }}": "{{ timeAgo }} 由 {{ user }} 新增", + "Sorry, an error occurred uploading the file": "抱歉,上傳檔案時發生錯誤", + "Sorry, that type of link is not supported": "抱歉,尚未支援此類型的連結", "Caption": "標題", "Empty diagram": "Empty diagram", "Double click to edit": "按兩下編輯", "Open": "開啟", "Loading": "正在讀取", - "Error loading data": "載入資料時發生錯誤" + "Error loading data": "載入資料時發生錯誤", + "Show {{ count }} completed": "Show {{ count }} completed", + "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Hide completed": "隱藏已完成項目", + "Write a caption": "撰寫說明文字", + "Add title": "加入標題", + "Add content": "新增內容" } From 57b9cfdcf21700bc1337ce6866b911baf0f05798 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 22:28:55 -0400 Subject: [PATCH 055/286] chore(deps): bump @dotenvx/dotenvx from 1.64.0 to 1.66.0 (#12388) Bumps [@dotenvx/dotenvx](https://github.com/dotenvx/dotenvx) from 1.64.0 to 1.66.0. - [Release notes](https://github.com/dotenvx/dotenvx/releases) - [Changelog](https://github.com/dotenvx/dotenvx/blob/main/CHANGELOG.md) - [Commits](https://github.com/dotenvx/dotenvx/compare/v1.64.0...v1.66.0) --- updated-dependencies: - dependency-name: "@dotenvx/dotenvx" dependency-version: 1.66.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 26ee8dd353..7e171a50c2 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@dnd-kit/core": "^6.3.1", "@dnd-kit/modifiers": "^6.0.1", "@dnd-kit/sortable": "^7.0.2", - "@dotenvx/dotenvx": "^1.64.0", + "@dotenvx/dotenvx": "^1.66.0", "@emoji-mart/data": "^1.2.1", "@fast-csv/parse": "^5.0.5", "@fortawesome/fontawesome-svg-core": "^7.2.0", diff --git a/yarn.lock b/yarn.lock index 705b2efef0..3b7fb7164d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2328,9 +2328,9 @@ __metadata: languageName: node linkType: hard -"@dotenvx/dotenvx@npm:^1.64.0": - version: 1.64.0 - resolution: "@dotenvx/dotenvx@npm:1.64.0" +"@dotenvx/dotenvx@npm:^1.66.0": + version: 1.66.0 + resolution: "@dotenvx/dotenvx@npm:1.66.0" dependencies: commander: "npm:^11.1.0" dotenv: "npm:^17.2.1" @@ -2344,7 +2344,7 @@ __metadata: yocto-spinner: "npm:^1.1.0" bin: dotenvx: src/cli/dotenvx.js - checksum: 10c0/592f1d51d6688fad53684a37e9762d34e74068ad46ab2223453b86de157071590ac1d39cef4a2d83251ec84d9383aaa556b022fb54774a59742c457d2f9875b1 + checksum: 10c0/1e525ffe2ba2313542052976b33cb4e834579017b17ccce7f65c7379b5793a0f5dc93b929115f35a3b2f8fe6010cea325f7b88535cda186c8e2659ab59f72996 languageName: node linkType: hard @@ -15600,7 +15600,7 @@ __metadata: "@dnd-kit/core": "npm:^6.3.1" "@dnd-kit/modifiers": "npm:^6.0.1" "@dnd-kit/sortable": "npm:^7.0.2" - "@dotenvx/dotenvx": "npm:^1.64.0" + "@dotenvx/dotenvx": "npm:^1.66.0" "@emoji-mart/data": "npm:^1.2.1" "@faker-js/faker": "npm:^8.4.1" "@fast-csv/parse": "npm:^5.0.5" From 6e2b53315b4720f0398078bdb0ca9460a86bd7ea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 22:54:09 -0400 Subject: [PATCH 056/286] chore(deps-dev): bump @vitest/ui from 4.1.5 to 4.1.6 (#12387) Bumps [@vitest/ui](https://github.com/vitest-dev/vitest/tree/HEAD/packages/ui) from 4.1.5 to 4.1.6. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.6/packages/ui) --- updated-dependencies: - dependency-name: "@vitest/ui" dependency-version: 4.1.6 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 34 +++++++++++++++++++++++++++------- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 7e171a50c2..137d759811 100644 --- a/package.json +++ b/package.json @@ -348,7 +348,7 @@ "@types/utf8": "^3.0.3", "@types/validator": "^13.15.10", "@types/yauzl": "^2.10.3", - "@vitest/ui": "^4.1.5", + "@vitest/ui": "^4.1.6", "babel-plugin-module-resolver": "^5.0.3", "babel-plugin-styled-components": "^2.1.4", "babel-plugin-transform-inline-environment-variables": "^0.4.4", diff --git a/yarn.lock b/yarn.lock index 3b7fb7164d..535791af5f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8163,6 +8163,15 @@ __metadata: languageName: node linkType: hard +"@vitest/pretty-format@npm:4.1.6": + version: 4.1.6 + resolution: "@vitest/pretty-format@npm:4.1.6" + dependencies: + tinyrainbow: "npm:^3.1.0" + checksum: 10c0/f818a6abff9b7cf642edc2d0fe84d4f124911696bc7591f2af9ab6d88685b72133a1e9f87499e9b4dc2314dff85403ea66c64f7b408b2eb39f9880c6d3517ca0 + languageName: node + linkType: hard + "@vitest/runner@npm:4.1.5": version: 4.1.5 resolution: "@vitest/runner@npm:4.1.5" @@ -8192,11 +8201,11 @@ __metadata: languageName: node linkType: hard -"@vitest/ui@npm:^4.1.5": - version: 4.1.5 - resolution: "@vitest/ui@npm:4.1.5" +"@vitest/ui@npm:^4.1.6": + version: 4.1.6 + resolution: "@vitest/ui@npm:4.1.6" dependencies: - "@vitest/utils": "npm:4.1.5" + "@vitest/utils": "npm:4.1.6" fflate: "npm:^0.8.2" flatted: "npm:^3.4.2" pathe: "npm:^2.0.3" @@ -8204,8 +8213,8 @@ __metadata: tinyglobby: "npm:^0.2.15" tinyrainbow: "npm:^3.1.0" peerDependencies: - vitest: 4.1.5 - checksum: 10c0/2109480d08516abe3350994ebfcb9adc8a2eb4bb1839c48a336d6ff3378eb49a520ad6490f177e60034ed4fcf579206d9ab14995e951cbf6d4c7c792c46fe202 + vitest: 4.1.6 + checksum: 10c0/4e3a7416862feafe1ba2b0ca140bead49a2549ed189b2d42b8ea0bbd8656e103783b192151c0b9986861bc5f05e0fd33626c46e1f7572e8da068b85bd6a773ea languageName: node linkType: hard @@ -8220,6 +8229,17 @@ __metadata: languageName: node linkType: hard +"@vitest/utils@npm:4.1.6": + version: 4.1.6 + resolution: "@vitest/utils@npm:4.1.6" + dependencies: + "@vitest/pretty-format": "npm:4.1.6" + convert-source-map: "npm:^2.0.0" + tinyrainbow: "npm:^3.1.0" + checksum: 10c0/36437888088a1aae8565e62b9f145de9fb1599725574924477c655c7617ad677b575ac0eb3f2b3288854ed1aafff914a0417dffbb7f5244c821f157119701227 + languageName: node + linkType: hard + "@xmldom/xmldom@npm:^0.8.6": version: 0.8.13 resolution: "@xmldom/xmldom@npm:0.8.13" @@ -15712,7 +15732,7 @@ __metadata: "@types/validator": "npm:^13.15.10" "@types/yauzl": "npm:^2.10.3" "@vitejs/plugin-react-oxc": "npm:^0.2.3" - "@vitest/ui": "npm:^4.1.5" + "@vitest/ui": "npm:^4.1.6" addressparser: "npm:^1.0.1" async-sema: "npm:^3.1.1" babel-plugin-module-resolver: "npm:^5.0.3" From 620c654b26bc138303c395d17f27b94bc4d06533 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 22:57:52 -0400 Subject: [PATCH 057/286] chore(deps): bump react-colorful from 5.6.1 to 5.7.0 (#12386) * chore(deps): bump react-colorful from 5.6.1 to 5.7.0 Bumps [react-colorful](https://github.com/omgovich/react-colorful) from 5.6.1 to 5.7.0. - [Release notes](https://github.com/omgovich/react-colorful/releases) - [Changelog](https://github.com/omgovich/react-colorful/blob/master/CHANGELOG.md) - [Commits](https://github.com/omgovich/react-colorful/commits/5.7.0) --- updated-dependencies: - dependency-name: react-colorful dependency-version: 5.7.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Use new prop --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com> --- package.json | 2 +- shared/components/ColorPicker.tsx | 26 +++++--------------------- yarn.lock | 10 +++++----- 3 files changed, 11 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 137d759811..317023f679 100644 --- a/package.json +++ b/package.json @@ -212,7 +212,7 @@ "rate-limiter-flexible": "^2.4.2", "react": "^17.0.2", "react-avatar-editor": "^13.0.2", - "react-colorful": "^5.6.1", + "react-colorful": "^5.7.0", "react-day-picker": "^8.10.1", "react-dnd": "^16.0.1", "react-dnd-html5-backend": "^16.0.1", diff --git a/shared/components/ColorPicker.tsx b/shared/components/ColorPicker.tsx index 8b40967c6f..ac3562662a 100644 --- a/shared/components/ColorPicker.tsx +++ b/shared/components/ColorPicker.tsx @@ -1,7 +1,6 @@ import copy from "copy-to-clipboard"; -import { debounce } from "es-toolkit/compat"; import { CheckmarkIcon, CopyIcon } from "outline-icons"; -import { useMemo, useState, useEffect, useRef, useCallback } from "react"; +import { useState, useRef, useCallback } from "react"; import { HexColorInput, HexAlphaColorPicker, @@ -41,23 +40,6 @@ function ColorPicker({ activeColor, onSelect, alpha }: Props) { [onSelect] ); - const debouncedApplyColor = useMemo( - () => debounce(applyColor, 250), - [applyColor] - ); - - useEffect( - () => () => { - debouncedApplyColor.cancel(); - }, - [debouncedApplyColor] - ); - - const handleColorChangePicker = (newColor: string) => { - setColor(newColor); - debouncedApplyColor(newColor); - }; - const handleColorChangeInput = (newColor: string) => { setColor(newColor); applyColor(newColor); @@ -75,12 +57,14 @@ function ColorPicker({ activeColor, onSelect, alpha }: Props) { {alpha ? ( <StyledHexAlphaColorPicker color={color} - onChange={handleColorChangePicker} + onChange={setColor} + onChangeEnd={applyColor} /> ) : ( <StyledHexNonAlphaColorPicker color={color} - onChange={handleColorChangePicker} + onChange={setColor} + onChangeEnd={applyColor} /> )} diff --git a/yarn.lock b/yarn.lock index 535791af5f..4b41a96e24 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15852,7 +15852,7 @@ __metadata: rate-limiter-flexible: "npm:^2.4.2" react: "npm:^17.0.2" react-avatar-editor: "npm:^13.0.2" - react-colorful: "npm:^5.6.1" + react-colorful: "npm:^5.7.0" react-day-picker: "npm:^8.10.1" react-dnd: "npm:^16.0.1" react-dnd-html5-backend: "npm:^16.0.1" @@ -17243,13 +17243,13 @@ __metadata: languageName: node linkType: hard -"react-colorful@npm:^5.6.1": - version: 5.6.1 - resolution: "react-colorful@npm:5.6.1" +"react-colorful@npm:^5.7.0": + version: 5.7.0 + resolution: "react-colorful@npm:5.7.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - checksum: 10c0/48eb73cf71e10841c2a61b6b06ab81da9fffa9876134c239bfdebcf348ce2a47e56b146338e35dfb03512c85966bfc9a53844fc56bc50154e71f8daee59ff6f0 + checksum: 10c0/d8db4e66b6f6edf30cc2bb6c755bea45e8e133f9667c373897a048da6931d1a31554c0253043be7853c21f9df1e0928af9528122f698bcd5b847a83663c58f0e languageName: node linkType: hard From 07118e8c947bfc993de15b64dad5eda490c57f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZhuoYang=20Wu=28=E9=98=BF=E7=A6=BB=29?= <ali_ovo@qq.com> Date: Wed, 20 May 2026 08:33:11 +0800 Subject: [PATCH 058/286] fix: restore function (#12395) --- .gitignore | 1 + app/actions/definitions/revisions.tsx | 8 ++++++-- app/scenes/Document/components/Document.tsx | 11 ++++++++++- .../Document/components/History/RevisionListItem.tsx | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ba5f1314d6..91db22af1e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ data/* *.pem *.key *.cert +.history # Yarn Berry .yarn/* diff --git a/app/actions/definitions/revisions.tsx b/app/actions/definitions/revisions.tsx index be90ec8633..fee7d43e9e 100644 --- a/app/actions/definitions/revisions.tsx +++ b/app/actions/definitions/revisions.tsx @@ -3,6 +3,7 @@ import { LinkIcon, RestoreIcon, TrashIcon, DownloadIcon } from "outline-icons"; import { matchPath } from "react-router-dom"; import { toast } from "sonner"; import { ExportContentType } from "@shared/types"; +import Revision from "~/models/Revision"; import stores from "~/stores"; import { createAction, createActionWithChildren } from "~/actions"; import { RevisionSection } from "~/actions/sections"; @@ -21,7 +22,7 @@ export const restoreRevision = createAction({ section: RevisionSection, visible: ({ activeDocumentId }) => !!activeDocumentId && stores.policies.abilities(activeDocumentId).update, - perform: async ({ event, location, activeDocumentId }) => { + perform: async ({ event, location, activeDocumentId, getActiveModel }) => { event?.preventDefault(); if (!activeDocumentId) { return; @@ -30,7 +31,10 @@ export const restoreRevision = createAction({ const match = matchPath<{ revisionId: string }>(location.pathname, { path: matchDocumentHistory, }); - const revisionId = match?.params.revisionId; + const revisionId = getActiveModel(Revision)?.id ?? match?.params.revisionId; + if (!revisionId) { + return; + } const document = stores.documents.get(activeDocumentId); if (!document) { diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index f2273cbe69..5d0c7823a9 100644 --- a/app/scenes/Document/components/Document.tsx +++ b/app/scenes/Document/components/Document.tsx @@ -125,6 +125,16 @@ function DocumentScene({ return; } + history.replace(document.url, { + ...location.state, + restore: undefined, + revisionId: undefined, + }); + + if (!revisionId) { + return; + } + const response = await client.post("/revisions.info", { id: revisionId, }); @@ -135,7 +145,6 @@ function DocumentScene({ new AllSelection(editor.view.state.doc) ); toast.success(t("Document restored")); - history.replace(document.url, history.location.state); } }, [location, replaceSelection, t, history, document.url]); diff --git a/app/scenes/Document/components/History/RevisionListItem.tsx b/app/scenes/Document/components/History/RevisionListItem.tsx index d14a0c767c..cb7b2cc942 100644 --- a/app/scenes/Document/components/History/RevisionListItem.tsx +++ b/app/scenes/Document/components/History/RevisionListItem.tsx @@ -112,7 +112,7 @@ const RevisionListItem = ({ item, document, ...rest }: Props) => { } return ( - <ActionContextProvider value={{ activeModels: [document] }}> + <ActionContextProvider value={{ activeModels: [document, item] }}> <ContextMenu action={contextMenuAction} ariaLabel={t("Revision options")} From 1e2159edf7a39c62f8df42159f2d9037e7c917e7 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 19 May 2026 20:52:14 -0400 Subject: [PATCH 059/286] chore: Update ws dep resolution (#12398) --- package.json | 3 ++- yarn.lock | 23 ++++------------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 317023f679..37d4f12cab 100644 --- a/package.json +++ b/package.json @@ -388,7 +388,8 @@ "ip-address@npm:10.1.0": "^10.2.0", "minimatch@npm:9.0.1": "9.0.9", "lodash@npm:4.17.21": "^4.18.1", - "i18next-parser/i18next": "^23.16.8" + "i18next-parser/i18next": "^23.16.8", + "ws@npm:~8.17.1": "^8.20.1" }, "version": "1.7.1", "packageManager": "yarn@4.11.0" diff --git a/yarn.lock b/yarn.lock index 4b41a96e24..30bd43cfb6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -21162,9 +21162,9 @@ __metadata: languageName: node linkType: hard -"ws@npm:*, ws@npm:^8.13.0, ws@npm:^8.5.0": - version: 8.20.0 - resolution: "ws@npm:8.20.0" +"ws@npm:*, ws@npm:^8.13.0, ws@npm:^8.20.1, ws@npm:^8.5.0": + version: 8.20.1 + resolution: "ws@npm:8.20.1" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -21173,7 +21173,7 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 10c0/956ac5f11738c914089b65878b9223692ace77337ba55379ae68e1ecbeae9b47a0c6eb9403688f609999a58c80d83d99865fe0029b229d308b08c1ef93d4ea14 + checksum: 10c0/ce162433218399cdedeb76fd33363d4d86a7d910058d4e3c679dce08cea65d6da6b39f11baa4d7808d024cf46ed88f6a05c17611621aaad8fc5e62edacc30c5d languageName: node linkType: hard @@ -21192,21 +21192,6 @@ __metadata: languageName: node linkType: hard -"ws@npm:~8.17.1": - version: 8.17.1 - resolution: "ws@npm:8.17.1" - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ">=5.0.2" - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: 10c0/f4a49064afae4500be772abdc2211c8518f39e1c959640457dcee15d4488628620625c783902a52af2dd02f68558da2868fd06e6fd0e67ebcd09e6881b1b5bfe - languageName: node - linkType: hard - "xcase@npm:^2.0.1": version: 2.0.1 resolution: "xcase@npm:2.0.1" From a11a8442dc6188843e94e8c959a71845ed3f5f96 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 20:52:29 -0400 Subject: [PATCH 060/286] chore(deps): bump @fast-csv/parse from 5.0.5 to 5.0.7 (#12389) Bumps [@fast-csv/parse](https://github.com/C2FO/fast-csv/tree/HEAD/packages/parse) from 5.0.5 to 5.0.7. - [Release notes](https://github.com/C2FO/fast-csv/releases) - [Changelog](https://github.com/C2FO/fast-csv/blob/main/packages/parse/CHANGELOG.md) - [Commits](https://github.com/C2FO/fast-csv/commits/v5.0.7/packages/parse) --- updated-dependencies: - dependency-name: "@fast-csv/parse" dependency-version: 5.0.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 34 +++++----------------------------- 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 37d4f12cab..a0d0435e3a 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@dnd-kit/sortable": "^7.0.2", "@dotenvx/dotenvx": "^1.66.0", "@emoji-mart/data": "^1.2.1", - "@fast-csv/parse": "^5.0.5", + "@fast-csv/parse": "^5.0.7", "@fortawesome/fontawesome-svg-core": "^7.2.0", "@fortawesome/free-brands-svg-icons": "^7.2.0", "@fortawesome/free-solid-svg-icons": "^7.2.0", diff --git a/yarn.lock b/yarn.lock index 30bd43cfb6..fadedde69c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2627,17 +2627,14 @@ __metadata: languageName: node linkType: hard -"@fast-csv/parse@npm:^5.0.5": - version: 5.0.5 - resolution: "@fast-csv/parse@npm:5.0.5" +"@fast-csv/parse@npm:^5.0.7": + version: 5.0.7 + resolution: "@fast-csv/parse@npm:5.0.7" dependencies: lodash.escaperegexp: "npm:^4.1.2" lodash.groupby: "npm:^4.6.0" - lodash.isfunction: "npm:^3.0.9" - lodash.isnil: "npm:^4.0.0" - lodash.isundefined: "npm:^3.0.1" lodash.uniq: "npm:^4.5.0" - checksum: 10c0/849610401684e8dc0ed4375b38e514a8fcdc590cd73283688c0ab0f2ca793f29baf1ba4d0a5c189621125635bc2cc3d2083bd0ef56ff3615bd3e7c0f43fe49ec + checksum: 10c0/4e3823f3b78cb96818b776edb69f247812d6323eb52843251017a4077db8df044c5825e093ec4984a7d80a114311527d9a0110caf43195a22a83a894eab35d1e languageName: node linkType: hard @@ -14349,13 +14346,6 @@ __metadata: languageName: node linkType: hard -"lodash.isfunction@npm:^3.0.9": - version: 3.0.9 - resolution: "lodash.isfunction@npm:3.0.9" - checksum: 10c0/e88620922f5f104819496884779ca85bfc542efb2946df661ab3e2cd38da5c8375434c6adbedfc76dd3c2b04075d2ba8ec215cfdedf08ddd2e3c3467e8a26ccd - languageName: node - linkType: hard - "lodash.isinteger@npm:^4.0.4": version: 4.0.4 resolution: "lodash.isinteger@npm:4.0.4" @@ -14363,13 +14353,6 @@ __metadata: languageName: node linkType: hard -"lodash.isnil@npm:^4.0.0": - version: 4.0.0 - resolution: "lodash.isnil@npm:4.0.0" - checksum: 10c0/1a410a62eb2e797f077d038c11cbf1ea18ab36f713982849f086f86e050234d69988c76fa18d00278c0947daec67e9ecbc666326b8a06b43e36d3ece813a8120 - languageName: node - linkType: hard - "lodash.isnumber@npm:^3.0.3": version: 3.0.3 resolution: "lodash.isnumber@npm:3.0.3" @@ -14391,13 +14374,6 @@ __metadata: languageName: node linkType: hard -"lodash.isundefined@npm:^3.0.1": - version: 3.0.1 - resolution: "lodash.isundefined@npm:3.0.1" - checksum: 10c0/00ca2ae6fc83e10f806769130ee62b5bf419a4aaa52d1a084164b4cf2b2ab1dbf7246e05c72cf0df2ebf4ea38ab565a688c1a7362b54331bb336ea8b492f327f - languageName: node - linkType: hard - "lodash.merge@npm:^4.6.2": version: 4.6.2 resolution: "lodash.merge@npm:4.6.2" @@ -15623,7 +15599,7 @@ __metadata: "@dotenvx/dotenvx": "npm:^1.66.0" "@emoji-mart/data": "npm:^1.2.1" "@faker-js/faker": "npm:^8.4.1" - "@fast-csv/parse": "npm:^5.0.5" + "@fast-csv/parse": "npm:^5.0.7" "@fortawesome/fontawesome-svg-core": "npm:^7.2.0" "@fortawesome/free-brands-svg-icons": "npm:^7.2.0" "@fortawesome/free-solid-svg-icons": "npm:^7.2.0" From c875a92b867d77b46eaf81b9226e0c5383a03162 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 20:52:52 -0400 Subject: [PATCH 061/286] chore(deps): bump vite-plugin-pwa from 1.2.0 to 1.3.0 (#12321) Bumps [vite-plugin-pwa](https://github.com/vite-pwa/vite-plugin-pwa) from 1.2.0 to 1.3.0. - [Release notes](https://github.com/vite-pwa/vite-plugin-pwa/releases) - [Commits](https://github.com/vite-pwa/vite-plugin-pwa/compare/v1.2.0...v1.3.0) --- updated-dependencies: - dependency-name: vite-plugin-pwa dependency-version: 1.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 659 +++++++++++++++++++++++++++++++++------------------ 2 files changed, 435 insertions(+), 226 deletions(-) diff --git a/package.json b/package.json index a0d0435e3a..d7358c7ad8 100644 --- a/package.json +++ b/package.json @@ -263,7 +263,7 @@ "validator": "13.15.35", "vaul": "^1.1.2", "vite": "npm:rolldown-vite@7.3.1", - "vite-plugin-pwa": "1.2.0", + "vite-plugin-pwa": "1.3.0", "web-haptics": "^0.0.6", "winston": "^3.17.0", "ws": "^7.5.10", diff --git a/yarn.lock b/yarn.lock index fadedde69c..c153cdae11 100644 --- a/yarn.lock +++ b/yarn.lock @@ -928,7 +928,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.10.4, @babel/helper-module-imports@npm:^7.22.5, @babel/helper-module-imports@npm:^7.27.1, @babel/helper-module-imports@npm:^7.28.6": +"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.18.6, @babel/helper-module-imports@npm:^7.22.5, @babel/helper-module-imports@npm:^7.27.1, @babel/helper-module-imports@npm:^7.28.6": version: 7.28.6 resolution: "@babel/helper-module-imports@npm:7.28.6" dependencies: @@ -5697,26 +5697,28 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-babel@npm:^5.2.0": - version: 5.3.1 - resolution: "@rollup/plugin-babel@npm:5.3.1" +"@rollup/plugin-babel@npm:^6.1.0": + version: 6.1.0 + resolution: "@rollup/plugin-babel@npm:6.1.0" dependencies: - "@babel/helper-module-imports": "npm:^7.10.4" - "@rollup/pluginutils": "npm:^3.1.0" + "@babel/helper-module-imports": "npm:^7.18.6" + "@rollup/pluginutils": "npm:^5.0.1" peerDependencies: "@babel/core": ^7.0.0 "@types/babel__core": ^7.1.9 - rollup: ^1.20.0||^2.0.0 + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 peerDependenciesMeta: "@types/babel__core": optional: true - checksum: 10c0/2766134dd5567c0d4fd6909d1f511ce9bf3bd9d727e1bc5ffdd6097a3606faca324107ae8e0961839ee4dbb45e5e579ae601efe472fc0a271259aea79920cafa + rollup: + optional: true + checksum: 10c0/68bc1a3689552992c3443e43a95ac14ac4e271079a5a18e252d8113358236e9c91fe514dad7a42b84581214f8714ec1f46fd99a5d9cc5a6a1e7456367ee4d6d4 languageName: node linkType: hard -"@rollup/plugin-node-resolve@npm:^15.2.3": - version: 15.3.1 - resolution: "@rollup/plugin-node-resolve@npm:15.3.1" +"@rollup/plugin-node-resolve@npm:^16.0.3": + version: 16.0.3 + resolution: "@rollup/plugin-node-resolve@npm:16.0.3" dependencies: "@rollup/pluginutils": "npm:^5.0.1" "@types/resolve": "npm:1.20.2" @@ -5728,27 +5730,30 @@ __metadata: peerDependenciesMeta: rollup: optional: true - checksum: 10c0/ecf3abe890fc98ad665fdbfb1ea245253e0d1f2bc6d9f4e8f496f212c76a2ce7cd4b9bc0abd21e6bcaa16f72d1c67cc6b322ea12a6ec68e8a8834df8242a5ecd + checksum: 10c0/5bafff8e51cd28b5b3b8f415c30a893f5bfdb1a54469e00b3dc6530f26051620f3dfa172f40544361948b46cc3070cb34fd44ade66d38c0677d74c846fbc58dc languageName: node linkType: hard -"@rollup/plugin-replace@npm:^2.4.1": - version: 2.4.2 - resolution: "@rollup/plugin-replace@npm:2.4.2" +"@rollup/plugin-replace@npm:^6.0.3": + version: 6.0.3 + resolution: "@rollup/plugin-replace@npm:6.0.3" dependencies: - "@rollup/pluginutils": "npm:^3.1.0" - magic-string: "npm:^0.25.7" + "@rollup/pluginutils": "npm:^5.0.1" + magic-string: "npm:^0.30.3" peerDependencies: - rollup: ^1.20.0 || ^2.0.0 - checksum: 10c0/ea3d27291c791661638b91809d0247dde1ee71be0b16fa7060078c2700db3669eada2c3978ea979b917b29ebe06f3fddc8797feae554da966264a22142b5771a + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + checksum: 10c0/93217c52fe86b03363bc534b5f07963ac4fd6b91f19f6070a66809b0c65a036b3b234624a65a8bfcc01a8dc0e42838feae03c021b0d1e5e91753c503c4d70cd6 languageName: node linkType: hard -"@rollup/plugin-terser@npm:^0.4.3": - version: 0.4.4 - resolution: "@rollup/plugin-terser@npm:0.4.4" +"@rollup/plugin-terser@npm:^1.0.0": + version: 1.0.0 + resolution: "@rollup/plugin-terser@npm:1.0.0" dependencies: - serialize-javascript: "npm:^6.0.1" + serialize-javascript: "npm:^7.0.3" smob: "npm:^1.0.0" terser: "npm:^5.17.4" peerDependencies: @@ -5756,20 +5761,7 @@ __metadata: peerDependenciesMeta: rollup: optional: true - checksum: 10c0/b9cb6c8f02ac1c1344019e9fb854321b74f880efebc41b6bdd84f18331fce0f4a2aadcdb481042245cd3f409b429ac363af71f9efec4a2024731d67d32af36ee - languageName: node - linkType: hard - -"@rollup/pluginutils@npm:^3.1.0": - version: 3.1.0 - resolution: "@rollup/pluginutils@npm:3.1.0" - dependencies: - "@types/estree": "npm:0.0.39" - estree-walker: "npm:^1.0.1" - picomatch: "npm:^2.2.2" - peerDependencies: - rollup: ^1.20.0||^2.0.0 - checksum: 10c0/7151753160d15ba2b259461a6c25b3932150994ea52dba8fd3144f634c7647c2e56733d986e2c15de67c4d96a9ee7d6278efa6d2e626a7169898fd64adc0f90c + checksum: 10c0/08be445cc2e0677132ee06cdebbcd1b6cd3ab22e220fcd89d8a22eaf9ee501a940f425931ac65c65ab113803ad31a895f2575716248609c882c8e562fd6cc2d4 languageName: node linkType: hard @@ -5789,6 +5781,181 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm-eabi@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.60.4" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@rollup/rollup-android-arm64@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-android-arm64@npm:4.60.4" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-darwin-arm64@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-darwin-arm64@npm:4.60.4" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-darwin-x64@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-darwin-x64@npm:4.60.4" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-arm64@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.60.4" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-x64@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-freebsd-x64@npm:4.60.4" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-gnueabihf@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.60.4" + conditions: os=linux & cpu=arm & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-musleabihf@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.60.4" + conditions: os=linux & cpu=arm & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm64-gnu@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.60.4" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm64-musl@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.60.4" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-loong64-gnu@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-loong64-gnu@npm:4.60.4" + conditions: os=linux & cpu=loong64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-loong64-musl@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-loong64-musl@npm:4.60.4" + conditions: os=linux & cpu=loong64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-ppc64-gnu@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-ppc64-gnu@npm:4.60.4" + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-ppc64-musl@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-ppc64-musl@npm:4.60.4" + conditions: os=linux & cpu=ppc64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-riscv64-gnu@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.60.4" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-riscv64-musl@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.60.4" + conditions: os=linux & cpu=riscv64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-s390x-gnu@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.60.4" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-x64-gnu@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.60.4" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-x64-musl@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.60.4" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-openbsd-x64@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-openbsd-x64@npm:4.60.4" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-openharmony-arm64@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-openharmony-arm64@npm:4.60.4" + conditions: os=openharmony & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-win32-arm64-msvc@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.60.4" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-win32-ia32-msvc@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.60.4" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@rollup/rollup-win32-x64-gnu@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-win32-x64-gnu@npm:4.60.4" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-win32-x64-msvc@npm:4.60.4": + version: 4.60.4 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.60.4" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@rushstack/node-core-library@npm:4.0.2": version: 4.0.2 resolution: "@rushstack/node-core-library@npm:4.0.2" @@ -6553,18 +6720,6 @@ __metadata: languageName: node linkType: hard -"@surma/rollup-plugin-off-main-thread@npm:^2.2.3": - version: 2.2.3 - resolution: "@surma/rollup-plugin-off-main-thread@npm:2.2.3" - dependencies: - ejs: "npm:^3.1.6" - json5: "npm:^2.2.0" - magic-string: "npm:^0.25.0" - string.prototype.matchall: "npm:^4.0.6" - checksum: 10c0/4f36a7488cdae2907053a48231430e8e9aa8f1903a96131bf8325786afba3224011f9120164cae75043558bd051881050b071958388fe477927d340b1cc1a066 - languageName: node - linkType: hard - "@swc/core-darwin-arm64@npm:1.15.32": version: 1.15.32 resolution: "@swc/core-darwin-arm64@npm:1.15.32" @@ -6762,6 +6917,18 @@ __metadata: languageName: node linkType: hard +"@trickfilm400/rollup-plugin-off-main-thread@npm:^3.0.0-pre1": + version: 3.0.0-pre1 + resolution: "@trickfilm400/rollup-plugin-off-main-thread@npm:3.0.0-pre1" + dependencies: + ejs: "npm:^3.1.10" + json5: "npm:^2.2.3" + magic-string: "npm:^0.30.21" + string.prototype.matchall: "npm:^4.0.12" + checksum: 10c0/60d4ff15295413e8b4092221f2683681d13168fb136d94b0c1ca472810e4b28c51b1f88be5fa1aa44327e18b620fd6ca9a3201cb2679034b29adf7bdbde014e0 + languageName: node + linkType: hard + "@tybys/wasm-util@npm:^0.10.1": version: 0.10.1 resolution: "@tybys/wasm-util@npm:0.10.1" @@ -7234,14 +7401,7 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:0.0.39": - version: 0.0.39 - resolution: "@types/estree@npm:0.0.39" - checksum: 10c0/f0af6c95ac1988c4827964bd9d3b51d24da442e2188943f6dfcb1e1559103d5d024d564b2e9d3f84c53714a02a0a7435c7441138eb63d9af5de4dfc66cdc0d92 - languageName: node - linkType: hard - -"@types/estree@npm:^1.0.0": +"@types/estree@npm:1.0.8, @types/estree@npm:^1.0.0": version: 1.0.8 resolution: "@types/estree@npm:1.0.8" checksum: 10c0/39d34d1afaa338ab9763f37ad6066e3f349444f9052b9676a7cc0252ef9485a41c6d81c9c4e0d26e9077993354edf25efc853f3224dd4b447175ef62bdcc86a5 @@ -10769,7 +10929,7 @@ __metadata: languageName: node linkType: hard -"ejs@npm:^3.1.6": +"ejs@npm:^3.1.10": version: 3.1.10 resolution: "ejs@npm:3.1.10" dependencies: @@ -11251,13 +11411,6 @@ __metadata: languageName: node linkType: hard -"estree-walker@npm:^1.0.1": - version: 1.0.1 - resolution: "estree-walker@npm:1.0.1" - checksum: 10c0/fa9e5f8c1bbe8d01e314c0f03067b64a4f22d4c58410fc5237060d0c15b81e58c23921c41acc60abbdab490f1fdfcbd6408ede2d03ca704454272e0244d61a55 - languageName: node - linkType: hard - "estree-walker@npm:^2.0.2": version: 2.0.2 resolution: "estree-walker@npm:2.0.2" @@ -11281,6 +11434,13 @@ __metadata: languageName: node linkType: hard +"eta@npm:^4.5.1": + version: 4.6.0 + resolution: "eta@npm:4.6.0" + checksum: 10c0/98c8081f756884bbc22f2bf4a6a38c2322ee97575fb6f0c02dcb1c3040353971c91a96bfba2d6f7cba39bb0ebece5708803a765447d9a81ca1172ccd5e31becf + languageName: node + linkType: hard + "etag@npm:^1.8.1": version: 1.8.1 resolution: "etag@npm:1.8.1" @@ -13620,7 +13780,7 @@ __metadata: languageName: node linkType: hard -"json5@npm:^2.2.0, json5@npm:^2.2.3": +"json5@npm:^2.2.3": version: 2.2.3 resolution: "json5@npm:2.2.3" bin: @@ -14511,16 +14671,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.25.0, magic-string@npm:^0.25.7": - version: 0.25.9 - resolution: "magic-string@npm:0.25.9" - dependencies: - sourcemap-codec: "npm:^1.4.8" - checksum: 10c0/37f5e01a7e8b19a072091f0b45ff127cda676232d373ce2c551a162dd4053c575ec048b9cbb4587a1f03adb6c5d0fd0dd49e8ab070cd2c83a4992b2182d9cb56 - languageName: node - linkType: hard - -"magic-string@npm:^0.30.21": +"magic-string@npm:^0.30.21, magic-string@npm:^0.30.3": version: 0.30.21 resolution: "magic-string@npm:0.30.21" dependencies: @@ -15886,7 +16037,7 @@ __metadata: vaul: "npm:^1.1.2" vite: "npm:rolldown-vite@7.3.1" vite-plugin-babel: "npm:^1.6.0" - vite-plugin-pwa: "npm:1.2.0" + vite-plugin-pwa: "npm:1.3.0" vite-tsconfig-paths: "npm:^6.1.1" vitest: "npm:^4.1.5" web-haptics: "npm:^0.0.6" @@ -16586,7 +16737,7 @@ __metadata: languageName: node linkType: hard -"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2, picomatch@npm:^2.3.1": +"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.1": version: 2.3.2 resolution: "picomatch@npm:2.3.2" checksum: 10c0/a554d1709e59be97d1acb9eaedbbc700a5c03dbd4579807baed95100b00420bc729335440ef15004ae2378984e2487a7c1cebd743cfdb72b6fa9ab69223c0d61 @@ -17151,15 +17302,6 @@ __metadata: languageName: node linkType: hard -"randombytes@npm:^2.1.0": - version: 2.1.0 - resolution: "randombytes@npm:2.1.0" - dependencies: - safe-buffer: "npm:^5.1.0" - checksum: 10c0/50395efda7a8c94f5dffab564f9ff89736064d32addf0cc7e8bf5e4166f09f8ded7a0849ca6c2d2a59478f7d90f78f20d8048bca3cdf8be09d8e8a10790388f3 - languageName: node - linkType: hard - "range-parser@npm:^1.2.1": version: 1.2.1 resolution: "range-parser@npm:1.2.1" @@ -18107,17 +18249,93 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^2.79.2": - version: 2.79.2 - resolution: "rollup@npm:2.79.2" +"rollup@npm:^4.53.3": + version: 4.60.4 + resolution: "rollup@npm:4.60.4" dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.60.4" + "@rollup/rollup-android-arm64": "npm:4.60.4" + "@rollup/rollup-darwin-arm64": "npm:4.60.4" + "@rollup/rollup-darwin-x64": "npm:4.60.4" + "@rollup/rollup-freebsd-arm64": "npm:4.60.4" + "@rollup/rollup-freebsd-x64": "npm:4.60.4" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.60.4" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.60.4" + "@rollup/rollup-linux-arm64-gnu": "npm:4.60.4" + "@rollup/rollup-linux-arm64-musl": "npm:4.60.4" + "@rollup/rollup-linux-loong64-gnu": "npm:4.60.4" + "@rollup/rollup-linux-loong64-musl": "npm:4.60.4" + "@rollup/rollup-linux-ppc64-gnu": "npm:4.60.4" + "@rollup/rollup-linux-ppc64-musl": "npm:4.60.4" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.60.4" + "@rollup/rollup-linux-riscv64-musl": "npm:4.60.4" + "@rollup/rollup-linux-s390x-gnu": "npm:4.60.4" + "@rollup/rollup-linux-x64-gnu": "npm:4.60.4" + "@rollup/rollup-linux-x64-musl": "npm:4.60.4" + "@rollup/rollup-openbsd-x64": "npm:4.60.4" + "@rollup/rollup-openharmony-arm64": "npm:4.60.4" + "@rollup/rollup-win32-arm64-msvc": "npm:4.60.4" + "@rollup/rollup-win32-ia32-msvc": "npm:4.60.4" + "@rollup/rollup-win32-x64-gnu": "npm:4.60.4" + "@rollup/rollup-win32-x64-msvc": "npm:4.60.4" + "@types/estree": "npm:1.0.8" fsevents: "npm:~2.3.2" dependenciesMeta: + "@rollup/rollup-android-arm-eabi": + optional: true + "@rollup/rollup-android-arm64": + optional: true + "@rollup/rollup-darwin-arm64": + optional: true + "@rollup/rollup-darwin-x64": + optional: true + "@rollup/rollup-freebsd-arm64": + optional: true + "@rollup/rollup-freebsd-x64": + optional: true + "@rollup/rollup-linux-arm-gnueabihf": + optional: true + "@rollup/rollup-linux-arm-musleabihf": + optional: true + "@rollup/rollup-linux-arm64-gnu": + optional: true + "@rollup/rollup-linux-arm64-musl": + optional: true + "@rollup/rollup-linux-loong64-gnu": + optional: true + "@rollup/rollup-linux-loong64-musl": + optional: true + "@rollup/rollup-linux-ppc64-gnu": + optional: true + "@rollup/rollup-linux-ppc64-musl": + optional: true + "@rollup/rollup-linux-riscv64-gnu": + optional: true + "@rollup/rollup-linux-riscv64-musl": + optional: true + "@rollup/rollup-linux-s390x-gnu": + optional: true + "@rollup/rollup-linux-x64-gnu": + optional: true + "@rollup/rollup-linux-x64-musl": + optional: true + "@rollup/rollup-openbsd-x64": + optional: true + "@rollup/rollup-openharmony-arm64": + optional: true + "@rollup/rollup-win32-arm64-msvc": + optional: true + "@rollup/rollup-win32-ia32-msvc": + optional: true + "@rollup/rollup-win32-x64-gnu": + optional: true + "@rollup/rollup-win32-x64-msvc": + optional: true fsevents: optional: true bin: rollup: dist/bin/rollup - checksum: 10c0/bc3746c988d903c2211266ddc539379d53d92689b9cc5c2b4e3ae161689de9af491957a567c629b6cc81f48d0928a7591fc4c383fba68a48d2966c9fb8a2bce9 + checksum: 10c0/2734511579da220408eefb877b51281767d790652cee25da8fcd4936c947e3db14882b5edb1d0d5d5bf60f2a71a58ae7d5f7f46c11e3fdf33182538953886243 languageName: node linkType: hard @@ -18210,7 +18428,7 @@ __metadata: languageName: node linkType: hard -"safe-buffer@npm:5.2.1, safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:^5.1.2, safe-buffer@npm:~5.2.0": +"safe-buffer@npm:5.2.1, safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.2, safe-buffer@npm:~5.2.0": version: 5.2.1 resolution: "safe-buffer@npm:5.2.1" checksum: 10c0/6501914237c0a86e9675d4e51d89ca3c21ffd6a31642efeba25ad65720bce6921c9e7e974e5be91a786b25aa058b5303285d3c15dbabf983a919f5f630d349f3 @@ -18460,12 +18678,10 @@ __metadata: languageName: node linkType: hard -"serialize-javascript@npm:^6.0.1": - version: 6.0.2 - resolution: "serialize-javascript@npm:6.0.2" - dependencies: - randombytes: "npm:^2.1.0" - checksum: 10c0/2dd09ef4b65a1289ba24a788b1423a035581bef60817bea1f01eda8e3bda623f86357665fe7ac1b50f6d4f583f97db9615b3f07b2a2e8cbcb75033965f771dd2 +"serialize-javascript@npm:^7.0.3": + version: 7.0.5 + resolution: "serialize-javascript@npm:7.0.5" + checksum: 10c0/7b7818e5267f6d474ec7a56d36ba69dd712726a13eab37706ec94615fb7ca8945471f2b7fb0dc9dbe8c79c1930c1079d97f66f91315c8c8c2ca6c38898cec96f languageName: node linkType: hard @@ -18867,13 +19083,6 @@ __metadata: languageName: node linkType: hard -"sourcemap-codec@npm:^1.4.8": - version: 1.4.8 - resolution: "sourcemap-codec@npm:1.4.8" - checksum: 10c0/f099279fdaae070ff156df7414bbe39aad69cdd615454947ed3e19136bfdfcb4544952685ee73f56e17038f4578091e12b17b283ed8ac013882916594d95b9e6 - languageName: node - linkType: hard - "space-separated-tokens@npm:^1.0.0": version: 1.1.5 resolution: "space-separated-tokens@npm:1.1.5" @@ -19108,7 +19317,7 @@ __metadata: languageName: node linkType: hard -"string.prototype.matchall@npm:^4.0.6": +"string.prototype.matchall@npm:^4.0.12": version: 4.0.12 resolution: "string.prototype.matchall@npm:4.0.12" dependencies: @@ -20392,24 +20601,24 @@ __metadata: languageName: node linkType: hard -"vite-plugin-pwa@npm:1.2.0": - version: 1.2.0 - resolution: "vite-plugin-pwa@npm:1.2.0" +"vite-plugin-pwa@npm:1.3.0": + version: 1.3.0 + resolution: "vite-plugin-pwa@npm:1.3.0" dependencies: debug: "npm:^4.3.6" pretty-bytes: "npm:^6.1.1" tinyglobby: "npm:^0.2.10" - workbox-build: "npm:^7.4.0" - workbox-window: "npm:^7.4.0" + workbox-build: "npm:^7.4.1" + workbox-window: "npm:^7.4.1" peerDependencies: "@vite-pwa/assets-generator": ^1.0.0 - vite: ^3.1.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 - workbox-build: ^7.4.0 - workbox-window: ^7.4.0 + vite: ^3.1.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + workbox-build: ^7.4.1 + workbox-window: ^7.4.1 peerDependenciesMeta: "@vite-pwa/assets-generator": optional: true - checksum: 10c0/d037591fc6a44b9a97f45b2452f691fce34c1c8ece4721d4f1a068f6dd7c30991b63c090a2af87d5b78d351bf5f5eee9d9dbbfc4bb39a77d3bc2ab7d2ca5df6b + checksum: 10c0/1cf7a43bf25d3f1276fe61e63cf7134b735b4426ddd2cf05775160e5bcd0a84eb705c15496abe78f6fb051f7a9481fcf854ed2b5b86922e07865ab37d5cb7a0b languageName: node linkType: hard @@ -20908,193 +21117,193 @@ __metadata: languageName: node linkType: hard -"workbox-background-sync@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-background-sync@npm:7.4.0" +"workbox-background-sync@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-background-sync@npm:7.4.1" dependencies: idb: "npm:^7.0.1" - workbox-core: "npm:7.4.0" - checksum: 10c0/024dfad37c9ca28480857aaf7c0dd2e2f2b2ea416e100b51260eaf28f14ca5a558d0e12b1e95f862fec04df54432c090fa29582ab88b43d8778a4c821f21d13f + workbox-core: "npm:7.4.1" + checksum: 10c0/804729b83eb194a7694cb174d79090de85765f835bcc94d4c7eb739cb839385c6755baaf8dc82a43468b27488355cfaabb08cff751d5dfc70e07bf4c07e1c45d languageName: node linkType: hard -"workbox-broadcast-update@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-broadcast-update@npm:7.4.0" +"workbox-broadcast-update@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-broadcast-update@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - checksum: 10c0/9e96d38cb1cfaccf72a37beeed7d36a66db8bacaa09e584bfa15f6b129aee5026c521320b4b68fa762f4f6ba0229f11c6ec6f7bc039419c8d1f1a9ed9f2a37b5 + workbox-core: "npm:7.4.1" + checksum: 10c0/fb640c12dc9034f4f0fe9636f532a41c8eccba360676b4cd28d479b59684eab727435310d0e115b935d92e7abfe5ee91a77d567f9cb824fe33064e18880d7c4f languageName: node linkType: hard -"workbox-build@npm:^7.4.0": - version: 7.4.0 - resolution: "workbox-build@npm:7.4.0" +"workbox-build@npm:^7.4.1": + version: 7.4.1 + resolution: "workbox-build@npm:7.4.1" dependencies: "@apideck/better-ajv-errors": "npm:^0.3.1" "@babel/core": "npm:^7.24.4" "@babel/preset-env": "npm:^7.11.0" "@babel/runtime": "npm:^7.11.2" - "@rollup/plugin-babel": "npm:^5.2.0" - "@rollup/plugin-node-resolve": "npm:^15.2.3" - "@rollup/plugin-replace": "npm:^2.4.1" - "@rollup/plugin-terser": "npm:^0.4.3" - "@surma/rollup-plugin-off-main-thread": "npm:^2.2.3" + "@rollup/plugin-babel": "npm:^6.1.0" + "@rollup/plugin-node-resolve": "npm:^16.0.3" + "@rollup/plugin-replace": "npm:^6.0.3" + "@rollup/plugin-terser": "npm:^1.0.0" + "@trickfilm400/rollup-plugin-off-main-thread": "npm:^3.0.0-pre1" ajv: "npm:^8.6.0" common-tags: "npm:^1.8.0" + eta: "npm:^4.5.1" fast-json-stable-stringify: "npm:^2.1.0" fs-extra: "npm:^9.0.1" glob: "npm:^11.0.1" - lodash: "npm:^4.17.20" pretty-bytes: "npm:^5.3.0" - rollup: "npm:^2.79.2" + rollup: "npm:^4.53.3" source-map: "npm:^0.8.0-beta.0" stringify-object: "npm:^3.3.0" strip-comments: "npm:^2.0.1" tempy: "npm:^0.6.0" upath: "npm:^1.2.0" - workbox-background-sync: "npm:7.4.0" - workbox-broadcast-update: "npm:7.4.0" - workbox-cacheable-response: "npm:7.4.0" - workbox-core: "npm:7.4.0" - workbox-expiration: "npm:7.4.0" - workbox-google-analytics: "npm:7.4.0" - workbox-navigation-preload: "npm:7.4.0" - workbox-precaching: "npm:7.4.0" - workbox-range-requests: "npm:7.4.0" - workbox-recipes: "npm:7.4.0" - workbox-routing: "npm:7.4.0" - workbox-strategies: "npm:7.4.0" - workbox-streams: "npm:7.4.0" - workbox-sw: "npm:7.4.0" - workbox-window: "npm:7.4.0" - checksum: 10c0/673fb05a0b24bb5534667a8d7c42304e3a1394071d73c9ccbfec881e36a66c98ed59eba92e21669a2758289c79e76a72930077a611f20ba803cdc0d0a24da6b2 + workbox-background-sync: "npm:7.4.1" + workbox-broadcast-update: "npm:7.4.1" + workbox-cacheable-response: "npm:7.4.1" + workbox-core: "npm:7.4.1" + workbox-expiration: "npm:7.4.1" + workbox-google-analytics: "npm:7.4.1" + workbox-navigation-preload: "npm:7.4.1" + workbox-precaching: "npm:7.4.1" + workbox-range-requests: "npm:7.4.1" + workbox-recipes: "npm:7.4.1" + workbox-routing: "npm:7.4.1" + workbox-strategies: "npm:7.4.1" + workbox-streams: "npm:7.4.1" + workbox-sw: "npm:7.4.1" + workbox-window: "npm:7.4.1" + checksum: 10c0/18ed36ef28d31ffc26efbc0796d858b68b5dd9b61c86a9d5eef1c2a863ea05cc5a777a6e842af9a28a8efdbf84e6273b3ab82f8c60f495d95bdb5a7acf491da0 languageName: node linkType: hard -"workbox-cacheable-response@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-cacheable-response@npm:7.4.0" +"workbox-cacheable-response@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-cacheable-response@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - checksum: 10c0/4d4fabf3cbd7b2b0505e62ec653f933de40d4fa7600e49ac15cdf223e86b9e70580927f53c6ef27ddd027b655829918b90a77a3675593017c001811a122c6591 + workbox-core: "npm:7.4.1" + checksum: 10c0/fc7bb1e435262c6390c6cdab02f27c7304bdd5de663514278718620c15df894e1d57a1cf38b10ec5dbe673ce3d650010c650dcd3d6587eb4dfad170caeaa53d4 languageName: node linkType: hard -"workbox-core@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-core@npm:7.4.0" - checksum: 10c0/ae7c762df084b57d3d10f42b83a508a5c0bec5663de4c9cefc2b5c2893922a816f451cf8ec45ee76d204a3a6e90ee52b6c550a6cba9109d9bb644da9e98fb9e8 +"workbox-core@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-core@npm:7.4.1" + checksum: 10c0/953c3bcec2c04cef44ac779ac6b525f639fade17c594cfa601d7892090da6e18abd3eda22d2d592d8b4df6aa6856c947770f8b960f70c1ac1c989f722d0e7f67 languageName: node linkType: hard -"workbox-expiration@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-expiration@npm:7.4.0" +"workbox-expiration@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-expiration@npm:7.4.1" dependencies: idb: "npm:^7.0.1" - workbox-core: "npm:7.4.0" - checksum: 10c0/d4f5e96e6d58d74a1be7d8c842e68e9fc2d4a22664f629ec71570039a1876e033ca1e54d68eccded83d901999e48fb388c1f807b14f706b9b83c7b3ab5815cf8 + workbox-core: "npm:7.4.1" + checksum: 10c0/d940f2f263b5c1b5a27c4e0b7df9c44c9a8d9aa4ac4c8217610cee6e235aa4d97608d8713bb95a0da3228f145209e8cbc3d4ebc51455bd72a60d33f706640e15 languageName: node linkType: hard -"workbox-google-analytics@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-google-analytics@npm:7.4.0" +"workbox-google-analytics@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-google-analytics@npm:7.4.1" dependencies: - workbox-background-sync: "npm:7.4.0" - workbox-core: "npm:7.4.0" - workbox-routing: "npm:7.4.0" - workbox-strategies: "npm:7.4.0" - checksum: 10c0/34a5ad1ea6fd6c65d5eb78b8c4bcf30b2624099b1c7c2e8f6a2af7135dcfcff00531d042f99b45960dcc42185b0f9c4b62c02a38325429fa15f060f30df61e51 + workbox-background-sync: "npm:7.4.1" + workbox-core: "npm:7.4.1" + workbox-routing: "npm:7.4.1" + workbox-strategies: "npm:7.4.1" + checksum: 10c0/107beef09bc14f7b83a257964dc4ac2f19d14fce20f5498e31172e8ef387fd46ee9e0dd63f01825c8baf49fc0fea0451e06fb1879df958b4df634f85564be8a1 languageName: node linkType: hard -"workbox-navigation-preload@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-navigation-preload@npm:7.4.0" +"workbox-navigation-preload@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-navigation-preload@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - checksum: 10c0/9999d78683247dcbf1ca1e18664b3ecb19e8330c0ff9328403a513051d65eb3fc6578504dcc324fe603c7fb6d3d1054de1f55b4d2b9765236298cfebebefabe9 + workbox-core: "npm:7.4.1" + checksum: 10c0/efe8fda736cc6afa1bf90eec65fccf206c179bda194264c5fa14063cd7d3b9bf399b960c22400212f83e48e3509cb6f586d1360710319049542cbe93254af5b9 languageName: node linkType: hard -"workbox-precaching@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-precaching@npm:7.4.0" +"workbox-precaching@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-precaching@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - workbox-routing: "npm:7.4.0" - workbox-strategies: "npm:7.4.0" - checksum: 10c0/df1d3ac590f56418ae80595c6c6a718f15ce3d6b9622ef43058d9d56f7374d95202ef2932e5ef5410d949f4f4366f5eccaf7956c32f579846fcc4bd83578c246 + workbox-core: "npm:7.4.1" + workbox-routing: "npm:7.4.1" + workbox-strategies: "npm:7.4.1" + checksum: 10c0/e1f22df8945fe8cf3b77d8c8c9fb460d8e6469dbf0dba3d372a59e9649a6272024d6e63783ceb95bfed30f634ced524f1d0d3f21979fb6e48cdaa009e9be12c5 languageName: node linkType: hard -"workbox-range-requests@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-range-requests@npm:7.4.0" +"workbox-range-requests@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-range-requests@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - checksum: 10c0/7b945fab877bfc226fa8b7aa8e87b1d2179565314eff424672bfa70c43eec5dce99fe79109f548b6c6b054629f4464fb73085c3357f3c52cea6befe8d36f4fb4 + workbox-core: "npm:7.4.1" + checksum: 10c0/fca4ca13a82056bac7b1599b103287b74819e8532500c5f229c27466681e243628df8cb9ed3660eff9dcb07b81b0b8bb5428271351a3502317423214fb5b5dc0 languageName: node linkType: hard -"workbox-recipes@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-recipes@npm:7.4.0" +"workbox-recipes@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-recipes@npm:7.4.1" dependencies: - workbox-cacheable-response: "npm:7.4.0" - workbox-core: "npm:7.4.0" - workbox-expiration: "npm:7.4.0" - workbox-precaching: "npm:7.4.0" - workbox-routing: "npm:7.4.0" - workbox-strategies: "npm:7.4.0" - checksum: 10c0/2de53c679af2879921861d817b2f9b6a682aff0d871d38542519c16902ccfdfe7d5bf456f1e3a1f2fdb86824795f1794fec39a5b342a0d9866fccfd0e02a93a7 + workbox-cacheable-response: "npm:7.4.1" + workbox-core: "npm:7.4.1" + workbox-expiration: "npm:7.4.1" + workbox-precaching: "npm:7.4.1" + workbox-routing: "npm:7.4.1" + workbox-strategies: "npm:7.4.1" + checksum: 10c0/5d238895f7a3c0791ee315bd7ad6dcb268acdd2328abb3e78e655cff591ceb89d466ecf63bea92007b88d5bb52074a6a7a16b813f718b1cce89fe0153bae6ad7 languageName: node linkType: hard -"workbox-routing@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-routing@npm:7.4.0" +"workbox-routing@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-routing@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - checksum: 10c0/62a2a3f24a5c54fc716e9275ccd032c5e35cf645d3bcf670c91531a2a8308025767a4ff799d36483eab50c007647748ab309ea1af76847ebcd78203ef4069ae6 + workbox-core: "npm:7.4.1" + checksum: 10c0/11447d16c652de1667aa2be89634e426b615ff00f96d08d395a096afef07813a131d64c1f840344dd4210746800937437682a6bde7ef8a5233f371203c99d36a languageName: node linkType: hard -"workbox-strategies@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-strategies@npm:7.4.0" +"workbox-strategies@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-strategies@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - checksum: 10c0/c25771af342ce10aee006d749e7adba4e77e7379b39cd96dbd05557f0f4968ff1ac88001022fb588ce2c105e5dfded321ce9f14344291c19ab753db37e6611f8 + workbox-core: "npm:7.4.1" + checksum: 10c0/db96df6ef1260e281c580a963e68390e64df198b0684f37a693449af928edb3679ac97390dabe2ec11dc617a632cf4410a65854dd399bfdeaafbb74aea6532d8 languageName: node linkType: hard -"workbox-streams@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-streams@npm:7.4.0" +"workbox-streams@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-streams@npm:7.4.1" dependencies: - workbox-core: "npm:7.4.0" - workbox-routing: "npm:7.4.0" - checksum: 10c0/213ac3cebb6f499fd2bedf28ae75523c8193ca6c7ace797227347775811dba80551dd645fc0bf04fb1b36eea2cf030e4ce3648d886cc0e8017363bd3806c84f3 + workbox-core: "npm:7.4.1" + workbox-routing: "npm:7.4.1" + checksum: 10c0/f487b6e2f17119057b3f4265a0454de2304e5378ddfc95b1f7e4f660aab6f93f4b0ede86fd0c33fbcae3a077162020ea07846cb5fc69d7c71c6ddf5ad6f3b1da languageName: node linkType: hard -"workbox-sw@npm:7.4.0": - version: 7.4.0 - resolution: "workbox-sw@npm:7.4.0" - checksum: 10c0/f87198a9f40da34e13f896ea308c5feedf9caf3ba10b2d40c301850396edf17cdba060775b224fc07697356858816af9912997b751041a715b6934ab14b35300 +"workbox-sw@npm:7.4.1": + version: 7.4.1 + resolution: "workbox-sw@npm:7.4.1" + checksum: 10c0/cef8ebffcef9e8f055d7f51273c8fcb9981b6c9de272c4d37b17a11cef5df55d05f814bda3d8daab6b7e207a484865cb08a579e0ba7341ed66ecce34acb3cfc3 languageName: node linkType: hard -"workbox-window@npm:7.4.0, workbox-window@npm:^7.4.0": - version: 7.4.0 - resolution: "workbox-window@npm:7.4.0" +"workbox-window@npm:7.4.1, workbox-window@npm:^7.4.1": + version: 7.4.1 + resolution: "workbox-window@npm:7.4.1" dependencies: "@types/trusted-types": "npm:^2.0.2" - workbox-core: "npm:7.4.0" - checksum: 10c0/6013d1019fe3bbb06d8e572b6a4ccfec6fc0879448337997c193fde08738c2fa420a4dca385b00220ef1feac3539e82b01896c85f77cd8c45cff379e7a6cb1d5 + workbox-core: "npm:7.4.1" + checksum: 10c0/1c4db303d2f71cccd16e12ced9c85e2a2d16a00e3992bade92e990bcd1e6c8a49bc2021261e62145ba098065a691972a763f958d35f07232ee61e8d26555699b languageName: node linkType: hard From 841ab022a6df78adcc2ff6c06eb20fd773819e17 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 17:49:30 -0400 Subject: [PATCH 062/286] Sanitize Windows-invalid characters in exported filenames (#12407) * Sanitize Windows-invalid ZIP filename characters Agent-Logs-Url: https://github.com/outline/outline/sessions/539082bc-597f-463d-b77c-6eb1bcf9bffa Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> * Refine Windows filename sanitization regex handling Agent-Logs-Url: https://github.com/outline/outline/sessions/539082bc-597f-463d-b77c-6eb1bcf9bffa Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> * PR feedback --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com> --- server/utils/fs.test.ts | 24 ++++++++++++++++++++++++ server/utils/fs.ts | 41 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/server/utils/fs.test.ts b/server/utils/fs.test.ts index ea159cfc1a..a53f307c1c 100644 --- a/server/utils/fs.test.ts +++ b/server/utils/fs.test.ts @@ -19,6 +19,18 @@ describe("serializeFilename", () => { "this %5C and %5C this" ); }); + + it("should serialize Windows-invalid filename characters", () => { + expect(serializeFilename(`this: * ? " < > | that`)).toBe( + "this%3A %2A %3F %22 %3C %3E %7C that" + ); + }); + + it("should serialize trailing Windows-invalid filename characters", () => { + expect(serializeFilename("file.")).toBe("file%2E"); + expect(serializeFilename("file ")).toBe("file%20"); + expect(serializeFilename("file. ")).toBe("file%2E%20"); + }); }); describe("deserializeFilename", () => { @@ -35,6 +47,18 @@ describe("deserializeFilename", () => { `this \\ and \\ this` ); }); + + it("should deserialize Windows-invalid filename characters", () => { + expect(deserializeFilename("%3A %2A %3F %22 %3C %3E %7C")).toBe( + `: * ? " < > |` + ); + }); + + it("should deserialize trailing Windows-invalid filename characters", () => { + expect(deserializeFilename("file%2E")).toBe("file."); + expect(deserializeFilename("file%20")).toBe("file "); + expect(deserializeFilename("file%2E%20")).toBe("file. "); + }); }); describe("stringByteLength", () => { diff --git a/server/utils/fs.ts b/server/utils/fs.ts index a9db935eff..db2878210b 100644 --- a/server/utils/fs.ts +++ b/server/utils/fs.ts @@ -1,6 +1,33 @@ import path from "node:path"; import fs from "fs-extra"; +const windowsInvalidFileNameCharsRegex = /[\\/:*?"<>|]/g; +const windowsTrailingFileNameCharsRegex = /[. ]+$/g; +const encodedWindowsCharacters: Record<string, string> = { + "%2F": "/", + "%5C": "\\", + "%3A": ":", + "%2A": "*", + "%3F": "?", + "%22": '"', + "%3C": "<", + "%3E": ">", + "%7C": "|", + "%2E": ".", + "%20": " ", +}; +const encodedWindowsCharactersRegex = /%(?:2F|5C|3A|2A|3F|22|3C|3E|7C|2E|20)/gi; + +/** + * Encodes a single character to uppercase percent-encoding. + * + * @param char The character to encode. + * @returns The encoded character. + */ +function encodeWindowsUnsafeCharacter(char: string): string { + return `%${char.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0")}`; +} + /** * Serialize a file name for inclusion in a ZIP. * @@ -8,7 +35,14 @@ import fs from "fs-extra"; * @returns The serialized file name. */ export function serializeFilename(text: string): string { - return text.replace(/\//g, "%2F").replace(/\\/g, "%5C"); + const encoded = text.replace( + windowsInvalidFileNameCharsRegex, + encodeWindowsUnsafeCharacter + ); + + return encoded.replace(windowsTrailingFileNameCharsRegex, (trailing) => + trailing.split("").map(encodeWindowsUnsafeCharacter).join("") + ); } /** @@ -18,7 +52,10 @@ export function serializeFilename(text: string): string { * @returns The deserialized file name. */ export function deserializeFilename(text: string): string { - return text.replace(/%2F/g, "/").replace(/%5C/g, "\\"); + return text.replace( + encodedWindowsCharactersRegex, + (match) => encodedWindowsCharacters[match.toUpperCase()] ?? match + ); } /** From 80d90e3201f70066c6647da41808857d5c45ce97 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 20 May 2026 17:49:44 -0400 Subject: [PATCH 063/286] fix: Slack notifications show "Untitled" for documents without titles (#12406) Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- plugins/slack/server/presenters/messageAttachment.ts | 2 +- plugins/slack/server/processors/SlackProcessor.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/slack/server/presenters/messageAttachment.ts b/plugins/slack/server/presenters/messageAttachment.ts index f89e81a4fa..b7e6193637 100644 --- a/plugins/slack/server/presenters/messageAttachment.ts +++ b/plugins/slack/server/presenters/messageAttachment.ts @@ -22,7 +22,7 @@ export function presentMessageAttachment( return { color: collection?.color, - title: document.title, + title: document.titleWithDefault, title_link: `${team.url}${document.url}`, footer: collection?.name, callback_id: document.id, diff --git a/plugins/slack/server/processors/SlackProcessor.ts b/plugins/slack/server/processors/SlackProcessor.ts index 86e6ee6210..50a81b47a5 100644 --- a/plugins/slack/server/processors/SlackProcessor.ts +++ b/plugins/slack/server/processors/SlackProcessor.ts @@ -124,10 +124,10 @@ export default class SlackProcessor extends BaseProcessor { if (!integration) { return; } - let text = `${document.updatedBy.name} updated "${document.title}"`; + let text = `${document.updatedBy.name} updated "${document.titleWithDefault}"`; if (event.name === "documents.publish") { - text = `${document.createdBy.name} published "${document.title}"`; + text = `${document.createdBy.name} published "${document.titleWithDefault}"`; } await fetch(integration.settings.url, { From 3a6df26c8c53fc3231bb387e2779b890d50c8675 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 17:41:07 -0400 Subject: [PATCH 064/286] chore(deps): bump js-cookie from 3.0.5 to 3.0.7 (#12414) --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index c153cdae11..0e9979203c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13663,9 +13663,9 @@ __metadata: linkType: hard "js-cookie@npm:^3.0.5": - version: 3.0.5 - resolution: "js-cookie@npm:3.0.5" - checksum: 10c0/04a0e560407b4489daac3a63e231d35f4e86f78bff9d792011391b49c59f721b513411cd75714c418049c8dc9750b20fcddad1ca5a2ca616c3aca4874cce5b3a + version: 3.0.7 + resolution: "js-cookie@npm:3.0.7" + checksum: 10c0/c921c43014e98bb94a1765663a1a10d693048d61444e374c1ecf459eba92320381f9c406e724df9aa44e819c4b606e6a7240f2abe2d5c54ad1e73a3002b191c2 languageName: node linkType: hard From df117ebad53a38ad2eeaf8ef8cff196907be9b3c Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 17:41:37 -0400 Subject: [PATCH 065/286] fix: Updating collection description via MCP does not take (#12410) --- server/models/Collection.ts | 15 ++++++++++++++- server/routes/api/collections/collections.ts | 14 -------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/server/models/Collection.ts b/server/models/Collection.ts index 4af1dc579f..b06715929b 100644 --- a/server/models/Collection.ts +++ b/server/models/Collection.ts @@ -55,6 +55,7 @@ import { UrlHelper } from "@shared/utils/UrlHelper"; import { sortNavigationNodes } from "@shared/utils/collections"; import slugify from "@shared/utils/slugify"; import { CollectionValidation } from "@shared/validations"; +import { parser } from "@server/editor"; import { ValidationError } from "@server/errors"; import type { APIContext } from "@server/types"; import { CacheHelper } from "@server/utils/CacheHelper"; @@ -346,9 +347,21 @@ class Collection extends ParanoidModel< @BeforeSave static async onBeforeSave(model: Collection) { - if (!model.content) { + const descriptionChanged = model.changed("description"); + const contentChanged = model.changed("content"); + + if (descriptionChanged && !contentChanged) { + model.content = model.description + ? (parser.parse(model.description)?.toJSON() ?? null) + : null; + } else if (contentChanged && !descriptionChanged) { + model.description = model.content + ? await DocumentHelper.toMarkdown(model, { includeTitle: false }) + : null; + } else if (!model.content) { model.content = await DocumentHelper.toJSON(model); } + if (model.changed("documentStructure")) { await CacheHelper.clearData( RedisPrefixHelper.getCollectionDocumentsKey(model.id) diff --git a/server/routes/api/collections/collections.ts b/server/routes/api/collections/collections.ts index 04a283afe4..c04070bea7 100644 --- a/server/routes/api/collections/collections.ts +++ b/server/routes/api/collections/collections.ts @@ -10,7 +10,6 @@ import { } from "@shared/types"; import collectionExporter from "@server/commands/collectionExporter"; import teamUpdater from "@server/commands/teamUpdater"; -import { parser } from "@server/editor"; import auth from "@server/middlewares/authentication"; import { rateLimiter } from "@server/middlewares/rateLimiter"; import { transaction } from "@server/middlewares/transaction"; @@ -26,7 +25,6 @@ import { FileOperation, Document, } from "@server/models"; -import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { authorize } from "@server/policies"; import { presentCollection, @@ -87,12 +85,6 @@ router.post( templateManagement, }); - if (data) { - collection.description = await DocumentHelper.toMarkdown(collection, { - includeTitle: false, - }); - } - await collection.saveWithCtx(ctx); // we must reload the collection to get memberships for policy presenter @@ -628,16 +620,10 @@ router.post( if (description !== undefined) { collection.description = description; - collection.content = description - ? parser.parse(description)?.toJSON() - : null; } if (data !== undefined) { collection.content = data; - collection.description = await DocumentHelper.toMarkdown(collection, { - includeTitle: false, - }); } if (icon !== undefined) { From fcf26e4b9be10e3268b245a2fb827845dc763c4c Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 17:41:54 -0400 Subject: [PATCH 066/286] fix: Mention menu does not appear when pasting link with trailing newline (#12402) --- app/editor/extensions/PasteHandler.tsx | 35 ++++++++++++++------------ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/app/editor/extensions/PasteHandler.tsx b/app/editor/extensions/PasteHandler.tsx index 2eb5019a02..1adf6da4df 100644 --- a/app/editor/extensions/PasteHandler.tsx +++ b/app/editor/extensions/PasteHandler.tsx @@ -108,22 +108,25 @@ export default class PasteHandler extends Extension { return false; } - // Check if the clipboard contents can be parsed as a single url - if (isUrl(text)) { + // Check if the clipboard contents can be parsed as a single url. + // Trim first so surrounding whitespace from the clipboard (e.g. a + // trailing newline appended by the source) doesn't prevent URL + // detection and skip the paste menu. + const trimmedText = text.trim(); + if (isUrl(trimmedText)) { // If there is selected text then we want to wrap it in a link to the url if (!state.selection.empty) { - toggleMark(this.editor.schema.marks.link, { href: text })( - state, - dispatch - ); + toggleMark(this.editor.schema.marks.link, { + href: trimmedText, + })(state, dispatch); return true; } // Is the link a link to a document? If so, we can grab the title and insert it. - const containsHash = text.includes("#"); + const containsHash = trimmedText.includes("#"); - if (isDocumentUrl(text)) { - const slug = parseDocumentSlug(text); + if (isDocumentUrl(trimmedText)) { + const slug = parseDocumentSlug(trimmedText); if (slug) { void stores.documents @@ -147,7 +150,7 @@ export default class PasteHandler extends Extension { ) ); } else { - const { hash } = new URL(text); + const { hash } = new URL(trimmedText); const hasEmoji = determineIconType(document.icon) === IconType.Emoji; @@ -164,11 +167,11 @@ export default class PasteHandler extends Extension { if (view.isDestroyed) { return; } - this.insertLink(text); + this.insertLink(trimmedText); }); } - } else if (isCollectionUrl(text)) { - const slug = parseCollectionSlug(text); + } else if (isCollectionUrl(trimmedText)) { + const slug = parseCollectionSlug(trimmedText); if (slug) { stores.collections @@ -192,7 +195,7 @@ export default class PasteHandler extends Extension { ) ); } else { - const { hash } = new URL(text); + const { hash } = new URL(trimmedText); const hasEmoji = determineIconType(collection.icon) === IconType.Emoji; @@ -209,11 +212,11 @@ export default class PasteHandler extends Extension { if (view.isDestroyed) { return; } - this.insertLink(text); + this.insertLink(trimmedText); }); } } else { - this.insertLink(text); + this.insertLink(trimmedText); } return true; From f06defaa1412f9383b2e65d1b907b5208a447aa4 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 17:42:04 -0400 Subject: [PATCH 067/286] feat: Add breadcrumb to docs in command menu (#12403) --- app/actions/definitions/documents.tsx | 13 ++-- .../CommandBar/useRecentDocumentActions.tsx | 6 +- app/components/DocumentBreadcrumb.tsx | 75 ++++++++++++++++--- 3 files changed, 77 insertions(+), 17 deletions(-) diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index 091903661f..57c7990151 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -81,6 +81,7 @@ import { trashPath, documentEditPath, } from "~/utils/routeHelpers"; +import { documentBreadcrumbText } from "~/components/DocumentBreadcrumb"; import CollectionIcon from "~/components/Icons/CollectionIcon"; import type { Action, @@ -108,19 +109,21 @@ export const openDocument = createActionWithChildren({ shortcut: ["o", "d"], keywords: "go to", icon: <DocumentIcon />, - children: ({ stores }) => { + children: ({ stores, t }) => { const nodes = stores.collections.navigationNodes.reduce( (acc, node) => [...acc, ...node.children], [] as NavigationNode[] ); const documents = stores.documents.orderedData; - return uniqBy([...documents, ...nodes], "id").map((item) => - createInternalLinkAction({ + return uniqBy([...documents, ...nodes], "id").map((item) => { + const document = stores.documents.get(item.id); + return createInternalLinkAction({ // Note: using url which includes the slug rather than id here to bust // cache if the document is renamed id: item.url, name: item.title, + description: document ? documentBreadcrumbText(document, t) : undefined, icon: item.icon ? ( <Icon value={item.icon} @@ -132,8 +135,8 @@ export const openDocument = createActionWithChildren({ ), section: DocumentSection, to: item.url, - }) - ); + }); + }); }, }); diff --git a/app/components/CommandBar/useRecentDocumentActions.tsx b/app/components/CommandBar/useRecentDocumentActions.tsx index a104350439..bb109fc0fd 100644 --- a/app/components/CommandBar/useRecentDocumentActions.tsx +++ b/app/components/CommandBar/useRecentDocumentActions.tsx @@ -1,13 +1,16 @@ import { DocumentIcon } from "outline-icons"; import { useMemo } from "react"; +import { useTranslation } from "react-i18next"; import Icon from "@shared/components/Icon"; import { createInternalLinkAction } from "~/actions"; import { RecentSection } from "~/actions/sections"; +import { documentBreadcrumbText } from "~/components/DocumentBreadcrumb"; import useStores from "~/hooks/useStores"; import { documentPath } from "~/utils/routeHelpers"; const useRecentDocumentActions = (count = 6) => { const { documents, ui } = useStores(); + const { t } = useTranslation(); return useMemo( () => @@ -19,6 +22,7 @@ const useRecentDocumentActions = (count = 6) => { name: item.titleWithDefault, analyticsName: "Recently viewed document", section: RecentSection, + description: documentBreadcrumbText(item, t), icon: item.icon ? ( <Icon value={item.icon} @@ -31,7 +35,7 @@ const useRecentDocumentActions = (count = 6) => { to: documentPath(item), }) ), - [count, ui.activeDocumentId, documents.recentlyViewed] + [count, ui.activeDocumentId, documents.recentlyViewed, t] ); }; diff --git a/app/components/DocumentBreadcrumb.tsx b/app/components/DocumentBreadcrumb.tsx index c3da07a972..aa53d86efc 100644 --- a/app/components/DocumentBreadcrumb.tsx +++ b/app/components/DocumentBreadcrumb.tsx @@ -1,10 +1,10 @@ +import type { TFunction } from "i18next"; import { observer } from "mobx-react"; import { ArchiveIcon, GoToIcon, TrashIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; import Icon from "@shared/components/Icon"; -import type { NavigationNode } from "@shared/types"; import type Collection from "~/models/Collection"; import type Document from "~/models/Document"; import Breadcrumb from "~/components/Breadcrumb"; @@ -20,6 +20,56 @@ import { archivePath, trashPath } from "~/utils/routeHelpers"; import { createInternalLinkAction } from "~/actions"; import { ActiveDocumentSection } from "~/actions/sections"; +/** + * Returns the breadcrumb parts leading up to a document, separating the + * (possibly deleted) collection label from ancestor document titles. The + * document itself is not included. + * + * @param document - the document to compute the breadcrumb for. + * @param t - translation function for fallback titles. + * @returns the collection label and ancestor titles. + */ +export function documentBreadcrumbParts( + document: Document, + t: TFunction +): { collection: string | undefined; ancestors: string[] } { + let collectionLabel: string | undefined; + if (document.isCollectionDeleted) { + collectionLabel = t("Deleted Collection"); + } else if (document.collection?.name) { + collectionLabel = document.collection.name; + } + + return { + collection: collectionLabel, + ancestors: document.pathTo + .slice(0, -1) + .map((node) => node.title || t("Untitled")), + }; +} + +/** + * Returns the breadcrumb path leading up to a document as a plain text + * string. Includes the collection name (or "Deleted Collection" fallback) + * and any ancestor document titles, slash-separated. + * + * @param document - the document to compute the breadcrumb for. + * @param t - translation function for fallback titles. + * @returns the breadcrumb as a slash-separated string, or undefined if the + * document has no resolvable parent context. + */ +export function documentBreadcrumbText( + document: Document, + t: TFunction +): string | undefined { + const parts = documentBreadcrumbParts(document, t); + const segments = [ + ...(parts.collection ? [parts.collection] : []), + ...parts.ancestors, + ]; + return segments.length ? segments.join(" / ") : undefined; +} + type Props = { children?: React.ReactNode; document: Document; @@ -147,22 +197,25 @@ function DocumentBreadcrumb( return <></>; } - const slicedPath = reverse - ? path.slice(depth && -depth) - : path.slice(0, depth); + const { collection: collectionLabel, ancestors: ancestorLabels } = + documentBreadcrumbParts(document, t); + + const slicedAncestors = reverse + ? ancestorLabels.slice(depth && -depth) + : ancestorLabels.slice(0, depth); const showCollection = - collection && - (!reverse || depth === undefined || slicedPath.length < depth); + !!collectionLabel && + (!reverse || depth === undefined || slicedAncestors.length < depth); return ( <> - {showCollection && collection.name} - {slicedPath.map((node: NavigationNode, index: number) => ( - <React.Fragment key={node.id}> + {showCollection && collectionLabel} + {slicedAncestors.map((label, index) => ( + <React.Fragment key={index}> {showCollection && <SmallSlash />} - {node.title || t("Untitled")} - {!showCollection && index !== slicedPath.length - 1 && ( + {label} + {!showCollection && index !== slicedAncestors.length - 1 && ( <SmallSlash /> )} </React.Fragment> From b6398415555eaed77e1f03b0cb9a803b13d2fa1f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 18:34:40 -0400 Subject: [PATCH 068/286] chore(deps): bump @tootallnate/once from 2.0.0 to 2.0.1 (#12415) Bumps [@tootallnate/once](https://github.com/TooTallNate/once) from 2.0.0 to 2.0.1. - [Release notes](https://github.com/TooTallNate/once/releases) - [Changelog](https://github.com/TooTallNate/once/blob/v2.0.1/CHANGELOG.md) - [Commits](https://github.com/TooTallNate/once/compare/2.0.0...v2.0.1) --- updated-dependencies: - dependency-name: "@tootallnate/once" dependency-version: 2.0.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0e9979203c..4ba507079f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6911,9 +6911,9 @@ __metadata: linkType: hard "@tootallnate/once@npm:2": - version: 2.0.0 - resolution: "@tootallnate/once@npm:2.0.0" - checksum: 10c0/073bfa548026b1ebaf1659eb8961e526be22fa77139b10d60e712f46d2f0f05f4e6c8bec62a087d41088ee9e29faa7f54838568e475ab2f776171003c3920858 + version: 2.0.1 + resolution: "@tootallnate/once@npm:2.0.1" + checksum: 10c0/23b01a341485be711c602077936d70f8e695405bb88ab4433dc6d1e6cb4556401518789574d399eded790b70b27738136c9a8f02df7ae4219f4ba28bb22d586b languageName: node linkType: hard From efc988fb9fcc217e399c17824ff9384887bf1f1d Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 20:15:54 -0400 Subject: [PATCH 069/286] Prevent unintentional trashing of non-empty untitled drafts on editor unmount (#12418) * Initial plan * Fix draft auto-delete check for non-empty untitled docs --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .../Document/hooks/useDocumentSave.test.ts | 31 +++++++++++ app/scenes/Document/hooks/useDocumentSave.ts | 51 +++++++++++++++---- 2 files changed, 73 insertions(+), 9 deletions(-) create mode 100644 app/scenes/Document/hooks/useDocumentSave.test.ts diff --git a/app/scenes/Document/hooks/useDocumentSave.test.ts b/app/scenes/Document/hooks/useDocumentSave.test.ts new file mode 100644 index 0000000000..e03d2a7bac --- /dev/null +++ b/app/scenes/Document/hooks/useDocumentSave.test.ts @@ -0,0 +1,31 @@ +import { shouldAutoDeleteDraftOnUnmount } from "./useDocumentSave"; + +describe("shouldAutoDeleteDraftOnUnmount", () => { + const baseOptions = { + title: "", + createdById: "user-1", + currentUserId: "user-1", + isDraft: true, + isActive: true, + hasEmptyTitle: true, + isPersistedOnce: true, + }; + + it("does not auto delete drafts with non-empty editor content", () => { + expect( + shouldAutoDeleteDraftOnUnmount({ + ...baseOptions, + isEditorEmpty: false, + }) + ).toBe(false); + }); + + it("auto deletes drafts that are still empty and untitled", () => { + expect( + shouldAutoDeleteDraftOnUnmount({ + ...baseOptions, + isEditorEmpty: true, + }) + ).toBe(true); + }); +}); diff --git a/app/scenes/Document/hooks/useDocumentSave.ts b/app/scenes/Document/hooks/useDocumentSave.ts index ccd7db3097..54b3f3e8a5 100644 --- a/app/scenes/Document/hooks/useDocumentSave.ts +++ b/app/scenes/Document/hooks/useDocumentSave.ts @@ -50,6 +50,36 @@ interface UseDocumentSaveResult { onFileUploadStop: () => void; } +export function shouldAutoDeleteDraftOnUnmount({ + isEditorEmpty, + title, + createdById, + currentUserId, + isDraft, + isActive, + hasEmptyTitle, + isPersistedOnce, +}: { + isEditorEmpty: boolean; + title: string; + createdById?: string; + currentUserId?: string; + isDraft: boolean; + isActive: boolean; + hasEmptyTitle: boolean; + isPersistedOnce: boolean; +}) { + return ( + isEditorEmpty && + title.trim() === "" && + createdById === currentUserId && + isDraft && + isActive && + hasEmptyTitle && + isPersistedOnce + ); +} + /** * Hook that encapsulates save, autosave, dirty-tracking, and template * insertion logic for the document editor scene. @@ -77,8 +107,6 @@ export function useDocumentSave({ // Companion refs for stale closure avoidance const isEditorDirtyRef = useRef(isEditorDirty); isEditorDirtyRef.current = isEditorDirty; - const isEmptyRef = useRef(isEmpty); - isEmptyRef.current = isEmpty; const titleRef = useRef(title); titleRef.current = title; @@ -89,7 +117,6 @@ export function useDocumentSave({ isEditorDirtyRef.current = dirty; const empty = (!doc || ProsemirrorHelper.isEmpty(doc)) && !titleRef.current; setIsEmpty(empty); - isEmptyRef.current = empty; }, [document, editorRef]); const updateIsDirtyRef = useRef(updateIsDirty); @@ -313,14 +340,20 @@ export function useDocumentSave({ useEffect( () => () => { autosave.cancel(); + const currentDoc = editorRef.current?.view.state.doc; + const isEditorEmpty = !currentDoc || ProsemirrorHelper.isEmpty(currentDoc); if ( - isEmptyRef.current && - document.createdBy?.id === auth.user?.id && - document.isDraft && - document.isActive && - document.hasEmptyTitle && - document.isPersistedOnce + shouldAutoDeleteDraftOnUnmount({ + isEditorEmpty, + title: titleRef.current, + createdById: document.createdBy?.id, + currentUserId: auth.user?.id, + isDraft: document.isDraft, + isActive: document.isActive, + hasEmptyTitle: document.hasEmptyTitle, + isPersistedOnce: document.isPersistedOnce, + }) ) { void document.delete(); } else if (document.isDirty()) { From cf488508b752b81c9f014f39e6123260e711dd75 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 21:26:27 -0400 Subject: [PATCH 070/286] fix: Ignore "Premature close" stream errors in Sentry (#12424) Client disconnects mid-response surface as "Premature close" errors from Node's stream end-of-stream helper. These are expected and add noise to Sentry, similar to the EPIPE/ECONNRESET errors already filtered. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/logging/sentry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/logging/sentry.ts b/server/logging/sentry.ts index 943152d5e1..f54f4b5f23 100644 --- a/server/logging/sentry.ts +++ b/server/logging/sentry.ts @@ -25,6 +25,9 @@ if (env.SENTRY_DSN) { "AuthRedirectError", "UserSuspendedError", "TooManyRequestsError", + + // Client disconnects + "Premature close", ], beforeSend(event) { try { From 63a6ed7f8dd989a527d52c0b1d7d2f80acd0808f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 21:26:30 -0400 Subject: [PATCH 071/286] fix: Apply `statement_timeout` on request-handling processes (#12422) * fix: Apply Postgres statement_timeout on request-handling processes Sets `statement_timeout` to REQUEST_TIMEOUT on the Sequelize connection pool when the process handles HTTP requests (web/api/collaboration/ websockets/admin) and does not also run worker/cron. Prevents a single runaway query from saturating the shared Postgres instance and cascading into timeouts across all endpoints. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Drop dead `api` service check Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Only apply statement_timeout in forked cluster workers Skips the timeout in the master process so startup migrations driven from `checkPendingMigrations` are not cancelled mid-execution. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/storage/database.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server/storage/database.ts b/server/storage/database.ts index c8e335a98d..4925f12425 100644 --- a/server/storage/database.ts +++ b/server/storage/database.ts @@ -1,3 +1,4 @@ +import cluster from "node:cluster"; import path from "node:path"; import type { InferAttributes, InferCreationAttributes } from "sequelize"; import sequelizeStrictAttributes from "sequelize-strict-attributes"; @@ -45,6 +46,22 @@ const poolMin = env.DATABASE_CONNECTION_POOL_MIN ?? 0; const databaseConfig = env.DATABASE_CONNECTION_POOL_URL || getDatabaseConfig(); const schema = env.DATABASE_SCHEMA; +// Request-handling processes get a Postgres `statement_timeout` matching the +// HTTP request timeout, so a single slow query cannot hold a connection past +// the point at which its response could be delivered. Worker/cron processes +// are exempted because background jobs may legitimately run long queries. +// Only applied in forked cluster workers so that startup work driven from +// the master process (notably migrations) is not subject to the timeout. +const isApiProcess = + (env.SERVICES.includes("web") || + env.SERVICES.includes("collaboration") || + env.SERVICES.includes("websockets") || + env.SERVICES.includes("admin")) && + !env.SERVICES.includes("worker") && + !env.SERVICES.includes("cron"); +const statementTimeout = + isApiProcess && cluster.isWorker ? env.REQUEST_TIMEOUT : undefined; + export function createDatabaseInstance( databaseConfig: string | object, input: { @@ -68,6 +85,7 @@ export function createDatabaseInstance( logQueryParameters: env.isDevelopment, dialectOptions: { application_name: getConnectionName(), + statement_timeout: statementTimeout, ssl: env.isProduction && !isSSLDisabled ? { From def9da6a12b82e19dc62524c674c8882ba4a68db Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 21:27:02 -0400 Subject: [PATCH 072/286] fix: Empty Notion table crashes importer (#12421) * fix: Empty Notion table crashes importer * Add tests --- .../server/utils/NotionConverter.test.ts | 21 +++++++++++++++++++ .../notion/server/utils/NotionConverter.ts | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/plugins/notion/server/utils/NotionConverter.test.ts b/plugins/notion/server/utils/NotionConverter.test.ts index 3fd168d40e..1229482659 100644 --- a/plugins/notion/server/utils/NotionConverter.test.ts +++ b/plugins/notion/server/utils/NotionConverter.test.ts @@ -36,4 +36,25 @@ describe("NotionConverter", () => { expect(response).toMatchSnapshot(); expect(ProsemirrorHelper.toProsemirror(response)).toBeInstanceOf(Node); }); + + it("converts a page with an empty table", () => { + const response = NotionConverter.page({ + children: [ + { + object: "block", + id: "1b32c2bb-bca8-8022-b490-e42a8f6b00f5", + type: "table", + has_children: false, + table: { + table_width: 0, + has_column_header: false, + has_row_header: false, + }, + }, + ], + } as unknown as NotionPage); + + expect(response.content).toEqual([{ type: "table", content: [] }]); + expect(ProsemirrorHelper.toProsemirror(response)).toBeInstanceOf(Node); + }); }); diff --git a/plugins/notion/server/utils/NotionConverter.ts b/plugins/notion/server/utils/NotionConverter.ts index bc3d23e17d..2675a22faf 100644 --- a/plugins/notion/server/utils/NotionConverter.ts +++ b/plugins/notion/server/utils/NotionConverter.ts @@ -586,7 +586,7 @@ export class NotionConverter { private static table( item: TableBlockObjectResponse & { - children: Array<{ + children?: Array<{ table_row: { cells: Array<Array<RichTextItemResponse>>; }; @@ -597,7 +597,7 @@ export class NotionConverter { ) { return { type: "table", - content: item.children.map((tr, y) => ({ + content: (item.children ?? []).map((tr, y) => ({ type: "tr", content: tr.table_row.cells.map((td, x) => ({ type: From 5309e8bb0110eebe98a6d745f26d5aa2ddc1e8d9 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 22:09:20 -0400 Subject: [PATCH 073/286] fix: Don't report upstream OAuth provider errors to Sentry (#12425) * fix: Don't report upstream OAuth provider errors to Sentry TokenError and AuthorizationError from passport-oauth2 represent input problems from the upstream provider (expired or already-redeemed codes, access_denied, etc) rather than server bugs. Log them at warn level and redirect with the standard auth-error notice instead of sending to the error reporter. * Warn-only for OAuth provider errors, keep redirect flow shared Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/middlewares/passport.ts | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/server/middlewares/passport.ts b/server/middlewares/passport.ts index 7bcb517f84..470b9955bb 100644 --- a/server/middlewares/passport.ts +++ b/server/middlewares/passport.ts @@ -1,6 +1,10 @@ import passport from "@outlinewiki/koa-passport"; import type { Context } from "koa"; -import { InternalOAuthError } from "passport-oauth2"; +import { + AuthorizationError, + InternalOAuthError, + TokenError, +} from "passport-oauth2"; import { Client } from "@shared/types"; import { parseDomain } from "@shared/utils/domains"; import env from "@server/env"; @@ -56,10 +60,20 @@ export default function createMiddleware(providerName: string) { }, async (err, user, result: AuthenticationResult) => { if (err) { - Logger.error( - "Error during authentication", - err instanceof InternalOAuthError ? err.oauthError : err - ); + // TokenError / AuthorizationError surface input problems reported by + // the upstream OAuth provider (expired or already-redeemed codes, + // access_denied, etc). They are not server bugs, so log at warn + // level and skip the error reporter. + if (err instanceof TokenError || err instanceof AuthorizationError) { + Logger.warn(`OAuth error during authentication: ${err.message}`, { + code: err.code, + }); + } else { + Logger.error( + "Error during authentication", + err instanceof InternalOAuthError ? err.oauthError : err + ); + } if (err.id) { const notice = err.id.replace(/_/g, "-"); From dd2e8f258d03d3385f03015ce0f6dea555142b0d Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 22:10:25 -0400 Subject: [PATCH 074/286] Handle double-click submission in DocumentExplorer actions (#12417) * Initial plan * Support double-click submit in document explorer * Remove test * Fix double-click submit in document explorer Single click now sets the selection instead of toggling it, so the two clicks preceding a dblclick no longer flicker the selection on/off. Submit handlers accept the node directly to avoid the stale-state race across the click sequence, and button onClick handlers are wrapped so the synthetic MouseEvent isn't passed in as the path argument. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * PR feedback --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- .../DocumentExplorer/DocumentCopy.tsx | 12 +++++------- .../DocumentExplorer/DocumentExplorer.tsx | 17 +++++++++++++---- .../DocumentExplorer/DocumentExplorerNode.tsx | 6 +++++- .../DocumentExplorerSearchResult.tsx | 3 +++ .../DocumentExplorer/DocumentMove.tsx | 10 +++++----- .../DocumentExplorer/TemplateMove.tsx | 9 ++++----- app/scenes/DocumentPublish.tsx | 10 +++++----- 7 files changed, 40 insertions(+), 27 deletions(-) diff --git a/app/components/DocumentExplorer/DocumentCopy.tsx b/app/components/DocumentExplorer/DocumentCopy.tsx index 0210a6a078..fe36f738e3 100644 --- a/app/components/DocumentExplorer/DocumentCopy.tsx +++ b/app/components/DocumentExplorer/DocumentCopy.tsx @@ -40,8 +40,8 @@ function DocumentCopy({ document, onSubmit }: Props) { return nodes; }, [policies, collectionTrees]); - const copy = async () => { - if (!selectedPath) { + const copy = async (path = selectedPath) => { + if (!path) { toast.message(t("Select a location to copy")); return; } @@ -52,10 +52,8 @@ function DocumentCopy({ document, onSubmit }: Props) { publish, recursive, title: document.title, - collectionId: selectedPath.collectionId, - ...(selectedPath.type === "document" - ? { parentDocumentId: selectedPath.id } - : {}), + collectionId: path.collectionId, + ...(path.type === "document" ? { parentDocumentId: path.id } : {}), }); toast.success(t("Document copied")); @@ -111,7 +109,7 @@ function DocumentCopy({ document, onSubmit }: Props) { t("Select a location to copy") )} </Text> - <Button disabled={!selectedPath || copying} onClick={copy}> + <Button disabled={!selectedPath || copying} onClick={() => copy()}> {copying ? `${t("Copying")}…` : t("Copy")} </Button> </Footer> diff --git a/app/components/DocumentExplorer/DocumentExplorer.tsx b/app/components/DocumentExplorer/DocumentExplorer.tsx index 7bb06360ed..daa6dccde1 100644 --- a/app/components/DocumentExplorer/DocumentExplorer.tsx +++ b/app/components/DocumentExplorer/DocumentExplorer.tsx @@ -31,7 +31,7 @@ import useStores from "~/hooks/useStores"; type Props = { /** Action taken upon submission of selected item, could be publish, move etc. */ - onSubmit: () => void; + onSubmit: (item: NavigationNode | null) => void; /** A side-effect of item selection */ onSelect: (item: NavigationNode | null) => void; /** Items to be shown in explorer */ @@ -255,6 +255,13 @@ function DocumentExplorer({ } }; + const submitNode = (node: number) => { + const selectedNode = nodes[node]; + + selectNode(selectedNode); + onSubmit(selectedNode); + }; + const ListItem = observer( ({ index, @@ -311,7 +318,8 @@ function DocumentExplorer({ width: `calc(${style.width} - ${HORIZONTAL_PADDING * 2}px)`, }} onPointerMove={() => setActiveNode(index)} - onClick={() => toggleSelect(index)} + onClick={() => selectNode(nodes[index])} + onDoubleClick={() => submitNode(index)} icon={renderedIcon} title={title} path={path} @@ -325,7 +333,8 @@ function DocumentExplorer({ width: `calc(${style.width} - ${HORIZONTAL_PADDING * 2}px)`, }} onPointerMove={() => setActiveNode(index)} - onClick={() => toggleSelect(index)} + onClick={() => selectNode(nodes[index])} + onDoubleClick={() => submitNode(index)} onDisclosureClick={(ev) => { ev.stopPropagation(); toggleCollapse(index); @@ -387,7 +396,7 @@ function DocumentExplorer({ } case "Enter": { if (isModKey(ev)) { - onSubmit(); + onSubmit(selectedNode); } else { toggleSelect(activeNode); } diff --git a/app/components/DocumentExplorer/DocumentExplorerNode.tsx b/app/components/DocumentExplorer/DocumentExplorerNode.tsx index b4556d0c97..a47984d48c 100644 --- a/app/components/DocumentExplorer/DocumentExplorerNode.tsx +++ b/app/components/DocumentExplorer/DocumentExplorerNode.tsx @@ -29,8 +29,10 @@ type Props = { onDisclosureClick: (ev: React.MouseEvent) => void; /** Fired on pointer movement over the node; used to update the active highlight. */ onPointerMove: (ev: React.MouseEvent) => void; - /** Fired when the node is clicked to toggle its selection. */ + /** Fired when the node is clicked to select it. */ onClick: (ev: React.MouseEvent) => void; + /** Fired when the node is double-clicked to submit the current selection. */ + onDoubleClick: (ev: React.MouseEvent) => void; }; function DocumentExplorerNode( @@ -46,6 +48,7 @@ function DocumentExplorerNode( onDisclosureClick, onPointerMove, onClick, + onDoubleClick, }: Props, ref: React.RefObject<HTMLSpanElement> ) { @@ -59,6 +62,7 @@ function DocumentExplorerNode( selected={selected} active={active} onClick={onClick} + onDoubleClick={onDoubleClick} style={style} onPointerMove={onPointerMove} role="option" diff --git a/app/components/DocumentExplorer/DocumentExplorerSearchResult.tsx b/app/components/DocumentExplorer/DocumentExplorerSearchResult.tsx index 0b41ec9241..38d5449080 100644 --- a/app/components/DocumentExplorer/DocumentExplorerSearchResult.tsx +++ b/app/components/DocumentExplorer/DocumentExplorerSearchResult.tsx @@ -17,6 +17,7 @@ type Props = { onPointerMove: (ev: React.MouseEvent) => void; onClick: (ev: React.MouseEvent) => void; + onDoubleClick: (ev: React.MouseEvent) => void; }; function DocumentExplorerSearchResult({ @@ -28,6 +29,7 @@ function DocumentExplorerSearchResult({ path, onPointerMove, onClick, + onDoubleClick, }: Props) { const { t } = useTranslation(); @@ -36,6 +38,7 @@ function DocumentExplorerSearchResult({ selected={selected} active={active} onClick={onClick} + onDoubleClick={onDoubleClick} style={style} onPointerMove={onPointerMove} role="option" diff --git a/app/components/DocumentExplorer/DocumentMove.tsx b/app/components/DocumentExplorer/DocumentMove.tsx index 5a05f74474..80d9640a47 100644 --- a/app/components/DocumentExplorer/DocumentMove.tsx +++ b/app/components/DocumentExplorer/DocumentMove.tsx @@ -56,17 +56,17 @@ function DocumentMove({ document }: Props) { return nodes; }, [policies, collectionTrees, document.id]); - const move = async () => { - if (!selectedPath) { + const move = async (path = selectedPath) => { + if (!path) { toast.message(t("Select a location to move")); return; } try { setMoving(true); - const { type, id: parentDocumentId } = selectedPath; + const { type, id: parentDocumentId } = path; - const collectionId = selectedPath.collectionId as string; + const collectionId = path.collectionId as string; if (type === "document") { await document.move({ collectionId, parentDocumentId }); @@ -103,7 +103,7 @@ function DocumentMove({ document }: Props) { t("Select a location to move") )} </Text> - <Button disabled={!selectedPath || moving} onClick={move}> + <Button disabled={!selectedPath || moving} onClick={() => move()}> {moving ? `${t("Moving")}…` : t("Move")} </Button> </Footer> diff --git a/app/components/DocumentExplorer/TemplateMove.tsx b/app/components/DocumentExplorer/TemplateMove.tsx index b472f38107..d16ca6941b 100644 --- a/app/components/DocumentExplorer/TemplateMove.tsx +++ b/app/components/DocumentExplorer/TemplateMove.tsx @@ -33,15 +33,14 @@ function TemplateMove({ template }: Props) { [policies, collectionTrees] ); - const move = async () => { - if (!selectedPath) { + const move = async (path = selectedPath) => { + if (!path) { toast.message(t("Select a location to move")); return; } try { - const collectionId = (selectedPath.collectionId ?? - selectedPath.id) as string; + const collectionId = (path.collectionId ?? path.id) as string; await template.save({ collectionId }); toast.success(t("Template moved")); @@ -76,7 +75,7 @@ function TemplateMove({ template }: Props) { t("Select a location to move") )} </Text> - <Button disabled={!selectedPath} onClick={move}> + <Button disabled={!selectedPath} onClick={() => move()}> {t("Move")} </Button> </Footer> diff --git a/app/scenes/DocumentPublish.tsx b/app/scenes/DocumentPublish.tsx index 16005c94a4..a80fd18212 100644 --- a/app/scenes/DocumentPublish.tsx +++ b/app/scenes/DocumentPublish.tsx @@ -33,16 +33,16 @@ function DocumentPublish({ document }: Props) { [policies, collectionTrees] ); - const publish = async () => { - if (!selectedPath) { + const publish = async (path = selectedPath) => { + if (!path) { toast.message(t("Select a location to publish")); return; } try { - const { type, id: parentDocumentId } = selectedPath; + const { type, id: parentDocumentId } = path; - const collectionId = selectedPath.collectionId as string; + const collectionId = path.collectionId as string; // Also move it under if selected path corresponds to another doc if (type === "document") { @@ -83,7 +83,7 @@ function DocumentPublish({ document }: Props) { t("Select a location to publish") )} </StyledText> - <Button disabled={!selectedPath} onClick={publish}> + <Button disabled={!selectedPath} onClick={() => publish()}> {t("Publish")} </Button> </Footer> From bf62bd04b0c302ac2989e21a440b16af882a74ca Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 23:25:51 -0400 Subject: [PATCH 075/286] fix: pg_bouncer statement timeout error (#12428) --- server/storage/database.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/server/storage/database.ts b/server/storage/database.ts index 4925f12425..4853dd048c 100644 --- a/server/storage/database.ts +++ b/server/storage/database.ts @@ -52,6 +52,9 @@ const schema = env.DATABASE_SCHEMA; // are exempted because background jobs may legitimately run long queries. // Only applied in forked cluster workers so that startup work driven from // the master process (notably migrations) is not subject to the timeout. +// Applied via `SET` on connect rather than as a startup parameter so pgbouncer +// (which rejects unknown startup parameters in transaction pooling mode) does +// not refuse the connection. const isApiProcess = (env.SERVICES.includes("web") || env.SERVICES.includes("collaboration") || @@ -85,7 +88,6 @@ export function createDatabaseInstance( logQueryParameters: env.isDevelopment, dialectOptions: { application_name: getConnectionName(), - statement_timeout: statementTimeout, ssl: env.isProduction && !isSSLDisabled ? { @@ -94,6 +96,17 @@ export function createDatabaseInstance( } : false, }, + hooks: statementTimeout + ? { + afterConnect: async (connection: unknown) => { + await ( + connection as { + query: (sql: string) => Promise<unknown>; + } + ).query(`SET statement_timeout = ${Number(statementTimeout)}`); + }, + } + : undefined, models: Object.values(input), pool: { // Read-only connections can have larger pools since there's no write contention From d43280f08e37dab9808ed0090c4db05db449e5dc Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 23:26:04 -0400 Subject: [PATCH 076/286] fix: Calling method that does not exist on editor (#12427) --- app/scenes/Document/components/Document.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index 5d0c7823a9..d3d79b9a36 100644 --- a/app/scenes/Document/components/Document.tsx +++ b/app/scenes/Document/components/Document.tsx @@ -155,11 +155,11 @@ function DocumentScene({ if (event.shiftKey) { if (!readOnly) { - editorRef.current?.commands.redo(); + editorRef.current?.commands.redo?.(); } } else { if (!readOnly) { - editorRef.current?.commands.undo(); + editorRef.current?.commands.undo?.(); } } } From 8d44a0fd92d94cc5e0c0cde80212ee282662d4cf Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 21 May 2026 23:27:23 -0400 Subject: [PATCH 077/286] chore: Migrate from `JSZip` to `Yazl` (#12408) * chore: Migrate from JSZip to Yazl * Add koa stream helper, PR feedback --- package.json | 3 +- server/queues/tasks/ExportDocumentTreeTask.ts | 74 ++++++++--------- server/queues/tasks/ExportHTMLZipTask.ts | 6 +- server/queues/tasks/ExportJSONTask.ts | 80 ++++++++++--------- server/queues/tasks/ExportMarkdownZipTask.ts | 6 +- server/routes/api/documents/documents.ts | 55 +++++-------- server/routes/api/middlewares/apiResponse.ts | 5 +- server/routes/api/revisions/revisions.ts | 55 +++++-------- server/typings/yazl.d.ts | 7 ++ server/utils/ZipHelper.test.ts | 16 ++-- server/utils/ZipHelper.ts | 63 +++------------ server/utils/koa.ts | 36 ++++++++- yarn.lock | 30 ++++++- 13 files changed, 213 insertions(+), 223 deletions(-) create mode 100644 server/typings/yazl.d.ts diff --git a/package.json b/package.json index d7358c7ad8..aee33457d0 100644 --- a/package.json +++ b/package.json @@ -152,7 +152,6 @@ "js-yaml": "^4.1.1", "jsdom": "^22.1.0", "jsonwebtoken": "^9.0.3", - "jszip": "^3.10.1", "katex": "^0.16.45", "kbar": "0.1.0-beta.48", "koa": "^3.0.3", @@ -271,6 +270,7 @@ "y-prosemirror": "^1.3.7", "y-protocols": "^1.0.7", "yauzl": "^3.2.1", + "yazl": "^3.3.1", "yjs": "^13.6.30", "zod": "^4.3.6" }, @@ -348,6 +348,7 @@ "@types/utf8": "^3.0.3", "@types/validator": "^13.15.10", "@types/yauzl": "^2.10.3", + "@types/yazl": "^2.4.6", "@vitest/ui": "^4.1.6", "babel-plugin-module-resolver": "^5.0.3", "babel-plugin-styled-components": "^2.1.4", diff --git a/server/queues/tasks/ExportDocumentTreeTask.ts b/server/queues/tasks/ExportDocumentTreeTask.ts index 448d09ab0f..cb01ff0bbd 100644 --- a/server/queues/tasks/ExportDocumentTreeTask.ts +++ b/server/queues/tasks/ExportDocumentTreeTask.ts @@ -1,6 +1,6 @@ import path from "node:path"; -import type JSZip from "jszip"; import { escapeRegExp } from "es-toolkit/compat"; +import type { ZipFile } from "yazl"; import type { NavigationNode } from "@shared/types"; import { FileOperationFormat } from "@shared/types"; import Logger from "@server/logging/Logger"; @@ -17,7 +17,7 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { /** * Exports the document tree to the given zip instance. * - * @param zip The JSZip instance to add files to + * @param zip The yazl ZipFile to add files to * @param documentId The document ID to export * @param pathInZip The path in the zip to add the document to * @param format The format to export in @@ -30,7 +30,7 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { includeAttachments, pathMap, }: { - zip: JSZip; + zip: ZipFile; pathInZip: string; documentId: string; format: FileOperationFormat; @@ -64,38 +64,33 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { // Add any referenced attachments to the zip file and replace the // reference in the document with the path to the attachment in the zip - await Promise.all( - attachments.map(async (attachment) => { - Logger.debug("task", `Adding attachment to archive`, { - documentId, - key: attachment.key, + for (const attachment of attachments) { + Logger.debug("task", `Adding attachment to archive`, { + documentId, + key: attachment.key, + }); + + const dir = path.dirname(pathInZip); + let buffer: Buffer; + try { + buffer = await attachment.buffer; + } catch (err) { + Logger.warn(`Failed to read attachment from storage`, { + attachmentId: attachment.id, + teamId: attachment.teamId, + error: err.message, }); + buffer = Buffer.from(""); + } + zip.addBuffer(buffer, path.join(dir, attachment.key), { + mtime: attachment.updatedAt, + }); - const dir = path.dirname(pathInZip); - zip.file( - path.join(dir, attachment.key), - new Promise<Buffer>((resolve) => { - attachment.buffer.then(resolve).catch((err) => { - Logger.warn(`Failed to read attachment from storage`, { - attachmentId: attachment.id, - teamId: attachment.teamId, - error: err.message, - }); - resolve(Buffer.from("")); - }); - }), - { - date: attachment.updatedAt, - createFolders: true, - } - ); - - text = text.replace( - new RegExp(escapeRegExp(attachment.redirectUrl), "g"), - encodeURI(attachment.key) - ); - }) - ); + text = text.replace( + new RegExp(escapeRegExp(attachment.redirectUrl), "g"), + encodeURI(attachment.key) + ); + } // Replace any internal links with relative paths to the document in the zip const internalLinks = [ @@ -117,10 +112,9 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { }); // Finally, add the document to the zip file - zip.file(pathInZip, text, { - date: document.updatedAt, - createFolders: true, - comment: JSON.stringify({ + zip.addBuffer(Buffer.from(text), pathInZip, { + mtime: document.updatedAt, + fileComment: JSON.stringify({ createdAt: document.createdAt, updatedAt: document.updatedAt, }), @@ -131,7 +125,7 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { * Exports the documents and attachments in the given collections to a zip file * and returns the path to the zip file in tmp. * - * @param zip The JSZip instance to add files to + * @param zip The yazl ZipFile to add files to * @param collections The collections to export * @param format The format to export in * @param includeAttachments Whether to include attachments in the export @@ -139,7 +133,7 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { * @returns The path to the zip file in tmp. */ protected async addCollectionsToArchive( - zip: JSZip, + zip: ZipFile, collections: Collection[], format: FileOperationFormat, includeAttachments = true @@ -178,7 +172,7 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { document: Document; format: FileOperationFormat; documentStructure: NavigationNode[]; - zip: JSZip; + zip: ZipFile; }) { const pathMap = new Map<string, string>(); diff --git a/server/queues/tasks/ExportHTMLZipTask.ts b/server/queues/tasks/ExportHTMLZipTask.ts index 72d6d90b3b..a96ab596f6 100644 --- a/server/queues/tasks/ExportHTMLZipTask.ts +++ b/server/queues/tasks/ExportHTMLZipTask.ts @@ -1,4 +1,4 @@ -import JSZip from "jszip"; +import { ZipFile } from "yazl"; import type { NavigationNode } from "@shared/types"; import { FileOperationFormat } from "@shared/types"; import type { Collection, FileOperation } from "@server/models"; @@ -10,7 +10,7 @@ export default class ExportHTMLZipTask extends ExportDocumentTreeTask { collections: Collection[], fileOperation: FileOperation ) { - const zip = new JSZip(); + const zip = new ZipFile(); return await this.addCollectionsToArchive( zip, @@ -24,7 +24,7 @@ export default class ExportHTMLZipTask extends ExportDocumentTreeTask { document: Document, documentStructure: NavigationNode[] ): Promise<string> { - const zip = new JSZip(); + const zip = new ZipFile(); return await this.addDocumentToArchive({ document, diff --git a/server/queues/tasks/ExportJSONTask.ts b/server/queues/tasks/ExportJSONTask.ts index 401b4aec8c..685c989fd0 100644 --- a/server/queues/tasks/ExportJSONTask.ts +++ b/server/queues/tasks/ExportJSONTask.ts @@ -1,4 +1,4 @@ -import JSZip from "jszip"; +import { ZipFile } from "yazl"; import { omit } from "es-toolkit/compat"; import type { NavigationNode } from "@shared/types"; import env from "@server/env"; @@ -19,7 +19,7 @@ export default class ExportJSONTask extends ExportTask { collections: Collection[], fileOperation: FileOperation ) { - const zip = new JSZip(); + const zip = new ZipFile(); const usedFilenames = new Set<string>(); // serial to avoid overloading, slow and steady wins the race @@ -44,7 +44,10 @@ export default class ExportJSONTask extends ExportTask { return ZipHelper.toTmpFile(zip); } - private async addMetadataToArchive(zip: JSZip, fileOperation: FileOperation) { + private async addMetadataToArchive( + zip: ZipFile, + fileOperation: FileOperation + ) { const user = await fileOperation.$get("user"); const metadata: JSONExportMetadata = { @@ -55,16 +58,18 @@ export default class ExportJSONTask extends ExportTask { createdByEmail: user?.email ?? null, }; - zip.file( - `metadata.json`, - env.isDevelopment - ? JSON.stringify(metadata, null, 2) - : JSON.stringify(metadata) + zip.addBuffer( + Buffer.from( + env.isDevelopment + ? JSON.stringify(metadata, null, 2) + : JSON.stringify(metadata) + ), + `metadata.json` ); } private async addCollectionToArchive( - zip: JSZip, + zip: ZipFile, collection: Collection, includeAttachments: boolean, filename: string @@ -82,32 +87,27 @@ export default class ExportJSONTask extends ExportTask { }; async function addAttachments(attachments: Attachment[]) { - await Promise.all( - attachments.map(async (attachment) => { - zip.file( - attachment.key, - new Promise<Buffer>((resolve) => { - attachment.buffer.then(resolve).catch((err) => { - Logger.warn(`Failed to read attachment from storage`, { - attachmentId: attachment.id, - teamId: attachment.teamId, - error: err.message, - }); - resolve(Buffer.from("")); - }); - }), - { - date: attachment.updatedAt, - createFolders: true, - } - ); + for (const attachment of attachments) { + let buffer: Buffer; + try { + buffer = await attachment.buffer; + } catch (err) { + Logger.warn(`Failed to read attachment from storage`, { + attachmentId: attachment.id, + teamId: attachment.teamId, + error: err.message, + }); + buffer = Buffer.from(""); + } + zip.addBuffer(buffer, attachment.key, { + mtime: attachment.updatedAt, + }); - output.attachments[attachment.id] = { - ...omit(presentAttachment(attachment), "url"), - key: attachment.key, - }; - }) - ); + output.attachments[attachment.id] = { + ...omit(presentAttachment(attachment), "url"), + key: attachment.key, + }; + } } async function addDocumentTree(nodes: NavigationNode[]) { @@ -175,11 +175,13 @@ export default class ExportJSONTask extends ExportTask { await addDocumentTree(collection.documentStructure); } - zip.file( - `${filename}.json`, - env.isDevelopment - ? JSON.stringify(output, null, 2) - : JSON.stringify(output) + zip.addBuffer( + Buffer.from( + env.isDevelopment + ? JSON.stringify(output, null, 2) + : JSON.stringify(output) + ), + `${filename}.json` ); } diff --git a/server/queues/tasks/ExportMarkdownZipTask.ts b/server/queues/tasks/ExportMarkdownZipTask.ts index a3913328ef..6de91515d4 100644 --- a/server/queues/tasks/ExportMarkdownZipTask.ts +++ b/server/queues/tasks/ExportMarkdownZipTask.ts @@ -1,4 +1,4 @@ -import JSZip from "jszip"; +import { ZipFile } from "yazl"; import type { NavigationNode } from "@shared/types"; import { FileOperationFormat } from "@shared/types"; import type { Collection, FileOperation } from "@server/models"; @@ -10,7 +10,7 @@ export default class ExportMarkdownZipTask extends ExportDocumentTreeTask { collections: Collection[], fileOperation: FileOperation ) { - const zip = new JSZip(); + const zip = new ZipFile(); return await this.addCollectionsToArchive( zip, @@ -24,7 +24,7 @@ export default class ExportMarkdownZipTask extends ExportDocumentTreeTask { document: Document, documentStructure: NavigationNode[] ): Promise<string> { - const zip = new JSZip(); + const zip = new ZipFile(); return await this.addDocumentToArchive({ document, diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 8add886761..6928460dec 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -3,7 +3,6 @@ import fractionalIndex from "fractional-index"; import fs from "fs-extra"; import invariant from "invariant"; import contentDisposition from "content-disposition"; -import JSZip from "jszip"; import Router from "koa-router"; import { escapeRegExp, has, remove, uniq } from "es-toolkit/compat"; import mime from "mime-types"; @@ -84,8 +83,8 @@ import EmptyTrashTask from "@server/queues/tasks/EmptyTrashTask"; import FileStorage from "@server/storage/files"; import type { APIContext } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; -import ZipHelper from "@server/utils/ZipHelper"; import { convertBareUrlsToEmbedMarkdown } from "@server/utils/embeds"; +import { streamZipResponse } from "@server/utils/koa"; import { getTeamFromContext } from "@server/utils/passport"; import { assertPresent } from "@server/validation"; import pagination, { paginateQuery } from "../middlewares/pagination"; @@ -890,51 +889,35 @@ router.post( return; } - const zip = new JSZip(); - - await Promise.all( - attachments.map(async (attachment) => { + await streamZipResponse(ctx, `${fileName}.zip`, async (zip) => { + for (const attachment of attachments) { const location = path.join( "attachments", `${attachment.id}.${mime.extension(attachment.contentType)}` ); - zip.file( - location, - new Promise<Buffer>((resolve) => { - attachment.buffer.then(resolve).catch((err) => { - Logger.warn(`Failed to read attachment from storage`, { - attachmentId: attachment.id, - teamId: attachment.teamId, - error: err.message, - }); - resolve(Buffer.from("")); - }); - }), - { - date: attachment.updatedAt, - createFolders: true, - } - ); + let buffer: Buffer; + try { + buffer = await attachment.buffer; + } catch (err) { + Logger.warn(`Failed to read attachment from storage`, { + attachmentId: attachment.id, + teamId: attachment.teamId, + error: err.message, + }); + buffer = Buffer.from(""); + } + zip.addBuffer(buffer, location, { mtime: attachment.updatedAt }); content = content.replace( new RegExp(escapeRegExp(attachment.redirectUrl), "g"), location ); - }) - ); + } - zip.file(`${fileName}.${extension}`, content, { - date: document.updatedAt, + zip.addBuffer(Buffer.from(content), `${fileName}.${extension}`, { + mtime: document.updatedAt, + }); }); - - ctx.set("Content-Type", "application/zip"); - ctx.set( - "Content-Disposition", - contentDisposition(`${fileName}.zip`, { - type: "attachment", - }) - ); - ctx.body = zip.generateNodeStream(ZipHelper.defaultStreamOptions); } ); diff --git a/server/routes/api/middlewares/apiResponse.ts b/server/routes/api/middlewares/apiResponse.ts index 9ab5fe88ed..afcc0a0c07 100644 --- a/server/routes/api/middlewares/apiResponse.ts +++ b/server/routes/api/middlewares/apiResponse.ts @@ -11,10 +11,7 @@ export default function apiResponse() { typeof ctx.body === "object" && !(ctx.body instanceof Readable) && !(ctx.body instanceof stream.Readable) && - !(ctx.body instanceof Buffer) && - // JSZip returns a wrapped stream instance that is not a true readable stream - // and not exported from the module either, so we must identify it like so. - !(ctx.body && "_readableState" in ctx.body) + !(ctx.body instanceof Buffer) ) { ctx.body = { ...ctx.body, diff --git a/server/routes/api/revisions/revisions.ts b/server/routes/api/revisions/revisions.ts index b914ad83e6..08f73afb5b 100644 --- a/server/routes/api/revisions/revisions.ts +++ b/server/routes/api/revisions/revisions.ts @@ -1,7 +1,6 @@ import path from "node:path"; import Router from "koa-router"; import contentDisposition from "content-disposition"; -import JSZip from "jszip"; import { escapeRegExp } from "es-toolkit/compat"; import mime from "mime-types"; import { UserRole } from "@shared/types"; @@ -20,7 +19,7 @@ import { authorize } from "@server/policies"; import { presentPolicies, presentRevision } from "@server/presenters"; import type { APIContext } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; -import ZipHelper from "@server/utils/ZipHelper"; +import { streamZipResponse } from "@server/utils/koa"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -195,51 +194,35 @@ router.post( return; } - const zip = new JSZip(); - - await Promise.all( - attachments.map(async (attachment) => { + await streamZipResponse(ctx, `${fileName}.zip`, async (zip) => { + for (const attachment of attachments) { const location = path.join( "attachments", `${attachment.id}.${mime.extension(attachment.contentType)}` ); - zip.file( - location, - new Promise<Buffer>((resolve) => { - attachment.buffer.then(resolve).catch((err) => { - Logger.warn(`Failed to read attachment from storage`, { - attachmentId: attachment.id, - teamId: attachment.teamId, - error: err.message, - }); - resolve(Buffer.from("")); - }); - }), - { - date: attachment.updatedAt, - createFolders: true, - } - ); + let buffer: Buffer; + try { + buffer = await attachment.buffer; + } catch (err) { + Logger.warn(`Failed to read attachment from storage`, { + attachmentId: attachment.id, + teamId: attachment.teamId, + error: err.message, + }); + buffer = Buffer.from(""); + } + zip.addBuffer(buffer, location, { mtime: attachment.updatedAt }); content = content.replace( new RegExp(escapeRegExp(attachment.redirectUrl), "g"), location ); - }) - ); + } - zip.file(`${fileName}.${extension}`, content, { - date: revision.updatedAt, + zip.addBuffer(Buffer.from(content), `${fileName}.${extension}`, { + mtime: revision.updatedAt, + }); }); - - ctx.set("Content-Type", "application/zip"); - ctx.set( - "Content-Disposition", - contentDisposition(`${fileName}.zip`, { - type: "attachment", - }) - ); - ctx.body = zip.generateNodeStream(ZipHelper.defaultStreamOptions); } ); diff --git a/server/typings/yazl.d.ts b/server/typings/yazl.d.ts new file mode 100644 index 0000000000..7e97ce9622 --- /dev/null +++ b/server/typings/yazl.d.ts @@ -0,0 +1,7 @@ +import "yazl"; + +declare module "yazl" { + interface Options { + fileComment: string | Buffer; + } +} diff --git a/server/utils/ZipHelper.test.ts b/server/utils/ZipHelper.test.ts index c2f6bdcdf1..a6fa0e5338 100644 --- a/server/utils/ZipHelper.test.ts +++ b/server/utils/ZipHelper.test.ts @@ -1,20 +1,26 @@ import path from "node:path"; import fs from "fs-extra"; -import JSZip from "jszip"; import tmp from "tmp"; +import { ZipFile } from "yazl"; import ZipHelper from "./ZipHelper"; async function writeZip( entries: Record<string, string>, postfix = ".zip" ): Promise<string> { - const zip = new JSZip(); + const zip = new ZipFile(); for (const [name, content] of Object.entries(entries)) { - zip.file(name, content); + zip.addBuffer(Buffer.from(content), name); } - const buffer = await zip.generateAsync({ type: "nodebuffer" }); const zipPath = tmp.fileSync({ postfix }).name; - await fs.writeFile(zipPath, buffer); + await new Promise<void>((resolve, reject) => { + const dest = fs + .createWriteStream(zipPath) + .on("finish", () => resolve()) + .on("error", reject); + zip.outputStream.on("error", reject).pipe(dest); + zip.end(); + }); return zipPath; } diff --git a/server/utils/ZipHelper.ts b/server/utils/ZipHelper.ts index 8f6c373840..f54faebef2 100644 --- a/server/utils/ZipHelper.ts +++ b/server/utils/ZipHelper.ts @@ -1,9 +1,9 @@ import path from "node:path"; import fs from "fs-extra"; -import type JSZip from "jszip"; import tmp from "tmp"; import type { Entry } from "yauzl"; import yauzl, { validateFileName } from "yauzl"; +import type { ZipFile } from "yazl"; import { bytesToHumanReadable } from "@shared/utils/files"; import { ValidationError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -41,27 +41,16 @@ export interface ZipTreeNode { @trace() export default class ZipHelper { - public static defaultStreamOptions: JSZip.JSZipGeneratorOptions<"nodebuffer"> = - { - type: "nodebuffer", - streamFiles: true, - compression: "DEFLATE", - compressionOptions: { - level: 5, - }, - }; - /** - * Write a zip file to a temporary disk location + * Write a zip file to a temporary disk location. * - * @deprecated Use `extract` instead - * @param zip JSZip object - * @returns pathname of the temporary file where the zip was written to disk + * The caller is responsible for adding entries to the `ZipFile`; this method + * calls `end()` and waits for the output stream to drain to disk. + * + * @param zip yazl ZipFile object with entries already added. + * @returns pathname of the temporary file where the zip was written to disk. */ - public static async toTmpFile( - zip: JSZip, - options?: JSZip.JSZipGeneratorOptions<"nodebuffer"> - ): Promise<string> { + public static async toTmpFile(zip: ZipFile): Promise<string> { Logger.debug("utils", "Creating tmp file…"); return new Promise((resolve, reject) => { tmp.file( @@ -74,11 +63,6 @@ export default class ZipHelper { return reject(err); } - let previousMetadata: JSZip.JSZipMetadata = { - percent: 0, - currentFile: null, - }; - const handleError = (error: Error) => { dest.destroy(); fs.remove(filePath) @@ -98,35 +82,8 @@ export default class ZipHelper { }) .on("error", handleError); - zip - .generateNodeStream( - { - ...this.defaultStreamOptions, - ...options, - }, - (metadata) => { - if (metadata.currentFile !== previousMetadata.currentFile) { - const percent = Math.round(metadata.percent); - const memory = process.memoryUsage(); - - previousMetadata = { - currentFile: metadata.currentFile, - percent, - }; - Logger.debug( - "utils", - `Writing zip file progress… ${percent}%`, - { - currentFile: metadata.currentFile, - memory: bytesToHumanReadable(memory.rss), - } - ); - } - } - ) - .on("error", handleError) - .pipe(dest) - .on("error", handleError); + zip.outputStream.on("error", handleError).pipe(dest); + zip.end(); } ); }); diff --git a/server/utils/koa.ts b/server/utils/koa.ts index 75c21dd493..5a0a908e19 100644 --- a/server/utils/koa.ts +++ b/server/utils/koa.ts @@ -1,6 +1,8 @@ +import contentDisposition from "content-disposition"; import type formidable from "formidable"; -import type { Request } from "koa"; +import type { Context, Request } from "koa"; import { isArray } from "es-toolkit/compat"; +import { ZipFile } from "yazl"; /** * Get the first file from an incoming koa request @@ -23,3 +25,35 @@ export const getFileFromRequest = ( return isArray(file) ? file[0] : file; }; + +/** + * Stream a freshly-built zip archive as the response body. The supplied + * `build` callback receives a yazl ZipFile to populate with entries; the + * helper handles response headers, error forwarding, and finalizing the + * archive once `build` resolves. + * + * @param ctx The koa context to write the response to. + * @param fileName The filename to advertise in the Content-Disposition header. + * @param build Callback that adds entries to the provided ZipFile. + */ +export const streamZipResponse = async ( + ctx: Context, + fileName: string, + build: (zip: ZipFile) => void | Promise<void> +): Promise<void> => { + const zip = new ZipFile(); + await build(zip); + + ctx.set("Content-Type", "application/zip"); + ctx.set( + "Content-Disposition", + contentDisposition(fileName, { type: "attachment" }) + ); + + zip.outputStream.on("error", (err) => { + ctx.app.emit("error", err, ctx); + ctx.res.destroy(err); + }); + ctx.body = zip.outputStream; + zip.end(); +}; diff --git a/yarn.lock b/yarn.lock index 4ba507079f..33089381cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8252,6 +8252,15 @@ __metadata: languageName: node linkType: hard +"@types/yazl@npm:^2.4.6": + version: 2.4.6 + resolution: "@types/yazl@npm:2.4.6" + dependencies: + "@types/node": "npm:*" + checksum: 10c0/6145fd1025e592747ed1331d88edb6d57dfd0f514812420889ecc880e0728b22c4d4214d5062b36164c4c40ca271266968a1571118ba6521796c76ac0b18c99c + languageName: node + linkType: hard + "@upsetjs/venn.js@npm:^2.0.0": version: 2.0.0 resolution: "@upsetjs/venn.js@npm:2.0.0" @@ -9157,6 +9166,13 @@ __metadata: languageName: node linkType: hard +"buffer-crc32@npm:^1.0.0": + version: 1.0.0 + resolution: "buffer-crc32@npm:1.0.0" + checksum: 10c0/8b86e161cee4bb48d5fa622cbae4c18f25e4857e5203b89e23de59e627ab26beb82d9d7999f2b8de02580165f61f83f997beaf02980cdf06affd175b651921ab + languageName: node + linkType: hard + "buffer-crc32@npm:~0.2.3": version: 0.2.13 resolution: "buffer-crc32@npm:0.2.13" @@ -13846,7 +13862,7 @@ __metadata: languageName: node linkType: hard -"jszip@npm:^3.10.1, jszip@npm:^3.7.1": +"jszip@npm:^3.7.1": version: 3.10.1 resolution: "jszip@npm:3.10.1" dependencies: @@ -15858,6 +15874,7 @@ __metadata: "@types/utf8": "npm:^3.0.3" "@types/validator": "npm:^13.15.10" "@types/yauzl": "npm:^2.10.3" + "@types/yazl": "npm:^2.4.6" "@vitejs/plugin-react-oxc": "npm:^0.2.3" "@vitest/ui": "npm:^4.1.6" addressparser: "npm:^1.0.1" @@ -15912,7 +15929,6 @@ __metadata: js-yaml: "npm:^4.1.1" jsdom: "npm:^22.1.0" jsonwebtoken: "npm:^9.0.3" - jszip: "npm:^3.10.1" katex: "npm:^0.16.45" kbar: "npm:0.1.0-beta.48" koa: "npm:^3.0.3" @@ -16047,6 +16063,7 @@ __metadata: y-prosemirror: "npm:^1.3.7" y-protocols: "npm:^1.0.7" yauzl: "npm:^3.2.1" + yazl: "npm:^3.3.1" yjs: "npm:^13.6.30" zod: "npm:^4.3.6" languageName: unknown @@ -21547,6 +21564,15 @@ __metadata: languageName: node linkType: hard +"yazl@npm:^3.3.1": + version: 3.3.1 + resolution: "yazl@npm:3.3.1" + dependencies: + buffer-crc32: "npm:^1.0.0" + checksum: 10c0/8290dffd8afc4ea32459c0ce5d7e22af250515aa0170f289cbc896530d3cd40c5be4788b5e3e7aa5cd21889778071f424e1824faadbd257dbd5ff80fb60d1fa6 + languageName: node + linkType: hard + "yjs@npm:^13.6.30": version: 13.6.30 resolution: "yjs@npm:13.6.30" From 92be63135066ac524d733cc90a2e2f5fa44d7006 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 23 May 2026 11:27:57 -0400 Subject: [PATCH 078/286] chore(deps): bump qs from 6.15.1 to 6.15.2 (#12437) --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 33089381cb..972a72526a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17281,11 +17281,11 @@ __metadata: linkType: hard "qs@npm:^6.11.0, qs@npm:^6.14.0, qs@npm:^6.5.2": - version: 6.15.1 - resolution: "qs@npm:6.15.1" + version: 6.15.2 + resolution: "qs@npm:6.15.2" dependencies: side-channel: "npm:^1.1.0" - checksum: 10c0/19ee504f0ebff72598503e38cd6d9bd7b52a8ab62ae18b1e6bee3d4db58469bd65871ef1893a881bafb0f80ef2f9ab586e1f255cf25cc8d816c0f5a704721d97 + checksum: 10c0/e6fd5f6f0aab06d480fe9ab15cebfc4ce4235303e2f91dc69a8f7f4df1e668a61c11d1cfbabacf4295cbbeb7b670ed23db45307480726259761f98e5695e93a7 languageName: node linkType: hard From a1b9f900c7e1a9f9e474964082d3f743b05fcbc1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 23 May 2026 14:15:22 -0400 Subject: [PATCH 079/286] perf: Avoid correlated subquery in Slack hooks user lookup (#12432) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: Avoid correlated subquery in Slack hooks user lookup Query UserAuthentication directly by indexed providerId and load the associated User and Team, instead of driving from User.findOne with a required hasMany include — which Sequelize translates into a correlated subquery that scans the users table. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * fix: Scope Slack fallback user lookup to matching AuthenticationProvider The fallback in findUserForRequest matched any UserAuthentication with the same providerId, which is only unique per (providerId, userId). A colliding external user id from another workspace or provider could resolve a user from the wrong team. Constrain via the AuthenticationProvider join (name = "slack", providerId = serviceTeamId). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * test --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- plugins/slack/server/api/hooks.test.ts | 2 +- plugins/slack/server/api/hooks.ts | 37 +++++++++++++++++--------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/plugins/slack/server/api/hooks.test.ts b/plugins/slack/server/api/hooks.test.ts index 35769ce1ab..335bd51726 100644 --- a/plugins/slack/server/api/hooks.test.ts +++ b/plugins/slack/server/api/hooks.test.ts @@ -34,7 +34,7 @@ describe("#hooks.unfurl", () => { const res = await server.post("/api/hooks.unfurl", { body: { token: env.SLACK_VERIFICATION_TOKEN, - team_id: `T${randomString(8)}`, + team_id: user.team.authenticationProviders[0].providerId, api_app_id: `A${randomString(8)}`, event: { type: "link_shared", diff --git a/plugins/slack/server/api/hooks.ts b/plugins/slack/server/api/hooks.ts index ba656bffb8..95a86873cd 100644 --- a/plugins/slack/server/api/hooks.ts +++ b/plugins/slack/server/api/hooks.ts @@ -403,28 +403,41 @@ async function findUserForRequest( return integration.user; } - // Fallback to authentication provider if the user has Slack sign-in - const user = await User.findOne({ + // Fallback to authentication provider if the user has Slack sign-in. + // Scoped via AuthenticationProvider to the matching Slack workspace so a + // colliding providerId from another team/provider cannot resolve. + const authentication = await UserAuthentication.findOne({ + where: { + providerId: serviceUserId, + }, + order: [["createdAt", "DESC"]], include: [ { - where: { - providerId: serviceUserId, - }, - order: [["createdAt", "DESC"]], - model: UserAuthentication, - as: "authentications", + model: AuthenticationProvider, + as: "authenticationProvider", required: true, + where: { + name: "slack", + providerId: serviceTeamId, + }, }, { - model: Team, - as: "team", + model: User, + as: "user", required: true, + include: [ + { + model: Team, + as: "team", + required: true, + }, + ], }, ], }); - if (user) { - return user; + if (authentication?.user) { + return authentication.user; } return; From 08c039029515cc8cf3c5984237f3b0ff1980b6f1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 24 May 2026 07:27:50 -0400 Subject: [PATCH 080/286] chore: Remove unnecessary package resolutions (#12442) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove `debug: 4.3.4` resolution which was forcing a downgrade – packages requesting ^4.4.x now resolve to their correct versions. Remove `ajv@npm:~8.13.0` resolution as no package in the dependency tree requests that range anymore. https://claude.ai/code/session_01JmpWGCUCVdKqN3MgsYc3fi Co-authored-by: Claude <noreply@anthropic.com> --- package.json | 2 -- yarn.lock | 60 ++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 51 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index aee33457d0..d26d961ce3 100644 --- a/package.json +++ b/package.json @@ -381,10 +381,8 @@ "@types/react": "17.0.91", "@types/koa": "2.15.1", "prosemirror-transform": "1.10.5", - "debug": "4.3.4", "prismjs": "1.30.0", "zod": "^4.3.6", - "ajv@npm:~8.13.0": "^8.18.0", "@types/markdown-it": "14.1.2", "ip-address@npm:10.1.0": "^10.2.0", "minimatch@npm:9.0.1": "9.0.9", diff --git a/yarn.lock b/yarn.lock index 972a72526a..9858219db0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10589,15 +10589,57 @@ __metadata: languageName: node linkType: hard -"debug@npm:4.3.4": - version: 4.3.4 - resolution: "debug@npm:4.3.4" +"debug@npm:4, debug@npm:^4, debug@npm:^4.0.1, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.4, debug@npm:^4.3.6, debug@npm:^4.4.0, debug@npm:^4.4.3, debug@npm:~4.4.1": + version: 4.4.3 + resolution: "debug@npm:4.4.3" dependencies: - ms: "npm:2.1.2" + ms: "npm:^2.1.3" peerDependenciesMeta: supports-color: optional: true - checksum: 10c0/cedbec45298dd5c501d01b92b119cd3faebe5438c3917ff11ae1bff86a6c722930ac9c8659792824013168ba6db7c4668225d845c633fbdafbbf902a6389f736 + checksum: 10c0/d79136ec6c83ecbefd0f6a5593da6a9c91ec4d7ddc4b54c883d6e71ec9accb5f67a1a5e96d00a328196b5b5c86d365e98d8a3a70856aaf16b4e7b1985e67f5a6 + languageName: node + linkType: hard + +"debug@npm:4.4.0": + version: 4.4.0 + resolution: "debug@npm:4.4.0" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/db94f1a182bf886f57b4755f85b3a74c39b5114b9377b7ab375dc2cfa3454f09490cc6c30f829df3fc8042bc8b8995f6567ce5cd96f3bc3688bd24027197d9de + languageName: node + linkType: hard + +"debug@npm:^2.2.0": + version: 2.6.9 + resolution: "debug@npm:2.6.9" + dependencies: + ms: "npm:2.0.0" + checksum: 10c0/121908fb839f7801180b69a7e218a40b5a0b718813b886b7d6bdb82001b931c938e2941d1e4450f33a1b1df1da653f5f7a0440c197f29fbf8a6e9d45ff6ef589 + languageName: node + linkType: hard + +"debug@npm:^3.1.0": + version: 3.2.7 + resolution: "debug@npm:3.2.7" + dependencies: + ms: "npm:^2.1.1" + checksum: 10c0/37d96ae42cbc71c14844d2ae3ba55adf462ec89fd3a999459dec3833944cd999af6007ff29c780f1c61153bcaaf2c842d1e4ce1ec621e4fc4923244942e4a02a + languageName: node + linkType: hard + +"debug@npm:~4.3.1, debug@npm:~4.3.4": + version: 4.3.7 + resolution: "debug@npm:4.3.7" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/1471db19c3b06d485a622d62f65947a19a23fbd0dd73f7fd3eafb697eec5360cde447fb075919987899b1a2096e85d35d4eb5a4de09a57600ac9cf7e6c8e768b languageName: node linkType: hard @@ -15220,10 +15262,10 @@ __metadata: languageName: node linkType: hard -"ms@npm:2.1.2": - version: 2.1.2 - resolution: "ms@npm:2.1.2" - checksum: 10c0/a437714e2f90dbf881b5191d35a6db792efbca5badf112f87b9e1c712aace4b4b9b742dd6537f3edf90fd6f684de897cec230abde57e87883766712ddda297cc +"ms@npm:2.0.0": + version: 2.0.0 + resolution: "ms@npm:2.0.0" + checksum: 10c0/f8fda810b39fd7255bbdc451c46286e549794fcc700dc9cd1d25658bbc4dc2563a5de6fe7c60f798a16a60c6ceb53f033cb353f493f0cf63e5199b702943159d languageName: node linkType: hard From 9e725d618d68c9e4a43e02e60c98343f1a8118bb Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 24 May 2026 08:57:43 -0400 Subject: [PATCH 081/286] perf: Sidebar virtualization and re-render optimization (#12443) * perf: Prevent action context invalidation on location change * PR feedback * virtualization * fix: Initial visiblity incorrect * PR feedback --- app/components/Sidebar/App.tsx | 152 ++++++----- .../Sidebar/components/DocumentLink.tsx | 181 ++++++++----- .../Sidebar/components/DragActiveContext.tsx | 47 ++++ app/hooks/useActionContext.tsx | 242 +++++++++++------- app/hooks/useOnScreen.ts | 76 ++++-- 5 files changed, 465 insertions(+), 233 deletions(-) create mode 100644 app/components/Sidebar/components/DragActiveContext.tsx diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index a2c1e139ac..eda645e509 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -1,8 +1,12 @@ import { observer } from "mobx-react"; import { SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; -import { useEffect, useState, useCallback, useMemo } from "react"; +import { useEffect, useState, useCallback, useMemo, useRef } from "react"; import { DndProvider } from "react-dnd"; import { HTML5Backend } from "react-dnd-html5-backend"; +import { + DragActiveProvider, + SidebarScrollProvider, +} from "./components/DragActiveContext"; import { useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; import styled from "styled-components"; @@ -67,78 +71,92 @@ function AppSidebar() { [dndArea] ); + // Scrollable reads ref.current internally for its shadow/ResizeObserver + // logic, so we must pass an object ref — a callback ref would leave those + // reads undefined. We mirror the attached node into state so the + // SidebarScrollProvider can re-render descendants with the scroll element. + const scrollRef = useRef<HTMLDivElement>(null); + const [scrollArea, setScrollArea] = useState<HTMLElement | null>(null); + useEffect(() => { + setScrollArea(scrollRef.current); + }, []); + return ( <Sidebar hidden={!ui.readyToShow} ref={handleSidebarRef}> {dndArea && ( <DndProvider backend={HTML5Backend} options={html5Options}> - <DragPlaceholder /> + <DragActiveProvider> + <DragPlaceholder /> - <TeamMenu> - <SidebarButton - title={team.name} - image={<TeamLogo model={team} size={24} alt={t("Logo")} />} - > - {isMobile ? null : ( - <Tooltip - content={t("Toggle sidebar")} - shortcut={`${metaDisplay}+.`} - > - <ToggleButton - position="bottom" - image={<SidebarIcon />} - aria-label={ - ui.sidebarCollapsed - ? t("Expand sidebar") - : t("Collapse sidebar") - } - style={{ paddingInline: 4 }} - onClick={() => { - ui.toggleCollapsedSidebar(); - (document.activeElement as HTMLElement)?.blur(); - }} - /> - </Tooltip> - )} - </SidebarButton> - </TeamMenu> - <Overflow> - <Section> - <SidebarLink - to={homePath()} - icon={<HomeIcon />} - exact={false} - label={t("Home")} - /> - <SidebarLink - to={searchPath()} - icon={<SearchIcon />} - label={t("Search")} - exact={false} - onClick={handleSearchClick} - /> - {can.createDocument && <DraftsLink />} - </Section> - </Overflow> - <Scrollable flex shadow> - <Section> - <Starred /> - </Section> - <Section> - <SharedWithMe /> - </Section> - <Section> - <Collections /> - </Section> - {can.createDocument && ( - <Section auto> - <ArchiveLink /> + <TeamMenu> + <SidebarButton + title={team.name} + image={<TeamLogo model={team} size={24} alt={t("Logo")} />} + > + {isMobile ? null : ( + <Tooltip + content={t("Toggle sidebar")} + shortcut={`${metaDisplay}+.`} + > + <ToggleButton + position="bottom" + image={<SidebarIcon />} + aria-label={ + ui.sidebarCollapsed + ? t("Expand sidebar") + : t("Collapse sidebar") + } + style={{ paddingInline: 4 }} + onClick={() => { + ui.toggleCollapsedSidebar(); + (document.activeElement as HTMLElement)?.blur(); + }} + /> + </Tooltip> + )} + </SidebarButton> + </TeamMenu> + <Overflow> + <Section> + <SidebarLink + to={homePath()} + icon={<HomeIcon />} + exact={false} + label={t("Home")} + /> + <SidebarLink + to={searchPath()} + icon={<SearchIcon />} + label={t("Search")} + exact={false} + onClick={handleSearchClick} + /> + {can.createDocument && <DraftsLink />} </Section> - )} - <Section> - {can.createDocument && <TrashLink />} - <SidebarAction action={inviteUser} /> - </Section> - </Scrollable> + </Overflow> + <Scrollable flex shadow ref={scrollRef}> + <SidebarScrollProvider value={scrollArea}> + <Section> + <Starred /> + </Section> + <Section> + <SharedWithMe /> + </Section> + <Section> + <Collections /> + </Section> + {can.createDocument && ( + <Section auto> + <ArchiveLink /> + </Section> + )} + <Section> + {can.createDocument && <TrashLink />} + <SidebarAction action={inviteUser} /> + </Section> + </SidebarScrollProvider> + </Scrollable> + </DragActiveProvider> </DndProvider> )} <HistoryNavigation /> diff --git a/app/components/Sidebar/components/DocumentLink.tsx b/app/components/Sidebar/components/DocumentLink.tsx index ee58d7d9f7..5e30863aac 100644 --- a/app/components/Sidebar/components/DocumentLink.tsx +++ b/app/components/Sidebar/components/DocumentLink.tsx @@ -16,6 +16,7 @@ import type { RefHandle } from "~/components/EditableTitle"; import useBoolean from "~/hooks/useBoolean"; import useCurrentUser from "~/hooks/useCurrentUser"; import { useDocumentMenuAction } from "~/hooks/useDocumentMenuAction"; +import useOnScreen from "~/hooks/useOnScreen"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import DocumentMenu from "~/menus/DocumentMenu"; @@ -25,6 +26,7 @@ import { useDropToReorderDocument, useDropToReparentDocument, } from "../hooks/useDragAndDrop"; +import { useIsDragActive, useSidebarScrollElement } from "./DragActiveContext"; import { useSidebarExpansion } from "./SidebarExpansionContext"; import DocumentRow from "./DocumentRow"; import DropCursor from "./DropCursor"; @@ -44,34 +46,28 @@ type Props = { parentId?: string; }; -const DocumentLink = observer(function DocumentLinkInner({ - node, - collection, - membership, - activeDocument, - prefetchDocument, - isDraft, - depth, - index, - parentId, -}: Props) { +// Approximate rendered row height; used to reserve space for unmounted rows so +// the scroll container stays the right height and IntersectionObserver triggers +// correctly as the user scrolls. +const ROW_HEIGHT = 30; + +// Pre-mount rows just outside the viewport so scrolling stays smooth and drop +// targets exist a screen ahead when a drag starts. +const ROOT_MARGIN = "300px 0px"; + +const DocumentLink = observer(function DocumentLink(props: Props) { + const { node, collection, activeDocument } = props; const { documents } = useStores(); - const { t } = useTranslation(); - const history = useHistory(); - const can = usePolicy(node.id); - const canUpdate = can.update; + const expansion = useSidebarExpansion(); + const expanded = expansion.isExpanded(node.id); const isActiveDocument = activeDocument && activeDocument.id === node.id; const hasChildDocuments = !!node.children.length || activeDocument?.parentDocumentId === node.id; - const document = documents.get(node.id); - const { fetchChildDocuments } = documents; - const [isEditing, setIsEditing] = React.useState(false); - const editableTitleRef = React.useRef<RefHandle>(null); const sidebarContext = useSidebarContext(); - const user = useCurrentUser(); - const expansion = useSidebarExpansion(); - const expanded = expansion.isExpanded(node.id); + const { fetchChildDocuments } = documents; + // Keep expansion/data effects on the outer so they run regardless of whether + // the heavy row content is currently mounted. React.useEffect(() => { if (expanded && !hasChildDocuments) { expansion.collapse(node.id); @@ -93,6 +89,105 @@ const DocumentLink = observer(function DocumentLinkInner({ isActiveDocument, ]); + const insertDraftChild = !!( + activeDocument?.isDraft && + activeDocument?.isActive && + activeDocument?.parentDocumentId === node.id + ); + + const draftNavNode = insertDraftChild + ? activeDocument?.asNavigationNode + : undefined; + + const nodeChildren = React.useMemo( + () => + collection && draftNavNode + ? sortNavigationNodes( + [draftNavNode, ...node.children], + collection.sort, + false + ) + : node.children, + [draftNavNode, collection, node.children] + ); + + // Visibility gate: only mount the heavy inner content when scrolled near the + // viewport, but keep it mounted while a drag is in progress so the dragged + // source (or a drop target the user is heading toward) isn't yanked. + const scrollRoot = useSidebarScrollElement(); + const placeholderRef = React.useRef<HTMLDivElement>(null); + const observerOptions = React.useMemo( + () => ({ root: scrollRoot, rootMargin: ROOT_MARGIN }), + [scrollRoot] + ); + const isOnScreen = useOnScreen(placeholderRef, observerOptions); + const isDragActive = useIsDragActive(); + const [mounted, setMounted] = React.useState(false); + + // Flip mount state during render (not in an effect) so the first paint + // already contains the row content when the placeholder is on screen, + // avoiding a blank frame. + if (isOnScreen && !mounted) { + setMounted(true); + } else if (!isOnScreen && !isDragActive && mounted) { + setMounted(false); + } + + return ( + <> + <div ref={placeholderRef} style={{ minHeight: ROW_HEIGHT }}> + {mounted ? ( + <DocumentLinkInner {...props} hasChildren={nodeChildren.length > 0} /> + ) : null} + </div> + <Folder expanded={expanded}> + {nodeChildren.map((childNode, childIndex) => ( + <DocumentLink + key={childNode.id} + collection={collection} + membership={props.membership} + node={childNode} + activeDocument={activeDocument} + prefetchDocument={props.prefetchDocument} + isDraft={childNode.isDraft} + depth={props.depth + 1} + index={childIndex} + parentId={node.id} + /> + ))} + </Folder> + </> + ); +}); + +type InnerProps = Props & { + hasChildren: boolean; +}; + +const DocumentLinkInner = observer(function DocumentLinkInner({ + node, + collection, + membership, + prefetchDocument, + isDraft, + depth, + index, + parentId, + hasChildren, +}: InnerProps) { + const { documents } = useStores(); + const { t } = useTranslation(); + const history = useHistory(); + const can = usePolicy(node.id); + const canUpdate = can.update; + const document = documents.get(node.id); + const [isEditing, setIsEditing] = React.useState(false); + const editableTitleRef = React.useRef<RefHandle>(null); + const sidebarContext = useSidebarContext(); + const user = useCurrentUser(); + const expansion = useSidebarExpansion(); + const expanded = expansion.isExpanded(node.id); + const handleDisclosureClick = React.useCallback( (ev?: React.MouseEvent<HTMLElement>) => { if (expanded) { @@ -226,30 +321,7 @@ const DocumentLink = observer(function DocumentLinkInner({ }; }); - const insertDraftChild = !!( - activeDocument?.isDraft && - activeDocument?.isActive && - activeDocument?.parentDocumentId === node.id - ); - - const draftNavNode = insertDraftChild - ? activeDocument?.asNavigationNode - : undefined; - - const nodeChildren = React.useMemo( - () => - collection && draftNavNode - ? sortNavigationNodes( - [draftNavNode, ...node.children], - collection.sort, - false - ) - : node.children, - [draftNavNode, collection, node.children] - ); - const title = document?.title || node.title || t("Untitled"); - const hasChildren = nodeChildren.length > 0; const handleNewDoc = React.useCallback( async (input: string) => { @@ -348,24 +420,7 @@ const DocumentLink = observer(function DocumentLinkInner({ contextAction={contextMenuAction} isActiveOverride={isActiveCheck} onClickIntent={handlePrefetch} - > - <Folder expanded={expanded && !isDragging}> - {nodeChildren.map((childNode, childIndex) => ( - <DocumentLink - key={childNode.id} - collection={collection} - membership={membership} - node={childNode} - activeDocument={activeDocument} - prefetchDocument={prefetchDocument} - isDraft={childNode.isDraft} - depth={depth + 1} - index={childIndex} - parentId={node.id} - /> - ))} - </Folder> - </DocumentRow> + /> ); }); diff --git a/app/components/Sidebar/components/DragActiveContext.tsx b/app/components/Sidebar/components/DragActiveContext.tsx new file mode 100644 index 0000000000..9c65139bf2 --- /dev/null +++ b/app/components/Sidebar/components/DragActiveContext.tsx @@ -0,0 +1,47 @@ +import * as React from "react"; +import { useDragLayer } from "react-dnd"; + +const DragActiveContext = React.createContext(false); + +const SidebarScrollContext = React.createContext<HTMLElement | null>(null); + +/** + * Provides the sidebar's scroll container so descendants can use it as the + * IntersectionObserver root when deciding whether to render heavy content. + */ +export const SidebarScrollProvider = SidebarScrollContext.Provider; + +/** + * Returns the sidebar scroll container element, or null if not within a + * SidebarScrollProvider. + */ +export function useSidebarScrollElement(): HTMLElement | null { + return React.useContext(SidebarScrollContext); +} + +/** + * Subscribes once to react-dnd's drag state and exposes a boolean via context. + * + * Visibility-gated sidebar rows read this to keep their inner content mounted + * for the duration of a drag, so that scrolling away from the dragged source + * (or a drop target the user is heading toward) does not unmount it mid-drag. + */ +export function DragActiveProvider({ + children, +}: { + children: React.ReactNode; +}) { + const isDragging = useDragLayer((monitor) => monitor.isDragging()); + return ( + <DragActiveContext.Provider value={isDragging}> + {children} + </DragActiveContext.Provider> + ); +} + +/** + * Returns whether any react-dnd drag is currently active. + */ +export function useIsDragActive(): boolean { + return React.useContext(DragActiveContext); +} diff --git a/app/hooks/useActionContext.tsx b/app/hooks/useActionContext.tsx index bb56a0696c..0072c13660 100644 --- a/app/hooks/useActionContext.tsx +++ b/app/hooks/useActionContext.tsx @@ -1,8 +1,8 @@ import { observer } from "mobx-react"; import type { ReactNode } from "react"; -import React, { createContext, useContext } from "react"; +import React, { createContext, useCallback, useContext, useMemo } from "react"; import { useTranslation } from "react-i18next"; -import { useLocation } from "react-router"; +import { useHistory } from "react-router"; import useStores from "~/hooks/useStores"; import type Model from "~/models/base/Model"; import type Policy from "~/models/Policy"; @@ -55,98 +55,159 @@ export const ActionContextProvider = observer(function ActionContextProvider_({ const parentContext = useContext(ActionContext); const stores = useStores(); const { t } = useTranslation(); - const location = useLocation(); - const { activeModels: valueModels, ...overrides } = value; - // Create the base context if we don't have a parent context - const baseContext: ActionContextType = parentContext ?? { - isMenu: false, - isCommandBar: false, - isButton: false, + // Use history (stable reference) and read location lazily via a getter so + // navigation does not invalidate the context value. Action perform/visible + // callbacks see the current location at call time via history.location, + // which react-router updates on every navigation. + const history = useHistory(); - // Legacy (backward compatibility) - activeCollectionId: stores.ui.activeCollectionId ?? undefined, - activeDocumentId: stores.ui.activeDocumentId ?? undefined, + const { + activeModels: valueModels, + isMenu, + isCommandBar, + isButton, + sidebarContext, + event, + } = value; - getActiveModels: <T extends Model>( - modelClass: new (...args: never[]) => T - ): T[] => stores.ui.getActiveModels<T>(modelClass), + // Track membership of stores.ui.activeModels so memos invalidate when it changes. + // Reading inside the observer-wrapped render keeps MobX subscriptions intact. + const activeModelsKey = Array.from(stores.ui.activeModels.keys()).join(","); + const activeCollectionIdFromStore = stores.ui.activeCollectionId ?? undefined; + const activeDocumentIdFromStore = stores.ui.activeDocumentId ?? undefined; + const currentUserId = stores.auth.user?.id; + const currentTeamId = stores.auth.team?.id; - getActiveModel: <T extends Model>( - modelClass: new (...args: never[]) => T - ): T | undefined => stores.ui.getActiveModels<T>(modelClass)[0], + const getActiveModels = useCallback( + <T extends Model>(modelClass: new (...args: never[]) => T): T[] => { + if (valueModels && valueModels.length > 0) { + const matching = valueModels.filter( + (model): model is T => model instanceof modelClass + ); + if (matching.length > 0) { + return matching; + } + } + if (parentContext) { + return parentContext.getActiveModels(modelClass); + } + return stores.ui.getActiveModels<T>(modelClass); + }, + [valueModels, parentContext, stores] + ); - getActivePolicies: <T extends Model>( - modelClass: new (...args: never[]) => T - ): Policy[] => - stores.ui - .getActiveModels<T>(modelClass) + const getActiveModel = useCallback( + <T extends Model>(modelClass: new (...args: never[]) => T): T | undefined => + getActiveModels(modelClass)[0], + [getActiveModels] + ); + + const getActivePolicies = useCallback( + <T extends Model>(modelClass: new (...args: never[]) => T): Policy[] => + getActiveModels(modelClass) .map((node) => stores.policies.get(node.id)) .filter((policy): policy is Policy => policy !== undefined), + [getActiveModels, stores] + ); - isModelActive: (model: Model): boolean => stores.ui.isModelActive(model), - activeModels: new Set(stores.ui.activeModels.values()), + const allActiveModels = useMemo(() => { + const base = parentContext + ? parentContext.activeModels + : new Set(stores.ui.activeModels.values()); + if (valueModels && valueModels.length > 0) { + return new Set([...base, ...valueModels]); + } + return base; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [parentContext, stores, valueModels, activeModelsKey]); - currentUserId: stores.auth.user?.id, - currentTeamId: stores.auth.team?.id, - location, + const isModelActive = useCallback( + (model: Model): boolean => allActiveModels.has(model), + [allActiveModels] + ); + + const contextValue = useMemo<ActionContextType>(() => { + const baseContext: ActionContextType = parentContext ?? { + isMenu: false, + isCommandBar: false, + isButton: false, + + // Legacy (backward compatibility) + activeCollectionId: activeCollectionIdFromStore, + activeDocumentId: activeDocumentIdFromStore, + + getActiveModels, + getActiveModel, + getActivePolicies, + isModelActive, + activeModels: allActiveModels, + + currentUserId, + currentTeamId, + // Consumers reading `ctx.location` get the current location at access time. + location: history.location, + stores, + t, + }; + + // Derive legacy IDs from value models, falling back to base context + const activeCollectionId = + valueModels?.find( + (m) => (m.constructor as typeof Model).modelName === "Collection" + )?.id ?? baseContext.activeCollectionId; + + const activeDocumentId = + valueModels?.find( + (m) => (m.constructor as typeof Model).modelName === "Document" + )?.id ?? baseContext.activeDocumentId; + + const result = { + ...baseContext, + ...(isMenu !== undefined ? { isMenu } : {}), + ...(isCommandBar !== undefined ? { isCommandBar } : {}), + ...(isButton !== undefined ? { isButton } : {}), + ...(sidebarContext !== undefined ? { sidebarContext } : {}), + ...(event !== undefined ? { event } : {}), + activeCollectionId, + activeDocumentId, + getActiveModels, + getActiveModel, + getActivePolicies, + isModelActive, + activeModels: allActiveModels, + }; + + // Define `location` as a getter so reads always return the current + // location without invalidating this memo on navigation. + Object.defineProperty(result, "location", { + get: () => history.location, + enumerable: true, + configurable: true, + }); + + return result; + }, [ + parentContext, stores, t, - }; - - // Override model accessors when models are provided in value - const getActiveModels = - valueModels && valueModels.length > 0 - ? <T extends Model>(modelClass: new (...args: never[]) => T): T[] => { - const matching = valueModels.filter( - (model): model is T => model instanceof modelClass - ); - return matching.length > 0 - ? matching - : baseContext.getActiveModels(modelClass); - } - : baseContext.getActiveModels; - - const getActiveModel = <T extends Model>( - modelClass: new (...args: never[]) => T - ): T | undefined => getActiveModels(modelClass)[0]; - - const getActivePolicies = <T extends Model>( - modelClass: new (...args: never[]) => T - ): Policy[] => - getActiveModels(modelClass) - .map((node) => stores.policies.get(node.id)) - .filter((policy): policy is Policy => policy !== undefined); - - const allActiveModels = - valueModels && valueModels.length > 0 - ? new Set([...baseContext.activeModels, ...valueModels]) - : baseContext.activeModels; - - const isModelActive = (model: Model): boolean => allActiveModels.has(model); - - // Derive legacy IDs from value models, falling back to base context - const activeCollectionId = - valueModels?.find( - (m) => (m.constructor as typeof Model).modelName === "Collection" - )?.id ?? baseContext.activeCollectionId; - - const activeDocumentId = - valueModels?.find( - (m) => (m.constructor as typeof Model).modelName === "Document" - )?.id ?? baseContext.activeDocumentId; - - const contextValue: ActionContextType = { - ...baseContext, - ...overrides, - activeCollectionId, - activeDocumentId, + history, + valueModels, + isMenu, + isCommandBar, + isButton, + sidebarContext, + event, + activeCollectionIdFromStore, + activeDocumentIdFromStore, + currentUserId, + currentTeamId, getActiveModels, getActiveModel, getActivePolicies, isModelActive, - activeModels: allActiveModels, - }; + allActiveModels, + ]); return ( <ActionContext.Provider value={contextValue}> @@ -173,15 +234,20 @@ export default function useActionContext( ): ActionContextType { const contextValue = useContext(ActionContext); - // If we have a context value from a provider, use it as the base - if (contextValue) { - return { - ...contextValue, - ...overrides, - }; + if (!contextValue) { + throw new Error( + "useActionContext must be used within an ActionContextProvider" + ); } - throw new Error( - "useActionContext must be used within an ActionContextProvider" - ); + // Short-circuit when no overrides are provided so consumers get a stable + // reference and don't re-render unnecessarily. + if (!overrides || Object.keys(overrides).length === 0) { + return contextValue; + } + + return { + ...contextValue, + ...overrides, + }; } diff --git a/app/hooks/useOnScreen.ts b/app/hooks/useOnScreen.ts index e148cf5087..a4f007b5d6 100644 --- a/app/hooks/useOnScreen.ts +++ b/app/hooks/useOnScreen.ts @@ -2,34 +2,80 @@ import * as React from "react"; const isSupported = "IntersectionObserver" in window; +// Parses a rootMargin string ("10px 20px" / "10px" / "10px 20px 30px 40px") +// into [top, right, bottom, left] in pixels. Percentages are not supported in +// the synchronous fast path and fall back to 0. +function parseRootMargin( + rootMargin: string | undefined +): [number, number, number, number] { + if (!rootMargin) { + return [0, 0, 0, 0]; + } + const parts = rootMargin + .split(/\s+/) + .map((p) => (p.endsWith("px") ? parseFloat(p) : 0)); + const [t = 0, r = t, b = t, l = r] = parts; + return [t, r, b, l]; +} + /** * Hook to return if a given ref is visible on screen. * * @returns boolean if the node is visible */ -export default function useOnScreen(ref: React.RefObject<HTMLElement>) { +export default function useOnScreen( + ref: React.RefObject<HTMLElement>, + options?: IntersectionObserverInit +) { + const root = options?.root; + const rootMargin = options?.rootMargin; + const threshold = Array.isArray(options?.threshold) + ? options?.threshold.join(",") + : options?.threshold; + const [isIntersecting, setIntersecting] = React.useState(!isSupported); - React.useEffect(() => { + React.useLayoutEffect(() => { const element = ref.current; - let observer: IntersectionObserver | undefined; - - if (isSupported) { - observer = new IntersectionObserver(([entry]) => { - // Update our state when observer callback fires - setIntersecting(entry.isIntersecting); - }); + if (!element) { + return undefined; } - if (element) { - observer?.observe(element); + // Synchronous initial check so the first paint is correct. + const [mt, mr, mb, ml] = parseRootMargin(rootMargin); + const rect = element.getBoundingClientRect(); + const rootRect = + root instanceof Element + ? root.getBoundingClientRect() + : { + top: 0, + left: 0, + bottom: window.innerHeight, + right: window.innerWidth, + }; + const initialVisible = + rect.bottom >= rootRect.top - mt && + rect.top <= rootRect.bottom + mb && + rect.right >= rootRect.left - ml && + rect.left <= rootRect.right + mr; + + setIntersecting(initialVisible); + + if (!isSupported) { + return undefined; } + + const observer = new IntersectionObserver(([entry]) => { + setIntersecting(entry.isIntersecting); + }, options); + observer.observe(element); + return () => { - if (element) { - observer?.unobserve(element); - } + observer.unobserve(element); }; - }, [ref]); + // Re-create when option primitives change; options object identity ignored + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [ref, root, rootMargin, threshold]); return isIntersecting; } From 1a4033dd2d4cc3e479417a496cffd0d70b921e56 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 24 May 2026 12:03:02 -0400 Subject: [PATCH 082/286] fix: Sporadic infinite loop rendering document with imported code blocks that have unknown languages (#12444) --- shared/editor/extensions/CodeHighlighting.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/shared/editor/extensions/CodeHighlighting.ts b/shared/editor/extensions/CodeHighlighting.ts index 8218d30e1f..1a1ffc887f 100644 --- a/shared/editor/extensions/CodeHighlighting.ts +++ b/shared/editor/extensions/CodeHighlighting.ts @@ -221,6 +221,16 @@ export function CodeHighlighting({ langLoaded || isRemoteTransaction(transaction) ) { + // Invalidate cached entries for blocks whose language just loaded + // so getDecorations rebuilds them with syntax highlighting applied. + if (Array.isArray(langLoaded)) { + for (const key of Object.keys(cache)) { + const pos = Number(key); + if (langLoaded.includes(cache[pos]?.node.attrs.language)) { + delete cache[pos]; + } + } + } highlighted = true; return getDecorations({ doc: transaction.doc, name, lineNumbers }); } @@ -247,11 +257,12 @@ export function CodeHighlighting({ } void Promise.all([...languagesToImport].map(loadLanguage)).then( - (language) => { - if (language && languagesToImport.size && !view.isDestroyed) { + (results) => { + const loaded = results.filter((lang): lang is string => !!lang); + if (loaded.length && !view.isDestroyed) { view.dispatch( view.state.tr.setMeta("codeHighlighting", { - langLoaded: language, + langLoaded: loaded, }) ); } From 4bd5585f8c8ef29eacf5bd69142a89119455eac7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 08:34:10 -0400 Subject: [PATCH 083/286] fix: Update Node.js to 24.16.0 (#12448) Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> --- Dockerfile | 2 +- Dockerfile.base | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4abf0c7b97..210f3b8cf2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG APP_PATH WORKDIR $APP_PATH # --- -FROM node:24.15.0-slim AS runner +FROM node:24.16.0-slim AS runner LABEL org.opencontainers.image.source="https://github.com/outline/outline" diff --git a/Dockerfile.base b/Dockerfile.base index 4eea4c5fe0..21517f0dd3 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -1,5 +1,5 @@ ARG APP_PATH=/opt/outline -FROM node:24.15.0 AS deps +FROM node:24.16.0 AS deps ARG APP_PATH WORKDIR $APP_PATH From 6461aabc5212b339171b270c3b1fad65adf8f4a3 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 25 May 2026 15:56:32 -0400 Subject: [PATCH 084/286] feat: Add Catalan language option (#12454) Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- shared/i18n/index.ts | 4 ++++ shared/utils/date.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/shared/i18n/index.ts b/shared/i18n/index.ts index e55c1807c7..d9ac354016 100644 --- a/shared/i18n/index.ts +++ b/shared/i18n/index.ts @@ -8,6 +8,10 @@ type LanguageOption = { // Note: Updating the available languages? Make sure to also update the // locales array in shared/utils/date.ts to enable translation for timestamps. export const languageOptions: LanguageOption[] = [ + { + label: "Català (Catalan)", + value: "ca_ES", + }, { label: "简体中文 (Chinese, Simplified)", value: "zh_CN", diff --git a/shared/utils/date.ts b/shared/utils/date.ts index 3b6bffa823..b1df1e49d7 100644 --- a/shared/utils/date.ts +++ b/shared/utils/date.ts @@ -11,6 +11,7 @@ import { parse, } from "date-fns"; import { + ca, cs, de, enGB, @@ -259,6 +260,7 @@ export function getCurrentDateTimeAsString(locale?: Intl.LocalesArgument) { } const locales = { + ca_ES: ca, cs_CZ: cs, de_DE: de, en_GB: enGB, From 38eda7fa61bd95261d66165f6aebdf77403ca36b Mon Sep 17 00:00:00 2001 From: Wars <wars@wars.cat> Date: Tue, 26 May 2026 04:51:35 +0800 Subject: [PATCH 085/286] fix: correct Safari heading widget handling for Chinese IME (#12453) Safari keeps the heading actions widget at the end of headings to avoid selection issues, but the widget was still using side metadata suited to the leading placement. With Chinese IME composition at the end of a heading, same-position insertion could interact with the contentEditable=false widget and leave the editor selection stuck. After that, Backspace stopped working until the page was refreshed. Use positive side metadata for the Safari trailing widget so composed text stays before it, allow relaxed selection around the widget, and add a narrow Safari-only ArrowLeft fallback for the heading-end boundary. Chinese IME has been manually verified. Other composition-based IMEs may follow a similar path, but are not claimed as verified here. --- shared/editor/nodes/Heading.ts | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/shared/editor/nodes/Heading.ts b/shared/editor/nodes/Heading.ts index 149e50ab85..226dfb1592 100644 --- a/shared/editor/nodes/Heading.ts +++ b/shared/editor/nodes/Heading.ts @@ -207,6 +207,30 @@ export default class Heading extends Node<HeadingOptions> { ...options, Backspace: backspaceToParagraph(type), Enter: splitHeading(type), + ArrowLeft: ((state, dispatch) => { + if (!isSafari) { + return false; + } + + const { $from, empty } = state.selection; + if (!empty || $from.parent.type !== type) { + return false; + } + + const end = $from.end(); + if ($from.pos !== end || !$from.parent.lastChild?.isText) { + return false; + } + + if (dispatch) { + dispatch( + state.tr + .setSelection(TextSelection.create(state.doc, end - 1)) + .scrollIntoView() + ); + } + return true; + }) as Command, // Cmd+Left in Firefox lands the DOM caret inside the heading-actions // widget (contentEditable=false, ignoreSelection: true), so Prosemirror // does not update its model. Subsequent commands like Enter then operate @@ -287,9 +311,11 @@ export default class Heading extends Node<HeadingOptions> { isSafari ? pos + node.nodeSize - 1 : pos + 1, container, { - side: -1, + // Safari keeps this widget at the end; positive side preserves IME + // insertion order, while relaxed side preserves caret navigation. + side: isSafari ? 1 : -1, ignoreSelection: true, - relaxedSide: false, + relaxedSide: isSafari, key: pos.toString(), } ) From f9dc1a3983caccbfb2469516557afa3f7603c497 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 25 May 2026 17:02:46 -0400 Subject: [PATCH 086/286] fix: documents.list with Draft status filter throws database error (#12426) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: documents.list with Draft status filter throws database error The count() query referenced $memberships.id$ in WHERE but had no membership include, causing "missing FROM-clause entry for table memberships". The findAll path was also silently dropping drafts because withMembershipScope defaulted to defaultScope (which filters publishedAt != null). Pre-fetch the user's UserMembership document IDs and filter by id IN (...) on both find and count, and pass includeDrafts: true when the Draft filter is active. * Preserve template/trial filters when including drafts * Move template/trial filters into withDrafts scope * Revert withDrafts scope filters, apply at call site instead Adding template/trial filters to withDrafts broke includes in places like Share's withCollectionPermissions where the document include must remain optional (LEFT JOIN) — adding a where promoted it to INNER JOIN and dropped shares without a documentId. --- server/routes/api/documents/documents.test.ts | 43 +++++++++++++++++++ server/routes/api/documents/documents.ts | 34 +++++++++++++-- 2 files changed, 74 insertions(+), 3 deletions(-) diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index 1c35680930..ca364fb2f7 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -707,6 +707,49 @@ describe("#documents.list", () => { expect(body.data.length).toEqual(0); }); + it("should return draft documents when filtering with statusFilter", async () => { + const user = await buildUser(); + const document = await buildDraftDocument({ + userId: user.id, + teamId: user.teamId, + }); + const res = await server.post("/api/documents.list", user, { + body: { + statusFilter: [StatusFilter.Draft], + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(1); + expect(body.data[0].id).toEqual(document.id); + expect(body.pagination.total).toEqual(1); + }); + + it("should return drafts shared directly with the user", async () => { + const user = await buildUser(); + const author = await buildUser({ teamId: user.teamId }); + const document = await buildDraftDocument({ + userId: author.id, + teamId: user.teamId, + }); + await UserMembership.create({ + documentId: document.id, + userId: user.id, + createdById: author.id, + permission: DocumentPermission.Read, + }); + const res = await server.post("/api/documents.list", user, { + body: { + statusFilter: [StatusFilter.Draft], + }, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.length).toEqual(1); + expect(body.data[0].id).toEqual(document.id); + expect(body.pagination.total).toEqual(1); + }); + it("should not return archived documents", async () => { const user = await buildUser(); const document = await buildDocument({ diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 6928460dec..62b8eeeccd 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -243,6 +243,19 @@ router.post( } if (statusFilter?.includes(StatusFilter.Draft)) { + // Pre-fetch document IDs the user has a direct membership on so the + // filter can be expressed without referencing the (separately-loaded) + // memberships association, which would otherwise break the COUNT query. + const membershipDocumentIds = ( + await UserMembership.findAll({ + attributes: ["documentId"], + where: { + userId: user.id, + documentId: { [Op.ne]: null }, + }, + }) + ).map((m) => m.documentId as string); + statusQuery.push({ [Op.and]: [ { @@ -255,7 +268,7 @@ router.post( [Op.or]: [ // Only ever include draft results for the user's own documents { createdById: user.id }, - { "$memberships.id$": { [Op.ne]: null } }, + { id: membershipDocumentIds }, ], }, ], @@ -292,12 +305,24 @@ router.post( : undefined : [[sort, direction]]; + const includeDrafts = !!statusFilter?.includes(StatusFilter.Draft); + + // The withDrafts scope drops the defaultScope filters, so re-apply the + // ones we still want — templates and trial-import documents should never + // appear in this listing. + if (includeDrafts) { + where[Op.and].push({ + template: false, + sourceMetadata: { trial: { [Op.is]: null } }, + }); + } + // When sorting by index, pagination is already handled by slicing documentIds, // so we skip the SQL-level offset to avoid double-pagination const { results: documents, pagination } = await paginateQuery( ctx, ({ offset: queryOffset, limit: queryLimit }) => - Document.withMembershipScope(user.id).findAll({ + Document.withMembershipScope(user.id, { includeDrafts }).findAll({ where, order: orderClause as Order, offset: sort === "index" ? 0 : queryOffset, @@ -306,7 +331,10 @@ router.post( documentIds, }, }), - () => Document.count({ where }) + () => + Document.withMembershipScope(user.id, { includeDrafts }).count({ + where, + }) ); const data = await presentDocuments(ctx, documents); From ecafd5f32a8f4e7422d8fa5e2db6ce377ae53ec9 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 25 May 2026 17:03:02 -0400 Subject: [PATCH 087/286] chore: Update JSON importer to use zip streaming (#12380) * chore: Update JSON importer to use zip streaming, new importer flow * chore: Drop teamId from import urlId collision check and remove unused internal-id scaffolding urlId is globally unique on Document/Collection so the team scope was wrong. Also removes leftover internal-id generation in JSONAPIImportTask that was never used in task input/output. * Restore classes used upstream --- .../Settings/components/DropToImport.tsx | 8 + server/models/Import.ts | 33 +- .../FileOperationCreatedProcessor.ts | 18 +- server/queues/processors/ImportsProcessor.ts | 149 ++++- .../queues/processors/JSONImportsProcessor.ts | 35 ++ server/queues/tasks/ImportJSONTask.test.ts | 155 ----- server/queues/tasks/ImportJSONTask.ts | 246 -------- server/queues/tasks/JSONAPIImportTask.test.ts | 458 +++++++++++++++ server/queues/tasks/JSONAPIImportTask.ts | 544 ++++++++++++++++++ server/routes/api/collections/collections.ts | 40 +- server/routes/api/collections/schema.ts | 10 +- server/routes/api/imports/imports.test.ts | 6 + server/routes/api/imports/imports.ts | 23 +- server/routes/api/imports/schema.ts | 5 + server/test/factories.ts | 29 +- server/test/fixtures/outline-json.zip | Bin 46911 -> 0 bytes shared/schema.ts | 105 +++- shared/types.ts | 6 +- 18 files changed, 1397 insertions(+), 473 deletions(-) create mode 100644 server/queues/processors/JSONImportsProcessor.ts delete mode 100644 server/queues/tasks/ImportJSONTask.test.ts delete mode 100644 server/queues/tasks/ImportJSONTask.ts create mode 100644 server/queues/tasks/JSONAPIImportTask.test.ts create mode 100644 server/queues/tasks/JSONAPIImportTask.ts delete mode 100644 server/test/fixtures/outline-json.zip diff --git a/app/scenes/Settings/components/DropToImport.tsx b/app/scenes/Settings/components/DropToImport.tsx index cbc675d92b..e93fbdc296 100644 --- a/app/scenes/Settings/components/DropToImport.tsx +++ b/app/scenes/Settings/components/DropToImport.tsx @@ -67,6 +67,14 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) { permission: permission ?? undefined, } ); + } else if (format === FileOperationFormat.JSON) { + await imports.create( + { service: IntegrationService.JSON }, + { + attachmentId: attachment.id, + permission: permission ?? undefined, + } + ); } else { await collections.import(attachment.id, { format, permission }); } diff --git a/server/models/Import.ts b/server/models/Import.ts index 707c253b06..e78580c05f 100644 --- a/server/models/Import.ts +++ b/server/models/Import.ts @@ -1,6 +1,11 @@ -import type { InferAttributes, InferCreationAttributes } from "sequelize"; +import type { + InferAttributes, + InferCreationAttributes, + SaveOptions, +} from "sequelize"; import { AllowNull, + BeforeCreate, BelongsTo, Column, DataType, @@ -14,6 +19,7 @@ import { import { type ImportInput, type ImportScratch } from "@shared/schema"; import { ImportableIntegrationService, ImportState } from "@shared/types"; import { ImportValidation } from "@shared/validations"; +import { UnprocessableEntityError } from "@server/errors"; import Integration from "./Integration"; import Team from "./Team"; import User from "./User"; @@ -91,6 +97,31 @@ class Import<T extends ImportableIntegrationService> extends ParanoidModel< @ForeignKey(() => Team) @Column(DataType.UUID) teamId: string; + + /** + * Serializes imports per team — blocks creation while another import is + * already in flight. Centralizing the check here lets every code path that + * creates an Import (route handlers, integrations) share one definition of + * "in progress" without duplicating the count query. + */ + @BeforeCreate + // oxlint-disable-next-line @typescript-eslint/no-explicit-any + static async checkInProgress(model: Import<any>, options: SaveOptions) { + const inProgress = await this.count({ + where: { + teamId: model.teamId, + state: [ + ImportState.Created, + ImportState.InProgress, + ImportState.Processed, + ], + }, + transaction: options.transaction, + }); + if (inProgress) { + throw UnprocessableEntityError("An import is already in progress"); + } + } } export default Import; diff --git a/server/queues/processors/FileOperationCreatedProcessor.ts b/server/queues/processors/FileOperationCreatedProcessor.ts index 59c6aff733..0ef5161dbb 100644 --- a/server/queues/processors/FileOperationCreatedProcessor.ts +++ b/server/queues/processors/FileOperationCreatedProcessor.ts @@ -4,7 +4,6 @@ import type { Event as TEvent, FileOperationEvent } from "@server/types"; import ExportHTMLZipTask from "../tasks/ExportHTMLZipTask"; import ExportJSONTask from "../tasks/ExportJSONTask"; import ExportMarkdownZipTask from "../tasks/ExportMarkdownZipTask"; -import ImportJSONTask from "../tasks/ImportJSONTask"; import BaseProcessor from "./BaseProcessor"; export default class FileOperationCreatedProcessor extends BaseProcessor { @@ -18,20 +17,9 @@ export default class FileOperationCreatedProcessor extends BaseProcessor { } ); - // map file operation type and format to the appropriate task. Markdown - // zip imports flow through the API-import pipeline (`imports.create` → - // MarkdownAPIImportTask) and never reach this dispatcher. - if (fileOperation.type === FileOperationType.Import) { - switch (fileOperation.format) { - case FileOperationFormat.JSON: - await new ImportJSONTask().schedule({ - fileOperationId: event.modelId, - }); - break; - default: - } - } - + // Imports no longer flow through FileOperation — both JSON and Markdown + // zip imports run through the API-import pipeline (`imports.create` → + // {Markdown,JSON}APIImportTask). This dispatcher only handles exports. if (fileOperation.type === FileOperationType.Export) { switch (fileOperation.format) { case FileOperationFormat.HTMLZip: diff --git a/server/queues/processors/ImportsProcessor.ts b/server/queues/processors/ImportsProcessor.ts index c245483b0a..d5eec938f1 100644 --- a/server/queues/processors/ImportsProcessor.ts +++ b/server/queues/processors/ImportsProcessor.ts @@ -38,6 +38,7 @@ import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { sequelize } from "@server/storage/database"; import type { Event, ImportEvent } from "@server/types"; +import { generateUrlId } from "@server/utils/url"; import BaseProcessor from "./BaseProcessor"; export const PagePerImportTask = 3; @@ -285,6 +286,9 @@ export default abstract class ImportsProcessor< const createdCollections: Collection[] = []; // External id to internal model id. const idMap: Record<string, string> = {}; + // Cache of resolved external author → internal user id (or undefined when + // no match). Reused across every output in the import. + const userIdCache = new Map<string, string | undefined>(); // These will be imported as collections. Widened to the base input shape // because the abstract class has no narrowed view of T. const importInput = keyBy( @@ -358,6 +362,14 @@ export default abstract class ImportsProcessor< teamId: importModel.teamId, }); + const resolvedCreatedById = + (await this.resolveExternalUserId( + output, + importModel.teamId, + userIdCache, + transaction + )) ?? importModel.createdById; + if (collectionItem) { // imported collection will be placed in the beginning. collectionIdx = fractionalIndex(null, collectionIdx); @@ -376,16 +388,24 @@ export default abstract class ImportsProcessor< createdByName: output.author, }; + const urlId = await this.preserveCollectionUrlId( + output.urlId, + transaction + ); + const collection = Collection.build({ id: internalId, + urlId, name: output.title, icon: output.icon ?? "collection", - color: output.icon ? undefined : randomElement(colorPalette), + color: + output.color ?? + (output.icon ? undefined : randomElement(colorPalette)), content: transformedContent, description: truncate(description, { length: CollectionValidation.maxDescriptionLength, }), - createdById: importModel.createdById, + createdById: resolvedCreatedById, teamId: importModel.createdBy.teamId, apiImportId: importModel.id, index: collectionIdx, @@ -419,17 +439,24 @@ export default abstract class ImportsProcessor< const isRootDocument = !parentExternalId || !!importInput[parentExternalId]; + const urlId = await this.preserveDocumentUrlId( + output.urlId, + transaction + ); + const defaults = { title: output.title, + urlId, icon: output.icon, + color: output.color, content: transformedContent, text: await DocumentHelper.toMarkdown(transformedContent, { includeTitle: false, }), collectionId: collectionInternalId, parentDocumentId: isRootDocument ? undefined : parentInternalId, - createdById: importModel.createdById, - lastModifiedById: importModel.createdById, + createdById: resolvedCreatedById, + lastModifiedById: resolvedCreatedById, teamId: importModel.createdBy.teamId, apiImportId: importModel.id, sourceMetadata: { @@ -439,7 +466,11 @@ export default abstract class ImportsProcessor< }, createdAt: output.createdAt ?? now, updatedAt: output.updatedAt ?? now, - publishedAt: output.updatedAt ?? output.createdAt ?? now, + publishedAt: + output.publishedAt ?? + output.updatedAt ?? + output.createdAt ?? + now, }; try { @@ -612,6 +643,114 @@ export default abstract class ImportsProcessor< return idMap[externalId]; } + /** + * Resolves the original author of an imported item to a user in the target + * team. Tries `createdById` first then falls back to `createdByEmail`; both + * hits and misses are cached. Returns `undefined` when no match is found so + * the caller can fall back to the importing user. + * + * @param output The ImportTaskOutput entry carrying optional original-author + * fields from the source. + * @param teamId Team to scope the lookup to. + * @param cache Map reused across calls within one persistence pass. + * @param transaction Active sequelize transaction. + * @returns The matched internal user id, or undefined. + */ + private async resolveExternalUserId( + output: { createdById?: string; createdByEmail?: string | null }, + teamId: string, + cache: Map<string, string | undefined>, + transaction: Transaction + ): Promise<string | undefined> { + if (output.createdById) { + const cacheKey = `id:${output.createdById}`; + if (cache.has(cacheKey)) { + return cache.get(cacheKey); + } + const user = await User.findOne({ + where: { id: output.createdById, teamId }, + transaction, + }); + if (user) { + cache.set(cacheKey, user.id); + return user.id; + } + cache.set(cacheKey, undefined); + } + + if (output.createdByEmail) { + const email = output.createdByEmail.toLowerCase().trim(); + const cacheKey = `email:${email}`; + if (cache.has(cacheKey)) { + return cache.get(cacheKey); + } + const user = await User.findOne({ + where: { email, teamId }, + transaction, + }); + if (user) { + cache.set(cacheKey, user.id); + if (output.createdById) { + cache.set(`id:${output.createdById}`, user.id); + } + return user.id; + } + cache.set(cacheKey, undefined); + } + + return undefined; + } + + /** + * Honors a urlId from a document export if it does not collide with an + * existing Document, otherwise generates a fresh one. Returns `undefined` + * when no urlId is supplied (so the model's default applies). + * + * @param sourceUrlId The urlId requested by the importer. + * @param transaction Active sequelize transaction. + * @returns A urlId to use, or undefined to fall through to the default. + */ + private async preserveDocumentUrlId( + sourceUrlId: string | undefined, + transaction: Transaction + ): Promise<string | undefined> { + if (!sourceUrlId) { + return undefined; + } + const existing = await Document.unscoped().findOne({ + attributes: ["id"], + paranoid: false, + where: { urlId: sourceUrlId }, + transaction, + }); + return existing ? generateUrlId() : sourceUrlId; + } + + /** + * Honors a urlId from a collection export if it does not collide with an + * existing Collection, otherwise generates a fresh one. Returns `undefined` + * when no urlId is supplied (so the model's default applies). + * + * @param sourceUrlId The urlId requested by the importer. + * @param transaction Active sequelize transaction. + * @returns A urlId to use, or undefined to fall through to the default. + */ + private async preserveCollectionUrlId( + sourceUrlId: string | undefined, + transaction: Transaction + ): Promise<string | undefined> { + if (!sourceUrlId) { + return undefined; + } + const existing = await Collection.unscoped().findOne({ + attributes: ["id"], + paranoid: false, + where: { urlId: sourceUrlId }, + transaction, + }); + return existing ? generateUrlId() : sourceUrlId; + } + /** * Determine whether this import can be processed by this processor. * diff --git a/server/queues/processors/JSONImportsProcessor.ts b/server/queues/processors/JSONImportsProcessor.ts new file mode 100644 index 0000000000..baf4b32fd8 --- /dev/null +++ b/server/queues/processors/JSONImportsProcessor.ts @@ -0,0 +1,35 @@ +import type { Transaction } from "sequelize"; +import type { ImportTaskInput } from "@shared/schema"; +import { ImportTaskPhase, IntegrationService } from "@shared/types"; +import type { Import, ImportTask } from "@server/models"; +import JSONAPIImportTask from "../tasks/JSONAPIImportTask"; +import ImportsProcessor from "./ImportsProcessor"; + +export default class JSONImportsProcessor extends ImportsProcessor<IntegrationService.JSON> { + protected canProcess(importModel: Import<IntegrationService.JSON>): boolean { + return importModel.service === IntegrationService.JSON; + } + + protected getInitialPhase(): ImportTaskPhase { + return ImportTaskPhase.Bootstrap; + } + + protected async buildTasksInput( + importModel: Import<IntegrationService.JSON>, + _transaction: Transaction + ): Promise<ImportTaskInput<IntegrationService.JSON>> { + if (!importModel.scratch?.storageKey) { + throw new Error( + "JSON import is missing scratch.storageKey for the bootstrap phase" + ); + } + + return [{ externalId: importModel.input[0].externalId }]; + } + + protected async scheduleTask( + importTask: ImportTask<IntegrationService.JSON> + ): Promise<void> { + await new JSONAPIImportTask().schedule({ importTaskId: importTask.id }); + } +} diff --git a/server/queues/tasks/ImportJSONTask.test.ts b/server/queues/tasks/ImportJSONTask.test.ts deleted file mode 100644 index a5a752f3f2..0000000000 --- a/server/queues/tasks/ImportJSONTask.test.ts +++ /dev/null @@ -1,155 +0,0 @@ -import path from "node:path"; -import { FileOperation, User } from "@server/models"; -import { - buildFileOperation, - buildUser, - buildTeam, - buildAdmin, -} from "@server/test/factories"; -import ImportJSONTask from "./ImportJSONTask"; - -// The fixture has these values for both documents: -// createdById: "ccec260a-e060-4925-ade8-17cfabaf2cac" -// createdByEmail: "hmac.devo@gmail.com" -const fixtureCreatedById = "ccec260a-e060-4925-ade8-17cfabaf2cac"; -const fixtureCreatedByEmail = "hmac.devo@gmail.com"; - -const fixturePath = path.resolve( - __dirname, - "..", - "..", - "test", - "fixtures", - "outline-json.zip" -); - -function mockHandle(fileOperation: FileOperation) { - Object.defineProperty(fileOperation, "handle", { - get() { - return { - path: fixturePath, - cleanup: async () => {}, - }; - }, - }); - vi.spyOn(FileOperation, "findByPk").mockResolvedValue(fileOperation); -} - -describe("ImportJSONTask", () => { - it("should import the documents, attachments", async () => { - const fileOperation = await buildFileOperation(); - mockHandle(fileOperation); - - const task = new ImportJSONTask(); - const response = await task.perform({ - fileOperationId: fileOperation.id, - }); - - expect(response.collections.size).toEqual(1); - expect(response.documents.size).toEqual(2); - expect(response.attachments.size).toEqual(1); - }); - - describe("user mapping", () => { - it("should map createdById to an existing user by ID", async () => { - // Ensure a user exists with the fixture's createdById, handling the - // case where it may already exist from a prior test run. - let originalAuthor = await User.findByPk(fixtureCreatedById); - const teamId = originalAuthor?.teamId ?? (await buildTeam()).id; - - if (!originalAuthor) { - originalAuthor = await buildUser({ - id: fixtureCreatedById, - teamId, - }); - } - - const admin = await buildAdmin({ teamId }); - const fileOperation = await buildFileOperation({ - userId: admin.id, - teamId, - }); - mockHandle(fileOperation); - - const task = new ImportJSONTask(); - const response = await task.perform({ - fileOperationId: fileOperation.id, - }); - - for (const document of response.documents.values()) { - expect(document.createdById).toEqual(originalAuthor.id); - expect(document.lastModifiedById).toEqual(originalAuthor.id); - } - }); - - it("should fall back to email matching when ID does not match", async () => { - const team = await buildTeam(); - // User has matching email but a different ID - const originalAuthor = await buildUser({ - teamId: team.id, - email: fixtureCreatedByEmail, - }); - const admin = await buildAdmin({ teamId: team.id }); - const fileOperation = await buildFileOperation({ - userId: admin.id, - teamId: team.id, - }); - mockHandle(fileOperation); - - const task = new ImportJSONTask(); - const response = await task.perform({ - fileOperationId: fileOperation.id, - }); - - for (const document of response.documents.values()) { - expect(document.createdById).toEqual(originalAuthor.id); - expect(document.lastModifiedById).toEqual(originalAuthor.id); - } - }); - - it("should fall back to importing user when no match is found", async () => { - const team = await buildTeam(); - const admin = await buildAdmin({ teamId: team.id }); - const fileOperation = await buildFileOperation({ - userId: admin.id, - teamId: team.id, - }); - mockHandle(fileOperation); - - const task = new ImportJSONTask(); - const response = await task.perform({ - fileOperationId: fileOperation.id, - }); - - for (const document of response.documents.values()) { - expect(document.createdById).toEqual(admin.id); - expect(document.lastModifiedById).toEqual(admin.id); - } - }); - - it("should not match users from a different team", async () => { - const team = await buildTeam(); - const otherTeam = await buildTeam(); - // Create user with matching email in a different team - await buildUser({ - teamId: otherTeam.id, - email: fixtureCreatedByEmail, - }); - const admin = await buildAdmin({ teamId: team.id }); - const fileOperation = await buildFileOperation({ - userId: admin.id, - teamId: team.id, - }); - mockHandle(fileOperation); - - const task = new ImportJSONTask(); - const response = await task.perform({ - fileOperationId: fileOperation.id, - }); - - for (const document of response.documents.values()) { - expect(document.createdById).toEqual(admin.id); - } - }); - }); -}); diff --git a/server/queues/tasks/ImportJSONTask.ts b/server/queues/tasks/ImportJSONTask.ts deleted file mode 100644 index f240e05dd4..0000000000 --- a/server/queues/tasks/ImportJSONTask.ts +++ /dev/null @@ -1,246 +0,0 @@ -import path from "node:path"; -import fs from "fs-extra"; -import { find } from "es-toolkit/compat"; -import mime from "mime-types"; -import { Fragment, Node } from "prosemirror-model"; -import { randomUUID } from "node:crypto"; -import type { ProsemirrorData } from "@shared/types"; -import { schema, serializer } from "@server/editor"; -import Logger from "@server/logging/Logger"; -import type { FileOperation } from "@server/models"; -import { Attachment } from "@server/models"; -import type { - AttachmentJSONExport, - CollectionJSONExport, - DocumentJSONExport, - JSONExportMetadata, -} from "@server/types"; -import type { FileTreeNode } from "@server/utils/ImportHelper"; -import ImportHelper from "@server/utils/ImportHelper"; -import type { StructuredImportData } from "./ImportTask"; -import ImportTask from "./ImportTask"; - -export default class ImportJSONTask extends ImportTask { - public async parseData( - dirPath: string, - _: FileOperation - ): Promise<StructuredImportData> { - const tree = await ImportHelper.toFileTree(dirPath); - if (!tree) { - throw new Error("Could not find valid content in zip file"); - } - return this.parseFileTree(tree.children); - } - - /** - * Converts the file structure from zipAsFileTree into documents, - * collections, and attachments. - * - * @param tree An array of FileTreeNode representing root files in the zip - * @returns A StructuredImportData object - */ - private async parseFileTree( - tree: FileTreeNode[] - ): Promise<StructuredImportData> { - let rootPath = ""; - const output: StructuredImportData = { - collections: [], - documents: [], - attachments: [], - }; - - // Load metadata - let metadata: JSONExportMetadata | undefined = undefined; - for (const node of tree) { - if (!rootPath) { - rootPath = path.dirname(node.path); - } - if (node.path === "metadata.json") { - try { - metadata = JSON.parse(await fs.readFile(node.path, "utf8")); - } catch (err) { - throw new Error(`Could not parse metadata.json. ${err.message}`); - } - } - } - - if (!rootPath) { - throw new Error("Could not find root path"); - } - - Logger.debug("task", "Importing JSON metadata", { metadata }); - - function mapDocuments( - documents: { [id: string]: DocumentJSONExport }, - collectionId: string - ) { - Object.values(documents).forEach((node) => { - const id = randomUUID(); - output.documents.push({ - ...node, - path: "", - text: "", - data: node.data, - icon: node.icon ?? node.emoji, - color: node.color, - createdAt: node.createdAt ? new Date(node.createdAt) : undefined, - updatedAt: node.updatedAt ? new Date(node.updatedAt) : undefined, - publishedAt: node.publishedAt ? new Date(node.publishedAt) : null, - collectionId, - externalId: node.id, - mimeType: "application/json", - parentDocumentId: node.parentDocumentId - ? find( - output.documents, - (d) => d.externalId === node.parentDocumentId - )?.id - : null, - id, - }); - }); - } - - function mapAttachments(attachments: { - [id: string]: AttachmentJSONExport; - }) { - Object.values(attachments).forEach((node) => { - const id = randomUUID(); - const mimeType = mime.lookup(node.key) || "application/octet-stream"; - const filePath = path.join(rootPath, node.key); - - // Block path traversal attempts - if (node.key.includes("..")) { - throw new Error(`Invalid attachment path: ${node.key}`); - } - - const resolvedPath = path.resolve(filePath); - if (!resolvedPath.startsWith(path.resolve(rootPath) + path.sep)) { - throw new Error(`Invalid attachment path: ${node.key}`); - } - - output.attachments.push({ - id, - name: node.name, - buffer: () => fs.readFile(filePath), - mimeType, - path: node.key, - externalId: node.id, - }); - }); - } - - // All nodes in the root level should be collections as JSON + metadata - for (const node of tree) { - if (node.children.length > 0 || node.path.endsWith("metadata.json")) { - continue; - } - - let item: CollectionJSONExport; - try { - item = JSON.parse(await fs.readFile(node.path, "utf8")); - } catch (err) { - throw new Error(`Could not parse ${node.path}. ${err.message}`); - } - - const collectionId = randomUUID(); - - output.collections.push({ - ...item.collection, - id: collectionId, - externalId: item.collection.id, - }); - - if (Object.values(item.documents).length) { - mapDocuments(item.documents, collectionId); - } - - if (Object.values(item.attachments).length) { - mapAttachments(item.attachments); - } - } - - // Check all of the attachments we've created against urls and - // replace them with the correct redirect urls before continuing. - if (output.attachments.length) { - this.replaceAttachmentURLs(output); - } - - return output; - } - - private replaceAttachmentURLs(output: StructuredImportData) { - const attachmentTypes = ["attachment", "image", "video"]; - const urlRegex = /\/api\/attachments.redirect\?id=(.+)/; - - const attachmentExternalIdMap = output.attachments.reduce( - (obj, attachment) => { - if (attachment.externalId) { - obj[attachment.externalId] = attachment; - } - return obj; - }, - {} as Record<string, StructuredImportData["attachments"][number]> - ); - - const getRedirectPath = (existingPath?: string): string | undefined => { - if (!existingPath) { - return; - } - - const match = existingPath.match(urlRegex); - if (!match) { - return existingPath; - } - - const attachment = attachmentExternalIdMap[match[1]]; - // maintain the existing behaviour of using existingPath when attachment id is not present. - return attachment - ? Attachment.getRedirectUrl(attachment.id) - : existingPath; - }; - - const transformAttachmentNode = (node: Node): Node => { - const json = node.toJSON() as ProsemirrorData; - const attrs = json.attrs ?? {}; - - if (node.type.name === "attachment") { - // attachment node uses 'href' attribute - attrs.href = getRedirectPath(attrs.href as string); - } else if (node.type.name === "image" || node.type.name === "video") { - // image & video nodes use 'src' attribute - attrs.src = getRedirectPath(attrs.src as string); - } - - json.attrs = attrs; - return Node.fromJSON(schema, json); - }; - - const transformFragment = (fragment: Fragment): Fragment => { - const nodes: Node[] = []; - - fragment.forEach((node) => { - nodes.push( - attachmentTypes.includes(node.type.name) - ? transformAttachmentNode(node) - : node.copy(transformFragment(node.content)) - ); - }); - - return Fragment.fromArray(nodes); - }; - - for (const collection of output.collections) { - const node = Node.fromJSON(schema, collection.data); - const transformedNode = node.copy(transformFragment(node.content)); - collection.description = serializer.serialize(transformedNode); - collection.data = transformedNode.toJSON(); - } - - for (const document of output.documents) { - const node = Node.fromJSON(schema, document.data); - const transformedNode = node.copy(transformFragment(node.content)); - document.data = transformedNode.toJSON(); - document.text = serializer.serialize(transformedNode); - } - } -} diff --git a/server/queues/tasks/JSONAPIImportTask.test.ts b/server/queues/tasks/JSONAPIImportTask.test.ts new file mode 100644 index 0000000000..507d9c62cf --- /dev/null +++ b/server/queues/tasks/JSONAPIImportTask.test.ts @@ -0,0 +1,458 @@ +import { randomUUID } from "node:crypto"; +import fs from "fs-extra"; +import JSZip from "jszip"; +import tmp from "tmp"; +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import { + Attachment, + Collection, + Document, + ImportTask, + User, +} from "@server/models"; +import FileStorage from "@server/storage/files"; +import { + CollectionPermission, + ImportTaskPhase, + ImportTaskState, + IntegrationService, +} from "@shared/types"; +import { + buildAdmin, + buildImport, + buildTeam, + buildUser, +} from "@server/test/factories"; +import JSONImportsProcessor from "../processors/JSONImportsProcessor"; +import JSONAPIImportTask, { + rewriteAttachmentReferences, +} from "./JSONAPIImportTask"; + +// Fixed external IDs and email used across the user-mapping tests — these +// are the values written into every freshly generated zip. +const FIXTURE_USER_ID = "ccec260a-e060-4925-ade8-17cfabaf2cac"; +const FIXTURE_USER_EMAIL = "hmac.devo@gmail.com"; + +interface BuiltZip { + filePath: string; + cleanup: () => Promise<void>; +} + +/** + * Builds a self-contained JSON export zip in a tmp file. Each call produces + * fresh urlIds and document ids so concurrent tests (across files) never + * collide on `urlId` uniqueness. The structure matches what ExportJSONTask + * produces: a single collection JSON + metadata.json at the zip root, + * documents carrying source user attribution, plus one referenced + * attachment. + */ +async function buildJSONExportZip(): Promise<BuiltZip> { + const collectionExternalId = randomUUID(); + const collectionUrlId = randomUrlId(); + const documentOneId = randomUUID(); + const documentOneUrlId = randomUrlId(); + const documentTwoId = randomUUID(); + const documentTwoUrlId = randomUrlId(); + const attachmentExternalId = randomUUID(); + const attachmentKey = `uploads/${FIXTURE_USER_ID}/${attachmentExternalId}/pikachu.jpg`; + + const collectionExport = { + collection: { + id: collectionExternalId, + urlId: collectionUrlId, + name: "Test JSON", + data: { type: "doc", content: [{ type: "paragraph" }] }, + sort: { field: "index", direction: "asc" }, + icon: "beaker", + color: "#FF825C", + permission: null, + documentStructure: [ + { id: documentOneId, title: "Document 1", children: [] }, + { id: documentTwoId, title: "Document 2", children: [] }, + ], + }, + documents: { + [documentOneId]: { + id: documentOneId, + urlId: documentOneUrlId, + title: "Document 1", + icon: null, + color: null, + data: { + type: "doc", + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "Some random text" }], + }, + { + type: "paragraph", + content: [ + { + type: "image", + attrs: { + src: `/api/attachments.redirect?id=${attachmentExternalId}`, + alt: null, + layoutClass: null, + title: null, + }, + }, + ], + }, + ], + }, + createdById: FIXTURE_USER_ID, + createdByName: "hmac.devo", + createdByEmail: FIXTURE_USER_EMAIL, + createdAt: "2024-07-18T18:03:41.622Z", + updatedAt: "2024-07-18T18:04:46.133Z", + publishedAt: "2024-07-18T18:03:45.710Z", + fullWidth: false, + parentDocumentId: null, + }, + [documentTwoId]: { + id: documentTwoId, + urlId: documentTwoUrlId, + title: "Document 2", + icon: null, + color: null, + data: { + type: "doc", + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "Doc two body" }], + }, + ], + }, + createdById: FIXTURE_USER_ID, + createdByName: "hmac.devo", + createdByEmail: FIXTURE_USER_EMAIL, + createdAt: "2024-07-18T18:03:41.622Z", + updatedAt: "2024-07-18T18:04:46.133Z", + publishedAt: "2024-07-18T18:03:45.710Z", + fullWidth: false, + parentDocumentId: null, + }, + }, + attachments: { + [attachmentExternalId]: { + id: attachmentExternalId, + documentId: documentOneId, + contentType: "image/jpeg", + name: "pikachu.jpg", + size: 6, + key: attachmentKey, + }, + }, + }; + + const metadata = { + exportVersion: 1, + version: "0.78.0-0", + createdAt: "2024-07-18T18:18:14.221Z", + createdById: FIXTURE_USER_ID, + createdByEmail: FIXTURE_USER_EMAIL, + }; + + const zip = new JSZip(); + zip.file("metadata.json", JSON.stringify(metadata)); + zip.file("Test JSON.json", JSON.stringify(collectionExport)); + zip.file(attachmentKey, Buffer.from("pixels")); + + const buffer = await zip.generateAsync({ type: "nodebuffer" }); + const filePath: string = await new Promise((resolve, reject) => { + tmp.file({ postfix: ".zip" }, (err, p) => (err ? reject(err) : resolve(p))); + }); + await fs.writeFile(filePath, buffer); + + return { + filePath, + cleanup: async () => { + await fs.rm(filePath, { force: true }).catch(() => {}); + }, + }; +} + +function randomUrlId(): string { + return Math.random().toString(36).slice(2, 12).padEnd(10, "x").slice(0, 10); +} + +/** + * Drives a JSON import end-to-end against an in-memory fixture: runs the + * bootstrap task, every subsequent per-page wave, then invokes the + * `imports.processed` handler so collections/documents/attachments land. + */ +async function runImport(opts: { + teamId: string; + createdById: string; + zipPath: string; +}): Promise<{ importId: string }> { + vi.spyOn(FileStorage, "getFileHandle").mockResolvedValue({ + path: opts.zipPath, + cleanup: async () => {}, + }); + + const importModel = await buildImport({ + teamId: opts.teamId, + createdById: opts.createdById, + service: IntegrationService.JSON, + integrationId: null, + input: [ + { externalId: randomUUID(), permission: CollectionPermission.Read }, + ], + scratch: { storageKey: "fixture-key" }, + }); + + // Seed the bootstrap row that JSONImportsProcessor would have created. + const placeholderExternalId = (importModel.input[0] as { externalId: string }) + .externalId; + const bootstrapTask = await ImportTask.create< + ImportTask<IntegrationService.JSON> + >({ + state: ImportTaskState.Created, + phase: ImportTaskPhase.Bootstrap, + input: [{ externalId: placeholderExternalId }], + importId: importModel.id, + } as Parameters<typeof ImportTask.create>[0]); + + // Bull's schedule() would queue follow-on work. Drive it inline by + // re-running perform() against every Created task in createdAt order. + vi.spyOn(JSONAPIImportTask.prototype, "schedule").mockResolvedValue( + undefined as never + ); + + await new JSONAPIImportTask().perform({ importTaskId: bootstrapTask.id }); + + let remaining = await ImportTask.findOne<ImportTask<IntegrationService.JSON>>( + { + where: { state: ImportTaskState.Created, importId: importModel.id }, + order: [["createdAt", "ASC"]], + } + ); + while (remaining) { + await new JSONAPIImportTask().perform({ importTaskId: remaining.id }); + remaining = await ImportTask.findOne<ImportTask<IntegrationService.JSON>>({ + where: { state: ImportTaskState.Created, importId: importModel.id }, + order: [["createdAt", "ASC"]], + }); + } + + // Once all per-task work is done, APIImportTask transitions the Import to + // Processed and fires the persistence pass via JSONImportsProcessor. + await new JSONAPIImportTask().perform({ + importTaskId: bootstrapTask.id, + }); + + await new JSONImportsProcessor().perform({ + name: "imports.processed", + modelId: importModel.id, + teamId: opts.teamId, + actorId: opts.createdById, + ip: "127.0.0.1", + changes: { attributes: {}, previous: {} }, + }); + + return { importId: importModel.id }; +} + +describe("JSONAPIImportTask", () => { + let zip: BuiltZip; + + beforeEach(async () => { + zip = await buildJSONExportZip(); + }); + + afterEach(async () => { + await zip.cleanup(); + }); + + it("imports collections, documents and attachments from the fixture", async () => { + const admin = await buildAdmin(); + const { importId } = await runImport({ + teamId: admin.teamId, + createdById: admin.id, + zipPath: zip.filePath, + }); + + const collections = await Collection.findAll({ + where: { apiImportId: importId }, + }); + const documents = await Document.findAll({ + where: { apiImportId: importId }, + }); + const attachments = await Attachment.findAll({ + where: { teamId: admin.teamId }, + }); + + expect(collections.length).toBe(1); + expect(documents.length).toBe(2); + expect(attachments.length).toBeGreaterThanOrEqual(1); + }); + + describe("user mapping", () => { + it("maps createdById to an existing user by ID", async () => { + let originalAuthor = await User.findByPk(FIXTURE_USER_ID); + const teamId = originalAuthor?.teamId ?? (await buildTeam()).id; + if (!originalAuthor) { + originalAuthor = await buildUser({ id: FIXTURE_USER_ID, teamId }); + } + + const admin = await buildAdmin({ teamId }); + const { importId } = await runImport({ + teamId, + createdById: admin.id, + zipPath: zip.filePath, + }); + + const documents = await Document.findAll({ + where: { apiImportId: importId }, + }); + expect(documents.length).toBe(2); + for (const document of documents) { + expect(document.createdById).toBe(originalAuthor.id); + expect(document.lastModifiedById).toBe(originalAuthor.id); + } + }); + + it("falls back to email matching when ID does not match", async () => { + const team = await buildTeam(); + const originalAuthor = await buildUser({ + teamId: team.id, + email: FIXTURE_USER_EMAIL, + }); + const admin = await buildAdmin({ teamId: team.id }); + const { importId } = await runImport({ + teamId: team.id, + createdById: admin.id, + zipPath: zip.filePath, + }); + + const documents = await Document.findAll({ + where: { apiImportId: importId }, + }); + expect(documents.length).toBe(2); + for (const document of documents) { + expect(document.createdById).toBe(originalAuthor.id); + expect(document.lastModifiedById).toBe(originalAuthor.id); + } + }); + + it("falls back to importing user when no match is found", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const { importId } = await runImport({ + teamId: team.id, + createdById: admin.id, + zipPath: zip.filePath, + }); + + const documents = await Document.findAll({ + where: { apiImportId: importId }, + }); + expect(documents.length).toBe(2); + for (const document of documents) { + expect(document.createdById).toBe(admin.id); + expect(document.lastModifiedById).toBe(admin.id); + } + }); + + it("does not match users from a different team", async () => { + const team = await buildTeam(); + const otherTeam = await buildTeam(); + await buildUser({ + teamId: otherTeam.id, + email: FIXTURE_USER_EMAIL, + }); + const admin = await buildAdmin({ teamId: team.id }); + const { importId } = await runImport({ + teamId: team.id, + createdById: admin.id, + zipPath: zip.filePath, + }); + + const documents = await Document.findAll({ + where: { apiImportId: importId }, + }); + expect(documents.length).toBe(2); + for (const document of documents) { + expect(document.createdById).toBe(admin.id); + } + }); + }); +}); + +describe("rewriteAttachmentReferences", () => { + it("rewrites image src to new attachment id", () => { + const out = rewriteAttachmentReferences( + { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "image", + attrs: { + src: "/api/attachments.redirect?id=external-1", + alt: null, + }, + }, + ], + }, + ], + }, + { "external-1": "new-1" } + ); + const image = out.content?.[0].content?.[0]; + expect(image?.attrs?.src).toBe("/api/attachments.redirect?id=new-1"); + }); + + it("rewrites attachment node href and id together", () => { + const out = rewriteAttachmentReferences( + { + type: "doc", + content: [ + { + type: "attachment", + attrs: { + id: "external-2", + href: "/api/attachments.redirect?id=external-2", + title: "a.pdf", + }, + }, + ], + }, + { "external-2": "new-2" } + ); + const attachment = out.content?.[0]; + expect(attachment?.attrs?.href).toBe("/api/attachments.redirect?id=new-2"); + expect(attachment?.attrs?.id).toBe("new-2"); + }); + + it("leaves unknown references untouched", () => { + const out = rewriteAttachmentReferences( + { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "image", + attrs: { + src: "/api/attachments.redirect?id=does-not-exist", + }, + }, + ], + }, + ], + }, + { "external-1": "new-1" } + ); + const image = out.content?.[0].content?.[0]; + expect(image?.attrs?.src).toBe( + "/api/attachments.redirect?id=does-not-exist" + ); + }); +}); diff --git a/server/queues/tasks/JSONAPIImportTask.ts b/server/queues/tasks/JSONAPIImportTask.ts new file mode 100644 index 0000000000..de01d4df53 --- /dev/null +++ b/server/queues/tasks/JSONAPIImportTask.ts @@ -0,0 +1,544 @@ +import path from "node:path"; +import { randomUUID } from "node:crypto"; +import { Fragment, Node } from "prosemirror-model"; +import { UniqueConstraintError } from "sequelize"; +import type { + ImportTaskInput, + ImportTaskOutput, + JSONAttachmentManifestItem, + JSONPageImportTaskInputItem, +} from "@shared/schema"; +import type { + IntegrationService, + ProsemirrorData, + ProsemirrorDoc, +} from "@shared/types"; +import { AttachmentPreset } from "@shared/types"; +import attachmentCreator from "@server/commands/attachmentCreator"; +import { createContext } from "@server/context"; +import { schema } from "@server/editor"; +import env from "@server/env"; +import Logger from "@server/logging/Logger"; +import type { ImportTask } from "@server/models"; +import { Attachment } from "@server/models"; +import AttachmentHelper from "@server/models/helpers/AttachmentHelper"; +import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; +import { sequelize } from "@server/storage/database"; +import FileStorage from "@server/storage/files"; +import type { + AttachmentJSONExport, + CollectionJSONExport, + DocumentJSONExport, + JSONExportMetadata, +} from "@server/types"; +import ZipHelper from "@server/utils/ZipHelper"; +import type { ProcessOutput } from "./APIImportTask"; +import APIImportTask from "./APIImportTask"; + +type Service = IntegrationService.JSON; + +const REDIRECT_URL_REGEX = /\/api\/attachments\.redirect\?id=([^&"'\s)]+)/g; +const ATTACHMENT_NODE_TYPES = ["attachment", "image", "video"]; + +interface DiscoveredDocument { + externalId: string; + parentExternalId?: string; + collectionExternalId: string; + export: DocumentJSONExport; + children: DiscoveredDocument[]; +} + +/** + * Rewrites `/api/attachments.redirect?id=<externalId>` references in a + * ProseMirror document to point at the corresponding new attachment ids. + * Operates on both `href` (attachment nodes) and `src` (image / video nodes). + * Also updates the `id` attribute on attachment nodes so it lines up with the + * created Attachment row. Unknown ids are left intact so a malformed export + * cannot crash the importer. + * + * Exported for tests; not part of the module's public surface. + * + * @param content ProseMirror content from a document or collection. + * @param attachmentIdMap Map of external attachment id → new internal id. + * @returns ProseMirror content with rewritten attachment references. + */ +export function rewriteAttachmentReferences( + content: ProsemirrorData, + attachmentIdMap: Record<string, string> +): ProsemirrorData { + const rewriteUrl = (url?: string): string | undefined => { + if (!url) { + return url; + } + return url.replace(REDIRECT_URL_REGEX, (full, externalId: string) => { + const newId = attachmentIdMap[externalId]; + return newId ? Attachment.getRedirectUrl(newId) : full; + }); + }; + + const transformAttachmentNode = (node: Node): Node => { + const json = node.toJSON() as ProsemirrorData; + const attrs = { ...(json.attrs ?? {}) }; + + if (node.type.name === "attachment") { + const href = attrs.href as string | undefined; + attrs.href = rewriteUrl(href); + + // Keep `id` aligned with the rewritten URL so downstream consumers that + // read the attachment id (e.g. size hydration in ImportsProcessor) can + // resolve it via the new Attachment row. + if (typeof attrs.id === "string" && attachmentIdMap[attrs.id]) { + attrs.id = attachmentIdMap[attrs.id]; + } else if (typeof href === "string") { + const match = /\/api\/attachments\.redirect\?id=([^&"'\s)]+)/.exec( + href + ); + if (match && attachmentIdMap[match[1]]) { + attrs.id = attachmentIdMap[match[1]]; + } + } + } else if (node.type.name === "image" || node.type.name === "video") { + attrs.src = rewriteUrl(attrs.src as string | undefined); + } + + json.attrs = attrs; + return Node.fromJSON(schema, json); + }; + + const transformFragment = (fragment: Fragment): Fragment => { + const nodes: Node[] = []; + fragment.forEach((node) => { + nodes.push( + ATTACHMENT_NODE_TYPES.includes(node.type.name) + ? transformAttachmentNode(node) + : node.copy(transformFragment(node.content)) + ); + }); + return Fragment.fromArray(nodes); + }; + + const doc = Node.fromJSON(schema, content); + return doc.copy(transformFragment(doc.content)).toJSON() as ProsemirrorData; +} + +export default class JSONAPIImportTask extends APIImportTask<Service> { + protected shouldUploadAttachmentsPerPage(): boolean { + return false; + } + + protected async scheduleNextTask(importTask: ImportTask<Service>) { + await new JSONAPIImportTask().schedule({ importTaskId: importTask.id }); + } + + protected async onAllTasksCompleted( + lastImportTask: ImportTask<Service> + ): Promise<void> { + const scratch = lastImportTask.import.scratch; + if (!scratch?.storageKey || !scratch.manifest?.length) { + return; + } + + const handle = await FileStorage.getFileHandle(scratch.storageKey); + + try { + const createdBy = lastImportTask.import.createdBy; + const manifestByPath = new Map<string, JSONAttachmentManifestItem>( + scratch.manifest.map((item) => [item.pathInZip, item]) + ); + const maxAttachmentSize = AttachmentHelper.presetToMaxUploadSize( + AttachmentPreset.DocumentAttachment + ); + const seen = new Set<string>(); + + await ZipHelper.walk(handle.path, async (entry) => { + if (entry.isDirectory) { + return; + } + // Normalize to match the bootstrap-phase pathInZip (segments rejoined + // with `/`, no leading `./` or empty segments). + const normalized = entry.fileName + .split("/") + .filter((s) => s !== "" && s !== ".") + .join("/"); + const item = manifestByPath.get(normalized); + if (!item) { + return; + } + seen.add(item.pathInZip); + const buffer = await entry.readBuffer(maxAttachmentSize); + + try { + await sequelize.transaction(async (transaction) => + attachmentCreator({ + source: "import", + preset: AttachmentPreset.DocumentAttachment, + id: item.id, + name: item.name, + type: item.mimeType, + buffer, + user: createdBy, + ctx: createContext({ user: createdBy, transaction }), + fetchOptions: { + timeout: env.FILE_STORAGE_IMPORT_TIMEOUT, + }, + }) + ); + } catch (err) { + // Each attachment commits in its own transaction, so a retry of + // this hook can re-encounter ids that already landed. Treat the + // unique-id collision as a no-op so the import remains resumable. + if (err instanceof UniqueConstraintError) { + return; + } + throw err; + } + }); + + for (const item of scratch.manifest) { + if (!seen.has(item.pathInZip)) { + Logger.warn( + `JSON import attachment missing in zip, skipping: ${item.pathInZip}` + ); + } + } + } finally { + await handle.cleanup().catch(() => {}); + } + } + + protected async processBootstrap( + importTask: ImportTask<Service> + ): Promise<ProcessOutput<Service>> { + const storageKey = importTask.import.scratch?.storageKey; + if (!storageKey) { + throw new Error("JSON import is missing scratch.storageKey"); + } + + const handle = await FileStorage.getFileHandle(storageKey); + + try { + // Pre-load every JSON file at the top level of the zip during the walk. + // ZipHelper streams the archive end-to-end; capturing here means we can + // pair tree nodes with their parsed content without re-opening the zip. + const jsonByPath = new Map<string, unknown>(); + const maxJSONSize = AttachmentHelper.presetToMaxUploadSize( + AttachmentPreset.WorkspaceImport + ); + + const tree = await ZipHelper.toFileTree( + handle.path, + async (node, entry) => { + if (path.extname(node.name).toLowerCase() !== ".json") { + return; + } + const buffer = await entry.readBuffer(maxJSONSize); + try { + jsonByPath.set(node.pathInZip, JSON.parse(buffer.toString("utf8"))); + } catch (err) { + throw new Error( + `Could not parse ${node.name}. ${err instanceof Error ? err.message : "unknown error"}` + ); + } + } + ); + + if (tree.children.length === 0) { + throw new Error("Could not find valid content in zip file"); + } + + const metadata = jsonByPath.get("metadata.json") as + | JSONExportMetadata + | undefined; + Logger.debug("task", "Importing JSON metadata", { metadata }); + + const manifest: JSONAttachmentManifestItem[] = []; + // External attachment id → manifest entry id (the new Attachment.id). + const attachmentIdMap: Record<string, string> = {}; + + const collectionExports: { + externalId: string; + data: CollectionJSONExport; + }[] = []; + + for (const node of tree.children) { + if (node.children.length > 0 || node.name === "metadata.json") { + continue; + } + if (path.extname(node.name).toLowerCase() !== ".json") { + Logger.debug("task", `Unhandled file in zip: ${node.pathInZip}`, { + importTaskId: importTask.id, + }); + continue; + } + + const parsed = jsonByPath.get(node.pathInZip) as + | CollectionJSONExport + | undefined; + if (!parsed) { + continue; + } + + const collectionExternalId = parsed.collection.id; + + collectionExports.push({ + externalId: collectionExternalId, + data: parsed, + }); + + for (const attachment of Object.values(parsed.attachments ?? {})) { + this.registerAttachment(attachment, manifest, attachmentIdMap); + } + } + + // Discover documents per collection, building the parent/child tree + // shape expected by the per-page cascade. + const collections = collectionExports.map((c) => + this.buildCollection(c.externalId, c.data) + ); + + // Replace anything past the create-time placeholder with the freshly + // discovered collections so a retried bootstrap doesn't accumulate + // duplicate entries. + const associatedImport = importTask.import; + const placeholder = associatedImport.input[0]; + associatedImport.input = [ + placeholder, + ...collections.map((c) => ({ + externalId: c.externalId, + permission: placeholder.permission, + })), + ]; + associatedImport.scratch = { storageKey, manifest }; + await associatedImport.save(); + + // Collection placeholder items so ImportsProcessor iterates them + // during the bootstrap row (the earliest createdAt) — that guarantees + // collections land in the DB before any per-page document references + // them. + importTask.input = [ + importTask.input[0], + ...collections.map<JSONPageImportTaskInputItem>((c) => ({ + externalId: c.externalId, + title: c.export.name, + urlId: c.export.urlId, + icon: c.export.icon, + color: c.export.color, + data: c.export.data ?? ProsemirrorHelper.getEmptyDocument(), + attachmentIdMap, + })), + ]; + + const collectionOutputs: ImportTaskOutput = collections.map((c) => ({ + externalId: c.externalId, + title: c.export.name, + urlId: c.export.urlId, + icon: c.export.icon, + color: c.export.color, + content: rewriteAttachmentReferences( + c.export.data ?? ProsemirrorHelper.getEmptyDocument(), + attachmentIdMap + ) as ProsemirrorDoc, + })); + + // First wave of document tasks: only top-level docs in each collection. + // Each carries its descendants in `children` and the per-page handler + // re-emits them as the next wave of childTasksInput, producing a strict + // depth-ordered cascade of ImportTask rows so parent FKs are always + // satisfied at child-doc creation time. + const childTasksInput: ImportTaskInput<Service> = collections.flatMap( + (c) => c.children.map((d) => this.toPageInput(d, attachmentIdMap)) + ); + + return { taskOutput: collectionOutputs, childTasksInput }; + } finally { + await handle.cleanup().catch(() => {}); + } + } + + protected async processPage( + importTask: ImportTask<Service> + ): Promise<ProcessOutput<Service>> { + const taskOutput: ImportTaskOutput = []; + const childTasksInput: JSONPageImportTaskInputItem[] = []; + + const items = importTask.input as JSONPageImportTaskInputItem[]; + for (const item of items) { + const transformed = rewriteAttachmentReferences( + item.data, + item.attachmentIdMap + ) as ProsemirrorDoc; + + taskOutput.push({ + externalId: item.externalId, + title: item.title, + urlId: item.urlId, + icon: item.icon, + color: item.color, + author: item.createdByName, + createdById: item.createdById, + createdByEmail: item.createdByEmail, + createdAt: item.createdAt ? new Date(item.createdAt) : undefined, + updatedAt: item.updatedAt ? new Date(item.updatedAt) : undefined, + publishedAt: item.publishedAt ? new Date(item.publishedAt) : null, + content: transformed, + }); + + if (item.children?.length) { + childTasksInput.push(...item.children); + } + } + + return { taskOutput, childTasksInput }; + } + + /** + * Discovers documents in a parsed CollectionJSONExport, recursively packing + * each parent's direct descendants into `children`. Falls back to the + * export's `documentStructure` when present (preserves authored order) and + * otherwise walks the `documents` map. + * + * @param externalId The collection's external id. + * @param data Parsed CollectionJSONExport. + * @returns A collection record with a tree of `DiscoveredDocument`s. + */ + private buildCollection( + externalId: string, + data: CollectionJSONExport + ): { + externalId: string; + export: CollectionJSONExport["collection"]; + children: DiscoveredDocument[]; + } { + const docMap: Record<string, DocumentJSONExport> = data.documents ?? {}; + + const makeNode = ( + doc: DocumentJSONExport, + parentExternalId?: string + ): DiscoveredDocument => ({ + externalId: doc.id, + parentExternalId: parentExternalId ?? doc.parentDocumentId ?? undefined, + collectionExternalId: externalId, + export: doc, + children: [], + }); + + // Prefer the authored `documentStructure` if available — it preserves + // sibling order; otherwise fall back to parent/child links. + const roots: DiscoveredDocument[] = []; + + if (data.collection.documentStructure?.length) { + const walk = ( + navNodes: { id: string; children?: typeof navNodes }[], + parentExternalId: string | undefined, + out: DiscoveredDocument[] + ) => { + for (const nav of navNodes) { + const doc = docMap[nav.id]; + if (!doc) { + continue; + } + const node = makeNode(doc, parentExternalId); + out.push(node); + if (nav.children?.length) { + walk(nav.children, doc.id, node.children); + } + } + }; + walk(data.collection.documentStructure, undefined, roots); + } else { + const byParent = new Map<string | undefined, DocumentJSONExport[]>(); + for (const doc of Object.values(docMap)) { + const parent = doc.parentDocumentId ?? undefined; + const bucket = byParent.get(parent) ?? []; + bucket.push(doc); + byParent.set(parent, bucket); + } + + const walk = ( + parentExternalId: string | undefined, + out: DiscoveredDocument[] + ) => { + const docs = byParent.get(parentExternalId) ?? []; + for (const doc of docs) { + const node = makeNode(doc, parentExternalId); + out.push(node); + walk(doc.id, node.children); + } + }; + walk(undefined, roots); + } + + return { + externalId, + export: data.collection, + children: roots, + }; + } + + /** + * Records an attachment in the manifest and the external→new id map. Skips + * duplicates so collections that share an attachment id (unlikely in a + * valid export, but possible) only land once. + * + * @param attachment The attachment as it appears in the export. + * @param manifest Manifest array to push entries into. + * @param attachmentIdMap External id → new internal id map. + */ + private registerAttachment( + attachment: AttachmentJSONExport, + manifest: JSONAttachmentManifestItem[], + attachmentIdMap: Record<string, string> + ): void { + if (attachmentIdMap[attachment.id]) { + return; + } + if (attachment.key.includes("..")) { + throw new Error(`Invalid attachment path: ${attachment.key}`); + } + const id = randomUUID(); + attachmentIdMap[attachment.id] = id; + manifest.push({ + id, + externalId: attachment.id, + name: attachment.name, + mimeType: attachment.contentType || "application/octet-stream", + pathInZip: attachment.key, + }); + } + + /** + * Converts a discovered document subtree into a per-page task input, + * recursively packing the doc's descendants into the `children` field so + * each tree-depth runs as its own task wave. + * + * @param doc The discovered document, including its descendants. + * @param attachmentIdMap External attachment id → new internal id map. + * @returns A self-contained per-page task input. + */ + private toPageInput( + doc: DiscoveredDocument, + attachmentIdMap: Record<string, string> + ): JSONPageImportTaskInputItem { + const exported = doc.export; + return { + externalId: doc.externalId, + parentExternalId: doc.parentExternalId, + collectionExternalId: doc.collectionExternalId, + title: exported.title, + urlId: exported.urlId, + icon: exported.icon ?? exported.emoji, + color: exported.color, + data: exported.data, + createdById: exported.createdById, + createdByName: exported.createdByName, + createdByEmail: exported.createdByEmail, + createdAt: exported.createdAt, + updatedAt: exported.updatedAt, + publishedAt: exported.publishedAt, + attachmentIdMap, + children: doc.children.length + ? doc.children.map((c) => this.toPageInput(c, attachmentIdMap)) + : undefined, + }; + } +} diff --git a/server/routes/api/collections/collections.ts b/server/routes/api/collections/collections.ts index c04070bea7..9c358dde68 100644 --- a/server/routes/api/collections/collections.ts +++ b/server/routes/api/collections/collections.ts @@ -1,13 +1,17 @@ import Router from "koa-router"; +import { randomUUID } from "node:crypto"; +import { truncate } from "es-toolkit/compat"; import type { WhereOptions } from "sequelize"; import { Sequelize, Op } from "sequelize"; import { CollectionPermission, CollectionStatusFilter, - FileOperationState, - FileOperationType, + FileOperationFormat, + ImportState, + IntegrationService, UserRole, } from "@shared/types"; +import { ImportValidation } from "@shared/validations"; import collectionExporter from "@server/commands/collectionExporter"; import teamUpdater from "@server/commands/teamUpdater"; import auth from "@server/middlewares/authentication"; @@ -22,8 +26,8 @@ import { User, Group, Attachment, - FileOperation, Document, + Import, } from "@server/models"; import { authorize } from "@server/policies"; import { @@ -161,17 +165,27 @@ router.post( }); authorize(user, "read", attachment); - await FileOperation.createWithCtx(ctx, { - type: FileOperationType.Import, - state: FileOperationState.Creating, - format, - size: attachment.size, - key: attachment.key, - userId: user.id, + const service = + format === FileOperationFormat.MarkdownZip + ? IntegrationService.Markdown + : IntegrationService.JSON; + + await Import.createWithCtx(ctx, { + name: truncate(attachment.name, { + length: ImportValidation.maxNameLength, + }), + service, + state: ImportState.Created, + input: [ + { + externalId: randomUUID(), + permission: permission ?? undefined, + }, + ], + scratch: { storageKey: attachment.key }, + integrationId: null, + createdById: user.id, teamId: user.teamId, - options: { - permission, - }, }); ctx.body = { diff --git a/server/routes/api/collections/schema.ts b/server/routes/api/collections/schema.ts index 7a746bfd77..3d4dd3c0ec 100644 --- a/server/routes/api/collections/schema.ts +++ b/server/routes/api/collections/schema.ts @@ -76,10 +76,14 @@ export const CollectionsImportSchema = BaseSchema.extend({ .nullish() .transform((val) => (isUndefined(val) ? null : val)), attachmentId: z.uuid(), - // Markdown zip imports now run through `imports.create` → - // MarkdownAPIImportTask, so only JSON is accepted here. + /** + * The format of the upload. Both `json` and `outline-markdown` are + * routed through the API-import pipeline (see `imports.create`); the + * `format` field is retained for backwards compatibility with API + * clients calling this endpoint directly. + */ format: z - .literal(FileOperationFormat.JSON) + .enum([FileOperationFormat.JSON, FileOperationFormat.MarkdownZip]) .prefault(FileOperationFormat.JSON), }), }); diff --git a/server/routes/api/imports/imports.test.ts b/server/routes/api/imports/imports.test.ts index eb5f949ad7..ef38970c06 100644 --- a/server/routes/api/imports/imports.test.ts +++ b/server/routes/api/imports/imports.test.ts @@ -59,6 +59,12 @@ describe("#imports.create", () => { const integration = await buildIntegration({ userId: admin.id, teamId: admin.teamId, + service: IntegrationService.Notion, + type: IntegrationType.Import, + settings: { + externalWorkspace: { id: "ws-1", name: "Test Workspace" }, + // oxlint-disable-next-line @typescript-eslint/no-explicit-any + } as any, }); const input: NotionImportInput = [ { permission: CollectionPermission.Read }, diff --git a/server/routes/api/imports/imports.ts b/server/routes/api/imports/imports.ts index 581ac9beab..3e0c98c378 100644 --- a/server/routes/api/imports/imports.ts +++ b/server/routes/api/imports/imports.ts @@ -5,7 +5,6 @@ import type { WhereOptions } from "sequelize"; import type { IntegrationType } from "@shared/types"; import { ImportState, IntegrationService, UserRole } from "@shared/types"; import { ImportValidation } from "@shared/validations"; -import { UnprocessableEntityError } from "@server/errors"; import auth from "@server/middlewares/authentication"; import { rateLimiter } from "@server/middlewares/rateLimiter"; import { transaction } from "@server/middlewares/transaction"; @@ -33,22 +32,10 @@ router.post( authorize(user, "createImport", user.team); - const importInProgress = await Import.count({ - where: { - state: [ - ImportState.Created, - ImportState.InProgress, - ImportState.Processed, - ], - teamId: user.teamId, - }, - }); - - if (importInProgress) { - throw UnprocessableEntityError("An import is already in progress"); - } - - if (body.service === IntegrationService.Markdown) { + if ( + body.service === IntegrationService.Markdown || + body.service === IntegrationService.JSON + ) { const attachment = await Attachment.findByPk(body.attachmentId, { rejectOnEmpty: true, }); @@ -58,7 +45,7 @@ router.post( name: truncate(attachment.name, { length: ImportValidation.maxNameLength, }), - service: IntegrationService.Markdown, + service: body.service, state: ImportState.Created, input: [ { diff --git a/server/routes/api/imports/schema.ts b/server/routes/api/imports/schema.ts index e94b82801e..70c99f7d4c 100644 --- a/server/routes/api/imports/schema.ts +++ b/server/routes/api/imports/schema.ts @@ -43,6 +43,11 @@ export const ImportsCreateSchema = BaseSchema.extend({ attachmentId: z.uuid(), permission: z.enum(CollectionPermission).optional(), }), + z.object({ + service: z.literal(IntegrationService.JSON), + attachmentId: z.uuid(), + permission: z.enum(CollectionPermission).optional(), + }), ]), }); diff --git a/server/test/factories.ts b/server/test/factories.ts index 596177c5a3..f36dbd591f 100644 --- a/server/test/factories.ts +++ b/server/test/factories.ts @@ -576,18 +576,25 @@ export async function buildImport(overrides: Partial<Import<any>> = {}) { overrides.integrationId = integration.id; } + // Skip BeforeCreate hooks so tests can seed multiple imports per team. The + // production "one in-progress import per team" rule is enforced by the + // Import.checkInProgress hook; tests don't need to abide by it. // oxlint-disable-next-line @typescript-eslint/no-explicit-any - return Import.create<Import<any>>({ - name: "testImport", - service: IntegrationService.Notion, - state: ImportState.Created, - input: [ - { - permission: CollectionPermission.Read, - }, - ], - ...overrides, - }); + return Import.create<Import<any>>( + { + name: "testImport", + service: IntegrationService.Notion, + state: ImportState.Created, + input: [ + { + permission: CollectionPermission.Read, + }, + ], + ...overrides, + // oxlint-disable-next-line @typescript-eslint/no-explicit-any + } as any, + { hooks: false } + ); } export async function buildAttachment( diff --git a/server/test/fixtures/outline-json.zip b/server/test/fixtures/outline-json.zip deleted file mode 100644 index a9fe2dec430a260ab499d8006275629a5d0c1638..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 46911 zcmcG!Ly#^^5GDGxZM*xnZM*xnZQJhKwr$(CZQHhO8}rY^EM^w(MZCp35t&(w%siQ! zil{gxF9iY$4fvlBOL$QKUx)wgApeWb_SSX=#*Xyz|BqR;|3{XQk%<u#8-oF@2?HAg zEej_TE3JXC2?s4ByOF7Zp@Aurk%7_wODo0yudR$Y4Oxv0jhJXT7>qb+S(r^&XgL}F zBjqsSG&W)8WM?ul;{4xykN`+Pa@_yDpw9m<eD)Sr21e%2be8sJNu6NISuzd$Jb}V~ zdpCi?_OAaEP&NJA{~;UH)fEoDpA-~0DE4UE^Y`{<XWOwS!|{YiN2mAVqUPe_;&iI3 zrppJ6P$FC+0?1E*0kFOaan}Kl2reKfAS5UxASfs#C@kFHN7UcnKQNF_)DtQ;@ON<F zKkMu3Cnp~22irH$N1R9YAEPWQE3bp%XYk51CM+x}_^JklgoA^F011VL2$c*E^cQ~r z&D8w_j4>b<=<D_SlK>cu2|1YVoB@6i0N}npe*wZhUnpc~TwrWi$j6mPkgr9UHyl9$ z;QqdR-BrMyofiX%JqZBtHcfDMyTs3k#yx$WITNkp{#9`23;7l8N9r<>Bq3y31i;$2 zX>b0eyP9I*kzWG?_^s|B&cq#mtF7<PAtqIYwnDV%a*B0q|B^w|d4uXJzC!e34q!E} zw*^l`VX0~GhNnMi>b~1COb*tXZu7CQibfM~7d~G%Rd1BN(q4H7#S-+co;?P)_YO+= zq=;I^e$Z3l`xX(_dz?!tYge>*P(=}2{<4jTW>aI{-$#+vk>2tXn}x%rvE<xdOd#)I z>+cg(Hig6zln(FzG6QpnxD=jr2<ji-tpErV*CWt4_pL058{cLTQwXv`&tu7A`9)cT z?!R|2Em1q!5O8cC77%~2KtmR^Y!u^yQtoi}e(*SE*QQl3-n!o>T{e8d!A$Yoci9@- za*?M|x;4n{LLP}v6ZLW<Ty}j&0HzTL%u>j)Xhpj@|M0`L!)H&nJsiF7SfziM!NIH6 z$as!J;KI@&0ChWI9%9Bbm#JaqE{PUx_&;WtduL!gj^<V&<Q!LUD|bN+Nj*`iiBua} zaGB3~@_xZW7K;sU;5nVMfSmrxs!QgiTs{!;tMOVu{Nd~`7zFBA^}O58t(bJntA6ec z!!W6im?v0WqNo<q98~kIthE)MCH^^fMw`zTKO;e|bsTq^N_@(?A~M^X9Ckn87~e5F z_INt^N(S`((D$hCm56`Zini&?a>kpy=U94Q+}`a|X6E--RUjxYKJy_b)BnR)4WplY zNTIo(rhs&1c>Uv8mc94%7nF&s)aszfDAMeA`WIBSMvRY#`r0+0v_FO-_UAVSIP{^Y zvSdH@`50%P;}a)0$l5#gL)r4_=rUw1xUcuH$}HXFl=PNj{OflHZtA0r2P?gN*Cs$7 z;e#Euu0z40e(CJRNgd@wn88&>N&~^M8OF9SDKT|h(iLnZgH$hW_VgFcH|s**e|N#O z^hMR?A)0!*{@Cxsmui1_$w(@)xkUK!5CAx%<R6IyW*jU;&O6aH!qt;;HDhG<y!qGi z`#{w5W0N|YcsI|MKmXeZI*GM;5qW}pDrFm=OfJo4?M&>u_4|Z{Yg?D?ma0i>W#>#V zvz!yMwCO|1=;ByxaercHn81Am=v$lHa&SKmgY&zxl|y)T?3(V)QnUVK%KjS5_5d3z zmiuD5z2$QKt=C$vJ^baj^l!x=xT_u47%6>RzKr?dczpWOAe;NFwJji?(fvAk#4jCv z@j7Dy$e&}b2Y+&8vL-qA186-KEv;twRy_}>^?T1(WBV~QC+JUdiCX1xlzpm@+J0!8 z=Zfs%{x04;c!Q0wXiCgLL77#%H0}W-KmI(O*tGI*=J>~&cWDeCnpF4%)O_k9U#QwS z|Gtdcyt*DAZsS0myiZr#3kB>z$4Q9rRa#{@rrF7D_pjx5SC7CYU@Y;E^l!W~)<qUN zjxqt~eE^Lv%Dh6`Z^c?O1N!7?Cp)~}&bAW+8Hhg3N{KtB9pDeuY(77<TOk2Ie^+!T zj*Hh$Huz?+0RwXT;u@g~Ewup;tqiOqky{%B!>|9Ma_PtL0D!DZHVLaMYY4B{9zw&t zHEMwcqKF+%n6BwUFYneycz6T$EG=#dXq!QHa#TG4AYbvEwnL(Ld@>Lxh4-NZA>%s8 zOv@CGtKh!%<yB*m6vQYoVL1DQe6Q`Nwe+Hjo+e`AXRmXPG}@Ch_gDIw3ypZ~ZHKfq zsybTtgk%A3&5hajj(LuvVKqR&8c<V2Ny0*(QNjMJ75IAYl-_!mX|>C2eYhn?_?Hga z_<P+riy!pS#m!a@V&$g_L*A|ZG-cBWzRLr=pM2$FAol?WK(Wf^YM)TI{@dWt-V-lg zd1#o6Hh5)P->{gCIe`D<0xKYgv7_t6o|Kafy?Qk76Fcsu=XKf-m#<h|GE<%4*iq$U zq*2rSPIR`)yz{5G+kPrDa-VE*mDHpZ*R0d#+cb4IL7_oPqlB!|D%CpUIrmMqW$}=0 z=00QHwi|`-=%>UnB33*Xr1d$)wR5+4oZfjJBNP(cBV5$6k+$%a3cmI3>r467eaxoA z22?|=+g1M1Lu_NzuEbZ=;rg>kYw_?2i4#<ZULn$gcHHSmJo@nJ(ISQ**<-{;($Knw zb#T*99<mO7CG1L~Y0?D9Zhl?p9Q1*d0be`#<oVYIK^wLA4oFM5e(-(8hPa-J2LzC@ z7e#K0rO_y^^KP_i;<1F0Qr_X>BLB_t?UcOzBE2nBq+l2_T4F!8x(ie35#XwI*9bd? z7h1@yM|#yJvY&Zn?>I~O(1|NF8@`m)>sZF9`2tb5BizVNsfQ@;P4@maI(f$8(%m8} zr;@Sjn+Y84S)x>Tih;kmFu-7Wxn1-+b>~KYm5kdZ+V(7RbX3z*n*=G)J#LPq_{N;- z@qzy#Zo3Ym(Ci(hv#?<MPL*f&l8{#$y$S92L#v!G`9<=WP`zEqV~~14yGN8AVrPY& zqijxhX^B_^aKq!i;B1Y44SeuTwzlu*os+%D8nS~RWnlP>nHhB-7jS%DtZw?uWA+%~ zrn9=AtXE0`kwl36!Unn}Z(lU`dVjf)5(Ec~DPcHfL~?sp%+;K_l)?kbobNKtSVGNJ zc(a{5^~t7w1Q*X+q!X~ZvgD474>zPAkGykf$P8m9>0WovXYz?@J%I(z1z%)T-UmTn z9@BsI_J7OPIs{I(uvflYbnaH9vYL&M`%g>(>Tso1$-C6>*vJp&*Z_`MrNgq7E9TT1 zyU+J&&%qoY$oO&ze}}9Vc@6Oty&tc0{P!ZW_YOWf&o|gL<V6^O-w^1RB!v6skKd)j ztW?PuD>Es@CsZ^!PYORVG3iG=!kY19^$hh@6A(vi5RB?HoKy36zSxZS;JzjtDlQN} zGA3ku#`I0a7cfN}VB3#3pdH13c^e&*r**)gJCoaM)#<vtrF0d->2QHy{;$(Z3QMFA z+ApAbpo0mD_2Kl!zq=5vtG7h5F(~wV5&9M%0CcY`G@czlBIPN>7@j5|xn&q@T!$j2 zfw=$=kmvlVbF4o`w)d72gI&D9<I1^(vBdnL02C@&@57q*3J)a{Ppvmiwvte!N7bFq z!bfe}caQ)RS}K0`nZZrChwK`+vj21o{{BgGXik<aXQZR%Y26j1nP0cavS_(4Z|3bk z^dz}cT5_IwH`3S;)puAgr5T<51*zy6VZ&#C`|&PB=qO%<2GlupnCAl8N2=-FvLtr~ z^_qjfNX5rotzC1ds~!<>+qxQiqVFERh+9FcQZMC$b*tvGu)a%pgYBq(poKD9P;=$3 z_-O*UlU&wU|Go%#GDByDE*6QGu(rBqAc+_6Has9;m8BIyEo6bxgISN>B_x@6<(}=D z(9QNkF`aZYsouo5u2>*cmslQhrOc<TF`^T)O!JKdZWl<poYiE=>DAP4uuVVKG9SHY zU3S<WBk!on;e6h57PuZ!;Zj^lWx}Gd9P#WYbjLP6{nA2A-F7#>Z`EbCzZsEVLP7Ym zn&6t^J8$~gAvBNHo!Ocn<%JaT920Tf+&tzA005CH9bJc&I?0;1$3Afrs0JsgU#9fW zMl)S|NUXl!+kX8!Sln-CsxLsry7arGn{KGAGkdWrq6Qj+ljw$0GMw$8yb#>wCzgz% zuO8YruQANN?O(0M$t<KY8MT1ayV06Kx$u5oYEKh@fRoVmP`n_XpbW+$0p*-g?TEqm z>|@8^=I2Xbtu4aJUqZ9KUX&o$yy!<1FQ!$D%s08kHkI!|o7wNa?>JM|4|biSR$mFu z-w&2+gW6Sn9uKFQ+e!CvZ?3HokRRVN5cRcI*a7$Xg3&a*xI3Nfhbdc;m<tmx#+%HU zj>^a1P`1t?%7jj|@a@eMcyd`agi7D5K3~#ggjzt2QuOj(aYysM%QgWidzb#UXg69I z|8M?T7~YM@_TXLE)^DzVUpH8MK15KjD)1fUxB1P#!=9m_)s=5w(4!V%COf+i2a+Ew zNP*Op<Az3J^1W*U#<#(}M=aSto?u1WIu};?bw9$AxU`87KVn{Z(yzUJKq80Ui5X%z z8VmUet{$^4_=dg}24xvw(mIZsE0P}}mTtejB*|B7bVey>!$#OY*KDc$tah@a;xGw- z)>o0-m99iBQGN2edKzZ8&N<30mQS)=#A_orm@iV;8VvD8Dg?u}?r$|#{alJWcN<F{ zY^G%y&DWZP94DieX6EBmn|0gaE;9|Koytq|?XrXp{Ccvw$kVxk#YRv2bg~8iuU~(? zlCIGFjgkW*mv^;kdma?3WzK<iaPeqpN6%gUck{3AR;R#)d$E!1Pn3n;gT9Aw5dOb2 zG_CzriZxt6u$Sc@o_5O7VwwiX8HvBW1Ny4w+K^c^Q=1@XL+45p1Qt}LbmTuPu{(2C zOs($Ta?)paweoq^os#wS<X}hNE-j8bku80{G`|Ewi?-l{Nh2K+?`mtCsO%^VOYKro zsms6c00FATFx=y!{K7A8V2IbQo@~kTV~NYhvE8-4O=hulaD((v@}jjCUoj%uQ;wOQ zHxBWcFFcSV-%arY;+tgHUiyh&$%>q+3EM{R=i8^BnP5&L*pLU>mhaK(S3M}Q?Eulk z(X0EI-`%u6iARj*L`7N=QkL9IbMU_2cwbxl?HqDJpsC&Tu#3o{te1@f#n@6dxhM?f z9p{!PT>p_Wbi)~%{<5TyDRwueArQPFiEiqeGOu?;G3ukJuGc+s9w0fv&NPg&Bn1nQ z^noLrOYlP0E??cOJM}d)GfKMoH!6&;s}FLJviVl%<-*ml-TH{kz3(^A*;wUmiq3D$ zNqZj=EaGowTXn3_$B`Ft`@l<df^RR!4?FLRUsON&`|P<1sr}6lOXB48xTx`O_mtm@ z*h`w(YpqjNU)T{}!_H7VkKK&dMOT94u<VHwsShdmXlvi>57@NzmgqMmsEXr_8eIhJ z_QcnE-Ld^}?G-k>!*9A1j+5{2#j!}K7TQgunvIFz)x25b=cevz_Ssn4`R&4z`W@nR zW~fbU`cIEV_dp_`K8G`jc|(C}S4To9+VJ09IEvRO=xpJ25b&WgIBOZO^&2Y|Z97%= zC?K55^vfy13tX!U+M|QR<`>$Bc<ku#JVbwf1~(an%PdblvjM92c?6>kbuPH&n!$f! z&Le-TXg5}-OvSEG^`2L97~;Tw*wD=+>^jksPiB(Y;-!+e!afD95^=+6En~Dhh=Ly@ zn%6GEPx6&|vO*L$53{d-8xtmqOX|CN(@p{&v_51Aa`*ulR%NYQC++2$O3(KjC^XMT zc8D*(IA8;zC3!at{j{k0!0f>~qYuEZ)O)#O55V&<&fx}U%5P%uqM;Hu6Bi)Ri(rbM zpHVr2uWyS~%^1AJoIZlfj#C;2fBJlh7@}nDCULbyLn};HDSv&gn-$uNrq1Y;<T%ff zGi-m#JTpS2ksp7FpMJwlE$gc6?2Op{#ps}~{iJ?=f>DDY10aDw`}{%r`hGl;q2WOT z{XhkXhzj!xkQgB;@=$Q%{KPddH5kX%()3mV3<87zNGKP6GvHx+r$5n|_PR`LOlSHB zl?v8*7P_#BvUKJV<wxw^`dXc<>>i!;VnkGXNaOrmDFPaEY@t-%T#wHVl{d>_Vi zqc%?tJ$qF9aGoLZd-k0>!}2Und0&HYcKPS8n}(}G>h6DV`qwTwIb-OvZH(jPGzkaH zA43y^^#AVkd*Qr4r-#B_T<4FINRB>Mh#Se*^G`cJZkf_?v5Q706H&-iBD$oF#*5z> zEJ@%(p$Iqe^-Qe^V-Wvc0D{B%RHDGIO=ylE!klrwf57j;4)Tza_V(IR3s36cwo9KC z1b-1VdQc7ndQ#p%nC{pYshK4o`sS(5g#kpBiPngq5^MELDYn3|?t|#*^QUiO&D5_I zh$f@xcCwlp)pv{q**SZnO#)Wpd=xf^Ud1l;$((12Pl-h%d|_8(jem;Sw{-rVgaO@h zA->DMV^Sl7lcIN?<LdEpE3tOq#mnN_RY7;&p13;z{lRaUUyCt!z|nAwL>BCDES0*$ zS&B~<Xke;nIMXfpB<swUfog#Cp(ynnx^Cxw_j5jtz!Bmoqi(dzV{+3!BO~98DV8(& znDhDPbgm-F7jGn6LuMUtj1ey-%_I-GDzGo#L<D6*q|4Fx@2)DfkKj>(%_}<sPh-1+ zz{5+k=S*YuoQ<@TXdY?1xdKguEJ^`4-urc7$YNe(k8qY%$VI@p`rj|KmbNR&9hdOg zfO(t5cubKgV>$<)yz=Rc-Rv0syiKwsV|9auEL@(0$k-ipnCyJuDzK_1zhDE}(CJ~O zevPqiE#>)sB!{lICI{kVXr&HA1<3MJLNIl%?l0<jgD8zO5)*uj;&$oqQ6c&U_e`97 zTk|?QF~q!J=zlkD8|@#!CzLc3<C2fK7g!q^)_|A6KXk_KF#~}pO7KIP*3qHo=~Z!> zq?B6>;P(kSg(7WQ7C9|yRlWR1G?SoUSYEYx(T_d7h=>W_`GqI|yYhZHreSnX3dlh! z@x+{Hhh4n9<3o>hiXy4rzp?ExLbK4rGcMXoKMU7fIdI4!%K>NtS#W)^!tAy={cEy0 zUu8Sw7rhiY{sOXbax#GCIy8<oH%2&R^SU}L!Q#S@PD(3<QH`0(pt{91>5L`h0bIE` znP@KiyIMky2II@n(|*EWG3?DJ>u~vd;UM=zgXujMS@WLGy=g98I&4_j7OlTHX}m<b z@>i4uxe-*u73%H6$L_i2Ak)Tia#%6S*y&S8>f-X0_ZnC=uFLC_<Q{8Z@T%kde7?LH zoc%5fYFS8}SRQkVvE|ie3V|)G1(Q&VV?Op#*W|7c=9_MzVX^Au0S@O!mPv&c*6ON0 z)ek(XBy>7}?ijozS0pPn2ap%g%Aw8VT>fxYAM~zR)~KC^X4AafJIUqXwtJ-Kh&Y5^ z5?MZ!9$xD}nCG4$`FoNyW~%#!rhie|VI2KIDSL-QS<fJR85xLE@AtTzgx&99{x*4l zdcOa3YdKpfcW0ZG!rYCVTD>CTSR~$C<spM`h$npbonpHz7l}4+Ky*>edd+cM6FK*& zFMydlUco%1Zyn!LI?hl9D^d!ao$UcDIo#Vkw0sH^7%noKt{_XNFE2rBy<rxnGt$J1 zFjhPp#<Ze_R{prAWq2#i9x6=Nj<hNUhh|ti6kjG0l0X%Blh84vwTukjE9;dh^O!<% zcmG+lAAk!tpkdMuX{?XFMU-)lsA+g@+nk#ku*}eOGcn%ytO_++UB{Rhb3Dj4L~Cwt z1v^?0O?0$uLw^9L1}Utv9QE&Iq~$8JQEN7=9;w3gTvd&^CMI|>yr+N8S{mC@-d<k} zNQILa+KT|_ia29<iRQ?x$>xB3q_J(2qiTw6#{6wxSDNQ8t+I;K)@QjQouo6)OAI=> zpevQ})TiUrEWu5zclZOoB!*@rz^uJn(!3gh+!PuI4=?+YX8Dn^!OD^eQg}m|#WDYr zvK8B@p2`8UF7=Ri8QD%}i^t*ZkWPSfT5+2f$fdekra)0aLJL#}TzmzYc}kuk9nxGD z==cupyq+(!GY5$nTX{|rRPSOj`uC%!)-tQ*b{LIO!0Ghvn&?yEUs_TNhyJ~_l}9fF zb~PrNgn9j%p1w|!XDoovgvUdamtNUYA%9Q0+H_xAc<m^%LG-n67z!%-dQrV(U}n&$ zHF7)V=2flFsjRYgUVkd2l_@hUHiZW3yh8&tKc8G`Z7sqwj;KDo9jBVe;=gK@8IcIR zOBW;cKjVZFuB}tEDT@v-w+K%B)v3Jr!#c$?R|m^fHn$5<ZYqfEnXy(^@7+^SuCut* zmuNat*C7H1)0mL$LDj>Bvplza+}n9Mj!^u1Zn_~pEzcU^u+-GGFV*z@(>jZG2QI?u zG*KJ2nrslH5RrytDy2r`S5Va9|Bcel6;v2zAD{@8DfJes<@=8ye*)3}>zZi|x6)_l z*zQ&_(Q8^^t&rF9c=6#F=P~2k#i-6a%P-{*UMJgVz5jQCNZ_Z!Wmv#s&w*JhC91AG zu;{c!msPpZRp6+2se{q|Q3voZwI6{tu(D$WhSdsP2S~E89GDJu@NdJpgH+k6Ptfc5 zGFk8NNJ7}sTVaJqfYF$I+G(~?YUt^(EgD-jik<h%D_jVyFe#Ls*=p>u^`l|Ov(8+V zn-rwz0!;GrQt%91Hiyt@sRPIe*3eML4|U|h5!g78!@1f3jqGSiT}Rjg6}<5n_^4c@ z&=FwPF=)2=eeS7ZIq^V7uW7(WTMlKmT?w}lSA~q!to>gQ6Gjb#4P-v409rre!SjWv zA)_1#<b2y!TG6G8Kg%i!sVtZh)y?yG6mf*72cy(+wR|(htb{8_KACGiSCUfdM+;$f zT`_k$h3u$*fxg2{DN$=bT0(&0wolAaQRH<6bvBq;HjKXq_BsN#)bl!&(`+v^-!S~< zU<WS$Cf54r?QQm4r7Dox&_LGSr%rB{kiAKn0n)#o*fridjt}o!!CcqS2C6CTz|Nyu z)fS-`0Rlb(ElM#W77d59%i|Ey_R!7Ou-)G>Nq?$+cfmp%0dGa4_4S3@p1;Ww1GQ3b zItLYyEvU#Eu3x&Zwl*V3N6Ng#8LG8WvEIl=%Ne!SCXInqJ*QC@!J6Gd{<2(rBp)&B z#nls*p&VXdE;pAwBofHiS5H7?J0d2ym<^;LWSRsriz`-?q~yn?zmKIyGiTI*n}&W9 zFuIo+lt*OrUZxd}>cY0=$dR(J!BI5lOg4auab?HKuJ_u|Z`&-rM{_kY?~Jt{7|U8x z1Wdya<9z`v?<y3*AX6*lrE2T;I=+jJgPNLG)LXmj<Xrebul5f#B0WJkk`IByog=KN z5n-w0lI=BZYi&}!(p}_zu17f|<fA@K#`4^;#6O0*StE#<@M~|_{GCSjBBRaV%|^zn zp;Ka_Xl=%n5$Bw^;8|U|mhGVVYd0{$6Fx1|&=i{TH#GY4_0?Q=2>5PhcpC0H#1W@h z?dsOv%)}aYqPy)AuLnM^-f5fckJr)4c1t%|m6HD+sHm_D9=aSIQ<ax?;NkIi4q7Mu zDZT2B)0zaDR-nv&5d#s?%?ZfIW5;;w;cVQ{S2fAmCyL4$OHrcX)9<ag%sCz~x~etv zd9sIe8Euz~lJ8Lc%%bpW1m~R``#5H{Q`hz9rZdkUUt<DGwtwn4Y;lub-H;;9&|z3L zAJJB_`2GsBw(cxFkY9;L;#$)?Y&!oF0N+c$iCpo9%w2v;mG%ZEZXe)qLqqHSvn}o% zF}0D{j>-+%gL6XnG9uraJQD^U2t)>DzK=V8AV3mIU+HMbc0wi+5C$ae4C+Qa1|gCN z$^y&%H|X(Q_A1zwdN9;IGHt&u8Shi>0nz^;J9>n{S!vDPsfCFqcURD`EF=u*Wrww~ zPjRtfwWl_eh@_C9KwAN4GIl`%wRjovDnW~e;=AK!AXCMQ;v`jKM>z9YU_2Zo|K35< zG!%{~C5v`_Qh|N|kwbE@l!aUpx+gc<^yzuVHLAEY1G{*9CA_r?h1Yblhf3`nznuu* z4r^&k#RS|yu{2Cxze=eZQ?9L+(pi9sys7ul@}s=pJl{Kr{Dkzx69iInEfo-78IZwZ zi|C|@E;Lz5AwO4lE-^h$*wV8q#?f)(LBv<_2-ocFUHZ`fR6RF<GqB+CP%LqVXc2-G z*dRG#D7mQVJST$1xGd=6IMjsD>R74Ny%JJb*GY7=vhr{|@BRwnYqsR0TdE0%<BL&^ zsImjc>yXF!ti(97JYj7W9N8+i9wU7`ru8T4hs}V;^PyR%z5~&W$DKKvufz!HSHd%N zLpAHGsb^)qURhN6DL|=SCUe1DUCwLb)$#MKV<>ffpB57`?6F>Qy|P|U7;X9wm5=|) zc9Ncb@Yzi6xwfZYtO50)%XOOSjpT-7e~u_J$W#<)<fvAIi)vR;#@H?g=J0>wZm*<> z0+bS>lhF1kM%^d0DIg|y8ZXDTzgDXq+H+digLdeu?NaOCANaTf#~?{`#b*}FK&&h# zaVos|`F7zeF;z;wcEMB7ivU9?w5LvoxO&53jph!UK1=mUblVE5cv*$0iTWNK5rW-p zD{*{G>gVg*jz$oI9KNv&I_y@{o4b_j&P(H_x%FkgyA9Jb^}_4MXrKwhx;RF%4kVJ) z8nCI)WgX?!3~7R{7H|v-x;A#>!7@Ig-avJr^(>41S7Nuy=g`}%vS=28Fj9B)7uzVY zf6xUnLOcxf3@c$ukjt=1dr_sgn#emxh8y-CHO`iLaR>*?;qpM%Rf*JT0{j+<cKUua zL#t0-7@We}RnOK}I934(?#)oc4MNtLhJ-|xfYO&6$!YH|%Do+{uBs8suys&P!49N< z+%>X2XPWx{ubX$MZrSl`iwb&7Q*FbkY-*z4K?hvJhqWq6JymI~x0PL*&92Twguu)H z`2JcYVf`Hw+dLy$qv9#EWtHYb(~ef2s_BE1n6r+D)Y(0*#X(&gv&!gdN^+(`Nc!}j zdR;mD=R+gI_pD!7N*jp$DPUy{sT3W(TAGPsl~Wm%GcYeZZAfL?Uxa+)8rK<lBZUg# z?syx}EVoQgs(v}L5R%zSC>uUZ1~o{6>t;>qUE9PoDJQ~p-OeIy617S<b4s<81Zw#2 z%xEc_msBnhp77FKFnyU+cElkPgv!I{x{SaWdES~GvM_ug4)ucf${F&NXZ!KJi<hvm z3*g!E$0F;#&>%bK%Tv6WX@Ipz5M*kK&t`C%U(TXOU7Z3GW_=VLuM9LE1uWN;-#2QR zYMrnc7gH6A)Q?qGssmwmxJ80MgPv$PW<g!Eym68egEh`S0vp{V5)BXC4hq4hNQ@?* z5QM;>;~ABQ_i2#)NA%Z0IV}%3Pm@wiNB4E`nU+>#7o9#q&7<?ogRdJ{QYTFh=-rjg zL)DWy<yJd2Lq{vpQEvx>g)GLWCJ3gls*-%j@5%DpBh&!51kC`Ml>WlQ;6(KodW`CK zcr8lh86LG@^OX}2ax_!ypm?Dx?}E#h-rP3~!SavX@OWGbHB}7_7%94)sybjtT%0fA z%23`)PrKI4xxIrcEae9ZElN+4$4-STB!s<lU+BtKMp{K^406PEVn4se(5vjEW+}Qo zOkczL5yLe8LQ?T&qN#a{{_D8Fga0q6tqb;!!}AiSk3_DT9}h|9oOh_e&_oW3o$S<N zZI<mS{cCjKV196@Ck%f(BW^gV!r=1kBm;<rsTHaoP(qgs9XI)vh|Gy{4@s)-iH~bf zIC7^75(4Q!uF%qpeoD77gw7#Pa^9<ThK8jvNqs;xyj?bL8t;ZDTg&y87H2`Jz?1<> zXEd&g63Y}4isuwAiqe!FLg&=gWqM)y#G&%oIX05qZSge`B{=Zb8~Msc=S+(Z9#rF! z>%AH>CK7uPcDz_eD(63=cQ%!MHK^0)CG$d|@||3Ym}0Qc1aLVlrcvuF)}HcWgQQIk z;}}k*3m3}2IBuOAJKOXFr7GmSxLduhhSn}y`j1gV$!UV~bh`Wnf6RoNmZ(4_j=IoH zErl~~Z*3#;!%Aq+y@rJ_Ev>o_3PF%gI@()JwVdn{petIkLY%YiTTBTOOQy22UrE{U z@y5q9v`Z2pyNuYHh)VftWW{CT`ED&SF`|*($O{Ul;;+&p&(-0x#$W%){W_F69p|iS zgIy-%tcVe*p!S>l4Gr<wu#(J-iV??IIq!$SSb479A5{W!zsD<`OCs?yKI>8yl$6az zm+KQ>oCC4sa3;))d1;P2dWMnsx$t~R$J$U9kjR0#{Q-_FaiG_apa%cMD&aKC7Hl+; za)=jCLud`L<=l3@nZvbttiRrwOEYMKuXW&Y<Ybx+>?B1G;=@cuL@#D7{#8Uh?@!NX zIuyst4P~_024_DL$XHt1I4w+HeoZEKOcn$i7p`Hg%2mv;e}l^Cb6|@}%eXg^0SE7& zq1XU9FJc0J*3*UtUvgxG{JqQ4cdcsA<OwBs5Hzd@jHT%47K9(U4FWD=ksE@CuxaT2 z)hN_J!4nLR4NC$;{To2HotZ#0w9zDTuv;Cbis>WKZ>BAC5F&-aM3J7GL*wgjwMSeX zhjmnawSY~F2fGN(4#0w9e@h78CN}kBhBR~@EPW<roQ?jgY!dWcfv_4qvRspXNk&Xe z9o2U9IYtQMY37}=WP=vC!y%RI93ls;q6!)JB}xXJo16H@(Bnwf4$rq|$le86F8Awx zjU$vR0oa{8g=t9I@TG%+2JAfKl$j`ucQ;=ULq}l>X}W4k7(}hW0*aA{olgm6II40$ zbd<CwZ=%8HSJ{M?Wh~$cCA5J9hY2af#1K-X=ZrYrno|eXYf1RSx%*uCsWb%<>oTfS zdmG43y$eiARPis0FhpE!3gl??AvS-_C+vD15HP0<Cu8Z&KJ}h6pf3Ox5D+NnCmbjY zAo}&tf&zeuiTV@%G5u?ZC?G;?fUGPZgvw;B>QFT+=K6;Edpz4IVNV!G@CN;6E``@Y zCeOTaazqw{L^FzH;OTObOKU=V#kI4iJ?LR)psYCI7_YWL5yh{JjZpFLULs(U&@Mf> z{aW3_aB$X{SYh|$<u5T+WKalOe?`3PbFx0uQqM@B-;ip&vwQPgi$?>ZB9&lTTZ=-} zOz^t!@d_)++)fw&1{Zt{HqGcI{Hhe}td0t9)kiyW8P0g9Mcv*VwBOLezKp@8I&p@< zrX19j{qSRvzWFnAR9?$N+6#FRS%gn5jI0gs;JZb)lei;P8B>!eD@rX)YTxwo@U$xu z8j`<DtwH;pgo#D;#Uv^)*YV9KaFt(EW$H_2NbP#xv@PS8=?ZTK3_EO%d-vX@e5bat z=Za;A%D=S@`&EQxs(Y<6_uv&uYb&c0H-5R}G*IW}0m&RG&6mIT+A_>%o4A3A8e$rJ z4LALrbtqmNlH_k+OuYr`QZus*(+3}LASgE)A6rxpBsH@8T327o^X;NbodH(&4Qc?= z88i^7A8zvy4j2DE^m~v$@WBp<*L<Buszdc3TO+4FRW=T60YuejSE)F_>bMSgXW|>} z?)|eINg~|?gSLJ&CH#%XF+P9q!hRfj1lwa5hBg<EwVGCH3Hpj^O2;NTLUk}B7%9V} z_=rB@HKhj+X*11WcO!8Sd>g5euZjt$6&PP03bDGVI(cnFG}#=-=!c<Ku2EJsJ1<gQ z%&CHNTkOYD8)>0T*2u3eQ*|(iuf&d9$uHThkzRvhS+^A|(AZ`2-{F-oc#X2Q5eKIY zo_bITX{n8Q<aG`e)=W)X<AViBoC06t!C52L@jmxfWyGlv2toN@uX`BZiq>{L_#(C3 zKB3h&ldwLN9j5#!n3Ow1F$SvS{l!APjU)D0+G10oF<5HLlwK>PgSn*4td1~n-x0Qh zpz)g~&G<7g$lkB@%xyB>BfW#wsvS0qWHHSvIn0z=ybX|2pdd4hTo_5Yu1bA`g)o)1 z+Pt96AM4eeEdm&lbt<E%T|izHsDsbpvP?w1px1|M=3_6aA<|@Wj=9`ar9;9_A-)=9 zxoZJvC}Mt+CPyWsXWN4&imP&qK#U7_5*1u2VMo)=GqTR?m649y(-SkMd?l2eUtq58 zU7(f|EYxHn&7W0G_VfmU&L8ckX?i|tCBlW3-agv0A8|V-GSxeJX8qk&qkRho6VSj4 zcYJR-(psGyR5<;o`fG2gXQ`4KprLe&^Tf5U6CsMC+Qy+mnYd<*I2V=GCja2ee1|f4 z$GiIpzrb%X{=leJpXsYvADt~?_sRJZSa1sFC`>e$Dvh#ht4sYS$5FKD)RtGtM&FlN zgVWj~oll<Qe=PhgpK8bCRUV}q%b)CJ<u#n|Z^!L+iUzo(Wh54eZYHgPk#{T2x5`Y4 z5k~)V4oK9YLM)WwYrq3n!DjG~6L2jZc%j>5d}bb-`#ou@(~`nJtE8We&^eFDxps?} z)|3CUw6=A5?wiwuQ!vqK)Q|c;A^@f80mr%|kQ<~bz*tN8i#DI+X?pDRhHI(MWra&+ z{XzeiT#&%`Og;8>)Nta`gJR#Yg%jPgV}N$cT8bSnLSbg+bv3f=&m>f+|0P!BghTMT z!g##Olo>}QH**%fb0nnx)ROcrL8^}LBpF*7Y+KVjuW<yC!9URHxLYAL<J&5tjWIUY z$UA4whg7$OMm);YQQ5ZJkMS*wwjOIqPyR%*RXtSF+4WhbmL}s#xV*)9GlqhTpQ0(J z8w!l&hot=<^~wWE#<0O<`0&&5wF-Pu0q@ha`J;m$i_^D?B7MQ6$}diw)VVfb6^K}D zyei#7$!Kt1!@0fLR)y{qOAFj0Y?0lyQ8z53inZ6Xx3jZ%%`+rs6Wj+>bPOn-Ezb14 z4LCpbZrs?&$`v62Hg(vA5@oF%XYIeFKT3+k7>&x)+pn}J+rsZhw25NdiHkQ|dp19= z+t0QZlWca*!(SGPVr0f?tL65U969F_i8@Iw*`BaNH2f2D8n$g}llgPY4W8OgWxyp^ zD54a&TzIOL8`*}UQnG0i?m7DS<K9&f?eoPG(82LJf6kAcqB`7!X%-#?TWLNtrH2r1 zBZl0`9z_$OOx~UFsDdSVpEBkfcSb*X!d2MVgVL`IUArB0x(cqHxqWocS_{KIuPJ~* zLW4fMF$I6#8~e3T0RFJy0Us{t|7l^6R0#}}m<60Gg@I|oe8Z>I(>HMqklY;K&VT&> zGuHk9E7;99?17HH>8~V7i2&+LJ<BHC>Q(#f=X6VGiZU0SV@M$}8QQF+hNjz1roq>` z(ee%op;3Q{W_?YhwnlV^+6@E84O{U`P7*#&-3ZNq!b16<EMwTINi^rLF0y70vAg=p z{B@sZ15(l4%Wic?sOG>oi`kBH4Zu2;7yfWn4TzM$A+D$}GuMxrrBqbxw3iychE-4D z-ky&tF|p&{Q~&@h_SDFwQ<<9(PKjhaxe`-UdVLtiWHWFift!#&q$(9MK7A#8;(17O z^)E!bjd=g@;Fl?<lLYOoH-k>r_&JC$3Yxk^Qe<z-01#g|!u?DaqD6kdF7$c?!m<eV zZ<d&PVty@IL6P!3iB2t>WQ@qqFn|BO&0z`vUT?E1igakDDG7Lip^M}-M4o}&^{)K* z=CoNq97&^@LS#1>sfKvF6DjBRcq#@r0fzmKi6B5F-ePTlzu4)TjA-8I{b~n1a}<Ua z)WaT*#9JoOJ2!n@TWFk6wg=y!GAE1)!8D9>N*NYN^({wAP3f_TPvp9!1hC#l5~@;0 zbz~fxl|_?W6TpW)ly}~>Fq;Cj`Hu)Z$P`yEa|d;h%LZw|Afw$r+nBJ4GMcy+CoT3* z5L|25E<OhS6Kjw!J3b%XxGX2veY*rfi4HNPQt_cvNp3axQiV{s8(XhKyjP5o6h1li z<<DSdw~6%R#E%V^xQxvcs-T<=LBj2zTIryavgAyo`!jde?Fy|4tQKC?mbu)83swoV zP2_r9gLtpI0O#O%>y_&?o-|eAlvL3;mGAgp_NULgq0^}8827NI*K*x=yn5x@DSXA2 z{j&9w=^nkbgruti0Hti2^}3wG${wpJN0a6e!g5apwxoGIEa|5O+9EOi)kaLi5<7`Q z%+%gyE+#<{{`I3w=Cd&a9zQoXr{PQpJ%_#prI!jeYCNS}NliqZRyWbkjYA5c4?+Pb z`p*Etx$rs)LYoYcLWb|KcVpcRr0f75T<OO^oZ#3Cs{9B@rEV*Qr2(S9kycfb?+LhQ zwtS-?-z6kyauxg;4zyOh?CbE?m6Vg(i(9Gna<Wa4F_F^THF{#O%}iN#?-;#S6J?Uu zj%<k$@(CB^k~#Az`~C`gljSoH`pyhUXjY5KoBQnC+6miq$OuWI5%vKMck^_QGG;wV zkz+t9=whfr*A|F*d+`cb@uz<ZHk@XPOpOjhn4W8v@Uux=lA;=IPJG$1>eL#*dxz{o z>^Ja2Fb;Nd6<TFTA|>6*68a&${sukzakMJAU~dfh;ox6m;&ofpY)4o=eq(_NJXxfH zf)^O*IV71vq-!Qz{``RzOPa!kjwBx2&AT!S_VUogEvlr0#U?}6*+`*PI;8Qbf<<`* z8l4&n>%hk{v<~mu^D>bVR!VYYTZ{e3mURcC7n(D9^hr0SDVud<JI#Rs3aBmhtx;g~ zrJgPjh|`}S?=Ky3N%RoG%#=K5a$=c}1jGT*RBOiTaCjNGXu=JIp#+@ih=V71ja8ZP z*F!m%%ASIrbXM)P0C;Z+%a=D5nU0D^K$xq+qil!@naAumdEFy^rFBQ^k=yg&CzTTl zpSHaoa<_Lfk?`;Y*24A@0?A;$lQgx}RTIrbp1x%M69lh^E>J{vi3X+D2Cbkl2`g&A zbyEDiM=G8_9q_kQx=Ds&N<h#`7xjVFV$IlVbfzGm3O}qbGiXL@kD&NuJ@cKtPCBtC zYES82$HEF;(BCMtuqZ*pb@RU%sSh1-nQxj6m%LX(n5dZ_(Dq8Gb>v}*+e$b7!Bm8m zs@{_z@Q=g<D*4^Sf9iO+l<&tZdm0ZdH=waG>aQ=xch-x{q#P9)1}Ujh?8qv2w0i8> zN6yBGXtQ1<XhAEA(rLLI98Bvq8E`G!eTUoCh1Zt4+dLvS^7*@|zLU)*8RecZD{h3G z@Sd)m?Y$}2YW<EmdHOA183d~VCT?WbIDb0FPwJNS+aLv-@S5K1qK<#4a&gR3WBGlj zn+U91z)E%oj9116dA(x`&O2GD`_xsh>?m${mHE$2G=yZJWwhZlXeSX&bpsRCUkoxT zP_b?z`4tJPx?{V!d&;(hb7A7W@0Q^gBO1xSv&gn_@O|GK8jTSRzSkM{Ur;a;eC6fK zYo$`cBG7QqI(bOmCD7Vz8EA|EkRCA8{G})+>_2|_X_C~Z*<J~qSx6gMF;_oCdfG@E z#}$ha!vHn-FRsw1wma_iY`%SE5J|5DE>_5jNVrBglX@Hw9Xpk*Pd#Q@a*Ir;^1+&Q z+=(Vnl6w(t#$XLaq=rAn0jm+A{nK2+p9-{l8M|A@|JEjOw{7JvZ3odvC;tec3^wq7 zn$GQ$9A8Y2L~nG*a%K^4jtmt3{a~{Sa+E$ju{8MbU}haOr(}-&%jGYK81|-uM^m<0 zt_&8yt$2l>OO4^ODocH0$i`KPVIX;ZH^EBF$y7t>1nxDY^gKXdkkt1;TGrD5s#Y21 zED^$FynuV4W%-Bk_`693{mqc_iqkYPH-3?{x>IzhC;Nn=pwb?EVDh+3kv1z5MsS@{ zfSl!Y3(<Nj%toDQ&Q0U5wzn8z)x3BKTV+yk>3gAWY(a9qCD~n<$Ol(a)bT-f*=t%= z$=7*qiL+V0eMi3`&@C^sj#bpaUkJ9AM5b;0)Q_RH)&lbQ8hbwIKLTBQW#|X+iL*wW z=`{!<ijFR;YM-hpL$OkQ4Vus?Gg1?!TI82GeC`j0Ra$E2#*quE&@p3cOlE53hqqd@ z>!g9mT*`4gk>|ZVT<gtylQX?2s1@aY!i*t^f$Wf<0l0tw#K3T&kv|5AjF=v~CJdlB z!E_-?h!?^Vc;gxU<*f=V@~1b;1TxDM7e#cK!%R;&;f77rY!xSnxr-_s1g77DAu}!v zR$`J4qMWRh<=%3&)XX7O=2FaEiVL>BQjlJ4(8vo7a6my(wQsyzgVr$2Rbx2X_Yp6A zY<*qhILYjG&)Rj2|4yU|yUsSbbcMoirux;;cf9IZRIkJp%^Lp3n<U?u;b&+4S!Jj_ zP;B2y=)Xrc?yWx-EvG3Lwg(#<w)rbcr?e5yrg2)3#^$>RGCMGpf+B&VycHKAATQef zeGoa`p%;Ps;7v|UW>&%!rNXc6`^MN-`rf~YM!BusEfC`MM@C0deR`}{ABn6#;g*W> z%y>=dwOi~5iu)!A>r*RT<Q98|HokSA3}_jj7?E*n^$j=#S($6Z!nWeNB#h$TU(U>| z>X{+0&jf5a8m&iQQh%#>;j4d_>zb~elrumPu9rxdKYqbtD^S2J)OyK1wGIaPV%3?p z`%i@YlVG`*B~(Mr{mh2bu3acXFIw1vcrUdOgSz^iE28gr*hMXHd>Rs1a*)4-{QMje zayaA=4PjB9vHla(bv1{wON885?Ju%CgQrQ?;6)Ujp~H7<uBzaD;PytHop}CBUwYN+ zxA-voIX7oKT%WUlNkNSbM_pwJs(ON8BH?X!zB{_nSC01i=)c-{y+t4VI_4qy05OBQ zzF`*5RJCIK4Md)<pd|0&Y(>gPX!{F>>?B&9W1=+gc)~0Ove6|t<+MF+GYNQ}NOly| zvgMg0L}lpGlMJTlFaiFzVfKKXlvGs8ad{zd>gaIWYSZ<Evvxmd>L-Qp1a{T-lmyr) zK@AZurh3*9{K=VtxyU>gHMDTO!U92<PzTmXeAmS1ewbR8RFQ*WOat6-k@k8HTbp~B zLJ2e5ID{AR$P*`mRe4Ex3OpbZO7vDbMrslgUA_H(`f;<E%Hfe9ja+zjWXakPO6$gk zyMwI#bgtC*w9_dBj4DP`9qDkB!sx|CZ&hEN7_yW-0jSW;#w4sM+J0hU6HA{BGEYt- zq0F#p^d)t`I8#nro!2}eGRZO@*u1FJM(M#6didN&2v{H=<{3Ri`Q5-x9;Xx*^;%<u zmFY?`7oHLcDxR!Ev;Kuf!(Q{I`W(oLhVL3N5I29etW#C_J&&Um$TDz_S@~E!a1L`5 zdSh80m*ljs(JLVhBSj<K?3$dkBuC_b)Ehg(y=YDi#ONgzh1~o!r0`v4zo0RT9uF;f za4ec)##yWtoC1!bQ6(y}iM9FSwUAP_$2wFaz*(O8G4SXitXDVhvrsAK2qz}nWbJg5 z9&AVs*zrvT>!Ljs3$}grnfUmaudlc=WlKi*`(P#FT{L(XH@bG-mIhgCN=sRuzjQ*f zomh7*7}X{a^MjcvfZa+$?Hv<6%1?>Kh{yCqY|OSUI>Bn}e+@9HJdF`VE0mU!_(oua zU>{2Mdt9V!HZac}9Xn*}yEDxC0vWnil(?5o5f(7T);V|eM`bW1yrUc&U-2^>Ph)UH z;S{5VxO$vjHgwJ>%5u8)IRDH9QXE|zH8YLCSm$}i&NnfF1z#QL6PY126QL-%_HQ3R zDTbl5El0{F#n%5teQ*}{l3|K%T)ly=iYC${SHx~+Za#0*yxy6hVylldI;QSJu)ECX z$$Q7LJib4?KX(v3Pzx|<54St8)R01;y*0EK51x`r7V#<?_T6%%oAmvo)K^v#x0IDe z8fCHs4<#n~-v?<f*?IHFxeTi=)LRuGlm;KQpfp;eKz8%j5LRY2_@Zxpt!>VH_Y*Oq z>u3FgRjIh><c(I9D#8*chRAB|kkF{>Y*%*-7s;H;w&?vNCnr?2!i1N~g|wkk&J_sG z<eZzgP?|IGbKbE<bd3@CHzP#QO=;8ilrlS1=AvgdAic_#5+1GLKcwDk(<rcdGj=?V zX&{E?aGB*EFiYCU5=`!@@Ehh3bq5*z0Wfb@woBa4mpM{c*z#YM_6roRp;Qgm=P{ur zn-fagY+;07KrmbLkd4p^lJpIgZwp{8%?nr&@mTibx+CR1QP8Sg{(d5!*z+Z{!tLkM zQB?Th&-e^r45X?<kA65wANV0IBRET*T-8nfnF7qqkBaev{SBS~Vx5$65AbEGBcq0T zjRrGmxF1S;poXQ*yAiJGmnD0TR0V7%o)!guH8fDqx`vaC5-%x#bIuyY>~;5YL5*9M zHW*QZX>k?4ON+kwRrW*V$?7KKc+~h3InMi-nIxPIdICIXpR_2h(jl-)5_`FZdHPKE zC*0a*O}k#X{Y3Hj0EnpC8d3LoZ1BswGIztjWCjAOF?gePXgPeRSBwsyvFfY~`;FK- z2gKI{M`Y;9r#zXQ4d~<$cr{1*l1Xv?g-Nnp4JOzy;DrvA*7H5j)rpp+MEk(U`6nKy zrjR$Nh5iZ}b(E(<f)Oa^L}oEw=!>Yq12Vcq#O^lu+W3YO4P9t_34%P0h0v|2pdLtN z*j$g9GI}3v!j_8i)WvzWjAYPl)w)0ljPEceW|N<N4lWS1t6)sD_<vRy*PR?!t(EhF z0ur>pi6-D+?R<J4Mbvf8{8cRlXA)pI2UAK^FRLx%e_fh8%EmI}XC>qf77*!{PIFs| z)lFn<J0q;BDGgd4{wlLHpo3o*zCf>()QAWl;mcRl0_fw-Zd*WMAboN+EMpKRnYC#S z*s{yAcc@xvh__Ys#UF(XkljNk9E$7g%}GE%#m2cZaOb-9V1}9fKke|9QI^|IahxIr z;RU|x4oSC<TUJsqc3I0v!ZOw9PVA-uc?t!EforkRz*5TgoLQwhEvEK+0`}tRv|$)o z-*0(Gggd!~oNl<d|3Xu3T}`PA3OZ{m$aL(3E^Y`40q<wTdJepx_$tppnum%PHoX!_ z%uS(YJYtDr7#o<L^4{7wnF&<pTf!yNw5hRCOcyADMbK6HMRE-NhhDDa6mop3Ka1W> zJnEVutUNk=OEXWSwHH|jJKvq^K%zd?t`vH{Sh-^_#lxu*E0ah!#iuRzn}H9RLvJXG z#LJq7f1nj?aTS7ZFmkuGxjN?eLPjOWpsYiW<Mfq*ID*A_p*11)jqG_TE=BhnehBvO zNRy7B{gZkVxdxWpq+RpatS}7&J)PLB60C;9IH-hB5X#D+TxAbP2wJpg;O9!(vy*fX zF|;X-6tP?mkP*X$1F^`al`@z#XJLQNc7v3Yuw3FrcXKXa0%zQaDec3wfHtR+#YW(h zu%=_gTHAA*wnLsFRg2rW88vXqzE|ENC%wsUyHW{VrGuebnb~A>+L1#dV^b;H!XmyV zFct7#f;<hHGDE{EYXf#~!q`=zg~d7L6>$EF21A%I_X9G^+$&`Ke3K&z^MXXbb>l2- zRn~Qhe~fWffXN;ES;>h9EoxVW{2~KI@7-7pOl3o>NH9rL%bcR`-{;i4n^51N1q_M< z8>6IACRsXn#FJ_nH{iX&q_4!mVCW2sdvg0uNxbKIE{rbALe65h(Wv?_b$xunD<<*= zhD9RRzg`@)!!1J@PUPa}$$LbB@l`}c;!CfAl3*Ezg*z+rQQlP8PB4ENg4lA{z7+z) zV9`|#{mK8zZ$@a`;q(3xrZId&mz+!~^xE5W_530_Z`C@YKZTyuNQV9iO*B;+65RC~ zJ4U!N_6n9ab(ySycV(P^W(>~;(F*R%$B%2b8wQ5{B;1hGixN~037Z7JKv>(4_#Xf{ zK*ql(q6T;~t-$?b4tnGpK84YA*|CM5ozWvJ%bZaTdJt8!4TCzT47rm7`yoUhH<`w+ z0Tp@P`UaMhu8ORLYJ6k{tWfkACf=%L1l75@l7XyKWaWo!w55jvQ>}-HzEtuo<u(6V z#<&7XTfq({CmkG#lZjeo%P&!Qo9ISE5reyYqGK2`2<R^*eu;jY9<P9ux)1UeY|(XS znX$5xTst!KvWfDc4j*`^6Y-<n%MQy{Pg7mbui|7Y*!vXX-?E-_S;-L!Cag=LD2(vP za;4#Mxm7z!-QKr37ng`ZXLkxRqlGG~*m!wOw#e8j^L9qBlb=V&c2VjJoYr2gW-tri zxYtYjvf_b4SJns}fhtw%*%RO@g`o5$gfT4P!f;XPSR4Rxmwu2z{A6GjBn9wJD>z!A z+#^1aZ7FWOmwPng$MgkvK<2exV%-<%6ppB5#H{#jnJ+00-zQ9RaAKXvVb?tBtszI9 zcUJp=^hp<#3|jkF`TAA-!`!&vxafMlnEHYIo{YyoK}VFH@~lSf0~6ACuq{n;o3p_M zH#UyAh)$AT_!m^!HYSy1v(JO#Qi^;Tl?)W=iXwdyvN@D68Q*kY;8k#9g6jiPkyPvO zHi<1)Bu-j<h;jmB+-u~qETLsJt#%D<It%jO#iyU+&hi!A8XSpJO2IeXmwgWtp2#TH zY(X3rKL>C7(ER@q_6|Uv?CSsjXN(<V$F^<TwzV^}WAE79v2EMtj&1JPw!Qz^b1u&P z-upZMs#Gfd<kjyyNhh78sw=&m0F7?1vPOEo&MDWmWvLI-OMb`kc~Jg(Wz*;gbvp*9 zl#f_`Z1y}K@<hkZLz-aUQWMsIw#jb3j#V2IZqLK%b~RZoiiDdJ$=(a}uIxZ+OoMT} zc%v1#KeR>2z{jv<mEjg`LjIPLl1cbkm4KTolnfKY%FIR@jC5y;Os5AS;alj48g^eP zdl^GOdZ9{TG8|($ar(5GD%Q+5bQ<nda>uXKU(G0y0-#9<eH_V5qrR)x+x`NWO+C3o z9VZwKe{3~~=Sg?aIp$e6OH~Z~hi4^AWXg*l<5HbN-nR12BexZE<Spq>b1N~#*Ex=j z_Gsa9I)Li;6|<yV(>aWl%w-0EO*oU-)=(vi*Cy3aWzwG2={|{!poJWNy>`|^VLX2q zLJ@AuN{mKjEk`_(xx_LfAjb?AcwpI_5^i;h3Gm_pP5>xc;tx=$JYf};spX&gICNX4 zV+2Jan{NP(=r=Q}W&|@aJy;+eyfduEFt4YvUHas&8WtXAml}h|c4*@h0Du1sl;W+! zC~VFjUO?VIcopFt{)OF(AwHd;UL^f~Q1N)>r4WD&8mC`Ne)<l%=$Aa8BHM9dJ9n^W z9Opja3-}Z)BHf;vqi{{p_FmzYgHFaxI(zGEuZzXjFOtW=m}T2n^I*0bs!RzRgp*`n z1iEX3fSqytb8ew-09YO%-V8Ih+_g(oRDFghMuS`F>#38*W_Ql`b#4ZF^5xO-63wu` zSS`OhA#FHC>_Nn#)T&##SiUzs^XWumiZ_2BTdstdUoOX(XF}JNu(?3N10Q7>wxubd z;mba`VeY~&fVDZ9_!0rEMTfS7FwO0vek1eZlaY+jvr&l?G#AxWro-tJ;`=*>uaM6( zjo{|!csNwRlIYsg{z1Wu3Eg^zZLrp~e5IkA-qeMImQ;&jbc?gQhLb)nMy?TLX#$zD z8G46;VeSa}2+E=S08pDU+I;r>ssl;Mmz~Tt+tBe&vqO<-Lx=%pVa=FF5k-2qxk0U) zAiic%h6H7=)z#en+Iu)tC=O((X>AO%`;ls=lV5=5;|z4&ID-i-xNEl;7N_v69R~Ic zNg&VZqDpgpeX2;a-t%NR<mpC6O9l}*M-rYKW@&;7=dwrx#p}@SFJ{dwm!bGdMb{}- zc$lmqQWcm53iMq{BjXAhv=OM?X1AMV58=TQas{d(`Mu2RAw#Y#OJz(FDHe@M?1osb zXw+&&l>0?kKSC|ft$_-|>t6|qoMLRSN4p$*Trx9Yr`uALEHEHzupNM9{1@n?PZ5yP zg1(GW)qI;fr}w_EdKll{z=o?qQSbSBSZ;A}tfR?}K1%Lz0eM0)d0WaDefTIEJBTtk z1JQ?GYg{${d93cK?+b-&mZK<y$zr}m;BfiN;k%ptEZ&#BB1hQZR+(We-(E48k)T6t zS^W^<GEMU?M}opzMT%LivT5;hT7!w{S?vW($7pk+{h4tZFyVR0d{5Y@NjxE=o5882 z*Q;ArKJLFYTo$fHCn=)3PzAPx<g${e6xtQVZLtK<d@c~oE1*x+1V?xjqI%GG=HTdp zVsF^b6f5Xq0yCd~?kUv6abLK^2>K~=UKtITPt~!`XX-5CRvpK3zh&@whL*Lgu8SY8 z3l=X>^*0FKo6jE&WRU3?-;Kbh5AMNm(2!|&V5)do5-PGZQsp(Du3P6wVYUR_U#$NL z({v<`@d^=*l5wd<u|PCiE`mbtKr^@7676PjJ4W<ro5T0q!QS+EF(4Cyv9}XV$;ajP zU5f5!<g{(#GK!!BW05(WRgeey3EFDwuCZI-rShb9#9}{eaFK!s{e1)JIuC_w{rbq+ zrr{99xm7c*Yi(SgiHh$s5e<F9$>Lz%wHe)sgS^j*(D#+pq+~qRR_tlbN`#VNceRQ~ zXW5pTz~j&8q$)1mN37`GuF!%_x0(8nvIs}KlNGFX0csK$;6UeJIj78-Bva#MktNTt zBDhg4RbpJiRH2sAjLOT~n;s}ZEb~c-Sa-<!@EhB(ZHU9iyF|XOT;N{#Z6oEM5>n1< za#bLz{&3<wRp_H2Gr&HSEdr90HAstoP|vhP-f&w`l$|z+0DE^Slg`I!N`DwN?w4C2 z`?>-o&gyt2y)-ndP0|R4z%@e>SbO~>oAE-p04zJFftr|1WZ%bJPtdSQP6bIhk%nA6 zW32l7jc64bQk9tW#Osqm+JOGUlcb21l2M%dNfMZ)iKa<2o1jKGq?YX=koGPOfi)S( zv-Ucj>qfS=EiqMaZ}kja6`q9!k2Y_-z{7Are6tR8elF@Qh(VE$JlWa)T5N!R|M2*Y zGvH%yR={^fdDt)8sP1qZ>aQ>^qPKQ+a5&RQw640k;{ZHR$fz=y<?YBDhl;ZUHD3VY z8V)CCU{huFgI|q;Px&qG8{`jTAgCpdOFVx0w>&rj<AL|F0gw)*Hq>zuozKp~)q^v5 z?2x|z^ed2;VY0L7PBn#$F#|}lsrD-4ZLJ`mMH+FB)Kuf)T?Rg}%T*bII(?NcWi5T| zP1D@Reu#+iTNYHRc6^@Od+xuoG9mdEHj8dWnad`UF_eG_1ZN-SPbQFhx{^t_Pg;TJ zo|!u6kdHWS5MD;un?8bX7hV$d4qhXw<vM#_$Qda|^b24R*=PVmW=I5WV9i_Q(vM+9 zzR8q)L}IA>J}*jYjGlClmC!>;<ZWjW_mf$vvDuR%fORPsi5%QjfTxskdH|^kb!2B; z_b70>lLmV+GH@p|w3V_^fNMDX`?tZ{{zPYNh&Y88F&(vn2964DeF|tWGWAfptI3K* zW<{z`8Ob;v{q4wQ%^F|o$Mfu4F6A5x&HdOOLec52oz_X6a1l+U{BCg+gdCMk709{3 z?bqKS?39e^F~qrcsOn`UTh6*#X2=~dR7El_aA@t6g!)(p2+i1Ae9J5~KAX(#9k&pf zMb<8^vRmW44Ks<?1fM$CH{Q&Nh&eP;*E{H-p-(f!8+LEh)@uLWggjBdg<ZCkD11>+ z+Ybx+si6hY-nqX+tDWODWUpw{s6QKWuy(-S6bw=>He4htH{aHj8ahT&=<XZ|%s0k5 z!lL^v^N5Od>4eI!VjHRcYw5ZN^5sqJY)=VaK9okCa^~<_`$}$Jo{}TS2;5hgAn-HO z)@wKCIB*S}u*631NFQE%O-GI5)2Nv7dw&7loN)!LXIOE1`}JAgctI>n1qu|L1#vg| zJQVrLP9Iz+88jtx)LN9;UT}jp6pq76WA?3FMM?vQs>p_yj=AIWx!by_9<@x;Z(0pD z;%)&XecG;vWjQSjOHB(ruaI?Z_F)0aq#=j~5eoHBH=(hD+6JP{t;<Bf#z~s0SD(2d zun1%cBs5x>SxO@7nj9#4yV^RRIu7EyXec?`$^u{L!2}!84Ss$%sUE7|oT(3J51K=X zlcz5~zoA<4M>=|-+N;RZiX`Eya#WDCjR*6$L^FwvuMIDkl&Kym=*OfO#^UNhM{C~{ zmN&ot3I2+okX+Z=g71#TInZQ%ffRmhMl!oM77@O{_VKW&G@!)WlN0S#8VuD{s&G7a z;z=6}3}=71I<J|g4lTLIMc^UiGc*tZu5i{4JSl?8^2_V4u8*ReYNi^O>YDY5D!i4< z8tHY<KIhi5I=i|GAMx(-A^@6Q9j{g)Bv%Z_PIi%CS%hR+r{GHP6R=)-qWo0Q`R3o> z*Y!9Rhiwgvm6Vm>!E_UT&aQm^`5AjWA3mH^P^;XoABNIJn1pbXVr^l&^7l07W>a1@ zdJwerDyF$C`(}3|k&w5hlFK=Obh#XIlIE1xE-E$jYB=h~)}Jks-G7x&L?ECI&%N3= zqg)f-EvoQYgd`QR;y}+uxXv@b=aLs8fOI$1)&2d(>5cRA3WjvvePoGsqcbJR-b%W{ zz!G$W*lg-6-!X4=PbZ>BOPFTj>$DNlFF+=pF*c0T>@Dt@VI4f@!$3?RWsz}G19W%- z8+*h(CCX5|C$eM>MLzRn2uvl<p4jo8lE6b$GOMSI;}hG3D^X;b2vkqF`HNU2gB~7z zwCZwX7O8L3Fv)I=N6&TVVJA854HOwGmuwc<rP`@Stidk;2oX}$!I)&=p}aCM%WVsv zUzgFY4POP}1ZPftne-mj_Zy4=D}f;Rw&^EsKZZ#wG*Zy9nX5W?C$gbE;-Cn-N?Tl$ z!tt{TiGyAzb&AN!a)}e&22olalx3$Z;<Svp27RLQD5gxC^-r&^H8T0FPc2Zs3?oIb znyGVyKJu<a$vAl#nqKs?LOm4wE|T~pmg~;wH1;mtHhtHXh|%<GoU)X^0HnrQpv?nR zkyXqw@Qa^S6}=%L|5&KUQCKibib(UY?x**RbYiwo(|Lx4I9&3|qTAFb%UcS{XP|__ zGkapm8|t{rb0<fEmhv?})&8s~Z_an6sbQeEaow(B%`#FvJiJz$uK_0+Y||SY&(CO~ z&2RMH=p8oc+@<H~-XH7CAk~HrC}Bg?BTjvZq4nOuwY>4l?}boDC)?VMDl&&*YT)3t z;h{LvW#ER7osf*Pu+Cz`yB?jr`vs^X5z6fwE6keXn?_N2x5D@Ae;*u{j9F$`AVt_* zAY2hv_n47Bma^cLF64W@*kfxxJ?NxC^w1@|LJMgZjgBC|6l4xCgPe&V@1zUce(Yq< z6BmsR>(g6*=vn0jKYGl1zBXK&_#|HugfhDG`+dTf`Q)K%Bt8%mw!QVakYylVm#Hy% zc%K$)m0b^3SC-V+-eje19Sgre2x#{R|M*%9Dr|d-NVtE1rT?k`bGxs<hwea#qQm(d zbMs?U=F0C{U}zF&KhVh#vIlCIF;@lM-d7^(Bj7YGhCP3T#a&dPqdm85MG7$jFx18j zaLL=ZQNc6WRWwoQb00<*r1aOLDQQKf-wQ8X7%cOSHzLJ`lzr@ul}Iu=Q_FV|{hU^K zSNbubQYvI4Mx@Ao!u>oM=K2eOE34c9ny)MEkrkUZ&~hIvEXwIL^ExnV8wR7vq@rJ+ zQzOWjU)_0}S03jmsw77i5(bhLpgueJY&fhD%e$*V!SrM}j1kpCz5B593xIjCgZDVd zhkoM9b9>pyIiM$oGWb;t@iT8oO&{KI7|ppaB$#ztblN5ltKjOKZ*J7JM;6qcu{nSH z0CEv3IW1<_IX#99ct=rAoI#j_3#V*lUm=#&6ho?HSdif~h81fiMVK+hBWcX7o2^E8 z5-D=G!o0ozQDjv-&`S@sT`-?`qej8oERHD|$0ftU@EF;%5fv;S<e6EYNL16~faHt| z_MqxI#><><q#X?_T$pWB%E^junt9iz5mbUEokY7UD@9Crs><+BJjy+xpsgm5*8${E zNdzKrfz-S+?HUF(Y+AZYykNmRDW>>6l^WK;v88^N`$|!k9^Di^^$KmSiq8SXHVE&O zDn3U7-R!^(0p#`cl`4ggr$g_>!%D-O&BLiFc=Mmf+r@h5$fBe<m&0s6C1%|(!O8+w zf_~)Wb`eXr7x$z&3tMiW55h4TYs#WOafjO7U{y*RwMg{5WM)Bz63at&D-HGB`YWO4 z1|!M_<3_1(D_w<SV3_K1nSJp%o9f}g{{;vE&BN>{yP(X7kwrE?(|k9At?RR#Kq&@> z%R^z8lRCX3di`OS5SV>}E5gJ4V2(|ma~VP{L7uDqEy`+@FeDdwTVWBsQ_fiF)5;d2 z##1_qXPSa27Su*nUJvE=OeQJ4<|kJzgyiD_#U4-DtZiOb&bsp^{m_Dd;xk=k1w#K$ zjPIz1q<jqu-}k^r;m$6T>)7-eB4da3zC(!EYN@F(W{@U$M^`t-7bY;4Ly%k2Gky(N zijT0x+e5_$F<1W#AFkgR9e;}bQy7lH;;^#Y(h2E?&huj*JmzFi0Adm8jhMtlySOTf zc7fxuJDSGNPIMcU7l>2V$XQQ<=cqJfi)Ts0weu+sr$=n5<rTeOhCuPcQrAd7tfe;s zTYH3A6@NtTi%gzP)DVLMWDj1w%J(MvICG)KkZjik_yDIkX|@LiB|P@56umWeLQ0JR zyeAYD6tl$XZeAr{`eoIOtH9wZ6+FX>r*No+B-)M#^ipx6uZJpXw_difn0)HA*alQq z>a?G<oEWYpwtQK$F4lRX$(^7yWpnW>1@=a%jE|zyM|WaQ%sCsv=_INL(8LZ1D?Ce` z><~?$SJe8@X-9!~Q)X<Ydyq~(<$Z7XgqGj4l#0$|rJmE|U8~|6zvUJf#B0D76jkT8 zu|P4x7|C)`I5((xto+U5Ag2{(kaRf<3o{CGs76Qv{0iJ5?!0550TJo7f+9bHX6Fk* z-`8SgcQQ*g)G*bB)2Nh*t)iLBs7!I{C@t1O3!iV)ij;mRY+@rMsG+HtgJI!dF(QW* zTreC26oPXLD)2#=<_$l@WjvEkehNN@^cV~#^KR#ebSfx-EG*HV(`>1fmXgqu72+vX z#!qSR$82={>H|<A0R8bnBjmqMP6k2*5HJWR&>PtK#vtJH%jeWgU+Q;XZT<7K4?cn$ zW3i{^Ow2joPQ;;n^eCno3RiGCzW%E+Q2l&nX4bvyqOhlSE>Gv}1u=h;wTpR;nC>RP z`A)Ntg7cI&3avBuN`wXfnQ8G}Zx=OElHbzXJE@-_8oF2fFg#&zwk7F`510Sjt4JeD z;x$)R&4v^#iG)rh3{ppC%%krk2PANT?IAC+v41<8ln6JV9=>-HbIqKOD$4UL6@jFE z2`~8h2j$d;M21Y`2ALU*A(!9a#pQ)YlqS|ut$q~9O;@}0)o^xUx}hg<R5D6(*!)Dd zy{PMaI6DCG(Wc@nSHx|_iiiKrvWUC#^vsdXAtj3k;Lu|Z+c(*?;&aa`SH$Q>1ZIz` z?!4C3xT<#5qqW}vqIzp}=K1^Rqe->v)Zn@UYm;MgBS|bIi@M?nlUyO<qdp;^wf_9| zp`uqZA!K_cWC7rj&Rv&F0Q|$a&c-(F6#KB|@ykfR*3nIcLiKa1Dk?7IvcV0#`L0v; zxv|tk7;jdP&W!M&3Q>BqDmEXNS+x-OD<{&FFUX!38l?X5E{f)fhtCSTZRvLo$Dguv zQckZlHF8iiomqIR_xIlHm@<)_^QCs?`|qE>8xv)m=Sa@UR$4E0z={zjgNm<4?X`3T zu8u{#6sL{hfY^8;|Jbiuv(U?4^xm@G0EQD=cn09tG<x_zb<mIQ3^}}XUDh$vg}Zo6 z!-#&P9JQqKQJzw#PW1;f^S^8pn(FGkYg8vGU<Ds2C1Kim;G68()7jN}^jLTn-l3@< zOMjTN{34O~Aqt8AO6wxDcIfVQmVHpOCJ>|zE`8)l{J{073oi?+9co5dZ{)%2dM2c> zscLYvp?XB$W$`w6*?&7Nw^)D(3JmfUGYU8b={C@5CsS^<c?y7l;q|#%O1+nx-8*LS zkIY!ruHvI{{w0QSldd4S;(aViC8CPT(-Ghc;22aYDQ5L1HO+YTjH<1&*j_etcPGm~ za*$M$dAdWV3KN~ze!g-XO!IX$RSrSY6-f#!SGebb9|zHSf>-tWLput#PN;CvW3L)X z9Wgz6!E=1SF}}qlg5;Fgh^JS{esYKX1t>4fa61No0!A+{6Kfl~UoVn{Z+`(;cm#(? zLPxV!DEUPAS|Ott$qn;-9E;W`H37a~c&{XeJRP5>t6r8$?`})a{Q+)XC@E-lt6hsG z=Z0Vm)jw-*G{ad-A7T$Q!!-QP9wPXyiG-qFL>Q@ACS&`l;nd&ZrgIX2ka_1nZ!bUu zLQVx^6PBCk<8wpeL-(1%x)BElp(dCdV|y>tWCSBUPeee`OMfhddA$nhDa600nR#kf zumSM7S+`<MC`^&^<NOmuywSgfL(z+xUc$l%bRkPbp1%b5qnCc6FuYPAV-cLLGs~Fp z@&FfmC@|feKOf#POsjF7bJ~PoC`a}`_>u#}4BZi1_2cHHYp@Q107*18Tf@2NAyCkx z%y#akn20+_Z_G_u0>FkVlntEU^g2660KSUH9!JEw9ogP6+IxOM)V^}+aHS4!5YMu+ zfBZF_I=u6|n3|oLJ67QWNTtoHeU5CZLVgf{tFSv-K$kKTD1{>~rpK(d#E41%ye8ZS z3>Y0AhKcF*eDG3X`#x~C{$;&4>tkh2x5~9LFs5>9qGwol00w?z&xwZ%_)hd)NsiKf zZ7jVgkWMAIU1b4*Ix3k;yms&QK9>N%kKydv!nAAVMr%>~Wjt_Ot0BKzDn$M&m8J5< z|J)HYS6lk^8wGa|qp?C=p@W+qtXF_MUb~<_ai%7TFXgTxoZ(O}NY%Hy?Q@K2L{#f4 z<2qwb8C3SoQ!K@v0&!#$IJ_=g`D{u|DW1>=_THcb_PGA%(B?A~n~ezY)xJI%n@LGY zYS9FI%H3<J$?PvEzA-<)7YE<rkjMLf-f6vN8umVRR~$<G%9;na@?c~{Z#0+vDfA#l z6gfYOMSp<c(Celg+O}@nuPkJ!Y;`V~x2{mze9*Tu+cb=kPNhJ25|Z8wH3TkfQtbSh zVJ&RVEnzGj3wu7x<#pk_MF%QBr{A=NBhDw0`AL;){V_XY6_g@-H0sNR(X%cGuqxaM z0n*TcR2|(<Jlhha+UlgWtt%M11m0Es0}(;soN`$5=2Qp=WG*lSeII-(P|hunoAYO` z!xe_ZhuaezD^z=~Pi1L~t+7J>>b*&EYni>2va&R|zyv#0V=^=pO#IwM?aDGhmHIzJ zJ>NP2b@Aelf(j{M0-^=_eL5b8;Qk<XHN&OY;GuVYPI+DJmeeqNR~dJK_ZaW)r%!|* zE9)%$L{o^M_l~PMTPRE=c4IPkLD75Zh3}gqI|#PE=+{+pQ$LNgCA2vyNqjIe#v%o6 zEnd#lnyu^mFCyJQP-7L-q|0&EW(*W;YntbaJq~$2{NU+|=^{d}60SXoG_}j%%2~Kk zqTrRYf~KmWQT-H{-!paQ7$t&D3>Zp}&vVCVg)tRah(}Tfn$TNHhDr0|2}mR0^hU;W z2klz8)0>rJo5?D8Jm2_Ay>rX%gcD#g^Hhxh2)Kf|<q2DNKjqd_WRH2>(Sm;l`!+Md zmf}I<tQ;xt#2;Oi#W%Vf%A2>_4#6D)17WAeXf43fXl0@0?KBmtfC0-S55gt%`sg(v zDbS0`1i)upR6JslO6YFmh5CuXa;Ck4-jU6{p5<H|vQJ|XhSZxF8SvEoc*vC}CpGm! zDn&xHf18$49l*5y8R=SgSU=o`e{s&P#$5ki0qswgYeZ?NN$qa0Bs%CovtQ%|+8l)i zf1aa~F`ila&QKz&)d+HM&gB}`gqJMulm$h>^#~MFl=OJ9;nO!;6ACk&Iv!8Uz@{-R zDTLaQmyUq}v<wEptpB21tEV%ruV^!ev+9tyryg2z{yxqCBZ-X8#UVw<?3g;YYJqh> zixLPYbYKk$Tpqz`x<8-U9Yc5Q%?b>Jf&Gd(GGae@Z&po+T?*3UuBmU}Vsye2dIDs_ zaC?6qhusaSQ_h0rlaYM#y*{?DH|a|3HsaPw*ciB=f2B&FxwrJ=Wq;0x@i0DALN~$2 z@J!TA4ii`;hvJS9uLORf7sv}WHxY>M*SEcr)tIPZcluQ$E^jT_j*LvLtAJTq6o&T~ zpp{lLdVmBm9H)@8+SN%VG_K;YF$xuOqUp^AZ6w4^0T9cEdll3%DB~+fNe@99>|6X6 z%KD`ngDV8tpiCm<x~vY#yn$+$w`HR?@iueUDlWZ7!-Zt=P(g;iNQ|^A2A9k@!H%^S zsT$p*9#oE-jqBbhV!gDb2^YXshx$FiTjat9GHqk0I*OkM{yxH&IsLp06~Yv|YQK~p z?(&wRMaf&8+uxJm-lim_&H;mL>ZQt4Mrew`?Zp{?w2HX*V`MThC?s*>At+#D7X$Rq zl*C&!SIL1utw~4V4CTrd6XsrAaG3EuX<mwu1Z8*CA}5~1b@xXNXwzRDm)Oakl{}Hh zrV|gm#_ouU?_MSj@wIwaZSr8z8M#~*2j?E33OMe%T&CV(f}AKdw3qwK1f=la1FnDC zy3Km(F8b1e2#n>6sH(ADbbTe{*D?D(+w0WGsju5nr?h73K4)+7Aoa+{Obq3hf5r<{ z&7=wLxjFZhNK{l|Y7R(~bf+J#0-DE7jk^qP`2mu^C(hkyJztR{_IyiI9SW&1H#)-@ zpF<Id{#&Cm@pKZW6WF;I7q&CvA&U#C_4TDN*wgx?EO9_Qj1PlmN8q$>Jcy}pOig?* zJ_K;hIT7YB0Ni|Nq`H|Ov<`3*lAi1o0%*wtreKP9w5XmW8!>fDkGbS(^j6`<9dPh% z9vm=;^EV!)<YSw{2;&Wyya=x{%bb+n{gM25sqdNHa;>lPEke^ai+;bWoIQI_Vo9EC zC-4h^iaGDYZ`lC86YRBv>K}wCM4bGs2jkd#f`=QX*WT(OO7}@rg?)<KSPi5^kSKFu zV}R1oSt<5<iR1AOxZr&zYr{Wa4h+4kv%W;ozohO3jtiiVI9zrn2^ni32}JqBWQvkd zqIA%(n#xz9yQb|nKV8<%5a-FsU{<QtnGPI&Qs1q|hD^-KNT+OO#qjIU5${F8vM?)J zTo`WAN%uCC4g*z`{%L#=px$I&+?0>J46n9Mj<LgM=E0>cp!;JQ)wWs_#5lQU=Wxla zD0-$vky)u27rC68it|K^W+zs*jT`UY5gd3tu9yAc9gBrb1-Dq&8k4$1HV_D!bj9k! zFaDE4VVg?&z3G(R60uXja~XrUx4TM+PU`HWb`{u7ZN_2^;6wV1<E>di@NyO^;)h-j z5)zA1{tbR)5VcK8uWtTg&>c6VlY-5<l5w_j1R9;YrDd*A9}PPwPoDpxe8xaZ(-Si| zsyM3xjku+zmO4v`v3j5#tL;&hDmg2*O4<V>;3fDmm80bFgbS~BCjCw7VJ^JX)6`!a zx*BB>Jz`RgCa^9@?7|ItM;|{rmiaJ!@uaPACcwdgTSv0%M{QI0nW!^KW<pRf*llrQ z)GX%xAYW_$Nef1|SJ^5$&#}%Ydv`^eZlB{>0;sfO^8wVb!?(MO0a19w*Ams8?k2iG zx)tnaOXuiNkB$JC>mBs~w!>^c0=A2b9riUNz33Dy5|KQH1Wej*-?f%4j^6)1e1&wB zgs%`uVM3zwETl1ol^$`)UQxIZ^?e}PuL3Q`CCM^RGtsy-A)TR_!0SvSs^;zC11gi8 zIwVS}mM?FCzbChq_y2-uYFgm=mSp8}{OB~+JR_Z#jtl3`oJDA7dpKF-0uvNe0G~Ae zu5u9E*4-PWu%?Lw2bK}37job{73$Mke=W_jbi#k9cVlYv^=U!5(k|?5p368cD85u% z;w@G2M=dew03Ss8)(Orl9|UewQw21kp|U}ip8z89Sm9f_US%70bE35;*S-cCJYXhI z3!jy(5%BPH*~~f!&-sy7iFJ}MwO1&2T@PhQzLvvzX$FK)!I&t)bg?~`+VVgVP=b{Z zZpV!`YLsPT6@s5s7oOsn2fj7invl5LV8lulHvf}BPTxD8Q6gv%TBrgI&DH*GYm3$@ zws#^M`8b88B_91kwrs%K?*0NfztkPKMp|NvmbG}0lAjdbPhj6#{xn);)409tD|>8( z*T@~tNR;5UEtM#`X~&{zp*1H5k6HFmLYw{yrlKf=n=*nxaFA|6DTT4)dw0p(4#DAU zFZa~_#281XOXk{()9_8!MeQK_RTF$oK-DRQydK9fmxXfx4iqq*?2X|q$tS+C+)FO+ zwpXRlghG4Ii<u%-jkuBtg3ba>dZr%}Fg!O4V>`b9owoxLzH8Fzfj}^?4WMmgIZ_hk z@$!n``|eWeXLsB+Hiuu?w}6XeLuSQ72;7RdB-|=%H0*yODW2opg+7{`w$bX{Ugi;J zl7fxpIAnkwLOe(dGSxekpa$KsqJlk8MKDc3k8TNJHkUYIAnAukKr_-$eQ~nb+NZ6@ z@Suw*gn&EnUTI_*Htk`+THR72ltXN{>{nVcwj$06yP!b@8$O#Rk>!R{KEYkpO_}5S z9yHApmONhoNFWPH_=aF;A<gOe<6DgQKs}#QhBYhJ#F!Xr78HYhozj776;xB`6y+gF z7+gb|*E659!rf{EM4Udo^W|vl&{KJk3);Fe0JmizzTpNH-=iHNAEhitvQm))j!)}; znoKyA^ChE+?$L$O*k3kCC)F%Zw!2?+`J10O*R-PAfRZN#yhy5T<^e>%iB$|;(Kv!B zm33awmKFMVCJty(7yKAyJpH_HV}=KG4?+tc3y$Ut_%et|N-wPw?^Z+hsUR~TnHNqT zL*xAOmkOtWuF(R+BBW}#2Jy{|;_BhSMou{tHRSj%r!!*DV`70E8{obtSqp`cq5)kp zxtFqnXgL7*HVH3zHR$&l&$Ug`oS{}7&lh9kW*2(=%^C4tG9wz@1_xMetdlE%578G3 z1f6w1xH^jD%;gM5E5!?eT220sl_LPoQJ|3fm22$9>XEk-PH=Zlrpu$vyj^pa(+8bf z*Lk<v?sfK*Eg=#!mY2jl$YhL&v*Sl$=Z=i==s`C|ft~TKobEifpiesnG|MSv&UD32 zfj4Gi6MexKYbuR~s~=Hy8S`h=nar`|lGwpr#^E3>b9+}+{zGP%DJ=R>SpvLAE0IP6 zVTm^ZNYddtlBf*Zn~v^CXfj`gV-LKZ8RD>Zh83J_nt74Yq5a7xQc56QcUZW?7Ya<A zL_x%A#vSK|&*SicRYoGHMU7whcu`>Dg34B7W_fagq%B-QpT-B_h~^4xrtRBErJ27N z6t!S{S|+9A^d|zp_ymHLEl=PJx_h#$(_l@1Q%tbGvR$xie9%>G5QjNM+mZCnAYa~z zE7faM!fF11D&P^tO?g|Y+Q$C%XeI1Hhtg$ClGO|V00CUi2y5HwEr-cP=nf<~Pm1mx zzg5ZW%$N2OmrK`Y(3>G$_CgctrW?`f;*N`z@^xyW+sXy{c5HnS!&Ef}BUE6tEgKDh zX?C%7CbkpjIo{|6>+iZ4H5kL|`E=+a7T!ZGB`F_d=+7q!DJT#phft!}F6KitY78w7 zq{xd1DjZYfGB|j!jra>dYg}`-H?gUE$2`$8lEUah|INXN{1*Tr6jorHsUV5|8A6X% z$=2)cG=;rPs{2x%zXRwJF=N-e6Zfj;Xpm0RrCm?q3|IS6>Cl<_{>=haPYzH&vwX*O zTh4fK5$5LNWcQ_+;Z1%s7oN6b$(=6pE_0*8u<Y<mU>Qw*Tji%e>OdzUWxF%l!|1Bh z7)<Hhem_jC!Fu14O*wEWtH4%`Eba!h(Vgfgwy&45*zKHS@D8n&`?jsdFDH9DD6Q_r z%wqPOB^_1Zle$xHd#Z5sBmH@K@NPuZm`Uf*`34nA19gVAlreeVC1SsKgyP6DNSvjb z6+_yZsbPTidk77Gfmb`J&<Yt$O3DP>@^bl5vsY;Z&5<0bhbOqj)Sn}s7nAR^h7Hj+ zzLz?Tw=5WV+7y3-do~De_A)zx{r*a+UP0aNaF<^V2Q9Jrx&W(Pt>-cmP=6GAz*T%k z9bj^G#gTS5xZ>)&xzXi4$8&GDt(YvhtIW}smNz>Fx5c;ad5>Sdt}EWB89nlFBy0rm znYsaKW9hzbN_iVc?_#io>FhcKM?&7?0)y;coex$oM{-@g;58~oU=MgNW3}Scx?4*N ztaI=bUu$sWj=};*<A142!AI=QZoRiyeg#U?$ll`Ngd<9Gn)irxYQMXo59uZ&d2@&Q ziF3nsLf_-n)sKOI00guf)QU1-d0(F0&@s6<_EXwE+B5armXR26Q46F_uh4J~*Nrzs zssW7E_Y?@lYSyD4uFUa3%+Nr2{xZR-0s+<Oc&T)|!^{GhCQ}>0TexQFP;d<9L_b@d z19*$#Oci=hiki|yTZEWN*CoY^Va$bg62tkttcaIB9lm5r()|M9*t9)#d0CN5%Bc}m z#dcU1mPgHwS0vF+z4z-k1Vaq-ST|*yJ~dVr+l?+1u(}>k5@-GbL>5{Dx9}nE-+Tk2 zTYTB|5tg9hShB(LYTt;6G#VD}H~$Jl?f$xyKPENI@AV5HgeSSqhRKm&o>QF4Yi4{k zNdA^787rjd6ys6X`S9)7NHlDx0(qdTL2sezOzpPp8TD=Cy};YNt3fN!8mIBi*i*#Q z*cvD1!`fhtV=g0yLX0*myZzkKrQ0dP7uwQ>oRk$NRi<^I`9AOMTnoI|S3V=}0ZWE% zpa11R9m!!i@M~f1tmgJj5qnr$+>|R%<Th@tkM8<UT`6B$M;Z^wu~H_^cxAk9vCG-~ z>@8a5@Chpp0Zq9;w!vD}z~<rp=j~~H6rh+ryv-pJ>NUeV@E{5L8%PQYO(Ddp-7Ax; z>tyQ1rHY9>#7m@>JyD#IW_xpiQfY)J8yZl4G&M@Fc!_?CwIV%o_c@^-6RC;UoX~Qf z{mVB%fsvZ>vII6~GMvTu{_v#j>WDxRiN63uZ^d_3=cnY!a#*Sa;B6GL*#^hVjr|a_ zJih=sp@<~LrrizXh@4Y}R(55ErkIl;N$2t1X7BY?ZI4x=1(<s;n-;61sHfQZhS+GA z(HERS4?^zpjv6mC2XbUB{$!^{p4u<v?l3EdTQ@1GRrV)6U#1ixWm1<!BPA=Oj>f~$ zXk+-dW{S@R<iF|r59AG4WAf{oP?ZSKr)5M{=#}rmxGU-7BERHYas2|^cZkXP>WR@h zQW%%d<F8v~HUuYhwm^hXA!V=}jkSFeTnCXw&Nb7ep#en)vRS5lPNcyTzP4;(SU=qe zl}=pqYEh==meMakAjR<a4b!#|9RymP8mt_!#NVJ86FRgQF=J)n&DkPsvITtQB}77K z*iM1jh2)r_-$Zq%)+@bJ&VaG*gP&J#exUP`*}m(ZZmGD4UpT{=j5UbtPEwIFB01sc zH!5g4V^%|gy8bEw20%a!Ps9B|r}~qz{b;olU1yEb*}+*-siPBRgR7`$q<mxpZx$L7 z{|fz`z@1#WL)xV=F{c)ZS$?ojtKNE`dQU6{gBpVDUGbGYn;r?N?Se+qwB0C0t$L*{ zP07K5)^jB%G}Rv>P?IwW6^wm-(z!sOt?90W_RFLu68{fKcy#6~`8(*@`pV)dANfeA zy1roGLS6TwQj5+k5Ce0Z<xC+S#7or5nV5Epw~0t1SABB)7a;#?4K_ClcCSJm=sR`z znVj7edk#9K8uwoSmwaLq$<=`8*}Al$E=_2-)hDR3N+CE*C5sug2CTw<knVE#2j`Fl z95S^gH1aR@7Ie(|!IRN~jpUmZqTk62n%8~-Mznw@Xm7KDWU1M-6l~yW6AnM$5812d z@xv00D6)K^-`ta|`x0xPdwvCM8ZbTBKFlSk&X60phUqMhLJp@Skc0`<WEadsQ4T-! zj&B4^A;Ke+5SL&a*5#UD`urW0vb@|GG=`$5s=yMgBME69Ur?l+Lf>)H^K2weqr3hL zT^7UforJb%y+9A2zBcEzSf`lQLriEH61Y6l$vN>zp!QPF9o2C57}T?Y_AuMYvJ%~) z$WL}9R<5rbKol~=gx-Y)JxUVLTX6y%NrB6t>UdIhBdW=yr1`j)XYUV+hT)Q6a0z8m zbvBdBYmyz+KViIjewWvx<$NLlvWt4c>~2X|Rv~J(vg7;D--`l%|3e1hW|I5A0(0H} zF#a{*J52mN!2O{x`?o;ON8JB+z_lFrpiaBP--wK0M-eNE%l)0m9=;zW!I!@QZV>z+ z@%{Mz2I%kk03d~4|3)PH1He!I8{jJXcPVavQ_6_`?^1BE|3)PGcU|5d{@=iLh#(}s zf7#!ZGD-PS3T*G|-;{F0?+3{&{dd455q@^vD7N4U-~W@j{37_fI{3aK7yl2&2lx-* zBlu^@{ZEGYpTI}R+xcH2`~L<$0{#CG=>~@UD}(aiA{5#9@yVP2W?(Bl{+&C)`w?Gl z`XvUU|3$|~uIit_*ln=K>&>JOl!)bKuHe6!AF;?6e=?Nh_<qo9-1XUhH<NsS5sChY zE&deA{(adw8rfby0}A*Dz^?BH3Hjl?&L1MY#lMZ8A2yW#$c@GRh(B48<EMsyBq06} z@%w!jlxN5Nlpo~OA0h;#*YG{io*^G;iKq{T2k?h7$cDv771#}Se)DqNhxm@V@*nm% zwcjFtRDlHd;KL30t6zX;ADHaI*)hSB3BBJL<R2>JFn?B{2JoTc`U~JZ8~tZ#+&4A9 z?}pCez8?9rC8EneVpyk#!;h{Ve1;|9KFR$}|2O<H$!+_m3gHJC`f{;RNbe_e;n|S! z(U$B@3=#M!uQ#Kkf40QjhnskvFReY0G#w8c-a^#1qr^(TAB!A!<DacXob%DqUM|W% z(rO!?4~Ku0&VF|@iE=aH_K)_i_Jag(IQ$sv#BUGl9{(^Bu$_G9EdTqtiPQg%#Uglt zqyPD!AYg7L(J!n2yo~%OnTSPW!u*eP^oKLogLHppLH7>)P5>n9(1D?Vr2lLztUvlf z?hNoBOzi!|1lx~V@jtRYVMzTpQn&wphNBFxK7VLZFb~4v|H~^_%nuLaU;gMU*OMOq zvi~K-RBZyI>;0ow-fs&2FGlxE+&_TpcK!ba_(3_n>HVYcbN%03vOk^w_dDz=+VB4` zmw-PLeE%FhRR1ON3-D))h}rx@<)8QbJB-?dqkkAd{xuAH{!7K|^*s)BbMT)4d;b3c z@coP~N`AZePhYP?{x1MY<MrJ2&r$q4ApBnd->>cr>@NWKwa<Tvkd!w41-Ka%{BIGc zzXJc5DgHAM>--hC`2qa@EArm}B!0txxZ3kSJb}df4-p^w{}%E64^IZ_y^1&M4kDRP zkcsvEu`ho!NEiPhavk3Ja`ErLv@>zDvHu?;lgzij0RI8KT(p4v2SEqJ<Mncax`c+g zgw86}!LxYLd7Jeg#Vi{PL0ojsHMReF$&?}ea8dQ26Japub&SVfEJYceFYjMw|6=*J zQvRQwQCFP+L2cgsr}6)WtDb3&zXg6Xmsx+g{QZp*;vdT^2+-gEe*g2#H2@+3gTU|O z))an!rj%17-#xu`X?yjrQ$G=Y0p@`0Ga5-!9^;isnUBq!_W?gxXM6@PpCtu~t&3^G z%PxOV4SK_#JX%L%f3oRG52_Ba*$lGTYQRm~G})E1!gP71j9x&5W%Dcc`Pf7CYF5c? zHh!OjApfrMj+wm%_BAv`+bb(5e+{^vAFPHMV(Y>aD-6Jf=>6bD7;tAOL;Ir;R?56% zCv$K<RPf25hWRBVf-fLj9glB!L>uX=wh3*a?kl|amAtJ9hi~L`6i<{r2k<faAgvuL z0*pPrBT+fy{;5?FsZ|W-B4Y@oAoDWeJ(LZCpC0z-V}6VP;qF}vca)<Btel21dmwcL zZe+Z%?KXu-7|2ev!f5hgQfw<Wv&QuMz%4MKVZaOn4vdQmnMTyW#kZ&=Yu2Gv^A;}k zS~wx-wsTnd0$a)UmHS(aX#DZ1Ux0c7F1>G2hMm@k>f97B{>7O_af5nY^k6Zdg(R*b zwApI#%*x|v&6aQntD_Fmh!d+YyjC}~!r;Y?57=3YHaguo<u;fdHxHXcsPuErtr;FF zRw3oaRzg<p5A`J-Q=EwNDK@Rx@MlZrZUcF+xyK4OdL0AVPMb9`7L8~1YxcJBR4x+% zn#}7=!N4n}85weVU0h-c@ZsKCese?B?tH^K-chHFnIGf8c$#6|Sxb352@6M&w?O8i zSa_Wg8?ax(fcrfj$AS1T<riR$(AV<Hcy0b}wx*fpm~4HN6$gV<PCPgDBCkdW&Bj*r zP>fs<=id1F9(|0&AoHEr#D<CvJY0Pp`Pma;5k#r#(xW3=b(==!X*xr}*;~UygxMWI zV}5_qggXca!!6ZQ7@R}Wt{{QpM8RTmg8LKfP`3u{JM8e9YC6{DgpzgOBi`JZ)Tuys z!rg1u&gG~KIK<iAs+nl{=PBL`qx*^8wKpGEa5@LRX8c+%8_zM8xD>`kmjq$+Rj;s~ zey5$cwV~@5*6aiFAg4|oJ-KE8me!BY%@C?4M<%zY-(FUMpv`5Y^x!vA(%gxSj#A>} zU62WwfZFay+xrTeIdJ%7k1H?VGy0?iP#PFd&EA~h@v*tPdM}(62z~*0l4Y<=oiY}j zHP%d>BK`VmM*Vk}B(XNvXpEr`TCDG?Jowx*I1bj1Hec4jp3g^rW<n&v--DspWXE^+ z`!NVMO+x{|+o>YA7=4kVbljscf!3koO6IR-$ACnS9_p`6ukKovJF}eCZrv_@<dbJh z@-{*e+HC6+*am<Ew-aGsg(aoM@&ITj9(+an0QH`Vymr9?bEi{IoV!^lIhbZ26^w;5 z!QCw|N)nbHvnZs5Y0w|;`tD;7mJAbZX79q3O@nzXk5&+sZ<PD`mpiqyIVh$b4$Pq( zQAPJIUh>j*Prh3GQ^~lr5psA#Dwe|Cn;^yCwH~G7koH11mzvok`|CqyTm{BX$3F$} zZ<d}Gy-#qcc(#jd=zB!MIj5wTFmCB{NPV|J9St{0t`ZV^Sy%bq_Wh)Xf4UrzI%)F& zpoC*~_?|V_h3r5yw1q{xTYNbCRP$j*Ti#eqwhc}3sdEXD_y)lvn+@Ib>fRqg9(odN z=w`nc(^HY)p_!yc7sUA<iM)<be?_(0HKgBj35gbr)Rhc3kmhwChOpKeEKr0rI6FrF ziRLANi5J72Nf?jB)0<S9C+%HG-ixnJ!)uB|dm%={9Fp#HQ5S<>$1i~BM$W^qvI8~I z*2*pK6ZPIsN)J~W%<&OIdj<z(q_LOM9lY{gNQKt0^8H|Hj(t3D=U4R@ib`4Em9!jt zSM4>TvbYw9ZxBVKv^NZdH_{U_{*p)|hSNwH#+)Ng@$vCXic00znTl)1dBn^iX(zEn zC9blyI3zW@(FgS<P+<9*{mCUUNfZ&y2*(X~?IzeO?;kIey~G+*%j3J<wOk7#VE;J# zK<zw|Q*Q!6w7&Dq*^Vo|O$7K${+mL~Z4kY5WCni=-Dr>S;ox?}QM*gRUx4L3Jju@0 zRCHr-FdKD@f^-zi(9tE}1^wg{KYcEdc3oU>^&f})_Ppw-joBJ3;YU>@5%d@jJ|_=+ z!(k`$DcL^5Eei5O%U3uJ9!?AfGx`&7+d+1R_?t&B-_^N&3Y9t|4fd-0O-1!{vqD(H z2y3{o1EpzDybM+0w^bUHN=ZEf_-h7BP!};6)|qfT-svqUlENTMR|fwvF#!RALV^8b zTKd<=v-p3`O5M{4^!!_w@>jP1I{fovVk!orr0B4NmV{l(8rJ6@FTub*=f2LTucbcl z<}}xAeG{x;1#x_He&_C-`*HKUoVfR9my2IuS&kU#a`VoF1>Vo#;WQiniE{&&FTxrp zk9QzhCQzDf{mfhJN-GR>{!NYuM0Ui^dF$YDD$J=P*bDQ^A?rru#`Y>OX;qxYj7vP} zC;IbW08B+ai|V#48De>*FLqz2_`NYPTlJST9&#h00Z7F(`?NM!Iau4{6+vOm1wJHS zYrJW6y`wM;Gx5&-S#<<J8uIWCUf#t{pk9^o1tPIM!A5ZEev+eLIkZnn_g3RT_qD^L zx(AzWQ=D&hWU(03SrBEc9)BG!d$jo6;5~C1E&4!HUt)!Zj`b<ZME`SPW&T*r<#i4N zqos?>J8*vmp&~<9lGB62Fs#^_v>ea3DOZr2<XI-ujVxc@#$+yYwJ*9}?N5=afW(^E zU40Kk3*bsyI<BnpCtC{(i#iZ*n;@Aj@``g(xnX;KDD$g^ciUTl;_bqma$G4<`s^l| zHcx1f+Un-ZB|#X3s_a4hoJHtxkGof+FOt}1$XWsT!upb{o7+eb(T;QJ=T{bX4^YJo zr4#D3F3aM@8oQ-;&nXMwe%AHAdjD~b#>FVyhuN}+V9y2wDa7P0PH52jN7R9y3*JBi zDCc4@bA6+W2qAEs2S-nR)&a82dgCviIl}2_+X+2TMr?;m>#G{a?rv#?xTm_yV2hv3 z?xOHiPS}>C=zh?8(n8*5K$V%0!k-?CEbAJ2P5uPtXf=b;ROxVrxjz_aaV+>c`gy$$ zD>qIUS)Hf&CmGL90UxB);f$d2T<Wlmxr$MBr1MM}U6Tp#kNR8EX-rJt4Mib1-+_Q) zEra%R^P^KJ9P3n5Or$)mG$JzOmTXd6G4<7R%dJykpZ3nt;=CZDZznp)g!4=*WmQTB zeyJ#tu)>dnbhx!9{OhAbWdxBSjsXK7ZO^peRVPbSa&(GYo}t0jD#Jymr4)sqS?G@# z=g)fO?_G;5;^^a+ra||~QyP5K8k=LTABkC-8#<C2EvwowJU7eeZK%8FEasR>zqt{| zk(gu@t`2b?Wn#;U&Cnq~jeRmyWx86oMqG`Q!Qmk&kudmWa&Brp+NN$ssP(~M|3Zp( zZ0>D7dQf}-o{3W4($#zhAxb|jaNmRkD2Z}<ZtakGVWYvf4ac3C2s>~O=N37jY{c$j zf3{^LmjVUKQ$eqiC}s6^0J*E-jv6+w3OZ33EAqTEGpVq*Y-M_AXf~`I`xn5d@aAbb z{q?x))?^H=s<z7Qz-a44prX9jh%KfvLBkQ)8b@NgP{-JUa&5R+!3ouc0m7i8C=kR2 z&L_)AN5iF)Xufi9xX|c@=lNTIT={cbP&gl}%gSlAd1Ot^p7aFv7|vcRG2)Yz<=k_l zDP|II!-{Y7Nsg7ntVJN6Ws55>)vE|tigr0yTBh>m7L_tlVG!G;eg2ANf6>Al)$@dF z{7?0`9FrP&oQ?|DhBfmolQUe?Hhzb4e2!+6J!1_|v5VDkO}}XN)-_N1DN;0UF$Y*> z{nYvj+w@UfoukkFC0v=5JFIvNYDLg)DkDwIyF?C(Wf(9GU*T5x9P-6qSS^Ak2v#@p z2H;u|SyAEE7SWsr0wURlu5V|4=tc)d!Y%&-Fx=?v^IE(Pj(aCRRo&n*gH~I5%x8-d zbY1+cUDE13&JM;iwS9AtXTP)PXKZW7wr$(CZS2^#tsUFej%|Bp$F_FNJKtOHclD}n z)%)WmbxuXy$;nANsdT5i<X4}lAPh@o`8IE|$O!4FbJ1zFYxAaLw1%fF?B!=xJ%hG` zadslU0xYV@yW`&@N|o~^KIwIv(4zAigEJy<bjmMP`WA*@4j&zGciC{eOqVZraU)$g zh@VwTCE><cBg;6r=C(dqIMW&|z4?b$MczXV8~L;#h~$wCY{#OUEw4;4J2G@H0mTEW z=`vOYSu++E7DFjz6v%=n%EQle%DZa3h?&EvDW((YdHQniiyKn*?!4zbUlB^6-JfCA z$Nn-N(d1e$c5ACp<MKqqhm~iSmf1HV?lmKrtVvYMMQ>CGjWIJR5V9ONoA735-ukrO z*uOT0B)$6g23mJ5_E^{QbVwrq?7#mp3-qpQR?FcFwP1u<bW^R(NiEiE%n_-~lnjqB zHQ&&q(Nn~7@KBI(GrYp2&@g*mr}ZUa-xQz<E0kALRSK&@O;pmsdIIi~s%+U3k#Z+} zn5GR;vu)UXlyjd>dm5Je1Q|JDeJOAsKD4=uE-tHi*pD!)h_cRDa&vkcr+wG8g)L?u z?vx@zu7u-9$pw0T0(OnC)DthOa|306PEtV1inpL7*RdpC+z-B=@q~T{!CNNpbn22~ z?q-0AQq}96i|Bkc0WuxzhNmU%P_7n_2b)7!-=H6^_dvR>q8WvFHkXlsO^1t6dPSxo zdAb`eq&zFbMtgFT7LSWtagZVAA>|8av7C0_wU=(pQ||$Ec7}2!GK<_a&u->`#v{4V zyFV&azgm|B-ER$LxanbA!JTi0b0rqBJh?5xcVRBp(y@=_+B_suK`&t-W*B#RTO1X@ zq0xS*2UViVd*t#0*YQoovm0Z!Mrj+c8D;HwUzVMUO~=J)pq(FgIp?@S+<xZRPmp0~ z@s}$&U1?NJhZc7DM(!V6cfMk+CdN9t-Az744B2-QDO_hJ2T|A?*T0`M?D;a78$WSm zX|KYu&p~FPqXoEl9V?{_2Xg)7VMwQI2{)vY%F}?!Sog3e!~riLC$x;Xl(jQCT&}69 zq|ZY4Ds(^Q(lZOwOkaj^vuw^%e-gJh5F>xg2>N3!y}NlMt>)k}5F6uW6dbpIPQ6fc zI4m7-RUmGvx^;LKJ8$N*rh=q$8*p@6U}Zg!5ppCX91;@Se;`w$Y{~})3%10eE>Y97 ztzCF-9NGTZmDHf8(#zF^-kE%qeD{ShP0hHd0}W<Sc6YZjd>vuR2H{$w7+oOMVrpe` ze7p}_r<(o%+x=?$Y)=Hnc%<7+kx>>gE1!<r%sPDFW|=95zC9kD7K1rWi+}As{{?WH zB06OMP^10m?+$npZsYM*?V~-^ldhHOTyT;|JHhm4`_tRvug|V_^#wpcP8o3{`bAiW zF<c0uJzc69qt>yFs6-4$0u3N9s3Wbkn$Ugc8PXQhy4pRm00jMM-eEFwQI@&QT=4b4 zqclxh+!t0*!>sdmewHuqrU^-^o&bLQwZioWzU5<-wF$RuRIs<ld+DQ<)fcYll0^o) zd#~0}>kA-?01Bt~oJu>{U8StyK8vo3<mhihr>{!^NaP35qjvBFRynXC-Bv^5OklNU zaj*adbDd_~YaH{)O?ze^;>Z-oQj-j5#vB46i@z|~u%_6P-g59+Z3Qg(L0lz5!|l|6 z1Zo*-oK$HWD`zBmv^>Sg9JAE9MCVQd0ZY}P!#$$U1^7>Fe+>et5rF_eARr*X;2=Oi zfPWki5`d6VP|@&bKmtQPB7uNHeV@VH&F${j`nQ$O@520uZ!HlAcS616jRsl@hDNqt zF`G=;RL9HIVb)A8nK)O+O6t1<Z9PLX{bRa+MHwSIms|CrIax8{GyHq?Ax75u`G=w+ zMhZv$VD8NFB(=!vG|qEVB@V=lKPgy^q1@_I`sAP-v7u&%nzL7cE2;Te@WXnJ#cvs6 z(9l273Zt7tJ05%ECaPZ1V>fh)?)by=r~u>39!S8qSl%F#Men7Mj+JS1Kg+<FDRn2V z-v#yferT%Y{4#_xd#_oOIpU?Zpb%L_zL9yX0e2Gs>3iqXI?~exEIC6vQDi_>nXdLt zP@n$jn%w?~ySYKsYX@Gk@GW;_NQc|p)Env&HP#dNT~3@y#NX{_K?IkBQEgQRkx;Gt z<{;=zLQMX^F7q9dL=EWRX90+8zq6v`0KKya0hy2|#|1_QlJplCM?V(4{%{D}f3|c) ztx@c?%EGU3?hiP_-7LQJf8LD>zeT0IV`W~wn$4R`^t}Y0HP$^zn*#KKFMAWL=E0&u zhO@O5WpL}*bGl`Yxa%58kh!@Zd}1vQ76HBN(6vx{=4hZU#^?=oqqC(y{mcpORCBR) zcGo}2%iN%JEM7^QOT`<chkYzy6UrcAxc_Fx^$%Ad0;O22GgOIItrd2+bXGCIpBk6A z=Vyr-hwb0-QP@SJf*3HK#!FooAr8z7r+wS#X5kN|l9iX43d}e;?GjwtB(7c<_Ef~N z2*v+1;it$$)>yhBC^ZL?4&!8rA#8rr-|un$V>bqU!3Qf|%s%=cr=zmdbDVT+*?~vG zbv=X-K-AB8{Z11-Gu(Zrt?Vf^J`qrm@F(RVPC9>;jH~ThDht!0u3g~a6J3ZJNOm3; zd__-uFRV&{a?=~GZeuzyznm!8+6~h$WRy=0#ZyLdhi(ZFv>K*yXn$@bF$YBTNHt>O zL!n&A)f1A~q`_1Nw<K^_8DH*`^OM09LASy6NOK+iMuE2;GUV*Hrq>q$#v6uITi0vE zCs{&(02uIRS<_Cc4z#jYWs-)>nYc>)rU``Qd{47X*Ez-#ms<Y{+5N{kU*ibgAsYim z1oD&d>Q+dZWr6>VA53gldq?<zxNlq)q(5k7vD_>UJm9RQxR67H^O+Xb+47wRAnU9R z$r|<OBtf_Z=7SLkKmFO%xIVyYD@%csmc2pq$c_pCpo2VX1Y(0w2J1v~LoDZ7t7GxE zTV=ixLp51EIF}*8?*i)s9Ps<+gfwj4qSc(zQOT(1e3a+}xNw?*1hwp%;MEpw|AMFx zCtNPQGhG*i+F$Y-J}T%zVu1xM1|@s}1Qy#;mh$uR!ZCL2{A`Fq2=YLIT5lSh0i-&p zN!EFWD7fi%4+MjLvph=u?P|GDLpqHVMl0??w3wslj91?jSIZC95hqq=HfBe?87#}I zrzrjMbgj1?r)dq1YQ7ktiB7YscUgA%(oWQg8)CY&#~<3E%1}UuHv=4-(08i&Psvp@ zs>M^{0sdQ~{ANogbi#2hCKz`8-5LsQNQ=>-gh_mfKwe&4m2ZS|Ff=ul0#+R=P&lx| zL2hH+KT+OU<3;91Kg&RVcgFL9%qox?R8<dr@VBd~nmRT)$11PFsS6c~$F~1M-_9~7 z0H7o6PH|ZOnB|V@(m;hE;QRZx9B{S}{l@j+4MQmPTMMY-Qf8KnzRC4GCj&ar9}#?e zU^HSDIou1+YHFj0;Ydk%6Q<TGwQiQSIp6F8&buI#fGcRlUA2;h(JF{xFCYq3H>hdZ zW-UGK@O72|E=n)I)-`a=$ccB6x9r!qP4*=XsuyiwyK{%D*~L((LQBbaDhCW53z291 zd*t|Lw|v^P^iI;fq6ospj5uY9`DoAta9ptIDM(rQXwpoG=-`n}JyppZO&M&%rbn$X zE)8mzUe54O*uDH2;ZW+FNYI!l{l1xwA^RKQU``$!MKB5hHsF!jG!}n}U&In?<glUm z`C3V45^QiiFKC9{NTRJ5AgKX^<09CxJ-wGouF@yJe^==XmfDY*tR-8!hq8|e9_{w- z@MXkiht(Zi3W+p?u-VmeQk)+~MRZ3j%UM)<M}zN~KZB!HQMB>*Z8o!?-v##^@)5jN zKfB~_EP7D5zkf3|<IGcIi6Bf?`!2Beujg-sb)_X1QO}LF+UOJ$+U3Wc`yNV`e!4ox zh<~$LCy{5Vox&RSLW*@{xXHvrzW`n+a&&=ei2)8F$iy}F?JciQx`MsV;-qrZIU>K{ zFEGh2DM=cK`!h^GLQA(&-8GAKJ=0PTF$2;Bf-dMDhJt?(e*vlw@(?T#-4<w9X--?W z03gSC(o!Xw?gc<~eXI75j1c+Vf=)~ezu|ziIewzm52F-qL*}~a_><?7E2De?Dv<lb z00KVouL*(ENc70az9*JMNuUO2Lof6_o8k@rLqWJYIL$1>rC_a}y*?QaOj`YaU43%y ziBgQ<3T)n(Y@Z~w?w&j2_|r_GmyH1exZTsY0sE+h8o-{IN{E|mYLy8IZwZ0%ClX{( zOTAY4qR9oe%XmZ|#7C=1>76KP#bn{(Ux3aMfzgg0LJbE}1|In)ANN#bLLyEqNLiLt zttNj^hE30=M-nba%X6npju|+<J<YcO8e}<@fhE?(yiEl}fIqi)y$qyvcG6m3%~JNe zT#!MpgZ2)-x+`J1Gi`;6S7{zVx(mdxD0oMKPjXVBDm*!$pDS0#q*OZsS9ny#PR^g` zwvpNKkR&_)L^&*NN;KcF-%%r*Y@-Pf$RX>y9vprTkg5q*>B!sBM7Jc;iyJ>;n5#V_ zgZET6GKEqd?*W4cTUF?au+S>Ah0|T3u6W0G2Fxw4F>$fP()uao+zm*7_|8Z%#dDDF zT!O<yxulGV>q>&szuelOTeM7%bqee*wE0*9%86-^&n`vK98|8980-BpRr^Hk&E8I$ zv|K=03lIVX93qkygbmA6dSntdYX}{IApDZ67J0!VxW=~kSjoT(<SmPdFrO)qS1FLJ zBJ6D-LVrmR*|GBt8GL9n4Bb0CMkbDBb(obNn?uhIMV?&Td??fY-62vfDzVXGFk;X( z(->StE+DJt%Aj*RHyMJNL<HKDrXLDCFZ8oCV<V#Q`a_!JODrB+p;Sl*YLA{amQd`$ zY1DA>m(abdhQ8or!%9%36W9WuDiqq^opMBtbV)y94z(!)kY+6C^HlURfiX8ml>=Vk z1zx~KeVtj%k}NYjYi31C22=eIg&2%rjg{h&^;>1eL>wIROXU)IJM#*^TnPz&G71D8 zeA8of0VL}x&LvZ&q*A3Q333N|e7w=3Z*Bp^wVV1uD1vSXCSDUW4F?Vw-MIsx6@)P- zKHsr_Lp$wS=?lOe7b-$kKd;_QZNTx9_ifDUy=XPuQ=uS??u0)sRl5hY4bIBn*BW6a z57C#eZKeKK1jt%gvsRJ^sP`Bz$`SlbB@R~>-&&DH?<B_(&oK+00S$&CUjkg}EGgMC zW2NF?yWse)jb%XLtg-<lg1z|f;3$fdj21l9LJGfCTJX~IBho%e6AERoFx8Eh<r?n5 zUZ88c<Kr26MRS%D^$H(<$+(rES=??fkvhXM2~SnP(j&imR+<-cOOMDGAg<u2Bo87? zFA1zpX0>0AoAJB=5#$;c*a!wP$Kw|uT>={3_q&*}eBw+@Tk3RQx^9}Pp+Ve7I6QF4 zX?c>B$!NB(dNWSq%sB5DrQ4L!gY=!ri?d_^!VR8<pb%C~`I2_+D!LZD9$k_9y*4P4 zIW>^G?yoru8!mK{#TBx4`Pq1IF)#7fGU6U=iUzX9On8-sbGvtavG7?%A|~=a8Pc_j z3n+4LR68GSmID&TDh&q3UMeKICoS!2nVO17!r)fe@=IB<V1}3tyfifo?`Kz;IJi&g zCN}QsW%0!5S)F7KC<KRdMdnfpUsdq*lk!X6Gk0iF_O{1Jux)q<phskBBDeOfGX_s0 z5#&u=noK!4X@v$Ft&H-BWn4)zK7UeVEOxE*2T)kUidin=pVf3KWLb|E4w<N5025G4 z2&|egE8EF$g|);VE-zyFLdc|Snu%$e5HBq2$&i!Fv|j+>@`nk3CO>9L)ls}t^t^!* zFwzSOjlt+_<e9vwt83)%?EuqXr<(3~T67W&FuDo3L+X~JmKa7l=H+bx@FLN!^&h-S z)ac3ZyPTo)YxC*EdjeH$Qc>12qCvA<vy7u{*k?}5f&Mq664~8>pi;QPoFw&;D%89x zTVN(9lg{@eEzNruIn!{iC6?AZk=*2UK+b{a76&5qKYdP<BH9$DG}}qAQ&={#6%1!v zA_yr?q7~^P*jfMnjmmIo0y=8s+7c@*`SC|+b8Rszw;jhIIfjbs(`VrvbdQjBoTBfX zVwQg$MUQZ<Y-HYhFS+Yy<64nS$>ZO&J_w0dD9u}7AtoZj@?oetUP*9&01YT!WF$&w z>GL;*Q%Ye)E{AS!&4lVr1^`_7=pO*~$yXCyWR``7Wmcq#RWDeUQWJA`!nNaRffIGP zi;8kJsri0Zgmn#S5No_lXOY%Ea=7wqau&g>Br#QBZeVi{(LuZ>N;5H5uS2^EB;v%9 zr>Lp2rn{|S`a)24!eY1AS1-3>8baVA+b8X2F>(mAt=Ht9Pxe4i&xIFVoOC?VapZkv zqjO9&msdB>9B)%aB3y+7hrB6t22~le*NRF+G9_&fGk&46pLU+nDx?XTQ1m31iQx(P zqrh-&zZu(hAIw5eSld4<H~6|mwM`tRr}40a5e|SXukpl>gVedduguKFr9;-mFT1H( z&SJ+s=N5S1Oy@PnYdokvGr1!|nBqRDIhjSINnL|b?pl!0ez00c_5QM!7%fk6dB*i+ zGAo1_Lm+GhHnE32mfEptb>jx1a)^Nzpb$x5SXN&vMHiA+wm&Fi?j#CR8Bk+nq2V^{ z%oi_DcmPY*(i6bTT`p1G`rg0>mq0CjhI_!Rvj77HySx;F61b;)l#NU~HHniV{tom^ zbq+WIFweAo!nIgE(qVFuc5@Wd;3*-nxb!Oo<-HmWLwBr~>KGy+#%0qD+RYAZzL5E5 zR7RgNuNQ8)j)vp}bE}LhMxWwDvlKQ^8*5lYG&lL8&^ry3pVbi<Hq+SfgB15$ie5de z!zC?5(5A2#J5F8RBQwJjmyabCbKU)RsliP+x&6z+6eJq)DEApGx5fPPdp{zcew1-% z<}Pc5*z|o}r&Rd8Q=LqBGN8ChGnwzfs{h-PZNJ1#bLfGY^2F$y@aa$yp#h=?;R&Bh zYSgfjCoKGRf@nQubin!mE(-z3E+18$Ok$Vw(fZ;6NoT5DW=aYMV;3_MvS$PdE31NM zN>IbQwonuZq(m&zeLAbo<oHJ!l!#2`+C5n^1?k#KxffLsF+0MjTS$G%{;*{sOjNqO zA%wY~U{f4HSe`5iVE-23z3}hjXfqsm;VHd8n`0_oEQ(pqfQ}smRN3`i1k9iM8RFRm zTC{j$K+s+umH$M&0+KxpA@m5WJ3k3cI&DfFW7gj#QCV0GuEl|#h}sG?b-BXw1`{{R z23Z=7oPAj!2E0^5ye%pc0&iRU**zIWLdZu;Z<IucH>W*%V1-rog8slqc4osK4Hh5t z#GL-(k9P%A_<IP*rx)yR{VnygEq*qC1#C#vpXP4P1(S+IIHYm|SR<kvF(p^?;|)1{ zRY5>Puck}kDhyNim{Z?r*-_>`BY856eDd%f(&{}8_SaZcfT19$+s|5GxB#oZ&uW<H z*^-~~3H`xDB1D|XL6m8PzgogRxt9y6e`U^x5fYD7LKQ?O9vn-EUNTP610=fqqk|GX zEl>Kt0OSFY;>GgRzL6&RL3FG4KB;-5mjj}3q=;aKayx<EI;T5@b9Dx=ctMd+L`W%d zn~D<Z>LFC;R<IPHl9MHwI&PHC(gKn~LYTjCttX4k_lGj2Wco}Id6GPJc#9S5lu$$w zuyr7Z?_JR&viG*r_=4Y0-5WM25T9-pIuX}_K}N=L+Xd>@ArMY2(@WcNVxwJSpt6(> zzW`3lv4x=%(dXG$)<VuAMR0?z_mHWOnDrkNk}(*+?iI->iiD6Zmc@gc`w<?^V#LJ7 z`kQ{{K%>e;f(YEpBwGhzRv`O!d(~Q7UUz{)Y4lzTKvL~_|ICC!_jZ?8pN(ebOBc!I z^dJaX#$k|rgBFJVgTq#(pZGQ`P{-z@oVw5E!pX#)oOlgEZRq467HE5dZH2?G{3NwN zqqZ%!PL7E7lUGu34%JN<4>959RT*Rb!L{V0v-If%l`WXW>Mr(3{X>xyRpQ%FW!tIJ zpdw8np5tXu&>ScLx!V6I1!+%$H--WTD~-B&yn8{OP>})lE^KeFBpR+QY*yZlO`Ij< z;MvZal2Kt61*g3)At?Y+Ol;4y2p(r;q7C}qUEwm!W-tv;?E4Z>BqJGhyLi}Kc+wz~ z$iojW)fRtFlg9>U1PLvn5&!Za5uibRQam2~N9z=OgtP3p-k$bc4acwnMUgh|pzk#` zxd;8?kJUWsXybk#y~h1d*6`m$>8p1tpx8vtZ@zjKJ4Ux}Q=kA4ffaBLETDR$$02$X zG-3yn;mNENV<%YmfPzzHJ&ksBe)<ATv+7hjPOs)MrJtyEnM|u|t!k}JvFw)SO|OB7 zQVg+D-h&64ZkPQJ?0A8RJBmwJf|mkN6bY{!32j`UP;akd6se5M7*kBiuz^x3a18C2 zO36)*&ip?L^ki-Ej7rf~&~;fj5V8eS{fp-Rrm@=oUMUemQBB@-d1(|NL<Su^uP@cb z-m}_I#;H~;V3Sg980eohl9wE7ZmVs(ERkxZ+q}mrsLRm;9~PXW;Kuo3*Rwd6uYb-6 z<Vj0_C?wMM$|h@QqPz~#%5uL>cIk!5=Nc<Zf}EK95ZS)&)AY*b96u~Q>e#nc)dYdC znzTLFP5lM1t41WSt+~!}I)W32>hK$wf-;n9M;$GNv!Gw~?({@)V_NyM`_8qfp6u9O zOP@C?5G;utHMXV}*|)Mt5Nly$cJZEWxmTlzKC|N`KNwD!A#@(JQAVWh&J+Kx<oPPO zqk>`Z!OG(nxP=}@=;f=0x(M>orerq!cb66(abWHU->}*%W1eS58uj8mxyt4Z<oFNe zZid`RK|)k)EMGJvln8NoGgDh!`v~FC`?jdRVfwmQ$&X;)<EIl7OH$kX{Q1dQoLT_& z>{k9~3;l1$hRz;tX6%9h2FLv_IW(4z7LLz2Nk1p6w)B&M^<uzQQJ>L({zJ+apsM!6 z)bISe2Q>9x$G-r}>Yoig|4O%M9S(aVE|8_u#L6L3!QM(_J}rXX;lGEXIE%3HN4j}m zqw*=Jxlyu7%DvH5*_%n{izBp_b(A;nI~n}rrP9T8@$dzh5zHZoxXz;(mYM>~;Gj(l zXTK+;xL`H(*<wNMgYgfVAFX;dW%&ykmhjnSvn~>^2ixX`g~fIwafOb{%OMh6{b&Cd zJgE18u3|r84whbsh?PVua_8c!W~=yI1+$5n4OgIobTn~s(CF)ra)v<dwA!9&LeP8w zrWTaJNGoA^$R3;)?Fko*l_is(yc{V7Fsq6$SrIU(1Ag-BtDQ#srm3Uq*l$h@EPMob zOXv3tY~nc4VhD`aFTi|UMyeF3Krl#FCbL5#i~DR&+#CuiAuB5-i=iozgE+cg<aoIy zNvqfU3$KSWNK~z?9(X8$`IEY;UB@eFjF@NK6E8<;VR##_24DF555()MSQ51|<#3Oc zL#g}OIc?&&Z1dz`B0~y=NhfRhpmjbo_xQo;fcdR^Qc%KRhh^2z+Iu@Q&MS~jhyrnA zD@+JYH)y2^qf?WQrx&$+HNwq-9+{nuz_JD><%fKGDc6v+nD@diAc6vs#e0p_1negG zW_(2*ed%ppzWBTTI5W(Xu_4CfVB+3yo&X*2^617KC!a;DY)vdTiN{MYAj7C%-=KnI ze&?HeU~wy-#d&5eg%cb%C%|YyPQe}NDJg4o^}sCCGIZb9A8HfZzjm?MKr}fVEhEs@ zAsBnBDY&w_j=<oOf47R^m7&v}<pxYG_L0XjmNtzXbc@>s3MPP|E@e@dVk~lHKceIh z00J1i+62Vwk^Qny)$SH<lt7_l+ge!F8pjCjASE(+HnTy6LiPw)IUW)P6=@}BdiExf z{N4sVR8eN)hv)oN_gmYmW2S&e<QA_c@Exq%V4iihIKgONTYHI*1hls+4JaVb)tnD^ zG2;n>P*?tD_pM+q6S}hZAg)MKcPw0OZ6=CyM#_ePbhY?JB$&{y&^-EbWDaW8ejDOZ z07WDvOh{r4w0AUJ`UhFU5-G?~_dX5}1@*Z`g}nAjC%E99kFh}+G8eNFcD4^ZmVNfH zu;+%~SI=rCwj@p~4E^p4p#33ONHS$ZvrjM8nacJ=$wRyBLmXUEG)BYuLr$oQssCuA zDBPP2-#D%qi6m}u2xHtgRNO29T~_lkFW}S={w|Me0Tny#jJ|(kF;9|Ey_(&}b|4dX zrqSx>+?^6Pigb0GlT#+;HZe$WffY<du}HoD!cyb?uG7@xb$r0(#A1}Xwm_iX%lQqe zi6MoGGoIV4fNcNWxMDtC=^{J(FQfacPBfT^B=6#x^a3*jF8ID&x5Sp&UOZj(w7pvO zer$*KQ{}P@cXwP7RxVBnHW<X4k$x;2v)T&<Cep!IVK!}7?VkdJr_9B$z>tty=Sz=q z3P}CL>?AHck!tPhV^+$E_`%RUfA}T*8!!0ZUMelFEFP%1;KgP<=_K#%qFHJ?M25;~ zvWxWV79I5Qdo#R*B1v^X+hw}8mW-w%b>p%pO+@s{=LUGoVblh@(1mA2Nm$bxE?BJe z4kp6B0M=bbV=E^)23!76>dmMoR?`Am)Fi*+RDVkuA+Iv~k;lb2IeVVGGO!6@jbg`k zz7r2$M+TwU{Qg*c#>1B(2c5r(&O>0G&IeqwWt^-AUTv>u1x&Da-xgWmyU*aSXAWXV z)jMB{3x>BOrO~@BPX7GWa?2fNHGktLGWX}NkOB)3e$3oG<q~2NmF5xNTs1twgdoJn zLnEtjuPFi)*Fe6|7UyP=oz2s;W!uKaVu_rP_{l!*J1%|#6XX@cQeK=fYyP%hNh9?q zqb98|gR?I*rjS2qo$0M1+Zeq=42#Li9dyG}doEKA+BgEl?BUMs)0hJESX-0;lix2z zIq5oUYzII4t6)hw&v_r&5ySCbm&(@6$F;%u`?H66DWel+pzi)_2>WOvy{@@GCxe`j zQszIm9qz#xN~ON(etzJG2G=ZGt{In)ppi2a(r9Li3u;dM5*LrTZJC-{Oepi>@uX7G zFVA~F6&aZFvtLjE%}xBViDnoB0Z^ckS;4|wpg<3jYq<te@63V34|DsN*G6CL4=ij- zpU`-LAI`EfSp;A@U?PnT6R%~gdn;!Ti<l(yTwj326!r(gGv|qVbJ<FySQ%D21;>N? zs|~S&*%*7@kRL!|o9!Kjb`2{hd1h|oC%J9}`G_Lo$~#Z}9(%deoNTVI+}&7Ya>-}8 z4z5M3lI#>V^ezZtCuh8S_?g|9XWbTmz>8h3ABMF!;U=F_a|rW^jO~DyX3Xw2)5nU% zhr*rj!==l6cmh79qI{6hVFM^OJbpZ}=8rpC22DGP=$m?L-S)E`#X}>t<+?9_0sh#* zaTzWrFBqA~kVV++!+q-$Z-uHl??P6jBkSQj_!Y_K401>@7kr>w^Im&?3WS5+z!<Zv z<Y}ugld?N^FtD&6^O`%dB{{W2n`irdwoCn^)_@wWK%<+B_$J6~!Vi^Au)KWbQ2I;= zpsVG2V-X_3V#me9mr{WSnE?2#{1(N`$UP78i$oSM@hF6lz9wFbju<-PolvdB{hU1O zTM;|%wcBCwTn^Rrt4-MFgHUu8>}I7<vMGc7d*4bBl%5LlS6n*JzyzDPc8~x{4X~Wj zqJ-Ziszk(a7_tc=&7~|9ylOBgKf^=b2Zg93OR;l=BE4cC5H9!&3#X0KlCEkYnpeW3 zbpcaAH=<L!-{S>TWXW>kX`~Xjg=ee+b3b1RGQH$=BH_6Zai{09;waMyDMMWCT5~>_ z7(f6be44#C<^ZyBT2Z$;WvIQSrO<ko%7yO(3=j!+n0;KK1<i|F)LMeo$)#c_Wd)GU z36J63M+?AyoA2tentC196RT_0d^HW!Q8r(!MjzOGv*Zlx9)b<(nHT7;f1a8TWX+*S zDh7kvwfA)?xQ7U2m|z&l3R`G{EMiIUKw}cb?|6E%QtMO9@R~Tv>hg_d%@YADTFtR! zFK)CQmmS<RS#N@H6NueKI`GY_ZV(z{nrV#$@(*SK=35`FqI4BP*hChP$owE=0wt38 zrQAz`Lozg!eq#3_)TW$)8eS6df^X+^gWmcX8NJzarm#H<-y?R{y9iaO@Mqs@HfxW) z!&n(#4jm^Q7}*8w(5FL!z<Im}w53`WuL%=<UoTh0ZpN=Tmr-1W*`lP&;Of;ulW{U3 z&LQ6de413@3xMU*mdmv2oYIq<NH@@pd!p@?otu{ik+!tAZRVbTgg6-<R0Vq1BNtF8 zOdNSPO9?>AL-c7M$_6ob&leFzfl~AtfxoBUm#+wR#IBd@=3e&fvnPfD`-Aj=o+V|{ zK@UZIdCXlcL;VxQ#!@aQ6ESA}(TfETSQi~9euyff$Vx>4S9`4(x;Lf(dR02d5if%r zdkHud9e{#?3-j-m(p|C~2at~}ROAnVf)&a6Pi*BjUhXv{n&)1WkU{o3W0Y&}nWn|U zPZ0yzfy58tFwR$Hk$zOrc(i?@jY$X|ypY2<7_}Jt&weCIiPsTpXOF5A`ipn5%K0N5 zq4Uw63L*~1|For+nZ>A<%939sfc$WU>`qsh03#z1|FefNpZ(3OA)+xGe6R2onr!UE zqW)n6VfJ~yTI@`WLB6Jb6Zgo%HbX+%FP85wHiln}u$CdtELD+1D-9*gs3$7M8eVoG zm?wTw0b@Y#UwCZy22H)Hdgo-=ax_1;=aYykgh9%&P)*#zuEUpP?Ee}%M1130@97o% z>@#46e0lkSFS>`Skc6-}@mve}S>YMIDyiv{{{#}y2%r8kBv}RJU-1Zb`6x!@;%`2p zz`_iT9ssm|g_w|F3-KVQ*JBwtS2Ii$QDp1o=DX(?H9QA#Q>-MVJD8iHy>elsRdmvI zqnjK_#RU0#YQJ^EsQ>%!tXE`~CcT?T*Qer276c)Oao;q>xKM;H5_}aU$Li7>>KUWu zMhlwURQG}Ds1R3-6cWd&+vB?n-dLK!_>F3cCs|*-m2=B^q!106Fs|}YpbfsU0@{%N zs}Bl_W#bd05lCB#S2t{VKjx1{TxQ`7y5&2h#<@+4FbxM-fWaG)YrP4^+~Fn_@NVCd z?)=9zgslKOntK7UOCH+_U4mQSeF<>_#!8!wx#}C^_7=Ldkxeik---2sa{{#>a~Gy_ z93tPOAF2;%ZD2eHV9OE1Abp4L<U<A&h=)o538~*FBWD9zWU8_k4Q=-q06(r>fQ0sp zZ>Ln_I5TL2Z}NIjF*sVy4N)xetx7iAR+9;=U}4vH91gU6mT8_{vkDHR;o}bh4`kG% zVys}InHt{ZPoDPDtJx+<Y^Woj<hfz|b)|vglVN_>`q_?QjQ+~R@^=56nKkHi>cYj! zvqsYi`^``sGhHa^-cnaNB|6`PM*-M;8fjvA$KsH%H3z;6uLW8m(!@?|NS}C`_+UvC zE1G+zgbEz(<EvddV@3;^5fQgHs`TM=PzX!-Vhi^lrScy>t4lz2%gCR;<Bv(@*#>uB zD*QmqGOicIifkX~$6^6Q7rE_(k(O{OUx49~FMug15Hiwo!hI!V7`gv5YuQcAghs66 z@mlrEUNRvGF4`A>QNn!inUg23??C#UDK|33-4|>3**f9yn|>a6D7@mDg^c6`_s@E} zqq6Z(VMA>-MuwT6p$<Q<O$eHhH98hr<FT)$p0*Z89pLae=W97U8(Ls<jqLJiu$8e< z!By}D!bSS`DW&VPU_7zFL$n9>Jt?^VrQly(Iq%E=q@-5C9UtIocvpkf8-Ikws|bY< z?TMsh_saRBH2#~eb_z<dL;(1P_j9^qxULtaw;g3}_k+cXG#R^eU%$Z^?b4vqoCAx{ zeM6~723k+NZk{Q&S#G)_P$nC^ZaSFn2mI5i#i+vS5UG^9+s;xRb0H6#VBZv2KsEpo zLf}ovvyC?2pUEkkPGw{r7y=8}nBz1OASe<(n(KfRMK2UXL#vR{kt1RGn8u(QT}@*+ z$&tDUYt22aNIfFO7}5aA@dXGGDmK(tlJuq(ULS?L5!+w6EUs1|09TzYP*dKqjT6}T zJt5zO#&4+90k$HPr3qqjUHJJsGOR{IZbQfQ1<kQm{W4&>*a4MJMiiUC&oUbf2mlP| zdo-?haImY^>MiTF!O7}9*Mtn=3bSC}2g8V)Rr<RPGE>CVFSdb%w<{$G!5k+u-z8l- zr(Ea}^j3Kip6J(3-xN;xR4}QL#dps(HSSx!2EO}R9Kixiir}`Iw9~fMH1P!ps-_ca z|7~SLVnb2p4pUI;7?hLo(PWb_b6+GAvG~f7eaaBZMvnp{ONw1;2r)JsNczSkDbm&w zZ%M0muE6=*DCTnc4Q0L2mD-PzZ#WkxqELj)uYQP9REU%J2V1@j<y;=871U_@B+BLx z6Ko9Z@3};Xg!y29Y+!#xL>m>CzltkUq7Hb}{<jK>408Q`EEL~Lrm_wyPftzY2ehHt zx`1b_j3Iu|aGCkuGr|<|$1g>JPb430P=;>S)8AfdaKcwBLN?>gTHK`C!7w{0p#hoX z@UWtx^lZX;ts;z5e}MmCg_U7kIBxgLkFE4W<yEkyCX3qIP~r;)p+SVjsvg|Roj`nF z`2FlV$;1dD7oVmZvX!i5Lkd1m3m!V$p(MORAq)6G9e)e**WJHWT=O8*&0k8(jZdff z6S@_NezELoG~yZ@U>8#815=o+0EaE<29$%6-W<Uf30DCvBqTY-X=BRGiyXJ(=pccN zTM%3};xE%X?X~cl{O40G@z8D#0nrknUxmXatm{xyf7$W^Z<~j@NMpnte}@veS96D) z|ABrDM68u;I`x*D+9*;;8+H;qD64zX)=kmVYR|X|t6eRxL0qs_2)+rA;Rm?C26d$g zz4hlfqw*4AXN?=gLDRZj`xoH%3(VgAGO`S%Glmx`HCUcbI0{a=x|eoBOi}PzyK+?% zdV!4}VIBZL0LPbI%+{%|%-u3{M*~k7MZRjef>7q1i3l$Rn*{oLIBeB0+g1SScIQYY zvS{ZMu1|^lcc+^MYPYPHFM{9s{T$rL&H&Qt3-E)5Vq6&b_jm*k&V0zUthK$lUK1I3 zDDOhg1d9?i+kkACW7wfgQWYw>rSZCj$`dGE>7x~4399LD>Jn#)-mF8(o5#Y18wL&- zd<~N1Fqm{|m`<^yCLZX4O%{d$4>{*T3Z)2?pZ6cfQotkP@DH{HxaR^j-!^mh-qLgH zkPy!>Q*XA#sHhMd*d-lX^-5~wZArtFik~*;gUoyLSKr@R6XyMXNyKSPJ+>`KB+KL; z#njWggcNX-@*a_Ef!aR90E)aQQ$DmMwjd?p>+~;3op6e|s%oT`utQQ&aQ87S==Lq$ z4TH~736PLTWXPv6=O?<L*+z6N>cRP-{rg3Vhv>06xwN8BFC?H62C8A>liXkLl{QF2 z!`1Ppo19As(r1nSw6hvQ!^#uA<RgaF1H39+i#vXo1+At)D1;hCS0weRdm;+EQz0|~ zLpQaiijL0XX6S|$Z(*C}q0G_Hid=70Db`VLJm&$I0G8v>yJs%m^Hjz&=k#L+2CSeD zBvKM5Cw><rXfySCvynmxmzVh=AX9=c&Q(VIb|Oap7V2B2@?B9|#d>R_oVT=r`4-%= z5I=PD(NC1yG1bYZPR>pP((lwUDn&RI!eo=9G8e!5Mf+)SvYg5j*vSb6#hv_80vFh8 zbB^AYYWptcFa{*rSdKF$Nh$Pw&W`b}z=n=6HDZ}V(bN%p%eRfZT!sumWGzcn-VCSM zgUOP(1Tj<gLu4f_eTdSw(S|N`t;Lb8qyRxfb!q;EtvGN6iA)~qU51GTSY(ZIBMm(H z)a-nx)TICWKxT)+dBhqs8J)YBu!~Nv@=Xz_9A57b>6)@SW<x%saA(najq`erifEh% z+0Ge(0>dI6YBb72obg?UhysO?r|XnZq#&x!G7x=PjMkS*dk5F4+{m=Z_%97RK=bkR zVf$-MK^g**u%&B`v=#su{0#soNP~bv10cV>c;cPLKT@Xua`4{)6;mf?0x4yAIXWvR zd%Ht*?YLiJsJ`3!0i);ecvl9LRvnV+QdFcV%c@0UZw!+-u$l}OKQe8IzMkOI1NvIs zD~k}ul6JYbe?RM7(yNCW&R0<QM|Q5KOYcXCkfbud*vtbY0?Wht7wZ!+ykJEENK(q! zZ}B^$(l~!TOXu$PRBI2a_u^{#+Es^AEQF;_NT@A>Z(px2u}KX?;^#`eG2&e0P0(;D zeB7~tunBLUKun^sn5#1#8jgylCl%XqbFSWIE_YhW+h#XQI8l90UPAjy$CxKx(lL@) z7PB<RPUYeO9{#r-S27Z-44*3LGIcVcgE^a9VzFOByR0`%_L<p1vf8Lr-O)GRjj0Aw zk>JT_@FIY>YM4#ux_v?%B5tj<Iphv$_LjQ+cV4wZGxJejgBL}fL`>AYQLP^h(6*G{ zM=S2qq7#DDeJcL>suu)?h^4Ug1XA(lrEF3f@de=kVmp&J&@f{&x6Ao*+M=Wo$6y<k zzZH<%-5oFIYUEKms6G+;@G=9-Lo5?8!}$|?Z*M?bdb!cbLdd1Ak;vh=2fu4#j4;H* zcUGl&LN#}|^<x$V>Gf*^FOHaPzc}#A|1L?q&0JN-dB}J%%kGPgEn&U#C!1t$6O(di z16U!Ik1c5VL7s*`277aVyu8ff<G!79?zW`}OY>@KqTEPcV6KmG>x^GlAj8VBRZ+#@ z{VB9FzkXW(qt^P`<DJ$?V$Jbr8jk2~Rm*EQV7Yx=G>wrcVX^F1IAqw0;5WABghkFL zTNXqlW6UYMlmCO8FVbSNH%1u3!h7)NaeKOb2JcTnyh^oB3W<fR!gAjWNQk>jyt`_t z0_xZqh&Qpz(_bT-9E#A3Pz-|pAT;)6lgNg5q3eXQl0r&h$RDeehwKAWlTt#o;9n}@ z96f0y^kzl+E4U_e6+C&l9AG)NU<;cJ)B5oCr(mg<?O0uQNksMy3y(h3P4y-5<B44p z8KaYH9_Qj!RWPS-0tC_o+zQn>eAULgORU`%mH0KI(oOK{2ML>gu7AIRsT-=EZRD{m zhu{(d@~8ixpdZIE+tlN*dGFS}NJrD+?2^O&y4KP=@fk7fP~ul=8enLt^q5nfHH$x$ z%XxM(J=sX{JwwO0(vU}eXf2$^H>s+A$X^Z~z|WE<!gI-dce0;_@!?P3fpEW=ZK0#; z&m1D<ZEG966+-YH|5|#~|7Y^bBG!lofB*n3aR1xn{mul~nmQYr7&;sN``p!ys)z0u zKooiN7HwPSeN0WyDp#qi!+_~<u{Q=DPWll@^x2UWlE*OB>G5~+ZsX(wE9__OKy?&` z^08g&$^9j`?IA62<_tm5U6~<kNklw!FLc&6r+z7F>L{-7;)5}EB29r1DHBC1<WS&I zuOM%m6c(SOaQ~g##{EY2LhGfb%`7FIJd|cc*O;FDKi?r|?duWq-OAqYM?o407!?5h z9RmDcWC-%#Q~!A({-2PGgN?nRi4*<*21Wbdpvb;s|AI0$HZ^8qV=$yOWng2VW#MFE zr8P7$<)CF`H#RdgGBjf{HZ=ZUQ7ip7)Ia}UQ5$m_u^Jm0GtqJ|7<1CHFq^W_ax#23 zg2R~8#FUwnoypXg^FQkUhc2hY-)a0;imm$}_5Tyt{r^(GgQc~hv4snrm4o@edih^V z#D5)s|11&z=@RPx=YsJ+VgKtt|7V2$r;}^?ALCU)8VvlOZ18W70{ks$-TY7N-vEQI B1AG7g diff --git a/shared/schema.ts b/shared/schema.ts index fdf08c0ef1..b55f8d2e99 100644 --- a/shared/schema.ts +++ b/shared/schema.ts @@ -1,5 +1,9 @@ import { z } from "zod"; -import type { IntegrationService, ProsemirrorDoc } from "./types"; +import type { + IntegrationService, + ProsemirrorData, + ProsemirrorDoc, +} from "./types"; import { CollectionPermission, type ImportableIntegrationService, @@ -28,12 +32,20 @@ export type MarkdownImportInput = z.infer< typeof MarkdownImportInputItemSchema >[]; +export const JSONImportInputItemSchema = BaseImportInputItemSchema.extend({ + externalId: z.string(), +}); + +export type JSONImportInput = z.infer<typeof JSONImportInputItemSchema>[]; + export type ImportInput<T extends ImportableIntegrationService> = T extends IntegrationService.Notion ? NotionImportInput : T extends IntegrationService.Markdown ? MarkdownImportInput - : BaseImportInput; + : T extends IntegrationService.JSON + ? JSONImportInput + : BaseImportInput; export const BaseImportTaskInputItemSchema = z.object({ externalId: z.string(), @@ -82,6 +94,36 @@ export interface MarkdownImportScratch { manifest?: MarkdownAttachmentManifestItem[]; } +/** + * Manifest entry describing a single attachment discovered during the JSON + * zip bootstrap phase. `externalId` is the attachment's original id from the + * export — used to rewrite `/api/attachments.redirect?id=<externalId>` + * references in document/collection content into new redirect URLs that point + * at the freshly created Attachment row (`id`). + */ +export const JSONAttachmentManifestItemSchema = z.object({ + id: z.uuid(), + externalId: z.string(), + name: z.string(), + mimeType: z.string(), + pathInZip: z.string(), +}); + +export type JSONAttachmentManifestItem = z.infer< + typeof JSONAttachmentManifestItemSchema +>; + +/** + * JSON importer scratch state. `storageKey` is set at import creation (it's + * the only durable handle on the uploaded zip). `manifest` is added by the + * bootstrap phase so the completion phase can re-download the zip and create + * Attachment rows without re-parsing the JSON files. + */ +export interface JSONImportScratch { + storageKey: string; + manifest?: JSONAttachmentManifestItem[]; +} + /** * Per-importer scratch shape stored on `Import.scratch`. Holds cross-phase * state that the importer needs between bootstrap and completion but that @@ -89,7 +131,11 @@ export interface MarkdownImportScratch { * `Processed`. */ export type ImportScratch<T extends ImportableIntegrationService> = - T extends IntegrationService.Markdown ? MarkdownImportScratch : never; + T extends IntegrationService.Markdown + ? MarkdownImportScratch + : T extends IntegrationService.JSON + ? JSONImportScratch + : never; /** * Per-page task input. Generated by the bootstrap task and consumed by @@ -124,22 +170,71 @@ export type MarkdownImportTaskInput = ( | MarkdownPageImportTaskInputItem )[]; +/** + * Per-page task input for the JSON importer. Generated by the bootstrap task + * once the zip has been parsed; consumed by subsequent JSONAPIImportTask runs. + * `children` carries this document's direct descendants so each tree-depth + * runs as its own task wave, preserving parent-before-child ordering during + * persistence (createdAt of child tasks is strictly later than parents'). The + * type is defined as a TypeScript interface rather than via z.infer because + * it is only consumed internally — never validated at an API boundary — and + * zod's recursive-schema ergonomics aren't worth the cost here. + */ +export interface JSONPageImportTaskInputItem { + externalId: string; + parentExternalId?: string; + collectionExternalId?: string; + title: string; + urlId?: string; + icon?: string | null; + color?: string | null; + data: ProsemirrorData; + createdById?: string; + createdByName?: string; + createdByEmail?: string | null; + createdAt?: string; + updatedAt?: string; + publishedAt?: string | null; + /** Map of external attachment id → manifest entry id, scoped to this doc. */ + attachmentIdMap: Record<string, string>; + children?: JSONPageImportTaskInputItem[]; +} + +/** + * JSON import task input — a bootstrap row carrying only the base placeholder + * item (the zip's `storageKey` lives on `Import.scratch`), or a page row + * carrying per-document content. + */ +export type JSONImportTaskInput = ( + | BaseImportTaskInput[number] + | JSONPageImportTaskInputItem +)[]; + export type ImportTaskInput<T extends ImportableIntegrationService> = T extends IntegrationService.Notion ? NotionImportTaskInput : T extends IntegrationService.Markdown ? MarkdownImportTaskInput - : BaseImportTaskInput; + : T extends IntegrationService.JSON + ? JSONImportTaskInput + : BaseImportTaskInput; // No reason to be here except for co-location with import task input. export type ImportTaskOutput = { externalId: string; title: string; - icon?: string; + icon?: string | null; + color?: string | null; + urlId?: string; author?: string; + /** Original author's id in the source system, used for user remapping. */ + createdById?: string; + /** Original author's email in the source system, used for user remapping. */ + createdByEmail?: string | null; content: ProsemirrorDoc; createdAt?: Date; updatedAt?: Date; + publishedAt?: Date | null; }[]; export const IssueSource = z.object({ diff --git a/shared/types.ts b/shared/types.ts index 4b8fc5dc31..6a7d17a4bd 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -167,16 +167,20 @@ export enum IntegrationService { Figma = "figma", Notion = "notion", Markdown = "markdown", + JSON = "json", } export type ImportableIntegrationService = Extract< IntegrationService, - IntegrationService.Notion | IntegrationService.Markdown + | IntegrationService.Notion + | IntegrationService.Markdown + | IntegrationService.JSON >; export const ImportableIntegrationService = { Notion: IntegrationService.Notion, Markdown: IntegrationService.Markdown, + JSON: IntegrationService.JSON, } as const; export type IssueTrackerIntegrationService = Extract< From dcc3805438a27f25d798c6a403f52a964a901e5a Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Mon, 25 May 2026 17:03:18 -0400 Subject: [PATCH 088/286] New Crowdin updates (#12400) * fix: New Danish translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] --- shared/i18n/locales/ca_ES/translation.json | 2944 ++++++++++---------- shared/i18n/locales/da_DK/translation.json | 84 +- shared/i18n/locales/es_ES/translation.json | 72 +- shared/i18n/locales/ja_JP/translation.json | 2 +- shared/i18n/locales/pt_BR/translation.json | 40 +- 5 files changed, 1571 insertions(+), 1571 deletions(-) diff --git a/shared/i18n/locales/ca_ES/translation.json b/shared/i18n/locales/ca_ES/translation.json index d22c890d23..7fd5a0f8fc 100644 --- a/shared/i18n/locales/ca_ES/translation.json +++ b/shared/i18n/locales/ca_ES/translation.json @@ -7,8 +7,8 @@ "Revoke API key": "Revoca la clau API", "Revoke token": "Revoca el token", "Open collection": "Obrir col·lecció", - "New collection": "Col·lecció nova", - "Create a collection": "Crear una col·lecció", + "New collection": "Nova col·lecció", + "Create a collection": "Crea una col·lecció", "Edit": "Editar", "Edit collection": "Editar col·lecció", "Permissions": "Permisos", @@ -51,7 +51,7 @@ "Clear local storage": "Neteja l'emmagatzemament local", "Local storage cleared": "S'ha netejat l'emmagatzemament local", "Toggle debug logging": "Activa/desactiva el registre de depuració", - "Debug logging enabled": "El registre de depuració està activat", + "Debug logging enabled": "El registre de depuració està habilitat", "Debug logging disabled": "El registre de depuració està desactivat", "Development": "Desenvolupament", "Open document": "Obre el document", @@ -103,12 +103,12 @@ "Document archived": "S'ha arxivat el document", "Archiving this document will remove it from the collection and search results.": "Arxivar aquest document l'eliminarà de la col·lecció i dels resultats de cerca.", "{{ documentName }} restored": "{{ documentName }} restaurat", - "Choose a collection": "Escull una col·lecció", - "Delete {{ documentName }}": "Eliminar {{ documentName }}", + "Choose a collection": "Trieu una col·lecció", + "Delete {{ documentName }}": "Elimina {{ documentName }}", "Permanently delete": "Eliminat permanentment", "Permanently delete {{ documentName }}": "Eliminar permanentment {{ documentName }}", "Empty trash": "Buidar paperera", - "Permanently delete documents in trash": "Suprimeix permanentment els documents de la paperera", + "Permanently delete documents in trash": "Elimina permanentment els documents de la paperera", "Comments": "Comentaris", "History": "Història", "Insights": "Coneixements", @@ -117,7 +117,7 @@ "Could not leave document": "No s'ha pogut abandonar el document", "Apply template": "Aplicar plantilla", "New emoji": "Nova emoticona", - "Upload emoji": "Puja una emoticona", + "Upload emoji": "Penja una emoticona", "Disconnect": "Desconnecta", "Disconnect analytics": "Desconnectar analítiques", "Home": "Inici", @@ -137,7 +137,7 @@ "Report a bug": "Informa d'un error", "Changelog": "Registre de canvis", "Keyboard shortcuts": "Dreceres del teclat", - "Download {{ platform }} app": "Descarregar l'aplicació {{ platform }}", + "Download {{ platform }} app": "Descarregar l'aplicació {{ platform }}", "Log out": "Tanca la sessió", "Mark notifications as read": "Marcar totes les limitacions com a llegides", "Archive all notifications": "Arxivar totes les notificacions", @@ -151,7 +151,7 @@ "PDF": "PDF", "Exporting": "S'està exportant", "Markdown": "Markdown", - "Download revision": "Baixar revisió", + "Download revision": "Descarrega revisió", "Dark": "Fosc", "Light": "Clar", "Toggle theme": "Commuta el tema", @@ -172,7 +172,7 @@ "template": "plantilla", "Template deleted": "S'ha eliminat la plantilla", "Deleting": "S'està eliminat", - "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Estàs segur sobre això? Eliminar la plantilla <em>{{ templateName }}</em> és permanent.", + "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Esteu segur sobre això? Eliminar la plantilla <em>{{ templateName }}</em> és permanent.", "Move to workspace": "Mou a l'espai de treball", "Template moved": "S'ha mogut la plantilla", "Couldn't move the template, try again?": "No s'ha pogut moure la plantilla, provar de nou?", @@ -206,11 +206,11 @@ "previously edited": "s'ha editat anteriorment", "You": "Tu", "Avatar of {{ name }}": "Avatar de {{ name }}", - "Viewers": "Visualitzadors", + "Viewers": "Lectors", "Managers": "Administradors", "Members": "Membres", "Manage templates": "Gestiona les plantilles", - "Choose who can create and edit templates in this collection.": "Escull qui pot crear i editar plantilles a aquesta col·lecció.", + "Choose who can create and edit templates in this collection.": "Trieu qui pot crear i editar plantilles a aquesta col·lecció.", "Public document sharing": "Compartició de documents públics", "Allow documents within this collection to be shared publicly on the internet.": "Permet que els documents d'aquesta col·lecció es comparteixin públicament a Internet.", "Commenting": "Comentaris", @@ -220,23 +220,23 @@ "The default access for workspace members, you can share with more users or groups later.": "L'accés per defecte per als membres de l'espai de treball, podeu compartir amb més usuaris o grups més tard.", "Advanced options": "Opcions avançades", "Saving": "Guardant", - "Save": "Desa", + "Save": "Desar", "Creating": "Creant", "Create": "Crear", - "Collection deleted": "Col·lecció suprimida", + "Collection deleted": "Col·lecció eliminada", "I’m sure – Delete": "Estic segur - Eliminar", - "Are you sure about that? Deleting the <em>{{collectionName}}</em> collection is permanent and cannot be restored, however all published documents within will be moved to the trash.": "N'estàs segur? Suprimir la col·lecció <em>{{collectionName}}</em> és permanent i no es pot restaurar, però tots els documents publicats es mouran a la paperera.", + "Are you sure about that? Deleting the <em>{{collectionName}}</em> collection is permanent and cannot be restored, however all published documents within will be moved to the trash.": "N'esteu segur? Suprimir la col·lecció <em>{{collectionName}}</em> és permanent i no es pot restaurar, però tots els documents publicats es mouran a la paperera.", "Also, <em>{{collectionName}}</em> is being used as the start view – deleting it will reset the start view to the Home page.": "A més, <em>{{collectionName}}</em> s'està utilitzant com a vista d'inici, suprimint-la es restablirà la vista inicial a la pàgina d'inici.", "Type a command or search": "Escriu una ordre o cerca", "New from template": "Nou a partir d'una plantilla", - "Choose a template": "Escolliu una plantilla", - "Are you sure you want to permanently delete this entire comment thread?": "Estàs segur que vols eliminar permanentment aquest fil complert de comentaris?", - "Are you sure you want to permanently delete this comment?": "Estàs segur que vols eliminar permanentment aquest comentari?", + "Choose a template": "Trieu una plantilla", + "Are you sure you want to permanently delete this entire comment thread?": "Esteu segur que vols eliminar permanentment aquest fil complert de comentaris?", + "Are you sure you want to permanently delete this comment?": "Esteu segur que vols eliminar permanentment aquest comentari?", "Confirm": "Confirmar", - "manage access": "Gestionar l'accés", + "manage access": "gestionar l'accés", "view and edit access": "accés de lectura i edició", "view only access": "accés només de lectura", - "no access": "Sense accés", + "no access": "sense accés", "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "No teniu permís per moure {{ documentName }} a la col·lecció {{ collectionName }}", "Move document": "Moure document", "Moving": "Movent", @@ -250,14 +250,14 @@ "Document options": "Opcions del document", "Unpin": "Deixa de fixar", "Export started": "Exportació iniciada", - "A link to your file will be sent through email soon": "Un enllaç al teu fitxer serà enviat aviat.", + "A link to your file will be sent through email soon": "Aviat s'enviarà un enllaç al teu correu electrònic", "Preparing your download": "Preparant la teva descàrrega", "A file containing the selected documents in Markdown format.": "Un fitxer que conté els documents seleccionats en format Markdown.", "A file containing the selected documents in HTML format.": "Un fitxer que conté els documents seleccionats en format HTML.", "A file containing the selected documents in PDF format.": "Un fitxer que conté els documents seleccionats en format PDF.", "Include child documents": "Inclou documents fills", "When selected, exporting the document <em>{{documentName}}</em> may take some time.": "Quan se selecciona, exportar el document <em>{{documentName}}</em> pot trigar una estona.", - "You will receive an email when it's complete.": "Rebràs un correu electrònic quan estigui complet.", + "You will receive an email when it's complete.": "Rebreu un correu electrònic quan estigui complet.", "Select a location to copy": "Sel·lecciona una ubicació per a copiar", "Document copied": "Document copiat", "Couldn’t copy the document, try again?": "No s'ha pogut copiar el document, provar de nou?", @@ -277,8 +277,8 @@ "Draft": "Esborrany", "You updated": "Heu actualitzat", "{{ userName }} updated": "{{ userName }} actualitzat", - "You deleted": "Heu suprimit", - "{{ userName }} deleted": "{{ userName }} suprimit", + "You deleted": "Heu eliminat", + "{{ userName }} deleted": "{{ userName }} eliminat", "You archived": "Heu arxivat", "{{ userName }} archived": "{{ userName }} arxivat", "Imported": "Importat", @@ -297,1479 +297,1479 @@ "{{ completed }} task done_plural": "{{ completed }} tasques finalitzades", "{{ completed }} of {{ total }} tasks": "{{ completed }} de {{ total }} tasques", "Currently editing": "Edició actual", - "Currently viewing": "Currently viewing", - "Viewed {{ timeAgo }}": "Viewed {{ timeAgo }}", - "Uploading… {{ progress }}%": "Uploading… {{ progress }}%", - "File type not supported. Please use PNG, JPG, GIF, or WebP.": "File type not supported. Please use PNG, JPG, GIF, or WebP.", - "File size too large. Maximum size is {{ size }}.": "File size too large. Maximum size is {{ size }}.", - "Click or drag to replace": "Click or drag to replace", + "Currently viewing": "Visualització actual", + "Viewed {{ timeAgo }}": "Vist {{ timeAgo }}", + "Uploading… {{ progress }}%": "S'està penjant... {{ progress }}%", + "File type not supported. Please use PNG, JPG, GIF, or WebP.": "El tipus de fitxer no és compatible. Utilitzeu PNG, JPG, GIF o WebP.", + "File size too large. Maximum size is {{ size }}.": "La mida del fitxer és massa gran. La mida màxima és {{ size }}.", + "Click or drag to replace": "Feu clic o arrossegueu per substituir", "Drop the image here": "Deixa anar la imatge aquí", - "Click, drop, or paste an image here": "Click, drop, or paste an image here", - "PNG, JPG, GIF, or WebP up to {{ size }}": "PNG, JPG, GIF, or WebP up to {{ size }}", - "Please enter a name for the emoji": "Please enter a name for the emoji", - "Please select an image file": "Please select an image file", - "Emoji created successfully": "Emoji created successfully", - "Add emoji": "Add emoji", - "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.", - "Upload an image": "Puja una imatge", + "Click, drop, or paste an image here": "Feu clic, deixeu anar o enganxeu una imatge aquí", + "PNG, JPG, GIF, or WebP up to {{ size }}": "PNG, JPG, GIF o WebP fins a {{ size }}", + "Please enter a name for the emoji": "Introduïu un nom per a l'emoji", + "Please select an image file": "Seleccioneu un fitxer d'imatge", + "Emoji created successfully": "Emoji creat amb èxit", + "Add emoji": "Afegeix emoji", + "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Les imatges quadrades amb fons transparents funcionen millor. Si la teva imatge és massa gran, intentarem canviar-la de mida.", + "Upload an image": "Penja una imatge", "Choose a name": "Trieu un nom", - "name can only contain lowercase letters, numbers, and underscores.": "name can only contain lowercase letters, numbers, and underscores.", - "This emoji will be available as": "This emoji will be available as", - "Emoji replaced": "Emoji replaced", - "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.", - "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", - "An error has occurred multiple times recently. If it continues please try clearing the cache or using a different browser.": "An error has occurred multiple times recently. If it continues please try clearing the cache or using a different browser.", - "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", - "Clear cache + reload": "Clear cache + reload", - "Show detail": "Show detail", - "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.", - "Exporting the collection <em>{{collectionName}}</em> may take some time.": "Exporting the collection <em>{{collectionName}}</em> may take some time.", - "Include attachments": "Include attachments", - "Including uploaded images and files in the exported data": "Including uploaded images and files in the exported data", - "Include private collections": "Include private collections", - "{{count}} more user": "{{count}} more user", - "{{count}} more user_plural": "{{count}} more users", - "Filter options": "Filter options", - "Filter": "Filter", - "No results": "No results", - "{{ count }} members": "{{ count }} member", - "{{ count }} members_plural": "{{ count }} members", - "{{authorName}} created <3></3>": "{{authorName}} created <3></3>", - "Lead": "Lead", - "Target date": "Target date", - "Labels": "Labels", - "{{authorName}} opened <3></3>": "{{authorName}} opened <3></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", + "name can only contain lowercase letters, numbers, and underscores.": "el nom només pot contenir lletres en minúscula, números i guions baixos.", + "This emoji will be available as": "Aquest emoji estarà disponible com", + "Emoji replaced": "Emoji substituït", + "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Penja una imatge nova per substituir l'actual per <em>{{emojiName}}</em>. Tots els usos existents d'aquest emoji s'actualitzaran automàticament.", + "Module failed to load": "El mòdul no s'ha pogut carregar", + "Loading Failed": "Ha fallat la càrrega", + "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.": "No s'ha pogut carregar part de l'aplicació. Això pot ser perquè s'ha actualitzat des que heu obert la pestanya o perquè ha fallat una sol·licitud de xarxa. Proveu de tornar a carregar.", + "Reload": "Recarregar", + "Something Unexpected Happened": "Ha passat alguna cosa inesperada", + "An error has occurred multiple times recently. If it continues please try clearing the cache or using a different browser.": "Recentment s'ha produït un error. Si continua, intenteu netejar la memòria cau o utilitzant un navegador diferent.", + "Sorry, an unrecoverable error occurred{{notified}}. Please try reloading the page, it may have been a temporary glitch.": "S'ha produït un error irrecuperable {{notified}}. Proveu de tornar a carregar la pàgina, pot ser que hagi estat un error temporal.", + "our engineers have been notified": "els nostres enginyers han estat notificats", + "Clear cache + reload": "Neteja la memòria cau + recàrrega", + "Show detail": "Mostra el detall", + "A ZIP file containing the images, and documents in the Markdown format.": "Un fitxer ZIP que conté les imatges i documents en el format Markdown.", + "A ZIP file containing the images, and documents as HTML files.": "Un fitxer ZIP que conté les imatges i els documents com a fitxers HTML.", + "Structured data that can be used to transfer data to another compatible {{ appName }} instance.": "Dades estructurades que es poden utilitzar per transferir dades a una altra instància compatible {{ appName }}.", + "Exporting the collection <em>{{collectionName}}</em> may take some time.": "L'exportació de la col·lecció <em>{{collectionName}}</em> pot trigar una estona.", + "Include attachments": "Inclou els adjunts", + "Including uploaded images and files in the exported data": "Incloent imatges i fitxers penjats a les dades exportades", + "Include private collections": "Inclou col·leccions privades", + "{{count}} more user": "{{count}} usuari més", + "{{count}} more user_plural": "{{count}} usuaris més", + "Filter options": "Opcions de filtre", + "Filter": "Filtre", + "No results": "No hi ha resultats", + "{{ count }} members": "{{ count }} membre", + "{{ count }} members_plural": "{{ count }} membres", + "{{authorName}} created <3></3>": "{{authorName}} ha creat <3></3>", + "Lead": "Líder", + "Target date": "Data objectiu", + "Labels": "Etiquetes", + "{{authorName}} opened <3></3>": "{{authorName}} ha obert <3></3>", + "Search emoji": "Cerca un emoji", + "Search icons": "Cerca icones", + "Choose default skin tone": "Trieu un to de pell predeterminat", + "Show menu": "Mostra el menú", + "Icon Picker": "Selector d'icones", + "Icons": "Icones", "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", - "Custom": "Custom", - "View only": "View only", - "Can edit": "Can edit", - "No access": "No access", - "Permission": "Permission", - "Change Language": "Change Language", - "Dismiss": "Dismiss", - "Unable to download image": "Unable to download image", - "Lightbox": "Lightbox", - "View, navigate, or download images in the document": "View, navigate, or download images in the document", - "Zoom in": "Zoom in", - "Zoom out": "Zoom out", - "Edit diagram": "Edit diagram", - "Close": "Close", - "Previous": "Previous", - "Next": "Next", - "Image failed to load": "Image failed to load", - "You’re offline.": "You’re offline.", - "Sorry, an error occurred.": "Sorry, an error occurred.", - "Click to retry": "Click to retry", - "Back": "Back", - "Can view the document": "Can view the document", - "Can view and edit the document": "Can view and edit the document", - "Manage": "Manage", - "Full access including sharing": "Full access including sharing", - "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", - "Failed to approve access request": "Failed to approve access request", - "Access request dismissed": "Access request dismissed", - "Failed to dismiss access request": "Failed to dismiss access request", - "Approve": "Approve", - "Notification options": "Notification options", - "Unknown": "Unknown", - "Mentions": "Mentions", - "Comments and replies": "Comments and replies", - "Document events": "Document events", - "Collection events": "Collection events", - "Mark all as read": "Mark all as read", - "You're all caught up": "You're all caught up", - "Client type": "Client type", - "Confidential": "Confidential", - "Suitable for server-side applications": "Suitable for server-side applications", - "Public": "Public", - "Suitable for client-side or mobile applications": "Suitable for client-side or mobile applications", - "Icon": "Icon", - "OAuth client icon": "OAuth client icon", - "My App": "My App", - "Tagline": "Tagline", - "A short description": "A short description", - "Callback URLs": "Callback URLs", - "Published": "Published", - "Allow this app to be installed by other workspaces": "Allow this app to be installed by other workspaces", - "{{ 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", - "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m read", - "{{ hours }}h read": "{{ hours }}h read", - "{{ minutes }}m read": "{{ minutes }}m read", - "All members": "All members", - "Everyone in the workspace": "Everyone in the workspace", - "{{ count }} member": "{{ count }} member", - "{{ count }} member_plural": "{{ count }} members", - "Public link copied to clipboard": "Public link copied to clipboard", - "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", - "Publish to web": "Publish to web", - "Allow anyone with the link to access": "Allow anyone with the link to access", - "Publish to internet": "Publish to internet", - "All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later", - "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", - "Switch to dark": "Switch to dark", - "Switch to light": "Switch to light", - "Subscribe to updates": "Subscribe to updates", + "Remove": "Suprimeix", + "All": "Tots", + "Frequently Used": "Utilitzats freqüentment", + "Search Results": "Resultats de la cerca", + "Smileys & People": "Emoticones i Persones", + "Animals & Nature": "Animals i Naturalesa", + "Food & Drink": "Menjar i Beure", + "Activity": "Activitat", + "Travel & Places": "Viatges i Llocs", + "Objects": "Objectes", + "Symbols": "Símbols", + "Flags": "Banderes", + "Custom": "Personalitzat", + "View only": "Només visualització", + "Can edit": "Pot editar", + "No access": "Sense accés", + "Permission": "Permisos", + "Change Language": "Canvia l'idioma", + "Dismiss": "Descarta", + "Unable to download image": "No s'ha pogut descarregar la imatge", + "Lightbox": "Caixa de llum", + "View, navigate, or download images in the document": "Visualitza, navega o descarrega imatges en el document", + "Zoom in": "Amplia", + "Zoom out": "Redueix", + "Edit diagram": "Edita el diagrama", + "Close": "Tanca", + "Previous": "Anterior", + "Next": "Següent", + "Image failed to load": "Ha fallat la càrrega de la imatge", + "You’re offline.": "Estàs fora de línia.", + "Sorry, an error occurred.": "S'ha produït un error.", + "Click to retry": "Feu clic per tornar-ho a provar", + "Back": "Enrere", + "Can view the document": "Pot veure el document", + "Can view and edit the document": "Pot veure i editar el document", + "Manage": "Gestionar", + "Full access including sharing": "Accés complet incloent compartició", + "Permissions for {{ userName }} updated": "S'han actualitzat els permisos de {{ userName }}", + "Failed to approve access request": "No s'ha pogut aprovar la sol·licitud d'accés", + "Access request dismissed": "Sol·licitud d'accés rebutjada", + "Failed to dismiss access request": "No s'ha pogut descartar la sol·licitud d'accés", + "Approve": "Aprova", + "Notification options": "Opcions de notificació", + "Unknown": "Desconegut", + "Mentions": "Mencions", + "Comments and replies": "Comentaris i respostes", + "Document events": "Esdeveniments del document", + "Collection events": "Esdeveniments de la col·lecció", + "Mark all as read": "Marca-les totes com a llegides", + "You're all caught up": "Estàs al dia", + "Client type": "Tipus de client", + "Confidential": "Confidencial", + "Suitable for server-side applications": "Apte per a aplicacions de servidor", + "Public": "Públic", + "Suitable for client-side or mobile applications": "Apte per a aplicacions de client o mòbils", + "Icon": "Icona", + "OAuth client icon": "Icona del client OAuth", + "My App": "La meva aplicació", + "Tagline": "Lema", + "A short description": "Una descripció curta", + "Callback URLs": "URL de retorn", + "Published": "Publicat", + "Allow this app to be installed by other workspaces": "Permet que aquesta aplicació sigui instal·lada per altres espais de treball", + "{{ username }} reacted with {{ emoji }}": "{{ username }} ha reaccionat amb {{ emoji }}", + "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} i {{ secondUsername }} han reaccionat amb {{ emoji }}", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }} i {{ count }} altra han reaccionat amb {{ emoji }}", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }} i {{ count }} altres han reaccionat amb {{ emoji }}", + "Add reaction": "Afegir reacció", + "Reaction picker": "Selector de reaccions", + "Could not load reactions": "No s'han pogut carregar les reaccions", + "Reaction": "Reacció", + "{{ hours }}h {{ minutes }}m read": "{{ hours }}h {{ minutes }}m llegits", + "{{ hours }}h read": "{{ hours }}h llegides", + "{{ minutes }}m read": "{{ minutes }}m llegits", + "All members": "Tots els membres", + "Everyone in the workspace": "Tothom a l'espai de treball", + "{{ count }} member": "{{ count }} membre", + "{{ count }} member_plural": "{{ count }} membres", + "Public link copied to clipboard": "Enllaç públic copiat al porta-retalls", + "Only lowercase letters, digits and dashes allowed": "Només es permeten lletres en minúscula, dígits i guions", + "Sorry, this link has already been used": "Aquest enllaç ja s'ha utilitzat", + "Publish to web": "Publicar al web", + "Allow anyone with the link to access": "Permet que qualsevol persona amb l'enllaç pugui accedir", + "Publish to internet": "Publica a Internet", + "All documents in this collection will be shared on the web, including any new documents added later": "Tots els documents d'aquesta col·lecció es compartiran a la web, inclosos els nous documents afegits més tard", + "Invite": "Convidar", + "{{ userName }} was added to the collection": "{{ userName }} s'ha afegit a la col·lecció", + "{{ count }} people added to the collection": "{{ count }} persones afegides a la col·lecció", + "{{ count }} people added to the collection_plural": "{{ count }} persones afegides a les col·leccions", + "{{ count }} people and {{ count2 }} groups added to the collection": "{{ count }} persones i {{ count2 }} grups afegits a la col·lecció", + "{{ count }} people and {{ count2 }} groups added to the collection_plural": "{{ count }} persones i {{ count2 }} grups afegits a les col·leccions", + "Switch to dark": "Canvia al mode fosc", + "Switch to light": "Canvia al mode clar", + "Subscribe to updates": "Subscriu-te a les actualitzacions", "Logo": "Logo", - "Add": "Add", - "Add or invite": "Add or invite", - "Sharing settings updated": "Sharing settings updated", - "Display settings": "Display settings", - "Customize how the published document is displayed": "Customize how the published document is displayed", - "Image options": "Image options", - "Upload": "Upload", - "Site title": "Site title", - "Show last modified": "Show last modified", - "Display the last modified timestamp on the shared page": "Display the last modified timestamp on the shared page", - "Show table of contents": "Show table of contents", - "Display the table of contents on documents by default": "Display the table of contents on documents by default", - "Behavior": "Behavior", - "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", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", - "Something went wrong": "Something went wrong", - "Check your email to confirm your subscription": "Check your email to confirm your subscription", - "Get notified when this document is updated": "Get notified when this document is updated", - "Email address": "Email address", - "Viewer": "Viewer", + "Add": "Afegeix", + "Add or invite": "Afegeix o convida", + "Sharing settings updated": "Les preferències d'ús compartit s'han actualitzat", + "Display settings": "Configuració de pantalla", + "Customize how the published document is displayed": "Personalitza com es mostra el document publicat", + "Image options": "Opcions de la imatge", + "Upload": "Penjar", + "Site title": "Títol del lloc", + "Show last modified": "Mostra l'última modificació", + "Display the last modified timestamp on the shared page": "Mostra l'última data de modificació a la pàgina compartida", + "Show table of contents": "Mostra la taula de continguts", + "Display the table of contents on documents by default": "Mostra la taula de continguts dels documents per defecte", + "Behavior": "Comportament", + "Search engine indexing": "Indexació del motor de cerca", + "Disable this setting to discourage search engines from indexing the page": "Desactiva aquesta configuració per a desincentivar que els motors de cerca indexin la pàgina", + "Email subscriptions": "Subscripcions per correu electrònic", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Permet als lectors subscriure's i rebre notificacions per correu electrònic quan s'actualitzen els documents", + "Something went wrong": "Alguna cosa ha anat malament", + "Check your email to confirm your subscription": "Comprova el teu correu electrònic per confirmar la teva subscripció", + "Get notified when this document is updated": "Notificar quan s'actualitzi aquest document", + "Email address": "Adreça de correu electrònic", + "Viewer": "Lector", "Editor": "Editor", - "Suggestions for invitation": "Suggestions for invitation", - "No matches": "No matches", - "Created the document": "Created the document", - "Can view": "Can view", - "Everyone in the collection": "Everyone in the collection", - "You have full access": "You have full access", - "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", - "Could not update user": "Could not update user", - "Has access through <2>parent</2>": "Has access through <2>parent</2>", - "Suspended": "Suspended", - "Invited": "Invited", - "Active <1></1> ago": "Active <1></1> ago", - "Never signed in": "Never signed in", - "Leave": "Leave", - "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared", - "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared", - "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", - "Expand sidebar": "Expand sidebar", - "Collapse sidebar": "Collapse sidebar", - "Archived collections": "Archived collections", - "Empty": "Empty", - "New doc": "New doc", - "New nested document": "New nested document", - "No collections": "No 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", - "Import files": "Import files", + "Suggestions for invitation": "Suggeriments per invitació", + "No matches": "Sense coincidències", + "Created the document": "Document creat", + "Can view": "Pot veure", + "Everyone in the collection": "Tothom a la col·lecció", + "You have full access": "Tens accés complet", + "Other people": "Altres persones", + "Other workspace members may have access": "Altres membres de l'espai de treball poden tenir accés", + "This document may be shared with more workspace members through a parent document or collection you do not have access to": "Aquest document es pot compartir amb més membres de l'espai de treball a través d'un document pare o una col·lecció que no teniu accés", + "Access inherited from collection": "Accés heretat de la col·lecció", + "{{ userName }} was removed from the document": "{{ userName }} s'ha eliminat del document", + "Could not remove user": "No s'ha pogut eliminar l'usuari", + "Could not update user": "No s'ha pogut actualitzar l'usuari", + "Has access through <2>parent</2>": "Té accés a través de <2>parent</2>", + "Suspended": "Suspès", + "Invited": "Convidat", + "Active <1></1> ago": "Actiu fa <1></1>", + "Never signed in": "Mai ha iniciat sessió", + "Leave": "Surt", + "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Qualsevol persona amb l'enllaç pot accedir perquè la col·lecció que conté, <2>{sharedParent.sourceTitle}</2>, és compartida", + "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Qualsevol persona amb l'enllaç pot accedir perquè el document pare, <2>{sharedParent.sourceTitle}</2>, és compartit", + "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "No es comparteixen documents niats a la web. Canvia les regles de compartir per a habilitar l'accés, aquest serà el comportament predeterminat en el futur", + "{{ userName }} was added to the document": "{{ userName }} s'ha afegit al document", + "{{ count }} people added to the document": "{{ count }} persona ha estat afegida al document", + "{{ count }} people added to the document_plural": "{{ count }} persones han estat afegides al document", + "{{ count }} groups added to the document": "{{ count }} grup ha estat afegit al document", + "{{ count }} groups added to the document_plural": "{{ count }} grups han estat afegits al document", + "Expand sidebar": "Expandir barra lateral", + "Collapse sidebar": "Replegar la barra lateral", + "Archived collections": "Col·leccions arxivades", + "Empty": "Buit", + "New doc": "Nou document", + "New nested document": "Nou document imbricat", + "No collections": "Cap col·lecció", + "Collapse": "Replegar", + "Expand": "Expandeix", + "Document not supported – try Markdown, Plain text, HTML, or Word": "Document no suportat - proveu Markdown, text pla, HTML o Word", + "Import files": "Importar fitxers", "Recent": "Recent", - "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", - "Link options": "Link options", - "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", - "{{ documentName }} cannot be moved here": "{{ documentName }} cannot be moved here", - "Integrations": "Integrations", - "Return to App": "Back to App", - "Installation": "Installation", - "Unstar document": "Unstar document", - "Star document": "Star document", - "Select a color": "Select a color", - "Highlight some text and use the <1></1> control to add placeholders that can be filled out when creating new documents": "Highlight some text and use the <1></1> control to add placeholders that can be filled out when creating new documents", - "You’re editing a template": "You’re editing a template", - "Template created, go ahead and customize it": "Template created, go ahead and customize it", - "Creating a template from <em>{{titleWithDefault}}</em> 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 <em>{{titleWithDefault}}</em> 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.", - "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", - "Go to link": "Go to link", - "Open link": "Open link", - "Remove link": "Remove link", - "Formatting controls": "Formatting controls", - "Search or paste a link": "Search or paste a link", - "Image width": "Image width", - "Width": "Width", - "Image height": "Image height", - "Height": "Height", - "Paste a link": "Paste a link", - "Delete embed": "Delete embed", - "Delete image": "Delete image", - "Profile picture": "Profile picture", - "Create a new doc": "Create a new doc", - "Create a nested doc": "Create a nested 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", - "Members of \"{{ groupName }}\" that have access to this document will be notified": "Members of \"{{ groupName }}\" that have access to this document will be notified", - "Keep as link": "Keep as link", - "Mention": "Mention", - "Embed": "Embed", - "Not supported": "Not supported", - "Sorry, that link won’t work for this embed type": "Sorry, that link won’t work for this embed type", - "Upload file": "Upload file", - "Paste a {{service}} link…": "Paste a {{service}} link…", - "More options": "More options", - "Type '/' to insert": "Type '/' to insert", - "Keep typing to filter": "Keep typing to filter", - "Replace file": "Replace file", - "Delete file": "Delete file", - "Show preview": "Show preview", - "Big heading": "Big heading", - "Medium heading": "Medium heading", - "Small heading": "Small heading", - "Extra small heading": "Extra small heading", - "Todo list": "Task list", - "Bulleted list": "Bulleted list", - "Ordered list": "Ordered list", - "Image": "Image", - "Video": "Video", - "Embed PDF": "Embed PDF", - "File attachment": "File attachment", - "Table": "Table", - "Quote": "Quote", - "Code block": "Code block", - "Math block (LaTeX)": "Math block (LaTeX)", - "Toggle block": "Toggle block", - "Divider": "Divider", - "Page break": "Page break", - "Current date": "Current date", - "Current time": "Current time", - "Current date and time": "Current date and time", - "Info notice": "Info notice", - "Success notice": "Success notice", - "Warning notice": "Warning notice", - "Tip notice": "Tip notice", - "Wrap text": "Wrap text", - "Placeholder": "Placeholder", - "Bold": "Bold", - "Italic": "Italic", - "Strikethrough": "Strikethrough", - "Background color": "Background color", - "None": "None", - "Highlight": "Highlight", - "Code": "Code", - "Heading": "Heading", - "Subheading": "Subheading", - "Merge cells": "Merge cells", - "Split cell": "Split cell", - "Outdent": "Outdent", - "Indent": "Indent", - "Create link": "Create link", - "Comment": "Comment", - "Align left": "Align left", - "Align center": "Align center", - "Align right": "Align right", - "Full width": "Full width", - "Download image": "Download image", - "Replace image": "Replace image", - "Edit image URL": "Edit image URL", - "Default width": "Default width", - "Distribute columns": "Distribute columns", - "Delete table": "Delete table", - "Export as CSV": "Export as CSV", - "Sort ascending": "Sort ascending", - "Sort descending": "Sort descending", - "Toggle header": "Toggle header", - "Insert after": "Insert after", - "Insert before": "Insert before", - "Move left": "Move left", - "Move right": "Move right", - "Move up": "Move up", - "Move down": "Move down", - "Rename": "Rename", - "Delete Emoji": "Delete Emoji", - "Emoji deleted": "Emoji deleted", - "I'm sure – Delete": "I'm sure – Delete", - "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.": "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.", - "Edit group": "Edit group", - "Delete group": "Delete group", - "Could not import file": "Could not import file", - "Unsubscribed from document": "Unsubscribed from document", - "Unsubscribed from collection": "Unsubscribed from collection", - "Subscription successful": "Subscription successful", - "Unsubscribed": "Unsubscribed", - "Account": "Account", - "API & Access": "API & Access", - "Details": "Details", - "Authentication": "Authentication", - "Security": "Security", - "AI": "AI", - "API Keys": "API Keys", - "Applications": "Applications", - "Shared Links": "Shared Links", - "Import": "Import", - "Embeds": "Embeds", - "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", - "Install": "Install", - "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", - "Change role": "Change role", - "Resend invite": "Resend invite", - "Revoke invite": "Revoke invite", - "Activate user": "Activate user", - "API key": "API key", - "Show path to document": "Show path to document", - "Collection menu": "Collection menu", - "Comment options": "Comment options", - "Enable viewer insights": "Enable viewer insights", - "Enable embeds": "Enable embeds", - "Emoji options": "Emoji options", - "File": "File", - "Group options": "Group options", - "Cancel": "Cancel", - "Import menu options": "Import menu options", - "New document in <em>{{ collectionName }}</em>": "New document in <em>{{ collectionName }}</em>", - "New child document": "New child document", - "Save in workspace": "Save in workspace", - "Revoke {{ appName }}": "Revoke {{ appName }}", - "Revoking": "Revoking", - "Are you sure you want to revoke access?": "Are you sure you want to revoke access?", - "Delete app": "Delete app", - "Revision options": "Revision options", - "Share options": "Share options", - "Headings you add to the document will appear here": "Headings you add to the document will appear here", - "Contents": "Contents", - "Table of contents": "Table of contents", - "Template options": "Template options", - "User options": "User options", + "Go back": "Torna enrere", + "Go forward": "Anar endavant", + "Could not load shared documents": "No s'han pogut carregar els documents compartits", + "Shared with me": "Compartit amb mi", + "Show more": "Mostra'n més", + "Link options": "Opcions de l'enllaç", + "Could not load starred documents": "No s'han pogut carregar els documents destacats", + "Starred": "Destacats", + "Up to date": "Actualitzat", + "{{ releasesBehind }} versions behind": "{{ releasesBehind }} versió enrere", + "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} versions enrere", + "Change permissions?": "Canviar permisos?", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} no es pot moure dins {{ parentDocumentName }}", + "You can't reorder documents in an alphabetically sorted collection": "No podeu reordenar documents en una col·lecció ordenada alfabèticament", + "{{ documentName }} cannot be moved here": "{{ documentName }} no es pot moure aquí", + "Integrations": "Integracions", + "Return to App": "Tornar a l'aplicació", + "Installation": "Instal·lació", + "Unstar document": "Desvalora el document", + "Star document": "Destaca el document", + "Select a color": "Seleccioneu un color", + "Highlight some text and use the <1></1> control to add placeholders that can be filled out when creating new documents": "Ressalta algun text i utilitza el control <1></1> per afegir camps que es poden omplir en crear documents nous", + "You’re editing a template": "Esteu editant una plantilla", + "Template created, go ahead and customize it": "Plantilla creada, procedeix a personalitzada", + "Creating a template from <em>{{titleWithDefault}}</em> 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.": "La creació d'una plantilla a partir de <em>{{titleWithDefault}}</em> és una acció no destructiva – farem una còpia del document i el convertirem en una plantilla que es pot utilitzar com a punt de partida per a documents nous.", + "Enable other members to use the template immediately": "Habilita a altres membres per utilitzar la plantilla immediatament", + "Location": "Ubicació", + "Admins can manage the workspace and access billing.": "Els administradors poden gestionar l'espai de treball i accedir a la facturació.", + "Editors can create, edit, and comment on documents.": "Els editors poden crear, editar i comentar documents.", + "Viewers can only view and comment on documents.": "Els lectors només poden veure i comentar documents.", + "Are you sure you want to make {{ userName }} a {{ role }}?": "Esteu segur que voleu fer que {{ userName }} sigui {{ role }}?", + "I understand, delete": "Entenc, elimina", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Esteu segur que voleu eliminar permanentment {{ userName }}? Aquesta operació és irrecuperable, considereu suspendre l'usuari.", + "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Esteu segur que voleu suspendre {{ userName }}? S'evitarà que els usuaris suspesos iniciïn sessió.", + "New name": "Nom nou", + "Name can't be empty": "El nom no es pot deixar buit", + "Check your email to verify the new address.": "Comproveu el vostre correu electrònic per verificar la nova adreça.", + "The email will be changed once verified.": "El correu electrònic es canviarà un cop verificat.", + "You will receive an email to verify your new address. It must be unique in the workspace.": "Rebreu un correu electrònic per verificar la teva nova adreça. Ha de ser únic en l'espai de treball.", + "A confirmation email will be sent to the new address before it is changed.": "S'enviarà un correu electrònic de confirmació a la nova adreça abans que es canviï.", + "New email": "Nou correu electrònic", + "Email can't be empty": "El correu electrònic no pot estar buit", + "Your import completed": "S'ha completat la importació", + "Previous match": "Coincidència anterior", + "Next match": "Coincidència següent", + "Find and replace": "Cerca i substitueix", + "Find": "Buscar", + "Match case": "Coincideix entre majúscules i minúscules", + "Enable regex": "Habilita regex", + "Replace options": "Opcions de substitució", + "Replacement": "Substitució", + "Replace": "Substitueix", + "Replace all": "Substitueix-ho tot", + "Go to link": "Vés a l'enllaç", + "Open link": "Obre l'enllaç", + "Remove link": "Elimina l'enllaç", + "Formatting controls": "Controls de format", + "Search or paste a link": "Cerca o enganxa un enllaç", + "Image width": "Amplada d'imatge", + "Width": "Amplada", + "Image height": "Alçada d'imatge", + "Height": "Alçada", + "Paste a link": "Enganxa un enllaç", + "Delete embed": "Elimina l'incrustació", + "Delete image": "Elimina la imatge", + "Profile picture": "Foto de perfil", + "Create a new doc": "Crea un document", + "Create a nested doc": "Crea un document niat", + "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} no serà notificat, ja que no te accés a aquest document", + "Members of \"{{ groupName }}\" that have access to this document will be notified": "Es notificaran els membres de \"{{ groupName }}\" que tinguin accés a aquest document", + "Keep as link": "Manté com un enllaç", + "Mention": "Menciona", + "Embed": "Incrusta", + "Not supported": "No suportat", + "Sorry, that link won’t work for this embed type": "Aquest enllaç no funcionarà per a aquest tipus d'incrustació", + "Upload file": "Penja el fitxer", + "Paste a {{service}} link…": "Enganxa un enllaç de {{service}}...", + "More options": "Més opcions", + "Type '/' to insert": "Escriviu «/» per inserir", + "Keep typing to filter": "Segueix escrivint per filtrar", + "Replace file": "Substitueix el fitxer", + "Delete file": "Elimina el fitxer", + "Show preview": "Mostrar previsualització", + "Big heading": "Capçalera gran", + "Medium heading": "Capçalera mitjana", + "Small heading": "Capçalera petita", + "Extra small heading": "Capçalera extrapetita", + "Todo list": "Llista de tasques", + "Bulleted list": "Llista amb pics", + "Ordered list": "Llista ordenada", + "Image": "Imatge", + "Video": "Vídeo", + "Embed PDF": "Incrusta PDF", + "File attachment": "Arxiu adjunt", + "Table": "Taula", + "Quote": "Cita", + "Code block": "Bloc de codi", + "Math block (LaTeX)": "Bloc matemàtic (LaTeX)", + "Toggle block": "Commuta el bloc", + "Divider": "Divisor", + "Page break": "Salt de pàgina", + "Current date": "Data actual", + "Current time": "Hora actual", + "Current date and time": "Data i hora actuals", + "Info notice": "Avís d'informació", + "Success notice": "Avís d'èxit", + "Warning notice": "Avís d'alerta", + "Tip notice": "Avís de recomanació", + "Wrap text": "Ajusta el text", + "Placeholder": "Marcador de posició", + "Bold": "Negreta", + "Italic": "Cursiva", + "Strikethrough": "Ratllat", + "Background color": "Color de fons", + "None": "Cap", + "Highlight": "Ressalta", + "Code": "Codi", + "Heading": "Capçalera", + "Subheading": "Subtítol", + "Merge cells": "Fusiona les cel·les", + "Split cell": "Divideix la cel·la", + "Outdent": "Redueix el sagnat", + "Indent": "Sagnat", + "Create link": "Crea un enllaç", + "Comment": "Comentar", + "Align left": "Alinea a l'esquerra", + "Align center": "Alinea al centre", + "Align right": "Alinea a la dreta", + "Full width": "Amplada completa", + "Download image": "Descarrega la imatge", + "Replace image": "Substitueix la imatge", + "Edit image URL": "Edita l'URL de la imatge", + "Default width": "Amplada predeterminada", + "Distribute columns": "Distribueix les columnes", + "Delete table": "Elimina la taula", + "Export as CSV": "Exporta com a CSV", + "Sort ascending": "Ordenació ascendent", + "Sort descending": "Ordenació descendent", + "Toggle header": "Commuta la capçalera", + "Insert after": "Insereix després", + "Insert before": "Insereix abans", + "Move left": "Mou a l'esquerra", + "Move right": "Mou a la dreta", + "Move up": "Mou cap amunt", + "Move down": "Mou cap avall", + "Rename": "Canvia el nom", + "Delete Emoji": "Elimina l'emoji", + "Emoji deleted": "S'ha eliminat l'emoji", + "I'm sure – Delete": "Estic segur - Elimina", + "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.": "Esteu segur que voleu eliminar el <em>{{emojiName}}</em> emoji? Ja no podràs utilitzar-lo en els teus documents o col·leccions.", + "Edit group": "Edita el grup", + "Delete group": "Elimina el grup", + "Could not import file": "No s'ha pogut importar el fitxer", + "Unsubscribed from document": "S'ha cancel·lat la subscripció del document", + "Unsubscribed from collection": "S'ha cancel·lat la subscripció de la col·lecció", + "Subscription successful": "Subscripció amb èxit", + "Unsubscribed": "Subscripció cancel·lada", + "Account": "Compte", + "API & Access": "API i accés", + "Details": "Detalls", + "Authentication": "Autenticació", + "Security": "Seguretat", + "AI": "IA", + "API Keys": "Claus API", + "Applications": "Aplicacions", + "Shared Links": "Enllaços compartits", + "Import": "Importar", + "Embeds": "Incrustacions", + "Configure which embed providers are available in the editor.": "Configura quins proveïdors d'incrustació estan disponibles a l'editor.", + "Install": "Instal·lar", + "Change name": "Canvia el nom", + "Change email": "Canvia el correu electrònic", + "Suspend user": "Suspèn l'usuari", + "An error occurred while sending the invite": "S'ha produït un error en enviar la invitació", + "Change role": "Canvia el rol", + "Resend invite": "Reenvia la invitació", + "Revoke invite": "Revoca la invitació", + "Activate user": "Activa l'usuari/a", + "API key": "Clau API", + "Show path to document": "Mostra el camí al document", + "Collection menu": "Menú de la col·lecció", + "Comment options": "Opcions del comentari", + "Enable viewer insights": "Activa les estadístiques de visualització", + "Enable embeds": "Habilita les incrustacions", + "Emoji options": "Opcions de l'emoji", + "File": "Fitxer", + "Group options": "Opcions del grup", + "Cancel": "Cancel·lar", + "Import menu options": "Importa les opcions del menú", + "New document in <em>{{ collectionName }}</em>": "Document nou a <em>{{ collectionName }}</em>", + "New child document": "Nou document imbricat", + "Save in workspace": "Desa a l'espai de treball", + "Revoke {{ appName }}": "Revoca {{ appName }}", + "Revoking": "Revocant", + "Are you sure you want to revoke access?": "Esteu segur que voleu revocar l'accés?", + "Delete app": "Elimina l'aplicació", + "Revision options": "Opcions de revisió", + "Share options": "Opcions de compartició", + "Headings you add to the document will appear here": "Les capçaleres que afegiu al document apareixeran aquí.", + "Contents": "Contingut", + "Table of contents": "Taula de continguts", + "Template options": "Opcions de plantilla", + "User options": "Opcions d'usuari", "document": "document", - "Export complete": "Export complete", - "Export failed": "Export failed", - "An unexpected error occurred": "An unexpected error occurred", - "published": "published", - "edited": "edited", - "created the collection": "created the collection", - "mentioned you in": "mentioned you in", - "mentioned your group in": "mentioned your group in", - "left a comment on": "left a comment on", - "resolved a comment on": "resolved a comment on", - "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", - "shared": "shared", - "invited you to": "invited you to", - "was granted access to": "was granted access to", - "requested access to": "requested access to", - "is requesting access to": "is requesting access 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", - "No expiration": "No expiration", - "The document archive is empty at the moment.": "The document archive is empty at the moment.", - "Done editing": "Done editing", - "Drop documents to import": "Drop documents to import", - "<em>{{ collectionName }}</em> doesn’t contain any\n documents yet.": "<em>{{ collectionName }}</em> 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", - "Overview": "Overview", + "Export complete": "S'ha completat l'exportació", + "Export failed": "Ha fallat l'exportació", + "An unexpected error occurred": "S'ha produït un error inesperat", + "published": "publicat", + "edited": "editat", + "created the collection": "s'ha creat la col·lecció", + "mentioned you in": "us he mencionat a", + "mentioned your group in": "us ha esmentat el vostre grup a", + "left a comment on": "ha deixat un comentari a", + "resolved a comment on": "ha resolt un comentari a", + "reacted {{ emoji }} to your comment on": "ha reaccionat amb {{ emoji }} al vostre comentari", + "shared": "compartit", + "invited you to": "us ha convidat a", + "was granted access to": "se li va concedir accés a", + "requested access to": "ha sol·licitat accés a", + "is requesting access to": "està sol·licitant accés a", + "Choose a date": "Trieu una data", + "API key created. Please copy the value now as it will not be shown again.": "S'ha creat la clau API. Si us plau, copieu el valor ara, ja que no es tornarà a mostrar.", + "Scopes": "Àmbits", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Els àmbits separats per espais restringeixen l'accés d'aquesta clau API a parts específiques de l'API. Deixeu en blanc per a l'accés complet", + "Expiration": "Caducitat", + "Never expires": "Mai caduca", + "7 days": "7 dies", + "30 days": "30 dies", + "60 days": "60 dies", + "90 days": "90 dies", + "No expiration": "Sense data de venciment", + "The document archive is empty at the moment.": "L'arxiu de documents està buit en aquest moment", + "Done editing": "Edició finalitzada", + "Drop documents to import": "Deixeu anar els documents a importar", + "<em>{{ collectionName }}</em> doesn’t contain any\n documents yet.": "<em>{{ collectionName }}</em> no conté cap\n document encara.", + "{{ usersCount }} users and {{ groupsCount }} groups with access": "{{ usersCount }} usuari i {{ groupsCount }} grups amb accés", + "{{ usersCount }} users and {{ groupsCount }} groups with access_plural": "{{ usersCount }} usuaris i {{ groupsCount }} grups amb accés", + "{{ usersCount }} users and a group have access": "{{ usersCount }} usuari i un grup amb accés", + "{{ usersCount }} users and a group have access_plural": "{{ usersCount }} usuaris i un grup amb accés", + "{{ usersCount }} users with access": "{{ usersCount }} usuari amb accés", + "{{ usersCount }} users with access_plural": "{{ usersCount }} usuaris amb accés", + "{{ groupsCount }} groups with access": "{{ groupsCount }} grup amb accés", + "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} grups amb accés", + "Overview": "Resum", "Popular": "Popular", - "Recently updated": "Recently updated", - "Recently published": "Recently published", - "Least recently updated": "Least recently updated", + "Recently updated": "Actualitzat recentment", + "Recently published": "Publicat recentment", + "Least recently updated": "Actualitzat menys recentment", "A–Z": "A–Z", - "Archived by {{userName}}": "Archived by {{userName}}", - "Sorry, an error occurred saving the collection": "Sorry, an error occurred saving the collection", - "Add a description": "Add a description", - "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", - "{{ current }} of {{ count }} changes": "{{ current }} of {{ count }} changes", - "{{ current }} of {{ count }} changes_plural": "{{ current }} of {{ count }} changes", - "{{ count }} changes": "{{ count }} change", - "{{ count }} changes_plural": "{{ count }} changes", - "Previous change": "Previous change", - "Next change": "Next change", - "Error creating comment": "Error creating comment", - "Add a comment": "Add a comment", - "Add a reply": "Add a reply", - "Reply": "Reply", - "Post": "Post", - "Upload image": "Upload image", - "No resolved comments": "No resolved comments", - "No comments yet": "No comments yet", - "New comments": "New comments", - "Most recent": "Most recent", - "Order in doc": "Order in doc", - "Resolved": "Resolved", - "Sort comments": "Sort comments", - "Show {{ count }} reply": "Show {{ count }} reply", - "Show {{ count }} reply_plural": "Show {{ count }} replies", - "Error updating comment": "Error updating comment", - "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", - "New version available": "New version available", - "Please reload the page to update to the latest version": "Please reload the page to update to the latest version", - "Server connection lost": "Server connection lost", - "Edits you make will sync once you’re online": "Edits you make will sync once you’re online", - "Offline": "Offline", - "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", - "Document title": "Document title", - "Last updated": "Last updated", - "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}}", - "Archived": "Archived", - "Save draft": "Save draft", - "Restore version": "Restore version", - "{{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", - "Previous version": "Previous version", - "Highlight changes": "Highlight changes", - "Compare to": "Compare to", - "No history yet": "No history yet", - "Revision deleted": "Revision deleted", - "Current version": "Current version", - "{{userName}} edited": "{{userName}} edited", - "{{count}} people": "{{count}} person", - "{{count}} people_plural": "{{count}} people", - "Source": "Source", - "Created": "Created", - "Imported from {{ source }}": "Imported from {{ source }}", - "Stats": "Stats", - "{{ number }} minute read": "{{ number }} minute read", - "{{ number }} words": "{{ number }} word", - "{{ number }} words_plural": "{{ number }} words", - "{{ number }} characters": "{{ number }} character", - "{{ number }} characters_plural": "{{ number }} characters", - "{{ number }} emoji": "{{ number }} emoji", - "No text selected": "No text selected", - "{{ number }} words selected": "{{ number }} word selected", - "{{ number }} words selected_plural": "{{ number }} words selected", - "{{ number }} characters selected": "{{ number }} character selected", - "{{ number }} characters selected_plural": "{{ number }} characters selected", - "Contributors": "Contributors", - "Creator": "Creator", - "Last edited": "Last edited", - "Previously edited": "Previously edited", - "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 document will be permanently deleted in <2></2> unless restored.": "This document will be permanently deleted in <2></2> unless restored.", - "Deleted by {{userName}}": "Deleted by {{userName}}", - "Observing {{ userName }}": "Observing {{ userName }}", - "Previous slide": "Previous slide", - "Next slide": "Next slide", - "Toggle fullscreen": "Toggle fullscreen", - "Create your presentation": "Create your presentation", - "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", - "Learn more": "Learn more", - "Backlinks": "Backlinks", - "Clear search highlight": "Clear search highlight", - "Warning": "Warning", - "This document is large which may affect performance": "This document is large which may affect performance", - "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", - "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", - "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>._plural": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested documents</em>.", - "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.", - "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 <em>{{ documentTitle }}</em> document? This action is immediate and cannot be undone.": "Are you sure you want to permanently delete the <em>{{ documentTitle }}</em> 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 <em>{{ location }}</em>": "Publish in <em>{{ location }}</em>", - "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", - "Access request sent": "Access request sent", - "No access to this doc": "No access to this doc", - "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", - "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", - "Access requested": "Access requested", - "Requesting…": "Requesting…", - "Request access": "Request access", - "Not found": "Not found", - "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.", - "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 (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.": "A workspace admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.", - "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.": "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.", - "Created by me": "Created by me", - "Weird, this shouldn't ever be empty": "Weird, this shouldn't ever be empty", - "Documents with recent activity will appear here": "Documents with recent activity will appear here", - "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", - "{{ count }} invites sent": "{{ count }} invites sent", - "{{ count }} invites sent_plural": "{{ count }} invites sent", - "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</2>.": "As an admin you can also <2>enable email sign-in</2>.", - "Invite as": "Invite as", - "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", - "Cancel editing": "Cancel editing", - "Collaboration": "Collaboration", - "Formatting": "Formatting", - "Paragraph": "Paragraph", - "Large header": "Large header", - "Medium header": "Medium header", - "Small header": "Small header", - "Link": "Link", - "Underline": "Underline", - "Undo": "Undo", - "Redo": "Redo", - "Move block up": "Move block up", - "Move block down": "Move block down", - "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", - "Toggle blocks": "Toggle blocks", - "Open / close": "Open / close", - "Indent item": "Indent item", - "Outdent item": "Outdent item", - "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 users and more": "Mention users and more", - "Insert block": "Insert block", - "Continue with Passkey": "Continue with Passkey", - "Passkeys are not supported in the desktop app": "Passkeys are not supported in the desktop app", - "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", - "Sorry, the code you entered is invalid or has expired.": "Sorry, the code you entered is invalid or has expired.", - "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></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></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></1>Please use a Google Workspaces account instead.": "Sorry, a new account cannot be created with a personal Gmail address.<1></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 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></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></1>Please request an invite from your workspace admin and try again.", - "Sorry, an unknown error occurred.": "Sorry, an unknown error occurred.", - "Choose a workspace": "Choose a workspace", - "Choose an {{ appName }} workspace or login to continue connecting this app": "Choose an {{ appName }} workspace or login to continue connecting this app", - "Create workspace": "Create workspace", - "Setup your workspace by providing a name and details for admin login. You can change these later.": "Setup your workspace by providing a name and details for admin login. You can change these later.", - "Workspace name": "Workspace name", - "Admin name": "Admin name", - "Admin email": "Admin email", - "Login": "Login", + "Archived by {{userName}}": "Arxivat per {{userName}}", + "Sorry, an error occurred saving the collection": "S'ha produït un error en desar la col·lecció", + "Add a description": "Afegeix una descripció", + "Signing in": "Iniciant sessió", + "You can safely close this window once the Outline desktop app has opened": "Podeu tancar aquesta finestra amb seguretat una vegada que s'hagi obert l'aplicació d'escriptori Outline", + "{{ current }} of {{ count }} changes": "{{ current }} de {{ count }} canvi", + "{{ current }} of {{ count }} changes_plural": "{{ current }} de {{ count }} canvis", + "{{ count }} changes": "{{ count }} canvi", + "{{ count }} changes_plural": "{{ count }} canvis", + "Previous change": "Canvi anterior", + "Next change": "Canvi següent", + "Error creating comment": "S'ha produït un error en crear el comentari", + "Add a comment": "Afegeix un comentari", + "Add a reply": "Afegeix una resposta", + "Reply": "Respondre", + "Post": "Publicar", + "Upload image": "Penja la imatge", + "No resolved comments": "No hi ha comentaris resolts", + "No comments yet": "Encara no hi ha comentaris", + "New comments": "Nous comentaris", + "Most recent": "Més recent", + "Order in doc": "Ordena al document", + "Resolved": "S'ha resolt", + "Sort comments": "Ordena els comentaris", + "Show {{ count }} reply": "Mostra {{ count }} resposta", + "Show {{ count }} reply_plural": "Mostra {{ count }} respostes", + "Error updating comment": "Error en actualitzar el comentari", + "Document is too large": "El document és massa gran", + "This document has reached the maximum size and can no longer be edited": "Aquest document ha assolit la mida màxima i ja no es pot editar", + "Authentication failed": "Autenticació fallida", + "Please try logging out and back in again": "Proveu de tancar la sessió i tornar a entrar", + "Authorization failed": "Autorització fallida", + "You may have lost access to this document, try reloading": "És possible que hàgiu perdut l'accés a aquest document, proveu de tornar a carregar", + "Too many users connected to document": "Massa usuaris connectats al document", + "Your edits will sync once other users leave the document": "Les vostres edicions se sincronitzaran una vegada que altres usuaris surtin del document", + "New version available": "Nova versió disponible", + "Please reload the page to update to the latest version": "Torneu a carregar la pàgina per actualitzar-la a la darrera versió", + "Server connection lost": "S'ha perdut la connexió amb el servidor", + "Edits you make will sync once you’re online": "Les edicions que feu se sincronitzaran un cop estiguis en línia", + "Offline": "Fora de línia", + "Document restored": "Document restaurat", + "Images are still uploading.\nAre you sure you want to discard them?": "Les imatges encara s'estan penjant.\nSegur que voleu descartar-les?", + "{{ count }} comment": "{{ count }} comentari", + "{{ count }} comment_plural": "{{ count }} comentaris", + "Viewed by": "Vist per", + "only you": "només tu", + "person": "persona", + "people": "persones", + "Document title": "Títol del document", + "Last updated": "Darrera actualització", + "Type '/' to insert, or start writing…": "Escriu '/' per inserir, o comença a escriure…", + "Hide contents": "Amaga els continguts", + "Show contents": "Mostra els continguts", + "available when headings are added": "disponible quan s'afegeixin encapçalaments", + "Edit {{noun}}": "Editar {{noun}}", + "Archived": "Arxivats", + "Save draft": "Desa l'esborrany", + "Restore version": "Restaurar versió", + "{{userName}} archived": "{{userName}} arxivat", + "{{userName}} restored": "{{userName}} restaurat", + "{{userName}} deleted": "{{userName}} eliminat", + "{{userName}} added {{addedUserName}}": "{{userName}} ha afegit {{addedUserName}}", + "{{userName}} removed {{removedUserName}}": "{{userName}} ha eliminat {{removedUserName}}", + "{{userName}} moved from trash": "{{userName}} ha mogut de la paperera", + "{{userName}} published": "{{userName}} ha publicat", + "{{userName}} unpublished": "{{userName}} ha despublicat", + "{{userName}} moved": "{{userName}} ha mogut", + "Previous version": "Versió anterior", + "Highlight changes": "Ressalta els canvis", + "Compare to": "Compara amb", + "No history yet": "Encara no hi ha historial", + "Revision deleted": "S'ha eliminat la revisió", + "Current version": "Versió actual", + "{{userName}} edited": "{{userName}} ha editat", + "{{count}} people": "{{count}} persona", + "{{count}} people_plural": "{{count}} persones", + "Source": "Origen", + "Created": "Creat", + "Imported from {{ source }}": "Importat des de {{ source }}", + "Stats": "Estadístiques", + "{{ number }} minute read": "{{ number }} minut de lectura", + "{{ number }} words": "{{ number }} paraula", + "{{ number }} words_plural": "{{ number }} paraules", + "{{ number }} characters": "{{ number }} caràcter", + "{{ number }} characters_plural": "{{ number }} caràcters", + "{{ number }} emoji": "{{ number }} emoticones", + "No text selected": "No s'ha seleccionat cap text", + "{{ number }} words selected": "{{ number }} paraula seleccionada", + "{{ number }} words selected_plural": "{{ number }} paraules seleccionades", + "{{ number }} characters selected": "{{ number }} caràcter seleccionat", + "{{ number }} characters selected_plural": "{{ number }} caràcters seleccionats", + "Contributors": "Contribuïdors", + "Creator": "Creador", + "Last edited": "Darrera edició", + "Previously edited": "S'ha editat prèviament", + "Sorry, the last change could not be persisted – please reload the page": "L'últim canvi no s'ha pogut guardar – torneu a carregar la pàgina", + "{{ count }} days": "{{ count }} dia", + "{{ count }} days_plural": "{{ count }} dies", + "This document will be permanently deleted in <2></2> unless restored.": "Aquest document s'eliminarà permanentment el <2></2> llevat que es restauri.", + "Deleted by {{userName}}": "Eliminat per {{userName}}", + "Observing {{ userName }}": "Observant {{ userName }}", + "Previous slide": "Diapositiva anterior", + "Next slide": "Següent diapositiva", + "Toggle fullscreen": "Commuta la pantalla completa", + "Create your presentation": "Crea la teva presentació", + "Add content to your document, then use headings or dividers to separate it into slides.": "Afegiu contingut al document i, a continuació, utilitzeu encapçalaments o divisors per a separar-lo en diapositives.", + "Learn more": "Saber-ne més", + "Backlinks": "Enllaços enrere", + "Clear search highlight": "Neteja el ressaltat de la cerca", + "Warning": "Avís", + "This document is large which may affect performance": "Aquest document és gran i pot afectar el rendiment", + "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "N'esteu segur? Eliminant el document <em>{{ documentTitle }}</em> esborrarà tot el seu historial</em>.", + "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "N'esteu segur? Eliminant el document <em>{{ documentTitle }}</em> esborrarà tot el seu historial i <em>{{ any }} document imbricat</em>.", + "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>._plural": "N'esteu segur? Eliminant el document <em>{{ documentTitle }}</em> esborrarà tot el seu historial i <em>{{ any }} documents imbricats</em>.", + "If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.": "Si voleu l'opció de fer referència o restaurar el {{noun}} en el futur, considereu arxivar-lo.", + "Couldn’t create the document, try again?": "No s'ha pogut crear el document, torneu-ho a provar?", + "Document permanently deleted": "Document eliminat permanentment", + "Are you sure you want to permanently delete the <em>{{ documentTitle }}</em> document? This action is immediate and cannot be undone.": "Esteu segur que voleu eliminar permanentment el document <em>{{ documentTitle }}</em>? Aquesta acció és immediata i no es pot desfer.", + "Select a location to publish": "Seleccioneu una ubicació per a publicar", + "Document published": "Document publicat", + "Couldn’t publish the document, try again?": "No s'ha pogut publicar el document, torneu-ho a provar?", + "Publish in <em>{{ location }}</em>": "Publica a <em>{{ location }}</em>", + "Search documents": "Cerca documents", + "No documents found for your filters.": "No s'ha trobat cap document per als vostres filtres.", + "You’ve not got any drafts at the moment.": "De moment no tens esborranys.", + "Payment Required": "Pagament requerit", + "Access request sent": "S'ha enviat la sol·licitud d'accés", + "No access to this doc": "No hi ha accés a aquest document", + "Your request to access this document has been sent. You will be notified once access is granted.": "S'ha enviat la vostra sol·licitud d'accés a aquest document. Se us notificarà una vegada concedit l'accés.", + "It doesn't look like you have permission to access this document. You can request access.": "No sembla que tingueu permís per accedir a aquest document. Pots sol·licitar accés.", + "Access requested": "Accés sol·licitat", + "Requesting…": "S'està sol·licitant...", + "Request access": "Sol·licita accés", + "Not found": "No s'ha trobat", + "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "No es pot trobar la pàgina que busqueu. Pot ser que s'hagi eliminat o que l'enllaç sigui incorrecte.", + "We were unable to load the document while offline.": "No s'ha pogut carregar el document mentre està fora de línia.", + "Your account has been suspended": "El vostre compte s'ha suspès", + "Warning Sign": "Senyal d'advertència", + "A workspace admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.": "Un administrador de l'espai de treball (<em>{{ suspendedContactEmail }}</em>) ha suspès el vostre compte. Per reactivar el compte, contacteu-hi directament.", + "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.": "S'ha produït un error desconegut en carregar la pàgina. Torneu-ho a provar o contacteu amb el suport tècnic si el problema persisteix.", + "Created by me": "Creat per mi", + "Weird, this shouldn't ever be empty": "Estrany, això no hauria d'estar mai buit", + "Documents with recent activity will appear here": "Els documents amb activitat recent apareixeran aquí", + "You haven’t created any documents yet": "Encara no heu creat cap document", + "Documents you’ve recently viewed will be here for easy access": "Els documents que hagis vist recentment estaran aquí per a un fàcil accés", + "{{ count }} invites sent": "{{ count }} invitació enviada", + "{{ count }} invites sent_plural": "{{ count }} invitacions enviades", + "Those email addresses are already invited": "Aquestes adreces de correu electrònic ja estan convidades", + "Sorry, you can only send {{MAX_INVITES}} invites at a time": "Només podeu enviar {{MAX_INVITES}} invitacions alhora", + "Invited {{roleName}} will receive access to": "{{roleName}} invitat rebrà accés a", + "{{collectionCount}} collections": "{{collectionCount}} col·leccions", + "Admin": "Administardor", + "Can manage all workspace settings": "Pot gestionar tota la configuració de l'espai de treball", + "Can create, edit, and delete documents": "Pot crear, editar i eliminar documents", + "Can view and comment": "Pot veure i comentar", + "Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "Convida a la gent a unir-se al teu espai de treball. Poden iniciar sessió amb {{signinMethods}} o utilitzar la seva adreça de correu electrònic.", + "Invite members to join your workspace. They will need to sign in with {{signinMethods}}.": "Convideu els membres a unir-se al vostre espai de treball. Necessitaran iniciar sessió amb {{signinMethods}}.", + "As an admin you can also <2>enable email sign-in</2>.": "Com a administrador també podeu habilitar <2>l'inici de sessió de correu</2>.", + "Invite as": "Convida com", + "Email": "Correu electrònic", + "Add another": "Afegeix un altre", + "Inviting": "Convidant", + "Send Invites": "Envia les invitacions", + "Open command menu": "Obre el menú d'ordres", + "Forward": "Reenviar", + "Edit current document": "Edita el document actual", + "Move current document": "Mou el document actual", + "Open document history": "Obre l'historial del document", + "Jump to search": "Ves a la cerca", + "Jump to home": "Ves a l'inici", + "Focus search input": "Enfoca el camp de cerca", + "Open this guide": "Obre aquesta guia", + "Enter": "Retorn", + "Publish document and exit": "Publica el document i surt", + "Cancel editing": "Cancel·la l'edició", + "Collaboration": "Col·laboració", + "Formatting": "Formatació", + "Paragraph": "Paràgraf", + "Large header": "Capçalera gran", + "Medium header": "Capçalera mitjana", + "Small header": "Capçalera petita", + "Link": "Enllaç", + "Underline": "Subratllat", + "Undo": "Desfés", + "Redo": "Refés", + "Move block up": "Pujar bloc", + "Move block down": "Baixar bloc", + "Lists": "Llistes", + "Toggle task list item": "Commuta l'element de llista de tasques", + "Tab": "Tabulador", + "Indent list item": "Sagna l'element de la llista", + "Outdent list item": "Desfés el sagnat de l'element de la llista", + "Move list item up": "Mou amunt l'element de la llista", + "Move list item down": "Mou avall l'element de la llista", + "Toggle blocks": "Commuta els blocs", + "Open / close": "Obrir / tancar", + "Indent item": "Sagna l'element", + "Outdent item": "Desfés el sagnat de l'element", + "Tables": "Taules", + "Insert row": "Insereix una fila", + "Next cell": "Cel·la següent", + "Previous cell": "Cel·la anterior", + "Space": "Espai", + "Numbered list": "Llista numerada", + "Blockquote": "Bloc de cita", + "Horizontal divider": "Divisor horitzontal", + "LaTeX block": "Bloc de LaTeX", + "Inline code": "Codi en línia", + "Inline LaTeX": "LaTeX en línia", + "Triggers": "Activadors", + "Mention users and more": "Menciona usuaris i més", + "Insert block": "Insereix un bloc", + "Continue with Passkey": "Continua amb la clau d'accés", + "Passkeys are not supported in the desktop app": "Les claus d'accés no estan admeses a l'aplicació d'escriptori", + "Sign In": "Inicia la sessió", + "Continue with Email": "Continua amb el correu electrònic", + "Continue with {{ authProviderName }}": "Continua amb {{ authProviderName }}", + "Back to home": "Tornar a l'inici", + "The workspace could not be found": "No s'ha pogut trobar l'espai de treball", + "To continue, enter your workspace’s subdomain.": "Per continuar, entra al subdomini del teu espai de treball.", + "subdomain": "subdomini", + "Continue": "Continua", + "Sorry, the code you entered is invalid or has expired.": "El codi que heu introduït no és vàlid o ha caducat.", + "The domain associated with your email address has not been allowed for this workspace.": "El domini associat a la vostra adreça de correu electrònic no està permès per a aquest espai de treball.", + "Unable to sign-in. Please navigate to your workspace's custom URL, then try to sign-in again.<1></1>If you were invited to a workspace, you will find a link to it in the invite email.": "No s'ha pogut iniciar la sessió. Si us plau, navegueu a l'URL personalitzat del vostre espai de treball i proveu d'iniciar sessió de nou.<1></1>Si us han convidat a un espai de treball, trobareu un enllaç d'invitació al correu electrònic.", + "Sorry, a new account cannot be created with a personal Gmail address.<1></1>Please use a Google Workspaces account instead.": "No es pot crear un compte nou amb una adreça Gmail personal.<1></1>Utilitzeu un compte de Google Workspaces", + "The workspace associated with your user is scheduled for deletion and cannot be accessed at this time.": "L'espai de treball associat amb el vostre usuari està programat per a la supressió i no es pot accedir en aquest moment.", + "The workspace you authenticated with is not authorized on this installation. Try another?": "L'espai de treball que heu autenticat no està autoritzat en aquesta instal·lació. Proveu-ne un altre?", + "We could not read the user info supplied by your identity provider.": "No hem pogut llegir la informació d'usuari subministrada pel vostre proveïdor d'identitat.", + "Your account uses email sign-in, please sign-in with email to continue.": "El vostre compte utilitza l'inici de sessió per correu electrònic. Si us plau, inicieu la sessió amb el correu electrònic per continuar.", + "An email sign-in link was recently sent, please check your inbox or try again in a few minutes.": "S'ha enviat un enllaç d'inici de sessió per correu electrònic recentment. Si us plau, comproveu la vostra safata d'entrada o torneu-ho a provar en uns minuts.", + "Authentication failed – we were unable to sign you in at this time. Please try again.": "L'autenticació ha fallat – no hem pogut iniciar la vostra sessió en aquest moment. Torneu-ho a provar.", + "Authentication failed – you do not have permission to access this workspace.": "L'autenticació ha fallat – no teniu permís per accedir a aquest espai de treball.", + "Sorry, it looks like that sign-in link is no longer valid, please try requesting another.": "Sembla que l'enllaç d'inici de sessió ja no és vàlid, si us plau, intenteu demanar-ne un altre.", + "Your account has been suspended. To re-activate your account, please contact a workspace admin.": "El vostre compte ha estat suspès. Per reactivar el vostre compte, poseu-vos en contacte amb un administrador de l'espai de treball.", + "This workspace has been suspended. Please contact support to restore access.": "Aquest espai de treball ha estat suspès. Contacteu amb el suport per restaurar l'accés.", + "Authentication failed – this login method was disabled by a workspace admin.": "Ha fallat l'autenticació: aquest mètode d'inici de sessió ha estat desactivat per un administrador de l'espai de treball.", + "The workspace you are trying to join requires an invite before you can create an account.<1></1>Please request an invite from your workspace admin and try again.": "L'espai de treball al qual esteu intentant unir-vos requereix una invitació abans de poder crear un compte.<1></1>Sol·liciteu una invitació a l'administrador de l'espai de treball i torneu-ho a provar.", + "Sorry, an unknown error occurred.": "S'ha produït un error desconegut.", + "Choose a workspace": "Trieu un espai de treball", + "Choose an {{ appName }} workspace or login to continue connecting this app": "Trieu un espai de treball de {{ appName }} o inicieu sessió per continuar connectant aquesta aplicació", + "Create workspace": "Crea un espai de treball", + "Setup your workspace by providing a name and details for admin login. You can change these later.": "Configureu el vostre espai de treball proporcionant un nom i detalls per a l'inici de sessió de l'administrador. Podeu canviar-les més tard.", + "Workspace name": "Nom de l'espai de treball", + "Admin name": "Nom de l'administrador", + "Admin email": "Correu electrònic de l'administrador", + "Login": "Iniciar sessió", "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", - "Enter the sign-in code sent to the email <em>{{ emailLinkSentTo }}</em>": "Enter the sign-in code sent to the email <em>{{ emailLinkSentTo }}</em>", - "A magic sign-in link has been sent to the email <em>{{ emailLinkSentTo }}</em> if an account exists.": "A magic sign-in link has been sent to the email <em>{{ emailLinkSentTo }}</em> 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</1>.": "Already have an account? Go to <1>login</1>.", - "An error occurred": "An error occurred", - "The OAuth client could not be found, please check the provided client ID": "The OAuth client could not be found, please check the provided client ID", - "The OAuth client could not be loaded, please check the redirect URI is valid": "The OAuth client could not be loaded, please check the redirect URI is valid", - "The OAuth client could not be loaded, please check your workspace subdomain is correct": "The OAuth client could not be loaded, please check your workspace subdomain is correct", - "Required OAuth parameters are missing": "Required OAuth parameters are missing", - "Authorize": "Authorize", - "{{ appName }} wants to access {{ teamName }}": "{{ appName }} wants to access {{ teamName }}", - "By <em>{{ developerName }}</em>": "By <em>{{ developerName }}</em>", - "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} will be able to access your account and perform the following actions", - "You will be redirected to a local application after authorizing.": "You will be redirected to a local application after authorizing.", - "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", - "read": "read", - "write": "write", - "read and write": "read and write", - "API keys": "API keys", - "attachments": "attachments", - "collections": "collections", - "comments": "comments", + "Failed to load configuration.": "No s'ha pogut carregar la configuració.", + "Check the network requests and server logs for full details of the error.": "Comproveu les sol·licituds de xarxa i els registres del servidor per obtenir tots els detalls de l'error.", + "Custom domain setup": "Configuració personalitzada del domini", + "Almost there": "Gairebé hem acabat", + "Your custom domain is successfully pointing at Outline. To complete the setup process please contact support.": "El vostre domini personalitzat apunta amb èxit a Outline. Per a completar el procés de configuració, poseu-vos en contacte amb el suport.", + "Choose workspace": "Trieu l'espai de treball", + "This login method requires choosing your workspace to continue": "Aquest mètode d'inici de sessió requereix triar el vostre espai de treball per continuar", + "Check your email": "Comprova el teu correu electrònic", + "Enter the sign-in code sent to the email <em>{{ emailLinkSentTo }}</em>": "Introduïu el codi d'inici de sessió enviat al correu electrònic <em>{{ emailLinkSentTo }}</em>", + "A magic sign-in link has been sent to the email <em>{{ emailLinkSentTo }}</em> if an account exists.": "S'ha enviat un enllaç d'inici de sessió màgic al correu <em>{{ emailLinkSentTo }}</em> si existeix un compte associat.", + "Back to login": "Torna a l'inici de sessió", + "Get started by choosing a sign-in method for your new workspace below…": "Comenceu escollint un mètode d'inici de sessió per al vostre nou espai de treball a sota…", + "Login to {{ authProviderName }}": "Inicieu la sessió a {{ authProviderName }}", + "You signed in with {{ authProviderName }} last time.": "Vau iniciar la sessió amb {{ authProviderName }} l'última vegada.", + "Or": "O", + "Already have an account? Go to <1>login</1>.": "Ja teniu un compte? Aneu a <1>iniciar sessió</1>.", + "An error occurred": "S'ha produït un error", + "The OAuth client could not be found, please check the provided client ID": "No s'ha pogut trobar el client OAuth. Comproveu l'ID del client proporcionat", + "The OAuth client could not be loaded, please check the redirect URI is valid": "No s'ha pogut carregar el client OAuth. Comproveu que l'URI de redirecció és vàlid", + "The OAuth client could not be loaded, please check your workspace subdomain is correct": "No s'ha pogut carregar el client OAuth. Comproveu que el subdomini de l'espai de treball és correcte", + "Required OAuth parameters are missing": "Falten paràmetres OAuth necessaris", + "Authorize": "Autoritza", + "{{ appName }} wants to access {{ teamName }}": "{{ appName }} vol accedir a {{ teamName }}", + "By <em>{{ developerName }}</em>": "Per <em>{{ developerName }}</em>", + "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} podrà accedir al vostre compte i realitzar les accions següents", + "You will be redirected to a local application after authorizing.": "Se us redirigirà a una aplicació local després d'autoritzar.", + "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Se us redirigirà a <em>{{ redirectUri }}</em> després d'autoritzar. Assegureu-vos que confieu en aquest URL.", + "read": "llegir", + "write": "escriure", + "read and write": "llegir i escriure", + "API keys": "Claus API", + "attachments": "adjunts", + "collections": "col·leccions", + "comments": "comentaris", "documents": "documents", - "events": "events", - "groups": "groups", - "integrations": "integrations", - "notifications": "notifications", - "reactions": "reactions", - "pins": "pins", - "shares": "shares", - "users": "users", - "teams": "teams", - "workspace": "workspace", - "Read all data": "Read all data", - "Write all data": "Write all data", - "Any collection": "Any collection", - "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", - "Recent searches": "Recent searches", - "Remove search": "Remove search", - "Relevance": "Relevance", - "Newest": "Newest", - "Oldest": "Oldest", + "events": "esdeveniments", + "groups": "grups", + "integrations": "integracions", + "notifications": "notificacions", + "reactions": "reaccions", + "pins": "elements fixats", + "shares": "comparticions", + "users": "usuaris", + "teams": "equips", + "workspace": "espai de treball", + "Read all data": "Llegeix totes les dades", + "Write all data": "Escriu totes les dades", + "Any collection": "Qualsevol col·lecció", + "All time": "Des de sempre", + "Past day": "El darrer dia", + "Past week": "La darrera setmana", + "Past month": "El darrer mes", + "Past year": "El darrer any", + "Any time": "En qualsevol moment", + "Remove document filter": "Elimina el filtre de document", + "Any status": "Qualsevol estat", + "Recent searches": "Cerques recents", + "Remove search": "Elimina la cerca", + "Relevance": "Rellevància", + "Newest": "Més nous", + "Oldest": "Més antics", "A → Z": "A → Z", "Z → A": "Z → A", - "Any author": "Any author", - "Search titles only": "Search titles only", - "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.", - "Personal keys": "Personal keys", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.", - "API keys have been disabled by an admin for your account": "API keys have been disabled by an admin for your account", - "Application access": "Application access", - "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Manage which third-party and internal applications have been granted access to your {{ appName }} account.", - "Could not load API keys": "Could not load API keys", + "Any author": "Qualsevol autor", + "Search titles only": "Cerca només per títol", + "Please try again or contact support if the problem persists": "Torneu-ho a provar o contacteu amb el suport si el problema persisteix", + "No documents found for your search filters.": "No s'ha trobat cap document per als filtres de cerca.", + "Personal keys": "Claus personals", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "Crea claus API personals per autenticar-se amb l'API i controlar-les programadament\n les dades del vostre espai de treball. Per a més detalls, vegeu la <em>documentació del desenvolupador</em>.", + "API keys have been disabled by an admin for your account": "Un administrador ha desactivat les claus de l'API", + "Application access": "Accés a l'aplicació", + "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Gestioneu quines aplicacions de tercers i internes han obtingut accés al vostre compte {{ appName }}.", + "Could not load API keys": "No s'han pogut carregar les claus API", "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 <em>developer documentation</em>.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.", - "Application published": "Application published", - "Application updated": "Application updated", - "Client secret rotated": "Client secret rotated", - "Rotate secret": "Rotate secret", - "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.": "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.", - "Displayed to users when authorizing": "Displayed to users when authorizing", - "Application icon": "Application icon", - "Confidential clients can securely store a secret": "Confidential clients can securely store a secret", - "Developer information shown to users when authorizing": "Developer information shown to users when authorizing", - "Developer name": "Developer name", - "Developer URL": "Developer URL", - "Allow users from other workspaces to authorize this app": "Allow users from other workspaces to authorize this app", - "Credentials": "Credentials", - "OAuth client ID": "OAuth client ID", - "The public identifier for this app": "The public identifier for this app", - "Copied to clipboard": "Copied to clipboard", - "OAuth client secret": "OAuth client secret", - "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", - "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", - "Authorization URL": "Authorization URL", - "Where users are redirected to authorize this app": "Where users are redirected to authorize this app", - "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.": "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.", - "Settings saved": "Settings saved", - "Are you sure?": "Are you sure?", - "Removing": "Removing", - "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.", - "Disable group sync": "Disable group sync", - "Manage how members sign-in to your workspace and which authentication providers are enabled.": "Manage how members sign-in to your workspace and which authentication providers are enabled.", - "Allow members to sign-in with {{ authProvider }}": "Allow members to sign-in with {{ authProvider }}", - "Connect {{ authProvider }} to allow members to sign-in": "Connect {{ authProvider }} to allow members to sign-in", - "Connected": "Connected", - "Disabled": "Disabled", - "Connect": "Connect", - "Group sync": "Group sync", - "Sync group memberships from {{ authProvider }} on each sign-in": "Sync group memberships from {{ authProvider }} on each sign-in", - "Group claim": "Group claim", - "The claim in the provider response that contains group names (e.g. groups, roles)": "The claim in the provider response that contains group names (e.g. groups, roles)", - "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", - "Passkeys": "Passkeys", - "Allow members to sign-in with a WebAuthn passkey": "Allow members to sign-in with a WebAuthn passkey", - "Restrictions": "Restrictions", - "Keep synced groups": "Keep synced groups", - "Groups will remain but no longer update": "Groups will remain but no longer update", - "Delete synced groups": "Delete synced groups", - "Remove all groups created by sync": "Remove all groups created by sync", - "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "Group memberships will no longer be synced from {{ authProvider }} when members sign in.", - "Existing groups": "Existing groups", - "Disabling": "Disabling", - "Disable": "Disable", - "by {{ name }}": "by {{ name }}", - "Expired": "Expired", - "Last used": "Last used", - "No expiry": "No expiry", - "Restricted scope": "Restricted scope", - "API key copied to clipboard": "API key copied to clipboard", - "Copied": "Copied", - "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", - "Key": "Key", - "Created by": "Created by", - "Never": "Never", - "Expires": "Expires", - "Could not load preference": "Could not load preference", - "Preferences saved": "Preferences saved", - "Could not save preference": "Could not save preference", - "Open on startup": "Open on startup", - "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", - "Disconnect integration": "Disconnect integration", - "Disconnecting": "Disconnecting", - "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", - "This will stop sending analytics events to the configured instance.": "This will stop sending analytics events to the configured instance.", - "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", - "Added by": "Added by", - "Date added": "Date added", - "Members exported successfully": "Members exported successfully", - "Failed to export members": "Failed to export members", - "Download CSV": "Download CSV", - "Processing": "Processing", - "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.", - "Optional": "Optional", - "You’ll be able to add people to the group next.": "You’ll be able to add people to the group next.", - "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.", - "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.", - "Description": "Description", - "Hidden": "Hidden", - "Prevent this group from being mentionable in documents or comments": "Prevent this group from being mentionable in documents or comments", - "Are you sure about that? Deleting the <em>{{groupName}}</em> group will cause its members to lose access to collections and documents that it is associated with.": "Are you sure about that? Deleting the <em>{{groupName}}</em> group will cause its members to lose access to collections and documents that it is associated with.", - "{{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", - "Group admin": "Group admin", - "Member": "Member", - "{{userName}} was removed from the group": "{{userName}} was removed from the group", - "Last active": "Last active", - "All permissions": "All permissions", - "All sources": "All sources", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "Les claus API es poden utilitzar per autenticar-se amb l'API i controlar programadament \nles dades del vostre espai de treball. Per a més detalls, vegeu la <em>documentació per a desenvolupadors</em>.", + "Application published": "Aplicació publicada", + "Application updated": "Aplicació actualitzada", + "Client secret rotated": "Secret del client renovat", + "Rotate secret": "Renova el secret", + "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.": "Rotar el secret del client invalidarà el secret actual. Assegureu-vos d'actualitzar qualsevol aplicació que utilitzi aquestes credencials.", + "Displayed to users when authorizing": "Es mostra als usuaris quan s'autoritza", + "Application icon": "Icona de l'aplicació", + "Confidential clients can securely store a secret": "Els clients confidencials poden emmagatzemar de forma segura un secret", + "Developer information shown to users when authorizing": "Informació del desenvolupador que es mostra als usuaris en autoritzar", + "Developer name": "Nom del desenvolupador", + "Developer URL": "URL del desenvolupador", + "Allow users from other workspaces to authorize this app": "Permet que els usuaris d'altres espais de treball autoritzin aquesta aplicació", + "Credentials": "Credencials", + "OAuth client ID": "ID del client OAuth", + "The public identifier for this app": "L'identificador públic d'aquesta aplicació", + "Copied to clipboard": "S'ha copiat al porta-retalls", + "OAuth client secret": "Secret del client OAuth", + "Store this value securely, do not expose it publicly": "Emmagatzema aquest valor de forma segura, no l'exposis públicament", + "Where users are redirected after authorizing this app": "On es redirigeix als usuaris després d'autoritzar aquesta aplicació", + "Authorization URL": "URL d'autorització", + "Where users are redirected to authorize this app": "On es redirigeix als usuaris per autoritzar aquesta aplicació", + "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.": "Les aplicacions us permeten construir integracions internes o públiques amb Outline i proporcionar accés segur a través d'OAuth. Per a més detalls, vegeu la <em>documentació per a desenvolupadors</em>.", + "Settings saved": "Configuració desada", + "Are you sure?": "N'esteu segur?", + "Removing": "Eliminant", + "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "L'eliminació d'aquest proveïdor d'autenticació evitarà que els membres iniciïn sessió amb {{ authProvider }}.", + "Disable group sync": "Desactiva la sincronització del grup", + "Manage how members sign-in to your workspace and which authentication providers are enabled.": "Gestioneu com els membres inicien la sessió al vostre espai de treball i quins proveïdors d'autenticació estan habilitats.", + "Allow members to sign-in with {{ authProvider }}": "Permet als membres iniciar sessió amb {{ authProvider }}", + "Connect {{ authProvider }} to allow members to sign-in": "Connecteu {{ authProvider }} per permetre que els membres iniciïn la sessió", + "Connected": "Connectat", + "Disabled": "Deshabilitat", + "Connect": "Connectar", + "Group sync": "Sincronització de grup", + "Sync group memberships from {{ authProvider }} on each sign-in": "Sincronitza els membres del grup de {{ authProvider }} a cada inici de sessió", + "Group claim": "Grup d'OIDC", + "The claim in the provider response that contains group names (e.g. groups, roles)": "La reclamació a la resposta del proveïdor que conté noms de grup (p. ex. grups, rols)", + "Allow members to sign-in using their email address": "Permet als membres iniciar la sessió utilitzant la seva adreça de correu electrònic", + "The server must have SMTP configured to enable this setting": "El servidor ha de tenir SMTP configurat per activar aquest paràmetre", + "Passkeys": "Claus d'accés", + "Allow members to sign-in with a WebAuthn passkey": "Permet als membres iniciar sessió amb una clau d'accés WebAuthn", + "Restrictions": "Restriccions", + "Keep synced groups": "Mantenir els grups sincronitzats", + "Groups will remain but no longer update": "Els grups es mantindran però ja no s'actualitzaran", + "Delete synced groups": "Elimina els grups sincronitzats", + "Remove all groups created by sync": "Elimina tots els grups creats per sincronització", + "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "Els membres del grup ja no se sincronitzaran des de {{ authProvider }} quan els membres iniciïn la sessió.", + "Existing groups": "Grups existents", + "Disabling": "Desactivant", + "Disable": "Deshabilita", + "by {{ name }}": "per {{ name }}", + "Expired": "Caducat", + "Last used": "Darrer ús", + "No expiry": "Sense caducitat", + "Restricted scope": "Àmbit restringit", + "API key copied to clipboard": "Clau API copiada al porta-retalls", + "Copied": "Copiada", + "Are you sure you want to revoke the {{ tokenName }} token?": "Esteu segur que voleu revocar el token {{ tokenName }}?", + "Key": "Clau", + "Created by": "Creat per", + "Never": "Mai", + "Expires": "Venç", + "Could not load preference": "No s'ha pogut carregar la preferència", + "Preferences saved": "Preferències guardades", + "Could not save preference": "No s'ha pogut desar la preferència", + "Open on startup": "Obre en iniciar", + "Automatically launch {{ appName }} when you sign in to your computer.": "Inicieu {{ appName }} automàticament quan inicieu la sessió a l'ordinador.", + "Disconnect integration": "Desconnecta la integració", + "Disconnecting": "Desconnectant", + "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Esteu segur que voleu desconnectar la integració <em>{{ service }}</em>?", + "This will stop sending analytics events to the configured instance.": "Això deixarà d'enviar esdeveniments analítics a la instància configurada.", + "Allowed domains": "Dominis permesos", + "The domains which should be allowed to create new accounts using SSO. Changing this setting does not affect existing user accounts.": "Els dominis que s'han de permetre per crear comptes nous utilitzant SSO. Canviar aquesta configuració no afecta els comptes d'usuari existents.", + "Remove domain": "Elimina el domini", + "Add a domain": "Afegeix un domini", + "Save changes": "Desa els canvis", + "Please choose a single file to import": "Trieu un sol fitxer a importar", + "Your import is being processed, you can safely leave this page": "S'està processant la vostra importació, podeu sortir d'aquesta pàgina", + "File not supported – please upload a valid ZIP file": "El fitxer no és compatible – pugeu un fitxer ZIP vàlid", + "Set the default permission level for collections created from the import": "Estableix el nivell de permisos per defecte per a les col·leccions creades a partir de la importació", + "Start import": "Inicia la importació", + "Added by": "Afegit per", + "Date added": "Data d'addició", + "Members exported successfully": "Membres exportats correctament", + "Failed to export members": "No s'han pogut exportar els membres", + "Download CSV": "Descarrega CSV", + "Processing": "Processant", + "Completed": "Completat", + "Failed": "Ha fallat", + "All collections": "Totes les col·leccions", + "Import deleted": "Importació eliminada", + "Export deleted": "Exportació eliminada", + "Are you sure you want to delete this import?": "Esteu segur que voleu eliminar aquesta importació?", + "Deleting this import will also delete all collections and documents that were created from it. This cannot be undone.": "Eliminar aquesta importació també suprimirà totes les col·leccions i documents que s'han creat a partir d'ella. Això no es pot desfer.", + "Check server logs for more details.": "Comprova els registres del servidor per a més detalls.", + "{{userName}} requested": "{{userName}} ha sol·licitat", + "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering for example.": "Els grups són per organitzar el vostre equip. Treballen millor quan se centren en una funció o una responsabilitat — Suport o Enginyeria, per exemple.", + "Optional": "Opcional", + "You’ll be able to add people to the group next.": "A continuació, podràs afegir persones al grup.", + "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "Aquest grup està gestionat per un proveïdor d'autenticació extern. El nom se sincronitza automàticament i no es pot canviar.", + "You can edit the name of this group at any time, however doing so too often might confuse your team mates.": "Podeu editar el nom d'aquest grup en qualsevol moment, però fer-ho amb massa freqüència pot confondre els vostres companys d'equip.", + "Description": "Descripció", + "Hidden": "Ocult", + "Prevent this group from being mentionable in documents or comments": "Eviteu que aquest grup sigui mencionable en documents o comentaris", + "Are you sure about that? Deleting the <em>{{groupName}}</em> group will cause its members to lose access to collections and documents that it is associated with.": "N'esteu segur? Suprimir el grup <em>{{groupName}}</em> farà que els seus membres perdin l'accés a les col·leccions i documents amb els quals està associat.", + "{{userName}} was added to the group": "{{userName}} s'ha afegit al grup", + "Could not add user": "No s'ha pogut afegir l'usuari", + "Add members below to give them access to the group. Need to add someone who’s not yet a member?": "Afegiu membres a continuació per donar-los accés al grup. Cal afegir algú que encara no és membre?", + "Invite them to {{teamName}}": "Convida'ls a {{teamName}}", + "Ask an admin to invite them first": "Demana-li a un administrador que els convidi primer", + "Search by name": "Cercar per nom", + "Search people": "Cercar persones", + "No people matching your search": "No hi ha persones que coincideixin amb la vostra cerca", + "No people left to add": "No queda gent per afegir", + "Group admin": "Administrador del grup", + "Member": "Membre", + "{{userName}} was removed from the group": "{{userName}} s'ha eliminat del grup", + "Last active": "Últim actiu", + "All permissions": "Tots els permisos", + "All sources": "Totes les fonts", "Manual": "Manual", - "This group is hidden": "This group is hidden", - "Synced <2></2>": "Synced <2></2>", - "Date created": "Date created", - "Crop Image": "Crop Image", - "Crop image": "Crop image", - "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.", - "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", - "Canceled": "Canceled", - "Import canceled": "Import canceled", - "Are you sure you want to cancel this import?": "Are you sure you want to cancel this import?", - "Canceling": "Canceling", - "Canceling this import will discard any progress made. This cannot be undone.": "Canceling this import will discard any progress made. This cannot be undone.", - "{{ count }} document imported": "{{ count }} document imported", - "{{ count }} document imported_plural": "{{ count }} documents imported", - "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.", - "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", - "Configure": "Configure", - "Role": "Role", - "Guest": "Guest", - "Never used": "Never used", - "Are you sure you want to delete the {{ appName }} application? This cannot be undone.": "Are you sure you want to delete the {{ appName }} application? This cannot be undone.", - "Title": "Title", - "Shared by": "Shared by", - "Date shared": "Date shared", - "Last accessed": "Last accessed", - "Domain": "Domain", - "Views": "Views", - "Visibility": "Visibility", - "Updated by": "Updated by", - "All roles": "All roles", - "Admins": "Admins", + "This group is hidden": "Aquest grup està amagat", + "Synced <2></2>": "Sincronitzat <2></2>", + "Date created": "Data de creació", + "Crop Image": "Retalla la imatge", + "Crop image": "Retalla la imatge", + "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "Podeu importar un fitxer ZIP que s'ha exportat prèviament des de l'opció JSON en una altra instància. A {{ appName }}, obriu <em>Exporta</em> a la barra lateral de configuració i feu clic a <em>Exporta les dades</em>.", + "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Arrossegueu i deixeu anar el fitxer ZIP des de l'opció d'exportació JSON a {{appName}}, o feu clic per penjar", + "Canceled": "Cancel·lat", + "Import canceled": "Importació cancel·lada", + "Are you sure you want to cancel this import?": "Esteu segur que voleu cancel·lar aquesta importació?", + "Canceling": "Cancel·lant", + "Canceling this import will discard any progress made. This cannot be undone.": "La cancel·lació d'aquesta importació descartarà qualsevol progrés realitzat. Això no es pot desfer.", + "{{ count }} document imported": "{{ count }} document importat", + "{{ count }} document imported_plural": "{{ count }} documents importats", + "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "Podeu importar un fitxer ZIP que s'ha exportat prèviament des d'una instal·lació d'Outline – s'importaran col·leccions, documents i imatges. A Outline, obriu <em>Exporta</em> a la barra lateral de configuració i feu clic a <em>Exporta les dades</em>.", + "Drag and drop the zip file from the Markdown export option in {{appName}}, or click to upload": "Arrossegueu i deixeu anar el fitxer ZIP des de l'opció d'exportació Markdown a {{appName}}, o feu clic per penjar", + "Configure": "Configurar", + "Role": "Rol", + "Guest": "Convidat", + "Never used": "No s'ha utilitzat mai", + "Are you sure you want to delete the {{ appName }} application? This cannot be undone.": "Esteu segur que voleu suprimir l'aplicació {{ appName }}? Això no es pot desfer.", + "Title": "Títol", + "Shared by": "Compartit per", + "Date shared": "Data de compartició", + "Last accessed": "Darrer accés", + "Domain": "Domini", + "Views": "Visualitzacions", + "Visibility": "Visibilitat", + "Updated by": "Actualitzat per", + "All roles": "Tots els rols", + "Admins": "Administradors", "Editors": "Editors", - "All status": "All status", - "Active": "Active", - "Could not load emojis": "Could not load emojis", - "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", - "Left": "Left", - "Right": "Right", - "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.", - "Workspace logo": "Workspace logo", - "The workspace name, usually the same as your company name.": "The workspace name, usually the same as your company name.", - "A short description of your workspace.": "A short description of your workspace.", - "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 workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", - "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.", - "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.", - "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.", - "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.", - "When enabled team members can add comments to documents.": "When enabled team members can add comments to documents.", - "Danger": "Danger", - "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", - "Enabled": "Enabled", - "Allow supported providers to be inserted as interactive embeds in documents.": "Allow supported providers to be inserted as interactive embeds in documents.", - "Providers": "Providers", - "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.", - "All providers": "All providers", - "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 <em>{{ userEmail }}</em> 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 <em>{{ userEmail }}</em> when it’s complete.", - "Recent exports": "Recent exports", - "Manage AI and integration features for your workspace.": "Manage AI and integration features for your workspace.", - "MCP server": "MCP server", - "Allow members to connect to this workspace with MCP to read and write data.": "Allow members to connect to this workspace with MCP to read and write data.", - "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.", - "Copy URL": "Copy URL", - "Additional guidance": "Additional guidance", - "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "You can use these optional instructions to tell MCP clients how to use your knowledge base.", - "AI answers": "AI answers", - "Use AI to get direct answers to questions in search. This feature requires a paid license.": "Use AI to get direct answers to questions in search. This feature requires a paid license.", - "Add people to {{groupName}}": "Add people to {{groupName}}", - "Could not load group members": "Could not load group members", - "Add people": "Add people", - "Synced to {{ provider }}": "Synced to {{ provider }}", - "No description": "No description", - "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", - "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 from a Confluence instance": "Import pages from a Confluence instance", - "Enterprise": "Enterprise", - "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.", - "Recent imports": "Recent imports", - "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", - "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", - "Group mentions": "Group mentions", - "Receive a notification when someone mentions a group you are a member of in a document or comment": "Receive a notification when someone mentions a group you are a member of 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", - "Reaction added": "Reaction added", - "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", - "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", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", - "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.", - "All notifications": "All notifications", - "Unread count": "Unread count", - "Unread indicator": "Unread indicator", - "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</2>.": "Choose the interface language. Community translations are accepted though our <2>translation portal</2>.", - "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.", - "Notification badge": "Notification badge", - "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", - "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.", - "Members and guests": "Members and guests", - "No one": "No one", - "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. <em>Default role</em> and <em>Allowed domains</em> will no longer apply.": "New users will first need to be invited to create an account. <em>Default role</em> and <em>Allowed domains</em> 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.", - "Invites": "Invites", - "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.", - "Allow users to sign in with passkeys for passwordless authentication": "Allow users to sign in with passkeys for passwordless authentication", - "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", - "Email address visibility": "Email address visibility", - "Controls who can see user email addresses in the workspace": "Controls who can see user email addresses in the workspace", - "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", - "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 <em>security settings</em>.": "You can globally enable and disable public document sharing in the <em>security settings</em>.", - "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.", - "A template must have content": "A template must have content", - "Could not load templates": "Could not load templates", - "Templates help your team create consistent and accurate documentation.": "Templates help your team create consistent and accurate documentation.", - "No templates have been created yet": "No templates have been created yet", - "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} is using {{ appName }} to share documents, please login to continue.", - "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}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", - "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", - "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 }}", - "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", - "Installation URL": "Installation URL", - "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net": "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net", - "New attribute": "New attribute", - "Paper size": "Paper size", - "Ask AI \"{{question}}\"": "Ask AI \"{{question}}\"", - "Are you sure you want to delete?": "Are you sure you want to delete?", - "Deleting this version of the document will permanently and irrevocably remove it from the history.": "Deleting this version of the document will permanently and irrevocably remove it from the history.", + "All status": "Tots els estats", + "Active": "Actiu", + "Could not load emojis": "No s'han pogut carregar els emojis", + "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Els emojis personalitzats es poden utilitzar en tot el vostre espai de treball en documents, comentaris i reaccions.", + "Left": "Esquerra", + "Right": "Dreta", + "Logo updated": "Logo actualitzat", + "Unable to upload new logo": "No s'ha pogut pujar el nou logotip", + "Delete workspace": "Elimina l'espai de treball", + "These settings affect the way that your workspace appears to everyone on the team.": "Aquests ajustos afecten la forma en què el vostre espai de treball apareix a tots els membres de l'equip.", + "Display": "Visualització", + "The logo is displayed at the top left of the application.": "El logotip es mostra a la part superior esquerra de l'aplicació.", + "Workspace logo": "Logotip de l'espai de treball", + "The workspace name, usually the same as your company name.": "El nom de l'espai de treball, normalment el mateix que el nom de la vostra empresa.", + "A short description of your workspace.": "Una breu descripció del vostre espai de treball.", + "Theme": "Tema", + "Customize the interface look and feel.": "Personalitza l'aspecte i el comportament de la interfície.", + "Reset theme": "Restableix el tema", + "Accent color": "Color primari", + "Accent text color": "Color del text primari", + "Public branding": "Marca pública", + "Show your workspace logo, description, and branding on publicly shared pages.": "Mostra el logotip, la descripció i la marca de l'espai de treball a les pàgines compartides públicament.", + "Table of contents position": "Posició de la taula de continguts", + "The side to display the table of contents in relation to the main content.": "El costat per mostrar la taula de continguts en relació amb el contingut principal.", + "Subdomain": "Subdomini", + "Your workspace will be accessible at": "El vostre espai de treball serà accessible a", + "Choose a subdomain to enable a login page just for your team.": "Trieu un subdomini per a habilitar una pàgina d'inici de sessió només per al vostre equip.", + "This is the screen that workspace members will first see when they sign in.": "Aquesta és la pantalla que els membres de l'espai de treball veuran primer quan iniciïn la sessió.", + "Separate editing": "Edició separada", + "When enabled documents have a separate editing mode by default instead of being always editable. This setting can be overridden by user preferences.": "Quan s'activa, els documents tenen per defecte un mode d'edició separat en lloc de ser sempre editable. Aquesta configuració pot ser sobreescrita per les preferències de l'usuari.", + "When enabled team members can add comments to documents.": "Quan s'activa, els membres de l'equip poden afegir comentaris als documents.", + "Danger": "Perill", + "You can delete this entire workspace including collections, documents, and users.": "Podeu eliminar tot aquest espai de treball, incloent-hi col·leccions, documents i usuaris.", + "Enabled": "Habilitat", + "Allow supported providers to be inserted as interactive embeds in documents.": "Permet que els proveïdors admesos s'insereixin com a incrustacions interactives en els documents.", + "Providers": "Proveïdors", + "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Els proveïdors activats apareixeran al menú de barra de l'editor i s'incrustaran automàticament quan s'enganxi un enllaç compatible. Les incrustacions existents en els documents continuaran mostrant-se independentment d'aquests paràmetres.", + "All providers": "Tots els proveïdors", + "Export data": "Exportar dades", + "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 <em>{{ userEmail }}</em> when it’s complete.": "Una exportació completa pot trigar una estona. Considereu exportar un sol document o col·lecció. Podeu sortir d'aquesta pàgina un cop s'hagi iniciat l'exportació: si teniu les notificacions habilitades, enviarem un enllaç a <em>{{ userEmail }}</em> quan s'hagi completat.", + "Recent exports": "Exportacions recents", + "Manage AI and integration features for your workspace.": "Gestiona les funcions d'IA i integració per al teu espai de treball.", + "MCP server": "Servidor MCP", + "Allow members to connect to this workspace with MCP to read and write data.": "Permeteu que els membres es connectin a aquest espai de treball amb MCP per llegir i escriure dades.", + "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Utilitzeu el següent endpoint per connectar-vos al servidor MCP des de la vostra aplicació. Més informació sobre la configuració <a>als documents</a>.", + "Copy URL": "Copia l'URL", + "Additional guidance": "Guia addicional", + "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "Podeu utilitzar aquestes instruccions opcionals per indicar als clients de MCP com utilitzar la teva base de coneixement.", + "AI answers": "Respostes d'IA", + "Use AI to get direct answers to questions in search. This feature requires a paid license.": "Utilitzeu la IA per obtenir respostes directes a les preguntes a la cerca. Aquesta característica requereix una llicència de pagament.", + "Add people to {{groupName}}": "Afegeix persones a {{groupName}}", + "Could not load group members": "No s'han pogut carregar els membres del grup", + "Add people": "Afegir persones", + "Synced to {{ provider }}": "Sincronitzat a {{ provider }}", + "No description": "Sense descripció", + "Create a group": "Crea un grup", + "Could not load groups": "No s'han pogut carregar els grups", + "New group": "Grup nou", + "Groups can be used to organize and manage the people on your team.": "Els grups es poden utilitzar per organitzar i gestionar les persones del vostre equip.", + "No groups have been created yet": "Encara no s'ha creat cap grup", + "Import a zip file of Markdown documents (exported from version 0.67.0 or earlier)": "Importa un fitxer ZIP de documents Markdown (exportat des de la versió 0.67.0 o anterior)", + "Import data": "Importar dades", + "Import a JSON data file exported from another {{ appName }} instance": "Importa un fitxer de dades JSON exportat des d'una altra instància {{ appName }}", + "Import pages from a Confluence instance": "Importa les pàgines des d'una instància de Confluence", + "Enterprise": "Empresarial", + "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.": "Transferiu ràpidament els vostres documents, pàgines i fitxers existents d'altres eines i serveis a {{appName}}. També pots arrossegar i deixar anar qualsevol document HTML, Markdown i text directament a Col·leccions a l'aplicació.", + "Recent imports": "Importacions recents", + "Configure a variety of integrations with third-party services.": "Configura una varietat d'integracions amb serveis de tercers.", + "Could not load members": "No s'han pogut carregar els membres", + "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.": "Tots els que han iniciat la sessió a {{appName}} apareixen aquí. És possible que hi hagi altres usuaris que tinguin accés a través de {{signinMethods}} però que encara no hagin iniciat la sessió.", + "Receive a notification whenever a new document is published": "Rep una notificació cada vegada que es publiqui un document nou", + "Document updated": "Document actualitzat", + "Receive a notification when a document you are subscribed to is edited": "Rep una notificació quan s'edita un document al qual esteu subscrit", + "Comment posted": "Comentari publicat", + "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Rep una notificació quan un document al qual esteu subscrit o un fil al qual heu participat rebi un comentari", + "Mentioned": "Mencionat", + "Receive a notification when someone mentions you in a document or comment": "Rep una notificació quan algú us mencioni en un document o un comentari", + "Group mentions": "Mencions de grup", + "Receive a notification when someone mentions a group you are a member of in a document or comment": "Rep una notificació quan algú esmenta un grup del qual sou membre en un document o un comentari", + "Receive a notification when a comment thread you were involved in is resolved": "Rep una notificació quan es resolgui un fil de comentari en el qual esteu involucrat", + "Reaction added": "Reacció afegida", + "Receive a notification when someone reacts to your comment": "Rep una notificació quan algú reaccioni al teu comentari", + "Collection created": "Col·lecció creada", + "Receive a notification whenever a new collection is created": "Rep una notificació cada vegada que es crea una nova col·lecció", + "Invite accepted": "Invitació acceptada", + "Receive a notification when someone you invited creates an account": "Rep una notificació quan algú convidat crea un compte", + "Invited to document": "Convidat al document", + "Receive a notification when a document is shared with you": "Rep una notificació quan es comparteixi un document amb tu", + "Invited to collection": "Convidat a la col·lecció", + "Receive a notification when you are given access to a collection": "Rep una notificació quan se us doni accés a una col·lecció", + "Export completed": "S'ha completat l'exportació", + "Receive a notification when an export you requested has been completed": "Rebre una notificació quan s'hagi completat una exportació que hagis sol·licitat", + "Document access requested": "Accés al document sol·licitat", + "Receive a notification when a user requests access to a document you manage": "Rep una notificació quan un usuari sol·licita accés a un document que gestioneu", + "Getting started": "Primeres passes", + "Tips on getting started with features and functionality": "Consells per començar amb les característiques i la funcionalitat", + "New features": "Noves característiques", + "Receive an email when new features of note are added": "Rep un correu electrònic quan s'afegeixin noves funcionalitats destacades", + "Notifications saved": "Notificacions desades", + "Unsubscription successful. Your notification settings were updated": "Cancel·lació de subscripció satisfactòria. S'han actualitzat els paràmetres de les notificacions", + "Manage when and where you receive email notifications.": "Gestiona quan i on reps notificacions per correu electrònic.", + "All notifications": "Totes les notificacions", + "Unread count": "Nombre de no llegits", + "Unread indicator": "Indicador de no llegit", + "Delete account": "Elimina el compte", + "Manage settings that affect your personal experience.": "Gestiona els ajustos que afecten la teva experiència personal.", + "Language": "Idioma", + "Choose the interface language. Community translations are accepted though our <2>translation portal</2>.": "Trieu l'idioma de la interfície. Les traduccions comunitàries són acceptades a través del nostre <2>portal de traducció</2>.", + "Choose your preferred interface color scheme.": "Trieu el vostre esquema de color d'interfície preferit.", + "Use pointer cursor": "Utilitza el cursor del punter", + "Show a hand cursor when hovering over interactive elements.": "Mostra un cursor de mà en passar per sobre d'elements interactius.", + "Show line numbers": "Mostra els números de línia", + "Show line numbers on code blocks in documents.": "Mostra els números de línia als blocs de codi als documents.", + "When enabled, documents have a separate editing mode. When disabled, documents are always editable when you have permission.": "Quan està activat, els documents tenen un mode d'edició separat. Quan està desactivat, els documents sempre es poden editar quan teniu permís.", + "Remember previous location": "Recorda la ubicació anterior", + "Automatically return to the document you were last viewing when the app is re-opened.": "Torna automàticament al document que vas veure per última vegada quan es torni a obrir l'aplicació.", + "Smart text replacements": "Substitucions de text intel·ligents", + "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "Dona format automàtic al text reemplaçant les dreceres amb símbols, guions, cometes intel·ligents i altres elements tipogràfics.", + "Notification badge": "Insígnia de notificació", + "Choose how unread notifications are indicated on the app icon.": "Trieu com s'indiquen les notificacions sense llegir a la icona de l'aplicació.", + "You may delete your account at any time, note that this is unrecoverable": "Podeu eliminar el vostre compte en qualsevol moment, tingueu en compte que això no es pot recuperar", + "Profile saved": "S'ha desat el perfil", + "Profile picture updated": "Foto de perfil actualitzada", + "Unable to upload new profile picture": "No s'ha pogut penjar la nova foto de perfil", + "Manage how you appear to other members of the workspace.": "Gestioneu com apareixeu a altres membres de l'espai de treball.", + "Photo": "Foto", + "Choose a photo or image to represent yourself.": "Trieu una foto o una imatge per a representar-te.", + "This could be your real name, or a nickname — however you’d like people to refer to you.": "Aquest podria ser el teu nom real o un sobrenom — com t'agradaria que la gent et fes referència.", + "Members and guests": "Membres i convidats", + "No one": "Ningú", + "Are you sure you want to require invites?": "Segur que voleu requerir invitacions?", + "New users will first need to be invited to create an account. <em>Default role</em> and <em>Allowed domains</em> will no longer apply.": "Els usuaris nous primer hauran de ser convidats a crear un compte. <em>Els rols per defecte</em> i <em>Els dominis permesos</em> ja no s'aplicaran.", + "Settings that impact the access, security, and content of your workspace.": "Ajustos que afecten l'accés, la seguretat i el contingut del vostre espai de treball.", + "Invites": "Invitacions", + "Allow users to send invites": "Permeteu als usuaris enviar invitacions", + "Allow editors to invite other people to the workspace": "Permeteu als editors convidar altres persones a l'espai de treball", + "Require invites": "Requerir invitacions", + "Require members to be invited to the workspace before they can create an account using SSO.": "Requereix que els membres siguin convidats a l'espai de treball abans que puguin crear un compte utilitzant SSO.", + "Default role": "Rol predeterminat", + "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "El rol d'usuari predeterminat per als comptes nous. Canviar aquesta configuració no afecta els comptes d'usuari existents.", + "Allow users to sign in with passkeys for passwordless authentication": "Permet als usuaris iniciar sessió amb claus d'accés per a l'autenticació sense contrasenya", + "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Quan està activat, els documents poden ser compartits públicament a Internet per qualsevol membre de l'espai de treball", + "Viewer document exports": "Els lectors poden exportar documents", + "When enabled, viewers can see download options for documents": "Quan està habilitat, els lectors poden veure les opcions de baixada dels documents", + "Users can delete account": "Els usuaris poden eliminar el compte", + "When enabled, users can delete their own account from the workspace": "Quan està activat, els usuaris poden eliminar el seu compte de l'espai de treball", + "Email address visibility": "Visibilitat de l'adreça de correu electrònic", + "Controls who can see user email addresses in the workspace": "Controla qui pot veure les adreces de correu electrònic de l'usuari a l'espai de treball", + "Collection creation": "Creació de la col·lecció", + "Allow editors to create new collections within the workspace": "Permet als editors crear noves col·leccions dins de l'espai de treball", + "Workspace creation": "Creació d'espais de treball", + "Allow editors to create new workspaces": "Permet als editors crear espais de treball nous", + "Could not load shares": "No s'han pogut carregar les comparticions", + "Sharing is currently disabled.": "La compartició està desactivada.", + "You can globally enable and disable public document sharing in the <em>security settings</em>.": "Podeu activar i desactivar globalment la compartició de documents públics a la <em>configuració de seguretat </em>.", + "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.": "Els documents que s'han compartit s'enumeren a continuació. Qualsevol persona que tingui l'enllaç públic pot accedir a una versió de només lectura del document fins que l'enllaç hagi estat revocat.", + "A template must have content": "Una plantilla ha de tenir contingut", + "Could not load templates": "No s'han pogut carregar les plantilles", + "Templates help your team create consistent and accurate documentation.": "Les plantilles ajuden al vostre equip a crear una documentació coherent i precisa.", + "No templates have been created yet": "Encara no s'ha creat cap plantilla", + "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} està utilitzant {{ appName }} per compartir documents, inicieu la sessió per continuar.", + "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "S'ha enviat un codi de confirmació a la vostra adreça de correu electrònic. Si us plau, introduïu el codi de sota per eliminar permanentment aquest espai de treball.", + "Confirmation code": "Codi de confirmació", + "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Suprimint l'espai de treball <1>{{workspaceName}}</1> es destruiran totes les col·leccions, documents, usuaris i dades associades. Se us tancarà la sessió immediatament de {{appName}}.", + "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Tingueu en compte que els espais de treball estan completament separats. Poden tenir un domini diferent, configuració, usuaris i facturació.", + "You are creating a new workspace using your current account — <em>{{email}}</em>": "Esteu creant un espai de treball nou utilitzant el vostre compte actual — <em>{{email}}</em>", + "To create a workspace under another email please sign up from the homepage": "Per a crear un espai de treball sota un altre correu electrònic, registreu-vos des de la pàgina d'inici", + "Trash emptied": "Paperera buidada", + "Are you sure you want to permanently delete all the documents in Trash? This action is immediate and cannot be undone.": "Esteu segur que voleu eliminar permanentment tots els documents a la paperera? Aquesta acció és immediata i no es pot desfer.", + "Recently deleted": "Eliminats recentment", + "Trash is empty at the moment.": "La paperera està buida en aquest moment.", + "A confirmation code has been sent to your email address, please enter the code below to permanently destroy your account.": "S'ha enviat un codi de confirmació a la vostra adreça de correu electrònic. Si us plau, introduïu el codi de sota per eliminar permanentment el vostre compte.", + "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.": "N'esteu segur? Suprimir el vostre compte destruirà les dades identificatives associades amb el vostre usuari i no es pot desfer. Se us tancarà la sessió immediatament {{appName}} i es revocaran tots els vostres API tokens.", + "Delete my account": "Elimina el meu compte", + "Today": "Avui", + "Yesterday": "Ahir", + "Last week": "La darrera setmana", + "This month": "Aquest mes", + "Last month": "El darrer mes", + "This year": "Aquest any", + "Expired yesterday": "Va caducar ahir", + "Expired {{ date }}": "Va caducar {{ date }}", + "Expires today": "Caduca avui", + "Expires tomorrow": "Caduca demà", + "Expires {{ date }}": "Caduca {{ date }}", + "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configura un URL d'instal·lació personalitzat de Diagrams.net per utilitzar la vostra pròpia instància d'allotjament per incrustar diagrames en els vostres documents.", + "Installation URL": "URL d'instal·lació", + "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net": "L'URL de la vostra instal·lació de Diagrams.net. Deixeu-ho buit per utilitzar el núvol allotjat a app.diagrams.net", + "New attribute": "Nou atribut", + "Paper size": "Mida del paper", + "Ask AI \"{{question}}\"": "Pregunta a la IA \"{{question}}\"", + "Are you sure you want to delete?": "Esteu segur que voleu eliminar?", + "Deleting this version of the document will permanently and irrevocably remove it from the history.": "Suprimint aquesta versió del document l'eliminarà de manera permanent i irrevocable de l'historial.", "Format": "Format", - "Add option": "Add option", - "Choose a size for your exported document": "Choose a size for your exported document", - "Revision renamed": "Revision renamed", - "Failed to save revision": "Failed to save revision", - "Invite to document": "Invite to document", - "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", - "Edit attribute": "Edit attribute", - "Property": "Property", - "Yes": "Yes", + "Add option": "Afegeix una opció", + "Choose a size for your exported document": "TTrieuia una mida per al document exportat", + "Revision renamed": "Revisió reanomenada", + "Failed to save revision": "No s'ha pogut desar la revisió", + "Invite to document": "Convida al document", + "Sorry, invalid embed link": "L'enllaç d'incrustació no és vàlid", + "Data Attributes": "Atributs de dades", + "Edit attribute": "Edita l'atribut", + "Property": "Propietat", + "Yes": "Sí", "No": "No", - "Search or ask a question": "Search or ask a question", - "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.": "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.", - "Can view only what is explicitly shared": "Can view only what is explicitly shared", - "SAML assertion was invalid or missing fields, please check your configuration": "SAML assertion was invalid or missing fields, please check your configuration", - "AI generated answer based on related documents in your workspace": "AI generated answer based on related documents in your workspace", - "References": "References", - "Enable AI answers to get direct answers to searched questions.": "Enable AI answers to get direct answers to searched questions.", - "Go to settings": "Go to settings", - "Where do I find the file?": "Where do I find the file?", - "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.": "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.", - "Drag and drop the zip file from Confluence's HTML export option, or click to upload": "Drag and drop the zip file from Confluence's HTML export option, or click to upload", - "Guests": "Guests", - "New Attribute": "New Attribute", - "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.": "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.", - "Custom domain": "Custom domain", - "Use AI to directly answer searched questions using content in your workspace.": "Use AI to directly answer searched questions using content in your workspace.", - "API access": "API access", - "Allow members to create API keys for programmatic access": "Allow members to create API keys for programmatic access", - "Public document embedding": "Public document embedding", - "When enabled, publicly shared documents can be embedded in third-party websites": "When enabled, publicly shared documents can be embedded in third-party websites", - "Include previews in emails": "Include previews in emails", - "When enabled, email notifications will include content previews": "When enabled, email notifications will include content previews", - "Boolean": "Boolean", - "Number": "Number", + "Search or ask a question": "Cerca o pregunta", + "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.": "El {{roleName}} convidat no rebrà accés a cap col·lecció o document tret que es comparteixi explícitament.", + "Can view only what is explicitly shared": "Només pot veure el que es comparteix explícitament", + "SAML assertion was invalid or missing fields, please check your configuration": "L'afirmació SAML no és vàlida o manca de camps. Si us plau, comproveu la configuració", + "AI generated answer based on related documents in your workspace": "La IA ha generat una resposta basada en documents relacionats al vostre espai de treball", + "References": "Referències", + "Enable AI answers to get direct answers to searched questions.": "Activa les respostes de la IA per obtenir respostes directes a les preguntes cercades.", + "Go to settings": "Vés a la configuració", + "Where do I find the file?": "On trobo el fitxer?", + "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.": "En un espai de Confluence, navegueu a <em>Configuració de l'espai -> Gestiona l'espai -> Exporta l'espai</em> i trieu exportar com a HTML amb l'opció «Exportació normal».", + "Drag and drop the zip file from Confluence's HTML export option, or click to upload": "Arrossegueu i deixeu anar el fitxer ZIP des de l'opció d'exportació HTML de Confluence, o feu clic per penjar", + "Guests": "Convidats", + "New Attribute": "Atribut nou", + "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.": "Els atributs us permeten definir les dades que s'han d'emmagatzemar amb els vostres documents. Es poden utilitzar per emmagatzemar propietats personalitzades, metadades o qualsevol altra informació estructurada que sigui comuna en els documents.", + "Custom domain": "Domini personalitzat", + "Use AI to directly answer searched questions using content in your workspace.": "Utilitzeu la IA per respondre directament les preguntes cercades utilitzant el contingut del teu espai de treball.", + "API access": "Accés API", + "Allow members to create API keys for programmatic access": "Permet als membres crear claus API per a l'accés programàtic", + "Public document embedding": "Incrustació de documents públics", + "When enabled, publicly shared documents can be embedded in third-party websites": "Quan està activat, els documents compartits públicament es poden incrustar en llocs web de tercers", + "Include previews in emails": "Inclou les vistes prèvies als correus electrònics", + "When enabled, email notifications will include content previews": "Quan està activat, les notificacions per correu electrònic inclouran previsualitzacions de contingut", + "Boolean": "Booleà", + "Number": "Nombre", "Text": "Text", - "List": "List", - "Could not load events": "Could not load events", - "Audit Log": "Audit Log", - "The audit log details the history of security related and other events across your knowledge base.": "The audit log details the history of security related and other events across your knowledge base.", - "IP address": "IP address", + "List": "Llista", + "Could not load events": "No s'han pogut carregar els esdeveniments", + "Audit Log": "Registre d'auditoria", + "The audit log details the history of security related and other events across your knowledge base.": "El registre d'auditoria detalla l'historial d'esdeveniments relacionats amb la seguretat i altres esdeveniments a través de la vostra base de coneixement.", + "IP address": "Adreça IP", "Actor": "Actor", - "Event": "Event", - "Timestamp": "Timestamp", + "Event": "Esdeveniment", + "Timestamp": "Marca de temps", "IP": "IP", - "a group": "a group", - "All users": "All users", - "Private": "Private", - "View and edit": "View and edit", - "Sharing enabled": "Sharing enabled", - "Date archived": "Date archived", - "Could not load collections": "Could not load collections", - "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.", - "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.": "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.", - "API Endpoint": "API Endpoint", - "API Secret": "API Secret", - "Datasource": "Datasource", - "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.": "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.", - "Sorry, an answer could not be found in the collection, try widening your search.": "Sorry, an answer could not be found in the collection, try widening your search.", - "Sorry, an answer could not be found in the workspace, try widening your search.": "Sorry, an answer could not be found in the workspace, try widening your search.", - "Looking for answers": "Looking for answers", - "Answer to \"{{ query }}\"": "Answer to \"{{ query }}\"", - "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in Figma 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.", - "Something went wrong while processing your request. Please try again.": "Something went wrong while processing your request. Please try again.", - "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.": "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.", - "Enabled on": "Enabled on", - "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?": "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?", - "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", - "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?", - "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.", - "Connect GitLab": "Connect GitLab", - "Enter the details for your GitLab instance.": "Enter the details for your GitLab instance.", - "GitLab URL": "GitLab URL", - "URL must start with https": "URL must start with https", - "Client ID": "Client ID", - "OAuth application ID": "OAuth application ID", - "Client Secret": "Client Secret", - "OAuth application secret": "OAuth application secret", - "Connecting": "Connecting", - "Choose which GitLab instance to connect to.": "Choose which GitLab instance to connect to.", - "GitLab Cloud": "GitLab Cloud", - "Connect to your account on gitlab.com": "Connect to your account on gitlab.com", - "GitLab Cloud credentials are not configured": "GitLab Cloud credentials are not configured", - "Self-managed": "Self-managed", - "Connect to a custom GitLab installation": "Connect to a custom GitLab installation", - "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?": "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?", - "The GitLab account is already connected to this workspace.": "The GitLab account is already connected to this workspace.", - "Something went wrong while authenticating your request. Please try again.": "Something went wrong while authenticating your request. Please try again.", - "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.": "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.", - "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.": "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.", - "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?": "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?", + "a group": "un grup", + "All users": "Tots els usuaris", + "Private": "Privat", + "View and edit": "Visualitzar i editar", + "Sharing enabled": "Compartició activada", + "Date archived": "Data d'arxivat", + "Could not load collections": "No s'han pogut carregar les col·leccions", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Gestiona els permisos i la configuració de totes les col·leccions de la base de coneixement. Com a administrador d'espais de treball també pots administrar col·leccions privades.", + "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.": "Indexa i cerca automàticament el contingut del document de {{appName}} dins de <4>Glean</4> en temps real.", + "API Endpoint": "Punt final de l'API", + "API Secret": "Secret de l'API", + "Datasource": "Font de dades", + "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.": "Detalls de la llicència actual de {{appName}}. Per concertar la renovació del contracte a mesura que s'aproximin els límits de venciment o seients o per a incrementar més seients llicenciats, poseu-vos en contacte amb el vostre gestor de comptes o per correu electrònic a <4>priority@getoutline.com</4>.", + "Sorry, an answer could not be found in the collection, try widening your search.": "No s'ha pogut trobar una resposta a la col·lecció, intenteu ampliar la cerca.", + "Sorry, an answer could not be found in the workspace, try widening your search.": "No s'ha pogut trobar una resposta a l'espai de treball, intenteu ampliar la cerca.", + "Looking for answers": "S'estan cercant respostes", + "Answer to \"{{ query }}\"": "Respon a \"{{ query }}\"", + "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?": "Vaja, heu d'acceptar els permisos de Figma per a connectar {{appName}} al vostre espai de treball. Torneu a provar?", + "Something went wrong while authenticating your request. Please try logging in again.": "Alguna cosa ha anat malament mentre autenticava la vostra sol·licitud. Torneu a intentar iniciar sessió.", + "Something went wrong while processing your request. Please try again.": "Alguna cosa ha anat malament mentre es processava la vostra sol·licitud. Torneu-ho a provar.", + "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.": "Enllaçeu el vostre compte {{appName}} a Figma per habilitar les vistes prèvies dels fitxers de disseny als quals teniu accés, directament dins dels documents.", + "Enabled on": "Habilitat a", + "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?": "Desconnectar evitarà que es previsualitzin els fitxers de disseny de Figma d'aquest compte en documents. N'esteu segur?", + "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "La integració de Figma està desactivada actualment. Establiu les variables d'entorn associades i reinicieu el servidor per a activar la integració.", + "Whoops, you need to accept the permissions in GitHub to connect {{appName}} to your workspace. Try again?": "Vaja, heu d'acceptar els permisos de GitHub per connectar {{appName}} al vostre espai de treball. Torneu a provar?", + "The owner of GitHub account has been requested to install the {{githubAppName}} GitHub app. Once approved, previews will be shown for respective links.": "S'ha sol·licitat al propietari del compte de GitHub que instal·li l'aplicació de GitHub {{githubAppName}}. Un cop aprovat, es mostraran vistes prèvies per als enllaços respectius.", + "Enable previews of GitHub issues and pull requests in documents by connecting a GitHub organization or specific repositories to {appName}.": "Habilita les vistes prèvies dels problemes de GitHub i extreu les sol·licituds als documents connectant una organització de GitHub o repositoris específics a {appName}.", + "Enabled by {{integrationCreatedBy}}": "Habilitat per {{integrationCreatedBy}}", + "Disconnecting will prevent previewing GitHub links from this organization in documents. Are you sure?": "Desconnectar evitarà que es previsualitzin els enllaços de GitHub d'aquesta organització en documents. N'esteu segur?", + "The GitHub integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "La integració de GitHub està desactivada. Establiu les variables d'entorn associades i reinicieu el servidor per a activar la integració.", + "Connect GitLab": "Connectar a GitLab", + "Enter the details for your GitLab instance.": "Introduïu els detalls de la instància GitLab.", + "GitLab URL": "URL del GitLab", + "URL must start with https": "L'URL ha de començar amb https", + "Client ID": "ID del client", + "OAuth application ID": "ID de l'aplicació OAuth", + "Client Secret": "Secret del client", + "OAuth application secret": "Secret de l'aplicació OAuth", + "Connecting": "Connectant", + "Choose which GitLab instance to connect to.": "Trieu a quina instància del GitLab s'ha de connectar.", + "GitLab Cloud": "Núvol de GitLab", + "Connect to your account on gitlab.com": "Connecteu-vos al vostre compte a gitlab.com", + "GitLab Cloud credentials are not configured": "Les credencials del GitLab Cloud no estan configurades", + "Self-managed": "Autogestionat", + "Connect to a custom GitLab installation": "Connecta a una instal·lació personalitzada del GitLab", + "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?": "Heu d'acceptar els permisos del GitLab per connectar {{appName}} al vostre espai de treball. Torneu a provar?", + "The GitLab account is already connected to this workspace.": "El compte del GitLab ja està connectat a aquest espai de treball.", + "Something went wrong while authenticating your request. Please try again.": "Alguna cosa ha anat malament mentre autenticava la teva sol·licitud. Torneu-ho a provar.", + "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.": "S'ha sol·licitat al propietari del compte de GitLab la instal·lació de l'aplicació. Un cop aprovada, es completarà la connexió.", + "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.": "Habilita les vistes prèvies dels problemes de GitLab i merge requests en documents connectant una organització de GitLab o repositoris específics a {appName}.", + "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?": "Desconnectar evitarà que es previsualitzin els enllaços del GitLab als documents. N'esteu segur?", "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.", - "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?", - "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.", - "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?", - "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", - "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.", - "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?": "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?", + "Add a Google Analytics 4 measurement ID to send document views and analytics from the workspace to your own Google Analytics account.": "Afegiu un ID de mesura de Google Analytics 4 per enviar visualitzacions i analítiques de documents des de l'espai de treball al vostre compte de Google Analytics.", + "Measurement ID": "ID de seguiment", + "Create a \"Web\" stream in your Google Analytics admin dashboard and copy the measurement ID from the generated code snippet to install.": "Crea un flux \"Web\" al tauler d'administració de Google Analytics i copia l'ID de mesura del fragment de codi generat per instal·lar-lo.", + "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "Vaja, heu d'acceptar els permisos de Linear per connectar {{appName}} al vostre espai de treball. Torneu a provar?", + "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Habilita les vistes prèvies dels problemes de Linear als documents connectant un espai de treball de Linear a {{appName}}.", + "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "Desconnectar evitarà que es previsualitzin els enllaços lineals d'aquest espai de treball en documents. N'esteu segur?", + "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "La integració de Linear està desactivada. Establiu les variables d'entorn associades i reinicieu el servidor per a activar la integració.", + "Configure a Matomo installation to send views and analytics from the workspace to your own Matomo instance.": "Configureu una instal·lació de Matomo per enviar vistes i anàlisis des de l'espai de treball a la vostra pròpia instància de Matomo.", + "Instance URL": "URL d'instància", + "The URL of your Matomo instance. If you are using Matomo Cloud it will end in matomo.cloud/": "L'URL de la vostra instància de Matomo. Si esteu utilitzant Matomo Cloud acabarà a matomo.cloud/", + "Site ID": "ID del lloc", + "An ID that uniquely identifies the website in your Matomo instance.": "Un identificador que identifica de manera única el lloc web en la vostra instància de Matomo.", + "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?": "Vaja, heu d'acceptar els permisos de Notion per connectar {{ appName }} al vostre espai de treball. Torneu a provar?", "Import pages from Notion": "Import pages from Notion", - "Passkey options": "Passkey options", - "Registered {{ timeAgo }}": "Registered {{ timeAgo }}", - "Passkey updated": "Passkey updated", - "Failed to update passkey. Please try again.": "Failed to update passkey. Please try again.", - "Give your passkey a memorable name to easily identify it.": "Give your passkey a memorable name to easily identify it.", - "Enter passkey name": "Enter passkey name", - "Failed to load passkeys": "Failed to load passkeys", - "Passkey added successfully": "Passkey added successfully", - "Failed to register passkey. Please try again.": "Failed to register passkey. Please try again.", - "Rename passkey": "Rename passkey", - "Delete passkey": "Delete passkey", - "Passkey deleted successfully": "Passkey deleted successfully", - "Failed to delete passkey. Please try again.": "Failed to delete passkey. Please try again.", - "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.": "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.", - "Registering": "Registering", - "Add Passkey": "Add Passkey", - "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.": "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.", - "Sign-in with Passkey is currently disabled for this team.": "Sign-in with Passkey is currently disabled for this team.", - "Enable for all users in Settings -> Authentication.": "Enable for all users in Settings -> Authentication.", - "Contact a workspace admin to enable it.": "Contact a workspace admin to enable it.", - "You don't have any passkeys yet.": "You don't have any passkeys yet.", - "New passkey added to your {{ appName }} account": "New passkey added to your {{ appName }} account", - "A new passkey was created for your account.": "A new passkey was created for your account.", - "New Passkey Created": "New Passkey Created", - "A new passkey has been added to your {{ appName }} account": "A new passkey has been added to your {{ appName }} account", - "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.", - "You can manage your passkeys at any time": "You can manage your passkeys at any time", - "If you have any concerns about your account security, please contact a workspace admin.": "If you have any concerns about your account security, please contact a workspace admin.", - "Manage Passkeys": "Manage Passkeys", - "Add to Slack": "Add to Slack", - "document published": "document published", - "document updated": "document updated", - "Posting to the <em>{{ channelName }}</em> channel on": "Posting to the <em>{{ channelName }}</em> 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 <em>{{ command }}</em> slash command to search for documents without leaving your chat.": "Get rich previews of {{ appName }} links shared in Slack and use the <em>{{ command }}</em> 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.", - "New webhook": "New webhook", - "Edit webhook": "Edit webhook", - "Delete webhook": "Delete webhook", - "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", + "Passkey options": "Opcions de la clau d'accés", + "Registered {{ timeAgo }}": "Registrat {{ timeAgo }}", + "Passkey updated": "Clau d'accés actualitzada", + "Failed to update passkey. Please try again.": "No s'ha pogut actualitzar la clau d'accés. Torneu-ho a provar.", + "Give your passkey a memorable name to easily identify it.": "Dona-li un nom memorable a la teva clau d'accés per identificar-la fàcilment.", + "Enter passkey name": "Introduïu el nom de la clau d'accés", + "Failed to load passkeys": "Error en carregar les claus d'accés", + "Passkey added successfully": "La clau d'accés s'ha afegit correctament", + "Failed to register passkey. Please try again.": "No s'ha pogut registrar la clau d'accés. Torneu-ho a provar.", + "Rename passkey": "Reanomena la clau d'accés", + "Delete passkey": "Elimina la clau d'accés", + "Passkey deleted successfully": "La clau d'accés s'ha eliminat correctament", + "Failed to delete passkey. Please try again.": "No s'ha pogut eliminar la clau d'accés. Torneu-ho a provar.", + "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.": "Segur que voleu eliminar aquesta clau d'accés? Ja no podreu utilitzar-la per iniciar sessió.", + "Registering": "S'està registrant", + "Add Passkey": "Afegir clau d'accés", + "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.": "Les claus d'accés permeten iniciar sessió de forma segura sense contrasenya utilitzant l'autenticació biomètrica del dispositiu (Face ID, Touch ID, Windows Hello) o clau de seguretat.", + "Sign-in with Passkey is currently disabled for this team.": "L'inici de sessió amb clau d'accés està desactivat per a aquest equip.", + "Enable for all users in Settings -> Authentication.": "Habilita per a tots els usuaris a Configuració -> Autenticació.", + "Contact a workspace admin to enable it.": "Contacta amb un administrador d'un espai de treball per habilitar-lo.", + "You don't have any passkeys yet.": "Encara no teniu cap clau d'accés.", + "New passkey added to your {{ appName }} account": "S'ha afegit una clau d'accés nova al vostre compte de {{ appName }}", + "A new passkey was created for your account.": "S'ha creat una nova clau d'accés per al vostre compte.", + "New Passkey Created": "S'ha creat una clau nova clau d'accés", + "A new passkey has been added to your {{ appName }} account": "S'ha afegit una clau d'accés nova al vostre compte de {{ appName }}", + "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "Les claus de pas proporcionen una manera segura i sense contrasenya d'iniciar sessió al vostre compte. Si no heu creat aquesta clau d'accés, reviseu immediatament la configuració de seguretat del vostre compte.", + "You can manage your passkeys at any time": "Pots gestionar les teves claus en qualsevol moment", + "If you have any concerns about your account security, please contact a workspace admin.": "Si teniu qualsevol preocupació sobre la seguretat del vostre compte, poseu-vos en contacte amb un administrador de l'espai de treball.", + "Manage Passkeys": "Gestionar les claus d'accés", + "Add to Slack": "Afegeix a Slack", + "document published": "document publicat", + "document updated": "document actualitzat", + "Posting to the <em>{{ channelName }}</em> channel on": "S'està publicant al canal <em>{{ channelName }}</em> a", + "These events should be posted to Slack": "Aquests esdeveniments s'han de publicar a Slack", + "This will prevent any future updates from being posted to this Slack channel. Are you sure?": "Això evitarà que es publiquin futures actualitzacions a aquest canal de Slack. N'esteu segur?", + "Whoops, you need to accept the permissions in Slack to connect {{appName}} to your workspace. Try again?": "Vaja, heu d'acceptar els permisos a Slack per connectar {{appName}} al vostre espai de treball. Torneu a provar?", + "Personal account": "Compte personal", + "Link your {{appName}} account to Slack to enable searching and previewing the documents you have access to, directly within chat.": "Enllaçeu el vostre compte {{appName}} a Slack per a habilitar la cerca i la vista prèvia dels documents als quals teniu accés, directament dins del xat.", + "Disconnecting your personal account will prevent searching for documents from Slack. Are you sure?": "Desconnectar el vostre compte personal evitarà la cerca de documents de Slack. N'esteu segur?", + "Slash command": "Ordre de barra inclinada", + "Get rich previews of {{ appName }} links shared in Slack and use the <em>{{ command }}</em> slash command to search for documents without leaving your chat.": "Obteniu previsualitzacions enriquides dels enllaços de {{ appName }} compartits a Slack i utilitzeu l'ordre de barra inclinada <em>{{ command }}</em> per cercar documents sense sortir del xat.", + "This will remove the Outline slash command from your Slack workspace. Are you sure?": "Això eliminarà l'ordre de barra inclinada de l'Outline del vostre espai de treball Slack. N'esteu segur?", + "Connect {{appName}} collections to Slack channels. Messages will be automatically posted to Slack when documents are published or updated.": "Connecteu les col·leccions de {{appName}} als canals de Slack. Els missatges es publicaran automàticament a Slack quan es publiquin o actualitzin els documents.", + "Comment by {{ author }} on \"{{ title }}\"": "Comentari de {{ author }} a «{{ title }}»", + "How to use {{ command }}": "Com utilitzar {{ command }}", + "To search your workspace use {{ command }}. \nType {{ command2 }} help to display this help text.": "Per a cercar al vostre espai de treball utilitzeu {{ command }}. \nEscriviu {{ command2 }} help per mostrar aquest text d'ajuda.", + "Post to Channel": "Publica al canal", + "This is what we found for \"{{ term }}\"": "Això és el que hem trobat per a «{{ term }}»", + "No results for \"{{ term }}\"": "No hi ha resultats per a «{{ term }}»", + "It looks like you haven’t linked your {{ appName }} account to Slack yet": "Sembla que encara no heu enllaçat el vostre compte {{ appName }} a Slack", + "Link your account": "Enllaça el teu compte", + "Link your account in {{ appName }} settings to search from Slack": "Enllaçeu el vostre compte a {{ appName }} paràmetres per cercar des de Slack", + "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.": "Configura una instal·lació d'Umami per enviar vistes i analítiques des de l'espai de treball a la vostra pròpia instància d'Umami.", + "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}": "L'URL de la vostra instància Umami. Si utilitzeu Umami Cloud, començarà amb {{ url }}", + "Script name": "Nom de l'script", + "The name of the script file that Umami uses to track analytics.": "El nom del fitxer de script que Umami utilitza per fer el seguiment d'analítiques.", + "An ID that uniquely identifies the website in your Umami instance.": "Un identificador que identifica de manera única el lloc web en la vostra instància Umami.", + "New webhook": "Nou webhook", + "Edit webhook": "Edita el webhook", + "Delete webhook": "Elimina el webhook", + "Are you sure you want to delete the {{ name }} webhook?": "Esteu segur que voleu eliminar el webhook {{ name }}?", + "Webhook updated": "Webhook actualitzat", + "Update": "Actualitza", + "Updating": "Actualitzant", + "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Proporcioneu un nom descriptiu per a aquest webhook i l'URL a la qual hauríem d'enviar una sol·licitud POST quan es creïn esdeveniments coincidents.", + "A memorable identifer": "Un identificador memorable", "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", + "Signing secret": "Clau de la signatura", + "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Subscriu-te a tots els esdeveniments, grups o esdeveniments individuals. Recomanem només subscriure's a la quantitat mínima d'esdeveniments que la teva aplicació necessita per funcionar.", + "All events": "Tots els esdeveniments", + "All {{ groupName }} events": "Tots els esdeveniments de {{ groupName }}", "Webhook": "Webhook", - "Webhook created": "Webhook created", - "Could not load webhooks": "Could not load webhooks", + "Webhook created": "S'ha creat el Webhook", + "Could not load webhooks": "No s'han pogut carregar els webhooks", "Webhooks": "Webhooks", - "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.", - "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.", - "Delayed notification": "Delayed notification", - "“{{ collectionName }}” created": "“{{ collectionName }}” created", - "{{ userName }} created a collection": "{{ userName }} created a collection", - "{{ userName }} created the collection “{{ collectionName }}”": "{{ userName }} created the collection “{{ collectionName }}”", - "Open Collection": "Open Collection", - "View Collection": "View Collection", - "{{ userName }} created the collection “{{ collectionName }}”.": "{{ userName }} created the collection “{{ collectionName }}”.", - "Unsubscribe from these emails": "Unsubscribe from these emails", - "{{ actorName }} invited you to the “{{ collectionName }}” collection": "{{ actorName }} invited you to the “{{ collectionName }}” collection", - "{{ actorName }} invited you to a collection": "{{ actorName }} invited you to a collection", - "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "{{ actorName }} invited you to the “{{ collectionName }}” collection.", - "view and edit": "view and edit", - "manage": "manage", - "view": "view", - "{{ actorName }} invited you to {{ permission }} documents in the": "{{ actorName }} invited you to {{ permission }} documents in the", + "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.": "Els webhooks es poden utilitzar per notificar la vostra aplicació quan succeeixin esdeveniments a {{appName}}. Els esdeveniments s'envien com una sol·licitud HTTPS amb una càrrega útil JSON en temps real.", + "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier és una plataforma que permet que {{appName}} s'integri fàcilment amb milers d'altres eines de negoci. Automatitza els fluxos de treball, sincronitza les dades i molt més.", + "Delayed notification": "Notificació retardada", + "“{{ collectionName }}” created": "S'ha creat «{{ collectionName }}»", + "{{ userName }} created a collection": "{{ userName }} ha creat una col·lecció", + "{{ userName }} created the collection “{{ collectionName }}”": "{{ userName }} ha creat la col·lecció «{{ collectionName }}»", + "Open Collection": "Obre una col·lecció", + "View Collection": "Mostra la col·lecció", + "{{ userName }} created the collection “{{ collectionName }}”.": "{{ userName }} ha creat la col·lecció «{{ collectionName }}».", + "Unsubscribe from these emails": "Dona't de baixa d'aquests correus", + "{{ actorName }} invited you to the “{{ collectionName }}” collection": "{{ actorName }} us ha convidat a la col·lecció «{{ collectionName }}»", + "{{ actorName }} invited you to a collection": "{{ actorName }} us ha convidat a una col·lecció", + "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "{{ actorName }} us ha convidat a la col·lecció «{{ collectionName }}».", + "view and edit": "veure i editar", + "manage": "gestionar", + "view": "vista", + "{{ actorName }} invited you to {{ permission }} documents in the": "{{ actorName }} us ha convidat a {{ permission }} documents a", "Re": "Re", - "New comment on “{{ documentTitle }}” - {{ trimmedText }}": "New comment on “{{ documentTitle }}” - {{ trimmedText }}", - "{{ actorName }} replied in a thread": "{{ actorName }} replied in a thread", - "{{ actorName }} commented on the document": "{{ actorName }} commented on the document", - "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "{{ actorName }} replied to a thread in “{{ documentTitle }}”", - "{{ actorName }} commented on “{{ documentTitle }}”": "{{ actorName }} commented on “{{ documentTitle }}”", - "in the {{ collectionName }} collection": "in the {{ collectionName }} collection", - "Open Thread": "Open Thread", - "View Thread": "View Thread", - "{{ actorName }} replied to a thread in": "{{ actorName }} replied to a thread in", - "{{ actorName }} commented on": "{{ actorName }} commented on", - "Mentioned you in “{{ documentTitle }}”": "Mentioned you in “{{ documentTitle }}”", - "{{ actorName }} mentioned you in a thread": "{{ actorName }} mentioned you in a thread", - "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”": "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”", - "{{ actorName }} mentioned you in a comment on": "{{ actorName }} mentioned you in a comment on", - "Resolved a comment thread in “{{ documentTitle }}”": "Resolved a comment thread in “{{ documentTitle }}”", - "{{ actorName }} resolved a comment thread": "{{ actorName }} resolved a comment thread", - "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”", - "{{ actorName }} resolved a comment on": "{{ actorName }} resolved a comment on", - "Your workspace deletion request": "Your workspace deletion request", - "Your requested workspace deletion code": "Your requested workspace deletion code", - "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.", - "Your email update request": "Your email update request", - "Here’s your email change confirmation.": "Here’s your email change confirmation.", - "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.", - "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.", - "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to", - "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "You requested to update your {{ appName }} account email. Please click below to confirm the change to", - "Confirm Change": "Confirm Change", - "Your account deletion request": "Your account deletion request", - "Your requested account deletion code": "Your requested account deletion code", - "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.", - "You requested to permanently delete your {{ appName }} user account in the": "You requested to permanently delete your {{ appName }} user account in the", - "workspace. Please enter the code below to confirm your account deletion.": "workspace. Please enter the code below to confirm your account deletion.", - "{{ actorName }} mentioned you": "{{ actorName }} mentioned you", - "You were mentioned": "You were mentioned", - "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.", - "Open Document": "Open Document", - "View Document": "View Document", - "{{ actorName }} mentioned you in the document": "{{ actorName }} mentioned you in the document", - "updated": "updated", - "“{{ documentTitle }}” {{ eventName }}": "“{{ documentTitle }}” {{ eventName }}", - "{{ actorName }} {{ eventName }} a document": "{{ actorName }} {{ eventName }} a document", - "\"{{ documentTitle }}\" {{ eventName }}": "\"{{ documentTitle }}\" {{ eventName }}", - "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"", - "{{ actorName }} {{ eventName }} the document": "{{ actorName }} {{ eventName }} the document", - "Unsubscribe from this doc": "Unsubscribe from this doc", - "{{ actorName }} shared “{{ documentTitle }}” with you": "{{ actorName }} shared “{{ documentTitle }}” with you", - "{{ actorName }} shared a document": "{{ actorName }} shared a document", - "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} shared “{{ documentTitle }}” with you.", - "edit": "edit", - "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} invited you to {{ permission }} the", - "Your requested export": "Your requested export", - "Sorry, your requested data export has failed": "Sorry, your requested data export has failed", - "Your Data Export": "Your Data Export", - "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.", - "Sorry, your requested data export has failed, please visit the": "Sorry, your requested data export has failed, please visit the", - "admin section": "admin section", - "to try again – if the problem persists please contact support.": "to try again – if the problem persists please contact support.", - "Go to export": "Go to export", - "Here's your request data export from {{ appName }}": "Here's your request data export from {{ appName }}", - "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.", - "Download export": "Download export", - "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.", - "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "The {{ groupName }} group was mentioned in “{{ documentTitle }}”", - "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "{{ actorName }} mentioned the “{{ groupName }}” group in a thread", - "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”", - "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on", - "{{ actorName }} mentioned the “{{ groupName }}” group": "{{ actorName }} mentioned the “{{ groupName }}” group", - "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", - "Your group was mentioned": "Your group was mentioned", - "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document": "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", - "Great news, {{ invitedName }}, accepted your invitation": "Great news, {{ invitedName }}, accepted your invitation", - "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", - "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", - "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", - "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", - "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", - "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", - "Join now": "Join now", - "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", - "We only send a reminder once.": "We only send a reminder once.", - "If you haven't signed up yet, you can do so here": "If you haven't signed up yet, you can do so here", - "\"{{ documentTitle }}\" updated": "\"{{ documentTitle }}\" updated", - "\"{{ documentTitle }}\" has been updated.": "\"{{ documentTitle }}\" has been updated.", - "A document you subscribed to has been updated.": "A document you subscribed to has been updated.", - "Click below to view the latest version.": "Click below to view the latest version.", - "Confirm your subscription": "Confirm your subscription", - "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.": "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.", - "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.", - "Confirm Subscription": "Confirm Subscription", - "This link will expire in 24 hours.": "This link will expire in 24 hours.", - "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.", - "Please confirm your subscription by clicking the button below.": "Please confirm your subscription by clicking the button below.", - "Magic Sign-in Link": "Magic Sign-in Link", - "Sign in verification code": "Sign in verification code", - "Here’s your link to signin to {{ appName }}.": "Here’s your link to signin to {{ appName }}.", - "Use the link below to sign in": "Use the link below to sign in", - "If the link expired you can request a new one from your team's signin page at": "If the link expired you can request a new one from your team's signin page at", - "Enter this verification code": "Enter this verification code", - "If the code expired you can request a new one from your team's signin page at": "If the code expired you can request a new one from your team's signin page at", - "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", - "If the link expired you can request a new one from your team's sign-in page at": "If the link expired you can request a new one from your team's sign-in page at", - "Sign-in Code": "Sign-in Code", - "Enter this code on your team's sign-in page to continue.": "Enter this code on your team's sign-in page to continue.", - "If the code expired you can request a new one from your team's sign-in page at": "If the code expired you can request a new one from your team's sign-in page at", - "Webhook disabled": "Webhook disabled", - "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", - "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.": "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.", - "Webhook settings": "Webhook settings", - "Welcome to {{ appName }}!": "Welcome to {{ appName }}!", - "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.", - "Or, learn more about everything {{ appName }} can do in the guide": "Or, learn more about everything {{ appName }} can do in the guide", - "Or, learn more about everything {{ appName }} can do in": "Or, learn more about everything {{ appName }} can do in", - "the guide": "the guide", - "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 }}", - "Sorry, an error occurred uploading the file": "Sorry, an error occurred uploading the file", - "Sorry, that type of link is not supported": "Sorry, that type of link is not supported", - "Caption": "Caption", - "Empty diagram": "Empty diagram", - "Double click to edit": "Double click to edit", - "Open": "Open", - "Loading": "Loading", - "Error loading data": "Error loading data", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", - "Hide completed": "Hide completed", - "Write a caption": "Write a caption", - "Add title": "Add title", - "Add content": "Add content" + "New comment on “{{ documentTitle }}” - {{ trimmedText }}": "Nou comentari a «{{ documentTitle }}» - {{ trimmedText }}", + "{{ actorName }} replied in a thread": "{{ actorName }} ha respost en un fil", + "{{ actorName }} commented on the document": "{{ actorName }} ha comentat el document", + "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "{{ actorName }} ha respost a un fil de «{{ documentTitle }}»", + "{{ actorName }} commented on “{{ documentTitle }}”": "{{ actorName }} ha comentat a «{{ documentTitle }}»", + "in the {{ collectionName }} collection": "a la col·lecció {{ collectionName }}", + "Open Thread": "Obre un fil", + "View Thread": "Visualitza el fil", + "{{ actorName }} replied to a thread in": "{{ actorName }} ha respost a un fil a", + "{{ actorName }} commented on": "{{ actorName }} ha comentat a", + "Mentioned you in “{{ documentTitle }}”": "Us ha esmentat a “{{ documentTitle }}”", + "{{ actorName }} mentioned you in a thread": "{{ actorName }} us ha mencionat en un fil", + "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”": "{{ actorName }} us ha esmentat en un comentari a «{{ documentTitle }}»", + "{{ actorName }} mentioned you in a comment on": "{{ actorName }} us ha mencionat en un comentari a", + "Resolved a comment thread in “{{ documentTitle }}”": "Va resoldre un fil de comentaris a «{{ documentTitle }}»", + "{{ actorName }} resolved a comment thread": "{{ actorName }} ha resolt un fil de comentari", + "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "{{ actorName }} ha resolt un fil de comentari a «{{ documentTitle }}»", + "{{ actorName }} resolved a comment on": "{{ actorName }} ha resolt un comentari a", + "Your workspace deletion request": "Sol·licitud d'eliminació de l'espai de treball", + "Your requested workspace deletion code": "El codi d'eliminació de l'espai de treball sol·licitat", + "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "Heu sol·licitat eliminar permanentment l'espai de treball {{ appName }}. Introduïu el codi següent per confirmar la supressió de l'espai de treball.", + "Your email update request": "La vostra sol·licitud d'actualització de correu", + "Here’s your email change confirmation.": "Aquesta és la confirmació del canvi de correu electrònic.", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "Heu sol·licitat actualitzar el correu electrònic del vostre compte de {{ appName }}. Seguiu l'enllaç següent per confirmar el canvi de {{ previous }} a {{ to }}.", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "Heu sol·licitat actualitzar el correu electrònic del vostre compte de {{ appName }}. Seguiu l'enllaç següent per confirmar el canvi a {{ to }}.", + "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "Heu sol·licitat actualitzar el correu electrònic del vostre compte de {{ appName }}. Seguiu l'enllaç següent per confirmar el canvi de {{ previous }} a", + "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "Heu sol·licitat actualitzar el correu electrònic del vostre compte de {{ appName }}. Seguiu l'enllaç següent per confirmar el canvi a", + "Confirm Change": "Confirma el canvi", + "Your account deletion request": "Sol·licitud d'eliminació del vostre compte", + "Your requested account deletion code": "El codi d'eliminació del compte sol·licitat", + "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "Heu sol·licitat eliminar permanentment el vostre compte d'usuari {{ appName }} a l'espai de treball {{ teamName }}. Si us plau, introdueixi el codi a continuació per confirmar la supressió del seu compte.", + "You requested to permanently delete your {{ appName }} user account in the": "Heu sol·licitat eliminar permanentment el vostre compte d'usuari {{ appName }} a", + "workspace. Please enter the code below to confirm your account deletion.": "espai de treball. Si us plau, introdueixi el codi a continuació per confirmar la supressió del seu compte.", + "{{ actorName }} mentioned you": "{{ actorName }} us ha mencionat", + "You were mentioned": "Se us ha esmentat", + "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "{{ actorName }} us ha esmentat en el document «{{ documentTitle }}».", + "Open Document": "Obrir document", + "View Document": "Mostra el document", + "{{ actorName }} mentioned you in the document": "{{ actorName }} us ha esmentat en el document", + "updated": "actualitzat", + "“{{ documentTitle }}” {{ eventName }}": "«{{ documentTitle }}» {{ eventName }}", + "{{ actorName }} {{ eventName }} a document": "{{ actorName }} {{ eventName }} un document", + "\"{{ documentTitle }}\" {{ eventName }}": "«{{ documentTitle }}» {{ eventName }}", + "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }} {{ eventName }} el document \"{{ documentTitle }}\"", + "{{ actorName }} {{ eventName }} the document": "{{ actorName }} {{ eventName }} el document", + "Unsubscribe from this doc": "Cancel·la la subscripció d'aquest document", + "{{ actorName }} shared “{{ documentTitle }}” with you": "{{ actorName }} ha compartit «{{ documentTitle }}» amb vós", + "{{ actorName }} shared a document": "{{ actorName }} ha compartit un document", + "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} ha compartit «{{ documentTitle }}» amb vós.", + "edit": "editar", + "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} us ha convidat a {{ permission }} el", + "Your requested export": "La vostra exportació sol·licitada", + "Sorry, your requested data export has failed": "L'exportació de dades sol·licitada ha fallat", + "Your Data Export": "Les vostres dades exportades", + "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "L'exportació de dades sol·licitada ha fallat, visiteu la secció d'administració per tornar-ho a provar – si el problema persisteix, poseu-vos en contacte amb suport.", + "Sorry, your requested data export has failed, please visit the": "L'exportació de dades sol·licitada ha fallat, visiteu el", + "admin section": "secció d'administració", + "to try again – if the problem persists please contact support.": "per tornar-ho a provar – si el problema persisteix, poseu-vos en contacte amb el suport.", + "Go to export": "Ves a exportar", + "Here's your request data export from {{ appName }}": "Aquesta és l'exportació de dades de la vostra sol·licitud des de {{ appName }}", + "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "L'exportació de dades sol·licitada és completa. Pots descarregar-la des de l'enllaç de sota en un navegador que estigui connectat al teu compte.", + "Download export": "Descarrega l'exportació", + "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "L'exportació de dades sol·licitada és completa. Pots descarregar-la des de l'enllaç de sota en un navegador que estigui connectat al seu compte.", + "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "El grup {{ groupName }} s'ha esmentat a «{{ documentTitle }}»", + "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "{{ actorName }} ha esmentat el grup «{{ groupName }}» en un fil", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "{{ actorName }} ha esmentat el grup «{{ groupName }}» en un comentari a «{{ documentTitle }}»", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "{{ actorName }} ha esmentat el grup «{{ groupName }}» en un comentari a", + "{{ actorName }} mentioned the “{{ groupName }}” group": "{{ actorName }} ha esmentat el grup «{{ groupName }}»", + "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} ha esmentat el grup «{{ groupName }}» en el document «{{ documentTitle }}».", + "Your group was mentioned": "S'ha esmentat el vostre grup", + "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document": "{{ actorName }} ha esmentat el grup \"{{ groupName }}\" al document", + "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} s'ha unit a l'equip de {{ appName }}", + "Great news, {{ invitedName }}, accepted your invitation": "Gran notícia, {{ invitedName }}, ha acceptat la vostra invitació", + "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Bones notícies, {{ invitedName }} acaba d'acceptar la vostra invitació i ha creat un compte. Ja podeu començar a col·laborar en documents.", + "Open {{ appName }}": "Obre {{ appName }}", + "{{ invitedName }} has joined your team": "{{ invitedName }} s'ha unit al vostre equip", + "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} us ha convidat a unir-vos a l'espai de treball {{ teamName }}", + "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} és un lloc perquè el vostre equip construeixi i comparteixi coneixements.", + "Join {{ teamName }} on {{ appName }}": "Uneix-te a {{ teamName }} a {{ appName }}", + "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "us ha convidat a unir-vos a {{ appName }}, un lloc perquè el vostre equip construeixi i comparteixi coneixements.", + "Join now": "Uneix-te ara", + "Reminder": "Recordatori", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Això és només un recordatori ràpid que {{ actorName }} {{ actorEmail }} us ha convidat a unir-vos a l'equip {{ teamName }} a {{ appName }}, un lloc perquè el vostre equip construeixi i comparteixi coneixements.", + "We only send a reminder once.": "Només enviem un recordatori una vegada.", + "If you haven't signed up yet, you can do so here": "Si encara no us heu registrat, podeu fer-ho aquí", + "\"{{ documentTitle }}\" updated": "S'ha actualitzat «{{ documentTitle }}»", + "\"{{ documentTitle }}\" has been updated.": "S'ha actualitzat «{{ documentTitle }}».", + "A document you subscribed to has been updated.": "S'ha actualitzat un document al qual us heu subscrit.", + "Click below to view the latest version.": "Feu clic a continuació per veure la darrera versió.", + "Confirm your subscription": "Confirmeu la vostra subscripció", + "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.": "Confirmeu la vostra subscripció per rebre actualitzacions quan canviï «{{ documentTitle }}».", + "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.": "Heu sol·licitat rebre notificacions per correu electrònic quan \"{{ documentTitle }}\" s'actualitza a {{ appName }}. Confirmeu la vostra subscripció seguint el següent enllaç.", + "Confirm Subscription": "Confirma la subscripció", + "This link will expire in 24 hours.": "Aquest enllaç caducarà en 24 hores.", + "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.": "Heu sol·licitat rebre notificacions per correu electrònic quan \"{{ documentTitle }}\" s'actualitza a {{ appName }}.", + "Please confirm your subscription by clicking the button below.": "Confirmeu la vostra subscripció fent clic al botó de sota.", + "Magic Sign-in Link": "Enllaç d'inici de sessió màgic", + "Sign in verification code": "Codi de verificació d'inici de sessió", + "Here’s your link to signin to {{ appName }}.": "Aquí teniu l'enllaç per iniciar la sessió a {{ appName }}.", + "Use the link below to sign in": "Utilitzeu l'enllaç següent per iniciar la sessió", + "If the link expired you can request a new one from your team's signin page at": "Si l'enllaç ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre equip", + "Enter this verification code": "Introduïu aquest codi de verificació", + "If the code expired you can request a new one from your team's signin page at": "Si el codi ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre equip", + "Click the button below to sign in to {{ appName }}.": "Feu clic al botó de sota per iniciar la sessió a {{ appName }}.", + "If the link expired you can request a new one from your team's sign-in page at": "Si l'enllaç ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre equip a", + "Sign-in Code": "Codi d'inici de sessió", + "Enter this code on your team's sign-in page to continue.": "Introduïu aquest codi a la pàgina d'inici de sessió del vostre equip per continuar.", + "If the code expired you can request a new one from your team's sign-in page at": "Si el codi ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre equip a", + "Webhook disabled": "Webhook desactivat", + "Your webhook ({{ webhookName }}) has been disabled": "El vostre webhook ({{ webhookName }}) ha estat desactivat", + "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.": "El vostre webhook ({{ webhookName }}) s'ha desactivat automàticament a causa d'una alta taxa de fallada en els intents de lliurament recents. Podeu tornar a activar editant el webhook.", + "Webhook settings": "Configuració del webhook", + "Welcome to {{ appName }}!": "Us donem la benvinguda a {{ appName }}!", + "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "Per començar, aneu a la pantalla d'inici i intenteu crear una col·lecció per ajudar a documentar els vostres processos, crear llibres de joc o planificar el treball del vostre equip.", + "Or, learn more about everything {{ appName }} can do in the guide": "O, més informació sobre tot el que {{ appName }} pot fer a la guia", + "Or, learn more about everything {{ appName }} can do in": "O, més informació sobre tot el que {{ appName }} pot fer a", + "the guide": "la guia", + "Never logged in": "Mai ha iniciat la sessió", + "Online now": "En línia ara", + "Online {{ timeAgo }}": "En línia fa {{ timeAgo }}", + "Viewed just now": "S'acaba de veure", + "You updated {{ timeAgo }}": "Heu actualitzat fa {{ timeAgo }}", + "{{ user }} updated {{ timeAgo }}": "{{ user }} va actualitzar fa {{ timeAgo }}", + "You created {{ timeAgo }}": "Heu creat fa {{ timeAgo }}", + "{{ user }} created {{ timeAgo }}": "{{ user }} va ser creat fa {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "S'ha produït un error en pujar el fitxer", + "Sorry, that type of link is not supported": "Aquest tipus d'enllaç no està suportat", + "Caption": "Llegenda", + "Empty diagram": "Diagrama buit", + "Double click to edit": "Feu doble clic per editar", + "Open": "Obre", + "Loading": "S'està carregant", + "Error loading data": "Error en carregar les dades", + "Show {{ count }} completed": "Mostra {{ count }} completat", + "Show {{ count }} completed_plural": "Mostra {{ count }} completats", + "Hide completed": "Amaga els completats", + "Write a caption": "Escriu una llegenda", + "Add title": "Afegeix un títol", + "Add content": "Afegeix contingut" } diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 72a26cce61..cbaf167523 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -1,11 +1,11 @@ { "New API key": "Ny API-nøgle", "Copy": "Kopiér", - "API key copied": "API key copied", + "API key copied": "API nøgle kopieret", "Delete": "Slet", - "Revoke": "Revoke", - "Revoke API key": "Revoke API key", - "Revoke token": "Revoke token", + "Revoke": "Tilbagekald", + "Revoke API key": "Tilbagekald API nøgle", + "Revoke token": "Tilbagekald token", "Open collection": "Åben samling", "New collection": "Ny samling", "Create a collection": "Opret en samling", @@ -16,7 +16,7 @@ "Share this collection": "Del denne samling", "Import document": "Importer dokument", "Uploading": "Uploader", - "Sort in sidebar": "Sort in sidebar", + "Sort in sidebar": "Sorter i sidebaren", "A-Z sort": "A-Z sortering", "Z-A sort": "Z-A sortering", "Manual sort": "Manuel sortering", @@ -56,9 +56,9 @@ "Development": "Udvikling", "Open document": "Åben dokument", "New draft": "Ny kladde", - "Nested document": "Nested document", - "Before": "Before", - "After": "After", + "Nested document": "Indlejret dokument", + "Before": "Før", + "After": "Efter", "Publish": "Udgive", "Published {{ documentName }}": "Publicerede {{ documentName }}", "Publish document": "Udgiv dokument", @@ -68,9 +68,9 @@ "Share this document": "Del dette dokument", "Download": "Hent", "Download document": "Hent dokument", - "Download as Markdown": "Download as Markdown", - "Download as HTML": "Download as HTML", - "Download as PDF": "Download as PDF", + "Download as Markdown": "Download som Markdown", + "Download as HTML": "Download som HTML", + "Download as PDF": "Download som PDF", "Copy as Markdown": "Kopiér som Markdown", "Markdown copied to clipboard": "Markdown kopieret til udklipsholder", "Copy as text": "Kopiér som tekst", @@ -90,9 +90,9 @@ "Search in document": "Søg i dokumentet", "Print": "Udskriv", "Print document": "Udskriv dokument", - "Open in desktop app": "Open in desktop app", - "Present": "Present", - "Present document": "Present document", + "Open in desktop app": "Åben i desktop app", + "Present": "Til stede", + "Present document": "Nuværende dokument", "Templatize": "Konverter til skabelon", "Create template": "Opret skabelon", "Open random document": "Åbn tilfældigt dokument", @@ -119,7 +119,7 @@ "New emoji": "Ny emoji", "Upload emoji": "Upload emoji", "Disconnect": "Afbryd forbindelse", - "Disconnect analytics": "Disconnect analytics", + "Disconnect analytics": "Afbryd analytics", "Home": "Hjem", "Drafts": "Udkast", "Search": "Søg", @@ -141,8 +141,8 @@ "Log out": "Log ud", "Mark notifications as read": "Markér notifikationer som læst", "Archive all notifications": "Arkiver alle notifikationer", - "Mark as read": "Mark as read", - "Mark as unread": "Mark as unread", + "Mark as read": "Markér som læst", + "Mark as unread": "Markér som ulæst", "New App": "Ny App", "New Application": "Ny Applikation", "This version of the document was deleted": "Denne version af dokumentet er blevet slettet", @@ -154,7 +154,7 @@ "Download revision": "Download revision", "Dark": "Mørk", "Light": "Lys", - "Toggle theme": "Toggle theme", + "Toggle theme": "Skift tema", "System": "System", "Appearance": "Udseende", "Change theme": "Skift tema", @@ -169,16 +169,16 @@ "New workspace": "Nyt arbejdsområde", "Create a workspace": "Opret et arbejdsområde", "Login to workspace": "Log ind på arbejdsområdet", - "template": "template", - "Template deleted": "Template deleted", + "template": "skabelon", + "Template deleted": "Skabelon slettet", "Deleting": "Sletter", - "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", + "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Er du sikker på det? Sletning af <em>{{ templateName }}</em> skabelonen er permanent.", "Move to workspace": "Flyt til arbejdsområde", - "Template moved": "Template moved", - "Couldn't move the template, try again?": "Couldn't move the template, try again?", + "Template moved": "Skabelon flyttet", + "Couldn't move the template, try again?": "Kunne ikke flytte skabelonen, prøv igen?", "Move to collection": "Flyt til samling", - "Move template": "Move template", - "Print template": "Print template", + "Move template": "Flyt skabelon", + "Print template": "Print skabelon", "Invite people": "Invitér personer", "Invite to workspace": "Inviter til arbejdsområde", "Promote to {{ role }}": "Fremme til {{ role }}", @@ -189,7 +189,7 @@ "Collections": "Samlinger", "Debug": "Fejlsøgning", "Document": "Dokument", - "Search results": "Search results", + "Search results": "Søgeresultater", "Documents": "Dokumenter", "Template": "Skabelon", "Recently viewed": "Set for nyligt", @@ -207,9 +207,9 @@ "You": "Dig", "Avatar of {{ name }}": "Profilbillede af {{ name }}", "Viewers": "Seere", - "Managers": "Managers", - "Members": "Members", - "Manage templates": "Manage templates", + "Managers": "Ledere", + "Members": "Medlemmer", + "Manage templates": "Håndtér skabeloner", "Choose who can create and edit templates in this collection.": "Choose who can create and edit templates in this collection.", "Public document sharing": "Public document sharing", "Allow documents within this collection to be shared publicly on the internet.": "Tillad at dokumenter i denne samling kan deles offentligt på internettet.", @@ -836,18 +836,18 @@ "{{count}} people": "{{count}} person", "{{count}} people_plural": "{{count}} people", "Source": "Source", - "Created": "Created", - "Imported from {{ source }}": "Imported from {{ source }}", - "Stats": "Stats", + "Created": "Oprettet", + "Imported from {{ source }}": "Importeret fra {{ source }}", + "Stats": "Statistik", "{{ number }} minute read": "{{ number }} minute read", "{{ number }} words": "{{ number }} word", "{{ number }} words_plural": "{{ number }} words", "{{ number }} characters": "{{ number }} character", "{{ number }} characters_plural": "{{ number }} characters", "{{ number }} emoji": "{{ number }} emoji", - "No text selected": "No text selected", - "{{ number }} words selected": "{{ number }} word selected", - "{{ number }} words selected_plural": "{{ number }} words selected", + "No text selected": "Ingen tekst valgt", + "{{ number }} words selected": "{{ number }} ord valgt", + "{{ number }} words selected_plural": "{{ number }} ord valgt", "{{ number }} characters selected": "{{ number }} character selected", "{{ number }} characters selected_plural": "{{ number }} characters selected", "Contributors": "Contributors", @@ -858,18 +858,18 @@ "{{ count }} days": "{{ count }} day", "{{ count }} days_plural": "{{ count }} days", "This document will be permanently deleted in <2></2> unless restored.": "This document will be permanently deleted in <2></2> unless restored.", - "Deleted by {{userName}}": "Deleted by {{userName}}", + "Deleted by {{userName}}": "Slettet af {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", "Previous slide": "Previous slide", - "Next slide": "Next slide", - "Toggle fullscreen": "Toggle fullscreen", - "Create your presentation": "Create your presentation", + "Next slide": "Næste dias", + "Toggle fullscreen": "Fuldskærm til/fra", + "Create your presentation": "Opret din præsentation", "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", - "Learn more": "Learn more", + "Learn more": "Lær mere", "Backlinks": "Backlinks", "Clear search highlight": "Clear search highlight", - "Warning": "Warning", - "This document is large which may affect performance": "This document is large which may affect performance", + "Warning": "Advarsel", + "This document is large which may affect performance": "Dette dokument er stort, hvilket kan påvirke ydeevnen", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>._plural": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested documents</em>.", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index 899a5f2453..a9f9a5d1dc 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -92,7 +92,7 @@ "Print document": "Imprimir documento", "Open in desktop app": "Abrir en la aplicación de escritorio", "Present": "Regalo", - "Present document": "Present document", + "Present document": "Presentar documento", "Templatize": "Convertir en plantilla", "Create template": "Crear plantilla", "Open random document": "Abrir documento aleatorio", @@ -169,7 +169,7 @@ "New workspace": "Nuevo espacio de trabajo", "Create a workspace": "Crear un espacio de trabajo", "Login to workspace": "Iniciar sesión al espacio de trabajo", - "template": "template", + "template": "plantilla", "Template deleted": "Plantilla eliminada", "Deleting": "Eliminando", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "¿Estás seguro de eso? Eliminar la plantilla <em>{{ templateName }}</em> es permanente.", @@ -342,7 +342,7 @@ "{{ count }} members": "{{ count }} miembro", "{{ count }} members_plural": "{{ count }} miembros", "{{authorName}} created <3></3>": "{{authorName}} ha creado <3></3>", - "Lead": "Lead", + "Lead": "Lider", "Target date": "Fecha objetivo", "Labels": "Etiquetas", "{{authorName}} opened <3></3>": "{{authorName}} abrió <3></3>", @@ -386,15 +386,15 @@ "Sorry, an error occurred.": "Lo sentimos, ha ocurrido un error.", "Click to retry": "Haz clic para volver a intentarlo", "Back": "Atrás", - "Can view the document": "Can view the document", - "Can view and edit the document": "Can view and edit the document", + "Can view the document": "Puede ver el documento", + "Can view and edit the document": "Puede ver y editar el documento", "Manage": "Administrar", - "Full access including sharing": "Full access including sharing", + "Full access including sharing": "Acceso completo incluyendo compartir", "Permissions for {{ userName }} updated": "Permisos para {{ userName }} actualizados", - "Failed to approve access request": "Failed to approve access request", - "Access request dismissed": "Access request dismissed", - "Failed to dismiss access request": "Failed to dismiss access request", - "Approve": "Approve", + "Failed to approve access request": "Error al aprobar la solicitud de acceso", + "Access request dismissed": "Solicitud de acceso rechazada", + "Failed to dismiss access request": "Error al rechazar la solicitud de acceso", + "Approve": "Aprobar", "Notification options": "Opciones de notificación", "Unknown": "Desconocido", "Mentions": "Menciones", @@ -602,7 +602,7 @@ "Ordered list": "Lista ordenada", "Image": "Imagen", "Video": "Video", - "Embed PDF": "Embed PDF", + "Embed PDF": "Incrustrar PDF", "File attachment": "Archivo adjunto", "Table": "Tabla", "Quote": "Cita", @@ -677,7 +677,7 @@ "Applications": "Aplicaciones", "Shared Links": "Enlaces compartidos", "Import": "Importar", - "Embeds": "Embeds", + "Embeds": "Incrustaciones", "Configure which embed providers are available in the editor.": "Configurar qué proveedores embebidos están disponibles en el editor.", "Install": "Instalar", "Change name": "Cambiar nombre", @@ -727,9 +727,9 @@ "reacted {{ emoji }} to your comment on": "reaccionó {{ emoji }} a tu comentario el", "shared": "compartido", "invited you to": "te invitó a", - "was granted access to": "was granted access to", - "requested access to": "requested access to", - "is requesting access to": "is requesting access to", + "was granted access to": "se le concedió acceso a", + "requested access to": "solicitó acceso a", + "is requesting access to": "está solicitando acceso a", "Choose a date": "Elige una fecha", "API key created. Please copy the value now as it will not be shown again.": "Clave API creada. Por favor, copia el valor ahora, ya que no se mostrará de nuevo.", "Scopes": "Ámbitos", @@ -885,13 +885,13 @@ "No documents found for your filters.": "No se encontraron documentos para tus filtros.", "You’ve not got any drafts at the moment.": "No tienes borradores en este momento.", "Payment Required": "Pago Requerido", - "Access request sent": "Access request sent", + "Access request sent": "Solicitud de acceso enviada", "No access to this doc": "Sin acceso a este documento", - "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", - "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", - "Access requested": "Access requested", - "Requesting…": "Requesting…", - "Request access": "Request access", + "Your request to access this document has been sent. You will be notified once access is granted.": "Su solicitud para acceder a este documento ha sido enviada. Se le notificará una vez se haya concedido el acceso.", + "It doesn't look like you have permission to access this document. You can request access.": "Parece que no tienes permiso para acceder a este documento. Puede solicitar acceso.", + "Access requested": "Acceso solicitado", + "Requesting…": "Solicitando…", + "Request access": "Solicitar acceso", "Not found": "No encontrado", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "No se puede encontrar la página que estás buscando. Es posible que haya sido eliminada o que el enlace sea incorrecto.", "We were unable to load the document while offline.": "No pudimos cargar el documento sin conexión.", @@ -955,8 +955,8 @@ "Move list item down": "Mover elemento de la lista abajo", "Toggle blocks": "Alternar bloque", "Open / close": "Abrir / Cerrar", - "Indent item": "Indent item", - "Outdent item": "Outdent item", + "Indent item": "Sangrar elemento", + "Outdent item": "Disminuir la sangría del elemento", "Tables": "Tablas", "Insert row": "Insertar fila", "Next cell": "Celda siguiente", @@ -1117,7 +1117,7 @@ "Connect": "Conectar", "Group sync": "Sincronización de grupo", "Sync group memberships from {{ authProvider }} on each sign-in": "Sincronizar membresías de grupo de {{ authProvider }} en cada inicio de sesión", - "Group claim": "Group claim", + "Group claim": "Grupo de OIDC", "The claim in the provider response that contains group names (e.g. groups, roles)": "La reclamación en la respuesta del proveedor que contiene nombres de grupo (por ejemplo, grupos, roles)", "Allow members to sign-in using their email address": "Permitir que los miembros inicien sesión usando su dirección de correo electrónico", "The server must have SMTP configured to enable this setting": "El servidor debe tener SMTP configurado para habilitar esta opción", @@ -1144,11 +1144,11 @@ "Created by": "Creado por", "Never": "Nunca", "Expires": "Caduca", - "Could not load preference": "Could not load preference", + "Could not load preference": "No se ha podido cargar la preferencia", "Preferences saved": "Preferencias guardadas", - "Could not save preference": "Could not save preference", - "Open on startup": "Open on startup", - "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", + "Could not save preference": "No se ha podido guardar la preferencia", + "Open on startup": "Abrir al iniciar", + "Automatically launch {{ appName }} when you sign in to your computer.": "Iniciar {{ appName }} automáticamente cuando inicies sessión en tu ordenador.", "Disconnect integration": "Desconectar integración", "Disconnecting": "Desconectando", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "¿Estás seguro de que quieres desconectar la integración <em>{{ service }}</em>?", @@ -1327,8 +1327,8 @@ "Receive a notification when you are given access to a collection": "Recibir una notificación cuando se te da acceso a una colección", "Export completed": "Exportación completada", "Receive a notification when an export you requested has been completed": "Recibir una notificación cuando se complete una exportación que hayas solicitado", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Document access requested": "Acceso al documento solicitado", + "Receive a notification when a user requests access to a document you manage": "Recibir una notificación cuando un usuario solicita acceso a un documento que administras", "Getting started": "Primeros pasos", "Tips on getting started with features and functionality": "Consejos para empezar con las características y funcionalidades", "New features": "Nuevas características", @@ -1483,8 +1483,8 @@ "Could not load collections": "No se pudieron cargar las colecciones", "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Administre los permisos y ajustes de todas las colecciones en la base de conocimiento. Como administrador del espacio de trabajo, también puede administrar colecciones privadas.", "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.": "Indexar y buscar automáticamente contenido de documentos de {{appName}} dentro de <4>Glean</4> en tiempo real.", - "API Endpoint": "API Endpoint", - "API Secret": "API Secret", + "API Endpoint": "Punto final de la API", + "API Secret": "Secreto de API", "Datasource": "Fuente de datos", "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.": "Detalles de la licencia actual de {{appName}} . Para organizar la renovación del contrato a medida que se aproximan los límites de vencimiento o asientos o aumentar los asientos con licencia, póngase en contacto con el administrador de su cuenta o envíe un correo electrónico a <4>priority@getoutline.com</4>.", "Sorry, an answer could not be found in the collection, try widening your search.": "Lo sentimos, no se pudo encontrar una respuesta en la colección, intente ampliar su búsqueda.", @@ -1511,7 +1511,7 @@ "Client ID": "ID de cliente", "OAuth application ID": "ID de aplicación OAuth", "Client Secret": "Client Secret", - "OAuth application secret": "OAuth application secret", + "OAuth application secret": "Secreto de la aplicación OAuth", "Connecting": "Conectando", "Choose which GitLab instance to connect to.": "Elija a qué instancia de GitLab conectar.", "GitLab Cloud": "Nube de GitLab", @@ -1679,9 +1679,9 @@ "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }} {{ eventName }} el documento \"{{ documentTitle }}\"", "{{ actorName }} {{ eventName }} the document": "{{ actorName }} {{ eventName }} el documento", "Unsubscribe from this doc": "Desuscribirse de este documento", - "{{ actorName }} shared “{{ documentTitle }}” with you": "{{ actorName }} shared “{{ documentTitle }}” with you", + "{{ actorName }} shared “{{ documentTitle }}” with you": "{{ actorName }} compartió \"{{ documentTitle }}\" contigo", "{{ actorName }} shared a document": "{{ actorName }} compartió un documento", - "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} shared “{{ documentTitle }}” with you.", + "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} compartió \"{{ documentTitle }}\" contigo.", "edit": "editar", "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} te ha invitado a {{ permission }} el", "Your requested export": "La exportación solicitada", @@ -1760,7 +1760,7 @@ "{{ user }} created {{ timeAgo }}": "{{ user }} lo creó {{ timeAgo }}", "Sorry, an error occurred uploading the file": "Lo sentimos, ocurrió un error cargando el archivo", "Sorry, that type of link is not supported": "Lo sentimos, ese tipo de enlace no es compatible", - "Caption": "Caption", + "Caption": "Leyenda", "Empty diagram": "Diagrama vacío", "Double click to edit": "Doble click para editar", "Open": "Abrir", diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index 3e6ccfc1de..39fd42639e 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -218,7 +218,7 @@ "Collections are used to group documents and choose permissions": "コレクションはドキュメントのグループ化や権限の選択に使用されます。", "Name": "名前", "The default access for workspace members, you can share with more users or groups later.": "ワークスペースメンバーのデフォルトのアクセス権です。後から他のユーザーまたはグループと共有することもできます。", - "Advanced options": "Advanced options", + "Advanced options": "高度なオプション", "Saving": "保存", "Save": "保存", "Creating": "作成中", diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index 6e3326aee6..1c43513868 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -1,7 +1,7 @@ { "New API key": "Nova chave de API", "Copy": "Copiar", - "API key copied": "API key copied", + "API key copied": "Chave API copiada", "Delete": "Excluir", "Revoke": "Revogar", "Revoke API key": "Revogar Chave API", @@ -56,9 +56,9 @@ "Development": "Desenvolvimento", "Open document": "Abrir documento", "New draft": "Novo rascunho", - "Nested document": "Nested document", - "Before": "Before", - "After": "After", + "Nested document": "Documento aninhado", + "Before": "Antes", + "After": "Depois", "Publish": "Publicar", "Published {{ documentName }}": "{{ documentName }} Publicado", "Publish document": "Publicar documento", @@ -90,9 +90,9 @@ "Search in document": "Pesquisar no documento", "Print": "Imprimir", "Print document": "Imprimir documento", - "Open in desktop app": "Open in desktop app", - "Present": "Present", - "Present document": "Present document", + "Open in desktop app": "Abrir no aplicativo do computador", + "Present": "Presente", + "Present document": "Documento atual", "Templatize": "Modelar", "Create template": "Criar modelo", "Open random document": "Abrir documento aleatório", @@ -169,16 +169,16 @@ "New workspace": "Novo espaço de trabalho", "Create a workspace": "Criar um espaço de trabalho", "Login to workspace": "Conectar-se ao espaço de trabalho", - "template": "template", - "Template deleted": "Template deleted", + "template": "modelo", + "Template deleted": "Modelo excluído", "Deleting": "Excluindo", - "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", + "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Você tem certeza disso? A exclusão do modelo <em>{{ templateName }}</em> é permanente.", "Move to workspace": "Mover para espaço de trabalho", - "Template moved": "Template moved", - "Couldn't move the template, try again?": "Couldn't move the template, try again?", + "Template moved": "Modelo movido", + "Couldn't move the template, try again?": "Não foi possível mover o documento, tentar novamente?", "Move to collection": "Mover para coleção", - "Move template": "Move template", - "Print template": "Print template", + "Move template": "Mover modelo", + "Print template": "Imprimir template", "Invite people": "Convidar pessoas", "Invite to workspace": "Convidar ao espaço de trabalho", "Promote to {{ role }}": "Promover para {{ role }}", @@ -189,7 +189,7 @@ "Collections": "Coleções", "Debug": "Depurar", "Document": "Documento", - "Search results": "Search results", + "Search results": "Resultados da pesquisa", "Documents": "Documentos", "Template": "Modelo", "Recently viewed": "Visualizado recentemente", @@ -207,10 +207,10 @@ "You": "Você", "Avatar of {{ name }}": "Avatar de {{ name }}", "Viewers": "Visualizadores", - "Managers": "Managers", + "Managers": "Gerentes", "Members": "Membros", - "Manage templates": "Manage templates", - "Choose who can create and edit templates in this collection.": "Choose who can create and edit templates in this collection.", + "Manage templates": "Gerenciar modelos", + "Choose who can create and edit templates in this collection.": "Escolha quem pode criar e editar modelos nesta coleção.", "Public document sharing": "Compartilhamento de documentos públicos", "Allow documents within this collection to be shared publicly on the internet.": "Permitir que documentos desta coleção sejam compartilhados publicamente na internet.", "Commenting": "Comentando", @@ -218,7 +218,7 @@ "Collections are used to group documents and choose permissions": "Coleções são usadas para agrupar documentos e definir permissões", "Name": "Nome", "The default access for workspace members, you can share with more users or groups later.": "O acesso padrão para membros do espaço de trabalho, você pode compartilhar com mais usuários ou grupos posteriormente.", - "Advanced options": "Advanced options", + "Advanced options": "Opções avançadas", "Saving": "Salvando", "Save": "Salvar", "Creating": "Criando", @@ -246,7 +246,7 @@ "Install now": "Instalar agora", "Deleted Collection": "Excluir Coleção", "Untitled": "Sem título", - "Collection options": "Collection options", + "Collection options": "Opções da coleção", "Document options": "Opções do documento", "Unpin": "Desafixar", "Export started": "Exportação iniciada", From 3f207aea49cb73e248a5dd6d49079adfa27a8a7e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:56:01 -0400 Subject: [PATCH 089/286] chore(deps-dev): bump oxlint from 1.50.0 to 1.66.0 (#12458) Bumps [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint) from 1.50.0 to 1.66.0. - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.66.0/npm/oxlint) --- updated-dependencies: - dependency-name: oxlint dependency-version: 1.66.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 164 +++++++++++++++++++++++++-------------------------- 2 files changed, 83 insertions(+), 83 deletions(-) diff --git a/package.json b/package.json index d26d961ce3..f86b9ff514 100644 --- a/package.json +++ b/package.json @@ -363,7 +363,7 @@ "lint-staged": "^16.4.0", "msw": "^2.14.2", "nodemon": "^3.1.14", - "oxlint": "1.50.0", + "oxlint": "1.66.0", "oxlint-tsgolint": "0.22.1", "postinstall-postinstall": "^2.1.0", "prettier": "^3.6.2", diff --git a/yarn.lock b/yarn.lock index 9858219db0..494bcd8690 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4167,135 +4167,135 @@ __metadata: languageName: node linkType: hard -"@oxlint/binding-android-arm-eabi@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-android-arm-eabi@npm:1.50.0" +"@oxlint/binding-android-arm-eabi@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-android-arm-eabi@npm:1.66.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@oxlint/binding-android-arm64@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-android-arm64@npm:1.50.0" +"@oxlint/binding-android-arm64@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-android-arm64@npm:1.66.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@oxlint/binding-darwin-arm64@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-darwin-arm64@npm:1.50.0" +"@oxlint/binding-darwin-arm64@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-darwin-arm64@npm:1.66.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint/binding-darwin-x64@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-darwin-x64@npm:1.50.0" +"@oxlint/binding-darwin-x64@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-darwin-x64@npm:1.66.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint/binding-freebsd-x64@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-freebsd-x64@npm:1.50.0" +"@oxlint/binding-freebsd-x64@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-freebsd-x64@npm:1.66.0" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@oxlint/binding-linux-arm-gnueabihf@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-arm-gnueabihf@npm:1.50.0" +"@oxlint/binding-linux-arm-gnueabihf@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-arm-gnueabihf@npm:1.66.0" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@oxlint/binding-linux-arm-musleabihf@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-arm-musleabihf@npm:1.50.0" +"@oxlint/binding-linux-arm-musleabihf@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-arm-musleabihf@npm:1.66.0" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@oxlint/binding-linux-arm64-gnu@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-arm64-gnu@npm:1.50.0" +"@oxlint/binding-linux-arm64-gnu@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-arm64-gnu@npm:1.66.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@oxlint/binding-linux-arm64-musl@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-arm64-musl@npm:1.50.0" +"@oxlint/binding-linux-arm64-musl@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-arm64-musl@npm:1.66.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@oxlint/binding-linux-ppc64-gnu@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-ppc64-gnu@npm:1.50.0" +"@oxlint/binding-linux-ppc64-gnu@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-ppc64-gnu@npm:1.66.0" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@oxlint/binding-linux-riscv64-gnu@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-riscv64-gnu@npm:1.50.0" +"@oxlint/binding-linux-riscv64-gnu@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-riscv64-gnu@npm:1.66.0" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@oxlint/binding-linux-riscv64-musl@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-riscv64-musl@npm:1.50.0" +"@oxlint/binding-linux-riscv64-musl@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-riscv64-musl@npm:1.66.0" conditions: os=linux & cpu=riscv64 & libc=musl languageName: node linkType: hard -"@oxlint/binding-linux-s390x-gnu@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-s390x-gnu@npm:1.50.0" +"@oxlint/binding-linux-s390x-gnu@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-s390x-gnu@npm:1.66.0" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard -"@oxlint/binding-linux-x64-gnu@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-x64-gnu@npm:1.50.0" +"@oxlint/binding-linux-x64-gnu@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-x64-gnu@npm:1.66.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@oxlint/binding-linux-x64-musl@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-linux-x64-musl@npm:1.50.0" +"@oxlint/binding-linux-x64-musl@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-linux-x64-musl@npm:1.66.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@oxlint/binding-openharmony-arm64@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-openharmony-arm64@npm:1.50.0" +"@oxlint/binding-openharmony-arm64@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-openharmony-arm64@npm:1.66.0" conditions: os=openharmony & cpu=arm64 languageName: node linkType: hard -"@oxlint/binding-win32-arm64-msvc@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-win32-arm64-msvc@npm:1.50.0" +"@oxlint/binding-win32-arm64-msvc@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-win32-arm64-msvc@npm:1.66.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint/binding-win32-ia32-msvc@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-win32-ia32-msvc@npm:1.50.0" +"@oxlint/binding-win32-ia32-msvc@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-win32-ia32-msvc@npm:1.66.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@oxlint/binding-win32-x64-msvc@npm:1.50.0": - version: 1.50.0 - resolution: "@oxlint/binding-win32-x64-msvc@npm:1.50.0" +"@oxlint/binding-win32-x64-msvc@npm:1.66.0": + version: 1.66.0 + resolution: "@oxlint/binding-win32-x64-msvc@npm:1.66.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -16001,7 +16001,7 @@ __metadata: nodemon: "npm:^3.1.14" octokit: "npm:^3.2.2" outline-icons: "npm:^4.3.0" - oxlint: "npm:1.50.0" + oxlint: "npm:1.66.0" oxlint-tsgolint: "npm:0.22.1" oy-vey: "npm:^0.12.1" pako: "npm:^2.1.0" @@ -16228,31 +16228,31 @@ __metadata: languageName: node linkType: hard -"oxlint@npm:1.50.0": - version: 1.50.0 - resolution: "oxlint@npm:1.50.0" +"oxlint@npm:1.66.0": + version: 1.66.0 + resolution: "oxlint@npm:1.66.0" dependencies: - "@oxlint/binding-android-arm-eabi": "npm:1.50.0" - "@oxlint/binding-android-arm64": "npm:1.50.0" - "@oxlint/binding-darwin-arm64": "npm:1.50.0" - "@oxlint/binding-darwin-x64": "npm:1.50.0" - "@oxlint/binding-freebsd-x64": "npm:1.50.0" - "@oxlint/binding-linux-arm-gnueabihf": "npm:1.50.0" - "@oxlint/binding-linux-arm-musleabihf": "npm:1.50.0" - "@oxlint/binding-linux-arm64-gnu": "npm:1.50.0" - "@oxlint/binding-linux-arm64-musl": "npm:1.50.0" - "@oxlint/binding-linux-ppc64-gnu": "npm:1.50.0" - "@oxlint/binding-linux-riscv64-gnu": "npm:1.50.0" - "@oxlint/binding-linux-riscv64-musl": "npm:1.50.0" - "@oxlint/binding-linux-s390x-gnu": "npm:1.50.0" - "@oxlint/binding-linux-x64-gnu": "npm:1.50.0" - "@oxlint/binding-linux-x64-musl": "npm:1.50.0" - "@oxlint/binding-openharmony-arm64": "npm:1.50.0" - "@oxlint/binding-win32-arm64-msvc": "npm:1.50.0" - "@oxlint/binding-win32-ia32-msvc": "npm:1.50.0" - "@oxlint/binding-win32-x64-msvc": "npm:1.50.0" + "@oxlint/binding-android-arm-eabi": "npm:1.66.0" + "@oxlint/binding-android-arm64": "npm:1.66.0" + "@oxlint/binding-darwin-arm64": "npm:1.66.0" + "@oxlint/binding-darwin-x64": "npm:1.66.0" + "@oxlint/binding-freebsd-x64": "npm:1.66.0" + "@oxlint/binding-linux-arm-gnueabihf": "npm:1.66.0" + "@oxlint/binding-linux-arm-musleabihf": "npm:1.66.0" + "@oxlint/binding-linux-arm64-gnu": "npm:1.66.0" + "@oxlint/binding-linux-arm64-musl": "npm:1.66.0" + "@oxlint/binding-linux-ppc64-gnu": "npm:1.66.0" + "@oxlint/binding-linux-riscv64-gnu": "npm:1.66.0" + "@oxlint/binding-linux-riscv64-musl": "npm:1.66.0" + "@oxlint/binding-linux-s390x-gnu": "npm:1.66.0" + "@oxlint/binding-linux-x64-gnu": "npm:1.66.0" + "@oxlint/binding-linux-x64-musl": "npm:1.66.0" + "@oxlint/binding-openharmony-arm64": "npm:1.66.0" + "@oxlint/binding-win32-arm64-msvc": "npm:1.66.0" + "@oxlint/binding-win32-ia32-msvc": "npm:1.66.0" + "@oxlint/binding-win32-x64-msvc": "npm:1.66.0" peerDependencies: - oxlint-tsgolint: ">=0.14.1" + oxlint-tsgolint: ">=0.22.1" dependenciesMeta: "@oxlint/binding-android-arm-eabi": optional: true @@ -16297,7 +16297,7 @@ __metadata: optional: true bin: oxlint: bin/oxlint - checksum: 10c0/a898f02ac9b114f16f3f51f04de778f752db8c83afd5d2de02132ef80901794c64e208a87585ea2342f59cc39e4dcf6d2e25fb10e62b30c407b89fd7ef439b0b + checksum: 10c0/c43a1141159ef3a32d9d7d49852c9439b9e65dd7c0021ca76f5677f9c0b3a495270f00c2daa2115686997fbf5737a769882bbdeb84276558e0105e6ac6587432 languageName: node linkType: hard From 0c3ddef2287acec147bfaa09f4c87323ca4e0ae5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:56:24 -0400 Subject: [PATCH 090/286] chore(deps-dev): bump terser from 5.44.1 to 5.48.0 (#12457) Bumps [terser](https://github.com/terser/terser) from 5.44.1 to 5.48.0. - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/compare/v5.44.1...v5.48.0) --- updated-dependencies: - dependency-name: terser dependency-version: 5.48.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f86b9ff514..364dd4a9ed 100644 --- a/package.json +++ b/package.json @@ -370,7 +370,7 @@ "react-refresh": "^0.18.0", "rimraf": "^6.1.3", "rollup-plugin-webpack-stats": "2.1.11", - "terser": "^5.44.1", + "terser": "^5.48.0", "typescript": "^5.9.3", "unplugin-swc": "^1.5.9", "vite-plugin-babel": "^1.6.0", diff --git a/yarn.lock b/yarn.lock index 494bcd8690..61d4b88a81 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16080,7 +16080,7 @@ __metadata: styled-components: "npm:^5.3.11" styled-components-breakpoint: "npm:^2.1.1" styled-normalize: "npm:^8.1.1" - terser: "npm:^5.44.1" + terser: "npm:^5.48.0" throng: "npm:^5.0.0" tiny-cookie: "npm:^2.5.1" tmp: "npm:^0.2.5" @@ -19663,7 +19663,7 @@ __metadata: languageName: node linkType: hard -"terser@npm:^5.17.4, terser@npm:^5.44.1": +"terser@npm:^5.17.4": version: 5.44.1 resolution: "terser@npm:5.44.1" dependencies: @@ -19677,6 +19677,20 @@ __metadata: languageName: node linkType: hard +"terser@npm:^5.48.0": + version: 5.48.0 + resolution: "terser@npm:5.48.0" + dependencies: + "@jridgewell/source-map": "npm:^0.3.3" + acorn: "npm:^8.15.0" + commander: "npm:^2.20.0" + source-map-support: "npm:~0.5.20" + bin: + terser: bin/terser + checksum: 10c0/d6ee713ea09a2b83b461ccbf1b76bd673a5090b3076ec13db7edc6d6470ab940d21c87b8d1ad82523b7cf02d9be07393fcdd334bde8f589e9bc3804da6fc32d2 + languageName: node + linkType: hard + "text-decoder@npm:^1.1.0": version: 1.2.3 resolution: "text-decoder@npm:1.2.3" From 5126d8540e74361725f8437e2999d55ac6a5fd99 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:56:47 -0400 Subject: [PATCH 091/286] chore(deps): bump uuid from 11.1.0 to 11.1.1 (#12456) Bumps [uuid](https://github.com/uuidjs/uuid) from 11.1.0 to 11.1.1. - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/v11.1.1/CHANGELOG.md) - [Commits](https://github.com/uuidjs/uuid/compare/v11.1.0...v11.1.1) --- updated-dependencies: - dependency-name: uuid dependency-version: 11.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 364dd4a9ed..22b1556ddf 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,7 @@ "ukkonen": "^2.2.0", "umzug": "^3.8.3", "utility-types": "^3.11.0", - "uuid": "^11.1.0", + "uuid": "^11.1.1", "validator": "13.15.35", "vaul": "^1.1.2", "vite": "npm:rolldown-vite@7.3.1", diff --git a/yarn.lock b/yarn.lock index 61d4b88a81..70662a6490 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16090,7 +16090,7 @@ __metadata: umzug: "npm:^3.8.3" unplugin-swc: "npm:^1.5.9" utility-types: "npm:^3.11.0" - uuid: "npm:^11.1.0" + uuid: "npm:^11.1.1" validator: "npm:13.15.35" vaul: "npm:^1.1.2" vite: "npm:rolldown-vite@7.3.1" @@ -20530,15 +20530,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^11.1.0": - version: 11.1.0 - resolution: "uuid@npm:11.1.0" - bin: - uuid: dist/esm/bin/uuid - checksum: 10c0/34aa51b9874ae398c2b799c88a127701408cd581ee89ec3baa53509dd8728cbb25826f2a038f9465f8b7be446f0fbf11558862965b18d21c993684297628d4d3 - languageName: node - linkType: hard - "uuid@npm:^11.1.0 || ^12 || ^13 || ^14.0.0": version: 14.0.0 resolution: "uuid@npm:14.0.0" @@ -20548,6 +20539,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^11.1.1": + version: 11.1.1 + resolution: "uuid@npm:11.1.1" + bin: + uuid: dist/esm/bin/uuid + checksum: 10c0/9e3af58eba872ece5a5e76f4773a94fc78a0ef2c2444c38dbe6b42f41dadf76c01850fd783604f27986f6195e6286aef064d45987d401b2a33127b98ddf7c0c5 + languageName: node + linkType: hard + "uuid@npm:^8.3.0, uuid@npm:^8.3.2": version: 8.3.2 resolution: "uuid@npm:8.3.2" From a9a54d5adaf53ae9002936c84d0e7c0249615de7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:57:01 -0400 Subject: [PATCH 092/286] chore(deps): bump the aws group with 5 updates (#12455) Bumps the aws group with 5 updates: | Package | From | To | | --- | --- | --- | | [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3) | `3.1045.0` | `3.1053.0` | | [@aws-sdk/lib-storage](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/lib/lib-storage) | `3.1045.0` | `3.1053.0` | | [@aws-sdk/s3-presigned-post](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/s3-presigned-post) | `3.1045.0` | `3.1053.0` | | [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/s3-request-presigner) | `3.1045.0` | `3.1053.0` | | [@aws-sdk/signature-v4-crt](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/signature-v4-crt) | `3.1045.0` | `3.1053.0` | Updates `@aws-sdk/client-s3` from 3.1045.0 to 3.1053.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1053.0/clients/client-s3) Updates `@aws-sdk/lib-storage` from 3.1045.0 to 3.1053.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/lib/lib-storage/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1053.0/lib/lib-storage) Updates `@aws-sdk/s3-presigned-post` from 3.1045.0 to 3.1053.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/s3-presigned-post/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1053.0/packages/s3-presigned-post) Updates `@aws-sdk/s3-request-presigner` from 3.1045.0 to 3.1053.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/s3-request-presigner/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1053.0/packages/s3-request-presigner) Updates `@aws-sdk/signature-v4-crt` from 3.1045.0 to 3.1053.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/signature-v4-crt/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1053.0/packages/signature-v4-crt) --- updated-dependencies: - dependency-name: "@aws-sdk/client-s3" dependency-version: 3.1053.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws - dependency-name: "@aws-sdk/lib-storage" dependency-version: 3.1053.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws - dependency-name: "@aws-sdk/s3-presigned-post" dependency-version: 3.1053.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws - dependency-name: "@aws-sdk/s3-request-presigner" dependency-version: 3.1053.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws - dependency-name: "@aws-sdk/signature-v4-crt" dependency-version: 3.1053.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 10 +- yarn.lock | 1288 +++++++++++++------------------------------------- 2 files changed, 325 insertions(+), 973 deletions(-) diff --git a/package.json b/package.json index 22b1556ddf..a5937eeb75 100644 --- a/package.json +++ b/package.json @@ -52,11 +52,11 @@ "> 0.25%, not dead" ], "dependencies": { - "@aws-sdk/client-s3": "^3.1045.0", - "@aws-sdk/lib-storage": "^3.1045.0", - "@aws-sdk/s3-presigned-post": "^3.1045.0", - "@aws-sdk/s3-request-presigner": "^3.1045.0", - "@aws-sdk/signature-v4-crt": "^3.1045.0", + "@aws-sdk/client-s3": "^3.1053.0", + "@aws-sdk/lib-storage": "^3.1053.0", + "@aws-sdk/s3-presigned-post": "^3.1053.0", + "@aws-sdk/s3-request-presigner": "^3.1053.0", + "@aws-sdk/signature-v4-crt": "^3.1053.0", "@benrbray/prosemirror-math": "^0.2.2", "@bull-board/api": "^6.21.3", "@bull-board/koa": "^6.21.3", diff --git a/yarn.lock b/yarn.lock index 70662a6490..b6f119e263 100644 --- a/yarn.lock +++ b/yarn.lock @@ -110,548 +110,378 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-s3@npm:3.1045.0, @aws-sdk/client-s3@npm:^3.1045.0": - version: 3.1045.0 - resolution: "@aws-sdk/client-s3@npm:3.1045.0" +"@aws-sdk/client-s3@npm:3.1053.0, @aws-sdk/client-s3@npm:^3.1053.0": + version: 3.1053.0 + resolution: "@aws-sdk/client-s3@npm:3.1053.0" dependencies: "@aws-crypto/sha1-browser": "npm:5.2.0" "@aws-crypto/sha256-browser": "npm:5.2.0" "@aws-crypto/sha256-js": "npm:5.2.0" - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/credential-provider-node": "npm:^3.972.39" - "@aws-sdk/middleware-bucket-endpoint": "npm:^3.972.10" - "@aws-sdk/middleware-expect-continue": "npm:^3.972.10" - "@aws-sdk/middleware-flexible-checksums": "npm:^3.974.16" - "@aws-sdk/middleware-host-header": "npm:^3.972.10" - "@aws-sdk/middleware-location-constraint": "npm:^3.972.10" - "@aws-sdk/middleware-logger": "npm:^3.972.10" - "@aws-sdk/middleware-recursion-detection": "npm:^3.972.11" - "@aws-sdk/middleware-sdk-s3": "npm:^3.972.37" - "@aws-sdk/middleware-ssec": "npm:^3.972.10" - "@aws-sdk/middleware-user-agent": "npm:^3.972.38" - "@aws-sdk/region-config-resolver": "npm:^3.972.13" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-endpoints": "npm:^3.996.8" - "@aws-sdk/util-user-agent-browser": "npm:^3.972.10" - "@aws-sdk/util-user-agent-node": "npm:^3.973.24" - "@smithy/config-resolver": "npm:^4.4.17" - "@smithy/core": "npm:^3.23.17" - "@smithy/eventstream-serde-browser": "npm:^4.2.14" - "@smithy/eventstream-serde-config-resolver": "npm:^4.3.14" - "@smithy/eventstream-serde-node": "npm:^4.2.14" - "@smithy/fetch-http-handler": "npm:^5.3.17" - "@smithy/hash-blob-browser": "npm:^4.2.15" - "@smithy/hash-node": "npm:^4.2.14" - "@smithy/hash-stream-node": "npm:^4.2.14" - "@smithy/invalid-dependency": "npm:^4.2.14" - "@smithy/md5-js": "npm:^4.2.14" - "@smithy/middleware-content-length": "npm:^4.2.14" - "@smithy/middleware-endpoint": "npm:^4.4.32" - "@smithy/middleware-retry": "npm:^4.5.7" - "@smithy/middleware-serde": "npm:^4.2.20" - "@smithy/middleware-stack": "npm:^4.2.14" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/node-http-handler": "npm:^4.6.1" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.13" - "@smithy/types": "npm:^4.14.1" - "@smithy/url-parser": "npm:^4.2.14" - "@smithy/util-base64": "npm:^4.3.2" - "@smithy/util-body-length-browser": "npm:^4.2.2" - "@smithy/util-body-length-node": "npm:^4.2.3" - "@smithy/util-defaults-mode-browser": "npm:^4.3.49" - "@smithy/util-defaults-mode-node": "npm:^4.2.54" - "@smithy/util-endpoints": "npm:^3.4.2" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-retry": "npm:^4.3.6" - "@smithy/util-stream": "npm:^4.5.25" - "@smithy/util-utf8": "npm:^4.2.2" - "@smithy/util-waiter": "npm:^4.3.0" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/credential-provider-node": "npm:^3.972.44" + "@aws-sdk/middleware-bucket-endpoint": "npm:^3.972.15" + "@aws-sdk/middleware-expect-continue": "npm:^3.972.13" + "@aws-sdk/middleware-flexible-checksums": "npm:^3.974.21" + "@aws-sdk/middleware-location-constraint": "npm:^3.972.11" + "@aws-sdk/middleware-sdk-s3": "npm:^3.972.42" + "@aws-sdk/middleware-ssec": "npm:^3.972.11" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.28" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/fetch-http-handler": "npm:^5.4.3" + "@smithy/node-http-handler": "npm:^4.7.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/e1c017dd5ee22f57658f0527fcc736e6a240de0e836d49b125b2cde120cd7ff017c7d2e9ac172cca404ffa4c853048079221db068a49ab0faf5e2d6b7a2f93fa + checksum: 10c0/d3308875955ccd8a3ebbcc37a966268d6c595242820bcf05fe45a6d0c9611c6add6b517bbb021b82d7c1b54cdada0fe1d077f708c04e860024b8105c02a6f0b5 languageName: node linkType: hard -"@aws-sdk/core@npm:^3.974.8": - version: 3.974.8 - resolution: "@aws-sdk/core@npm:3.974.8" +"@aws-sdk/core@npm:^3.974.13": + version: 3.974.13 + resolution: "@aws-sdk/core@npm:3.974.13" dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/xml-builder": "npm:^3.972.22" - "@smithy/core": "npm:^3.23.17" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/signature-v4": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.13" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-base64": "npm:^4.3.2" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-retry": "npm:^4.3.6" - "@smithy/util-utf8": "npm:^4.2.2" + "@aws-sdk/types": "npm:^3.973.9" + "@aws-sdk/xml-builder": "npm:^3.972.25" + "@aws/lambda-invoke-store": "npm:^0.2.2" + "@smithy/core": "npm:^3.24.3" + "@smithy/signature-v4": "npm:^5.4.2" + "@smithy/types": "npm:^4.14.2" + bowser: "npm:^2.11.0" tslib: "npm:^2.6.2" - checksum: 10c0/7b7e01e01e8b5f28b5d1b3d6f263bcf1b395600c2401009ad2b398a39b43ade33eacd59371c1e960c969f8164bfa9aff3ce950a5ba527a73c82eedc21456850f + checksum: 10c0/4871dfdab8e88cd9a0f0b3a3e5038fd3a8102a960f4383008c14d2cd3108fb043174c150f2c4b69bc6c31a861728d26170f2a9eaca3e370483ccc59c2a196061 languageName: node linkType: hard -"@aws-sdk/crc64-nvme@npm:^3.972.7": - version: 3.972.7 - resolution: "@aws-sdk/crc64-nvme@npm:3.972.7" +"@aws-sdk/crc64-nvme@npm:^3.972.9": + version: 3.972.9 + resolution: "@aws-sdk/crc64-nvme@npm:3.972.9" dependencies: - "@smithy/types": "npm:^4.14.1" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/c6f23e4e4c06b98009264b511567bb808d4c4f53c1da9b41f5c975f5f9f5e4b11af16e7add850e7bba29731b6efb145eb4dc0538d9639d6a5daaceadb4acf35d + checksum: 10c0/2dd172c64ac658e035514752225f4785b0e5b24e2e35b4b6d559c54d5270710a278180c4707c0c47283605c56905de09875cf7af129323669710a741fadea1c6 languageName: node linkType: hard -"@aws-sdk/credential-provider-env@npm:^3.972.34": - version: 3.972.34 - resolution: "@aws-sdk/credential-provider-env@npm:3.972.34" - dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/2f75940784b92ff71292b6dc5e660982f80bcfb4c3fcd0f0a04b0ff7de0a5b91000505b947434813b1104647d05678c3504560a7937aa82639e0042cb4597705 - languageName: node - linkType: hard - -"@aws-sdk/credential-provider-http@npm:^3.972.36": - version: 3.972.36 - resolution: "@aws-sdk/credential-provider-http@npm:3.972.36" - dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/fetch-http-handler": "npm:^5.3.17" - "@smithy/node-http-handler": "npm:^4.6.1" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.13" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-stream": "npm:^4.5.25" - tslib: "npm:^2.6.2" - checksum: 10c0/b3dd17e4403b3ef026a65da15cc3d08fdfddd42449f6d10edc6a4b016ed05306f7d4fe1fe286abd00bcf6cf3817ed19556fd97db9b2449deb0182569980dcd01 - languageName: node - linkType: hard - -"@aws-sdk/credential-provider-ini@npm:^3.972.38": - version: 3.972.38 - resolution: "@aws-sdk/credential-provider-ini@npm:3.972.38" - dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/credential-provider-env": "npm:^3.972.34" - "@aws-sdk/credential-provider-http": "npm:^3.972.36" - "@aws-sdk/credential-provider-login": "npm:^3.972.38" - "@aws-sdk/credential-provider-process": "npm:^3.972.34" - "@aws-sdk/credential-provider-sso": "npm:^3.972.38" - "@aws-sdk/credential-provider-web-identity": "npm:^3.972.38" - "@aws-sdk/nested-clients": "npm:^3.997.6" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/credential-provider-imds": "npm:^4.2.14" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/198c7e3f88f525f814f599f6a1bc3a63c84ed046140017786f23de255adcb5c90f0bbcf9ec167c8c6771d63270f7ed9ac061713884ecddebc01da74be88ee6ea - languageName: node - linkType: hard - -"@aws-sdk/credential-provider-login@npm:^3.972.38": - version: 3.972.38 - resolution: "@aws-sdk/credential-provider-login@npm:3.972.38" - dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/nested-clients": "npm:^3.997.6" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/f84ab04b8fec3355dce3d2a0f9bd63e79ef04915f019f2b6731a267e853f7cfb066baf67a22c955e58aa86f5b6eded6acdfdfd67532cc923edeefb8e88f46d63 - languageName: node - linkType: hard - -"@aws-sdk/credential-provider-node@npm:^3.972.39": +"@aws-sdk/credential-provider-env@npm:^3.972.39": version: 3.972.39 - resolution: "@aws-sdk/credential-provider-node@npm:3.972.39" + resolution: "@aws-sdk/credential-provider-env@npm:3.972.39" dependencies: - "@aws-sdk/credential-provider-env": "npm:^3.972.34" - "@aws-sdk/credential-provider-http": "npm:^3.972.36" - "@aws-sdk/credential-provider-ini": "npm:^3.972.38" - "@aws-sdk/credential-provider-process": "npm:^3.972.34" - "@aws-sdk/credential-provider-sso": "npm:^3.972.38" - "@aws-sdk/credential-provider-web-identity": "npm:^3.972.38" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/credential-provider-imds": "npm:^4.2.14" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/e21808419372f95c842ed6f893d15599565a1fa9dffed81256a374f98ef3a3c276ab4be30fbaac963e5c4761b676fe10482f5a6b1fb2b03273b18e9ecd30c12d + checksum: 10c0/53312b5f758ab9c39a929e0e18f25f0a0e0b200fdae48f36649d943b07cb7244c44c06491c1e8937039f42740f92900c4f9493fb4acb8990184d3ab34411984d languageName: node linkType: hard -"@aws-sdk/credential-provider-process@npm:^3.972.34": - version: 3.972.34 - resolution: "@aws-sdk/credential-provider-process@npm:3.972.34" +"@aws-sdk/credential-provider-http@npm:^3.972.41": + version: 3.972.41 + resolution: "@aws-sdk/credential-provider-http@npm:3.972.41" dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/fetch-http-handler": "npm:^5.4.3" + "@smithy/node-http-handler": "npm:^4.7.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/f65dbaaa40a81ba8e84d314e8ac0528f6d807b63b98820102ffccb38f47b1aa52f0c6dd4d7e4e8df186cef9cd57041e1d2d929c0e692804a8af0d06497f38a6a + checksum: 10c0/b4e5a48b38d251030ba092dbaf1495df807e224daa95d13e5e00de3baccefe1bb7bc37eee49f4dd761c2751b9c1f27639f3da1165f5e4fd6baac3ee81e2e78c9 languageName: node linkType: hard -"@aws-sdk/credential-provider-sso@npm:^3.972.38": - version: 3.972.38 - resolution: "@aws-sdk/credential-provider-sso@npm:3.972.38" +"@aws-sdk/credential-provider-ini@npm:^3.972.43": + version: 3.972.43 + resolution: "@aws-sdk/credential-provider-ini@npm:3.972.43" dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/nested-clients": "npm:^3.997.6" - "@aws-sdk/token-providers": "npm:3.1041.0" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/credential-provider-env": "npm:^3.972.39" + "@aws-sdk/credential-provider-http": "npm:^3.972.41" + "@aws-sdk/credential-provider-login": "npm:^3.972.43" + "@aws-sdk/credential-provider-process": "npm:^3.972.39" + "@aws-sdk/credential-provider-sso": "npm:^3.972.43" + "@aws-sdk/credential-provider-web-identity": "npm:^3.972.43" + "@aws-sdk/nested-clients": "npm:^3.997.11" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/credential-provider-imds": "npm:^4.3.2" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/4919362e1b8f6b73b8ec8ed0e0cc8f7a33db9b0d3ef63346a03047a024910d1acc6d80428a51444f6f15d58534dd535bc461b8505dd8f1cd6dc4fd8f863f956d + checksum: 10c0/2cee8a5e5cb373ad5798a0bc4aeebe5edad5dafc9d3b6b4473d549a1e35fe02665ea9aa818ff6d3be37a66d2c08442b6f70268b9163cd80c55230acb7d6d3226 languageName: node linkType: hard -"@aws-sdk/credential-provider-web-identity@npm:^3.972.38": - version: 3.972.38 - resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.38" +"@aws-sdk/credential-provider-login@npm:^3.972.43": + version: 3.972.43 + resolution: "@aws-sdk/credential-provider-login@npm:3.972.43" dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/nested-clients": "npm:^3.997.6" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/nested-clients": "npm:^3.997.11" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/7a235d693dae5578c15448c8484d68ca7749ffd327b4e3784e3a1c6784a14535b398cc09c6be26e97042779acc261adedc7064681b930d93ebcda26da17c1f72 + checksum: 10c0/ca40c9c86790e7c724ad1c68771f7572e6b520c7f6b836ceb7e46cded3202b1ae780630dd3ef46d0a767a9c1efdaba18c417da110f5ab17a43e46d13c5240f81 languageName: node linkType: hard -"@aws-sdk/crt-loader@npm:^3.972.38": - version: 3.972.38 - resolution: "@aws-sdk/crt-loader@npm:3.972.38" +"@aws-sdk/credential-provider-node@npm:^3.972.44": + version: 3.972.44 + resolution: "@aws-sdk/credential-provider-node@npm:3.972.44" dependencies: - "@aws-sdk/util-user-agent-node": "npm:^3.973.24" + "@aws-sdk/credential-provider-env": "npm:^3.972.39" + "@aws-sdk/credential-provider-http": "npm:^3.972.41" + "@aws-sdk/credential-provider-ini": "npm:^3.972.43" + "@aws-sdk/credential-provider-process": "npm:^3.972.39" + "@aws-sdk/credential-provider-sso": "npm:^3.972.43" + "@aws-sdk/credential-provider-web-identity": "npm:^3.972.43" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/credential-provider-imds": "npm:^4.3.2" + "@smithy/types": "npm:^4.14.2" + tslib: "npm:^2.6.2" + checksum: 10c0/b31162bf8922f0f408eaa7fa5601ede64b6b83ea61ce320e8506da04950c35dec87208eb91e32718eeabfb3600a2f5e36a49fb5792a542b1423fb4897064b31f + languageName: node + linkType: hard + +"@aws-sdk/credential-provider-process@npm:^3.972.39": + version: 3.972.39 + resolution: "@aws-sdk/credential-provider-process@npm:3.972.39" + dependencies: + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" + tslib: "npm:^2.6.2" + checksum: 10c0/f5727b41265f6c83f0d65618563ae3ee657a93dfc5263924f2d012ff35bbcfd9918a4976faa62d48667683ad7fd2e6f7a51690e9120795b3e5f70c32b1767a43 + languageName: node + linkType: hard + +"@aws-sdk/credential-provider-sso@npm:^3.972.43": + version: 3.972.43 + resolution: "@aws-sdk/credential-provider-sso@npm:3.972.43" + dependencies: + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/nested-clients": "npm:^3.997.11" + "@aws-sdk/token-providers": "npm:3.1052.0" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" + tslib: "npm:^2.6.2" + checksum: 10c0/d25702c83d1eb0e086a91ca83ca2893b9ff1eea8b49b419530df74afe671d9e8d608a8d33af37b725dd66ba2a10729afcc7d8d7cc7ab2ed8eb38c36f1aaab2f0 + languageName: node + linkType: hard + +"@aws-sdk/credential-provider-web-identity@npm:^3.972.43": + version: 3.972.43 + resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.43" + dependencies: + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/nested-clients": "npm:^3.997.11" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" + tslib: "npm:^2.6.2" + checksum: 10c0/484de74aa18e89847b932185b54dfa6edbb6fd878808c4e4c9356f84f73d1104720e2e3177b5c49c27a38b15ec9e980886ff272fe76db08da1438ed271db7146 + languageName: node + linkType: hard + +"@aws-sdk/crt-loader@npm:^3.972.43": + version: 3.972.43 + resolution: "@aws-sdk/crt-loader@npm:3.972.43" + dependencies: + "@aws-sdk/core": "npm:^3.974.13" aws-crt: "npm:^1.24.0" tslib: "npm:^2.6.2" - checksum: 10c0/cac06f67ec132f65eb1ff29fdf5adc700d2aa7ccf46e19f7d2cf75f3a16d16a60e4563f4e30b5afec66f29444fdcce25f15ea639324d54d8d5a4679608c5dd98 + checksum: 10c0/5f647b2840f9d717b908d9a473b377f3a3f26eb8251c62fe9671e7c7a78637f5ef841012e2e1b4aaae5b48eb32c9a11d4ef449af691938019cc4deb378d9a9b5 languageName: node linkType: hard -"@aws-sdk/lib-storage@npm:^3.1045.0": - version: 3.1045.0 - resolution: "@aws-sdk/lib-storage@npm:3.1045.0" +"@aws-sdk/lib-storage@npm:^3.1053.0": + version: 3.1053.0 + resolution: "@aws-sdk/lib-storage@npm:3.1053.0" dependencies: - "@smithy/middleware-endpoint": "npm:^4.4.32" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.13" - "@smithy/types": "npm:^4.14.1" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" buffer: "npm:5.6.0" events: "npm:3.3.0" stream-browserify: "npm:3.0.0" tslib: "npm:^2.6.2" peerDependencies: - "@aws-sdk/client-s3": ^3.1045.0 - checksum: 10c0/7b17d5118f0c22780235c872b931dfa9d8af58bf3eea85f2e1514dd6169f5bcf56ad492cd87be20f68aabb22290f8fd7a8481b8bc3a0d5399933093b330c4f9a + "@aws-sdk/client-s3": ^3.1053.0 + checksum: 10c0/1773c862af0043c65c90983c40ede38a1498281c81c2657e425a27b283d84c04e7a86fcb66cadb81fcfab6143c865d02bf63bdf42ac0f500d3ffe8b3ca65ace3 languageName: node linkType: hard -"@aws-sdk/middleware-bucket-endpoint@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/middleware-bucket-endpoint@npm:3.972.10" +"@aws-sdk/middleware-bucket-endpoint@npm:^3.972.15": + version: 3.972.15 + resolution: "@aws-sdk/middleware-bucket-endpoint@npm:3.972.15" dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-arn-parser": "npm:^3.972.3" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-config-provider": "npm:^4.2.2" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/5529288142e0ebfbd985a257dbbb0f3510981a6ef56ce449465458ca12f7bcbbb9bfba9e1788c925329443604d4a438275f30254ef1d47e7931da798fb6e6765 + checksum: 10c0/1bbfeb06ee7ad467492f150a80ad1722e58bb689b702f5e325982f4a9be32b02eeac0e541c56a09f9bcbca03d2b96b7be1051c290bde88b060ba14166abbd17c languageName: node linkType: hard -"@aws-sdk/middleware-expect-continue@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/middleware-expect-continue@npm:3.972.10" +"@aws-sdk/middleware-expect-continue@npm:^3.972.13": + version: 3.972.13 + resolution: "@aws-sdk/middleware-expect-continue@npm:3.972.13" dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/c91588169621597bed09aa53f9bf858b83a0c8b8b84d6838ed3729c8222a7b7d5819595fd2617ca8f859e8471ca7e7132bb7d1694d5ada17039dea53cc707e4b + checksum: 10c0/65342dbffc2df1f2acd0525808a635b6ad55b4b7060c3de0a33167dba826a783a731a1d7ce51054e6cf27b3bff18fd4e63591018c3be89f819357e83a6ad9181 languageName: node linkType: hard -"@aws-sdk/middleware-flexible-checksums@npm:^3.974.16": - version: 3.974.16 - resolution: "@aws-sdk/middleware-flexible-checksums@npm:3.974.16" +"@aws-sdk/middleware-flexible-checksums@npm:^3.974.21": + version: 3.974.21 + resolution: "@aws-sdk/middleware-flexible-checksums@npm:3.974.21" dependencies: "@aws-crypto/crc32": "npm:5.2.0" "@aws-crypto/crc32c": "npm:5.2.0" "@aws-crypto/util": "npm:5.2.0" - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/crc64-nvme": "npm:^3.972.7" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/is-array-buffer": "npm:^4.2.2" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-stream": "npm:^4.5.25" - "@smithy/util-utf8": "npm:^4.2.2" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/crc64-nvme": "npm:^3.972.9" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/0725e497e2ebd4201682a786b28da90acc9c86459bfd6a3a29591021b7be4e5e17aee2628b71921eba003740d49b88d48eab8bd80220dfc5aa16dc7c50488775 + checksum: 10c0/4d86705258763ea5b775012cf28ead626806966f81e5bd61841afb3915d2bb13a11b73e31869845d67f9a232a4b48b46a6157815016451caa8dc8748d82f0211 languageName: node linkType: hard -"@aws-sdk/middleware-host-header@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/middleware-host-header@npm:3.972.10" - dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/e631b48f8d8fd40f8977da8d1fc012208f953000dd5645dc0a700c7283af8fafb996c9c1c50e40b8392c402ad98d11e0ddddb949896db5163a7f06e2385e619a - languageName: node - linkType: hard - -"@aws-sdk/middleware-location-constraint@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/middleware-location-constraint@npm:3.972.10" - dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/ef8ef1f3cf7d28e5b02edcc2b62cab07a380f7a02983bdfcaf24fbea35129c53ac5a1f5846ab28212b649d6c81f437e2a846f1f954fb374509ea174201bf09d4 - languageName: node - linkType: hard - -"@aws-sdk/middleware-logger@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/middleware-logger@npm:3.972.10" - dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/a24e0c98b3cf6c9b7960bf8979d2ab8f839fb89294ba8943136d99dbe7370cc45b010460ed7f5bf14ab6ad8e113ccec6387cf1bda655bcbdb58722df21d9b713 - languageName: node - linkType: hard - -"@aws-sdk/middleware-recursion-detection@npm:^3.972.11": +"@aws-sdk/middleware-location-constraint@npm:^3.972.11": version: 3.972.11 - resolution: "@aws-sdk/middleware-recursion-detection@npm:3.972.11" + resolution: "@aws-sdk/middleware-location-constraint@npm:3.972.11" dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@aws/lambda-invoke-store": "npm:^0.2.2" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/e52501b00e79e714218897ddec9edd40ecf33fdb43c19b00195c8ed71c8295d0d148f07465465d464f103a23aa535dc1daf60bbb5b95303e330767a5eba78f54 + checksum: 10c0/66971ef8ed09ce7c982161fa72c58acba14363d53450ab49cf9649790e101f3619156a6e4cdf9406afaf987228bc794f4bc2fef80443aad27771f4745e47016d languageName: node linkType: hard -"@aws-sdk/middleware-sdk-s3@npm:^3.972.37": - version: 3.972.37 - resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.37" +"@aws-sdk/middleware-sdk-s3@npm:^3.972.42": + version: 3.972.42 + resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.42" dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-arn-parser": "npm:^3.972.3" - "@smithy/core": "npm:^3.23.17" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/signature-v4": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.13" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-config-provider": "npm:^4.2.2" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-stream": "npm:^4.5.25" - "@smithy/util-utf8": "npm:^4.2.2" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.28" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/signature-v4": "npm:^5.4.2" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/c8d4ad6aa908eca70ef085ac2c55362229071caa9518ed538574cc4d317d9f1f4e2173d6b01259dd83f77356ad4b68656b5720a31b3effe01f7fe10aec265aed + checksum: 10c0/aa3505a0d447db03d396eefcd9f492bed47f7ad0d39633a87f408f33e96cd49e029a9749298c679148f6640594ff4327d8fdb767f4fcc378610cfc7bb7f46157 languageName: node linkType: hard -"@aws-sdk/middleware-ssec@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/middleware-ssec@npm:3.972.10" +"@aws-sdk/middleware-ssec@npm:^3.972.11": + version: 3.972.11 + resolution: "@aws-sdk/middleware-ssec@npm:3.972.11" dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/13e11c485e63d6b3d8a5f14888c6b8aea1c0a96a99826e840840b6974b9605b5f528f8869b021036e8615995d9e5ecd33d6e67af1561ed673d37292d356ca441 + checksum: 10c0/0d4b74487863bb1eefdb9c52506723aadec3b0def245c9352c927b613a462385f05e91a04e9af4d7d2b11796987360dbfb74c68ee47d670acddd379d78a4a299 languageName: node linkType: hard -"@aws-sdk/middleware-user-agent@npm:^3.972.38": - version: 3.972.38 - resolution: "@aws-sdk/middleware-user-agent@npm:3.972.38" - dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-endpoints": "npm:^3.996.8" - "@smithy/core": "npm:^3.23.17" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-retry": "npm:^4.3.6" - tslib: "npm:^2.6.2" - checksum: 10c0/b9cf9416bc276b4abf42513515de5ee45ee419255b5953c9e53b44010500fcc486de988351683ecae52bf00c6bb5819c67375261afe1375b8a2a44196a8b9884 - languageName: node - linkType: hard - -"@aws-sdk/nested-clients@npm:^3.997.6": - version: 3.997.6 - resolution: "@aws-sdk/nested-clients@npm:3.997.6" +"@aws-sdk/nested-clients@npm:^3.997.11": + version: 3.997.11 + resolution: "@aws-sdk/nested-clients@npm:3.997.11" dependencies: "@aws-crypto/sha256-browser": "npm:5.2.0" "@aws-crypto/sha256-js": "npm:5.2.0" - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/middleware-host-header": "npm:^3.972.10" - "@aws-sdk/middleware-logger": "npm:^3.972.10" - "@aws-sdk/middleware-recursion-detection": "npm:^3.972.11" - "@aws-sdk/middleware-user-agent": "npm:^3.972.38" - "@aws-sdk/region-config-resolver": "npm:^3.972.13" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-endpoints": "npm:^3.996.8" - "@aws-sdk/util-user-agent-browser": "npm:^3.972.10" - "@aws-sdk/util-user-agent-node": "npm:^3.973.24" - "@smithy/config-resolver": "npm:^4.4.17" - "@smithy/core": "npm:^3.23.17" - "@smithy/fetch-http-handler": "npm:^5.3.17" - "@smithy/hash-node": "npm:^4.2.14" - "@smithy/invalid-dependency": "npm:^4.2.14" - "@smithy/middleware-content-length": "npm:^4.2.14" - "@smithy/middleware-endpoint": "npm:^4.4.32" - "@smithy/middleware-retry": "npm:^4.5.7" - "@smithy/middleware-serde": "npm:^4.2.20" - "@smithy/middleware-stack": "npm:^4.2.14" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/node-http-handler": "npm:^4.6.1" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.13" - "@smithy/types": "npm:^4.14.1" - "@smithy/url-parser": "npm:^4.2.14" - "@smithy/util-base64": "npm:^4.3.2" - "@smithy/util-body-length-browser": "npm:^4.2.2" - "@smithy/util-body-length-node": "npm:^4.2.3" - "@smithy/util-defaults-mode-browser": "npm:^4.3.49" - "@smithy/util-defaults-mode-node": "npm:^4.2.54" - "@smithy/util-endpoints": "npm:^3.4.2" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-retry": "npm:^4.3.6" - "@smithy/util-utf8": "npm:^4.2.2" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.28" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/fetch-http-handler": "npm:^5.4.3" + "@smithy/node-http-handler": "npm:^4.7.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/05c74c7362be74c723b64667763bd1e635c8d566456f70b64fa26546e7c605a49bf1bede7c2f5c293a0677b737093bbdc9b957a26124b9e1de5acf715dc57bb4 + checksum: 10c0/c48276a25bb4424835d733c0cc4a5891bad9578245e5c7fb39a8700ad036ee6c81c6a258b86ef0af3b2a5ace507c9fd79a912ceb377b7b8e2933c042d0d8e6a6 languageName: node linkType: hard -"@aws-sdk/region-config-resolver@npm:^3.972.13": - version: 3.972.13 - resolution: "@aws-sdk/region-config-resolver@npm:3.972.13" +"@aws-sdk/s3-presigned-post@npm:^3.1053.0": + version: 3.1053.0 + resolution: "@aws-sdk/s3-presigned-post@npm:3.1053.0" dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/config-resolver": "npm:^4.4.17" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/client-s3": "npm:3.1053.0" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/signature-v4": "npm:^5.4.2" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/8cc3e5433ccf9ec4efb6d12ccd924701cfd6fb018124c9e5106486da10402ea1b83b0855353dae5e0f31ad2c7b6d962ac832350a5cdbeda59a30231525fd1118 + checksum: 10c0/0fab0a1d410a7c044d49262d674748232d8ed5e3bdcf497cfe9fac3dd4f2151da6bff4d28a87874eec692f547cfa5416b33db35e5f5bbf1b224a587e9252fbfd languageName: node linkType: hard -"@aws-sdk/s3-presigned-post@npm:^3.1045.0": - version: 3.1045.0 - resolution: "@aws-sdk/s3-presigned-post@npm:3.1045.0" +"@aws-sdk/s3-request-presigner@npm:^3.1053.0": + version: 3.1053.0 + resolution: "@aws-sdk/s3-request-presigner@npm:3.1053.0" dependencies: - "@aws-sdk/client-s3": "npm:3.1045.0" - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-format-url": "npm:^3.972.10" - "@smithy/middleware-endpoint": "npm:^4.4.32" - "@smithy/signature-v4": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-hex-encoding": "npm:^4.2.2" - "@smithy/util-utf8": "npm:^4.2.2" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.28" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/1cac9e6f0dcf31af1d1de2f3ebbe17cc0a6dca833aa1416cceec64753c53abd1c83b42109ba5a58888f981d33add58ae1ec3c3e427237bacacd0dcd93dcb103b + checksum: 10c0/27c28f7732581e3525555ed8116f653b6cd4f03ea8e9e3ad5734bf0716ab818a4aca1e7b78129f92112d0d4cc69489c5ac101cc9c3892d7c6ca8759c93f41bd2 languageName: node linkType: hard -"@aws-sdk/s3-request-presigner@npm:^3.1045.0": - version: 3.1045.0 - resolution: "@aws-sdk/s3-request-presigner@npm:3.1045.0" +"@aws-sdk/signature-v4-crt@npm:^3.1053.0": + version: 3.1053.0 + resolution: "@aws-sdk/signature-v4-crt@npm:3.1053.0" dependencies: - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" - "@aws-sdk/types": "npm:^3.973.8" - "@aws-sdk/util-format-url": "npm:^3.972.10" - "@smithy/middleware-endpoint": "npm:^4.4.32" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/smithy-client": "npm:^4.12.13" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/crt-loader": "npm:^3.972.43" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.28" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/signature-v4": "npm:^5.4.2" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/f9068614a93850d9af495dad84abcc1198b162ec60a62e5622ecd96678f761c35ed0b60efcdbcc200bd8220d7ed6ff7190b8ec9e0b033a302d8b6c2ff684d8ff + checksum: 10c0/84bde34dd8f68f1289f78bd571cb5126b56c7dec911edbbca92e5c5c5937d1c9a165db148451dfad6874ab9821cdee4a316885bbce4d264424fa27e4a8f03812 languageName: node linkType: hard -"@aws-sdk/signature-v4-crt@npm:^3.1045.0": - version: 3.1045.0 - resolution: "@aws-sdk/signature-v4-crt@npm:3.1045.0" +"@aws-sdk/signature-v4-multi-region@npm:^3.996.28": + version: 3.996.28 + resolution: "@aws-sdk/signature-v4-multi-region@npm:3.996.28" dependencies: - "@aws-sdk/crt-loader": "npm:^3.972.38" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.25" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/querystring-parser": "npm:^4.2.14" - "@smithy/signature-v4": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-middleware": "npm:^4.2.14" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/signature-v4": "npm:^5.4.2" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/f7197e1f2e60139b6e85114b941a050ea1fc340cb03596adbd6482414907a832638f4e2a91f05d85170f9dc4f8ec27cb324622ff442a7d29edd436f0d336ac0c + checksum: 10c0/374f2526c9d457e2a60165f85eb132a260cce16a3d84fe096034936b41539fced9f74d9d2e4fdc05c4bdff92a9beb5558c16e5a15475f81e361ded1591220849 languageName: node linkType: hard -"@aws-sdk/signature-v4-multi-region@npm:^3.996.25": - version: 3.996.25 - resolution: "@aws-sdk/signature-v4-multi-region@npm:3.996.25" +"@aws-sdk/token-providers@npm:3.1052.0": + version: 3.1052.0 + resolution: "@aws-sdk/token-providers@npm:3.1052.0" dependencies: - "@aws-sdk/middleware-sdk-s3": "npm:^3.972.37" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/signature-v4": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" + "@aws-sdk/core": "npm:^3.974.13" + "@aws-sdk/nested-clients": "npm:^3.997.11" + "@aws-sdk/types": "npm:^3.973.9" + "@smithy/core": "npm:^3.24.3" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/05196c85d265e5e59df621c7844235a449a940ebc8264578c0f87d76b6fbb741650a5634433589b9223a05003198be214068eef7d6e50596196de0f1d1954b5d + checksum: 10c0/0e606a2d394ce324f0633b8964500cab7413bb83860f9f5342166bfe62269212e9441f508b163e13063caadc50013469a4cb8642190fe3b71511a578354b121d languageName: node linkType: hard -"@aws-sdk/token-providers@npm:3.1041.0": - version: 3.1041.0 - resolution: "@aws-sdk/token-providers@npm:3.1041.0" - dependencies: - "@aws-sdk/core": "npm:^3.974.8" - "@aws-sdk/nested-clients": "npm:^3.997.6" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/af70f8e23a98a750dcb661b43bbd896e4a2425f553336c491b118a058e46691689ac4fa980f69d2dae42d1488f3b859adbd2f347d73ac1261f44b421d2041101 - languageName: node - linkType: hard - -"@aws-sdk/types@npm:^3.222.0, @aws-sdk/types@npm:^3.973.8": +"@aws-sdk/types@npm:^3.222.0": version: 3.973.8 resolution: "@aws-sdk/types@npm:3.973.8" dependencies: @@ -661,37 +491,13 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/util-arn-parser@npm:^3.972.3": - version: 3.972.3 - resolution: "@aws-sdk/util-arn-parser@npm:3.972.3" +"@aws-sdk/types@npm:^3.973.9": + version: 3.973.9 + resolution: "@aws-sdk/types@npm:3.973.9" dependencies: + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/75c94dcd5d99a60375ce3474b0ee4f1ca17abdcd46ffbf34ce9d2e15238d77903c8993dddd46f1f328a7989c5aaec0c7dfef8b3eaa3e1125bea777399cfc46f2 - languageName: node - linkType: hard - -"@aws-sdk/util-endpoints@npm:^3.996.8": - version: 3.996.8 - resolution: "@aws-sdk/util-endpoints@npm:3.996.8" - dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/types": "npm:^4.14.1" - "@smithy/url-parser": "npm:^4.2.14" - "@smithy/util-endpoints": "npm:^3.4.2" - tslib: "npm:^2.6.2" - checksum: 10c0/66f17e85357ab8e265ab7d1c9a69a064ad3bea99420c786be9ef1f92bc71dca22d328bbceeaf6c64b4a3c37161b78318a3e4a424bf247dcb211d7ae29344db2f - languageName: node - linkType: hard - -"@aws-sdk/util-format-url@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/util-format-url@npm:3.972.10" - dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/querystring-builder": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/d97445228f8ae9f8b7b53659e57d68c28f406d025d2902c6d1ba9bbb386d990011951d77f5a3d82360dc7bc5fd39a12c5e8bc27975ede72e586466597857cd19 + checksum: 10c0/8164f908a004c23927109b86f44e9d112804aaa32cd654b260f79b7c2c2f9fb6802b72ccf73cbbf6fa1c613e660ce5b45835018db94713a59714e8ff762aaf2a languageName: node linkType: hard @@ -704,37 +510,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/util-user-agent-browser@npm:^3.972.10": - version: 3.972.10 - resolution: "@aws-sdk/util-user-agent-browser@npm:3.972.10" - dependencies: - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/types": "npm:^4.14.1" - bowser: "npm:^2.11.0" - tslib: "npm:^2.6.2" - checksum: 10c0/e139dda2cb51a0a3553c80ec6f89c39cb1292876c116f8449f21a7fdbe39bd7b545ef8ea69a447dd9fa2aa43c99f625ee6a55cbf6d8e6cf2094d0ef00ceb1e36 - languageName: node - linkType: hard - -"@aws-sdk/util-user-agent-node@npm:^3.973.24": - version: 3.973.24 - resolution: "@aws-sdk/util-user-agent-node@npm:3.973.24" - dependencies: - "@aws-sdk/middleware-user-agent": "npm:^3.972.38" - "@aws-sdk/types": "npm:^3.973.8" - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-config-provider": "npm:^4.2.2" - tslib: "npm:^2.6.2" - peerDependencies: - aws-crt: ">=1.0.0" - peerDependenciesMeta: - aws-crt: - optional: true - checksum: 10c0/859c6441d1d24594d73a125c2a335faeb412a5cc3ab318005ce2e4904c3f9a0c6781437ae0fb2e3a1eb2343146dafbb9ac037ea88fbd8e78d50f7153732c5bb4 - languageName: node - linkType: hard - "@aws-sdk/util-utf8-browser@npm:^3.259.0": version: 3.259.0 resolution: "@aws-sdk/util-utf8-browser@npm:3.259.0" @@ -744,15 +519,15 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/xml-builder@npm:^3.972.22": - version: 3.972.22 - resolution: "@aws-sdk/xml-builder@npm:3.972.22" +"@aws-sdk/xml-builder@npm:^3.972.25": + version: 3.972.25 + resolution: "@aws-sdk/xml-builder@npm:3.972.25" dependencies: "@nodable/entities": "npm:2.1.0" - "@smithy/types": "npm:^4.14.1" - fast-xml-parser: "npm:5.7.2" + "@smithy/types": "npm:^4.14.2" + fast-xml-parser: "npm:5.7.3" tslib: "npm:^2.6.2" - checksum: 10c0/4d9a7056a8ce6af639a9fa354f70a5a895b2e23c06c027776849d32ba18aa0d7f174133f1bc15756b79ac2bfdb9d990f092fb76a3891a7d1f6b03a424a8a6735 + checksum: 10c0/6bb00d3d429dd7622744a08e1fbd4f1df8eac2e348146a37b38189cc57c55be7cb5db222aacbfa585414a8416070c8486aff52bdfced72552c268044de6dd04c languageName: node linkType: hard @@ -6163,169 +5938,36 @@ __metadata: languageName: node linkType: hard -"@smithy/chunked-blob-reader-native@npm:^4.2.3": - version: 4.2.3 - resolution: "@smithy/chunked-blob-reader-native@npm:4.2.3" - dependencies: - "@smithy/util-base64": "npm:^4.3.2" - tslib: "npm:^2.6.2" - checksum: 10c0/cac49faa52e1692fb2c9837252c6a4cbbe1eaba2b90b267d5e36e935735fa419bfd83f98b8c933e0cf03cabb914a409c2002f4f55184ea1b5cae83cd8fa4f617 - languageName: node - linkType: hard - -"@smithy/chunked-blob-reader@npm:^5.2.2": - version: 5.2.2 - resolution: "@smithy/chunked-blob-reader@npm:5.2.2" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/ec1021d9e1d2cff7e3168a3c29267387cec8857e4ed1faa80e77f5671a50a241136098b4801a6a1d7ba8b348e8c936792627bd698ab4cf00e0ed73479eb51abd - languageName: node - linkType: hard - -"@smithy/config-resolver@npm:^4.4.17": - version: 4.5.0 - resolution: "@smithy/config-resolver@npm:4.5.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/d85777a1ee614c4574cf269ace4bde4ebf7dadf2d6bfc853d6e916246cb7679a47056d1a1f91f6c5f4eab01cdadc49a7f56b0c889e4f2e3929a06efbaa8e19ec - languageName: node - linkType: hard - -"@smithy/core@npm:^3.23.17, @smithy/core@npm:^3.24.0": - version: 3.24.0 - resolution: "@smithy/core@npm:3.24.0" +"@smithy/core@npm:^3.24.3, @smithy/core@npm:^3.24.4": + version: 3.24.4 + resolution: "@smithy/core@npm:3.24.4" dependencies: "@aws-crypto/crc32": "npm:5.2.0" - "@smithy/types": "npm:^4.14.1" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/f317e449a193e9e12afd76719ea58cdfb316d03fc46e6452b20a089665c86941a76f30e7c7a0bc9e2232334e673d432c08f647ca6651a2c145a33198ec0ee0d6 + checksum: 10c0/0951177e0556baf63093e30e2768991153f364655aafcaf4fca297b1d120ff3a7f445f068c3de65e4224dbecd99d86ca9e1f5c7d96841756905454c321951cd5 languageName: node linkType: hard -"@smithy/credential-provider-imds@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/credential-provider-imds@npm:4.2.14" +"@smithy/credential-provider-imds@npm:^4.3.2": + version: 4.3.4 + resolution: "@smithy/credential-provider-imds@npm:4.3.4" dependencies: - "@smithy/node-config-provider": "npm:^4.3.14" - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/url-parser": "npm:^4.2.14" + "@smithy/core": "npm:^3.24.4" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/62ced0249cb1ba64c6dd98a90b35b93dd9e3f1469d020752c46b5a83ecef38280f4b29c2f63e3b0c414a2fa2ec7631a19370415c80ed4d6ea18a9be040803126 + checksum: 10c0/4f9dbe2ad0bf193dd5d2485a4b1b5cb2cfa698a54f32a90eac70d479ac8710cf349d141d31d7388d47136f7fb4f90da565a3b6226d2e30d6245b83c907b452ac languageName: node linkType: hard -"@smithy/eventstream-codec@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/eventstream-codec@npm:4.2.14" +"@smithy/fetch-http-handler@npm:^5.4.3": + version: 5.4.4 + resolution: "@smithy/fetch-http-handler@npm:5.4.4" dependencies: - "@aws-crypto/crc32": "npm:5.2.0" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-hex-encoding": "npm:^4.2.2" + "@smithy/core": "npm:^3.24.4" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/c2f9139004b3f75d3621b21e0ef80f850baf4955cce230e6d18faef171c2b4dc62694b1d86d4000a7ec1babb482afeca666520f69cf31455ed63259da6b2a3ee - languageName: node - linkType: hard - -"@smithy/eventstream-serde-browser@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/eventstream-serde-browser@npm:4.2.14" - dependencies: - "@smithy/eventstream-serde-universal": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/b624cf962ec84bbc61c419938de07548cbff3b1049fe5fb0c88097bdb516e6f3af22f6856ab3a5212cf352e7f1c69b0c5d03370cb4fe7f91a29dff975c385da5 - languageName: node - linkType: hard - -"@smithy/eventstream-serde-config-resolver@npm:^4.3.14": - version: 4.3.14 - resolution: "@smithy/eventstream-serde-config-resolver@npm:4.3.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/d889a6e12797928c9507e99193f86ba0b7807441b67305643ec6b8b953c54237aa0ae7a4baaf00eb72ff07e3c71e88d6225de3db3d2b33729af38adb81b593f8 - languageName: node - linkType: hard - -"@smithy/eventstream-serde-node@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/eventstream-serde-node@npm:4.2.14" - dependencies: - "@smithy/eventstream-serde-universal": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/c9dda5011ef3e6565dfa483811567b942fd822dfefb41768213fc9322b5298075c4a9228f8aa745af5bcebb23a2a61e24f091ce2be263da1ca3713aafa89c243 - languageName: node - linkType: hard - -"@smithy/eventstream-serde-universal@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/eventstream-serde-universal@npm:4.2.14" - dependencies: - "@smithy/eventstream-codec": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/82cf563ff67b6543f0981dc3b1ef7fc3b507d5322e611a4f7fde4ae90d1d0eae172298c5bdda3837c5dd5c4d8839d59b72189797e178709be7b1996b3ea71a64 - languageName: node - linkType: hard - -"@smithy/fetch-http-handler@npm:^5.3.17": - version: 5.3.17 - resolution: "@smithy/fetch-http-handler@npm:5.3.17" - dependencies: - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/querystring-builder": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-base64": "npm:^4.3.2" - tslib: "npm:^2.6.2" - checksum: 10c0/8adac6bf9d5735f8ddbe9e59dd268f985881b64b03cba7e83401471b3094139189476324fe640bbd19d75f5cd8e098d9a2a7f4925bc9fadecd1ccbe937773c12 - languageName: node - linkType: hard - -"@smithy/hash-blob-browser@npm:^4.2.15": - version: 4.2.15 - resolution: "@smithy/hash-blob-browser@npm:4.2.15" - dependencies: - "@smithy/chunked-blob-reader": "npm:^5.2.2" - "@smithy/chunked-blob-reader-native": "npm:^4.2.3" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/0f1ee2fd786306c604c4c08bb3b6ba00bf99fd2ba36743ca5d2695c8d37e02bb84435d5d55ebde6483a506ebcc20c42203750671cdd73618255499ef8cd0852b - languageName: node - linkType: hard - -"@smithy/hash-node@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/hash-node@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - "@smithy/util-buffer-from": "npm:^4.2.2" - "@smithy/util-utf8": "npm:^4.2.2" - tslib: "npm:^2.6.2" - checksum: 10c0/c2cfc5dac4f2b996c4c5c503d3c26e52fcd0a647e71541182b24a48925801659828c9d378dad6857444b9d997c1655bdb23f6db5994ad8b7c814b2d0a09655b7 - languageName: node - linkType: hard - -"@smithy/hash-stream-node@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/hash-stream-node@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - "@smithy/util-utf8": "npm:^4.2.2" - tslib: "npm:^2.6.2" - checksum: 10c0/db14c0879527dfc0a184a4958e8f229e1e3f15d0e612ad4596ee92de8f9d672a5ead4a325e517f235129530a8d8472c2bb628d0620af6662abc65adfe71f573e - languageName: node - linkType: hard - -"@smithy/invalid-dependency@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/invalid-dependency@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/deba2c21232050de87e7893b86a27a8f080ace391a3cccf22d7aee183bc3b392247f3bb1a0e4f0b6ea6f928c18ba035fd2ed3af257178ba84f3564d47c635d16 + checksum: 10c0/7818f546de5507226328b0647db0ef83974a588d82aed6ccd9d6741c3f256475ce3151034608c93c964c9febcb3ea91e814c3b20365c88dca26c02d8e3b4380e languageName: node linkType: hard @@ -6338,175 +5980,25 @@ __metadata: languageName: node linkType: hard -"@smithy/is-array-buffer@npm:^4.2.2": - version: 4.2.2 - resolution: "@smithy/is-array-buffer@npm:4.2.2" +"@smithy/node-http-handler@npm:^4.7.3": + version: 4.7.4 + resolution: "@smithy/node-http-handler@npm:4.7.4" dependencies: + "@smithy/core": "npm:^3.24.4" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/ab5bf2cad0f3bc6c1d882e15de436b80fa1504739ab9facc3d7006003870855480a6b15367e516fd803b3859c298b1fcc9212c854374b7e756cda01180bab0a6 + checksum: 10c0/12e4508aab964756ad54987884c399b4a957a795a5e8244e639bec699d42f5bf7fe286fa1a345d07bb532623dcc4220fd8eee043387b9242185c3cafcc235cb2 languageName: node linkType: hard -"@smithy/md5-js@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/md5-js@npm:4.2.14" +"@smithy/signature-v4@npm:^5.4.2": + version: 5.4.4 + resolution: "@smithy/signature-v4@npm:5.4.4" dependencies: - "@smithy/types": "npm:^4.14.1" - "@smithy/util-utf8": "npm:^4.2.2" + "@smithy/core": "npm:^3.24.4" + "@smithy/types": "npm:^4.14.2" tslib: "npm:^2.6.2" - checksum: 10c0/d0bd6f08a3e37e83685fc1eba6621ee0f19576466ba23e7239dc201c97f83d46f6b9f7ddecc48ab74535b1f498d9facc43f18018f168dc26d2b5d0f9c72af761 - languageName: node - linkType: hard - -"@smithy/middleware-content-length@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/middleware-content-length@npm:4.2.14" - dependencies: - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/c26cc36504ad9a720e42f009bcc185b16e35ff64644bbec710a998c071d3366face29bb6fa68744adc7312356803666922459e416f3a7ae5c804841957832c3d - languageName: node - linkType: hard - -"@smithy/middleware-endpoint@npm:^4.4.32": - version: 4.5.0 - resolution: "@smithy/middleware-endpoint@npm:4.5.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/7e2dced85eda01cc4590a63d9c9f7c157a8a4bd6c08e6229a37cd68830e8ab0e902e9769fddf2f052bca640c70c911d9ea46300a9de3afbfd3b30f5ba21bec41 - languageName: node - linkType: hard - -"@smithy/middleware-retry@npm:^4.5.7": - version: 4.6.0 - resolution: "@smithy/middleware-retry@npm:4.6.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/fb94a3643833802e7c54c3e125b381a3445f1f6550355d8283480f13097bfaa9cd79fc77d6cd58dd42a4173430e244a892efbe8118a3aaec3f6fca504c04a5c4 - languageName: node - linkType: hard - -"@smithy/middleware-serde@npm:^4.2.20": - version: 4.3.0 - resolution: "@smithy/middleware-serde@npm:4.3.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/e493ac0119d833eb1095ed3fda81e64a68397f64fc978da1390f7fb46d2d027b1caf5278fb47c18c3779ba46a05f6187a6678b204789f8dd9df044b5abbaa410 - languageName: node - linkType: hard - -"@smithy/middleware-stack@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/middleware-stack@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/5a0323c50b399c4a2ff0d91b219c7c285b006f905f66b291b6013a4e94f14c036ff5a74c565989afc3c6f0fafc6c266bca6746b79e242403713b7d18dc266a92 - languageName: node - linkType: hard - -"@smithy/node-config-provider@npm:^4.3.14": - version: 4.3.14 - resolution: "@smithy/node-config-provider@npm:4.3.14" - dependencies: - "@smithy/property-provider": "npm:^4.2.14" - "@smithy/shared-ini-file-loader": "npm:^4.4.9" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/59033a2fde5327d9ae1a0304a0eb2c3145141024cb4dcb58c5cd3c48371cd3a55d7228a3d2f33a5785b2d6a0a35475cbd0d1b2435d964c824683ac89a664e926 - languageName: node - linkType: hard - -"@smithy/node-http-handler@npm:^4.6.1": - version: 4.7.0 - resolution: "@smithy/node-http-handler@npm:4.7.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/bc0fc552675d0d74137b43cf6c7b1ec2a7f9a4d12e506b00aa1ab204d9e31fa5fe0904eb949c3a0be8d8209f8fd2ca658fe7b3561f979b3ed376e212c5122e10 - languageName: node - linkType: hard - -"@smithy/property-provider@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/property-provider@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/8d3da90e228b53885d1e82f28b33c095b72f3b1cb5dcd7f7edcd96292d90848e9cdfed85cef00040e198343e850acef61540e4de24bd10b07fbc8e1e8f4a1fdd - languageName: node - linkType: hard - -"@smithy/protocol-http@npm:^5.3.14": - version: 5.3.14 - resolution: "@smithy/protocol-http@npm:5.3.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/ed7306e7e4b919fdacf60d1928f003ac4c4679cffd7472b078547fbed7b6cb9ba524f105b1871c2cd79222871169d3183257fd0a1a81c172fa7cf0a9abaf35f9 - languageName: node - linkType: hard - -"@smithy/querystring-builder@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/querystring-builder@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - "@smithy/util-uri-escape": "npm:^4.2.2" - tslib: "npm:^2.6.2" - checksum: 10c0/ae2ceec55b4f32b73fe2eca710563b9dbe65c81157ed58c12c282bad6445998f1fe99d723591f9bac4ae6106d84213b57e960176865fb2dec78fc3bdf024b14b - languageName: node - linkType: hard - -"@smithy/querystring-parser@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/querystring-parser@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/245923618197bbae5eb38b72807368f397fafccee8e98cd98ee7d8961a34acb57b5176fa5fe8083b796229043f135ea775060f17e14aa12080a5d7cdfbf56333 - languageName: node - linkType: hard - -"@smithy/shared-ini-file-loader@npm:^4.4.9": - version: 4.4.9 - resolution: "@smithy/shared-ini-file-loader@npm:4.4.9" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/9bf96ea80cedff027373c5547ffa53b35d272292b7d142a86211726343061953a34610f3dbd02153bb285c7c0f3802c5a25b4e27870e8068d777abdcaa9c1748 - languageName: node - linkType: hard - -"@smithy/signature-v4@npm:^5.3.14": - version: 5.3.14 - resolution: "@smithy/signature-v4@npm:5.3.14" - dependencies: - "@smithy/is-array-buffer": "npm:^4.2.2" - "@smithy/protocol-http": "npm:^5.3.14" - "@smithy/types": "npm:^4.14.1" - "@smithy/util-hex-encoding": "npm:^4.2.2" - "@smithy/util-middleware": "npm:^4.2.14" - "@smithy/util-uri-escape": "npm:^4.2.2" - "@smithy/util-utf8": "npm:^4.2.2" - tslib: "npm:^2.6.2" - checksum: 10c0/ccc788992e281a681984e079b7194a219af40cf4f7087988eba69c4947264b9a83ac00a806164b9074c7e2f0697e492fa2b377b56b783316d247be02aaccbdb3 - languageName: node - linkType: hard - -"@smithy/smithy-client@npm:^4.12.13": - version: 4.13.0 - resolution: "@smithy/smithy-client@npm:4.13.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/2f9aadfcfea48d3892a9ccac66bfb5b335231376d0c9f99d0fa0628ca126a3c6d9aa375db0ce0d28f347a15be49d74c75a8991c097664ebefa630fdd77a20c77 + checksum: 10c0/08f5c12c21f4e0beb54b837d8399f9743d4313ec0baf37f4d963aa90623f68858f8c92015ab17a20b5196c448d1504a2ca9777084efd9c17b6fd7faad54d9921 languageName: node linkType: hard @@ -6519,43 +6011,12 @@ __metadata: languageName: node linkType: hard -"@smithy/url-parser@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/url-parser@npm:4.2.14" - dependencies: - "@smithy/querystring-parser": "npm:^4.2.14" - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/360463fe1fb51b8a1c5b80f4a16df993ee4e87221e60ce51c428b0737d6f1325434ec572bb7afca7d65bb9a09c750f307822a23e42be675706ee71fedd7c6c06 - languageName: node - linkType: hard - -"@smithy/util-base64@npm:^4.3.2": - version: 4.3.2 - resolution: "@smithy/util-base64@npm:4.3.2" - dependencies: - "@smithy/util-buffer-from": "npm:^4.2.2" - "@smithy/util-utf8": "npm:^4.2.2" - tslib: "npm:^2.6.2" - checksum: 10c0/acc08ff0b482ef4473289be655e0adc21c33555a837bbbc1cc7121d70e3ad595807bcaaec7456d92e93d83c2e8773729d42f78d716ac7d91552845b50cd87d89 - languageName: node - linkType: hard - -"@smithy/util-body-length-browser@npm:^4.2.2": - version: 4.2.2 - resolution: "@smithy/util-body-length-browser@npm:4.2.2" +"@smithy/types@npm:^4.14.2": + version: 4.14.2 + resolution: "@smithy/types@npm:4.14.2" dependencies: tslib: "npm:^2.6.2" - checksum: 10c0/4444039b995068eeda3dd0b143eb22cf86c7ef7632a590559dad12b0e681a728a7d82f8ed4f4019cdc09a72e4b5f14281262b64db75514dbcc08d170d9e8f1db - languageName: node - linkType: hard - -"@smithy/util-body-length-node@npm:^4.2.3": - version: 4.2.3 - resolution: "@smithy/util-body-length-node@npm:4.2.3" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/5345d75e8c3e0a726ed6e2fe604dfe97b0bcc37e940b30b045e3e116fced9555d8a9fa684d9f898111773eeef548bcb5f0bb03ee67c206ee498064842d6173b5 + checksum: 10c0/8bdad874d9e47233c6f2f74ac001e810b87b0a7c6504b9a9490536c9733ffec36b7b2a73010b31044f22553819a8d1e8bb9b2310f09257b1278a048a5f9679f8 languageName: node linkType: hard @@ -6569,103 +6030,6 @@ __metadata: languageName: node linkType: hard -"@smithy/util-buffer-from@npm:^4.2.2": - version: 4.2.2 - resolution: "@smithy/util-buffer-from@npm:4.2.2" - dependencies: - "@smithy/is-array-buffer": "npm:^4.2.2" - tslib: "npm:^2.6.2" - checksum: 10c0/d9acea42ee035e494da0373de43a25fa14f81d11e3605a2c6c5f56efef9a4f901289ec2ba343ebb3ad32ae4e0cfe517e8b6b3449a4297d1c060889c83cd1c94f - languageName: node - linkType: hard - -"@smithy/util-config-provider@npm:^4.2.2": - version: 4.2.2 - resolution: "@smithy/util-config-provider@npm:4.2.2" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/cfd3350607ec00b6294724033aa3e469f8d9d258a7a70772e67d80c301f2eae62b17850ea0c8d8a20208b3f4f1ea5aa0019f45545a6c0577a94a47a05c81d8e8 - languageName: node - linkType: hard - -"@smithy/util-defaults-mode-browser@npm:^4.3.49": - version: 4.4.0 - resolution: "@smithy/util-defaults-mode-browser@npm:4.4.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/d85bae5eeeda85db720426490a079802f9432dd06b4bf8b0475deca1b3d8c724e8eee947fab9d6aa2a048a321a7ed393405c9bab7a992bf86b603f473de718da - languageName: node - linkType: hard - -"@smithy/util-defaults-mode-node@npm:^4.2.54": - version: 4.3.0 - resolution: "@smithy/util-defaults-mode-node@npm:4.3.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/a22cd4a14e79a9eb8ac30d59a78f165977ac755adc7851cec084efdafc29918af1075fb5c7398577871d26bdab4c53650182fc887eb48e07b7b0da896d7efa64 - languageName: node - linkType: hard - -"@smithy/util-endpoints@npm:^3.4.2": - version: 3.5.0 - resolution: "@smithy/util-endpoints@npm:3.5.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/b1598ad5424b4648be5df8f3ddea99c02b301cac56445ffd7fff66dca7f3a851578c86c9bb0b3e3332589103fc823a7f0a14157683de19b02d76fd299241cb04 - languageName: node - linkType: hard - -"@smithy/util-hex-encoding@npm:^4.2.2": - version: 4.2.2 - resolution: "@smithy/util-hex-encoding@npm:4.2.2" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/b2f2bca85475cd599b998e169b7026db40edc2a0a338ad7988b9c94d9f313c5f7e08451aced4f8e62dbeaa54e15d1300d76c572b83ffa36f9f8ca22b6fc84bd7 - languageName: node - linkType: hard - -"@smithy/util-middleware@npm:^4.2.14": - version: 4.2.14 - resolution: "@smithy/util-middleware@npm:4.2.14" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/6ba5026b70ad7b58fac89d7428c0b1679be2a97a8fb47811a39e0183901a3c6ca8732ee225ddfda28e7b86223d49983ff709421905da571bc00b82c660e4fc27 - languageName: node - linkType: hard - -"@smithy/util-retry@npm:^4.3.6": - version: 4.4.0 - resolution: "@smithy/util-retry@npm:4.4.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/c4e3a31331234f55f7473ad6c7165ff6f6a456b53f3a641e934bd8fa4591cf0fc2bc6a1c14a0ba44a5a9bb4565e7de61eccb2e5b5fb10dcf6dd61bdf71e2e8a8 - languageName: node - linkType: hard - -"@smithy/util-stream@npm:^4.5.25": - version: 4.6.0 - resolution: "@smithy/util-stream@npm:4.6.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/283ae66729690496a191bc92726f8423acbad6773622fa93293d14263d90845b32a9bff68369b08fe35a5875a06d9c8828621a125126738bc59a2834d6fd4f4e - languageName: node - linkType: hard - -"@smithy/util-uri-escape@npm:^4.2.2": - version: 4.2.2 - resolution: "@smithy/util-uri-escape@npm:4.2.2" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/33b6546086c975278d16b5029e6555df551b4bd1e3a84042544d1ef956a287fe033b317954b1737b2773e82b6f27ebde542956ff79ef0e8a813dc0dbf9d34a58 - languageName: node - linkType: hard - "@smithy/util-utf8@npm:^2.0.0": version: 2.3.0 resolution: "@smithy/util-utf8@npm:2.3.0" @@ -6676,26 +6040,6 @@ __metadata: languageName: node linkType: hard -"@smithy/util-utf8@npm:^4.2.2": - version: 4.2.2 - resolution: "@smithy/util-utf8@npm:4.2.2" - dependencies: - "@smithy/util-buffer-from": "npm:^4.2.2" - tslib: "npm:^2.6.2" - checksum: 10c0/55b5119873237519a9175491c74fd0a14acd4f9c54c7eec9ae547de6c554098912d46572edb12d5b52a0b9675c0577e2e63d1f7cb8e022ca342f5bf80b56a466 - languageName: node - linkType: hard - -"@smithy/util-waiter@npm:^4.3.0": - version: 4.4.0 - resolution: "@smithy/util-waiter@npm:4.4.0" - dependencies: - "@smithy/core": "npm:^3.24.0" - tslib: "npm:^2.6.2" - checksum: 10c0/f04d481d880ffaf18014ccaae6e776c0f39b0bd85f74620b5059d73183e81296ded8c8466033f1fb10d28f70b21f00edff8f25b270da06a5eecb9ac2a45a513a - languageName: node - linkType: hard - "@so-ric/colorspace@npm:^1.1.6": version: 1.1.6 resolution: "@so-ric/colorspace@npm:1.1.6" @@ -11699,26 +11043,27 @@ __metadata: languageName: node linkType: hard -"fast-xml-builder@npm:^1.1.5": - version: 1.1.8 - resolution: "fast-xml-builder@npm:1.1.8" +"fast-xml-builder@npm:^1.1.7": + version: 1.2.0 + resolution: "fast-xml-builder@npm:1.2.0" dependencies: - path-expression-matcher: "npm:^1.1.3" - checksum: 10c0/4dbe486abbbece4829b7d137d2b304e2b5f7791a466f35ac99195a3e14da1f34b229dee41e48028570e052831ccbd9df911274a8877d1418ccaffcce8fb5948a + path-expression-matcher: "npm:^1.5.0" + xml-naming: "npm:^0.1.0" + checksum: 10c0/84bb105cd04e91d6dcb746c4dbaeb12903b510e7ab9a06ffde55b5a582e005559a87d84467f18a655c6c4baf098f696fd74cee3cbe1aea9d01385907768ba32d languageName: node linkType: hard -"fast-xml-parser@npm:5.7.2": - version: 5.7.2 - resolution: "fast-xml-parser@npm:5.7.2" +"fast-xml-parser@npm:5.7.3": + version: 5.7.3 + resolution: "fast-xml-parser@npm:5.7.3" dependencies: "@nodable/entities": "npm:^2.1.0" - fast-xml-builder: "npm:^1.1.5" + fast-xml-builder: "npm:^1.1.7" path-expression-matcher: "npm:^1.5.0" strnum: "npm:^2.2.3" bin: fxparser: src/cli/cli.js - checksum: 10c0/d48439ce0700add82f5e7c6ccc5a1f06483beb7cd8e88caa83c6406843e52f14988e60d05cbb3a86ffe07e073807674c807e0764d94a280e1c96d7e2011dae8e + checksum: 10c0/eeb802855e852ce16121396297f04131c6dbc74f863be94f19e26e386656bdb31677af469ddc6627983a48b99d8842888460ac5413063cb648fde547bb579978 languageName: node linkType: hard @@ -15786,11 +15131,11 @@ __metadata: version: 0.0.0-use.local resolution: "outline@workspace:." dependencies: - "@aws-sdk/client-s3": "npm:^3.1045.0" - "@aws-sdk/lib-storage": "npm:^3.1045.0" - "@aws-sdk/s3-presigned-post": "npm:^3.1045.0" - "@aws-sdk/s3-request-presigner": "npm:^3.1045.0" - "@aws-sdk/signature-v4-crt": "npm:^3.1045.0" + "@aws-sdk/client-s3": "npm:^3.1053.0" + "@aws-sdk/lib-storage": "npm:^3.1053.0" + "@aws-sdk/s3-presigned-post": "npm:^3.1053.0" + "@aws-sdk/s3-request-presigner": "npm:^3.1053.0" + "@aws-sdk/signature-v4-crt": "npm:^3.1053.0" "@babel/cli": "npm:^7.28.6" "@babel/core": "npm:^7.28.6" "@babel/plugin-proposal-decorators": "npm:^7.28.6" @@ -16588,7 +15933,7 @@ __metadata: languageName: node linkType: hard -"path-expression-matcher@npm:^1.1.3, path-expression-matcher@npm:^1.5.0": +"path-expression-matcher@npm:^1.5.0": version: 1.5.0 resolution: "path-expression-matcher@npm:1.5.0" checksum: 10c0/646cb5bc66cd7d809a52288336f3ac1e6223f156fd8e912936e490e590f7f93e8056d4fd25fcbcc7da61bb698fa520112cb050372a3f65e7b79bd4afa0f77610 @@ -21464,6 +20809,13 @@ __metadata: languageName: node linkType: hard +"xml-naming@npm:^0.1.0": + version: 0.1.0 + resolution: "xml-naming@npm:0.1.0" + checksum: 10c0/8c7614865361bcb7e53e3e091dac21c567e2b92d447919b2f072775aa9dcfc94a5255bd52fbaa0fd53c93513e53a23a6a835218ad2af512451dbc678392f85fe + languageName: node + linkType: hard + "xmlbuilder@npm:^10.0.0": version: 10.1.1 resolution: "xmlbuilder@npm:10.1.1" From 8c1be701981e9b1c207c0f21658e92925423c76f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 25 May 2026 21:06:14 -0400 Subject: [PATCH 093/286] Disable collapsing settings sidebar (#12460) --- app/components/Sidebar/Settings.tsx | 32 ++++------------------------- app/components/Sidebar/Sidebar.tsx | 30 ++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/app/components/Sidebar/Settings.tsx b/app/components/Sidebar/Settings.tsx index b6047052ac..3b993e93dd 100644 --- a/app/components/Sidebar/Settings.tsx +++ b/app/components/Sidebar/Settings.tsx @@ -1,35 +1,30 @@ import { groupBy } from "es-toolkit/compat"; import { observer } from "mobx-react"; -import { BackIcon, SidebarIcon } from "outline-icons"; +import { BackIcon } from "outline-icons"; import { useCallback } from "react"; import { useTranslation } from "react-i18next"; import { useHistory, useLocation } from "react-router-dom"; import styled from "styled-components"; -import { metaDisplay } from "@shared/utils/keyboard"; import Flex from "~/components/Flex"; import Scrollable from "~/components/Scrollable"; import useSettingsConfig from "~/hooks/useSettingsConfig"; import useStores from "~/hooks/useStores"; import isCloudHosted from "~/utils/isCloudHosted"; import { settingsPath } from "~/utils/routeHelpers"; -import Tooltip from "../Tooltip"; import Sidebar from "./Sidebar"; import Header from "./components/Header"; import HistoryNavigation from "./components/HistoryNavigation"; import Section from "./components/Section"; import SidebarButton from "./components/SidebarButton"; import SidebarLink from "./components/SidebarLink"; -import ToggleButton from "./components/ToggleButton"; import Version from "./components/Version"; -import useMobile from "~/hooks/useMobile"; function SettingsSidebar() { - const { ui, integrations } = useStores(); + const { integrations } = useStores(); const { t } = useTranslation(); const history = useHistory(); const location = useLocation(); const configs = useSettingsConfig(); - const isMobile = useMobile(); const groupedConfig = groupBy( configs.filter((item) => @@ -45,31 +40,12 @@ function SettingsSidebar() { }, [history]); return ( - <Sidebar> + <Sidebar canCollapse={false}> <SidebarButton title={t("Return to App")} image={<StyledBackIcon />} onClick={returnToApp} - > - {isMobile ? null : ( - <Tooltip content={t("Toggle sidebar")} shortcut={`${metaDisplay}+.`}> - <ToggleButton - aria-label={ - ui.sidebarCollapsed - ? t("Expand sidebar") - : t("Collapse sidebar") - } - position="bottom" - image={<SidebarIcon />} - style={{ paddingInline: 4 }} - onClick={() => { - ui.toggleCollapsedSidebar(); - (document.activeElement as HTMLElement)?.blur(); - }} - /> - </Tooltip> - )} - </SidebarButton> + /> <Flex auto column> <Scrollable shadow> diff --git a/app/components/Sidebar/Sidebar.tsx b/app/components/Sidebar/Sidebar.tsx index 125962bee7..d086b27ed3 100644 --- a/app/components/Sidebar/Sidebar.tsx +++ b/app/components/Sidebar/Sidebar.tsx @@ -1,5 +1,6 @@ import { observer } from "mobx-react"; import * as React from "react"; +import { mergeRefs } from "react-merge-refs"; import { useWebHaptics } from "web-haptics/react"; import { useLocation } from "react-router-dom"; import styled, { css, useTheme } from "styled-components"; @@ -63,6 +64,8 @@ const Sidebar = React.forwardRef<HTMLDivElement, Props>(function Sidebar_( const [hasPointerMoved, setPointerMoved] = React.useState(false); const isSmallerThanMinimum = width < minWidth; const hoverTimeoutRef = React.useRef<NodeJS.Timeout | null>(null); + const internalRef = React.useRef<HTMLDivElement | null>(null); + const mergedRef = React.useMemo(() => mergeRefs([internalRef, ref]), [ref]); const handleDrag = React.useCallback( (event: MouseEvent) => { @@ -174,6 +177,31 @@ const Sidebar = React.forwardRef<HTMLDivElement, Props>(function Sidebar_( } }, [ui.sidebarIsClosed]); + // Reset stale hover state when the sidebar becomes visible after being + // hidden via display:none (e.g. returning from settings). Without this, a + // pointer-leave event never fires when navigating away while hovering, so + // isHovering stays true and the sidebar appears expanded until the cursor + // re-enters and leaves. + React.useEffect(() => { + const el = internalRef.current; + if (!el || typeof IntersectionObserver === "undefined") { + return; + } + let wasVisible = false; + const observer = new IntersectionObserver((entries) => { + for (const entry of entries) { + const nowVisible = entry.isIntersecting; + if (nowVisible && !wasVisible) { + setHovering(false); + setPointerMoved(false); + } + wasVisible = nowVisible; + } + }); + observer.observe(el); + return () => observer.disconnect(); + }, []); + React.useEffect(() => { if (isAnimating) { setTimeout(() => setAnimating(false), ANIMATION_MS); @@ -237,7 +265,7 @@ const Sidebar = React.forwardRef<HTMLDivElement, Props>(function Sidebar_( <TooltipProvider> <Container id="sidebar" - ref={ref} + ref={mergedRef} style={style} $hidden={hidden} $isHovering={isHovering} From f3da1bc79e193f65dce4718ec52811041197b623 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 07:06:56 -0400 Subject: [PATCH 094/286] fix: Remapping internal links on import (#12461) * fix: No remapping of internal links closes #9584 * PR feedback, testing * tsc --- server/models/Collection.test.ts | 16 ++ server/models/Collection.ts | 24 ++- server/queues/processors/ImportsProcessor.ts | 141 ++++++++++++++---- server/queues/tasks/JSONAPIImportTask.test.ts | 100 +++++++++++++ 4 files changed, 250 insertions(+), 31 deletions(-) diff --git a/server/models/Collection.test.ts b/server/models/Collection.test.ts index 50c971901c..12f192c42e 100644 --- a/server/models/Collection.test.ts +++ b/server/models/Collection.test.ts @@ -23,6 +23,22 @@ describe("#url", () => { }); expect(collection.path).toBe(`/collection/untitled-${collection.urlId}`); }); + + it("should return correct url with slugified collection name", () => { + const path = Collection.getPath({ + name: "Test Collection", + urlId: "abcdefghij", + }); + expect(path).toBe("/collection/test-collection-abcdefghij"); + }); + + it("should return untitled when collection name is empty", () => { + const path = Collection.getPath({ + name: "", + urlId: "abcdefghij", + }); + expect(path).toBe("/collection/untitled-abcdefghij"); + }); }); describe("getDocumentParents", () => { diff --git a/server/models/Collection.ts b/server/models/Collection.ts index b06715929b..64d121a081 100644 --- a/server/models/Collection.ts +++ b/server/models/Collection.ts @@ -322,10 +322,28 @@ class Collection extends ParanoidModel< /** The frontend path to this collection. */ get path(): string { - if (!this.name) { - return `/collection/untitled-${this.urlId}`; + return Collection.getPath({ + name: this.name, + urlId: this.urlId, + }); + } + + /** + * Returns the frontend path for a collection. + * + * @param name The collection name. + * @param urlId The collection URL ID. + * @returns the frontend path for the collection. + */ + static getPath({ name, urlId }: { name: string; urlId: string }): string { + if (!name) { + return `/collection/untitled-${urlId}`; } - return `/collection/${slugify(this.name)}-${this.urlId}`; + const slugifiedName = slugify(name); + if (!slugifiedName) { + return `/collection/untitled-${urlId}`; + } + return `/collection/${slugifiedName}-${urlId}`; } /** diff --git a/server/queues/processors/ImportsProcessor.ts b/server/queues/processors/ImportsProcessor.ts index d5eec938f1..4d2c255299 100644 --- a/server/queues/processors/ImportsProcessor.ts +++ b/server/queues/processors/ImportsProcessor.ts @@ -24,6 +24,7 @@ import { MentionType, } from "@shared/types"; import { colorPalette } from "@shared/utils/collections"; +import { UrlHelper } from "@shared/utils/UrlHelper"; import { CollectionValidation } from "@shared/validations"; import { createContext } from "@server/context"; import { schema } from "@server/editor"; @@ -307,6 +308,42 @@ export default abstract class ImportsProcessor< let collectionIdx = firstCollection?.index ?? null; + // Pre-pass: allocate new urlIds for every collection and document in this + // import so internal link hrefs in document content can be rewritten to + // point at the new paths during persistence. The map is keyed by the old + // urlId from the export, which is what appears in `/doc/<slug>-<urlId>` + // and `/collection/<slug>-<urlId>` link hrefs. + const urlIdMap: Record<string, { urlId: string; title: string }> = {}; + + await ImportTask.findAllInBatches<ImportTask<T>>( + { + where: { importId: importModel.id }, + order: [ + ["createdAt", "ASC"], + ["id", "ASC"], + ], + batchLimit: 5, + transaction, + }, + async (importTasks) => { + for (const importTask of importTasks) { + for (const output of importTask.output ?? []) { + if (!output.urlId || urlIdMap[output.urlId]) { + continue; + } + const isCollection = !!importInput[output.externalId]; + const allocated = isCollection + ? await this.preserveCollectionUrlId(output.urlId, transaction) + : await this.preserveDocumentUrlId(output.urlId, transaction); + urlIdMap[output.urlId] = { + urlId: allocated, + title: output.title, + }; + } + } + } + ); + await ImportTask.findAllInBatches<ImportTask<T>>( { where: { importId: importModel.id }, @@ -353,11 +390,12 @@ export default abstract class ImportsProcessor< transaction, }); - const transformedContent = await this.updateMentionsAndAttachments({ + const transformedContent = await this.rewriteReferences({ content: output.content, attachments, importInput, idMap, + urlIdMap, actorId: importModel.createdById, teamId: importModel.teamId, }); @@ -388,10 +426,9 @@ export default abstract class ImportsProcessor< createdByName: output.author, }; - const urlId = await this.preserveCollectionUrlId( - output.urlId, - transaction - ); + const urlId = output.urlId + ? urlIdMap[output.urlId]?.urlId + : undefined; const collection = Collection.build({ id: internalId, @@ -439,10 +476,9 @@ export default abstract class ImportsProcessor< const isRootDocument = !parentExternalId || !!importInput[parentExternalId]; - const urlId = await this.preserveDocumentUrlId( - output.urlId, - transaction - ); + const urlId = output.urlId + ? urlIdMap[output.urlId]?.urlId + : undefined; const defaults = { title: output.title, @@ -519,19 +555,25 @@ export default abstract class ImportsProcessor< } /** - * Transform the mentions and attachments in ProseMirrorDoc to their internal references. + * Rewrite the mentions, attachments, and internal document/collection link + * marks in a ProseMirrorDoc so they resolve against the imported models + * rather than the source export. * * @param content ProseMirrorDoc that represents collection (or) document content. * @param attachments Array of attachment models created for the import. * @param idMap Map of internalId to externalId. + * @param urlIdMap Map of old urlId to the newly allocated urlId and title, + * used to rewrite `/doc/<slug>-<urlId>` and `/collection/<slug>-<urlId>` + * link hrefs. * @param importInput Contains the root externalId and associated info which were used to create the import. * @param actorId ID of the user who created the import. * @returns Updated ProseMirrorDoc. */ - private async updateMentionsAndAttachments({ + private async rewriteReferences({ content, attachments, idMap, + urlIdMap, importInput, actorId, teamId, @@ -539,6 +581,7 @@ export default abstract class ImportsProcessor< content: ProsemirrorDoc; attachments: Attachment[]; idMap: Record<string, string>; + urlIdMap: Record<string, { urlId: string; title: string }>; // oxlint-disable-next-line @typescript-eslint/no-explicit-any importInput: Record<string, ImportInput<any>[number]>; actorId: string; @@ -551,6 +594,7 @@ export default abstract class ImportsProcessor< const attachmentsMap = keyBy(attachments, "id"); const doc = ProsemirrorHelper.toProsemirror(content); + const linkMarkType = schema.marks.link; const transformMentionNode = async (node: Node): Promise<Node> => { const json = node.toJSON() as ProsemirrorData; @@ -581,6 +625,55 @@ export default abstract class ImportsProcessor< return Node.fromJSON(schema, json); }; + const rewriteInternalLinkHref = (href: string): string => { + const docMatch = /^\/doc\/([^/?#]+)(.*)$/.exec(href); + if (docMatch) { + const slugMatch = UrlHelper.SLUG_URL_REGEX.exec(docMatch[1]); + const mapped = slugMatch ? urlIdMap[slugMatch[1]] : undefined; + if (mapped) { + return ( + Document.getPath({ title: mapped.title, urlId: mapped.urlId }) + + docMatch[2] + ); + } + } + const collectionMatch = /^\/collection\/([^/?#]+)(.*)$/.exec(href); + if (collectionMatch) { + const slugMatch = UrlHelper.SLUG_URL_REGEX.exec(collectionMatch[1]); + const mapped = slugMatch ? urlIdMap[slugMatch[1]] : undefined; + if (mapped) { + return ( + Collection.getPath({ name: mapped.title, urlId: mapped.urlId }) + + collectionMatch[2] + ); + } + } + return href; + }; + + const transformLinkMarks = (node: Node): Node => { + if (!node.marks.length) { + return node; + } + let changed = false; + const newMarks = node.marks.map((mark) => { + if (mark.type !== linkMarkType) { + return mark; + } + const href = mark.attrs.href as string | undefined; + if (!href) { + return mark; + } + const newHref = rewriteInternalLinkHref(href); + if (newHref === href) { + return mark; + } + changed = true; + return linkMarkType.create({ ...mark.attrs, href: newHref }); + }); + return changed ? node.mark(newMarks) : node; + }; + const transformFragment = async (fragment: Fragment): Promise<Fragment> => { const nodePromises: Promise<Node>[] = []; @@ -592,7 +685,7 @@ export default abstract class ImportsProcessor< } else { nodePromises.push( transformFragment(node.content).then((transformedContent) => - node.copy(transformedContent) + transformLinkMarks(node.copy(transformedContent)) ) ); } @@ -703,20 +796,16 @@ export default abstract class ImportsProcessor< /** * Honors a urlId from a document export if it does not collide with an - * existing Document, otherwise generates a fresh one. Returns `undefined` - * when no urlId is supplied (so the model's default applies). + * existing Document, otherwise generates a fresh one. * * @param sourceUrlId The urlId requested by the importer. * @param transaction Active sequelize transaction. - * @returns A urlId to use, or undefined to fall through to the default. + * @returns A urlId to use. */ private async preserveDocumentUrlId( - sourceUrlId: string | undefined, + sourceUrlId: string, transaction: Transaction - ): Promise<string | undefined> { - if (!sourceUrlId) { - return undefined; - } + ): Promise<string> { const existing = await Document.unscoped().findOne({ attributes: ["id"], paranoid: false, @@ -728,20 +817,16 @@ export default abstract class ImportsProcessor< /** * Honors a urlId from a collection export if it does not collide with an - * existing Collection, otherwise generates a fresh one. Returns `undefined` - * when no urlId is supplied (so the model's default applies). + * existing Collection, otherwise generates a fresh one. * * @param sourceUrlId The urlId requested by the importer. * @param transaction Active sequelize transaction. - * @returns A urlId to use, or undefined to fall through to the default. + * @returns A urlId to use. */ private async preserveCollectionUrlId( - sourceUrlId: string | undefined, + sourceUrlId: string, transaction: Transaction - ): Promise<string | undefined> { - if (!sourceUrlId) { - return undefined; - } + ): Promise<string> { const existing = await Collection.unscoped().findOne({ attributes: ["id"], paranoid: false, diff --git a/server/queues/tasks/JSONAPIImportTask.test.ts b/server/queues/tasks/JSONAPIImportTask.test.ts index 507d9c62cf..b712f63e11 100644 --- a/server/queues/tasks/JSONAPIImportTask.test.ts +++ b/server/queues/tasks/JSONAPIImportTask.test.ts @@ -19,6 +19,7 @@ import { } from "@shared/types"; import { buildAdmin, + buildDocument, buildImport, buildTeam, buildUser, @@ -35,6 +36,8 @@ const FIXTURE_USER_EMAIL = "hmac.devo@gmail.com"; interface BuiltZip { filePath: string; + documentOneUrlId: string; + documentTwoUrlId: string; cleanup: () => Promise<void>; } @@ -85,6 +88,42 @@ async function buildJSONExportZip(): Promise<BuiltZip> { type: "paragraph", content: [{ type: "text", text: "Some random text" }], }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "see doc two", + marks: [ + { + type: "link", + attrs: { + href: `/doc/document-2-${documentTwoUrlId}`, + title: null, + }, + }, + ], + }, + ], + }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "see collection", + marks: [ + { + type: "link", + attrs: { + href: `/collection/test-json-${collectionUrlId}`, + title: null, + }, + }, + ], + }, + ], + }, { type: "paragraph", content: [ @@ -168,6 +207,8 @@ async function buildJSONExportZip(): Promise<BuiltZip> { return { filePath, + documentOneUrlId, + documentTwoUrlId, cleanup: async () => { await fs.rm(filePath, { force: true }).catch(() => {}); }, @@ -290,6 +331,65 @@ describe("JSONAPIImportTask", () => { expect(attachments.length).toBeGreaterThanOrEqual(1); }); + it("rewrites internal document links to the new urlIds", async () => { + const admin = await buildAdmin(); + // Pre-create a document with the exported urlId so the importer is + // forced to allocate a fresh urlId for Document 2. Without a collision + // the original urlId would be preserved and link rewriting wouldn't be + // exercised end-to-end. + await buildDocument({ + teamId: admin.teamId, + userId: admin.id, + urlId: zip.documentTwoUrlId, + }); + + const { importId } = await runImport({ + teamId: admin.teamId, + createdById: admin.id, + zipPath: zip.filePath, + }); + + const documents = await Document.findAll({ + where: { apiImportId: importId }, + order: [["title", "ASC"]], + }); + expect(documents.length).toBe(2); + const docOne = documents.find((d) => d.title === "Document 1"); + const docTwo = documents.find((d) => d.title === "Document 2"); + expect(docOne).toBeDefined(); + expect(docTwo).toBeDefined(); + expect(docTwo!.urlId).not.toBe(zip.documentTwoUrlId); + + const linkParagraph = docOne!.content?.content?.[1]; + const linkText = linkParagraph?.content?.[0]; + const linkMark = linkText?.marks?.find((m) => m.type === "link"); + expect(linkMark?.attrs?.href).toBe(`/doc/document-2-${docTwo!.urlId}`); + expect(linkMark?.attrs?.href).not.toContain(zip.documentTwoUrlId); + }); + + it("rewrites internal collection links to slugged collection paths", async () => { + const admin = await buildAdmin(); + const { importId } = await runImport({ + teamId: admin.teamId, + createdById: admin.id, + zipPath: zip.filePath, + }); + + const collection = await Collection.findOne({ + where: { apiImportId: importId }, + rejectOnEmpty: true, + }); + const docOne = await Document.findOne({ + where: { apiImportId: importId, title: "Document 1" }, + rejectOnEmpty: true, + }); + + const linkParagraph = docOne.content?.content?.[2]; + const linkText = linkParagraph?.content?.[0]; + const linkMark = linkText?.marks?.find((m) => m.type === "link"); + expect(linkMark?.attrs?.href).toBe(collection.path); + }); + describe("user mapping", () => { it("maps createdById to an existing user by ID", async () => { let originalAuthor = await User.findByPk(FIXTURE_USER_ID); From 1e3aa2c59adc235146c3856f3c7363d903519a05 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 07:07:05 -0400 Subject: [PATCH 095/286] fix: Scroll into view broken in virtualized sidebar (#12462) --- .../Sidebar/components/DocumentLink.tsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/app/components/Sidebar/components/DocumentLink.tsx b/app/components/Sidebar/components/DocumentLink.tsx index 5e30863aac..1d69007b25 100644 --- a/app/components/Sidebar/components/DocumentLink.tsx +++ b/app/components/Sidebar/components/DocumentLink.tsx @@ -3,6 +3,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; +import scrollIntoView from "scroll-into-view-if-needed"; import Icon from "@shared/components/Icon"; import type { NavigationNode } from "@shared/types"; import { UserPreference } from "@shared/types"; @@ -133,6 +134,22 @@ const DocumentLink = observer(function DocumentLink(props: Props) { setMounted(false); } + // The inner row's own scrollIntoView only fires while it is mounted, which + // skips active documents that are virtualized off-screen + React.useLayoutEffect(() => { + if ( + isActiveDocument && + sidebarContext === "collections" && + placeholderRef.current + ) { + scrollIntoView(placeholderRef.current, { + scrollMode: "if-needed", + behavior: "auto", + boundary: (parent) => parent.id !== "sidebar", + }); + } + }, [isActiveDocument, sidebarContext]); + return ( <> <div ref={placeholderRef} style={{ minHeight: ROW_HEIGHT }}> @@ -393,7 +410,7 @@ const DocumentLinkInner = observer(function DocumentLinkInner({ to={toPath} depth={depth} isDraft={isDraft} - scrollIntoViewIfNeeded={sidebarContext === "collections"} + scrollIntoViewIfNeeded={false} icon={iconElement} canEdit={canUpdate} labelText={title} From 6bab00b92ea3aaecadab0f02ad0dd1db6373ec44 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 19:47:58 -0400 Subject: [PATCH 096/286] chore(deps): upgrade octokit to v5 and @octokit/auth-app to v8 (#12472) Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- package.json | 5 +- plugins/github/server/api/github.ts | 1 - yarn.lock | 706 ++++++++++++---------------- 3 files changed, 309 insertions(+), 403 deletions(-) diff --git a/package.json b/package.json index a5937eeb75..13f6eb89a1 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,8 @@ "@modelcontextprotocol/sdk": "^1.25.3", "@node-oauth/oauth2-server": "^5.3.0", "@notionhq/client": "^2.3.0", - "@octokit/auth-app": "^6.1.4", + "@octokit/auth-app": "^8.2.0", + "@octokit/webhooks-types": "^7.6.1", "@outlinewiki/koa-passport": "^4.2.1", "@outlinewiki/passport-azure-ad-oauth2": "^0.1.0", "@radix-ui/react-collapsible": "^1.1.12", @@ -177,7 +178,7 @@ "natural-sort": "^1.0.0", "node-fetch": "2.7.0", "nodemailer": "^7.0.13", - "octokit": "^3.2.2", + "octokit": "^5.0.5", "outline-icons": "^4.3.0", "oy-vey": "^0.12.1", "pako": "^2.1.0", diff --git a/plugins/github/server/api/github.ts b/plugins/github/server/api/github.ts index 73f09b11d8..3d40620992 100644 --- a/plugins/github/server/api/github.ts +++ b/plugins/github/server/api/github.ts @@ -97,7 +97,6 @@ router.get( id: installationId!, account: { id: installation.account?.id, - // @ts-expect-error Property 'login' does not exist on type name: installation.account?.login, avatarUrl: installation.account?.avatar_url, }, diff --git a/yarn.lock b/yarn.lock index b6f119e263..56dd94b707 100644 --- a/yarn.lock +++ b/yarn.lock @@ -481,17 +481,7 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/types@npm:^3.222.0": - version: 3.973.8 - resolution: "@aws-sdk/types@npm:3.973.8" - dependencies: - "@smithy/types": "npm:^4.14.1" - tslib: "npm:^2.6.2" - checksum: 10c0/4823579e7dd0f6dcce9e9fea9630091eb46e3596bc468614a072f682b1eab6f048854ccf5e9398459ada175c13dfc636ffa8c1d3aa655cf6f22447f9c1a02f7f - languageName: node - linkType: hard - -"@aws-sdk/types@npm:^3.973.9": +"@aws-sdk/types@npm:^3.222.0, @aws-sdk/types@npm:^3.973.9": version: 3.973.9 resolution: "@aws-sdk/types@npm:3.973.9" dependencies: @@ -3348,313 +3338,288 @@ __metadata: languageName: node linkType: hard -"@octokit/app@npm:^14.0.2": - version: 14.1.0 - resolution: "@octokit/app@npm:14.1.0" +"@octokit/app@npm:^16.1.2": + version: 16.1.2 + resolution: "@octokit/app@npm:16.1.2" dependencies: - "@octokit/auth-app": "npm:^6.0.0" - "@octokit/auth-unauthenticated": "npm:^5.0.0" - "@octokit/core": "npm:^5.0.0" - "@octokit/oauth-app": "npm:^6.0.0" - "@octokit/plugin-paginate-rest": "npm:^9.0.0" - "@octokit/types": "npm:^12.0.0" - "@octokit/webhooks": "npm:^12.0.4" - checksum: 10c0/c115209f3c8dd05ec5acb5897f9e914177a07e335a7ffb985133d51302112be98122a1c3e3de05018885657ca4e5c9d42949eeb24b39d5881e80ed6411b81857 + "@octokit/auth-app": "npm:^8.1.2" + "@octokit/auth-unauthenticated": "npm:^7.0.3" + "@octokit/core": "npm:^7.0.6" + "@octokit/oauth-app": "npm:^8.0.3" + "@octokit/plugin-paginate-rest": "npm:^14.0.0" + "@octokit/types": "npm:^16.0.0" + "@octokit/webhooks": "npm:^14.0.0" + checksum: 10c0/64d5f2c5b126c3bac71d11d6394f2b1c2ffa3880496b492b0a175695b83066fcbe857d2c1e72540b646cf85c57b6162cd2a4cad9b05012ea8de17109f2928473 languageName: node linkType: hard -"@octokit/auth-app@npm:^6.0.0, @octokit/auth-app@npm:^6.1.4": - version: 6.1.4 - resolution: "@octokit/auth-app@npm:6.1.4" - dependencies: - "@octokit/auth-oauth-app": "npm:^7.1.0" - "@octokit/auth-oauth-user": "npm:^4.1.0" - "@octokit/request": "npm:^8.3.1" - "@octokit/request-error": "npm:^5.1.0" - "@octokit/types": "npm:^13.1.0" - deprecation: "npm:^2.3.1" - lru-cache: "npm:@wolfy1339/lru-cache@^11.0.2-patch.1" - universal-github-app-jwt: "npm:^1.1.2" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/8b53420b7b61cc942d1b6303294557da840eb9990b7746939e03a24b1df478a75b66cbf77164ac16e67974700f5addcd03ceb5d29e5516d0b08e503512e4710d - languageName: node - linkType: hard - -"@octokit/auth-oauth-app@npm:^7.0.0, @octokit/auth-oauth-app@npm:^7.1.0": - version: 7.1.0 - resolution: "@octokit/auth-oauth-app@npm:7.1.0" - dependencies: - "@octokit/auth-oauth-device": "npm:^6.1.0" - "@octokit/auth-oauth-user": "npm:^4.1.0" - "@octokit/request": "npm:^8.3.1" - "@octokit/types": "npm:^13.0.0" - "@types/btoa-lite": "npm:^1.0.0" - btoa-lite: "npm:^1.0.0" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/e23c5968426949181beea3ca89bb193885f4ec481b194a0c3bb252b02b1ff3f78908541f4ee6381563cfe6f23ed07e0c0eb33a842b1a6f85301a8266d4d46649 - languageName: node - linkType: hard - -"@octokit/auth-oauth-device@npm:^6.1.0": - version: 6.1.0 - resolution: "@octokit/auth-oauth-device@npm:6.1.0" - dependencies: - "@octokit/oauth-methods": "npm:^4.1.0" - "@octokit/request": "npm:^8.3.1" - "@octokit/types": "npm:^13.0.0" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/74e17b76f55c8503dc1b4d95e4f52ee49900f7f720983d1725ad29361c9f413d22aa7621e8809ea644bb225686b3ee70f147a9e5944f3c1c1cccba55fa414422 - languageName: node - linkType: hard - -"@octokit/auth-oauth-user@npm:^4.0.0, @octokit/auth-oauth-user@npm:^4.1.0": - version: 4.1.0 - resolution: "@octokit/auth-oauth-user@npm:4.1.0" - dependencies: - "@octokit/auth-oauth-device": "npm:^6.1.0" - "@octokit/oauth-methods": "npm:^4.1.0" - "@octokit/request": "npm:^8.3.1" - "@octokit/types": "npm:^13.0.0" - btoa-lite: "npm:^1.0.0" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/5d17d1e86ca89d4f2c440de4e5a648a1646818f0683a6230558279d71151a6b01f1228ccc4fc6e3ae24da92fa18810fac7b2bb6e019646f1f46be3928f522e7f - languageName: node - linkType: hard - -"@octokit/auth-token@npm:^4.0.0": - version: 4.0.0 - resolution: "@octokit/auth-token@npm:4.0.0" - checksum: 10c0/57acaa6c394c5abab2f74e8e1dcf4e7a16b236f713c77a54b8f08e2d14114de94b37946259e33ec2aab0566b26f724c2b71d2602352b59e541a9854897618f3c - languageName: node - linkType: hard - -"@octokit/auth-unauthenticated@npm:^5.0.0": - version: 5.0.1 - resolution: "@octokit/auth-unauthenticated@npm:5.0.1" - dependencies: - "@octokit/request-error": "npm:^5.0.0" - "@octokit/types": "npm:^12.0.0" - checksum: 10c0/c9cad429981a34021ec9f1fdc238c39eba36807683859a3bffb9dd66abf1ce016c9a2ff31fe09313458e59b37f8fa91522c0e34a1daecefdabcdf23a494fbcc2 - languageName: node - linkType: hard - -"@octokit/core@npm:^5.0.0": - version: 5.2.2 - resolution: "@octokit/core@npm:5.2.2" - dependencies: - "@octokit/auth-token": "npm:^4.0.0" - "@octokit/graphql": "npm:^7.1.0" - "@octokit/request": "npm:^8.4.1" - "@octokit/request-error": "npm:^5.1.1" - "@octokit/types": "npm:^13.0.0" - before-after-hook: "npm:^2.2.0" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/b4484d85552303b839613e2133dcd064fa06a7c10fe0ebd11ba8f67cb8e3384e48983c589f4d1dc0fa3754857784e3d90ff4eab9782e118baf13ddd1b834957c - languageName: node - linkType: hard - -"@octokit/endpoint@npm:^9.0.6": - version: 9.0.6 - resolution: "@octokit/endpoint@npm:9.0.6" - dependencies: - "@octokit/types": "npm:^13.1.0" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/8e06197b21869aeb498e0315093ca6fbee12bd1bdcfc1667fcd7d79d827d84f2c5a30702ffd28bba7879780e367d14c30df5b20d47fcaed5de5fdc05f5d4e013 - languageName: node - linkType: hard - -"@octokit/graphql@npm:^7.1.0": - version: 7.1.1 - resolution: "@octokit/graphql@npm:7.1.1" - dependencies: - "@octokit/request": "npm:^8.4.1" - "@octokit/types": "npm:^13.0.0" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/c27216200f3f4ce7ce2a694fb7ea43f8ea4a807fbee3a423c41ed137dd7948dfc0bbf6ea1656f029a7625c84b583acdef740a7032266d0eff55305c91c3a1ed6 - languageName: node - linkType: hard - -"@octokit/oauth-app@npm:^6.0.0": - version: 6.1.0 - resolution: "@octokit/oauth-app@npm:6.1.0" - dependencies: - "@octokit/auth-oauth-app": "npm:^7.0.0" - "@octokit/auth-oauth-user": "npm:^4.0.0" - "@octokit/auth-unauthenticated": "npm:^5.0.0" - "@octokit/core": "npm:^5.0.0" - "@octokit/oauth-authorization-url": "npm:^6.0.2" - "@octokit/oauth-methods": "npm:^4.0.0" - "@types/aws-lambda": "npm:^8.10.83" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/9d67ca196eabbb397c677e006d28148d6c5185f88d86e5444c219e43b95e0ecaee5d31807ea24aedb64a76d61c0a53acd8091613e15d10733f41960bd981463c - languageName: node - linkType: hard - -"@octokit/oauth-authorization-url@npm:^6.0.2": - version: 6.0.2 - resolution: "@octokit/oauth-authorization-url@npm:6.0.2" - checksum: 10c0/8c06e538b3e392f0fa68f3347078c32f92c03474eb214e4e82774513a54c164bac14c228f7dbd79d22a920df1a8b2e0765dd6ee45929bda0b77e5cf7f0d92c71 - languageName: node - linkType: hard - -"@octokit/oauth-methods@npm:^4.0.0, @octokit/oauth-methods@npm:^4.1.0": - version: 4.1.0 - resolution: "@octokit/oauth-methods@npm:4.1.0" - dependencies: - "@octokit/oauth-authorization-url": "npm:^6.0.2" - "@octokit/request": "npm:^8.3.1" - "@octokit/request-error": "npm:^5.1.0" - "@octokit/types": "npm:^13.0.0" - btoa-lite: "npm:^1.0.0" - checksum: 10c0/3ab7ab41e82faebb662bfc4cc20756f008adb37b447386c29ddb09cbac5d1867b1b23f2f8dd268e06dca5ff1c874162e01d475f15634b42e6ab0a95471dcc365 - languageName: node - linkType: hard - -"@octokit/openapi-types@npm:^20.0.0": - version: 20.0.0 - resolution: "@octokit/openapi-types@npm:20.0.0" - checksum: 10c0/5176dcc3b9d182ede3d446750cfa5cf31139624785a73fcf3511e3102a802b4d7cc45e999c27ed91d73fe8b7d718c8c406facb48688926921a71fe603b7db95d - languageName: node - linkType: hard - -"@octokit/openapi-types@npm:^24.2.0": - version: 24.2.0 - resolution: "@octokit/openapi-types@npm:24.2.0" - checksum: 10c0/8f47918b35e9b7f6109be6f7c8fc3a64ad13a48233112b29e92559e64a564b810eb3ebf81b4cd0af1bb2989d27b9b95cca96e841ec4e23a3f68703cefe62fd9e - languageName: node - linkType: hard - -"@octokit/plugin-paginate-graphql@npm:^4.0.0": - version: 4.0.1 - resolution: "@octokit/plugin-paginate-graphql@npm:4.0.1" - peerDependencies: - "@octokit/core": ">=5" - checksum: 10c0/d559cdc2b5de107a7da5384b5241d1dfdc1038db1c4a70aca8a450c996315936844e0a1888216fb568c7a272bc6adf6667f897e0976b01e68085663b166cc533 - languageName: node - linkType: hard - -"@octokit/plugin-paginate-rest@npm:11.4.4-cjs.2": - version: 11.4.4-cjs.2 - resolution: "@octokit/plugin-paginate-rest@npm:11.4.4-cjs.2" - dependencies: - "@octokit/types": "npm:^13.7.0" - peerDependencies: - "@octokit/core": 5 - checksum: 10c0/1d61a63c98a18c171bccdc6cf63ffe279fe852e8bdc9db6647ffcb27f4ea485fdab78fb71b552ed0f2186785cf5264f8ed3f9a8f33061e4697b5f73b097accb1 - languageName: node - linkType: hard - -"@octokit/plugin-paginate-rest@npm:^9.0.0": - version: 9.2.2 - resolution: "@octokit/plugin-paginate-rest@npm:9.2.2" - dependencies: - "@octokit/types": "npm:^12.6.0" - peerDependencies: - "@octokit/core": 5 - checksum: 10c0/e9c85b17064fe6b62f9af88dba008f3daef456b1195340ea0831990e9c4dbabe89be950b6e5dc924ebcca18ad1aaa0cf6df7d824dc8be26ce9a55f20336ff815 - languageName: node - linkType: hard - -"@octokit/plugin-rest-endpoint-methods@npm:13.3.2-cjs.1": - version: 13.3.2-cjs.1 - resolution: "@octokit/plugin-rest-endpoint-methods@npm:13.3.2-cjs.1" - dependencies: - "@octokit/types": "npm:^13.8.0" - peerDependencies: - "@octokit/core": ^5 - checksum: 10c0/810fe5cb1861386746bf0218ea969d87c56e553ff339490526483b4b66f53c4b4c6092034bec30c5d453172eb6f33e75b5748ade1b401b76774b5a994e2c10b0 - languageName: node - linkType: hard - -"@octokit/plugin-retry@npm:^6.0.0": - version: 6.1.0 - resolution: "@octokit/plugin-retry@npm:6.1.0" - dependencies: - "@octokit/request-error": "npm:^5.0.0" - "@octokit/types": "npm:^13.0.0" - bottleneck: "npm:^2.15.3" - peerDependencies: - "@octokit/core": 5 - checksum: 10c0/ae8053b317ad462f649a9a1e56d3705d26a99ad0d427c8d9af7775f803cf326791a51c8b8dc5474111e582b0a2e1ecf1aad5e83a3061306fdb4cc1451a6056c5 - languageName: node - linkType: hard - -"@octokit/plugin-throttling@npm:^8.0.0": +"@octokit/auth-app@npm:^8.1.2, @octokit/auth-app@npm:^8.2.0": version: 8.2.0 - resolution: "@octokit/plugin-throttling@npm:8.2.0" + resolution: "@octokit/auth-app@npm:8.2.0" dependencies: - "@octokit/types": "npm:^12.2.0" + "@octokit/auth-oauth-app": "npm:^9.0.3" + "@octokit/auth-oauth-user": "npm:^6.0.2" + "@octokit/request": "npm:^10.0.6" + "@octokit/request-error": "npm:^7.0.2" + "@octokit/types": "npm:^16.0.0" + toad-cache: "npm:^3.7.0" + universal-github-app-jwt: "npm:^2.2.0" + universal-user-agent: "npm:^7.0.0" + checksum: 10c0/7f1b113c9f2ef4d0aac06ffb0b1930a256c6a8985744c709c36fe8c4565c5c184de742de4c4a52e4d9f25baef00c9b855732cfaeb81db8abe238d6c2ee54d6d6 + languageName: node + linkType: hard + +"@octokit/auth-oauth-app@npm:^9.0.2, @octokit/auth-oauth-app@npm:^9.0.3": + version: 9.0.3 + resolution: "@octokit/auth-oauth-app@npm:9.0.3" + dependencies: + "@octokit/auth-oauth-device": "npm:^8.0.3" + "@octokit/auth-oauth-user": "npm:^6.0.2" + "@octokit/request": "npm:^10.0.6" + "@octokit/types": "npm:^16.0.0" + universal-user-agent: "npm:^7.0.0" + checksum: 10c0/1b47dc2a6ea480c04cc3b03d03f4836916ef666047b639c78134d49bbf9fb112a0610021aa017abaa30d8a63a5e66117b3d2b3a4d3976d10153bd5efef54da8b + languageName: node + linkType: hard + +"@octokit/auth-oauth-device@npm:^8.0.3": + version: 8.0.3 + resolution: "@octokit/auth-oauth-device@npm:8.0.3" + dependencies: + "@octokit/oauth-methods": "npm:^6.0.2" + "@octokit/request": "npm:^10.0.6" + "@octokit/types": "npm:^16.0.0" + universal-user-agent: "npm:^7.0.0" + checksum: 10c0/2c43d131fbd0b60abef5f37e6168e31f5ec1b8361bac1d71c19499e1960e5e00957c54db9836d88754b467ad48c4e15f60409b0d66dc740468c49834e787e971 + languageName: node + linkType: hard + +"@octokit/auth-oauth-user@npm:^6.0.1, @octokit/auth-oauth-user@npm:^6.0.2": + version: 6.0.2 + resolution: "@octokit/auth-oauth-user@npm:6.0.2" + dependencies: + "@octokit/auth-oauth-device": "npm:^8.0.3" + "@octokit/oauth-methods": "npm:^6.0.2" + "@octokit/request": "npm:^10.0.6" + "@octokit/types": "npm:^16.0.0" + universal-user-agent: "npm:^7.0.0" + checksum: 10c0/7af66189e7c0b19c456462d571f61ac787d8464554375b12ded245d0d209a7a0f873f9189d7a3e9afef8aa59eb268c573f8e98b0ee683ebf0989625c20e2125a + languageName: node + linkType: hard + +"@octokit/auth-token@npm:^6.0.0": + version: 6.0.0 + resolution: "@octokit/auth-token@npm:6.0.0" + checksum: 10c0/32ecc904c5f6f4e5d090bfcc679d70318690c0a0b5040cd9a25811ad9dcd44c33f2cf96b6dbee1cd56cf58fde28fb1819c01b58718aa5c971f79c822357cb5c0 + languageName: node + linkType: hard + +"@octokit/auth-unauthenticated@npm:^7.0.2, @octokit/auth-unauthenticated@npm:^7.0.3": + version: 7.0.3 + resolution: "@octokit/auth-unauthenticated@npm:7.0.3" + dependencies: + "@octokit/request-error": "npm:^7.0.2" + "@octokit/types": "npm:^16.0.0" + checksum: 10c0/7e20ec86314e881201d37283edbf83f4dd8210df74d6bab1273961e2f18064144ea970f18a678dda8cc4396a5128499efda45e81a848fc770836872049d6218f + languageName: node + linkType: hard + +"@octokit/core@npm:^7.0.5, @octokit/core@npm:^7.0.6": + version: 7.0.6 + resolution: "@octokit/core@npm:7.0.6" + dependencies: + "@octokit/auth-token": "npm:^6.0.0" + "@octokit/graphql": "npm:^9.0.3" + "@octokit/request": "npm:^10.0.6" + "@octokit/request-error": "npm:^7.0.2" + "@octokit/types": "npm:^16.0.0" + before-after-hook: "npm:^4.0.0" + universal-user-agent: "npm:^7.0.0" + checksum: 10c0/95a328ff7c7223d9eb4aa778c63171828514ae0e0f588d33beb81a4dc03bbeae055382f6060ce23c979ab46272409942ff2cf3172109999e48429c47055b1fbe + languageName: node + linkType: hard + +"@octokit/endpoint@npm:^11.0.3": + version: 11.0.3 + resolution: "@octokit/endpoint@npm:11.0.3" + dependencies: + "@octokit/types": "npm:^16.0.0" + universal-user-agent: "npm:^7.0.2" + checksum: 10c0/3f9b67e6923ece5009aebb0dcbae5837fb574bc422561424049a43ead7fea6f132234edb72239d6ec067cf734937a608e4081af81c109de2cb754528f0d00520 + languageName: node + linkType: hard + +"@octokit/graphql@npm:^9.0.3": + version: 9.0.3 + resolution: "@octokit/graphql@npm:9.0.3" + dependencies: + "@octokit/request": "npm:^10.0.6" + "@octokit/types": "npm:^16.0.0" + universal-user-agent: "npm:^7.0.0" + checksum: 10c0/58588d3fb2834f64244fa5376ca7922a30117b001b621e141fab0d52806370803ab0c046ac99b120fa5f45b770f52a815157fb6ffc147fc6c1da4047c1f1af49 + languageName: node + linkType: hard + +"@octokit/oauth-app@npm:^8.0.3": + version: 8.0.3 + resolution: "@octokit/oauth-app@npm:8.0.3" + dependencies: + "@octokit/auth-oauth-app": "npm:^9.0.2" + "@octokit/auth-oauth-user": "npm:^6.0.1" + "@octokit/auth-unauthenticated": "npm:^7.0.2" + "@octokit/core": "npm:^7.0.5" + "@octokit/oauth-authorization-url": "npm:^8.0.0" + "@octokit/oauth-methods": "npm:^6.0.1" + "@types/aws-lambda": "npm:^8.10.83" + universal-user-agent: "npm:^7.0.0" + checksum: 10c0/7bb064bfe21a6db45b57f8f5e5ecd533e802c0073d293b1c75abf264d9bc0fc952492757ea5af516207af4ec781cf793cb37e8cbbb3a8df691592bc25c364644 + languageName: node + linkType: hard + +"@octokit/oauth-authorization-url@npm:^8.0.0": + version: 8.0.0 + resolution: "@octokit/oauth-authorization-url@npm:8.0.0" + checksum: 10c0/ab4964bebd8d076f945a2f3210a8a0a221a408362569d9fc2f49875ad06e594365f5fd871dac08d820793f687bff50237f7acf40d9d39c5f9de7575b6f4bad93 + languageName: node + linkType: hard + +"@octokit/oauth-methods@npm:^6.0.1, @octokit/oauth-methods@npm:^6.0.2": + version: 6.0.2 + resolution: "@octokit/oauth-methods@npm:6.0.2" + dependencies: + "@octokit/oauth-authorization-url": "npm:^8.0.0" + "@octokit/request": "npm:^10.0.6" + "@octokit/request-error": "npm:^7.0.2" + "@octokit/types": "npm:^16.0.0" + checksum: 10c0/51d2f3218839ce37609e6e0adc274efcc198bdcae57ef3ecf3ada95f6f30dcc3052f6db34e4aa3a1bc94545d7025baa44058d5c044fdd6bdd83562eb9b8510c2 + languageName: node + linkType: hard + +"@octokit/openapi-types@npm:^27.0.0": + version: 27.0.0 + resolution: "@octokit/openapi-types@npm:27.0.0" + checksum: 10c0/602d1de033da180a2e982cdbd3646bd5b2e16ecf36b9955a0f23e37ae9e6cb086abb48ff2ae6f2de000fce03e8ae9051794611ae4a95a8f5f6fb63276e7b8e31 + languageName: node + linkType: hard + +"@octokit/openapi-webhooks-types@npm:12.1.0": + version: 12.1.0 + resolution: "@octokit/openapi-webhooks-types@npm:12.1.0" + checksum: 10c0/0352ee895f849d16e8a33e8474fc87d7c0c117fcd72d3e03271232d82ed9f648ca252737e6453f3cd5919c9a2b92fb048327d306d761d4d750c2eee8eca3669f + languageName: node + linkType: hard + +"@octokit/plugin-paginate-graphql@npm:^6.0.0": + version: 6.0.0 + resolution: "@octokit/plugin-paginate-graphql@npm:6.0.0" + peerDependencies: + "@octokit/core": ">=6" + checksum: 10c0/354553741317a8a5977dffdf26ddeb767f3c67266a18a5d5e3e5c31fbc118f157ed726f43f998c1aad4bfa704312ce11a4f3e7b681e863245eac8afcac2c5861 + languageName: node + linkType: hard + +"@octokit/plugin-paginate-rest@npm:^14.0.0": + version: 14.0.0 + resolution: "@octokit/plugin-paginate-rest@npm:14.0.0" + dependencies: + "@octokit/types": "npm:^16.0.0" + peerDependencies: + "@octokit/core": ">=6" + checksum: 10c0/841d79d4ccfe18fc809a4a67529b75c1dcdda13399bf4bf5b48ce7559c8b4b2cd422e3204bad4cbdea31c0cf0943521067415268e5bcfc615a3b813e058cad6b + languageName: node + linkType: hard + +"@octokit/plugin-rest-endpoint-methods@npm:^17.0.0": + version: 17.0.0 + resolution: "@octokit/plugin-rest-endpoint-methods@npm:17.0.0" + dependencies: + "@octokit/types": "npm:^16.0.0" + peerDependencies: + "@octokit/core": ">=6" + checksum: 10c0/cf9984d7cf6a36ff7ff1b86078ae45fe246e3df10fcef0bccf20c8cfd27bf5e7d98dcb9cf5a7b56332b9c6fa30be28d159c2987d272a4758f77056903d94402f + languageName: node + linkType: hard + +"@octokit/plugin-retry@npm:^8.0.3": + version: 8.1.0 + resolution: "@octokit/plugin-retry@npm:8.1.0" + dependencies: + "@octokit/request-error": "npm:^7.0.2" + "@octokit/types": "npm:^16.0.0" bottleneck: "npm:^2.15.3" peerDependencies: - "@octokit/core": ^5.0.0 - checksum: 10c0/e65de9958ac5f29ba473bb969d25738f7466dad1b64e8181199c71438c06a6333ba655bd5194581a24199ca06fc9a6e752d0a4782b554ef603b0acffe9f8bfbd + "@octokit/core": ">=7" + checksum: 10c0/9e10676d29ce642eff8e4f7f9aa2fe6d8c5bebdc5ed107d2e6183be5d50699680b4e1d01a6096d4bec959d2337baf38fd5a39e9d541e9b1a28baf648bc0fefaa languageName: node linkType: hard -"@octokit/request-error@npm:^5.0.0, @octokit/request-error@npm:^5.1.0, @octokit/request-error@npm:^5.1.1": - version: 5.1.1 - resolution: "@octokit/request-error@npm:5.1.1" +"@octokit/plugin-throttling@npm:^11.0.3": + version: 11.0.3 + resolution: "@octokit/plugin-throttling@npm:11.0.3" dependencies: - "@octokit/types": "npm:^13.1.0" - deprecation: "npm:^2.0.0" - once: "npm:^1.4.0" - checksum: 10c0/dc9fc76ea5e4199273e4665ce9ddf345fe8f25578d9999c9a16f276298e61ee6fe0e6f5a6147b91ba3b34fdf5b9e6b7af6ae13d6333175e95b30c574088f7a2d + "@octokit/types": "npm:^16.0.0" + bottleneck: "npm:^2.15.3" + peerDependencies: + "@octokit/core": ^7.0.0 + checksum: 10c0/5c7cc386962b6d2881ac769f57b28c28622d18e3dbe2f7600dfdfda0a98b56a95f69d831902b647ad023574921cc801b78aa54563fdb3f465ac8c883aaf6cbe3 languageName: node linkType: hard -"@octokit/request@npm:^8.3.1, @octokit/request@npm:^8.4.1": - version: 8.4.1 - resolution: "@octokit/request@npm:8.4.1" +"@octokit/request-error@npm:^7.0.0, @octokit/request-error@npm:^7.0.2": + version: 7.1.0 + resolution: "@octokit/request-error@npm:7.1.0" dependencies: - "@octokit/endpoint": "npm:^9.0.6" - "@octokit/request-error": "npm:^5.1.1" - "@octokit/types": "npm:^13.1.0" - universal-user-agent: "npm:^6.0.0" - checksum: 10c0/1a69dcb7336de708a296db9e9a58040e5b284a87495a63112f80eb0007da3fc96a9fadecb9e875fc63cf179c23a0f81031fbef2a6f610a219e45805ead03fcf3 + "@octokit/types": "npm:^16.0.0" + checksum: 10c0/62b90a54545c36a30b5ffdda42e302c751be184d85b68ffc7f1242c51d7ca54dbd185b7d0027b491991776923a910c85c9c51269fe0d86111bac187507a5abc4 languageName: node linkType: hard -"@octokit/types@npm:^12.0.0, @octokit/types@npm:^12.2.0, @octokit/types@npm:^12.6.0": - version: 12.6.0 - resolution: "@octokit/types@npm:12.6.0" +"@octokit/request@npm:^10.0.6": + version: 10.0.9 + resolution: "@octokit/request@npm:10.0.9" dependencies: - "@octokit/openapi-types": "npm:^20.0.0" - checksum: 10c0/0bea58bda46c93287f5a80a0e52bc60e7dc7136b8a38c3569d63d073fb9df4a56acdb9d9bdba9978f37c374a4a6e3e52886ef5b08cace048adb0012cacef942c + "@octokit/endpoint": "npm:^11.0.3" + "@octokit/request-error": "npm:^7.0.2" + "@octokit/types": "npm:^16.0.0" + content-type: "npm:^2.0.0" + fast-content-type-parse: "npm:^3.0.0" + json-with-bigint: "npm:^3.5.3" + universal-user-agent: "npm:^7.0.2" + checksum: 10c0/2a642870202117c8cf0021b7c01a92e18acdec4826c103f7749a942537a265251e033c0ac5178807f0c63b9759e149ce9701015454167d4c1627d30218ddf9f2 languageName: node linkType: hard -"@octokit/types@npm:^13.0.0, @octokit/types@npm:^13.1.0, @octokit/types@npm:^13.7.0, @octokit/types@npm:^13.8.0": - version: 13.10.0 - resolution: "@octokit/types@npm:13.10.0" +"@octokit/types@npm:^16.0.0": + version: 16.0.0 + resolution: "@octokit/types@npm:16.0.0" dependencies: - "@octokit/openapi-types": "npm:^24.2.0" - checksum: 10c0/f66a401b89d653ec28e5c1529abdb7965752db4d9d40fa54c80e900af4c6bf944af6bd0a83f5b4f1eecb72e3d646899dfb27ffcf272ac243552de7e3b97a038d + "@octokit/openapi-types": "npm:^27.0.0" + checksum: 10c0/b8d41098ba6fc194d13d641f9441347e3a3b96c0efabac0e14f57319340a2d4d1c8676e4cb37ab3062c5c323c617e790b0126916e9bf7b201b0cced0826f8ae2 languageName: node linkType: hard -"@octokit/webhooks-methods@npm:^4.1.0": - version: 4.1.0 - resolution: "@octokit/webhooks-methods@npm:4.1.0" - checksum: 10c0/153b344b4b20b48fdf89225f482bd9aa612998c28e43d032756d5a2ec7ebf117922fb6a95ee7c0a985cab6924fa4de3378c60e9ff41e384498b8cb7aad3771f2 +"@octokit/webhooks-methods@npm:^6.0.0": + version: 6.0.0 + resolution: "@octokit/webhooks-methods@npm:6.0.0" + checksum: 10c0/7f10740e838d65c78e859bb041499cca69df7831e9f633ee70a46ca8e53d0844f2c84500df204453d171c8c3c0f8eb8b68716ee1d5c95e3cf5d09690f32e13e1 languageName: node linkType: hard -"@octokit/webhooks-types@npm:7.6.1": +"@octokit/webhooks-types@npm:^7.6.1": version: 7.6.1 resolution: "@octokit/webhooks-types@npm:7.6.1" checksum: 10c0/7c2cb40f9ccd2bd392cf35c23f995ae0719ef35fd3bce0264ced5518cbf0a7087bd069bf5e5963fc33d0232726968db526912df3cb017c1bd1761c8849c31a30 languageName: node linkType: hard -"@octokit/webhooks@npm:^12.0.4, @octokit/webhooks@npm:^12.3.1": - version: 12.3.2 - resolution: "@octokit/webhooks@npm:12.3.2" +"@octokit/webhooks@npm:^14.0.0": + version: 14.2.0 + resolution: "@octokit/webhooks@npm:14.2.0" dependencies: - "@octokit/request-error": "npm:^5.0.0" - "@octokit/webhooks-methods": "npm:^4.1.0" - "@octokit/webhooks-types": "npm:7.6.1" - aggregate-error: "npm:^3.1.0" - checksum: 10c0/4d9f5fe686c0b87781aa6bbac6585d7ea92d99648ddb0fbc491e6dc00e598f1c359c8197f044f7863aea401691967febca9172f3deb422549d629a43309432b0 + "@octokit/openapi-webhooks-types": "npm:12.1.0" + "@octokit/request-error": "npm:^7.0.0" + "@octokit/webhooks-methods": "npm:^6.0.0" + checksum: 10c0/0d0dcbd90d752aab9a390fba01237009c8fd3d58d7f39d9f46446e9de27bb83a8fcee07a3e3ed39e5020f945d76f1f7cbef2285d8ccff2bfa03dfd6eb03d1182 languageName: node linkType: hard @@ -6002,15 +5967,6 @@ __metadata: languageName: node linkType: hard -"@smithy/types@npm:^4.14.1": - version: 4.14.1 - resolution: "@smithy/types@npm:4.14.1" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/9e6209770a25582a11ca67d4750865de0b7732bf3f353ba9260f49e9c4b2adf3274d64057a2bda93da7025e33a54e51bd78c529307efc2b75b429bc45a6ad64c - languageName: node - linkType: hard - "@smithy/types@npm:^4.14.2": version: 4.14.2 resolution: "@smithy/types@npm:4.14.2" @@ -6338,13 +6294,6 @@ __metadata: languageName: node linkType: hard -"@types/btoa-lite@npm:^1.0.0": - version: 1.0.2 - resolution: "@types/btoa-lite@npm:1.0.2" - checksum: 10c0/daffbb47e4fe6493df70d83878b550adab48bab2f02b3591a59367af3ecebf34c971e070479ab68d83ca59cbeefbc61a50d9a7552f639dc908706183e0222bab - languageName: node - linkType: hard - "@types/chai@npm:^5.2.2": version: 5.2.3 resolution: "@types/chai@npm:5.2.3" @@ -6937,16 +6886,6 @@ __metadata: languageName: node linkType: hard -"@types/jsonwebtoken@npm:^9.0.0": - version: 9.0.10 - resolution: "@types/jsonwebtoken@npm:9.0.10" - dependencies: - "@types/ms": "npm:*" - "@types/node": "npm:*" - checksum: 10c0/0688ac8fb75f809201cb7e18a12b9d80ce539cb9dd27e1b01e11807cb1a337059e899b8ee3abc3f2c9417f02e363a3069d9eab9ef9724b1da1f0e10713514f94 - languageName: node - linkType: hard - "@types/katex@npm:^0.16.8": version: 0.16.8 resolution: "@types/katex@npm:0.16.8" @@ -7857,16 +7796,6 @@ __metadata: languageName: node linkType: hard -"aggregate-error@npm:^3.1.0": - version: 3.1.0 - resolution: "aggregate-error@npm:3.1.0" - dependencies: - clean-stack: "npm:^2.0.0" - indent-string: "npm:^4.0.0" - checksum: 10c0/a42f67faa79e3e6687a4923050e7c9807db3848a037076f791d10e092677d65c1d2d863b7848560699f40fc0502c19f40963fb1cd1fb3d338a7423df8e45e039 - languageName: node - linkType: hard - "ajv-formats@npm:^3.0.1": version: 3.0.1 resolution: "ajv-formats@npm:3.0.1" @@ -8298,10 +8227,10 @@ __metadata: languageName: node linkType: hard -"before-after-hook@npm:^2.2.0": - version: 2.2.3 - resolution: "before-after-hook@npm:2.2.3" - checksum: 10c0/0488c4ae12df758ca9d49b3bb27b47fd559677965c52cae7b335784724fb8bf96c42b6e5ba7d7afcbc31facb0e294c3ef717cc41c5bc2f7bd9e76f8b90acd31c +"before-after-hook@npm:^4.0.0": + version: 4.0.0 + resolution: "before-after-hook@npm:4.0.0" + checksum: 10c0/9f8ae8d1b06142bcfb9ef6625226b5e50348bb11210f266660eddcf9734e0db6f9afc4cb48397ee3f5ac0a3728f3ae401cdeea88413f7bed748a71db84657be2 languageName: node linkType: hard @@ -8503,13 +8432,6 @@ __metadata: languageName: node linkType: hard -"btoa-lite@npm:^1.0.0": - version: 1.0.0 - resolution: "btoa-lite@npm:1.0.0" - checksum: 10c0/7a4f0568ae3c915464650f98fde7901ae07b13a333a614515a0c86876b3528670fafece28dfef9745d971a613bb83341823afb0c20c6f318b384c1e364b9eb95 - languageName: node - linkType: hard - "buffer-crc32@npm:^1.0.0": version: 1.0.0 resolution: "buffer-crc32@npm:1.0.0" @@ -8804,13 +8726,6 @@ __metadata: languageName: node linkType: hard -"clean-stack@npm:^2.0.0": - version: 2.2.0 - resolution: "clean-stack@npm:2.2.0" - checksum: 10c0/1f90262d5f6230a17e27d0c190b09d47ebe7efdd76a03b5a1127863f7b3c9aec4c3e6c8bb3a7bbf81d553d56a1fd35728f5a8ef4c63f867ac8d690109742a8c1 - languageName: node - linkType: hard - "cli-cursor@npm:^5.0.0": version: 5.0.0 resolution: "cli-cursor@npm:5.0.0" @@ -9200,6 +9115,13 @@ __metadata: languageName: node linkType: hard +"content-type@npm:^2.0.0": + version: 2.0.0 + resolution: "content-type@npm:2.0.0" + checksum: 10c0/491539fff707d7594b0ca4fabcc084bef2a31ffa754ff0a4f80c4377e3963cff0394317f9271c24087596c97fa675bc123d61fa34ffe65b4904e7d3d3098de72 + languageName: node + linkType: hard + "convert-source-map@npm:^2.0.0": version: 2.0.0 resolution: "convert-source-map@npm:2.0.0" @@ -10088,13 +10010,6 @@ __metadata: languageName: node linkType: hard -"deprecation@npm:^2.0.0, deprecation@npm:^2.3.1": - version: 2.3.1 - resolution: "deprecation@npm:2.3.1" - checksum: 10c0/23d688ba66b74d09b908c40a76179418acbeeb0bfdf218c8075c58ad8d0c315130cb91aa3dffb623aa3a411a3569ce56c6460de6c8d69071c17fe6dd2442f032 - languageName: node - linkType: hard - "destroy@npm:^1.2.0": version: 1.2.0 resolution: "destroy@npm:1.2.0" @@ -10983,6 +10898,13 @@ __metadata: languageName: node linkType: hard +"fast-content-type-parse@npm:^3.0.0": + version: 3.0.0 + resolution: "fast-content-type-parse@npm:3.0.0" + checksum: 10c0/06251880c83b7118af3a5e66e8bcee60d44f48b39396fc60acc2b4630bd5f3e77552b999b5c8e943d45a818854360e5e97164c374ec4b562b4df96a2cdf2e188 + languageName: node + linkType: hard + "fast-deep-equal@npm:^3.1.3": version: 3.1.3 resolution: "fast-deep-equal@npm:3.1.3" @@ -12346,13 +12268,6 @@ __metadata: languageName: node linkType: hard -"indent-string@npm:^4.0.0": - version: 4.0.0 - resolution: "indent-string@npm:4.0.0" - checksum: 10c0/1e1904ddb0cb3d6cce7cd09e27a90184908b7a5d5c21b92e232c93579d314f0b83c246ffb035493d0504b1e9147ba2c9b21df0030f48673fba0496ecd698161f - languageName: node - linkType: hard - "inflation@npm:^2.0.0": version: 2.1.0 resolution: "inflation@npm:2.1.0" @@ -13183,6 +13098,13 @@ __metadata: languageName: node linkType: hard +"json-with-bigint@npm:^3.5.3": + version: 3.5.8 + resolution: "json-with-bigint@npm:3.5.8" + checksum: 10c0/a0c4e37626d74a9a493539f9f9a94855933fa15ea2f028859a787229a42c5f11803db6f94f1ce7b1d89756c1e80a7c1f11006bac266ec7ce819b75701765ca0a + languageName: node + linkType: hard + "json5@npm:^2.2.3": version: 2.2.3 resolution: "json5@npm:2.2.3" @@ -13231,7 +13153,7 @@ __metadata: languageName: node linkType: hard -"jsonwebtoken@npm:^9.0.2, jsonwebtoken@npm:^9.0.3": +"jsonwebtoken@npm:^9.0.3": version: 9.0.3 resolution: "jsonwebtoken@npm:9.0.3" dependencies: @@ -14021,13 +13943,6 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:@wolfy1339/lru-cache@^11.0.2-patch.1": - version: 11.0.2-patch.1 - resolution: "@wolfy1339/lru-cache@npm:11.0.2-patch.1" - checksum: 10c0/0279b18e46bec0ff00eb18cb19ab3d42dd49bc5c7d1f30f7b0d2deb50c13a99c9ad6a8e4e8cf8a5df614e79e0e62a80df2870c8092c13bfe32f8ecb9a40352b9 - languageName: node - linkType: hard - "lru-cache@npm:^10.2.0": version: 10.4.3 resolution: "lru-cache@npm:10.4.3" @@ -15030,22 +14945,22 @@ __metadata: languageName: node linkType: hard -"octokit@npm:^3.2.2": - version: 3.2.2 - resolution: "octokit@npm:3.2.2" +"octokit@npm:^5.0.5": + version: 5.0.5 + resolution: "octokit@npm:5.0.5" dependencies: - "@octokit/app": "npm:^14.0.2" - "@octokit/core": "npm:^5.0.0" - "@octokit/oauth-app": "npm:^6.0.0" - "@octokit/plugin-paginate-graphql": "npm:^4.0.0" - "@octokit/plugin-paginate-rest": "npm:11.4.4-cjs.2" - "@octokit/plugin-rest-endpoint-methods": "npm:13.3.2-cjs.1" - "@octokit/plugin-retry": "npm:^6.0.0" - "@octokit/plugin-throttling": "npm:^8.0.0" - "@octokit/request-error": "npm:^5.0.0" - "@octokit/types": "npm:^13.0.0" - "@octokit/webhooks": "npm:^12.3.1" - checksum: 10c0/12287dc20f951854117eace8d983b14b03f77cf515bf4da642e64bf2dba7e5fd60f08eb37e4a2d3f6dc3c910c2a607e62b619f0ebd3f59bf67b4daa8915f0e34 + "@octokit/app": "npm:^16.1.2" + "@octokit/core": "npm:^7.0.6" + "@octokit/oauth-app": "npm:^8.0.3" + "@octokit/plugin-paginate-graphql": "npm:^6.0.0" + "@octokit/plugin-paginate-rest": "npm:^14.0.0" + "@octokit/plugin-rest-endpoint-methods": "npm:^17.0.0" + "@octokit/plugin-retry": "npm:^8.0.3" + "@octokit/plugin-throttling": "npm:^11.0.3" + "@octokit/request-error": "npm:^7.0.2" + "@octokit/types": "npm:^16.0.0" + "@octokit/webhooks": "npm:^14.0.0" + checksum: 10c0/34dd8222468c6b34afb34157588628075f8cc2e9005c060daa9d045ad9cec141bf79b59793c20404bee7e35739f238e77b11e924760b95ac101dd1bdeb2bb0e1 languageName: node linkType: hard @@ -15170,7 +15085,8 @@ __metadata: "@modelcontextprotocol/sdk": "npm:^1.25.3" "@node-oauth/oauth2-server": "npm:^5.3.0" "@notionhq/client": "npm:^2.3.0" - "@octokit/auth-app": "npm:^6.1.4" + "@octokit/auth-app": "npm:^8.2.0" + "@octokit/webhooks-types": "npm:^7.6.1" "@outlinewiki/koa-passport": "npm:^4.2.1" "@outlinewiki/passport-azure-ad-oauth2": "npm:^0.1.0" "@radix-ui/react-collapsible": "npm:^1.1.12" @@ -15344,7 +15260,7 @@ __metadata: node-fetch: "npm:2.7.0" nodemailer: "npm:^7.0.13" nodemon: "npm:^3.1.14" - octokit: "npm:^3.2.2" + octokit: "npm:^5.0.5" outline-icons: "npm:^4.3.0" oxlint: "npm:1.66.0" oxlint-tsgolint: "npm:0.22.1" @@ -19008,21 +18924,7 @@ __metadata: languageName: node linkType: hard -"terser@npm:^5.17.4": - version: 5.44.1 - resolution: "terser@npm:5.44.1" - dependencies: - "@jridgewell/source-map": "npm:^0.3.3" - acorn: "npm:^8.15.0" - commander: "npm:^2.20.0" - source-map-support: "npm:~0.5.20" - bin: - terser: bin/terser - checksum: 10c0/ee7a76692cb39b1ed22c30ff366c33ff3c977d9bb769575338ff5664676168fcba59192fb5168ef80c7cd901ef5411a1b0351261f5eaa50decf0fc71f63bde75 - languageName: node - linkType: hard - -"terser@npm:^5.48.0": +"terser@npm:^5.17.4, terser@npm:^5.48.0": version: 5.48.0 resolution: "terser@npm:5.48.0" dependencies: @@ -19193,6 +19095,13 @@ __metadata: languageName: node linkType: hard +"toad-cache@npm:^3.7.0": + version: 3.7.1 + resolution: "toad-cache@npm:3.7.1" + checksum: 10c0/22efc940723bbe30b8386af82ed0824263567b84d37f29f57651ad28d9aef823b678f07f6d6c2e142448d5f351f89e15e05f37f59e2c7f1d183294b8d32f93fb + languageName: node + linkType: hard + "toggle-selection@npm:^1.0.6": version: 1.0.6 resolution: "toggle-selection@npm:1.0.6" @@ -19681,20 +19590,17 @@ __metadata: languageName: node linkType: hard -"universal-github-app-jwt@npm:^1.1.2": - version: 1.2.0 - resolution: "universal-github-app-jwt@npm:1.2.0" - dependencies: - "@types/jsonwebtoken": "npm:^9.0.0" - jsonwebtoken: "npm:^9.0.2" - checksum: 10c0/d89b6ff97bdec564bcdff47e8e6c6edc44100cbb2308e7648ad86a90a432bf9873e66c31aba20ca09ddfdfee005fd4764589252ed46abcab70e70e4e739c9b22 +"universal-github-app-jwt@npm:^2.2.0": + version: 2.2.2 + resolution: "universal-github-app-jwt@npm:2.2.2" + checksum: 10c0/7ae5f031fb89c01a4407459b764c5e6341d725d436e1ceec161f9b754dd4883d9704cc8de53d5b6314b7e1bef8dbc7561799fc23001e706f213d468c17026fb6 languageName: node linkType: hard -"universal-user-agent@npm:^6.0.0": - version: 6.0.1 - resolution: "universal-user-agent@npm:6.0.1" - checksum: 10c0/5c9c46ffe19a975e11e6443640ed4c9e0ce48fcc7203325757a8414ac49940ebb0f4667f2b1fa561489d1eb22cb2d05a0f7c82ec20c5cba42e58e188fb19b187 +"universal-user-agent@npm:^7.0.0, universal-user-agent@npm:^7.0.2": + version: 7.0.3 + resolution: "universal-user-agent@npm:7.0.3" + checksum: 10c0/6043be466a9bb96c0ce82392842d9fddf4c37e296f7bacc2cb25f47123990eb436c82df824644f9c5070a94dbdb117be17f66d54599ab143648ec57ef93dbcc8 languageName: node linkType: hard From 8989287e8a0045e54e0da9df197fb0f78f9028d1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 19:56:46 -0400 Subject: [PATCH 097/286] perf: Add missing indexes on foreign keys referencing documents (#12473) * perf: Add missing indexes on foreign keys referencing documents Cascade deletes on the documents table were forced into sequential scans on file_operations, share_subscriptions, and access_requests because their documentId columns lacked a usable single-column index. Also fixes lint-staged to skip oxlint when every staged file matches an .oxlintrc.json ignore pattern, since oxlint exits 1 in that case. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Handle oxlint no-files exit instead of mirroring ignorePatterns Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- lint-staged.config.mjs | 11 ++++++---- ...092836-add-document-foreign-key-indexes.js | 22 +++++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 server/migrations/20260526092836-add-document-foreign-key-indexes.js diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs index 84312892e6..a414ff6ef4 100644 --- a/lint-staged.config.mjs +++ b/lint-staged.config.mjs @@ -1,12 +1,15 @@ +// oxlint exits 1 when every input matches .oxlintrc.json ignorePatterns +// (e.g. migration-only commits). Swallow that specific case so the hook +// passes, while still surfacing real lint failures. +const oxlint = (files) => + `bash -c 'out=$(oxlint ${files.join(" ")} --fix --type-aware 2>&1); rc=$?; printf "%s\\n" "$out"; if [ $rc -ne 0 ] && ! printf "%s" "$out" | grep -q "No files found to lint"; then exit $rc; fi'`; + export default { // Run prettier first for formatting, then oxlint for linting, and translation updates on changes to JS and // TypeScript files "**/*.[tj]s?(x)": [ (f) => `prettier --write ${f.join(" ")}`, - (f) => - f.length > 20 - ? `yarn lint --fix` - : `oxlint ${f.join(" ")} --fix --type-aware`, + (f) => (f.length > 20 ? `yarn lint --fix` : oxlint(f)), () => `yarn build:i18n`, () => "git add shared/i18n/locales/en_US/translation.json", ], diff --git a/server/migrations/20260526092836-add-document-foreign-key-indexes.js b/server/migrations/20260526092836-add-document-foreign-key-indexes.js new file mode 100644 index 0000000000..c8749c41a9 --- /dev/null +++ b/server/migrations/20260526092836-add-document-foreign-key-indexes.js @@ -0,0 +1,22 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface) { + await queryInterface.addIndex("file_operations", ["documentId"], { + concurrently: true, + }); + await queryInterface.addIndex("share_subscriptions", ["documentId"], { + concurrently: true, + }); + await queryInterface.addIndex("access_requests", ["documentId"], { + concurrently: true, + }); + }, + + async down(queryInterface) { + await queryInterface.removeIndex("access_requests", ["documentId"]); + await queryInterface.removeIndex("share_subscriptions", ["documentId"]); + await queryInterface.removeIndex("file_operations", ["documentId"]); + }, +}; From 03950af3b70e3828450c8b7629d23934d06facad Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 19:56:56 -0400 Subject: [PATCH 098/286] fix: TypeError when document.collaboratorIds is null (#12471) Guard against null collaboratorIds when persisting collaborative updates; the DB column has no default and can be NULL on older rows. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/commands/documentCollaborativeUpdater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/commands/documentCollaborativeUpdater.ts b/server/commands/documentCollaborativeUpdater.ts index d8b2bb42bf..3f93c644f6 100644 --- a/server/commands/documentCollaborativeUpdater.ts +++ b/server/commands/documentCollaborativeUpdater.ts @@ -71,7 +71,7 @@ export default async function documentCollaborativeUpdater({ const pud = new Y.PermanentUserData(ydoc); const pudIds = Array.from(pud.clients.values()); const collaboratorIds = uniq([ - ...document.collaboratorIds, + ...(document.collaboratorIds ?? []), ...sessionCollaboratorIds, ...pudIds, ]); From 15213bbeb0bd4ab7c86d24453252629ed6f0b81a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 19:57:36 -0400 Subject: [PATCH 099/286] fix: Skip export attachments with malformed key (#12470) Attachments whose key ends in a trailing slash have no filename component and cause yazl to throw, aborting the entire export. Skip them with a warning and continue the export instead. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/queues/tasks/ExportDocumentTreeTask.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/queues/tasks/ExportDocumentTreeTask.ts b/server/queues/tasks/ExportDocumentTreeTask.ts index cb01ff0bbd..f8a6c866a0 100644 --- a/server/queues/tasks/ExportDocumentTreeTask.ts +++ b/server/queues/tasks/ExportDocumentTreeTask.ts @@ -70,6 +70,17 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { key: attachment.key, }); + // Skip attachments with a malformed key that has no filename component, + // as yazl rejects entries whose path ends with a slash. + if (!attachment.key || attachment.key.endsWith("/")) { + Logger.warn(`Skipping attachment with invalid key`, { + attachmentId: attachment.id, + teamId: attachment.teamId, + key: attachment.key, + }); + continue; + } + const dir = path.dirname(pathInZip); let buffer: Buffer; try { From a23b04c8fa6625b6d89e059d0ce1e6471f827d45 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:10:49 -0400 Subject: [PATCH 100/286] fix: Prevent ISE when tsquery tail interleaves operator and escape chars (#12475) When a user query produces a pg-tsquery output ending in mixed `&` and `\` characters (e.g. `"plugins"&\`), stripping them with separate single-char regexes in a fixed order could leave a dangling `&` operator, causing Postgres to reject the query with "no operand in tsquery". Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- .../search-postgres/server/PostgresSearchProvider.test.ts | 8 ++++++++ plugins/search-postgres/server/PostgresSearchProvider.ts | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/plugins/search-postgres/server/PostgresSearchProvider.test.ts b/plugins/search-postgres/server/PostgresSearchProvider.test.ts index ad7fba7cd1..dd16a3121b 100644 --- a/plugins/search-postgres/server/PostgresSearchProvider.test.ts +++ b/plugins/search-postgres/server/PostgresSearchProvider.test.ts @@ -1412,5 +1412,13 @@ describe("PostgresSearchProvider", () => { `"this<->is<->a<->test"` ); }); + it("should strip interleaved trailing operator and escape characters", () => { + // pg-tsquery reorders trailing operators and may emit a tail like + // `&\` that, if stripped one character at a time in the wrong order, + // leaves a dangling `&` and triggers "no operand in tsquery". + expect(PostgresSearchProvider.webSearchQuery(`"plugins"\\&`)).toBe( + `"plugins"` + ); + }); }); }); diff --git a/plugins/search-postgres/server/PostgresSearchProvider.ts b/plugins/search-postgres/server/PostgresSearchProvider.ts index c00bc091e4..8eca93125a 100644 --- a/plugins/search-postgres/server/PostgresSearchProvider.ts +++ b/plugins/search-postgres/server/PostgresSearchProvider.ts @@ -861,10 +861,10 @@ export default class PostgresSearchProvider extends BaseSearchProvider { // spaces. Ref: https://github.com/caub/pg-tsquery/issues/27 quotedSearch ? limitedQuery.trim() : `${limitedQuery.trim()}*` ) - // Remove any trailing join characters - .replace(/&$/, "") - // Remove any trailing escape characters - .replace(/\\$/, "") + // Strip any trailing join (&) or escape (\) characters, in any + // combination, so we never hand to_tsquery an operator with no + // operand (e.g. a tail of "&\" would leave a dangling "&"). + .replace(/[&\\]+$/, "") ); } From b9addda2297443ddafcbfee111a093a6f3940cd5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:12:26 -0400 Subject: [PATCH 101/286] perf: Reduce deletion batch size (#12474) --- server/commands/documentPermanentDeleter.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/server/commands/documentPermanentDeleter.ts b/server/commands/documentPermanentDeleter.ts index 4e090f14ad..2634b51aad 100644 --- a/server/commands/documentPermanentDeleter.ts +++ b/server/commands/documentPermanentDeleter.ts @@ -1,5 +1,6 @@ import { chunk, uniq } from "es-toolkit/compat"; import { Op, QueryTypes } from "sequelize"; +import { sleep } from "@shared/utils/timers"; import Logger from "@server/logging/Logger"; import { Document, Attachment } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; @@ -76,11 +77,6 @@ export default async function documentPermanentDeleter(documents: Document[]) { ); } - // Number of documents to delete per database statement. Keeps the exclusive - // lock window short enough to avoid blocking concurrent web requests that - // read from the documents table. - const BATCH_SIZE = 100; - const documentIds = documents.map((document) => document.id); // Re-check deletedAt in the database to exclude documents that were restored @@ -95,9 +91,8 @@ export default async function documentPermanentDeleter(documents: Document[]) { paranoid: false, }); const deletedIds = stillDeleted.map((document) => document.id); - const batches = chunk(deletedIds, BATCH_SIZE); - for (const batch of batches) { + for (const batch of chunk(deletedIds, 100)) { await Document.update( { parentDocumentId: null, @@ -113,15 +108,23 @@ export default async function documentPermanentDeleter(documents: Document[]) { ); } + // Small batch size and inter-batch sleep keep the exclusive lock window short + // enough to avoid blocking concurrent web requests, since each delete + // cascades into vectors, attachments, revisions, comments, and notifications. + const destroyBatches = chunk(deletedIds, 10); + let totalDeleted = 0; - for (const batch of batches) { + for (let i = 0; i < destroyBatches.length; i++) { totalDeleted += await Document.scope("withDrafts").destroy({ where: { - id: batch, + id: destroyBatches[i], deletedAt: { [Op.ne]: null }, }, force: true, }); + if (i < destroyBatches.length - 1) { + await sleep(100); + } } return totalDeleted; } From 62788c45e06b81ec3621acaf20057d2bfe9f1849 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:18:14 -0400 Subject: [PATCH 102/286] fix: Remove fragment from AuthenticationHelper (#12477) --- shared/helpers/AuthenticationHelper.test.ts | 14 ++++++++++++++ shared/helpers/AuthenticationHelper.ts | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/shared/helpers/AuthenticationHelper.test.ts b/shared/helpers/AuthenticationHelper.test.ts index 5b9d79da71..9b57342f23 100644 --- a/shared/helpers/AuthenticationHelper.test.ts +++ b/shared/helpers/AuthenticationHelper.test.ts @@ -21,6 +21,20 @@ describe("AuthenticationHelper", () => { expect(canAccess("/api/documents.info?foo=bar", scopes)).toBe(true); }); + it("should ignore URL fragment", async () => { + const scopes = ["/api/documents.info"]; + + expect( + canAccess("/api/documents.create#foo/api/documents.info", scopes) + ).toBe(false); + expect( + canAccess("/api/documents.info#foo/api/documents.create", scopes) + ).toBe(true); + expect( + canAccess("/api/documents.create?x=1#foo/api/documents.info", scopes) + ).toBe(false); + }); + it("should return false if no matching scope", async () => { const scopes = ["/api/documents.info"]; diff --git a/shared/helpers/AuthenticationHelper.ts b/shared/helpers/AuthenticationHelper.ts index 9241fc3136..bf492b40f4 100644 --- a/shared/helpers/AuthenticationHelper.ts +++ b/shared/helpers/AuthenticationHelper.ts @@ -39,8 +39,8 @@ export default class AuthenticationHelper { return true; } - // strip any query string, this is never used as part of scope matching - path = path.split("?")[0]; + // strip any query string or fragment, these are never used as part of scope matching + path = path.split("?")[0].split("#")[0]; const resource = path.split("/").pop() ?? ""; const [namespace, method] = resource.split("."); From 64ccdca0d7af4ec57abb23941f8aade390dbb206 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:18:23 -0400 Subject: [PATCH 103/286] fix: Guard table content changing mid-drag (#12476) * fix: Guard table content changing mid-drag * docs --- shared/editor/nodes/TableHeader.ts | 25 ++++++++++++++++++------- shared/editor/nodes/TableRow.ts | 25 ++++++++++++++++++------- 2 files changed, 36 insertions(+), 14 deletions(-) diff --git a/shared/editor/nodes/TableHeader.ts b/shared/editor/nodes/TableHeader.ts index a05383043d..9941625d65 100644 --- a/shared/editor/nodes/TableHeader.ts +++ b/shared/editor/nodes/TableHeader.ts @@ -132,13 +132,24 @@ function setupColumnDragTracking( document.body.classList.remove(EditorStyleHelper.tableDragging); if (isDragging && currentToIndex !== fromIndex && isInTable(view.state)) { - const moved = moveTableColumn({ from: fromIndex, to: currentToIndex })( - view.state, - view.dispatch - ); - if (moved) { - // Select the column at its new position - selectColumn(currentToIndex)(view.state, view.dispatch); + // Verify both indices are still valid for the current table. The document + // may have changed during the drag (e.g. collaborative editing) + const currentCols = getCellsInRow(0)(view.state); + const inBounds = + fromIndex >= 0 && + fromIndex < currentCols.length && + currentToIndex >= 0 && + currentToIndex < currentCols.length; + + if (inBounds) { + const moved = moveTableColumn({ from: fromIndex, to: currentToIndex })( + view.state, + view.dispatch + ); + if (moved) { + // Select the column at its new position + selectColumn(currentToIndex)(view.state, view.dispatch); + } } } diff --git a/shared/editor/nodes/TableRow.ts b/shared/editor/nodes/TableRow.ts index de63b1ed41..69998793dd 100644 --- a/shared/editor/nodes/TableRow.ts +++ b/shared/editor/nodes/TableRow.ts @@ -120,13 +120,24 @@ function setupRowDragTracking( document.body.classList.remove(EditorStyleHelper.tableDragging); if (isDragging && currentToIndex !== fromIndex && isInTable(view.state)) { - const moved = moveTableRow({ from: fromIndex, to: currentToIndex })( - view.state, - view.dispatch - ); - if (moved) { - // Select the row at its new position - selectRow(currentToIndex)(view.state, view.dispatch); + // Verify both indices are still valid for the current table. The document + // may have changed during the drag (e.g. collaborative editing) + const currentRows = getRowsInTable(view.state); + const inBounds = + fromIndex >= 0 && + fromIndex < currentRows.length && + currentToIndex >= 0 && + currentToIndex < currentRows.length; + + if (inBounds) { + const moved = moveTableRow({ from: fromIndex, to: currentToIndex })( + view.state, + view.dispatch + ); + if (moved) { + // Select the row at its new position + selectRow(currentToIndex)(view.state, view.dispatch); + } } } From 2c3e736eb343bd826f73e047829969b9984bbbc5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:29:18 -0400 Subject: [PATCH 104/286] fix: Avoid logging error when team not found in apex auth redirect (#12478) Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/middlewares/apexAuthRedirect.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/middlewares/apexAuthRedirect.ts b/server/middlewares/apexAuthRedirect.ts index b2139c13af..44d2ccf3c9 100644 --- a/server/middlewares/apexAuthRedirect.ts +++ b/server/middlewares/apexAuthRedirect.ts @@ -39,9 +39,12 @@ export default function apexAuthRedirect<T>({ try { const team = await Team.findByPk(teamId, { attributes: ["id", "domain", "subdomain"], - rejectOnEmpty: true, }); + if (!team) { + return ctx.redirect(getErrorPath(ctx)); + } + return parseDomain(ctx.host).teamSubdomain === team.subdomain ? ctx.redirect("/") : ctx.redirectOnClient(getRedirectPath(ctx, team)); From 84c00cfae7deecf8cad939ec3b800c4a6f859bb3 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:29:56 -0400 Subject: [PATCH 105/286] fix: Distinguish rate limiter error (#12479) --- server/middlewares/rateLimiter.ts | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/server/middlewares/rateLimiter.ts b/server/middlewares/rateLimiter.ts index c5beb6deb9..dca5b10980 100644 --- a/server/middlewares/rateLimiter.ts +++ b/server/middlewares/rateLimiter.ts @@ -69,23 +69,24 @@ export function defaultRateLimiter() { try { await limiter.consume(key); } catch (rateLimiterRes) { - if (rateLimiterRes.msBeforeNext) { - ctx.set("Retry-After", `${rateLimiterRes.msBeforeNext / 1000}`); - ctx.set("RateLimit-Limit", `${limiter.points}`); - ctx.set("RateLimit-Remaining", `${rateLimiterRes.remainingPoints}`); - ctx.set( - "RateLimit-Reset", - new Date(Date.now() + rateLimiterRes.msBeforeNext).toString() - ); - - Metrics.increment("rate_limit.exceeded", { - path: fullPath, - }); - - throw RateLimitExceededError(); - } else { + if (rateLimiterRes instanceof Error) { Logger.error("Rate limiter error", rateLimiterRes); + return next(); } + + ctx.set("Retry-After", `${rateLimiterRes.msBeforeNext / 1000}`); + ctx.set("RateLimit-Limit", `${limiter.points}`); + ctx.set("RateLimit-Remaining", `${rateLimiterRes.remainingPoints}`); + ctx.set( + "RateLimit-Reset", + new Date(Date.now() + rateLimiterRes.msBeforeNext).toString() + ); + + Metrics.increment("rate_limit.exceeded", { + path: fullPath, + }); + + throw RateLimitExceededError(); } return next(); From 667bfe68c5237bc3d85f9a12e60baaf079fbe36c Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:38:12 -0400 Subject: [PATCH 106/286] fix: Retry Notion API 5xx errors with exponential backoff (#12481) The Notion API can return transient 5xx errors during imports. Retry these up to 8 times with exponential backoff, tracked separately from the existing timeout/rate-limit retry budget. --- plugins/notion/server/notion.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/plugins/notion/server/notion.ts b/plugins/notion/server/notion.ts index 84e96d548b..eaf77bd6dd 100644 --- a/plugins/notion/server/notion.ts +++ b/plugins/notion/server/notion.ts @@ -6,6 +6,7 @@ import { isFullPageOrDatabase, isFullUser, RequestTimeoutError, + UnknownHTTPResponseError, } from "@notionhq/client"; import type { BlockObjectResponse, @@ -60,6 +61,7 @@ export class NotionClient { private limiter: ReturnType<typeof RateLimit>; private pageSize = 100; private maxRetries = 3; + private maxServerErrorRetries = 8; private retryDelay = 1000; private skipChildrenForBlock = [ "unsupported", @@ -94,6 +96,7 @@ export class NotionClient { */ private async fetchWithRetry<T>(apiCall: () => Promise<T>): Promise<T> { let retries = 0; + let serverErrorRetries = 0; // oxlint-disable-next-line no-constant-condition while (true) { @@ -149,6 +152,32 @@ export class NotionClient { ); } + // Check if this is a server-side error (5xx) — Notion's API can be + // unreliable, so retry these for longer with exponential backoff. + if ( + (error instanceof APIResponseError || + error instanceof UnknownHTTPResponseError) && + error.status >= 500 + ) { + if (serverErrorRetries < this.maxServerErrorRetries) { + serverErrorRetries++; + const delay = this.retryDelay * 2 ** (serverErrorRetries - 1); + Logger.info( + "task", + `Notion API returned ${error.status}, retrying in ${delay}ms (retry ${serverErrorRetries}/${this.maxServerErrorRetries})` + ); + + // Wait before retrying + await new Promise((resolve) => setTimeout(resolve, delay)); + continue; + } + + Logger.warn( + `Notion API returned ${error.status} after ${this.maxServerErrorRetries} retries`, + { error: error.message } + ); + } + // Re-throw the error if it's not a rate limit issue or we've exhausted retries throw error; } From 70c55e4a4255323640944b449922500a8abd4d6a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 20:38:46 -0400 Subject: [PATCH 107/286] feat: Add support for code blocks in comments (#12480) * feat: Add support for code blocks in comments * Add code_block --- app/scenes/Document/components/Comments/CommentEditor.tsx | 4 ++++ server/editor/index.ts | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/scenes/Document/components/Comments/CommentEditor.tsx b/app/scenes/Document/components/Comments/CommentEditor.tsx index 2e18ad2a73..f2ebe9c1de 100644 --- a/app/scenes/Document/components/Comments/CommentEditor.tsx +++ b/app/scenes/Document/components/Comments/CommentEditor.tsx @@ -1,6 +1,8 @@ import { observer } from "mobx-react"; import * as React from "react"; import { basicExtensions, withComments } from "@shared/editor/nodes"; +import CodeBlock from "@shared/editor/nodes/CodeBlock"; +import CodeFence from "@shared/editor/nodes/CodeFence"; import HardBreak from "@shared/editor/nodes/HardBreak"; import type { Props as EditorProps } from "~/components/Editor"; import Editor from "~/components/Editor"; @@ -17,6 +19,8 @@ import useCurrentUser from "~/hooks/useCurrentUser"; const extensions = [ ...withComments(basicExtensions), + CodeBlock, + CodeFence, HardBreak, SmartText, PasteHandler, diff --git a/server/editor/index.ts b/server/editor/index.ts index 193762a029..731e40f4f7 100644 --- a/server/editor/index.ts +++ b/server/editor/index.ts @@ -9,6 +9,8 @@ import { richExtensions, withComments, } from "@shared/editor/nodes"; +import CodeBlock from "@shared/editor/nodes/CodeBlock"; +import CodeFence from "@shared/editor/nodes/CodeFence"; import Mention from "@shared/editor/nodes/Mention"; populateEmojiData(data as EmojiMartData); @@ -56,7 +58,7 @@ export const basicParser = basicExtensionManager.parser({ plugins: basicExtensionManager.rulePlugins, }); -const commentExtensions = [...basicExtensions, Mention]; +const commentExtensions = [...basicExtensions, CodeBlock, CodeFence, Mention]; export const commentExtensionManager = new ExtensionManager(commentExtensions); export const commentSchema = new Schema({ From e6f9b48530e5bdba43767c84bd9f609791e9b1fc Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 26 May 2026 21:23:19 -0400 Subject: [PATCH 108/286] fix: Make search highlight chip clickable in desktop app (#12482) --- app/scenes/Document/components/SearchHighlightChip.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scenes/Document/components/SearchHighlightChip.tsx b/app/scenes/Document/components/SearchHighlightChip.tsx index b453d49839..552286622f 100644 --- a/app/scenes/Document/components/SearchHighlightChip.tsx +++ b/app/scenes/Document/components/SearchHighlightChip.tsx @@ -6,6 +6,7 @@ import styled from "styled-components"; import { ellipsis } from "@shared/styles"; import { useDocumentContext } from "~/components/DocumentContext"; import Tooltip from "~/components/Tooltip"; +import { undraggableOnDesktop } from "~/styles"; export function SearchHighlightChip() { const { t } = useTranslation(); @@ -50,6 +51,7 @@ export function SearchHighlightChip() { } const Chip = styled.button` + ${undraggableOnDesktop()} display: inline-flex; align-items: center; gap: 2px; From ecaf1169908ccc10992cbe34b99062c928d3e6a5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 08:31:43 -0400 Subject: [PATCH 109/286] fix: Guard against out-of-range position in scrollToAnchor (#12489) The MutationObserver callback could throw an uncaught RangeError when posAtDOM returned a position outside the document, since the existing try/catch only wrapped the observer setup, not the async callback. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- app/editor/index.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/editor/index.tsx b/app/editor/index.tsx index 0e9e7d39b8..f3e2027b40 100644 --- a/app/editor/index.tsx +++ b/app/editor/index.tsx @@ -572,12 +572,18 @@ export class Editor extends React.PureComponent< this.mutationObserver = observe( hash, (element) => { - const pos = this.view.posAtDOM(element, 0, 1); - this.view.dispatch( - this.view.state.tr.setSelection( - TextSelection.near(this.view.state.doc.resolve(pos), 1) - ) - ); + try { + const pos = this.view.posAtDOM(element, 0, 1); + if (pos >= 0 && pos <= this.view.state.doc.content.size) { + this.view.dispatch( + this.view.state.tr.setSelection( + TextSelection.near(this.view.state.doc.resolve(pos), 1) + ) + ); + } + } catch (_err) { + // posAtDOM may throw if the element is not part of the editor doc + } if (isVisible(element)) { element.scrollIntoView(); From c4fe093a0d86770fc9c88cf89fde2f4e68fc8215 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 08:31:50 -0400 Subject: [PATCH 110/286] fix: Skip Sentry capture for expected websocket "No access token" error (#12487) Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- app/components/WebsocketProvider.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/components/WebsocketProvider.tsx b/app/components/WebsocketProvider.tsx index bd5bb744a9..62c19d4bda 100644 --- a/app/components/WebsocketProvider.tsx +++ b/app/components/WebsocketProvider.tsx @@ -96,6 +96,10 @@ function useConnectionHandlers() { toast.error(message); + if (message === "No access token") { + return; + } + if (err instanceof Error) { Sentry.captureException(err); } else { From 1186ddd3c00d0621691b0d70e9c8da88b55697bb Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 08:32:09 -0400 Subject: [PATCH 111/286] fix: Enable import into document with write permissions only (#12485) --- server/routes/api/documents/documents.test.ts | 62 +++++++++++++++++++ server/routes/api/documents/documents.ts | 24 ++++--- 2 files changed, 78 insertions(+), 8 deletions(-) diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index ca364fb2f7..c5ba1b0937 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -3200,6 +3200,68 @@ describe("#documents.import", () => { vi.restoreAllMocks(); }); + it("should import a child document with parent document permission only", async () => { + const team = await buildTeam(); + const author = await buildUser({ teamId: team.id }); + const user = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + userId: author.id, + teamId: team.id, + permission: null, + }); + const parentDocument = await buildDocument({ + userId: author.id, + teamId: team.id, + collectionId: collection.id, + }); + await UserMembership.create({ + documentId: parentDocument.id, + userId: user.id, + createdById: author.id, + permission: DocumentPermission.ReadWrite, + }); + const childDocument = await buildDocument({ + userId: user.id, + teamId: team.id, + collectionId: collection.id, + parentDocumentId: parentDocument.id, + }); + + vi.spyOn(FileStorage, "store").mockResolvedValue( + undefined as unknown as string + ); + vi.spyOn(DocumentImportTask.prototype, "schedule").mockResolvedValue({ + finished: vi.fn().mockResolvedValue({ documentId: childDocument.id }), + } as unknown as Awaited<ReturnType<DocumentImportTask["schedule"]>>); + + const content = await readFile( + path.resolve( + __dirname, + "..", + "..", + "..", + "test", + "fixtures", + "markdown.md" + ) + ); + const form = new FormData(); + form.append("file", content, "markdown.md"); + form.append("token", user.getSessionToken()); + form.append("collectionId", collection.id); + form.append("parentDocumentId", parentDocument.id); + + const res = await server.post("/api/documents.import", { + headers: form.getHeaders(), + body: form, + }); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.data.id).toEqual(childDocument.id); + + vi.restoreAllMocks(); + }); + it("should require authentication", async () => { const document = await buildDocument(); const res = await server.post("/api/documents.import", { diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 62b8eeeccd..a4d6e8eb08 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -1593,20 +1593,28 @@ router.post( throw ValidationError("one of attachmentId or file is required"); } - if (collectionId) { - const collection = await Collection.findByPk(collectionId, { - userId: user.id, - }); - authorize(user, "createDocument", collection); - } - let parentDocument: Document | null = null; + let collection: Collection | null = null; if (parentDocumentId) { parentDocument = await Document.findByPk(parentDocumentId, { userId: user.id, }); - authorize(user, "createChildDocument", parentDocument); + + if (parentDocument?.collectionId) { + collection = await Collection.findByPk(parentDocument.collectionId, { + userId: user.id, + }); + } + + authorize(user, "createChildDocument", parentDocument, { + collection, + }); + } else if (collectionId) { + collection = await Collection.findByPk(collectionId, { + userId: user.id, + }); + authorize(user, "createDocument", collection); } let key: string; From 0f2513346a7a78737373bd31e263624eb380eddf Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 18:27:34 -0400 Subject: [PATCH 112/286] Hardening of scope validation (#12490) --- app/scenes/Login/OAuthScopeHelper.test.ts | 98 ++++++++++++++ app/scenes/Login/OAuthScopeHelper.ts | 8 +- server/models/ApiKey.ts | 3 +- server/models/oauth/OAuthAuthentication.ts | 3 +- server/models/oauth/OAuthAuthorizationCode.ts | 4 +- server/utils/oauth/OAuthInterface.test.ts | 7 + server/utils/oauth/OAuthInterface.ts | 28 +--- shared/helpers/AuthenticationHelper.test.ts | 120 ++++++++++++++++++ shared/helpers/AuthenticationHelper.ts | 41 ++++++ shared/i18n/locales/en_US/translation.json | 3 + 10 files changed, 288 insertions(+), 27 deletions(-) create mode 100644 app/scenes/Login/OAuthScopeHelper.test.ts diff --git a/app/scenes/Login/OAuthScopeHelper.test.ts b/app/scenes/Login/OAuthScopeHelper.test.ts new file mode 100644 index 0000000000..d95a2d4ffe --- /dev/null +++ b/app/scenes/Login/OAuthScopeHelper.test.ts @@ -0,0 +1,98 @@ +import type { TFunction } from "i18next"; +import { OAuthScopeHelper } from "./OAuthScopeHelper"; + +const t = ((key: string) => key) as unknown as TFunction; + +describe("OAuthScopeHelper", () => { + describe("normalizeScopes", () => { + it("renders the full wildcard as Full access", () => { + expect(OAuthScopeHelper.normalizeScopes(["*"], t)).toEqual([ + "Full access", + ]); + }); + + it("renders the equivalent /api/*.* route scope as Full access", () => { + expect(OAuthScopeHelper.normalizeScopes(["/api/*.*"], t)).toEqual([ + "Full access", + ]); + }); + + it("renders global access scopes", () => { + expect(OAuthScopeHelper.normalizeScopes(["read"], t)).toEqual([ + "Read all data", + ]); + expect(OAuthScopeHelper.normalizeScopes(["write"], t)).toEqual([ + "Write all data", + ]); + expect(OAuthScopeHelper.normalizeScopes(["create"], t)).toEqual([ + "Create all data", + ]); + }); + + it("renders route scopes with both namespace and method", () => { + expect( + OAuthScopeHelper.normalizeScopes(["/api/documents.list"], t) + ).toEqual(["Read documents"]); + expect( + OAuthScopeHelper.normalizeScopes(["/api/documents.create"], t) + ).toEqual(["Create documents"]); + expect( + OAuthScopeHelper.normalizeScopes(["/api/collections.update"], t) + ).toEqual(["Write collections"]); + }); + + it("renders wildcard methods", () => { + expect(OAuthScopeHelper.normalizeScopes(["/api/documents.*"], t)).toEqual( + ["Read and write documents"] + ); + }); + + it("renders wildcard namespaces", () => { + expect(OAuthScopeHelper.normalizeScopes(["/api/*.list"], t)).toEqual([ + "Read workspace", + ]); + }); + + it("renders namespaced access scopes", () => { + expect(OAuthScopeHelper.normalizeScopes(["documents:read"], t)).toEqual([ + "Read documents", + ]); + expect(OAuthScopeHelper.normalizeScopes(["documents:write"], t)).toEqual([ + "Write documents", + ]); + }); + + it("translates known namespaces", () => { + // `capitalize` lowercases the rest of the string, so "API keys" becomes + // "api keys" after composition with the verb. This matches what users + // see today. + expect( + OAuthScopeHelper.normalizeScopes(["/api/apiKeys.list"], t) + ).toEqual(["Read api keys"]); + }); + + it("falls back to the raw namespace when unknown", () => { + expect( + OAuthScopeHelper.normalizeScopes(["/api/widgets.list"], t) + ).toEqual(["Read widgets"]); + }); + + it("deduplicates equivalent scopes", () => { + expect( + OAuthScopeHelper.normalizeScopes( + ["/api/documents.list", "/api/documents.info", "documents:read"], + t + ) + ).toEqual(["Read documents"]); + }); + + it("renders legacy malformed mixed scopes by their wildcard prefix", () => { + // These scopes can no longer be saved but may exist in older rows. + // The trailing access level is dropped and the result reflects the + // effective `*.*` access that enforcement granted. + expect(OAuthScopeHelper.normalizeScopes(["/api/*.*:read"], t)).toEqual([ + "Read and write workspace", + ]); + }); + }); +}); diff --git a/app/scenes/Login/OAuthScopeHelper.ts b/app/scenes/Login/OAuthScopeHelper.ts index 078ee8810e..f63fb73a56 100644 --- a/app/scenes/Login/OAuthScopeHelper.ts +++ b/app/scenes/Login/OAuthScopeHelper.ts @@ -9,7 +9,7 @@ export class OAuthScopeHelper { info: t("read"), read: t("read"), write: t("write"), - create: t("write"), + create: t("create"), update: t("write"), delete: t("write"), "*": t("read and write"), @@ -34,12 +34,18 @@ export class OAuthScopeHelper { }; const normalizedScopes = scopes.map((scope) => { + if (scope === "*" || scope === "/api/*.*") { + return t("Full access"); + } if (scope === Scope.Read) { return t("Read all data"); } if (scope === Scope.Write) { return t("Write all data"); } + if (scope === Scope.Create) { + return t("Create all data"); + } const [namespace, method] = scope.replace("/api/", "").split(/[:.]/g); const readableMethod = diff --git a/server/models/ApiKey.ts b/server/models/ApiKey.ts index 4116aa2a20..38e3fd7a54 100644 --- a/server/models/ApiKey.ts +++ b/server/models/ApiKey.ts @@ -54,8 +54,9 @@ class ApiKey extends ParanoidModel< name: string; /** A list of scopes that this API key has access to */ - @Matches(/[/.\w\s]*/, { + @Matches(AuthenticationHelper.scopeGrammarRegex, { each: true, + message: "Scope must be a valid API scope", }) @Column(DataType.ARRAY(DataType.STRING)) scope: string[] | null; diff --git a/server/models/oauth/OAuthAuthentication.ts b/server/models/oauth/OAuthAuthentication.ts index f75a355aca..aa9f9becf6 100644 --- a/server/models/oauth/OAuthAuthentication.ts +++ b/server/models/oauth/OAuthAuthentication.ts @@ -83,8 +83,9 @@ class OAuthAuthentication extends ParanoidModel< grantId: string | null; /** A list of scopes that this authentication has access to */ - @Matches(/[/.\w\s]*/, { + @Matches(AuthenticationHelper.scopeGrammarRegex, { each: true, + message: "Scope must be a valid API scope", }) @Column(DataType.ARRAY(DataType.STRING)) scope: string[]; diff --git a/server/models/oauth/OAuthAuthorizationCode.ts b/server/models/oauth/OAuthAuthorizationCode.ts index 37767effe9..15311695c2 100644 --- a/server/models/oauth/OAuthAuthorizationCode.ts +++ b/server/models/oauth/OAuthAuthorizationCode.ts @@ -8,6 +8,7 @@ import { Table, Length, } from "sequelize-typescript"; +import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; import { OAuthClientValidation } from "@shared/validations"; import env from "@server/env"; import User from "@server/models/User"; @@ -57,8 +58,9 @@ class OAuthAuthorizationCode extends IdModel< grantId: string | null; /** A list of scopes that this authorization code has access to */ - @Matches(/[/.\w\s]*/, { + @Matches(AuthenticationHelper.scopeGrammarRegex, { each: true, + message: "Scope must be a valid API scope", }) @Column(DataType.ARRAY(DataType.STRING)) scope: string[]; diff --git a/server/utils/oauth/OAuthInterface.test.ts b/server/utils/oauth/OAuthInterface.test.ts index 93777a4047..b515a2974f 100644 --- a/server/utils/oauth/OAuthInterface.test.ts +++ b/server/utils/oauth/OAuthInterface.test.ts @@ -353,5 +353,12 @@ describe("OAuthInterface", () => { const result = await OAuthInterface.validateScope(user, client, scope); expect(result).toBe(false); }); + + it("should reject root wildcard route scopes", async () => { + const result = await OAuthInterface.validateScope(user, client, [ + "/api/*.*", + ]); + expect(result).toBe(false); + }); }); }); diff --git a/server/utils/oauth/OAuthInterface.ts b/server/utils/oauth/OAuthInterface.ts index 979e690641..e869a46667 100644 --- a/server/utils/oauth/OAuthInterface.ts +++ b/server/utils/oauth/OAuthInterface.ts @@ -5,7 +5,7 @@ import type { User as OAuthUser, } from "@node-oauth/oauth2-server"; import type { Required } from "utility-types"; -import { Scope } from "@shared/types"; +import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; import { isUrl } from "@shared/utils/urls"; import { OAuthClient, @@ -393,29 +393,11 @@ export const OAuthInterface: RefreshTokenModel & } const scopes = Array.isArray(scope) ? scope : [scope]; - const validAccessScopes = Object.values(Scope); - return scopes.every((s: string) => { - if (validAccessScopes.includes(s as Scope)) { - return true; - } - - const periodCount = (s.match(/\./g) || []).length; - const colonCount = (s.match(/:/g) || []).length; - - if (periodCount === 1 && colonCount === 0) { - return true; - } - - if ( - colonCount === 1 && - validAccessScopes.includes(s.split(":")[1] as Scope) - ) { - return true; - } - - return false; - }) + // OAuth clients cannot request scopes that grant unrestricted access. + return scopes.every((s: string) => + AuthenticationHelper.isValidScope(s, { allowRootWildcard: false }) + ) ? scopes : false; }, diff --git a/shared/helpers/AuthenticationHelper.test.ts b/shared/helpers/AuthenticationHelper.test.ts index 9b57342f23..3a659b7a80 100644 --- a/shared/helpers/AuthenticationHelper.test.ts +++ b/shared/helpers/AuthenticationHelper.test.ts @@ -146,5 +146,125 @@ describe("AuthenticationHelper", () => { expect(canAccess("/api/users.info", scopes)).toBe(false); }); }); + + describe("malformed scopes", () => { + it("should reject mixed route and namespaced scopes", async () => { + // Previously these were silently parsed as `/api/*.*` and granted + // access to every route. + expect(canAccess("/api/documents.list", ["/api/*.*:read"])).toBe(false); + expect(canAccess("/api/documents.create", ["/api/*.*:read"])).toBe( + false + ); + expect( + canAccess("/api/documents.list", ["/api/documents.list:read"]) + ).toBe(false); + }); + + it("should reject route scopes missing a method or namespace", async () => { + expect(canAccess("/api/documents.list", ["/api/documents"])).toBe( + false + ); + expect(canAccess("/api/documents.list", ["/api/.list"])).toBe(false); + expect(canAccess("/api/documents.list", ["/api/documents."])).toBe( + false + ); + }); + + it("should reject namespaced scopes with unknown access level", async () => { + expect(canAccess("/api/documents.list", ["documents:foo"])).toBe(false); + expect(canAccess("/api/documents.list", ["documents:"])).toBe(false); + }); + + it("should reject unprefixed namespace.method scopes", async () => { + expect(canAccess("/api/documents.list", ["documents.list"])).toBe( + false + ); + }); + + it("should reject empty scopes", async () => { + expect(canAccess("/api/documents.list", [""])).toBe(false); + }); + + it("should still grant access via other valid scopes alongside a malformed one", async () => { + expect( + canAccess("/api/documents.list", [ + "/api/*.*:read", + "/api/documents.list", + ]) + ).toBe(true); + }); + }); + }); + + describe("isValidScope", () => { + it("accepts the full wildcard", () => { + expect(AuthenticationHelper.isValidScope("*")).toBe(true); + }); + + it("accepts global access scopes", () => { + expect(AuthenticationHelper.isValidScope("read")).toBe(true); + expect(AuthenticationHelper.isValidScope("write")).toBe(true); + expect(AuthenticationHelper.isValidScope("create")).toBe(true); + }); + + it("accepts namespaced access scopes", () => { + expect(AuthenticationHelper.isValidScope("documents:read")).toBe(true); + expect(AuthenticationHelper.isValidScope("documents:write")).toBe(true); + expect(AuthenticationHelper.isValidScope("documents:create")).toBe(true); + }); + + it("accepts route scopes with wildcards", () => { + expect(AuthenticationHelper.isValidScope("/api/documents.list")).toBe( + true + ); + expect(AuthenticationHelper.isValidScope("/api/documents.*")).toBe(true); + expect(AuthenticationHelper.isValidScope("/api/*.list")).toBe(true); + expect(AuthenticationHelper.isValidScope("/api/*.*")).toBe(true); + }); + + it("rejects mixed route and namespaced scopes", () => { + expect(AuthenticationHelper.isValidScope("/api/*.*:read")).toBe(false); + expect( + AuthenticationHelper.isValidScope("/api/documents.list:read") + ).toBe(false); + }); + + it("rejects malformed scopes", () => { + expect(AuthenticationHelper.isValidScope("")).toBe(false); + expect(AuthenticationHelper.isValidScope("documents")).toBe(false); + expect(AuthenticationHelper.isValidScope("documents.list")).toBe(false); + expect(AuthenticationHelper.isValidScope("documents:foo")).toBe(false); + expect(AuthenticationHelper.isValidScope("/api/documents")).toBe(false); + expect(AuthenticationHelper.isValidScope("/api/documents.")).toBe(false); + expect(AuthenticationHelper.isValidScope("/api/.list")).toBe(false); + }); + + describe("with allowRootWildcard: false", () => { + const opts = { allowRootWildcard: false }; + + it("rejects scopes that grant access to every route", () => { + expect(AuthenticationHelper.isValidScope("*", opts)).toBe(false); + expect(AuthenticationHelper.isValidScope("/api/*.*", opts)).toBe(false); + }); + + it("still accepts wildcards on a single dimension", () => { + expect(AuthenticationHelper.isValidScope("/api/*.list", opts)).toBe( + true + ); + expect( + AuthenticationHelper.isValidScope("/api/documents.*", opts) + ).toBe(true); + }); + + it("still accepts other valid scopes", () => { + expect(AuthenticationHelper.isValidScope("read", opts)).toBe(true); + expect(AuthenticationHelper.isValidScope("documents:read", opts)).toBe( + true + ); + expect( + AuthenticationHelper.isValidScope("/api/documents.list", opts) + ).toBe(true); + }); + }); }); }); diff --git a/shared/helpers/AuthenticationHelper.ts b/shared/helpers/AuthenticationHelper.ts index bf492b40f4..b657b62397 100644 --- a/shared/helpers/AuthenticationHelper.ts +++ b/shared/helpers/AuthenticationHelper.ts @@ -21,6 +21,41 @@ export default class AuthenticationHelper { export: Scope.Read, }; + /** + * Matches exactly one of the supported scope grammars: + * + * - `*` — full wildcard + * - `read` | `write` | `create` — global access scope + * - `<namespace>:(read|write|create)` — namespaced access scope + * - `/api/<namespace>.<method>` — route scope, namespace and method may be `*` + */ + public static scopeGrammarRegex = + /^(\*|read|write|create|\w+:(read|write|create)|\/api\/(\*|\w+)\.(\*|\w+))$/; + + /** + * Returns whether the given string is a well-formed scope. Scopes that mix + * route and namespaced forms (e.g. `/api/documents.list:read`) are rejected + * to avoid ambiguity between validation and enforcement. + * + * @param scope The scope to validate + * @param options.allowRootWildcard Whether scopes that grant access to every + * route (`*` and `/api/*.*`) should be considered valid. Defaults to true. + * @returns true if the scope conforms to the supported grammar + */ + public static isValidScope = ( + scope: string, + options: { allowRootWildcard?: boolean } = {} + ): boolean => { + const { allowRootWildcard = true } = options; + if (!AuthenticationHelper.scopeGrammarRegex.test(scope)) { + return false; + } + if (!allowRootWildcard && (scope === "*" || scope === "/api/*.*")) { + return false; + } + return true; + }; + /** * Returns whether the given path can be accessed with any of the scopes. We * support scopes in the formats of: @@ -29,6 +64,8 @@ export default class AuthenticationHelper { * - `namespace:scope` * - `scope` * + * Malformed scopes that do not match the supported grammar are ignored. + * * @param path The path to check * @param scopes The scopes to check * @returns True if the path can be accessed @@ -46,6 +83,10 @@ export default class AuthenticationHelper { const [namespace, method] = resource.split("."); return scopes.some((scope) => { + if (!AuthenticationHelper.isValidScope(scope)) { + return false; + } + const [scopeNamespace, scopeMethod] = scope.match(/[:.]/g) ? scope.replace("/api/", "").split(/[:.]/g) : ["*", scope]; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index b87b45f606..512a1b7515 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -1036,6 +1036,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1053,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Any collection", "All time": "All time", "Past day": "Past day", From 798184435b25ad808c261b01b333f00a52961a82 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 18:28:21 -0400 Subject: [PATCH 113/286] fix: Show upload progress on import dialog button (#12488) * fix: Show upload progress on import dialog button --- app/scenes/Settings/components/DropToImport.tsx | 10 +++++++++- shared/i18n/locales/en_US/translation.json | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/scenes/Settings/components/DropToImport.tsx b/app/scenes/Settings/components/DropToImport.tsx index e93fbdc296..8e8c30b725 100644 --- a/app/scenes/Settings/components/DropToImport.tsx +++ b/app/scenes/Settings/components/DropToImport.tsx @@ -35,6 +35,7 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) { const { collections, imports } = useStores(); const [file, setFile] = useState<File | null>(null); const [isImporting, setImporting] = useState(false); + const [uploadProgress, setUploadProgress] = useState(0); const [permission, setPermission] = useState<CollectionPermission | null>( CollectionPermission.ReadWrite ); @@ -52,11 +53,13 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) { return; } setImporting(true); + setUploadProgress(0); try { const attachment = await uploadFile(file, { name: file.name, preset: AttachmentPreset.WorkspaceImport, + onProgress: (progress) => setUploadProgress(progress), }); if (format === FileOperationFormat.MarkdownZip) { @@ -89,6 +92,7 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) { toast.error(err.message); } finally { setImporting(false); + setUploadProgress(0); } }; @@ -144,7 +148,11 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) { </div> <Flex justify="flex-end"> <Button disabled={!file || isImporting} onClick={handleStartImport}> - {isImporting ? t("Uploading") + "…" : t("Start import")} + {isImporting + ? t("Uploading {{progress}}%", { + progress: Math.min(99, Math.floor(uploadProgress * 100)), + }) + : t("Start import")} </Button> </Flex> </Flex> diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 512a1b7515..aa8dc54192 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -1165,6 +1165,7 @@ "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", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", From b424d927244f79e2f368579aadb285260be47a3b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 18:39:49 -0400 Subject: [PATCH 114/286] chore: Bump tmp dep (#12494) --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 13f6eb89a1..1f08a68f3b 100644 --- a/package.json +++ b/package.json @@ -254,7 +254,7 @@ "styled-normalize": "^8.1.1", "throng": "^5.0.0", "tiny-cookie": "^2.5.1", - "tmp": "^0.2.5", + "tmp": "^0.2.6", "tunnel-agent": "^0.6.0", "ukkonen": "^2.2.0", "umzug": "^3.8.3", diff --git a/yarn.lock b/yarn.lock index 56dd94b707..69beb341bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15344,7 +15344,7 @@ __metadata: terser: "npm:^5.48.0" throng: "npm:^5.0.0" tiny-cookie: "npm:^2.5.1" - tmp: "npm:^0.2.5" + tmp: "npm:^0.2.6" tunnel-agent: "npm:^0.6.0" typescript: "npm:^5.9.3" ukkonen: "npm:^2.2.0" @@ -19070,10 +19070,10 @@ __metadata: languageName: node linkType: hard -"tmp@npm:^0.2.4, tmp@npm:^0.2.5": - version: 0.2.5 - resolution: "tmp@npm:0.2.5" - checksum: 10c0/cee5bb7d674bb4ba3ab3f3841c2ca7e46daeb2109eec395c1ec7329a91d52fcb21032b79ac25161a37b2565c4858fefab927af9735926a113ef7bac9091a6e0e +"tmp@npm:^0.2.4, tmp@npm:^0.2.5, tmp@npm:^0.2.6": + version: 0.2.7 + resolution: "tmp@npm:0.2.7" + checksum: 10c0/59eb55584f2f07210d3231b6a1f6b5c2b9794d8a7b509c8ee867ed2acad6d2245ee2448b7937b676ffbff3155a70077edde8a69f9d7cf0f90c86a62e8910c357 languageName: node linkType: hard From 45c797653f7da7538246fa18ff3b4a3fb928586b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 18:44:07 -0400 Subject: [PATCH 115/286] feat: Format word at cursor position (#12492) * wip * refactor * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- shared/editor/commands/toggleMark.ts | 100 ++++++++++++++++++++++++++- shared/editor/marks/Bold.ts | 2 +- shared/editor/marks/Code.ts | 2 +- shared/editor/marks/Highlight.ts | 2 +- shared/editor/marks/Italic.ts | 2 +- shared/editor/marks/Strikethrough.ts | 2 +- shared/editor/marks/Underline.ts | 2 +- 7 files changed, 104 insertions(+), 8 deletions(-) diff --git a/shared/editor/commands/toggleMark.ts b/shared/editor/commands/toggleMark.ts index d67b2fc2be..376ffc648f 100644 --- a/shared/editor/commands/toggleMark.ts +++ b/shared/editor/commands/toggleMark.ts @@ -1,24 +1,120 @@ import { toggleMark as pmToggleMark } from "prosemirror-commands"; import type { MarkType } from "prosemirror-model"; -import type { Command } from "prosemirror-state"; +import type { Command, EditorState } from "prosemirror-state"; +import { TextSelection } from "prosemirror-state"; import type { Primitive } from "utility-types"; import { chainTransactions } from "../lib/chainTransactions"; +import { getMarksBetween } from "../queries/getMarksBetween"; import { isMarkActive } from "../queries/isMarkActive"; +const wordCharRegex = /[\p{L}\p{N}_]/u; + +const ATOM_PLACEHOLDER = ""; + +/** + * If the selection is an empty cursor sitting inside a word (with word + * characters on both sides) in a textblock that allows the given mark type, + * returns the document positions spanning that word. Returns null otherwise — + * including when the cursor is at the leading or trailing edge of a word, + * since intent is ambiguous in those cases. + */ +function findWordRangeAtCursor( + state: EditorState, + type: MarkType +): { from: number; to: number } | null { + const { selection } = state; + if (!(selection instanceof TextSelection)) { + return null; + } + const $cursor = selection.$cursor; + if (!$cursor || !$cursor.parent.isTextblock) { + return null; + } + if (!$cursor.parent.type.allowsMarkType(type)) { + return null; + } + + const parentStart = $cursor.start(); + const parentEnd = $cursor.end(); + const text = state.doc.textBetween( + parentStart, + parentEnd, + undefined, + ATOM_PLACEHOLDER + ); + const offset = $cursor.pos - parentStart; + + const before = offset > 0 ? text[offset - 1] : ""; + const after = offset < text.length ? text[offset] : ""; + if (!wordCharRegex.test(before) || !wordCharRegex.test(after)) { + return null; + } + + let start = offset; + let end = offset; + while (start > 0 && wordCharRegex.test(text[start - 1])) { + start--; + } + while (end < text.length && wordCharRegex.test(text[end])) { + end++; + } + + return { from: parentStart + start, to: parentStart + end }; +} + +function rangeHasMarkWithAttrs( + state: EditorState, + type: MarkType, + attrs: Record<string, Primitive> | undefined, + from: number, + to: number +): boolean { + if (!state.doc.rangeHasMark(from, to, type)) { + return false; + } + if (!attrs) { + return true; + } + return getMarksBetween(from, to, state).some( + ({ mark }) => + mark.type === type && + Object.keys(attrs).every((key) => mark.attrs[key] === attrs[key]) + ); +} + /** * Toggles a mark on the current selection, if the mark is already with * matching attributes it will remove the mark instead, if the mark is active * but with different attributes it will update the mark with the new attributes. * + * When invoked with an empty cursor sitting inside a word (with word + * characters on both sides), the mark is applied to that whole word without + * altering the user's selection. + * * @param type - The mark type to toggle. * @param attrs - The attributes to apply to the mark. * @returns A prosemirror command. */ export function toggleMark( type: MarkType, - attrs: Record<string, Primitive> | undefined + attrs?: Record<string, Primitive> ): Command { return (state, dispatch) => { + const wordRange = findWordRangeAtCursor(state, type); + if (wordRange) { + const { from, to } = wordRange; + const hasMatching = rangeHasMarkWithAttrs(state, type, attrs, from, to); + + if (dispatch) { + const tr = state.tr.removeMark(from, to, type); + if (!hasMatching) { + tr.addMark(from, to, type.create(attrs)); + } + dispatch(tr); + } + return true; + } + if (isMarkActive(type, attrs)(state)) { return pmToggleMark(type)(state, dispatch); } diff --git a/shared/editor/marks/Bold.ts b/shared/editor/marks/Bold.ts index f585bffce3..b7d4d30420 100644 --- a/shared/editor/marks/Bold.ts +++ b/shared/editor/marks/Bold.ts @@ -1,6 +1,6 @@ -import { toggleMark } from "prosemirror-commands"; import type { InputRule } from "prosemirror-inputrules"; import type { MarkSpec, MarkType } from "prosemirror-model"; +import { toggleMark } from "../commands/toggleMark"; import { markInputRuleForPattern } from "../lib/markInputRule"; import Mark from "./Mark"; diff --git a/shared/editor/marks/Code.ts b/shared/editor/marks/Code.ts index b296143f6f..68ed70c1f7 100644 --- a/shared/editor/marks/Code.ts +++ b/shared/editor/marks/Code.ts @@ -1,5 +1,4 @@ import codemark from "prosemirror-codemark"; -import { toggleMark } from "prosemirror-commands"; import type { MarkSpec, MarkType, @@ -9,6 +8,7 @@ import type { } from "prosemirror-model"; import { Plugin, TextSelection } from "prosemirror-state"; import type { EditorView } from "prosemirror-view"; +import { toggleMark } from "../commands/toggleMark"; import { markInputRuleForPattern } from "../lib/markInputRule"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; import { isInCode } from "../queries/isInCode"; diff --git a/shared/editor/marks/Highlight.ts b/shared/editor/marks/Highlight.ts index 654706f2fc..a96be19f78 100644 --- a/shared/editor/marks/Highlight.ts +++ b/shared/editor/marks/Highlight.ts @@ -1,7 +1,7 @@ import { isHexColor } from "class-validator"; import { parseToRgb, rgba } from "polished"; -import { toggleMark } from "prosemirror-commands"; import type { MarkSpec, MarkType } from "prosemirror-model"; +import { toggleMark } from "../commands/toggleMark"; import { markInputRuleForPattern } from "../lib/markInputRule"; import markRule from "../rules/mark"; import Mark from "./Mark"; diff --git a/shared/editor/marks/Italic.ts b/shared/editor/marks/Italic.ts index e5f25cafc9..c76c952cd3 100644 --- a/shared/editor/marks/Italic.ts +++ b/shared/editor/marks/Italic.ts @@ -1,7 +1,7 @@ -import { toggleMark } from "prosemirror-commands"; import type { InputRule } from "prosemirror-inputrules"; import type { MarkSpec, MarkType } from "prosemirror-model"; import type { Command } from "prosemirror-state"; +import { toggleMark } from "../commands/toggleMark"; import { markInputRuleForPattern } from "../lib/markInputRule"; import Mark from "./Mark"; diff --git a/shared/editor/marks/Strikethrough.ts b/shared/editor/marks/Strikethrough.ts index 58b12ae5e8..e4eddcc99c 100644 --- a/shared/editor/marks/Strikethrough.ts +++ b/shared/editor/marks/Strikethrough.ts @@ -1,5 +1,5 @@ -import { toggleMark } from "prosemirror-commands"; import type { MarkSpec, MarkType } from "prosemirror-model"; +import { toggleMark } from "../commands/toggleMark"; import { markInputRuleForPattern } from "../lib/markInputRule"; import Mark from "./Mark"; diff --git a/shared/editor/marks/Underline.ts b/shared/editor/marks/Underline.ts index 5e93378b59..4026a11df7 100644 --- a/shared/editor/marks/Underline.ts +++ b/shared/editor/marks/Underline.ts @@ -1,5 +1,5 @@ -import { toggleMark } from "prosemirror-commands"; import type { MarkSpec, MarkType } from "prosemirror-model"; +import { toggleMark } from "../commands/toggleMark"; import { markInputRuleForPattern } from "../lib/markInputRule"; import underlinesRule from "../rules/underlines"; import Mark from "./Mark"; From f7b2eb0173229e8ccd8ed529efce4eab2e024445 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 19:44:16 -0400 Subject: [PATCH 116/286] Use segmented OTP input for delete confirmation dialogs (#12495) --- app/components/OneTimePasswordInput.tsx | 19 +++++++++-- app/scenes/TeamDelete.tsx | 37 ++++++++++++++-------- app/scenes/UserDelete.tsx | 37 ++++++++++++++-------- shared/i18n/locales/en_US/translation.json | 1 - 4 files changed, 65 insertions(+), 29 deletions(-) diff --git a/app/components/OneTimePasswordInput.tsx b/app/components/OneTimePasswordInput.tsx index ab9a7506e9..db660f5a6c 100644 --- a/app/components/OneTimePasswordInput.tsx +++ b/app/components/OneTimePasswordInput.tsx @@ -6,15 +6,30 @@ import { s } from "@shared/styles"; type Props = React.ComponentProps<typeof OneTimePasswordRoot> & { /** The length of the OTP */ length?: number; + /** + * Whether to accept uppercase letters in addition to digits. Lowercase input + * is normalized to uppercase. Defaults to numeric only. + */ + alphanumeric?: boolean; }; +const sanitizeAlphanumeric = (value: string) => + value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase(); + export const OneTimePasswordInput = React.forwardRef( function OneTimePasswordInput_( - { length = 6, ...rest }: Props, + { length = 6, alphanumeric, ...rest }: Props, ref: React.RefObject<HTMLInputElement> ) { + const alphanumericProps = alphanumeric + ? { + validationType: "none" as const, + sanitizeValue: sanitizeAlphanumeric, + } + : undefined; + return ( - <OneTimePasswordRoot {...rest}> + <OneTimePasswordRoot {...alphanumericProps} {...rest}> {Array.from({ length }, (_, i) => ( <OneTimePasswordInputField key={i} /> ))} diff --git a/app/scenes/TeamDelete.tsx b/app/scenes/TeamDelete.tsx index bbf87e3e67..8a038d6682 100644 --- a/app/scenes/TeamDelete.tsx +++ b/app/scenes/TeamDelete.tsx @@ -1,11 +1,11 @@ import { observer } from "mobx-react"; import * as React from "react"; -import { useForm } from "react-hook-form"; +import { Controller, useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; -import Input from "~/components/Input"; +import { OneTimePasswordInput } from "~/components/OneTimePasswordInput"; import Text from "~/components/Text"; import env from "~/env"; import useCurrentTeam from "~/hooks/useCurrentTeam"; @@ -25,7 +25,7 @@ function TeamDelete({ onSubmit }: Props) { const team = useCurrentTeam({ rejectOnEmpty: false }); const { t } = useTranslation(); const { - register, + control, handleSubmit: formHandleSubmit, formState, } = useForm<FormData>(); @@ -62,9 +62,6 @@ function TeamDelete({ onSubmit }: Props) { [auth, onSubmit] ); - const inputProps = register("code", { - required: env.EMAIL_ENABLED, - }); const appName = env.APP_NAME; const workspaceName = team?.name; @@ -78,13 +75,27 @@ function TeamDelete({ onSubmit }: Props) { enter the code below to permanently destroy this workspace. </Trans> </Text> - <Input - placeholder={t("Confirmation code")} - autoComplete="off" - autoFocus - maxLength={8} - required - {...inputProps} + <Controller + control={control} + name="code" + rules={{ + required: env.EMAIL_ENABLED, + minLength: 8, + }} + render={({ field }) => ( + <OneTimePasswordInput + length={8} + alphanumeric + autoComplete="off" + autoFocus + name={field.name} + value={field.value ?? ""} + onValueChange={field.onChange} + onBlur={field.onBlur} + ref={field.ref} + style={{ marginBottom: "1em" }} + /> + )} /> </> ) : ( diff --git a/app/scenes/UserDelete.tsx b/app/scenes/UserDelete.tsx index f9a5820af9..914e14e4b5 100644 --- a/app/scenes/UserDelete.tsx +++ b/app/scenes/UserDelete.tsx @@ -1,11 +1,11 @@ import { observer } from "mobx-react"; import * as React from "react"; -import { useForm } from "react-hook-form"; +import { Controller, useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; -import Input from "~/components/Input"; +import { OneTimePasswordInput } from "~/components/OneTimePasswordInput"; import Text from "~/components/Text"; import env from "~/env"; import useStores from "~/hooks/useStores"; @@ -24,7 +24,7 @@ function UserDelete({ onSubmit }: Props) { const { auth } = useStores(); const { t } = useTranslation(); const { - register, + control, handleSubmit: formHandleSubmit, formState, } = useForm<FormData>(); @@ -61,9 +61,6 @@ function UserDelete({ onSubmit }: Props) { [auth, onSubmit] ); - const inputProps = register("code", { - required: env.EMAIL_ENABLED, - }); const appName = env.APP_NAME; return ( @@ -76,13 +73,27 @@ function UserDelete({ onSubmit }: Props) { enter the code below to permanently destroy your account. </Trans> </Text> - <Input - placeholder={t("Confirmation code")} - autoComplete="off" - autoFocus - maxLength={8} - required - {...inputProps} + <Controller + control={control} + name="code" + rules={{ + required: env.EMAIL_ENABLED, + minLength: 8, + }} + render={({ field }) => ( + <OneTimePasswordInput + length={8} + alphanumeric + autoComplete="off" + autoFocus + name={field.name} + value={field.value ?? ""} + onValueChange={field.onChange} + onBlur={field.onBlur} + ref={field.ref} + style={{ marginBottom: "1em" }} + /> + )} /> </> ) : ( diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index aa8dc54192..483f33162b 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -1401,7 +1401,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} is using {{ appName }} to share documents, please login to continue.", "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}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", From 48aa4f33ce80cc48fe260c3e569273c3c9984ede Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 20:27:28 -0400 Subject: [PATCH 117/286] chore: Upgrade ipaddr.js (#12491) --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1f08a68f3b..e58a5cf2a6 100644 --- a/package.json +++ b/package.json @@ -147,7 +147,7 @@ "i18next-http-backend": "^3.0.6", "invariant": "^2.2.4", "ioredis": "^5.10.1", - "ipaddr.js": "^2.3.0", + "ipaddr.js": "^2.4.0", "is-printable-key-event": "^1.0.0", "iso-639-3": "^3.0.1", "js-yaml": "^4.1.1", diff --git a/yarn.lock b/yarn.lock index 69beb341bb..a658d57e87 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12413,10 +12413,10 @@ __metadata: languageName: node linkType: hard -"ipaddr.js@npm:^2.3.0": - version: 2.3.0 - resolution: "ipaddr.js@npm:2.3.0" - checksum: 10c0/084bab99e2f6875d7a62adc3325e1c64b038a12c9521e35fb967b5e263a8b3afb1b8884dd77c276092331f5d63298b767491e10997ef147c62da01b143780bbd +"ipaddr.js@npm:^2.4.0": + version: 2.4.0 + resolution: "ipaddr.js@npm:2.4.0" + checksum: 10c0/47c2f17677b40054ca50a09e1228cf818c0d02d4474c2e0e29232c6668b3c4d51a3cfc19d1e17897d7baf4d933b3111d6bdf5cfbe55ab184165469a75f2bf177 languageName: node linkType: hard @@ -15226,7 +15226,7 @@ __metadata: invariant: "npm:^2.2.4" ioredis: "npm:^5.10.1" ioredis-mock: "npm:^8.13.1" - ipaddr.js: "npm:^2.3.0" + ipaddr.js: "npm:^2.4.0" is-printable-key-event: "npm:^1.0.0" iso-639-3: "npm:^3.0.1" js-yaml: "npm:^4.1.1" From e9e13c48191e592e5d5cf544180de6e0bcd75ed7 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 20:28:03 -0400 Subject: [PATCH 118/286] Another rev on transaction statement timeout (#12483) * Another rev on transaction statement timeout * docs * PR feedback --- server/storage/database.ts | 98 ++++++++++++++++++++++++++++++-------- 1 file changed, 77 insertions(+), 21 deletions(-) diff --git a/server/storage/database.ts b/server/storage/database.ts index 4853dd048c..4e25661319 100644 --- a/server/storage/database.ts +++ b/server/storage/database.ts @@ -1,6 +1,11 @@ import cluster from "node:cluster"; import path from "node:path"; -import type { InferAttributes, InferCreationAttributes } from "sequelize"; +import type { + InferAttributes, + InferCreationAttributes, + Transaction, + TransactionOptions, +} from "sequelize"; import sequelizeStrictAttributes from "sequelize-strict-attributes"; import type { SequelizeOptions } from "sequelize-typescript"; import { Sequelize } from "sequelize-typescript"; @@ -46,15 +51,6 @@ const poolMin = env.DATABASE_CONNECTION_POOL_MIN ?? 0; const databaseConfig = env.DATABASE_CONNECTION_POOL_URL || getDatabaseConfig(); const schema = env.DATABASE_SCHEMA; -// Request-handling processes get a Postgres `statement_timeout` matching the -// HTTP request timeout, so a single slow query cannot hold a connection past -// the point at which its response could be delivered. Worker/cron processes -// are exempted because background jobs may legitimately run long queries. -// Only applied in forked cluster workers so that startup work driven from -// the master process (notably migrations) is not subject to the timeout. -// Applied via `SET` on connect rather than as a startup parameter so pgbouncer -// (which rejects unknown startup parameters in transaction pooling mode) does -// not refuse the connection. const isApiProcess = (env.SERVICES.includes("web") || env.SERVICES.includes("collaboration") || @@ -62,6 +58,11 @@ const isApiProcess = env.SERVICES.includes("admin")) && !env.SERVICES.includes("worker") && !env.SERVICES.includes("cron"); + +// Request-handling processes get a Postgres `statement_timeout` matching the +// HTTP request timeout, so a single slow query cannot hold a connection past +// the point at which its response could be delivered. Applied as `SET LOCAL` +// inside each transaction so the value is scoped to the transaction. const statementTimeout = isApiProcess && cluster.isWorker ? env.REQUEST_TIMEOUT : undefined; @@ -96,17 +97,6 @@ export function createDatabaseInstance( } : false, }, - hooks: statementTimeout - ? { - afterConnect: async (connection: unknown) => { - await ( - connection as { - query: (sql: string) => Promise<unknown>; - } - ).query(`SET statement_timeout = ${Number(statementTimeout)}`); - }, - } - : undefined, models: Object.values(input), pool: { // Read-only connections can have larger pools since there's no write contention @@ -136,6 +126,13 @@ export function createDatabaseInstance( sequelizeStrictAttributes(instance); + if (statementTimeout) { + instance = applyStatementTimeoutToTransactions( + instance, + Number(statementTimeout) + ); + } + if (env.isTest) { instance = monkeyPatchSequelizeErrorsForTests(instance); } @@ -259,6 +256,65 @@ export function createMigrationRunner( }); } +/** + * Wraps `sequelize.transaction()` so that every transaction issues + * `SET LOCAL statement_timeout` immediately after it begins. Using `SET LOCAL` + * scopes the value to the transaction, preventing it from leaking to other + * consumers (e.g. background workers) sharing the same underlying connection + * via pgbouncer's transaction pooling. + */ +export function applyStatementTimeoutToTransactions( + instance: Sequelize, + timeoutMs: number +) { + const origTransaction = instance.transaction.bind( + instance + ) as Sequelize["transaction"]; + + const setLocalTimeout = (t: Transaction) => + instance.query(`SET LOCAL statement_timeout = ${timeoutMs}`, { + transaction: t, + }); + + instance.transaction = (async ( + optionsOrCallback?: + | TransactionOptions + | ((t: Transaction) => PromiseLike<unknown>), + maybeCallback?: (t: Transaction) => PromiseLike<unknown> + ) => { + const autoCallback = + typeof optionsOrCallback === "function" + ? optionsOrCallback + : maybeCallback; + const options = + typeof optionsOrCallback === "function" ? undefined : optionsOrCallback; + + if (autoCallback) { + return origTransaction(options as TransactionOptions, async (t) => { + await setLocalTimeout(t); + return autoCallback(t); + }); + } + + const t = await origTransaction(options); + try { + await setLocalTimeout(t); + } catch (err) { + // Roll back so the started transaction does not linger on the pooled + // connection until idle-in-transaction timeout closes it. + try { + await t.rollback(); + } catch { + // Ignore rollback failure; the original error is more informative. + } + throw err; + } + return t; + }) as typeof instance.transaction; + + return instance; +} + /** * Fixed in Sequelize v7, but hasn't been back-ported to Sequelize v6. * See https://github.com/sequelize/sequelize/issues/14807#issuecomment-1854398131 From c3ba14f069b8a6825e6edccbeb7b735dbebcbc1d Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 20:28:17 -0400 Subject: [PATCH 119/286] chore: Refactor `SelectionToolbar` to menu registry (#12439) * refactor: introduce declarative menu registry for selection toolbar Replace the hard-coded if-else chain in SelectionToolbar with a priority-based menu registry system. Extensions can now declare selection toolbar menus via `selectionToolbarMenus()`, following the same pattern as `commands()` and `keys()`. Key changes: - Add SelectionContext interface computed once per toolbar render - Add SelectionToolbarMenuDescriptor for declarative menu registration - Add selectionToolbarMenus() to Extension base class - Add buildSelectionContext() utility to eliminate repeated state queries - ExtensionManager collects and sorts menus from all extensions - SelectionToolbarExtension registers all 10 existing menus - All menu functions now accept SelectionContext instead of raw state - SelectionToolbar uses registry lookup instead of if-else chain https://claude.ai/code/session_01MRyFysrGM9d8NhbAs7nrtU * refactor: import t directly from i18next in menu functions Remove the `t: TFunction` parameter from all menu functions and the `SelectionToolbarMenuDescriptor.getItems` signature. Each menu file now imports `t` directly from i18next, matching the pattern used throughout the rest of the codebase (e.g. Image.tsx, Link.tsx). https://claude.ai/code/session_01MRyFysrGM9d8NhbAs7nrtU * refactor: move divider menu into HorizontalRule node extension The divider selection toolbar menu is now declared via selectionToolbarMenus() on the HorizontalRule node class, co-locating the menu with the node that owns it. Delete the standalone app/editor/menus/divider.tsx file and remove the entry from SelectionToolbarExtension. This is the first menu migrated from the centralized toolbar extension to an individual node extension, demonstrating the pattern for the remaining menus. https://claude.ai/code/session_01MRyFysrGM9d8NhbAs7nrtU * refactor: check readOnly in matches predicate for divider menu https://claude.ai/code/session_01MRyFysrGM9d8NhbAs7nrtU --------- Co-authored-by: Claude <noreply@anthropic.com> --- app/editor/components/SelectionToolbar.tsx | 74 +++-------------- app/editor/extensions/SelectionToolbar.tsx | 77 ++++++++++++++++++ app/editor/index.tsx | 7 +- app/editor/menus/attachment.tsx | 19 +++-- app/editor/menus/code.tsx | 16 ++-- app/editor/menus/divider.tsx | 33 -------- app/editor/menus/formatting.tsx | 80 ++++++++----------- app/editor/menus/image.tsx | 19 +++-- app/editor/menus/notice.tsx | 19 +++-- app/editor/menus/readOnly.tsx | 22 ++--- app/editor/menus/table.tsx | 19 +++-- app/editor/menus/tableCol.tsx | 34 ++++---- app/editor/menus/tableRow.tsx | 28 ++++--- shared/editor/lib/Extension.ts | 12 +++ shared/editor/lib/ExtensionManager.ts | 12 +++ shared/editor/lib/buildSelectionContext.ts | 53 ++++++++++++ .../{HorizontalRule.ts => HorizontalRule.tsx} | 32 ++++++++ shared/editor/types/index.ts | 78 +++++++++++++++++- 18 files changed, 416 insertions(+), 218 deletions(-) delete mode 100644 app/editor/menus/divider.tsx create mode 100644 shared/editor/lib/buildSelectionContext.ts rename shared/editor/nodes/{HorizontalRule.ts => HorizontalRule.tsx} (65%) diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index 7a25587329..7c65936369 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -2,34 +2,19 @@ import type { EditorState, Selection } from "prosemirror-state"; import Suggestion from "~/editor/extensions/Suggestion"; import { NodeSelection, TextSelection } from "prosemirror-state"; import * as React from "react"; -import { useTranslation } from "react-i18next"; + import filterExcessSeparators from "@shared/editor/lib/filterExcessSeparators"; +import { buildSelectionContext } from "@shared/editor/lib/buildSelectionContext"; import { getMarkRange, getMarkRangeNodeSelection, } from "@shared/editor/queries/getMarkRange"; import { isInCode } from "@shared/editor/queries/isInCode"; import { isInNotice } from "@shared/editor/queries/isInNotice"; -import { isNodeActive } from "@shared/editor/queries/isNodeActive"; -import { - getColumnIndex, - getRowIndex, - isTableSelected, -} from "@shared/editor/queries/table"; import type { MenuItem } from "@shared/editor/types"; import useBoolean from "~/hooks/useBoolean"; import useEventListener from "~/hooks/useEventListener"; import useMobile from "~/hooks/useMobile"; -import getAttachmentMenuItems from "../menus/attachment"; -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"; -import getTableRowMenuItems from "../menus/tableRow"; import { columnDragPluginKey, rowDragPluginKey, @@ -64,7 +49,6 @@ function useIsDragging(state: EditorState) { useEventListener("dragend", setNotDragging); useEventListener("drop", setNotDragging); - // Check if table row or column is being dragged const columnDragState = columnDragPluginKey.getState(state); const rowDragState = rowDragPluginKey.getState(state); const isTableDragging = @@ -81,8 +65,7 @@ enum Toolbar { export function SelectionToolbar(props: Props) { const { readOnly = false } = props; - const { view, extensions, commands } = useEditor(); - const { t } = useTranslation(); + const { view, extensions, commands, selectionToolbarMenus } = useEditor(); const menuRef = React.useRef<HTMLDivElement | null>(null); const isMobile = useMobile(); const isActive = props.isActive || isMobile; @@ -144,7 +127,6 @@ export function SelectionToolbar(props: Props) { } }, [activeToolbar]); - // Refocus the editor when the link toolbar closes to prevent focus loss const prevActiveToolbar = React.useRef(activeToolbar); React.useLayoutEffect(() => { if ( @@ -175,7 +157,6 @@ export function SelectionToolbar(props: Props) { return; } - // Don't collapse selection if any suggestion menu is open const isSuggestionMenuOpen = extensions.extensions.some( (ext) => ext instanceof Suggestion && ext.isOpen ); @@ -228,51 +209,16 @@ export function SelectionToolbar(props: Props) { const { isTemplate, rtl, canComment, canUpdate, ...rest } = props; - const isDividerSelection = isNodeActive(state.schema.nodes.hr)(state); - const colIndex = getColumnIndex(state); - const rowIndex = getRowIndex(state); - const isImageSelection = - selection instanceof NodeSelection && selection.node.type.name === "image"; - const isAttachmentSelection = - selection instanceof NodeSelection && - selection.node.type.name === "attachment"; + // Build selection context once, shared across all menu matchers + const ctx = buildSelectionContext(state, { readOnly, isTemplate, rtl }); - let items: MenuItem[] = []; - let align: "center" | "start" | "end" = "center"; + // Find the first matching menu from the registry (sorted by priority) + const matched = selectionToolbarMenus.find((menu) => menu.matches(ctx)); - if ( - isCodeSelection && - (selection.empty || selection instanceof NodeSelection) - ) { - items = getCodeMenuItems(state, readOnly, t); - align = "end"; - } else if (isTableSelected(state)) { - items = getTableMenuItems(state, readOnly, t); - } else if (colIndex !== undefined) { - items = getTableColMenuItems(state, readOnly, t, { - index: colIndex, - rtl, - }); - } else if (rowIndex !== undefined) { - items = getTableRowMenuItems(state, readOnly, t, { - index: rowIndex, - }); - } else if (isImageSelection) { - items = getImageMenuItems(state, readOnly, t); - } else if (isAttachmentSelection) { - items = getAttachmentMenuItems(state, readOnly, t); - } else if (isDividerSelection) { - items = getDividerMenuItems(state, readOnly, t); - } else if (readOnly) { - items = getReadOnlyMenuItems(state, !!canUpdate, t); - } else if (isNoticeSelection && selection.empty) { - items = getNoticeMenuItems(state, readOnly, t); - align = "end"; - } else { - items = getFormattingMenuItems(state, isTemplate, t); - } + let items: MenuItem[] = matched ? matched.getItems(ctx) : []; + const align = matched?.align ?? "center"; - // Some extensions may be disabled, remove corresponding items + // Filter out items for disabled extensions or invisible items items = items.filter((item) => { if (item.name === "separator") { return true; diff --git a/app/editor/extensions/SelectionToolbar.tsx b/app/editor/extensions/SelectionToolbar.tsx index be4c63e470..c08f8815d9 100644 --- a/app/editor/extensions/SelectionToolbar.tsx +++ b/app/editor/extensions/SelectionToolbar.tsx @@ -7,7 +7,18 @@ import Extension from "@shared/editor/lib/Extension"; import { isInNotice } from "@shared/editor/queries/isInNotice"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; +import type { SelectionToolbarMenuDescriptor } from "@shared/editor/types"; import { SelectionToolbar } from "../components/SelectionToolbar"; +import getAttachmentMenuItems from "../menus/attachment"; +import getCodeMenuItems from "../menus/code"; + +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"; +import getTableRowMenuItems from "../menus/tableRow"; export default class SelectionToolbarExtension extends Extension { get name() { @@ -31,6 +42,72 @@ export default class SelectionToolbarExtension extends Extension { @observable state: Selection | boolean = false; + /** + * Returns all selection toolbar menu descriptors. Each descriptor declares + * when it matches (via a predicate on SelectionContext) and what items to + * show. The toolbar evaluates them in priority order and uses the first + * match. + * + * @returns an array of selection toolbar menu descriptors. + */ + selectionToolbarMenus(): SelectionToolbarMenuDescriptor[] { + return [ + { + priority: 100, + align: "end", + matches: (ctx) => + ctx.isInCodeBlock && + (ctx.isEmpty || ctx.selectedNodeType !== undefined), + getItems: (ctx) => getCodeMenuItems(ctx), + }, + { + priority: 90, + matches: (ctx) => ctx.isTableSelected, + getItems: (ctx) => getTableMenuItems(ctx), + }, + { + priority: 85, + matches: (ctx) => ctx.colIndex !== undefined, + getItems: (ctx) => getTableColMenuItems(ctx), + }, + { + priority: 80, + matches: (ctx) => ctx.rowIndex !== undefined, + getItems: (ctx) => getTableRowMenuItems(ctx), + }, + { + priority: 50, + matches: (ctx) => ctx.selectedNodeType === "image", + getItems: (ctx) => getImageMenuItems(ctx), + }, + { + priority: 50, + matches: (ctx) => ctx.selectedNodeType === "attachment", + getItems: (ctx) => getAttachmentMenuItems(ctx), + }, + { + priority: 30, + matches: (ctx) => ctx.readOnly, + getItems: (ctx) => + getReadOnlyMenuItems( + ctx, + this.editor.props.canUpdate ?? false + ), + }, + { + priority: 20, + align: "end", + matches: (ctx) => ctx.isInNotice && ctx.isEmpty, + getItems: (ctx) => getNoticeMenuItems(ctx), + }, + { + priority: 0, + matches: () => true, + getItems: (ctx) => getFormattingMenuItems(ctx), + }, + ]; + } + private handleUpdate = action((view: EditorView) => { const { state } = view; this.state = this.calculateState(state); diff --git a/app/editor/index.tsx b/app/editor/index.tsx index f3e2027b40..0b0af48cdd 100644 --- a/app/editor/index.tsx +++ b/app/editor/index.tsx @@ -35,7 +35,10 @@ import type { MarkdownSerializer } from "@shared/editor/lib/markdown/serializer" import textBetween from "@shared/editor/lib/textBetween"; import { basicExtensions as extensions } from "@shared/editor/nodes"; import type ReactNode from "@shared/editor/nodes/ReactNode"; -import type { ComponentProps } from "@shared/editor/types"; +import type { + ComponentProps, + SelectionToolbarMenuDescriptor, +} from "@shared/editor/types"; import type { ProsemirrorData, ProsemirrorMark, @@ -228,6 +231,7 @@ export class Editor extends React.PureComponent< nodes: { [name: string]: NodeSpec }; marks: { [name: string]: MarkSpec }; commands: Record<string, CommandFactory>; + selectionToolbarMenus: SelectionToolbarMenuDescriptor[]; rulePlugins: PluginSimple[]; events = new EventEmitter(); mutationObserver?: MutationObserver; @@ -341,6 +345,7 @@ export class Editor extends React.PureComponent< this.view = this.createView(); this.commands = this.createCommands(); + this.selectionToolbarMenus = this.extensions.selectionToolbarMenus; } private createExtensions() { diff --git a/app/editor/menus/attachment.tsx b/app/editor/menus/attachment.tsx index 359e40171b..4d1c9a0f93 100644 --- a/app/editor/menus/attachment.tsx +++ b/app/editor/menus/attachment.tsx @@ -1,19 +1,22 @@ -import type { TFunction } from "i18next"; +import { t } from "i18next"; import { TrashIcon, DownloadIcon, ReplaceIcon, PDFIcon } from "outline-icons"; -import type { EditorState } from "prosemirror-state"; -import type { MenuItem } from "@shared/editor/types"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; +import type { MenuItem, SelectionContext } from "@shared/editor/types"; +/** + * Returns menu items for the attachment selection toolbar. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function attachmentMenuItems( - state: EditorState, - readOnly: boolean, - t: TFunction + ctx: SelectionContext ): MenuItem[] { - if (readOnly) { + if (ctx.readOnly) { return []; } - const { schema } = state; + const { schema, state } = ctx; const isAttachmentWithPreview = isNodeActive(schema.nodes.attachment, { preview: true, }); diff --git a/app/editor/menus/code.tsx b/app/editor/menus/code.tsx index bc123fb81b..bd5a145cbc 100644 --- a/app/editor/menus/code.tsx +++ b/app/editor/menus/code.tsx @@ -1,7 +1,6 @@ import { CopyIcon, EditIcon, ExpandedIcon, TextWrapIcon } from "outline-icons"; import type { Node as ProseMirrorNode } from "prosemirror-model"; import { NodeSelection } from "prosemirror-state"; -import type { EditorState } from "prosemirror-state"; import { pluginKey as mermaidPluginKey, type MermaidState, @@ -12,15 +11,20 @@ import { getLabelForLanguage, } from "@shared/editor/lib/code"; import { isMermaid } from "@shared/editor/lib/isCode"; -import type { TFunction } from "i18next"; -import type { MenuItem } from "@shared/editor/types"; +import { t } from "i18next"; +import type { MenuItem, SelectionContext } from "@shared/editor/types"; import { metaDisplay } from "@shared/utils/keyboard"; +/** + * Returns menu items for the code block selection toolbar. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function codeMenuItems( - state: EditorState, - readOnly: boolean | undefined, - t: TFunction + ctx: SelectionContext ): MenuItem[] { + const { state, readOnly } = ctx; const node = state.selection instanceof NodeSelection ? state.selection.node diff --git a/app/editor/menus/divider.tsx b/app/editor/menus/divider.tsx deleted file mode 100644 index be3cff8ea5..0000000000 --- a/app/editor/menus/divider.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import type { TFunction } from "i18next"; -import { PageBreakIcon, HorizontalRuleIcon } from "outline-icons"; -import type { EditorState } from "prosemirror-state"; -import { isNodeActive } from "@shared/editor/queries/isNodeActive"; -import type { MenuItem } from "@shared/editor/types"; - -export default function dividerMenuItems( - state: EditorState, - readOnly: boolean, - t: TFunction -): MenuItem[] { - if (readOnly) { - return []; - } - const { schema } = state; - - return [ - { - name: "hr", - tooltip: t("Divider"), - attrs: { markup: "---" }, - active: isNodeActive(schema.nodes.hr, { markup: "---" }), - icon: <HorizontalRuleIcon />, - }, - { - name: "hr", - tooltip: t("Page break"), - attrs: { markup: "***" }, - active: isNodeActive(schema.nodes.hr, { markup: "***" }), - icon: <PageBreakIcon />, - }, - ]; -} diff --git a/app/editor/menus/formatting.tsx b/app/editor/menus/formatting.tsx index c8ad424f45..2fdc8d53e2 100644 --- a/app/editor/menus/formatting.tsx +++ b/app/editor/menus/formatting.tsx @@ -25,22 +25,16 @@ import { import { v4 as uuidv4 } from "uuid"; import CellBackgroundColorPicker from "../components/CellBackgroundColorPicker"; import HighlightColorPicker from "../components/HighlightColorPicker"; -import type { EditorState } from "prosemirror-state"; import { getDocumentHighlightColors } from "@shared/editor/queries/getDocumentHighlightColors"; import { getMarksBetween } from "@shared/editor/queries/getMarksBetween"; -import { isInCode } from "@shared/editor/queries/isInCode"; import { isInList } from "@shared/editor/queries/isInList"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; -import type { MenuItem } from "@shared/editor/types"; +import type { MenuItem, SelectionContext } from "@shared/editor/types"; import { metaDisplay } from "@shared/utils/keyboard"; -import type { TFunction } from "i18next"; +import { t } from "i18next"; import CircleIcon from "~/components/Icons/CircleIcon"; -import { - isMobile as isMobileDevice, - isTouchDevice, -} from "@shared/utils/browser"; import { getColorSetForSelectedCells, getDocumentTableBackgroundColors, @@ -49,24 +43,21 @@ import { isMergedCellSelection, isMultipleCellSelection, } from "@shared/editor/queries/table"; -import { CellSelection } from "prosemirror-tables"; +import type { CellSelection } from "prosemirror-tables"; import TableCell from "@shared/editor/nodes/TableCell"; import Highlight from "@shared/editor/marks/Highlight"; import { DottedCircleIcon } from "~/components/Icons/DottedCircleIcon"; +/** + * Returns menu items for the default formatting selection toolbar. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function formattingMenuItems( - state: EditorState, - isTemplate: boolean, - t: TFunction + ctx: SelectionContext ): MenuItem[] { - const { schema } = state; - const isCode = isInCode(state); - const isCodeBlock = isInCode(state, { onlyBlock: true }); - const isEmpty = state.selection.empty; - const isMobile = isMobileDevice(); - const isTouch = isTouchDevice(); - const isList = isInList(state); - const isTableCell = state.selection instanceof CellSelection; + const { schema, state, isTemplate, isMobile, isTouch, isEmpty, isInCode, isInCodeBlock, isInList: isList, isTableCell } = ctx; const highlight = getMarksBetween( state.selection.from, @@ -83,6 +74,9 @@ export default function formattingMenuItems( const selectedCellsColorSet = getColorSetForSelectedCells(state.selection); + const canFormatInline = !isInCodeBlock && (!isMobile || !isEmpty); + const canFormatBlock = !isInCodeBlock && (!isMobile || isEmpty); + return [ { name: "placeholder", @@ -101,7 +95,7 @@ export default function formattingMenuItems( shortcut: `${metaDisplay}+B`, icon: <BoldIcon />, active: isMarkActive(schema.marks.strong), - visible: !isCodeBlock && (!isMobile || !isEmpty), + visible: canFormatInline, }, { name: "em", @@ -109,7 +103,7 @@ export default function formattingMenuItems( shortcut: `${metaDisplay}+I`, icon: <ItalicIcon />, active: isMarkActive(schema.marks.em), - visible: !isCodeBlock && (!isMobile || !isEmpty), + visible: canFormatInline, }, { name: "strikethrough", @@ -117,7 +111,7 @@ export default function formattingMenuItems( shortcut: `${metaDisplay}+D`, icon: <StrikethroughIcon />, active: isMarkActive(schema.marks.strikethrough), - visible: !isCodeBlock && (!isMobile || !isEmpty), + visible: canFormatInline, }, { tooltip: t("Background color"), @@ -133,12 +127,10 @@ export default function formattingMenuItems( ) : ( <PaletteIcon /> ), - visible: !isCode && (!isMobile || !isEmpty) && isTableCell, + visible: !isInCode && (!isMobile || !isEmpty) && isTableCell, children: (): MenuItem[] => { - // Get all unique background colors used in table cells (lazily computed when menu opens) const documentTableColors = getDocumentTableBackgroundColors(state); - // Filter out preset colors and currently selected colors const nonPresetDocumentColors = documentTableColors.filter( (color: string) => !TableCell.isPresetColor(color) && !selectedCellsColorSet.has(color) @@ -181,7 +173,6 @@ export default function formattingMenuItems( }, ] : []), - // Add all other document table background colors ...nonPresetDocumentColors.map((color: string) => ({ name: "toggleCellSelectionBackgroundAndCollapseSelection", label: color, @@ -225,12 +216,10 @@ export default function formattingMenuItems( <HighlightIcon /> ), active: () => !!highlight, - visible: !isCode && (!isMobile || !isEmpty) && !isTableCell, + visible: !isInCode && (!isMobile || !isEmpty) && !isTableCell, children: (): MenuItem[] => { - // Get all unique highlight colors used in the document (lazily computed when menu opens) const documentHighlightColors = getDocumentHighlightColors(state); - // Filter out preset colors and the currently selected color const currentHighlightColor = highlight?.mark.attrs.color; const nonPresetDocumentColors = documentHighlightColors.filter( (color: string) => @@ -276,7 +265,6 @@ export default function formattingMenuItems( }, ] : []), - // Add all other document highlight colors ...nonPresetDocumentColors.map((color: string) => ({ name: "highlight", label: color, @@ -313,11 +301,11 @@ export default function formattingMenuItems( shortcut: `${metaDisplay}+E`, icon: <CodeIcon />, active: isMarkActive(schema.marks.code_inline), - visible: !isCodeBlock && (!isMobile || !isEmpty), + visible: canFormatInline, }, { name: "separator", - visible: !isCodeBlock, + visible: !isInCodeBlock, }, { name: "heading", @@ -326,7 +314,7 @@ export default function formattingMenuItems( icon: <Heading1Icon />, active: isNodeActive(schema.nodes.heading, { level: 1 }), attrs: { level: 1 }, - visible: !isCodeBlock && (!isMobile || isEmpty), + visible: canFormatBlock, }, { name: "heading", @@ -335,7 +323,7 @@ export default function formattingMenuItems( icon: <Heading2Icon />, active: isNodeActive(schema.nodes.heading, { level: 2 }), attrs: { level: 2 }, - visible: !isCodeBlock && (!isMobile || isEmpty), + visible: canFormatBlock, }, { name: "heading", @@ -344,7 +332,7 @@ export default function formattingMenuItems( icon: <Heading3Icon />, active: isNodeActive(schema.nodes.heading, { level: 3 }), attrs: { level: 3 }, - visible: !isCodeBlock && (!isMobile || isEmpty), + visible: canFormatBlock, }, { name: "blockquote", @@ -353,7 +341,7 @@ export default function formattingMenuItems( icon: <BlockQuoteIcon />, active: isNodeActive(schema.nodes.blockquote), attrs: { level: 2 }, - visible: !isCodeBlock && !isTableCell && (!isMobile || isEmpty), + visible: !isInCodeBlock && !isTableCell && (!isMobile || isEmpty), }, { name: "separator", @@ -376,7 +364,7 @@ export default function formattingMenuItems( tooltip: t("Toggle block"), active: isNodeActive(schema.nodes.container_toggle), attrs: { id: uuidv4() }, - visible: !isCodeBlock && (!isMobile || isEmpty), + visible: canFormatBlock, }, { name: "separator", @@ -388,7 +376,7 @@ export default function formattingMenuItems( icon: <TodoListIcon />, keywords: "checklist checkbox task", active: isNodeActive(schema.nodes.checkbox_list), - visible: !isCodeBlock && !isTableCell && (!isList || !isTouch), + visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { name: "bullet_list", @@ -396,7 +384,7 @@ export default function formattingMenuItems( shortcut: `⇧+Ctrl+8`, icon: <BulletedListIcon />, active: isNodeActive(schema.nodes.bullet_list), - visible: !isCodeBlock && !isTableCell && (!isList || !isTouch), + visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { name: "ordered_list", @@ -404,7 +392,7 @@ export default function formattingMenuItems( shortcut: `⇧+Ctrl+9`, icon: <OrderedListIcon />, active: isNodeActive(schema.nodes.ordered_list), - visible: !isCodeBlock && !isTableCell && (!isList || !isTouch), + visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { name: "outdentList", @@ -436,7 +424,7 @@ export default function formattingMenuItems( }, { name: "separator", - visible: !isCodeBlock, + visible: !isInCodeBlock, }, { name: "addLink", @@ -445,14 +433,14 @@ export default function formattingMenuItems( icon: <LinkIcon />, attrs: { href: "" }, active: isMarkActive(schema.marks.link, undefined, { exact: true }), - visible: !isCodeBlock && (!isMobile || !isEmpty), + visible: canFormatInline, }, { name: "comment", tooltip: t("Comment"), shortcut: `${metaDisplay}+⌥+M`, icon: <CommentIcon />, - label: isCodeBlock ? t("Comment") : undefined, + label: isInCodeBlock ? t("Comment") : undefined, active: isMarkActive( schema.marks.comment, { resolved: false }, @@ -462,14 +450,14 @@ export default function formattingMenuItems( }, { name: "separator", - visible: isCode && !isCodeBlock && (!isMobile || !isEmpty), + visible: isInCode && !isInCodeBlock && (!isMobile || !isEmpty), }, { name: "copyToClipboard", icon: <CopyIcon />, tooltip: t("Copy"), shortcut: `${metaDisplay}+C`, - visible: isCode && !isCodeBlock && (!isMobile || !isEmpty), + visible: isInCode && !isInCodeBlock && (!isMobile || !isEmpty), }, ]; } diff --git a/app/editor/menus/image.tsx b/app/editor/menus/image.tsx index 8b78571346..3f567828cd 100644 --- a/app/editor/menus/image.tsx +++ b/app/editor/menus/image.tsx @@ -10,24 +10,27 @@ import { CommentIcon, LinkIcon, } from "outline-icons"; -import type { EditorState } from "prosemirror-state"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; -import type { TFunction } from "i18next"; -import type { MenuItem } from "@shared/editor/types"; +import type { MenuItem, SelectionContext } from "@shared/editor/types"; import { metaDisplay } from "@shared/utils/keyboard"; import { ImageSource } from "@shared/editor/lib/FileHelper"; import Desktop from "~/utils/Desktop"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; +import { t } from "i18next"; +/** + * Returns menu items for the image selection toolbar. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function imageMenuItems( - state: EditorState, - readOnly: boolean, - t: TFunction + ctx: SelectionContext ): MenuItem[] { - if (readOnly) { + if (ctx.readOnly) { return []; } - const { schema } = state; + const { schema, state } = ctx; const isLeftAligned = isNodeActive(schema.nodes.image, { layoutClass: "left-50", }); diff --git a/app/editor/menus/notice.tsx b/app/editor/menus/notice.tsx index 75d52dd1bd..d665de2eac 100644 --- a/app/editor/menus/notice.tsx +++ b/app/editor/menus/notice.tsx @@ -1,4 +1,4 @@ -import type { TFunction } from "i18next"; +import { t } from "i18next"; import { DoneIcon, ExpandedIcon, @@ -6,16 +6,19 @@ import { StarredIcon, WarningIcon, } from "outline-icons"; -import type { EditorState } from "prosemirror-state"; import { NoticeTypes } from "@shared/editor/nodes/Notice"; -import type { MenuItem } from "@shared/editor/types"; +import type { MenuItem, SelectionContext } from "@shared/editor/types"; +/** + * Returns menu items for the notice/callout selection toolbar. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function noticeMenuItems( - state: EditorState, - readOnly: boolean | undefined, - t: TFunction + ctx: SelectionContext ): MenuItem[] { - const node = state.selection.$from.node(-1); + const node = ctx.selection.$from.node(-1); const currentStyle = node?.attrs.style as NoticeTypes; const mapping = { @@ -28,7 +31,7 @@ export default function noticeMenuItems( return [ { name: "container_notice", - visible: !readOnly, + visible: !ctx.readOnly, label: mapping[currentStyle], icon: <ExpandedIcon />, children: [ diff --git a/app/editor/menus/readOnly.tsx b/app/editor/menus/readOnly.tsx index c29142f666..ac3706fc40 100644 --- a/app/editor/menus/readOnly.tsx +++ b/app/editor/menus/readOnly.tsx @@ -1,20 +1,24 @@ -import type { TFunction } from "i18next"; +import { t } from "i18next"; import { CommentIcon } from "outline-icons"; -import type { EditorState } from "prosemirror-state"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; -import type { MenuItem } from "@shared/editor/types"; +import type { MenuItem, SelectionContext } from "@shared/editor/types"; +/** + * Returns menu items for the read-only selection toolbar. + * + * @param ctx - the current selection context. + * @param canUpdate - whether the user has permission to update the document. + * @returns an array of menu items. + */ export default function readOnlyMenuItems( - state: EditorState, - canUpdate: boolean, - t: TFunction + ctx: SelectionContext, + canUpdate: boolean ): MenuItem[] { - const { schema } = state; - const isEmpty = state.selection.empty; + const { schema } = ctx; return [ { - visible: canUpdate && !isEmpty, + visible: canUpdate && !ctx.isEmpty, name: "comment", tooltip: t("Comment"), label: t("Comment"), diff --git a/app/editor/menus/table.tsx b/app/editor/menus/table.tsx index 9cd4e2bcde..4db3a46fb9 100644 --- a/app/editor/menus/table.tsx +++ b/app/editor/menus/table.tsx @@ -4,21 +4,24 @@ import { TableColumnsDistributeIcon, TrashIcon, } from "outline-icons"; -import type { EditorState } from "prosemirror-state"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; -import type { TFunction } from "i18next"; -import type { MenuItem } from "@shared/editor/types"; +import { t } from "i18next"; +import type { MenuItem, SelectionContext } from "@shared/editor/types"; import { TableLayout } from "@shared/editor/types"; +/** + * Returns menu items for the table selection toolbar (full table selected). + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function tableMenuItems( - state: EditorState, - readOnly: boolean, - t: TFunction + ctx: SelectionContext ): MenuItem[] { - if (readOnly) { + if (ctx.readOnly) { return []; } - const { schema } = state; + const { schema, state } = ctx; const isFullWidth = isNodeActive(schema.nodes.table, { layout: TableLayout.fullWidth, diff --git a/app/editor/menus/tableCol.tsx b/app/editor/menus/tableCol.tsx index 1180466c0c..017f88e1f8 100644 --- a/app/editor/menus/tableCol.tsx +++ b/app/editor/menus/tableCol.tsx @@ -14,7 +14,6 @@ import { SortDescendingIcon, TableColumnsDistributeIcon, } from "outline-icons"; -import type { EditorState } from "prosemirror-state"; import { CellSelection, selectedRect } from "prosemirror-tables"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; import { @@ -24,16 +23,21 @@ import { isMultipleCellSelection, tableHasRowspan, } from "@shared/editor/queries/table"; -import type { TFunction } from "i18next"; -import type { MenuItem, NodeAttrMark } from "@shared/editor/types"; +import { t } from "i18next"; +import type { MenuItem, NodeAttrMark, SelectionContext } from "@shared/editor/types"; import { ArrowLeftIcon, ArrowRightIcon } from "~/components/Icons/ArrowIcon"; import CircleIcon from "~/components/Icons/CircleIcon"; import CellBackgroundColorPicker from "../components/CellBackgroundColorPicker"; import TableCell from "@shared/editor/nodes/TableCell"; import { DottedCircleIcon } from "~/components/Icons/DottedCircleIcon"; +import type { EditorState } from "prosemirror-state"; /** - * Get the set of background colors used in a column + * Get the set of background colors used in a column. + * + * @param state - the current editor state. + * @param colIndex - the column index. + * @returns a set of hex color strings. */ function getColumnColors(state: EditorState, colIndex: number): Set<string> { const colors = new Set<string>(); @@ -55,21 +59,23 @@ function getColumnColors(state: EditorState, colIndex: number): Set<string> { return colors; } +/** + * Returns menu items for the table column selection toolbar. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function tableColMenuItems( - state: EditorState, - readOnly: boolean, - t: TFunction, - options: { - index: number; - rtl: boolean; - } + ctx: SelectionContext ): MenuItem[] { - if (readOnly) { + if (ctx.readOnly) { return []; } - const { index, rtl } = options; - const { schema, selection } = state; + const index = ctx.colIndex!; + const rtl = ctx.rtl; + const { schema, state } = ctx; + const { selection } = state; const selectedCols = getAllSelectedColumns(state); if (!(selection instanceof CellSelection)) { diff --git a/app/editor/menus/tableRow.tsx b/app/editor/menus/tableRow.tsx index c0e8542840..f9c2e2e36f 100644 --- a/app/editor/menus/tableRow.tsx +++ b/app/editor/menus/tableRow.tsx @@ -15,8 +15,8 @@ import { isMergedCellSelection, isMultipleCellSelection, } from "@shared/editor/queries/table"; -import type { TFunction } from "i18next"; -import type { MenuItem, NodeAttrMark } from "@shared/editor/types"; +import { t } from "i18next"; +import type { MenuItem, NodeAttrMark, SelectionContext } from "@shared/editor/types"; import { ArrowDownIcon, ArrowUpIcon } from "~/components/Icons/ArrowIcon"; import CircleIcon from "~/components/Icons/CircleIcon"; import CellBackgroundColorPicker from "../components/CellBackgroundColorPicker"; @@ -24,7 +24,11 @@ import TableCell from "@shared/editor/nodes/TableCell"; import { DottedCircleIcon } from "~/components/Icons/DottedCircleIcon"; /** - * Get the set of background colors used in a row + * Get the set of background colors used in a row. + * + * @param state - the current editor state. + * @param rowIndex - the row index. + * @returns a set of hex color strings. */ function getRowColors(state: EditorState, rowIndex: number): Set<string> { const colors = new Set<string>(); @@ -46,19 +50,21 @@ function getRowColors(state: EditorState, rowIndex: number): Set<string> { return colors; } +/** + * Returns menu items for the table row selection toolbar. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ export default function tableRowMenuItems( - state: EditorState, - readOnly: boolean, - t: TFunction, - options: { - index: number; - } + ctx: SelectionContext ): MenuItem[] { - if (readOnly) { + if (ctx.readOnly) { return []; } - const { index } = options; + const index = ctx.rowIndex!; + const { state } = ctx; const { selection } = state; if (!(selection instanceof CellSelection)) { diff --git a/shared/editor/lib/Extension.ts b/shared/editor/lib/Extension.ts index 2639e2501b..4eefcbac48 100644 --- a/shared/editor/lib/Extension.ts +++ b/shared/editor/lib/Extension.ts @@ -3,6 +3,7 @@ import type { InputRule } from "prosemirror-inputrules"; import type { NodeType, MarkType, Schema } from "prosemirror-model"; import type { Command, Plugin, Selection } from "prosemirror-state"; import type { Editor } from "../../../app/editor"; +import type { SelectionToolbarMenuDescriptor } from "../types"; export type CommandFactory = (attrs?: unknown, options?: unknown) => Command; @@ -108,4 +109,15 @@ export default class Extension<TOptions extends object = object> { }): Record<string, CommandFactory> | CommandFactory | undefined { return {}; } + + /** + * Declares selection toolbar menus contributed by this extension. When + * the user selects content or clicks a node, the toolbar evaluates all + * registered menus in priority order and displays the first match. + * + * @returns an array of menu descriptors, or an empty array if this extension does not contribute menus. + */ + selectionToolbarMenus(): SelectionToolbarMenuDescriptor[] { + return []; + } } diff --git a/shared/editor/lib/ExtensionManager.ts b/shared/editor/lib/ExtensionManager.ts index 28172b71fd..c02f7821e4 100644 --- a/shared/editor/lib/ExtensionManager.ts +++ b/shared/editor/lib/ExtensionManager.ts @@ -8,6 +8,7 @@ import type { Primitive } from "utility-types"; import type { Editor } from "~/editor"; import type Mark from "../marks/Mark"; import type Node from "../nodes/Node"; +import type { SelectionToolbarMenuDescriptor } from "../types"; import type { CommandFactory, WidgetProps } from "./Extension"; import type Extension from "./Extension"; import type { AnyExtension, AnyExtensionClass } from "./types"; @@ -235,6 +236,17 @@ export default class ExtensionManager { ); } + /** + * Collects selection toolbar menu descriptors from all extensions and returns + * them sorted by priority (highest first). The toolbar evaluates these in + * order and displays the first match. + */ + get selectionToolbarMenus(): SelectionToolbarMenuDescriptor[] { + return this.extensions + .flatMap((extension) => extension.selectionToolbarMenus()) + .sort((a, b) => b.priority - a.priority); + } + commands({ schema, view }: { schema: Schema; view: EditorView }) { return this.extensions .filter((extension) => extension.commands) diff --git a/shared/editor/lib/buildSelectionContext.ts b/shared/editor/lib/buildSelectionContext.ts new file mode 100644 index 0000000000..b9c49e8b75 --- /dev/null +++ b/shared/editor/lib/buildSelectionContext.ts @@ -0,0 +1,53 @@ +import type { EditorState } from "prosemirror-state"; +import { NodeSelection } from "prosemirror-state"; +import { CellSelection } from "prosemirror-tables"; +import { isInCode } from "../queries/isInCode"; +import { isInList } from "../queries/isInList"; +import { isInNotice } from "../queries/isInNotice"; +import { + getColumnIndex, + getRowIndex, + isTableSelected, +} from "../queries/table"; +import { isMobile as isMobileDevice, isTouchDevice } from "../../utils/browser"; +import type { SelectionContext } from "../types"; + +/** + * Build a SelectionContext from the current editor state and options. This + * object is computed once per toolbar render and shared across all menu + * functions, eliminating repeated queries against the same state. + * + * @param state - the current prosemirror editor state. + * @param options - additional context not derivable from editor state. + * @returns a frozen selection context. + */ +export function buildSelectionContext( + state: EditorState, + options: { readOnly: boolean; isTemplate: boolean; rtl: boolean } +): SelectionContext { + const { selection, schema } = state; + + return { + state, + schema, + selection, + isEmpty: selection.empty, + isMobile: isMobileDevice(), + isTouch: isTouchDevice(), + readOnly: options.readOnly, + isTemplate: options.isTemplate, + rtl: options.rtl, + isInCode: isInCode(state), + isInCodeBlock: isInCode(state, { onlyBlock: true }), + isInList: isInList(state), + isInNotice: isInNotice(state), + isTableCell: selection instanceof CellSelection, + isTableSelected: isTableSelected(state), + selectedNodeType: + selection instanceof NodeSelection + ? selection.node.type.name + : undefined, + colIndex: getColumnIndex(state), + rowIndex: getRowIndex(state), + }; +} diff --git a/shared/editor/nodes/HorizontalRule.ts b/shared/editor/nodes/HorizontalRule.tsx similarity index 65% rename from shared/editor/nodes/HorizontalRule.ts rename to shared/editor/nodes/HorizontalRule.tsx index e72ba415af..86862a6987 100644 --- a/shared/editor/nodes/HorizontalRule.ts +++ b/shared/editor/nodes/HorizontalRule.tsx @@ -1,3 +1,4 @@ +import { t } from "i18next"; import type Token from "markdown-it/lib/token.mjs"; import { InputRule } from "prosemirror-inputrules"; import type { @@ -6,8 +7,11 @@ import type { Node as ProsemirrorNode, } from "prosemirror-model"; import type { Command } from "prosemirror-state"; +import { PageBreakIcon, HorizontalRuleIcon } from "outline-icons"; import type { Primitive } from "utility-types"; +import { isNodeActive } from "../queries/isNodeActive"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; +import type { SelectionToolbarMenuDescriptor } from "../types"; import Node from "./Node"; export default class HorizontalRule extends Node { @@ -41,6 +45,34 @@ export default class HorizontalRule extends Node { }; } + selectionToolbarMenus(): SelectionToolbarMenuDescriptor[] { + return [ + { + priority: 50, + matches: (ctx) => ctx.selectedNodeType === "hr" && !ctx.readOnly, + getItems: (ctx) => { + const { schema } = ctx; + return [ + { + name: "hr", + tooltip: t("Divider"), + attrs: { markup: "---" }, + active: isNodeActive(schema.nodes.hr, { markup: "---" }), + icon: <HorizontalRuleIcon />, + }, + { + name: "hr", + tooltip: t("Page break"), + attrs: { markup: "***" }, + active: isNodeActive(schema.nodes.hr, { markup: "***" }), + icon: <PageBreakIcon />, + }, + ]; + }, + }, + ]; + } + keys({ type }: { type: NodeType }): Record<string, Command> { return { "Mod-_": (state, dispatch) => { diff --git a/shared/editor/types/index.ts b/shared/editor/types/index.ts index fed42810ab..2e5fa73848 100644 --- a/shared/editor/types/index.ts +++ b/shared/editor/types/index.ts @@ -1,6 +1,6 @@ import type { TFunction } from "i18next"; -import type { Node as ProsemirrorNode } from "prosemirror-model"; -import type { EditorState } from "prosemirror-state"; +import type { Node as ProsemirrorNode, Schema } from "prosemirror-model"; +import type { EditorState, Selection } from "prosemirror-state"; import type { Decoration, EditorView } from "prosemirror-view"; import * as React from "react"; import type { DefaultTheme } from "styled-components"; @@ -74,3 +74,77 @@ export interface NodeAttrMark { type: NodeAttrMarkName; attrs?: Record<string, unknown>; } + +/** + * Cached selection state computed once per editor update and shared across + * all menu functions. Avoids repeated queries against the same EditorState. + */ +export interface SelectionContext { + /** The current editor state. */ + state: EditorState; + /** The editor schema. */ + schema: Schema; + /** The current selection. */ + selection: Selection; + /** Whether the selection is empty (cursor with no range). */ + isEmpty: boolean; + /** Whether the device is a mobile device. */ + isMobile: boolean; + /** Whether the device supports touch input. */ + isTouch: boolean; + /** Whether the editor is in read-only mode. */ + readOnly: boolean; + /** Whether the document is a template. */ + isTemplate: boolean; + /** Whether text direction is right-to-left. */ + rtl: boolean; + /** Whether the selection is inside inline or block code. */ + isInCode: boolean; + /** Whether the selection is inside a code block (not inline code). */ + isInCodeBlock: boolean; + /** Whether the selection is inside a list. */ + isInList: boolean; + /** Whether the selection is inside a notice/callout block. */ + isInNotice: boolean; + /** Whether the selection is a table cell selection. */ + isTableCell: boolean; + /** Whether the entire table is selected. */ + isTableSelected: boolean; + /** The node type name when a NodeSelection is active, otherwise undefined. */ + selectedNodeType: string | undefined; + /** The selected column index when a column drag handle is active. */ + colIndex: number | undefined; + /** The selected row index when a row drag handle is active. */ + rowIndex: number | undefined; +} + +/** + * Describes a selection toolbar menu contributed by an extension. Extensions + * return this from their `selectionToolbarMenu()` method so the toolbar can + * pick the right menu for the current selection. + */ +export interface SelectionToolbarMenuDescriptor { + /** + * Predicate that returns true when this menu should be shown for the + * current selection. The first matching menu (by priority) wins. + * + * @param ctx - the current selection context. + * @returns whether this menu matches. + */ + matches: (ctx: SelectionContext) => boolean; + /** + * Higher-priority menus are checked first. Built-in menus use priorities + * 0–100. Extensions should use values above 100 to override, or negative + * values to act as fallbacks. + */ + priority: number; + /** Toolbar alignment when this menu is active. Defaults to "center". */ + align?: "center" | "start" | "end"; + /** + * Returns the menu items to display for the current selection. + * + * @param ctx - the current selection context. + * @returns an array of menu items. + */ + getItems: (ctx: SelectionContext) => MenuItem[]; +} From a4a67f2cdd91ddde9dd9ec97bed3478bbd849440 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 20:33:33 -0400 Subject: [PATCH 120/286] fix: Upgrade yauzl, improve stream close handling --- package.json | 2 +- server/utils/ZipHelper.ts | 25 +++++++++++++++++++++++-- yarn.lock | 10 +++++----- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index e58a5cf2a6..e53b4c3631 100644 --- a/package.json +++ b/package.json @@ -270,7 +270,7 @@ "y-indexeddb": "^9.0.12", "y-prosemirror": "^1.3.7", "y-protocols": "^1.0.7", - "yauzl": "^3.2.1", + "yauzl": "^3.3.1", "yazl": "^3.3.1", "yjs": "^13.6.30", "zod": "^4.3.6" diff --git a/server/utils/ZipHelper.ts b/server/utils/ZipHelper.ts index f54faebef2..7a735bf3cc 100644 --- a/server/utils/ZipHelper.ts +++ b/server/utils/ZipHelper.ts @@ -151,6 +151,7 @@ export default class ZipHelper { } const chunks: Buffer[] = []; let bytesRead = 0; + let settled = false; readStream.on("data", (chunk: Buffer) => { bytesRead += chunk.length; if (bytesRead > maxSize) { @@ -161,8 +162,28 @@ export default class ZipHelper { } chunks.push(chunk); }); - readStream.on("end", () => res(Buffer.concat(chunks))); - readStream.on("error", rej); + readStream.on("end", () => { + if (!settled) { + settled = true; + res(Buffer.concat(chunks)); + } + }); + readStream.on("error", (err) => { + if (!settled) { + settled = true; + rej(err); + } + }); + readStream.on("close", () => { + if (!settled) { + settled = true; + rej( + new Error( + `Stream closed before completing read of ${fileName}` + ) + ); + } + }); }); }), }; diff --git a/yarn.lock b/yarn.lock index a658d57e87..1946f529ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15365,7 +15365,7 @@ __metadata: y-indexeddb: "npm:^9.0.12" y-prosemirror: "npm:^1.3.7" y-protocols: "npm:^1.0.7" - yauzl: "npm:^3.2.1" + yauzl: "npm:^3.3.1" yazl: "npm:^3.3.1" yjs: "npm:^13.6.30" zod: "npm:^4.3.6" @@ -20868,13 +20868,13 @@ __metadata: languageName: node linkType: hard -"yauzl@npm:^3.2.1": - version: 3.3.0 - resolution: "yauzl@npm:3.3.0" +"yauzl@npm:^3.3.1": + version: 3.3.1 + resolution: "yauzl@npm:3.3.1" dependencies: buffer-crc32: "npm:~0.2.3" pend: "npm:~1.2.0" - checksum: 10c0/935e32054171104bdf8a4091180f61b5698d8b90ee64552bb643c2176f815d4215d0764e3f41e0d9a1e4525b37602bf145ec5fd39dd014f0be7290851ce3acce + checksum: 10c0/e396b070abb0c528cd4df3b86907142f72e09d5bc1edac262cebbff5b045e3091528a5e54e10a9a7209b031ba94bdcb1ad1ec6d85eecd69ad428bcb4a5c914ae languageName: node linkType: hard From ded7ff994ee88462642dedc26f49e8dc5b278956 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 20:55:41 -0400 Subject: [PATCH 121/286] fix: Indent/outdent (#12496) --- app/editor/menus/formatting.tsx | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/app/editor/menus/formatting.tsx b/app/editor/menus/formatting.tsx index 2fdc8d53e2..0552a28462 100644 --- a/app/editor/menus/formatting.tsx +++ b/app/editor/menus/formatting.tsx @@ -54,10 +54,19 @@ import { DottedCircleIcon } from "~/components/Icons/DottedCircleIcon"; * @param ctx - the current selection context. * @returns an array of menu items. */ -export default function formattingMenuItems( - ctx: SelectionContext -): MenuItem[] { - const { schema, state, isTemplate, isMobile, isTouch, isEmpty, isInCode, isInCodeBlock, isInList: isList, isTableCell } = ctx; +export default function formattingMenuItems(ctx: SelectionContext): MenuItem[] { + const { + schema, + state, + isTemplate, + isMobile, + isTouch, + isEmpty, + isInCode, + isInCodeBlock, + isInList: isList, + isTableCell, + } = ctx; const highlight = getMarksBetween( state.selection.from, @@ -399,28 +408,34 @@ export default function formattingMenuItems( tooltip: t("Outdent"), shortcut: `⇧+Tab`, icon: <OutdentIcon />, - visible: isTouch && isList, + visible: + (isTouch || isMobile) && + isInList(state, { types: ["ordered_list", "bullet_list"] }), }, { name: "indentList", tooltip: t("Indent"), shortcut: `Tab`, icon: <IndentIcon />, - visible: isTouch && isList, + visible: + (isTouch || isMobile) && + isInList(state, { types: ["ordered_list", "bullet_list"] }), }, { name: "outdentCheckboxList", tooltip: t("Outdent"), shortcut: `⇧+Tab`, icon: <OutdentIcon />, - visible: isTouch && isInList(state, { types: ["checkbox_list"] }), + visible: + (isTouch || isMobile) && isInList(state, { types: ["checkbox_list"] }), }, { name: "indentCheckboxList", tooltip: t("Indent"), shortcut: `Tab`, icon: <IndentIcon />, - visible: isTouch && isInList(state, { types: ["checkbox_list"] }), + visible: + (isTouch || isMobile) && isInList(state, { types: ["checkbox_list"] }), }, { name: "separator", From 7473d5b43777fbbbcbbdb1932ff598414da89131 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 21:33:33 -0400 Subject: [PATCH 122/286] fix: Allow reordering subdocuments with document-only access (#12493) * fix: Allow reordering subdocuments with document-only access When a user has "Manage" (or any move-eligible) permission on a parent document but no access to its collection, the sidebar drop cursors were hidden because they gated on collection.isManualSort, and the move handler bailed out because it built the payload from collection.id. Fall back to the document's own collectionId and the move policy so the reorder UX works for sourced document memberships. * fix: Structure not refetched parentDocumentId not provided --- .../Sidebar/components/DocumentLink.tsx | 26 +++++++---- .../Sidebar/components/SharedWithMeLink.tsx | 1 + app/stores/DocumentsStore.ts | 10 +++++ server/routes/api/documents/documents.test.ts | 44 +++++++++++++++++++ 4 files changed, 73 insertions(+), 8 deletions(-) diff --git a/app/components/Sidebar/components/DocumentLink.tsx b/app/components/Sidebar/components/DocumentLink.tsx index 1d69007b25..1f09adeea6 100644 --- a/app/components/Sidebar/components/DocumentLink.tsx +++ b/app/components/Sidebar/components/DocumentLink.tsx @@ -6,7 +6,7 @@ import { useHistory } from "react-router-dom"; import scrollIntoView from "scroll-into-view-if-needed"; import Icon from "@shared/components/Icon"; import type { NavigationNode } from "@shared/types"; -import { UserPreference } from "@shared/types"; +import { DocumentPermission, UserPreference } from "@shared/types"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { sortNavigationNodes } from "@shared/utils/collections"; import type Collection from "~/models/Collection"; @@ -304,14 +304,17 @@ const DocumentLinkInner = observer(function DocumentLinkInner({ const [{ isOverReparent, canDropToReparent }, dropToReparent] = useDropToReparentDocument(node, handleExpand, parentRef); + // Fall back so document-only access (e.g. "Manage" on a parent) can reorder. + const moveCollectionId = collection?.id ?? document?.collectionId; + const [{ isOverReorder: isOverReorderAbove }, dropToReorderAbove] = useDropToReorderDocument(node, collection, (item) => { - if (!collection) { + if (!moveCollectionId) { return; } return { documentId: item.id, - collectionId: collection.id, + collectionId: moveCollectionId, parentDocumentId: parentId, index, }; @@ -319,20 +322,20 @@ const DocumentLinkInner = observer(function DocumentLinkInner({ const [{ isOverReorder, isDraggingAnyDocument }, dropToReorder] = useDropToReorderDocument(node, collection, (item) => { - if (!collection) { + if (!moveCollectionId) { return; } if (expansion.isExpanded(node.id)) { return { documentId: item.id, - collectionId: collection.id, + collectionId: moveCollectionId, parentDocumentId: node.id, index: 0, }; } return { documentId: item.id, - collectionId: collection.id, + collectionId: moveCollectionId, parentDocumentId: parentId, index: index + 1, }; @@ -389,8 +392,15 @@ const DocumentLinkInner = observer(function DocumentLinkInner({ /> ) : undefined; + // Without a collection we can't read isManualSort; fall back to the shared + // membership's permission, which is the same for every descendant. + const canReorderHere = collection + ? collection.isManualSort + : membership?.permission === DocumentPermission.Admin || + membership?.permission === DocumentPermission.ReadWrite; + const cursorBefore = - isDraggingAnyDocument && collection?.isManualSort && index === 0 ? ( + isDraggingAnyDocument && canReorderHere && index === 0 ? ( <DropCursor isActiveDrop={isOverReorderAbove} innerRef={dropToReorderAbove} @@ -399,7 +409,7 @@ const DocumentLinkInner = observer(function DocumentLinkInner({ ) : undefined; const cursorAfter = - isDraggingAnyDocument && collection?.isManualSort ? ( + isDraggingAnyDocument && canReorderHere ? ( <DropCursor isActiveDrop={isOverReorder} innerRef={dropToReorder} /> ) : undefined; diff --git a/app/components/Sidebar/components/SharedWithMeLink.tsx b/app/components/Sidebar/components/SharedWithMeLink.tsx index f1a53bce5c..276afdf5da 100644 --- a/app/components/Sidebar/components/SharedWithMeLink.tsx +++ b/app/components/Sidebar/components/SharedWithMeLink.tsx @@ -210,6 +210,7 @@ function SharedWithMeLink({ membership, depth = 0 }: Props) { isDraft={childNode.isDraft} depth={2} index={index} + parentId={document.id} /> ))} </Folder> diff --git a/app/stores/DocumentsStore.ts b/app/stores/DocumentsStore.ts index 9c150ddee2..8c5e2d6821 100644 --- a/app/stores/DocumentsStore.ts +++ b/app/stores/DocumentsStore.ts @@ -503,6 +503,16 @@ export default class DocumentsStore extends Store<Document> { invariant(res?.data, "Data not available"); res.data.documents.forEach(this.add); this.addPolicies(res.policies); + + // The websocket "documents.move" event is only broadcast to the + // collection channel, so users with document-only access never receive + // it. Refresh the affected membership tree locally so the sidebar + // reflects the new structure. + const membership = + this.rootStore.userMemberships.getByDocumentId(documentId); + if (membership) { + await membership.fetchDocuments({ force: true }); + } } finally { this.movingDocumentId = undefined; } diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index c5ba1b0937..fa98dce801 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -2672,6 +2672,50 @@ describe("#documents.move", () => { }); expect(res.status).toEqual(403); }); + + it("should allow reordering subdocuments with document-only admin access", async () => { + const owner = await buildUser(); + const collection = await buildCollection({ + teamId: owner.teamId, + userId: owner.id, + permission: null, + }); + const parent = await buildDocument({ + teamId: owner.teamId, + userId: owner.id, + collectionId: collection.id, + }); + const childA = await buildDocument({ + teamId: owner.teamId, + userId: owner.id, + collectionId: collection.id, + parentDocumentId: parent.id, + }); + const childB = await buildDocument({ + teamId: owner.teamId, + userId: owner.id, + collectionId: collection.id, + parentDocumentId: parent.id, + }); + + const user = await buildUser({ teamId: owner.teamId }); + await UserMembership.create({ + documentId: parent.id, + userId: user.id, + createdById: owner.id, + permission: DocumentPermission.Admin, + }); + + const res = await server.post("/api/documents.move", user, { + body: { + id: childB.id, + parentDocumentId: parent.id, + index: 0, + }, + }); + expect(res.status).toEqual(200); + expect(childA).toBeTruthy(); + }); }); describe("#documents.restore", () => { From c158697c91243f4fd955515cb7665aca8cb43d19 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 22:34:55 -0400 Subject: [PATCH 123/286] fix: Reject image/video dimension promises with real Error (#12498) The onerror handlers in FileHelper passed the raw DOM Event to reject, which Sentry surfaced as "Event captured as promise rejection" with no stack. Reject with an Error and revoke the blob URL on failure. --- shared/editor/lib/FileHelper.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/shared/editor/lib/FileHelper.ts b/shared/editor/lib/FileHelper.ts index 704774701d..6fc8b30a2d 100644 --- a/shared/editor/lib/FileHelper.ts +++ b/shared/editor/lib/FileHelper.ts @@ -80,7 +80,10 @@ export default class FileHelper { window.URL.revokeObjectURL(video.src); resolve({ width: video.videoWidth, height: video.videoHeight }); }; - video.onerror = reject; + video.onerror = () => { + window.URL.revokeObjectURL(video.src); + reject(new Error("Failed to load video for dimensions")); + }; video.src = URL.createObjectURL(file); }); } @@ -154,7 +157,10 @@ export default class FileHelper { resolve({ width: img.width, height: img.height }); }; - img.onerror = reject; + img.onerror = () => { + window.URL.revokeObjectURL(img.src); + reject(new Error("Failed to load image for dimensions")); + }; img.src = URL.createObjectURL(file); }); } From 09e99ac98d64322d8e09e9f6bbdce452288ca7ff Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 22:37:54 -0400 Subject: [PATCH 124/286] fix: Graceful exit when import is canceled beneath import task (#12497) --- server/queues/tasks/APIImportTask.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/server/queues/tasks/APIImportTask.ts b/server/queues/tasks/APIImportTask.ts index 5572bee3e3..5740912abb 100644 --- a/server/queues/tasks/APIImportTask.ts +++ b/server/queues/tasks/APIImportTask.ts @@ -53,7 +53,6 @@ export default abstract class APIImportTask< */ public async perform({ importTaskId }: Props) { let importTask = await ImportTask.findByPk<ImportTask<T>>(importTaskId, { - rejectOnEmpty: true, include: [ { model: Import, @@ -63,6 +62,12 @@ export default abstract class APIImportTask< ], }); + // The import_task row may have been deleted (e.g. its Import was removed) + // between the job being enqueued and the worker picking it up. Nothing to do. + if (!importTask) { + return; + } + // Don't process any further when the associated import is canceled by the user. if (importTask.import.state === ImportState.Canceled) { importTask.state = ImportTaskState.Canceled; @@ -107,7 +112,6 @@ export default abstract class APIImportTask< const importTask = await ImportTask.findByPk<ImportTask<T>>( importTaskId, { - rejectOnEmpty: true, include: [ { model: Import, @@ -120,6 +124,10 @@ export default abstract class APIImportTask< } ); + if (!importTask) { + return; + } + importTask.state = ImportTaskState.Errored; await importTask.save({ transaction }); From 76a3ba4e83ced4b65f26c7b401cbf6bd76e45e58 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 22:52:05 -0400 Subject: [PATCH 125/286] fix: Normalize IP addresses to avoid validation errors (#12500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Normalize IP addresses to avoid validation errors on audit columns Koa's `ctx.request.ip` can yield values that fail Sequelize's `isIP` validation (X-Forwarded-For chains, IPv6 zone identifiers, "unknown" from misconfigured proxies). This drops the IP metadata silently instead of raising a 500 on Event/User writes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * test: Cover IP normalization on User setters Reviewer feedback. Also switches the column-options `set` to TypeScript get/set accessors — the original approach was shadowed by the class field declaration and never actually fired, which the new tests would have caught. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- server/models/Event.ts | 6 ++---- server/models/User.test.ts | 24 ++++++++++++++++++++++++ server/models/User.ts | 21 +++++++++++++++++---- server/utils/ip.test.ts | 38 ++++++++++++++++++++++++++++++++++++++ server/utils/ip.ts | 27 +++++++++++++++++++++++++++ 5 files changed, 108 insertions(+), 8 deletions(-) create mode 100644 server/utils/ip.test.ts create mode 100644 server/utils/ip.ts diff --git a/server/models/Event.ts b/server/models/Event.ts index bd4b6de4d6..5f4eaaba27 100644 --- a/server/models/Event.ts +++ b/server/models/Event.ts @@ -20,6 +20,7 @@ import { import { globalEventQueue } from "../queues"; import type { APIContext } from "../types"; import { AuthenticationType } from "../types"; +import { normalizeIp } from "../utils/ip"; import Collection from "./Collection"; import Document from "./Document"; import Team from "./Team"; @@ -75,10 +76,7 @@ class Event extends IdModel< @BeforeCreate static cleanupIp(model: Event) { - if (model.ip) { - // cleanup IPV6 representations of IPV4 addresses - model.ip = model.ip.replace(/^::ffff:/, ""); - } + model.ip = normalizeIp(model.ip); } @AfterSave diff --git a/server/models/User.test.ts b/server/models/User.test.ts index ddb0b9a2bd..410a29406e 100644 --- a/server/models/User.test.ts +++ b/server/models/User.test.ts @@ -76,6 +76,30 @@ describe("user model", () => { }); }); + describe("ip setters", () => { + it("normalizes lastActiveIp and lastSignedInIp on assignment", async () => { + const user = await buildUser(); + + user.lastActiveIp = "::ffff:127.0.0.1"; + user.lastSignedInIp = "203.0.113.1, 70.41.3.18"; + await user.save({ hooks: false }); + + expect(user.lastActiveIp).toBe("127.0.0.1"); + expect(user.lastSignedInIp).toBe("203.0.113.1"); + }); + + it("nulls out invalid IP values without failing validation", async () => { + const user = await buildUser(); + + user.lastActiveIp = "unknown"; + user.lastSignedInIp = "not-an-ip"; + await expect(user.save({ hooks: false })).resolves.toBeDefined(); + + expect(user.lastActiveIp).toBeNull(); + expect(user.lastSignedInIp).toBeNull(); + }); + }); + describe("destroy", () => { it("should clear PII", async () => { const user = await buildUser(); diff --git a/server/models/User.ts b/server/models/User.ts index 06ae43fd52..8234c36658 100644 --- a/server/models/User.ts +++ b/server/models/User.ts @@ -54,6 +54,7 @@ import type { APIContext } from "@server/types"; import { VerificationCode } from "@server/utils/VerificationCode"; import parseAttachmentIds from "@server/utils/parseAttachmentIds"; import { CacheHelper } from "@server/utils/CacheHelper"; +import { normalizeIp } from "@server/utils/ip"; import { RedisPrefixHelper } from "@server/utils/RedisPrefixHelper"; import { ValidationError } from "../errors"; import Attachment from "./Attachment"; @@ -169,9 +170,15 @@ class User extends ParanoidModel< lastActiveAt: Date | null; @IsIP - @Column @SkipChangeset - lastActiveIp: string | null; + @Column(DataType.STRING) + get lastActiveIp(): string | null { + return this.getDataValue("lastActiveIp"); + } + + set lastActiveIp(value: string | null) { + this.setDataValue("lastActiveIp", normalizeIp(value)); + } @IsDate @Column @@ -179,9 +186,15 @@ class User extends ParanoidModel< lastSignedInAt: Date | null; @IsIP - @Column @SkipChangeset - lastSignedInIp: string | null; + @Column(DataType.STRING) + get lastSignedInIp(): string | null { + return this.getDataValue("lastSignedInIp"); + } + + set lastSignedInIp(value: string | null) { + this.setDataValue("lastSignedInIp", normalizeIp(value)); + } @IsDate @Column diff --git a/server/utils/ip.test.ts b/server/utils/ip.test.ts new file mode 100644 index 0000000000..f5dab06f44 --- /dev/null +++ b/server/utils/ip.test.ts @@ -0,0 +1,38 @@ +import { normalizeIp } from "./ip"; + +describe("normalizeIp", () => { + it("returns null for nullish or empty input", () => { + expect(normalizeIp(null)).toBeNull(); + expect(normalizeIp(undefined)).toBeNull(); + expect(normalizeIp("")).toBeNull(); + expect(normalizeIp(" ")).toBeNull(); + }); + + it("returns valid IPv4 unchanged", () => { + expect(normalizeIp("192.168.1.1")).toBe("192.168.1.1"); + }); + + it("returns valid IPv6 unchanged", () => { + expect(normalizeIp("2001:db8::1")).toBe("2001:db8::1"); + }); + + it("strips ::ffff: IPv4-mapped IPv6 prefix", () => { + expect(normalizeIp("::ffff:127.0.0.1")).toBe("127.0.0.1"); + }); + + it("strips IPv6 zone identifier", () => { + expect(normalizeIp("fe80::1%eth0")).toBe("fe80::1"); + }); + + it("takes the first entry from an X-Forwarded-For chain", () => { + expect(normalizeIp("203.0.113.1, 70.41.3.18, 150.172.238.178")).toBe( + "203.0.113.1" + ); + }); + + it("returns null for non-IP values", () => { + expect(normalizeIp("unknown")).toBeNull(); + expect(normalizeIp("not-an-ip")).toBeNull(); + expect(normalizeIp("999.999.999.999")).toBeNull(); + }); +}); diff --git a/server/utils/ip.ts b/server/utils/ip.ts new file mode 100644 index 0000000000..b583f400cd --- /dev/null +++ b/server/utils/ip.ts @@ -0,0 +1,27 @@ +import net from "node:net"; + +/** + * Normalize an IP address string for storage in audit columns. + * + * Handles common upstream-proxy artifacts that would otherwise fail + * Sequelize's `isIP` validation: IPv4-mapped IPv6 prefixes, IPv6 zone + * identifiers, and `X-Forwarded-For` chains. Returns `null` for any + * value that is not a valid IPv4 or IPv6 address after normalization. + * + * @param value the raw IP string (e.g. from `ctx.request.ip`). + * @returns a valid IP string, or `null`. + */ +export function normalizeIp(value: string | null | undefined): string | null { + if (!value || typeof value !== "string") { + return null; + } + + let ip = value.split(",")[0]?.trim() ?? ""; + ip = ip.replace(/^::ffff:/i, ""); + const zoneIndex = ip.indexOf("%"); + if (zoneIndex !== -1) { + ip = ip.slice(0, zoneIndex); + } + + return net.isIP(ip) !== 0 ? ip : null; +} From 82743b1c0a2af7cff1ddd104e2d1d239a3b75b64 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 22:52:15 -0400 Subject: [PATCH 126/286] feat: Allow http webhook urls when self-hosting (#12499) --- .../components/WebhookSubscriptionForm.tsx | 13 ++++++- plugins/webhooks/server/api/schema.ts | 11 ++++-- .../server/api/webhookSubscriptions.test.ts | 34 +++++++++++++++++++ shared/i18n/locales/en_US/translation.json | 1 + 4 files changed, 56 insertions(+), 3 deletions(-) diff --git a/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx b/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx index f79af68ecc..61d0fc24fd 100644 --- a/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx +++ b/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx @@ -13,6 +13,7 @@ import Input from "~/components/Input"; import Text from "~/components/Text"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import useMobile from "~/hooks/useMobile"; +import isCloudHosted from "~/utils/isCloudHosted"; import Flex from "@shared/components/Flex"; const WEBHOOK_EVENTS = { @@ -153,6 +154,9 @@ function WebhookSubscriptionForm({ handleSubmit, webhookSubscription }: Props) { }); const events = watch("events"); + const url = watch("url"); + const showInsecureUrlWarning = + !isCloudHosted && typeof url === "string" && url.startsWith("http://"); const selectedGroups = filter(events, (e) => !e.includes(".")); const isAllEventSelected = includes(events, "*"); const filteredEvents = filter(events, (e) => { @@ -224,9 +228,16 @@ function WebhookSubscriptionForm({ handleSubmit, webhookSubscription }: Props) { <Input required flex - pattern="https://.*" + pattern={isCloudHosted ? "https://.*" : "https?://.*"} placeholder="https://…" label={t("URL")} + error={ + showInsecureUrlWarning + ? t( + "Webhook delivery over http is insecure, use https if possible" + ) + : undefined + } {...register("url", { required: true })} /> <Input diff --git a/plugins/webhooks/server/api/schema.ts b/plugins/webhooks/server/api/schema.ts index ca1a0c6cbf..9e3f995815 100644 --- a/plugins/webhooks/server/api/schema.ts +++ b/plugins/webhooks/server/api/schema.ts @@ -1,7 +1,14 @@ import { z } from "zod"; +import env from "@server/env"; import { WebhookSubscription } from "@server/models"; import { BaseSchema } from "@server/routes/api/schema"; +const webhookUrl = z + .url() + .refine((val) => !env.isCloudHosted || val.startsWith("https://"), { + error: "Webhook url must use https", + }); + export const WebhookSubscriptionsListSchema = BaseSchema.extend({ body: z.object({ /** Webhook subscriptions sorting direction */ @@ -33,7 +40,7 @@ export type WebhookSubscriptionsListReq = z.infer< export const WebhookSubscriptionsCreateSchema = z.object({ body: z.object({ name: z.string(), - url: z.url(), + url: webhookUrl, secret: z.string().optional(), events: z.array(z.string()), }), @@ -47,7 +54,7 @@ export const WebhookSubscriptionsUpdateSchema = z.object({ body: z.object({ id: z.uuid(), name: z.string(), - url: z.url(), + url: webhookUrl, secret: z.string().optional(), events: z.array(z.string()), }), diff --git a/plugins/webhooks/server/api/webhookSubscriptions.test.ts b/plugins/webhooks/server/api/webhookSubscriptions.test.ts index 1eaf1d28de..7d3cf3783e 100644 --- a/plugins/webhooks/server/api/webhookSubscriptions.test.ts +++ b/plugins/webhooks/server/api/webhookSubscriptions.test.ts @@ -1,3 +1,4 @@ +import env from "@server/env"; import { buildAdmin, buildUser, @@ -167,6 +168,39 @@ describe("#webhookSubscriptions.create", () => { expect(webhook.secret).toEqual(secret); expect(webhook.enabled).toEqual(true); }); + + it("should reject http urls when cloud hosted", async () => { + vi.spyOn(env, "isCloudHosted", "get").mockReturnValue(true); + + const user = await buildAdmin(); + const res = await server.post("/api/webhookSubscriptions.create", user, { + body: { + name: "Test webhook", + url: "http://www.example.com", + events: ["comments"], + }, + }); + + expect(res.status).toEqual(400); + }); + + it("should allow http urls when not cloud hosted", async () => { + vi.spyOn(env, "isCloudHosted", "get").mockReturnValue(false); + + const user = await buildAdmin(); + const url = "http://www.example.com"; + const res = await server.post("/api/webhookSubscriptions.create", user, { + body: { + name: "Test webhook", + url, + events: ["comments"], + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.url).toEqual(url); + }); }); describe("#webhookSubscriptions.update", () => { diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 483f33162b..09e6ba9493 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -1610,6 +1610,7 @@ "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", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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", From 63668599351109a702f3b2515fc995160765c179 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 27 May 2026 23:18:37 -0400 Subject: [PATCH 127/286] chore: Remove Koa middleware span reporting (#12501) --- server/logging/tracer.ts | 4 ++++ server/onerror.ts | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/server/logging/tracer.ts b/server/logging/tracer.ts index 439eecce4d..61c9bd4cdc 100644 --- a/server/logging/tracer.ts +++ b/server/logging/tracer.ts @@ -31,6 +31,10 @@ if (env.DD_API_KEY) { env: env.ENVIRONMENT, logInjection: true, }); + + // Disable per-middleware spans so that non-reportable errors are not captured + // This is also generally excessive noise + tracer.use("koa", { middleware: false }); } const getCurrentSpan = (): Span | null => tracer.scope().active(); diff --git a/server/onerror.ts b/server/onerror.ts index ed22f776ff..00ba281ab0 100644 --- a/server/onerror.ts +++ b/server/onerror.ts @@ -7,7 +7,6 @@ import { escape, isNil, snakeCase } from "es-toolkit/compat"; import env from "@server/env"; import { ClientClosedRequestError, InternalError } from "@server/errors"; import { requestErrorHandler } from "@server/logging/sentry"; -import { addTags, getRootSpanFromRequestContext } from "@server/logging/tracer"; let errorHtmlCache: Buffer | undefined; @@ -54,14 +53,6 @@ export default function onerror(app: Koa) { } err = InternalError(); } - } else { - // Clear error tags that dd-trace's Koa plugin sets automatically - // when an exception propagates through middleware, so that - // non-reportable errors are not flagged as errors in DataDog. - const span = getRootSpanFromRequestContext(this); - if (span) { - addTags({ error: false }, span); - } } const headerSent = this.headerSent || !this.writable; From deadaa00f1c228d9d579bd830c316f2c752194a3 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 28 May 2026 09:06:55 -0400 Subject: [PATCH 128/286] fix: Disable floating toolbar interaction during open animation (#12508) Closes #12503 Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- app/editor/components/FloatingToolbar.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/editor/components/FloatingToolbar.tsx b/app/editor/components/FloatingToolbar.tsx index 00cda63889..73f5ea412f 100644 --- a/app/editor/components/FloatingToolbar.tsx +++ b/app/editor/components/FloatingToolbar.tsx @@ -420,11 +420,24 @@ const Wrapper = styled.div<WrapperProps>` box-sizing: border-box; } + & button, + & a, + & input { + pointer-events: none; + } + ${({ active }) => active && ` transform: translateY(-6px) scale(1); opacity: 1; + + & button, + & a, + & input { + pointer-events: auto; + transition: pointer-events 0s 300ms; + } `}; @media print { From d2a0bf99238302e8063385c8bc5f329bec6db338 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 28 May 2026 09:06:58 -0400 Subject: [PATCH 129/286] fix: Avoid team invariant violation on OAuth authorize error (#12506) When /oauthClients.info returns an AuthorizationError, ApiClient logs the user out and clears auth.team. The subsequent re-render of the Authorize component hit the strict useCurrentTeam() and threw before the error UI could render. Make the inner hook tolerate a missing team and fold it into the existing error branch. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> --- app/scenes/Login/OAuthAuthorize.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Login/OAuthAuthorize.tsx b/app/scenes/Login/OAuthAuthorize.tsx index d916f9a923..07556aaab6 100644 --- a/app/scenes/Login/OAuthAuthorize.tsx +++ b/app/scenes/Login/OAuthAuthorize.tsx @@ -76,7 +76,7 @@ function inputScopes(scope?: string): string[] { * and allows the user to either authorize or cancel the request. */ function Authorize() { - const team = useCurrentTeam(); + const team = useCurrentTeam({ rejectOnEmpty: false }); const params = useQuery(); const { t } = useTranslation(); const [isSubmitting, setIsSubmitting] = useState(false); @@ -133,7 +133,7 @@ function Authorize() { !state && "state", ].filter(Boolean); - if (missingParams.length || clientError) { + if (missingParams.length || clientError || !team) { return ( <Background> <Centered> From ae5cd6a1595094816c42546b78900f6c0528a4c1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 28 May 2026 09:07:05 -0400 Subject: [PATCH 130/286] fix: Allow service worker to load on custom domains (#12502) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Allow service worker to load on custom domains Add explicit worker-src 'self' so the service worker can register on team custom domains. Without it, browsers fall back to script-src which only lists env.URL and env.CDN_URL, blocking /static/sw.js on hosts like docs.getoutline.com. * fix: Switch worker-src approach to script-src 'self' for type safety The @types/koa-helmet definitions don't include workerSrc. Add 'self' to script-src instead — worker-src falls back to script-src per spec, and 'self' matches the document origin on custom domains. * fix: Properly add worker-src directive without script-src widening Extract the CSP directives to a local variable so workerSrc can be included despite koa-helmet's outdated type definitions missing it (the underlying helmet supports it). Also drop @types/koa-helmet since the package now ships its own (equivalent) types. --- package.json | 1 - server/middlewares/csp.ts | 47 ++++++++++++++++++++++----------------- yarn.lock | 14 +----------- 3 files changed, 27 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index e53b4c3631..dd62ab9310 100644 --- a/package.json +++ b/package.json @@ -307,7 +307,6 @@ "@types/katex": "^0.16.8", "@types/koa": "^2.15.1", "@types/koa-compress": "^4.0.7", - "@types/koa-helmet": "^6.0.8", "@types/koa-logger": "^3.1.5", "@types/koa-mount": "^4.0.5", "@types/koa-router": "^7.4.9", diff --git a/server/middlewares/csp.ts b/server/middlewares/csp.ts index 2e56cbae3d..56aad8e2cf 100644 --- a/server/middlewares/csp.ts +++ b/server/middlewares/csp.ts @@ -84,26 +84,31 @@ export default function createCSPMiddleware(options?: CSPOptions) { return function cspMiddleware(ctx: Context, next: Next) { ctx.state.cspNonce = crypto.randomBytes(16).toString("hex"); - return contentSecurityPolicy({ - directives: { - baseUri: ["'none'"], - defaultSrc, - styleSrc, - scriptSrc: [ - ...uniq(scriptSrc), - ...(options?.extraScriptSrc ?? []), - env.DEVELOPMENT_UNSAFE_INLINE_CSP - ? "'unsafe-inline'" - : `'nonce-${ctx.state.cspNonce}'`, - ], - mediaSrc: ["*", "data:", "blob:"], - imgSrc: ["*", "data:", "blob:"], - frameSrc: ["*", "data:"], - objectSrc, - // Do not use connect-src: because self + websockets does not work in - // Safari, ref: https://bugs.webkit.org/show_bug.cgi?id=201591 - connectSrc: ["*"], - }, - })(ctx, next); + // Note: workerSrc is included even though it's missing from the koa-helmet + // type definitions — the underlying helmet supports it. The service worker + // is served from the same origin as the document, which may be a custom + // domain that is not present in scriptSrc. + const directives = { + baseUri: ["'none'"], + defaultSrc, + styleSrc, + scriptSrc: [ + ...uniq(scriptSrc), + ...(options?.extraScriptSrc ?? []), + env.DEVELOPMENT_UNSAFE_INLINE_CSP + ? "'unsafe-inline'" + : `'nonce-${ctx.state.cspNonce}'`, + ], + mediaSrc: ["*", "data:", "blob:"], + imgSrc: ["*", "data:", "blob:"], + frameSrc: ["*", "data:"], + workerSrc: ["'self'"], + objectSrc, + // Do not use connect-src: because self + websockets does not work in + // Safari, ref: https://bugs.webkit.org/show_bug.cgi?id=201591 + connectSrc: ["*"], + }; + + return contentSecurityPolicy({ directives })(ctx, next); }; } diff --git a/yarn.lock b/yarn.lock index 1946f529ba..6faebf0c8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6919,17 +6919,6 @@ __metadata: languageName: node linkType: hard -"@types/koa-helmet@npm:^6.0.8": - version: 6.0.8 - resolution: "@types/koa-helmet@npm:6.0.8" - dependencies: - "@types/koa": "npm:*" - "@types/node": "npm:*" - helmet: "npm:^4.0.0" - checksum: 10c0/73c2ad0b37561b399e9493cf5ca2dccc0e37c3ea5da3cd281685728a242bc63f1b83d77838ff2ec616fad023e79c0f3a74ca935c740c4cc3c63a1fed3c27fe84 - languageName: node - linkType: hard - "@types/koa-logger@npm:^3.1.5": version: 3.1.5 resolution: "@types/koa-logger@npm:3.1.5" @@ -11869,7 +11858,7 @@ __metadata: languageName: node linkType: hard -"helmet@npm:^4.0.0, helmet@npm:^4.4.1": +"helmet@npm:^4.4.1": version: 4.6.0 resolution: "helmet@npm:4.6.0" checksum: 10c0/fe0d986fc465be0f652e67dd1feab576d9b08b797846fdac5719d5ca857977d6b1712327223a7c25695104dfde118fdf303f4a18efca7cddf0159821bf36b7f8 @@ -15132,7 +15121,6 @@ __metadata: "@types/katex": "npm:^0.16.8" "@types/koa": "npm:^2.15.1" "@types/koa-compress": "npm:^4.0.7" - "@types/koa-helmet": "npm:^6.0.8" "@types/koa-logger": "npm:^3.1.5" "@types/koa-mount": "npm:^4.0.5" "@types/koa-router": "npm:^7.4.9" From 3f92e960065fa436dcc25d2f78cd4110c9f1b58a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 28 May 2026 21:08:46 -0400 Subject: [PATCH 131/286] fix: Outdent code with shift-tab behavior (#12514) * fix: Outdent code with shift-tab behavior * PR feedback --- shared/editor/commands/codeFence.test.ts | 137 +++++++++++++++++++++++ shared/editor/commands/codeFence.ts | 49 +++++--- 2 files changed, 173 insertions(+), 13 deletions(-) create mode 100644 shared/editor/commands/codeFence.test.ts diff --git a/shared/editor/commands/codeFence.test.ts b/shared/editor/commands/codeFence.test.ts new file mode 100644 index 0000000000..c302bd05e0 --- /dev/null +++ b/shared/editor/commands/codeFence.test.ts @@ -0,0 +1,137 @@ +import { TextSelection } from "prosemirror-state"; +import { createEditorState, codeBlock, doc } from "@shared/test/editor"; +import { indentInCode, outdentInCode } from "./codeFence"; + +/** + * Helper that runs a command against a code block document with the given + * selection and returns the resulting code block text content. + */ +function runInCodeBlock( + code: string, + from: number, + to: number, + command: typeof outdentInCode +) { + const testDoc = doc([codeBlock(code)]); + let state = createEditorState(testDoc); + state = state.apply( + state.tr.setSelection(TextSelection.create(state.doc, from, to)) + ); + + let result = state; + command(state, (tr) => { + result = state.apply(tr); + }); + + return result.doc.firstChild?.textContent; +} + +/** + * Helper that selects the entire code block, indents it, then outdents it and + * returns the resulting text content (which should match the input). + */ +function indentThenOutdentAll(code: string) { + const testDoc = doc([codeBlock(code)]); + let state = createEditorState(testDoc); + + const selectAll = () => { + const block = state.doc.firstChild; + const end = block ? block.nodeSize - 1 : 1; + return state.apply( + state.tr.setSelection(TextSelection.create(state.doc, 1, end)) + ); + }; + + state = selectAll(); + indentInCode(state, (tr) => { + state = state.apply(tr); + }); + + state = selectAll(); + outdentInCode(state, (tr) => { + state = state.apply(tr); + }); + + return state.doc.firstChild?.textContent; +} + +describe("outdentInCode", () => { + it("removes leading spaces from a single line", () => { + // " a" – cursor after the content (tab size 2) + const text = runInCodeBlock(" a", 4, 4, outdentInCode); + expect(text).toBe("a"); + }); + + it("outdents all selected lines", () => { + const code = " a\n b\n c"; + // select from start of line 1 to end of line 3 + const text = runInCodeBlock(code, 1, code.length + 1, outdentInCode); + expect(text).toBe("a\nb\nc"); + }); + + it("does not affect lines above the selection", () => { + // Four lines, each indented two spaces. Select only the last two lines. + const code = " a\n b\n c\n d"; + // line three starts at position 9 (1-indexed inside the block) + const startOfLine3 = " a\n b\n".length + 1; + const text = runInCodeBlock( + code, + startOfLine3, + code.length + 1, + outdentInCode + ); + // Lines 1 and 2 must keep their indentation, lines 3 and 4 outdented. + expect(text).toBe(" a\n b\nc\nd"); + }); + + it("does not affect the line above when selecting a single later line", () => { + const code = " a\n b\n c"; + const startOfLine3 = " a\n b\n".length + 1; + const text = runInCodeBlock( + code, + startOfLine3, + code.length + 1, + outdentInCode + ); + expect(text).toBe(" a\n b\nc"); + }); + + it("removes only one indent step from already-indented nested lines", () => { + // Two-space code with a deeper (four-space) nested line. Outdent must + // remove two spaces per line, not four, even though a four-space run exists. + const code = "a\n b\n c"; + const text = runInCodeBlock(code, 1, code.length + 1, outdentInCode); + expect(text).toBe("a\nb\n c"); + }); +}); + +describe("indent then outdent", () => { + it("round-trips two-space code without removing too many spaces", () => { + const code = "function () {\n return 1;\n}"; + expect(indentThenOutdentAll(code)).toBe(code); + }); + + it("round-trips four-space code", () => { + const code = "def foo():\n return 1"; + expect(indentThenOutdentAll(code)).toBe(code); + }); + + it("round-trips deeply nested two-space code", () => { + const code = "function () {\n if (x) {\n return 1;\n }\n}"; + expect(indentThenOutdentAll(code)).toBe(code); + }); +}); + +describe("indentInCode", () => { + it("indents all selected lines without touching others", () => { + const code = "a\nb\nc"; + const startOfLine2 = "a\n".length + 1; + const text = runInCodeBlock( + code, + startOfLine2, + code.length + 1, + (state, dispatch) => indentInCode(state, dispatch) + ); + expect(text).toBe("a\n b\n c"); + }); +}); diff --git a/shared/editor/commands/codeFence.ts b/shared/editor/commands/codeFence.ts index 06be814ca3..8611ed83c4 100644 --- a/shared/editor/commands/codeFence.ts +++ b/shared/editor/commands/codeFence.ts @@ -149,17 +149,21 @@ export const outdentInCode: Command = (state, dispatch) => { const { tr, selection } = state; const { $from, from, to } = selection; const selectionLength = to - from; - let line = 1; // Find all newlines in the selection and remove tab-sized spaces before // them, working backwards to avoid changing the offset. - let index = to - 1; let totalSpacesRemoved = 0; let spacesRemovedOnFirstLine = 0; const startOfFirstLine = findPreviousNewline($from); const tabSize = getTabSize(state); - while (index >= startOfFirstLine - line * tabSize) { + // Walk backwards from the end of the selection down to the start of its + // first line. Deletions happen at positions >= index, so earlier positions + // never shift and no offset compensation is needed. Stopping at + // startOfFirstLine ensures lines above the selection are left untouched. + let index = Math.max(to - 1, startOfFirstLine); + + while (index >= startOfFirstLine) { const newLineBefore = tr.doc.textBetween(index - 1, index) === newline || index === startOfFirstLine; @@ -183,18 +187,20 @@ export const outdentInCode: Command = (state, dispatch) => { tr.delete(index, index + spaces); totalSpacesRemoved += spaces; } - line++; } index--; } - tr.setSelection( - TextSelection.create( - tr.doc, - to - selectionLength - spacesRemovedOnFirstLine, - to - totalSpacesRemoved - ) + // Restore the selection, shifting each end back by the spaces removed + // before it. Clamp to the start of the first line so a selection that + // began within the removed leading whitespace doesn't underflow. + const newFrom = Math.max( + startOfFirstLine, + to - selectionLength - spacesRemovedOnFirstLine ); + const newTo = Math.max(newFrom, to - totalSpacesRemoved); + + tr.setSelection(TextSelection.create(tr.doc, newFrom, newTo)); dispatch(tr); return true; @@ -282,7 +288,24 @@ function getTabSize(state: EditorState): number { return 4; } - const existingText = codeBlock.node.textContent; - const usesFourSpaces = existingText.includes(" "); - return usesFourSpaces ? 4 : 2; + // Infer the indent size from the existing indentation. Treat the block as + // four-space indented only when every indented line is a multiple of four + // spaces – a simple `includes(" ")` check misfires on two-space code, + // which naturally contains four-space runs at deeper nesting levels or + // immediately after an indent, causing outdent to remove too many spaces. + // Only space characters are counted, since indent/outdent operate on spaces. + let hasIndentedLine = false; + for (const line of codeBlock.node.textContent.split(newline)) { + const leadingSpaces = line.length - line.replace(/^ +/, "").length; + // Ignore unindented and whitespace-only lines. + if (leadingSpaces === 0 || leadingSpaces === line.length) { + continue; + } + if (leadingSpaces % 4 !== 0) { + return 2; + } + hasIndentedLine = true; + } + + return hasIndentedLine ? 4 : 2; } From 1eba87020cbcf64d94d69ef3a831a34da1327f89 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 28 May 2026 21:30:53 -0400 Subject: [PATCH 132/286] fix: Prevent block menu trigger when marked (#12515) * Prevent block menu trigger when marked * PR feedback --- app/editor/extensions/BlockMenu.tsx | 4 +- app/editor/extensions/Suggestion.ts | 58 ++++++++++++++----- .../editor/plugins/SuggestionsMenuPlugin.ts | 49 ++++++++++++++-- 3 files changed, 89 insertions(+), 22 deletions(-) diff --git a/app/editor/extensions/BlockMenu.tsx b/app/editor/extensions/BlockMenu.tsx index bc3fedaca7..0499f6d6df 100644 --- a/app/editor/extensions/BlockMenu.tsx +++ b/app/editor/extensions/BlockMenu.tsx @@ -17,6 +17,7 @@ export default class BlockMenuExtension extends Suggestion { allowSpaces: false, requireSearchTerm: false, enabledInCode: false, + enabledInMarks: false, }; } @@ -87,7 +88,8 @@ export default class BlockMenuExtension extends Suggestion { condition: ({ node, $start, state }) => $start.depth === 1 && state.selection.$from.pos === $start.pos + node.content.size && - node.textContent === "/", + node.textContent === "/" && + node.firstChild?.marks.length === 0, text: ` ${t("Keep typing to filter")}…`, }, ]), diff --git a/app/editor/extensions/Suggestion.ts b/app/editor/extensions/Suggestion.ts index bead0e9cae..b258b76cf1 100644 --- a/app/editor/extensions/Suggestion.ts +++ b/app/editor/extensions/Suggestion.ts @@ -4,7 +4,10 @@ import { InputRule } from "prosemirror-inputrules"; import type { NodeType, Schema } from "prosemirror-model"; import type { EditorState, Plugin } from "prosemirror-state"; import Extension from "@shared/editor/lib/Extension"; -import { SuggestionsMenuPlugin } from "@shared/editor/plugins/SuggestionsMenuPlugin"; +import { + isTriggerMarked, + SuggestionsMenuPlugin, +} from "@shared/editor/plugins/SuggestionsMenuPlugin"; import { isInCode } from "@shared/editor/queries/isInCode"; /** @@ -14,6 +17,12 @@ import { isInCode } from "@shared/editor/queries/isInCode"; export type SuggestionOptions = { /** Whether the suggestion menu is allowed to open inside code blocks or inline code. */ enabledInCode: boolean; + /** + * Whether the suggestion menu may open when the trigger character carries a + * mark (e.g. bold, italic, link). Defaults to true – disable for menus where + * the trigger is only meaningful as plain text, such as the block menu. + */ + enabledInMarks?: boolean; /** Character (or list of characters) that opens the suggestion menu. */ trigger: string | string[]; /** Whether spaces are allowed inside the search term. */ @@ -45,7 +54,18 @@ export default class Suggestion< } get plugins(): Plugin[] { - return [new SuggestionsMenuPlugin(this.state, this.openRegex)]; + return [ + new SuggestionsMenuPlugin( + this.state, + this.openRegex, + this.enabledInMarks + ), + ]; + } + + /** Whether the menu may open when the trigger character carries a mark. */ + protected get enabledInMarks(): boolean { + return this.options.enabledInMarks ?? true; } keys() { @@ -62,21 +82,29 @@ export default class Suggestion< inputRules = (_options: { type: NodeType; schema: Schema }) => [ new InputRule( this.openRegex, - action((state: EditorState, match: RegExpMatchArray) => { - const { parent } = state.selection.$from; - if ( - match && - (parent.type.name === "paragraph" || - parent.type.name === "heading") && - (!isInCode(state) || this.options.enabledInCode) - ) { - if (match[0].length <= 2) { - this.state.open = true; + action( + ( + state: EditorState, + match: RegExpMatchArray, + _start: number, + end: number + ) => { + const { parent } = state.selection.$from; + if ( + match && + (parent.type.name === "paragraph" || + parent.type.name === "heading") && + (!isInCode(state) || this.options.enabledInCode) && + (this.enabledInMarks || !isTriggerMarked(state, end, match)) + ) { + if (match[0].length <= 2) { + this.state.open = true; + } + this.state.query = match[1]; } - this.state.query = match[1]; + return null; } - return null; - }) + ) ), ]; diff --git a/shared/editor/plugins/SuggestionsMenuPlugin.ts b/shared/editor/plugins/SuggestionsMenuPlugin.ts index d9ff158baf..c3e26baf49 100644 --- a/shared/editor/plugins/SuggestionsMenuPlugin.ts +++ b/shared/editor/plugins/SuggestionsMenuPlugin.ts @@ -2,6 +2,7 @@ import { action } from "mobx"; import type { EditorState } from "prosemirror-state"; import { Plugin } from "prosemirror-state"; import type { EditorView } from "prosemirror-view"; +import { getMarksBetween } from "@shared/editor/queries/getMarksBetween"; const MAX_MATCH = 500; @@ -10,8 +11,35 @@ type ExtensionState = { query: string; }; +/** + * Determine whether the trigger character of a suggestion match carries any + * marks (e.g. bold, code, link). + * + * @param state The editor state. + * @param cursorPos The document position of the cursor (end of the match). + * @param match The regex match where group 1 is the search term. + * @returns True if the trigger character has one or more marks applied. + */ +export function isTriggerMarked( + state: EditorState, + cursorPos: number, + match: RegExpMatchArray +): boolean { + const queryLength = match[1]?.length ?? 0; + const triggerEnd = cursorPos - queryLength; + const triggerStart = triggerEnd - 1; + if (triggerStart < 0) { + return false; + } + return getMarksBetween(triggerStart, triggerEnd, state).length > 0; +} + export class SuggestionsMenuPlugin extends Plugin { - constructor(extensionState: ExtensionState, openRegex: RegExp) { + constructor( + extensionState: ExtensionState, + openRegex: RegExp, + enabledInMarks: boolean + ) { super({ props: { handleDOMEvents: { @@ -34,7 +62,10 @@ export class SuggestionsMenuPlugin extends Plugin { ); const match = openRegex.exec(textBefore); action(() => { - if (match) { + if ( + match && + (enabledInMarks || !isTriggerMarked(state, fromPos, match)) + ) { if (match[0].length <= 2) { extensionState.open = true; } @@ -59,8 +90,11 @@ export class SuggestionsMenuPlugin extends Plugin { fromPos, fromPos, openRegex, - action((_, match) => { - if (match) { + action((state, match) => { + if ( + match && + (enabledInMarks || !isTriggerMarked(state, fromPos, match)) + ) { extensionState.query = match[1]; } else { extensionState.open = false; @@ -89,8 +123,11 @@ export class SuggestionsMenuPlugin extends Plugin { fromPos, fromPos, openRegex, - action((_, match) => { - if (match) { + action((state, match) => { + if ( + match && + (enabledInMarks || !isTriggerMarked(state, fromPos, match)) + ) { if (match[0].length <= 2) { extensionState.open = true; } From fecca544f9e4a617715c06f804554140709d1655 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 28 May 2026 22:42:40 -0400 Subject: [PATCH 133/286] chore: Normalize permission logic between API/MCP doc creation (#12517) --- server/commands/documentCreator.ts | 111 ++++++++++++++++++++++- server/routes/api/documents/documents.ts | 62 ++----------- server/tools/documents.test.ts | 92 +++++++++++++++++++ server/tools/documents.ts | 36 +++----- 4 files changed, 223 insertions(+), 78 deletions(-) diff --git a/server/commands/documentCreator.ts b/server/commands/documentCreator.ts index 75f57ab361..94c596a783 100644 --- a/server/commands/documentCreator.ts +++ b/server/commands/documentCreator.ts @@ -1,9 +1,11 @@ import type { Optional } from "utility-types"; import { TextHelper } from "@shared/utils/TextHelper"; -import { Document, type Template } from "@server/models"; +import { Collection, Document, type Template } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; +import { authorize } from "@server/policies"; import type { APIContext } from "@server/types"; +import { assertPresent } from "@server/validation"; type Props = Optional< Pick< @@ -35,6 +37,113 @@ type Props = Optional< index?: number; }; +type CreateLocation = { + /** The collection to place the document in, if any. */ + collectionId?: string | null; + /** The parent document to nest the new document under, if any. */ + parentDocumentId?: string | null; +}; + +/** + * Authorizes the creation of a document at the requested location and resolves + * the collection and parent document it will belong to. Shared by the + * documents.create API route and the MCP create_document tool so that both + * enforce identical permissions, including the team-level check that prevents + * viewers and guests from creating drafts with no collection. + * + * @param ctx the API context containing the acting user. + * @param location the requested collection and/or parent document. + * @returns the resolved collection and parent document, when applicable. + * @throws AuthorizationError when the user may not create the document. + */ +export async function authorizeDocumentCreate( + ctx: APIContext, + { collectionId, parentDocumentId }: CreateLocation +): Promise<{ + collection?: Collection | null; + parentDocument?: Document | null; +}> { + const { user } = ctx.state.auth; + const { transaction } = ctx.state; + + if (parentDocumentId) { + const parentDocument = await Document.findByPk(parentDocumentId, { + userId: user.id, + transaction, + }); + const collection = parentDocument?.collectionId + ? await Collection.findByPk(parentDocument.collectionId, { + userId: user.id, + transaction, + }) + : undefined; + authorize(user, "createChildDocument", parentDocument, { collection }); + return { collection, parentDocument }; + } + + if (collectionId) { + const collection = await Collection.findByPk(collectionId, { + userId: user.id, + transaction, + }); + authorize(user, "createDocument", collection); + return { collection }; + } + + authorize(user, "createDocument", user.team); + return {}; +} + +/** + * Authorizes publishing a document into a collection and resolves the target + * collection. Shared by the documents.update API route and the MCP + * update_document tool. Publishing places a document into a collection, so it + * requires create permission on the destination — separate from the update + * permission that governs editing a draft's content. + * + * @param ctx the API context containing the acting user. + * @param document the document being published. + * @param collectionId the destination collection, required when publishing a draft that has none. + * @returns the resolved destination collection. + * @throws AuthorizationError when the user may not publish into the collection. + */ +export async function authorizeDocumentPublish( + ctx: APIContext, + document: Document, + collectionId?: string | null +): Promise<Collection | null | undefined> { + const { user } = ctx.state.auth; + const { transaction } = ctx.state; + let collection = document.collection; + + if (document.isDraft) { + authorize(user, "publish", document); + } + + if (!document.collectionId) { + assertPresent( + collectionId, + "collectionId is required to publish a draft without collection" + ); + collection = await Collection.findByPk(collectionId!, { + userId: user.id, + transaction, + }); + } + + if (document.parentDocumentId) { + const parentDocument = await Document.findByPk(document.parentDocumentId, { + userId: user.id, + transaction, + }); + authorize(user, "createChildDocument", parentDocument, { collection }); + } else { + authorize(user, "createDocument", collection); + } + + return collection; +} + export default async function documentCreator( ctx: APIContext, { diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index a4d6e8eb08..b562173d38 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -21,7 +21,10 @@ import { import { subtractDate } from "@shared/utils/date"; import slugify from "@shared/utils/slugify"; import { Day } from "@shared/utils/time"; -import documentCreator from "@server/commands/documentCreator"; +import documentCreator, { + authorizeDocumentCreate, + authorizeDocumentPublish, +} from "@server/commands/documentCreator"; import documentDuplicator from "@server/commands/documentDuplicator"; import documentLoader from "@server/commands/documentLoader"; import documentMover from "@server/commands/documentMover"; @@ -1324,33 +1327,7 @@ router.post( } if (publish) { - if (document.isDraft) { - authorize(user, "publish", document); - } - - if (!document.collectionId) { - assertPresent( - collectionId, - "collectionId is required to publish a draft without collection" - ); - collection = await Collection.findByPk(collectionId!, { - userId: user.id, - transaction, - }); - } - - if (document.parentDocumentId) { - const parentDocument = await Document.findByPk( - document.parentDocumentId, - { - userId: user.id, - transaction, - } - ); - authorize(user, "createChildDocument", parentDocument, { collection }); - } else { - authorize(user, "createDocument", collection); - } + await authorizeDocumentPublish(ctx, document, collectionId); } document = await documentUpdater(ctx, { @@ -1704,31 +1681,10 @@ router.post( const { transaction } = ctx.state; const { user } = ctx.state.auth; - let collection; - - let parentDocument; - - if (parentDocumentId) { - parentDocument = await Document.findByPk(parentDocumentId, { - userId: user.id, - }); - - if (parentDocument?.collectionId) { - collection = await Collection.findByPk(parentDocument.collectionId, { - userId: user.id, - }); - } - - authorize(user, "createChildDocument", parentDocument, { - collection, - }); - } else if (collectionId) { - collection = await Collection.findByPk(collectionId, { - userId: user.id, - transaction, - }); - authorize(user, "createDocument", collection); - } + const { collection } = await authorizeDocumentCreate(ctx, { + collectionId, + parentDocumentId, + }); let template: Template | null | undefined; diff --git a/server/tools/documents.test.ts b/server/tools/documents.test.ts index bdd0e3f74e..5df4294cc4 100644 --- a/server/tools/documents.test.ts +++ b/server/tools/documents.test.ts @@ -1,10 +1,12 @@ import { CollectionPermission, Scope } from "@shared/types"; import { buildUser, + buildViewer, buildCollection, buildDocument, buildOAuthAuthentication, } from "@server/test/factories"; +import { Document } from "@server/models"; import { getTestServer } from "@server/test/support"; import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; @@ -186,6 +188,61 @@ describe("create_document", () => { expect(data.document.title).toEqual("Child Document"); expect(data.document.parentDocumentId).toEqual(parent.id); }); + + it("does not allow a viewer to create a draft", async () => { + const user = await buildViewer(); + const auth = await buildOAuthAuthentication({ + user, + scope: [Scope.Read, Scope.Write, Scope.Create], + }); + + const res = await callMcpTool( + server, + auth.accessToken!, + "create_document", + { + title: "Viewer Draft", + text: "Should not be created", + publish: false, + } + ); + + expect(res?.result?.isError).toBe(true); + + const documents = await Document.unscoped().findAll({ + where: { createdById: user.id }, + }); + expect(documents.length).toEqual(0); + }); + + it("does not allow a viewer to create a document in a collection", async () => { + const user = await buildViewer(); + const collection = await buildCollection({ + teamId: user.teamId, + permission: CollectionPermission.ReadWrite, + }); + const auth = await buildOAuthAuthentication({ + user, + scope: [Scope.Read, Scope.Write, Scope.Create], + }); + + const res = await callMcpTool( + server, + auth.accessToken!, + "create_document", + { + title: "Viewer Document", + collectionId: collection.id, + } + ); + + expect(res?.result?.isError).toBe(true); + + const documents = await Document.unscoped().findAll({ + where: { createdById: user.id }, + }); + expect(documents.length).toEqual(0); + }); }); describe("update_document", () => { @@ -259,6 +316,41 @@ describe("update_document", () => { expect(res?.result?.isError).toBe(true); }); + + it("does not allow a viewer to publish their draft into a restricted collection", async () => { + const viewer = await buildViewer(); + const collection = await buildCollection({ + teamId: viewer.teamId, + permission: CollectionPermission.ReadWrite, + }); + const draft = await buildDocument({ + teamId: viewer.teamId, + userId: viewer.id, + collectionId: null, + publishedAt: null, + }); + const auth = await buildOAuthAuthentication({ + user: viewer, + scope: [Scope.Read, Scope.Write, Scope.Create], + }); + + const res = await callMcpTool( + server, + auth.accessToken!, + "update_document", + { + id: draft.id, + publish: true, + collectionId: collection.id, + } + ); + + expect(res?.result?.isError).toBe(true); + + const reloaded = await Document.unscoped().findByPk(draft.id); + expect(reloaded?.collectionId).toBeNull(); + expect(reloaded?.publishedAt).toBeNull(); + }); }); describe("move_document", () => { diff --git a/server/tools/documents.ts b/server/tools/documents.ts index e1f27eb544..3e09d64e1d 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -1,7 +1,10 @@ import { z } from "zod"; import { type McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import documentCreator from "@server/commands/documentCreator"; +import documentCreator, { + authorizeDocumentCreate, + authorizeDocumentPublish, +} from "@server/commands/documentCreator"; import documentMover from "@server/commands/documentMover"; import documentUpdater from "@server/commands/documentUpdater"; import { Op } from "sequelize"; @@ -339,30 +342,11 @@ export function documentTools(server: McpServer, scopes: string[]) { const { collectionId, parentDocumentId } = input; const ctx = buildAPIContext(context); const { user } = ctx.state.auth; - let collection; - let parentDocument; - if (parentDocumentId) { - parentDocument = await Document.findByPk(parentDocumentId, { - userId: user.id, - }); - - if (parentDocument?.collectionId) { - collection = await Collection.findByPk( - parentDocument.collectionId, - { userId: user.id } - ); - } - - authorize(user, "createChildDocument", parentDocument, { - collection, - }); - } else if (collectionId) { - collection = await Collection.findByPk(collectionId, { - userId: user.id, - }); - authorize(user, "createDocument", collection); - } + const { collection } = await authorizeDocumentCreate(ctx, { + collectionId, + parentDocumentId, + }); const document = await documentCreator(ctx, { title: input.title, @@ -619,6 +603,10 @@ export function documentTools(server: McpServer, scopes: string[]) { } else { authorize(user, "update", document); + if (input.publish) { + await authorizeDocumentPublish(ctx, document, input.collectionId); + } + updated = await documentUpdater(ctx, { document, ...input, From 5aff60e28bd800cb9497d62ba547d06086c1266f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 12:15:24 -0400 Subject: [PATCH 134/286] chore(deps): bump axios from 1.15.2 to 1.16.1 (#12523) Bumps [axios](https://github.com/axios/axios) from 1.15.2 to 1.16.1. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v1.15.2...v1.16.1) --- updated-dependencies: - dependency-name: axios dependency-version: 1.16.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6faebf0c8d..4b10c0f78d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8032,13 +8032,14 @@ __metadata: linkType: hard "axios@npm:^1.12.2": - version: 1.15.2 - resolution: "axios@npm:1.15.2" + version: 1.16.1 + resolution: "axios@npm:1.16.1" dependencies: - follow-redirects: "npm:^1.15.11" + follow-redirects: "npm:^1.16.0" form-data: "npm:^4.0.5" + https-proxy-agent: "npm:^5.0.1" proxy-from-env: "npm:^2.1.0" - checksum: 10c0/4eeae0feeaa7fdc1ef24f81f8b378fdadedf4aebdd6bf224484675160f8744cf17b9b0d1c215279979940f7e8ce463beffa2f713099612e428eac238515c81d5 + checksum: 10c0/2f77e37e6552bbff8a772d058fb09500198e9188c6b20dc799d82dbe12a8cb506f6eed4e4e62a9ba612a35cbab496faa26d68f9bff14a53af6d15c3e136391a7 languageName: node linkType: hard @@ -11136,7 +11137,7 @@ __metadata: languageName: node linkType: hard -"follow-redirects@npm:^1.15.11": +"follow-redirects@npm:^1.16.0": version: 1.16.0 resolution: "follow-redirects@npm:1.16.0" peerDependenciesMeta: From e044014cea958962fc9f5e2b8f6ff1d8cadd676f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 17:44:29 -0400 Subject: [PATCH 135/286] fix: Disable webhooks when deleting associated user (#12524) * fix: Disable webhooks created by deleted users * Delete -> disable --- app/components/UserDialogs.tsx | 2 +- .../processors/UserDeletedProcessor.test.ts | 24 +++++++++++++++++-- .../queues/processors/UserDeletedProcessor.ts | 11 +++++++++ shared/i18n/locales/en_US/translation.json | 2 +- 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/app/components/UserDialogs.tsx b/app/components/UserDialogs.tsx index 1d568bd654..db6ec7fd07 100644 --- a/app/components/UserDialogs.tsx +++ b/app/components/UserDialogs.tsx @@ -71,7 +71,7 @@ export function UserDeleteDialog({ user, onSubmit }: Props) { danger > {t( - "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. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", { userName: user.name, } diff --git a/server/queues/processors/UserDeletedProcessor.test.ts b/server/queues/processors/UserDeletedProcessor.test.ts index 8c1267ac4f..8a6cf74d61 100644 --- a/server/queues/processors/UserDeletedProcessor.test.ts +++ b/server/queues/processors/UserDeletedProcessor.test.ts @@ -1,11 +1,11 @@ import UserAuthentication from "@server/models/UserAuthentication"; -import { buildUser } from "@server/test/factories"; +import { buildUser, buildWebhookSubscription } from "@server/test/factories"; import UserDeletedProcessor from "./UserDeletedProcessor"; const ip = "127.0.0.1"; describe("UserDeletedProcessor", () => { - test("should remove relationships", async () => { + it("should remove relationships", async () => { const user = await buildUser(); expect( await UserAuthentication.count({ @@ -32,4 +32,24 @@ describe("UserDeletedProcessor", () => { }) ).toBe(0); }); + + it("should disable webhook subscriptions created by the user", async () => { + const user = await buildUser(); + const webhook = await buildWebhookSubscription({ + teamId: user.teamId, + createdById: user.id, + }); + + const processor = new UserDeletedProcessor(); + await processor.perform({ + name: "users.delete", + userId: user.id, + actorId: user.id, + teamId: user.teamId, + ip, + }); + + await webhook.reload(); + expect(webhook.enabled).toEqual(false); + }); }); diff --git a/server/queues/processors/UserDeletedProcessor.ts b/server/queues/processors/UserDeletedProcessor.ts index e0730a5437..31ea63a61c 100644 --- a/server/queues/processors/UserDeletedProcessor.ts +++ b/server/queues/processors/UserDeletedProcessor.ts @@ -6,6 +6,7 @@ import { Subscription, UserAuthentication, UserMembership, + WebhookSubscription, } from "@server/models"; import { sequelize } from "@server/storage/database"; import type { Event as TEvent, UserEvent } from "@server/types"; @@ -59,6 +60,16 @@ export default class UserDeletedProcessor extends BaseProcessor { }, transaction, }); + await WebhookSubscription.update( + { enabled: false }, + { + where: { + createdById: event.userId, + enabled: true, + }, + transaction, + } + ); }); } } diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 09e6ba9493..cc5585f8e1 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -542,7 +542,7 @@ "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 permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — 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", From 370934bb0e5ad09a68cd9f60247c2aba96fe8bbb Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 18:28:10 -0400 Subject: [PATCH 136/286] fix: Prevent crash inserting files when schema has no attachment node (#12526) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- shared/editor/commands/insertFiles.ts | 68 +++++++++++++++++---------- 1 file changed, 42 insertions(+), 26 deletions(-) diff --git a/shared/editor/commands/insertFiles.ts b/shared/editor/commands/insertFiles.ts index df335cf3b4..8e3641dac4 100644 --- a/shared/editor/commands/insertFiles.ts +++ b/shared/editor/commands/insertFiles.ts @@ -71,32 +71,48 @@ const insertFiles = async function ( // we'll use this to track of how many files have succeeded or failed let complete = 0; - const filesToUpload = await Promise.all( - files.map(async (file) => { - const isImage = - FileHelper.isImage(file.type) && - !options.isAttachment && - !!schema.nodes.image; - const isVideo = - FileHelper.isVideo(file.type) && - !options.isAttachment && - !!schema.nodes.video; - const getDimensions = isImage - ? (f: File) => FileHelper.getImageDimensions(f) - : isVideo - ? (f: File) => FileHelper.getVideoDimensions(f) - : undefined; + const filesToUpload = ( + await Promise.all( + files.map(async (file) => { + const isImage = + FileHelper.isImage(file.type) && + !options.isAttachment && + !!schema.nodes.image; + const isVideo = + FileHelper.isVideo(file.type) && + !options.isAttachment && + !!schema.nodes.video; - return { - id: uuidv4(), - dimensions: await getDimensions?.(file), - source: await FileHelper.getImageSourceAttr(file), - isImage, - isVideo, - file, - }; - }) - ); + // a file that cannot be inserted as an image or video falls back to an + // attachment node – if the schema in use has none then it cannot be + // represented at all and should be skipped. + if (!isImage && !isVideo && !schema.nodes.attachment) { + return undefined; + } + + const getDimensions = isImage + ? (f: File) => FileHelper.getImageDimensions(f) + : isVideo + ? (f: File) => FileHelper.getVideoDimensions(f) + : undefined; + + return { + id: uuidv4(), + dimensions: await getDimensions?.(file), + source: await FileHelper.getImageSourceAttr(file), + isImage, + isVideo, + file, + }; + }) + ) + ).filter((upload) => upload !== undefined); + + // none of the dropped files can be represented in this schema, nothing to do + if (filesToUpload.length === 0) { + onFileUploadStop?.(); + return; + } // the user might have dropped multiple files at once, we need to loop for (const upload of filesToUpload) { @@ -234,7 +250,7 @@ const insertFiles = async function ( complete++; // once everything is done, let the user know - if (complete === files.length && onFileUploadStop) { + if (complete === filesToUpload.length && onFileUploadStop) { onFileUploadStop(); } }); From 03fe74710c4f91a301afb869748f8adfb4915184 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 20:04:11 -0400 Subject: [PATCH 137/286] fix: Undo/redo events duplicated (#12525) * fix: Undo/redo events duplicated * fix: Guard history use Prevent cross polination of editors * Remove unused check --- app/editor/components/ToolbarMenu.tsx | 5 ++++ app/editor/extensions/Multiplayer.ts | 10 ++++++++ app/scenes/Document/components/Document.tsx | 12 ++++++++++ .../Document/components/MultiplayerEditor.tsx | 7 +++++- shared/editor/extensions/History.ts | 2 -- shared/editor/extensions/InputRuleUndo.ts | 15 ++++++++++++ shared/editor/lib/closeHistory.ts | 24 +++++++++++++++++++ shared/editor/nodes/index.ts | 2 ++ 8 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 shared/editor/extensions/InputRuleUndo.ts create mode 100644 shared/editor/lib/closeHistory.ts diff --git a/app/editor/components/ToolbarMenu.tsx b/app/editor/components/ToolbarMenu.tsx index be1d6e4f69..6e94ece220 100644 --- a/app/editor/components/ToolbarMenu.tsx +++ b/app/editor/components/ToolbarMenu.tsx @@ -2,6 +2,7 @@ import { useCallback, useMemo, useState } from "react"; import styled from "styled-components"; import breakpoint from "styled-components-breakpoint"; import * as Toolbar from "@radix-ui/react-toolbar"; +import { closeHistory } from "@shared/editor/lib/closeHistory"; import type { MenuItem } from "@shared/editor/types"; import { hideScrollbars, s } from "@shared/styles"; import { TooltipProvider } from "~/components/TooltipContext"; @@ -54,11 +55,13 @@ function ToolbarDropdown(props: ToolbarDropdownProps) { } if (commands[menuItem.name]) { + closeHistory(view); commands[menuItem.name]( typeof menuItem.attrs === "function" ? menuItem.attrs(state) : menuItem.attrs ); + closeHistory(view); } else if (menuItem.onClick) { menuItem.onClick(); } @@ -158,9 +161,11 @@ function ToolbarMenu(props: Props) { } // otherwise, run the associated editor command + closeHistory(view); commands[item.name]( typeof item.attrs === "function" ? item.attrs(state) : item.attrs ); + closeHistory(view); }; return ( diff --git a/app/editor/extensions/Multiplayer.ts b/app/editor/extensions/Multiplayer.ts index 88aa66ea3c..4aa2000bfe 100644 --- a/app/editor/extensions/Multiplayer.ts +++ b/app/editor/extensions/Multiplayer.ts @@ -7,6 +7,8 @@ import { yUndoPlugin, undo, redo, + undoCommand, + redoCommand, } from "y-prosemirror"; import * as Y from "yjs"; import Extension from "@shared/editor/lib/Extension"; @@ -136,4 +138,12 @@ export default class Multiplayer extends Extension<MultiplayerOptions> { redo: () => redo, }; } + + keys() { + return { + "Mod-z": undoCommand, + "Mod-y": redoCommand, + "Shift-Mod-z": redoCommand, + }; + } } diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index d3d79b9a36..2d20d01114 100644 --- a/app/scenes/Document/components/Document.tsx +++ b/app/scenes/Document/components/Document.tsx @@ -27,6 +27,7 @@ import type { Editor as TEditor } from "~/editor"; import type { Properties } from "~/types"; import { useLocationSidebarContext } from "~/hooks/useLocationSidebarContext"; import useStores from "~/hooks/useStores"; +import isTextInput from "~/utils/isTextInput"; import { client } from "~/utils/ApiClient"; import { emojiToUrl } from "~/utils/emoji"; import { documentHistoryPath, documentEditPath } from "~/utils/routeHelpers"; @@ -151,6 +152,17 @@ function DocumentScene({ const onUndoRedo = useCallback( (event: KeyboardEvent) => { if (isModKey(event)) { + const target = + event.target instanceof Element ? event.target : undefined; + + // The editor handles undo/redo through its own keymap when focused + if ( + editorRef.current?.view?.hasFocus() || + (target && (isTextInput(target) || !!target.closest(".ProseMirror"))) + ) { + return; + } + event.preventDefault(); if (event.shiftKey) { diff --git a/app/scenes/Document/components/MultiplayerEditor.tsx b/app/scenes/Document/components/MultiplayerEditor.tsx index b9aa05e7e7..2f630f55b0 100644 --- a/app/scenes/Document/components/MultiplayerEditor.tsx +++ b/app/scenes/Document/components/MultiplayerEditor.tsx @@ -15,6 +15,7 @@ import { toast } from "sonner"; import { IndexeddbPersistence } from "y-indexeddb"; import * as Y from "yjs"; import { EditorUpdateError } from "@shared/collaboration/CloseEvents"; +import History from "@shared/editor/extensions/History"; import EDITOR_VERSION from "@shared/editor/version"; import { supportsPassiveListener } from "@shared/utils/browser"; import type { Props as EditorProps } from "~/components/Editor"; @@ -256,8 +257,12 @@ function MultiplayerEditor( return props.extensions; } + // The Yjs undo manager (added by the Multiplayer extension below) is the + // sole source of undo/redo history when collaborating. return [ - ...(props.extensions || []), + ...(props.extensions || []).filter( + (extension) => extension !== History && !(extension instanceof History) + ), new MultiplayerExtension({ user, provider: remoteProvider, diff --git a/shared/editor/extensions/History.ts b/shared/editor/extensions/History.ts index 9ac82da7e6..4dae709ad1 100644 --- a/shared/editor/extensions/History.ts +++ b/shared/editor/extensions/History.ts @@ -1,5 +1,4 @@ import { history, undo, redo } from "prosemirror-history"; -import { undoInputRule } from "prosemirror-inputrules"; import type { Command } from "prosemirror-state"; import type { CommandFactory } from "../lib/Extension"; import Extension from "../lib/Extension"; @@ -21,7 +20,6 @@ export default class History extends Extension { "Mod-z": () => this.editor.commands.undo(), "Mod-y": () => this.editor.commands.redo(), "Shift-Mod-z": () => this.editor.commands.redo(), - Backspace: undoInputRule, }; } diff --git a/shared/editor/extensions/InputRuleUndo.ts b/shared/editor/extensions/InputRuleUndo.ts new file mode 100644 index 0000000000..ed3c62b170 --- /dev/null +++ b/shared/editor/extensions/InputRuleUndo.ts @@ -0,0 +1,15 @@ +import { undoInputRule } from "prosemirror-inputrules"; +import type { Command } from "prosemirror-state"; +import Extension from "../lib/Extension"; + +export default class InputRuleUndo extends Extension { + get name() { + return "inputRuleUndo"; + } + + keys(): Record<string, Command> { + return { + Backspace: undoInputRule, + }; + } +} diff --git a/shared/editor/lib/closeHistory.ts b/shared/editor/lib/closeHistory.ts new file mode 100644 index 0000000000..14a6f4afa1 --- /dev/null +++ b/shared/editor/lib/closeHistory.ts @@ -0,0 +1,24 @@ +import { + closeHistory as pmCloseHistory, + redoDepth, + undoDepth, +} from "prosemirror-history"; +import type { EditorView } from "prosemirror-view"; +import { yUndoPluginKey } from "y-prosemirror"; + +/** + * Closes the current history item so that subsequent changes start a new undo + * group. Dispatches a closeHistory transaction when prosemirror-history is + * mounted and, when multiplayer is enabled, stops capturing on the Yjs undo + * manager. + * + * @param view The editor view. + */ +export function closeHistory(view: EditorView): void { + if (undoDepth(view.state) > 0 || redoDepth(view.state) > 0) { + view.dispatch(pmCloseHistory(view.state.tr)); + } + + const yUndoState = yUndoPluginKey.getState(view.state); + yUndoState?.undoManager?.stopCapturing(); +} diff --git a/shared/editor/nodes/index.ts b/shared/editor/nodes/index.ts index ff3d3be55b..cb5cb4d3ef 100644 --- a/shared/editor/nodes/index.ts +++ b/shared/editor/nodes/index.ts @@ -2,6 +2,7 @@ import DateTime from "../extensions/DateTime"; import DeleteNearAtom from "../extensions/DeleteNearAtom"; import HexColorPreview from "../extensions/HexColorPreview"; import History from "../extensions/History"; +import InputRuleUndo from "../extensions/InputRuleUndo"; import MaxLength from "../extensions/MaxLength"; import TrailingNode from "../extensions/TrailingNode"; import type { AnyExtensionClass } from "../lib/types"; @@ -53,6 +54,7 @@ type Nodes = AnyExtensionClass[]; */ export const inlineExtensions: Nodes = [ Doc, + InputRuleUndo, Paragraph, Emoji, Text, From 60bf47ede0d98f96aa7e786e9919a0576ede3486 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 20:47:18 -0400 Subject: [PATCH 138/286] fix: Prevent foreign key violation when permanently deleting a team (#12527) The attachment cleanup loop used findAllInBatches, which advances an OFFSET each iteration. Because the callback deletes each batch, the remaining rows shift backwards and the advancing offset skips over them, leaving attachments that still reference the team. team.destroy() then failed with attachments_teamId_fkey. Page from offset 0 until no attachments remain, and remove the now redundant per-user attachment delete so the loop is the single authoritative cleanup. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/commands/teamPermanentDeleter.test.ts | 41 ++++++++++++++++++++ server/commands/teamPermanentDeleter.ts | 36 ++++++++--------- 2 files changed, 57 insertions(+), 20 deletions(-) diff --git a/server/commands/teamPermanentDeleter.test.ts b/server/commands/teamPermanentDeleter.test.ts index a604ecda9b..b1b5730427 100644 --- a/server/commands/teamPermanentDeleter.test.ts +++ b/server/commands/teamPermanentDeleter.test.ts @@ -139,6 +139,47 @@ describe("teamPermanentDeleter", () => { ).toEqual(0); }); + it("should destroy attachments spanning multiple batches", async () => { + const team = await buildTeam({ + deletedAt: subDays(new Date(), 90), + }); + const user = await buildUser({ teamId: team.id }); + const document = await buildDocument({ + teamId: team.id, + userId: user.id, + }); + + // More than a single batch (batchLimit is 100) to ensure no attachments are + // skipped while deleting, which would otherwise leave rows referencing the + // team and cause a foreign key violation when the team is destroyed. + await Promise.all( + Array.from({ length: 150 }, () => + buildAttachment({ + teamId: team.id, + userId: user.id, + documentId: document.id, + }) + ) + ); + + await teamPermanentDeleter(team); + + expect( + await Attachment.count({ + where: { + teamId: team.id, + }, + }) + ).toEqual(0); + expect( + await Team.count({ + where: { + id: team.id, + }, + }) + ).toEqual(0); + }); + it("should destroy imports", async () => { const team = await buildTeam({ deletedAt: subDays(new Date(), 90), diff --git a/server/commands/teamPermanentDeleter.ts b/server/commands/teamPermanentDeleter.ts index f3c4335eb7..2011e5627d 100644 --- a/server/commands/teamPermanentDeleter.ts +++ b/server/commands/teamPermanentDeleter.ts @@ -40,21 +40,25 @@ async function teamPermanentDeleter(team: Team) { ); const teamId = team.id; - await Attachment.findAllInBatches<Attachment>( - { + // Attachments are destroyed as individual instances (rather than a bulk + // delete) so the BeforeDestroy hook runs and removes the associated file from + // storage. We cannot use findAllInBatches with an advancing offset here – + // deleting a batch shifts the remaining rows backwards, so advancing the + // offset would skip records and leave attachments that still reference the + // team, causing a foreign key violation when the team itself is destroyed. + // Instead we repeatedly fetch and delete the first batch until none remain. + let attachments: Attachment[]; + do { + attachments = await Attachment.findAll<Attachment>({ where: { teamId, }, - batchLimit: 100, - }, - async (attachments, options) => { + limit: 100, + }); + + if (attachments.length > 0) { await sequelize.transaction(async (transaction) => { - Logger.info( - "commands", - `Deleting attachments ${options.offset} – ${ - (options.offset || 0) + (options?.limit || 0) - }…` - ); + Logger.info("commands", `Deleting ${attachments.length} attachments…`); await Promise.all( attachments.map((attachment) => attachment.destroy({ @@ -64,7 +68,7 @@ async function teamPermanentDeleter(team: Team) { ); }); } - ); + } while (attachments.length > 0); // Destroy user-relation models await User.findAllInBatches<User>( @@ -85,14 +89,6 @@ async function teamPermanentDeleter(team: Team) { force: true, transaction, }); - await Attachment.destroy({ - where: { - teamId, - userId: userIds, - }, - force: true, - transaction, - }); await ApiKey.destroy({ where: { userId: userIds, From c91272f820560c3776e69d4a9194da529af57045 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 21:53:31 -0400 Subject: [PATCH 139/286] fix: Always use HTML output from Claude closes #12520 --- app/editor/extensions/PasteHandler.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/editor/extensions/PasteHandler.tsx b/app/editor/extensions/PasteHandler.tsx index 1adf6da4df..ce6ea658ce 100644 --- a/app/editor/extensions/PasteHandler.tsx +++ b/app/editor/extensions/PasteHandler.tsx @@ -108,6 +108,12 @@ export default class PasteHandler extends Extension { return false; } + // If the HTML on the clipboard is from Claude then the best + // compatability is to just use the HTML parser. + if (html?.includes("font-claude-response-body")) { + return false; + } + // Check if the clipboard contents can be parsed as a single url. // Trim first so surrounding whitespace from the clipboard (e.g. a // trailing newline appended by the source) doesn't prevent URL From a37bb1395632f0a260f1ac42ff3483f7cdf3806d Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 22:46:43 -0400 Subject: [PATCH 140/286] perf: Avoid redundant import lookup when presenting documents (#12529) The FileOperation import association was fetched for every non-public document but only used when sourceMetadata is present. Move the lookup inside that branch to eliminate an N+1 query for documents that are not imports, benefiting every endpoint that presents documents. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/presenters/document.ts | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/server/presenters/document.ts b/server/presenters/document.ts index 9ea9f1bafa..7daf3e63e9 100644 --- a/server/presenters/document.ts +++ b/server/presenters/document.ts @@ -103,8 +103,6 @@ async function presentDocument( } if (!options.isPublic) { - const source = document.import ?? (await document.$get("import")); - res.tasks = document.tasks; res.isCollectionDeleted = await document.isCollectionDeleted(); res.collectionId = document.collectionId; @@ -118,15 +116,16 @@ async function presentDocument( if (options.includeCommentCount) { res.commentCount = await document.commentCount; } - res.sourceMetadata = document.sourceMetadata - ? { - importedAt: source?.createdAt ?? document.createdAt, - importType: source?.format, - createdByName: document.sourceMetadata.createdByName, - fileName: document.sourceMetadata?.fileName, - originalDocumentId: document.sourceMetadata?.originalDocumentId, - } - : undefined; + if (document.sourceMetadata) { + const source = document.import ?? (await document.$get("import")); + res.sourceMetadata = { + importedAt: source?.createdAt ?? document.createdAt, + importType: source?.format, + createdByName: document.sourceMetadata.createdByName, + fileName: document.sourceMetadata?.fileName, + originalDocumentId: document.sourceMetadata?.originalDocumentId, + }; + } } return res; From 70b6476afaf1653192d131ec609efa5a7a3c157a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 22:46:59 -0400 Subject: [PATCH 141/286] Remove resize grid-snap (#12528) * fix: Remove unused grid snapping from element resizing Horizontal resizing snapped widths to a 5% grid, which is no longer desired. Replace the only remaining use of the gridSnap prop (the minimum-width clamp) with a named constant and drop the prop entirely. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: Remove resize lag by disabling size transition while dragging The width/height CSS transition on resizable elements existed to smooth the discrete jumps from grid snapping. With pixel-by-pixel resizing the element perpetually animates toward a target ~150ms in the future, so it visibly trails the cursor. Disable the transition while actively dragging and restore it afterwards so snap-back and collaborative size changes still animate. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: Constrain image resizing to editor edge instead of snapping to natural size When dragging an element past the editor bounds, the full-width sentinel forced the width to the natural size. For images narrower than the editor this snapped them back to their (smaller) natural width at the boundary. Only use the natural-width sentinel when the image is genuinely wider than the editor; otherwise constrain to the editor edge. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * PR feedback --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- shared/editor/components/Embed.tsx | 127 +++++++++--------- shared/editor/components/Image.tsx | 10 +- shared/editor/components/PDF.tsx | 5 +- shared/editor/components/Video.tsx | 8 +- .../editor/components/hooks/useDragResize.ts | 24 ++-- 5 files changed, 87 insertions(+), 87 deletions(-) diff --git a/shared/editor/components/Embed.tsx b/shared/editor/components/Embed.tsx index 60060cc722..81a46665b2 100644 --- a/shared/editor/components/Embed.tsx +++ b/shared/editor/components/Embed.tsx @@ -16,7 +16,7 @@ type Props = ComponentProps & { }; const Embed = (props: Props) => { - const ref = React.useRef<HTMLIFrameElement>(null); + const ref = React.useRef<HTMLDivElement>(null); const { node, isEditable, embedsDisabled, onChangeSize } = props; const naturalWidth = 0; const naturalHeight = 400; @@ -28,7 +28,6 @@ const Embed = (props: Props) => { height: node.attrs.height ?? naturalHeight, naturalWidth, naturalHeight, - gridSnap: 5, onChangeSize, ref, } @@ -51,8 +50,8 @@ const Embed = (props: Props) => { }; return ( - <FrameWrapper ref={ref}> - <InnerEmbed ref={ref} style={style} {...props} /> + <FrameWrapper ref={ref} $dragging={!!dragging}> + <InnerEmbed style={style} {...props} /> {isEditable && isResizable && ( <> <ResizeBottom @@ -65,69 +64,69 @@ const Embed = (props: Props) => { ); }; -const InnerEmbed = React.forwardRef<HTMLIFrameElement, Props>( - function InnerEmbed_( - { isEditable, isSelected, node, embeds, embedsDisabled, style }, - ref - ) { - const cache = React.useMemo( - () => getMatchingEmbed(embeds, node.attrs.href), - [embeds, node.attrs.href] - ); - - if (!cache) { - return null; - } - - const { embed, matches } = cache; - - if (embedsDisabled) { - return ( - <DisabledEmbed - href={node.attrs.href} - embed={embed} - isEditable={isEditable} - isSelected={isSelected} - /> - ); - } - - if (embed.transformMatch) { - const src = embed.transformMatch(matches); - return ( - <Frame - ref={ref} - src={src} - style={style} - isSelected={isSelected} - canonicalUrl={embed.hideToolbar ? undefined : node.attrs.href} - title={embed.title} - referrerPolicy="strict-origin-when-cross-origin" - border - /> - ); - } - - if ("component" in embed) { - return ( - // @ts-expect-error Component type - <embed.component - ref={ref} - attrs={node.attrs} - style={style} - matches={matches} - isEditable={isEditable} - isSelected={isSelected} - embed={embed} - /> - ); - } +function InnerEmbed({ + isEditable, + isSelected, + node, + embeds, + embedsDisabled, + style, +}: Props) { + const cache = React.useMemo( + () => getMatchingEmbed(embeds, node.attrs.href), + [embeds, node.attrs.href] + ); + if (!cache) { return null; } -); -const FrameWrapper = styled.div` + const { embed, matches } = cache; + + if (embedsDisabled) { + return ( + <DisabledEmbed + href={node.attrs.href} + embed={embed} + isEditable={isEditable} + isSelected={isSelected} + /> + ); + } + + if (embed.transformMatch) { + const src = embed.transformMatch(matches); + return ( + <Frame + src={src} + style={style} + isSelected={isSelected} + canonicalUrl={embed.hideToolbar ? undefined : node.attrs.href} + title={embed.title} + referrerPolicy="strict-origin-when-cross-origin" + border + /> + ); + } + + if ("component" in embed) { + return ( + // @ts-expect-error Component type + <embed.component + attrs={node.attrs} + style={style} + matches={matches} + isEditable={isEditable} + isSelected={isSelected} + embed={embed} + /> + ); + } + + return null; +} + +const FrameWrapper = styled.div<{ $dragging: boolean }>` line-height: 0; position: relative; margin-left: auto; @@ -139,7 +138,7 @@ const FrameWrapper = styled.div` max-width: 100%; transition-property: width, max-height; - transition-duration: 150ms; + transition-duration: ${(props) => (props.$dragging ? "0ms" : "150ms")}; transition-timing-function: ease-in-out; &:hover { diff --git a/shared/editor/components/Image.tsx b/shared/editor/components/Image.tsx index ceab3a8b17..557e9008b8 100644 --- a/shared/editor/components/Image.tsx +++ b/shared/editor/components/Image.tsx @@ -50,7 +50,6 @@ const Image = (props: Props) => { height: node.attrs.height ?? naturalHeight, naturalWidth, naturalHeight, - gridSnap: 5, onChangeSize, ref, }); @@ -119,6 +118,7 @@ const Image = (props: Props) => { <div contentEditable={false} className={className} ref={ref}> <ImageWrapper isFullWidth={isFullWidth} + $dragging={!!dragging} className={ isSelected || dragging ? "image-wrapper ProseMirror-selectednode" @@ -319,20 +319,22 @@ const Button = styled.button` } `; -const ImageWrapper = styled.div<{ isFullWidth: boolean }>` +const ImageWrapper = styled.div<{ isFullWidth: boolean; $dragging: boolean }>` line-height: 0; position: relative; margin-left: auto; margin-right: auto; max-width: ${(props) => (props.isFullWidth ? "initial" : "100%")}; transition-property: width, height; - transition-duration: ${(props) => (props.isFullWidth ? "0ms" : "150ms")}; + transition-duration: ${(props) => + props.isFullWidth || props.$dragging ? "0ms" : "150ms"}; transition-timing-function: ease-in-out; overflow: hidden; img { transition-property: width, height; - transition-duration: ${(props) => (props.isFullWidth ? "0ms" : "150ms")}; + transition-duration: ${(props) => + props.isFullWidth || props.$dragging ? "0ms" : "150ms"}; transition-timing-function: ease-in-out; } diff --git a/shared/editor/components/PDF.tsx b/shared/editor/components/PDF.tsx index 9e1697c4f2..02c8fe1142 100644 --- a/shared/editor/components/PDF.tsx +++ b/shared/editor/components/PDF.tsx @@ -33,7 +33,6 @@ export default function PdfViewer(props: Props) { height: node.attrs.height, naturalWidth: 300, naturalHeight: 424, - gridSnap: 5, onChangeSize, ref, } @@ -145,7 +144,7 @@ const PDFWrapper = styled.div<{ $dragging: boolean }>` margin-right: auto; max-width: 100%; transition-property: width, height; - transition-duration: 120ms; + transition-duration: ${(props) => (props.$dragging ? "0ms" : "120ms")}; transition-timing-function: ease-in-out; overflow: hidden; will-change: ${(props) => (props.$dragging ? "width, height" : "auto")}; @@ -155,7 +154,7 @@ const PDFWrapper = styled.div<{ $dragging: boolean }>` embed { transition-property: width, height; - transition-duration: 120ms; + transition-duration: ${(props) => (props.$dragging ? "0ms" : "120ms")}; transition-timing-function: ease-in-out; will-change: ${(props) => (props.$dragging ? "width, height" : "auto")}; } diff --git a/shared/editor/components/Video.tsx b/shared/editor/components/Video.tsx index 2044409fa0..11ab7ec3b6 100644 --- a/shared/editor/components/Video.tsx +++ b/shared/editor/components/Video.tsx @@ -30,7 +30,6 @@ export default function Video(props: Props) { height: node.attrs.height ?? naturalHeight, naturalWidth, naturalHeight, - gridSnap: 5, onChangeSize, ref, }); @@ -54,6 +53,7 @@ export default function Video(props: Props) { <div contentEditable={false} ref={ref}> <VideoWrapper className={isSelected ? "ProseMirror-selectednode" : ""} + $dragging={!!dragging} style={style} > <StyledVideo @@ -97,7 +97,7 @@ const StyledVideo = styled.video` ${videoStyle} `; -const VideoWrapper = styled.div` +const VideoWrapper = styled.div<{ $dragging: boolean }>` line-height: 0; position: relative; margin-left: auto; @@ -110,12 +110,12 @@ const VideoWrapper = styled.div` overflow: hidden; transition-property: width, max-height; - transition-duration: 150ms; + transition-duration: ${(props) => (props.$dragging ? "0ms" : "150ms")}; transition-timing-function: ease-in-out; video { transition-property: width, max-height; - transition-duration: 150ms; + transition-duration: ${(props) => (props.$dragging ? "0ms" : "150ms")}; transition-timing-function: ease-in-out; } diff --git a/shared/editor/components/hooks/useDragResize.ts b/shared/editor/components/hooks/useDragResize.ts index ba8b6662c9..0937c5a605 100644 --- a/shared/editor/components/hooks/useDragResize.ts +++ b/shared/editor/components/hooks/useDragResize.ts @@ -5,6 +5,9 @@ type DragDirection = "left" | "right" | "bottom"; type SizeState = { width: number; height?: number }; +/** The minimum width an element can be resized to, as a fraction of the maximum width. */ +const minWidthRatio = 0.05; + /** * Hook for resizing an element by dragging its sides. */ @@ -36,8 +39,6 @@ type Params = { naturalWidth: number; /** The natural height of the element. */ naturalHeight: number; - /** The percentage of the grid to snap the element to. */ - gridSnap: 5; /** The pixel increment to snap vertical resizing to. */ gridHeightSnap?: number; /** The minimum height in pixels when resizing vertically. */ @@ -51,7 +52,6 @@ export default function useDragResize(props: Params): ReturnValue { onChangeSize, naturalWidth, naturalHeight, - gridSnap, gridHeightSnap, minHeight, ref, @@ -74,10 +74,10 @@ export default function useDragResize(props: Params): ReturnValue { const constrainWidth = React.useCallback( (width: number, max: number) => { - const minWidth = Math.min(naturalWidth, (gridSnap / 100) * max); + const minWidth = Math.min(naturalWidth, minWidthRatio * max); return Math.round(Math.min(max, Math.max(width, minWidth))); }, - [naturalWidth, gridSnap] + [naturalWidth] ); const handlePointerMove = React.useCallback( @@ -94,17 +94,18 @@ export default function useDragResize(props: Params): ReturnValue { } if (diffX && sizeAtDragStart.width) { - const gridWidth = (gridSnap / 100) * maxWidth; const newWidth = sizeAtDragStart.width + diffX * 2; - const widthOnGrid = Math.round(newWidth / gridWidth) * gridWidth; - const constrainedWidth = constrainWidth(widthOnGrid, maxWidth); + const constrainedWidth = constrainWidth(newWidth, maxWidth); const aspectRatio = naturalHeight / naturalWidth; setSize({ + // When dragged to or beyond the editor edge, store the natural width as a + // sentinel for "full width" so the element stays responsive. Only do this + // when the natural width actually exceeds the editor — otherwise constrain + // to the editor edge rather than snapping a smaller image back down to its + // natural size. width: - // If the natural width is the same as the constrained width, use the natural width - - // special case for images resized to the full width of the editor. - constrainedWidth === Math.min(newWidth, maxWidth) + newWidth >= maxWidth && naturalWidth >= maxWidth ? naturalWidth : constrainedWidth, height: naturalWidth @@ -129,7 +130,6 @@ export default function useDragResize(props: Params): ReturnValue { offset, sizeAtDragStart, maxWidth, - gridSnap, gridHeightSnap, naturalWidth, naturalHeight, From f6fbbcb1ad18427fae65e09af0d1016aad2046ef Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 29 May 2026 23:20:47 -0400 Subject: [PATCH 142/286] fix: Enter on image should ad (#12530) d new paragraph below --- shared/editor/nodes/Image.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index 34c755ec5a..7b5de8dec8 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -456,6 +456,7 @@ export default class Image extends SimpleImage { keys(): Record<string, Command> { return { + ...super.keys(), "Mod-Alt-m": addComment({ userId: this.options.userId }), }; } From 334b179048b813535657b32ddf4ee6547dd06d2b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 07:59:05 -0400 Subject: [PATCH 143/286] fix: Prevent Linear unfurl errors from bubbling to error tracking (#12532) Returning the unfurl promises without awaiting them inside the try block meant rejections (e.g. "Entity not found: Issue") escaped the catch and were reported to error tracking. Await them so they are caught and returned as a handled { error } result. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- plugins/linear/server/linear.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/linear/server/linear.ts b/plugins/linear/server/linear.ts index 63179dfca8..85a8376430 100644 --- a/plugins/linear/server/linear.ts +++ b/plugins/linear/server/linear.ts @@ -148,9 +148,9 @@ export class Linear { switch (resource.type) { case UnfurlResourceType.Issue: - return Linear.unfurlIssue(client, resource.id, actor); + return await Linear.unfurlIssue(client, resource.id, actor); case UnfurlResourceType.Project: - return Linear.unfurlProject(client, resource.id, actor); + return await Linear.unfurlProject(client, resource.id, actor); default: return; } From 5c991bbd5f73b51d46c2c937cf3c3b947aaeb4eb Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 08:06:50 -0400 Subject: [PATCH 144/286] fix: Toggle block within collapsed heading display (#12536) --- shared/editor/components/Styles.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 4638a18e21..b039244b3b 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -2651,6 +2651,12 @@ li > .${EditorStyleHelper.toggleBlock} { .${EditorStyleHelper.toggleBlock} { display: flex; + /* When a toggle block is inside a collapsed heading it receives the + folded-content decoration; ensure it stays hidden despite display: flex. */ + &.folded-content { + display: none; + } + &:focus-within { transition-delay: 0.1s; } From 553daed6068eb9b76b934d7472141f7f36cc5c33 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 08:20:46 -0400 Subject: [PATCH 145/286] fix: Mermaid diagrams mis-sized on high-DPI/RDP displays (#11782) (#12531) Re-frame the rendered SVG viewBox from a getBBox() measurement taken in the visible editor rather than the hidden render element, where the measurement is unreliable on high-DPI/RDP sessions. Bump the cache namespace so previously mis-sized diagrams are re-rendered. --- shared/editor/extensions/Mermaid.ts | 32 ++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/shared/editor/extensions/Mermaid.ts b/shared/editor/extensions/Mermaid.ts index 916e10d013..2ac9e8de0a 100644 --- a/shared/editor/extensions/Mermaid.ts +++ b/shared/editor/extensions/Mermaid.ts @@ -26,7 +26,9 @@ export type MermaidState = { editingId?: string; }; -const STORAGE_PREFIX = "mermaid:"; +// The `v2` namespace discards entries cached before the #11782 fix, so +// previously mis-sized diagrams are re-rendered instead of served from cache. +const STORAGE_PREFIX = "mermaid:v2:"; const MAX_STORAGE_ENTRIES = 20; class Cache { @@ -224,15 +226,35 @@ class MermaidRenderer { const { svg, bindFunctions } = await mermaid.render(tempId, text); - // Cache the rendered SVG so we won't need to calculate it again in the same session - if (text) { - Cache.set(cacheKey, svg); - } element.classList.remove("parse-error", "empty"); element.innerHTML = svg; // Allow the user to interact with the diagram bindFunctions?.(element); + + // Mermaid sizes the SVG from a getBBox() taken in the hidden render + // element, which is unreliable on high-DPI/RDP displays and leaves + // diagrams too large or too small (#11782). Re-frame from the now-visible + // SVG, where getBBox() reflects the real content. + const rendered = element.querySelector("svg"); + if (rendered instanceof SVGSVGElement) { + const box = rendered.getBBox(); + if (box.width > 0 && box.height > 0) { + const padding = 8; + const frameWidth = box.width + padding * 2; + rendered.setAttribute( + "viewBox", + `${box.x - padding} ${box.y - padding} ${frameWidth} ${box.height + padding * 2}` + ); + rendered.style.width = "100%"; + rendered.style.maxWidth = `${frameWidth}px`; + } + } + + // Cache the corrected SVG so we won't need to calculate it again this session + if (text) { + Cache.set(cacheKey, element.innerHTML); + } } catch (error) { const isEmpty = block.node.textContent.trim().length === 0; From cecc9ef576a8e1a4210f6934656d20e7b3acd2f0 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 16:48:19 -0400 Subject: [PATCH 146/286] perf: Lazy import Mammoth dep (#12538) --- server/utils/DocumentConverter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/utils/DocumentConverter.ts b/server/utils/DocumentConverter.ts index 3b4011078a..c58e9ca7a4 100644 --- a/server/utils/DocumentConverter.ts +++ b/server/utils/DocumentConverter.ts @@ -2,7 +2,6 @@ import { parse } from "@fast-csv/parse"; import { JSDOM } from "jsdom"; import { escapeRegExp } from "es-toolkit/compat"; import { simpleParser } from "mailparser"; -import mammoth from "mammoth"; import type { Node } from "prosemirror-model"; import { DOMParser as ProsemirrorDOMParser } from "prosemirror-model"; import yaml from "js-yaml"; @@ -259,6 +258,8 @@ export class DocumentConverter { */ private static async docxToHtml(content: Buffer | string): Promise<string> { if (content instanceof Buffer) { + // Loaded lazily to keep mammoth off the startup path — only docx imports need it. + const mammoth = (await import("mammoth")).default; const { value } = await traceFunction({ spanName: "convertToHtml" })( mammoth.convertToHtml )({ From b189c308e5e78a34828dd2fc18f8d2597047f5b0 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 16:48:31 -0400 Subject: [PATCH 147/286] perf: Avoid loading unused services (#12537) * fix: Run single process when only the worker service is enabled Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * perf: Improve memory consumption through lazy service loading --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/index.ts | 9 ++++++--- server/services/index.ts | 29 +++++++++++++++-------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/server/index.ts b/server/index.ts index 98132d0a28..549244b1a5 100644 --- a/server/index.ts +++ b/server/index.ts @@ -184,8 +184,8 @@ async function start(_id: number, disconnect: () => void) { } Logger.info("lifecycle", `Starting ${name} service`); - const init = services[name as keyof typeof services]; - await init(app, server as https.Server, env.SERVICES); + const { default: init } = await services[name as keyof typeof services](); + await Promise.resolve(init(app, server as https.Server, env.SERVICES)); } server.on("error", (err) => { @@ -258,8 +258,11 @@ const isWebProcess = env.SERVICES.includes("api") || env.SERVICES.includes("collaboration"); +const isWorkerProcess = + env.SERVICES.length === 1 && env.SERVICES.includes("worker"); + void throng({ master, worker: start, - count: isWebProcess ? webProcessCount : undefined, + count: isWorkerProcess ? 1 : isWebProcess ? webProcessCount : undefined, }); diff --git a/server/services/index.ts b/server/services/index.ts index 990e944ac4..62fccc88f3 100644 --- a/server/services/index.ts +++ b/server/services/index.ts @@ -1,15 +1,16 @@ -import admin from "./admin"; -import collaboration from "./collaboration"; -import cron from "./cron"; -import web from "./web"; -import websockets from "./websockets"; -import worker from "./worker"; - -export default { - websockets, - collaboration, - admin, - web, - worker, - cron, +/** + * Services are lazily imported so that only the modules for the services + * actually being run are loaded into memory. For example, a worker-only + * process does not need to import the web or collaboration services and their + * (often heavy) dependency trees. + */ +const services = { + websockets: () => import("./websockets"), + collaboration: () => import("./collaboration"), + admin: () => import("./admin"), + web: () => import("./web"), + worker: () => import("./worker"), + cron: () => import("./cron"), } as const; + +export default services; From d0ede882c68575a52a9a42962be5f1761d461ab1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 17:31:04 -0400 Subject: [PATCH 148/286] perf: More memory improvements (#12539) * perf: Lazy import mailparser, @fast-csv, and franc deps Moves heavy dependencies off the startup path into the narrow async code paths that actually use them, mirroring the mammoth lazy-import change: - mailparser: only needed for Confluence Word imports (confluenceToHtml) - @fast-csv/parse: only needed for CSV imports (csvToMarkdown) - franc / iso-639-3: only needed by the DocumentUpdateText worker task Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * perf: Lazy import jsdom dep jsdom is one of the heaviest server dependencies but is only needed for HTML export (ProsemirrorHelper.toHTML) and HTML import (DocumentConverter.htmlToProsemirror). Move it to a lazy `await import` inside those methods so its dependency tree stays off the startup path. Both methods become async; all callers were already in async contexts. The type-only usage in patchGlobalEnv is now an `import type`. --- server/emails/templates/BaseEmail.tsx | 2 +- server/models/helpers/DocumentHelper.tsx | 2 +- server/models/helpers/ProsemirrorHelper.tsx | 7 ++- server/queues/tasks/DocumentUpdateTextTask.ts | 9 ++- server/utils/DocumentConverter.test.ts | 60 +++++++++---------- server/utils/DocumentConverter.ts | 22 ++++--- 6 files changed, 59 insertions(+), 43 deletions(-) diff --git a/server/emails/templates/BaseEmail.tsx b/server/emails/templates/BaseEmail.tsx index fd4521b12f..85801c1c23 100644 --- a/server/emails/templates/BaseEmail.tsx +++ b/server/emails/templates/BaseEmail.tsx @@ -334,7 +334,7 @@ export default abstract class BaseEmail< await ProsemirrorHelper.processMentions(node) ); - let content = ProsemirrorHelper.toHTML(processedNode, { + let content = await ProsemirrorHelper.toHTML(processedNode, { centered: false, }); diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index b0cee05ae0..78bfd7f5be 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -246,7 +246,7 @@ export class DocumentHelper { options?: HTMLOptions ) { const node = DocumentHelper.toProsemirror(model); - let output = ProsemirrorHelper.toHTML(node, { + let output = await ProsemirrorHelper.toHTML(node, { title: options?.includeTitle !== false ? model instanceof Collection diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index 9aa49f8b06..8d4043aaef 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -1,5 +1,5 @@ import emojiRegex from "emoji-regex"; -import { JSDOM } from "jsdom"; +import type { JSDOM } from "jsdom"; import { chunk, isMatch } from "es-toolkit/compat"; import { EditorState, type Plugin } from "prosemirror-state"; import { @@ -471,10 +471,13 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { * @param options Options for the HTML output * @returns The content as a HTML string */ - public static toHTML(node: Node, options?: HTMLOptions) { + public static async toHTML(node: Node, options?: HTMLOptions) { let view; let cleanupEnv; + // Loaded lazily to keep jsdom off the startup path — only HTML export needs it. + const { JSDOM } = await import("jsdom"); + try { const sheet = new ServerStyleSheet(); let html = ""; diff --git a/server/queues/tasks/DocumentUpdateTextTask.ts b/server/queues/tasks/DocumentUpdateTextTask.ts index 9313ad80ad..c513fb08be 100644 --- a/server/queues/tasks/DocumentUpdateTextTask.ts +++ b/server/queues/tasks/DocumentUpdateTextTask.ts @@ -1,5 +1,3 @@ -import { franc } from "franc"; -import { iso6393To1 } from "iso-639-3"; import { Node } from "prosemirror-model"; import { schema, serializer } from "@server/editor"; import { Document } from "@server/models"; @@ -17,6 +15,13 @@ export default class DocumentUpdateTextTask extends BaseTask<DocumentEvent> { const node = Node.fromJSON(schema, document.content); document.text = serializer.serialize(node); + // Loaded lazily to keep the language-detection corpus off the startup path — + // only this worker task needs it. + const [{ franc }, { iso6393To1 }] = await Promise.all([ + import("franc"), + import("iso-639-3"), + ]); + const language = franc(DocumentHelper.toPlainText(document), { minLength: 50, }); diff --git a/server/utils/DocumentConverter.test.ts b/server/utils/DocumentConverter.test.ts index 594c3e0c2a..ed66816797 100644 --- a/server/utils/DocumentConverter.test.ts +++ b/server/utils/DocumentConverter.test.ts @@ -260,10 +260,10 @@ Content`; }); describe("htmlToProsemirror", () => { - it("should convert basic HTML to Prosemirror", () => { + it("should convert basic HTML to Prosemirror", async () => { const html = "<p>Hello world</p>"; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.type.name).toBe("doc"); expect(doc.content.childCount).toBe(1); @@ -271,10 +271,10 @@ Content`; expect(doc.content.child(0).textContent).toBe("Hello world"); }); - it("should convert HTML with heading", () => { + it("should convert HTML with heading", async () => { const html = "<h1>Title</h1><p>Content</p>"; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.content.childCount).toBe(2); expect(doc.content.child(0).type.name).toBe("heading"); @@ -283,46 +283,46 @@ Content`; expect(doc.content.child(1).type.name).toBe("paragraph"); }); - it("should remove script tags", () => { + it("should remove script tags", async () => { const html = "<p>Safe content</p><script>alert('xss')</script>"; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.textContent).toBe("Safe content"); expect(doc.textContent).not.toContain("alert"); }); - it("should remove style tags", () => { + it("should remove style tags", async () => { const html = "<style>body { color: red; }</style><p>Content</p>"; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.textContent).toBe("Content"); expect(doc.textContent).not.toContain("color"); }); - it("should handle Buffer input", () => { + it("should handle Buffer input", async () => { const html = Buffer.from("<p>From buffer</p>", "utf8"); - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.content.child(0).textContent).toBe("From buffer"); }); - it("should convert HTML with lists", () => { + it("should convert HTML with lists", async () => { const html = "<ul><li>Item 1</li><li>Item 2</li></ul>"; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.content.childCount).toBe(1); expect(doc.content.child(0).type.name).toBe("bullet_list"); expect(doc.content.child(0).content.childCount).toBe(2); }); - it("should convert HTML with bold and italic", () => { + it("should convert HTML with bold and italic", async () => { const html = "<p><strong>Bold</strong> and <em>italic</em></p>"; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); const paragraph = doc.content.child(0); expect(paragraph.type.name).toBe("paragraph"); @@ -337,7 +337,7 @@ Content`; expect(italicText.marks.some((m) => m.type.name === "em")).toBe(true); }); - it("should handle full HTML document", () => { + it("should handle full HTML document", async () => { const html = ` <!DOCTYPE html> <html> @@ -352,7 +352,7 @@ Content`; </html> `; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.content.childCount).toBe(2); expect(doc.content.child(0).type.name).toBe("heading"); @@ -361,10 +361,10 @@ Content`; expect(doc.content.child(1).textContent).toBe("Paragraph content"); }); - it("should remove emoticon images", () => { + it("should remove emoticon images", async () => { const html = `<p>Hello <img class="emoticon" src="smile.png" alt=":)"> world</p>`; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); // Emoticon image should be removed, text content remains expect(doc.textContent).not.toContain(":)"); @@ -372,22 +372,22 @@ Content`; expect(doc.textContent).toContain("world"); }); - it("should remove Jira icon images", () => { + it("should remove Jira icon images", async () => { const html = ` <p>Issue: <span class="jira-issue-key"><img class="icon" src="icon.png">ABC-123</span></p> `; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); expect(doc.textContent).toBe("Issue: ABC-123"); }); - it("should apply Confluence image sizing", () => { + it("should apply Confluence image sizing", async () => { const html = ` <p><img src="image.png" data-width="800" data-height="600" width="400"></p> `; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); const paragraph = doc.content.child(0); const image = paragraph.content.child(0); @@ -396,7 +396,7 @@ Content`; expect(image.attrs.height).toBe(300); }); - it("should extract dimensions from PNG data URI images", () => { + it("should extract dimensions from PNG data URI images", async () => { // Minimal 2x3 PNG (IHDR: width=2, height=3) const pngBuffer = Buffer.alloc(33); // PNG signature @@ -415,7 +415,7 @@ Content`; const base64 = pngBuffer.toString("base64"); const html = `<p><img src="data:image/png;base64,${base64}"></p>`; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); const paragraph = doc.content.child(0); const image = paragraph.content.child(0); @@ -424,7 +424,7 @@ Content`; expect(image.attrs.height).toBe(150); }); - it("should extract dimensions from JPEG data URI images", () => { + it("should extract dimensions from JPEG data URI images", async () => { // Minimal JPEG with SOF0 marker const jpegBuffer = Buffer.alloc(20); // JPEG SOI marker @@ -445,7 +445,7 @@ Content`; const base64 = jpegBuffer.toString("base64"); const html = `<p><img src="data:image/jpeg;base64,${base64}"></p>`; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); const paragraph = doc.content.child(0); const image = paragraph.content.child(0); @@ -454,7 +454,7 @@ Content`; expect(image.attrs.height).toBe(300); }); - it("should extract dimensions from GIF data URI images", () => { + it("should extract dimensions from GIF data URI images", async () => { // Minimal GIF header const gifBuffer = Buffer.alloc(10); // GIF signature @@ -467,7 +467,7 @@ Content`; const base64 = gifBuffer.toString("base64"); const html = `<p><img src="data:image/gif;base64,${base64}"></p>`; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); const paragraph = doc.content.child(0); const image = paragraph.content.child(0); @@ -476,7 +476,7 @@ Content`; expect(image.attrs.height).toBe(240); }); - it("should not override existing width/height on data URI images", () => { + it("should not override existing width/height on data URI images", async () => { // PNG with dimensions 200x150 but HTML attributes say 100x75 const pngBuffer = Buffer.alloc(33); Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]).copy( @@ -490,7 +490,7 @@ Content`; const base64 = pngBuffer.toString("base64"); const html = `<p><img src="data:image/png;base64,${base64}" width="100" height="75"></p>`; - const doc = DocumentConverter.htmlToProsemirror(html); + const doc = await DocumentConverter.htmlToProsemirror(html); const paragraph = doc.content.child(0); const image = paragraph.content.child(0); diff --git a/server/utils/DocumentConverter.ts b/server/utils/DocumentConverter.ts index c58e9ca7a4..ab5d551e3a 100644 --- a/server/utils/DocumentConverter.ts +++ b/server/utils/DocumentConverter.ts @@ -1,7 +1,4 @@ -import { parse } from "@fast-csv/parse"; -import { JSDOM } from "jsdom"; import { escapeRegExp } from "es-toolkit/compat"; -import { simpleParser } from "mailparser"; import type { Node } from "prosemirror-model"; import { DOMParser as ProsemirrorDOMParser } from "prosemirror-model"; import yaml from "js-yaml"; @@ -41,7 +38,7 @@ export class DocumentConverter { // Route to appropriate conversion method const html = await this.convertToHtml(content, fileName, mimeType); if (html !== undefined) { - doc = this.htmlToProsemirror(html); + doc = await this.htmlToProsemirror(html); } else { const markdown = await this.convertToMarkdown( content, @@ -81,11 +78,15 @@ export class DocumentConverter { * @param content The HTML content as a string or Buffer. * @returns A Prosemirror Node representing the document. */ - public static htmlToProsemirror(content: Buffer | string): Node { + public static async htmlToProsemirror( + content: Buffer | string + ): Promise<Node> { if (typeof content !== "string") { content = content.toString("utf8"); } + // Loaded lazily to keep jsdom off the startup path — only HTML imports need it. + const { JSDOM } = await import("jsdom"); const dom = new JSDOM(content); const document = dom.window.document; @@ -290,7 +291,9 @@ export class DocumentConverter { } // Confluence "Word" documents are actually just multi-part email messages, so we can use - // mailparser to parse the content. + // mailparser to parse the content. Loaded lazily to keep mailparser off the startup path — + // only Confluence Word imports need it. + const { simpleParser } = await import("mailparser"); const parsed = await simpleParser(content); if (!parsed.html) { throw FileImportError("Unsupported Word file (No content found)"); @@ -324,7 +327,12 @@ export class DocumentConverter { * @param content The CSV file content. * @returns A markdown table representation. */ - private static csvToMarkdown(content: Buffer | string): Promise<string> { + private static async csvToMarkdown( + content: Buffer | string + ): Promise<string> { + // Loaded lazily to keep @fast-csv off the startup path — only CSV imports need it. + const { parse } = await import("@fast-csv/parse"); + return new Promise((resolve, reject) => { const text = this.bufferToString(content).trim(); const textLines = text.split("\n"); From 224230eaa090a73dd97bf0de056b517e54e4c181 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 18:11:00 -0400 Subject: [PATCH 149/286] perf: Remove N+1 query in documents.search (#12540) --- server/models/Document.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/server/models/Document.ts b/server/models/Document.ts index 5d8c1371cc..a25ef5dfcf 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -987,16 +987,17 @@ class Document extends ArchivableModel< const findAllChildDocumentIds = async ( ...parentDocumentId: string[] ): Promise<string[]> => { - const childDocuments = await ( - this.constructor as typeof Document - ).findAll({ - attributes: ["id"], - where: { - parentDocumentId, - ...where, - }, - ...options, - }); + // Unscoped as this method only ever reads the id column + const childDocuments = await (this.constructor as typeof Document) + .unscoped() + .findAll({ + attributes: ["id"], + where: { + parentDocumentId, + ...where, + }, + ...options, + }); const childDocumentIds = childDocuments.map((doc) => doc.id); From b2bb2335a1bfe45d3d046b0d8289cd66c73eb8a7 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra <apoorvmishra101092@gmail.com> Date: Sun, 31 May 2026 03:41:14 +0530 Subject: [PATCH 150/286] Words separated by hyphens to be treated as a single unit for word diffing (#11272) * fix: hyphenated word diff * Add tests, simplify, reduce gap allowance * tsc * simplify --------- Co-authored-by: Tom Moor <tom@getoutline.com> --- .../Developer/components/ExampleData.ts | 872 ++++++++++++++++++ shared/editor/lib/ChangesetHelper.test.ts | 178 ++++ shared/editor/lib/ChangesetHelper.ts | 155 +++- 3 files changed, 1204 insertions(+), 1 deletion(-) create mode 100644 shared/editor/lib/ChangesetHelper.test.ts diff --git a/app/scenes/Developer/components/ExampleData.ts b/app/scenes/Developer/components/ExampleData.ts index d89d1f8eea..8bb1056dea 100644 --- a/app/scenes/Developer/components/ExampleData.ts +++ b/app/scenes/Developer/components/ExampleData.ts @@ -13,6 +13,38 @@ export interface Example { * Node and mark names are matched against those defined in the shared editor schema. */ export const examples: Example[] = [ + { + id: "word-replacement", + name: "Word replacement (interleaved)", + before: { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "no-await-in-loop", + }, + ], + }, + ], + }, + after: { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "jsx-no-jsx-as-prop", + }, + ], + }, + ], + }, + }, { id: "simple-text", name: "Simple text change", @@ -632,6 +664,846 @@ export const examples: Example[] = [ ], }, }, + { + id: "tc", + name: "More table changes", + before: { + type: "doc", + content: [ + { + type: "heading", + attrs: { + level: 1, + }, + content: [ + { + text: "Perf:", + type: "text", + }, + ], + }, + { + type: "paragraph", + content: [ + { + text: "Code that can be written to run faster.", + type: "text", + }, + ], + }, + { + type: "table", + content: [ + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Rule name", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Source", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Default", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Fixable?", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "no-await-in-loop", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "eslint", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "prefer-set-has", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "unicorn", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "\ud83d\udee0\ufe0f", + type: "text", + }, + ], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "no-map-spread", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "oxc", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "\ud83d\udee0\ufe0f\ud83d\udca1", + type: "text", + }, + ], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "no-array-index-key", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "react", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + ], + }, + ], + }, + { + type: "paragraph", + }, + ], + }, + after: { + type: "doc", + content: [ + { + type: "heading", + attrs: { + level: 1, + }, + content: [ + { + text: "Perf:", + type: "text", + }, + ], + }, + { + type: "paragraph", + content: [ + { + text: "Code that can be written to run faster.", + type: "text", + }, + ], + }, + { + type: "table", + content: [ + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Rule name", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Source", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Default", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "Fixable?", + type: "text", + marks: [ + { + type: "strong", + attrs: {}, + }, + ], + }, + ], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "jsx-no-jsx-as-prop", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "react-perf", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "no-map-spread", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "oxc", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "\ud83d\udee0\ufe0f", + type: "text", + }, + { + type: "emoji", + attrs: { + "data-name": "bulb", + }, + }, + ], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "prefer-array-find", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "unicorn", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + type: "emoji", + attrs: { + "data-name": "construction", + }, + }, + ], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "prefer-set-has", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + text: "unicorn", + type: "text", + }, + ], + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + }, + ], + }, + { + type: "td", + attrs: { + colspan: 1, + rowspan: 1, + }, + content: [ + { + type: "paragraph", + content: [ + { + type: "emoji", + attrs: { + "data-name": "warning", + }, + }, + { + type: "emoji", + attrs: { + "data-name": "hammer_and_wrench", + }, + }, + ], + }, + ], + }, + ], + }, + ], + }, + { + type: "paragraph", + }, + ], + }, + }, { id: "table-add-row", name: "Table: add row", diff --git a/shared/editor/lib/ChangesetHelper.test.ts b/shared/editor/lib/ChangesetHelper.test.ts new file mode 100644 index 0000000000..e0835adb01 --- /dev/null +++ b/shared/editor/lib/ChangesetHelper.test.ts @@ -0,0 +1,178 @@ +import type { Slice } from "prosemirror-model"; +import { ChangesetHelper, type ExtendedChange } from "./ChangesetHelper"; +import type { ProsemirrorData } from "../../types"; + +/** + * Builds a single-paragraph document from the given text. + */ +function para(text: string): ProsemirrorData { + return { + type: "doc", + content: [{ type: "paragraph", content: [{ type: "text", text }] }], + }; +} + +/** + * Builds a document with one paragraph per provided text. + */ +function paras(...texts: string[]): ProsemirrorData { + return { + type: "doc", + content: texts.map((text) => ({ + type: "paragraph", + content: [{ type: "text", text }], + })), + }; +} + +/** + * Computes the changeset between two documents, asserts it is non-null, and + * returns the resulting changes. + */ +function changesFor( + after: ProsemirrorData, + before: ProsemirrorData +): readonly ExtendedChange[] { + const result = ChangesetHelper.getChangeset(after, before); + expect(result).not.toBeNull(); + return result!.changes; +} + +/** + * Concatenates the text content of every deletion slice in a change. + */ +function deletedText(change: ExtendedChange): string { + return change.deleted + .map((deletion) => { + const { slice } = deletion.data as { slice: Slice | null }; + return slice ? slice.content.textBetween(0, slice.content.size) : ""; + }) + .join(""); +} + +describe("ChangesetHelper.getChangeset", () => { + it("returns null when there is no previous revision to compare against", () => { + expect(ChangesetHelper.getChangeset(para("Hello"), null)).toBeNull(); + expect(ChangesetHelper.getChangeset(null, para("Hello"))).toBeNull(); + }); + + describe("interleaved word-diff merging", () => { + it("merges a hyphenated word replacement into a single change", () => { + // Word-level diffing splits "no-await-in-loop" -> "jsx-no-jsx-as-prop" + // into several interleaved delete/insert changes around the hyphens. + // These should be merged back into one change covering the whole word. + const changes = changesFor( + para("jsx-no-jsx-as-prop"), + para("no-await-in-loop") + ); + + expect(changes).toHaveLength(1); + + const [change] = changes; + expect(change.fromA).toBe(1); + expect(change.toA).toBe(17); // length of "no-await-in-loop" + 1 (doc offset) + expect(change.fromB).toBe(1); + expect(change.toB).toBe(19); // length of "jsx-no-jsx-as-prop" + 1 + expect(change.deleted).toHaveLength(1); + expect(change.inserted).toHaveLength(1); + }); + + it("captures the full original word in the merged deletion", () => { + const changes = changesFor( + para("jsx-no-jsx-as-prop"), + para("no-await-in-loop") + ); + + expect(deletedText(changes[0])).toBe("no-await-in-loop"); + }); + }); + + describe("does not over-merge unrelated changes", () => { + it("keeps edits in separate nodes separate", () => { + // Two single-character replacements in two different paragraphs sit + // close together positionally, but the gap between them crosses a + // paragraph boundary and must not be merged. + const changes = changesFor(paras("c", "d"), paras("a", "b")); + + expect(changes).toHaveLength(2); + expect(deletedText(changes[0])).toBe("a"); + expect(deletedText(changes[1])).toBe("b"); + }); + + it("keeps edits separated by a large unchanged gap separate", () => { + // "quick" and "fox" are replaced, but the unchanged " brown " between + // them exceeds the merge gap threshold, so they stay distinct. + const changes = changesFor( + para("The slow brown lazy"), + para("The quick brown fox") + ); + + expect(changes).toHaveLength(2); + expect(deletedText(changes[0])).toBe("quick"); + expect(deletedText(changes[1])).toBe("fox"); + }); + + it("does not merge a cluster of pure insertions", () => { + // Inserting text on both sides of the unchanged "a" produces two pure + // insertions a short gap apart. Merging them would render the unchanged + // "a" as inserted, so the window (no deletion) must not merge. + const changes = changesFor(para("foo a bar"), para("a")); + + expect(changes).toHaveLength(2); + // Both are pure insertions — nothing is marked as deleted. + expect(changes.every((change) => change.deleted.length === 0)).toBe(true); + }); + + it("does not merge a cluster of pure deletions", () => { + // Deleting text on both sides of the unchanged "a" produces two pure + // deletions a short gap apart. Merging them would render the unchanged + // "a" as deleted, so the window (no insertion) must not merge. + const changes = changesFor(para("a"), para("foo a bar")); + + expect(changes).toHaveLength(2); + // The unchanged "a" is not absorbed into either deletion. + expect(deletedText(changes[0])).toBe("foo "); + expect(deletedText(changes[1])).toBe(" bar"); + }); + }); + + describe("gap merge threshold", () => { + // Two word replacements ("cat"->"fox", "dog"->"pig") separated by an + // unchanged middle word. The gap between the two changes equals the + // middle length plus its two surrounding spaces. mergeInterleavedChanges + // merges them only while that gap is <= MAX_UNCHANGED_GAP (3). + // + // The trade-off these cases document: when the gap is small enough to + // merge, the unchanged middle word is absorbed into the deletion and + // therefore rendered as deleted + reinserted. + + it("merges across a gap of 3, absorbing the unchanged middle", () => { + // " a " => gap of 3 (1 char + 2 spaces), the threshold. + const changes = changesFor(para("fox a pig"), para("cat a dog")); + + expect(changes).toHaveLength(1); + // The unchanged "a" is swallowed into the merged deletion. + expect(deletedText(changes[0])).toBe("cat a dog"); + }); + + it("does not merge across a gap of 4", () => { + // " ab " => gap of 4 (2 chars + 2 spaces), just past the threshold. + const changes = changesFor(para("fox ab pig"), para("cat ab dog")); + + expect(changes).toHaveLength(2); + // The two edits stay distinct and the middle "ab" is untouched. + expect(deletedText(changes[0])).toBe("cat"); + expect(deletedText(changes[1])).toBe("dog"); + }); + }); + + it("does not affect a simple single-word change", () => { + const changes = changesFor( + para("Hello modified world"), + para("Hello world") + ); + + expect(changes).toHaveLength(1); + expect(changes[0].inserted).toHaveLength(1); + }); +}); diff --git a/shared/editor/lib/ChangesetHelper.ts b/shared/editor/lib/ChangesetHelper.ts index 644b25c788..afc9450552 100644 --- a/shared/editor/lib/ChangesetHelper.ts +++ b/shared/editor/lib/ChangesetHelper.ts @@ -8,6 +8,155 @@ import { recreateTransform } from "./prosemirror-recreate-transform"; import { richExtensions, withComments } from "../nodes"; import type { ProsemirrorData } from "../../types"; +/** + * The structural subset of a changeset `Change` that this module reads and + * produces. Using a `Pick` rather than the `Change` class avoids requiring + * class-only members (such as `toJSON`) on the plain objects we build. + */ +type ChangeFields<T> = Pick< + Change<T>, + "fromA" | "toA" | "fromB" | "toB" | "deleted" | "inserted" +>; + +/** + * The maximum number of unchanged characters allowed between two adjacent + * changes for them to still be merged into a single change. This is + * deliberately small: merging absorbs the gap into the diff, so any unchanged + * text within it is rendered as deleted/reinserted. A value of 3 is the + * minimum that rejoins hyphenated word fragments such as replacing + * "no-await-in-loop", where the differ aligns the shared "no" and leaves an + * unchanged "no-" (gap of 3) between fragments, without swallowing longer + * unchanged words. + */ +const MAX_UNCHANGED_GAP = 3; + +/** + * Merges adjacent Change objects that represent interleaved deletions/insertions. + * + * When word-level diffing is used, replacing "no-await-in-loop" with + * "jsx-no-jsx-as-prop" can produce multiple adjacent Change objects like: + * Change1: delete "no", insert "jsx" + * Change2: delete "await", insert "no" + * ... + * + * This function merges such adjacent changes into a single change: + * Change: delete "no-await-in-loop", insert "jsx-no-jsx-as-prop" + * + * @param changes - The changes from simplifyChanges + * @param docOld - The old document (to extract merged deletion content) + * @returns Changes with adjacent interleaved changes merged + */ +function mergeInterleavedChanges<T extends { step: Step; slice: Slice | null }>( + changes: readonly ChangeFields<T>[], + docOld: Node +): ChangeFields<T>[] { + if (changes.length <= 1) { + return [...changes]; + } + + const result: ChangeFields<T>[] = []; + let i = 0; + + while (i < changes.length) { + const current = changes[i]; + + // Check if this change and subsequent changes form a contiguous replacement + // (i.e., they're adjacent in both old and new document positions) + let j = i + 1; + while (j < changes.length) { + const prev = changes[j - 1]; + const next = changes[j]; + + // Check if changes are adjacent (toA of prev equals fromA of next, same for B) + // Allow gaps (like hyphens or other unchanged characters between changes) + const gapA = next.fromA - prev.toA; + const gapB = next.fromB - prev.toB; + + // Check if changes are in the same parent node (e.g., same table cell, same paragraph) + // by verifying that the gap in the old document doesn't cross node boundaries + let crossesNodeBoundary = false; + if (gapA > 0) { + try { + // If the gap contains any non-text node, it crosses a boundary + const gap = docOld.slice(prev.toA, next.fromA).content; + for (let n = 0; n < gap.childCount; n++) { + if (!gap.child(n).isText) { + crossesNodeBoundary = true; + break; + } + } + } catch { + crossesNodeBoundary = true; + } + } + + // If gaps are equal, reasonably small, and don't cross node boundaries, + // they're part of the same logical replacement + if ( + gapA === gapB && + gapA >= 0 && + gapA <= MAX_UNCHANGED_GAP && + !crossesNodeBoundary + ) { + j++; + } else { + break; + } + } + + // The merged change only needs the first deletion/insertion in the window + // to carry forward the originating step; the spans themselves are + // recomputed from the window bounds below. + let firstDeleted: { length: number; data: T } | undefined; + let firstInserted: { length: number; data: T } | undefined; + for (let k = i; k < j; k++) { + firstDeleted ??= changes[k].deleted[0]; + firstInserted ??= changes[k].inserted[0]; + } + + // Merge the window only when it is a genuine replacement — it must contain + // both a deletion and an insertion. Otherwise a cluster of pure insertions + // (or pure deletions) separated by a short unchanged gap would merge and + // render the unchanged text between them as inserted/deleted. + if (j > i + 1 && firstDeleted && firstInserted) { + const lastChange = changes[j - 1]; + + // Create merged change. The deletion slice holds the original (old) text + // spanning the whole window so it renders as one block; it is not treated + // as a modification downstream because its text differs from the insertion. + const mergedChange: ChangeFields<T> = { + fromA: current.fromA, + toA: lastChange.toA, + fromB: current.fromB, + toB: lastChange.toB, + deleted: [ + { + length: lastChange.toA - current.fromA, + data: { + ...firstDeleted.data, + slice: docOld.slice(current.fromA, lastChange.toA), + } as T, + }, + ], + inserted: [ + { + length: lastChange.toB - current.fromB, + data: firstInserted.data, + }, + ], + }; + + result.push(mergedChange); + i = j; + } else { + result.push(current); + i++; + } + } + + return result; +} + /** * Represents a modification (attribute change) in the document. */ @@ -147,7 +296,11 @@ export class ChangesetHelper { })) ); - let changes = simplifyChanges(changeset.changes, docNew); + // Merge interleaved deletions/insertions into cleaner blocks + const changes = mergeInterleavedChanges( + simplifyChanges(changeset.changes, docNew), + docOld + ); // Post-process changes to detect modifications (attribute-only changes) const extendedChanges: ExtendedChange[] = changes.map((change) => { From ad89288eacc459f4e4440a9a84e46898ca068285 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 30 May 2026 18:26:09 -0400 Subject: [PATCH 151/286] fix: Resolve uuid to ^11.1.1 to patch CVE-2026-41907 (#12541) Forces transitive uuid copies (8.3.2 via sequelize/bull, 9.0.1 via @hocuspocus/*) onto the patched 11.1.1, addressing GHSA-w5hq-g745-h8pq. 11.1.1 is the highest version that is both patched and ships a CommonJS build, which the require()-based consumers depend on. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- package.json | 3 ++- yarn.lock | 27 --------------------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index dd62ab9310..9f731fb6f7 100644 --- a/package.json +++ b/package.json @@ -388,7 +388,8 @@ "minimatch@npm:9.0.1": "9.0.9", "lodash@npm:4.17.21": "^4.18.1", "i18next-parser/i18next": "^23.16.8", - "ws@npm:~8.17.1": "^8.20.1" + "ws@npm:~8.17.1": "^8.20.1", + "uuid": "^11.1.1" }, "version": "1.7.1", "packageManager": "yarn@4.11.0" diff --git a/yarn.lock b/yarn.lock index 4b10c0f78d..9088550e8e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19770,15 +19770,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^11.1.0 || ^12 || ^13 || ^14.0.0": - version: 14.0.0 - resolution: "uuid@npm:14.0.0" - bin: - uuid: dist-node/bin/uuid - checksum: 10c0/a57ae7794c45005c1a9208989196c5baf79a7679c30f43c1bee9033a2c4d113a2cea216fa6fcc9663b08b0d55635df1a7c6eb7e7f3d21c3e50688c698fa39a50 - languageName: node - linkType: hard - "uuid@npm:^11.1.1": version: 11.1.1 resolution: "uuid@npm:11.1.1" @@ -19788,24 +19779,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^8.3.0, uuid@npm:^8.3.2": - version: 8.3.2 - resolution: "uuid@npm:8.3.2" - bin: - uuid: dist/bin/uuid - checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54 - languageName: node - linkType: hard - -"uuid@npm:^9.0.0": - version: 9.0.1 - resolution: "uuid@npm:9.0.1" - bin: - uuid: dist/bin/uuid - checksum: 10c0/1607dd32ac7fc22f2d8f77051e6a64845c9bce5cd3dd8aa0070c074ec73e666a1f63c7b4e0f4bf2bc8b9d59dc85a15e17807446d9d2b17c8485fbc2147b27f9b - languageName: node - linkType: hard - "validator@npm:13.15.35, validator@npm:^13.15.22, validator@npm:^13.7.0, validator@npm:^13.9.0": version: 13.15.35 resolution: "validator@npm:13.15.35" From 991df631ca061bb1513cbc913da2aeef01fa4874 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 31 May 2026 16:29:56 -0400 Subject: [PATCH 152/286] Trigger hover previews when editor has focus (#12545) * fix: Trigger hover previews when editor has focus --- app/editor/extensions/HoverPreviews.tsx | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/app/editor/extensions/HoverPreviews.tsx b/app/editor/extensions/HoverPreviews.tsx index d3ecb101b9..1ddcd59ee6 100644 --- a/app/editor/extensions/HoverPreviews.tsx +++ b/app/editor/extensions/HoverPreviews.tsx @@ -41,10 +41,9 @@ export default class HoverPreviews extends Extension<HoverPreviewsOptions> { } get plugins() { - const isHoverTarget = (target: Element | null, view: EditorView) => + const isHoverTarget = (target: Element | null) => target instanceof HTMLElement && - this.editor.elementRef.current?.contains(target) && - (!view.editable || (view.editable && !view.hasFocus())); + this.editor.elementRef.current?.contains(target); let hoveringTimeout: ReturnType<typeof setTimeout>; @@ -52,11 +51,11 @@ export default class HoverPreviews extends Extension<HoverPreviewsOptions> { new Plugin({ props: { handleDOMEvents: { - mouseover: (view: EditorView, event: MouseEvent) => { + mouseover: (_view: EditorView, event: MouseEvent) => { const target = (event.target as HTMLElement)?.closest( ".use-hover-preview" ); - if (isHoverTarget(target, view)) { + if (isHoverTarget(target)) { hoveringTimeout = setTimeout( action(async () => { const element = target as HTMLElement; @@ -79,7 +78,15 @@ export default class HoverPreviews extends Extension<HoverPreviewsOptions> { documentId, }); - if (unfurl) { + // The fetch is async, so the pointer may have already + // left the target (or the node may have been removed) by + // the time it resolves – only show the preview if the + // element is still hovered. + if ( + unfurl && + element.isConnected && + element.matches(":hover") + ) { this.state.activeLinkElement = element; this.state.unfurlId = transformedUrl; } else { @@ -94,11 +101,11 @@ export default class HoverPreviews extends Extension<HoverPreviewsOptions> { } return false; }, - mouseout: action((view: EditorView, event: MouseEvent) => { + mouseout: action((_view: EditorView, event: MouseEvent) => { const target = (event.target as HTMLElement)?.closest( ".use-hover-preview" ); - if (isHoverTarget(target, view)) { + if (isHoverTarget(target)) { clearTimeout(hoveringTimeout); this.state.activeLinkElement = null; } From 608a68b0102fd17d0f64788516cbdbb2b6202e04 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 31 May 2026 22:13:52 -0400 Subject: [PATCH 153/286] fix: Missing text color on search highlight (#12547) --- shared/editor/components/Styles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index b039244b3b..672f4907f5 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -404,15 +404,14 @@ const diffStyle = (props: Props) => css` } `; -const findAndReplaceStyle = () => css` +const findAndReplaceStyle = (props: Props) => css` & ::highlight(search-results) { background-color: rgba(255, 213, 0, 0.25); - color: inherit; } & ::highlight(search-results-current) { background-color: rgba(255, 213, 0, 0.75); - color: inherit; + color: ${props.theme.textHighlightForeground}; } .find-result:not(:has(.mention)), @@ -424,6 +423,7 @@ const findAndReplaceStyle = () => css` .find-result.current-result .mention { background: rgba(255, 213, 0, 0.75); animation: ${pulse("rgba(255, 213, 0, 0.75)")} 150ms 1; + color: ${props.theme.textHighlightForeground}; } `; From b2309df76d18991bde369894c8a9054277eae698 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 1 Jun 2026 08:06:02 -0400 Subject: [PATCH 154/286] v1.8.0 --- LICENSE | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index d7c1fe0e55..3a2d4104df 100644 --- a/LICENSE +++ b/LICENSE @@ -3,7 +3,7 @@ Business Source License 1.1 Parameters Licensor: General Outline, Inc. -Licensed Work: Outline 1.7.1 +Licensed Work: Outline 1.8.0 The Licensed Work is (c) 2026 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 @@ -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: 2030-05-04 +Change Date: 2030-06-01 Change License: Apache License, Version 2.0 diff --git a/package.json b/package.json index 9f731fb6f7..4c11c61a8a 100644 --- a/package.json +++ b/package.json @@ -391,6 +391,6 @@ "ws@npm:~8.17.1": "^8.20.1", "uuid": "^11.1.1" }, - "version": "1.7.1", + "version": "1.8.0", "packageManager": "yarn@4.11.0" } From 7e252f089239729b1cb6a954918e4e4d91f806f2 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 1 Jun 2026 22:07:09 -0400 Subject: [PATCH 155/286] fix: Add missing safeEqual to notification unsubscribe endpoints (#12551) --- server/routes/api/notifications/notifications.ts | 2 +- server/routes/api/subscriptions/subscriptions.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/routes/api/notifications/notifications.ts b/server/routes/api/notifications/notifications.ts index 877079a307..13d8c617f2 100644 --- a/server/routes/api/notifications/notifications.ts +++ b/server/routes/api/notifications/notifications.ts @@ -39,7 +39,7 @@ const handleUnsubscribe = async ( eventType ); - if (unsubscribeToken !== token) { + if (!safeEqual(unsubscribeToken, token)) { ctx.redirect(`${env.URL}?notice=invalid-auth`); return; } diff --git a/server/routes/api/subscriptions/subscriptions.ts b/server/routes/api/subscriptions/subscriptions.ts index cd95682a29..9fdc5ffa7b 100644 --- a/server/routes/api/subscriptions/subscriptions.ts +++ b/server/routes/api/subscriptions/subscriptions.ts @@ -15,6 +15,7 @@ import { authorize } from "@server/policies"; import { presentSubscription } from "@server/presenters"; import type { APIContext } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; +import { safeEqual } from "@server/utils/crypto"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -171,7 +172,7 @@ router.get( documentId ); - if (unsubscribeToken !== token) { + if (!safeEqual(unsubscribeToken, token)) { ctx.redirect(`${env.URL}?notice=invalid-auth`); return; } From bcf11558188db7758f09942afdc7463256c016ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:01:03 -0400 Subject: [PATCH 156/286] chore(deps): bump semver from 7.7.4 to 7.8.1 (#12564) Bumps [semver](https://github.com/npm/node-semver) from 7.7.4 to 7.8.1. - [Release notes](https://github.com/npm/node-semver/releases) - [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/node-semver/compare/v7.7.4...v7.8.1) --- updated-dependencies: - dependency-name: semver dependency-version: 7.8.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4c11c61a8a..d07b7b178b 100644 --- a/package.json +++ b/package.json @@ -235,7 +235,7 @@ "resolve-path": "^1.4.0", "sanitize-filename": "^1.6.4", "scroll-into-view-if-needed": "^3.1.0", - "semver": "^7.7.4", + "semver": "^7.8.1", "sequelize": "^6.37.8", "sequelize-cli": "^6.6.5", "sequelize-encrypted": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index 9088550e8e..f44653e4f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15313,7 +15313,7 @@ __metadata: rollup-plugin-webpack-stats: "npm:2.1.11" sanitize-filename: "npm:^1.6.4" scroll-into-view-if-needed: "npm:^3.1.0" - semver: "npm:^7.7.4" + semver: "npm:^7.8.1" sequelize: "npm:^6.37.8" sequelize-cli: "npm:^6.6.5" sequelize-encrypted: "npm:^1.0.0" @@ -17850,7 +17850,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.5, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.7.2, semver@npm:^7.7.4": +"semver@npm:^7.3.5, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.7.2": version: 7.7.4 resolution: "semver@npm:7.7.4" bin: @@ -17859,6 +17859,15 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.8.1": + version: 7.8.1 + resolution: "semver@npm:7.8.1" + bin: + semver: bin/semver.js + checksum: 10c0/92d6871d6347e1f99d0ba396a70f2545ccf2a032cda3d378fa0699edf7506b5c6d266aed55c8b88e72bd91a30d2351e4f39db479375374430fcdc4b58f4e3c1a + languageName: node + linkType: hard + "semver@npm:~7.5.4": version: 7.5.4 resolution: "semver@npm:7.5.4" From 875ba8d03cf7b7f1052ebc9467b43a935df60c9f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:01:30 -0400 Subject: [PATCH 157/286] chore(deps): bump yjs from 13.6.30 to 13.6.31 (#12562) Bumps [yjs](https://github.com/yjs/yjs) from 13.6.30 to 13.6.31. - [Release notes](https://github.com/yjs/yjs/releases) - [Commits](https://github.com/yjs/yjs/compare/v13.6.30...v13.6.31) --- updated-dependencies: - dependency-name: yjs dependency-version: 13.6.31 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d07b7b178b..0c1d6d8b2f 100644 --- a/package.json +++ b/package.json @@ -272,7 +272,7 @@ "y-protocols": "^1.0.7", "yauzl": "^3.3.1", "yazl": "^3.3.1", - "yjs": "^13.6.30", + "yjs": "^13.6.31", "zod": "^4.3.6" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index f44653e4f6..1516d38f6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15356,7 +15356,7 @@ __metadata: y-protocols: "npm:^1.0.7" yauzl: "npm:^3.3.1" yazl: "npm:^3.3.1" - yjs: "npm:^13.6.30" + yjs: "npm:^13.6.31" zod: "npm:^4.3.6" languageName: unknown linkType: soft @@ -20858,12 +20858,12 @@ __metadata: languageName: node linkType: hard -"yjs@npm:^13.6.30": - version: 13.6.30 - resolution: "yjs@npm:13.6.30" +"yjs@npm:^13.6.31": + version: 13.6.31 + resolution: "yjs@npm:13.6.31" dependencies: lib0: "npm:^0.2.99" - checksum: 10c0/98ec3c85fdb8420fe250e86e66676d7421dd4c1960319409a39e6ae90d05dc967793b67705736751633d8b22e334dba51a1404ad83139300c0be42195f068261 + checksum: 10c0/201a523c0360b349719410475f179105dce7b9d926d6087bea86dba2ceb39ba6450c5d5fba4ab6de97d2750ddade12d2d36e4500f01585976f930d5eb8d8d1de languageName: node linkType: hard From b2c66c51900e6bf030a8499425b6e50397cda329 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:01:45 -0400 Subject: [PATCH 158/286] chore(deps-dev): bump the babel group with 7 updates (#12560) Bumps the babel group with 7 updates: | Package | From | To | | --- | --- | --- | | [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) | `7.28.6` | `7.29.7` | | [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.29.0` | `7.29.7` | | [@babel/plugin-proposal-decorators](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-decorators) | `7.29.0` | `7.29.7` | | [@babel/plugin-transform-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-properties) | `7.28.6` | `7.29.7` | | [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) | `7.29.5` | `7.29.7` | | [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) | `7.28.5` | `7.29.7` | | [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) | `7.28.5` | `7.29.7` | Updates `@babel/cli` from 7.28.6 to 7.29.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.7/packages/babel-cli) Updates `@babel/core` from 7.29.0 to 7.29.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.7/packages/babel-core) Updates `@babel/plugin-proposal-decorators` from 7.29.0 to 7.29.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.7/packages/babel-plugin-proposal-decorators) Updates `@babel/plugin-transform-class-properties` from 7.28.6 to 7.29.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.7/packages/babel-plugin-transform-class-properties) Updates `@babel/preset-env` from 7.29.5 to 7.29.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.7/packages/babel-preset-env) Updates `@babel/preset-react` from 7.28.5 to 7.29.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.7/packages/babel-preset-react) Updates `@babel/preset-typescript` from 7.28.5 to 7.29.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.7/packages/babel-preset-typescript) --- updated-dependencies: - dependency-name: "@babel/cli" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel - dependency-name: "@babel/core" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: babel - dependency-name: "@babel/plugin-proposal-decorators" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: babel - dependency-name: "@babel/plugin-transform-class-properties" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel - dependency-name: "@babel/preset-env" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: babel - dependency-name: "@babel/preset-react" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel - dependency-name: "@babel/preset-typescript" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 14 +- yarn.lock | 1247 ++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 1167 insertions(+), 94 deletions(-) diff --git a/package.json b/package.json index 0c1d6d8b2f..a77dd07ce0 100644 --- a/package.json +++ b/package.json @@ -276,13 +276,13 @@ "zod": "^4.3.6" }, "devDependencies": { - "@babel/cli": "^7.28.6", - "@babel/core": "^7.28.6", - "@babel/plugin-proposal-decorators": "^7.28.6", - "@babel/plugin-transform-class-properties": "^7.27.1", - "@babel/preset-env": "^7.29.5", - "@babel/preset-react": "^7.28.5", - "@babel/preset-typescript": "^7.28.5", + "@babel/cli": "^7.29.7", + "@babel/core": "^7.29.7", + "@babel/plugin-proposal-decorators": "^7.29.7", + "@babel/plugin-transform-class-properties": "^7.29.7", + "@babel/preset-env": "^7.29.7", + "@babel/preset-react": "^7.29.7", + "@babel/preset-typescript": "^7.29.7", "@faker-js/faker": "^8.4.1", "@relative-ci/agent": "^4.3.1", "@swc/core": "^1.15.32", diff --git a/yarn.lock b/yarn.lock index 1516d38f6a..d6b780eb58 100644 --- a/yarn.lock +++ b/yarn.lock @@ -528,9 +528,9 @@ __metadata: languageName: node linkType: hard -"@babel/cli@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/cli@npm:7.28.6" +"@babel/cli@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/cli@npm:7.29.7" dependencies: "@jridgewell/trace-mapping": "npm:^0.3.28" "@nicolo-ribaudo/chokidar-2": "npm:2.1.8-no-fsevents.3" @@ -551,7 +551,7 @@ __metadata: bin: babel: ./bin/babel.js babel-external-helpers: ./bin/babel-external-helpers.js - checksum: 10c0/b1bde80a44ca2f23c4786278db3faf0c41b249a67e6205bf9859debd19b58face48b8d0b57d3843b08c813b5d0b93ebbe153974b67fcea493cb9829ae76b6cb4 + checksum: 10c0/0f5bd4a8b2958a86ab74375bf51e3e9e6886f8637c59f21b881d6735c22c4cdd39f2582280bfa7342243f0c8de23d6429f2d43e2ecfa0aa150a875fec1a14fce languageName: node linkType: hard @@ -566,6 +566,17 @@ __metadata: languageName: node linkType: hard +"@babel/code-frame@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/code-frame@npm:7.29.7" + dependencies: + "@babel/helper-validator-identifier": "npm:^7.29.7" + js-tokens: "npm:^4.0.0" + picocolors: "npm:^1.1.1" + checksum: 10c0/169fc2080169a40c1760155eaaaf739bcb882df0bec76a83adbda5493645bc17270a3434b8848c494b1933e96fe1d147370001e3cda09a39f43ae30f08ef2069 + languageName: node + linkType: hard + "@babel/compat-data@npm:^7.28.6, @babel/compat-data@npm:^7.29.3": version: 7.29.3 resolution: "@babel/compat-data@npm:7.29.3" @@ -573,7 +584,14 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.24.4, @babel/core@npm:^7.28.6": +"@babel/compat-data@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/compat-data@npm:7.29.7" + checksum: 10c0/47913f05e08a45a1c9df38c02b4b49e391005085b489432647a1abe112e5d9c75e3be8ea5972b7f6da4ec5d1339922ceb9ea02b8a25d4ed1cb8636e5261f344e + languageName: node + linkType: hard + +"@babel/core@npm:^7.24.4": version: 7.29.0 resolution: "@babel/core@npm:7.29.0" dependencies: @@ -596,6 +614,29 @@ __metadata: languageName: node linkType: hard +"@babel/core@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/core@npm:7.29.7" + dependencies: + "@babel/code-frame": "npm:^7.29.7" + "@babel/generator": "npm:^7.29.7" + "@babel/helper-compilation-targets": "npm:^7.29.7" + "@babel/helper-module-transforms": "npm:^7.29.7" + "@babel/helpers": "npm:^7.29.7" + "@babel/parser": "npm:^7.29.7" + "@babel/template": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + "@jridgewell/remapping": "npm:^2.3.5" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10c0/112fb09c24de7a1de64d1de2c31fe65c4e6af4cb2fb6e6d99ea5373e6fc51e75b88581c0efae4c4c68f119a02a988c7106e95011a41530a2fb8ed793c7eaa07b + languageName: node + linkType: hard + "@babel/generator@npm:^7.29.0": version: 7.29.1 resolution: "@babel/generator@npm:7.29.1" @@ -609,6 +650,19 @@ __metadata: languageName: node linkType: hard +"@babel/generator@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/generator@npm:7.29.7" + dependencies: + "@babel/parser": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + "@jridgewell/gen-mapping": "npm:^0.3.12" + "@jridgewell/trace-mapping": "npm:^0.3.28" + jsesc: "npm:^3.0.2" + checksum: 10c0/9bf72b01b5bd0ea5b1288a0e37dbd360bff2f2b1ce73342c0d40fb3db2ec3dc004ada5ffa925c5e12939a416eed59e600d562b8ecd938ce0d27dfd0eb6c6c2b7 + languageName: node + linkType: hard + "@babel/helper-annotate-as-pure@npm:^7.22.5, @babel/helper-annotate-as-pure@npm:^7.27.1, @babel/helper-annotate-as-pure@npm:^7.27.3": version: 7.27.3 resolution: "@babel/helper-annotate-as-pure@npm:7.27.3" @@ -618,6 +672,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-annotate-as-pure@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-annotate-as-pure@npm:7.29.7" + dependencies: + "@babel/types": "npm:^7.29.7" + checksum: 10c0/c56536b52d17632d89d49db2063ed6102f0e3bbadf6a0ccb74e6599d6a77173b644c7fe8c3ef17c7a162709d55b75ee5145ef6db917d16ba7f375fbffcf2e942 + languageName: node + linkType: hard + "@babel/helper-compilation-targets@npm:^7.27.1, @babel/helper-compilation-targets@npm:^7.28.6": version: 7.28.6 resolution: "@babel/helper-compilation-targets@npm:7.28.6" @@ -631,7 +694,20 @@ __metadata: languageName: node linkType: hard -"@babel/helper-create-class-features-plugin@npm:^7.28.5, @babel/helper-create-class-features-plugin@npm:^7.28.6": +"@babel/helper-compilation-targets@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-compilation-targets@npm:7.29.7" + dependencies: + "@babel/compat-data": "npm:^7.29.7" + "@babel/helper-validator-option": "npm:^7.29.7" + browserslist: "npm:^4.24.0" + lru-cache: "npm:^5.1.1" + semver: "npm:^6.3.1" + checksum: 10c0/4c15fd4c69a0a7047799a28a88460c19cede0a0ee8af994ea169114986f4af48b92c7393a4a3fee0456c11a656eece3448a6ed06354453d6c27cccf17195453b + languageName: node + linkType: hard + +"@babel/helper-create-class-features-plugin@npm:^7.28.6": version: 7.28.6 resolution: "@babel/helper-create-class-features-plugin@npm:7.28.6" dependencies: @@ -648,6 +724,23 @@ __metadata: languageName: node linkType: hard +"@babel/helper-create-class-features-plugin@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-create-class-features-plugin@npm:7.29.7" + dependencies: + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + "@babel/helper-member-expression-to-functions": "npm:^7.29.7" + "@babel/helper-optimise-call-expression": "npm:^7.29.7" + "@babel/helper-replace-supers": "npm:^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + semver: "npm:^6.3.1" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/75f34905b5e708b473f1e9b33e07b2fcc8f4c60676df8bc74541bb91c77f387c32a948dd04d5071e469ba454d72d0a872e3ace40fbb1d1e7aaa8569efcf09ed4 + languageName: node + linkType: hard + "@babel/helper-create-regexp-features-plugin@npm:^7.18.6, @babel/helper-create-regexp-features-plugin@npm:^7.27.1, @babel/helper-create-regexp-features-plugin@npm:^7.28.5": version: 7.28.5 resolution: "@babel/helper-create-regexp-features-plugin@npm:7.28.5" @@ -661,6 +754,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-create-regexp-features-plugin@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-create-regexp-features-plugin@npm:7.29.7" + dependencies: + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + regexpu-core: "npm:^6.3.1" + semver: "npm:^6.3.1" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/c9008c5aafe3b4707964394179cefcb1624d3917b911f308b49719ab8861bc403d82a8f5e046906a18de7082ca393ebae335218c74f52c3fcd81e442c4ae0ce8 + languageName: node + linkType: hard + "@babel/helper-define-polyfill-provider@npm:^0.6.5, @babel/helper-define-polyfill-provider@npm:^0.6.8": version: 0.6.8 resolution: "@babel/helper-define-polyfill-provider@npm:0.6.8" @@ -683,6 +789,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-globals@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-globals@npm:7.29.7" + checksum: 10c0/f38417c40b1129a1b2b519ca961b9040c8827d1444fd74068702286b91b77089431dc76b6b9d5c1496e5da2a4f3ad329c6946e688ba3fa0d1d0b3d2b4f34f36a + languageName: node + linkType: hard + "@babel/helper-member-expression-to-functions@npm:^7.28.5": version: 7.28.5 resolution: "@babel/helper-member-expression-to-functions@npm:7.28.5" @@ -693,6 +806,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-member-expression-to-functions@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-member-expression-to-functions@npm:7.29.7" + dependencies: + "@babel/traverse": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + checksum: 10c0/eef7940ce0797208854a5af1049a98fee9abbffb5c619640c69ff5a555f8e3552295bb18756490b02bc6af7df8c1babcb83f12203aac2deb9dfecfc78846e12d + languageName: node + linkType: hard + "@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.18.6, @babel/helper-module-imports@npm:^7.22.5, @babel/helper-module-imports@npm:^7.27.1, @babel/helper-module-imports@npm:^7.28.6": version: 7.28.6 resolution: "@babel/helper-module-imports@npm:7.28.6" @@ -703,6 +826,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-imports@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-module-imports@npm:7.29.7" + dependencies: + "@babel/traverse": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + checksum: 10c0/6adf60d97356027413342a092f818d9678c4f5caff716a33e3284b5ae14e47a9e88059d421dde4ee4894691260039a12602c0e7becadc175602194b40dfa345d + languageName: node + linkType: hard + "@babel/helper-module-transforms@npm:^7.27.1, @babel/helper-module-transforms@npm:^7.28.6": version: 7.28.6 resolution: "@babel/helper-module-transforms@npm:7.28.6" @@ -716,6 +849,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-transforms@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-module-transforms@npm:7.29.7" + dependencies: + "@babel/helper-module-imports": "npm:^7.29.7" + "@babel/helper-validator-identifier": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/ee5a2172c24a42be696836f4b0d947489c9729d8adf5821885cf77d1ad5333e3c447368e9a71f67df1099570490553dccf9f888ef0a92a48aa63cb086bd8c7e1 + languageName: node + linkType: hard + "@babel/helper-optimise-call-expression@npm:^7.27.1": version: 7.27.1 resolution: "@babel/helper-optimise-call-expression@npm:7.27.1" @@ -725,6 +871,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-optimise-call-expression@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-optimise-call-expression@npm:7.29.7" + dependencies: + "@babel/types": "npm:^7.29.7" + checksum: 10c0/fd0244b9bfbb487db02d59aa2703c6991d654ea5f3f39d912682842bdca2e87b5ae8643b0ce8069bf5fbee39d1aa9db7abefeb5e6ba1aa650dca12777cf5b7e2 + languageName: node + linkType: hard + "@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.18.6, @babel/helper-plugin-utils@npm:^7.27.1, @babel/helper-plugin-utils@npm:^7.28.6": version: 7.28.6 resolution: "@babel/helper-plugin-utils@npm:7.28.6" @@ -732,6 +887,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-plugin-utils@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-plugin-utils@npm:7.29.7" + checksum: 10c0/380477a06133274a2759f9355929cb60a95e8b8fee624a1ae1fa349e1d1645b89daca456f72833f6d1062bffa12ee4271c5bf0cc5a61c0166cdc24c7591e2408 + languageName: node + linkType: hard + "@babel/helper-remap-async-to-generator@npm:^7.27.1": version: 7.27.1 resolution: "@babel/helper-remap-async-to-generator@npm:7.27.1" @@ -745,6 +907,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-remap-async-to-generator@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-remap-async-to-generator@npm:7.29.7" + dependencies: + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + "@babel/helper-wrap-function": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/d71a4f2c7e4523568b1fbeb4d85823bda7ebcd48263b2862ee8194b0a647b612e70d6a64472e0842fc7e557a16e9fa5d3c032af5c1308a342e2a3b49a87d4833 + languageName: node + linkType: hard + "@babel/helper-replace-supers@npm:^7.27.1, @babel/helper-replace-supers@npm:^7.28.6": version: 7.28.6 resolution: "@babel/helper-replace-supers@npm:7.28.6" @@ -758,6 +933,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-replace-supers@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-replace-supers@npm:7.29.7" + dependencies: + "@babel/helper-member-expression-to-functions": "npm:^7.29.7" + "@babel/helper-optimise-call-expression": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/1c7ae37797f226e965ab85f6affa53d25a10c169c604a4daeb36f9df09e673471e6522f631c13761cf9fbafeca2ea14c241dea8d723a51039d561beb01d86ac4 + languageName: node + linkType: hard + "@babel/helper-skip-transparent-expression-wrappers@npm:^7.27.1": version: 7.27.1 resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.27.1" @@ -768,6 +956,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-skip-transparent-expression-wrappers@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.29.7" + dependencies: + "@babel/traverse": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + checksum: 10c0/8c59493621487fc491f27adfc200af82a6aca3b9a5511e4e6050f8716593b4b243472cb56c8d2016e828b7ae12d605a819205aa8600ca08ee291dcd58d65c832 + languageName: node + linkType: hard + "@babel/helper-string-parser@npm:^7.27.1": version: 7.27.1 resolution: "@babel/helper-string-parser@npm:7.27.1" @@ -775,6 +973,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-string-parser@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-string-parser@npm:7.29.7" + checksum: 10c0/194bc0f1716e396d5ffde56ad6119745fb9557662c98611590e5e454906783a4ccb21ce93056b8eb69a4909044834e45d96e50ac695bbe9e3221648fe033c06c + languageName: node + linkType: hard + "@babel/helper-validator-identifier@npm:^7.28.5": version: 7.28.5 resolution: "@babel/helper-validator-identifier@npm:7.28.5" @@ -782,6 +987,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-identifier@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-validator-identifier@npm:7.29.7" + checksum: 10c0/4795354e7ae0dcafa72de1cd04ec51252dc1498517170beaf019e03effc5b7bf13c6b21a3949a77e07b8125be7f106ed1131350d8ebd4566ae874094a726d62b + languageName: node + linkType: hard + "@babel/helper-validator-option@npm:^7.27.1": version: 7.27.1 resolution: "@babel/helper-validator-option@npm:7.27.1" @@ -789,6 +1001,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-option@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-validator-option@npm:7.29.7" + checksum: 10c0/d2a06c6d0ac40ba4a2f219fc2cab249c7a94bacdb2686273b7f9598571c908809b48468ff588915a346e6cc7296f60b581023d1d498b747fed06f779d335c2cc + languageName: node + linkType: hard + "@babel/helper-wrap-function@npm:^7.27.1": version: 7.28.3 resolution: "@babel/helper-wrap-function@npm:7.28.3" @@ -800,6 +1019,17 @@ __metadata: languageName: node linkType: hard +"@babel/helper-wrap-function@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helper-wrap-function@npm:7.29.7" + dependencies: + "@babel/template": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + checksum: 10c0/d765b341863ede049eb6923b9c20fc79fb6c64995a906b60a70c22fbffb21eef5d5a5cf15948c843047d31e8c902a85fa94ccfe5d30d0631a7b1e40e4d667c70 + languageName: node + linkType: hard + "@babel/helpers@npm:^7.28.6": version: 7.29.2 resolution: "@babel/helpers@npm:7.29.2" @@ -810,6 +1040,16 @@ __metadata: languageName: node linkType: hard +"@babel/helpers@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/helpers@npm:7.29.7" + dependencies: + "@babel/template": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + checksum: 10c0/218e8d10953647c9f44775f5a022b227a182674853b5ea8631889deb7e1a3e4bc870388aaecf59bb8bd92a87f9a96220ed3f70a35bffec6bcf9169ecb67891ac + languageName: node + linkType: hard + "@babel/parser@npm:^7.28.6, @babel/parser@npm:^7.29.0": version: 7.29.2 resolution: "@babel/parser@npm:7.29.2" @@ -821,6 +1061,17 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/parser@npm:7.29.7" + dependencies: + "@babel/types": "npm:^7.29.7" + bin: + parser: ./bin/babel-parser.js + checksum: 10c0/65133038f80b54a714d6027cb77cee3f9a6b5c4c6842ce674301e13947cbcbfa8055e63acaf1b84c085d34226a14425b2c2b97b829e0e226d2e8f1299942a51d + languageName: node + linkType: hard + "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.28.5": version: 7.28.5 resolution: "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:7.28.5" @@ -833,6 +1084,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/6877a4112797885bcf90f361131e2b63dcbbcb3e334c984c527e1e380eb7e81785219dcf99f1291eef4edc83907cb582204120d97d777807c252f9eb31fd2e6e + languageName: node + linkType: hard + "@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:7.27.1" @@ -844,6 +1107,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/557565fc052b9ab306802b19b9cfc89be9aa7aa709447698dbb5080db356048d4c3dd94ccad8bcb4d5ef3c4002947a340d1c326acde0d95950c3773472f46282 + languageName: node + linkType: hard + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.27.1" @@ -855,6 +1129,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/5b949826cfadd9d90c3cfba01cc917f218ba2da05b2a2dc4781bd3805c150eb858ba52d2f3972c8ae6cc887257ac4d114fdda6d695a30510137abae5c76bf054 + languageName: node + linkType: hard + "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:^7.29.3": version: 7.29.3 resolution: "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:7.29.3" @@ -867,6 +1152,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/727a464410623fb47d47a2803562b8bb9fb4b915de94cc51bd3149937522b85e6a5d19c71207ac5269c51684f282a918785e78e359435d1f4ac889dc4f258855 + languageName: node + linkType: hard + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:7.27.1" @@ -880,6 +1177,19 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.29.7" + "@babel/plugin-transform-optional-chaining": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.13.0 + checksum: 10c0/9ccc704d1382771b2a6a4f1281b2f63d7be47fb0ebc9890e2f820e2a645b77aaf207ec8e6136854bb059715eac5fd7cab436b054c3b3b4a472b9fd0c73ee98b3 + languageName: node + linkType: hard + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:7.28.6" @@ -892,16 +1202,28 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-decorators@npm:^7.28.6": - version: 7.29.0 - resolution: "@babel/plugin-proposal-decorators@npm:7.29.0" +"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:7.29.7" dependencies: - "@babel/helper-create-class-features-plugin": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/plugin-syntax-decorators": "npm:^7.28.6" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/547bddf129eed825c0a3c706828c579bfedd0fa850054ded515e90af91fa1a643bb88461e49b59946d95737622766ae0db2c04346ee319e06e49852c270a2c2f + languageName: node + linkType: hard + +"@babel/plugin-proposal-decorators@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-proposal-decorators@npm:7.29.7" + dependencies: + "@babel/helper-create-class-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/plugin-syntax-decorators": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/b397506fb245374544e2c52909dcbd2193b0327594e3493ea4a47d8a22f6991a90128900d6ee3b129be5246ee08b0d07c8796cfb60502aacf20ac52cc6a92b68 + checksum: 10c0/9c0ce48ac70952d4419f0ceb250cefe2eff96d1e7393bcb7db2e15abe655ee04e25e6f7ce4346f27bdfa781a4386963e3e5c1d1ef7cb1c765a0d811debc9a645 languageName: node linkType: hard @@ -914,14 +1236,14 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-decorators@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-syntax-decorators@npm:7.28.6" +"@babel/plugin-syntax-decorators@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-syntax-decorators@npm:7.29.7" dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" + "@babel/helper-plugin-utils": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/bd12119646f65e156709d1d6f4949758de36a4192c5c3057b5a5972b896386da5411a763aba087691edf539808616b254b84084b3340cff6e7968f9cab5004dd + checksum: 10c0/5a5644ecd899345a92788c2d3a832541a09ab1558accbde396036920d76405b8cb7b073eb01fad468181719962cc0dfdf8377c4744fc4ceb042432e03f64e13e languageName: node linkType: hard @@ -936,6 +1258,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-syntax-import-assertions@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-syntax-import-assertions@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/d5628692a0ba2fadf469aaef20f4f0a216259eeb92d31fc23d48c9d201696099691f0dfaa895c657f9c591a7fab94f62545f20196326af1812ebab72cf34e9fe + languageName: node + linkType: hard + "@babel/plugin-syntax-import-attributes@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-syntax-import-attributes@npm:7.28.6" @@ -947,7 +1280,18 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.22.5, @babel/plugin-syntax-jsx@npm:^7.27.1": +"@babel/plugin-syntax-import-attributes@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-syntax-import-attributes@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/b9a47e869d8c06676297069895ae34e2bd244ec4c3bdf15002f1e69aed32eef0361044af22a43f271b8de5e23a40534fe6a74a63e7ab98e3d60a74b322444b49 + languageName: node + linkType: hard + +"@babel/plugin-syntax-jsx@npm:^7.22.5": version: 7.27.1 resolution: "@babel/plugin-syntax-jsx@npm:7.27.1" dependencies: @@ -958,14 +1302,25 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-typescript@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-syntax-typescript@npm:7.27.1" +"@babel/plugin-syntax-jsx@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-syntax-jsx@npm:7.29.7" dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" + "@babel/helper-plugin-utils": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/11589b4c89c66ef02d57bf56c6246267851ec0c361f58929327dc3e070b0dab644be625bbe7fb4c4df30c3634bfdfe31244e1f517be397d2def1487dbbe3c37d + checksum: 10c0/1736000de183538ba8eef34520105508860e48b0c763254ba9158af5e814ed8bbceeedbb4281fbda33de787ae5b3870e92f60c6ae7131e7d322e451d57387896 + languageName: node + linkType: hard + +"@babel/plugin-syntax-typescript@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-syntax-typescript@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/c49883b0327e8683b770dc823205af5c697da216e590dcf5bf53f3f031e7e381de450b164f8f99853f0837a3de5cb793298e2be6697a0f6e452bb9dd34b5165e languageName: node linkType: hard @@ -992,6 +1347,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-arrow-functions@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-arrow-functions@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/03405abac83122b760c4d688a256c7a67961fd5a4396dfd119cf89a118984d31add38eeace38a158c63c3a4257a644e15da8836ee9e50876bf6876e988060be2 + languageName: node + linkType: hard + "@babel/plugin-transform-async-generator-functions@npm:^7.29.0": version: 7.29.0 resolution: "@babel/plugin-transform-async-generator-functions@npm:7.29.0" @@ -1005,6 +1371,19 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-async-generator-functions@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-async-generator-functions@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-remap-async-to-generator": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/efeeb26e8474d75b469b68fd7de74b757929b78aba5714ccb705a42f23d4e0de178ca09b59efd19113d42461bcf876dd9a919fd61f4e5e6fd1d1e5e7998e5bfe + languageName: node + linkType: hard + "@babel/plugin-transform-async-to-generator@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-async-to-generator@npm:7.28.6" @@ -1018,6 +1397,19 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-async-to-generator@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-async-to-generator@npm:7.29.7" + dependencies: + "@babel/helper-module-imports": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-remap-async-to-generator": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/1aa514d28a2a87747f54e031cf6d2884a792a41c8bb9ebcf4d3d663284a4ae14e02c744ad76819ab09b96b6a0cdb60dd20e54c75f2eb9c3cc3fb255e0ef79e74 + languageName: node + linkType: hard + "@babel/plugin-transform-block-scoped-functions@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-block-scoped-functions@npm:7.27.1" @@ -1029,6 +1421,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-block-scoped-functions@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-block-scoped-functions@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/bb790629b9bce5215f932932222b50f371f8dfd30b874b7e6ea294213ddf10f427d5fc80dc7e1c0fba3568f02c1865290ce40aef89657570d98c4eb13b6af3c2 + languageName: node + linkType: hard + "@babel/plugin-transform-block-scoping@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-block-scoping@npm:7.28.6" @@ -1040,7 +1443,18 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-class-properties@npm:^7.27.1, @babel/plugin-transform-class-properties@npm:^7.28.6": +"@babel/plugin-transform-block-scoping@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-block-scoping@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/ec4e45aefd4e1d276d0ee143bc521c2a3b38e59cc7dcef014d43c9a844416160d89f98953399e69e547a5743474d0986cb62155514109eab73b942beeb453a3f + languageName: node + linkType: hard + +"@babel/plugin-transform-class-properties@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-class-properties@npm:7.28.6" dependencies: @@ -1052,6 +1466,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-class-properties@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-class-properties@npm:7.29.7" + dependencies: + "@babel/helper-create-class-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/c370700423439aa9f0c1f8c4b97f2ef7c2dc46a1b04ec3b10e83e6bae5e4e2159f56d8e4376c9d669b3cf827650cc3740170a36e3924e3e9970d27fd85f4e48a + languageName: node + linkType: hard + "@babel/plugin-transform-class-static-block@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-class-static-block@npm:7.28.6" @@ -1064,6 +1490,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-class-static-block@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-class-static-block@npm:7.29.7" + dependencies: + "@babel/helper-create-class-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.12.0 + checksum: 10c0/d2fa7e8af5d05cee838bab20b624c2911ef6618c7ead146f6ace6421280d0e57487fc2b946b42832289a35764b559e584983b32e51bf5a85596495ba3452970f + languageName: node + linkType: hard + "@babel/plugin-transform-classes@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-classes@npm:7.28.6" @@ -1080,6 +1518,22 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-classes@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-classes@npm:7.29.7" + dependencies: + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + "@babel/helper-compilation-targets": "npm:^7.29.7" + "@babel/helper-globals": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-replace-supers": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/53a55bc5348d82ca744dbfcfedf33ab79877e609a5308f43976de8c240bd09cee195a535bf54a01b28d7080eebe759735b1c6cf39f252eef469eefc1d838d2a2 + languageName: node + linkType: hard + "@babel/plugin-transform-computed-properties@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-computed-properties@npm:7.28.6" @@ -1092,6 +1546,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-computed-properties@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-computed-properties@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/template": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/a8755338ffbfb374bafc2b3c22b00b025b8e5cf1cbac9c1ecdb3fb4c538508cb1b8f7a4e8c874b05df5166ff19ef105e65d54fefcf0546c628fa67214453b708 + languageName: node + linkType: hard + "@babel/plugin-transform-destructuring@npm:^7.28.5": version: 7.28.5 resolution: "@babel/plugin-transform-destructuring@npm:7.28.5" @@ -1104,6 +1570,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-destructuring@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-destructuring@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/74ff73303d32f8379f636741d3e48e2a20bbeb6e8b0d9343daad1952242f0ea78f319b4c871b5623739033b61459c9eed3d98f699fd192c45eab61ed8ad4c5ec + languageName: node + linkType: hard + "@babel/plugin-transform-dotall-regex@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-dotall-regex@npm:7.28.6" @@ -1116,6 +1594,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-dotall-regex@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-dotall-regex@npm:7.29.7" + dependencies: + "@babel/helper-create-regexp-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/1c3eecc214bae152fc9af66b6d7e045a58e364a1cbc18a6c8e0ecea2d470eb6171f35b454dde51dffb4e687245bc8ad9abb9e233cc708db5bd3bdced74a1511c + languageName: node + linkType: hard + "@babel/plugin-transform-duplicate-keys@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-duplicate-keys@npm:7.27.1" @@ -1127,6 +1617,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-duplicate-keys@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-duplicate-keys@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/0d895326d8b29f6acaa8da72ebdc6393537311eaa33d8cab99cbb322a73c21be51d5d932a6d0c124e4f51539c5731dc3ed93084d3a2078a63db59dda6b00a724 + languageName: node + linkType: hard + "@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:^7.29.0": version: 7.29.0 resolution: "@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:7.29.0" @@ -1139,6 +1640,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:7.29.7" + dependencies: + "@babel/helper-create-regexp-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/1dfecfb693ad6f1b6b779ac2fd676df048a051b83b4856f9ddced6217cd1f69b96259b01b5a67ee970fe531edf845944aadcc3f5dc74780331997f1dbf2de0da + languageName: node + linkType: hard + "@babel/plugin-transform-dynamic-import@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-dynamic-import@npm:7.27.1" @@ -1150,6 +1663,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-dynamic-import@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-dynamic-import@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/9f824556ab369173e5945cceeb3b83516a2896b161a5cd9f14641e30b7d1535426eebbf04d1f3cfcac557e0148180650584b4ce552b09a6b03f03adf1fbc689c + languageName: node + linkType: hard + "@babel/plugin-transform-explicit-resource-management@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-explicit-resource-management@npm:7.28.6" @@ -1162,6 +1686,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-explicit-resource-management@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-explicit-resource-management@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/plugin-transform-destructuring": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/083ef2bbc8c78ff80d70b1fe12604a8a2cc6a5ec68115c6efa4be7b5291b7576a092a102739af7c7e743cad79234b7cb7efe4216ca1913b598e0afc04a9962d5 + languageName: node + linkType: hard + "@babel/plugin-transform-exponentiation-operator@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-exponentiation-operator@npm:7.28.6" @@ -1173,6 +1709,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-exponentiation-operator@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-exponentiation-operator@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/1db57e065c5bceafcf7839d0c4cefd5723adba6d858df89d077d3f336364266a2dab71f1eb44746c14024736dd15fbe20ea392128c16b898abefc27cc1ca173f + languageName: node + linkType: hard + "@babel/plugin-transform-export-namespace-from@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-export-namespace-from@npm:7.27.1" @@ -1184,6 +1731,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-export-namespace-from@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-export-namespace-from@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/6cd951e366c5c30223c409157e312d949feecfae8b4b4927053764ec71ff2bacf43aceda9b53239cd90d71caf4ae849c70549e0d3e31377dd8f42a0c283bdda2 + languageName: node + linkType: hard + "@babel/plugin-transform-for-of@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-for-of@npm:7.27.1" @@ -1196,6 +1754,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-for-of@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-for-of@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/1d0143067df5f0d5ff0097099876da5d9d0fb7e2670939fde2523a0b14be2ea2cbcf736f874081d13ec5c3fca756f7aa1782a7c8cf17c262b0a493115a23b6b1 + languageName: node + linkType: hard + "@babel/plugin-transform-function-name@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-function-name@npm:7.27.1" @@ -1209,6 +1779,19 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-function-name@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-function-name@npm:7.29.7" + dependencies: + "@babel/helper-compilation-targets": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/3ed2bca4f49356cd8fe1aa69daf5de63451be3b9271264eae536baf8d53476c63033e7fed6b5e97277cc10bdbfa10148f2f03315ca4cd94fae2b4ad5cb9b437f + languageName: node + linkType: hard + "@babel/plugin-transform-json-strings@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-json-strings@npm:7.28.6" @@ -1220,6 +1803,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-json-strings@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-json-strings@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/6cc66ffbfa1dd50f1f225da0668740e93357ea84e67c798e9814085595d4f04a65d0d1368d15fd4b0022b7e76eded3a1c822791a93a8855b62897c836c547fff + languageName: node + linkType: hard + "@babel/plugin-transform-literals@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-literals@npm:7.27.1" @@ -1231,6 +1825,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-literals@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-literals@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/bcfb8ca4092f2927ed61fdb75ddbadd701eda08ea2dd972f110d2ef1428643275c7adc7ce26847e15fbd573997e93654ff9afb4c1767a058e6d5843cbb9a4ae7 + languageName: node + linkType: hard + "@babel/plugin-transform-logical-assignment-operators@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-logical-assignment-operators@npm:7.28.6" @@ -1242,6 +1847,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-logical-assignment-operators@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-logical-assignment-operators@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/b0b85f47bde7efd253b273bcbe317178df6f281b99f8399c04a3af1a8b0878ddb6e3d57e395292917d0376c337e57f4d64ad9f861001590a90f888c30abf2c51 + languageName: node + linkType: hard + "@babel/plugin-transform-member-expression-literals@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-member-expression-literals@npm:7.27.1" @@ -1253,6 +1869,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-member-expression-literals@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-member-expression-literals@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/b8db313de0a4aeb3a617afcf9413774a53ec71a361030c89dbe2d05aa17310e9d33d4307727c898bfc9b07a9c676482fa8b0463840d1829c21323bc04623d556 + languageName: node + linkType: hard + "@babel/plugin-transform-modules-amd@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-modules-amd@npm:7.27.1" @@ -1265,7 +1892,19 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-commonjs@npm:^7.27.1, @babel/plugin-transform-modules-commonjs@npm:^7.28.6": +"@babel/plugin-transform-modules-amd@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-modules-amd@npm:7.29.7" + dependencies: + "@babel/helper-module-transforms": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/425e9f99506968196a239944fe4eb51e144eadc2490b49a74798f92226f76b328d13b13e90e07962cd5df327994011570a3c2883b65091dde984b5bdff066c6b + languageName: node + linkType: hard + +"@babel/plugin-transform-modules-commonjs@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-modules-commonjs@npm:7.28.6" dependencies: @@ -1277,6 +1916,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-modules-commonjs@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-modules-commonjs@npm:7.29.7" + dependencies: + "@babel/helper-module-transforms": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/9791cb524438b2a8ba6cb8715788fa1e202fbecd4e76b3ccab0af0819fd69212b40ae30d72ac377012f7149889f7792ed8bf91e97bbe9113ca9641f8ad3bf332 + languageName: node + linkType: hard + "@babel/plugin-transform-modules-systemjs@npm:^7.29.4": version: 7.29.4 resolution: "@babel/plugin-transform-modules-systemjs@npm:7.29.4" @@ -1291,6 +1942,20 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-modules-systemjs@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-modules-systemjs@npm:7.29.7" + dependencies: + "@babel/helper-module-transforms": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-validator-identifier": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/7b950bcc4a4b077b742b9299c8c9d4285e15854e23816d0b1c1177fafda4c153f3c3c4487c1b965afbf7a69a8788fc75656d0c591b91f0a5a543faabe738ca58 + languageName: node + linkType: hard + "@babel/plugin-transform-modules-umd@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-modules-umd@npm:7.27.1" @@ -1303,6 +1968,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-modules-umd@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-modules-umd@npm:7.29.7" + dependencies: + "@babel/helper-module-transforms": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/14545c7dfc8f95010766075d9cd4c1bf99a868c2dad7f780e9a609c6d94d23044f85672548b35a2162c027647386c0cfb85f68cee8f4e02352683acf6aade76d + languageName: node + linkType: hard + "@babel/plugin-transform-named-capturing-groups-regex@npm:^7.29.0": version: 7.29.0 resolution: "@babel/plugin-transform-named-capturing-groups-regex@npm:7.29.0" @@ -1315,6 +1992,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-named-capturing-groups-regex@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-named-capturing-groups-regex@npm:7.29.7" + dependencies: + "@babel/helper-create-regexp-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/e16e270fc3640baf403497cbbab196cc0f18477576cf3535713c851f69c6e27b2902cc7502c3a863dce7f0432dc344ddcb14766a2af7cf37333aa864c7e5739b + languageName: node + linkType: hard + "@babel/plugin-transform-new-target@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-new-target@npm:7.27.1" @@ -1326,6 +2015,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-new-target@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-new-target@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/9a192ded7083850d5b3c5629a3da4fe209298ac9d7a84d1495916a5c841cd4017e4d126d98a3b7c322eafae3851345fe2670377a16561b9cbd817e952f6fdbd5 + languageName: node + linkType: hard + "@babel/plugin-transform-nullish-coalescing-operator@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-nullish-coalescing-operator@npm:7.28.6" @@ -1337,6 +2037,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-nullish-coalescing-operator@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-nullish-coalescing-operator@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/b0c186fe38bc66830e1be76f06fabbae8a655d3896a841ba5ffa12d6c40bb9c8a6ecd38a7e2196034b1d7470653109b1ceac1ef5e46a5fdc9291d14afa56e0d0 + languageName: node + linkType: hard + "@babel/plugin-transform-numeric-separator@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-numeric-separator@npm:7.28.6" @@ -1348,6 +2059,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-numeric-separator@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-numeric-separator@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/a0e79a9627717277cc21ede56d8e57da0ac5e0c9620c963da2526791657044b57eeeafe27f297754cfdea470dd590c763e9bc71d589f1850654f77f5f4f77ece + languageName: node + linkType: hard + "@babel/plugin-transform-object-rest-spread@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-object-rest-spread@npm:7.28.6" @@ -1363,6 +2085,21 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-object-rest-spread@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-object-rest-spread@npm:7.29.7" + dependencies: + "@babel/helper-compilation-targets": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/plugin-transform-destructuring": "npm:^7.29.7" + "@babel/plugin-transform-parameters": "npm:^7.29.7" + "@babel/traverse": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/7963bcbb3165699cabad1ac5dcf03c26ffbe41c4a130283376d6e7a69ee6a353105c666e533e024bdf28862968434d1e13635846c8d8e7f5f9271407112aed1c + languageName: node + linkType: hard + "@babel/plugin-transform-object-super@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-object-super@npm:7.27.1" @@ -1375,6 +2112,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-object-super@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-object-super@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-replace-supers": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/eacfa0f571cb9bbdb283253b41c7a3cafe03e6da81ea92f61d003971b3ada43a3f65e5392d31ba3fe7da6cd8b4210968729769f22d3f0feb418db9e66f167413 + languageName: node + linkType: hard + "@babel/plugin-transform-optional-catch-binding@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-optional-catch-binding@npm:7.28.6" @@ -1386,6 +2135,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-optional-catch-binding@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-optional-catch-binding@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/0df7a9cdaec349e4b893cb26b7ad45454b3ac01de722ccea5e8b4332d15f3e1bc2c130a18367052ce195c957178ad773121c5d586454c438d890585fc548dacc + languageName: node + linkType: hard + "@babel/plugin-transform-optional-chaining@npm:^7.27.1, @babel/plugin-transform-optional-chaining@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-optional-chaining@npm:7.28.6" @@ -1398,6 +2158,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-optional-chaining@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-optional-chaining@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/71feacf9a7083030f4c69bf4e91db75f2fceae28e58c58b63db040006d908e15bc1e85a464f24ad659f17702e91a64eabbff9f1dd555ba33d78bb1af8a1d697a + languageName: node + linkType: hard + "@babel/plugin-transform-parameters@npm:^7.27.7": version: 7.27.7 resolution: "@babel/plugin-transform-parameters@npm:7.27.7" @@ -1409,6 +2181,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-parameters@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-parameters@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/ea1ff347e7b33b2483d18dcb9fb6c58f9819312f38235bf142e12f5355fcf77bb6640929734b12bd26b900c7abbb8cbd77ad06082d4c10d6e0e097ad016237e6 + languageName: node + linkType: hard + "@babel/plugin-transform-private-methods@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-private-methods@npm:7.28.6" @@ -1421,6 +2204,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-private-methods@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-private-methods@npm:7.29.7" + dependencies: + "@babel/helper-create-class-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/d0dc12fa478d05e346dfb02fad2ed99b308d9a7324bada71530a62dc1ccbf07b4c2581ac677b7196b3994f191ef1922199e2c8f33957b726e2019ce07b4ced0f + languageName: node + linkType: hard + "@babel/plugin-transform-private-property-in-object@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-private-property-in-object@npm:7.28.6" @@ -1434,6 +2229,19 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-private-property-in-object@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-private-property-in-object@npm:7.29.7" + dependencies: + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + "@babel/helper-create-class-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/6378b34725c6aab4b580cbb5d35ca45ba52213084d54c6672bc4282d86dc45937b8788ad450a9fb60ceb405e3c0d4b25e2804293c2509b54c5e0078babd56a8a + languageName: node + linkType: hard + "@babel/plugin-transform-property-literals@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-property-literals@npm:7.27.1" @@ -1445,52 +2253,63 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-display-name@npm:^7.28.0": - version: 7.28.0 - resolution: "@babel/plugin-transform-react-display-name@npm:7.28.0" +"@babel/plugin-transform-property-literals@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-property-literals@npm:7.29.7" dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" + "@babel/helper-plugin-utils": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/f5f86d2ad92be3e962158f344c2e385e23e2dfae7c8c7dc32138fb2cc46f63f5e50386c9f6c6fc16dbf1792c7bb650ad92c18203d0c2c0bd875bc28b0b80ef30 + checksum: 10c0/231ef97caeed1b79676978c9c04f203ba39f98da79097b733946aa29eb302d7cefc863d407f032a805080e8d20f70d7b2265c9c3ce634ca627d63c8f0f6e6e42 languageName: node linkType: hard -"@babel/plugin-transform-react-jsx-development@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-react-jsx-development@npm:7.27.1" +"@babel/plugin-transform-react-display-name@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-react-display-name@npm:7.29.7" dependencies: - "@babel/plugin-transform-react-jsx": "npm:^7.27.1" + "@babel/helper-plugin-utils": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/eb8c4b6a79dc5c49b41e928e2037e1ee0bbfa722e4fd74c0b7c0d11103c82c2c25c434000e1b051d534c7261ab5c92b6d1e85313bf1b26e37db3f051ae217b58 + checksum: 10c0/0a3b2461b189d6f4ca4f691bb4d1872bdebbac90d2e933a42a2fb22a0d26c81fa1ba7bc8128f3886b3f0f8a0ffe5aa0d7eaf4cd5b9610fc4967913a060501781 languageName: node linkType: hard -"@babel/plugin-transform-react-jsx@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-react-jsx@npm:7.27.1" +"@babel/plugin-transform-react-jsx-development@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-react-jsx-development@npm:7.29.7" dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.1" - "@babel/helper-module-imports": "npm:^7.27.1" - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/plugin-syntax-jsx": "npm:^7.27.1" - "@babel/types": "npm:^7.27.1" + "@babel/plugin-transform-react-jsx": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/1a08637c39fc78c9760dd4a3ed363fdbc762994bf83ed7872ad5bda0232fcd0fc557332f2ce36b522c0226dfd9cc8faac6b88eddda535f24825198a689e571af + checksum: 10c0/a2d44d068d35f8e6bc0437ba0da86526d4473491a43108caf77cba467a3ab522cbd09bcd8184b7a49f3d2b52e0883ad797ed2f91c090b857a80a6f383e88f449 languageName: node linkType: hard -"@babel/plugin-transform-react-pure-annotations@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-react-pure-annotations@npm:7.27.1" +"@babel/plugin-transform-react-jsx@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-react-jsx@npm:7.29.7" dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.1" - "@babel/helper-plugin-utils": "npm:^7.27.1" + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + "@babel/helper-module-imports": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/plugin-syntax-jsx": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/34bc090f4a7e460d82a851971b4d0f32e4bb519bafb927154f4174506283fe02b0f471fc20655c6050a8bf7b748bfa31c7e8f7d688849476d8266623554fbb28 + checksum: 10c0/ae6487c3deafcffda8a2c1b1eb77e0b7121630fa1a9646cecd73dbbdd8271532a0f7f0e8c01f69b6d39a36d8d79eb67e2d51031369c9055f18f7d8e70d9b5446 + languageName: node + linkType: hard + +"@babel/plugin-transform-react-pure-annotations@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-react-pure-annotations@npm:7.29.7" + dependencies: + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/ad85d57dfa105cd19dc5271f68c9a3e134ab96edce9b8c6b521fdb158499bc616df9d4ee9b386e9dc5532e67bd5682ba2047b88550699d7f1060eaaba80fb6d1 languageName: node linkType: hard @@ -1505,6 +2324,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-regenerator@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-regenerator@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/b991ab501c1c2c323398054211f8cd992f1db438b5b5d548d63dc74ff9591d52a50385160fdba2b62aae4f9610a321355a8ff911f1c4bd80dc74b555cad61468 + languageName: node + linkType: hard + "@babel/plugin-transform-regexp-modifiers@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-regexp-modifiers@npm:7.28.6" @@ -1517,6 +2347,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-regexp-modifiers@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-regexp-modifiers@npm:7.29.7" + dependencies: + "@babel/helper-create-regexp-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/1c6c79f87a7163d33c1c9d787d239e3981755a66822ef0d41a95ce12e76277a247eaeeab29e3cf79bb6288e37e48a18accc13c3a9c351c06e4303b1d9b8b37cb + languageName: node + linkType: hard + "@babel/plugin-transform-reserved-words@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-reserved-words@npm:7.27.1" @@ -1528,6 +2370,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-reserved-words@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-reserved-words@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/9eee586b7c7a9a34a659fd4d55ae8b156b03c8120a8459724062c212a59327ee8878168c0ce6bb5abd6c2a28aa87bc280b5180b1cbb2b03b12f7c71690f48718 + languageName: node + linkType: hard + "@babel/plugin-transform-runtime@npm:^7.12.1": version: 7.28.5 resolution: "@babel/plugin-transform-runtime@npm:7.28.5" @@ -1555,6 +2408,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-shorthand-properties@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-shorthand-properties@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/0f28300b873ce874c759917c7b22f68d5145a9c2d97df076e23dca99f8aa565dfceeb7e487af330e01d3e07d78f80d05b584aa411c60a63128b6a04a7633d45b + languageName: node + linkType: hard + "@babel/plugin-transform-spread@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-spread@npm:7.28.6" @@ -1567,6 +2431,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-spread@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-spread@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/a3a5639eac8cc4a9cb3d8b2098a0a341b36e3ae11d29729cac1042d07a31b5290c32fa2c12cd2f122bf581bd0a65fec6b7b6c7446eef5a81e657739a579c0d5c + languageName: node + linkType: hard + "@babel/plugin-transform-sticky-regex@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-sticky-regex@npm:7.27.1" @@ -1578,6 +2454,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-sticky-regex@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-sticky-regex@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/45b245f07841cc30a8e781a77bb09a2e86b2cc7f872785f315c92e2805825be43ac99f3ba63afcd4722307c648cb7d3f4f6f3e2b27d2d3e281414532a2601762 + languageName: node + linkType: hard + "@babel/plugin-transform-template-literals@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-template-literals@npm:7.27.1" @@ -1589,6 +2476,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-template-literals@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-template-literals@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/961c2b42eb6d88042c2c213ed3b11ee1d92783ba63e1afe7e1a3392ec1a810556b5eec369fc5097a4a81f73ef92fa5d245bcf8b15d442e62a086bb1f64b50c95 + languageName: node + linkType: hard + "@babel/plugin-transform-typeof-symbol@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-typeof-symbol@npm:7.27.1" @@ -1600,18 +2498,29 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-typescript@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/plugin-transform-typescript@npm:7.28.5" +"@babel/plugin-transform-typeof-symbol@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-typeof-symbol@npm:7.29.7" dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.3" - "@babel/helper-create-class-features-plugin": "npm:^7.28.5" - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1" - "@babel/plugin-syntax-typescript": "npm:^7.27.1" + "@babel/helper-plugin-utils": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/09e574ba5462e56452b4ceecae65e53c8e697a2d3559ce5d210bed10ac28a18aa69377e7550c30520eb29b40c417ee61997d5d58112657f22983244b78915a7c + checksum: 10c0/937408e0b9b2c8df6a6ce590421096fd793f77b417eb1f3f5ec560362e0a855d6ef66346c12cc7b337b8fa1d3ecf6b9b15674aa5ded54141adaed4cdeeed8528 + languageName: node + linkType: hard + +"@babel/plugin-transform-typescript@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-typescript@npm:7.29.7" + dependencies: + "@babel/helper-annotate-as-pure": "npm:^7.29.7" + "@babel/helper-create-class-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.29.7" + "@babel/plugin-syntax-typescript": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/8bf6a89c6827af6f11d4b189f1f97a64b8d754cc4caa5cbae16a6a8b113294d7f310dd40efd82e87ebcff2a1c683584b872d6d8960abe88d48f441d42f94c4d1 languageName: node linkType: hard @@ -1626,6 +2535,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-unicode-escapes@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-unicode-escapes@npm:7.29.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/65090012ede685913fb1020a585361dac366801d87caa577075924cac3c3ddd8e2a953bc6f75048dd480e62e529482e6ba68b945b0780087981c9ffff32e84f2 + languageName: node + linkType: hard + "@babel/plugin-transform-unicode-property-regex@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-unicode-property-regex@npm:7.28.6" @@ -1638,6 +2558,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-unicode-property-regex@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-unicode-property-regex@npm:7.29.7" + dependencies: + "@babel/helper-create-regexp-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/3a869cab02013209192da67ce911fa577eed03293331ee1d2c98498461f31fb5e99cbcb47f0c1c3211cf0c48fdd391060c77ac6a8f9978cd1f48e1096024cb73 + languageName: node + linkType: hard + "@babel/plugin-transform-unicode-regex@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-transform-unicode-regex@npm:7.27.1" @@ -1650,6 +2582,18 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-unicode-regex@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-unicode-regex@npm:7.29.7" + dependencies: + "@babel/helper-create-regexp-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/1bd788fd953e9b9a662d9a5ec78750f48daa6ef142a141cc96c38278dff49cf082288fd568acc184386f9accb89fa145cf016cc615ef19bd110ff2162a88cfd7 + languageName: node + linkType: hard + "@babel/plugin-transform-unicode-sets-regex@npm:^7.28.6": version: 7.28.6 resolution: "@babel/plugin-transform-unicode-sets-regex@npm:7.28.6" @@ -1662,7 +2606,19 @@ __metadata: languageName: node linkType: hard -"@babel/preset-env@npm:^7.11.0, @babel/preset-env@npm:^7.29.5": +"@babel/plugin-transform-unicode-sets-regex@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/plugin-transform-unicode-sets-regex@npm:7.29.7" + dependencies: + "@babel/helper-create-regexp-features-plugin": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/7e07f6435b2ba32de80460ddcacc4214c9380984c00fd41ddaa79e4df3f06c022c1283e86bcae7ee09081f4e020f0bb76b26b9f98dc5ea7f4647f559544fe5f9 + languageName: node + linkType: hard + +"@babel/preset-env@npm:^7.11.0": version: 7.29.5 resolution: "@babel/preset-env@npm:7.29.5" dependencies: @@ -1743,6 +2699,87 @@ __metadata: languageName: node linkType: hard +"@babel/preset-env@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/preset-env@npm:7.29.7" + dependencies: + "@babel/compat-data": "npm:^7.29.7" + "@babel/helper-compilation-targets": "npm:^7.29.7" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-validator-option": "npm:^7.29.7" + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "npm:^7.29.7" + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "npm:^7.29.7" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "npm:^7.29.7" + "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": "npm:^7.29.7" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "npm:^7.29.7" + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "npm:^7.29.7" + "@babel/plugin-proposal-private-property-in-object": "npm:7.21.0-placeholder-for-preset-env.2" + "@babel/plugin-syntax-import-assertions": "npm:^7.29.7" + "@babel/plugin-syntax-import-attributes": "npm:^7.29.7" + "@babel/plugin-syntax-unicode-sets-regex": "npm:^7.18.6" + "@babel/plugin-transform-arrow-functions": "npm:^7.29.7" + "@babel/plugin-transform-async-generator-functions": "npm:^7.29.7" + "@babel/plugin-transform-async-to-generator": "npm:^7.29.7" + "@babel/plugin-transform-block-scoped-functions": "npm:^7.29.7" + "@babel/plugin-transform-block-scoping": "npm:^7.29.7" + "@babel/plugin-transform-class-properties": "npm:^7.29.7" + "@babel/plugin-transform-class-static-block": "npm:^7.29.7" + "@babel/plugin-transform-classes": "npm:^7.29.7" + "@babel/plugin-transform-computed-properties": "npm:^7.29.7" + "@babel/plugin-transform-destructuring": "npm:^7.29.7" + "@babel/plugin-transform-dotall-regex": "npm:^7.29.7" + "@babel/plugin-transform-duplicate-keys": "npm:^7.29.7" + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "npm:^7.29.7" + "@babel/plugin-transform-dynamic-import": "npm:^7.29.7" + "@babel/plugin-transform-explicit-resource-management": "npm:^7.29.7" + "@babel/plugin-transform-exponentiation-operator": "npm:^7.29.7" + "@babel/plugin-transform-export-namespace-from": "npm:^7.29.7" + "@babel/plugin-transform-for-of": "npm:^7.29.7" + "@babel/plugin-transform-function-name": "npm:^7.29.7" + "@babel/plugin-transform-json-strings": "npm:^7.29.7" + "@babel/plugin-transform-literals": "npm:^7.29.7" + "@babel/plugin-transform-logical-assignment-operators": "npm:^7.29.7" + "@babel/plugin-transform-member-expression-literals": "npm:^7.29.7" + "@babel/plugin-transform-modules-amd": "npm:^7.29.7" + "@babel/plugin-transform-modules-commonjs": "npm:^7.29.7" + "@babel/plugin-transform-modules-systemjs": "npm:^7.29.7" + "@babel/plugin-transform-modules-umd": "npm:^7.29.7" + "@babel/plugin-transform-named-capturing-groups-regex": "npm:^7.29.7" + "@babel/plugin-transform-new-target": "npm:^7.29.7" + "@babel/plugin-transform-nullish-coalescing-operator": "npm:^7.29.7" + "@babel/plugin-transform-numeric-separator": "npm:^7.29.7" + "@babel/plugin-transform-object-rest-spread": "npm:^7.29.7" + "@babel/plugin-transform-object-super": "npm:^7.29.7" + "@babel/plugin-transform-optional-catch-binding": "npm:^7.29.7" + "@babel/plugin-transform-optional-chaining": "npm:^7.29.7" + "@babel/plugin-transform-parameters": "npm:^7.29.7" + "@babel/plugin-transform-private-methods": "npm:^7.29.7" + "@babel/plugin-transform-private-property-in-object": "npm:^7.29.7" + "@babel/plugin-transform-property-literals": "npm:^7.29.7" + "@babel/plugin-transform-regenerator": "npm:^7.29.7" + "@babel/plugin-transform-regexp-modifiers": "npm:^7.29.7" + "@babel/plugin-transform-reserved-words": "npm:^7.29.7" + "@babel/plugin-transform-shorthand-properties": "npm:^7.29.7" + "@babel/plugin-transform-spread": "npm:^7.29.7" + "@babel/plugin-transform-sticky-regex": "npm:^7.29.7" + "@babel/plugin-transform-template-literals": "npm:^7.29.7" + "@babel/plugin-transform-typeof-symbol": "npm:^7.29.7" + "@babel/plugin-transform-unicode-escapes": "npm:^7.29.7" + "@babel/plugin-transform-unicode-property-regex": "npm:^7.29.7" + "@babel/plugin-transform-unicode-regex": "npm:^7.29.7" + "@babel/plugin-transform-unicode-sets-regex": "npm:^7.29.7" + "@babel/preset-modules": "npm:0.1.6-no-external-plugins" + babel-plugin-polyfill-corejs2: "npm:^0.4.15" + babel-plugin-polyfill-corejs3: "npm:^0.14.0" + babel-plugin-polyfill-regenerator: "npm:^0.6.6" + core-js-compat: "npm:^3.48.0" + semver: "npm:^6.3.1" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/a6527c75e54c06c453e214496df83c2f6aa61da32d786e9a8921af05c4bc580c87ee64248122652df8d0f4b140d651b11282cd3dc3b61bb640b2a86b5812eabf + languageName: node + linkType: hard + "@babel/preset-modules@npm:0.1.6-no-external-plugins": version: 0.1.6-no-external-plugins resolution: "@babel/preset-modules@npm:0.1.6-no-external-plugins" @@ -1756,34 +2793,34 @@ __metadata: languageName: node linkType: hard -"@babel/preset-react@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/preset-react@npm:7.28.5" +"@babel/preset-react@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/preset-react@npm:7.29.7" dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/helper-validator-option": "npm:^7.27.1" - "@babel/plugin-transform-react-display-name": "npm:^7.28.0" - "@babel/plugin-transform-react-jsx": "npm:^7.27.1" - "@babel/plugin-transform-react-jsx-development": "npm:^7.27.1" - "@babel/plugin-transform-react-pure-annotations": "npm:^7.27.1" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-validator-option": "npm:^7.29.7" + "@babel/plugin-transform-react-display-name": "npm:^7.29.7" + "@babel/plugin-transform-react-jsx": "npm:^7.29.7" + "@babel/plugin-transform-react-jsx-development": "npm:^7.29.7" + "@babel/plugin-transform-react-pure-annotations": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/0d785e708ff301f4102bd4738b77e550e32f981e54dfd3de1191b4d68306bbb934d2d465fc78a6bc22fff0a6b3ce3195a53984f52755c4349e7264c7e01e8c7c + checksum: 10c0/a84e90805ce06dd5d7fcbfd8e32fe0c79966feba218e1d89097699ff5224d232e56191688ae264be2c6ef516523e3e2246949439e1e141d21def881a5752181f languageName: node linkType: hard -"@babel/preset-typescript@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/preset-typescript@npm:7.28.5" +"@babel/preset-typescript@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/preset-typescript@npm:7.29.7" dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/helper-validator-option": "npm:^7.27.1" - "@babel/plugin-syntax-jsx": "npm:^7.27.1" - "@babel/plugin-transform-modules-commonjs": "npm:^7.27.1" - "@babel/plugin-transform-typescript": "npm:^7.28.5" + "@babel/helper-plugin-utils": "npm:^7.29.7" + "@babel/helper-validator-option": "npm:^7.29.7" + "@babel/plugin-syntax-jsx": "npm:^7.29.7" + "@babel/plugin-transform-modules-commonjs": "npm:^7.29.7" + "@babel/plugin-transform-typescript": "npm:^7.29.7" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 10c0/b3d55548854c105085dd80f638147aa8295bc186d70492289242d6c857cb03a6c61ec15186440ea10ed4a71cdde7d495f5eb3feda46273f36b0ac926e8409629 + checksum: 10c0/40746a23a7ab46c0beb1c02d69883d9ffbe3043685cb3ae5363644391376b9261189fdad317191349e322c2c9bc550b031daa42470a1f8987362e4c56e492194 languageName: node linkType: hard @@ -1805,6 +2842,17 @@ __metadata: languageName: node linkType: hard +"@babel/template@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/template@npm:7.29.7" + dependencies: + "@babel/code-frame": "npm:^7.29.7" + "@babel/parser": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + checksum: 10c0/8bb7f900dcab0e9e1c5ffbc33ca10e0d26b7b2e2ca804becb73ee771b9c4ed6e2908a4ae4a14c08560febb45d2b6b9a173955e42ad404d05f8b04840a14d9c58 + languageName: node + linkType: hard + "@babel/traverse@npm:^7.27.1, @babel/traverse@npm:^7.28.3, @babel/traverse@npm:^7.28.5, @babel/traverse@npm:^7.28.6, @babel/traverse@npm:^7.29.0, @babel/traverse@npm:^7.4.5": version: 7.29.0 resolution: "@babel/traverse@npm:7.29.0" @@ -1820,6 +2868,21 @@ __metadata: languageName: node linkType: hard +"@babel/traverse@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/traverse@npm:7.29.7" + dependencies: + "@babel/code-frame": "npm:^7.29.7" + "@babel/generator": "npm:^7.29.7" + "@babel/helper-globals": "npm:^7.29.7" + "@babel/parser": "npm:^7.29.7" + "@babel/template": "npm:^7.29.7" + "@babel/types": "npm:^7.29.7" + debug: "npm:^4.3.1" + checksum: 10c0/e256a1fbdb956555b76f3c285b1e453f6bedec8b3afb61751d99d933efd11c7d79caf5ddf2493570058a9f7deaa1b48324380d7c1aa1443fd9508becbf56331a + languageName: node + linkType: hard + "@babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.5, @babel/types@npm:^7.28.6, @babel/types@npm:^7.29.0, @babel/types@npm:^7.4.4": version: 7.29.0 resolution: "@babel/types@npm:7.29.0" @@ -1830,6 +2893,16 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.29.7": + version: 7.29.7 + resolution: "@babel/types@npm:7.29.7" + dependencies: + "@babel/helper-string-parser": "npm:^7.29.7" + "@babel/helper-validator-identifier": "npm:^7.29.7" + checksum: 10c0/b6623994c69717fa27294f5fa46d59140338e2d86c6c1c13085c84ef7d53086ee357fbf4fe9abe3dd3da75734dc77c4c0df2f90fb29e667558bb3b3fb705e88f + languageName: node + linkType: hard + "@benrbray/prosemirror-math@npm:^0.2.2": version: 0.2.2 resolution: "@benrbray/prosemirror-math@npm:0.2.2" @@ -15041,13 +16114,13 @@ __metadata: "@aws-sdk/s3-presigned-post": "npm:^3.1053.0" "@aws-sdk/s3-request-presigner": "npm:^3.1053.0" "@aws-sdk/signature-v4-crt": "npm:^3.1053.0" - "@babel/cli": "npm:^7.28.6" - "@babel/core": "npm:^7.28.6" - "@babel/plugin-proposal-decorators": "npm:^7.28.6" - "@babel/plugin-transform-class-properties": "npm:^7.27.1" - "@babel/preset-env": "npm:^7.29.5" - "@babel/preset-react": "npm:^7.28.5" - "@babel/preset-typescript": "npm:^7.28.5" + "@babel/cli": "npm:^7.29.7" + "@babel/core": "npm:^7.29.7" + "@babel/plugin-proposal-decorators": "npm:^7.29.7" + "@babel/plugin-transform-class-properties": "npm:^7.29.7" + "@babel/preset-env": "npm:^7.29.7" + "@babel/preset-react": "npm:^7.29.7" + "@babel/preset-typescript": "npm:^7.29.7" "@benrbray/prosemirror-math": "npm:^0.2.2" "@bull-board/api": "npm:^6.21.3" "@bull-board/koa": "npm:^6.21.3" From e32b3772b23d169a083d9e2eca76ad157ca13f27 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:11:03 -0400 Subject: [PATCH 159/286] chore(deps-dev): bump vite-plugin-babel from 1.6.0 to 1.7.3 (#12561) * chore(deps-dev): bump vite-plugin-babel from 1.6.0 to 1.7.3 Bumps [vite-plugin-babel](https://github.com/owlsdepartment/vite-plugin-babel) from 1.6.0 to 1.7.3. - [Commits](https://github.com/owlsdepartment/vite-plugin-babel/commits) --- updated-dependencies: - dependency-name: vite-plugin-babel dependency-version: 1.7.3 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: Use include option for vite-plugin-babel TS transform vite-plugin-babel 1.7.0 added an `include` option defaulting to `/\.jsx?$/` (JS only) that is applied before `filter`, so .ts/.tsx files were no longer transformed by Babel and reached the parser with types intact. Switch to the `include` option to match TS files. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- package.json | 2 +- vitest.config.ts | 2 +- yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a77dd07ce0..20ebf596c6 100644 --- a/package.json +++ b/package.json @@ -373,7 +373,7 @@ "terser": "^5.48.0", "typescript": "^5.9.3", "unplugin-swc": "^1.5.9", - "vite-plugin-babel": "^1.6.0", + "vite-plugin-babel": "^1.7.3", "vite-tsconfig-paths": "^6.1.1", "vitest": "^4.1.5" }, diff --git a/vitest.config.ts b/vitest.config.ts index 00830a0e10..a50d810269 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -13,7 +13,7 @@ const fileMock = path.resolve(__dirname, "./__mocks__/fileMock.js"); const babelPlugin = () => babel({ - filter: /\.(t|j)sx?$/, + include: /\.(t|j)sx?$/, babelConfig: { babelrc: false, configFile: false, diff --git a/yarn.lock b/yarn.lock index d6b780eb58..5ae8256634 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16417,7 +16417,7 @@ __metadata: validator: "npm:13.15.35" vaul: "npm:^1.1.2" vite: "npm:rolldown-vite@7.3.1" - vite-plugin-babel: "npm:^1.6.0" + vite-plugin-babel: "npm:^1.7.3" vite-plugin-pwa: "npm:1.3.0" vite-tsconfig-paths: "npm:^6.1.1" vitest: "npm:^4.1.5" @@ -20959,13 +20959,13 @@ __metadata: languageName: node linkType: hard -"vite-plugin-babel@npm:^1.6.0": - version: 1.6.0 - resolution: "vite-plugin-babel@npm:1.6.0" +"vite-plugin-babel@npm:^1.7.3": + version: 1.7.3 + resolution: "vite-plugin-babel@npm:1.7.3" peerDependencies: "@babel/core": ^7.0.0 vite: ^2.7.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 10c0/7484bff317cdb988a65613a1c788cd6b9682df66f5cf5226831898678f2811c4d14a8a14519b15c9896b8e8483e9b4b4d5fb519dab3bb497e0952ebc1911fd99 + checksum: 10c0/ff215f066461610c2f512e94e5e7c8c11ba807142d6f4f46e6430d11ff04c18621badb02ca984d2a0dbbcd3bc789454480c7d51fd0214d3f0d20f812e39dd9cd languageName: node linkType: hard From 3a442ec5d345165d2ebc8bf5ebd9a49191bec5d5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 2 Jun 2026 22:11:24 -0400 Subject: [PATCH 160/286] closes #12552 (#12565) --- app/components/Menu/DropdownMenu.tsx | 9 ++++++++- app/menus/CommentMenu.tsx | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/components/Menu/DropdownMenu.tsx b/app/components/Menu/DropdownMenu.tsx index 11278004e9..bf2c6572a7 100644 --- a/app/components/Menu/DropdownMenu.tsx +++ b/app/components/Menu/DropdownMenu.tsx @@ -33,6 +33,12 @@ type Props = { align?: "start" | "end"; /** ARIA label for the menu */ ariaLabel: string; + /** + * Whether the menu should lock page scroll and trap focus while open. + * Defaults to true. Set to false to avoid the scrollbar-removal layout + * shift when the menu lives inside a scrollable container. + */ + modal?: boolean; /** Additional component to display at the bottom of the top-level menu */ append?: React.ReactNode; /** Callback when menu is opened */ @@ -50,6 +56,7 @@ export const DropdownMenu = observer( children, align = "start", ariaLabel, + modal = true, append, onOpen, onClose, @@ -116,7 +123,7 @@ export const DropdownMenu = observer( return ( <MenuProvider variant="dropdown"> - <Menu open={open} onOpenChange={handleOpenChange}> + <Menu open={open} onOpenChange={handleOpenChange} modal={modal}> <MenuTrigger ref={ref} aria-label={ariaLabel} {...rest}> {children} </MenuTrigger> diff --git a/app/menus/CommentMenu.tsx b/app/menus/CommentMenu.tsx index b993bd2ae7..80fbaf2b35 100644 --- a/app/menus/CommentMenu.tsx +++ b/app/menus/CommentMenu.tsx @@ -91,6 +91,7 @@ function CommentMenu({ action={rootAction} align="end" ariaLabel={t("Comment options")} + modal={false} > <OverflowMenuButton className={className} /> </DropdownMenu> From a20c8e5371912672f92952ea9e62075c9aa79498 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:34:41 -0400 Subject: [PATCH 161/286] chore(deps): bump zod from 4.3.6 to 4.4.3 (#12563) * chore(deps): bump zod from 4.3.6 to 4.4.3 Bumps [zod](https://github.com/colinhacks/zod) from 4.3.6 to 4.4.3. - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](https://github.com/colinhacks/zod/compare/v4.3.6...v4.4.3) --- updated-dependencies: - dependency-name: zod dependency-version: 4.4.3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: Make files.create file param optional in schema for zod 4.4 zod 4.4 changed z.custom() to reject undefined. Since validate runs before multipart injects the file, validation failed with 400 on all files.create requests. Mark the field optional and guard in the handler. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- package.json | 4 +- plugins/storage/server/api/files.ts | 4 + plugins/storage/server/api/schema.ts | 2 +- yarn.lock | 1118 +------------------------- 4 files changed, 25 insertions(+), 1103 deletions(-) diff --git a/package.json b/package.json index 20ebf596c6..61d68e5f5a 100644 --- a/package.json +++ b/package.json @@ -273,7 +273,7 @@ "yauzl": "^3.3.1", "yazl": "^3.3.1", "yjs": "^13.6.31", - "zod": "^4.3.6" + "zod": "^4.4.3" }, "devDependencies": { "@babel/cli": "^7.29.7", @@ -382,7 +382,7 @@ "@types/koa": "2.15.1", "prosemirror-transform": "1.10.5", "prismjs": "1.30.0", - "zod": "^4.3.6", + "zod": "^4.4.3", "@types/markdown-it": "14.1.2", "ip-address@npm:10.1.0": "^10.2.0", "minimatch@npm:9.0.1": "9.0.9", diff --git a/plugins/storage/server/api/files.ts b/plugins/storage/server/api/files.ts index c2e4ef3a63..009ffccfd1 100644 --- a/plugins/storage/server/api/files.ts +++ b/plugins/storage/server/api/files.ts @@ -44,6 +44,10 @@ router.post( const { key } = ctx.input.body; const file = ctx.input.file; + if (!file) { + throw ValidationError("Request must include a file parameter"); + } + const attachment = await Attachment.findOne({ where: { key }, rejectOnEmpty: true, diff --git a/plugins/storage/server/api/schema.ts b/plugins/storage/server/api/schema.ts index ff58a72bd1..0b99e2841b 100644 --- a/plugins/storage/server/api/schema.ts +++ b/plugins/storage/server/api/schema.ts @@ -10,7 +10,7 @@ export const FilesCreateSchema = z.object({ .refine(ValidateKey.isValid, { message: ValidateKey.message }) .transform(ValidateKey.sanitize), }), - file: z.custom<formidable.File>(), + file: z.custom<formidable.File>().optional(), }); export type FilesCreateReq = z.infer<typeof FilesCreateSchema>; diff --git a/yarn.lock b/yarn.lock index 5ae8256634..b25f0ca8d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -555,18 +555,7 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.28.6, @babel/code-frame@npm:^7.29.0": - version: 7.29.0 - resolution: "@babel/code-frame@npm:7.29.0" - dependencies: - "@babel/helper-validator-identifier": "npm:^7.28.5" - js-tokens: "npm:^4.0.0" - picocolors: "npm:^1.1.1" - checksum: 10c0/d34cc504e7765dfb576a663d97067afb614525806b5cad1a5cc1a7183b916fec8ff57fa233585e3926fd5a9e6b31aae6df91aa81ae9775fb7a28f658d3346f0d - languageName: node - linkType: hard - -"@babel/code-frame@npm:^7.29.7": +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.29.7": version: 7.29.7 resolution: "@babel/code-frame@npm:7.29.7" dependencies: @@ -577,44 +566,14 @@ __metadata: languageName: node linkType: hard -"@babel/compat-data@npm:^7.28.6, @babel/compat-data@npm:^7.29.3": - version: 7.29.3 - resolution: "@babel/compat-data@npm:7.29.3" - checksum: 10c0/81bddd53ce1b1395576fbb7cb739631a976f6b421cd260e6cf2715a9691b9a0ec12ca5c4e1bb88088e60dc87875f6e4ef7fa8674f1dc96ae1bd7c357416605a7 - languageName: node - linkType: hard - -"@babel/compat-data@npm:^7.29.7": +"@babel/compat-data@npm:^7.28.6, @babel/compat-data@npm:^7.29.7": version: 7.29.7 resolution: "@babel/compat-data@npm:7.29.7" checksum: 10c0/47913f05e08a45a1c9df38c02b4b49e391005085b489432647a1abe112e5d9c75e3be8ea5972b7f6da4ec5d1339922ceb9ea02b8a25d4ed1cb8636e5261f344e languageName: node linkType: hard -"@babel/core@npm:^7.24.4": - version: 7.29.0 - resolution: "@babel/core@npm:7.29.0" - dependencies: - "@babel/code-frame": "npm:^7.29.0" - "@babel/generator": "npm:^7.29.0" - "@babel/helper-compilation-targets": "npm:^7.28.6" - "@babel/helper-module-transforms": "npm:^7.28.6" - "@babel/helpers": "npm:^7.28.6" - "@babel/parser": "npm:^7.29.0" - "@babel/template": "npm:^7.28.6" - "@babel/traverse": "npm:^7.29.0" - "@babel/types": "npm:^7.29.0" - "@jridgewell/remapping": "npm:^2.3.5" - convert-source-map: "npm:^2.0.0" - debug: "npm:^4.1.0" - gensync: "npm:^1.0.0-beta.2" - json5: "npm:^2.2.3" - semver: "npm:^6.3.1" - checksum: 10c0/5127d2e8e842ae409e11bcbb5c2dff9874abf5415e8026925af7308e903f4f43397341467a130490d1a39884f461bc2b67f3063bce0be44340db89687fd852aa - languageName: node - linkType: hard - -"@babel/core@npm:^7.29.7": +"@babel/core@npm:^7.24.4, @babel/core@npm:^7.29.7": version: 7.29.7 resolution: "@babel/core@npm:7.29.7" dependencies: @@ -637,19 +596,6 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.29.0": - version: 7.29.1 - resolution: "@babel/generator@npm:7.29.1" - dependencies: - "@babel/parser": "npm:^7.29.0" - "@babel/types": "npm:^7.29.0" - "@jridgewell/gen-mapping": "npm:^0.3.12" - "@jridgewell/trace-mapping": "npm:^0.3.28" - jsesc: "npm:^3.0.2" - checksum: 10c0/349086e6876258ef3fb2823030fee0f6c0eb9c3ebe35fc572e16997f8c030d765f636ddc6299edae63e760ea6658f8ee9a2edfa6d6b24c9a80c917916b973551 - languageName: node - linkType: hard - "@babel/generator@npm:^7.29.7": version: 7.29.7 resolution: "@babel/generator@npm:7.29.7" @@ -663,16 +609,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-annotate-as-pure@npm:^7.22.5, @babel/helper-annotate-as-pure@npm:^7.27.1, @babel/helper-annotate-as-pure@npm:^7.27.3": - version: 7.27.3 - resolution: "@babel/helper-annotate-as-pure@npm:7.27.3" - dependencies: - "@babel/types": "npm:^7.27.3" - checksum: 10c0/94996ce0a05b7229f956033e6dcd69393db2b0886d0db6aff41e704390402b8cdcca11f61449cb4f86cfd9e61b5ad3a73e4fa661eeed7846b125bd1c33dbc633 - languageName: node - linkType: hard - -"@babel/helper-annotate-as-pure@npm:^7.29.7": +"@babel/helper-annotate-as-pure@npm:^7.22.5, @babel/helper-annotate-as-pure@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-annotate-as-pure@npm:7.29.7" dependencies: @@ -681,20 +618,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-compilation-targets@npm:^7.27.1, @babel/helper-compilation-targets@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/helper-compilation-targets@npm:7.28.6" - dependencies: - "@babel/compat-data": "npm:^7.28.6" - "@babel/helper-validator-option": "npm:^7.27.1" - browserslist: "npm:^4.24.0" - lru-cache: "npm:^5.1.1" - semver: "npm:^6.3.1" - checksum: 10c0/3fcdf3b1b857a1578e99d20508859dbd3f22f3c87b8a0f3dc540627b4be539bae7f6e61e49d931542fe5b557545347272bbdacd7f58a5c77025a18b745593a50 - languageName: node - linkType: hard - -"@babel/helper-compilation-targets@npm:^7.29.7": +"@babel/helper-compilation-targets@npm:^7.28.6, @babel/helper-compilation-targets@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-compilation-targets@npm:7.29.7" dependencies: @@ -707,23 +631,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-create-class-features-plugin@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/helper-create-class-features-plugin@npm:7.28.6" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.3" - "@babel/helper-member-expression-to-functions": "npm:^7.28.5" - "@babel/helper-optimise-call-expression": "npm:^7.27.1" - "@babel/helper-replace-supers": "npm:^7.28.6" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1" - "@babel/traverse": "npm:^7.28.6" - semver: "npm:^6.3.1" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/0b62b46717891f4366006b88c9b7f277980d4f578c4c3789b7a4f5a2e09e121de4cda9a414ab403986745cd3ad1af3fe2d948c9f78ab80d4dc085afc9602af50 - languageName: node - linkType: hard - "@babel/helper-create-class-features-plugin@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-create-class-features-plugin@npm:7.29.7" @@ -741,20 +648,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-create-regexp-features-plugin@npm:^7.18.6, @babel/helper-create-regexp-features-plugin@npm:^7.27.1, @babel/helper-create-regexp-features-plugin@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/helper-create-regexp-features-plugin@npm:7.28.5" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.3" - regexpu-core: "npm:^6.3.1" - semver: "npm:^6.3.1" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/7af3d604cadecdb2b0d2cedd696507f02a53a58be0523281c2d6766211443b55161dde1e6c0d96ab16ddfd82a2607a2f792390caa24797e9733631f8aa86859f - languageName: node - linkType: hard - -"@babel/helper-create-regexp-features-plugin@npm:^7.29.7": +"@babel/helper-create-regexp-features-plugin@npm:^7.18.6, @babel/helper-create-regexp-features-plugin@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-create-regexp-features-plugin@npm:7.29.7" dependencies: @@ -782,13 +676,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-globals@npm:^7.28.0": - version: 7.28.0 - resolution: "@babel/helper-globals@npm:7.28.0" - checksum: 10c0/5a0cd0c0e8c764b5f27f2095e4243e8af6fa145daea2b41b53c0c1414fe6ff139e3640f4e2207ae2b3d2153a1abd346f901c26c290ee7cb3881dd922d4ee9232 - languageName: node - linkType: hard - "@babel/helper-globals@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-globals@npm:7.29.7" @@ -796,16 +683,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-member-expression-to-functions@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/helper-member-expression-to-functions@npm:7.28.5" - dependencies: - "@babel/traverse": "npm:^7.28.5" - "@babel/types": "npm:^7.28.5" - checksum: 10c0/4e6e05fbf4dffd0bc3e55e28fcaab008850be6de5a7013994ce874ec2beb90619cda4744b11607a60f8aae0227694502908add6188ceb1b5223596e765b44814 - languageName: node - linkType: hard - "@babel/helper-member-expression-to-functions@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-member-expression-to-functions@npm:7.29.7" @@ -816,17 +693,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.18.6, @babel/helper-module-imports@npm:^7.22.5, @babel/helper-module-imports@npm:^7.27.1, @babel/helper-module-imports@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/helper-module-imports@npm:7.28.6" - dependencies: - "@babel/traverse": "npm:^7.28.6" - "@babel/types": "npm:^7.28.6" - checksum: 10c0/b49d8d8f204d9dbfd5ac70c54e533e5269afb3cea966a9d976722b13e9922cc773a653405f53c89acb247d5aebdae4681d631a3ae3df77ec046b58da76eda2ac - languageName: node - linkType: hard - -"@babel/helper-module-imports@npm:^7.29.7": +"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.18.6, @babel/helper-module-imports@npm:^7.22.5, @babel/helper-module-imports@npm:^7.27.1, @babel/helper-module-imports@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-module-imports@npm:7.29.7" dependencies: @@ -836,19 +703,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-transforms@npm:^7.27.1, @babel/helper-module-transforms@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/helper-module-transforms@npm:7.28.6" - dependencies: - "@babel/helper-module-imports": "npm:^7.28.6" - "@babel/helper-validator-identifier": "npm:^7.28.5" - "@babel/traverse": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/6f03e14fc30b287ce0b839474b5f271e72837d0cafe6b172d759184d998fbee3903a035e81e07c2c596449e504f453463d58baa65b6f40a37ded5bec74620b2b - languageName: node - linkType: hard - "@babel/helper-module-transforms@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-module-transforms@npm:7.29.7" @@ -862,15 +716,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-optimise-call-expression@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/helper-optimise-call-expression@npm:7.27.1" - dependencies: - "@babel/types": "npm:^7.27.1" - checksum: 10c0/6b861e7fcf6031b9c9fc2de3cd6c005e94a459d6caf3621d93346b52774925800ca29d4f64595a5ceacf4d161eb0d27649ae385110ed69491d9776686fa488e6 - languageName: node - linkType: hard - "@babel/helper-optimise-call-expression@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-optimise-call-expression@npm:7.29.7" @@ -880,33 +725,13 @@ __metadata: languageName: node linkType: hard -"@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.18.6, @babel/helper-plugin-utils@npm:^7.27.1, @babel/helper-plugin-utils@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/helper-plugin-utils@npm:7.28.6" - checksum: 10c0/3f5f8acc152fdbb69a84b8624145ff4f9b9f6e776cb989f9f968f8606eb7185c5c3cfcf3ba08534e37e1e0e1c118ac67080610333f56baa4f7376c99b5f1143d - languageName: node - linkType: hard - -"@babel/helper-plugin-utils@npm:^7.29.7": +"@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.18.6, @babel/helper-plugin-utils@npm:^7.27.1, @babel/helper-plugin-utils@npm:^7.28.6, @babel/helper-plugin-utils@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-plugin-utils@npm:7.29.7" checksum: 10c0/380477a06133274a2759f9355929cb60a95e8b8fee624a1ae1fa349e1d1645b89daca456f72833f6d1062bffa12ee4271c5bf0cc5a61c0166cdc24c7591e2408 languageName: node linkType: hard -"@babel/helper-remap-async-to-generator@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/helper-remap-async-to-generator@npm:7.27.1" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.1" - "@babel/helper-wrap-function": "npm:^7.27.1" - "@babel/traverse": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/5ba6258f4bb57c7c9fa76b55f416b2d18c867b48c1af4f9f2f7cd7cc933fe6da7514811d08ceb4972f1493be46f4b69c40282b811d1397403febae13c2ec57b5 - languageName: node - linkType: hard - "@babel/helper-remap-async-to-generator@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-remap-async-to-generator@npm:7.29.7" @@ -920,19 +745,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-replace-supers@npm:^7.27.1, @babel/helper-replace-supers@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/helper-replace-supers@npm:7.28.6" - dependencies: - "@babel/helper-member-expression-to-functions": "npm:^7.28.5" - "@babel/helper-optimise-call-expression": "npm:^7.27.1" - "@babel/traverse": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/04663c6389551b99b8c3e7ba4e2638b8ca2a156418c26771516124c53083aa8e74b6a45abe5dd46360af79709a0e9c6b72c076d0eab9efecdd5aaf836e79d8d5 - languageName: node - linkType: hard - "@babel/helper-replace-supers@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-replace-supers@npm:7.29.7" @@ -946,16 +758,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-skip-transparent-expression-wrappers@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.27.1" - dependencies: - "@babel/traverse": "npm:^7.27.1" - "@babel/types": "npm:^7.27.1" - checksum: 10c0/f625013bcdea422c470223a2614e90d2c1cc9d832e97f32ca1b4f82b34bb4aa67c3904cb4b116375d3b5b753acfb3951ed50835a1e832e7225295c7b0c24dff7 - languageName: node - linkType: hard - "@babel/helper-skip-transparent-expression-wrappers@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.29.7" @@ -966,13 +768,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-string-parser@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/helper-string-parser@npm:7.27.1" - checksum: 10c0/8bda3448e07b5583727c103560bcf9c4c24b3c1051a4c516d4050ef69df37bb9a4734a585fe12725b8c2763de0a265aa1e909b485a4e3270b7cfd3e4dbe4b602 - languageName: node - linkType: hard - "@babel/helper-string-parser@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-string-parser@npm:7.29.7" @@ -980,13 +775,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/helper-validator-identifier@npm:7.28.5" - checksum: 10c0/42aaebed91f739a41f3d80b72752d1f95fd7c72394e8e4bd7cdd88817e0774d80a432451bcba17c2c642c257c483bf1d409dd4548883429ea9493a3bc4ab0847 - languageName: node - linkType: hard - "@babel/helper-validator-identifier@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-validator-identifier@npm:7.29.7" @@ -994,13 +782,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-option@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/helper-validator-option@npm:7.27.1" - checksum: 10c0/6fec5f006eba40001a20f26b1ef5dbbda377b7b68c8ad518c05baa9af3f396e780bdfded24c4eef95d14bb7b8fd56192a6ed38d5d439b97d10efc5f1a191d148 - languageName: node - linkType: hard - "@babel/helper-validator-option@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-validator-option@npm:7.29.7" @@ -1008,17 +789,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-wrap-function@npm:^7.27.1": - version: 7.28.3 - resolution: "@babel/helper-wrap-function@npm:7.28.3" - dependencies: - "@babel/template": "npm:^7.27.2" - "@babel/traverse": "npm:^7.28.3" - "@babel/types": "npm:^7.28.2" - checksum: 10c0/aecb8a457efd893dc3c6378ab9221d06197573fb2fe64afabe7923e7732607d59b07f4c5603909877d69bea3ee87025f4b1d8e4f0403ae0a07b14e9ce0bf355a - languageName: node - linkType: hard - "@babel/helper-wrap-function@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-wrap-function@npm:7.29.7" @@ -1030,16 +800,6 @@ __metadata: languageName: node linkType: hard -"@babel/helpers@npm:^7.28.6": - version: 7.29.2 - resolution: "@babel/helpers@npm:7.29.2" - dependencies: - "@babel/template": "npm:^7.28.6" - "@babel/types": "npm:^7.29.0" - checksum: 10c0/dab0e65b9318b2502a62c58bc0913572318595eec0482c31f0ad416b72636e6698a1d7c57cd2791d4528eb8c548bca88d338dc4d2a55a108dc1f6702f9bc5512 - languageName: node - linkType: hard - "@babel/helpers@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helpers@npm:7.29.7" @@ -1050,17 +810,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.28.6, @babel/parser@npm:^7.29.0": - version: 7.29.2 - resolution: "@babel/parser@npm:7.29.2" - dependencies: - "@babel/types": "npm:^7.29.0" - bin: - parser: ./bin/babel-parser.js - checksum: 10c0/e5a4e69e3ac7acdde995f37cf299a68458cfe7009dff66bd0962fd04920bef287201169006af365af479c08ff216bfefbb595e331f87f6ae7283858aebbc3317 - languageName: node - linkType: hard - "@babel/parser@npm:^7.29.7": version: 7.29.7 resolution: "@babel/parser@npm:7.29.7" @@ -1072,18 +821,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:7.28.5" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/traverse": "npm:^7.28.5" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/844b7c7e9eec6d858262b2f3d5af75d3a6bbd9d3ecc740d95271fbdd84985731674536f5d8ac98f2dc0e8872698b516e406636e4d0cb04b50afe471172095a53 - languageName: node - linkType: hard - "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:7.29.7" @@ -1096,17 +833,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/2cd7a55a856e5e59bbd9484247c092a41e0d9f966778e7019da324d9e0928892d26afc4fbb2ac3d76a3c5a631cd3cf0d72dd2653b44f634f6c663b9e6f80aacd - languageName: node - linkType: hard - "@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-bugfix-safari-class-field-initializer-scope@npm:7.29.7" @@ -1118,17 +844,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/cf29835498c4a25bd470908528919729a0799b2ec94e89004929a5532c94a5e4b1a49bc5d6673a22e5afe05d08465873e14ee3b28c42eb3db489cdf5ca47c680 - languageName: node - linkType: hard - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.29.7" @@ -1140,18 +855,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:^7.29.3": - version: 7.29.3 - resolution: "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:7.29.3" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/5c60605526e87d1bb200faa6c2fae606764bd675f3338c32924feac55ad98671ccb16f270112310a8667e50e4905d893993c4e2533a9bb53507e8fcc2f6893ad - languageName: node - linkType: hard - "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@npm:7.29.7" @@ -1164,19 +867,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1" - "@babel/plugin-transform-optional-chaining": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.13.0 - checksum: 10c0/eddcd056f76e198868cbff883eb148acfade8f0890973ab545295df0c08e39573a72e65372bcc0b0bfadba1b043fe1aea6b0907d0b4889453ac154c404194ebc - languageName: node - linkType: hard - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:7.29.7" @@ -1190,18 +880,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/traverse": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/f1a9194e8d1742081def7af748e9249eb5082c25d0ced292720a1f054895f99041c764a05f45af669a2c8898aeb79266058aedb0d3e1038963ad49be8288918a - languageName: node - linkType: hard - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@npm:7.29.7" @@ -1247,17 +925,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-import-assertions@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-syntax-import-assertions@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/f3b8bdccb9b4d3e3b9226684ca518e055399d05579da97dfe0160a38d65198cfe7dce809e73179d6463a863a040f980de32425a876d88efe4eda933d0d95982c - languageName: node - linkType: hard - "@babel/plugin-syntax-import-assertions@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-syntax-import-assertions@npm:7.29.7" @@ -1269,17 +936,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-import-attributes@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-syntax-import-attributes@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/1be160e2c426faa74e5be2e30e39e8d0d8c543063bd5d06cd804f8751b8fbcb82ce824ca7f9ce4b09c003693f6c06a11ce503b7e34d85e1a259631e4c3f72ad2 - languageName: node - linkType: hard - "@babel/plugin-syntax-import-attributes@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-syntax-import-attributes@npm:7.29.7" @@ -1291,18 +947,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.22.5": - version: 7.27.1 - resolution: "@babel/plugin-syntax-jsx@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/bc5afe6a458d5f0492c02a54ad98c5756a0c13bd6d20609aae65acd560a9e141b0876da5f358dce34ea136f271c1016df58b461184d7ae9c4321e0f98588bc84 - languageName: node - linkType: hard - -"@babel/plugin-syntax-jsx@npm:^7.29.7": +"@babel/plugin-syntax-jsx@npm:^7.22.5, @babel/plugin-syntax-jsx@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-syntax-jsx@npm:7.29.7" dependencies: @@ -1336,17 +981,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-arrow-functions@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-arrow-functions@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/19abd7a7d11eef58c9340408a4c2594503f6c4eaea1baa7b0e5fbdda89df097e50663edb3448ad2300170b39efca98a75e5767af05cad3b0facb4944326896a3 - languageName: node - linkType: hard - "@babel/plugin-transform-arrow-functions@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-arrow-functions@npm:7.29.7" @@ -1358,19 +992,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-async-generator-functions@npm:^7.29.0": - version: 7.29.0 - resolution: "@babel/plugin-transform-async-generator-functions@npm:7.29.0" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-remap-async-to-generator": "npm:^7.27.1" - "@babel/traverse": "npm:^7.29.0" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/4080fc5e7dad7761bfebbb4fbe06bdfeb3a8bf0c027bcb4373e59e6b3dc7c5002eca7cbb1afba801d6439df8f92f7bcb3fb862e8fbbe43a9e59bb5653dcc0568 - languageName: node - linkType: hard - "@babel/plugin-transform-async-generator-functions@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-async-generator-functions@npm:7.29.7" @@ -1384,19 +1005,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-async-to-generator@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-async-to-generator@npm:7.28.6" - dependencies: - "@babel/helper-module-imports": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-remap-async-to-generator": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/2eb0826248587df6e50038f36194a138771a7df22581020451c7779edeaf9ef39bf47c5b7a20ae2645af6416e8c896feeca273317329652e84abd79a4ab920ad - languageName: node - linkType: hard - "@babel/plugin-transform-async-to-generator@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-async-to-generator@npm:7.29.7" @@ -1410,17 +1018,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-block-scoped-functions@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-block-scoped-functions@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/3313130ba3bf0699baad0e60da1c8c3c2f0c2c0a7039cd0063e54e72e739c33f1baadfc9d8c73b3fea8c85dd7250c3964fb09c8e1fa62ba0b24a9fefe0a8dbde - languageName: node - linkType: hard - "@babel/plugin-transform-block-scoped-functions@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-block-scoped-functions@npm:7.29.7" @@ -1432,17 +1029,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-block-scoping@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-block-scoping@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/2e3e09e1f9770b56cef4dcbffddf262508fd03416072f815ac66b2b224a3a12cd285cfec12fc067f1add414e7db5ce6dafb5164a6e0fb1a728e6a97d0c6f6e9d - languageName: node - linkType: hard - "@babel/plugin-transform-block-scoping@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-block-scoping@npm:7.29.7" @@ -1454,18 +1040,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-class-properties@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-class-properties@npm:7.28.6" - dependencies: - "@babel/helper-create-class-features-plugin": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/c4327fcd730c239d9f173f9b695b57b801729e273b4848aef1f75818069dfd31d985d75175db188d947b9b1bbe5353dae298849042026a5e4fcf07582ff3f9f1 - languageName: node - linkType: hard - "@babel/plugin-transform-class-properties@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-class-properties@npm:7.29.7" @@ -1478,18 +1052,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-class-static-block@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-class-static-block@npm:7.28.6" - dependencies: - "@babel/helper-create-class-features-plugin": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.12.0 - checksum: 10c0/dbe9b1fd302ae41b73186e17ac8d8ecf625ebc2416a91f2dc8013977a1bdf21e6ea288a83f084752b412242f3866e789d4fddeb428af323fe35b60e0fae4f98c - languageName: node - linkType: hard - "@babel/plugin-transform-class-static-block@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-class-static-block@npm:7.29.7" @@ -1502,22 +1064,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-classes@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-classes@npm:7.28.6" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.3" - "@babel/helper-compilation-targets": "npm:^7.28.6" - "@babel/helper-globals": "npm:^7.28.0" - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-replace-supers": "npm:^7.28.6" - "@babel/traverse": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/dc22f1f6eadab17305128fbf9cc5f30e87a51a77dd0a6d5498097994e8a9b9a90ab298c11edf2342acbeaac9edc9c601cad72eedcf4b592cd465a787d7f41490 - languageName: node - linkType: hard - "@babel/plugin-transform-classes@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-classes@npm:7.29.7" @@ -1534,18 +1080,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-computed-properties@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-computed-properties@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/template": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/1e9893503ae6d651125701cc29450e87c0b873c8febebff19da75da9c40cfb7968c52c28bf948244e461110aeb7b3591f2cc199b7406ff74a24c50c7a5729f39 - languageName: node - linkType: hard - "@babel/plugin-transform-computed-properties@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-computed-properties@npm:7.29.7" @@ -1558,18 +1092,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-destructuring@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/plugin-transform-destructuring@npm:7.28.5" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/traverse": "npm:^7.28.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/288207f488412b23bb206c7c01ba143714e2506b72a9ec09e993f28366cc8188d121bde714659b3437984a86d2881d9b1b06de3089d5582823ccf2f3b3eaa2c4 - languageName: node - linkType: hard - "@babel/plugin-transform-destructuring@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-destructuring@npm:7.29.7" @@ -1582,18 +1104,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-dotall-regex@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-dotall-regex@npm:7.28.6" - dependencies: - "@babel/helper-create-regexp-features-plugin": "npm:^7.28.5" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/e2fb76b7ae99087cf4212013a3ca9dee07048f90f98fd6264855080fb6c3f169be11c9b8c9d8b26cf9a407e4d0a5fa6e103f7cef433a542b75cf7127c99d4f97 - languageName: node - linkType: hard - "@babel/plugin-transform-dotall-regex@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-dotall-regex@npm:7.29.7" @@ -1606,17 +1116,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-duplicate-keys@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-duplicate-keys@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/22a822e5342b7066f83eaedc4fd9bb044ac6bc68725484690b33ba04a7104980e43ea3229de439286cb8db8e7db4a865733a3f05123ab58a10f189f03553746f - languageName: node - linkType: hard - "@babel/plugin-transform-duplicate-keys@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-duplicate-keys@npm:7.29.7" @@ -1628,18 +1127,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:^7.29.0": - version: 7.29.0 - resolution: "@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:7.29.0" - dependencies: - "@babel/helper-create-regexp-features-plugin": "npm:^7.28.5" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/6f03d9e5e31a05b28555541be6e283407e08447a36be6ddf8068b3efa970411d832e04b1282e2b894baf89a3864ff7e7f1e36346652a8d983170c6d548555167 - languageName: node - linkType: hard - "@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-duplicate-named-capturing-groups-regex@npm:7.29.7" @@ -1652,17 +1139,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-dynamic-import@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-dynamic-import@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/8dcd3087aca134b064fc361d2cc34eec1f900f6be039b6368104afcef10bb75dea726bb18cabd046716b89b0edaa771f50189fa16bc5c5914a38cbcf166350f7 - languageName: node - linkType: hard - "@babel/plugin-transform-dynamic-import@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-dynamic-import@npm:7.29.7" @@ -1674,18 +1150,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-explicit-resource-management@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-explicit-resource-management@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/plugin-transform-destructuring": "npm:^7.28.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/e6ea28c26e058fe61ada3e70b0def1992dd5a44f5fc14d8e2c6a3a512fb4d4c6dc96a3e1d0b466d83db32a9101e0b02df94051e48d3140da115b8ea9f8a31f37 - languageName: node - linkType: hard - "@babel/plugin-transform-explicit-resource-management@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-explicit-resource-management@npm:7.29.7" @@ -1698,17 +1162,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-exponentiation-operator@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-exponentiation-operator@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/4572d955a50dbc9a652a19431b4bb822cb479ee6045f4e6df72659c499c13036da0a2adf650b07ca995f2781e80aa868943bea1e7bff1de3169ec3f0a73a902e - languageName: node - linkType: hard - "@babel/plugin-transform-exponentiation-operator@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-exponentiation-operator@npm:7.29.7" @@ -1720,17 +1173,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-export-namespace-from@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-export-namespace-from@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/d7165cad11f571a54c8d9263d6c6bf2b817aff4874f747cb51e6e49efb32f2c9b37a6850cdb5e3b81e0b638141bb77dc782a6ec1a94128859fbdf7767581e07c - languageName: node - linkType: hard - "@babel/plugin-transform-export-namespace-from@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-export-namespace-from@npm:7.29.7" @@ -1742,18 +1184,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-for-of@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-for-of@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/4635763173a23aae24480681f2b0996b4f54a0cb2368880301a1801638242e263132d1e8adbe112ab272913d1d900ee0d6f7dea79443aef9d3325168cd88b3fb - languageName: node - linkType: hard - "@babel/plugin-transform-for-of@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-for-of@npm:7.29.7" @@ -1766,19 +1196,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-function-name@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-function-name@npm:7.27.1" - dependencies: - "@babel/helper-compilation-targets": "npm:^7.27.1" - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/traverse": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/5abdc7b5945fbd807269dcc6e76e52b69235056023b0b35d311e8f5dfd6c09d9f225839798998fc3b663f50cf701457ddb76517025a0d7a5474f3fe56e567a4c - languageName: node - linkType: hard - "@babel/plugin-transform-function-name@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-function-name@npm:7.29.7" @@ -1792,17 +1209,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-json-strings@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-json-strings@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/ab1091798c58e6c0bb8a864ee2b727c400924592c6ed69797a26b4c205f850a935de77ad516570be0419c279a3d9f7740c2aa448762eb8364ea77a6a357a9653 - languageName: node - linkType: hard - "@babel/plugin-transform-json-strings@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-json-strings@npm:7.29.7" @@ -1814,17 +1220,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-literals@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-literals@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/c40dc3eb2f45a92ee476412314a40e471af51a0f51a24e91b85cef5fc59f4fe06758088f541643f07f949d2c67ee7bdce10e11c5ec56791ae09b15c3b451eeca - languageName: node - linkType: hard - "@babel/plugin-transform-literals@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-literals@npm:7.29.7" @@ -1836,17 +1231,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-logical-assignment-operators@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-logical-assignment-operators@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/4632a35453d2131f0be466681d0a33e3db44d868ff51ec46cd87e0ebd1e47c6a39b894f7d1c9b06f931addf6efa9d30e60c4cdedeb4f69d426f683e11f8490cf - languageName: node - linkType: hard - "@babel/plugin-transform-logical-assignment-operators@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-logical-assignment-operators@npm:7.29.7" @@ -1858,17 +1242,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-member-expression-literals@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-member-expression-literals@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/0874ccebbd1c6a155e5f6b3b29729fade1221b73152567c1af1e1a7c12848004dffecbd7eded6dc463955120040ae57c17cb586b53fb5a7a27fcd88177034c30 - languageName: node - linkType: hard - "@babel/plugin-transform-member-expression-literals@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-member-expression-literals@npm:7.29.7" @@ -1880,18 +1253,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-amd@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-modules-amd@npm:7.27.1" - dependencies: - "@babel/helper-module-transforms": "npm:^7.27.1" - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/76e86cd278b6a3c5b8cca8dfb3428e9cd0c81a5df7096e04c783c506696b916a9561386d610a9d846ef64804640e0bd818ea47455fed0ee89b7f66c555b29537 - languageName: node - linkType: hard - "@babel/plugin-transform-modules-amd@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-modules-amd@npm:7.29.7" @@ -1904,18 +1265,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-commonjs@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-modules-commonjs@npm:7.28.6" - dependencies: - "@babel/helper-module-transforms": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/7c45992797c6150644c8552feff4a016ba7bd6d59ff2b039ed969a9c5b20a6804cd9d21db5045fc8cca8ca7f08262497e354e93f8f2be6a1cdf3fbfa8c31a9b6 - languageName: node - linkType: hard - "@babel/plugin-transform-modules-commonjs@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-modules-commonjs@npm:7.29.7" @@ -1928,20 +1277,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-systemjs@npm:^7.29.4": - version: 7.29.4 - resolution: "@babel/plugin-transform-modules-systemjs@npm:7.29.4" - dependencies: - "@babel/helper-module-transforms": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-validator-identifier": "npm:^7.28.5" - "@babel/traverse": "npm:^7.29.0" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/1da94f89ef8ba1aa1501136a80eb4c010c6a19f5550e10db84677b3ccb7a4934c8098f2b5134def87cf513bf05747ffa523d33722a1ea5a5c8ef956e9136c4c2 - languageName: node - linkType: hard - "@babel/plugin-transform-modules-systemjs@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-modules-systemjs@npm:7.29.7" @@ -1956,18 +1291,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-umd@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-modules-umd@npm:7.27.1" - dependencies: - "@babel/helper-module-transforms": "npm:^7.27.1" - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/e5962a8874889da2ab1aa32eb93ec21d419c7423c766e4befb39b4bb512b9ad44b47837b6cd1c8f1065445cbbcc6dc2be10298ac6e734e5ca1059fc23698daed - languageName: node - linkType: hard - "@babel/plugin-transform-modules-umd@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-modules-umd@npm:7.29.7" @@ -1980,18 +1303,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-named-capturing-groups-regex@npm:^7.29.0": - version: 7.29.0 - resolution: "@babel/plugin-transform-named-capturing-groups-regex@npm:7.29.0" - dependencies: - "@babel/helper-create-regexp-features-plugin": "npm:^7.28.5" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/1904db22da7f2bc3e380cd2c0786bda330ee1b1b3efa3f5203d980708c4bfeb5daa4dff48d01692193040bcc5f275dbdc0c2eadc8b1eb1b6dfe363564ad6e898 - languageName: node - linkType: hard - "@babel/plugin-transform-named-capturing-groups-regex@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-named-capturing-groups-regex@npm:7.29.7" @@ -2004,17 +1315,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-new-target@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-new-target@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/9b0581412fcc5ab1b9a2d86a0c5407bd959391f0a1e77a46953fef9f7a57f3f4020d75f71098c5f9e5dcc680a87f9fd99b3205ab12e25ef8c19eed038c1e4b28 - languageName: node - linkType: hard - "@babel/plugin-transform-new-target@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-new-target@npm:7.29.7" @@ -2026,17 +1326,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-nullish-coalescing-operator@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-nullish-coalescing-operator@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/6607f2201d66ccb688f0b1db09475ef995837df19f14705da41f693b669f834c206147a854864ab107913d7b4f4748878b0cd9fe9ca8bfd1bee0c206fc027b49 - languageName: node - linkType: hard - "@babel/plugin-transform-nullish-coalescing-operator@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-nullish-coalescing-operator@npm:7.29.7" @@ -2048,17 +1337,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-numeric-separator@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-numeric-separator@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/191097d8d2753cdd16d1acca65a945d1645ab20b65655c2f5b030a9e38967a52e093dcb21ebf391e342222705c6ffe5dea15dafd6257f7b51b77fb64a830b637 - languageName: node - linkType: hard - "@babel/plugin-transform-numeric-separator@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-numeric-separator@npm:7.29.7" @@ -2070,21 +1348,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-object-rest-spread@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-object-rest-spread@npm:7.28.6" - dependencies: - "@babel/helper-compilation-targets": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/plugin-transform-destructuring": "npm:^7.28.5" - "@babel/plugin-transform-parameters": "npm:^7.27.7" - "@babel/traverse": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/f55334352d4fcde385f2e8a58836687e71ff668c9b6e4c34d52575bf2789cdde92d9d3116edba13647ac0bc3e51fb2a6d1e8fb822dce7e8123334b82600bc4c3 - languageName: node - linkType: hard - "@babel/plugin-transform-object-rest-spread@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-object-rest-spread@npm:7.29.7" @@ -2100,18 +1363,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-object-super@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-object-super@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - "@babel/helper-replace-supers": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/efa2d092ef55105deb06d30aff4e460c57779b94861188128489b72378bf1f0ab0f06a4a4d68b9ae2a59a79719fbb2d148b9a3dca19ceff9c73b1f1a95e0527c - languageName: node - linkType: hard - "@babel/plugin-transform-object-super@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-object-super@npm:7.29.7" @@ -2124,17 +1375,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-optional-catch-binding@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-optional-catch-binding@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/36e8face000ee65e478a55febf687ce9be7513ad498c60dfe585851555565e0c28e7cb891b3c59709318539ce46f7697d5f42130eb18f385cd47e47cfa297446 - languageName: node - linkType: hard - "@babel/plugin-transform-optional-catch-binding@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-optional-catch-binding@npm:7.29.7" @@ -2146,18 +1386,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-optional-chaining@npm:^7.27.1, @babel/plugin-transform-optional-chaining@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-optional-chaining@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/c159cc74115c2266be21791f192dd079e2aeb65c8731157e53b80fcefa41e8e28ad370021d4dfbdb31f25e5afa0322669a8eb2d032cd96e65ac37e020324c763 - languageName: node - linkType: hard - "@babel/plugin-transform-optional-chaining@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-optional-chaining@npm:7.29.7" @@ -2170,17 +1398,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-parameters@npm:^7.27.7": - version: 7.27.7 - resolution: "@babel/plugin-transform-parameters@npm:7.27.7" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/f2da3804e047d9f1cfb27be6c014e2c7f6cf5e1e38290d1cb3cb2607859e3d6facb4ee8c8c1e336e9fbb440091a174ce95ce156582d7e8bf9c0e735d11681f0f - languageName: node - linkType: hard - "@babel/plugin-transform-parameters@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-parameters@npm:7.29.7" @@ -2192,18 +1409,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-private-methods@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-private-methods@npm:7.28.6" - dependencies: - "@babel/helper-create-class-features-plugin": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/fb504e2bfdcf3f734d2a90ab20d61427c58385f57f950d3de6ff4e6d12dd4aa7d552147312d218367e129b7920dccfc3230ba554de861986cda38921bad84067 - languageName: node - linkType: hard - "@babel/plugin-transform-private-methods@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-private-methods@npm:7.29.7" @@ -2216,19 +1421,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-private-property-in-object@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-private-property-in-object@npm:7.28.6" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.27.3" - "@babel/helper-create-class-features-plugin": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/0f6bbc6ec3f93b556d3de7d56bf49335255fc4c43488e51a5025d6ee0286183fd3cf950ffcac1bbeed8a45777f860a49996455c8d3b4a04c3b1a5f28e697fe31 - languageName: node - linkType: hard - "@babel/plugin-transform-private-property-in-object@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-private-property-in-object@npm:7.29.7" @@ -2242,17 +1434,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-property-literals@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-property-literals@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/15713a87edd6db620d6e66eb551b4fbfff5b8232c460c7c76cedf98efdc5cd21080c97040231e19e06594c6d7dfa66e1ab3d0951e29d5814fb25e813f6d6209c - languageName: node - linkType: hard - "@babel/plugin-transform-property-literals@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-property-literals@npm:7.29.7" @@ -2313,17 +1494,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-regenerator@npm:^7.29.0": - version: 7.29.0 - resolution: "@babel/plugin-transform-regenerator@npm:7.29.0" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/86c7db9b97f85ee47c0fae0528802cbc06e5775e61580ee905335c16bb971270086764a3859873d9adcd7d0f913a5b93eb0dc271aec8fb9e93e090e4ac95e29e - languageName: node - linkType: hard - "@babel/plugin-transform-regenerator@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-regenerator@npm:7.29.7" @@ -2335,18 +1505,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-regexp-modifiers@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-regexp-modifiers@npm:7.28.6" - dependencies: - "@babel/helper-create-regexp-features-plugin": "npm:^7.28.5" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/97e36b086800f71694fa406abc00192e3833662f2bdd5f51c018bd0c95eef247c4ae187417c207d03a9c5374342eac0bb65a39112c431a9b23b09b1eda1562e5 - languageName: node - linkType: hard - "@babel/plugin-transform-regexp-modifiers@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-regexp-modifiers@npm:7.29.7" @@ -2359,17 +1517,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-reserved-words@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-reserved-words@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/e1a87691cce21a644a474d7c9a8107d4486c062957be32042d40f0a3d0cc66e00a3150989655019c255ff020d2640ac16aaf544792717d586f219f3bad295567 - languageName: node - linkType: hard - "@babel/plugin-transform-reserved-words@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-reserved-words@npm:7.29.7" @@ -2397,17 +1544,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-shorthand-properties@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-shorthand-properties@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/bd5544b89520a22c41a6df5ddac9039821d3334c0ef364d18b0ba9674c5071c223bcc98be5867dc3865cb10796882b7594e2c40dedaff38e1b1273913fe353e1 - languageName: node - linkType: hard - "@babel/plugin-transform-shorthand-properties@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-shorthand-properties@npm:7.29.7" @@ -2419,18 +1555,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-spread@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-spread@npm:7.28.6" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/bcac50e558d6f0c501cbce19ec197af558cef51fe3b3a6eba27276e323e57a5be28109b4264a5425ac12a67bf95d6af9c2a42b05e79c522ce913fb9529259d76 - languageName: node - linkType: hard - "@babel/plugin-transform-spread@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-spread@npm:7.29.7" @@ -2443,17 +1567,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-sticky-regex@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-sticky-regex@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/5698df2d924f0b1b7bdb7ef370e83f99ed3f0964eb3b9c27d774d021bee7f6d45f9a73e2be369d90b4aff1603ce29827f8743f091789960e7669daf9c3cda850 - languageName: node - linkType: hard - "@babel/plugin-transform-sticky-regex@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-sticky-regex@npm:7.29.7" @@ -2465,17 +1578,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-template-literals@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-template-literals@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/c90f403e42ef062b60654d1c122c70f3ec6f00c2f304b0931ebe6d0b432498ef8a5ef9266ddf00debc535f8390842207e44d3900eff1d2bab0cc1a700f03e083 - languageName: node - linkType: hard - "@babel/plugin-transform-template-literals@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-template-literals@npm:7.29.7" @@ -2487,17 +1589,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-typeof-symbol@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-typeof-symbol@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/a13c68015311fefa06a51830bc69d5badd06c881b13d5cf9ba04bf7c73e3fc6311cc889e18d9645ce2a64a79456dc9c7be88476c0b6802f62a686cb6f662ecd6 - languageName: node - linkType: hard - "@babel/plugin-transform-typeof-symbol@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-typeof-symbol@npm:7.29.7" @@ -2524,17 +1615,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-unicode-escapes@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-unicode-escapes@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/a6809e0ca69d77ee9804e0c1164e8a2dea5e40718f6dcf234aeddf7292e7414f7ee331d87f17eb6f160823a329d1d6751bd49b35b392ac4a6efc032e4d3038d8 - languageName: node - linkType: hard - "@babel/plugin-transform-unicode-escapes@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-unicode-escapes@npm:7.29.7" @@ -2546,18 +1626,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-unicode-property-regex@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-unicode-property-regex@npm:7.28.6" - dependencies: - "@babel/helper-create-regexp-features-plugin": "npm:^7.28.5" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/b25f8cde643f4f47e0fa4f7b5c552e2dfbb6ad0ce07cf40f7e8ae40daa9855ad855d76d4d6d010153b74e48c8794685955c92ca637c0da152ce5f0fa9e7c90fa - languageName: node - linkType: hard - "@babel/plugin-transform-unicode-property-regex@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-unicode-property-regex@npm:7.29.7" @@ -2570,18 +1638,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-unicode-regex@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/plugin-transform-unicode-regex@npm:7.27.1" - dependencies: - "@babel/helper-create-regexp-features-plugin": "npm:^7.27.1" - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/6abda1bcffb79feba6f5c691859cdbe984cc96481ea65d5af5ba97c2e843154005f0886e25006a37a2d213c0243506a06eaeafd93a040dbe1f79539016a0d17a - languageName: node - linkType: hard - "@babel/plugin-transform-unicode-regex@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-unicode-regex@npm:7.29.7" @@ -2594,18 +1650,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-unicode-sets-regex@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/plugin-transform-unicode-sets-regex@npm:7.28.6" - dependencies: - "@babel/helper-create-regexp-features-plugin": "npm:^7.28.5" - "@babel/helper-plugin-utils": "npm:^7.28.6" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/c03c8818736b138db73d1f7a96fbfa22d1994639164d743f0f00e6383d3b7b3144d333de960ff4afad0bddd0baaac257295e3316969eba995b1b6a1b4dec933e - languageName: node - linkType: hard - "@babel/plugin-transform-unicode-sets-regex@npm:^7.29.7": version: 7.29.7 resolution: "@babel/plugin-transform-unicode-sets-regex@npm:7.29.7" @@ -2618,88 +1662,7 @@ __metadata: languageName: node linkType: hard -"@babel/preset-env@npm:^7.11.0": - version: 7.29.5 - resolution: "@babel/preset-env@npm:7.29.5" - dependencies: - "@babel/compat-data": "npm:^7.29.3" - "@babel/helper-compilation-targets": "npm:^7.28.6" - "@babel/helper-plugin-utils": "npm:^7.28.6" - "@babel/helper-validator-option": "npm:^7.27.1" - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "npm:^7.28.5" - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "npm:^7.27.1" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "npm:^7.27.1" - "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": "npm:^7.29.3" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "npm:^7.27.1" - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "npm:^7.28.6" - "@babel/plugin-proposal-private-property-in-object": "npm:7.21.0-placeholder-for-preset-env.2" - "@babel/plugin-syntax-import-assertions": "npm:^7.28.6" - "@babel/plugin-syntax-import-attributes": "npm:^7.28.6" - "@babel/plugin-syntax-unicode-sets-regex": "npm:^7.18.6" - "@babel/plugin-transform-arrow-functions": "npm:^7.27.1" - "@babel/plugin-transform-async-generator-functions": "npm:^7.29.0" - "@babel/plugin-transform-async-to-generator": "npm:^7.28.6" - "@babel/plugin-transform-block-scoped-functions": "npm:^7.27.1" - "@babel/plugin-transform-block-scoping": "npm:^7.28.6" - "@babel/plugin-transform-class-properties": "npm:^7.28.6" - "@babel/plugin-transform-class-static-block": "npm:^7.28.6" - "@babel/plugin-transform-classes": "npm:^7.28.6" - "@babel/plugin-transform-computed-properties": "npm:^7.28.6" - "@babel/plugin-transform-destructuring": "npm:^7.28.5" - "@babel/plugin-transform-dotall-regex": "npm:^7.28.6" - "@babel/plugin-transform-duplicate-keys": "npm:^7.27.1" - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "npm:^7.29.0" - "@babel/plugin-transform-dynamic-import": "npm:^7.27.1" - "@babel/plugin-transform-explicit-resource-management": "npm:^7.28.6" - "@babel/plugin-transform-exponentiation-operator": "npm:^7.28.6" - "@babel/plugin-transform-export-namespace-from": "npm:^7.27.1" - "@babel/plugin-transform-for-of": "npm:^7.27.1" - "@babel/plugin-transform-function-name": "npm:^7.27.1" - "@babel/plugin-transform-json-strings": "npm:^7.28.6" - "@babel/plugin-transform-literals": "npm:^7.27.1" - "@babel/plugin-transform-logical-assignment-operators": "npm:^7.28.6" - "@babel/plugin-transform-member-expression-literals": "npm:^7.27.1" - "@babel/plugin-transform-modules-amd": "npm:^7.27.1" - "@babel/plugin-transform-modules-commonjs": "npm:^7.28.6" - "@babel/plugin-transform-modules-systemjs": "npm:^7.29.4" - "@babel/plugin-transform-modules-umd": "npm:^7.27.1" - "@babel/plugin-transform-named-capturing-groups-regex": "npm:^7.29.0" - "@babel/plugin-transform-new-target": "npm:^7.27.1" - "@babel/plugin-transform-nullish-coalescing-operator": "npm:^7.28.6" - "@babel/plugin-transform-numeric-separator": "npm:^7.28.6" - "@babel/plugin-transform-object-rest-spread": "npm:^7.28.6" - "@babel/plugin-transform-object-super": "npm:^7.27.1" - "@babel/plugin-transform-optional-catch-binding": "npm:^7.28.6" - "@babel/plugin-transform-optional-chaining": "npm:^7.28.6" - "@babel/plugin-transform-parameters": "npm:^7.27.7" - "@babel/plugin-transform-private-methods": "npm:^7.28.6" - "@babel/plugin-transform-private-property-in-object": "npm:^7.28.6" - "@babel/plugin-transform-property-literals": "npm:^7.27.1" - "@babel/plugin-transform-regenerator": "npm:^7.29.0" - "@babel/plugin-transform-regexp-modifiers": "npm:^7.28.6" - "@babel/plugin-transform-reserved-words": "npm:^7.27.1" - "@babel/plugin-transform-shorthand-properties": "npm:^7.27.1" - "@babel/plugin-transform-spread": "npm:^7.28.6" - "@babel/plugin-transform-sticky-regex": "npm:^7.27.1" - "@babel/plugin-transform-template-literals": "npm:^7.27.1" - "@babel/plugin-transform-typeof-symbol": "npm:^7.27.1" - "@babel/plugin-transform-unicode-escapes": "npm:^7.27.1" - "@babel/plugin-transform-unicode-property-regex": "npm:^7.28.6" - "@babel/plugin-transform-unicode-regex": "npm:^7.27.1" - "@babel/plugin-transform-unicode-sets-regex": "npm:^7.28.6" - "@babel/preset-modules": "npm:0.1.6-no-external-plugins" - babel-plugin-polyfill-corejs2: "npm:^0.4.15" - babel-plugin-polyfill-corejs3: "npm:^0.14.0" - babel-plugin-polyfill-regenerator: "npm:^0.6.6" - core-js-compat: "npm:^3.48.0" - semver: "npm:^6.3.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/9d70ed5235f5f210bc793cd3e47ae7b108356c6d86b4ef3b4f9718e6ed5ec011dcd3d994e3d211e05e755e9442558eeb4723570bd2df3db7ba5863eaa98303e3 - languageName: node - linkType: hard - -"@babel/preset-env@npm:^7.29.7": +"@babel/preset-env@npm:^7.11.0, @babel/preset-env@npm:^7.29.7": version: 7.29.7 resolution: "@babel/preset-env@npm:7.29.7" dependencies: @@ -2831,17 +1794,6 @@ __metadata: languageName: node linkType: hard -"@babel/template@npm:^7.27.2, @babel/template@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/template@npm:7.28.6" - dependencies: - "@babel/code-frame": "npm:^7.28.6" - "@babel/parser": "npm:^7.28.6" - "@babel/types": "npm:^7.28.6" - checksum: 10c0/66d87225ed0bc77f888181ae2d97845021838c619944877f7c4398c6748bcf611f216dfd6be74d39016af502bca876e6ce6873db3c49e4ac354c56d34d57e9f5 - languageName: node - linkType: hard - "@babel/template@npm:^7.29.7": version: 7.29.7 resolution: "@babel/template@npm:7.29.7" @@ -2853,22 +1805,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.27.1, @babel/traverse@npm:^7.28.3, @babel/traverse@npm:^7.28.5, @babel/traverse@npm:^7.28.6, @babel/traverse@npm:^7.29.0, @babel/traverse@npm:^7.4.5": - version: 7.29.0 - resolution: "@babel/traverse@npm:7.29.0" - dependencies: - "@babel/code-frame": "npm:^7.29.0" - "@babel/generator": "npm:^7.29.0" - "@babel/helper-globals": "npm:^7.28.0" - "@babel/parser": "npm:^7.29.0" - "@babel/template": "npm:^7.28.6" - "@babel/types": "npm:^7.29.0" - debug: "npm:^4.3.1" - checksum: 10c0/f63ef6e58d02a9fbf3c0e2e5f1c877da3e0bc57f91a19d2223d53e356a76859cbaf51171c9211c71816d94a0e69efa2732fd27ffc0e1bbc84b636e60932333eb - languageName: node - linkType: hard - -"@babel/traverse@npm:^7.29.7": +"@babel/traverse@npm:^7.29.7, @babel/traverse@npm:^7.4.5": version: 7.29.7 resolution: "@babel/traverse@npm:7.29.7" dependencies: @@ -2883,17 +1820,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.5, @babel/types@npm:^7.28.6, @babel/types@npm:^7.29.0, @babel/types@npm:^7.4.4": - version: 7.29.0 - resolution: "@babel/types@npm:7.29.0" - dependencies: - "@babel/helper-string-parser": "npm:^7.27.1" - "@babel/helper-validator-identifier": "npm:^7.28.5" - checksum: 10c0/23cc3466e83bcbfab8b9bd0edaafdb5d4efdb88b82b3be6728bbade5ba2f0996f84f63b1c5f7a8c0d67efded28300898a5f930b171bb40b311bca2029c4e9b4f - languageName: node - linkType: hard - -"@babel/types@npm:^7.29.7": +"@babel/types@npm:^7.29.7, @babel/types@npm:^7.4.4": version: 7.29.7 resolution: "@babel/types@npm:7.29.7" dependencies: @@ -16430,7 +15357,7 @@ __metadata: yauzl: "npm:^3.3.1" yazl: "npm:^3.3.1" yjs: "npm:^13.6.31" - zod: "npm:^4.3.6" + zod: "npm:^4.4.3" languageName: unknown linkType: soft @@ -18923,16 +17850,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.5, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.7.2": - version: 7.7.4 - resolution: "semver@npm:7.7.4" - bin: - semver: bin/semver.js - checksum: 10c0/5215ad0234e2845d4ea5bb9d836d42b03499546ddafb12075566899fc617f68794bb6f146076b6881d755de17d6c6cc73372555879ec7dce2c2feee947866ad2 - languageName: node - linkType: hard - -"semver@npm:^7.8.1": +"semver@npm:^7.3.5, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.7.2, semver@npm:^7.8.1": version: 7.8.1 resolution: "semver@npm:7.8.1" bin: @@ -21982,9 +20900,9 @@ __metadata: languageName: node linkType: hard -"zod@npm:^4.3.6": - version: 4.3.6 - resolution: "zod@npm:4.3.6" - checksum: 10c0/860d25a81ab41d33aa25f8d0d07b091a04acb426e605f396227a796e9e800c44723ed96d0f53a512b57be3d1520f45bf69c0cb3b378a232a00787a2609625307 +"zod@npm:^4.4.3": + version: 4.4.3 + resolution: "zod@npm:4.4.3" + checksum: 10c0/7ea31b558e88f9faf44f31dd185e2e1cbf51fed3081787fb96cc2534749b50c0acfc6da7f0922a7353ed092dd358c7d50c28ea96c94d04af64191bd33152eca3 languageName: node linkType: hard From 8464d995899c84917aad8d085a967776568748fc Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 3 Jun 2026 07:05:28 -0400 Subject: [PATCH 162/286] fix: Intermitent document highlighted (#12566) closes #12554 --- app/stores/UiStore.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/stores/UiStore.ts b/app/stores/UiStore.ts index 3c604a4157..5ecf48c046 100644 --- a/app/stores/UiStore.ts +++ b/app/stores/UiStore.ts @@ -264,6 +264,12 @@ class UiStore { @computed get activeCollectionId(): string | undefined { + // Derive from the active document so it resolves even if the collection + // loads after the document became active. + const activeDocument = this.getPrimaryActiveModel<Document>(Document); + if (activeDocument?.isActive && activeDocument.collectionId) { + return activeDocument.collectionId; + } return this.getPrimaryActiveModel<Collection>(Collection)?.id; } From c419c3ab63b55bc5c41fb31135ad2b704a82fe36 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 3 Jun 2026 07:32:11 -0400 Subject: [PATCH 163/286] Add admin interface to change user avatars (#12405) --- app/components/UserDialogs.tsx | 46 +++++++++++++++++++ app/hooks/useUserMenuActions.tsx | 23 ++++++++++ app/scenes/Settings/components/ImageInput.tsx | 21 +++++++-- shared/i18n/locales/en_US/translation.json | 8 ++-- 4 files changed, 91 insertions(+), 7 deletions(-) diff --git a/app/components/UserDialogs.tsx b/app/components/UserDialogs.tsx index db6ec7fd07..a6ce379f31 100644 --- a/app/components/UserDialogs.tsx +++ b/app/components/UserDialogs.tsx @@ -1,13 +1,17 @@ +import { observer } from "mobx-react"; import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; import { UserRole } from "@shared/types"; import { UserValidation } from "@shared/validations"; import type User from "~/models/User"; +import Button from "~/components/Button"; import ConfirmationDialog from "~/components/ConfirmationDialog"; +import Flex from "~/components/Flex"; import Input from "~/components/Input"; import useCurrentUser from "~/hooks/useCurrentUser"; import useStores from "~/hooks/useStores"; +import ImageInput from "~/scenes/Settings/components/ImageInput"; import { client } from "~/utils/ApiClient"; import Text from "./Text"; @@ -142,6 +146,48 @@ export function UserChangeNameDialog({ user, onSubmit }: Props) { ); } +export const UserChangeAvatarDialog = observer(function UserChangeAvatarDialog({ + user, + onSubmit, +}: Props) { + const { t } = useTranslation(); + + const handleAvatarChange = async (avatarUrl: string | null) => { + try { + await user.save({ avatarUrl }); + toast.success(t("Profile picture updated")); + } catch (err) { + toast.error(err.message); + } + }; + + const handleAvatarError = (error: string | null | undefined) => { + toast.error(error || t("Unable to upload new profile picture")); + }; + + return ( + <Flex column gap={16}> + <Flex justify="center"> + <ImageInput + alt={t("Profile picture")} + onSuccess={handleAvatarChange} + onError={handleAvatarError} + model={user} + showRemoveOption={false} + /> + </Flex> + <Flex justify="flex-end" gap={8}> + {user.avatarUrl && ( + <Button onClick={() => handleAvatarChange(null)} neutral> + {t("Remove")} + </Button> + )} + <Button onClick={onSubmit}>{t("Done")}</Button> + </Flex> + </Flex> + ); +}); + export function UserChangeEmailDialog({ user, onSubmit }: Props) { const { t } = useTranslation(); const actor = useCurrentUser(); diff --git a/app/hooks/useUserMenuActions.tsx b/app/hooks/useUserMenuActions.tsx index bd1b633ffe..a976c6c21e 100644 --- a/app/hooks/useUserMenuActions.tsx +++ b/app/hooks/useUserMenuActions.tsx @@ -20,6 +20,7 @@ import { UserSuspendDialog, UserChangeNameDialog, UserChangeEmailDialog, + UserChangeAvatarDialog, } from "~/components/UserDialogs"; /** @@ -33,6 +34,21 @@ export function useUserMenuActions(targetUser: User | null) { const { t } = useTranslation(); const can = usePolicy(targetUser ?? ({} as User)); + const openAvatarDialog = React.useCallback(() => { + if (!targetUser) { + return; + } + dialogs.openModal({ + title: t("Change profile picture"), + content: ( + <UserChangeAvatarDialog + user={targetUser} + onSubmit={dialogs.closeAllModals} + /> + ), + }); + }, [dialogs, t, targetUser]); + const openNameDialog = React.useCallback(() => { if (!targetUser) { return; @@ -127,6 +143,12 @@ export function useUserMenuActions(targetUser: User | null) { visible: can.demote || can.promote, children: roleChangeActions, }), + createAction({ + name: `${t("Change profile picture")}…`, + section: UserSection, + visible: can.update, + perform: openAvatarDialog, + }), createAction({ name: `${t("Change name")}…`, section: UserSection, @@ -177,6 +199,7 @@ export function useUserMenuActions(targetUser: User | null) { can.update, can.resendInvite, roleChangeActions, + openAvatarDialog, openNameDialog, openEmailDialog, resendInvitation, diff --git a/app/scenes/Settings/components/ImageInput.tsx b/app/scenes/Settings/components/ImageInput.tsx index e3bfa5b9f3..4d8d5d96c5 100644 --- a/app/scenes/Settings/components/ImageInput.tsx +++ b/app/scenes/Settings/components/ImageInput.tsx @@ -11,11 +11,24 @@ import type { Props as ImageUploadProps } from "./ImageUpload"; import ImageUpload from "./ImageUpload"; type Props = ImageUploadProps & { + /** The model whose avatar is displayed and updated by this input. */ model: IAvatar; + /** Alt text for the avatar image. */ alt: string; + /** + * Whether to render the inline "Remove" button when the model has an + * existing avatar. Defaults to true. + */ + showRemoveOption?: boolean; }; -export default function ImageInput({ model, onSuccess, alt, ...rest }: Props) { +export default function ImageInput({ + model, + onSuccess, + alt, + showRemoveOption = true, + ...rest +}: Props) { const { t } = useTranslation(); return ( @@ -29,7 +42,7 @@ export default function ImageInput({ model, onSuccess, alt, ...rest }: Props) { <Avatar model={model} size={AvatarSize.Upload} - variant={AvatarVariant.Square} + variant={AvatarVariant.Round} alt={alt} /> <Flex auto align="center" justify="center" className="upload"> @@ -37,7 +50,7 @@ export default function ImageInput({ model, onSuccess, alt, ...rest }: Props) { </Flex> </ImageUpload> </ImageBox> - {model.avatarUrl && ( + {model.avatarUrl && showRemoveOption && ( <Button onClick={() => onSuccess(null)} neutral> {t("Remove")} </Button> @@ -55,7 +68,7 @@ const ImageBox = styled(Flex)` ${avatarStyles}; position: relative; font-size: 14px; - border-radius: 8px; + border-radius: 50%; box-shadow: 0 0 0 1px ${s("backgroundSecondary")}; background: ${s("background")}; overflow: hidden; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index cc5585f8e1..891a2aa297 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -546,6 +546,10 @@ "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", + "Profile picture updated": "Profile picture updated", + "Unable to upload new profile picture": "Unable to upload new profile picture", + "Profile picture": "Profile picture", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Paste a link", "Delete embed": "Delete embed", "Delete image": "Delete image", - "Profile picture": "Profile picture", "Create a new doc": "Create a new doc", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Change name", "Change email": "Change email", "Suspend user": "Suspend user", @@ -1361,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "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.", From 0d50f0d60ac14b73c0a6e6e059fc7f4dd255534e Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 3 Jun 2026 23:24:32 -0400 Subject: [PATCH 164/286] fix: Do not close icon picker on choice (#12573) --- app/components/IconPicker/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/components/IconPicker/index.tsx b/app/components/IconPicker/index.tsx index 531187d786..00459e5c40 100644 --- a/app/components/IconPicker/index.tsx +++ b/app/components/IconPicker/index.tsx @@ -107,7 +107,6 @@ const IconPicker = ({ const handleIconChange = React.useCallback( (ic: string) => { - setOpen(false); const icType = determineIconType(ic); const finalColor = icType === IconType.SVG ? chosenColor : null; onChange(ic, finalColor); From a21ddc4999c2a110fce216b97a7f12e2f4338b42 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 3 Jun 2026 23:51:09 -0400 Subject: [PATCH 165/286] Add tagging of outgoing emails (#12570) * Add tagging of outgoing emails * Detect SES configured via well-known service key The isSES check only matched "amazonaws" in the host, so SES configured through SMTP_SERVICE (e.g. "SES" or "SES-US-EAST-1") was not detected and tagging headers were not applied. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/emails/mailer.tsx | 84 +++++++++++++++++++++++++++ server/emails/templates/BaseEmail.tsx | 1 + 2 files changed, 85 insertions(+) diff --git a/server/emails/mailer.tsx b/server/emails/mailer.tsx index c5a72fb1fb..0c6517a38c 100644 --- a/server/emails/mailer.tsx +++ b/server/emails/mailer.tsx @@ -12,17 +12,37 @@ import { baseStyles } from "./templates/components/EmailLayout"; const useTestEmailService = env.isDevelopment && !env.SMTP_USERNAME; type SendMailOptions = { + /** The email address being sent to. */ to: string; + /** The address the email is sent from. */ from: EmailAddress; + /** An address to set as the reply-to for the email. */ replyTo?: string; + /** A unique identifier for the message, used for threading. */ messageId?: string; + /** Message IDs this email is a reply to, used for threading. */ references?: string[]; + /** The subject line of the email. */ subject: string; + /** Preview text shown in email client list views. */ previewText?: string; + /** The plain-text version of the email body. */ text: string; + /** The React element rendered to produce the HTML body. */ component: JSX.Element; + /** Additional CSS to inject into the head of the email. */ headCSS?: string; + /** The URL used to unsubscribe from these emails. */ unsubscribeUrl?: string; + /** Tags used for reporting, where supported by the email provider. */ + tags?: EmailTags; +}; + +type EmailTags = { + /** The broad category of the email, e.g. "notification". */ + category: string; + /** The specific template name, e.g. "InviteEmail". */ + template: string; }; /** @@ -167,6 +187,7 @@ export class Mailer { references: data.references, inReplyTo: data.references?.at(-1), subject: data.subject, + headers: this.tagHeaders(data.tags), html, text: data.text, list: data.unsubscribeUrl @@ -200,6 +221,69 @@ export class Mailer { } }; + /** + * Builds the provider-specific headers used to tag a message for reporting. + * Each supported provider expects a different header name and format; for + * providers that do not support tagging, or when no tags are given, no + * headers are returned. + * + * @param tags The tags to apply to the message. + * @returns A map of headers to set on the message, or undefined. + */ + private tagHeaders( + tags?: EmailTags + ): Record<string, string | string[]> | undefined { + if (!tags) { + return undefined; + } + + // Mailgun: up to three tags via repeated X-Mailgun-Tag headers. + // https://documentation.mailgun.com/docs/mailgun/user-manual/tracking-messages/#tagging + if (this.isMailgun) { + return { "X-Mailgun-Tag": Object.values(tags).slice(0, 3) }; + } + + // SES: comma-separated name=value pairs via X-SES-MESSAGE-TAGS. + // https://docs.aws.amazon.com/ses/latest/dg/event-publishing-send-email.html + if (this.isSES) { + return { + "X-SES-MESSAGE-TAGS": Object.entries(tags) + .map(([name, value]) => `${name}=${value}`) + .join(", "), + }; + } + + // Postmark: a single tag per message via X-PM-Tag. + // https://postmarkapp.com/support/article/1117-add-link-tracking-to-a-message + if (this.isPostmark) { + return { "X-PM-Tag": tags.template }; + } + + return undefined; + } + + /** The configured SMTP host and service name, for provider detection. */ + private get provider(): string { + return `${env.SMTP_HOST ?? ""} ${env.SMTP_SERVICE ?? ""}`; + } + + /** Whether the configured SMTP provider is Mailgun. */ + private get isMailgun(): boolean { + return /mailgun/i.test(this.provider); + } + + /** Whether the configured SMTP provider is Amazon SES. */ + private get isSES(): boolean { + // Detected by the SES SMTP host (email-smtp.<region>.amazonaws.com) or a + // well-known Nodemailer service key (SES, SES-US-EAST-1, etc.). + return /amazonaws|(?:^|\s)ses\b/i.test(this.provider); + } + + /** Whether the configured SMTP provider is Postmark. */ + private get isPostmark(): boolean { + return /postmark/i.test(this.provider); + } + private getOptions(): SMTPTransport.Options { // nodemailer will use the service config to determine host/port if (env.SMTP_SERVICE) { diff --git a/server/emails/templates/BaseEmail.tsx b/server/emails/templates/BaseEmail.tsx index 85801c1c23..03fa1b3a3a 100644 --- a/server/emails/templates/BaseEmail.tsx +++ b/server/emails/templates/BaseEmail.tsx @@ -177,6 +177,7 @@ export default abstract class BaseEmail< text: this.renderAsText(data), headCSS: this.headCSS?.(data), unsubscribeUrl: this.unsubscribeUrl?.(data), + tags: { category: this.category, template: templateName }, }); Metrics.increment("email.sent", { templateName, From 4126b94f7c8ea70c883767a66663c7698d5b5351 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 3 Jun 2026 23:52:18 -0400 Subject: [PATCH 166/286] fix: Add gap between search input and New doc button on mobile (#12578) Co-authored-by: Claude <noreply@anthropic.com> --- app/components/InputSearchPage.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/components/InputSearchPage.tsx b/app/components/InputSearchPage.tsx index 6e898de5e9..d73601bb36 100644 --- a/app/components/InputSearchPage.tsx +++ b/app/components/InputSearchPage.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; import styled, { useTheme } from "styled-components"; +import breakpoint from "styled-components-breakpoint"; import { s } from "@shared/styles"; import { isModKey, @@ -117,6 +118,12 @@ function InputSearchPage({ const InputMaxWidth = styled(Input).attrs({ round: true })` max-width: min(calc(30vw + 20px), 100%); + + /* On mobile the input grows to fill the header, so add a gap before the + * adjacent action button (e.g. "New doc"). */ + ${breakpoint("mobile", "tablet")` + margin-inline-end: 8px; + `} `; const Shortcut = styled.span<{ $visible: boolean }>` From e9e565dc2b1817132a69c85c53b861fbb3991c3d Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 4 Jun 2026 08:24:51 -0400 Subject: [PATCH 167/286] fix: Access request logic for collection managers (#12579) * fix: Access request logic for collection managers * test: Exercise collection-manager path in access request regression tests Grant the non-workspace-admin manager a collection-level Admin membership instead of a direct document-level membership, so authorization flows through the collection-manager path being tested for #12567. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- .../api/accessRequests/accessRequests.test.ts | 90 ++++++++++++++++++- .../api/accessRequests/accessRequests.ts | 12 +-- 2 files changed, 95 insertions(+), 7 deletions(-) diff --git a/server/routes/api/accessRequests/accessRequests.test.ts b/server/routes/api/accessRequests/accessRequests.test.ts index 1173295911..2fed31a0ff 100644 --- a/server/routes/api/accessRequests/accessRequests.test.ts +++ b/server/routes/api/accessRequests/accessRequests.test.ts @@ -1,4 +1,4 @@ -import { DocumentPermission } from "@shared/types"; +import { CollectionPermission, DocumentPermission } from "@shared/types"; import { AccessRequest, UserMembership } from "@server/models"; import { AccessRequestStatus } from "@server/models/AccessRequest"; import { @@ -313,6 +313,54 @@ describe("#accessRequests.approve", () => { expect(membership?.permission).toEqual(DocumentPermission.ReadWrite); }); + it("should allow a document manager who is not a workspace admin to approve", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const manager = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + userId: manager.id, + permission: null, + }); + const document = await buildDocument({ + teamId: team.id, + createdById: manager.id, + collectionId: collection.id, + }); + + await UserMembership.create({ + userId: manager.id, + collectionId: collection.id, + createdById: manager.id, + permission: CollectionPermission.Admin, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + status: AccessRequestStatus.Pending, + }); + + const res = await server.post("/api/accessRequests.approve", manager, { + body: { + id: accessRequest.id, + permission: DocumentPermission.Read, + }, + }); + + expect(res.status).toEqual(200); + + const membership = await UserMembership.findOne({ + where: { + userId: requester.id, + documentId: document.id, + }, + }); + expect(membership).toBeTruthy(); + expect(membership?.permission).toEqual(DocumentPermission.Read); + }); + it("should not allow non-managers to approve requests", async () => { const team = await buildTeam(); const requester = await buildUser({ teamId: team.id }); @@ -461,6 +509,46 @@ describe("#accessRequests.dismiss", () => { expect(membership).toBeNull(); }); + it("should allow a document manager who is not a workspace admin to dismiss", async () => { + const team = await buildTeam(); + const requester = await buildUser({ teamId: team.id }); + const manager = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + userId: manager.id, + permission: null, + }); + const document = await buildDocument({ + teamId: team.id, + createdById: manager.id, + collectionId: collection.id, + }); + + await UserMembership.create({ + userId: manager.id, + collectionId: collection.id, + createdById: manager.id, + permission: CollectionPermission.Admin, + }); + + const accessRequest = await AccessRequest.create({ + documentId: document.id, + userId: requester.id, + teamId: team.id, + }); + + const res = await server.post("/api/accessRequests.dismiss", manager, { + body: { + id: accessRequest.id, + }, + }); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.status).toEqual(AccessRequestStatus.Dismissed); + expect(body.data.responderId).toEqual(manager.id); + }); + it("should not allow non-managers to dismiss requests", async () => { const team = await buildTeam(); const requester = await buildUser({ teamId: team.id }); diff --git a/server/routes/api/accessRequests/accessRequests.ts b/server/routes/api/accessRequests/accessRequests.ts index ffc8af0cac..e6dd152d8a 100644 --- a/server/routes/api/accessRequests/accessRequests.ts +++ b/server/routes/api/accessRequests/accessRequests.ts @@ -101,8 +101,6 @@ router.post( transaction, lock: { level: transaction.LOCK.UPDATE, of: AccessRequest }, }); - authorize(user, "update", accessRequest); - authorize(user, "read", accessRequest.user); if (accessRequest.status !== AccessRequestStatus.Pending) { throw InvalidRequestError("Access request has already been responded to"); @@ -111,8 +109,10 @@ router.post( const document = await Document.findByPk(accessRequest.documentId, { userId: user.id, transaction, + rejectOnEmpty: true, }); - authorize(user, "share", document); + authorize(user, "manageUsers", document); + authorize(user, "read", accessRequest.user); const membership = await UserMembership.findOne({ where: { @@ -157,14 +157,14 @@ router.post( transaction, lock: { level: transaction.LOCK.UPDATE, of: AccessRequest }, }); - authorize(user, "update", accessRequest); - authorize(user, "read", accessRequest.user); const document = await Document.findByPk(accessRequest.documentId, { userId: user.id, transaction, + rejectOnEmpty: true, }); - authorize(user, "share", document); + authorize(user, "manageUsers", document); + authorize(user, "read", accessRequest.user); if (accessRequest.status === AccessRequestStatus.Pending) { await accessRequest.dismiss(ctx); From 02c5c93bd884e43840fd55c2bc814be6d3c8fcfa Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 4 Jun 2026 09:13:50 -0400 Subject: [PATCH 168/286] Account for screen safe area in mobile drawer bottom padding (#12577) Co-authored-by: Claude <noreply@anthropic.com> --- app/components/primitives/Drawer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/primitives/Drawer.tsx b/app/components/primitives/Drawer.tsx index 9fdd6af6a4..d556d400d3 100644 --- a/app/components/primitives/Drawer.tsx +++ b/app/components/primitives/Drawer.tsx @@ -102,6 +102,7 @@ const StyledContent = styled(m.div)` const StyledInnerContent = styled(Flex)` padding: 6px; + padding-bottom: calc(6px + var(--sab, 0px)); height: 100%; `; From 2aff3907c587792b98b620ad3e1d32657f8ee782 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 4 Jun 2026 09:14:04 -0400 Subject: [PATCH 169/286] Make collection title and icon inline editable like documents (#12574) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Collection title/icon editing was gated by `isEditRoute && separateEditMode`, which meant that in the default inline editing mode (separateEditMode off) the title and icon were never editable inline — even though the collection description was. This diverged from documents and from the collection description editor. Align the Header editing gate with documents (DataLoader) and the Overview description editor: `isEditRoute || !separateEditMode`, so title and icon are seamlessly editable inline whenever the user has update permission. Co-authored-by: Claude <noreply@anthropic.com> --- app/scenes/Collection/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scenes/Collection/index.tsx b/app/scenes/Collection/index.tsx index 40646e22b1..39f2d72554 100644 --- a/app/scenes/Collection/index.tsx +++ b/app/scenes/Collection/index.tsx @@ -179,7 +179,7 @@ const CollectionScene = observer(function CollectionScene_() { <Notices collection={collection} /> <Header collection={collection} - isEditing={isEditRoute && !!user?.separateEditMode} + isEditing={isEditRoute || !user?.separateEditMode} /> <PinnedDocuments From ce3d710888486f8db21068e223d778ec43ed4e4e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 17:33:06 -0400 Subject: [PATCH 170/286] chore(deps): bump hono from 4.12.18 to 4.12.23 (#12584) Bumps [hono](https://github.com/honojs/hono) from 4.12.18 to 4.12.23. - [Release notes](https://github.com/honojs/hono/releases) - [Commits](https://github.com/honojs/hono/compare/v4.12.18...v4.12.23) --- updated-dependencies: - dependency-name: hono dependency-version: 4.12.23 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index b25f0ca8d6..b213a17b70 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11907,9 +11907,9 @@ __metadata: linkType: hard "hono@npm:^4.11.4": - version: 4.12.18 - resolution: "hono@npm:4.12.18" - checksum: 10c0/b0b9688fd9e41a1847b077d579dc0e92a28b67c247c6ee7d1e751c0bae269824c30c7773feff1a2874e40ea36a3d2f9d1fc5ba618a28ecdf2ca1b33ed2473864 + version: 4.12.23 + resolution: "hono@npm:4.12.23" + checksum: 10c0/58945bb3aeb16d710b4a6c2809ba02b86b7269f6a3a67e126fc81cee5e9ae8ad2d9aa553db03c4f1a104ec03e423072e33932cb23eb3bbc48774acc72fc9c346 languageName: node linkType: hard From 1cc10f5fffca7155c48e03ce406bf9fcbd87b52d Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 4 Jun 2026 23:30:55 -0400 Subject: [PATCH 171/286] fix: Increase valid user-supplied URL length to 1024 (#12585) * fix: Increase valid user-supplied URL length to 1024 * fix: Wrap URL length migration in a transaction Wrap the multi-column changeColumn operations in a transaction so a failure on any column rolls back the whole migration rather than leaving the database partially migrated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- .../components/WebhookSubscriptionForm.tsx | 7 +- plugins/webhooks/server/api/schema.ts | 4 + ...60604140753-increase-url-column-lengths.js | 106 ++++++++++++++++++ shared/validations.ts | 8 +- 4 files changed, 120 insertions(+), 5 deletions(-) create mode 100644 server/migrations/20260604140753-increase-url-column-lengths.js diff --git a/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx b/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx index 61d0fc24fd..74295b2b00 100644 --- a/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx +++ b/plugins/webhooks/client/components/WebhookSubscriptionForm.tsx @@ -7,6 +7,7 @@ import { useTranslation, Trans } from "react-i18next"; import styled from "styled-components"; import { randomString } from "@shared/random"; import { TeamPreference } from "@shared/types"; +import { WebhookSubscriptionValidation } from "@shared/validations"; import type WebhookSubscription from "~/models/WebhookSubscription"; import Button from "~/components/Button"; import Input from "~/components/Input"; @@ -229,6 +230,7 @@ function WebhookSubscriptionForm({ handleSubmit, webhookSubscription }: Props) { required flex pattern={isCloudHosted ? "https://.*" : "https?://.*"} + maxLength={WebhookSubscriptionValidation.maxUrlLength} placeholder="https://…" label={t("URL")} error={ @@ -238,7 +240,10 @@ function WebhookSubscriptionForm({ handleSubmit, webhookSubscription }: Props) { ) : undefined } - {...register("url", { required: true })} + {...register("url", { + required: true, + maxLength: WebhookSubscriptionValidation.maxUrlLength, + })} /> <Input flex diff --git a/plugins/webhooks/server/api/schema.ts b/plugins/webhooks/server/api/schema.ts index 9e3f995815..88c2fe3b2c 100644 --- a/plugins/webhooks/server/api/schema.ts +++ b/plugins/webhooks/server/api/schema.ts @@ -1,10 +1,14 @@ import { z } from "zod"; +import { WebhookSubscriptionValidation } from "@shared/validations"; import env from "@server/env"; import { WebhookSubscription } from "@server/models"; import { BaseSchema } from "@server/routes/api/schema"; const webhookUrl = z .url() + .max(WebhookSubscriptionValidation.maxUrlLength, { + error: `Webhook url must be ${WebhookSubscriptionValidation.maxUrlLength} characters or less`, + }) .refine((val) => !env.isCloudHosted || val.startsWith("https://"), { error: "Webhook url must use https", }); diff --git a/server/migrations/20260604140753-increase-url-column-lengths.js b/server/migrations/20260604140753-increase-url-column-lengths.js new file mode 100644 index 0000000000..450c6bda22 --- /dev/null +++ b/server/migrations/20260604140753-increase-url-column-lengths.js @@ -0,0 +1,106 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.sequelize.transaction(async (transaction) => { + await queryInterface.changeColumn( + "webhook_subscriptions", + "url", + { + type: Sequelize.STRING(1024), + allowNull: false, + }, + { transaction } + ); + await queryInterface.changeColumn( + "oauth_clients", + "developerUrl", + { + type: Sequelize.STRING(1024), + allowNull: true, + }, + { transaction } + ); + await queryInterface.changeColumn( + "oauth_clients", + "avatarUrl", + { + type: Sequelize.STRING(1024), + allowNull: true, + }, + { transaction } + ); + await queryInterface.changeColumn( + "oauth_clients", + "redirectUris", + { + type: Sequelize.ARRAY(Sequelize.STRING(1024)), + allowNull: false, + defaultValue: [], + }, + { transaction } + ); + await queryInterface.changeColumn( + "oauth_authorization_codes", + "redirectUri", + { + type: Sequelize.STRING(1024), + allowNull: false, + }, + { transaction } + ); + }); + }, + + async down(queryInterface, Sequelize) { + await queryInterface.sequelize.transaction(async (transaction) => { + await queryInterface.changeColumn( + "oauth_authorization_codes", + "redirectUri", + { + type: Sequelize.STRING(255), + allowNull: false, + }, + { transaction } + ); + await queryInterface.changeColumn( + "oauth_clients", + "redirectUris", + { + type: Sequelize.ARRAY(Sequelize.STRING(255)), + allowNull: false, + defaultValue: [], + }, + { transaction } + ); + await queryInterface.changeColumn( + "oauth_clients", + "avatarUrl", + { + type: Sequelize.STRING(255), + allowNull: true, + }, + { transaction } + ); + await queryInterface.changeColumn( + "oauth_clients", + "developerUrl", + { + type: Sequelize.STRING(255), + allowNull: true, + }, + { transaction } + ); + await queryInterface.changeColumn( + "webhook_subscriptions", + "url", + { + type: Sequelize.STRING(255), + allowNull: false, + }, + { transaction } + ); + }); + }, +}; diff --git a/shared/validations.ts b/shared/validations.ts index d97da1b1e7..612f6cc26f 100644 --- a/shared/validations.ts +++ b/shared/validations.ts @@ -89,13 +89,13 @@ export const OAuthClientValidation = { maxDeveloperNameLength: 100, /** The maximum length of the OAuth client developer URL */ - maxDeveloperUrlLength: 255, + maxDeveloperUrlLength: 1024, /** The maximum length of the OAuth client avatar URL */ - maxAvatarUrlLength: 255, + maxAvatarUrlLength: 1024, /** The maximum length of an OAuth client redirect URI */ - maxRedirectUriLength: 255, + maxRedirectUriLength: 1024, /** The allowed OAuth client types */ clientTypes: ["confidential", "public"] as const, @@ -170,7 +170,7 @@ export const WebhookSubscriptionValidation = { /** The maximum length of the webhook name */ maxNameLength: 255, /** The maximum length of the webhook url */ - maxUrlLength: 255, + maxUrlLength: 1024, }; export const EmojiValidation = { From bfddf4bb4c3da05e560a1b5669162f8a2862af07 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 4 Jun 2026 23:31:16 -0400 Subject: [PATCH 172/286] fix: Unhandled server error in MCP route (#12586) --- server/routes/mcp/index.test.ts | 11 +++++++++++ server/routes/mcp/index.ts | 31 ++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/server/routes/mcp/index.test.ts b/server/routes/mcp/index.test.ts index 4cdcd8231c..02c5e82481 100644 --- a/server/routes/mcp/index.test.ts +++ b/server/routes/mcp/index.test.ts @@ -92,6 +92,17 @@ describe("POST /mcp/", () => { expect(result?.serverInfo?.name).toEqual("outline"); }); + it("should return 202 for the notifications/initialized lifecycle message", async () => { + const { accessToken } = await buildOAuthUser(); + + const res = await server.post("/mcp/", { + headers: mcpHeaders(accessToken), + body: { jsonrpc: "2.0", method: "notifications/initialized" }, + }); + + expect(res.status).toEqual(202); + }); + it("should set the MCP flag on the user after a successful request", async () => { const { user, accessToken } = await buildOAuthUser(); expect(user.getFlag(UserFlag.MCP)).toEqual(0); diff --git a/server/routes/mcp/index.ts b/server/routes/mcp/index.ts index 36d81e56e3..c80aa1f58c 100644 --- a/server/routes/mcp/index.ts +++ b/server/routes/mcp/index.ts @@ -4,6 +4,7 @@ import Router from "koa-router"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; import type { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js"; +import { ErrorCode } from "@modelcontextprotocol/sdk/types.js"; import { TeamPreference } from "@shared/types"; import { NotFoundError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -113,7 +114,35 @@ router.post( }; ctx.respond = false; - await transport.handleRequest(ctx.req, ctx.res, ctx.request.body); + + // The SDK's handleRequest answers known protocol failures itself (4xx with a + // JSON-RPC body) via the transport. Anything that escapes here is unexpected. + try { + await transport.handleRequest(ctx.req, ctx.res, ctx.request.body); + } catch (error) { + Logger.error( + "MCP request handling failed", + error instanceof Error ? error : new Error(String(error)), + undefined, + ctx.req + ); + + if (!ctx.res.headersSent) { + ctx.res.writeHead(500, { "Content-Type": "application/json" }); + ctx.res.end( + JSON.stringify({ + jsonrpc: "2.0", + error: { + code: ErrorCode.InternalError, + message: "Internal server error", + }, + id: null, + }) + ); + } else { + ctx.res.end(); + } + } } ); From c808bed7122d392f92248d1db0b78720eba1e17f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 07:42:15 -0400 Subject: [PATCH 173/286] Add mobile drawer UI for FilterOptions component (#12576) * Render filter options as drawer popover on mobile Filter options on the search page (and other FilterOptions consumers) previously rendered as a Radix dropdown on all viewports. On mobile this now renders as a bottom-sheet Drawer, matching the popover style already used by context menus. https://claude.ai/code/session_01MSjTD67PWfGbwgNA5FFoSH * Fix filter drawer search input overlapping first option on mobile The Input wrapper uses flex: 0 (a 0% basis), which collapsed the search input inside the drawer's flex column so its content painted over the first list item. Use flex: none to retain the input's natural height. --------- Co-authored-by: Claude <noreply@anthropic.com> --- app/components/FilterOptions.tsx | 161 +++++++++++++++++++++++-------- 1 file changed, 122 insertions(+), 39 deletions(-) diff --git a/app/components/FilterOptions.tsx b/app/components/FilterOptions.tsx index 049902be2e..30f1bd293c 100644 --- a/app/components/FilterOptions.tsx +++ b/app/components/FilterOptions.tsx @@ -1,16 +1,26 @@ import { deburr } from "es-toolkit/compat"; +import { CheckmarkIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; import { s } from "@shared/styles"; import type { FetchPageParams } from "~/stores/base/Store"; import Button, { Inner } from "~/components/Button"; +import Scrollable from "~/components/Scrollable"; import Text from "~/components/Text"; +import useMobile from "~/hooks/useMobile"; import Input, { NativeInput, Outline } from "./Input"; import type { PaginatedItem } from "./PaginatedList"; import PaginatedList from "./PaginatedList"; +import { + Drawer, + DrawerContent, + DrawerTitle, + DrawerTrigger, +} from "./primitives/Drawer"; import { MenuProvider } from "./primitives/Menu/MenuContext"; import { Menu, MenuContent, MenuTrigger, MenuButton } from "./primitives/Menu"; +import * as MenuComponents from "./primitives/components/Menu"; import { MenuIconWrapper } from "./primitives/components/Menu"; interface TFilterOption extends PaginatedItem { @@ -45,6 +55,7 @@ const FilterOptions = ({ ...rest }: Props) => { const { t } = useTranslation(); + const isMobile = useMobile(); const searchInputRef = React.useRef<HTMLInputElement>(null); const listRef = React.useRef<HTMLDivElement | null>(null); const [open, setOpen] = React.useState(false); @@ -58,23 +69,45 @@ const FilterOptions = ({ : ""; const renderItem = React.useCallback( - (option) => ( - <MenuButton - key={option.key} - icon={ - option.icon && showIcons ? ( - <MenuIconWrapper aria-hidden>{option.icon}</MenuIconWrapper> - ) : undefined - } - label={option.label} - onClick={() => { - onSelect(option.key); - setOpen(false); - }} - selected={selectedKeys.includes(option.key)} - /> - ), - [onSelect, showIcons, selectedKeys] + (option) => { + const handleClick = () => { + onSelect(option.key); + setOpen(false); + }; + + const icon = + option.icon && showIcons ? ( + <MenuIconWrapper aria-hidden>{option.icon}</MenuIconWrapper> + ) : undefined; + + // On mobile the options render inside a Drawer (bottom sheet) rather than + // a Radix dropdown menu, so use the raw menu components directly instead + // of the dropdown-bound MenuButton which expects a menu root context. + if (isMobile) { + return ( + <MenuComponents.MenuButton key={option.key} onClick={handleClick}> + {icon} + <MenuComponents.MenuLabel>{option.label}</MenuComponents.MenuLabel> + <MenuComponents.SelectedIconWrapper aria-hidden> + {selectedKeys.includes(option.key) ? ( + <CheckmarkIcon size={18} /> + ) : null} + </MenuComponents.SelectedIconWrapper> + </MenuComponents.MenuButton> + ); + } + + return ( + <MenuButton + key={option.key} + icon={icon} + label={option.label} + onClick={handleClick} + selected={selectedKeys.includes(option.key)} + /> + ); + }, + [onSelect, showIcons, selectedKeys, isMobile] ); const handleFilter = React.useCallback( @@ -169,39 +202,73 @@ const FilterOptions = ({ React.useEffect(() => { if (open) { - searchInputRef.current?.focus(); + // Avoid auto-focusing on mobile as it immediately pops the on-screen + // keyboard over the drawer. + if (!isMobile) { + searchInputRef.current?.focus(); + } } else { setQuery(""); } - }, [open]); + }, [open, isMobile]); const showFilterInput = showFilter || options.length > 10; const defaultLabel = rest.defaultLabel || t("Filter options"); + const trigger = ( + <StyledButton + className={className} + icon={selectedItems[0]?.key && selectedItems[0]?.icon} + disclosure={disclosure} + neutral + > + {selectedItems.length ? selectedLabel : defaultLabel} + </StyledButton> + ); + + const list = ( + <PaginatedList<TFilterOption> + listRef={listRef} + options={{ query, ...fetchQueryOptions }} + items={filteredOptions} + fetch={fetchQuery} + renderItem={renderItem} + onEscape={handleEscapeFromList} + heading={showFilterInput && !isMobile ? <Spacer /> : undefined} + empty={<Empty />} + /> + ); + + // On mobile render the options inside a Drawer (bottom sheet) to match the + // popover style used by context menus across the app. + if (isMobile) { + return ( + <Drawer open={open} onOpenChange={setOpen}> + <DrawerTrigger asChild>{trigger}</DrawerTrigger> + <DrawerContent aria-label={defaultLabel} aria-describedby={undefined}> + <DrawerTitle>{defaultLabel}</DrawerTitle> + {showFilterInput && ( + <MobileSearchInput + ref={searchInputRef} + value={query} + onChange={handleFilter} + onKeyDown={handleKeyDown} + placeholder={`${t("Filter")}…`} + margin={0} + /> + )} + <StyledScrollable hiddenScrollbars>{list}</StyledScrollable> + </DrawerContent> + </Drawer> + ); + } + return ( <MenuProvider variant="dropdown"> <Menu open={open} onOpenChange={setOpen}> - <MenuTrigger> - <StyledButton - className={className} - icon={selectedItems[0]?.key && selectedItems[0]?.icon} - disclosure={disclosure} - neutral - > - {selectedItems.length ? selectedLabel : defaultLabel} - </StyledButton> - </MenuTrigger> + <MenuTrigger>{trigger}</MenuTrigger> <MenuContent aria-label={defaultLabel} align="start"> - <PaginatedList<TFilterOption> - listRef={listRef} - options={{ query, ...fetchQueryOptions }} - items={filteredOptions} - fetch={fetchQuery} - renderItem={renderItem} - onEscape={handleEscapeFromList} - heading={showFilterInput ? <Spacer /> : undefined} - empty={<Empty />} - /> + {list} {showFilterInput && ( <SearchInput ref={searchInputRef} @@ -260,6 +327,22 @@ const SearchInput = styled(Input)` } `; +const MobileSearchInput = styled(Input)` + /* "none" keeps an auto basis so the input retains its natural height; a + flexible/0% basis would collapse it and overlap the list below. */ + flex: none; + margin: 0 6px 6px; + + ${NativeInput} { + /* 16px avoids iOS zooming the viewport when the input is focused. */ + font-size: 16px; + } +`; + +const StyledScrollable = styled(Scrollable)` + max-height: 75vh; +`; + export const StyledButton = styled(Button)` box-shadow: none; text-transform: none; From 985038525c4b22732fe48944bb9225a10b652d51 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 07:42:26 -0400 Subject: [PATCH 174/286] fix: Sticky table header styling in Safari (#12590) * fix: Sticky table header styling in Safari * feedback --- shared/editor/components/Styles.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 672f4907f5..b16353f0b9 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -2437,6 +2437,11 @@ table { > .${EditorStyleHelper.tableScrollable} > table > tbody > tr:first-child { position: relative; z-index: 2; + + > th { + // Safari requires the header cell to have raised z-index too + z-index: 2; + } } > .${EditorStyleHelper.tableScrollable} > table > tbody > tr:first-child > th { From 88de417a21c260e32ecc9c89d756661c54064603 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 08:27:10 -0400 Subject: [PATCH 175/286] Refactor drag-and-drop to support dragging from document lists (#12587) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Allow dragging documents from list views into the sidebar Previously the react-dnd provider was scoped to the sidebar, so only sidebar rows could be dragged. This lifts the DndProvider up to the authenticated layout so both the main content and the sidebar share a single drag-and-drop context, and makes DocumentListItem a drag source. Now any document in search results or paginated lists (Home, Drafts, Collections, etc.) can be dragged into the sidebar to move it between collections, reparent it under another document, star it, or archive it — reusing the existing sidebar drop targets. * Make the whole Starred section a drop target to star documents Previously the only "create star" drop targets in the Starred section were the thin cursors between items, so dragging a document onto the section header or a starred row showed the drop cursor but did nothing. Wrap the section in a catch-all drop target (mirroring the Archive section) so dropping anywhere in Starred stars the document, while the precise inter-item cursors still control ordering. A didDrop guard on useDropToCreateStar prevents the catch-all from double-starring when a nested cursor already handled the drop, and the hover highlight uses a shallow isOver check so it only lights up when not over a nested target. * Let document list drag ghost follow the cursor The sidebar drag placeholder tethers the ghost near its starting x so it stays aligned with the sidebar during reordering. When a drag starts out in the main content (a document list item), that clamp pinned the ghost to a narrow band, making it look stuck in a small area. Thread a constrainToSidebar flag through the drag item (true for sidebar drags, false for document list drags) and let the placeholder follow the cursor freely when the drag originated outside the sidebar. * Clarify constrainToSidebar JSDoc to match placeholder behavior The placeholder treats an unset flag as tethered (constrainToSidebar !== false), so external drags must set it explicitly to false rather than leaving it unset. Update the comment to reflect that. * css --- app/components/AuthenticatedLayout.tsx | 20 ++- app/components/DocumentListItem.tsx | 25 ++- app/components/Sidebar/App.tsx | 155 ++++++++---------- .../Sidebar/components/DragPlaceholder.tsx | 24 ++- app/components/Sidebar/components/Starred.tsx | 97 ++++++----- .../Sidebar/hooks/useDragAndDrop.tsx | 21 ++- 6 files changed, 202 insertions(+), 140 deletions(-) diff --git a/app/components/AuthenticatedLayout.tsx b/app/components/AuthenticatedLayout.tsx index 4aa0c01ba4..d04c171c7d 100644 --- a/app/components/AuthenticatedLayout.tsx +++ b/app/components/AuthenticatedLayout.tsx @@ -1,5 +1,7 @@ import { observer } from "mobx-react"; import * as React from "react"; +import { DndProvider } from "react-dnd"; +import { HTML5Backend } from "react-dnd-html5-backend"; import { useLocation } from "react-router-dom"; import ErrorSuspended from "~/scenes/Errors/ErrorSuspended"; import Layout from "~/components/Layout"; @@ -104,14 +106,16 @@ const AuthenticatedLayout: React.FC = ({ children }: Props) => { <DocumentContextProvider> <RightSidebarProvider> <PortalContext.Provider value={layoutRef.current}> - <Layout title={team.name} sidebar={sidebar} ref={layoutRef}> - <RegisterKeyDown trigger="n" handler={goToNewDocument} /> - <RegisterKeyDown trigger="t" handler={goToSearch} /> - <RegisterKeyDown trigger="/" handler={goToSearch} /> - {children} - <CommandBar /> - <NotificationBadge /> - </Layout> + <DndProvider backend={HTML5Backend}> + <Layout title={team.name} sidebar={sidebar} ref={layoutRef}> + <RegisterKeyDown trigger="n" handler={goToNewDocument} /> + <RegisterKeyDown trigger="t" handler={goToSearch} /> + <RegisterKeyDown trigger="/" handler={goToSearch} /> + {children} + <CommandBar /> + <NotificationBadge /> + </Layout> + </DndProvider> </PortalContext.Provider> </RightSidebarProvider> </DocumentContextProvider> diff --git a/app/components/DocumentListItem.tsx b/app/components/DocumentListItem.tsx index 8df3789913..2453e68750 100644 --- a/app/components/DocumentListItem.tsx +++ b/app/components/DocumentListItem.tsx @@ -5,6 +5,7 @@ import { import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation } from "react-i18next"; +import { mergeRefs } from "react-merge-refs"; import { Link } from "react-router-dom"; import { DocumentIcon } from "outline-icons"; import styled, { css, useTheme } from "styled-components"; @@ -27,6 +28,7 @@ import { useLocationSidebarContext } from "~/hooks/useLocationSidebarContext"; import DocumentMenu from "~/menus/DocumentMenu"; import { documentPath } from "~/utils/routeHelpers"; import { determineSidebarContext } from "./Sidebar/components/SidebarContext"; +import { useDragDocument } from "./Sidebar/hooks/useDragAndDrop"; import { ActionContextProvider } from "~/hooks/useActionContext"; import { useDocumentMenuAction } from "~/hooks/useDocumentMenuAction"; import { ContextMenu } from "./Menu/ContextMenu"; @@ -98,6 +100,23 @@ function DocumentListItem( const contextMenuAction = useDocumentMenuAction({ documentId: document.id }); + const [{ isDragging }, draggableRef] = useDragDocument( + document.asNavigationNode, + 0, + document, + false, + false + ); + + const mergedRef = React.useMemo( + () => + mergeRefs<HTMLAnchorElement>([ + itemRef, + draggableRef, + ] as React.Ref<HTMLAnchorElement>[]), + [itemRef, draggableRef] + ); + return ( <ActionContextProvider value={{ @@ -114,9 +133,10 @@ function DocumentListItem( onClose={handleMenuClose} > <DocumentLink - ref={itemRef} + ref={mergedRef} dir={document.dir} $isStarred={document.isStarred} + $isDragging={isDragging} $menuOpen={menuOpen} to={{ pathname: documentPath(document), @@ -227,6 +247,7 @@ const Actions = styled(EventBoundary)` const DocumentLink = styled(Link)<{ $isStarred?: boolean; + $isDragging?: boolean; $menuOpen?: boolean; }>` display: flex; @@ -237,6 +258,8 @@ const DocumentLink = styled(Link)<{ max-height: 50vh; width: calc(100vw - 8px); cursor: var(--pointer); + transition: opacity 250ms ease; + opacity: ${(props) => (props.$isDragging ? 0.1 : 1)}; &:focus-visible { outline: none; diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index eda645e509..703fcc2198 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -1,8 +1,6 @@ import { observer } from "mobx-react"; import { SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; -import { useEffect, useState, useCallback, useMemo, useRef } from "react"; -import { DndProvider } from "react-dnd"; -import { HTML5Backend } from "react-dnd-html5-backend"; +import { useEffect, useState, useCallback, useRef } from "react"; import { DragActiveProvider, SidebarScrollProvider, @@ -62,15 +60,6 @@ function AppSidebar() { } }, [documents, collections, user.isViewer]); - const [dndArea, setDndArea] = useState(); - const handleSidebarRef = useCallback((node) => setDndArea(node), []); - const html5Options = useMemo( - () => ({ - rootElement: dndArea, - }), - [dndArea] - ); - // Scrollable reads ref.current internally for its shadow/ResizeObserver // logic, so we must pass an object ref — a callback ref would leave those // reads undefined. We mirror the attached node into state so the @@ -82,83 +71,79 @@ function AppSidebar() { }, []); return ( - <Sidebar hidden={!ui.readyToShow} ref={handleSidebarRef}> - {dndArea && ( - <DndProvider backend={HTML5Backend} options={html5Options}> - <DragActiveProvider> - <DragPlaceholder /> + <Sidebar hidden={!ui.readyToShow}> + <DragActiveProvider> + <DragPlaceholder /> - <TeamMenu> - <SidebarButton - title={team.name} - image={<TeamLogo model={team} size={24} alt={t("Logo")} />} + <TeamMenu> + <SidebarButton + title={team.name} + image={<TeamLogo model={team} size={24} alt={t("Logo")} />} + > + {isMobile ? null : ( + <Tooltip + content={t("Toggle sidebar")} + shortcut={`${metaDisplay}+.`} > - {isMobile ? null : ( - <Tooltip - content={t("Toggle sidebar")} - shortcut={`${metaDisplay}+.`} - > - <ToggleButton - position="bottom" - image={<SidebarIcon />} - aria-label={ - ui.sidebarCollapsed - ? t("Expand sidebar") - : t("Collapse sidebar") - } - style={{ paddingInline: 4 }} - onClick={() => { - ui.toggleCollapsedSidebar(); - (document.activeElement as HTMLElement)?.blur(); - }} - /> - </Tooltip> - )} - </SidebarButton> - </TeamMenu> - <Overflow> - <Section> - <SidebarLink - to={homePath()} - icon={<HomeIcon />} - exact={false} - label={t("Home")} + <ToggleButton + position="bottom" + image={<SidebarIcon />} + aria-label={ + ui.sidebarCollapsed + ? t("Expand sidebar") + : t("Collapse sidebar") + } + style={{ paddingInline: 4 }} + onClick={() => { + ui.toggleCollapsedSidebar(); + (document.activeElement as HTMLElement)?.blur(); + }} /> - <SidebarLink - to={searchPath()} - icon={<SearchIcon />} - label={t("Search")} - exact={false} - onClick={handleSearchClick} - /> - {can.createDocument && <DraftsLink />} + </Tooltip> + )} + </SidebarButton> + </TeamMenu> + <Overflow> + <Section> + <SidebarLink + to={homePath()} + icon={<HomeIcon />} + exact={false} + label={t("Home")} + /> + <SidebarLink + to={searchPath()} + icon={<SearchIcon />} + label={t("Search")} + exact={false} + onClick={handleSearchClick} + /> + {can.createDocument && <DraftsLink />} + </Section> + </Overflow> + <Scrollable flex shadow ref={scrollRef}> + <SidebarScrollProvider value={scrollArea}> + <Section> + <Starred /> + </Section> + <Section> + <SharedWithMe /> + </Section> + <Section> + <Collections /> + </Section> + {can.createDocument && ( + <Section auto> + <ArchiveLink /> </Section> - </Overflow> - <Scrollable flex shadow ref={scrollRef}> - <SidebarScrollProvider value={scrollArea}> - <Section> - <Starred /> - </Section> - <Section> - <SharedWithMe /> - </Section> - <Section> - <Collections /> - </Section> - {can.createDocument && ( - <Section auto> - <ArchiveLink /> - </Section> - )} - <Section> - {can.createDocument && <TrashLink />} - <SidebarAction action={inviteUser} /> - </Section> - </SidebarScrollProvider> - </Scrollable> - </DragActiveProvider> - </DndProvider> - )} + )} + <Section> + {can.createDocument && <TrashLink />} + <SidebarAction action={inviteUser} /> + </Section> + </SidebarScrollProvider> + </Scrollable> + </DragActiveProvider> <HistoryNavigation /> </Sidebar> ); diff --git a/app/components/Sidebar/components/DragPlaceholder.tsx b/app/components/Sidebar/components/DragPlaceholder.tsx index f81cbdb3f0..b6c98972b0 100644 --- a/app/components/Sidebar/components/DragPlaceholder.tsx +++ b/app/components/Sidebar/components/DragPlaceholder.tsx @@ -19,7 +19,8 @@ const layerStyles: React.CSSProperties = { function getItemStyles( initialOffset: XYCoord | null, currentOffset: XYCoord | null, - sidebarWidth: number + sidebarWidth: number, + constrainToSidebar: boolean ) { if (!initialOffset || !currentOffset) { return { @@ -27,10 +28,14 @@ function getItemStyles( }; } const { y } = currentOffset; - const x = Math.max( - initialOffset.x, - Math.min(initialOffset.x + sidebarWidth / 4, currentOffset.x) - ); + // Sidebar drags keep the ghost tethered near its origin, but drags from + // outside the sidebar should follow the cursor freely. + const x = constrainToSidebar + ? Math.max( + initialOffset.x, + Math.min(initialOffset.x + sidebarWidth / 4, currentOffset.x) + ) + : currentOffset.x; const transform = `translate(${x}px, ${y}px)`; return { @@ -60,7 +65,14 @@ const DragPlaceholder = () => { return ( <div style={layerStyles}> - <div style={getItemStyles(initialOffset, currentOffset, ui.sidebarWidth)}> + <div + style={getItemStyles( + initialOffset, + currentOffset, + ui.sidebarWidth, + item.constrainToSidebar !== false + )} + > <GhostLink icon={item.icon} label={item.title || t("Untitled")} diff --git a/app/components/Sidebar/components/Starred.tsx b/app/components/Sidebar/components/Starred.tsx index eb5f87a7df..13015168fd 100644 --- a/app/components/Sidebar/components/Starred.tsx +++ b/app/components/Sidebar/components/Starred.tsx @@ -2,6 +2,8 @@ import { observer } from "mobx-react"; import { useEffect } from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import styled, { css } from "styled-components"; +import { s } from "@shared/styles"; import type Star from "~/models/Star"; import DelayedMount from "~/components/DelayedMount"; import Flex from "~/components/Flex"; @@ -29,6 +31,7 @@ function Starred() { ); const [reorderStarProps, dropToReorder] = useDropToReorderStar(); const [createStarProps, dropToStarRef] = useDropToCreateStar(); + const [sectionStarProps, dropToSectionRef] = useDropToCreateStar(); useEffect(() => { if (error) { @@ -42,46 +45,64 @@ function Starred() { return ( <Flex column> - <Header id="starred" title={t("Starred")}> - <Relative> - {reorderStarProps.isDragging && ( - <DropCursor - isActiveDrop={reorderStarProps.isOverCursor} - innerRef={dropToReorder} - position="top" - /> - )} - {createStarProps.isDragging && ( - <DropCursor - isActiveDrop={createStarProps.isOverCursor} - innerRef={dropToStarRef} - position="top" - /> - )} - {stars.orderedData - .slice(0, page * STARRED_PAGINATION_LIMIT) - .map((star) => ( - <StarredLink key={star.id} star={star} /> - ))} - {!loading && !end && ( - <SidebarLink - onClick={next} - label={`${t("Show more")}…`} - disabled={stars.isFetching} - depth={0} - /> - )} - {loading && ( - <Flex column> - <DelayedMount> - <PlaceholderCollections /> - </DelayedMount> - </Flex> - )} - </Relative> - </Header> + <Section + ref={dropToSectionRef} + $isActiveDrop={ + sectionStarProps.isDragging && sectionStarProps.isOverCursor + } + > + <Header id="starred" title={t("Starred")}> + <Relative> + {reorderStarProps.isDragging && ( + <DropCursor + isActiveDrop={reorderStarProps.isOverCursor} + innerRef={dropToReorder} + position="top" + /> + )} + {createStarProps.isDragging && ( + <DropCursor + isActiveDrop={createStarProps.isOverCursor} + innerRef={dropToStarRef} + position="top" + /> + )} + {stars.orderedData + .slice(0, page * STARRED_PAGINATION_LIMIT) + .map((star) => ( + <StarredLink key={star.id} star={star} /> + ))} + {!loading && !end && ( + <SidebarLink + onClick={next} + label={`${t("Show more")}…`} + disabled={stars.isFetching} + depth={0} + /> + )} + {loading && ( + <Flex column> + <DelayedMount> + <PlaceholderCollections /> + </DelayedMount> + </Flex> + )} + </Relative> + </Header> + </Section> </Flex> ); } +const Section = styled.div<{ $isActiveDrop?: boolean }>` + border-radius: 8px; + transition: background 100ms ease-in-out; + + ${(props) => + props.$isActiveDrop && + css` + background: ${s("sidebarActiveBackground")}; + `} +`; + export default observer(Starred); diff --git a/app/components/Sidebar/hooks/useDragAndDrop.tsx b/app/components/Sidebar/hooks/useDragAndDrop.tsx index 558132a05a..88e2896c16 100644 --- a/app/components/Sidebar/hooks/useDragAndDrop.tsx +++ b/app/components/Sidebar/hooks/useDragAndDrop.tsx @@ -22,6 +22,12 @@ import { useSidebarLabelAndIcon } from "./useSidebarLabelAndIcon"; export type DragObject = NavigationNode & { depth: number; collectionId: string; + /** + * Whether the drag ghost should stay tethered to the sidebar. Defaults to + * tethered when unset — the placeholder only lets the ghost follow the + * cursor when this is explicitly `false` (e.g. drags from a document list). + */ + constrainToSidebar?: boolean; }; function useHover( @@ -105,6 +111,12 @@ export function useDropToCreateStar(getIndex?: () => string) { >({ accept, drop: async (item, monitor) => { + // A more specific drop target (e.g. a reorder cursor) has already + // handled this drop, so avoid creating a duplicate star. + if (monitor.didDrop()) { + return; + } + const type = monitor.getItemType(); let model; @@ -122,7 +134,7 @@ export function useDropToCreateStar(getIndex?: () => string) { ); }, collect: (monitor) => ({ - isOverCursor: !!monitor.isOver(), + isOverCursor: !!monitor.isOver({ shallow: true }), isDragging: accept.includes(String(monitor.getItemType())), }), }); @@ -163,12 +175,16 @@ export function useDropToReorderStar(getIndex?: () => string) { * @param depth The depth of the node in the sidebar. * @param document The related Document model. * @param isEditing Whether the sidebar item is currently being edited. + * @param constrainToSidebar Whether the drag ghost should stay tethered to the + * sidebar. Defaults to true; pass false when dragging from outside the sidebar + * (e.g. a document list) so the ghost follows the cursor. */ export function useDragDocument( node: NavigationNode, depth: number, document?: Document, - isEditing?: boolean + isEditing?: boolean, + constrainToSidebar = true ) { const icon = document?.icon || node.icon || node.emoji; const color = document?.color || node.color; @@ -188,6 +204,7 @@ export function useDragDocument( <Icon initial={initial} value={icon} color={color} /> ) : undefined, collectionId: document?.collectionId || "", + constrainToSidebar, }) as DragObject, canDrag: () => !!document?.isActive && !isEditing, collect: (monitor) => ({ From e864684d569c81ca2b03c816d22e0c80e2ff6466 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 09:19:05 -0400 Subject: [PATCH 176/286] fix: Private IP lookup should be invalid request rather than internal error (#12592) --- server/utils/fetch.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/utils/fetch.ts b/server/utils/fetch.ts index c6fc3f95d2..6c59e6a555 100644 --- a/server/utils/fetch.ts +++ b/server/utils/fetch.ts @@ -11,7 +11,7 @@ import nodeFetch, { import { getProxyForUrl } from "proxy-from-env"; import tunnelAgent, { type TunnelAgent } from "tunnel-agent"; import env from "@server/env"; -import { InternalError } from "@server/errors"; +import { InvalidRequestError } from "@server/errors"; import Logger from "@server/logging/Logger"; import { capitalize } from "es-toolkit/compat"; import { @@ -184,9 +184,11 @@ export default async function fetch( if (err.name === "AbortError") { throw new Error(`Request timeout after ${timeout}ms`); } - if (!env.isCloudHosted && err.message?.startsWith("DNS lookup")) { - throw InternalError( - `${err.message}\n\nTo allow this request, add the IP address or CIDR range to the ALLOWED_PRIVATE_IP_ADDRESSES environment variable.` + if (err.message?.startsWith("DNS lookup")) { + throw InvalidRequestError( + env.isCloudHosted + ? err.message + : `${err.message}\n\nTo allow this request, add the IP address or CIDR range to the ALLOWED_PRIVATE_IP_ADDRESSES environment variable.` ); } throw err; From 0c0facc2a187f2e9caea95cf18115d8fc5ad6761 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 17:53:40 -0400 Subject: [PATCH 177/286] perf: Avoid empty webhook processor work via cached subscription lookup (#12593) * Avoid empty webhook processor work via cached subscription lookup WebhookProcessor ran for every event but most teams have no matching webhook subscription, costing an empty processor job and a database query per event. Cache a team's enabled subscriptions ({ id, events }) in Redis, invalidated by model lifecycle hooks, and add an optional BaseProcessor.shouldQueue hook consulted by the global event queue so the webhook processor only enqueues a job when a matching subscription exists. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * feedback --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- .../processors/WebhookProcessor.test.ts | 47 ++++++++ .../server/processors/WebhookProcessor.ts | 35 ++++-- server/models/WebhookSubscription.test.ts | 94 ++++++++++++++++ server/models/WebhookSubscription.ts | 104 +++++++++++++++--- server/queues/processors/BaseProcessor.ts | 23 ++++ server/services/worker.ts | 9 +- server/utils/RedisPrefixHelper.ts | 10 ++ 7 files changed, 299 insertions(+), 23 deletions(-) create mode 100644 server/models/WebhookSubscription.test.ts diff --git a/plugins/webhooks/server/processors/WebhookProcessor.test.ts b/plugins/webhooks/server/processors/WebhookProcessor.test.ts index e7c34edf97..dae000d664 100644 --- a/plugins/webhooks/server/processors/WebhookProcessor.test.ts +++ b/plugins/webhooks/server/processors/WebhookProcessor.test.ts @@ -86,4 +86,51 @@ describe("WebhookProcessor", () => { subscriptionId: subscriptionTwo.id, }); }); + + describe("shouldQueue", () => { + it("returns true when a matching subscription exists", async () => { + const subscription = await buildWebhookSubscription({ + url: "http://example.com", + events: ["users"], + }); + const event: UserEvent = { + name: "users.signin", + userId: subscription.createdById, + teamId: subscription.teamId, + actorId: subscription.createdById, + ip, + }; + + expect(await WebhookProcessor.shouldQueue(event)).toBe(true); + }); + + it("returns false when no subscription matches the event", async () => { + const subscription = await buildWebhookSubscription({ + url: "http://example.com", + events: ["documents.create"], + }); + const event: UserEvent = { + name: "users.signin", + userId: subscription.createdById, + teamId: subscription.teamId, + actorId: subscription.createdById, + ip, + }; + + expect(await WebhookProcessor.shouldQueue(event)).toBe(false); + }); + + it("returns false when the team has no subscriptions", async () => { + const user = await buildUser(); + const event: UserEvent = { + name: "users.signin", + userId: user.id, + teamId: user.teamId, + actorId: user.id, + ip, + }; + + expect(await WebhookProcessor.shouldQueue(event)).toBe(false); + }); + }); }); diff --git a/plugins/webhooks/server/processors/WebhookProcessor.ts b/plugins/webhooks/server/processors/WebhookProcessor.ts index a9c410cf02..1a4b14097f 100644 --- a/plugins/webhooks/server/processors/WebhookProcessor.ts +++ b/plugins/webhooks/server/processors/WebhookProcessor.ts @@ -6,20 +6,39 @@ import DeliverWebhookTask from "../tasks/DeliverWebhookTask"; export default class WebhookProcessor extends BaseProcessor { static applicableEvents: ["*"] = ["*"]; + /** + * Only queue an event when the team has an enabled webhook subscription that + * matches it. The vast majority of events belong to teams with no applicable + * subscriptions, so this avoids creating and running an empty job for them. + * + * @param event The event about to be queued. + * @returns true if a matching subscription exists. + */ + static async shouldQueue(event: Event): Promise<boolean> { + if (!event.teamId) { + return false; + } + + const subscriptions = await WebhookSubscription.findEnabledByTeamId( + event.teamId + ); + + return subscriptions.some((subscription) => + WebhookSubscription.matchEvent(subscription.events, event.name) + ); + } + async perform(event: Event) { if (!event.teamId) { return; } - const webhookSubscriptions = await WebhookSubscription.findAll({ - where: { - enabled: true, - teamId: event.teamId, - }, - }); + const subscriptions = await WebhookSubscription.findEnabledByTeamId( + event.teamId + ); - const applicableSubscriptions = webhookSubscriptions.filter((webhook) => - webhook.validForEvent(event) + const applicableSubscriptions = subscriptions.filter((subscription) => + WebhookSubscription.matchEvent(subscription.events, event.name) ); await Promise.all( diff --git a/server/models/WebhookSubscription.test.ts b/server/models/WebhookSubscription.test.ts new file mode 100644 index 0000000000..a6665f27a3 --- /dev/null +++ b/server/models/WebhookSubscription.test.ts @@ -0,0 +1,94 @@ +import { buildTeam, buildWebhookSubscription } from "@server/test/factories"; +import WebhookSubscription from "./WebhookSubscription"; + +describe("WebhookSubscription", () => { + describe("matchEvent", () => { + it("matches everything for a wildcard subscription", () => { + expect(WebhookSubscription.matchEvent(["*"], "users.signin")).toBe(true); + }); + + it("matches an exact event name", () => { + expect( + WebhookSubscription.matchEvent(["users.signin"], "users.signin") + ).toBe(true); + }); + + it("matches a namespace prefix", () => { + expect(WebhookSubscription.matchEvent(["users"], "users.signin")).toBe( + true + ); + }); + + it("does not match unrelated events", () => { + expect( + WebhookSubscription.matchEvent(["documents"], "users.signin") + ).toBe(false); + }); + }); + + describe("findEnabledByTeamId", () => { + it("returns only enabled subscriptions for the team", async () => { + const subscription = await buildWebhookSubscription({ + events: ["users"], + }); + const disabled = await buildWebhookSubscription({ + teamId: subscription.teamId, + events: ["documents"], + }); + await disabled.disable(); + + const result = await WebhookSubscription.findEnabledByTeamId( + subscription.teamId + ); + + expect(result).toHaveLength(1); + expect(result[0].id).toEqual(subscription.id); + expect(result[0].events).toEqual(["users"]); + }); + + it("returns an empty array when the team has no subscriptions", async () => { + const team = await buildTeam(); + + const result = await WebhookSubscription.findEnabledByTeamId(team.id); + + expect(result).toEqual([]); + }); + + it("reflects changes after a subscription is disabled", async () => { + const subscription = await buildWebhookSubscription({ + events: ["users"], + }); + + // prime the cache + const before = await WebhookSubscription.findEnabledByTeamId( + subscription.teamId + ); + expect(before).toHaveLength(1); + + await subscription.disable(); + + const after = await WebhookSubscription.findEnabledByTeamId( + subscription.teamId + ); + expect(after).toHaveLength(0); + }); + + it("reflects changes after a subscription is destroyed", async () => { + const subscription = await buildWebhookSubscription({ + events: ["users"], + }); + + const before = await WebhookSubscription.findEnabledByTeamId( + subscription.teamId + ); + expect(before).toHaveLength(1); + + await subscription.destroy(); + + const after = await WebhookSubscription.findEnabledByTeamId( + subscription.teamId + ); + expect(after).toHaveLength(0); + }); + }); +}); diff --git a/server/models/WebhookSubscription.ts b/server/models/WebhookSubscription.ts index 4c000adf22..9ec423e3ab 100644 --- a/server/models/WebhookSubscription.ts +++ b/server/models/WebhookSubscription.ts @@ -4,6 +4,7 @@ import type { InferAttributes, InferCreationAttributes, InstanceUpdateOptions, + Transaction, } from "sequelize"; import { Column, @@ -14,12 +15,19 @@ import { DataType, IsUrl, BeforeCreate, + AfterCreate, + AfterUpdate, + AfterDestroy, + AfterRestore, DefaultScope, AllowNull, } from "sequelize-typescript"; +import { Hour } from "@shared/utils/time"; import { WebhookSubscriptionValidation } from "@shared/validations"; import { ValidationError } from "@server/errors"; import type { Event } from "@server/types"; +import { CacheHelper } from "@server/utils/CacheHelper"; +import { RedisPrefixHelper } from "@server/utils/RedisPrefixHelper"; import Team from "./Team"; import User from "./User"; import ParanoidModel from "./base/ParanoidModel"; @@ -47,6 +55,60 @@ class WebhookSubscription extends ParanoidModel< > { static eventNamespace = "webhookSubscriptions"; + /** + * Returns the enabled webhook subscriptions for a team, caching the + * lightweight { id, events } projection in Redis to avoid a database query on + * every event. The cache is invalidated by model lifecycle hooks whenever a + * team's subscriptions change. + * + * @param teamId The team to load subscriptions for. + * @returns the enabled subscriptions' ids and subscribed event names. + */ + public static async findEnabledByTeamId( + teamId: string + ): Promise<Array<{ id: string; events: string[] }>> { + return ( + (await CacheHelper.getDataOrSet<Array<{ id: string; events: string[] }>>( + RedisPrefixHelper.getWebhookSubscriptionsKey(teamId), + async () => { + const subscriptions = await this.unscoped().findAll({ + attributes: ["id", "events"], + where: { enabled: true, teamId }, + raw: true, + }); + return subscriptions.map((subscription) => ({ + id: subscription.id, + events: subscription.events, + })); + }, + Hour.seconds + )) ?? [] + ); + } + + /** + * Determines whether a subscription configured for the given event names + * should receive an event with the given name. Pure so it can run against the + * cached projection as well as model instances. + * + * @param events The event names a subscription is configured for. + * @param eventName The name of the event being processed. + * @returns true if the event matches the subscription configuration. + */ + public static matchEvent(events: string[], eventName: string): boolean { + if (events.length === 1 && events[0] === "*") { + return true; + } + + for (const e of events) { + if (e === eventName || eventName.startsWith(e + ".")) { + return true; + } + } + + return false; + } + @NotEmpty @Length({ max: WebhookSubscriptionValidation.maxNameLength, @@ -105,6 +167,31 @@ class WebhookSubscription extends ParanoidModel< } } + @AfterCreate + @AfterUpdate + @AfterDestroy + @AfterRestore + static async invalidateCache( + model: WebhookSubscription, + options: { transaction?: Transaction | null } + ) { + const invalidate = () => + CacheHelper.removeData( + RedisPrefixHelper.getWebhookSubscriptionsKey(model.teamId) + ); + + // Defer invalidation until after the transaction commits so that a rollback + // does not leave the cache out of sync, and so a stale pre-commit read is + // not re-cached by a concurrent reader. Walk to the parent transaction when + // nested so the callback isn't lost when a savepoint releases. + if (options.transaction) { + const transaction = options.transaction.parent || options.transaction; + transaction.afterCommit(invalidate); + } else { + await invalidate(); + } + } + // instance methods /** @@ -130,22 +217,11 @@ class WebhookSubscription extends ParanoidModel< * Determines if an event should be processed for this webhook subscription * based on the event configuration. * - * @param event Event to ceck + * @param event Event to check * @returns true if event is valid */ - public validForEvent = (event: Event): boolean => { - if (this.events.length === 1 && this.events[0] === "*") { - return true; - } - - for (const e of this.events) { - if (e === event.name || event.name.startsWith(e + ".")) { - return true; - } - } - - return false; - }; + public validForEvent = (event: Event): boolean => + WebhookSubscription.matchEvent(this.events, event.name); /** * Calculates the signature for a webhook payload if the webhook subscription diff --git a/server/queues/processors/BaseProcessor.ts b/server/queues/processors/BaseProcessor.ts index 4406d26c3f..c33e405804 100644 --- a/server/queues/processors/BaseProcessor.ts +++ b/server/queues/processors/BaseProcessor.ts @@ -1,8 +1,31 @@ import type { Event } from "@server/types"; export default abstract class BaseProcessor { + /** + * The event names this processor handles. The global event queue only creates + * a job for the processor when an event's name is listed here, or when it + * contains the `"*"` wildcard to match every event. + */ static applicableEvents: (Event["name"] | "*")[] = []; + /** + * Optional hook run in the global event queue before a job is created for this + * processor. Implement it to cheaply opt out of events the processor will not + * act on and avoid the cost of an empty job. When omitted, every applicable + * event is queued. + * + * @param event The event about to be queued. + * @returns true if a job should be queued for this processor. + */ + static shouldQueue?: (event: Event) => Promise<boolean>; + + /** + * Handle an applicable event. Called once per queued job, with retries on + * failure. + * + * @param event The event to process. + * @returns A promise that resolves once the event has been processed. + */ public abstract perform(event: Event): Promise<void>; /** diff --git a/server/services/worker.ts b/server/services/worker.ts index a62e90cf02..9d58ace917 100644 --- a/server/services/worker.ts +++ b/server/services/worker.ts @@ -57,7 +57,14 @@ export default async function init() { ProcessorClass.applicableEvents.includes(event.name) || ProcessorClass.applicableEvents.includes("*") ) { - await processorEventQueue().add({ event, name }); + // A processor may optionally opt out of an event before a job is + // created, avoiding the cost of an empty job. + if ( + !ProcessorClass.shouldQueue || + (await ProcessorClass.shouldQueue(event)) + ) { + await processorEventQueue().add({ event, name }); + } } } catch (error) { Logger.error( diff --git a/server/utils/RedisPrefixHelper.ts b/server/utils/RedisPrefixHelper.ts index 9a0b2d0ce1..5510bdb26c 100644 --- a/server/utils/RedisPrefixHelper.ts +++ b/server/utils/RedisPrefixHelper.ts @@ -43,6 +43,16 @@ export class RedisPrefixHelper { return `uc:${userId}`; } + /** + * Gets key for caching a team's enabled webhook subscriptions. + * + * @param teamId The team ID to generate a key for. + * @returns the cache key string. + */ + public static getWebhookSubscriptionsKey(teamId: string) { + return `whs:${teamId}`; + } + /** * Gets key for caching the count of a relationship managed by the * `CounterCache` decorator. From aad2483ff9ec2a21d0b3ea8872917ea410ae605b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 17:57:09 -0400 Subject: [PATCH 178/286] fix: Search term highlights missing (#12598) --- app/editor/extensions/FindAndReplace.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/app/editor/extensions/FindAndReplace.tsx b/app/editor/extensions/FindAndReplace.tsx index d82fa7a3e6..01ae8505b9 100644 --- a/app/editor/extensions/FindAndReplace.tsx +++ b/app/editor/extensions/FindAndReplace.tsx @@ -604,13 +604,26 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt return { update: (view) => { const generation = pluginKey.getState(view.state) as number; - if (generation !== lastGeneration) { + // Rebuild highlights when the results change (generation bump) or, + // while a search is active, on any view update. The CSS Custom + // Highlight API relies on static DOM ranges that become detached + // when the editor re-renders its DOM — e.g. content settling after + // sync when navigating from search results, collaboration cursors, + // or node views mounting — none of which bump the generation. This + // keeps the highlights tracking the live DOM, as decorations do. + if (generation !== lastGeneration || this.searchTerm) { lastGeneration = generation; this.updateHighlights(); } }, destroy: () => { - this.clearHighlights(); + // The highlight registry is global and keyed by fixed names, so + // only tear down highlights when this editor actually owns an + // active search — otherwise an unmounting editor could wipe the + // highlights another editor just set during a route transition. + if (this.searchTerm) { + this.clearHighlights(); + } }, }; }, From 9ec6b8309d5d4b4a6992433ad15276342ae43495 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 18:00:37 -0400 Subject: [PATCH 179/286] chore: Improve handling of 'expected' network errors from webhooks (#12599) --- .../server/tasks/DeliverWebhookTask.test.ts | 65 ++++++++++++++++++- .../server/tasks/DeliverWebhookTask.ts | 52 ++++++++++++++- 2 files changed, 115 insertions(+), 2 deletions(-) diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts index 0381365aec..0b007ea601 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts @@ -1,3 +1,4 @@ +import { FetchError } from "node-fetch"; import { http, HttpResponse, @@ -12,7 +13,9 @@ import { buildWebhookSubscription, } from "@server/test/factories"; import type { UserEvent } from "@server/types"; -import DeliverWebhookTask from "./DeliverWebhookTask"; +import DeliverWebhookTask, { + isExpectedNetworkError, +} from "./DeliverWebhookTask"; const ip = "127.0.0.1"; @@ -243,3 +246,63 @@ describe("DeliverWebhookTask", () => { expect(delivery.responseBody).toEqual('{"message":"Failure"}'); }); }); + +describe("isExpectedNetworkError", () => { + test("treats node-fetch FetchError as expected", () => { + expect( + isExpectedNetworkError( + new FetchError("request to https://example.com failed", "system") + ) + ).toBe(true); + }); + + test("treats raw socket errors as expected", () => { + expect(isExpectedNetworkError(new Error("socket hang up"))).toBe(true); + expect( + isExpectedNetworkError( + Object.assign(new Error("read ECONNRESET"), { code: "ECONNRESET" }) + ) + ).toBe(true); + }); + + test("treats connection error codes as expected", () => { + for (const code of [ + "ECONNREFUSED", + "ETIMEDOUT", + "EHOSTUNREACH", + "ENOTFOUND", + "EAI_AGAIN", + ]) { + expect( + isExpectedNetworkError(Object.assign(new Error("boom"), { code })) + ).toBe(true); + } + }); + + test("treats invalid certificate errors as expected", () => { + expect( + isExpectedNetworkError( + Object.assign(new Error("self signed certificate"), { + code: "DEPTH_ZERO_SELF_SIGNED_CERT", + }) + ) + ).toBe(true); + }); + + test("treats the request timeout thrown by the fetch wrapper as expected", () => { + expect( + isExpectedNetworkError(new Error("Request timeout after 5000ms")) + ).toBe(true); + }); + + test("does not treat unrelated errors as expected", () => { + expect( + isExpectedNetworkError(new TypeError("undefined is not a function")) + ).toBe(false); + expect( + isExpectedNetworkError(new Error("Cannot read property foo of undefined")) + ).toBe(false); + expect(isExpectedNetworkError("socket hang up")).toBe(false); + expect(isExpectedNetworkError(undefined)).toBe(false); + }); +}); diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts index f2b8c2e41b..7fe6f088f0 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts @@ -78,6 +78,56 @@ function assertUnreachable(event: never) { Logger.warn(`DeliverWebhookTask did not handle ${(event as Event).name}`); } +/** + * Node connection-level error codes that are expected when delivering to + * arbitrary, user-supplied webhook URLs. These indicate a misconfigured or + * unreachable destination rather than a bug in Outline. + */ +const expectedNetworkErrorCodes = new Set([ + "ECONNRESET", + "ECONNREFUSED", + "ECONNABORTED", + "ETIMEDOUT", + "EHOSTUNREACH", + "ENETUNREACH", + "ENOTFOUND", + "EAI_AGAIN", + "EPIPE", + "EPROTO", + "DEPTH_ZERO_SELF_SIGNED_CERT", + "SELF_SIGNED_CERT_IN_CHAIN", + "UNABLE_TO_VERIFY_LEAF_SIGNATURE", + "CERT_HAS_EXPIRED", + "ERR_TLS_CERT_ALTNAME_INVALID", +]); + +/** + * Determine whether an error thrown while delivering a webhook is an expected + * network failure caused by the user-supplied destination URL (connection + * reset, timeout, unreachable host, invalid certificate, etc) rather than an + * unexpected bug. Such failures are noisy and do not need error tracking. + * + * @param err The error that occurred during delivery. + * @returns true if the error is an expected network failure. + */ +export function isExpectedNetworkError(err: unknown): boolean { + if (err instanceof FetchError) { + return true; + } + if (err instanceof Error) { + const code = (err as NodeJS.ErrnoException).code; + if (code && expectedNetworkErrorCodes.has(code)) { + return true; + } + // node-fetch surfaces some low-level socket failures (and our fetch wrapper + // converts aborted requests into timeouts) without a structured code. + return /socket hang up|request timeout|network|ECONNRESET/i.test( + err.message + ); + } + return false; +} + type Props = { subscriptionId: string; event: Event; @@ -765,7 +815,7 @@ export default class DeliverWebhookTask extends BaseTask<Props> { }); status = response.ok ? "success" : "failed"; } catch (err) { - if (err instanceof FetchError && env.isCloudHosted) { + if (isExpectedNetworkError(err) && env.isCloudHosted) { Logger.warn(`Failed to send webhook: ${err.message}`, { event, deliveryId: delivery.id, From b5465376ae5c57db02bfcda8823fc91f5cb43ba2 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 22:33:03 -0400 Subject: [PATCH 180/286] fix: Mermaid persisted as last used language (#12601) * fix: Mermaid persisted as last used language * Suppress mermaid in getFrequentCodeLanguages too --- shared/editor/lib/code.test.ts | 52 +++++++++++++++++++++++++++++++++- shared/editor/lib/code.ts | 34 ++++++++++++++++------ 2 files changed, 77 insertions(+), 9 deletions(-) diff --git a/shared/editor/lib/code.test.ts b/shared/editor/lib/code.test.ts index 1764ef4ac4..8d60da26e4 100644 --- a/shared/editor/lib/code.test.ts +++ b/shared/editor/lib/code.test.ts @@ -1,4 +1,11 @@ -import { getRefractorLangForLanguage, getLabelForLanguage } from "./code"; +import Storage from "../../utils/Storage"; +import { + getRefractorLangForLanguage, + getLabelForLanguage, + setRecentlyUsedCodeLanguage, + getRecentlyUsedCodeLanguage, + getFrequentCodeLanguages, +} from "./code"; describe("getRefractorLangForLanguage", () => { it("should return the correct lang identifier for a given language", () => { @@ -26,3 +33,46 @@ describe("getLabelForLanguage", () => { expect(getLabelForLanguage("")).toBe("Plain text"); }); }); + +describe("setRecentlyUsedCodeLanguage", () => { + beforeEach(() => { + Storage.clear(); + }); + + it("should remember the last selected code language", () => { + setRecentlyUsedCodeLanguage("javascript"); + expect(getRecentlyUsedCodeLanguage()).toBe("javascript"); + }); + + it("should not remember mermaid as the last selected code language", () => { + setRecentlyUsedCodeLanguage("javascript"); + setRecentlyUsedCodeLanguage("mermaid"); + expect(getRecentlyUsedCodeLanguage()).toBe("javascript"); + }); + + it("should not remember mermaidjs as the last selected code language", () => { + setRecentlyUsedCodeLanguage("javascript"); + setRecentlyUsedCodeLanguage("mermaidjs"); + expect(getRecentlyUsedCodeLanguage()).toBe("javascript"); + }); + + it("should ignore mermaid that was already persisted", () => { + Storage.set("rme-code-language", "mermaid"); + expect(getRecentlyUsedCodeLanguage()).toBeUndefined(); + }); +}); + +describe("getFrequentCodeLanguages", () => { + beforeEach(() => { + Storage.clear(); + }); + + it("should exclude mermaid that was already persisted", () => { + Storage.set("frequent-code-languages", { + javascript: 3, + mermaid: 5, + mermaidjs: 2, + }); + expect(getFrequentCodeLanguages()).toEqual(["javascript"]); + }); +}); diff --git a/shared/editor/lib/code.ts b/shared/editor/lib/code.ts index 9e56ccca09..4e09076115 100644 --- a/shared/editor/lib/code.ts +++ b/shared/editor/lib/code.ts @@ -374,12 +374,23 @@ export const getRefractorLangForLanguage = ( export const getLoaderForLanguage = (language: string) => codeLanguages[language as keyof typeof codeLanguages]?.loader; +// Mermaid diagrams have a separate insertion entry point, so they should never +// be remembered as a recently or frequently used code language. +const nonPersistableLanguages = ["mermaid", "mermaidjs"]; + +const isPersistableCodeLanguage = (language: string) => + !nonPersistableLanguages.includes(language); + /** * Set the most recent code language used. * * @param language The language identifier. */ export const setRecentlyUsedCodeLanguage = (language: string) => { + if (!isPersistableCodeLanguage(language)) { + return; + } + const frequentLangs = (Storage.get(StorageKey) ?? {}) as Record< string, number @@ -416,8 +427,12 @@ export const setRecentlyUsedCodeLanguage = (language: string) => { * * @returns The most recent code language used, or undefined if none is set. */ -export const getRecentlyUsedCodeLanguage = () => - Storage.get(RecentlyUsedStorageKey) as keyof typeof codeLanguages | undefined; +export const getRecentlyUsedCodeLanguage = () => { + const language = Storage.get(RecentlyUsedStorageKey) as + | keyof typeof codeLanguages + | undefined; + return language && isPersistableCodeLanguage(language) ? language : undefined; +}; /** * Get the most frequent code languages used. @@ -425,17 +440,20 @@ export const getRecentlyUsedCodeLanguage = () => * @returns An array of the most frequent code languages used. */ export const getFrequentCodeLanguages = () => { - const recentLang = Storage.get(RecentlyUsedStorageKey); - const frequentLangEntries = Object.entries(Storage.get(StorageKey) ?? {}) as [ - keyof typeof codeLanguages, - number, - ][]; + const recentLang = getRecentlyUsedCodeLanguage(); + const frequentLangEntries = ( + Object.entries(Storage.get(StorageKey) ?? {}) as [ + keyof typeof codeLanguages, + number, + ][] + ).filter(([lang]) => isPersistableCodeLanguage(lang)); const frequentLangs = sortFrequencies(frequentLangEntries) .slice(0, frequentLanguagesToGet) .map(([lang]) => lang); - const isRecentLangPresent = frequentLangs.includes(recentLang); + const isRecentLangPresent = + !!recentLang && frequentLangs.includes(recentLang); if (recentLang && !isRecentLangPresent) { frequentLangs.pop(); frequentLangs.push(recentLang); From 997d38a6ac0c851e6ea7cd864edcc544c9fffc9b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 23:16:45 -0400 Subject: [PATCH 181/286] fix: document.collaboratorIds iterable error (#12602) --- app/components/Collaborators.tsx | 4 ++-- server/presenters/document.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/Collaborators.tsx b/app/components/Collaborators.tsx index 360e33ffd9..0f554e9b51 100644 --- a/app/components/Collaborators.tsx +++ b/app/components/Collaborators.tsx @@ -79,10 +79,10 @@ function Collaborators(props: Props) { // Memoize ids to avoid unnecessary effect executions const missingUserIds = useMemo( () => - uniq([...document.collaboratorIds, ...Array.from(presentIds)]) + uniq([...collaboratorIdsSet, ...presentIds]) .filter((userId) => !users.get(userId)) .sort(), - [document.collaboratorIds, presentIds, users] + [collaboratorIdsSet, presentIds, users] ); useEffect(() => { diff --git a/server/presenters/document.ts b/server/presenters/document.ts index 7daf3e63e9..6f93f7fa42 100644 --- a/server/presenters/document.ts +++ b/server/presenters/document.ts @@ -109,7 +109,7 @@ async function presentDocument( res.parentDocumentId = document.parentDocumentId; res.createdBy = presentUser(document.createdBy); res.updatedBy = presentUser(document.updatedBy); - res.collaboratorIds = document.collaboratorIds; + res.collaboratorIds = document.collaboratorIds ?? []; res.templateId = document.templateId; res.insightsEnabled = document.insightsEnabled; res.popularityScore = document.popularityScore; From be3f28afeaaa8b92137685376fe17fff94e62255 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 5 Jun 2026 23:42:40 -0400 Subject: [PATCH 182/286] fix: Remove parsing rules when not supported in editor (#12604) * fix: Remove table markdown parsing rule when not supported in editor * Additional nodes, tests --- shared/editor/lib/markdown/rules.test.ts | 37 ++++++++++++++++++++++++ shared/editor/lib/markdown/rules.ts | 10 ++++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 shared/editor/lib/markdown/rules.test.ts diff --git a/shared/editor/lib/markdown/rules.test.ts b/shared/editor/lib/markdown/rules.test.ts new file mode 100644 index 0000000000..6d90e159a5 --- /dev/null +++ b/shared/editor/lib/markdown/rules.test.ts @@ -0,0 +1,37 @@ +import type { Schema } from "prosemirror-model"; +import makeRules from "./rules"; + +const tableMarkdown = "| a | b |\n| --- | --- |\n| 1 | 2 |"; + +const schemaWith = (nodes: string[]) => + ({ + nodes: Object.fromEntries(nodes.map((name) => [name, {}])), + }) as unknown as Schema; + +describe("makeRules", () => { + it("parses tables when the schema supports them", () => { + const md = makeRules({ schema: schemaWith(["table"]) }); + const types = md.parse(tableMarkdown, {}).map((token) => token.type); + expect(types).toContain("table_open"); + }); + + it("does not emit table tokens when the schema lacks table support", () => { + const md = makeRules({ schema: schemaWith([]) }); + const types = md.parse(tableMarkdown, {}).map((token) => token.type); + expect(types).not.toContain("table_open"); + }); + + it("does not emit heading tokens for setext headings when the schema lacks heading support", () => { + const md = makeRules({ schema: schemaWith([]) }); + const types = md.parse("Title\n=====\n", {}).map((token) => token.type); + expect(types).not.toContain("heading_open"); + }); + + it("does not emit code_block tokens when the schema lacks code block support", () => { + const md = makeRules({ schema: schemaWith([]) }); + const indented = md.parse(" foo\n", {}).map((token) => token.type); + const fenced = md.parse("```\nfoo\n```\n", {}).map((token) => token.type); + expect(indented).not.toContain("code_block"); + expect(fenced).not.toContain("fence"); + }); +}); diff --git a/shared/editor/lib/markdown/rules.ts b/shared/editor/lib/markdown/rules.ts index b6ec30936a..e37f56b5b9 100644 --- a/shared/editor/lib/markdown/rules.ts +++ b/shared/editor/lib/markdown/rules.ts @@ -36,7 +36,15 @@ export default function makeRules({ markdownIt.disable("hr"); } if (!schema?.nodes.heading) { - markdownIt.disable("heading"); + // "heading" is ATX (# Title), "lheading" is setext (Title\n=====). + markdownIt.disable(["heading", "lheading"]); + } + if (!schema?.nodes.table) { + markdownIt.disable("table"); + } + if (!schema?.nodes.code_block) { + // "code" is indented code blocks, "fence" is ``` delimited blocks. + markdownIt.disable(["code", "fence"]); } plugins.forEach((plugin) => markdownIt.use(plugin)); From f329b56d0edbbd687728c7436713f2c99e8ec722 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 07:24:16 -0400 Subject: [PATCH 183/286] fix: Hard break serialization for commonMark (#12603) * fix: Hard break serialization for commonMark * tests --- .../extensions/ClipboardTextSerializer.ts | 2 +- app/models/helpers/ProsemirrorHelper.ts | 2 +- shared/editor/lib/markdown/serializer.ts | 13 ++- shared/editor/nodes/HardBreak.ts | 4 +- shared/editor/nodes/Paragraph.ts | 2 +- .../editor/rules}/checkboxes.test.ts | 8 +- shared/editor/rules/hardbreaks.test.ts | 88 +++++++++++++++++++ 7 files changed, 113 insertions(+), 6 deletions(-) rename {server/editor => shared/editor/rules}/checkboxes.test.ts (90%) create mode 100644 shared/editor/rules/hardbreaks.test.ts diff --git a/app/editor/extensions/ClipboardTextSerializer.ts b/app/editor/extensions/ClipboardTextSerializer.ts index b5a05a7f70..c1146c87fa 100644 --- a/app/editor/extensions/ClipboardTextSerializer.ts +++ b/app/editor/extensions/ClipboardTextSerializer.ts @@ -61,7 +61,7 @@ export default class ClipboardTextSerializer extends Extension { .map((node) => ProsemirrorHelper.toPlainText(node)) .join("\n") : mdSerializer.serialize(slice.content, { - softBreak: true, + commonMark: true, }); }, }, diff --git a/app/models/helpers/ProsemirrorHelper.ts b/app/models/helpers/ProsemirrorHelper.ts index c48534e231..8e268fd051 100644 --- a/app/models/helpers/ProsemirrorHelper.ts +++ b/app/models/helpers/ProsemirrorHelper.ts @@ -29,7 +29,7 @@ export class ProsemirrorHelper { ); const markdown = serializer.serialize(doc, { - softBreak: true, + commonMark: true, }); return markdown; }; diff --git a/shared/editor/lib/markdown/serializer.ts b/shared/editor/lib/markdown/serializer.ts index 85a1d82ad3..5eec8aba7a 100644 --- a/shared/editor/lib/markdown/serializer.ts +++ b/shared/editor/lib/markdown/serializer.ts @@ -3,7 +3,18 @@ // https://raw.githubusercontent.com/ProseMirror/prosemirror-markdown/master/src/to_markdown.js // forked for table support -type Options = { tightLists?: boolean; softBreak?: boolean }; +/** Options that control how a ProseMirror document is serialized to Markdown. */ +type Options = { + /** Whether list items are rendered without blank lines between them. */ + tightLists?: boolean; + /** + * Whether to emit portable, standard CommonMark intended to leave Outline, + * such as when copying to the clipboard or exporting. When false the + * serializer uses Outline's internal escaped representation, which round-trips + * losslessly through its own parser but is not standard Markdown. + */ + commonMark?: boolean; +}; // ::- A specification for serializing a ProseMirror document as // Markdown/CommonMark text. diff --git a/shared/editor/nodes/HardBreak.ts b/shared/editor/nodes/HardBreak.ts index 2ce830c0c1..34292759e1 100644 --- a/shared/editor/nodes/HardBreak.ts +++ b/shared/editor/nodes/HardBreak.ts @@ -55,8 +55,10 @@ export default class HardBreak extends Node { } toMarkdown(state: MarkdownSerializerState) { + // Two trailing spaces is a CommonMark hard break that survives a + // copy/export round-trip, unlike a bare newline. state.write( - state.inTable ? "<br>" : state.options.softBreak ? "\n" : "\\n" + state.inTable ? "<br>" : state.options.commonMark ? " \n" : "\\n" ); } diff --git a/shared/editor/nodes/Paragraph.ts b/shared/editor/nodes/Paragraph.ts index d458cea4ee..6b91cee92d 100644 --- a/shared/editor/nodes/Paragraph.ts +++ b/shared/editor/nodes/Paragraph.ts @@ -58,7 +58,7 @@ export default class Paragraph extends Node { node.childCount === 0 && !state.inTable ) { - state.write(state.options.softBreak ? "\n" : "\\\n"); + state.write(state.options.commonMark ? "\n" : "\\\n"); } else { state.renderInline(node); state.closeBlock(node); diff --git a/server/editor/checkboxes.test.ts b/shared/editor/rules/checkboxes.test.ts similarity index 90% rename from server/editor/checkboxes.test.ts rename to shared/editor/rules/checkboxes.test.ts index 3a31ff25e2..c9db14d8da 100644 --- a/server/editor/checkboxes.test.ts +++ b/shared/editor/rules/checkboxes.test.ts @@ -1,4 +1,10 @@ -import { parser, serializer } from "@server/editor"; +import { extensionManager, schema } from "../../test/editor"; + +const serializer = extensionManager.serializer(); +const parser = extensionManager.parser({ + schema, + plugins: extensionManager.rulePlugins, +}); interface ProsemirrorNode { type: string; diff --git a/shared/editor/rules/hardbreaks.test.ts b/shared/editor/rules/hardbreaks.test.ts new file mode 100644 index 0000000000..0c4984c6de --- /dev/null +++ b/shared/editor/rules/hardbreaks.test.ts @@ -0,0 +1,88 @@ +import { extensionManager, schema } from "../../test/editor"; + +const serializer = extensionManager.serializer(); +const parser = extensionManager.parser({ + schema, + plugins: extensionManager.rulePlugins, +}); + +const docWithHardBreak = schema.nodeFromJSON({ + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { type: "text", text: "Line one" }, + { type: "br" }, + { type: "text", text: "Line two" }, + ], + }, + ], +}); + +it("parses two trailing spaces as a hard break", () => { + const ast = parser.parse("Line one \nLine two"); + + expect(ast?.toJSON()).toEqual(docWithHardBreak.toJSON()); +}); + +it("parses a backslash line ending as a hard break", () => { + const ast = parser.parse("Line one\\\nLine two"); + + expect(ast?.toJSON()).toEqual(docWithHardBreak.toJSON()); +}); + +it("serializes hard breaks as a CommonMark break when commonMark is set", () => { + // The commonMark option is used when copying to the clipboard and exporting + // documents – two trailing spaces are a standard Markdown hard break that + // renders in external viewers and parses back into a `br`, unlike a bare + // newline. + expect(serializer.serialize(docWithHardBreak, { commonMark: true })).toBe( + "Line one \nLine two" + ); +}); + +it("round-trips hard breaks through the copy/export serializer", () => { + let node = docWithHardBreak; + + for (let i = 0; i < 3; i++) { + const markdown = serializer.serialize(node, { commonMark: true }); + node = parser.parse(markdown)!; + expect(node.toJSON()).toEqual(docWithHardBreak.toJSON()); + } +}); + +it("serializes hard breaks inside tables as a literal break tag", () => { + const docWithTable = schema.nodeFromJSON({ + type: "doc", + content: [ + { + type: "table", + content: [ + { + type: "tr", + content: [ + { + type: "td", + content: [ + { + type: "paragraph", + content: [ + { type: "text", text: "Line one" }, + { type: "br" }, + { type: "text", text: "Line two" }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }); + + expect(serializer.serialize(docWithTable, { commonMark: true })).toContain( + "Line one<br>Line two" + ); +}); From b23a39bd39e28d5f67d52ce5c084ae27a1d40e4a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 08:01:26 -0400 Subject: [PATCH 184/286] Add email verification check during sign-in flow (#12605) * Add email verification check during sign-in flow * Add support for Entra External ID with OIDC standard verification claim --- plugins/azure/server/auth/azure.ts | 13 ++++ plugins/discord/server/auth/discord.ts | 1 + plugins/google/server/auth/google.ts | 2 + plugins/oidc/server/auth/oidcRouter.ts | 11 ++++ plugins/slack/server/auth/slack.ts | 2 + server/commands/accountProvisioner.test.ts | 51 +++++++++++++++ server/commands/accountProvisioner.ts | 7 ++ server/commands/userProvisioner.test.ts | 65 +++++++++++++++++++ server/commands/userProvisioner.ts | 27 +++++++- server/models/helpers/AuthenticationHelper.ts | 13 ++++ 10 files changed, 191 insertions(+), 1 deletion(-) diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index 6b0deee13d..33d39543db 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -102,6 +102,18 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { const user = context.state?.auth?.user ?? (await getUserFromOAuthState(context)); + // Microsoft's email claim is mutable, only trust it when a verification + // claim confirms it — xms_edov for workforce tenants, or the standard + // email_verified claim in External ID / OIDC scenarios. + // https://learn.microsoft.com/en-us/entra/identity-platform/reference-claims-customization + const verificationClaims = [profile.xms_edov, profile.email_verified]; + const presentClaims = verificationClaims.filter( + (claim) => claim !== undefined + ); + const emailVerified = presentClaims.length + ? presentClaims.some((claim) => claim === true || claim === "true") + : undefined; + const domain = parseEmail(email).domain; const subdomain = slugifyDomain(domain); @@ -121,6 +133,7 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { user: { name: profile.name, email, + emailVerified, avatarUrl: profile.picture, }, authenticationProvider: { diff --git a/plugins/discord/server/auth/discord.ts b/plugins/discord/server/auth/discord.ts index 00d940243e..c2a9e73f87 100644 --- a/plugins/discord/server/auth/discord.ts +++ b/plugins/discord/server/auth/discord.ts @@ -201,6 +201,7 @@ if (env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET) { }, user: { email, + emailVerified: profile.verified, name: userName, language, avatarUrl: userAvatarUrl, diff --git a/plugins/google/server/auth/google.ts b/plugins/google/server/auth/google.ts index dbf241a8fa..26c197e3e6 100644 --- a/plugins/google/server/auth/google.ts +++ b/plugins/google/server/auth/google.ts @@ -127,6 +127,8 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { }, user: { email: profile.email, + // Google only returns confirmed workspace email addresses. + emailVerified: true, name: profile.displayName, language, avatarUrl, diff --git a/plugins/oidc/server/auth/oidcRouter.ts b/plugins/oidc/server/auth/oidcRouter.ts index 4d8a98ca11..131b5300eb 100644 --- a/plugins/oidc/server/auth/oidcRouter.ts +++ b/plugins/oidc/server/auth/oidcRouter.ts @@ -105,6 +105,7 @@ export function createOIDCRouter( return decoded as { email?: string; + email_verified?: boolean | string; preferred_username?: string; sub?: string; }; @@ -122,6 +123,15 @@ export function createOIDCRouter( ); } + // The email_verified claim is part of the OIDC standard claims. + // https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims + const emailVerifiedClaim = + profile.email_verified ?? token.email_verified; + const emailVerified = + emailVerifiedClaim === undefined + ? undefined + : emailVerifiedClaim === true || emailVerifiedClaim === "true"; + const team = await getTeamFromContext(context); const client = getClientFromOAuthState(context); const user = @@ -206,6 +216,7 @@ export function createOIDCRouter( user: { name, email, + emailVerified, avatarUrl, }, authenticationProvider: { diff --git a/plugins/slack/server/auth/slack.ts b/plugins/slack/server/auth/slack.ts index 6906702fe2..b33c6cf53f 100644 --- a/plugins/slack/server/auth/slack.ts +++ b/plugins/slack/server/auth/slack.ts @@ -110,6 +110,8 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) { user: { name: profile.user.name, email: profile.user.email, + // Slack only returns confirmed workspace email addresses. + emailVerified: true, avatarUrl: profile.user.image_192, }, authenticationProvider: { diff --git a/server/commands/accountProvisioner.test.ts b/server/commands/accountProvisioner.test.ts index 4d1e33baed..9be87981d2 100644 --- a/server/commands/accountProvisioner.test.ts +++ b/server/commands/accountProvisioner.test.ts @@ -115,6 +115,7 @@ describe("accountProvisioner", () => { user: { name: userWithoutAuth.name, email, + emailVerified: true, avatarUrl: userWithoutAuth.avatarUrl, }, team: { @@ -138,6 +139,54 @@ describe("accountProvisioner", () => { expect(isNewUser).toEqual(false); }); + it("should not allow authentication by email matching when email is unverified", async () => { + const subdomain = faker.internet.domainWord(); + const existingTeam = await buildTeam({ + subdomain, + }); + + const providers = await existingTeam.$get("authenticationProviders"); + const authenticationProvider = providers[0]; + const email = faker.internet.email(); + const userWithoutAuth = await buildUser({ + email, + teamId: existingTeam.id, + authentications: [], + }); + + let error; + try { + await accountProvisioner(ctx, { + user: { + name: userWithoutAuth.name, + email, + emailVerified: false, + avatarUrl: userWithoutAuth.avatarUrl, + }, + team: { + teamId: existingTeam.id, + name: existingTeam.name, + avatarUrl: existingTeam.avatarUrl, + subdomain, + }, + authenticationProvider: { + name: authenticationProvider.name, + providerId: authenticationProvider.providerId, + }, + authentication: { + providerId: randomUUID(), + accessToken: "123", + scopes: ["read"], + }, + }); + } catch (err) { + error = err; + } + + expect(error).toBeTruthy(); + expect(error.id).toEqual("invalid_authentication"); + }); + it("should throw an error when authentication provider is disabled", async () => { const existingTeam = await buildTeam(); const providers = await existingTeam.$get("authenticationProviders"); @@ -250,6 +299,7 @@ describe("accountProvisioner", () => { user: { name: "Jenny Tester", email, + emailVerified: true, avatarUrl: faker.image.avatar(), }, team: { @@ -291,6 +341,7 @@ describe("accountProvisioner", () => { user: { name: "Jenny Tester", email, + emailVerified: true, avatarUrl: faker.image.avatar(), }, team: { diff --git a/server/commands/accountProvisioner.ts b/server/commands/accountProvisioner.ts index 5992b0cc33..7a81d1231d 100644 --- a/server/commands/accountProvisioner.ts +++ b/server/commands/accountProvisioner.ts @@ -17,6 +17,7 @@ import { Event, Team, } from "@server/models"; +import AuthenticationHelper from "@server/models/helpers/AuthenticationHelper"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { sequelize } from "@server/storage/database"; import { PluginManager } from "@server/utils/PluginManager"; @@ -34,6 +35,8 @@ type Props = { name: string; /** The email address of the user */ email: string; + /** Whether the provider has verified the user owns the email address */ + emailVerified?: boolean; /** The public url of an image representing the user */ avatarUrl?: string | null; /** The language of the user, if known */ @@ -178,6 +181,10 @@ async function accountProvisioner( result = await userProvisioner(ctx, { name: userParams.name, email: userParams.email, + emailVerified: userParams.emailVerified, + authenticationProviderName: AuthenticationHelper.getProviderName( + authenticationProviderParams.name + ), language: userParams.language, role: isNewTeam ? UserRole.Admin : undefined, avatarUrl: userParams.avatarUrl, diff --git a/server/commands/userProvisioner.test.ts b/server/commands/userProvisioner.test.ts index eac4c3bb9d..a41d3df189 100644 --- a/server/commands/userProvisioner.test.ts +++ b/server/commands/userProvisioner.test.ts @@ -57,6 +57,7 @@ describe("userProvisioner", () => { const result = await userProvisioner(ctx, { name: existing.name, email, + emailVerified: true, avatarUrl: existing.avatarUrl, teamId: existing.teamId, authentication: { @@ -77,6 +78,34 @@ describe("userProvisioner", () => { expect(isNewUser).toEqual(false); }); + it("should not match an existing user by email when email is unverified", async () => { + const team = await buildTeam(); + const teamAuthProviders = await team.$get("authenticationProviders"); + const authenticationProvider = teamAuthProviders[0]; + + const email = "mynam@email.com"; + await buildUser({ + email, + teamId: team.id, + authentications: [], + }); + + await expect( + userProvisioner(ctx, { + name: "Imposter", + email, + emailVerified: false, + teamId: team.id, + authentication: { + authenticationProviderId: authenticationProvider.id, + providerId: randomUUID(), + accessToken: "123", + scopes: ["read"], + }, + }) + ).rejects.toThrow("has not been verified by"); + }); + it("should add authentication provider to invited users", async () => { const team = await buildTeam({ inviteRequired: true }); const teamAuthProviders = await team.$get("authenticationProviders"); @@ -91,6 +120,7 @@ describe("userProvisioner", () => { const result = await userProvisioner(ctx, { name: existing.name, email, + emailVerified: true, avatarUrl: existing.avatarUrl, teamId: existing.teamId, authentication: { @@ -264,6 +294,7 @@ describe("userProvisioner", () => { const result = await userProvisioner(ctx, { name: invite.name, email: "invite@ExamPle.com", + emailVerified: true, teamId: invite.teamId, authentication: { authenticationProviderId: authenticationProvider.id, @@ -295,6 +326,7 @@ describe("userProvisioner", () => { const result = await userProvisioner(ctx, { name: invite.name, email: "external@ExamPle.com", // ensure that email is case insensistive + emailVerified: true, teamId: invite.teamId, }); const { user, authentication, isNewUser } = result; @@ -340,6 +372,7 @@ describe("userProvisioner", () => { const result = await userProvisioner(ctx, { name: faker.person.fullName(), email, + emailVerified: true, teamId: team.id, authentication: { authenticationProviderId: authenticationProvider.id, @@ -357,6 +390,36 @@ describe("userProvisioner", () => { expect(isNewUser).toEqual(true); }); + it("should reject an unverified email when the team has allowed domains", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const domain = faker.internet.domainName(); + await TeamDomain.create({ + teamId: team.id, + name: domain, + createdById: admin.id, + }); + + const authenticationProviders = await team.$get("authenticationProviders"); + const authenticationProvider = authenticationProviders[0]; + const email = faker.internet.email({ provider: domain }); + + await expect( + userProvisioner(ctx, { + name: faker.person.fullName(), + email, + emailVerified: false, + teamId: team.id, + authentication: { + authenticationProviderId: authenticationProvider.id, + providerId: "fake-service-id", + accessToken: "123", + scopes: ["read"], + }, + }) + ).rejects.toThrow("has not been verified by"); + }); + it("should create a user from allowed domain with emailMatchOnly", async () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); @@ -372,6 +435,7 @@ describe("userProvisioner", () => { const result = await userProvisioner(ctx, { name: "Test Name", email, + emailVerified: true, teamId: team.id, }); const { user, authentication, isNewUser } = result; @@ -408,6 +472,7 @@ describe("userProvisioner", () => { userProvisioner(ctx, { name: "Bad Domain User", email: faker.internet.email(), + emailVerified: true, teamId: team.id, authentication: { authenticationProviderId: authenticationProvider.id, diff --git a/server/commands/userProvisioner.ts b/server/commands/userProvisioner.ts index d2d15cece9..1977faec10 100644 --- a/server/commands/userProvisioner.ts +++ b/server/commands/userProvisioner.ts @@ -25,6 +25,13 @@ type Props = { name: string; /** The email address of the user */ email: string; + /** + * Whether the provider has verified the user owns the email address. + * Matching an existing account by email only happens when explicitly true. + */ + emailVerified?: boolean; + /** The display name of the authentication provider, eg "Google". */ + authenticationProviderName?: string; /** The language of the user, if known */ language?: string; /** The role for new user, Member if none is provided */ @@ -54,7 +61,17 @@ type Props = { export default async function userProvisioner( ctx: APIContext, - { name, email, role, language, avatarUrl, teamId, authentication }: Props + { + name, + email, + emailVerified, + authenticationProviderName, + role, + language, + avatarUrl, + teamId, + authentication, + }: Props ): Promise<UserProvisionerResult> { const auth = authentication ? await UserAuthentication.findOne({ @@ -135,6 +152,14 @@ export default async function userProvisioner( attributes: ["defaultUserRole", "inviteRequired", "id"], }); + // Unverified emails cannot match an existing account or pass allow listed domains + if (emailVerified !== true && (existingUser || team?.allowedDomains.length)) { + const providerName = authenticationProviderName ?? "your identity provider"; + throw InvalidAuthenticationError( + `Your email address has not been verified by ${providerName}. Please verify your email and try signing in again.` + ); + } + // We have an existing user, so we need to update it with our // new details and count this as a new user creation. if (existingUser) { diff --git a/server/models/helpers/AuthenticationHelper.ts b/server/models/helpers/AuthenticationHelper.ts index cdb32fdb1d..9550e4e3a2 100644 --- a/server/models/helpers/AuthenticationHelper.ts +++ b/server/models/helpers/AuthenticationHelper.ts @@ -17,6 +17,19 @@ export default class AuthenticationHelper { return PluginManager.getHooks(Hook.AuthProvider); } + /** + * Returns the human-readable display name for an authentication provider. + * + * @param id The authentication provider id, eg "google". + * @returns The display name if known, otherwise the provided id. + */ + public static getProviderName(id: string): string { + const provider = AuthenticationHelper.providers.find( + (hook) => hook.value.id === id + ); + return provider?.name ?? id; + } + /** * Returns the enabled authentication provider configurations for a team, * if given otherwise all enabled providers are returned. From 33e3680782b5e46f2a7f68a1f79506d01a65deac Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Sat, 6 Jun 2026 08:43:35 -0400 Subject: [PATCH 185/286] New Crowdin updates (#12464) * fix: New Czech translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] --- shared/i18n/locales/ca_ES/translation.json | 16 ++- shared/i18n/locales/cs_CZ/translation.json | 110 +++++++++++---------- shared/i18n/locales/da_DK/translation.json | 16 ++- shared/i18n/locales/de_DE/translation.json | 16 ++- shared/i18n/locales/en_GB/translation.json | 16 ++- shared/i18n/locales/es_ES/translation.json | 18 ++-- shared/i18n/locales/fa_IR/translation.json | 16 ++- shared/i18n/locales/fr_FR/translation.json | 16 ++- shared/i18n/locales/he_IL/translation.json | 16 ++- shared/i18n/locales/hu_HU/translation.json | 16 ++- shared/i18n/locales/id_ID/translation.json | 16 ++- shared/i18n/locales/it_IT/translation.json | 16 ++- shared/i18n/locales/ja_JP/translation.json | 16 ++- shared/i18n/locales/ko_KR/translation.json | 16 ++- shared/i18n/locales/nb_NO/translation.json | 16 ++- shared/i18n/locales/nl_NL/translation.json | 16 ++- shared/i18n/locales/pl_PL/translation.json | 16 ++- shared/i18n/locales/pt_BR/translation.json | 16 ++- shared/i18n/locales/pt_PT/translation.json | 16 ++- shared/i18n/locales/ro_RO/translation.json | 16 ++- shared/i18n/locales/sv_SE/translation.json | 16 ++- shared/i18n/locales/th_TH/translation.json | 16 ++- shared/i18n/locales/tr_TR/translation.json | 16 ++- shared/i18n/locales/uk_UA/translation.json | 16 ++- shared/i18n/locales/vi_VN/translation.json | 16 ++- shared/i18n/locales/zh_CN/translation.json | 16 ++- shared/i18n/locales/zh_TW/translation.json | 16 ++- 27 files changed, 345 insertions(+), 183 deletions(-) diff --git a/shared/i18n/locales/ca_ES/translation.json b/shared/i18n/locales/ca_ES/translation.json index 7fd5a0f8fc..891f5d544f 100644 --- a/shared/i18n/locales/ca_ES/translation.json +++ b/shared/i18n/locales/ca_ES/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Els lectors només poden veure i comentar documents.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Esteu segur que voleu fer que {{ userName }} sigui {{ role }}?", "I understand, delete": "Entenc, elimina", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Esteu segur que voleu eliminar permanentment {{ userName }}? Aquesta operació és irrecuperable, considereu suspendre l'usuari.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Esteu segur que voleu suspendre {{ userName }}? S'evitarà que els usuaris suspesos iniciïn sessió.", "New name": "Nom nou", "Name can't be empty": "El nom no es pot deixar buit", + "Profile picture updated": "Foto de perfil actualitzada", + "Unable to upload new profile picture": "No s'ha pogut penjar la nova foto de perfil", + "Profile picture": "Foto de perfil", + "Done": "Done", "Check your email to verify the new address.": "Comproveu el vostre correu electrònic per verificar la nova adreça.", "The email will be changed once verified.": "El correu electrònic es canviarà un cop verificat.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Rebreu un correu electrònic per verificar la teva nova adreça. Ha de ser únic en l'espai de treball.", @@ -575,7 +579,6 @@ "Paste a link": "Enganxa un enllaç", "Delete embed": "Elimina l'incrustació", "Delete image": "Elimina la imatge", - "Profile picture": "Foto de perfil", "Create a new doc": "Crea un document", "Create a nested doc": "Crea un document niat", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} no serà notificat, ja que no te accés a aquest document", @@ -680,6 +683,7 @@ "Embeds": "Incrustacions", "Configure which embed providers are available in the editor.": "Configura quins proveïdors d'incrustació estan disponibles a l'editor.", "Install": "Instal·lar", + "Change profile picture": "Change profile picture", "Change name": "Canvia el nom", "Change email": "Canvia el correu electrònic", "Suspend user": "Suspèn l'usuari", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Se us redirigirà a <em>{{ redirectUri }}</em> després d'autoritzar. Assegureu-vos que confieu en aquest URL.", "read": "llegir", "write": "escriure", + "create": "create", "read and write": "llegir i escriure", "API keys": "Claus API", "attachments": "adjunts", @@ -1052,8 +1057,10 @@ "users": "usuaris", "teams": "equips", "workspace": "espai de treball", + "Full access": "Full access", "Read all data": "Llegeix totes les dades", "Write all data": "Escriu totes les dades", + "Create all data": "Create all data", "Any collection": "Qualsevol col·lecció", "All time": "Des de sempre", "Past day": "El darrer dia", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "S'està processant la vostra importació, podeu sortir d'aquesta pàgina", "File not supported – please upload a valid ZIP file": "El fitxer no és compatible – pugeu un fitxer ZIP vàlid", "Set the default permission level for collections created from the import": "Estableix el nivell de permisos per defecte per a les col·leccions creades a partir de la importació", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Inicia la importació", "Added by": "Afegit per", "Date added": "Data d'addició", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Trieu com s'indiquen les notificacions sense llegir a la icona de l'aplicació.", "You may delete your account at any time, note that this is unrecoverable": "Podeu eliminar el vostre compte en qualsevol moment, tingueu en compte que això no es pot recuperar", "Profile saved": "S'ha desat el perfil", - "Profile picture updated": "Foto de perfil actualitzada", - "Unable to upload new profile picture": "No s'ha pogut penjar la nova foto de perfil", "Manage how you appear to other members of the workspace.": "Gestioneu com apareixeu a altres membres de l'espai de treball.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Trieu una foto o una imatge per a representar-te.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "Encara no s'ha creat cap plantilla", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} està utilitzant {{ appName }} per compartir documents, inicieu la sessió per continuar.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "S'ha enviat un codi de confirmació a la vostra adreça de correu electrònic. Si us plau, introduïu el codi de sota per eliminar permanentment aquest espai de treball.", - "Confirmation code": "Codi de confirmació", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Suprimint l'espai de treball <1>{{workspaceName}}</1> es destruiran totes les col·leccions, documents, usuaris i dades associades. Se us tancarà la sessió immediatament de {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Tingueu en compte que els espais de treball estan completament separats. Poden tenir un domini diferent, configuració, usuaris i facturació.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Esteu creant un espai de treball nou utilitzant el vostre compte actual — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Proporcioneu un nom descriptiu per a aquest webhook i l'URL a la qual hauríem d'enviar una sol·licitud POST quan es creïn esdeveniments coincidents.", "A memorable identifer": "Un identificador memorable", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Clau de la signatura", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Subscriu-te a tots els esdeveniments, grups o esdeveniments individuals. Recomanem només subscriure's a la quantitat mínima d'esdeveniments que la teva aplicació necessita per funcionar.", "All events": "Tots els esdeveniments", diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 67051ea38e..8e44e004cf 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -1,7 +1,7 @@ { "New API key": "Nový API klíč", "Copy": "Kopírovat", - "API key copied": "API key copied", + "API key copied": "API klíč byl zkopírován", "Delete": "Odstranit", "Revoke": "Odebrat", "Revoke API key": "Odebrat API klíč", @@ -169,7 +169,7 @@ "New workspace": "Nový pracovní prostor", "Create a workspace": "Vytvořit pracovní prostor", "Login to workspace": "Přihlásit se do pracovního prostoru", - "template": "template", + "template": "šablona", "Template deleted": "Šablona byla odstraněna", "Deleting": "Odstraňování…", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Jste si jisti? Smazání šablony <em>{{ templateName }}</em> je trvalé.", @@ -386,15 +386,15 @@ "Sorry, an error occurred.": "Došlo k chybě.", "Click to retry": "Zkuste to znovu", "Back": "Zpět", - "Can view the document": "Can view the document", - "Can view and edit the document": "Can view and edit the document", + "Can view the document": "Může prohlížet dokument", + "Can view and edit the document": "Může prohlížet a upravovat dokument", "Manage": "Spravovat", - "Full access including sharing": "Full access including sharing", + "Full access including sharing": "Plný přístup včetně sdílení", "Permissions for {{ userName }} updated": "Oprávnění pro uživatele {{ userName }} byla aktualizována", - "Failed to approve access request": "Failed to approve access request", - "Access request dismissed": "Access request dismissed", - "Failed to dismiss access request": "Failed to dismiss access request", - "Approve": "Approve", + "Failed to approve access request": "Schválení žádosti o přístup se nezdařilo", + "Access request dismissed": "Žádost o přístup byla zamítnuta", + "Failed to dismiss access request": "Zamítnutí žádosti o přístup se nezdařilo", + "Approve": "Schválit", "Notification options": "Možnosti oznámení", "Unknown": "Neznámý", "Mentions": "Zmínky", @@ -434,7 +434,7 @@ "Public link copied to clipboard": "Veřejný odkaz byl zkopírován do schránky", "Only lowercase letters, digits and dashes allowed": "Jsou povolena pouze malá písmena, číslice a pomlčky", "Sorry, this link has already been used": "Odkaz již byl použit.", - "Publish to web": "Publish to web", + "Publish to web": "Zveřejnit na webu", "Allow anyone with the link to access": "Povolit přístup komukoli s odkazem", "Publish to internet": "Zveřejnit na internetu", "All documents in this collection will be shared on the web, including any new documents added later": "Všechny dokumenty v této kolekci budou sdíleny na webu, včetně nových dokumentů přidaných později.", @@ -450,12 +450,12 @@ "Logo": "Logo", "Add": "Přidat", "Add or invite": "Přidat nebo pozvat", - "Sharing settings updated": "Sharing settings updated", - "Display settings": "Display settings", - "Customize how the published document is displayed": "Customize how the published document is displayed", - "Image options": "Image options", - "Upload": "Upload", - "Site title": "Site title", + "Sharing settings updated": "Nastavení sdílení bylo aktualizováno", + "Display settings": "Nastavení zobrazení", + "Customize how the published document is displayed": "Přizpůsobit zobrazení zveřejněného dokumentu", + "Image options": "Možnosti obrázku", + "Upload": "Nahrát", + "Site title": "Název webu", "Show last modified": "Zobrazit poslední úpravu", "Display the last modified timestamp on the shared page": "Zobrazit čas poslední úpravy na sdílené stránce", "Show table of contents": "Zobrazit obsah", @@ -509,7 +509,7 @@ "Expand": "Rozbalit", "Document not supported – try Markdown, Plain text, HTML, or Word": "Dokument není podporován – zkuste Markdown, čistý text, HTML nebo Word.", "Import files": "Importovat soubory", - "Recent": "Recent", + "Recent": "Nedávné", "Go back": "Zpět", "Go forward": "Vpřed", "Could not load shared documents": "Sdílené dokumenty se nepodařilo načíst", @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Prohlížející mohou dokumenty pouze prohlížet a komentovat.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Opravdu chcete uživateli {{ userName }} nastavit roli {{ role }}?", "I understand, delete": "Rozumím, odstranit", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Opravdu chcete uživatele {{ userName }} trvale odstranit? Tuto operaci nelze vrátit zpět, zvažte jeho pozastavení.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Opravdu chcete pozastavit uživatele {{ userName }}? Pozastavení uživatelé se nebudou moci přihlásit.", "New name": "Nový název", "Name can't be empty": "Název nemůže být prázdný", + "Profile picture updated": "Profilový obrázek byl aktualizován", + "Unable to upload new profile picture": "Nový profilový obrázek se nepodařilo nahrát", + "Profile picture": "Profilový obrázek", + "Done": "Done", "Check your email to verify the new address.": "Pro ověření nové adresy zkontrolujte e-mail.", "The email will be changed once verified.": "E-mail bude změněn po ověření.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Obdržíte e-mail k ověření nové adresy. Adresa musí být v rámci pracovního prostoru unikátní.", @@ -575,7 +579,6 @@ "Paste a link": "Vložit odkaz", "Delete embed": "Odstranit vložený prvek", "Delete image": "Odstranit obrázek", - "Profile picture": "Profilový obrázek", "Create a new doc": "Vytvořit nový dokument", "Create a nested doc": "Vytvořit zanořený dokument", "{{ userName }} won't be notified, as they do not have access to this document": "Uživatel {{ userName }} nebude upozorněn, protože nemá k dokumentu přístup.", @@ -680,6 +683,7 @@ "Embeds": "Embedy", "Configure which embed providers are available in the editor.": "Nastavit, kteří poskytovatelé vložených prvků jsou k dispozici v editoru.", "Install": "Instalovat", + "Change profile picture": "Change profile picture", "Change name": "Změnit jméno", "Change email": "Změnit e-mail", "Suspend user": "Pozastavit uživatele", @@ -727,9 +731,9 @@ "reacted {{ emoji }} to your comment on": "reagoval {{ emoji }} na komentář v", "shared": "sdíleno", "invited you to": "vás pozval do", - "was granted access to": "was granted access to", - "requested access to": "requested access to", - "is requesting access to": "is requesting access to", + "was granted access to": "získal přístup k", + "requested access to": "požádal o přístup k", + "is requesting access to": "žádá o přístup k", "Choose a date": "Vybrat datum", "API key created. Please copy the value now as it will not be shown again.": "API klíč byl vytvořen. Hodnotu si ihned zkopírujte, znovu se již nezobrazí.", "Scopes": "Rozsahy", @@ -826,9 +830,9 @@ "{{userName}} published": "{{userName}} zveřejnil", "{{userName}} unpublished": "Uživatel {{userName}} zrušil zveřejnění", "{{userName}} moved": "{{userName}} přesunul", - "Previous version": "Previous version", + "Previous version": "Předchozí verze", "Highlight changes": "Zvýraznit změny", - "Compare to": "Compare to", + "Compare to": "Porovnat s", "No history yet": "Zatím žádná historie", "Revision deleted": "Revize byla odstraněna", "Current version": "Aktuální verze", @@ -867,10 +871,10 @@ "Add content to your document, then use headings or dividers to separate it into slides.": "Přidejte do dokumentu obsah a poté použijte nadpisy nebo oddělovače pro jeho rozdělení do snímků pro prezentaci.", "Learn more": "Zjistit více", "Backlinks": "Zpětné odkazy", - "Clear search highlight": "Clear search highlight", + "Clear search highlight": "Zrušit zvýraznění hledání", "Warning": "Varování", "This document is large which may affect performance": "Dokument je rozsáhlý, což může ovlivnit výkon aplikace.", - "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Opravdu chcete pokračovat? Odstraněním dokumentu <em>{{ documentTitle }}</em> smažete i celou jeho historii.", + "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "Opravdu chcete pokračovat? Odstraněním dokumentu <em>{{ documentTitle }}</em> smažete i celou jeho historii</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "Opravdu chcete pokračovat? Odstraněním dokumentu <em>{{ documentTitle }}</em> smažete celou jeho historii i <em>{{ any }} vnořený dokument</em>.", "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>._plural": "Opravdu chcete pokračovat? Odstraněním dokumentu <em>{{ documentTitle }}</em> smažete celou jeho historii i <em>{{ any }} vnořené dokumenty</em>.", "If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.": "Pokud chcete mít možnost se k {{noun}} v budoucnu vrátit, zvažte místo odstranění archivaci.", @@ -885,13 +889,13 @@ "No documents found for your filters.": "Pro vybrané filtry nebyly nalezeny žádné dokumenty.", "You’ve not got any drafts at the moment.": "Momentálně nemáte žádné koncepty.", "Payment Required": "Vyžadována platba", - "Access request sent": "Access request sent", + "Access request sent": "Žádost o přístup byla odeslána", "No access to this doc": "K tomuto dokumentu nemáte přístup", - "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", - "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", - "Access requested": "Access requested", - "Requesting…": "Requesting…", - "Request access": "Request access", + "Your request to access this document has been sent. You will be notified once access is granted.": "Vaše žádost o přístup k tomuto dokumentu byla odeslána. Jakmile vám bude přístup udělen, obdržíte upozornění.", + "It doesn't look like you have permission to access this document. You can request access.": "Vypadá to, že nemáte oprávnění k přístupu do tohoto dokumentu. Můžete o přístup požádat.", + "Access requested": "Přístup vyžádán", + "Requesting…": "Odesílání žádosti…", + "Request access": "Požádat o přístup", "Not found": "Nenalezeno", "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Hledaná stránka nebyla nalezena. Mohla být odstraněna nebo je odkaz neplatný.", "We were unable to load the document while offline.": "V režimu offline se dokument nepodařilo načíst.", @@ -983,8 +987,8 @@ "Continue": "Pokračovat", "Sorry, the code you entered is invalid or has expired.": "Zadaný kód je neplatný nebo jeho platnost vypršela.", "The domain associated with your email address has not been allowed for this workspace.": "Doména spojená s e-mailem není pro pracovní prostor povolena.", - "Unable to sign-in. Please navigate to your workspace's custom URL, then try to sign-in again.<1></1>If you were invited to a workspace, you will find a link to it in the invite email.": "Přihlášení se nezdařilo. Přejděte prosím na vlastní URL adresu pracovního prostoru a zkuste to znovu. Pokud jste obdrželi pozvánku, odkaz najdete v e-mailu.", - "Sorry, a new account cannot be created with a personal Gmail address.<1></1>Please use a Google Workspaces account instead.": "Nový účet nelze vytvořit s osobní Gmail adresou. Použijte prosím firemní účet Google Workspace.", + "Unable to sign-in. Please navigate to your workspace's custom URL, then try to sign-in again.<1></1>If you were invited to a workspace, you will find a link to it in the invite email.": "Přihlášení se nezdařilo. Přejdete prosím na vlastní URL adresu pracovního prostoru a zkuste to znovu.<1></1>Pokud jste obdrželi pozvánku, odkaz k němu najdete v e-mailu s pozvánkou.", + "Sorry, a new account cannot be created with a personal Gmail address.<1></1>Please use a Google Workspaces account instead.": "Nový účet nelze vytvořit s osobním Gmailem.<1></1>Místo toho prosím použijte účet Google Workspace.", "The workspace associated with your user is scheduled for deletion and cannot be accessed at this time.": "Pracovní prostor spojený s účtem je naplánován k odstranění a momentálně není přístupný.", "The workspace you authenticated with is not authorized on this installation. Try another?": "Pracovní prostor, přes který jste se ověřili, není v této instalaci autorizován.", "We could not read the user info supplied by your identity provider.": "Nepodařilo se načíst informace o uživateli od poskytovatele identity.", @@ -996,7 +1000,7 @@ "Your account has been suspended. To re-activate your account, please contact a workspace admin.": "Účet byl pozastaven. Pro reaktivaci kontaktujte správce pracovního prostoru.", "This workspace has been suspended. Please contact support to restore access.": "Pracovní prostor byl pozastaven. Pro obnovení přístupu kontaktujte podporu.", "Authentication failed – this login method was disabled by a workspace admin.": "Ověření selhalo – způsob přihlášení byl správcem zakázán.", - "The workspace you are trying to join requires an invite before you can create an account.<1></1>Please request an invite from your workspace admin and try again.": "Pracovní prostor vyžaduje před vytvořením účtu pozvánku. Požádejte správce o pozvánku a zkuste to znovu.", + "The workspace you are trying to join requires an invite before you can create an account.<1></1>Please request an invite from your workspace admin and try again.": "Pracovní prostor, ke kterému se pokoušíte připojit, vyžaduje před vytvořením účtu pozvání.<1></1>Požádejte prosím správce pracovního prostoru o pozvánku a zkuste to znovu.", "Sorry, an unknown error occurred.": "Došlo k neznámé chybě.", "Choose a workspace": "Vybrat pracovní prostor", "Choose an {{ appName }} workspace or login to continue connecting this app": "Pro připojení aplikace vyberte pracovní prostor {{ appName }} nebo se přihlaste.", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Po autorizaci budete přesměrováni na <em>{{ redirectUri }}</em> . Ujistěte se, že důvěřujete této URL.", "read": "čtení", "write": "zápis", + "create": "create", "read and write": "čtení a zápis", "API keys": "API klíče", "attachments": "přílohy", @@ -1052,8 +1057,10 @@ "users": "uživatelé", "teams": "týmy", "workspace": "pracovní prostor", + "Full access": "Full access", "Read all data": "Číst všechna data", "Write all data": "Zapisovat všechna data", + "Create all data": "Create all data", "Any collection": "Jakákoliv kolekce", "All time": "Celá doba", "Past day": "Posledních 24 hodin", @@ -1074,12 +1081,12 @@ "Search titles only": "Hledat pouze v názvech", "Please try again or contact support if the problem persists": "Zkuste to znovu, nebo v případě přetrvávajících potíží kontaktujte podporu.", "No documents found for your search filters.": "Pro vybrané filtry nebyly nalezeny žádné dokumenty.", - "Personal keys": "Personal keys", + "Personal keys": "Osobní klíče", "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "Vytvořte si osobní API klíče pro autentizaci a programové řízení dat v pracovním prostoru. Podrobnosti najdete ve <em>vývojářské dokumentaci</em>.", "API keys have been disabled by an admin for your account": "API klíče pro váš účet byly deaktivovány správcem", "Application access": "Přístup k aplikacím", "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Spravujte aplikace třetích stran a interní aplikace s přístupem k účtu {{ appName }}.", - "Could not load API keys": "Could not load API keys", + "Could not load API keys": "API klíče se nepodařilo načíst", "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 <em>developer documentation</em>.": "API klíče slouží k autentizaci a programové správě dat v pracovním prostoru. Podrobnosti najdete ve <em>vývojářské dokumentaci</em>.", "Application published": "Aplikace byla zveřejněna", @@ -1140,15 +1147,15 @@ "API key copied to clipboard": "API klíč byl zkopírován do schránky", "Copied": "Zkopírováno", "Are you sure you want to revoke the {{ tokenName }} token?": "Opravdu chcete odebrat token {{ tokenName }}?", - "Key": "Key", - "Created by": "Created by", - "Never": "Never", - "Expires": "Expires", - "Could not load preference": "Could not load preference", + "Key": "Klíč", + "Created by": "Vytvořil(a)", + "Never": "Nikdy", + "Expires": "Vyprší", + "Could not load preference": "Předvolbu se nepodařilo načíst", "Preferences saved": "Předvolby byly uloženy", - "Could not save preference": "Could not save preference", - "Open on startup": "Open on startup", - "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", + "Could not save preference": "Předvolbu se nepodařilo uložit", + "Open on startup": "Otevřít při spuštění", + "Automatically launch {{ appName }} when you sign in to your computer.": "Automaticky spustit {{ appName }} po přihlášení k počítači.", "Disconnect integration": "Odpojit integraci", "Disconnecting": "Odpojování…", "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Opravdu chcete odpojit integraci <em>{{ service }}</em>?", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Import se zpracovává, tuto stránku můžete opustit.", "File not supported – please upload a valid ZIP file": "Soubor není podporován – nahrajte prosím platný ZIP soubor.", "Set the default permission level for collections created from the import": "Nastavte výchozí úroveň oprávnění pro kolekce vytvořené z importu.", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Spustit import", "Added by": "Přidal", "Date added": "Dne", @@ -1327,8 +1335,8 @@ "Receive a notification when you are given access to a collection": "Dostávat upozornění, když získáte přístup ke kolekci", "Export completed": "Export byl dokončen", "Receive a notification when an export you requested has been completed": "Dostávat upozornění na dokončení požadovaného exportu", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Document access requested": "Byl vyžádán přístup k dokumentu", + "Receive a notification when a user requests access to a document you manage": "Dostávat upozornění, když uživatel požádá o přístup k dokumentu, který spravujete", "Getting started": "Začínáme", "Tips on getting started with features and functionality": "Tipy, jak začít pracovat s funkcemi aplikace", "New features": "Nové funkce", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Vyberte si, jak se budou zobrazovat nepřečtená oznámení v ikoně aplikace.", "You may delete your account at any time, note that this is unrecoverable": "Účet můžete kdykoli odstranit. Tuto akci nelze vrátit zpět.", "Profile saved": "Profil byl uložen", - "Profile picture updated": "Profilový obrázek byl aktualizován", - "Unable to upload new profile picture": "Nový profilový obrázek se nepodařilo nahrát", "Manage how you appear to other members of the workspace.": "Správa údajů, které vidí ostatní členové pracovního prostoru.", "Photo": "Fotografie", "Choose a photo or image to represent yourself.": "Vyberte si profilovou fotografii nebo obrázek.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "Zatím nebyly vytvořeny žádné šablony", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "Tým {{ teamName }} používá ke sdílení dokumentů aplikaci {{ appName }}. Pro pokračování se prosím přihlaste.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Na e-mail byl odeslán potvrzovací kód. Zadejte jej níže pro trvalé odstranění pracovního prostoru.", - "Confirmation code": "Potvrzovací kód", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Odstraněním pracovního prostoru <1>{{workspaceName}}</1> budou smazány veškeré kolekce, dokumenty, uživatelé i související data. Budete okamžitě odhlášeni z {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Upozorňujeme, že pracovní prostory jsou zcela oddělené a mohou mít vlastní doménu, nastavení, uživatele i fakturaci.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Vytváříte nový pracovní prostor pod aktuálním účtem — <em>{{email}}</em>.", @@ -1530,7 +1535,7 @@ "Measurement ID": "ID měření", "Create a \"Web\" stream in your Google Analytics admin dashboard and copy the measurement ID from the generated code snippet to install.": "V administraci Google Analytics vytvořte stream typu „Web“ a zkopírujte ID měření k instalaci.", "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "Pro připojení {{appName}} musíte v Linear udělit potřebná oprávnění. Zkusit znovu?", - "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Propojením s pracovním prostorem Linear povolíte náhledy úkolů (issues) přímo v dokumentech.", + "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Propojením pracovního prostoru Linear s aplikací {{appName}} povolíte náhledy úkolů (issues) přímo v dokumentech.", "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "Odpojením přijdete o náhledy odkazů z Linear v dokumentech. Opravdu?", "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "Integrace s Linear je deaktivována. Pro její aktivaci nastavte proměnné prostředí a restartujte server.", "Configure a Matomo installation to send views and analytics from the workspace to your own Matomo instance.": "Nakonfigurujte Matomo pro odesílání analytických dat do vaší vlastní instance.", @@ -1607,13 +1612,14 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Zadejte název webhooku a URL adresu, na kterou má být odeslán požadavek POST při vzniku vybraných událostí.", "A memorable identifer": "Snadno rozpoznatelný název", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Podpisový klíč (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.": "Přihlaste se k odběru událostí. Doporučujeme odebírat pouze nezbytné minimum událostí potřebných pro fungování aplikace.", "All events": "Všechny události", "All {{ groupName }} events": "Všechny události skupiny {{ groupName }}", "Webhook": "Webhook", "Webhook created": "Webhook byl vytvořen", - "Could not load webhooks": "Could not load webhooks", + "Could not load webhooks": "Webhooky se nepodařilo načíst", "Webhooks": "Webhooky", "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.": "Webhooky slouží k zasílání upozornění do vaší aplikace při událostech v {{appName}}. Události jsou odesílány jako HTTPS požadavky s JSON daty v reálném čase.", "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier umožňuje snadno propojit {{appName}} s tisíci dalších nástrojů. Automatizujte své procesy a synchronizujte data.", diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index cbaf167523..2c563fe826 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Seere kan kun se og kommentere på dokumenter.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Er du sikker på, at du vil gøre {{ userName }} til {{ role }}?", "I understand, delete": "Jeg forstår, slet", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Er du sikker på, at du vil slette {{ userName }} permanent? Denne handling kan ikke fortrydes, overvej at suspendere brugeren i stedet.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Er du sikker på, at du vil suspendere {{ userName }}? Suspenderede brugere vil blive forhindret i at logge ind.", "New name": "Nyt navn", "Name can't be empty": "Navn skal udfyldes.", + "Profile picture updated": "Profilbillede opdateret", + "Unable to upload new profile picture": "Kunne ikke uploade nyt profilbillede", + "Profile picture": "Profilbillede", + "Done": "Done", "Check your email to verify the new address.": "Tjek din e-mail for at bekræfte den nye adresse.", "The email will be changed once verified.": "E-mailen vil blive ændret når den er bekræftet.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Du vil modtage en e-mail for at bekræfte din nye adresse. Den skal være unik i arbejdsområdet.", @@ -575,7 +579,6 @@ "Paste a link": "Indsæt et link", "Delete embed": "Delete embed", "Delete image": "Slet billede", - "Profile picture": "Profilbillede", "Create a new doc": "Opret et nyt dokument", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} bliver ikke underrettet, da de ikke har adgang til dette dokument", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Change name", "Change email": "Change email", "Suspend user": "Suspend user", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Any collection", "All time": "All time", "Past day": "Past day", @@ -1162,6 +1169,7 @@ "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", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Du kan til enhver tid slette din konto, bemærk, at dette ikke kan genskabes", "Profile saved": "Profil gemt", - "Profile picture updated": "Profilbillede opdateret", - "Unable to upload new profile picture": "Kunne ikke uploade nyt profilbillede", "Manage how you appear to other members of the workspace.": "Administrer hvordan du vises for andre medlemmer af arbejdsområdet.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Vælg et foto eller billede til at repræsentere dig selv.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} bruger {{ appName }} til at dele dokumenter, log venligst ind for at fortsætte.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "En bekræftelseskode er blevet sendt til din e-mailadresse, angiv koden nedenfor for permanent at ødelægge dette arbejdsområde.", - "Confirmation code": "Bekræftelseskode", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Sletning af arbejdsrummet <1>{{workspaceName}}</1> vil ødelægge alle samlinger, dokumenter, brugere og tilknyttede data. Du vil straks blive logget ud af {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Bemærk venligst, at arbejdsområder er helt adskilt. De kan have et andet domæne, indstillinger, brugere og fakturering.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Du opretter et nyt arbejdsområde ved hjælp af din nuværende konto — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Angiv et beskrivende navn til denne webhook og URL-adressen vi skal sende en POST-anmodning til, når matchende hændelser forekommer.", "A memorable identifer": "En mindeværdig identitet", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Signeringshemmelighed", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Abonner på alle hændelser, grupper eller individuelle hændelser. Vi anbefaler kun at abonnere på det minimum af hændelser, som din applikation behøver for at fungere.", "All events": "Alle hændelser", diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index 1dd943df6e..5902350ea4 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Betrachter können nur Dokumente sehen und kommentieren.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Sind Sie sicher, dass Sie {{ userName }} zu einem {{ role }} machen möchten?", "I understand, delete": "Ich verstehe, löschen", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Bist du sicher {{ userName }} dauerhaft zu löschen? Dieser Vorgang ins nicht umkehrbar, erwäge stattdessen, den Nutzer zu sperren.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Möchtest du das Konto {{ userName }} sperren? Gesperrte Nutzer können sich nicht anmelden.", "New name": "Neuer Name", "Name can't be empty": "Der Name darf nicht leer sein", + "Profile picture updated": "Profilbild wurde aktualisiert", + "Unable to upload new profile picture": "Neues Profilbild kann nicht hochgeladen werden", + "Profile picture": "Profilbild", + "Done": "Done", "Check your email to verify the new address.": "Überprüfen Sie Ihren Posteingang, um die neue E-Mail-Adresse zu bestätigen.", "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.": "Sie erhalten eine E-Mail zur Bestätigung Ihrer neuen Adresse. Sie muss im Arbeitsbereich einmalig sein.", @@ -575,7 +579,6 @@ "Paste a link": "Link einfügen", "Delete embed": "Einbindung löschen", "Delete image": "Bild löschen", - "Profile picture": "Profilbild", "Create a new doc": "Neues Dokument erstellen", "Create a nested doc": "Neues untergeordnetes Dokument erstellen", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} wird nicht benachrichtigt, da sie keinen Zugriff auf dieses Dokument haben", @@ -680,6 +683,7 @@ "Embeds": "Einbettungen", "Configure which embed providers are available in the editor.": "Konfigurieren Sie, welche Anbieter für Einbettungen im Editor verfügbar sind.", "Install": "Installieren", + "Change profile picture": "Change profile picture", "Change name": "Namen ändern", "Change email": "E-Mail-Adresse ändern", "Suspend user": "Benutzer sperren", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Sie werden nach der Autorisierung zu <em>{{ redirectUri }}</em> weitergeleitet. Stellen Sie sicher, dass Sie der URL vertrauen.", "read": "lesen", "write": "schreiben", + "create": "create", "read and write": "lesen und schreiben", "API keys": "API Schlüssel", "attachments": "Anhänge", @@ -1052,8 +1057,10 @@ "users": "Benutzer", "teams": "Teams", "workspace": "Arbeitsbereich", + "Full access": "Full access", "Read all data": "Alle Daten lesen", "Write all data": "Alle Daten schreiben", + "Create all data": "Create all data", "Any collection": "Beliebige Sammlung", "All time": "Gesamter Zeitraum", "Past day": "Letzter Tag", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Dein Import wird bearbeitet, du kannst diese Seite sicher verlassen", "File not supported – please upload a valid ZIP file": "Datei wird nicht unterstützt – bitte lade eine gültige ZIP-Datei hoch", "Set the default permission level for collections created from the import": "Legen Sie die Standardberechtigung für Sammlungen fest, die vom Import erstellt wurden", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Import starten", "Added by": "Hinzugefügt von", "Date added": "Hinzugefügt am", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Wählen Sie, wie ungelesene Benachrichtigungen auf dem App-Symbol angezeigt werden.", "You may delete your account at any time, note that this is unrecoverable": "Sie können Ihren Account jederzeit löschen, beachten Sie, dass dies nicht wiederhergestellt werden kann", "Profile saved": "Profil gespeichert", - "Profile picture updated": "Profilbild wurde aktualisiert", - "Unable to upload new profile picture": "Neues Profilbild kann nicht hochgeladen werden", "Manage how you appear to other members of the workspace.": "Erscheinungsbild für andere Mitglieder des Arbeitsbereiches verwalten.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Wählen Sie ein Foto oder Bild, um sich selbst darzustellen.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "Es wurden noch keine Vorlagen erstellt", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} verwendet {{ appName }}, um Dokumente zu teilen. Bitte melde dich an, um fortzufahren.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Ein Bestätigungscode wurde an deine E-Mail-Adresse gesendet. Bitte gebe diesen Code unten ein, um diesen Arbeitsbereich endgültig zu löschen.", - "Confirmation code": "Bestätigungscode", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Das Löschen des <1>{{workspaceName}}</1>-Arbeitsbereichs entfernt alle Sammlungen, Dokumente, Benutzer und zugehörigen Daten. Du wirst sofort von {{appName}} abgemeldet.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Bitte beachten Sie, dass die Arbeitsbereiche vollständig getrennt sind. Sie können eine andere Domäne, Einstellungen, Benutzer und Abrechnungen haben.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Du erstellst einen neuen Arbeitsbereich mit deinem aktuellen Konto - <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Geben Sie einen aussagekräftigen Namen für diesen Webhook und die URL an, an die wir beim Erstellen passender Events einen POST-Request senden sollen.", "A memorable identifer": "Ein einprägsamer Identifer", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Signaturgeheimnis", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Abonnieren Sie alle Events, Gruppen oder einzelne Events. Wir empfehlen nur die Mindestanzahl an Events, die Ihre Anwendung benötigt, um zu funktionieren.", "All events": "Alle Ereignisse", diff --git a/shared/i18n/locales/en_GB/translation.json b/shared/i18n/locales/en_GB/translation.json index ecf6dadea5..b8d99d0c9e 100644 --- a/shared/i18n/locales/en_GB/translation.json +++ b/shared/i18n/locales/en_GB/translation.json @@ -542,10 +542,14 @@ "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 permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — 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", + "Profile picture updated": "Profile picture updated", + "Unable to upload new profile picture": "Unable to upload new profile picture", + "Profile picture": "Profile picture", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Paste a link", "Delete embed": "Delete embed", "Delete image": "Delete image", - "Profile picture": "Profile picture", "Create a new doc": "Create a new doc", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Change name", "Change email": "Change email", "Suspend user": "Suspend user", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Any collection", "All time": "All time", "Past day": "Past day", @@ -1162,6 +1169,7 @@ "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", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "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.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} is using {{ appName }} to share documents, please login to continue.", "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}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "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", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index a9f9a5d1dc..9587340ff0 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Los visualizadores sólo pueden ver y comentar documentos.", "Are you sure you want to make {{ userName }} a {{ role }}?": "¿Estás seguro de que quieres hacer de {{ userName }} un {{ role }}?", "I understand, delete": "Lo entiendo, eliminar", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "¿Estás seguro de que quieres eliminar permanentemente a {{ userName }}? Esta operación es irreversible, considera suspender al usuario en su lugar.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "¿Estás seguro de que quieres suspender a {{ userName }}? Los usuarios suspendidos no podrán iniciar sesión.", "New name": "Nuevo nombre", "Name can't be empty": "El nombre no puede estar vacío", + "Profile picture updated": "Foto de perfil guardada", + "Unable to upload new profile picture": "No se pudo cargar una nueva foto de perfil", + "Profile picture": "Foto de perfil", + "Done": "Done", "Check your email to verify the new address.": "Revisa tu correo para verificar la nueva dirección.", "The email will be changed once verified.": "El correo electrónico se cambiará una vez verificado.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Recibirás un correo electrónico para verificar tu nueva dirección. Debe ser único en el espacio de trabajo.", @@ -575,7 +579,6 @@ "Paste a link": "Pegar un enlace", "Delete embed": "Eliminar incrustado", "Delete image": "Eliminar imagen", - "Profile picture": "Foto de perfil", "Create a new doc": "Crea un nuevo documento", "Create a nested doc": "Crear un documento anidado", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} no será notificado, ya que no tiene acceso a este documento", @@ -680,6 +683,7 @@ "Embeds": "Incrustaciones", "Configure which embed providers are available in the editor.": "Configurar qué proveedores embebidos están disponibles en el editor.", "Install": "Instalar", + "Change profile picture": "Change profile picture", "Change name": "Cambiar nombre", "Change email": "Modificar correo electrónico", "Suspend user": "Suspender usuario", @@ -1028,7 +1032,7 @@ "The OAuth client could not be loaded, please check the redirect URI is valid": "El cliente OAuth no pudo ser cargado, por favor compruebe que la URI de redirección es válida", "The OAuth client could not be loaded, please check your workspace subdomain is correct": "El cliente OAuth no pudo ser cargado, por favor compruebe que su subdominio del área de trabajo es correcto", "Required OAuth parameters are missing": "Faltan parámetros OAuth requeridos", - "Authorize": " Ocurrió un error", + "Authorize": "Authorize", "{{ appName }} wants to access {{ teamName }}": "", "By <em>{{ developerName }}</em>": "Por <em>{{ developerName }}</em>", "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} podrá acceder a su cuenta y realizar las siguientes acciones", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Serás redirigido a <em>{{ redirectUri }}</em> después de autorizar. Asegúrate de confiar en esta URL.", "read": "leer", "write": "escribir", + "create": "create", "read and write": "leer y escribir", "API keys": "Claves API", "attachments": "adjuntos", @@ -1052,8 +1057,10 @@ "users": "usuarios", "teams": "equipos", "workspace": "espacio de trabajo", + "Full access": "Full access", "Read all data": "Leer todos los datos", "Write all data": "Escribir todos los datos", + "Create all data": "Create all data", "Any collection": "Cualquier colección", "All time": "Desde siempre", "Past day": "Último día", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Su importación está siendo procesada, puede salir de esta página de manera segura", "File not supported – please upload a valid ZIP file": "Archivo no soportado - por favor sube un archivo ZIP válido", "Set the default permission level for collections created from the import": "Establecer el nivel de permisos por defecto para las colecciones creadas a partir de la importación", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Iniciar importación", "Added by": "Agregado por", "Date added": "Agregado en la fecha", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Elija cómo se indican las notificaciones sin leer en el icono de la aplicación.", "You may delete your account at any time, note that this is unrecoverable": "Puedes eliminar tu cuenta en cualquier momento, ten en cuenta que esta es una operación irreversible", "Profile saved": "Perfil guardado", - "Profile picture updated": "Foto de perfil guardada", - "Unable to upload new profile picture": "No se pudo cargar una nueva foto de perfil", "Manage how you appear to other members of the workspace.": "Gestiona cómo apareces ante otros miembros del espacio de trabajo.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Elige una foto o imagen para representarte.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "Aún no se han creado plantillas", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} está usando {{ appName }} para compartir documentos, inicia sesión para continuar.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Un código de confirmación ha sido enviado a tu dirección de correo electrónico, por favor ingresa el código a continuación para eliminar permanentemente este espacio de trabajo.", - "Confirmation code": "Código de confirmación", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Eliminar el espacio de trabajo <1>{{workspaceName}}</1> eliminará todas las colecciones, documentos, usuarios y datos asociados. Se cerrará inmediatamente la sesión de {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Ten en cuenta que los espacios de trabajo están completamente separados. Pueden tener dominios, configuración, usuarios y facturación diferentes.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Estás creando un nuevo espacio de trabajo usando tu cuenta actual — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Proporciona un nombre descriptivo para este webhook y la URL a la que deberíamos enviar una solicitud POST cuando se creen eventos coincidentes.", "A memorable identifer": "Un identificador memorable", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Firma secreta", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Suscribirse a todos los eventos, grupos o eventos individuales. Recomendamos suscribirte a la cantidad mínima de eventos que tu aplicación necesita para funcionar.", "All events": "Todos los eventos", diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index eabc0d3fcd..839be2b137 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "ناظران فقط می‌توانند سند را مشاهده و نظرگذاری کنند.", "Are you sure you want to make {{ userName }} a {{ role }}?": "آیا مطمئن هستید که می‌خواهید {{ userName }} را به {{ role }} تغییر دهید؟", "I understand, delete": "فهمیدم، حذف کن", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "آیا مطمئن هستید که می‌خواهید {{ userName }} را به‌طور دائمی حذف کنید؟ این عملیات قابل بازگشت نیست؛ بهتر است ابتدا کاربر را معلق کنید.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "آیا مطمئن هستید که می‌خواهید {{ userName }} را معلق کنید؟ کاربران معلق قادر به ورود نخواهند بود.", "New name": "نام جدید", "Name can't be empty": "نام نمی‌تواند خالی باشد", + "Profile picture updated": "تصویر پروفایل به‌روز شد", + "Unable to upload new profile picture": "امکان بارگذاری تصویر جدید پروفایل وجود نداشت", + "Profile picture": "تصویر پروفایل", + "Done": "Done", "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.": "یک ایمیل برای تأیید آدرس جدید دریافت خواهید کرد. این آدرس باید در فضای کار منحصربه‌فرد باشد.", @@ -575,7 +579,6 @@ "Paste a link": "جایگذاری لینک", "Delete embed": "حذف جاسازی", "Delete image": "حذف تصویر", - "Profile picture": "تصویر پروفایل", "Create a new doc": "ایجاد سند جدید", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} مطلع نخواهد شد، زیرا به این سند دسترسی ندارد", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "نصب", + "Change profile picture": "Change profile picture", "Change name": "تغییر نام", "Change email": "تغییر ایمیل", "Suspend user": "تعلیق کاربر", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "خواندن", "write": "نوشتن", + "create": "create", "read and write": "خواندن و نوشتن", "API keys": "کلید های API", "attachments": "پیوست ها", @@ -1052,8 +1057,10 @@ "users": "کاربران", "teams": "تیم ها", "workspace": "فضای کاری", + "Full access": "Full access", "Read all data": "خواندن تمام داده‌ها", "Write all data": "نوشتن تمام داده‌ها", + "Create all data": "Create all data", "Any collection": "هر مجموعه‌ای", "All time": "تمام زمان‌ها", "Past day": "روز گذشته", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "وارد کردن شما در حال پردازش است، می توانید با خیال راحت این صفحه را ترک کنید", "File not supported – please upload a valid ZIP file": "فایل پشتیبانی نمی‌شود – لطفاً یک فایل ZIP معتبر بارگذاری کنید", "Set the default permission level for collections created from the import": "سطح دسترسی پیش‌فرض برای مجموعه‌های ایجاد شده از واردات را تنظیم کنید", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "شروع ایمپورت", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "همیشه می‌توانید حساب‌تان را حذف کنید، ولی توجه داشته باشید که این عملیات قابل بازگشت نیست", "Profile saved": "پروفایل ذخیره شد", - "Profile picture updated": "تصویر پروفایل به‌روز شد", - "Unable to upload new profile picture": "امکان بارگذاری تصویر جدید پروفایل وجود نداشت", "Manage how you appear to other members of the workspace.": "مدیریت نحوه نمایش شما به سایر اعضای فضای کاری.", "Photo": "عکس", "Choose a photo or image to represent yourself.": "یک عکس یا تصویر برای نمایندگی از خود انتخاب کنید.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} از {{ appName }} برای اشتراک‌گذاری اسناد استفاده می‌کند، لطفاً برای ادامه وارد شوید.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "کد تأیید به ایمیل شما ارسال شد. لطفاً آن را در کادر زیر وارد کنید تا این فضای کاری برای همیشه حذف شود.", - "Confirmation code": "کد تأیید", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "حذف فضای کاری <1>{{workspaceName}}</1> باعث از بین رفتن تمام مجموعه‌ها، اسناد، کاربران و داده‌های مرتبط خواهد شد. شما بلافاصله از {{appName}} خارج خواهید شد.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "توجه داشته باشید که فضاهای کاری کاملاً مستقل از هم هستند و می‌توانند دامنه، تنظیمات، کاربران و صورتحساب‌های متفاوتی داشته باشند.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "در حال ایجاد یک فضای کاری جدید با حساب فعلی خود هستید — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "یک نام توصیفی برای این webhook ارائه دهید و URL که باید هنگام ایجاد رویدادهای مطابقت یافته، درخواست POST را به آن ارسال کنیم، مشخص کنید.", "A memorable identifer": "یک شناسه به یاد ماندنی", "URL": "آدرس", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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.": "برای همه رویدادها، گروه‌ها یا رویدادهای جداگانه مشترک شوید. توصیه می‌کنیم فقط به حداقل رویدادهایی که برنامه شما برای عملکرد نیاز دارد مشترک شوید.", "All events": "همه رویدادها", diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index 3fde1951f4..58c7e278aa 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Les lecteurs peuvent uniquement voir et commenter les documents.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Êtes-vous sûr de vouloir faire de {{ userName }} un {{ role }}?", "I understand, delete": "J’ai compris, supprimer", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Êtes-vous sûr de vouloir supprimer définitivement {{ userName }} ? Cette opération est irréversible, envisagez plutôt de suspendre l'utilisateur.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Voulez-vous vraiment suspendre {{ userName }} ? Les utilisateurs suspendus ne pourront plus se connecter.", "New name": "Nouveau nom", "Name can't be empty": "Le champ Nom ne peut pas être vide", + "Profile picture updated": "Photo de profil sauvegardée", + "Unable to upload new profile picture": "Impossible d'envoyer la nouvelle photo de profil", + "Profile picture": "Photo de profil", + "Done": "Done", "Check your email to verify the new address.": "Vérifiez votre e-mail pour confirmer la nouvelle adresse.", "The email will be changed once verified.": "Le courriel sera modifié une fois vérifié.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Vous allez recevoir un e-mail pour vérifier votre nouvelle adresse. Il doit être unique dans l'espace de travail.", @@ -575,7 +579,6 @@ "Paste a link": "Coller un lien", "Delete embed": "Supprimer l'intégration", "Delete image": "Supprimer l'image", - "Profile picture": "Photo de profil", "Create a new doc": "Créer un nouveau doc", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} ne sera pas notifié, car il n'a pas accès à ce document", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Installer", + "Change profile picture": "Change profile picture", "Change name": "Changement de nom", "Change email": "Modifier le courriel", "Suspend user": "Suspendre l'Utilisateur", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "lire", "write": "écrire", + "create": "create", "read and write": "lire et écrire", "API keys": "Clés API", "attachments": "pièces jointes", @@ -1052,8 +1057,10 @@ "users": "utilisateurs", "teams": "équipes", "workspace": "espace de travail", + "Full access": "Full access", "Read all data": "Lire toutes les données", "Write all data": "Écrire toutes les données", + "Create all data": "Create all data", "Any collection": "Toutes les collections", "All time": "Tout l'historique", "Past day": "Hier", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Votre importation est en cours, vous pouvez quitter cette page en toute sécurité", "File not supported – please upload a valid ZIP file": "Fichier non pris en charge - veuillez téléverser un fichier ZIP valide", "Set the default permission level for collections created from the import": "Définir le niveau de permission par défaut pour les collections créées à partir de l'importation", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Démarrer l'importation", "Added by": "Ajouté par", "Date added": "Date ajoutée", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Vous pouvez supprimer votre compte à tout moment, notez que cela est irrécupérable", "Profile saved": "Profil enregistré", - "Profile picture updated": "Photo de profil sauvegardée", - "Unable to upload new profile picture": "Impossible d'envoyer la nouvelle photo de profil", "Manage how you appear to other members of the workspace.": "Gérer votre apparence pour les autres membres de l'espace de travail.", "Photo": "Photo", "Choose a photo or image to represent yourself.": "Choisissez une photo ou une image pour vous représenter.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} utilise {{ appName }} pour partager des documents, veuillez vous connecter pour continuer.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Un code de confirmation a été envoyé à votre adresse e-mail, veuillez saisir le code ci-dessous pour supprimer définitivement cet espace de travail.", - "Confirmation code": "Code de confirmation", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Supprimer l'espace de travail <1>{{workspaceName}}</1> va détruire toutes les collections, tous les documents et utilisateurs ainsi que les données associées. Vous serez immédiatement déconnecté de {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Veuillez noter que les espaces de travail sont complètement indépendants. Ils peuvent avoir un domaine, des réglages, des utilisateurs et une facturation complètement différents.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Vous êtes en train de créer un nouvel espace de travail avec votre compte actuel — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Indiquez un nom descriptif pour ce webhook ainsi qu'une URL sur laquelle nous devons envoyer une requête POST lors de la création des événements correspondants.", "A memorable identifer": "Un identifiant mémorisable", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Secret de signature", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Abonnez-vous à tous les événements, groupes ou événements individuels. Nous vous recommandons de ne vous abonner qu'au nombre minimum d'événements dont votre application a besoin pour fonctionner.", "All events": "Tous les évènements", diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index 6c203e08df..bb73085dd0 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "הצופים יכולים להציג ולהגיב רק על מסמכים.", "Are you sure you want to make {{ userName }} a {{ role }}?": "האם אתה בטוח שברצונך להפוך את {{ userName }} ל-{{ role }}?", "I understand, delete": "הבנתי, מחק", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "האם אתה בטוח שברצונך למחוק לצמיתות את {{ userName }}? פעולה זו אינה ניתנת לשחזור, שקול להשעות את המשתמש במקום זאת.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "האם אתה בטוח שברצונך להשעות את {{ userName }}? משתמשים מושעים ימנעו מלהתחבר.", "New name": "שם חדש", "Name can't be empty": "השם לא יכול להיות ריק", + "Profile picture updated": "תמונת הפרופיל עודכנה", + "Unable to upload new profile picture": "לא ניתן להעלות תמונת פרופיל חדשה", + "Profile picture": "תמונת פרופיל", + "Done": "Done", "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.": "תקבל אימייל לאימות הכתובת החדשה שלך. זה חייב להיות ייחודי במרחב העבודה.", @@ -575,7 +579,6 @@ "Paste a link": "הדבק קישור", "Delete embed": "מחק הטמעה", "Delete image": "מחק תמונה", - "Profile picture": "תמונת פרופיל", "Create a new doc": "צור מסמך חדש", "Create a nested doc": "צור מסמך מקונן", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} לא יקבלו הודעה, מכיוון שאין להם גישה למסמך זה", @@ -680,6 +683,7 @@ "Embeds": "הטמעות", "Configure which embed providers are available in the editor.": "הגדר אילו ספקי הטמעה זמינים בעורך.", "Install": "לְהַתְקִין", + "Change profile picture": "Change profile picture", "Change name": "שנה שם", "Change email": "שנה אימייל", "Suspend user": "השעיית משתמש", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "אתה תופנה אל <em>{{ redirectUri }}</em> לאחר אישור. ודא שאתה סומך על כתובת האתר הזו.", "read": "לִקְרוֹא", "write": "לִכתוֹב", + "create": "create", "read and write": "לקרוא ולכתוב", "API keys": "מפתחות API", "attachments": "קבצים מצורפים", @@ -1052,8 +1057,10 @@ "users": "משתמשים", "teams": "צוותים", "workspace": "סביבת עבודה", + "Full access": "Full access", "Read all data": "קרא את כל הנתונים", "Write all data": "כתוב את כל הנתונים", + "Create all data": "Create all data", "Any collection": "כל אוסף", "All time": "כל הזמן", "Past day": "היום שעבר", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "הייבוא ​​שלך בעיבוד, אתה יכול לעזוב את הדף הזה בבטחה", "File not supported – please upload a valid ZIP file": "הקובץ אינו נתמך - אנא העלה קובץ ZIP חוקי", "Set the default permission level for collections created from the import": "הגדר את רמת ההרשאה המוגדרת כברירת מחדל עבור אוספים שנוצרו מהייבוא", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "התחל לייבא", "Added by": "נוסף על ידי", "Date added": "תאריך נוסף", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "בחר כיצד הודעות שלא נקראו יצוינו בסמל האפליקציה.", "You may delete your account at any time, note that this is unrecoverable": "אתה יכול למחוק את חשבונך בכל עת, שים לב שזה לא ניתן לשחזור", "Profile saved": "הפרופיל נשמר", - "Profile picture updated": "תמונת הפרופיל עודכנה", - "Unable to upload new profile picture": "לא ניתן להעלות תמונת פרופיל חדשה", "Manage how you appear to other members of the workspace.": "נהל איך אתה מופיע בפני חברים אחרים בסביבת העבודה.", "Photo": "תַצלוּם", "Choose a photo or image to represent yourself.": "בחר תמונה או תמונה לייצג את עצמך.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "עדיין לא נוצרו תבניות", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} משתמש ב-{{ appName }} כדי לשתף מסמכים, התחבר כדי להמשיך.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "קוד אישור נשלח לכתובת האימייל שלך, אנא הזן את הקוד למטה כדי להרוס לצמיתות את סביבת העבודה הזו.", - "Confirmation code": "קוד אישור", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "מחיקת סביבת העבודה <1>{{workspaceName}}</1> תהרוס את כל האוספים, המסמכים, המשתמשים והנתונים המשויכים. תנתק מיד מ{{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "שימו לב שחללי העבודה מופרדים לחלוטין. הם יכולים להיות בעלי דומיין, הגדרות, משתמשים וחיוב שונים.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "אתה יוצר סביבת עבודה חדשה באמצעות החשבון הנוכחי שלך - <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "ספק שם תיאורי ל-webhook זה ואת כתובת האתר שאליה עלינו לשלוח בקשת POST כאשר נוצרים אירועים תואמים.", "A memorable identifer": "מזהה בלתי נשכח", "URL": "כתובת אתר", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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.": "הירשם לכל האירועים, הקבוצות או האירועים האישיים. אנו ממליצים להירשם רק לכמות המינימלית של אירועים שהאפליקציה שלך צריכה כדי לתפקד.", "All events": "כל האירועים", diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index 8c196210f6..b5d4ebebb9 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -542,10 +542,14 @@ "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 }}?": "Biztosan {{ role }} szerepbe szeretné helyezni {{ userName }} felhasználót?", "I understand, delete": "Megértettem, töröljük", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Biztos, hogy {{ userName }} véglegesen törölve legyen? Ez a művelet nem vonható vissza, fontolja meg a felfüggesztést helyette.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Bizthogy, hogy {{ userName }} fel legyen függesztve? A felfüggesztett felhasználók belépni sem tudnak.", "New name": "Új név", "Name can't be empty": "A név nem lehet üres", + "Profile picture updated": "Profilkép frissítve", + "Unable to upload new profile picture": "Nem lehet új profilképet feltölteni", + "Profile picture": "Profilkép", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Szúrjon be egy hivatkozást", "Delete embed": "Delete embed", "Delete image": "Kép törlése", - "Profile picture": "Profilkép", "Create a new doc": "Új doku létrehozása", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Név módosítása", "Change email": "Email-cím megváltoztatása", "Suspend user": "Felfüggesztett felhasználó", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API-kulcsok", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Bármelyik gyűjtemény", "All time": "Bármikor", "Past day": "Elmúlt nap", @@ -1162,6 +1169,7 @@ "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", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Bármikor törölheted a fiókodat, de utána nem szerezheted vissza", "Profile saved": "Profil elmentve", - "Profile picture updated": "Profilkép frissítve", - "Unable to upload new profile picture": "Nem lehet új profilképet feltölteni", "Manage how you appear to other members of the workspace.": "Manage how you appear to other members of the workspace.", "Photo": "Fénykép", "Choose a photo or image to represent yourself.": "Az Önt ábrázoló fénykép vagy kép kiválasztása.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} is using {{ appName }} to share documents, please login to continue.", "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": "Megerősítő kód", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Adjon egy leíró nevet ennek a webhorognak és URL-nek, amelyre POST-kérést kell küldenünk, amikor illeszkedő események jönnek létre.", "A memorable identifer": "A memorable identifer", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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": "Minden esemény", diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index f10dbabb6f..18c14f8148 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -542,10 +542,14 @@ "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": "Saya mengerti, hapus", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Anda yakin ingin menghapus {{ userName }} secara permanen? Operasi ini tidak dapat dipulihkan, sebagai gantinya pertimbangkan untuk menangguhkan pengguna.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Anda yakin ingin menangguhkan {{ userName }}? Pengguna yang ditangguhkan akan dicegah untuk masuk.", "New name": "Nama baru", "Name can't be empty": "Nama tidak boleh kosong", + "Profile picture updated": "Gambar profil diperbarui", + "Unable to upload new profile picture": "Tidak dapat mengunggah gambar profil baru", + "Profile picture": "Gambar profil", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Tempel tautan", "Delete embed": "Delete embed", "Delete image": "Hapus gambar", - "Profile picture": "Gambar profil", "Create a new doc": "Buat dokumen baru", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Ganti Nama", "Change email": "Change email", "Suspend user": "Tangguhkan pengguna", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Semua koleksi", "All time": "All time", "Past day": "Kemarin", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Pengimporan Anda sedang diproses, Anda dapat meninggalkan halaman ini dengan aman", "File not supported – please upload a valid ZIP file": "File tidak didukung – harap unggah file ZIP yang valid", "Set the default permission level for collections created from the import": "Set the default permission level for collections created from the import", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Anda dapat menghapus akun Anda kapan saja, namun ingat bahwa ini tidak dapat dibatalkan", "Profile saved": "Profil disimpan", - "Profile picture updated": "Gambar profil diperbarui", - "Unable to upload new profile picture": "Tidak dapat mengunggah gambar profil baru", "Manage how you appear to other members of the workspace.": "Kelola bagaimana Anda terlihat oleh anggota lain dari workspace.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Pilih sebuah foto atau gambar yang mewakili diri Anda.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} menggunakan {{ appName }} untuk berbagi dokumen, silakan login untuk melanjutkan.", "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}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Berikan nama deskriptif untuk webhook ini dan URL yang harus kami kirimkan POST request saat event yang cocok dibuat.", "A memorable identifer": "Pengenal yang mudah diingat", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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 ke semua event, grup, atau event individu. Kami merekomendasikan hanya Subscribe jumlah minimum event yang dibutuhkan aplikasi Anda untuk berfungsi.", "All events": "Semua event", diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index b9f36b2dbc..d19b9319b4 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Gli spettatori possono solo visualizzare e commentare i documenti.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Sei sicuro di voler rendere {{ userName }} un {{ role }}?", "I understand, delete": "Capisco, elimina", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Sei sicuro di voler eliminare definitivamente {{ userName }}? Questa operazione non è recuperabile, considera invece di sospendere l'utente.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Sei sicuro di voler eliminare permanentemente {{ userName }}? Questa operazione non è revocabile. Tutte le chiavi API, i webhook e le integrazioni da loro creati smetteranno di funzionare — considera invece di sospendere l'utente.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Sei sicuro di voler sospendere {{ userName }}? Gli utenti sospesi non potranno accedere.", "New name": "Nuovo nome", "Name can't be empty": "Il nome non può essere vuoto", + "Profile picture updated": "Immagine del profilo aggiornata", + "Unable to upload new profile picture": "Impossibile caricare la foto profilo", + "Profile picture": "Immagine del profilo", + "Done": "Fatto", "Check your email to verify the new address.": "Controlla la tua email per verificare il nuovo indirizzo.", "The email will be changed once verified.": "L'email verrà modificata una volta verificata.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Riceverai un'email per verificare il tuo nuovo indirizzo. Deve essere univoco nello spazio di lavoro.", @@ -575,7 +579,6 @@ "Paste a link": "Incolla un link", "Delete embed": "Elimina incorporamento", "Delete image": "Elimina immagine", - "Profile picture": "Immagine del profilo", "Create a new doc": "Crea un nuovo documento", "Create a nested doc": "Crea un documento annidato", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} Non verrà notificato, in quanto Non", @@ -680,6 +683,7 @@ "Embeds": "Incorpora", "Configure which embed providers are available in the editor.": "Configurare quali provider incorporati sono disponibili nell'editor.", "Install": "Installa", + "Change profile picture": "Cambia immagine del profilo", "Change name": "Cambia nome", "Change email": "Cambia email", "Suspend user": "Sospendi utente", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Dopo l'autorizzazione, verrai reindirizzato a <em>{{ redirectUri }}</em>. Assicurati che questo URL sia attendibile.", "read": "lettura", "write": "scrittura", + "create": "crea", "read and write": "lettura e scrittura", "API keys": "Chiavi API", "attachments": "allegati", @@ -1052,8 +1057,10 @@ "users": "utenti", "teams": "team", "workspace": "spazio di lavoro", + "Full access": "Accesso completo", "Read all data": "Leggi tutti i dati", "Write all data": "Scrivi tutti i dati", + "Create all data": "Crea tutti i dati", "Any collection": "Qualsiasi raccolta", "All time": "Sempre", "Past day": "Ieri", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "La tua importazione è in fase di elaborazione, puoi tranquillamente lasciare questa pagina", "File not supported – please upload a valid ZIP file": "File non supportato: carica un file ZIP valido", "Set the default permission level for collections created from the import": "Imposta il livello di autorizzazione predefinito per le raccolte create dall'importazione", + "Uploading {{progress}}%": "Caricamento {{progress}}%", "Start import": "Avvia l'importazione", "Added by": "Aggiunto da", "Date added": "Data aggiunta", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Scegli come indicare le notifiche non lette sull'icona dell'app.", "You may delete your account at any time, note that this is unrecoverable": "Puoi eliminare il tuo account in qualsiasi momento, tieni presente che l'azione non è reversibile", "Profile saved": "Profilo salvato", - "Profile picture updated": "Immagine del profilo aggiornata", - "Unable to upload new profile picture": "Impossibile caricare la foto profilo", "Manage how you appear to other members of the workspace.": "Gestisci il modo in cui appari agli altri membri dell'area di lavoro.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Scegli una foto o un'immagine che ti rappresenti.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "Non sono stati creati modelli", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} utilizza {{ appName }} per condividere documenti, effettua il login per continuare.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Un codice di conferma è stato inviato al tuo indirizzo email. Inserisci il codice qui sotto per eliminare definitivamente questo spazio di lavoro.", - "Confirmation code": "Codice di conferma", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "L'eliminazione dell'area di lavoro <1>{{workspaceName}}</1> eliminerà tutte le raccolte, i documenti, gli utenti e i dati associati. Verrai immediatamente disconnesso da {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Si prega di notare che gli spazi di lavoro sono completamente separati. Possono avere domini, impostazioni, utenti e fatturazione diversi.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Stai creando un nuovo spazio di lavoro utilizzando il tuo account corrente — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Fornisci un nome descrittivo per questo webhook e l'URL a cui dobbiamo inviare una richiesta POST quando vengono creati gli eventi corrispondenti.", "A memorable identifer": "Un identificatore memorizzabile", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "La consegna di webhook su http è insicura, usa https se possibile", "Signing secret": "Codice segreto per accesso", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Iscrivi a tutti gli eventi, gruppi o singoli eventi. Ti consigliamo d'iscrivere solo al numero minimo di eventi di cui la tua applicazione ha bisogno per funzionare.", "All events": "Tutti gli eventi", diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index 39fd42639e..1d050cc37f 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "閲覧者はドキュメントの閲覧とコメントが可能です", "Are you sure you want to make {{ userName }} a {{ role }}?": "{{ userName }} を {{ role }} にしてもよろしいですか?", "I understand, delete": "削除する", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "{{ userName }} を完全に削除してもよろしいですか?\nこの操作を元に戻すことはできません。\n代わりにユーザーを凍結することを検討してください。", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "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": "名前を空にすることはできません", + "Profile picture updated": "プロフィール画像の更新に成功しました", + "Unable to upload new profile picture": "プロフィール画像をアップロードできませんでした", + "Profile picture": "プロフィール画像", + "Done": "Done", "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.": "新しいアドレスを確認するためのメールが届きます。ワークスペース内で同じアドレスである必要があります。", @@ -575,7 +579,6 @@ "Paste a link": "リンクを貼り付け", "Delete embed": "埋め込みを削除", "Delete image": "画像を削除", - "Profile picture": "プロフィール画像", "Create a new doc": "ドキュメントを作成", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} はこのドキュメントへのアクセス権限がないため、通知されません", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "インストール", + "Change profile picture": "Change profile picture", "Change name": "名前を変更", "Change email": "メールアドレスを変更する", "Suspend user": "ユーザーを凍結", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "APIキー", "attachments": "添付ファイル", @@ -1052,8 +1057,10 @@ "users": "ユーザー", "teams": "チーム", "workspace": "ワークスペース", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "コレクション", "All time": "全期間", "Past day": "一日前", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "インポートしています\nこのページを閉じても問題ありません", "File not supported – please upload a valid ZIP file": "非対応ファイル - 有効な ZIP ファイルをアップロードしてください", "Set the default permission level for collections created from the import": "インポートから作成されたコレクションについて、デフォルトの権限レベルを設定する", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "インポートを開始", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "アカウントはいつでも削除することができます。これは取り返しのつかないことです。", "Profile saved": "プロフィールを保存しました", - "Profile picture updated": "プロフィール画像の更新に成功しました", - "Unable to upload new profile picture": "プロフィール画像をアップロードできませんでした", "Manage how you appear to other members of the workspace.": "他のメンバーに自分がどのように見えるかを管理します。", "Photo": "画像", "Choose a photo or image to represent yourself.": "あなたに関連した画像を選択してください", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} は {{ appName }} を使用してドキュメントを共有しています。続けるにはログインしてください。", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "登録されたメールアドレスに認証用のコードが送信されました。ワークスペースを永久に削除するには、メール内のコードを入力してください。", - "Confirmation code": "認証コード", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "<1>{{workspaceName}}</1> ワークスペースを削除すると、全てのコレクション、ドキュメント、ユーザー、および関連データが破棄されます。 {{appName}} からすぐにログアウトされます。", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "ワークスペースは完全に分離されているため、異なるドメイン・設定・ユーザー・請求書を利用することができます。", "You are creating a new workspace using your current account — <em>{{email}}</em>": "現在のアカウントを使用して新しいワークスペースを作成しています — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "この Webhook のわかりやすい名前と、一致するイベントが発火されたときに POST リクエストを送信する URL を指定してください。", "A memorable identifer": "覚えやすい識別子", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "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.": "全てのイベント、グループ、または個別のイベントの通知を有効にします。アプリが機能するための最小限のものだけを選択することをお勧めします。", "All events": "全てのイベント", diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index 857721e5d8..b048f1dead 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "열람자는 문서 열람과 댓글 작성만 가능합니다.", "Are you sure you want to make {{ userName }} a {{ role }}?": "정말로 {{ userName }} 에게 {{ role }} 권한을 부여 하시겠습니까?", "I understand, delete": "이해했으며, 삭제합니다.", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "{{ userName }} 를 영구 삭제하시겠습니까? 이 작업은 복구할 수 없으므로 대신 사용자를 일시 정지하는 것이 좋습니다.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "{{ userName }} 계정 사용을 중지 하시겠습니까? 중지된 사용자는 로그인 할 수 없습니다.", "New name": "새 이름", "Name can't be empty": "이름은 비어 있을 수 없습니다.", + "Profile picture updated": "프로필 사진이 업데이트 됨", + "Unable to upload new profile picture": "새 프로필 사진을 업로드 할 수 없습니다", + "Profile picture": "프로필 사진", + "Done": "Done", "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.": "새로운 주소를 확인하기 위한 이메일을 받게 됩니다. 이 주소는 작업 공간 내에서 고유해야 합니다.", @@ -575,7 +579,6 @@ "Paste a link": "링크 붙여 넣기", "Delete embed": "임베드 삭제", "Delete image": "이미지 삭제", - "Profile picture": "프로필 사진", "Create a new doc": "새 문서 만들기", "Create a nested doc": "하위 문서 생성", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} 은(는) 이 문서에 대한 액세스 권한이 없으므로 알림을 받지 않습니다.", @@ -680,6 +683,7 @@ "Embeds": "임베드", "Configure which embed providers are available in the editor.": "편집기에서 사용할 수 있는 임베드 제공업체를 구성합니다.", "Install": "설치", + "Change profile picture": "Change profile picture", "Change name": "이름 변경", "Change email": "이메일 변경", "Suspend user": "사용자 일시 정지", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "인증 후 <em>{{ redirectUri }}</em> 로 리디렉션됩니다. 이 URL을 신뢰하는지 확인하십시오.", "read": "읽기", "write": "쓰기", + "create": "create", "read and write": "읽기 및 쓰기", "API keys": "API 키", "attachments": "첨부", @@ -1052,8 +1057,10 @@ "users": "사용자", "teams": "팀", "workspace": "작업 공간", + "Full access": "Full access", "Read all data": "모든 데이터 읽기", "Write all data": "모든 데이터 쓰기", + "Create all data": "Create all data", "Any collection": "모든 컬렉션", "All time": "모든 시간", "Past day": "어제", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "가져오기를 처리 중입니다. 이 페이지를 종료해도 됩니다.", "File not supported – please upload a valid ZIP file": "지원되지 않는 파일 – 유효한 ZIP 파일을 업로드하십시오.", "Set the default permission level for collections created from the import": "가져오기로 생성된 컬렉션에 대한 기본 권한 수준 설정", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "가져오기 시작", "Added by": "추가자", "Date added": "추가된 날짜", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "읽지 않은 알림이 앱 아이콘에 표시되는 방식을 선택하세요.", "You may delete your account at any time, note that this is unrecoverable": "계정을 언제든지 삭제할 수 있지만, 다시 복구할 수 없습니다", "Profile saved": "프로필이 저장되었습니다", - "Profile picture updated": "프로필 사진이 업데이트 됨", - "Unable to upload new profile picture": "새 프로필 사진을 업로드 할 수 없습니다", "Manage how you appear to other members of the workspace.": "워크스페이스의 다른 멤버들에게 어떻게 표시될지 관리합니다.", "Photo": "사진", "Choose a photo or image to represent yourself.": "당신을 표현하는 사진이나 그림을 선택하세요.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "아직 생성 된 템플릿이 없습니다", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} 는 {{ appName }} 사용하여 문서를 공유하고 있습니다. 계속하려면 로그인하십시오.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "귀하의 이메일 주소로 확인 코드가 전송되었습니다. 워크스페이스를 영구적으로 제거하려면 아래에 코드를 입력하세요.", - "Confirmation code": "확인 코드", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "워크스페이스 <1>{{workspaceName}}</1>를 지우면 모든 컬렉션, 문서, 유저, 관련된 데이터를 제거하고 즉시 {{appName}} 에서 로그아웃 됩니다.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "워크스페이스가 완전히 분리되어 있다는 것을 참고하세요. 각 워크스페이스는 다른 도메인, 설정, 사용자, 그리고 지불 설정을 가지고 있을 수 있습니다.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "현재 계정을 사용하여 새 워크스페이스를 만들고 있습니다 — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "이 Webhook에 대한 설명이 포함된 이름과 일치하는 이벤트가 생성될 때 POST 요청을 보내야 하는 URL을 제공합니다.", "A memorable identifer": "기억 되는 식별자", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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.": "모든 이벤트, 그룹 또는 개별 이벤트를 구독하십시오. 애플리케이션이 작동하는 데 필요한 최소한의 이벤트만 구독하는 것이 좋습니다.", "All events": "모든 이벤트", diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index dd42680ed3..a6edbb5393 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Seere kan kun se og kommentere dokumenter.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Er du sikker på at du vil gjøre {{ userName }} til en {{ role }}?", "I understand, delete": "Jeg forstår, slett", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Er du sikker på at du vil slette {{ userName }} permanent? Denne operasjonen kan ikke omgjøres, vurder å suspendere brukeren i stedet.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Er du sikker på at du vil suspendere {{ userName }}? Suspendering vil hindre brukeren i å logge inn.", "New name": "Nytt navn", "Name can't be empty": "Navn kan ikke være tomt", + "Profile picture updated": "Profilbilde oppdatert", + "Unable to upload new profile picture": "Kan ikke laste opp nytt profilbilde", + "Profile picture": "Profilbilde", + "Done": "Done", "Check your email to verify the new address.": "Sjekk e-posten din for å verifisere den nye adressen.", "The email will be changed once verified.": "E-posten vil bli endret når den er blitt verifisert.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Du vil motta en e-post for å verifisere din nye e-postadresse. Den må være unik i arbeidsområdet.", @@ -575,7 +579,6 @@ "Paste a link": "Lim inn en lenke", "Delete embed": "Slett embed", "Delete image": "Slett bilde", - "Profile picture": "Profilbilde", "Create a new doc": "Lag et nytt dokument", "Create a nested doc": "Create a nested doc", "{{ 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Installer", + "Change profile picture": "Change profile picture", "Change name": "Endre navn", "Change email": "Endre e-post", "Suspend user": "Suspendere bruker", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "les", "write": "skriv", + "create": "create", "read and write": "les og skriv", "API keys": "API-nøkler", "attachments": "vedlegg", @@ -1052,8 +1057,10 @@ "users": "brukere", "teams": "lag", "workspace": "arbeidsområde", + "Full access": "Full access", "Read all data": "Lese alle data", "Write all data": "Skrive alle data", + "Create all data": "Create all data", "Any collection": "Enhver samling", "All time": "Når som helst", "Past day": "Siste dag", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Importen din blir behandlet, du kan trygt forlate denne siden", "File not supported – please upload a valid ZIP file": "Fil ikke støttet – vennligst last opp en gyldig ZIP-fil", "Set the default permission level for collections created from the import": "Angi standard tilgangsnivå for samlinger opprettet fra denne importen", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Du kan slette kontoen din når som helst, merk at dette er uopprettelig", "Profile saved": "Profil lagret", - "Profile picture updated": "Profilbilde oppdatert", - "Unable to upload new profile picture": "Kan ikke laste opp nytt profilbilde", "Manage how you appear to other members of the workspace.": "Administrer hvordan du fremstår for andre medlemmer av arbeidsområdet.", "Photo": "Bilde", "Choose a photo or image to represent yourself.": "Velg et bilde for å representere deg selv.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} bruker {{ appName }} til å dele dokumenter, vennligst logg inn for å fortsette.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "En bekreftelseskode har blitt sendt til din e-postadresse, vennligst skriv inn koden nedenfor for å slette dette arbeidsområdet permanent.", - "Confirmation code": "Bekreftelseskode", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Sletting av <1>{{workspaceName}}</1>-arbeidsområdet vil ødelegge alle samlinger, dokumenter, brukere og tilknyttede data. Du vil umiddelbart bli logget ut av {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Vær oppmerksom på at arbeidsområder er helt separate. De kan ha et annet domene, innstillinger, brukere og fakturering.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Du oppretter et nytt arbeidsområde ved hjelp av din nåværende konto — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Gi et beskrivende navn til denne webhooken og URL-en vi bør sende en POST-forespørsel til når tilsvarende hendelser opprettes.", "A memorable identifer": "Et minneverdig identifikator", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Signeringshemmelighet", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Abonner på alle hendelser, grupper eller enkelthendelser. Vi anbefaler kun å abonnere på minimum antall hendelser som din applikasjon trenger for å fungere.", "All events": "Alle hendelser", diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index a9f4e02d80..9a292ede4d 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Kijkers kunnen alleen bekijken en reageren op documenten.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Weet je zeker dat je {{ userName }} een {{ role }} wilt maken?", "I understand, delete": "Ik begrijp het, verwijder", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Weet je zeker dat je {{ userName }} definitief wilt verwijderen? Deze bewerking kan niet worden hersteld. Overweeg in plaats daarvan de gebruiker te schorsen.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Weet je zeker dat je het account {{ userName }} wilt schorsen? Geschorste gebruikers kunnen niet meer inloggen.", "New name": "Nieuwe naam", "Name can't be empty": "Naam mag niet leeg zijn", + "Profile picture updated": "Profielfoto gewijzigd", + "Unable to upload new profile picture": "Kan nieuwe profielfoto niet uploaden", + "Profile picture": "Profielfoto", + "Done": "Done", "Check your email to verify the new address.": "Controleer je e-mail om het nieuwe adres te verifiëren.", "The email will be changed once verified.": "De e-mail zal worden gewijzigd na controle.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Je ontvangt een e-mail om je nieuwe adres te verifiëren. Het moet uniek zijn in de werkruimte.", @@ -575,7 +579,6 @@ "Paste a link": "Plak een link", "Delete embed": "Insluiting verwijderen", "Delete image": "Afbeelding verwijderen", - "Profile picture": "Profielfoto", "Create a new doc": "Maak een nieuw document", "Create a nested doc": "Een geneste doc aanmaken", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} wordt niet verwittigd omdat ze geen toegang hebben tot dit document", @@ -680,6 +683,7 @@ "Embeds": "Insluiting", "Configure which embed providers are available in the editor.": "Configureer welke insluitingsaanbieders beschikbaar zijn in de editor.", "Install": "Installeren", + "Change profile picture": "Change profile picture", "Change name": "Naam wijzigen", "Change email": "Wijzig e-mail", "Suspend user": "Blokkeer gebruiker", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Na autorisatie wordt je doorverwezen naar <em>{{ redirectUri }}</em>. Zorg ervoor dat je deze URL vertrouwt.", "read": "lezen", "write": "schrijven", + "create": "create", "read and write": "lezen en schrijven", "API keys": "API-sleutels", "attachments": "bijlagen", @@ -1052,8 +1057,10 @@ "users": "gebruikers", "teams": "teams", "workspace": "werkruimte", + "Full access": "Full access", "Read all data": "Lees alle gegevens", "Write all data": "Schrijf alle gegevens", + "Create all data": "Create all data", "Any collection": "Elke collectie", "All time": "Gehele tijd", "Past day": "Afgelopen dag", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Je import wordt verwerkt, je kan deze pagina veilig verlaten", "File not supported – please upload a valid ZIP file": "Bestand niet ondersteund – upload een geldig ZIP-bestand", "Set the default permission level for collections created from the import": "Stel het standaard machtingsniveau in voor collecties vanuit de import", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start importeren", "Added by": "Toegevoegd door", "Date added": "Datum toegevoegd", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Kies hoe ongelezen meldingen worden aangegeven op het app-pictogram.", "You may delete your account at any time, note that this is unrecoverable": "Je kan je account op ieder moment verwijderen. Let op: je account kan niet hersteld worden", "Profile saved": "Wijzigingen opgeslagen", - "Profile picture updated": "Profielfoto gewijzigd", - "Unable to upload new profile picture": "Kan nieuwe profielfoto niet uploaden", "Manage how you appear to other members of the workspace.": "Beheer hoe je er uit ziet voor andere deelnemers van de werkruimte.", "Photo": "Profielfoto", "Choose a photo or image to represent yourself.": "Kies een foto of afbeelding om jezelf weer te geven.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "Er zijn nog geen sjablonen aangemaakt", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} gebruikt {{ appName }} om documenten te delen, log alsjeblieft in om door te gaan.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Een bevestigingscode is naar je e-mailadres verzonden, voer hieronder de code in om deze werkruimte definitief te verwijderen.", - "Confirmation code": "Bevestigingscode", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Het verwijderen van de werkruimte <1>{{workspaceName}}</1> zal alle collecties, documenten, gebruikers en bijbehorende gegevens verwijderen. Je wordt onmiddellijk uitgelogd bij {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Houd er rekening mee dat werkruimtes volledig gescheiden zijn. Ze kunnen een verschillend domein, instellingen, gebruikers en facturering hebben.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Je maakt een nieuwe werkruimte aan met je huidige account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Geef een beschrijvende naam op voor deze webhook en de URL waarnaar we een POST-aanvraag moeten sturen wanneer overeenkomende gebeurtenissen worden aangemaakt.", "A memorable identifer": "Een memorabele identifer", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Geheim voor ondertekening", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Abonneer je op alle evenementen, groepen of individuele evenementen. We raden je aan om je aan te melden voor een minimale hoeveelheid events die je sollicitatie nodig heeft.", "All events": "Alle gebeurtenissen", diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index e0abc9fa9e..fa555fdc3d 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Widzowie mogą tylko wyświetlać i komentować dokumenty.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Czy na pewno chcesz uczynić {{ userName }} {{ role }}?", "I understand, delete": "Rozumiem, usuń", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Czy na pewno chcesz trwale usunąć {{ userName }}? Ta operacja jest nieodwracalna, zamiast tego rozważ zawieszenie użytkownika.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Czy na pewno chcesz zawiesić konto {{ userName }}? Zawieszeni użytkownicy nie będą mogli się zalogować.", "New name": "Nowa nazwa", "Name can't be empty": "Nazwa nie może być pusta", + "Profile picture updated": "Zaktualizowano zdjęcie profilowe", + "Unable to upload new profile picture": "Nie można przesłać nowego zdjęcia profilowego", + "Profile picture": "Zdjęcie profilowe", + "Done": "Done", "Check your email to verify the new address.": "Sprawdź swój adres e-mail, aby zweryfikować nowy adres.", "The email will be changed once verified.": "Adres e-mail zostanie zmieniony po weryfikacji.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Otrzymasz e-mail, aby zweryfikować swój nowy adres. Musi być unikalny w obszarze roboczym.", @@ -575,7 +579,6 @@ "Paste a link": "Wklej link", "Delete embed": "Usuń osadzenie", "Delete image": "Usuń obraz", - "Profile picture": "Zdjęcie profilowe", "Create a new doc": "Utwórz nowy dokument", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} nie zostanie powiadomiony, ponieważ nie mają dostępu do tego dokumentu", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Zainstaluj", + "Change profile picture": "Change profile picture", "Change name": "Zmień nazwę", "Change email": "Zmień adres e-mail", "Suspend user": "Zawieś użytkownika", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "odczyt", "write": "zapis", + "create": "create", "read and write": "odczyt i zapis", "API keys": "Klucze API", "attachments": "załączniki", @@ -1052,8 +1057,10 @@ "users": "użytkownicy", "teams": "zespoły", "workspace": "obszar roboczy", + "Full access": "Full access", "Read all data": "Odczyt wszystkich danych", "Write all data": "Zapis wszystkich danych", + "Create all data": "Create all data", "Any collection": "Dowolna kolekcja", "All time": "Przez cały czas", "Past day": "Poprzedni dzień", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Twój import jest przetwarzany, możesz bezpiecznie opuścić tę stronę", "File not supported – please upload a valid ZIP file": "Plik nieobsługiwany – prześlij prawidłowy plik ZIP", "Set the default permission level for collections created from the import": "Ustaw domyślny poziom uprawnień dla kolekcji utworzonych z importu", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Rozpocznij importowanie", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Możesz usunąć swoje konto w dowolnym momencie, pamiętaj, że jest to nie do odzyskania", "Profile saved": "Profil został zapisany", - "Profile picture updated": "Zaktualizowano zdjęcie profilowe", - "Unable to upload new profile picture": "Nie można przesłać nowego zdjęcia profilowego", "Manage how you appear to other members of the workspace.": "Zarządzaj swoim wyglądem dla innych członków obszaru roboczego.", "Photo": "Zdjęcie", "Choose a photo or image to represent yourself.": "Wybierz zdjęcie lub obraz, który będzie Cię przedstawiał.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} używa {{ appName }} do udostępniania dokumentów, zaloguj się, aby kontynuować.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Na Twój adres e-mail został wysłany kod potwierdzający, wpisz poniżej kod, aby trwale zniszczyć ten obszar roboczy.", - "Confirmation code": "Kod potwierdzający", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Usunięcie obszaru roboczego <1>{{workspaceName}}</1> zniszczy wszystkie kolekcje, dokumenty, użytkowników i powiązane dane. Zostaniesz natychmiast wylogowany z {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Zauważ, że obszary robocze są całkowicie oddzielne. Mogą mieć inny domenę, ustawienia, użytkowników i rozliczenia.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Tworzysz nowy obszar roboczy przy użyciu bieżącego konta — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Podaj opisową nazwę dla tego webhooka oraz adres URL, na który powinniśmy wysłać żądanie POST, gdy zostaną utworzone pasujące wydarzenia.", "A memorable identifer": "Zapamiętywalny identyfikator", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Sekret podpisu", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Subskrybuj wszystkie wydarzenia, grupy wydarzeń lub pojedyncze wydarzenia. Zalecamy subskrybowanie tylko minimalnej liczby wydarzeń, które są potrzebne Twojej aplikacji do funkcjonowania.", "All events": "Wszystkie wydarzenia", diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index 1c43513868..55bdab2f04 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Visualizadores só podem visualizar e comentar em documentos.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Tem certeza que deseja tornar {{ userName }} um {{ role }}?", "I understand, delete": "Eu entendo, excluir", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Tem certeza que deseja excluir {{ userName }} permanentemente? Esta operação não é recuperável, considere suspender o usuário.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Tem certeza que deseja suspender {{ userName }}? Usuários suspensos serão impedidos de acessar a aplicação.", "New name": "Novo nome", "Name can't be empty": "O nome não pode estar vazio", + "Profile picture updated": "Imagem do perfil atualizada", + "Unable to upload new profile picture": "Não foi possível carregar a nova imagem de perfil", + "Profile picture": "Imagem do perfil", + "Done": "Done", "Check your email to verify the new address.": "Verifique seu e-mail para confirmar o novo endereço.", "The email will be changed once verified.": "O email será alterado depois de ser verificado.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Você receberá um e-mail para verificar seu novo endereço. Ele deve ser único no espaço de trabalho.", @@ -575,7 +579,6 @@ "Paste a link": "Cole um link", "Delete embed": "Deletar embed", "Delete image": "Excluir imagem", - "Profile picture": "Imagem do perfil", "Create a new doc": "Criar um novo documento", "Create a nested doc": "Create a nested doc", "{{ 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Instalar", + "Change profile picture": "Change profile picture", "Change name": "Renomear", "Change email": "Alterar e-mail", "Suspend user": "Suspender usuário", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "ler", "write": "escrever", + "create": "create", "read and write": "leitura e escrita", "API keys": "Chaves API", "attachments": "anexos", @@ -1052,8 +1057,10 @@ "users": "usuários", "teams": "equipes", "workspace": "espaço de trabalho", + "Full access": "Full access", "Read all data": "Ler todos os dados", "Write all data": "Escrever todos os dados", + "Create all data": "Create all data", "Any collection": "Qualquer coleção", "All time": "Desde o início", "Past day": "Dia anterior", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Sua importação está sendo processada, você pode sair dessa página com segurança", "File not supported – please upload a valid ZIP file": "Arquivo não suportado – faça upload de um arquivo ZIP válido", "Set the default permission level for collections created from the import": "Definir o nível de permissão padrão para coleções criadas a partir da importação", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Iniciar importação", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Você pode excluir sua conta a qualquer momento, note que isso não é recuperável", "Profile saved": "Perfil salvo", - "Profile picture updated": "Imagem do perfil atualizada", - "Unable to upload new profile picture": "Não foi possível carregar a nova imagem de perfil", "Manage how you appear to other members of the workspace.": "Gerencie como você aparece para outros membros do espaço de trabalho.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Escolha uma foto ou imagem para te representar.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} Está usando {{ appName }} para compartilhar documentos, por favor, inicie a sessão para continuar.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Um código de confirmação foi enviado para seu endereço de e-mail, por favor insira o código abaixo para destruir permanentemente este espaço de trabalho.", - "Confirmation code": "Código de confirmação", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Excluindo o espaço de trabalho <1>{{workspaceName}}</1> destruirá todas as coleções, documentos, usuários e dados associados. Você será desconectado imediatamente do {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Observe que os espaços de trabalho são completamente separados. Eles podem ter domínios, configurações, usuários e faturamentos diferentes.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Você está criando um novo espaço de trabalho utilizando sua conta atual — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Forneça um nome descritivo para este webhook e a URL para a qual devemos enviar uma solicitação POST quando eventos correspondentes forem criados.", "A memorable identifer": "Um identificador memorável", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Segredo de assinatura", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Inscreva-se em todos os eventos, grupos, ou eventos individuais. Recomendamos que se inscreva apenas a quantidade mínima de eventos que sua aplicação precisa para funcionar.", "All events": "Todos eventos", diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index c304313476..89f4328d33 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Leitores podem apenas ver e comentar documentos.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Tem certeza que quer tornar {{ userName }} um {{ role }}?", "I understand, delete": "Eu entendo, eliminar", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Tem certeza que deseja excluir {{ userName }} permanentemente? Esta operação não é reversível, considere apenas suspender o utilizador.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Tem certeza que quer suspender {{ userName }}? Utilizadores suspensos serão impedidos de aceder.", "New name": "Novo nome", "Name can't be empty": "Nome não pode estar vazio", + "Profile picture updated": "Foto de perfil foi atualizada", + "Unable to upload new profile picture": "Não é possível carregar uma nova foto de perfil", + "Profile picture": "Imagem de perfil", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Inserir um link", "Delete embed": "Delete embed", "Delete image": "Eliminar imagem", - "Profile picture": "Imagem de perfil", "Create a new doc": "Criar um novo documento", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Alterar o nome", "Change email": "Change email", "Suspend user": "Suspender utilizador", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Qualquer coleção", "All time": "All time", "Past day": "Último dia", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Importação está a ser processada, pode sair desta página com segurança", "File not supported – please upload a valid ZIP file": "Ficheiro não suportado — envie um ficheiro ZIP válido", "Set the default permission level for collections created from the import": "Definir o nível de permissão padrão para coleções criadas a partir da importação", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Iniciar importação", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Pode apagar a sua conta a qualquer momento, atenção que isso é irrecuperável", "Profile saved": "Perfil guardado", - "Profile picture updated": "Foto de perfil foi atualizada", - "Unable to upload new profile picture": "Não é possível carregar uma nova foto de perfil", "Manage how you appear to other members of the workspace.": "Gerir como aparece para outros membros da área de trabalho.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Escolha uma foto ou imagem que o represente.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} está a usar {{ appName }} para partilhar documentos, entre para continuar.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Um código de confirmação foi enviado para o seu endereço de e-mail, por favor introduza o código abaixo para eliminar permanentemente a área de trabalho.", - "Confirmation code": "Código de confirmação", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Excluir área de trabalho <1>{{workspaceName}}</1> eliminará todas as coleções, documentos, utilizadores, e dados associados. Será desligado imediatamente do {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Por favor, note que as áreas de trabalho estão completamente isoladas. Elas podem ter um domínio, configurações, utilizadores e faturação distintos.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Está a criar uma área de trabalho utilizando a conta atual — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Forneça um nome descritivo para este webhook e a URL para a qual devemos enviar um pedido POST quando os eventos correspondentes forem criados.", "A memorable identifer": "Um identifador memorável", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Segredo de assinatura", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Inscreva-se em todos os eventos, grupos ou eventos individuais. Recomendamos que se inscreva apenas a quantidade mínima de eventos que a aplicação precisa para funcionar.", "All events": "Todos os eventos", diff --git a/shared/i18n/locales/ro_RO/translation.json b/shared/i18n/locales/ro_RO/translation.json index 6d1355d8ed..43195a1e03 100644 --- a/shared/i18n/locales/ro_RO/translation.json +++ b/shared/i18n/locales/ro_RO/translation.json @@ -542,10 +542,14 @@ "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 permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — 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", + "Profile picture updated": "Profile picture updated", + "Unable to upload new profile picture": "Unable to upload new profile picture", + "Profile picture": "Profile picture", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Paste a link", "Delete embed": "Delete embed", "Delete image": "Delete image", - "Profile picture": "Profile picture", "Create a new doc": "Create a new doc", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Change name", "Change email": "Change email", "Suspend user": "Suspend user", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Any collection", "All time": "All time", "Past day": "Past day", @@ -1162,6 +1169,7 @@ "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", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "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.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} is using {{ appName }} to share documents, please login to continue.", "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}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "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", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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", diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index da970078de..53a80da7d5 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Läsare kan bara se och kommentera dokument.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Är du säker på att du vill göra {{ userName }} till {{ role }}?", "I understand, delete": "Jag förstår, ta bort", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Är du säker på att du vill ta bort {{ userName }} permanent? Denna åtgärd är oåterkallelig, överväg att stänga av användaren istället.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Är du säker på att du vill stänga av {{ userName }}? Avstängda användare kommer att hindras från att logga in.", "New name": "Nytt namn", "Name can't be empty": "Namnet kan inte vara tomt", + "Profile picture updated": "Profilbild uppdaterades", + "Unable to upload new profile picture": "Det gick inte att ladda upp ny profilbild", + "Profile picture": "Profilbild", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Klistra in en länk", "Delete embed": "Ta bort inbäddning", "Delete image": "Ta bort bild", - "Profile picture": "Profilbild", "Create a new doc": "Skapa nytt dokument", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Installera", + "Change profile picture": "Change profile picture", "Change name": "Ändra namn", "Change email": "Ändra e-post", "Suspend user": "Stäng av användaren", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "läs", "write": "skriv", + "create": "create", "read and write": "läs och skriv", "API keys": "API-nycklar", "attachments": "bifogade filer", @@ -1052,8 +1057,10 @@ "users": "användare", "teams": "team", "workspace": "arbetsyta", + "Full access": "Full access", "Read all data": "Läs all data", "Write all data": "Skriv all data", + "Create all data": "Create all data", "Any collection": "Valfri samling", "All time": "Alltid", "Past day": "Föregående dag", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Din import bearbetas, du kan lämna denna sidan", "File not supported – please upload a valid ZIP file": "Filen stöds inte – ladda upp en giltig ZIP-fil", "Set the default permission level for collections created from the import": "Ange standard behörighetsnivå för samlingar som skapats från importen", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Starta import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Du kan när som helst radera ditt konto, notera att detta inte går att återställa", "Profile saved": "Profilen har sparats", - "Profile picture updated": "Profilbild uppdaterades", - "Unable to upload new profile picture": "Det gick inte att ladda upp ny profilbild", "Manage how you appear to other members of the workspace.": "Hantera hur du visas för andra medlemmar i arbetsytan.", "Photo": "Foto", "Choose a photo or image to represent yourself.": "Välj ett foto eller en bild för att representera dig.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} använder {{ appName }} för att dela dokument, logga in för att fortsätta.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "En bekräftelsekod har skickats till din e-postadress, ange koden nedan för att permanent förstöra denna arbetsyta.", - "Confirmation code": "Bekräftelsekod", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Om du tar bort arbetsytan <1>{{workspaceName}}</1> kommer alla samlingar, dokument, användare och tillhörande data att förstöras. Du kommer omedelbart att loggas ut från {{appName}}.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Observera att arbetsytor är helt åtskilda. De kan ha olika domäner, inställningar, användare och fakturering.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Du skapar en ny arbetsyta med ditt nuvarande konto — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Ange ett beskrivande namn för denna webhook och den URL vi bör skicka en POST-begäran till när matchande händelser skapas.", "A memorable identifer": "En minnesvärd identifierare", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Signeringshemlighet", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Prenumerera på alla evenemang, grupper eller enskilda evenemang. Vi rekommenderar att du endast prenumererar på det minsta antalet händelser som din applikation behöver för att fungera.", "All events": "Alla aktiviteter", diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index db121c404b..1335618b60 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -542,10 +542,14 @@ "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 permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — 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", + "Profile picture updated": "Profile picture updated", + "Unable to upload new profile picture": "Unable to upload new profile picture", + "Profile picture": "Profile picture", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "วางลิงก์", "Delete embed": "Delete embed", "Delete image": "ลบรูป", - "Profile picture": "Profile picture", "Create a new doc": "สร้างเอกสารใหม่", "Create a nested doc": "Create a nested 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", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Install", + "Change profile picture": "Change profile picture", "Change name": "Change name", "Change email": "Change email", "Suspend user": "Suspend user", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Any collection", "All time": "All time", "Past day": "Past day", @@ -1162,6 +1169,7 @@ "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", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "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.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} is using {{ appName }} to share documents, please login to continue.", "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}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "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", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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", diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index 5d60f8125b..696ba8a046 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Görüntüleyiciler yalnızca belgeleri görüntüleyebilir ve yorum yapabilir.", "Are you sure you want to make {{ userName }} a {{ role }}?": "{{ userName }} kullanıcısını {{ role }} yapmak istediğinizden emin misiniz?", "I understand, delete": "Anlıyorum, sil", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "{{ userName }} kullanıcısını kalıcı olarak silmek istediğinizden emin misiniz? Bu işlem geri alınamaz, bunun yerine kullanıcıyı askıya almayı düşünün.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "{{ userName }} kullanıcısını askıya almak istediğinizden emin misiniz? Askıya alınan kullanıcıların giriş yapması engellenecektir.", "New name": "Yeni ad", "Name can't be empty": "Ad boş olamaz", + "Profile picture updated": "Profil fotoğrafı güncellendi", + "Unable to upload new profile picture": "Yeni profil fotoğrafı yüklenemiyor", + "Profile picture": "Profil fotoğrafı", + "Done": "Done", "Check your email to verify the new address.": "Yeni adresi doğrulamak için e-postanızı kontrol edin.", "The email will be changed once verified.": "E-posta doğrulandıktan sonra değiştirilecektir.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Yeni adresinizi doğrulamak için bir e-posta alacaksınız. Bu adres, çalışma alanında benzersiz olmalıdır.", @@ -575,7 +579,6 @@ "Paste a link": "Bir bağlantı yapıştırın", "Delete embed": "Yerleştirmeyi sil", "Delete image": "Resmi sil", - "Profile picture": "Profil fotoğrafı", "Create a new doc": "Yeni bir belge oluştur", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} bu belgeye erişimi olmadığı için bildirim almayacak", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Yükle", + "Change profile picture": "Change profile picture", "Change name": "Adı değiştir", "Change email": "E-postayı değiştir", "Suspend user": "Kullanıcıyı askıya al", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Yetkilendirmeyi tamamladıktan sonra <em>{{ redirectUri }}</em> adresine yönlendirileceksiniz. Bu URL'e güvenebileceğinizden emin olun.", "read": "oku", "write": "yaz", + "create": "create", "read and write": "oku ve yaz", "API keys": "API anahtarları", "attachments": "ekler", @@ -1052,8 +1057,10 @@ "users": "kullanıcılar", "teams": "ekipler", "workspace": "çalışma alanı", + "Full access": "Full access", "Read all data": "Tüm verileri oku", "Write all data": "Tüm verileri yaz", + "Create all data": "Create all data", "Any collection": "Herhangi bir koleksiyon", "All time": "Tüm zamanlar", "Past day": "Geçen gün", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "İçe aktarımınız işleniyor, bu sayfadan güvenle ayrılabilirsiniz", "File not supported – please upload a valid ZIP file": "Dosya desteklenmiyor – lütfen geçerli bir ZIP dosyası yükleyin", "Set the default permission level for collections created from the import": "İçe aktarımdan oluşturulan koleksiyonlar için varsayılan izin düzeyini belirleyin", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "İçe aktarmayı başlat", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Hesabınızı istediğiniz zaman silebilirsiniz, bunun kurtarılamaz olduğunu unutmayın", "Profile saved": "Profil kaydedildi", - "Profile picture updated": "Profil fotoğrafı güncellendi", - "Unable to upload new profile picture": "Yeni profil fotoğrafı yüklenemiyor", "Manage how you appear to other members of the workspace.": "Çalışma alanının diğer üyelerine nasıl göründüğünüzü yönetin.", "Photo": "Fotoğraf", "Choose a photo or image to represent yourself.": "Kendinizi temsil edecek bir fotoğraf veya resim seçin.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }}, belgeleri paylaşmak için {{ appName }} kullanıyor, devam etmek için lütfen giriş yapın.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "E-posta adresinize bir onay kodu gönderildi, bu çalışma alanını kalıcı olarak yok etmek için lütfen kodu aşağıya girin.", - "Confirmation code": "Onay kodu", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "<1>{{workspaceName}}</1> çalışma alanını silmek, tüm koleksiyonları, belgeleri, kullanıcıları ve ilişkili verileri yok edecektir. {{appName}} uygulamasından hemen çıkışınız yapılacaktır.", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "Çalışma alanlarının tamamen ayrı olduğunu lütfen unutmayın. Farklı bir alan adı, ayarlar, kullanıcılar ve faturalandırmaya sahip olabilirler.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "Mevcut hesabınızı (<em>{{email}}</em>) kullanarak yeni bir çalışma alanı oluşturuyorsunuz", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Bu webhook için açıklayıcı bir ad ve eşleşen olaylar oluşturulduğunda POST isteği göndermemiz gereken URL'yi sağlayın.", "A memorable identifer": "Akılda kalıcı bir tanımlayıcı", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Gizli anahtar imzalama", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Tüm olaylara, gruplara veya bireysel olaylara abone olun. Uygulamanızın işlev görmesi için gereken minimum olay miktarına abone olmanızı öneririz.", "All events": "Tüm olaylar", diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index 33fc58278e..70b080f9aa 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "Переглядачі можуть переглядати й коментувати документи.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Ви впевнені, що хочете зробити з {{ userName }} в ролі {{ role }}?", "I understand, delete": "Я розумію, видалити", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Ви впевнені, що бажаєте остаточно видалити {{ userName }}? Цю операцію неможливо скасувати, подумайте натомість про деактивацію користувача.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Ви впевнені, що хочете заблокувати {{ userName }}? Заблоковані користувачі не зможуть увійти.", "New name": "Нова назва", "Name can't be empty": "Назва не може бути незаповненою", + "Profile picture updated": "Зображення профілю оновлено", + "Unable to upload new profile picture": "Не вдалося завантажити нове зображення профілю", + "Profile picture": "Аватар", + "Done": "Done", "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.": "Ви отримаєте електронний лист для підтвердження своєї нової адреси. Вона має бути унікальною у робочій області.", @@ -575,7 +579,6 @@ "Paste a link": "Вставити посилання", "Delete embed": "Видалити вкладення", "Delete image": "Видалити зображення", - "Profile picture": "Аватар", "Create a new doc": "Створіть новий документ", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} не буде повідомлено, тому що він не має доступу до цього документа", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Встановити", + "Change profile picture": "Change profile picture", "Change name": "Змінити ім'я", "Change email": "Змінити ел. скриньку", "Suspend user": "Тимчасово заблокувати користувача", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Ви будете перенаправлені на <em>{{ redirectUri }}</em> після авторизації. Переконайтеся, що ви довіряєте цій URL-адресі.", "read": "читати", "write": "писати", + "create": "create", "read and write": "читати і писати", "API keys": "Ключі API", "attachments": "Вкладення", @@ -1052,8 +1057,10 @@ "users": "користувачі", "teams": "команди", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Будь-яка колекція", "All time": "Увесь час", "Past day": "Учора", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Ваш імпорт обробляється, ви можете спокійно покинути цю сторінку", "File not supported – please upload a valid ZIP file": "Файл не підтримується – завантажте дійсний файл ZIP", "Set the default permission level for collections created from the import": "Set the default permission level for collections created from the import", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Почати імпорт", "Added by": "Ким додано", "Date added": "Дата додавання", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Ви можете видалити свій обліковий запис у будь-який час, зауважте, що це невиправно", "Profile saved": "Профіль збережено", - "Profile picture updated": "Зображення профілю оновлено", - "Unable to upload new profile picture": "Не вдалося завантажити нове зображення профілю", "Manage how you appear to other members of the workspace.": "Керуйте своїм виглядом для інших учасників робочого простору.", "Photo": "Фото", "Choose a photo or image to represent yourself.": "Виберіть фотографію або зображення, щоб представити себе.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} використовує {{ appName }} для обміну документами, увійдіть, щоб продовжити.", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "Код підтвердження надіслано на вашу електронну пошту. Введіть код в поле нижче, щоб назавжди видалити цей робочий простір.", - "Confirmation code": "Код підтвердження", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Укажіть описову назву для цього вебхуку та URL-адресу, на яку ми маємо надіслати запит POST, коли створюються відповідні події.", "A memorable identifer": "Ідентифікатор, що запам'ятовується", "URL": "URL-адреса", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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.": "Підписатись на всі події, групи або окремі події. Ми рекомендуємо підписуватися лише на мінімальну кількість подій, необхідних для роботи вашої програми.", "All events": "Всі події", diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index 2b44c3818b..8307b6056b 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -542,10 +542,14 @@ "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": "Tôi hiểu, xóa", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "Bạn có chắc muốn xóa vĩnh viễn {{ userName }}? Thao tác này không thể khôi phục được, hãy cân nhắc treo tài khoản đó.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Bạn có chắc chắn muốn tạm ngưng tài khoản này không? Người dùng bị treo sẽ bị ngăn đăng nhập.", "New name": "Tên mới", "Name can't be empty": "Không được để trống tên", + "Profile picture updated": "Đã cập nhật ảnh hồ sơ", + "Unable to upload new profile picture": "Không thể tải lên ảnh hồ sơ mới", + "Profile picture": "Ảnh đại diện", + "Done": "Done", "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.", @@ -575,7 +579,6 @@ "Paste a link": "Dán đường link", "Delete embed": "Xóa phần nhúng", "Delete image": "Xóa ảnh", - "Profile picture": "Ảnh đại diện", "Create a new doc": "Tạo một tài liệu mới", "Create a nested doc": "Create a nested doc", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} sẽ không được thông báo, bởi vì họ không có quyền truy cập tài liệu này", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "Cài đặt", + "Change profile picture": "Change profile picture", "Change name": "Đổi tên", "Change email": "Thay đổi email", "Suspend user": "Treo tài khoản", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "read", "write": "write", + "create": "create", "read and write": "read and write", "API keys": "API keys", "attachments": "attachments", @@ -1052,8 +1057,10 @@ "users": "users", "teams": "teams", "workspace": "workspace", + "Full access": "Full access", "Read all data": "Read all data", "Write all data": "Write all data", + "Create all data": "Create all data", "Any collection": "Tất cả bộ sưu tập", "All time": "All time", "Past day": "Ngày hôm qua", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "Quá trình nhập của bạn đang được xử lý, bạn có thể rời khỏi trang này một cách an toàn", "File not supported – please upload a valid ZIP file": "Tệp không được hỗ trợ - vui lòng tải lên tệp ZIP hợp lệ", "Set the default permission level for collections created from the import": "Set the default permission level for collections created from the import", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "Start import", "Added by": "Added by", "Date added": "Date added", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "Bạn có thể xóa tài khoản của mình bất kỳ lúc nào, lưu ý rằng điều này không thể khôi phục được", "Profile saved": "Hồ sơ đã lưu", - "Profile picture updated": "Đã cập nhật ảnh hồ sơ", - "Unable to upload new profile picture": "Không thể tải lên ảnh hồ sơ mới", "Manage how you appear to other members of the workspace.": "Quản lý cách bạn xuất hiện với các thành viên khác trong không gian làm việc.", "Photo": "Ảnh", "Choose a photo or image to represent yourself.": "Chọn một bức ảnh hoặc hình ảnh để đại diện cho chính bạn.", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} đang sử dụng {{ appName }} để chia sẻ tài liệu, vui lòng đăng nhập để tiếp tục.", "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}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Deleting the <1>{{workspaceName}}</1> 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.", "You are creating a new workspace using your current account — <em>{{email}}</em>": "You are creating a new workspace using your current account — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Cung cấp tên mô tả cho webhook này và URL mà chúng tôi sẽ gửi yêu cầu POST khi tạo các sự kiện phù hợp.", "A memorable identifer": "Một nhận dạng đáng nhớ", "URL": "Đường Dẫn URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "Signing secret": "Chữ ký bí mật", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Đăng ký tất cả các sự kiện, nhóm hoặc sự kiện riêng lẻ. Chúng tôi khuyên bạn chỉ nên đăng ký số lượng sự kiện tối thiểu mà ứng dụng của bạn cần để hoạt động.", "All events": "Tất cả các sự kiện", diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index 86febc2dd0..f141c552ed 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "浏览者只能浏览和评论文档。", "Are you sure you want to make {{ userName }} a {{ role }}?": "您确定要设置 {{ userName }} 作为 {{ role }} 吗?", "I understand, delete": "我了解,删除", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "你确定要永久删除 {{ userName }} 吗?此操作不可恢复,请考虑停用用户而非删除。", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "您确定要停用账户 {{ userName }} 吗?被停用的用户将无法登录。", "New name": "新的名称", "Name can't be empty": "名称不能为空", + "Profile picture updated": "头像已更新", + "Unable to upload new profile picture": "无法上传个人图片", + "Profile picture": "个人头像", + "Done": "Done", "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.": "您将收到一封电子邮件以验证您的新的电子邮箱地址。请注意,该电子邮箱在工作区内需尚未被使用。", @@ -575,7 +579,6 @@ "Paste a link": "粘贴链接", "Delete embed": "删除嵌入", "Delete image": "删除图片", - "Profile picture": "个人头像", "Create a new doc": "新建文档", "Create a nested doc": "创建一个嵌套的文档", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} 不会被通知,因为他们没有访问此文档的权限", @@ -680,6 +683,7 @@ "Embeds": "Embeds", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "安装", + "Change profile picture": "Change profile picture", "Change name": "更换名称", "Change email": "更换电子邮箱", "Suspend user": "停用用户", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "读", "write": "写", + "create": "create", "read and write": "读写", "API keys": "API 密钥", "attachments": "附件", @@ -1052,8 +1057,10 @@ "users": "用户", "teams": "团队", "workspace": "工作区", + "Full access": "Full access", "Read all data": "读所有数据", "Write all data": "写所有数据", + "Create all data": "Create all data", "Any collection": "文档集", "All time": "所有时间", "Past day": "过去一天", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "您的导入正在处理中,您可以放心地离开此页面", "File not supported – please upload a valid ZIP file": "不支持文件 - 请上传有效的 ZIP 文件", "Set the default permission level for collections created from the import": "为从导入创建的文档集设置默认权限级别", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "开始导入", "Added by": "添加自", "Date added": "日期已添加", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "选择应用程序图标上显示未读通知的方式。", "You may delete your account at any time, note that this is unrecoverable": "您可以随时删除您的帐户,请注意这不可恢复", "Profile saved": "配置已保存", - "Profile picture updated": "头像已更新", - "Unable to upload new profile picture": "无法上传个人图片", "Manage how you appear to other members of the workspace.": "管理您在工作区中的资料与显示方式。", "Photo": "图片", "Choose a photo or image to represent yourself.": "选择一张照片或图片作为您的头像。", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} 正在使用 {{ appName }} 共享文档,请登录以继续。", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "验证码已发送至您的电子邮件,请在下面输入代码以永久删除此工作区。", - "Confirmation code": "验证码", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "删除 <1>{{workspaceName}}</1> 工作区将销毁所有文档集、文档、用户和关联数据。 您将立即登出 {{appName}}。", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "请注意,工作区是完全分离的。它们可以有不同的域、设置、用户和账单。", "You are creating a new workspace using your current account — <em>{{email}}</em>": "你正在使用当前账户创建新的工作区 —— <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "提供此 Webhook 的描述性名称以及创建匹配事件时我们应向其发送 POST 请求的 URL。", "A memorable identifer": "一个容易记的名称", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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.": "您可选择订阅全部事件、特定事件组或单个事件。出于安全与效率考虑,建议仅订阅您的应用运行所必需的最小事件集合。", "All events": "全部事件", diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index c99439cff6..cdfaa35f03 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -542,10 +542,14 @@ "Viewers can only view and comment on documents.": "預覽者只能預覽文件與留言", "Are you sure you want to make {{ userName }} a {{ role }}?": "您確定要將 {{ userName }} 設定為 {{ role }} 嗎?", "I understand, delete": "我明白了,刪除", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable, consider suspending the user instead.": "您確定要永久刪除 {{ userName }} 嗎?此操作不可恢復,請考慮使用暫停用戶。", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "您確定要停用 {{ userName }} 的賬號嗎?遭到停用的使用者將無法登入。", "New name": "新的名稱", "Name can't be empty": "名稱不可以空白", + "Profile picture updated": "大頭貼已上傳", + "Unable to upload new profile picture": "無法上傳新的大頭貼", + "Profile picture": "大頭貼", + "Done": "Done", "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.": "您將收到一封電子郵件以驗證您的新地址。它在工作空間中必須是唯一的。", @@ -575,7 +579,6 @@ "Paste a link": "貼上連結", "Delete embed": "刪除嵌入", "Delete image": "刪除圖片", - "Profile picture": "大頭貼", "Create a new doc": "建立新文件", "Create a nested doc": "建立子文件", "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }}不會被通知,因為他們沒有這個文件的存取權", @@ -680,6 +683,7 @@ "Embeds": "嵌入", "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", "Install": "安裝", + "Change profile picture": "Change profile picture", "Change name": "變更名稱", "Change email": "更改電子郵件", "Suspend user": "停用使用者", @@ -1036,6 +1040,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", "read": "瀏覽", "write": "編輯", + "create": "create", "read and write": "瀏覽與編輯", "API keys": "API 金鑰", "attachments": "附件", @@ -1052,8 +1057,10 @@ "users": "使用者", "teams": "團隊", "workspace": "工作空間", + "Full access": "Full access", "Read all data": "讀取所有資料", "Write all data": "寫入所有資料", + "Create all data": "Create all data", "Any collection": "任何文件集", "All time": "全天", "Past day": "過去一天", @@ -1162,6 +1169,7 @@ "Your import is being processed, you can safely leave this page": "您的匯入正在處理中,您可以安全地離開此頁面", "File not supported – please upload a valid ZIP file": "該文件不被支持 - 請上傳有效的 ZIP 壓縮文件", "Set the default permission level for collections created from the import": "為從匯入建立的文件集建立預設權限", + "Uploading {{progress}}%": "Uploading {{progress}}%", "Start import": "開始匯入", "Added by": "作者", "Date added": "新增於", @@ -1357,8 +1365,6 @@ "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", "You may delete your account at any time, note that this is unrecoverable": "您隨時可以刪除您的使用者帳號,但此為不可回復之動作", "Profile saved": "個人資料已儲存", - "Profile picture updated": "大頭貼已上傳", - "Unable to upload new profile picture": "無法上傳新的大頭貼", "Manage how you appear to other members of the workspace.": "管理您在工作區中的樣子。", "Photo": "照片", "Choose a photo or image to represent yourself.": "選擇一張照片或圖片來代表您。", @@ -1397,7 +1403,6 @@ "No templates have been created yet": "No templates have been created yet", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} 正在使用 {{ appName }} 分享文件,請登入以繼續。", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "確認碼已發送至您的電子郵件,請輸入確認碼以永久地刪除這個工作區。", - "Confirmation code": "驗證碼", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "刪除<1>{{workspaceName}}</1>工作區會刪除所有文件集,文件,使用者,以及相關資料。您會立即從{{appName}} 登出。", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "請留意工作區是完全分開的。它們可以有不同的網域,設定,使用者,帳務資訊。", "You are creating a new workspace using your current account — <em>{{email}}</em>": "您正在使用當前帳戶建立新的工作區 — <em>{{email}}</em>", @@ -1607,6 +1612,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "提供一個描述名稱給這個Webhook以及當符合特定事件時我們要傳送POST要求的URL。", "A memorable identifer": "容易記憶的辨識名稱", "URL": "URL", + "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", "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.": "訂閱所有事件、群組或個人事件。我們建議僅訂閱應用程序運行所需的最少量事件。", "All events": "所有活動", From c75815b90cbbfc77fe4d1e67dc6e955741032f88 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 08:46:07 -0400 Subject: [PATCH 186/286] v1.8.1 --- LICENSE | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 3a2d4104df..1de4bdfea8 100644 --- a/LICENSE +++ b/LICENSE @@ -3,7 +3,7 @@ Business Source License 1.1 Parameters Licensor: General Outline, Inc. -Licensed Work: Outline 1.8.0 +Licensed Work: Outline 1.8.1 The Licensed Work is (c) 2026 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 @@ -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: 2030-06-01 +Change Date: 2030-06-06 Change License: Apache License, Version 2.0 diff --git a/package.json b/package.json index 61d68e5f5a..4e1c47dc79 100644 --- a/package.json +++ b/package.json @@ -391,6 +391,6 @@ "ws@npm:~8.17.1": "^8.20.1", "uuid": "^11.1.1" }, - "version": "1.8.0", + "version": "1.8.1", "packageManager": "yarn@4.11.0" } From 62c0f15c06fd1f9e54e4887b7fbf616392810f9b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 09:02:43 -0400 Subject: [PATCH 187/286] Switch from ubicloud -> blacksmith (#12606) --- .github/workflows/docker-build-check.yml | 12 ++++----- .github/workflows/docker.yml | 34 +++++++++--------------- 2 files changed, 18 insertions(+), 28 deletions(-) diff --git a/.github/workflows/docker-build-check.yml b/.github/workflows/docker-build-check.yml index 97b6709be5..f180138efe 100644 --- a/.github/workflows/docker-build-check.yml +++ b/.github/workflows/docker-build-check.yml @@ -15,18 +15,16 @@ env: jobs: build: - runs-on: ubicloud-standard-8 + runs-on: blacksmith-8vcpu-ubuntu-2404 steps: - name: Checkout uses: actions/checkout@v5 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - driver: docker + - name: Setup Blacksmith Builder + uses: useblacksmith/setup-docker-builder@v1 - name: Build base image - uses: docker/build-push-action@v6 + uses: useblacksmith/build-push-action@v2 with: context: . file: Dockerfile.base @@ -34,7 +32,7 @@ jobs: push: false - name: Build main image - uses: docker/build-push-action@v6 + uses: useblacksmith/build-push-action@v2 with: context: . file: Dockerfile diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c8be149fd6..fd3b5dea49 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -11,13 +11,13 @@ env: jobs: build-arm: - runs-on: ubicloud-standard-8-arm + runs-on: blacksmith-8vcpu-ubuntu-2404-arm steps: - name: Checkout uses: actions/checkout@v5 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 + - name: Setup Blacksmith Builder + uses: useblacksmith/setup-docker-builder@v1 - name: Docker base meta id: base_meta @@ -37,7 +37,7 @@ jobs: - name: Build and push base image id: base_build - uses: docker/build-push-action@v7 + uses: useblacksmith/build-push-action@v2 with: context: . file: Dockerfile.base @@ -45,8 +45,6 @@ jobs: tags: ${{ env.BASE_IMAGE_NAME }} outputs: type=image,push-by-digest=true,name-canonical=true,push=true platforms: linux/arm64 - cache-from: type=gha - cache-to: type=gha,mode=max pull: false - name: Docker meta @@ -61,7 +59,7 @@ jobs: - name: Build and push id: build - uses: docker/build-push-action@v7 + uses: useblacksmith/build-push-action@v2 with: context: . file: Dockerfile @@ -69,8 +67,6 @@ jobs: tags: ${{ env.IMAGE_NAME }} outputs: type=image,push-by-digest=true,name-canonical=true,push=true platforms: linux/arm64 - cache-from: type=gha - cache-to: type=gha,mode=max pull: false build-args: | BASE_IMAGE=${{ env.BASE_IMAGE_NAME }}@${{ steps.base_build.outputs.digest }} @@ -90,13 +86,13 @@ jobs: retention-days: 1 build-amd: - runs-on: ubicloud-standard-8 + runs-on: blacksmith-8vcpu-ubuntu-2404 steps: - name: Checkout uses: actions/checkout@v5 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 + - name: Setup Blacksmith Builder + uses: useblacksmith/setup-docker-builder@v1 - name: Docker base meta id: base_meta @@ -116,7 +112,7 @@ jobs: - name: Build and push base image id: base_build - uses: docker/build-push-action@v7 + uses: useblacksmith/build-push-action@v2 with: context: . file: Dockerfile.base @@ -124,8 +120,6 @@ jobs: tags: ${{ env.BASE_IMAGE_NAME }} outputs: type=image,push-by-digest=true,name-canonical=true,push=true platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max pull: false - name: Docker meta @@ -140,7 +134,7 @@ jobs: - name: Build and push id: build - uses: docker/build-push-action@v7 + uses: useblacksmith/build-push-action@v2 with: context: . file: Dockerfile @@ -148,8 +142,6 @@ jobs: tags: ${{ env.IMAGE_NAME }} outputs: type=image,push-by-digest=true,name-canonical=true,push=true platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max pull: false build-args: | BASE_IMAGE=${{ env.BASE_IMAGE_NAME }}@${{ steps.base_build.outputs.digest }} @@ -169,7 +161,7 @@ jobs: retention-days: 1 merge: - runs-on: ubicloud-standard-8 + runs-on: blacksmith-8vcpu-ubuntu-2404 needs: - build-amd - build-arm @@ -188,8 +180,8 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 + - name: Setup Blacksmith Builder + uses: useblacksmith/setup-docker-builder@v1 - name: Docker meta id: meta From c2edd41e8706531ea70ed544bc7c25b39e2563fb Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 09:05:01 -0400 Subject: [PATCH 188/286] Enable manual runs of 'Publish build' workflow --- .github/workflows/docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fd3b5dea49..8feaa4807b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,6 +4,7 @@ on: push: tags: - "v*" + workflow_dispatch: env: IMAGE_NAME: outlinewiki/outline From 58f0613b5f87f94c92a3c00aa6dab2c59749636b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 09:30:50 -0400 Subject: [PATCH 189/286] Delete .github/workflows/docker-build-check.yml --- .github/workflows/docker-build-check.yml | 41 ------------------------ 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/docker-build-check.yml diff --git a/.github/workflows/docker-build-check.yml b/.github/workflows/docker-build-check.yml deleted file mode 100644 index f180138efe..0000000000 --- a/.github/workflows/docker-build-check.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Docker Build Check - -on: - push: - paths: - - "Dockerfile" - - "Dockerfile.base" - pull_request: - paths: - - "Dockerfile" - - "Dockerfile.base" - -env: - BASE_IMAGE_NAME: outline-base - -jobs: - build: - runs-on: blacksmith-8vcpu-ubuntu-2404 - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Setup Blacksmith Builder - uses: useblacksmith/setup-docker-builder@v1 - - - name: Build base image - uses: useblacksmith/build-push-action@v2 - with: - context: . - file: Dockerfile.base - tags: ${{ env.BASE_IMAGE_NAME }}:latest - push: false - - - name: Build main image - uses: useblacksmith/build-push-action@v2 - with: - context: . - file: Dockerfile - push: false - build-args: | - BASE_IMAGE=${{ env.BASE_IMAGE_NAME }}:latest From f4b80d5301d3213dbacd1ba654f5d94f045c1fc4 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 10:14:35 -0400 Subject: [PATCH 190/286] fix: PDF display does not correctly scale on ombile (#12608) --- app/editor/menus/block.tsx | 2 - shared/editor/components/PDF.tsx | 37 +++++++++++-------- shared/editor/components/Styles.ts | 25 ------------- .../editor/components/hooks/useDragResize.ts | 4 +- 4 files changed, 24 insertions(+), 44 deletions(-) diff --git a/app/editor/menus/block.tsx b/app/editor/menus/block.tsx index 0ed9f5bea6..413aef9d79 100644 --- a/app/editor/menus/block.tsx +++ b/app/editor/menus/block.tsx @@ -124,8 +124,6 @@ export default function blockMenuItems( keywords: "pdf upload attach", attrs: { accept: "application/pdf", - width: 300, - height: 424, preview: true, }, }, diff --git a/shared/editor/components/PDF.tsx b/shared/editor/components/PDF.tsx index 02c8fe1142..184b884631 100644 --- a/shared/editor/components/PDF.tsx +++ b/shared/editor/components/PDF.tsx @@ -9,6 +9,13 @@ import { s } from "../../styles"; import { Preview, Subtitle, Title } from "./Widget"; import { EditorStyleHelper } from "../styles/EditorStyleHelper"; +/** + * Default dimensions for the PDF preview – approximately the width of a standard + * document with an A4 portrait aspect ratio. + */ +const naturalWidth = 768; +const naturalHeight = 1086; + type Props = ComponentProps & { /** Icon to display on the left side of the widget */ icon: React.ReactNode; @@ -27,16 +34,14 @@ export default function PdfViewer(props: Props) { const embedRef = useRef<HTMLEmbedElement>(null); const debounceTimerRef = useRef<NodeJS.Timeout | null>(null); - const { width, height, setSize, handlePointerDown, dragging } = useDragResize( - { - width: node.attrs.width, - height: node.attrs.height, - naturalWidth: 300, - naturalHeight: 424, - onChangeSize, - ref, - } - ); + const { width, setSize, handlePointerDown, dragging } = useDragResize({ + width: node.attrs.width, + height: node.attrs.height, + naturalWidth, + naturalHeight, + onChangeSize, + ref, + }); useEffect(() => { if (node.attrs.width && node.attrs.width !== width) { @@ -96,7 +101,7 @@ export default function PdfViewer(props: Props) { ? "pdf-wrapper ProseMirror-selectednode" : "pdf-wrapper" } - style={{ width: width ?? "auto" }} + style={{ width: width ?? "100%" }} $dragging={dragging} > <Flex gap={6} align="center"> @@ -110,12 +115,10 @@ export default function PdfViewer(props: Props) { title={name} src={href} ref={embedRef} - width={ - // subtract padding and borders from width - width - 24 - } - height={height} style={{ + width: "100%", + height: "auto", + aspectRatio: `${naturalWidth} / ${naturalHeight}`, pointerEvents: !isEditable || (isSelected && !dragging) ? "initial" : "none", marginTop: 6, @@ -153,6 +156,8 @@ const PDFWrapper = styled.div<{ $dragging: boolean }>` padding: ${EditorStyleHelper.blockRadius}; embed { + display: block; + max-width: 100%; transition-property: width, height; transition-duration: ${(props) => (props.$dragging ? "0ms" : "120ms")}; transition-timing-function: ease-in-out; diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index b16353f0b9..a199663ccd 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -822,31 +822,6 @@ iframe.embed { } } -.pdf { - position: relative; - width: max-content; - height: max-content; - margin-right: auto; - margin-left: auto; - max-width: 100%; - clear: both; - z-index: 1; - transition-property: width, height; - transition-duration: 80ms; - transition-timing-function: ease-in-out; - - embed { - display: block; - max-width: 100%; - contain: strict, - content-visibility: auto, - backface-visibility: hidden, - transition-property: width, height; - transition-duration: 80ms; - transition-timing-function: ease-in-out; - } -} - .image-replacement-uploading { img { opacity: 0.5; diff --git a/shared/editor/components/hooks/useDragResize.ts b/shared/editor/components/hooks/useDragResize.ts index 0937c5a605..29a278f854 100644 --- a/shared/editor/components/hooks/useDragResize.ts +++ b/shared/editor/components/hooks/useDragResize.ts @@ -192,7 +192,9 @@ export default function useDragResize(props: Params): ReturnValue { : Infinity; setMaxWidth(max); setSizeAtDragStart({ - width: constrainWidth(size.width, max), + // When no width has been set yet the element is displayed at full width, + // so begin resizing from the maximum width rather than the minimum. + width: constrainWidth(size.width || max, max), height: size.height, }); setOffset( From 492af6683b3b016a134e13b2ba23821e52893a85 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 6 Jun 2026 15:08:52 -0400 Subject: [PATCH 191/286] Add document restore functionality to MCP tools (#12575) * Add restore_document MCP tool and archived/trashed listing Closes the delete/restore asymmetry in the MCP server: previously documents could be archived or trashed via delete_document but never recovered. - Add restore_document tool to recover archived or trashed documents, optionally into a different collection. - Add a status option ("archived" | "trashed") to list_documents so agents can discover what to restore. - Extract the documents.restore route logic into a shared documentRestorer command, used by both the REST endpoint and the MCP tool. https://claude.ai/code/session_01HpFcYtgEZJ96iaFMuGGCmc * Use type-only import for Document in documentRestorer https://claude.ai/code/session_01HpFcYtgEZJ96iaFMuGGCmc * Revert archived/trashed status option on list_documents Keeps the restore_document tool and shared documentRestorer command; removes the list_documents status filter and its tests. https://claude.ai/code/session_01HpFcYtgEZJ96iaFMuGGCmc --------- Co-authored-by: Claude <noreply@anthropic.com> --- server/commands/documentRestorer.ts | 98 ++++++++++++++++++++++++ server/routes/api/documents/documents.ts | 61 +-------------- server/tools/documents.test.ts | 98 ++++++++++++++++++++++++ server/tools/documents.ts | 74 ++++++++++++++++++ 4 files changed, 272 insertions(+), 59 deletions(-) create mode 100644 server/commands/documentRestorer.ts diff --git a/server/commands/documentRestorer.ts b/server/commands/documentRestorer.ts new file mode 100644 index 0000000000..63e645ebac --- /dev/null +++ b/server/commands/documentRestorer.ts @@ -0,0 +1,98 @@ +import { traceFunction } from "@server/logging/tracing"; +import { ValidationError } from "@server/errors"; +import { Collection, Revision } from "@server/models"; +import type { Document } from "@server/models"; +import { authorize } from "@server/policies"; +import type { APIContext } from "@server/types"; +import { assertPresent } from "@server/validation"; + +type Props = { + /** The document to restore. Must be loaded with `paranoid: false`. */ + document: Document; + /** Destination collection to restore into. Defaults to the original collection. */ + collectionId?: string | null; + /** Revision to restore the document's content from, when not archived or deleted. */ + revisionId?: string | null; +}; + +/** + * Restores a previously archived or deleted document, or restores a document's + * content to a specific revision. Re-attaches the document to the destination + * collection's structure when applicable and authorizes the acting user. + * + * @param ctx - the API context, providing the acting user and transaction. + * @param props - the document and restore options. + * @returns the restored document. + * @throws ValidationError if the destination collection is not active. + */ +async function documentRestorer( + ctx: APIContext, + { document, collectionId, revisionId }: Props +): Promise<Document> { + const { user } = ctx.state.auth; + const { transaction } = ctx.state; + + const sourceCollectionId = document.collectionId; + const destCollectionId = collectionId ?? sourceCollectionId; + + const srcCollection = sourceCollectionId + ? await Collection.findByPk(sourceCollectionId, { + userId: user.id, + includeDocumentStructure: true, + paranoid: false, + transaction, + }) + : undefined; + + const destCollection = destCollectionId + ? await Collection.findByPk(destCollectionId, { + userId: user.id, + includeDocumentStructure: true, + transaction, + }) + : undefined; + + if (!destCollection?.isActive) { + throw ValidationError( + "Unable to restore, the collection may have been deleted or archived" + ); + } + + if (sourceCollectionId && sourceCollectionId !== destCollection.id) { + authorize(user, "updateDocument", srcCollection); + await srcCollection?.removeDocumentInStructure(document, { + save: true, + transaction, + }); + } + + if (document.deletedAt) { + authorize(user, "restore", document); + authorize(user, "updateDocument", destCollection); + + // restore a previously deleted document + await document.restoreTo(ctx, { collectionId: destCollection.id }); + } else if (document.archivedAt) { + authorize(user, "unarchive", document); + authorize(user, "updateDocument", destCollection); + + // restore a previously archived document + await document.restoreTo(ctx, { collectionId: destCollection.id }); + } else if (revisionId) { + // restore a document to a specific revision + authorize(user, "update", document); + const revision = await Revision.findByPk(revisionId, { transaction }); + authorize(document, "restore", revision); + + await document.restoreFromRevision(revision); + await document.saveWithCtx(ctx, undefined, { name: "restore" }); + } else { + assertPresent(revisionId, "revisionId is required"); + } + + return document; +} + +export default traceFunction({ + spanName: "documentRestorer", +})(documentRestorer); diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index b562173d38..91411068f8 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -29,6 +29,7 @@ import documentDuplicator from "@server/commands/documentDuplicator"; import documentLoader from "@server/commands/documentLoader"; import documentMover from "@server/commands/documentMover"; import documentPermanentDeleter from "@server/commands/documentPermanentDeleter"; +import documentRestorer from "@server/commands/documentRestorer"; import documentUpdater from "@server/commands/documentUpdater"; import env from "@server/env"; import { @@ -51,7 +52,6 @@ import { Document, DocumentInsight, Event, - Revision, SearchQuery, Template, User, @@ -89,7 +89,6 @@ import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { convertBareUrlsToEmbedMarkdown } from "@server/utils/embeds"; import { streamZipResponse } from "@server/utils/koa"; import { getTeamFromContext } from "@server/utils/passport"; -import { assertPresent } from "@server/validation"; import pagination, { paginateQuery } from "../middlewares/pagination"; import * as T from "./schema"; import { @@ -968,63 +967,7 @@ router.post( transaction, }); - const sourceCollectionId = document.collectionId; - const destCollectionId = collectionId ?? sourceCollectionId; - - const srcCollection = sourceCollectionId - ? await Collection.findByPk(sourceCollectionId, { - userId: user.id, - includeDocumentStructure: true, - paranoid: false, - transaction, - }) - : undefined; - - const destCollection = destCollectionId - ? await Collection.findByPk(destCollectionId, { - userId: user.id, - includeDocumentStructure: true, - transaction, - }) - : undefined; - - if (!destCollection?.isActive) { - throw ValidationError( - "Unable to restore, the collection may have been deleted or archived" - ); - } - - if (sourceCollectionId && sourceCollectionId !== destCollectionId) { - authorize(user, "updateDocument", srcCollection); - await srcCollection?.removeDocumentInStructure(document, { - save: true, - transaction, - }); - } - - if (document.deletedAt) { - authorize(user, "restore", document); - authorize(user, "updateDocument", destCollection); - - // restore a previously deleted document - await document.restoreTo(ctx, { collectionId: destCollectionId! }); // destCollectionId is guaranteed to be defined here - } else if (document.archivedAt) { - authorize(user, "unarchive", document); - authorize(user, "updateDocument", destCollection); - - // restore a previously archived document - await document.restoreTo(ctx, { collectionId: destCollectionId! }); // destCollectionId is guaranteed to be defined here - } else if (revisionId) { - // restore a document to a specific revision - authorize(user, "update", document); - const revision = await Revision.findByPk(revisionId, { transaction }); - authorize(document, "restore", revision); - - await document.restoreFromRevision(revision); - await document.saveWithCtx(ctx, undefined, { name: "restore" }); - } else { - assertPresent(revisionId, "revisionId is required"); - } + await documentRestorer(ctx, { document, collectionId, revisionId }); ctx.body = { data: await presentDocument(ctx, document), diff --git a/server/tools/documents.test.ts b/server/tools/documents.test.ts index 5df4294cc4..160731c16f 100644 --- a/server/tools/documents.test.ts +++ b/server/tools/documents.test.ts @@ -458,3 +458,101 @@ describe("move_document", () => { expect(res?.result?.isError).toBe(true); }); }); + +describe("restore_document", () => { + it("restores an archived document", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + archivedAt: new Date(), + }); + + const res = await callMcpTool(server, accessToken, "restore_document", { + id: document.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(res?.result?.isError).toBeUndefined(); + expect(data.document.id).toEqual(document.id); + + const reloaded = await Document.unscoped().findByPk(document.id); + expect(reloaded?.archivedAt).toBeNull(); + }); + + it("restores a trashed document", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + await document.destroy(); + + const res = await callMcpTool(server, accessToken, "restore_document", { + id: document.id, + }); + + expect(res?.result?.isError).toBeUndefined(); + + const reloaded = await Document.unscoped().findByPk(document.id, { + paranoid: false, + }); + expect(reloaded?.deletedAt).toBeNull(); + }); + + it("restores into a different collection", async () => { + const { user, accessToken } = await buildOAuthUser(); + const source = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const destination = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: source.id, + archivedAt: new Date(), + }); + + const res = await callMcpTool(server, accessToken, "restore_document", { + id: document.id, + collectionId: destination.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(res?.result?.isError).toBeUndefined(); + expect(data.document.collectionId).toEqual(destination.id); + }); + + it("fails when the document is not archived or trashed", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "restore_document", { + id: document.id, + }); + + expect(res?.result?.isError).toBe(true); + }); +}); diff --git a/server/tools/documents.ts b/server/tools/documents.ts index 3e09d64e1d..e80be278c1 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -6,6 +6,7 @@ import documentCreator, { authorizeDocumentPublish, } from "@server/commands/documentCreator"; import documentMover from "@server/commands/documentMover"; +import documentRestorer from "@server/commands/documentRestorer"; import documentUpdater from "@server/commands/documentUpdater"; import { Op } from "sequelize"; import { Collection, Document } from "@server/models"; @@ -697,4 +698,77 @@ export function documentTools(server: McpServer, scopes: string[]) { }) ); } + + if (AuthenticationHelper.canAccess("documents.restore", scopes)) { + server.registerTool( + "restore_document", + { + title: "Restore document", + description: + "Restores an archived or trashed document, making it active again. Optionally provide a collectionId to restore the document into a different collection; otherwise it returns to its original collection.", + annotations: { + idempotentHint: false, + readOnlyHint: false, + }, + inputSchema: { + id: z + .string() + .describe("The unique identifier of the document to restore."), + collectionId: optionalString().describe( + "The collection to restore the document into. Defaults to its original collection." + ), + }, + }, + withTracing("restore_document", async ({ id, collectionId }, context) => { + try { + const ctx = buildAPIContext(context); + const { user } = ctx.state.auth; + + return await sequelize.transaction(async (transaction) => { + ctx.state.transaction = transaction; + ctx.context.transaction = transaction; + + const document = await Document.findByPk(id, { + userId: user.id, + paranoid: false, + rejectOnEmpty: true, + transaction, + }); + + if (!document.deletedAt && !document.archivedAt) { + return error("Document is not archived or trashed"); + } + + await documentRestorer(ctx, { document, collectionId }); + + const [{ text, ...attributes }, breadcrumb] = await Promise.all([ + presentDocument(document, { + includeData: false, + includeText: true, + includeUpdatedAt: true, + }), + getDocumentBreadcrumb(document, user), + ]); + return { + content: [ + { + type: "text" as const, + text: JSON.stringify({ + document: pathToUrl(user.team, attributes), + ...(breadcrumb !== undefined && { breadcrumb }), + }), + }, + { + type: "text" as const, + text: typeof text === "string" ? text : "", + }, + ], + } satisfies CallToolResult; + }); + } catch (message) { + return error(message); + } + }) + ); + } } From ea665b80eeb512941144efb8c8629cc53fdbec99 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 07:57:34 -0400 Subject: [PATCH 192/286] feat: Inline editor menu (#12611) * wip * Mobile support * Address review feedback on inline menu - Mark selection-restore transaction as not added to history - Only open desktop inline menu when an anchor is available Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- app/components/primitives/components/Menu.tsx | 3 + app/editor/components/InlineMenu.tsx | 190 ++++++++++++++ app/editor/components/SelectionToolbar.tsx | 13 +- app/editor/components/ToolbarMenu.tsx | 69 +---- app/editor/components/useInlineMenuAnchor.ts | 152 +++++++++++ app/editor/extensions/SelectionToolbar.tsx | 8 +- app/editor/menus/mapMenuItems.ts | 80 ++++++ app/editor/menus/table.tsx | 25 +- app/editor/menus/tableCol.tsx | 240 +++++++++--------- app/editor/menus/tableRow.tsx | 131 +++++----- package.json | 2 + shared/editor/lib/ExtensionManager.ts | 12 + shared/editor/nodes/TableHeader.ts | 5 +- shared/editor/nodes/TableRow.ts | 5 +- shared/editor/types/index.ts | 14 + shared/i18n/locales/en_US/translation.json | 6 +- yarn.lock | 6 +- 17 files changed, 693 insertions(+), 268 deletions(-) create mode 100644 app/editor/components/InlineMenu.tsx create mode 100644 app/editor/components/useInlineMenuAnchor.ts create mode 100644 app/editor/menus/mapMenuItems.ts diff --git a/app/components/primitives/components/Menu.tsx b/app/components/primitives/components/Menu.tsx index e509f74088..153aeb431e 100644 --- a/app/components/primitives/components/Menu.tsx +++ b/app/components/primitives/components/Menu.tsx @@ -108,6 +108,9 @@ export const MenuExternalLink = styled.a` export const MenuSubTrigger = styled.div<BaseMenuItemProps>` ${BaseMenuItemCSS} + // Reserve space for the absolutely-positioned disclosure arrow so long + // labels truncate before it rather than overlapping. + padding-inline-end: 32px; `; export const MenuSeparator = styled.hr` diff --git a/app/editor/components/InlineMenu.tsx b/app/editor/components/InlineMenu.tsx new file mode 100644 index 0000000000..13980b13c2 --- /dev/null +++ b/app/editor/components/InlineMenu.tsx @@ -0,0 +1,190 @@ +import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; +import { Slot } from "@radix-ui/react-slot"; +import * as React from "react"; +import { RemoveScroll } from "react-remove-scroll"; +import styled from "styled-components"; +import EventBoundary from "@shared/components/EventBoundary"; +import { collapseSelection } from "@shared/editor/commands/collapseSelection"; +import type { MenuItem } from "@shared/editor/types"; +import { useTranslation } from "react-i18next"; +import Scrollable from "~/components/Scrollable"; +import { toMenuItems, toMobileMenuItems } from "~/components/Menu/transformer"; +import * as Components from "~/components/primitives/components/Menu"; +import { + Drawer, + DrawerContent, + DrawerTitle, +} from "~/components/primitives/Drawer"; +import { MenuProvider } from "~/components/primitives/Menu/MenuContext"; +import type { MenuItem as TMenuItem, MenuItemWithChildren } from "~/types"; +import useMobile from "~/hooks/useMobile"; +import { mapMenuItems } from "../menus/mapMenuItems"; +import { useEditor } from "./EditorContext"; +import { useInlineMenuAnchor } from "./useInlineMenuAnchor"; + +type Props = { + items: MenuItem[]; + /** Whether the document is right-to-left. */ + rtl: boolean; +}; + +// The virtual anchor is an invisible zero-size element; the hook positions it +// over the selection and Radix anchors the menu to it. +const anchorStyle: React.CSSProperties = { + position: "fixed", + width: 0, + height: 0, +}; + +/** + * Renders a selection-toolbar menu inline — a vertical menu anchored to the + * selection with no trigger button — by holding a Radix dropdown `open` + * against a virtual anchor positioned over the selection. Radix provides the + * positioning, collision handling, submenus, and keyboard navigation. Page + * scroll is locked while open (via RemoveScroll, as Radix does for modal + * menus) without enabling Radix's modal mode, which conflicts with the menu + * being opened by an editor selection rather than a trigger. + */ +const InlineMenu: React.FC<Props> = ({ items, rtl }) => { + const { t } = useTranslation(); + const { commands, view } = useEditor(); + const { state } = view; + const isMobile = useMobile(); + const { + ref: anchorRef, + key: anchorKey, + side, + align, + sideOffset, + } = useInlineMenuAnchor(rtl); + + const mapped = React.useMemo( + () => mapMenuItems(items, commands, view, state), + [items, commands, view, state] + ); + + const preventFocus = React.useCallback((ev: Event) => { + ev.preventDefault(); + }, []); + + // Dismiss the menu by collapsing the selection so the toolbar stops matching. + const handleDismiss = React.useCallback(() => { + collapseSelection()(view.state, view.dispatch); + }, [view]); + + if (isMobile) { + return ( + <InlineMenuDrawer + items={mapped} + ariaLabel={t("Options")} + onDismiss={handleDismiss} + /> + ); + } + + return ( + <MenuProvider variant="dropdown"> + <DropdownMenuPrimitive.Root + key={anchorKey} + open={!!anchorKey} + modal={false} + > + <DropdownMenuPrimitive.Trigger asChild> + <div ref={anchorRef} aria-hidden style={anchorStyle} /> + </DropdownMenuPrimitive.Trigger> + <DropdownMenuPrimitive.Portal> + <DropdownMenuPrimitive.Content + side={side} + align={align} + sideOffset={sideOffset} + collisionPadding={6} + aria-label={t("Options")} + onCloseAutoFocus={preventFocus} + onInteractOutside={handleDismiss} + onEscapeKeyDown={handleDismiss} + asChild + > + <RemoveScroll as={Slot} allowPinchZoom> + <Components.MenuContent + maxHeightVar="--radix-dropdown-menu-content-available-height" + transformOriginVar="--radix-dropdown-menu-content-transform-origin" + hiddenScrollbars + > + <EventBoundary>{toMenuItems(mapped)}</EventBoundary> + </Components.MenuContent> + </RemoveScroll> + </DropdownMenuPrimitive.Content> + </DropdownMenuPrimitive.Portal> + </DropdownMenuPrimitive.Root> + </MenuProvider> + ); +}; + +// Time for the drawer's close animation to play before the selection is +// collapsed (which unmounts the menu). +const DRAWER_CLOSE_MS = 500; + +type InlineMenuDrawerProps = { + items: TMenuItem[]; + ariaLabel: string; + /** Collapse the selection so the toolbar stops rendering the menu. */ + onDismiss: () => void; +}; + +/** + * Mobile presentation of the inline menu: a bottom drawer with submenu drill-in, + * matching the other menus. The menu is held open while the selection matches; + * closing animates the drawer out before collapsing the selection. + */ +function InlineMenuDrawer({ + items, + ariaLabel, + onDismiss, +}: InlineMenuDrawerProps) { + const [open, setOpen] = React.useState(true); + const [submenuName, setSubmenuName] = React.useState<string>(); + + const close = React.useCallback(() => { + setOpen(false); + setTimeout(() => { + setSubmenuName(undefined); + onDismiss(); + }, DRAWER_CLOSE_MS); + }, [onDismiss]); + + const handleOpenChange = React.useCallback( + (isOpen: boolean) => { + if (!isOpen) { + close(); + } + }, + [close] + ); + + const menuItems = React.useMemo(() => { + if (!items.length || !submenuName) { + return items; + } + const submenu = items.find( + (item) => item.type === "submenu" && item.title === submenuName + ) as MenuItemWithChildren | undefined; + return submenu?.items ?? items; + }, [items, submenuName]); + + const content = toMobileMenuItems(menuItems, close, setSubmenuName); + + return ( + <Drawer open={open} onOpenChange={handleOpenChange}> + <DrawerContent aria-label={ariaLabel} aria-describedby={undefined}> + <DrawerTitle hidden>{ariaLabel}</DrawerTitle> + <StyledScrollable hiddenScrollbars>{content}</StyledScrollable> + </DrawerContent> + </Drawer> + ); +} + +const StyledScrollable = styled(Scrollable)` + max-height: 75vh; +`; + +export default InlineMenu; diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index 7c65936369..af5ee74680 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -11,7 +11,7 @@ import { } from "@shared/editor/queries/getMarkRange"; import { isInCode } from "@shared/editor/queries/isInCode"; import { isInNotice } from "@shared/editor/queries/isInNotice"; -import type { MenuItem } from "@shared/editor/types"; +import { MenuType, type MenuItem } from "@shared/editor/types"; import useBoolean from "~/hooks/useBoolean"; import useEventListener from "~/hooks/useEventListener"; import useMobile from "~/hooks/useMobile"; @@ -24,6 +24,7 @@ import { MediaLinkEditor } from "./MediaLinkEditor"; import FloatingToolbar from "./FloatingToolbar"; import LinkEditor from "./LinkEditor"; import ToolbarMenu from "./ToolbarMenu"; +import InlineMenu from "./InlineMenu"; import { isModKey } from "@shared/utils/keyboard"; type Props = { @@ -264,6 +265,16 @@ export function SelectionToolbar(props: Props) { setActiveToolbar(null); }; + // Inline menus render as a vertical menu anchored to the selection rather + // than as a horizontal toolbar with trigger buttons. + if ( + matched?.variant === MenuType.inline && + activeToolbar === Toolbar.Menu && + items.length + ) { + return <InlineMenu items={items} rtl={rtl} />; + } + return ( <FloatingToolbar align={align} diff --git a/app/editor/components/ToolbarMenu.tsx b/app/editor/components/ToolbarMenu.tsx index 6e94ece220..c103ae0743 100644 --- a/app/editor/components/ToolbarMenu.tsx +++ b/app/editor/components/ToolbarMenu.tsx @@ -7,6 +7,7 @@ import type { MenuItem } from "@shared/editor/types"; import { hideScrollbars, s } from "@shared/styles"; import { TooltipProvider } from "~/components/TooltipContext"; import type { MenuItem as TMenuItem } from "~/types"; +import { mapMenuItems } from "../menus/mapMenuItems"; import { useEditor } from "./EditorContext"; import { MediaDimension } from "./MediaDimension"; import ToolbarButton from "./ToolbarButton"; @@ -49,69 +50,11 @@ function ToolbarDropdown(props: ToolbarDropdownProps) { return []; } - const handleClick = (menuItem: MenuItem) => () => { - if (!menuItem.name) { - return; - } - - if (commands[menuItem.name]) { - closeHistory(view); - commands[menuItem.name]( - typeof menuItem.attrs === "function" - ? menuItem.attrs(state) - : menuItem.attrs - ); - closeHistory(view); - } else if (menuItem.onClick) { - menuItem.onClick(); - } - }; - - const resolveChildren = ( - children: MenuItem[] | (() => MenuItem[]) | undefined - ): MenuItem[] | undefined => - typeof children === "function" ? children() : children; - - const mapChildren = (children: MenuItem[]): TMenuItem[] => - children.map((child) => { - if (child.name === "separator") { - return { type: "separator", visible: child.visible }; - } - if ("content" in child) { - return { - type: "custom", - visible: child.visible, - content: child.content, - }; - } - const resolvedChildren = resolveChildren(child.children); - if (resolvedChildren) { - const childWithPreventClose = resolvedChildren.find( - (c) => "preventCloseCondition" in c - ); - return { - type: "submenu", - title: child.label, - icon: child.icon, - visible: child.visible, - preventCloseCondition: childWithPreventClose?.preventCloseCondition, - items: mapChildren(resolvedChildren), - }; - } - return { - type: "button", - title: child.label, - icon: child.icon, - dangerous: child.dangerous, - visible: child.visible, - selected: - child.active !== undefined ? child.active(state) : undefined, - onClick: handleClick(child), - }; - }); - - const resolvedItemChildren = resolveChildren(item.children); - return resolvedItemChildren ? mapChildren(resolvedItemChildren) : []; + const resolvedItemChildren = + typeof item.children === "function" ? item.children() : item.children; + return resolvedItemChildren + ? mapMenuItems(resolvedItemChildren, commands, view, state) + : []; }, [isOpen, commands]); const handleCloseAutoFocus = useCallback((ev: Event) => { diff --git a/app/editor/components/useInlineMenuAnchor.ts b/app/editor/components/useInlineMenuAnchor.ts new file mode 100644 index 0000000000..13e3d7829f --- /dev/null +++ b/app/editor/components/useInlineMenuAnchor.ts @@ -0,0 +1,152 @@ +import { selectedRect } from "prosemirror-tables"; +import * as React from "react"; +import type { EditorView } from "prosemirror-view"; +import { ColumnSelection } from "@shared/editor/selection/ColumnSelection"; +import { RowSelection } from "@shared/editor/selection/RowSelection"; +import { isTableSelected } from "@shared/editor/queries/table"; +import { useEditor } from "./EditorContext"; + +type Side = "top" | "bottom" | "left" | "right"; +type Align = "start" | "center" | "end"; + +const DEFAULT_SIDE_OFFSET = 4; + +// Column and row menus open next to a grip handle. The grip is modelled as a +// strip just outside the cell edge so the two distances are independent: +// opening to the outside clears the grip (strip thickness + offset), while +// flipping across sits only a small gap (offset) away. +const OUTSIDE_CLEARANCE = 20; +const FLIP_GAP = 0; +const GRIP_INSET = OUTSIDE_CLEARANCE - FLIP_GAP; +const GRIP_SIDE_OFFSET = FLIP_GAP; + +type Anchor = { + /** Viewport rect to anchor the menu to. */ + top: number; + left: number; + width: number; + height: number; + /** Which side of the anchor the menu opens towards. */ + side: Side; + /** How the menu aligns along the anchor edge. */ + align: Align; + /** Distance in pixels between the anchor and the menu. */ + sideOffset: number; + /** Stable identifier for the anchored target, changes when it moves. */ + key: string; +}; + +/** + * Computes the rect and placement to anchor an inline selection menu to, based + * on the current table/column/row selection. The menu opens to the "outside" + * of the table (above a column, beside a row) to cover the least content, and + * is centered on the anchor for minimal pointer movement. Returns null when + * there is no supported selection. + * + * @param view - the editor view. + * @param rtl - whether the document is right-to-left. + * @returns the anchor, or null. + */ +function getAnchor(view: EditorView, rtl: boolean): Anchor | null { + const { state } = view; + const { selection } = state; + + if (isTableSelected(state)) { + const rect = selectedRect(state); + const bounds = ( + view.domAtPos(rect.tableStart).node as HTMLElement + ).getBoundingClientRect(); + // A horizontal line at the table's top edge so it stays near the top + // whether the menu opens above or flips below. + return { + top: bounds.top, + left: bounds.left, + width: bounds.width, + height: 0, + side: "top", + align: "start", + sideOffset: DEFAULT_SIDE_OFFSET, + key: `table-${rect.tableStart}`, + }; + } + + if (selection instanceof ColumnSelection && selection.isColSelection()) { + const rect = selectedRect(state); + const cell = ( + view.domAtPos(rect.tableStart).node as HTMLElement + ).querySelector(`tr > *:nth-child(${rect.left + 1})`); + if (cell instanceof HTMLElement) { + const bounds = cell.getBoundingClientRect(); + // A strip just above the column's top edge (the grip), spanning the + // column width so the menu centers on the column. + return { + top: bounds.top - GRIP_INSET, + left: bounds.left, + width: bounds.width, + height: GRIP_INSET, + side: "top", + align: "center", + sideOffset: GRIP_SIDE_OFFSET, + key: `col-${rect.tableStart}-${rect.left}`, + }; + } + } + + if (selection instanceof RowSelection && selection.isRowSelection()) { + const rect = selectedRect(state); + const cell = ( + view.domAtPos(rect.tableStart).node as HTMLElement + ).querySelector(`tr:nth-child(${rect.top + 1}) > *`); + if (cell instanceof HTMLElement) { + const bounds = cell.getBoundingClientRect(); + // A strip just outside the row's grip edge (left, or right in RTL), + // spanning the row height so the menu centers on the row. + return { + top: bounds.top, + left: rtl ? bounds.right : bounds.left - GRIP_INSET, + width: GRIP_INSET, + height: bounds.height, + side: rtl ? "right" : "left", + align: "center", + sideOffset: GRIP_SIDE_OFFSET, + key: `row-${rect.tableStart}-${rect.top}`, + }; + } + } + + return null; +} + +/** + * Positions an invisible virtual anchor element over the current table, column, + * or row selection so a Radix dropdown can anchor an inline menu to it. The + * returned `key` changes when the anchored target changes; spread it onto the + * menu root so Radix repositions for a new target. + * + * @param rtl - whether the document is right-to-left. + * @returns the anchor ref to attach to the virtual trigger, the target key, and + * the side/align the menu should open with. + */ +export function useInlineMenuAnchor(rtl: boolean) { + const { view } = useEditor(); + const ref = React.useRef<HTMLDivElement>(null); + const anchor = getAnchor(view, rtl); + + React.useLayoutEffect(() => { + const element = ref.current; + if (element && anchor) { + element.style.top = `${anchor.top}px`; + element.style.left = `${anchor.left}px`; + element.style.width = `${anchor.width}px`; + element.style.height = `${anchor.height}px`; + } + }); + + return { + ref, + key: anchor?.key, + side: anchor?.side ?? "top", + align: anchor?.align ?? "start", + sideOffset: anchor?.sideOffset ?? DEFAULT_SIDE_OFFSET, + }; +} diff --git a/app/editor/extensions/SelectionToolbar.tsx b/app/editor/extensions/SelectionToolbar.tsx index c08f8815d9..0c172be290 100644 --- a/app/editor/extensions/SelectionToolbar.tsx +++ b/app/editor/extensions/SelectionToolbar.tsx @@ -7,7 +7,10 @@ import Extension from "@shared/editor/lib/Extension"; import { isInNotice } from "@shared/editor/queries/isInNotice"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; -import type { SelectionToolbarMenuDescriptor } from "@shared/editor/types"; +import { + MenuType, + type SelectionToolbarMenuDescriptor, +} from "@shared/editor/types"; import { SelectionToolbar } from "../components/SelectionToolbar"; import getAttachmentMenuItems from "../menus/attachment"; import getCodeMenuItems from "../menus/code"; @@ -62,16 +65,19 @@ export default class SelectionToolbarExtension extends Extension { }, { priority: 90, + variant: MenuType.inline, matches: (ctx) => ctx.isTableSelected, getItems: (ctx) => getTableMenuItems(ctx), }, { priority: 85, + variant: MenuType.inline, matches: (ctx) => ctx.colIndex !== undefined, getItems: (ctx) => getTableColMenuItems(ctx), }, { priority: 80, + variant: MenuType.inline, matches: (ctx) => ctx.rowIndex !== undefined, getItems: (ctx) => getTableRowMenuItems(ctx), }, diff --git a/app/editor/menus/mapMenuItems.ts b/app/editor/menus/mapMenuItems.ts new file mode 100644 index 0000000000..046d5df0ec --- /dev/null +++ b/app/editor/menus/mapMenuItems.ts @@ -0,0 +1,80 @@ +import type { EditorState } from "prosemirror-state"; +import type { EditorView } from "prosemirror-view"; +import { closeHistory } from "@shared/editor/lib/closeHistory"; +import type { CommandFactory } from "@shared/editor/lib/Extension"; +import type { MenuItem } from "@shared/editor/types"; +import type { MenuItem as TMenuItem } from "~/types"; + +const resolveChildren = ( + children: MenuItem[] | (() => MenuItem[]) | undefined +): MenuItem[] | undefined => + typeof children === "function" ? children() : children; + +/** + * Maps editor `MenuItem`s into the primitive `MenuItem`s consumed by + * `toMenuItems`. Shared by the toolbar dropdown and the inline menu so menu + * presentation stays consistent. Resolves nested children into submenus and + * binds each leaf to its editor command (or `onClick`). + * + * @param items - the editor menu items to map. + * @param commands - the editor command registry. + * @param view - the editor view, used to checkpoint history around commands. + * @param state - the editor state, used to resolve dynamic attrs and active state. + * @returns the mapped primitive menu items. + */ +export function mapMenuItems( + items: MenuItem[], + commands: Record<string, CommandFactory>, + view: EditorView, + state: EditorState +): TMenuItem[] { + const handleClick = (item: MenuItem) => () => { + if (!item.name) { + return; + } + if (commands[item.name]) { + closeHistory(view); + commands[item.name]( + typeof item.attrs === "function" ? item.attrs(state) : item.attrs + ); + closeHistory(view); + } else if (item.onClick) { + item.onClick(); + } + }; + + return items.map((item) => { + if (item.name === "separator") { + return { type: "separator", visible: item.visible }; + } + + if ("content" in item) { + return { type: "custom", visible: item.visible, content: item.content }; + } + + const resolvedChildren = resolveChildren(item.children); + if (resolvedChildren) { + const childWithPreventClose = resolvedChildren.find( + (child) => "preventCloseCondition" in child + ); + return { + type: "submenu", + title: item.label, + icon: item.icon, + visible: item.visible, + preventCloseCondition: childWithPreventClose?.preventCloseCondition, + items: mapMenuItems(resolvedChildren, commands, view, state), + }; + } + + return { + type: "button", + title: item.label, + icon: item.icon, + dangerous: item.dangerous, + visible: item.visible, + selected: item.active !== undefined ? item.active(state) : undefined, + onClick: handleClick(item), + }; + }); +} diff --git a/app/editor/menus/table.tsx b/app/editor/menus/table.tsx index 4db3a46fb9..8592d6c319 100644 --- a/app/editor/menus/table.tsx +++ b/app/editor/menus/table.tsx @@ -15,9 +15,7 @@ import { TableLayout } from "@shared/editor/types"; * @param ctx - the current selection context. * @returns an array of menu items. */ -export default function tableMenuItems( - ctx: SelectionContext -): MenuItem[] { +export default function tableMenuItems(ctx: SelectionContext): MenuItem[] { if (ctx.readOnly) { return []; } @@ -30,33 +28,32 @@ export default function tableMenuItems( return [ { name: "setTableAttr", - tooltip: isFullWidth ? t("Default width") : t("Full width"), + label: isFullWidth ? t("Default width") : t("Full width"), icon: <AlignFullWidthIcon />, attrs: isFullWidth ? { layout: null } : { layout: TableLayout.fullWidth }, - active: () => isFullWidth, }, { name: "distributeColumns", - tooltip: t("Distribute columns"), + label: t("Distribute columns"), icon: <TableColumnsDistributeIcon />, }, { name: "separator", }, { - name: "deleteTable", - tooltip: t("Delete table"), - icon: <TrashIcon />, + name: "exportTable", + label: t("Export as CSV"), + attrs: { format: "csv", fileName: `${window.document.title}.csv` }, + icon: <DownloadIcon />, }, { name: "separator", }, { - name: "exportTable", - tooltip: t("Export as CSV"), - label: "CSV", - attrs: { format: "csv", fileName: `${window.document.title}.csv` }, - icon: <DownloadIcon />, + name: "deleteTable", + label: t("Delete table"), + dangerous: true, + icon: <TrashIcon />, }, ]; } diff --git a/app/editor/menus/tableCol.tsx b/app/editor/menus/tableCol.tsx index 017f88e1f8..bd6428320b 100644 --- a/app/editor/menus/tableCol.tsx +++ b/app/editor/menus/tableCol.tsx @@ -5,7 +5,6 @@ import { AlignCenterIcon, InsertLeftIcon, InsertRightIcon, - MoreIcon, PaletteIcon, TableHeaderColumnIcon, TableMergeCellsIcon, @@ -24,7 +23,11 @@ import { tableHasRowspan, } from "@shared/editor/queries/table"; import { t } from "i18next"; -import type { MenuItem, NodeAttrMark, SelectionContext } from "@shared/editor/types"; +import type { + MenuItem, + NodeAttrMark, + SelectionContext, +} from "@shared/editor/types"; import { ArrowLeftIcon, ArrowRightIcon } from "~/components/Icons/ArrowIcon"; import CircleIcon from "~/components/Icons/CircleIcon"; import CellBackgroundColorPicker from "../components/CellBackgroundColorPicker"; @@ -65,9 +68,7 @@ function getColumnColors(state: EditorState, colIndex: number): Set<string> { * @param ctx - the current selection context. * @returns an array of menu items. */ -export default function tableColMenuItems( - ctx: SelectionContext -): MenuItem[] { +export default function tableColMenuItems(ctx: SelectionContext): MenuItem[] { if (ctx.readOnly) { return []; } @@ -94,60 +95,65 @@ export default function tableColMenuItems( return [ { - name: "setColumnAttr", - tooltip: t("Align left"), - icon: <AlignLeftIcon />, - attrs: { index, alignment: "left" }, - active: isNodeActive(schema.nodes.th, { - colspan: 1, - rowspan: 1, - alignment: "left", - }), - }, - { - name: "setColumnAttr", - tooltip: t("Align center"), + label: t("Align"), icon: <AlignCenterIcon />, - attrs: { index, alignment: "center" }, - active: isNodeActive(schema.nodes.th, { - colspan: 1, - rowspan: 1, - alignment: "center", - }), + children: [ + { + name: "setColumnAttr", + label: t("Align left"), + icon: <AlignLeftIcon />, + attrs: { index, alignment: "left" }, + active: isNodeActive(schema.nodes.th, { + colspan: 1, + rowspan: 1, + alignment: "left", + }), + }, + { + name: "setColumnAttr", + label: t("Align center"), + icon: <AlignCenterIcon />, + attrs: { index, alignment: "center" }, + active: isNodeActive(schema.nodes.th, { + colspan: 1, + rowspan: 1, + alignment: "center", + }), + }, + { + name: "setColumnAttr", + label: t("Align right"), + icon: <AlignRightIcon />, + attrs: { index, alignment: "right" }, + active: isNodeActive(schema.nodes.th, { + colspan: 1, + rowspan: 1, + alignment: "right", + }), + }, + ], }, { - name: "setColumnAttr", - tooltip: t("Align right"), - icon: <AlignRightIcon />, - attrs: { index, alignment: "right" }, - active: isNodeActive(schema.nodes.th, { - colspan: 1, - rowspan: 1, - alignment: "right", - }), - }, - { - name: "separator", - }, - { - name: "sortTable", - tooltip: t("Sort ascending"), - attrs: { index, direction: "asc" }, + label: t("Sort"), icon: <SortAscendingIcon />, disabled: tableHasRowspan(state), + children: [ + { + name: "sortTable", + label: t("Sort ascending"), + attrs: { index, direction: "asc" }, + icon: <SortAscendingIcon />, + }, + { + name: "sortTable", + label: t("Sort descending"), + attrs: { index, direction: "desc" }, + icon: <SortDescendingIcon />, + }, + ], }, { - name: "sortTable", - tooltip: t("Sort descending"), - attrs: { index, direction: "desc" }, - icon: <SortDescendingIcon />, - disabled: tableHasRowspan(state), - }, - { - name: "separator", - }, - { - tooltip: t("Background color"), + label: t("Background"), icon: colColors.size > 1 ? ( <CircleIcon color="rainbow" /> @@ -161,7 +167,7 @@ export default function tableColMenuItems( { name: "toggleColumnBackgroundAndCollapseSelection", label: t("None"), - icon: <DottedCircleIcon retainColor color="transparent" />, + icon: <DottedCircleIcon color="transparent" />, active: () => (hasBackground ? false : true), attrs: { color: null }, }, @@ -205,71 +211,69 @@ export default function tableColMenuItems( ], }, { - icon: <MoreIcon />, - children: [ - { - name: "toggleHeaderColumn", - label: t("Toggle header"), - icon: <TableHeaderColumnIcon />, - visible: index === 0, - }, - { - name: rtl ? "addColumnAfter" : "addColumnBefore", - label: rtl ? t("Insert after") : t("Insert before"), - icon: <InsertLeftIcon />, - attrs: { index }, - }, - { - name: rtl ? "addColumnBefore" : "addColumnAfter", - label: rtl ? t("Insert before") : t("Insert after"), - icon: <InsertRightIcon />, - attrs: { index }, - }, - { - name: "moveTableColumn", - label: t("Move left"), - icon: <ArrowLeftIcon />, - attrs: { from: index, to: index - 1 }, - visible: index > 0, - }, - { - name: "moveTableColumn", - label: t("Move right"), - icon: <ArrowRightIcon />, - attrs: { from: index, to: index + 1 }, - visible: index < tableMap.map.width - 1, - }, - { - name: "separator", - }, - { - name: "mergeCells", - label: t("Merge cells"), - icon: <TableMergeCellsIcon />, - visible: isMultipleCellSelection(state), - }, - { - name: "splitCell", - label: t("Split cell"), - icon: <TableSplitCellsIcon />, - visible: isMergedCellSelection(state), - }, - { - name: "distributeColumns", - visible: selectedCols.length > 1, - label: t("Distribute columns"), - icon: <TableColumnsDistributeIcon />, - }, - { - name: "separator", - }, - { - name: "deleteColumn", - dangerous: true, - label: t("Delete"), - icon: <TrashIcon />, - }, - ], + name: "separator", + }, + { + name: "toggleHeaderColumn", + label: t("Toggle header"), + icon: <TableHeaderColumnIcon />, + visible: index === 0, + }, + { + name: rtl ? "addColumnAfter" : "addColumnBefore", + label: rtl ? t("Insert after") : t("Insert before"), + icon: <InsertLeftIcon />, + attrs: { index }, + }, + { + name: rtl ? "addColumnBefore" : "addColumnAfter", + label: rtl ? t("Insert before") : t("Insert after"), + icon: <InsertRightIcon />, + attrs: { index }, + }, + { + name: "moveTableColumn", + label: t("Move left"), + icon: <ArrowLeftIcon />, + attrs: { from: index, to: index - 1 }, + visible: index > 0, + }, + { + name: "moveTableColumn", + label: t("Move right"), + icon: <ArrowRightIcon />, + attrs: { from: index, to: index + 1 }, + visible: index < tableMap.map.width - 1, + }, + { + name: "separator", + }, + { + name: "mergeCells", + label: t("Merge cells"), + icon: <TableMergeCellsIcon />, + visible: isMultipleCellSelection(state), + }, + { + name: "splitCell", + label: t("Split cell"), + icon: <TableSplitCellsIcon />, + visible: isMergedCellSelection(state), + }, + { + name: "distributeColumns", + visible: selectedCols.length > 1, + label: t("Distribute columns"), + icon: <TableColumnsDistributeIcon />, + }, + { + name: "separator", + }, + { + name: "deleteColumn", + dangerous: true, + label: t("Delete"), + icon: <TrashIcon />, }, ]; } diff --git a/app/editor/menus/tableRow.tsx b/app/editor/menus/tableRow.tsx index f9c2e2e36f..3d37d3736f 100644 --- a/app/editor/menus/tableRow.tsx +++ b/app/editor/menus/tableRow.tsx @@ -2,7 +2,6 @@ import { TrashIcon, InsertAboveIcon, InsertBelowIcon, - MoreIcon, PaletteIcon, TableHeaderRowIcon, TableSplitCellsIcon, @@ -16,7 +15,11 @@ import { isMultipleCellSelection, } from "@shared/editor/queries/table"; import { t } from "i18next"; -import type { MenuItem, NodeAttrMark, SelectionContext } from "@shared/editor/types"; +import type { + MenuItem, + NodeAttrMark, + SelectionContext, +} from "@shared/editor/types"; import { ArrowDownIcon, ArrowUpIcon } from "~/components/Icons/ArrowIcon"; import CircleIcon from "~/components/Icons/CircleIcon"; import CellBackgroundColorPicker from "../components/CellBackgroundColorPicker"; @@ -56,9 +59,7 @@ function getRowColors(state: EditorState, rowIndex: number): Set<string> { * @param ctx - the current selection context. * @returns an array of menu items. */ -export default function tableRowMenuItems( - ctx: SelectionContext -): MenuItem[] { +export default function tableRowMenuItems(ctx: SelectionContext): MenuItem[] { if (ctx.readOnly) { return []; } @@ -83,7 +84,42 @@ export default function tableRowMenuItems( return [ { - tooltip: t("Background color"), + name: "toggleHeaderRow", + label: t("Toggle header"), + icon: <TableHeaderRowIcon />, + visible: index === 0, + }, + { + name: "addRowBefore", + label: t("Insert before"), + icon: <InsertAboveIcon />, + attrs: { index }, + }, + { + name: "addRowAfter", + label: t("Insert after"), + icon: <InsertBelowIcon />, + attrs: { index }, + }, + { + name: "moveTableRow", + label: t("Move up"), + icon: <ArrowUpIcon />, + attrs: { from: index, to: index - 1 }, + visible: index > 0, + }, + { + name: "moveTableRow", + label: t("Move down"), + icon: <ArrowDownIcon />, + attrs: { from: index, to: index + 1 }, + visible: index < tableMap.map.height - 1, + }, + { + name: "separator", + }, + { + label: t("Background"), icon: rowColors.size > 1 ? ( <CircleIcon color="rainbow" /> @@ -97,7 +133,7 @@ export default function tableRowMenuItems( { name: "toggleRowBackgroundAndCollapseSelection", label: t("None"), - icon: <DottedCircleIcon retainColor color="transparent" />, + icon: <DottedCircleIcon color="transparent" />, active: () => (hasBackground ? false : true), attrs: { color: null }, }, @@ -141,65 +177,28 @@ export default function tableRowMenuItems( ], }, { - icon: <MoreIcon />, - children: [ - { - name: "toggleHeaderRow", - label: t("Toggle header"), - icon: <TableHeaderRowIcon />, - visible: index === 0, - }, - { - name: "addRowBefore", - label: t("Insert before"), - icon: <InsertAboveIcon />, - attrs: { index }, - }, - { - name: "addRowAfter", - label: t("Insert after"), - icon: <InsertBelowIcon />, - attrs: { index }, - }, - { - name: "moveTableRow", - label: t("Move up"), - icon: <ArrowUpIcon />, - attrs: { from: index, to: index - 1 }, - visible: index > 0, - }, - { - name: "moveTableRow", - label: t("Move down"), - icon: <ArrowDownIcon />, - attrs: { from: index, to: index + 1 }, - visible: index < tableMap.map.height - 1, - }, - { - name: "separator", - }, - { - name: "mergeCells", - label: t("Merge cells"), - icon: <TableMergeCellsIcon />, - visible: isMultipleCellSelection(state), - }, - { - name: "splitCell", - label: t("Split cell"), - icon: <TableSplitCellsIcon />, - visible: isMergedCellSelection(state), - }, - { - name: "separator", - }, - { - name: "deleteRow", - label: t("Delete"), - dangerous: true, - icon: <TrashIcon />, - }, - ], + name: "separator", + }, + { + name: "mergeCells", + label: t("Merge cells"), + icon: <TableMergeCellsIcon />, + visible: isMultipleCellSelection(state), + }, + { + name: "splitCell", + label: t("Split cell"), + icon: <TableSplitCellsIcon />, + visible: isMergedCellSelection(state), + }, + { + name: "separator", + }, + { + name: "deleteRow", + label: t("Delete"), + dangerous: true, + icon: <TrashIcon />, }, ]; } diff --git a/package.json b/package.json index 4e1c47dc79..4068371052 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,7 @@ "@radix-ui/react-one-time-password-field": "^0.1.8", "@radix-ui/react-popover": "^1.1.15", "@radix-ui/react-select": "^2.2.6", + "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-switch": "^1.2.6", "@radix-ui/react-tabs": "^1.1.13", "@radix-ui/react-toolbar": "^1.1.11", @@ -223,6 +224,7 @@ "react-i18next": "^12.3.1", "react-merge-refs": "^2.1.1", "react-portal": "^4.3.0", + "react-remove-scroll": "^2.7.2", "react-router-dom": "^5.3.4", "react-use-measure": "^2.1.7", "react-virtualized-auto-sizer": "^1.0.26", diff --git a/shared/editor/lib/ExtensionManager.ts b/shared/editor/lib/ExtensionManager.ts index c02f7821e4..d1accbc767 100644 --- a/shared/editor/lib/ExtensionManager.ts +++ b/shared/editor/lib/ExtensionManager.ts @@ -273,7 +273,19 @@ export default class ExtensionManager { return; } if (extension.focusAfterExecution) { + // Focusing a blurred editor (e.g. when the command is run from a + // menu that holds focus) can collapse a non-text selection such as + // a table cell selection. Restore it so selection-based commands + // operate on the intended selection. + const { selection } = view.state; view.focus(); + if (!view.state.selection.eq(selection)) { + view.dispatch( + view.state.tr + .setSelection(selection) + .setMeta("addToHistory", false) + ); + } } return callback(attrs)?.(view.state, view.dispatch, view); }; diff --git a/shared/editor/nodes/TableHeader.ts b/shared/editor/nodes/TableHeader.ts index 9941625d65..0386ad5895 100644 --- a/shared/editor/nodes/TableHeader.ts +++ b/shared/editor/nodes/TableHeader.ts @@ -6,6 +6,7 @@ import type { EditorView } from "prosemirror-view"; import { DecorationSet, Decoration } from "prosemirror-view"; import { isInTable, moveTableColumn, TableMap } from "prosemirror-tables"; import { addColumnBefore, selectColumn } from "../commands/table"; +import { isMobile } from "../../utils/browser"; import { getCellAttrs, isValidCellAlignment, @@ -326,7 +327,9 @@ export default class TableHeader extends Node { ) ); - if (!isDragging) { + // The add-column affordance is too small to tap on mobile, where + // columns can be added via the inline menu instead. + if (!isDragging && !isMobile()) { if (index === 0) { decorations.push(buildAddColumnDecoration(pos, index)); } diff --git a/shared/editor/nodes/TableRow.ts b/shared/editor/nodes/TableRow.ts index 69998793dd..2835f9b291 100644 --- a/shared/editor/nodes/TableRow.ts +++ b/shared/editor/nodes/TableRow.ts @@ -8,6 +8,7 @@ import { Decoration, DecorationSet } from "prosemirror-view"; import type { EditorView } from "prosemirror-view"; import { Plugin } from "prosemirror-state"; import { addRowBefore, selectRow, selectTable } from "../commands/table"; +import { isMobile } from "../../utils/browser"; import { getCellsInRow, getRowsInTable, @@ -339,7 +340,9 @@ export default class TableRow extends Node { ) ); - if (!isDragging) { + // The add-row affordance is too small to tap on mobile, where + // rows can be added via the inline menu instead. + if (!isDragging && !isMobile()) { if (index === 0) { decorations.push(buildAddRowDecoration(pos, index)); } diff --git a/shared/editor/types/index.ts b/shared/editor/types/index.ts index 2e5fa73848..7d8181369a 100644 --- a/shared/editor/types/index.ts +++ b/shared/editor/types/index.ts @@ -17,6 +17,14 @@ export enum TableLayout { fullWidth = "full-width", } +/** How a selection toolbar menu is presented. */ +export enum MenuType { + /** A horizontal strip of buttons; nested options open behind a trigger. */ + toolbar = "toolbar", + /** A vertical menu rendered directly, anchored to the selection. */ + inline = "inline", +} + type Section = ({ t }: { t: TFunction }) => string; export type MenuItem = { @@ -140,6 +148,12 @@ export interface SelectionToolbarMenuDescriptor { priority: number; /** Toolbar alignment when this menu is active. Defaults to "center". */ align?: "center" | "start" | "end"; + /** + * How the menu is presented. "toolbar" (default) renders a horizontal strip + * of buttons; "inline" renders a vertical menu anchored to the selection + * without requiring a trigger button. + */ + variant?: MenuType; /** * Returns the menu items to display for the current selection. * diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 891a2aa297..637f688062 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -567,6 +567,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Options": "Options", "Go to link": "Go to link", "Open link": "Open link", "Remove link": "Remove link", @@ -647,10 +648,13 @@ "Edit image URL": "Edit image URL", "Default width": "Default width", "Distribute columns": "Distribute columns", - "Delete table": "Delete table", "Export as CSV": "Export as CSV", + "Delete table": "Delete table", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", + "Background": "Background", "Toggle header": "Toggle header", "Insert after": "Insert after", "Insert before": "Insert before", diff --git a/yarn.lock b/yarn.lock index b213a17b70..55e1e8f000 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4817,7 +4817,7 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-slot@npm:1.2.4": +"@radix-ui/react-slot@npm:1.2.4, @radix-ui/react-slot@npm:^1.2.3": version: 1.2.4 resolution: "@radix-ui/react-slot@npm:1.2.4" dependencies: @@ -15087,6 +15087,7 @@ __metadata: "@radix-ui/react-one-time-password-field": "npm:^0.1.8" "@radix-ui/react-popover": "npm:^1.1.15" "@radix-ui/react-select": "npm:^2.2.6" + "@radix-ui/react-slot": "npm:^1.2.3" "@radix-ui/react-switch": "npm:^1.2.6" "@radix-ui/react-tabs": "npm:^1.1.13" "@radix-ui/react-toolbar": "npm:^1.1.11" @@ -15299,6 +15300,7 @@ __metadata: react-merge-refs: "npm:^2.1.1" react-portal: "npm:^4.3.0" react-refresh: "npm:^0.18.0" + react-remove-scroll: "npm:^2.7.2" react-router-dom: "npm:^5.3.4" react-use-measure: "npm:^2.1.7" react-virtualized-auto-sizer: "npm:^1.0.26" @@ -16853,7 +16855,7 @@ __metadata: languageName: node linkType: hard -"react-remove-scroll@npm:^2.6.3": +"react-remove-scroll@npm:^2.6.3, react-remove-scroll@npm:^2.7.2": version: 2.7.2 resolution: "react-remove-scroll@npm:2.7.2" dependencies: From bc63aba1d11b081c1f3a22e4e7b9dc5282d0d1e0 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 11:58:48 -0400 Subject: [PATCH 193/286] fix: place cursor at start of inserted table row/column (#12610) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: place cursor at start of inserted table row/column When using Insert before for a table row or column, the selection was collapsed onto the mapped previous selection — landing at the bottom of the shifted neighbouring column rather than in the newly inserted cell. Move the cursor to the start of the first cell of the inserted row/column instead. * feat: Inline editor menu (#12611) * wip * Mobile support * Address review feedback on inline menu - Mark selection-restore transaction as not added to history - Only open desktop inline menu when an anchor is available Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> * fix: place cursor at start of inserted table row/column When using Insert before for a table row or column, the selection was collapsed onto the mapped previous selection — landing at the bottom of the shifted neighbouring column rather than in the newly inserted cell. Move the cursor to the start of the first cell of the inserted row/column instead. * Add handling for After variants Add lint rule --------- Co-authored-by: Claude <noreply@anthropic.com> --- .oxlintrc.json | 17 +++++++ shared/editor/commands/table.ts | 90 ++++++++++++++++++++++++++++++++- shared/editor/nodes/Table.ts | 8 +-- 3 files changed, 109 insertions(+), 6 deletions(-) diff --git a/.oxlintrc.json b/.oxlintrc.json index 6be149f106..b1ec802e4e 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -73,6 +73,23 @@ "eqeqeq": "error", "curly": "error", "no-console": "error", + "no-restricted-imports": [ + "error", + { + "paths": [ + { + "name": "prosemirror-tables", + "importNames": [ + "addRowBefore", + "addRowAfter", + "addColumnBefore", + "addColumnAfter" + ], + "message": "Use the wrappers from shared/editor/commands/table instead, which respect the target index and place the cursor in the inserted cell." + } + ] + } + ], "no-unused-expressions": "error", "arrow-body-style": ["error", "as-needed"], "react/react-in-jsx-scope": "off", diff --git a/shared/editor/commands/table.ts b/shared/editor/commands/table.ts index daba099d26..68e571c420 100644 --- a/shared/editor/commands/table.ts +++ b/shared/editor/commands/table.ts @@ -65,6 +65,38 @@ function restoreColumnSelection( } } +/** + * A command that places a text cursor at the start of the cell at the given row + * and column index within the table that begins at the given position. Used + * after inserting a row or column so that the selection lands inside the newly + * inserted cell rather than the shifted neighbouring one. + * + * @param tableStart The position inside the table (after the table node). + * @param rowIndex The row index of the target cell. + * @param columnIndex The column index of the target cell. + * @returns The command. + */ +function setCursorInCell( + tableStart: number, + rowIndex: number, + columnIndex: number +): Command { + return (state, dispatch) => { + const table = state.doc.nodeAt(tableStart - 1); + if (!table) { + return false; + } + const map = TableMap.get(table); + if (rowIndex >= map.height || columnIndex >= map.width) { + return false; + } + const pos = map.positionAt(rowIndex, columnIndex, table); + const $pos = state.doc.resolve(tableStart + pos + 1); + dispatch?.(state.tr.setSelection(TextSelection.near($pos))); + return true; + }; +} + export function createTable({ rowsCount, colsCount, @@ -522,7 +554,7 @@ export function addRowBefore({ index }: { index?: number }): Command { (s, d) => !!d?.(addRowWithAlignment(s.tr, rect, position, copyFromRow, s)), headerSpecialCase ? toggleHeader("row") : undefined, - collapseSelection() + setCursorInCell(rect.tableStart, position, 0) )(state, dispatch); return true; @@ -588,7 +620,61 @@ export function addColumnBefore({ index }: { index?: number }): Command { headerSpecialCase ? toggleHeader("column") : undefined, (s, d) => !!d?.(addColumn(s.tr, rect, position)), headerSpecialCase ? toggleHeader("column") : undefined, - collapseSelection() + setCursorInCell(rect.tableStart, 0, position) + )(state, dispatch); + + return true; + }; +} + +/** + * A command that adds a row after the given index (or the current selection), + * copying alignment from the row above and placing the cursor in the new row. + * + * @param index The index of the row to add after, if undefined the current selection is used + * @returns The command + */ +export function addRowAfter({ index }: { index?: number }): Command { + return (state, dispatch) => { + if (!isInTable(state)) { + return false; + } + + const rect = selectedRect(state); + const position = index !== undefined ? index + 1 : rect.bottom; + + // Copy alignment from the row above the insertion point. + const copyFromRow = position - 1; + + chainTransactions( + (s, d) => + !!d?.(addRowWithAlignment(s.tr, rect, position, copyFromRow, s)), + setCursorInCell(rect.tableStart, position, 0) + )(state, dispatch); + + return true; + }; +} + +/** + * A command that adds a column after the given index (or the current selection), + * placing the cursor in the new column. + * + * @param index The index of the column to add after, if undefined the current selection is used + * @returns The command + */ +export function addColumnAfter({ index }: { index?: number }): Command { + return (state, dispatch) => { + if (!isInTable(state)) { + return false; + } + + const rect = selectedRect(state); + const position = index !== undefined ? index + 1 : rect.right; + + chainTransactions( + (s, d) => !!d?.(addColumn(s.tr, rect, position)), + setCursorInCell(rect.tableStart, 0, position) )(state, dispatch); return true; diff --git a/shared/editor/nodes/Table.ts b/shared/editor/nodes/Table.ts index 38418734c0..d850f6512c 100644 --- a/shared/editor/nodes/Table.ts +++ b/shared/editor/nodes/Table.ts @@ -3,8 +3,6 @@ import { InputRule } from "prosemirror-inputrules"; import type { NodeSpec, Node as ProsemirrorNode } from "prosemirror-model"; import { TextSelection } from "prosemirror-state"; import { - addColumnAfter, - addRowAfter, columnResizing, deleteColumn, deleteRow, @@ -17,7 +15,9 @@ import { } from "prosemirror-tables"; import { addRowBefore, + addRowAfter, addColumnBefore, + addColumnAfter, addRowAndMoveSelection, setColumnAttr, createTable, @@ -92,10 +92,10 @@ export default class Table extends Node { setTableAttr, sortTable, addColumnBefore, - addColumnAfter: () => addColumnAfter, + addColumnAfter, deleteColumn: () => deleteColumn, addRowBefore, - addRowAfter: () => addRowAfter, + addRowAfter, moveTableRow, moveTableColumn, deleteRow: () => deleteRow, From 0d198294ebb98855f5afa5f319be7224d600d1be Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 12:09:44 -0400 Subject: [PATCH 194/286] fix: Improve patch merging of links in table cells (#12614) * fix: Improve merging of links in table cells through patch * PR feedback --- server/commands/documentUpdater.test.ts | 78 ++++++++++++++++++++++++ server/models/helpers/DocumentHelper.tsx | 14 ++++- 2 files changed, 90 insertions(+), 2 deletions(-) diff --git a/server/commands/documentUpdater.test.ts b/server/commands/documentUpdater.test.ts index 0ee4db3c94..156a961304 100644 --- a/server/commands/documentUpdater.test.ts +++ b/server/commands/documentUpdater.test.ts @@ -3,6 +3,7 @@ import * as Y from "yjs"; import { TextEditMode } from "@shared/types"; import { APIUpdateExtension } from "@server/collaboration/APIUpdateExtension"; import { Event } from "@server/models"; +import { parser } from "@server/editor"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { buildDocument, buildUser } from "@server/test/factories"; @@ -1481,5 +1482,82 @@ describe("documentUpdater", () => { "Second item" ); }); + + it("should apply a link when wrapping existing table cell text", async () => { + const user = await buildUser(); + const document = await buildDocument({ teamId: user.teamId }); + + document.content = parser + .parse("| Name | Notes |\n|------|-------|\n| Alpha | see |\n") + .toJSON(); + await document.save(); + + const result = DocumentHelper.applyMarkdownToDocument( + document, + "[see](https://example.com/docs)", + TextEditMode.Patch, + "see" + ); + + // The cell text is unchanged but should now carry a link mark — it must + // not be silently dropped during the merge. + const cellText = + result.content!.content![0].content![1].content![1].content![0] + .content![0]; + expect(cellText.text).toEqual("see"); + expect(cellText.marks).toEqual([ + expect.objectContaining({ + type: "link", + attrs: expect.objectContaining({ href: "https://example.com/docs" }), + }), + ]); + }); + + it("should preserve other table cells when adding a link to one cell", async () => { + const user = await buildUser(); + const document = await buildDocument({ teamId: user.teamId }); + + document.content = parser + .parse( + "| Name | Notes |\n|------|-------|\n| Alpha | see |\n| Beta | other |\n" + ) + .toJSON(); + await document.save(); + + // Capture the untouched (Beta) row BEFORE patching so we can assert its + // structure and attrs are preserved exactly, not just its text. + const beforeDoc = DocumentHelper.toProsemirror(document).toJSON(); + const untouchedRow = beforeDoc.content[0].content[2]; + + const result = DocumentHelper.applyMarkdownToDocument( + document, + "see [docs](https://example.com/d)", + TextEditMode.Patch, + "see" + ); + + // The patched cell gained the link + expect(result.text).toContain("[docs](https://example.com/d)"); + // The untouched row node must remain identical + expect(result.content!.content![0].content![2]).toEqual(untouchedRow); + }); + + it("should apply a mark when wrapping existing list item text", async () => { + const user = await buildUser(); + const document = await buildDocument({ teamId: user.teamId }); + + document.content = parser.parse("- clickme\n- other\n").toJSON(); + await document.save(); + + const result = DocumentHelper.applyMarkdownToDocument( + document, + "[clickme](https://example.com)", + TextEditMode.Patch, + "clickme" + ); + + expect(result.text).toContain("[clickme](https://example.com)"); + expect(result.text).toContain("other"); + }); }); }); diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index 78bfd7f5be..08813948c5 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -817,8 +817,18 @@ export class DocumentHelper { const textSame = oldChild.textContent === newChild.textContent; if (textSame && oldChild.sameMarkup(newChild)) { - // Fully unchanged — keep original with its rich content - merged.push(oldChild); + // Compare against the round-tripped baseline: when the + // updated child is identical to a plain round-trip of the original, + // the patch did not touch it + if (!rtChild || newChild.eq(rtChild)) { + merged.push(oldChild); + } else if (!oldChild.isTextblock && !oldChild.isLeaf) { + // Container child changed deeper down — recurse to preserve rich + // content in the parts that did not change. + merged.push(DocumentHelper.mergeNodes(oldChild, newChild, rtChild)); + } else { + merged.push(newChild); + } } else if (textSame) { // Attrs changed (e.g. checked state) but content same — merge attrs // so that non-markdown-representable values (colwidth, highlight From ca36451e424bd62ef2430818f3955a1e511a8ee8 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 13:16:25 -0400 Subject: [PATCH 195/286] Improve handling of non-HD Google logins from root domain (#12615) --- plugins/google/server/auth/google.ts | 29 +++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/plugins/google/server/auth/google.ts b/plugins/google/server/auth/google.ts index 26c197e3e6..8e4d0f83c0 100644 --- a/plugins/google/server/auth/google.ts +++ b/plugins/google/server/auth/google.ts @@ -68,16 +68,18 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { try { // "domain" is the Google Workspaces domain const domain = profile._json.hd; - const team = await getTeamFromContext(context); + let team = await getTeamFromContext(context); const client = getClientFromOAuthState(context); const user = context.state?.auth?.user ?? (await getUserFromOAuthState(context)); - // No profile domain means personal gmail account - // No team implies the request came from the apex domain - // This combination is always an error + // No profile domain means a personal gmail account, and no team means + // the request came from the apex domain rather than a workspace + // subdomain. We can't infer the workspace from the domain, so resolve + // it from the verified email's existing accounts instead. if (!domain && !team) { - const userExists = await User.count({ + const existingAccounts = await User.findAll({ + attributes: ["id", "teamId"], where: { email: profile.email.toLowerCase() }, include: [ { @@ -86,14 +88,23 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { }, ], }); + const teamIds = new Set( + existingAccounts.map((account) => account.teamId) + ); - // Users cannot create a team with personal gmail accounts - if (!userExists) { + // A personal gmail account cannot be used to create a new workspace. + if (teamIds.size === 0) { throw GmailAccountCreationError(); } - // To log-in with a personal account, users must specify a team subdomain - throw TeamDomainRequiredError(); + // When the email belongs to more than one workspace it is ambiguous + // which to sign into, so the user must start from its subdomain. + if (teamIds.size > 1) { + throw TeamDomainRequiredError(); + } + + // Belongs to exactly one workspace — resolve it and sign in there. + team = existingAccounts[0].team; } // remove the TLD and form a subdomain from the remaining From 27c633eb8bac0937393409b347a1ea70b9b47e2a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 13:29:41 -0400 Subject: [PATCH 196/286] fix: Code blocks auto-collapse while editing (#12616) --- shared/editor/nodes/CodeFence.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index bca0828da6..a736e68fad 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -42,6 +42,7 @@ import { setRecentlyUsedCodeLanguage, } from "../lib/code"; import { isCode, isMermaid } from "../lib/isCode"; +import { isRemoteTransaction } from "../lib/multiplayer"; import { findBlockNodes } from "../queries/findChildren"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; import { findNextNewline, findPreviousNewline } from "../queries/findNewlines"; @@ -447,17 +448,20 @@ export default class CodeFence extends Node<CodeFenceOptions> { return prev; } - // Recompute tall blocks on doc changes, preserving - // user collapse/expand choices where possible. + // Recompute tall blocks on doc changes. Newly tall blocks are only + // auto-collapsed when content arrives via load/remote sync — never + // while the user is typing, which would collapse the block under + // the cursor. if (tr.docChanged) { const tallBlocks = findTallBlocks(newState.doc); const collapsedBlocks = new Set<number>(); + const isRemote = isRemoteTransaction(tr); const inverse = tr.mapping.invert(); for (const pos of tallBlocks) { const oldPos = inverse.map(pos); - if (!prev.tallBlocks.has(oldPos)) { - // Newly tall blocks start collapsed + if (isRemote && !prev.tallBlocks.has(oldPos)) { + // Newly tall blocks start collapsed on load collapsedBlocks.add(pos); } else if (prev.collapsedBlocks.has(oldPos)) { // Preserve previous collapsed state From ac6b680cdb67c4d5dc16f047bddac0498d88daee Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 14:22:11 -0400 Subject: [PATCH 197/286] fix: notice query string consumed on unauthenticated routes --- app/routes/authenticated.tsx | 2 ++ app/routes/index.tsx | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/authenticated.tsx b/app/routes/authenticated.tsx index fdf75f8e4f..88214194c5 100644 --- a/app/routes/authenticated.tsx +++ b/app/routes/authenticated.tsx @@ -11,6 +11,7 @@ import Route from "~/components/ProfiledRoute"; import WebsocketProvider from "~/components/WebsocketProvider"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import usePolicy from "~/hooks/usePolicy"; +import useQueryNotices from "~/hooks/useQueryNotices"; import lazy from "~/utils/lazyWithRetry"; import { archivePath, @@ -53,6 +54,7 @@ const RedirectDocument = ({ * the user to be logged in. */ function AuthenticatedRoutes() { + useQueryNotices(); const team = useCurrentTeam(); const can = usePolicy(team); diff --git a/app/routes/index.tsx b/app/routes/index.tsx index 1be584b621..c5bb922de7 100644 --- a/app/routes/index.tsx +++ b/app/routes/index.tsx @@ -5,7 +5,6 @@ import DelayedMount from "~/components/DelayedMount"; import FullscreenLoading from "~/components/FullscreenLoading"; import Route from "~/components/ProfiledRoute"; import env from "~/env"; -import useQueryNotices from "~/hooks/useQueryNotices"; import lazy from "~/utils/lazyWithRetry"; import { matchDocumentSlug as documentSlug } from "~/utils/routeHelpers"; import useAutoRefresh from "~/hooks/useAutoRefresh"; @@ -18,7 +17,6 @@ const Logout = lazy(() => import("~/scenes/Logout")); const OAuthAuthorize = lazy(() => import("~/scenes/Login/OAuthAuthorize")); export default function Routes() { - useQueryNotices(); useAutoRefresh(); return ( From 9b8acf3efb6bd31571ce8aa35674403992d0a0c5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 15:46:01 -0400 Subject: [PATCH 198/286] Remove unnecessary default parameter values from function signatures (#12617) * Fix remaining no-useless-default-assignment lint warnings * Promote no-useless-default-assignment lint rule to error --- .oxlintrc.json | 1 + app/components/DesktopEventHandler.tsx | 2 +- app/components/FilterOptions.tsx | 2 +- app/components/Sidebar/components/SidebarButton.tsx | 2 +- app/editor/components/EmojiMenu.tsx | 2 +- app/editor/components/SuggestionsMenu.tsx | 2 +- app/scenes/Shared/index.tsx | 2 +- server/commands/documentMover.ts | 2 +- server/presenters/oauthClient.ts | 2 +- server/queues/tasks/ExportDocumentTreeTask.ts | 2 +- server/routes/api/developer/developer.ts | 2 +- 11 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.oxlintrc.json b/.oxlintrc.json index b1ec802e4e..1fb98f54a6 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -110,6 +110,7 @@ "typescript/consistent-type-imports": "error", "typescript/restrict-template-expressions": "error", "typescript/no-floating-promises": "error", + "typescript/no-useless-default-assignment": "error", "no-unused-vars": [ "error", { diff --git a/app/components/DesktopEventHandler.tsx b/app/components/DesktopEventHandler.tsx index dbfac609b1..28ca23249c 100644 --- a/app/components/DesktopEventHandler.tsx +++ b/app/components/DesktopEventHandler.tsx @@ -15,7 +15,7 @@ export default function DesktopEventHandler() { const hasDisabledUpdateMessage = useRef(false); useEffect(() => { - Desktop.bridge?.redirect((path: string, replace = false) => { + Desktop.bridge?.redirect((path: string, replace: boolean) => { if (replace) { history.replace(path); } else { diff --git a/app/components/FilterOptions.tsx b/app/components/FilterOptions.tsx index 30f1bd293c..59338ec0b7 100644 --- a/app/components/FilterOptions.tsx +++ b/app/components/FilterOptions.tsx @@ -44,7 +44,7 @@ type Props = { const FilterOptions = ({ options, - selectedKeys = [], + selectedKeys, className, onSelect, showFilter, diff --git a/app/components/Sidebar/components/SidebarButton.tsx b/app/components/Sidebar/components/SidebarButton.tsx index 908f818bc7..1bebb27268 100644 --- a/app/components/Sidebar/components/SidebarButton.tsx +++ b/app/components/Sidebar/components/SidebarButton.tsx @@ -23,7 +23,7 @@ const SidebarButton = observer( React.forwardRef<HTMLButtonElement, SidebarButtonProps>( function SidebarButton_( { - position = "top", + position, showMoreMenu, image, title, diff --git a/app/editor/components/EmojiMenu.tsx b/app/editor/components/EmojiMenu.tsx index dae085cbbc..62de2dfd1f 100644 --- a/app/editor/components/EmojiMenu.tsx +++ b/app/editor/components/EmojiMenu.tsx @@ -25,7 +25,7 @@ type Props = Omit< const EmojiMenu = (props: Props) => { const { emojis } = useStores(); - const { search = "" } = props; + const { search } = props; useEffect(() => { if (search) { diff --git a/app/editor/components/SuggestionsMenu.tsx b/app/editor/components/SuggestionsMenu.tsx index ecea2e8da5..d298b2c172 100644 --- a/app/editor/components/SuggestionsMenu.tsx +++ b/app/editor/components/SuggestionsMenu.tsx @@ -400,7 +400,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { }; const filtered = React.useMemo(() => { - const { embeds = [], search = "", uploadFile, filterable = true } = props; + const { embeds = [], search, uploadFile, filterable = true } = props; let items: (EmbedDescriptor | MenuItem)[] = [...props.items]; const embedItems: EmbedDescriptor[] = []; diff --git a/app/scenes/Shared/index.tsx b/app/scenes/Shared/index.tsx index 0d72b5171d..dd2531b920 100644 --- a/app/scenes/Shared/index.tsx +++ b/app/scenes/Shared/index.tsx @@ -49,7 +49,7 @@ const canonicalOrigin = canonicalUrl : window.location.origin; type PathParams = { - shareId: string; + shareId?: string; collectionSlug?: string; documentSlug?: string; }; diff --git a/server/commands/documentMover.ts b/server/commands/documentMover.ts index ae13f11ea8..185fc3f7cd 100644 --- a/server/commands/documentMover.ts +++ b/server/commands/documentMover.ts @@ -24,7 +24,7 @@ async function documentMover( ctx: APIContext, { document, - collectionId = null, + collectionId, parentDocumentId = null, // convert undefined to null so parentId comparison treats them as equal index, diff --git a/server/presenters/oauthClient.ts b/server/presenters/oauthClient.ts index 0980d613d8..9c5a359596 100644 --- a/server/presenters/oauthClient.ts +++ b/server/presenters/oauthClient.ts @@ -17,7 +17,7 @@ export function presentDCRClient( baseUrl: string, oauthClient: OAuthClient, { - includeRegistrationAccessToken = false, + includeRegistrationAccessToken, includeCredentials = false, }: { includeRegistrationAccessToken: boolean; diff --git a/server/queues/tasks/ExportDocumentTreeTask.ts b/server/queues/tasks/ExportDocumentTreeTask.ts index f8a6c866a0..59ecd782ef 100644 --- a/server/queues/tasks/ExportDocumentTreeTask.ts +++ b/server/queues/tasks/ExportDocumentTreeTask.ts @@ -26,7 +26,7 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { zip, pathInZip, documentId, - format = FileOperationFormat.MarkdownZip, + format, includeAttachments, pathMap, }: { diff --git a/server/routes/api/developer/developer.ts b/server/routes/api/developer/developer.ts index 0b16c2f96e..6956db0b85 100644 --- a/server/routes/api/developer/developer.ts +++ b/server/routes/api/developer/developer.ts @@ -29,7 +29,7 @@ router.post( auth(), validate(T.CreateTestUsersSchema), async (ctx: APIContext<T.CreateTestUsersReq>) => { - const { count = 10 } = ctx.input.body; + const { count } = ctx.input.body; const invites = Array(Math.min(count, 100)) .fill(0) .map(() => { From 7938ffdd7a5ee304731ae414aa25b3d3c8deaa4a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 17:24:45 -0400 Subject: [PATCH 199/286] Restore SidebarButton position default to fix top padding regression (#12618) The position prop is omitted at several call sites (App, Settings, Shared sidebars) and relied on the top default for inset-titlebar padding. Make the prop optional and restore the default so the lint rule stays satisfied without changing runtime behavior. Co-authored-by: Claude <noreply@anthropic.com> --- app/components/Sidebar/components/SidebarButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Sidebar/components/SidebarButton.tsx b/app/components/Sidebar/components/SidebarButton.tsx index 1bebb27268..1b2a43fe1c 100644 --- a/app/components/Sidebar/components/SidebarButton.tsx +++ b/app/components/Sidebar/components/SidebarButton.tsx @@ -11,7 +11,7 @@ import Desktop from "~/utils/Desktop"; import { HStack } from "~/components/primitives/HStack"; export type SidebarButtonProps = React.ComponentProps<typeof Button> & { - position: "top" | "bottom"; + position?: "top" | "bottom"; title: React.ReactNode; image: React.ReactNode; showMoreMenu?: boolean; @@ -23,7 +23,7 @@ const SidebarButton = observer( React.forwardRef<HTMLButtonElement, SidebarButtonProps>( function SidebarButton_( { - position, + position = "top", showMoreMenu, image, title, From 053693b9d55cb1363947b2fa4c825b6a4c2eb3b7 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 7 Jun 2026 21:13:23 -0400 Subject: [PATCH 200/286] fix: Spurious post-import edits (#12620) --- .../documentCollaborativeUpdater.test.ts | 79 +++++++++++++++++++ .../commands/documentCollaborativeUpdater.ts | 11 ++- server/models/helpers/ProsemirrorHelper.tsx | 18 +++-- shared/editor/extensions/TrailingNode.ts | 48 +++-------- shared/editor/lib/trailingNode.test.ts | 77 ++++++++++++++++++ shared/editor/lib/trailingNode.ts | 53 +++++++++++++ 6 files changed, 240 insertions(+), 46 deletions(-) create mode 100644 server/commands/documentCollaborativeUpdater.test.ts create mode 100644 shared/editor/lib/trailingNode.test.ts create mode 100644 shared/editor/lib/trailingNode.ts diff --git a/server/commands/documentCollaborativeUpdater.test.ts b/server/commands/documentCollaborativeUpdater.test.ts new file mode 100644 index 0000000000..26377526af --- /dev/null +++ b/server/commands/documentCollaborativeUpdater.test.ts @@ -0,0 +1,79 @@ +import { Node } from "prosemirror-model"; +import { prosemirrorToYDoc } from "y-prosemirror"; +import { schema } from "@server/editor"; +import { buildDocument, buildUser } from "@server/test/factories"; +import documentCollaborativeUpdater from "./documentCollaborativeUpdater"; + +describe("documentCollaborativeUpdater", () => { + const buildYDoc = (content: object[]) => { + const doc = Node.fromJSON(schema, { type: "doc", content }); + return prosemirrorToYDoc(doc, "default"); + }; + + it("persists canonical JSON without empty attrs on marks", async () => { + const user = await buildUser(); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + }); + + const ydoc = buildYDoc([ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Deciders:", + marks: [{ type: "strong" }], + }, + ], + }, + ]); + + await documentCollaborativeUpdater({ + documentId: document.id, + ydoc, + sessionCollaboratorIds: [user.id], + isLastConnection: true, + clientVersion: null, + }); + + await document.reload(); + + const marks = JSON.stringify(document.content).match(/"attrs":\{\}/g); + expect(marks).toBeNull(); + + const text = document.content?.content?.[0]?.content?.[0]; + expect(text?.marks).toEqual([{ type: "strong" }]); + }); + + it("does not persist when content is unchanged", async () => { + const user = await buildUser(); + const content = [ + { + type: "paragraph", + content: [{ type: "text", text: "Hello" }], + }, + ]; + const ydoc = buildYDoc(content); + + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + content: Node.fromJSON(schema, { type: "doc", content }).toJSON(), + }); + + const updatedAt = document.updatedAt; + + await documentCollaborativeUpdater({ + documentId: document.id, + ydoc, + sessionCollaboratorIds: [user.id], + isLastConnection: true, + clientVersion: null, + }); + + await document.reload(); + expect(document.updatedAt).toEqual(updatedAt); + }); +}); diff --git a/server/commands/documentCollaborativeUpdater.ts b/server/commands/documentCollaborativeUpdater.ts index 3f93c644f6..88b3b8334b 100644 --- a/server/commands/documentCollaborativeUpdater.ts +++ b/server/commands/documentCollaborativeUpdater.ts @@ -1,8 +1,10 @@ import isEqual from "fast-deep-equal"; import { uniq } from "es-toolkit/compat"; +import { Node } from "prosemirror-model"; import { yDocToProsemirrorJSON } from "y-prosemirror"; import * as Y from "yjs"; import type { ProsemirrorData } from "@shared/types"; +import { schema } from "@server/editor"; import Logger from "@server/logging/Logger"; import { Document, Event } from "@server/models"; import { sequelize } from "@server/storage/database"; @@ -50,7 +52,14 @@ export default async function documentCollaborativeUpdater({ }); const state = Y.encodeStateAsUpdate(ydoc); - const content = yDocToProsemirrorJSON(ydoc, "default") as ProsemirrorData; + + // Round-trip through the schema so the stored JSON is canonical. The raw + // y-prosemirror output includes empty `attrs: {}` on every mark, and outputs + // properties in a different order - resulting in spurious "edits" + const content = Node.fromJSON( + schema, + yDocToProsemirrorJSON(ydoc, "default") + ).toJSON() as ProsemirrorData; const isUnchanged = isEqual(document.content, content); const isDeleted = !!document.deletedAt; const lastModifiedById = isDeleted diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index 8d4043aaef..250c958ab6 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -20,6 +20,7 @@ import Diff from "@shared/editor/extensions/Diff"; import { EditorStyleHelper } from "@shared/editor/styles/EditorStyleHelper"; import type { ExtendedChange } from "@shared/editor/lib/ChangesetHelper"; import textBetween from "@shared/editor/lib/textBetween"; +import { withTrailingNode } from "@shared/editor/lib/trailingNode"; import EditorContainer from "@shared/editor/components/Styles"; import GlobalStyles from "@shared/styles/globals"; import light from "@shared/styles/theme"; @@ -106,15 +107,16 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { * @returns The content as a Y.Doc. */ static toYDoc(input: string | ProsemirrorData, fieldName = "default"): Y.Doc { - if (typeof input === "object") { - return prosemirrorToYDoc( - ProsemirrorHelper.toProsemirror(input), - fieldName - ); + const node = + typeof input === "object" + ? ProsemirrorHelper.toProsemirror(input) + : parser.parse(input); + if (!node) { + return new Y.Doc(); } - - const node = parser.parse(input); - return node ? prosemirrorToYDoc(node, fieldName) : new Y.Doc(); + // Normalize to the editor's trailing-node form so the document opens without + // the editor inserting a trailing paragraph, which would be a spurious edit. + return prosemirrorToYDoc(withTrailingNode(node), fieldName); } /** diff --git a/shared/editor/extensions/TrailingNode.ts b/shared/editor/extensions/TrailingNode.ts index 45d56ec58b..19495eb8a0 100644 --- a/shared/editor/extensions/TrailingNode.ts +++ b/shared/editor/extensions/TrailingNode.ts @@ -1,6 +1,9 @@ -import type { NodeType } from "prosemirror-model"; import { Plugin, PluginKey } from "prosemirror-state"; import Extension from "../lib/Extension"; +import { + requiresTrailingNode, + trailingNodeNotAfter, +} from "../lib/trailingNode"; /** * Options for the TrailingNode extension. @@ -20,15 +23,12 @@ export default class TrailingNode extends Extension<TrailingNodeOptions> { get defaultOptions(): TrailingNodeOptions { return { node: "paragraph", - notAfter: ["paragraph", "heading"], + notAfter: trailingNodeNotAfter, }; } get plugins() { const plugin = new PluginKey(this.name); - const disabledNodes = Object.entries(this.editor.schema.nodes) - .map(([, value]) => value) - .filter((node: NodeType) => this.options.notAfter.includes(node.name)); return [ new Plugin({ @@ -49,38 +49,12 @@ export default class TrailingNode extends Extension<TrailingNodeOptions> { }, }), state: { - init: (_, state) => { - const lastNode = state.tr.doc.lastChild; - - // If paragraph has no text (only images/media), add trailing node - if ( - lastNode?.type.name === "paragraph" && - lastNode.content.size > 0 && - lastNode.textContent.length === 0 - ) { - return true; - } - - return lastNode ? !disabledNodes.includes(lastNode.type) : false; - }, - apply: (tr, value) => { - if (!tr.docChanged) { - return value; - } - - const lastNode = tr.doc.lastChild; - - // If paragraph has no text (only images/media), add trailing node - if ( - lastNode?.type.name === "paragraph" && - lastNode.content.size > 0 && - lastNode.textContent.length === 0 - ) { - return true; - } - - return lastNode ? !disabledNodes.includes(lastNode.type) : false; - }, + init: (_, state) => + requiresTrailingNode(state.doc, this.options.notAfter), + apply: (tr, value) => + tr.docChanged + ? requiresTrailingNode(tr.doc, this.options.notAfter) + : value, }, }), ]; diff --git a/shared/editor/lib/trailingNode.test.ts b/shared/editor/lib/trailingNode.test.ts new file mode 100644 index 0000000000..6a2413aa3f --- /dev/null +++ b/shared/editor/lib/trailingNode.test.ts @@ -0,0 +1,77 @@ +import { Schema } from "prosemirror-model"; +import { requiresTrailingNode, withTrailingNode } from "./trailingNode"; + +const schema = new Schema({ + nodes: { + doc: { content: "block+" }, + paragraph: { group: "block", content: "inline*" }, + heading: { group: "block", content: "inline*" }, + code_block: { group: "block", content: "inline*" }, + image: { group: "inline", inline: true }, + text: { group: "inline" }, + }, +}); + +const doc = (...children: object[]) => + schema.nodeFromJSON({ type: "doc", content: children }); + +const paragraph = (text?: string) => ({ + type: "paragraph", + content: text ? [{ type: "text", text }] : [], +}); + +describe("requiresTrailingNode", () => { + it("is false when the document ends in a paragraph", () => { + expect(requiresTrailingNode(doc(paragraph("hello")))).toBe(false); + }); + + it("is false when the document ends in a heading", () => { + expect( + requiresTrailingNode( + doc({ type: "heading", content: [{ type: "text", text: "title" }] }) + ) + ).toBe(false); + }); + + it("is true when the document ends in another block type", () => { + expect( + requiresTrailingNode( + doc({ type: "code_block", content: [{ type: "text", text: "x" }] }) + ) + ).toBe(true); + }); + + it("is true when the last paragraph contains only non-text content", () => { + expect( + requiresTrailingNode( + doc({ type: "paragraph", content: [{ type: "image" }] }) + ) + ).toBe(true); + }); +}); + +describe("withTrailingNode", () => { + it("appends a trailing paragraph when required", () => { + const result = withTrailingNode( + doc({ type: "code_block", content: [{ type: "text", text: "x" }] }) + ); + expect(result.childCount).toBe(2); + expect(result.lastChild?.type.name).toBe("paragraph"); + expect(result.lastChild?.content.size).toBe(0); + }); + + it("is a no-op when a trailing paragraph already exists", () => { + const input = doc( + { type: "code_block", content: [{ type: "text", text: "x" }] }, + paragraph() + ); + expect(withTrailingNode(input).eq(input)).toBe(true); + }); + + it("is idempotent", () => { + const once = withTrailingNode( + doc({ type: "code_block", content: [{ type: "text", text: "x" }] }) + ); + expect(withTrailingNode(once).eq(once)).toBe(true); + }); +}); diff --git a/shared/editor/lib/trailingNode.ts b/shared/editor/lib/trailingNode.ts new file mode 100644 index 0000000000..34113dc227 --- /dev/null +++ b/shared/editor/lib/trailingNode.ts @@ -0,0 +1,53 @@ +import { Fragment, type Node } from "prosemirror-model"; + +/** Node names after which a trailing paragraph is not required. */ +export const trailingNodeNotAfter = ["paragraph", "heading"]; + +/** + * Determines whether the editor would insert a trailing paragraph after the + * document's last node. Mirrors the behavior of the TrailingNode extension so + * that stored content can be normalized to match the editor, avoiding a + * spurious edit the first time a document is opened. + * + * @param doc The document node to inspect. + * @param notAfter Node names after which a trailing node is not required. + * @returns whether a trailing paragraph is required. + */ +export function requiresTrailingNode( + doc: Node, + notAfter: string[] = trailingNodeNotAfter +): boolean { + const lastNode = doc.lastChild; + if (!lastNode) { + return false; + } + // A paragraph holding only non-text content (eg. images) still needs a + // trailing node so the cursor can be placed after it. + if ( + lastNode.type.name === "paragraph" && + lastNode.content.size > 0 && + lastNode.textContent.length === 0 + ) { + return true; + } + return !notAfter.includes(lastNode.type.name); +} + +/** + * Appends a trailing paragraph to the document if the editor would add one on + * load, returning the normalized document unchanged otherwise. + * + * @param doc The document node to normalize. + * @param notAfter Node names after which a trailing node is not required. + * @returns the document, with a trailing paragraph appended when required. + */ +export function withTrailingNode( + doc: Node, + notAfter: string[] = trailingNodeNotAfter +): Node { + const paragraph = doc.type.schema.nodes.paragraph; + if (!paragraph || !requiresTrailingNode(doc, notAfter)) { + return doc; + } + return doc.copy(doc.content.append(Fragment.from(paragraph.create()))); +} From 969a7bb97dc4eec8c0c55ce2bf6d3a00d581d64a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:42:38 -0400 Subject: [PATCH 201/286] chore(deps-dev): bump prettier from 3.7.4 to 3.8.3 (#12635) Bumps [prettier](https://github.com/prettier/prettier) from 3.7.4 to 3.8.3. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.7.4...3.8.3) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.8.3 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4068371052..6c4da9db6e 100644 --- a/package.json +++ b/package.json @@ -368,7 +368,7 @@ "oxlint": "1.66.0", "oxlint-tsgolint": "0.22.1", "postinstall-postinstall": "^2.1.0", - "prettier": "^3.6.2", + "prettier": "^3.8.3", "react-refresh": "^0.18.0", "rimraf": "^6.1.3", "rollup-plugin-webpack-stats": "2.1.11", diff --git a/yarn.lock b/yarn.lock index 55e1e8f000..c7c4667b0e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15267,7 +15267,7 @@ __metadata: png-chunks-extract: "npm:^1.0.0" polished: "npm:^4.3.1" postinstall-postinstall: "npm:^2.1.0" - prettier: "npm:^3.6.2" + prettier: "npm:^3.8.3" prosemirror-changeset: "npm:2.4.1" prosemirror-codemark: "npm:^0.4.2" prosemirror-commands: "npm:^1.7.1" @@ -16226,12 +16226,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.6.2": - version: 3.7.4 - resolution: "prettier@npm:3.7.4" +"prettier@npm:^3.8.3": + version: 3.8.3 + resolution: "prettier@npm:3.8.3" bin: prettier: bin/prettier.cjs - checksum: 10c0/9675d2cd08eacb1faf1d1a2dbfe24bfab6a912b059fc9defdb380a408893d88213e794a40a2700bd29b140eb3172e0b07c852853f6e22f16f3374659a1a13389 + checksum: 10c0/754816fd7593eb80f6376d7476d463e832c38a12f32775a82683adb6e35b772b1f484d65f19401507b983a8c8a7cd5a4a9f12006bd56491e8f35503473f77473 languageName: node linkType: hard From 1caeafaeed1f2557f9d580961d985d2e82fd6cfd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:42:59 -0400 Subject: [PATCH 202/286] chore(deps-dev): bump discord-api-types from 0.38.46 to 0.38.48 (#12634) Bumps [discord-api-types](https://github.com/discordjs/discord-api-types) from 0.38.46 to 0.38.48. - [Release notes](https://github.com/discordjs/discord-api-types/releases) - [Changelog](https://github.com/discordjs/discord-api-types/blob/main/CHANGELOG.md) - [Commits](https://github.com/discordjs/discord-api-types/compare/0.38.46...0.38.48) --- updated-dependencies: - dependency-name: discord-api-types dependency-version: 0.38.48 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 6c4da9db6e..94cecb6478 100644 --- a/package.json +++ b/package.json @@ -358,7 +358,7 @@ "babel-plugin-transform-typescript-metadata": "^0.4.0", "browserslist-to-esbuild": "^1.2.0", "concurrently": "^8.2.2", - "discord-api-types": "^0.38.46", + "discord-api-types": "^0.38.48", "husky": "^8.0.3", "i18next-parser": "^9.4.0", "ioredis-mock": "^8.13.1", diff --git a/yarn.lock b/yarn.lock index c7c4667b0e..a7a67f14cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10045,10 +10045,10 @@ __metadata: languageName: node linkType: hard -"discord-api-types@npm:^0.38.46": - version: 0.38.46 - resolution: "discord-api-types@npm:0.38.46" - checksum: 10c0/a8b3d6bae79c33f02bef2892fdb23d139ce0139dc4a2cc2c0a3d1dc0c540685136a3c0f5a0ea5cb2f505c934caaeaca57a0def12d6ff1a98e36c6e348120d9ab +"discord-api-types@npm:^0.38.48": + version: 0.38.48 + resolution: "discord-api-types@npm:0.38.48" + checksum: 10c0/898e57378e6e30987d072f88d4d1c08c5e01f1b534c3c3390a117f1a79a9107e766fd3aaf8728c0afbd934f4dc63e76b1f458f7096d54409a68ae9f848b7c564 languageName: node linkType: hard @@ -15190,7 +15190,7 @@ __metadata: date-fns: "npm:^3.6.0" dd-trace: "npm:^5.98.0" diff: "npm:^5.2.2" - discord-api-types: "npm:^0.38.46" + discord-api-types: "npm:^0.38.48" email-providers: "npm:^1.14.0" emoji-mart: "npm:^5.6.0" emoji-regex: "npm:^10.6.0" From 1c23cbec1ba98ca36f87737efbcb9b1364b2f87d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:43:16 -0400 Subject: [PATCH 203/286] chore(deps): bump @simplewebauthn/server from 13.3.0 to 13.3.1 (#12633) Bumps [@simplewebauthn/server](https://github.com/MasterKale/SimpleWebAuthn/tree/HEAD/packages/server) from 13.3.0 to 13.3.1. - [Release notes](https://github.com/MasterKale/SimpleWebAuthn/releases) - [Changelog](https://github.com/MasterKale/SimpleWebAuthn/blob/master/CHANGELOG.md) - [Commits](https://github.com/MasterKale/SimpleWebAuthn/commits/v13.3.1/packages/server) --- updated-dependencies: - dependency-name: "@simplewebauthn/server" dependency-version: 13.3.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 94cecb6478..8bf6a9f41d 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@sentry/node": "^7.120.4", "@sentry/react": "^7.120.4", "@simplewebauthn/browser": "^13.3.0", - "@simplewebauthn/server": "^13.2.3", + "@simplewebauthn/server": "^13.3.1", "@tanstack/react-table": "^8.21.3", "@tanstack/react-virtual": "^3.13.24", "@types/form-data": "^2.5.2", diff --git a/yarn.lock b/yarn.lock index a7a67f14cb..4fe3636cb4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5887,9 +5887,9 @@ __metadata: languageName: node linkType: hard -"@simplewebauthn/server@npm:^13.2.3": - version: 13.3.0 - resolution: "@simplewebauthn/server@npm:13.3.0" +"@simplewebauthn/server@npm:^13.3.1": + version: 13.3.1 + resolution: "@simplewebauthn/server@npm:13.3.1" dependencies: "@hexagon/base64": "npm:^1.1.27" "@levischuck/tiny-cbor": "npm:^0.2.2" @@ -5899,7 +5899,7 @@ __metadata: "@peculiar/asn1-schema": "npm:^2.6.0" "@peculiar/asn1-x509": "npm:^2.6.1" "@peculiar/x509": "npm:^1.14.3" - checksum: 10c0/ff85d4e6b54708ae2ea3be0dd4aa91cb9e27299281c755711caf388e0845e060bbf52b47a1ce6629faba8f5a2182c291bee22954471bbeaa8613a92738232907 + checksum: 10c0/843f9f4e80bfcf389acb3ba6af48f87937e1de1d87c975a77d92ab1309c4619f3cd8eecaf50499d5355c05476506c35aaf3c7a76a4c4e662a1e3721b06656239 languageName: node linkType: hard @@ -15097,7 +15097,7 @@ __metadata: "@sentry/node": "npm:^7.120.4" "@sentry/react": "npm:^7.120.4" "@simplewebauthn/browser": "npm:^13.3.0" - "@simplewebauthn/server": "npm:^13.2.3" + "@simplewebauthn/server": "npm:^13.3.1" "@swc/core": "npm:^1.15.32" "@tanstack/react-table": "npm:^8.21.3" "@tanstack/react-virtual": "npm:^3.13.24" From d703f8acf376eb60ab60228fc757c7aeba7ab0e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:43:40 -0400 Subject: [PATCH 204/286] chore(deps-dev): bump @vitest/ui from 4.1.6 to 4.1.8 (#12631) Bumps [@vitest/ui](https://github.com/vitest-dev/vitest/tree/HEAD/packages/ui) from 4.1.6 to 4.1.8. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.8/packages/ui) --- updated-dependencies: - dependency-name: "@vitest/ui" dependency-version: 4.1.8 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 8bf6a9f41d..7d8f1235b1 100644 --- a/package.json +++ b/package.json @@ -351,7 +351,7 @@ "@types/validator": "^13.15.10", "@types/yauzl": "^2.10.3", "@types/yazl": "^2.4.6", - "@vitest/ui": "^4.1.6", + "@vitest/ui": "^4.1.8", "babel-plugin-module-resolver": "^5.0.3", "babel-plugin-styled-components": "^2.1.4", "babel-plugin-transform-inline-environment-variables": "^0.4.4", diff --git a/yarn.lock b/yarn.lock index 4fe3636cb4..829bf013a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7601,12 +7601,12 @@ __metadata: languageName: node linkType: hard -"@vitest/pretty-format@npm:4.1.6": - version: 4.1.6 - resolution: "@vitest/pretty-format@npm:4.1.6" +"@vitest/pretty-format@npm:4.1.8": + version: 4.1.8 + resolution: "@vitest/pretty-format@npm:4.1.8" dependencies: tinyrainbow: "npm:^3.1.0" - checksum: 10c0/f818a6abff9b7cf642edc2d0fe84d4f124911696bc7591f2af9ab6d88685b72133a1e9f87499e9b4dc2314dff85403ea66c64f7b408b2eb39f9880c6d3517ca0 + checksum: 10c0/553c456692a4b9ae13cd116c234c74b4495e0f1a0d5c51ffc3fab8ea085e3550769967e29db79bdac0cf127b1bf88b7f70bfba3dcc72be6bddf834433e30cc91 languageName: node linkType: hard @@ -7639,11 +7639,11 @@ __metadata: languageName: node linkType: hard -"@vitest/ui@npm:^4.1.6": - version: 4.1.6 - resolution: "@vitest/ui@npm:4.1.6" +"@vitest/ui@npm:^4.1.8": + version: 4.1.8 + resolution: "@vitest/ui@npm:4.1.8" dependencies: - "@vitest/utils": "npm:4.1.6" + "@vitest/utils": "npm:4.1.8" fflate: "npm:^0.8.2" flatted: "npm:^3.4.2" pathe: "npm:^2.0.3" @@ -7651,8 +7651,8 @@ __metadata: tinyglobby: "npm:^0.2.15" tinyrainbow: "npm:^3.1.0" peerDependencies: - vitest: 4.1.6 - checksum: 10c0/4e3a7416862feafe1ba2b0ca140bead49a2549ed189b2d42b8ea0bbd8656e103783b192151c0b9986861bc5f05e0fd33626c46e1f7572e8da068b85bd6a773ea + vitest: 4.1.8 + checksum: 10c0/c2b559c9633df6d9019cf52b55f1deffa11f12500c124bf0a4fb47991e26d92d42ad549ef434e714dbecf1469b630764d264f78dd0518fbd472e81f43437390e languageName: node linkType: hard @@ -7667,14 +7667,14 @@ __metadata: languageName: node linkType: hard -"@vitest/utils@npm:4.1.6": - version: 4.1.6 - resolution: "@vitest/utils@npm:4.1.6" +"@vitest/utils@npm:4.1.8": + version: 4.1.8 + resolution: "@vitest/utils@npm:4.1.8" dependencies: - "@vitest/pretty-format": "npm:4.1.6" + "@vitest/pretty-format": "npm:4.1.8" convert-source-map: "npm:^2.0.0" tinyrainbow: "npm:^3.1.0" - checksum: 10c0/36437888088a1aae8565e62b9f145de9fb1599725574924477c655c7617ad677b575ac0eb3f2b3288854ed1aafff914a0417dffbb7f5244c821f157119701227 + checksum: 10c0/acda9d3d640c1ebc81afb358ac30589d7d7d583af81e2d09419f0af9cbe41f3ce0b90527326943bf0da51614be5fc31afcd32259f6beb32b3417999d6ef380f3 languageName: node linkType: hard @@ -15169,7 +15169,7 @@ __metadata: "@types/yauzl": "npm:^2.10.3" "@types/yazl": "npm:^2.4.6" "@vitejs/plugin-react-oxc": "npm:^0.2.3" - "@vitest/ui": "npm:^4.1.6" + "@vitest/ui": "npm:^4.1.8" addressparser: "npm:^1.0.1" async-sema: "npm:^3.1.1" babel-plugin-module-resolver: "npm:^5.0.3" From bc5ffb79b201d8d47d20c21c0bc3a266d09745b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:43:55 -0400 Subject: [PATCH 205/286] chore(deps): bump react-day-picker from 8.10.1 to 8.10.2 (#12632) Bumps [react-day-picker](https://github.com/gpbl/react-day-picker/tree/HEAD/packages/react-day-picker) from 8.10.1 to 8.10.2. - [Release notes](https://github.com/gpbl/react-day-picker/releases) - [Changelog](https://github.com/gpbl/react-day-picker/blob/main/packages/react-day-picker/CHANGELOG.md) - [Commits](https://github.com/gpbl/react-day-picker/commits/v8.10.2/packages/react-day-picker) --- updated-dependencies: - dependency-name: react-day-picker dependency-version: 8.10.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7d8f1235b1..8c491fb622 100644 --- a/package.json +++ b/package.json @@ -214,7 +214,7 @@ "react": "^17.0.2", "react-avatar-editor": "^13.0.2", "react-colorful": "^5.7.0", - "react-day-picker": "^8.10.1", + "react-day-picker": "^8.10.2", "react-dnd": "^16.0.1", "react-dnd-html5-backend": "^16.0.1", "react-dom": "^17.0.2", diff --git a/yarn.lock b/yarn.lock index 829bf013a2..4204c7b42d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15289,7 +15289,7 @@ __metadata: react: "npm:^17.0.2" react-avatar-editor: "npm:^13.0.2" react-colorful: "npm:^5.7.0" - react-day-picker: "npm:^8.10.1" + react-day-picker: "npm:^8.10.2" react-dnd: "npm:^16.0.1" react-dnd-html5-backend: "npm:^16.0.1" react-dom: "npm:^17.0.2" @@ -16682,13 +16682,13 @@ __metadata: languageName: node linkType: hard -"react-day-picker@npm:^8.10.1": - version: 8.10.1 - resolution: "react-day-picker@npm:8.10.1" +"react-day-picker@npm:^8.10.2": + version: 8.10.2 + resolution: "react-day-picker@npm:8.10.2" peerDependencies: date-fns: ^2.28.0 || ^3.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/a0ff28c4b61b3882e6a825b19e5679e2fdf3256cf1be8eb0a0c028949815c1ae5a6561474c2c19d231c010c8e0e0b654d3a322610881e0655abca05a2e03d9df + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/701fe6dc0cc2de1430ddbf976c3a9e1f00b8b9970f1d11364047238d34e5f60f8089f505c8d9ec77faeef861b06a3b7b8ed6cc5d11d454abe46fe6b3a46270eb languageName: node linkType: hard From 709184ae0b08e72b642e66d6dca88ba5b6f5c7d1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 8 Jun 2026 17:44:09 -0400 Subject: [PATCH 206/286] fix: Before/After creation options appear in menu when no permission on parent doc (#12629) * fix: Before/After creation options appear in menu when no permission on parent closes #12624 * fix: Manager of root document sees non-functional Before/After create options Before/After only gated on the team-level createDocument ability, so a user with document-level manager access (but no collection access) saw the options yet hit a backend rejection. Gate on the actual sibling location instead, mirroring authorizeDocumentCreate. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- app/actions/definitions/documents.tsx | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index 57c7990151..0c2e18517b 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -240,6 +240,26 @@ function findDocumentSiblingIndex( return siblings?.findIndex((node) => node.id === document.id) ?? -1; } +/** + * Determines whether the user can create a sibling of the given document. + * A sibling shares the document's parent, so this mirrors the backend's + * create authorization: create permission on the parent document, or on the + * collection when the document is at the root. + * + * @param stores - the root stores. + * @param document - the document to create a sibling of. + * @returns true if the user can create a sibling. + */ +function canCreateSiblingDocument( + stores: ActionContext["stores"], + document: { collectionId?: string | null; parentDocumentId?: string } +): boolean { + return document.parentDocumentId + ? stores.policies.abilities(document.parentDocumentId).createChildDocument + : !!document.collectionId && + stores.policies.abilities(document.collectionId).createDocument; +} + export const createNestedDocument = createInternalLinkAction({ name: ({ t }) => t("Nested document"), analyticsName: "New document", @@ -279,7 +299,7 @@ const createDocumentBefore = createInternalLinkAction({ if (collection?.sort.field === "title") { return false; } - return stores.policies.abilities(currentTeamId).createDocument; + return canCreateSiblingDocument(stores, document); }, to: ({ activeDocumentId, stores, sidebarContext }) => { const document = activeDocumentId @@ -321,7 +341,7 @@ const createDocumentAfter = createInternalLinkAction({ if (collection?.sort.field === "title") { return false; } - return stores.policies.abilities(currentTeamId).createDocument; + return canCreateSiblingDocument(stores, document); }, to: ({ activeDocumentId, stores, sidebarContext }) => { const document = activeDocumentId From a2f9962958ab2b914646d4e6140c68e1be1da8c5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 8 Jun 2026 19:35:46 -0400 Subject: [PATCH 207/286] fix: Update validateUrlNotPrivate to match implementation in SSRF (#12636) --- server/utils/url.test.ts | 35 +++++++++++++++++++++++++++++++++++ server/utils/url.ts | 17 ++++++----------- 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/server/utils/url.test.ts b/server/utils/url.test.ts index ca7f34b2e3..576785882b 100644 --- a/server/utils/url.test.ts +++ b/server/utils/url.test.ts @@ -50,6 +50,41 @@ describe("validateUrlNotPrivate", () => { ).rejects.toThrow("is not allowed"); }); + it.each([ + ["::ffff:169.254.169.254", "metadata via IPv4-mapped IPv6"], + ["::ffff:127.0.0.1", "loopback via IPv4-mapped IPv6"], + ["::ffff:10.0.0.1", "RFC1918 via IPv4-mapped IPv6"], + ["::ffff:192.168.1.1", "RFC1918 via IPv4-mapped IPv6"], + ["64:ff9b::a9fe:a9fe", "metadata via NAT64"], + ["2002:a9fe:a9fe::", "metadata via 6to4"], + ])("should reject %s in URL (%s)", async (address) => { + await expect( + validateUrlNotPrivate(`https://[${address}]/api`) + ).rejects.toThrow("is not allowed"); + }); + + it("should reject IPv4-mapped IPv6 address resolved via DNS", async () => { + lookupSpy.mockResolvedValue({ + address: "::ffff:169.254.169.254", + family: 6, + }); + await expect( + validateUrlNotPrivate("https://metadata.example.com") + ).rejects.toThrow("is not allowed"); + }); + + it("should reject carrier-grade NAT address", async () => { + await expect( + validateUrlNotPrivate("https://100.64.0.1/api") + ).rejects.toThrow("is not allowed"); + }); + + it("should reject IPv4-mapped IPv6 addresses outright", async () => { + await expect( + validateUrlNotPrivate("https://[::ffff:8.8.8.8]/") + ).rejects.toThrow("is not allowed"); + }); + describe("with ALLOWED_PRIVATE_IP_ADDRESSES", () => { it("should allow exact IP match", async () => { env.ALLOWED_PRIVATE_IP_ADDRESSES = ["10.0.0.1"]; diff --git a/server/utils/url.ts b/server/utils/url.ts index 61b5017c5d..fbf82073be 100644 --- a/server/utils/url.ts +++ b/server/utils/url.ts @@ -7,15 +7,6 @@ import { InvalidRequestError } from "@server/errors"; const UrlIdLength = 10; -/** IP ranges that are not allowed for outbound requests. */ -const privateRanges = new Set([ - "private", - "loopback", - "linkLocal", - "uniqueLocal", - "unspecified", -]); - export const generateUrlId = () => randomString(UrlIdLength); // Paths probed by vulnerability scanners. @@ -53,7 +44,9 @@ export function isPrivateIP(ip: string): boolean { if (!ipaddr.isValid(ip)) { return false; } - return privateRanges.has(ipaddr.parse(ip).range()); + + // Only globally-routable unicast addresses are permitted + return ipaddr.parse(ip).range() !== "unicast"; } /** @@ -102,7 +95,9 @@ function isAllowedPrivateIP(ip: string): boolean { * @throws InternalError if the URL resolves to a private IP that is not allowed. */ export async function validateUrlNotPrivate(url: string) { - const { hostname } = new URL(url); + // URL.hostname keeps the square brackets around IPv6 literals (e.g. + // "[::1]"), which net.isIP does not accept, so strip them before checking. + const hostname = new URL(url).hostname.replace(/^\[|\]$/g, ""); if (net.isIP(hostname)) { if (isPrivateIP(hostname) && !isAllowedPrivateIP(hostname)) { From a3fcd71582868c086393eeb05909d2f3c67b53e7 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 8 Jun 2026 20:20:52 -0400 Subject: [PATCH 208/286] fix: Widen validated emails for Azure (#12637) --- plugins/azure/server/auth/azure.ts | 34 +++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index 33d39543db..bd0512e131 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -102,17 +102,31 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { const user = context.state?.auth?.user ?? (await getUserFromOAuthState(context)); - // Microsoft's email claim is mutable, only trust it when a verification - // claim confirms it — xms_edov for workforce tenants, or the standard - // email_verified claim in External ID / OIDC scenarios. + // The mail and userPrincipalName values come from the directory via the + // Graph API and are owned by the organization, so an email sourced from + // them is inherently trusted. Microsoft's mutable `email` token claim is + // only trusted when a verification claim confirms it — xms_edov for + // workforce tenants, or the standard email_verified claim in External ID + // / OIDC scenarios. // https://learn.microsoft.com/en-us/entra/identity-platform/reference-claims-customization - const verificationClaims = [profile.xms_edov, profile.email_verified]; - const presentClaims = verificationClaims.filter( - (claim) => claim !== undefined - ); - const emailVerified = presentClaims.length - ? presentClaims.some((claim) => claim === true || claim === "true") - : undefined; + const directoryEmails = [ + profileResponse.mail, + profileResponse.userPrincipalName, + ] + .filter(Boolean) + .map((value) => value.toLowerCase()); + + const verificationClaims = [ + profile.xms_edov, + profile.email_verified, + ].filter((claim) => claim !== undefined); + const emailVerified = + directoryEmails.includes(email.toLowerCase()) || + (verificationClaims.length + ? verificationClaims.some( + (claim) => claim === true || claim === "true" + ) + : undefined); const domain = parseEmail(email).domain; const subdomain = slugifyDomain(domain); From 39623b90bd0846ac2316395143a73a3340e2dfd3 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 8 Jun 2026 22:30:19 -0400 Subject: [PATCH 209/286] fix: Search prop is optional --- app/editor/components/EmojiMenu.tsx | 2 +- app/editor/components/MentionMenu.tsx | 2 +- app/editor/components/SuggestionsMenu.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/editor/components/EmojiMenu.tsx b/app/editor/components/EmojiMenu.tsx index 62de2dfd1f..dae085cbbc 100644 --- a/app/editor/components/EmojiMenu.tsx +++ b/app/editor/components/EmojiMenu.tsx @@ -25,7 +25,7 @@ type Props = Omit< const EmojiMenu = (props: Props) => { const { emojis } = useStores(); - const { search } = props; + const { search = "" } = props; useEffect(() => { if (search) { diff --git a/app/editor/components/MentionMenu.tsx b/app/editor/components/MentionMenu.tsx index f8026bdf8e..e472d96101 100644 --- a/app/editor/components/MentionMenu.tsx +++ b/app/editor/components/MentionMenu.tsx @@ -47,7 +47,7 @@ type Props = Omit< "renderMenuItem" | "items" | "embeds" >; -function MentionMenu({ search, isActive, ...rest }: Props) { +function MentionMenu({ search = "", isActive, ...rest }: Props) { const [loaded, setLoaded] = useState(false); const { t } = useTranslation(); const { auth, documents, users, collections, groups } = useStores(); diff --git a/app/editor/components/SuggestionsMenu.tsx b/app/editor/components/SuggestionsMenu.tsx index d298b2c172..d1a497f7e1 100644 --- a/app/editor/components/SuggestionsMenu.tsx +++ b/app/editor/components/SuggestionsMenu.tsx @@ -35,7 +35,7 @@ import { MenuHeader } from "~/components/primitives/components/Menu"; export type Props<T extends MenuItem = MenuItem> = { rtl: boolean; isActive: boolean; - search: string; + search?: string; trigger: string | string[]; uploadFile?: (file: File) => Promise<string>; onFileUploadStart?: () => void; @@ -400,7 +400,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { }; const filtered = React.useMemo(() => { - const { embeds = [], search, uploadFile, filterable = true } = props; + const { embeds = [], search = "", uploadFile, filterable = true } = props; let items: (EmbedDescriptor | MenuItem)[] = [...props.items]; const embedItems: EmbedDescriptor[] = []; From 95106e695fb251bc1284b674395836cbd24a5b08 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 9 Jun 2026 07:38:36 -0400 Subject: [PATCH 210/286] fix: Pasted content sometimes appears in plaintext (#12638) * fix: 'Stuck' shift key forces plaintext paste fix: Link on image does not survive copy/paste * sanitize --- app/editor/extensions/PasteHandler.tsx | 8 ++--- shared/editor/nodes/Image.tsx | 50 ++++++++++++++++---------- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/app/editor/extensions/PasteHandler.tsx b/app/editor/extensions/PasteHandler.tsx index ce6ea658ce..05cad81bf7 100644 --- a/app/editor/extensions/PasteHandler.tsx +++ b/app/editor/extensions/PasteHandler.tsx @@ -55,15 +55,11 @@ export default class PasteHandler extends Extension { }, handleDOMEvents: { keydown: (_, event) => { - if (event.key === "Shift") { - this.shiftKey = true; - } + this.shiftKey = event.shiftKey; return false; }, keyup: (_, event) => { - if (event.key === "Shift") { - this.shiftKey = false; - } + this.shiftKey = event.shiftKey; return false; }, }, diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index 7b5de8dec8..18f6672768 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -9,12 +9,12 @@ import type { import type { Command } from "prosemirror-state"; import { NodeSelection, Plugin, TextSelection } from "prosemirror-state"; import * as React from "react"; -import { sanitizeImageSrc } from "../../utils/urls"; +import { sanitizeImageSrc, sanitizeUrl } from "../../utils/urls"; import Caption from "../components/Caption"; import ImageComponent from "../components/Image"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; import { EditorStyleHelper } from "../styles/EditorStyleHelper"; -import type { ComponentProps } from "../types"; +import type { ComponentProps, NodeAttrMark } from "../types"; import SimpleImage from "./SimpleImage"; import { LightboxImageFactory } from "../lib/Lightbox"; import { ImageSource } from "../lib/FileHelper"; @@ -151,6 +151,12 @@ export default class Image extends SimpleImage { const width = img?.getAttribute("width"); const height = img?.getAttribute("height"); + + // A link wrapping the image is stored as a node attribute rather + // than a mark, parse it back so it survives copy/paste. Sanitize + // the href as it is rendered directly into the DOM by the view. + const href = sanitizeUrl(img?.closest("a")?.getAttribute("href")); + return { src: img?.getAttribute("src"), alt: img?.getAttribute("alt"), @@ -159,17 +165,16 @@ export default class Image extends SimpleImage { width: width ? parseInt(width, 10) : undefined, height: height ? parseInt(height, 10) : undefined, layoutClass, + marks: href ? [{ type: "link", attrs: { href } }] : undefined, }; }, }, { tag: "img", getAttrs: (dom: HTMLImageElement) => { - // Don't parse images from our own editor with this rule. - if ( - dom.parentElement?.classList.contains("image") || - dom.parentElement?.classList.contains("emoji") - ) { + // Don't parse images from our own editor with this rule. A linked + // image nests the <img> inside an <a>, so check ancestors too. + if (dom.closest(".image") || dom.closest(".emoji")) { return false; } @@ -206,19 +211,28 @@ export default class Image extends SimpleImage { ? `image image-${node.attrs.layoutClass}` : "image"; - const children = [ - [ - "img", - { - ...node.attrs, - src: sanitizeImageSrc(node.attrs.src), - width: node.attrs.width, - height: node.attrs.height, - contentEditable: "false", - }, - ], + // `marks` is held separately below and is not a valid DOM attribute. + const { marks, ...attrs } = node.attrs; + const img = [ + "img", + { + ...attrs, + src: sanitizeImageSrc(node.attrs.src), + width: node.attrs.width, + height: node.attrs.height, + contentEditable: "false", + }, ]; + // A link applied to an image is held as a node attribute rather than a + // mark, so it must be written into the DOM explicitly here. + const linkHref = (marks as NodeAttrMark[] | undefined)?.find( + (mark) => mark.type === "link" + )?.attrs?.href; + const href = typeof linkHref === "string" ? linkHref : undefined; + + const children = [href ? ["a", { href: sanitizeUrl(href) }, img] : img]; + if (node.attrs.alt) { children.push([ "p", From bd01a62fc1902c5ebad36b7eabf8ae0ad21e1e5a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 9 Jun 2026 07:43:21 -0400 Subject: [PATCH 211/286] feat: MCP template support (#12639) --- server/routes/mcp/index.ts | 6 +- server/tools/documents.test.ts | 77 +++++++++++++++++++ server/tools/documents.ts | 22 +++++- server/tools/fetch.test.ts | 29 +++++++ server/tools/fetch.ts | 42 ++++++++++- server/tools/templates.test.ts | 115 ++++++++++++++++++++++++++++ server/tools/templates.ts | 134 +++++++++++++++++++++++++++++++++ 7 files changed, 417 insertions(+), 8 deletions(-) create mode 100644 server/tools/templates.test.ts create mode 100644 server/tools/templates.ts diff --git a/server/routes/mcp/index.ts b/server/routes/mcp/index.ts index c80aa1f58c..3adbe198c1 100644 --- a/server/routes/mcp/index.ts +++ b/server/routes/mcp/index.ts @@ -19,6 +19,7 @@ import { collectionTools } from "@server/tools/collections"; import { commentTools } from "@server/tools/comments"; import { documentTools } from "@server/tools/documents"; import { fetchTool } from "@server/tools/fetch"; +import { templateTools } from "@server/tools/templates"; import { userTools } from "@server/tools/users"; import { version } from "../../../package.json"; @@ -29,7 +30,9 @@ const defaultInstructions = `Document markdown content must not begin with a top Document and collection markdown support @mentions using the syntax: @[Display Name](mention://user/userId). For example: @[John Doe](mention://user/c9a1b2e3-...). Use the "list_users" tool to find user IDs. -Read images and attachments with the "fetch" tool by setting resource to "attachment" and passing either the attachment ID or an /api/attachments.redirect?id=... URL; the tool will return a signed URL for download.`; +Read images and attachments with the "fetch" tool by setting resource to "attachment" and passing either the attachment ID or an /api/attachments.redirect?id=... URL; the tool will return a signed URL for download. + +When asked to create a document that follows a template, use the "list_templates" tool to find a matching template; each result already includes the template body as markdown. To use it unchanged, pass its ID as templateId to "create_document" and the new document is pre-filled from it. To adapt it first, modify the returned body and pass the result as the text parameter to "create_document". Either way no separate fetch is needed.`; /** * Creates a fresh MCP server instance with tools filtered by the OAuth @@ -62,6 +65,7 @@ function createMcpServer(scopes: string[], guidance?: string): McpServer { commentTools(server, scopes); documentTools(server, scopes); fetchTool(server, scopes); + templateTools(server, scopes); userTools(server, scopes); return server; diff --git a/server/tools/documents.test.ts b/server/tools/documents.test.ts index 160731c16f..d88e3cecac 100644 --- a/server/tools/documents.test.ts +++ b/server/tools/documents.test.ts @@ -4,6 +4,7 @@ import { buildViewer, buildCollection, buildDocument, + buildTemplate, buildOAuthAuthentication, } from "@server/test/factories"; import { Document } from "@server/models"; @@ -189,6 +190,82 @@ describe("create_document", () => { expect(data.document.parentDocumentId).toEqual(parent.id); }); + it("creates from a template", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const template = await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + text: "Content from the template", + }); + + const res = await callMcpTool(server, accessToken, "create_document", { + title: "From Template", + collectionId: collection.id, + templateId: template.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + const text = res?.result?.content?.[1]?.text ?? ""; + + expect(res?.result?.isError).not.toBe(true); + expect(data.document.title).toEqual("From Template"); + expect(data.document.templateId).toEqual(template.id); + expect(text).toContain("Content from the template"); + }); + + it("defaults the title to the template title", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const template = await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + title: "Template Title", + }); + + const res = await callMcpTool(server, accessToken, "create_document", { + collectionId: collection.id, + templateId: template.id, + }); + const data = JSON.parse(res?.result?.content?.[0]?.text ?? "{}"); + + expect(res?.result?.isError).not.toBe(true); + expect(data.document.title).toEqual("Template Title"); + }); + + it("does not allow creating from a template the user cannot access", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const otherUser = await buildUser(); + const otherCollection = await buildCollection({ + teamId: otherUser.teamId, + userId: otherUser.id, + }); + const template = await buildTemplate({ + teamId: otherUser.teamId, + userId: otherUser.id, + collectionId: otherCollection.id, + }); + + const res = await callMcpTool(server, accessToken, "create_document", { + title: "From Template", + collectionId: collection.id, + templateId: template.id, + }); + + expect(res?.result?.isError).toBe(true); + }); + it("does not allow a viewer to create a draft", async () => { const user = await buildViewer(); const auth = await buildOAuthAuthentication({ diff --git a/server/tools/documents.ts b/server/tools/documents.ts index e80be278c1..42dbf4f2ca 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -9,7 +9,7 @@ import documentMover from "@server/commands/documentMover"; import documentRestorer from "@server/commands/documentRestorer"; import documentUpdater from "@server/commands/documentUpdater"; import { Op } from "sequelize"; -import { Collection, Document } from "@server/models"; +import { Collection, Document, Template } from "@server/models"; import { sequelize } from "@server/storage/database"; import { authorize, can } from "@server/policies"; import { @@ -301,13 +301,15 @@ export function documentTools(server: McpServer, scopes: string[]) { { title: "Create document", description: - "Creates a new document. Requires a collectionId to place the document in a collection, or parentDocumentId to nest it under an existing document.", + "Creates a new document. Requires a collectionId to place the document in a collection, or parentDocumentId to nest it under an existing document. Pass a templateId (from list_templates) to pre-fill the document from a template; the template's content is used unless text is also provided.", annotations: { idempotentHint: false, readOnlyHint: false, }, inputSchema: { - title: z.string().describe("The title of the document."), + title: optionalString().describe( + "The title of the document. Defaults to the template's title when a templateId is provided." + ), text: z .string() .optional() @@ -318,6 +320,9 @@ export function documentTools(server: McpServer, scopes: string[]) { parentDocumentId: optionalString().describe( "The parent document ID to nest this document under." ), + templateId: optionalString().describe( + "The ID of a template to pre-fill the new document from. The template's title, content, icon, and color are used unless overridden by the corresponding parameters." + ), icon: optionalString().describe( "An icon for the document, e.g. an emoji." ), @@ -340,7 +345,7 @@ export function documentTools(server: McpServer, scopes: string[]) { }, withTracing("create_document", async (input, context) => { try { - const { collectionId, parentDocumentId } = input; + const { collectionId, parentDocumentId, templateId } = input; const ctx = buildAPIContext(context); const { user } = ctx.state.auth; @@ -349,6 +354,14 @@ export function documentTools(server: McpServer, scopes: string[]) { parentDocumentId, }); + let template: Template | null | undefined; + if (templateId) { + template = await Template.findByPk(templateId, { + userId: user.id, + }); + authorize(user, "read", template); + } + const document = await documentCreator(ctx, { title: input.title, text: input.text, @@ -357,6 +370,7 @@ export function documentTools(server: McpServer, scopes: string[]) { parentDocumentId: parentDocumentId, publish: input.publish !== false, collectionId: collection?.id, + template, fullWidth: input.fullWidth, }); diff --git a/server/tools/fetch.test.ts b/server/tools/fetch.test.ts index ddf94b7561..2f2c72e97a 100644 --- a/server/tools/fetch.test.ts +++ b/server/tools/fetch.test.ts @@ -3,6 +3,7 @@ import { buildComment, buildDocument, buildResolvedComment, + buildTemplate, } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; @@ -94,4 +95,32 @@ describe("fetch", () => { const metadata = JSON.parse(res!.result!.content![0].text ?? "{}"); expect(metadata.document.commentCount).toEqual(2); }); + + it("returns template metadata and markdown", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const template = await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + text: "Body of the template", + }); + + const res = await callMcpTool(server, accessToken, "fetch", { + resource: "template", + id: template.id, + }); + + expect(res?.result?.isError).not.toBe(true); + expect(res!.result!.content!.length).toEqual(2); + + const metadata = JSON.parse(res!.result!.content![0].text ?? "{}"); + expect(metadata.id).toEqual(template.id); + expect(metadata.url).toMatch(/^https?:\/\//); + + expect(res!.result!.content![1].text).toContain("Body of the template"); + }); }); diff --git a/server/tools/fetch.ts b/server/tools/fetch.ts index c3acd98c66..2f18d197c1 100644 --- a/server/tools/fetch.ts +++ b/server/tools/fetch.ts @@ -1,7 +1,13 @@ import { z } from "zod"; import { type McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { Attachment, Collection, Document, User } from "@server/models"; +import { + Attachment, + Collection, + Document, + Template, + User, +} from "@server/models"; import { authorize, can } from "@server/policies"; import { AuthorizationError } from "@server/errors"; import { @@ -11,6 +17,7 @@ import { } from "@server/presenters"; import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; import { presentDocument } from "./documents"; +import { presentTemplate } from "./templates"; import { error, success, @@ -68,12 +75,17 @@ export function fetchTool(server: McpServer, scopes: string[]) { "attachments.info", scopes ); + const canReadTemplates = AuthenticationHelper.canAccess( + "templates.info", + scopes + ); if ( !canReadDocuments && !canReadCollections && !canReadUsers && - !canReadAttachments + !canReadAttachments && + !canReadTemplates ) { return; } @@ -83,6 +95,7 @@ export function fetchTool(server: McpServer, scopes: string[]) { ...(canReadCollections ? ["collection"] : []), ...(canReadUsers ? ["user"] : []), ...(canReadAttachments ? ["attachment"] : []), + ...(canReadTemplates ? ["template"] : []), ] as [string, ...string[]]; server.registerTool( @@ -90,7 +103,7 @@ export function fetchTool(server: McpServer, scopes: string[]) { { title: "Fetch", description: - 'Fetches a document, collection, user, or attachment by type and ID. When fetching a collection the response includes the full hierarchical document tree. For users, "current_user" can be used as the ID to get the authenticated user. For attachments, the response includes a short-lived signed URL that can be used to download the file contents directly.', + 'Fetches a document, collection, user, attachment, or template by type and ID. When fetching a collection the response includes the full hierarchical document tree. For users, "current_user" can be used as the ID to get the authenticated user. For attachments, the response includes a short-lived signed URL that can be used to download the file contents directly. For templates, the response includes the template body as markdown.', annotations: { idempotentHint: true, readOnlyHint: true, @@ -198,6 +211,29 @@ export function fetchTool(server: McpServer, scopes: string[]) { }); } + case "template": { + const template = await Template.findByPk(id, { + userId: actor.id, + rejectOnEmpty: true, + }); + + authorize(actor, "read", template); + + const { text, ...attributes } = await presentTemplate(template); + return { + content: [ + { + type: "text" as const, + text: JSON.stringify(pathToUrl(actor.team, attributes)), + }, + { + type: "text" as const, + text, + }, + ], + } satisfies CallToolResult; + } + default: return error(`Unknown resource: ${resource}`); } diff --git a/server/tools/templates.test.ts b/server/tools/templates.test.ts new file mode 100644 index 0000000000..56941ec273 --- /dev/null +++ b/server/tools/templates.test.ts @@ -0,0 +1,115 @@ +import { Scope } from "@shared/types"; +import { + buildUser, + buildCollection, + buildTemplate, + buildOAuthAuthentication, +} from "@server/test/factories"; +import { getTestServer } from "@server/test/support"; +import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; + +const server = getTestServer(); + +describe("list_templates", () => { + it("returns workspace and collection templates the user can access", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const workspaceTemplate = await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: null, + text: "Body of the workspace template", + }); + const collectionTemplate = await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "list_templates"); + const data = (res?.result?.content ?? []).map((c: { text?: string }) => + JSON.parse(c.text ?? "{}") + ); + + const ids = data.map((t: { id: string }) => t.id); + expect(ids).toContain(workspaceTemplate.id); + expect(ids).toContain(collectionTemplate.id); + + const match = data.find( + (t: { id: string }) => t.id === workspaceTemplate.id + ) as { url: string; collectionId: string | null; text: string }; + expect(match.url).toMatch(/^https?:\/\//); + expect(match.collectionId).toBeNull(); + expect(match.text).toContain("Body of the workspace template"); + }); + + it("filters by collection", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection1 = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const collection2 = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const template1 = await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: collection1.id, + }); + await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: collection2.id, + }); + + const res = await callMcpTool(server, accessToken, "list_templates", { + collectionId: collection1.id, + }); + const data = (res?.result?.content ?? []).map((c: { text?: string }) => + JSON.parse(c.text ?? "{}") + ); + + const ids = data.map((t: { id: string }) => t.id); + expect(ids).toContain(template1.id); + expect( + data.every( + (t: { collectionId: string }) => t.collectionId === collection1.id + ) + ).toBe(true); + }); + + it("does not return templates from collections the user cannot access", async () => { + const owner = await buildUser(); + const otherUser = await buildUser({ teamId: owner.teamId }); + + const privateCollection = await buildCollection({ + teamId: owner.teamId, + userId: owner.id, + permission: null, + }); + const privateTemplate = await buildTemplate({ + teamId: owner.teamId, + userId: owner.id, + collectionId: privateCollection.id, + }); + + const auth = await buildOAuthAuthentication({ + user: otherUser, + scope: [Scope.Read], + }); + + const res = await callMcpTool(server, auth.accessToken!, "list_templates"); + const data = (res?.result?.content ?? []).map((c: { text?: string }) => + JSON.parse(c.text ?? "{}") + ); + const ids = data.map((t: { id: string }) => t.id); + + expect(res?.result?.isError).not.toBe(true); + expect(ids).not.toContain(privateTemplate.id); + }); +}); diff --git a/server/tools/templates.ts b/server/tools/templates.ts new file mode 100644 index 0000000000..35558608db --- /dev/null +++ b/server/tools/templates.ts @@ -0,0 +1,134 @@ +import { z } from "zod"; +import { type McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; +import { Op } from "sequelize"; +import type { WhereOptions } from "sequelize"; +import { Collection, Template } from "@server/models"; +import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; +import { authorize } from "@server/policies"; +import AuthenticationHelper from "@shared/helpers/AuthenticationHelper"; +import { + error, + success, + getActorFromContext, + optionalString, + pathToUrl, + withTracing, +} from "./util"; + +/** + * Presents a template's metadata and rendered markdown body for a tool + * response. Including the body lets a caller list templates and create a + * document from one — verbatim or adapted — without a separate fetch call. + * + * @param template - the template to present. + * @returns the presented template with its body as markdown. + */ +export async function presentTemplate(template: Template) { + return { + id: template.id, + url: template.path, + title: template.title, + collectionId: template.collectionId ?? null, + updatedAt: template.updatedAt, + text: template.content + ? await DocumentHelper.toMarkdown(template.content, { + includeTitle: false, + }) + : "", + }; +} + +/** + * Registers template-related MCP tools on the given server, filtered by the + * OAuth scopes granted to the current token. + * + * @param server - the MCP server instance to register on. + * @param scopes - the OAuth scopes granted to the access token. + */ +export function templateTools(server: McpServer, scopes: string[]) { + if (AuthenticationHelper.canAccess("templates.list", scopes)) { + server.registerTool( + "list_templates", + { + title: "List templates", + description: + "Lists document templates the user has access to, including workspace-wide templates and templates within accessible collections. Each result includes the template body as markdown. To create a document from a template unchanged, pass its ID as templateId to create_document. To adapt it first, modify the returned text and pass it as the text parameter to create_document — no separate fetch is needed.", + annotations: { + idempotentHint: true, + readOnlyHint: true, + }, + inputSchema: { + collectionId: optionalString().describe( + "A collection ID to filter templates by. Omit to include workspace-wide templates and templates from all accessible collections." + ), + offset: z.coerce + .number() + .int() + .min(0) + .optional() + .describe("The pagination offset. Defaults to 0."), + limit: z.coerce + .number() + .int() + .min(1) + .max(100) + .optional() + .describe( + "The maximum number of results to return. Defaults to 25, max 100." + ), + }, + }, + withTracing( + "list_templates", + async ({ collectionId, offset, limit }, extra) => { + try { + const user = getActorFromContext(extra); + const effectiveOffset = offset ?? 0; + const effectiveLimit = limit ?? 25; + + const where: WhereOptions<Template> & { + [Op.and]: WhereOptions<Template>[]; + } = { + teamId: user.teamId, + [Op.and]: [{ deletedAt: { [Op.eq]: null } }], + }; + + if (collectionId) { + const collection = await Collection.findByPk(collectionId, { + userId: user.id, + }); + authorize(user, "read", collection); + where[Op.and].push({ collectionId }); + } else { + where[Op.and].push({ + [Op.or]: [ + { collectionId: { [Op.eq]: null } }, + { collectionId: await user.collectionIds() }, + ], + }); + } + + const templates = await Template.scope([ + "defaultScope", + { method: ["withMembership", user.id] }, + ]).findAll({ + where, + order: [["updatedAt", "DESC"]], + offset: effectiveOffset, + limit: effectiveLimit, + }); + + const presented = await Promise.all( + templates.map(async (template) => + pathToUrl(user.team, await presentTemplate(template)) + ) + ); + return success(presented); + } catch (message) { + return error(message); + } + } + ) + ); + } +} From 3c2e9a9723ca2d2740ee06f8505e590027ea740e Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 9 Jun 2026 08:38:34 -0400 Subject: [PATCH 212/286] fix: Default collections created through MCP to private (#12644) --- server/routes/api/collections/collections.test.ts | 1 + server/tools/collections.test.ts | 1 + server/tools/collections.ts | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/routes/api/collections/collections.test.ts b/server/routes/api/collections/collections.test.ts index d47fbc5aa4..e6ad829fa6 100644 --- a/server/routes/api/collections/collections.test.ts +++ b/server/routes/api/collections/collections.test.ts @@ -1241,6 +1241,7 @@ describe("#collections.create", () => { expect(body.data.name).toBe("Test"); expect(body.data.sort.field).toBe("index"); expect(body.data.sort.direction).toBe("asc"); + expect(body.data.permission).toBe(null); expect(body.policies.length).toBe(1); expect(body.policies[0].abilities.read).toBeTruthy(); }); diff --git a/server/tools/collections.test.ts b/server/tools/collections.test.ts index 053093862e..7cf0524b1a 100644 --- a/server/tools/collections.test.ts +++ b/server/tools/collections.test.ts @@ -60,6 +60,7 @@ describe("collection tools", () => { expect(data.color).toEqual("#FF0000"); expect(data.id).toBeDefined(); expect(data.url).toMatch(/^https?:\/\//); + expect(data.permission).toEqual(null); }); it("update_collection updates fields on existing collection", async () => { diff --git a/server/tools/collections.ts b/server/tools/collections.ts index 7739258272..47808feda8 100644 --- a/server/tools/collections.ts +++ b/server/tools/collections.ts @@ -1,7 +1,6 @@ import { z } from "zod"; import { Sequelize, Op, type WhereOptions } from "sequelize"; import { type McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { CollectionPermission } from "@shared/types"; import { Collection, Team } from "@server/models"; import { sequelize } from "@server/storage/database"; import { authorize } from "@server/policies"; @@ -179,7 +178,7 @@ export function collectionTools(server: McpServer, scopes: string[]) { color: input.color, teamId: user.teamId, createdById: user.id, - permission: CollectionPermission.ReadWrite, + permission: null, }); await collection.saveWithCtx(ctx); From 7106263f88dfe58d405b983c8465b8d89428a1c3 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 9 Jun 2026 22:27:42 -0400 Subject: [PATCH 213/286] fix: Dragging images in editor (#12647) * fix: Editor image dragging * feedback --- app/components/AuthenticatedLayout.tsx | 4 +- app/components/EditorAwareHTML5Backend.ts | 63 +++++++++++++++++++++++ shared/editor/components/Caption.tsx | 1 + shared/editor/nodes/Image.tsx | 29 ++++++++++- 4 files changed, 93 insertions(+), 4 deletions(-) create mode 100644 app/components/EditorAwareHTML5Backend.ts diff --git a/app/components/AuthenticatedLayout.tsx b/app/components/AuthenticatedLayout.tsx index d04c171c7d..6499cb5b5a 100644 --- a/app/components/AuthenticatedLayout.tsx +++ b/app/components/AuthenticatedLayout.tsx @@ -1,8 +1,8 @@ import { observer } from "mobx-react"; import * as React from "react"; import { DndProvider } from "react-dnd"; -import { HTML5Backend } from "react-dnd-html5-backend"; import { useLocation } from "react-router-dom"; +import { EditorAwareHTML5Backend } from "~/components/EditorAwareHTML5Backend"; import ErrorSuspended from "~/scenes/Errors/ErrorSuspended"; import Layout from "~/components/Layout"; import RegisterKeyDown from "~/components/RegisterKeyDown"; @@ -106,7 +106,7 @@ const AuthenticatedLayout: React.FC = ({ children }: Props) => { <DocumentContextProvider> <RightSidebarProvider> <PortalContext.Provider value={layoutRef.current}> - <DndProvider backend={HTML5Backend}> + <DndProvider backend={EditorAwareHTML5Backend}> <Layout title={team.name} sidebar={sidebar} ref={layoutRef}> <RegisterKeyDown trigger="n" handler={goToNewDocument} /> <RegisterKeyDown trigger="t" handler={goToSearch} /> diff --git a/app/components/EditorAwareHTML5Backend.ts b/app/components/EditorAwareHTML5Backend.ts new file mode 100644 index 0000000000..a80c27aea2 --- /dev/null +++ b/app/components/EditorAwareHTML5Backend.ts @@ -0,0 +1,63 @@ +import type { BackendFactory } from "dnd-core"; +import { HTML5Backend } from "react-dnd-html5-backend"; + +/** + * react-dnd's HTML5 backend installs global capture-phase listeners on `window` + * that call `preventDefault()` on drops whose dataTransfer resembles a native + * item – including a dragged `<img>`, which is how ProseMirror serializes an + * image drag. + * + * These handlers run before ProseMirror's, and they live on `window`, so a + * propagation-based guard can't stop react-dnd without also starving the editor + * of the event. Instead we wrap the backend and make its top-level capture + * handlers no-op for events that occur within the editor surface. + */ +const captureHandlerNames = [ + "handleTopDragStartCapture", + "handleTopDragEnterCapture", + "handleTopDragOverCapture", + "handleTopDragLeaveCapture", + "handleTopDropCapture", + "handleTopDragEndCapture", +] as const; + +const isWithinEditor = (target: EventTarget | null): boolean => + target instanceof Element && Boolean(target.closest(".ProseMirror")); + +/** + * An HTML5 drag-and-drop backend that ignores drag events originating within the + * rich text editor so that ProseMirror can handle them itself. + * + * @param manager The drag-and-drop manager. + * @param context The global context. + * @param options Backend options. + * @returns The wrapped HTML5 backend instance. + */ +export const EditorAwareHTML5Backend: BackendFactory = ( + manager, + context, + options +) => { + const backend = HTML5Backend(manager, context, options); + + // The capture handlers are private instance fields on the backend, so reach + // for them through an index signature view of the instance. + const handlers = backend as unknown as Record< + string, + (event: DragEvent) => void + >; + + for (const name of captureHandlerNames) { + const original = handlers[name]; + if (typeof original === "function") { + handlers[name] = (event: DragEvent) => { + if (isWithinEditor(event.target)) { + return; + } + original.call(backend, event); + }; + } + } + + return backend; +}; diff --git a/shared/editor/components/Caption.tsx b/shared/editor/components/Caption.tsx index 56c9c4a29c..f2b7dd6bb0 100644 --- a/shared/editor/components/Caption.tsx +++ b/shared/editor/components/Caption.tsx @@ -46,6 +46,7 @@ function Caption({ placeholder, children, isSelected, width, ...rest }: Props) { tabIndex={-1} aria-label={t("Caption")} role="textbox" + draggable={false} contentEditable suppressContentEditableWarning data-caption={placeholder} diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index 18f6672768..97bbc318d1 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -132,8 +132,7 @@ export default class Image extends SimpleImage { marks: "", group: "inline", selectable: true, - // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1289000 - draggable: false, + draggable: true, atom: true, parseDOM: [ { @@ -260,6 +259,32 @@ export default class Image extends SimpleImage { commentedImagePlugin(), new Plugin({ props: { + handleDOMEvents: { + dragstart: (_view, event) => { + // ProseMirror lets the browser snapshot the dragged node's DOM as + // the drag image. For images that DOM includes the caption area and + // padding, which renders as a large white box around the image. + // Substitute the image element so the drag ghost is tight to it. + if ( + !(event.target instanceof HTMLElement) || + !event.dataTransfer + ) { + return false; + } + const image = event.target + .closest(`.component-${this.name}`) + ?.querySelector("img"); + if (image) { + const rect = image.getBoundingClientRect(); + event.dataTransfer.setDragImage( + image, + event.clientX - rect.left, + event.clientY - rect.top + ); + } + return false; + }, + }, handleKeyDown: (view, event) => { // prevent prosemirror's default spacebar behavior // & zoom in if the selected node is image From b3d456373072b8548796d9275153d72088f39c71 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 9 Jun 2026 22:46:59 -0400 Subject: [PATCH 214/286] perf: Improve performance of in-page search (#12649) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix editor find freezing on long documents In-document search (Ctrl+F) blocked the UI for several seconds while typing in long documents. Two compounding causes: - The find command ran a full-document search and highlight rebuild on every keystroke. Debounce it so typing stays responsive; the input value still updates immediately and pending searches are flushed when navigating between matches. - search() de-duplicated matches with an O(n) scan of all prior results per match, making a common term that matches many times quadratic. Track seen positions in a Set for constant-time lookups. * Skip redundant search highlight rebuilds, lower debounce to 100ms The highlight plugin rebuilt every match's DOM range via domAtPos on every editor view update while a search was active, forcing synchronous layout on cursor moves, selection changes, and collaboration cursors. Track the built ranges and, when the result set is unchanged, only rebuild when they are actually stale — a referenced node has detached or some matches were not yet resolved to ranges. isConnected checks are cheap property reads with no layout, versus domAtPos which forces reflow, so this is strictly less work than before and skips entirely in the common case where all matches are resolved and connected. Also lower the find debounce from 250ms to 100ms for snappier feedback. * Shorten highlight rebuild comment * PR feedback --------- Co-authored-by: Claude <noreply@anthropic.com> --- app/editor/components/FindAndReplace.tsx | 42 ++++++++++++++++--- app/editor/extensions/FindAndReplace.tsx | 53 +++++++++++++++++++----- 2 files changed, 79 insertions(+), 16 deletions(-) diff --git a/app/editor/components/FindAndReplace.tsx b/app/editor/components/FindAndReplace.tsx index f3a19102a0..34665d4292 100644 --- a/app/editor/components/FindAndReplace.tsx +++ b/app/editor/components/FindAndReplace.tsx @@ -1,3 +1,4 @@ +import { debounce } from "es-toolkit/compat"; import { CaretDownIcon, CaretUpIcon, @@ -211,9 +212,31 @@ export default function FindAndReplace({ }); }, [caseSensitive, editor.commands, searchTerm]); + // Searching the document on every keystroke is expensive in long documents – + // it traverses the entire doc and rebuilds highlights – so debounce. + const debouncedFind = React.useMemo( + () => + debounce( + (attrs: { + text: string; + caseSensitive: boolean; + regexEnabled: boolean; + }) => { + editor.commands.find(attrs); + }, + 250 + ), + [editor.commands] + ); + + React.useEffect(() => () => debouncedFind.cancel(), [debouncedFind]); + const handleKeyDown = React.useCallback( (ev: React.KeyboardEvent<HTMLInputElement>) => { function nextPrevious() { + // Ensure any pending debounced search has run so navigation acts on the + // results for the text currently in the input. + debouncedFind.flush(); if (ev.shiftKey) { editor.commands.prevSearchMatch(); } else { @@ -243,7 +266,7 @@ export default function FindAndReplace({ } } }, - [editor.commands, selectInputText] + [debouncedFind, editor.commands, selectInputText] ); const handleReplace = React.useCallback( @@ -274,13 +297,13 @@ export default function FindAndReplace({ ev.stopPropagation(); setSearchTerm(ev.currentTarget.value); - editor.commands.find({ + debouncedFind({ text: ev.currentTarget.value, caseSensitive, regexEnabled, }); }, - [caseSensitive, editor.commands, regexEnabled] + [caseSensitive, debouncedFind, regexEnabled] ); const handleReplaceKeyDown = React.useCallback( @@ -331,6 +354,9 @@ export default function FindAndReplace({ } else { onClose(); setShowReplace(false); + // Cancel any pending debounced find so it can't reactivate highlights + // after the search has been cleared. + debouncedFind.cancel(); editor.commands.clearSearch(); } // oxlint-disable-next-line react-hooks/exhaustive-deps @@ -346,7 +372,10 @@ export default function FindAndReplace({ > <ButtonLarge disabled={disabled} - onClick={() => editor.commands.prevSearchMatch()} + onClick={() => { + debouncedFind.flush(); + editor.commands.prevSearchMatch(); + }} aria-label={t("Previous match")} > <CaretUpIcon /> @@ -355,7 +384,10 @@ export default function FindAndReplace({ <Tooltip content={t("Next match")} shortcut="Enter" placement="bottom"> <ButtonLarge disabled={disabled} - onClick={() => editor.commands.nextSearchMatch()} + onClick={() => { + debouncedFind.flush(); + editor.commands.nextSearchMatch(); + }} aria-label={t("Next match")} > <CaretDownIcon /> diff --git a/app/editor/extensions/FindAndReplace.tsx b/app/editor/extensions/FindAndReplace.tsx index 01ae8505b9..cf30df77a5 100644 --- a/app/editor/extensions/FindAndReplace.tsx +++ b/app/editor/extensions/FindAndReplace.tsx @@ -381,6 +381,11 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt } }); + // Tracks already-seen match positions so duplicate matches (possible because + // we search the deburred text concatenated with the original) can be skipped + // in constant time rather than rescanning the entire results array. + const seen = new Set<string>(); + mergedTextNodes.forEach((node) => { const { text = "", pos, type } = node; try { @@ -405,11 +410,13 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt continue; } - // Check if already exists in results, possible due to duplicated - // search string on L257 - if (this.results.some((r) => r.from === from && r.to === to)) { + // Check if already exists in results, possible because we search + // over `deburr(text) + text` + const key = `${from}:${to}`; + if (seen.has(key)) { continue; } + seen.add(key); this.results.push({ from, to, type }); } @@ -483,6 +490,7 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt } } + this.highlightRanges = allRanges; CSS.highlights.set("search-results", new Highlight(...allRanges)); if (currentRanges.length) { CSS.highlights.set( @@ -495,6 +503,7 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt } private clearHighlights() { + this.highlightRanges = []; if (!supportsHighlightAPI) { return; } @@ -503,6 +512,25 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt this.currentHighlightRange = undefined; } + /** + * Determine whether the highlight ranges need to be rebuilt against the live + * DOM. The CSS Custom Highlight API holds static ranges that detach when the + * editor re-renders its DOM without changing the doc, so highlights are stale + * when a built range's nodes have disconnected, or when some matches have not + * yet been resolved to ranges (e.g. inside a node view that mounts later). + * + * @returns whether the highlights should be rebuilt. + */ + private highlightsStale() { + if (this.highlightRanges.length < this.results.length) { + return true; + } + return this.highlightRanges.some( + (range) => + !range.startContainer.isConnected || !range.endContainer.isConnected + ); + } + private handleEscape = () => { const params = new URLSearchParams(window.location.search); if (params.has("q")) { @@ -536,6 +564,8 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt private currentHighlightRange?: StaticRange; + private highlightRanges: StaticRange[] = []; + get allowInReadOnly() { return true; } @@ -604,16 +634,17 @@ export default class FindAndReplaceExtension extends Extension<FindAndReplaceOpt return { update: (view) => { const generation = pluginKey.getState(view.state) as number; - // Rebuild highlights when the results change (generation bump) or, - // while a search is active, on any view update. The CSS Custom - // Highlight API relies on static DOM ranges that become detached - // when the editor re-renders its DOM — e.g. content settling after - // sync when navigating from search results, collaboration cursors, - // or node views mounting — none of which bump the generation. This - // keeps the highlights tracking the live DOM, as decorations do. - if (generation !== lastGeneration || this.searchTerm) { + // The results changed (search ran, doc changed, fold toggled), so + // always rebuild. + if (generation !== lastGeneration) { lastGeneration = generation; this.updateHighlights(); + return; + } + // Results unchanged: only rebuild when the static highlight ranges + // have detached from a DOM re-render that didn't bump the generation. + if (this.searchTerm && this.highlightsStale()) { + this.updateHighlights(); } }, destroy: () => { From e1b2993bcaab363a5b46821ed2f833eeed44cee8 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 9 Jun 2026 23:01:33 -0400 Subject: [PATCH 215/286] Reduce debounce --- app/editor/components/FindAndReplace.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/editor/components/FindAndReplace.tsx b/app/editor/components/FindAndReplace.tsx index 34665d4292..6712a80899 100644 --- a/app/editor/components/FindAndReplace.tsx +++ b/app/editor/components/FindAndReplace.tsx @@ -224,7 +224,7 @@ export default function FindAndReplace({ }) => { editor.commands.find(attrs); }, - 250 + 100 ), [editor.commands] ); From a25f334bb18a339b29f89a63c137a5b785e17bc8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jun 2026 17:50:41 -0400 Subject: [PATCH 216/286] chore(deps): bump shell-quote from 1.8.3 to 1.8.4 (#12659) Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.8.3 to 1.8.4. - [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/shell-quote/compare/v1.8.3...v1.8.4) --- updated-dependencies: - dependency-name: shell-quote dependency-version: 1.8.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 4204c7b42d..fa44d7fb40 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18097,9 +18097,9 @@ __metadata: linkType: hard "shell-quote@npm:^1.8.1": - version: 1.8.3 - resolution: "shell-quote@npm:1.8.3" - checksum: 10c0/bee87c34e1e986cfb4c30846b8e6327d18874f10b535699866f368ade11ea4ee45433d97bf5eada22c4320c27df79c3a6a7eb1bf3ecfc47f2c997d9e5e2672fd + version: 1.8.4 + resolution: "shell-quote@npm:1.8.4" + checksum: 10c0/86c93678bc394cb81f5ddcdc87df9c95d279ef9652775cd1cd1eed361404169a8d8cbaacaeed232ab09919e36ee1e5363863570390d78571f8c22b7f6312fb40 languageName: node linkType: hard From 9791ff1170356c9313edea507b87629fe810f9a3 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 11 Jun 2026 09:04:38 -0400 Subject: [PATCH 217/286] fix: Prevent selecting word-joiner characters around multiplayer cursor (#12660) * Possible fix for word-joiner characters copied on Chrome+Windows * simplify --- app/editor/extensions/Multiplayer.ts | 3 ++- shared/editor/components/Styles.ts | 11 ++++++----- shared/editor/styles/EditorStyleHelper.ts | 8 ++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/editor/extensions/Multiplayer.ts b/app/editor/extensions/Multiplayer.ts index 4aa2000bfe..8bfe608f0f 100644 --- a/app/editor/extensions/Multiplayer.ts +++ b/app/editor/extensions/Multiplayer.ts @@ -13,6 +13,7 @@ import { import * as Y from "yjs"; import Extension from "@shared/editor/lib/Extension"; import { isRemoteTransaction } from "@shared/editor/lib/multiplayer"; +import { EditorStyleHelper } from "@shared/editor/styles/EditorStyleHelper"; import { Second } from "@shared/utils/time"; type UserAwareness = { @@ -107,7 +108,7 @@ export default class Multiplayer extends Extension<MultiplayerOptions> { return { style: `background-color: ${u.color}${opacity}`, - class: "ProseMirror-yjs-selection", + class: EditorStyleHelper.multiplayerSelection, }; }; diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index a199663ccd..16dfb5529a 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -596,7 +596,7 @@ width: 100%; padding: ${props.editorStyle?.padding ?? "initial"}; margin: ${props.editorStyle?.margin ?? "initial"}; - & > .ProseMirror-yjs-cursor { + & > .${EditorStyleHelper.multiplayerCursor} { display: none; } @@ -670,11 +670,11 @@ width: 100%; h5 { font-size: var(--font-size-h5); } h6 { font-size: var(--font-size-h6); } - .ProseMirror-yjs-selection { + .${EditorStyleHelper.multiplayerSelection} { transition: background-color 500ms ease-in-out; } - .ProseMirror-yjs-cursor { + .${EditorStyleHelper.multiplayerCursor} { position: relative; margin-left: -1px; margin-right: -1px; @@ -682,6 +682,7 @@ width: 100%; border-right: 1px solid black; height: 1em; word-break: normal; + user-select: none; &::after { content: ""; @@ -719,7 +720,7 @@ width: 100%; } } -&.show-cursor-names .ProseMirror-yjs-cursor > div { +&.show-cursor-names .${EditorStyleHelper.multiplayerCursor} > div { opacity: 1; } @@ -998,7 +999,7 @@ img.ProseMirror-separator { .${EditorStyleHelper.headingPositionAnchor}:first-child, // Edge case where multiplayer cursor is between start of cell and heading -.${EditorStyleHelper.headingPositionAnchor}:first-child + .ProseMirror-yjs-cursor, +.${EditorStyleHelper.headingPositionAnchor}:first-child + .${EditorStyleHelper.multiplayerCursor}, // Edge case where table grips are between start of cell and heading .${EditorStyleHelper.headingPositionAnchor}:first-child + [role=button] + [role=button] { & + h1, diff --git a/shared/editor/styles/EditorStyleHelper.ts b/shared/editor/styles/EditorStyleHelper.ts index a77f34e033..bbb5abf1c8 100644 --- a/shared/editor/styles/EditorStyleHelper.ts +++ b/shared/editor/styles/EditorStyleHelper.ts @@ -22,6 +22,14 @@ export class EditorStyleHelper { static readonly comment = "comment-marker"; + // Multiplayer + + /** Remote collaborator's cursor */ + static readonly multiplayerCursor = "ProseMirror-yjs-cursor"; + + /** Remote collaborator's selection */ + static readonly multiplayerSelection = "ProseMirror-yjs-selection"; + // Code static readonly codeBlock = "code-block"; From c65b020655d87c2fc86450ed8449f1130fde5a70 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 11 Jun 2026 21:30:47 -0400 Subject: [PATCH 218/286] fix: Reject collections.update requests that include both description and data (#12648) --- .../api/collections/collections.test.ts | 61 +++++++++++++++ server/routes/api/collections/schema.ts | 77 +++++++++++-------- 2 files changed, 105 insertions(+), 33 deletions(-) diff --git a/server/routes/api/collections/collections.test.ts b/server/routes/api/collections/collections.test.ts index e6ad829fa6..c9a69402ac 100644 --- a/server/routes/api/collections/collections.test.ts +++ b/server/routes/api/collections/collections.test.ts @@ -1257,6 +1257,23 @@ describe("#collections.create", () => { expect(res.status).toEqual(400); }); + it("rejects providing both description and data", async () => { + const user = await buildUser(); + const res = await server.post("/api/collections.create", user, { + body: { + name: "Test", + description: "Test", + data: { + type: "doc", + content: [ + { type: "paragraph", content: [{ type: "text", text: "Test" }] }, + ], + }, + }, + }); + expect(res.status).toEqual(400); + }); + it("should allow setting sharing to false", async () => { const user = await buildUser(); const res = await server.post("/api/collections.create", user, { @@ -1448,6 +1465,50 @@ describe("#collections.update", () => { expect(collection.content).toBeTruthy(); }); + it("replaces rendered content when description is updated post-create", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + + const createRes = await server.post("/api/collections.create", admin, { + headers: { "x-api-version": "3" }, + body: { name: "Foo", description: "Original" }, + }); + const { id } = (await createRes.json()).data; + + const updateRes = await server.post("/api/collections.update", admin, { + headers: { "x-api-version": "3" }, + body: { id, description: "Replaced" }, + }); + expect(updateRes.status).toEqual(200); + + const infoRes = await server.post("/api/collections.info", admin, { + headers: { "x-api-version": "3" }, + body: { id }, + }); + const content = JSON.stringify((await infoRes.json()).data.data); + expect(content).toContain("Replaced"); + expect(content).not.toContain("Original"); + }); + + it("rejects providing both description and data", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ teamId: team.id }); + const res = await server.post("/api/collections.update", admin, { + body: { + id: collection.id, + description: "Test", + data: { + type: "doc", + content: [ + { type: "paragraph", content: [{ type: "text", text: "Test" }] }, + ], + }, + }, + }); + expect(res.status).toEqual(400); + }); + it("allows editing data", async () => { const team = await buildTeam(); const admin = await buildAdmin({ teamId: team.id }); diff --git a/server/routes/api/collections/schema.ts b/server/routes/api/collections/schema.ts index 3d4dd3c0ec..a657c4ec9a 100644 --- a/server/routes/api/collections/schema.ts +++ b/server/routes/api/collections/schema.ts @@ -15,39 +15,50 @@ const BaseIdSchema = z.object({ id: zodIdType(), }); +/** The landing page can be set from description (markdown) or data (rich content), but not both. */ +const refineBodyContent = <T extends { description?: unknown; data?: unknown }>( + body: T +) => isUndefined(body.description) || isUndefined(body.data); + +const bodyContentError = { + error: "Only one of description or data may be provided", +}; + export const CollectionsCreateSchema = BaseSchema.extend({ - body: z.object({ - name: z.string(), - color: z - .string() - .regex(ValidateColor.regex, { message: ValidateColor.message }) - .nullish(), - description: z.string().nullish(), - data: ProsemirrorSchema({ allowEmpty: true }).nullish(), - permission: z - .enum(CollectionPermission) - .nullish() - .transform((val) => (isUndefined(val) ? null : val)), - sharing: z.boolean().prefault(true), - icon: zodIconType().optional(), - sort: z - .object({ - field: z.union([z.literal("title"), z.literal("index")]), - direction: z.union([z.literal("asc"), z.literal("desc")]), - }) - .prefault(Collection.DEFAULT_SORT), - index: z - .string() - .regex(ValidateIndex.regex, { message: ValidateIndex.message }) - .max(ValidateIndex.maxLength, { - message: `Must be ${ValidateIndex.maxLength} or fewer characters long`, - }) - .optional(), - commenting: z.boolean().nullish(), - templateManagement: z - .enum([CollectionPermission.Admin, CollectionPermission.ReadWrite]) - .prefault(CollectionPermission.Admin), - }), + body: z + .object({ + name: z.string(), + color: z + .string() + .regex(ValidateColor.regex, { message: ValidateColor.message }) + .nullish(), + description: z.string().nullish(), + data: ProsemirrorSchema({ allowEmpty: true }).nullish(), + permission: z + .enum(CollectionPermission) + .nullish() + .transform((val) => (isUndefined(val) ? null : val)), + sharing: z.boolean().prefault(true), + icon: zodIconType().optional(), + sort: z + .object({ + field: z.union([z.literal("title"), z.literal("index")]), + direction: z.union([z.literal("asc"), z.literal("desc")]), + }) + .prefault(Collection.DEFAULT_SORT), + index: z + .string() + .regex(ValidateIndex.regex, { message: ValidateIndex.message }) + .max(ValidateIndex.maxLength, { + message: `Must be ${ValidateIndex.maxLength} or fewer characters long`, + }) + .optional(), + commenting: z.boolean().nullish(), + templateManagement: z + .enum([CollectionPermission.Admin, CollectionPermission.ReadWrite]) + .prefault(CollectionPermission.Admin), + }) + .refine(refineBodyContent, bodyContentError), }); export type CollectionsCreateReq = z.infer<typeof CollectionsCreateSchema>; @@ -188,7 +199,7 @@ export const CollectionsUpdateSchema = BaseSchema.extend({ templateManagement: z .enum([CollectionPermission.Admin, CollectionPermission.ReadWrite]) .optional(), - }), + }).refine(refineBodyContent, bodyContentError), }); export type CollectionsUpdateReq = z.infer<typeof CollectionsUpdateSchema>; From f0899f614b69ac97067977be219180c3ef65ac45 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 11 Jun 2026 21:50:47 -0400 Subject: [PATCH 219/286] fix: Improve markdown serialization speed (#12667) --- shared/editor/lib/markdown/serializer.ts | 81 ++++++++++++++++++------ shared/editor/nodes/CheckboxItem.ts | 4 +- shared/editor/nodes/ListItem.ts | 2 +- 3 files changed, 63 insertions(+), 24 deletions(-) diff --git a/shared/editor/lib/markdown/serializer.ts b/shared/editor/lib/markdown/serializer.ts index 5eec8aba7a..0d3ce72093 100644 --- a/shared/editor/lib/markdown/serializer.ts +++ b/shared/editor/lib/markdown/serializer.ts @@ -83,6 +83,10 @@ export class MarkdownSerializer { } } +// Tracks whether we have already warned about direct assignment to `out`, +// so a hot loop cannot flood the console. +let warnedDirectOutAssignment = false; + export interface BlockMapEntry { /** Start position in the ProseMirror document (offset within parent content). */ pmFrom: number; @@ -103,14 +107,36 @@ export class MarkdownSerializerState { inTightList = false; closed = false; delim = ""; - out = ""; + _out = ""; + lastChar = ""; options: Options; blockMap = null; + // The serialized output so far. Use `append` to add to it — direct + // assignment still works but reads the last character back out of the + // string, which forces V8 to flatten the internal rope and is slow when + // done repeatedly on large documents. + get out() { + return this._out; + } + + set out(value) { + if (!warnedDirectOutAssignment) { + warnedDirectOutAssignment = true; + // eslint-disable-next-line no-console + console.warn( + "MarkdownSerializerState: assigning `out` directly is slow on large documents, use append() instead." + ); + } + this._out = value; + this.lastChar = value === "" ? "" : value.charAt(value.length - 1); + } + constructor(nodes, marks, options) { this.nodes = nodes; this.marks = marks; - this.delim = this.out = ""; + this.delim = this._out = ""; + this.lastChar = ""; this.closed = false; this.inTightList = false; this.inTable = false; @@ -126,10 +152,21 @@ export class MarkdownSerializerState { } } + // :: (string) + // Append a string to the output, tracking `lastChar` without reading + // characters back out of `out` — that would force V8 to flatten the + // internal rope, which is quadratic on large documents. + append(content) { + if (content) { + this._out += content; + this.lastChar = content.charAt(content.length - 1); + } + } + flushClose(size) { if (this.closed) { if (!this.atBlank()) { - this.out += "\n"; + this.append("\n"); } if (size === null || size === undefined) { size = 2; @@ -141,7 +178,7 @@ export class MarkdownSerializerState { delimMin = delimMin.slice(0, delimMin.length - trim[0].length); } for (let i = 1; i < size; i++) { - this.out += delimMin + "\n"; + this.append(delimMin + "\n"); } } this.closed = false; @@ -163,14 +200,14 @@ export class MarkdownSerializerState { } atBlank() { - return /(^|\n)$/.test(this.out); + return this.lastChar === "" || this.lastChar === "\n"; } // :: () // Ensure the current content ends with a newline. ensureNewLine() { if (!this.atBlank()) { - this.out += "\n"; + this.append("\n"); } } @@ -181,10 +218,10 @@ export class MarkdownSerializerState { write(content) { this.flushClose(); if (this.delim && this.atBlank()) { - this.out += this.delim; + this.append(this.delim); } if (content) { - this.out += content; + this.append(content); } } @@ -202,9 +239,11 @@ export class MarkdownSerializerState { for (let i = 0; i < lines.length; i++) { const startOfLine = this.atBlank() || this.closed; this.write(); - this.out += escape !== false ? this.esc(lines[i], startOfLine) : lines[i]; + this.append( + escape !== false ? this.esc(lines[i], startOfLine) : lines[i] + ); if (i !== lines.length - 1) { - this.out += "\n"; + this.append("\n"); } } } @@ -389,9 +428,9 @@ export class MarkdownSerializerState { if (this.inTable) { node.forEach((child, _, i) => { if (i > 0) { - this.out += " <br> "; + this.append(" <br> "); } - this.out += firstDelim(i).trim() + " "; + this.append(firstDelim(i).trim() + " "); this.render(child, node, i); }); return; @@ -438,12 +477,12 @@ export class MarkdownSerializerState { }); // Ensure there is an empty newline above all tables - this.out += "\n"; + this.append("\n"); // Render rows node.forEach((row, _, i) => { row.forEach((cell, _, j) => { - this.out += j === 0 ? "| " : " | "; + this.append(j === 0 ? "| " : " | "); const startPos = this.out.length; @@ -463,26 +502,26 @@ export class MarkdownSerializerState { // Pad to column width const contentLength = this.out.length - startPos; const padding = Math.max(0, columnWidths[j] - contentLength); - this.out += " ".repeat(padding); + this.append(" ".repeat(padding)); }); - this.out += " |\n"; + this.append(" |\n"); // Header separator after first row if (i === 0) { headerRow.forEach((cell, _, j) => { const width = columnWidths[j]; if (cell.attrs.alignment === "center") { - this.out += "|:" + "-".repeat(width) + ":"; + this.append("|:" + "-".repeat(width) + ":"); } else if (cell.attrs.alignment === "left") { - this.out += "|:" + "-".repeat(width + 1); + this.append("|:" + "-".repeat(width + 1)); } else if (cell.attrs.alignment === "right") { - this.out += "|" + "-".repeat(width + 1) + ":"; + this.append("|" + "-".repeat(width + 1) + ":"); } else { - this.out += "|" + "-".repeat(width + 2); + this.append("|" + "-".repeat(width + 2)); } }); - this.out += "|\n"; + this.append("|\n"); } }); diff --git a/shared/editor/nodes/CheckboxItem.ts b/shared/editor/nodes/CheckboxItem.ts index 32402cefda..4390d32f90 100644 --- a/shared/editor/nodes/CheckboxItem.ts +++ b/shared/editor/nodes/CheckboxItem.ts @@ -116,11 +116,11 @@ export default class CheckboxItem extends Node { } toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { - state.out += node.attrs.checked ? "[x] " : "[ ] "; + state.append(node.attrs.checked ? "[x] " : "[ ] "); if (state.inTable) { node.forEach((block, _, i) => { if (i > 0) { - state.out += " "; + state.append(" "); } state.renderInline(block); }); diff --git a/shared/editor/nodes/ListItem.ts b/shared/editor/nodes/ListItem.ts index 6be1f6cbb5..a21bf17e72 100644 --- a/shared/editor/nodes/ListItem.ts +++ b/shared/editor/nodes/ListItem.ts @@ -291,7 +291,7 @@ export default class ListItem extends Node { if (state.inTable) { node.forEach((block, _, i) => { if (i > 0) { - state.out += " "; + state.append(" "); } state.renderInline(block); }); From 9811ab6aea388f841faebff7c2282099005b8904 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 11 Jun 2026 21:51:11 -0400 Subject: [PATCH 220/286] feat: Emoji reaction shorthand (#12650) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add "+:emoji:" reaction shorthand to comment form Typing a comment that consists solely of a leading "+" followed by a single emoji now adds that emoji as a reaction to the comment above, instead of posting a new reply — mirroring the Slack shorthand. https://claude.ai/code/session_01RSiUiEFLBaRF6YBfPNPiX6 * Move parseReactionShorthand into editor/lib/emoji https://claude.ai/code/session_01RSiUiEFLBaRF6YBfPNPiX6 * Open emoji menu when colon is preceded by a plus The suggestion menu's trigger boundary excluded "+", so typing "+:" never opened the emoji menu — preventing the "+:emoji:" reaction shorthand from being typed. Add a configurable `precededBy` option to the Suggestion extension and set it to "+" for the emoji menu. https://claude.ai/code/session_01RSiUiEFLBaRF6YBfPNPiX6 * Always allow "+" before suggestion trigger Simplify by adding "+" to the trigger boundary for all suggestion menus rather than making it a per-menu option. This lets the "+:emoji:" reaction shorthand open the emoji menu. https://claude.ai/code/session_01RSiUiEFLBaRF6YBfPNPiX6 --------- Co-authored-by: Claude <noreply@anthropic.com> --- app/editor/extensions/Suggestion.ts | 2 +- .../components/Comments/CommentForm.tsx | 25 +++++ shared/editor/lib/emoji.test.ts | 96 ++++++++++++++++++- shared/editor/lib/emoji.ts | 76 +++++++++++++++ 4 files changed, 197 insertions(+), 2 deletions(-) diff --git a/app/editor/extensions/Suggestion.ts b/app/editor/extensions/Suggestion.ts index b258b76cf1..97eb4ecf2b 100644 --- a/app/editor/extensions/Suggestion.ts +++ b/app/editor/extensions/Suggestion.ts @@ -46,7 +46,7 @@ export default class Suggestion< : `(?:${triggers.map(escapeRegExp).join("|")})`; this.openRegex = new RegExp( - `(?:^|\\s|\\(|[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}])${triggerPattern}(${`[\\p{L}/\\p{M}\\d${ + `(?:^|\\s|\\(|\\+|[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}])${triggerPattern}(${`[\\p{L}/\\p{M}\\d${ this.options.allowSpaces ? "\\s{1}" : "" }\\.\\-–_]+`})${this.options.requireSearchTerm ? "" : "?"}$`, "u" diff --git a/app/scenes/Document/components/Comments/CommentForm.tsx b/app/scenes/Document/components/Comments/CommentForm.tsx index 3b594da18a..4ecb53a4a0 100644 --- a/app/scenes/Document/components/Comments/CommentForm.tsx +++ b/app/scenes/Document/components/Comments/CommentForm.tsx @@ -8,6 +8,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import { useTheme } from "styled-components"; +import { parseReactionShorthand } from "@shared/editor/lib/emoji"; import type { ProsemirrorData } from "@shared/types"; import { getEventFiles } from "@shared/utils/files"; import { AttachmentValidation, CommentValidation } from "@shared/validations"; @@ -157,6 +158,30 @@ function CommentForm({ return; } + // "+:emoji:" shorthand: react to the comment above instead of replying. + if (thread && !thread.isNew) { + const emoji = parseReactionShorthand(draft); + if (emoji) { + const target = comments + .inThread(thread.id) + .filter((comment) => !comment.isNew) + .pop(); + + if (target) { + onSaveDraft(undefined); + setForceRender((s) => ++s); + void target.addReaction({ emoji, user }); + onSubmit?.(); + + // re-focus the comment editor + setTimeout(() => { + editorRef.current?.focusAtStart(); + }, 0); + return; + } + } + } + const commentDraft = draft; onSaveDraft(undefined); setForceRender((s) => ++s); diff --git a/shared/editor/lib/emoji.test.ts b/shared/editor/lib/emoji.test.ts index e6bc1664e2..68a4c94d0e 100644 --- a/shared/editor/lib/emoji.test.ts +++ b/shared/editor/lib/emoji.test.ts @@ -1,4 +1,10 @@ -import { getNameFromEmoji, getEmojiFromName, loadEmojiData } from "./emoji"; +import type { ProsemirrorData } from "../../types"; +import { + getNameFromEmoji, + getEmojiFromName, + loadEmojiData, + parseReactionShorthand, +} from "./emoji"; beforeAll(async () => { await loadEmojiData(); @@ -15,3 +21,91 @@ describe("getEmojiFromName", () => { expect(getEmojiFromName("thinking_face")).toBe("🤔"); }); }); + +describe("parseReactionShorthand", () => { + const doc = (content: ProsemirrorData[]): ProsemirrorData => ({ + type: "doc", + content, + }); + + const paragraph = (content: ProsemirrorData[]): ProsemirrorData => ({ + type: "paragraph", + content, + }); + + const text = (value: string): ProsemirrorData => ({ + type: "text", + text: value, + }); + + const emoji = (name: string): ProsemirrorData => ({ + type: "emoji", + attrs: { "data-name": name }, + }); + + it("resolves a '+' followed by an emoji node", () => { + expect( + parseReactionShorthand(doc([paragraph([text("+"), emoji("thumbs_up")])])) + ).toBe("👍"); + }); + + it("ignores whitespace between the '+' and the emoji node", () => { + expect( + parseReactionShorthand( + doc([paragraph([text("+"), text(" "), emoji("thinking_face")])]) + ) + ).toBe("🤔"); + }); + + it("resolves a custom emoji UUID to its UUID", () => { + const uuid = "550e8400-e29b-41d4-a716-446655440000"; + expect( + parseReactionShorthand(doc([paragraph([text("+"), emoji(uuid)])])) + ).toBe(uuid); + }); + + it("resolves literal '+:shortcode:' text", () => { + expect( + parseReactionShorthand(doc([paragraph([text("+:thinking_face:")])])) + ).toBe("🤔"); + }); + + it("returns undefined for an unknown shortcode", () => { + expect( + parseReactionShorthand( + doc([paragraph([text("+"), emoji("not_an_emoji")])]) + ) + ).toBeUndefined(); + }); + + it("returns undefined when there is text alongside the emoji", () => { + expect( + parseReactionShorthand( + doc([paragraph([text("+ nice "), emoji("thumbs_up")])]) + ) + ).toBeUndefined(); + }); + + it("returns undefined for a regular comment", () => { + expect( + parseReactionShorthand(doc([paragraph([text("Looks good to me")])])) + ).toBeUndefined(); + }); + + it("returns undefined when the '+' prefix is missing", () => { + expect( + parseReactionShorthand(doc([paragraph([emoji("thumbs_up")])])) + ).toBeUndefined(); + }); + + it("returns undefined for multiple paragraphs", () => { + expect( + parseReactionShorthand( + doc([ + paragraph([text("+"), emoji("thumbs_up")]), + paragraph([text("more")]), + ]) + ) + ).toBeUndefined(); + }); +}); diff --git a/shared/editor/lib/emoji.ts b/shared/editor/lib/emoji.ts index f7cc870d97..988642dc8d 100644 --- a/shared/editor/lib/emoji.ts +++ b/shared/editor/lib/emoji.ts @@ -1,4 +1,6 @@ import type { EmojiMartData } from "@emoji-mart/data"; +import { isUUID } from "validator"; +import type { ProsemirrorData } from "../../types"; export const emojiMartToGemoji: Record<string, string> = { "+1": "thumbs_up", @@ -74,3 +76,77 @@ export const getEmojiFromName = (name: string) => */ export const getNameFromEmoji = (emoji: string) => Object.entries(nameToEmoji).find(([, value]) => value === emoji)?.[0]; + +/** + * Resolve an emoji node name to the value used to react with. + * + * @param name The emoji shortcode, or a UUID for a custom emoji. + * @returns the native emoji character, the UUID of a custom emoji, or undefined + * when the name does not resolve to a known emoji. + */ +function getReactionFromName(name: unknown): string | undefined { + if (typeof name !== "string") { + return undefined; + } + + // Custom emojis are stored as UUIDs and reacted with directly. + if (isUUID(name)) { + return name; + } + + const character = getEmojiFromName(name); + return character === "?" ? undefined : character; +} + +/** + * Detect the "+:emoji:" reaction shorthand within a comment's document. When a + * comment consists solely of a leading "+" immediately followed by a single + * emoji it is treated as a request to react to the comment above rather than as + * a new comment, mirroring the Slack shorthand. + * + * @param data The Prosemirror document of the draft comment. + * @returns the emoji to react with — a native emoji character, or a UUID for a + * custom emoji — or undefined when the document is not a reaction shorthand. + */ +export function parseReactionShorthand( + data: ProsemirrorData +): string | undefined { + const blocks = data.content ?? []; + if (blocks.length !== 1) { + return undefined; + } + + const paragraph = blocks[0]; + if (paragraph.type !== "paragraph") { + return undefined; + } + + // Ignore whitespace-only text nodes so that "+ :emoji:" still matches. + const inline = (paragraph.content ?? []).filter( + (node) => !(node.type === "text" && !node.text?.trim()) + ); + + // The common case: a "+" text node followed by an emoji node inserted via + // the emoji menu. + if (inline.length === 2) { + const [prefix, emoji] = inline; + if ( + prefix.type === "text" && + prefix.text?.trim() === "+" && + emoji.type === "emoji" + ) { + return getReactionFromName(emoji.attrs?.["data-name"]); + } + return undefined; + } + + // Fallback: literal "+:shortcode:" text that was never converted to a node. + if (inline.length === 1 && inline[0].type === "text") { + const match = inline[0].text?.trim().match(/^\+\s*:([\w-]+):$/); + if (match) { + return getReactionFromName(match[1]); + } + } + + return undefined; +} From b1bf7c488b2e8e5704aa26a8f6bde95cfda5bef5 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 11 Jun 2026 22:16:08 -0400 Subject: [PATCH 221/286] chore: Drop dead collaborativeEditing column from teams (#12669) The collaborativeEditing toggle has been unused since collaborative editing became always-on. The column is no longer defined in the Team model nor referenced anywhere in the codebase, so this drops it. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- ...260611000000-drop-team-collaborative-editing.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 server/migrations/20260611000000-drop-team-collaborative-editing.js diff --git a/server/migrations/20260611000000-drop-team-collaborative-editing.js b/server/migrations/20260611000000-drop-team-collaborative-editing.js new file mode 100644 index 0000000000..813e9e8347 --- /dev/null +++ b/server/migrations/20260611000000-drop-team-collaborative-editing.js @@ -0,0 +1,14 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface) { + await queryInterface.removeColumn("teams", "collaborativeEditing"); + }, + + async down(queryInterface, Sequelize) { + await queryInterface.addColumn("teams", "collaborativeEditing", { + type: Sequelize.BOOLEAN, + }); + }, +}; From 5ea63aa1a28a0a55cd2c8311caa53705e63d1d4e Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 11 Jun 2026 22:29:29 -0400 Subject: [PATCH 222/286] fix: Editor math block parsing and NaN media dimensions (#12668) * fix: Block math not closed by trailing $$ on a content line The closing delimiter check compared a 3-character slice against the 2-character "$$" delimiter, so block math closed on the same line as content (e.g. "c = d$$") was never detected and the block swallowed the rest of the document. Use the delimiter length rather than a hardcoded slice. Also fix the indexOf sentinel comparison (!== 1 instead of !== -1) in inline math parsing, which terminated correctly only by coincidence. Adds tests for the math markdown rules and moves the findNodes test helper into shared/test/editor for reuse. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix: NaN width and height parsed for video and image nodes Video parseDOM and parseMarkdown used parseInt on a missing attribute, storing NaN instead of null and persisting it to markdown as NaNxNaN. Image size syntax with a missing dimension (e.g. "=x100") hit the same issue through optional regex groups. Parse dimensions only when present, matching the existing guard in Image parseDOM, and correct the video getAttrs element type. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix: Normalize non-numeric video dimensions, avoid serializing nullxnull Review feedback: parseInt could still produce NaN when the attribute exists but is not numeric (e.g. width="auto"), and toMarkdown wrote null dimensions as "nullxnull". Parse dimensions through a helper that normalizes non-finite values to null, and serialize nullish dimensions as empty strings, which still round-trips as a video node. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * test --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> --- shared/editor/nodes/Image.tsx | 4 +-- shared/editor/nodes/Video.tsx | 19 ++++++---- shared/editor/rules/checkboxes.test.ts | 35 +++++------------- shared/editor/rules/math.test.ts | 50 ++++++++++++++++++++++++++ shared/editor/rules/math.ts | 7 ++-- shared/test/editor.ts | 32 +++++++++++++++++ 6 files changed, 111 insertions(+), 36 deletions(-) create mode 100644 shared/editor/rules/math.test.ts diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index 97bbc318d1..26de30294e 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -52,8 +52,8 @@ const parseTitleAttribute = (tokenTitle: string): TitleAttributes => { const match = tokenTitle.match(imageSizeRegex); if (match) { - attributes.width = parseInt(match[1], 10); - attributes.height = parseInt(match[2], 10); + attributes.width = match[1] ? parseInt(match[1], 10) : undefined; + attributes.height = match[2] ? parseInt(match[2], 10) : undefined; tokenTitle = tokenTitle.replace(imageSizeRegex, ""); } diff --git a/shared/editor/nodes/Video.tsx b/shared/editor/nodes/Video.tsx index 649d6714eb..189d00e93e 100644 --- a/shared/editor/nodes/Video.tsx +++ b/shared/editor/nodes/Video.tsx @@ -17,6 +17,11 @@ import attachmentsRule from "../rules/links"; import type { ComponentProps } from "../types"; import Node from "./Node"; +const parseDimension = (value: string | null): number | null => { + const parsed = parseInt(value ?? "", 10); + return Number.isFinite(parsed) ? parsed : null; +}; + export default class Video extends Node { get name() { return "video"; @@ -56,12 +61,12 @@ export default class Video extends Node { { priority: 100, tag: "video", - getAttrs: (dom: HTMLAnchorElement) => ({ + getAttrs: (dom: HTMLVideoElement) => ({ id: dom.id, title: dom.getAttribute("title"), src: dom.getAttribute("src"), - width: parseInt(dom.getAttribute("width") ?? "", 10), - height: parseInt(dom.getAttribute("height") ?? "", 10), + width: parseDimension(dom.getAttribute("width")), + height: parseDimension(dom.getAttribute("height")), }), }, ], @@ -184,7 +189,9 @@ export default class Video extends Node { toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { state.ensureNewLine(); state.write( - `[${node.attrs.title} ${node.attrs.width}x${node.attrs.height}](${node.attrs.src})\n\n` + `[${node.attrs.title} ${node.attrs.width ?? ""}x${ + node.attrs.height ?? "" + }](${node.attrs.src})\n\n` ); state.ensureNewLine(); } @@ -195,8 +202,8 @@ export default class Video extends Node { getAttrs: (tok: Token) => ({ src: tok.attrGet("src"), title: tok.attrGet("title"), - width: parseInt(tok.attrGet("width") ?? "", 10), - height: parseInt(tok.attrGet("height") ?? "", 10), + width: parseDimension(tok.attrGet("width")), + height: parseDimension(tok.attrGet("height")), }), }; } diff --git a/shared/editor/rules/checkboxes.test.ts b/shared/editor/rules/checkboxes.test.ts index c9db14d8da..16f12904c9 100644 --- a/shared/editor/rules/checkboxes.test.ts +++ b/shared/editor/rules/checkboxes.test.ts @@ -1,4 +1,4 @@ -import { extensionManager, schema } from "../../test/editor"; +import { extensionManager, findNodes, schema } from "../../test/editor"; const serializer = extensionManager.serializer(); const parser = extensionManager.parser({ @@ -6,29 +6,19 @@ const parser = extensionManager.parser({ plugins: extensionManager.rulePlugins, }); -interface ProsemirrorNode { - type: string; - content?: ProsemirrorNode[]; - attrs?: Record<string, unknown>; -} - it("preserves mixed checkbox and regular items in a list", () => { const markdown = `- [x] Checked item - Regular item - [ ] Unchecked item`; const ast = parser.parse(markdown); - const json = ast?.toJSON(); - - const checkboxList = json?.content?.find( - (node: ProsemirrorNode) => node.type === "checkbox_list" - ); + const [checkboxList] = findNodes(ast?.toJSON(), "checkbox_list"); expect(checkboxList).toBeDefined(); expect(checkboxList?.content).toHaveLength(3); - expect(checkboxList?.content[0].type).toBe("checkbox_item"); - expect(checkboxList?.content[1].type).toBe("checkbox_item"); - expect(checkboxList?.content[2].type).toBe("checkbox_item"); + expect(checkboxList?.content?.[0].type).toBe("checkbox_item"); + expect(checkboxList?.content?.[1].type).toBe("checkbox_item"); + expect(checkboxList?.content?.[2].type).toBe("checkbox_item"); }); it("round-trips mixed checkbox lists through serializer", () => { @@ -52,22 +42,15 @@ it("does not convert nested bullet list items inside checkbox lists", () => { - [ ] Second checkbox`; const ast = parser.parse(markdown); - const json = ast?.toJSON(); - - const checkboxList = json?.content?.find( - (node: ProsemirrorNode) => node.type === "checkbox_list" - ); + const [checkboxList] = findNodes(ast?.toJSON(), "checkbox_list"); expect(checkboxList).toBeDefined(); expect(checkboxList?.content).toHaveLength(2); - expect(checkboxList?.content[0].type).toBe("checkbox_item"); - expect(checkboxList?.content[1].type).toBe("checkbox_item"); + expect(checkboxList?.content?.[0].type).toBe("checkbox_item"); + expect(checkboxList?.content?.[1].type).toBe("checkbox_item"); // Nested list should remain a bullet_list, not a checkbox_list - const nestedContent = checkboxList?.content[0].content; - const nestedList = nestedContent?.find( - (node: ProsemirrorNode) => node.type === "bullet_list" - ); + const [nestedList] = findNodes(checkboxList?.content?.[0], "bullet_list"); expect(nestedList).toBeDefined(); expect(nestedList?.content?.[0].type).toBe("list_item"); }); diff --git a/shared/editor/rules/math.test.ts b/shared/editor/rules/math.test.ts new file mode 100644 index 0000000000..ec341e0184 --- /dev/null +++ b/shared/editor/rules/math.test.ts @@ -0,0 +1,50 @@ +import type { JSONNode } from "../../test/editor"; +import { extensionManager, findNodes, schema } from "../../test/editor"; + +const parser = extensionManager.parser({ + schema, + plugins: extensionManager.rulePlugins, +}); + +const parseToJSON = (markdown: string): JSONNode | undefined => + parser.parse(markdown)?.toJSON(); + +describe("math markdown rules", () => { + it("parses inline math", () => { + const doc = parseToJSON("before $x + y$ after"); + const nodes = findNodes(doc, "math_inline"); + + expect(nodes).toHaveLength(1); + expect(nodes[0].content?.[0].text).toBe("x + y"); + }); + + it("parses block math with closing delimiter on its own line", () => { + const doc = parseToJSON("$$\na = b\n$$\n\nparagraph after"); + const nodes = findNodes(doc, "math_block"); + + expect(nodes).toHaveLength(1); + expect(nodes[0].content?.[0].text).toContain("a = b"); + expect(findNodes(doc, "paragraph")).toHaveLength(1); + }); + + it("parses block math with closing delimiter at the end of a content line", () => { + const doc = parseToJSON("$$\na = b\nc = d$$\n\nparagraph after"); + const blocks = findNodes(doc, "math_block"); + + expect(blocks).toHaveLength(1); + expect(blocks[0].content?.[0].text).toContain("a = b"); + expect(blocks[0].content?.[0].text).toContain("c = d"); + + // The paragraph following the block must not be swallowed into the math + const paragraphs = findNodes(doc, "paragraph"); + expect(paragraphs).toHaveLength(1); + expect(blocks[0].content?.[0].text).not.toContain("paragraph after"); + }); + + it("leaves unclosed inline math as plain text", () => { + const doc = parseToJSON("price is $5 and rising"); + + expect(findNodes(doc, "math_inline")).toHaveLength(0); + expect(findNodes(doc, "math_block")).toHaveLength(0); + }); +}); diff --git a/shared/editor/rules/math.ts b/shared/editor/rules/math.ts index 66d50892d6..2a60a9717e 100644 --- a/shared/editor/rules/math.ts +++ b/shared/editor/rules/math.ts @@ -61,7 +61,7 @@ function mathInline(state: StateInline, silent: boolean): boolean { // we have found an opening delimiter already const start = state.pos + inlineMathDelimiter.length; match = start; - while ((match = state.src.indexOf(inlineMathDelimiter, match)) !== 1) { + while ((match = state.src.indexOf(inlineMathDelimiter, match)) !== -1) { // found potential delimeter, look for escapes, pos will point to // first non escape when complete pos = match - 1; @@ -166,7 +166,10 @@ function mathDisplay( break; } - if (state.src.slice(pos, max).trim().slice(-3) === blockMathDelimiter) { + if ( + state.src.slice(pos, max).trim().slice(-blockMathDelimiter.length) === + blockMathDelimiter + ) { lastPos = state.src.slice(0, max).lastIndexOf(blockMathDelimiter); lastLine = state.src.slice(pos, lastPos); found = true; diff --git a/shared/test/editor.ts b/shared/test/editor.ts index 50fe139cd1..4ac7a9cd11 100644 --- a/shared/test/editor.ts +++ b/shared/test/editor.ts @@ -238,3 +238,35 @@ export function doc( ) { return schema.nodes.doc.create(null, content); } + +/** + * A plain-object representation of a ProseMirror node, as returned by + * `Node.toJSON()`. + */ +export interface JSONNode { + type: string; + content?: JSONNode[]; + attrs?: Record<string, unknown>; + text?: string; +} + +/** + * Recursively collects all nodes of the given type from a `Node.toJSON()` + * tree, including the root node itself. + * + * @param node - the JSON node to search, may be undefined for convenience. + * @param type - the node type name to match. + * @returns array of matching nodes in document order. + */ +export function findNodes( + node: JSONNode | undefined, + type: string +): JSONNode[] { + if (!node) { + return []; + } + return [ + ...(node.type === type ? [node] : []), + ...(node.content ?? []).flatMap((child) => findNodes(child, type)), + ]; +} From 92168c3641758e54a392cf807a6be24cf9e35afd Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 12 Jun 2026 19:37:38 -0400 Subject: [PATCH 223/286] fix: Toggling a nested list no longer converts parent lists (#12670) * fix: Toggling a nested list no longer converts parent lists When the selection was inside a nested list, toggling the list type from the toolbar or keyboard shortcut converted every list in the tree, including ancestors of the selected list. This was caused by doc.nodesBetween visiting ancestor nodes whose range overlaps the selected list - these are now skipped so only the closest list and its children are converted. Also guards against converting nested lists with incompatible content such as checkbox lists. Closes #12653 https://claude.ai/code/session_01Q5hkRNp1Fo3jAc9fW5t68h * test: Throw when selection text is not found in toggleList test helper https://claude.ai/code/session_01Q5hkRNp1Fo3jAc9fW5t68h --------- Co-authored-by: Claude <noreply@anthropic.com> --- shared/editor/commands/toggleList.test.ts | 112 ++++++++++++++++++++++ shared/editor/commands/toggleList.ts | 9 +- 2 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 shared/editor/commands/toggleList.test.ts diff --git a/shared/editor/commands/toggleList.test.ts b/shared/editor/commands/toggleList.test.ts new file mode 100644 index 0000000000..de26362ea7 --- /dev/null +++ b/shared/editor/commands/toggleList.test.ts @@ -0,0 +1,112 @@ +import type { Node } from "prosemirror-model"; +import type { Command } from "prosemirror-state"; +import { + createEditorStateWithSelection, + doc, + p, + schema, +} from "@shared/test/editor"; +import toggleList from "./toggleList"; + +const { bullet_list, ordered_list, list_item } = schema.nodes; + +/** + * Creates a list item node with the given block content. + */ +function li(content: Node[]) { + return list_item.create(null, content); +} + +/** + * Returns a position inside the first text node matching the given text. + * + * @throws if no matching text node exists in the document. + */ +function posOfText(node: Node, text: string) { + let found = -1; + node.descendants((child, pos) => { + if (found === -1 && child.isText && child.text === text) { + found = pos; + } + return found === -1; + }); + if (found === -1) { + throw new Error(`Text "${text}" not found in document`); + } + return found + 1; +} + +/** + * Runs a command with the selection placed inside the given text and returns + * the resulting document. + */ +function run(testDoc: Node, selectionText: string, command: Command) { + let state = createEditorStateWithSelection( + testDoc, + posOfText(testDoc, selectionText) + ); + command(state, (tr) => { + state = state.apply(tr); + }); + return state.doc; +} + +describe("toggleList", () => { + it("converts a nested ordered list to bullet without changing the parent list", () => { + const testDoc = doc([ + ordered_list.create(null, [ + li([p("one")]), + li([p("two"), ordered_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = run(testDoc, "nested", toggleList(bullet_list, list_item)); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("ordered_list"); + expect(outer?.child(1).child(1).type.name).toBe("bullet_list"); + }); + + it("converts a nested bullet list to ordered without changing the parent list", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("one")]), + li([p("two"), bullet_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = run(testDoc, "nested", toggleList(ordered_list, list_item)); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("bullet_list"); + expect(outer?.child(1).child(1).type.name).toBe("ordered_list"); + }); + + it("converts the list and its children when the selection is in the parent list", () => { + const testDoc = doc([ + ordered_list.create(null, [ + li([p("one")]), + li([p("two"), ordered_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = run(testDoc, "two", toggleList(bullet_list, list_item)); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("bullet_list"); + expect(outer?.child(1).child(1).type.name).toBe("bullet_list"); + }); + + it("lifts the item out of the list when toggling the same list type", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("one")]), li([p("two")])]), + ]); + + const result = run(testDoc, "two", toggleList(bullet_list, list_item)); + + expect(result.childCount).toBe(2); + expect(result.child(0).type.name).toBe("bullet_list"); + expect(result.child(1).type.name).toBe("paragraph"); + expect(result.child(1).textContent).toBe("two"); + }); +}); diff --git a/shared/editor/commands/toggleList.ts b/shared/editor/commands/toggleList.ts index a30aeeb289..1485aa85e3 100644 --- a/shared/editor/commands/toggleList.ts +++ b/shared/editor/commands/toggleList.ts @@ -54,7 +54,14 @@ export default function toggleList( parentList.pos, parentList.pos + parentList.node.nodeSize, (node, pos) => { - if (isList(node, schema)) { + // nodesBetween also visits the ancestors of the given range, these + // must be skipped so that toggling a nested list does not convert + // the lists it is nested within. + if ( + pos >= parentList.pos && + isList(node, schema) && + listType.validContent(node.content) + ) { tr.setNodeMarkup(pos, listType, listStyle ? { listStyle } : {}); } } From 9113501906d46dddc4608f54acbb8e8e0f7c6a15 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 12 Jun 2026 19:58:16 -0400 Subject: [PATCH 224/286] Add `PROXY_HEADERS_TRUSTED` env (#12676) * Add PROXY_HEADERS_TRUSTED env * Don't trust X-Forwarded-Proto for HTTPS redirect when proxy headers untrusted --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- .env.sample | 5 +++++ server/env.ts | 10 ++++++++++ server/services/web.ts | 21 ++++++++++++++------- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/.env.sample b/.env.sample index 30e1044124..19136f8aae 100644 --- a/.env.sample +++ b/.env.sample @@ -140,6 +140,11 @@ FORCE_HTTPS=true # and "X-Client-IP". # PROXY_IP_HEADER= +# Whether to trust the X-Forwarded-* headers (e.g. X-Forwarded-For, +# X-Forwarded-Proto) set by an upstream proxy. Set to false if not +# running behind a proxy in production. +# PROXY_HEADERS_TRUSTED=true + # –––––––––––––––––––––––––––––––––––––– # –––––––––– AUTHENTICATION –––––––––– diff --git a/server/env.ts b/server/env.ts index 463ae6af8a..a00ee84a46 100644 --- a/server/env.ts +++ b/server/env.ts @@ -372,6 +372,16 @@ export class Environment { @IsOptional() public PROXY_IP_HEADER = this.toOptionalString(environment.PROXY_IP_HEADER); + /** + * Whether to trust the X-Forwarded-* headers (e.g. X-Forwarded-For, + * X-Forwarded-Proto) set by an upstream proxy or load balancer. Defaults to + * true for backwards compat. Set to false if not running behind a proxy in production. + */ + @IsBoolean() + public PROXY_HEADERS_TRUSTED = this.toBoolean( + environment.PROXY_HEADERS_TRUSTED ?? "true" + ); + /** * Should the installation send anonymized statistics to the maintainers. * Defaults to true. diff --git a/server/services/web.ts b/server/services/web.ts index a650c4b40c..057d141c26 100644 --- a/server/services/web.ts +++ b/server/services/web.ts @@ -29,6 +29,16 @@ export default function init(app: Koa = new Koa(), server?: Server) { void initI18n(); if (env.isProduction) { + // Trust the X-Forwarded-* headers set by an upstream proxy, eg + // X-Forwarded-For. Defaults to true, but can be disabled with + // PROXY_HEADERS_TRUSTED when the app is reachable directly. + if (env.PROXY_HEADERS_TRUSTED) { + app.proxy = true; + if (env.PROXY_IP_HEADER) { + app.proxyIpHeader = env.PROXY_IP_HEADER; + } + } + // Force redirect to HTTPS protocol unless explicitly disabled if (env.FORCE_HTTPS) { app.use( @@ -37,19 +47,16 @@ export default function init(app: Koa = new Koa(), server?: Server) { if (httpsResolver(ctx)) { return true; } - return xForwardedProtoResolver(ctx); + // Only honor X-Forwarded-Proto when proxy headers are trusted + return env.PROXY_HEADERS_TRUSTED + ? xForwardedProtoResolver(ctx) + : false; }, }) ); } else { Logger.warn("Enforced https was disabled with FORCE_HTTPS env variable"); } - - // trust header fields set by our proxy. eg X-Forwarded-For - app.proxy = true; - if (env.PROXY_IP_HEADER) { - app.proxyIpHeader = env.PROXY_IP_HEADER; - } } // Make `ctx.userAgent` available From 394c6e3b030a56c935306c8de4b916249ae618c1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 12 Jun 2026 20:04:18 -0400 Subject: [PATCH 225/286] fix: Duplicate paths in export ZIP (#12674) --- server/queues/tasks/ExportDocumentTreeTask.ts | 78 +++++++++++-------- .../tasks/ExportMarkdownZipTask.test.ts | 61 +++++++++++++++ 2 files changed, 108 insertions(+), 31 deletions(-) create mode 100644 server/queues/tasks/ExportMarkdownZipTask.test.ts diff --git a/server/queues/tasks/ExportDocumentTreeTask.ts b/server/queues/tasks/ExportDocumentTreeTask.ts index 59ecd782ef..4c09cdfda3 100644 --- a/server/queues/tasks/ExportDocumentTreeTask.ts +++ b/server/queues/tasks/ExportDocumentTreeTask.ts @@ -150,26 +150,12 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { includeAttachments = true ) { const pathMap = this.createPathMap(collections, format); - Logger.debug( - "task", - `Start adding ${Object.values(pathMap).length} documents to archive` - ); - - for (const path of pathMap) { - const documentId = path[0].replace("/doc/", ""); - const pathInZip = path[1]; - - await this.processDocument({ - zip, - pathInZip, - documentId, - includeAttachments, - format, - pathMap, - }); - } - - Logger.debug("task", "Completed adding documents to archive"); + await this.addDocumentsToArchive({ + zip, + pathMap, + format, + includeAttachments, + }); return await ZipHelper.toTmpFile(zip); } @@ -200,28 +186,58 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { format ); - Logger.debug( - "task", - `Start adding ${Object.values(pathMap).length} documents to archive` - ); + await this.addDocumentsToArchive({ + zip, + pathMap, + format, + includeAttachments: true, + }); - for (const entry of pathMap) { - const documentId = entry[0].replace("/doc/", ""); - const pathInZip = entry[1]; + return await ZipHelper.toTmpFile(zip); + } + + /** + * Processes each unique document in the path map and adds it to the zip. + * + * @param zip The yazl ZipFile to add files to + * @param pathMap Map of document urls to their path in the zip + * @param format The format to export in + * @param includeAttachments Whether to include attachments in the export + */ + private async addDocumentsToArchive({ + zip, + pathMap, + format, + includeAttachments, + }: { + zip: ZipFile; + pathMap: Map<string, string>; + format: FileOperationFormat; + includeAttachments: boolean; + }) { + const processedPaths = new Set<string>(); + + Logger.debug("task", `Start adding documents to archive`); + + for (const [url, pathInZip] of pathMap) { + // A document may be keyed by multiple urls in the path map, only + // process each file in the zip once. + if (processedPaths.has(pathInZip)) { + continue; + } + processedPaths.add(pathInZip); await this.processDocument({ zip, pathInZip, - documentId, - includeAttachments: true, + documentId: url.replace("/doc/", ""), + includeAttachments, format, pathMap, }); } Logger.debug("task", "Completed adding documents to archive"); - - return await ZipHelper.toTmpFile(zip); } /** diff --git a/server/queues/tasks/ExportMarkdownZipTask.test.ts b/server/queues/tasks/ExportMarkdownZipTask.test.ts new file mode 100644 index 0000000000..6a5a7704a0 --- /dev/null +++ b/server/queues/tasks/ExportMarkdownZipTask.test.ts @@ -0,0 +1,61 @@ +import fs from "fs-extra"; +import ZipHelper from "@server/utils/ZipHelper"; +import { + buildCollection, + buildDocument, + buildFileOperation, + buildTeam, + buildUser, +} from "@server/test/factories"; +import ExportMarkdownZipTask from "./ExportMarkdownZipTask"; + +describe("ExportMarkdownZipTask", () => { + it("should not duplicate documents in the zip file", async () => { + const team = await buildTeam(); + const user = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + createdById: user.id, + }); + const documents = await Promise.all([ + buildDocument({ + teamId: team.id, + userId: user.id, + collectionId: collection.id, + title: "Test1", + }), + buildDocument({ + teamId: team.id, + userId: user.id, + collectionId: collection.id, + title: "Test2", + }), + ]); + for (const document of documents) { + await collection.addDocumentToStructure(document); + } + const fileOperation = await buildFileOperation({ + teamId: team.id, + userId: user.id, + }); + + const task = new ExportMarkdownZipTask(); + const filePath = await task.exportCollections([collection], fileOperation); + + try { + const fileNames: string[] = []; + await ZipHelper.walk(filePath, (entry) => { + if (!entry.isDirectory) { + fileNames.push(entry.fileName); + } + }); + + expect(fileNames.sort()).toEqual([ + `${collection.name}/Test1.md`, + `${collection.name}/Test2.md`, + ]); + } finally { + await fs.remove(filePath); + } + }); +}); From bda95e49522b2fd0eed8c6d7e85f829ac1dfb610 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 12 Jun 2026 21:42:16 -0400 Subject: [PATCH 226/286] feat: Date mentions (#12621) * Add date mentions to the editor Introduce a new "date" mention type alongside the existing user, document and collection mentions. Typing @ with a natural language date (e.g. "tomorrow", "next friday", "jan 2") surfaces a date suggestion, parsed via chrono-node. Dates are stored as date-only ISO strings and displayed with increasing granularity (Today / Tomorrow / January 2nd / February 3rd, 2024), recomputed dynamically so relative labels stay fresh. Clicking a date mention opens a Radix popover calendar to change it. * Load chrono-node lazily to keep it out of the main bundle Convert parseNaturalLanguageDate to dynamically import chrono-node on first use so the bundler splits it into a separate chunk fetched only when a date is actually parsed. The mention menu now resolves the parse asynchronously in an effect. * Add DynamicCalendarIcon * Lock page scroll while the date mention picker is open Wrap the date picker popover content in RemoveScroll (via a Slot, with the Radix content asChild), mirroring the inline editor menu, so the page can't scroll behind the open calendar. * Restyle the date mention calendar picker The react-day-picker base stylesheet isn't loaded in the editor, so day cells fell back to default browser button styling. Style the calendar from scratch to match the rest of the app: reset button chrome, show outside (previous/next month) days clearly de-emphasised, render the selected day as a solid accent-filled circle, and emphasise today with the accent colour. Enable showOutsideDays and fixedWeeks for a stable 6-week grid. * Share one themed Calendar between the date mention and API key pickers Extract the custom react-day-picker styling into a reusable Calendar component and use it in both the date mention picker and the API key expiry picker, so they look identical. The calendar owns its own padding and the API key scene no longer needs the library's base stylesheet. * Make the ISO date the single source of truth for date mentions Date mentions no longer persist a human-readable label in the ProseMirror data. Instead the displayed text, plaintext, DOM text and markdown link text are all derived from the ISO modelId, so the saved data can never drift or go stale. parseDOM/parseMarkdown no longer capture rendered text as a label for dates, and the mention menu/picker stop writing one. * tweaks * Make DynamicCalendarIcon day text contrast with its fill The day number is rendered white with mix-blend-mode difference, which produces the exact inverse of the icon's (currentColor) fill, so it stays legible whatever colour the icon takes. The SVG is isolated so the blend only considers the icon's own fill. * Lazy-load the date picker to keep Radix out of the editor schema graph Importing @radix-ui/react-popover and react-day-picker at the top of Mentions.tsx pulled them into the editor schema's static import graph, which is also loaded on the server. Radix's prebuilt ESM does a bare "react/jsx-runtime" import that the node/shared test resolvers can't resolve, breaking all server and shared editor test suites. Move the popover + calendar into DateMentionPicker, loaded via React.lazy, so the browser-only dependencies are code-split out of the schema graph and only fetched when an editable date mention renders. * Deprecate block menu date/time commands in favor of date mention Replace the block menu "Current date" entry so it inserts a date mention for today instead of a static string/template token, and remove the "Current time" and "Current date and time" entries. The underlying DateTime extension and its {date}/{time}/{datetime} template placeholders are left intact so existing documents and templates keep working. * Omit the year from dateToReadable within the current year dateToReadable now formats current-year dates without the year (e.g. "June 8th") and includes it otherwise (e.g. "February 3rd, 2024"). This keeps the mention menu subtitle compact while the relative title shows "Today"/"Tomorrow". * Let date mentions inherit surrounding font weight The .mention style fixes font-weight to 500, which prevented a date mention placed inside a heading from rendering bold like the rest of the heading. Date mentions are plain text, so they now inherit the font weight of their context. * Address review feedback on date mentions - MentionMenu: catch rejected date-parse promises so a chunk-load failure clears the suggestion instead of leaving stale state / an unhandled rejection. - parseNaturalLanguageDate: don't cache a rejected chrono import so a later parse can retry after a transient failure. - parseISODate: reject strings with a time component to honor the date-only contract and keep day-granular comparisons correct. - DynamicCalendarIcon: mark the decorative SVG aria-hidden / focusable=false. * tweaks --------- Co-authored-by: Claude <noreply@anthropic.com> --- app/actions/sections.ts | 4 + app/editor/components/MentionMenu.tsx | 78 +++++++- app/editor/menus/block.tsx | 28 ++- .../ApiKeyNew/components/ExpiryDatePicker.tsx | 40 +---- app/scenes/ApiKeyNew/index.tsx | 3 +- package.json | 1 + shared/components/Calendar.tsx | 167 ++++++++++++++++++ shared/components/DynamicCalendarIcon.tsx | 47 +++++ .../editor/components/DateMentionPicker.tsx | 100 +++++++++++ shared/editor/components/Mentions.tsx | 55 ++++++ shared/editor/components/Styles.ts | 6 + shared/editor/nodes/Mention.tsx | 67 ++++++- shared/editor/rules/mention.test.ts | 15 ++ shared/i18n/locales/en_US/translation.json | 6 +- shared/types.ts | 1 + shared/utils/date.test.ts | 80 +++++++++ shared/utils/date.ts | 97 ++++++++++ shared/utils/parseNaturalLanguageDate.test.ts | 45 +++++ shared/utils/parseNaturalLanguageDate.ts | 65 +++++++ yarn.lock | 8 + 20 files changed, 846 insertions(+), 67 deletions(-) create mode 100644 shared/components/Calendar.tsx create mode 100644 shared/components/DynamicCalendarIcon.tsx create mode 100644 shared/editor/components/DateMentionPicker.tsx create mode 100644 shared/utils/date.test.ts create mode 100644 shared/utils/parseNaturalLanguageDate.test.ts create mode 100644 shared/utils/parseNaturalLanguageDate.ts diff --git a/app/actions/sections.ts b/app/actions/sections.ts index fa5190d736..a192f97f46 100644 --- a/app/actions/sections.ts +++ b/app/actions/sections.ts @@ -13,6 +13,10 @@ ActiveCollectionSection.priority = 0.8; export const DeveloperSection = ({ t }: ActionContext) => t("Debug"); +export const DateSection = ({ t }: ActionContext) => t("Date"); + +DateSection.priority = 1; + export const DocumentSection = ({ t }: ActionContext) => t("Document"); export const SearchResultsSection = ({ t }: ActionContext) => diff --git a/app/editor/components/MentionMenu.tsx b/app/editor/components/MentionMenu.tsx index e472d96101..ec74866bb0 100644 --- a/app/editor/components/MentionMenu.tsx +++ b/app/editor/components/MentionMenu.tsx @@ -1,6 +1,7 @@ import { isEmail } from "class-validator"; import { observer } from "mobx-react"; import { v4 as uuidv4 } from "uuid"; +import { runInAction } from "mobx"; import { DocumentIcon, PlusIcon, @@ -14,11 +15,20 @@ import { toast } from "sonner"; import Icon from "@shared/components/Icon"; import type { MenuItem } from "@shared/editor/types"; import { MentionType } from "@shared/types"; +import { + dateToReadable, + dateToRelativeReadable, + parseISODate, + toISODate, +} from "@shared/utils/date"; import parseDocumentSlug from "@shared/utils/parseDocumentSlug"; +import { parseNaturalLanguageDate } from "@shared/utils/parseNaturalLanguageDate"; import { Avatar, AvatarSize, GroupAvatar } from "~/components/Avatar"; import DocumentBreadcrumb from "~/components/DocumentBreadcrumb"; +import { DynamicCalendarIcon } from "@shared/components/DynamicCalendarIcon"; import Flex from "~/components/Flex"; import { + DateSection, DocumentsSection, UserSection, CollectionsSection, @@ -26,18 +36,20 @@ import { } from "~/actions/sections"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; +import useUserLocale from "~/hooks/useUserLocale"; import { client } from "~/utils/ApiClient"; import type { Props as SuggestionsMenuProps } from "./SuggestionsMenu"; import SuggestionsMenu from "./SuggestionsMenu"; import SuggestionsMenuItem from "./SuggestionsMenuItem"; -import { runInAction } from "mobx"; interface MentionItem extends MenuItem { attrs: { id: string; type: MentionType; modelId: string; - label: string; + // Date mentions intentionally omit a label — their text is derived from + // the ISO `modelId` so nothing human-readable is persisted. + label?: string; actorId?: string; }; } @@ -54,8 +66,65 @@ function MentionMenu({ search = "", isActive, ...rest }: Props) { const actorId = auth.currentUserId; const location = useLocation(); const documentId = parseDocumentSlug(location.pathname); + const userLocale = useUserLocale(); const maxResultsInSection = search ? 25 : 5; + // Surface a date suggestion when the search query parses as a natural + // language date (e.g. "tomorrow", "next friday", "jan 2"). Parsing is + // asynchronous as chrono-node is loaded lazily, so the result is held in + // state and applied once resolved. + const [parsedISODate, setParsedISODate] = useState<string | undefined>(); + + useEffect(() => { + if (!search) { + setParsedISODate(undefined); + return; + } + let cancelled = false; + void parseNaturalLanguageDate(search) + .then((date) => { + if (!cancelled) { + setParsedISODate(date ? toISODate(date) : undefined); + } + }) + .catch(() => { + // Parsing failed (e.g. the chrono chunk failed to load); drop the + // suggestion rather than leaving a stale one. + if (!cancelled) { + setParsedISODate(undefined); + } + }); + return () => { + cancelled = true; + }; + }, [search]); + + let dateItems: MentionItem[] = []; + + if (actorId && parsedISODate) { + const title = dateToRelativeReadable(parsedISODate, t, userLocale); + const subtitle = dateToReadable(parsedISODate, userLocale); + + dateItems = [ + { + name: "mention", + icon: ( + <DynamicCalendarIcon day={parseISODate(parsedISODate)?.getDate()} /> + ), + title, + subtitle: title !== subtitle ? subtitle : undefined, + section: DateSection, + appendSpace: true, + attrs: { + id: uuidv4(), + type: MentionType.Date, + modelId: parsedISODate, + actorId, + }, + } as MentionItem, + ]; + } + const { loading, request } = useRequest( useCallback(async () => { const res = await client.post("/suggestions.mention", { @@ -87,7 +156,7 @@ function MentionMenu({ search = "", isActive, ...rest }: Props) { // Computed in the render body so MobX observer can track store access // (e.g. searchSuppressed). Previously this lived inside a useEffect which // runs outside the reactive context and triggered MobX warnings. - const items: MentionItem[] = actorId + const mentionItems: MentionItem[] = actorId ? users .findByQuery(search, { maxResults: maxResultsInSection }) .map( @@ -253,9 +322,12 @@ function MentionMenu({ search = "", isActive, ...rest }: Props) { ]) : []; + const items: MentionItem[] = [...dateItems, ...mentionItems]; + const handleSelect = useCallback( async (item: MentionItem) => { if ( + item.attrs.type === MentionType.Date || item.attrs.type === MentionType.Document || item.attrs.type === MentionType.Collection ) { diff --git a/app/editor/menus/block.tsx b/app/editor/menus/block.tsx index 413aef9d79..d06b895b94 100644 --- a/app/editor/menus/block.tsx +++ b/app/editor/menus/block.tsx @@ -17,7 +17,6 @@ import { WarningIcon, InfoIcon, AttachmentIcon, - ClockIcon, CalendarIcon, MathIcon, DoneIcon, @@ -26,9 +25,12 @@ import { } from "outline-icons"; import * as React from "react"; import styled from "styled-components"; +import { v4 as uuidv4 } from "uuid"; import type { TFunction } from "i18next"; import Image from "@shared/editor/components/Img"; import type { MenuItem } from "@shared/editor/types"; +import { MentionType } from "@shared/types"; +import { toISODate } from "@shared/utils/date"; import { metaDisplay } from "@shared/utils/keyboard"; import Desktop from "~/utils/Desktop"; @@ -184,22 +186,18 @@ export default function blockMenuItems( attrs: { markup: "***" }, }, { - name: "date", + // Inserts a date mention for today. Supersedes the deprecated "Current + // date/time" commands that inserted a static string or template token. + name: "mention", title: t("Current date"), - keywords: "clock today", - icon: <CalendarIcon />, - }, - { - name: "time", - title: t("Current time"), - keywords: "clock now", - icon: <ClockIcon />, - }, - { - name: "datetime", - title: t("Current date and time"), - keywords: "clock today date", + keywords: "clock today date time now", icon: <CalendarIcon />, + appendSpace: true, + attrs: () => ({ + id: uuidv4(), + type: MentionType.Date, + modelId: toISODate(new Date()), + }), }, { name: "separator", diff --git a/app/scenes/ApiKeyNew/components/ExpiryDatePicker.tsx b/app/scenes/ApiKeyNew/components/ExpiryDatePicker.tsx index 55c145a35b..516e9985da 100644 --- a/app/scenes/ApiKeyNew/components/ExpiryDatePicker.tsx +++ b/app/scenes/ApiKeyNew/components/ExpiryDatePicker.tsx @@ -1,9 +1,8 @@ import { format as formatDate } from "date-fns"; -import { CalendarIcon } from "outline-icons"; import * as React from "react"; -import { DayPicker } from "react-day-picker"; import { useTranslation } from "react-i18next"; -import styled, { useTheme } from "styled-components"; +import styled from "styled-components"; +import { Calendar } from "@shared/components/Calendar"; import { dateLocale } from "@shared/utils/date"; import Button from "~/components/Button"; import { @@ -21,25 +20,10 @@ type Props = { const ExpiryDatePicker = ({ selectedDate, onSelect }: Props) => { const { t } = useTranslation(); const [open, setOpen] = React.useState(false); - const theme = useTheme(); const userLocale = useUserLocale(); const locale = dateLocale(userLocale); - const styles = React.useMemo( - () => - ({ - "--rdp-caption-font-size": "16px", - "--rdp-cell-size": "34px", - "--rdp-selected-text": theme.accentText, - "--rdp-accent-color": theme.accent, - "--rdp-accent-color-dark": theme.accent, - "--rdp-background-color": theme.listItemHoverBackground, - "--rdp-background-color-dark": theme.listItemHoverBackground, - }) as React.CSSProperties, - [theme] - ); - const handleSelect = React.useCallback( (date: Date) => { setOpen(false); @@ -51,7 +35,7 @@ const ExpiryDatePicker = ({ selectedDate, onSelect }: Props) => { return ( <Popover open={open} onOpenChange={setOpen}> <PopoverTrigger> - <StyledPopoverButton icon={<Icon />} neutral> + <StyledPopoverButton neutral> {selectedDate ? formatDate(selectedDate, "MMM dd, yyyy", { locale }) : t("Choose a date")} @@ -63,12 +47,12 @@ const ExpiryDatePicker = ({ selectedDate, onSelect }: Props) => { side="right" shrink > - <DayPicker + <Calendar required mode="single" selected={selectedDate} onSelect={handleSelect} - style={styles} + locale={locale} disabled={{ before: new Date() }} /> </PopoverContent> @@ -76,23 +60,9 @@ const ExpiryDatePicker = ({ selectedDate, onSelect }: Props) => { ); }; -const Icon = () => ( - <IconWrapper> - <CalendarIcon /> - </IconWrapper> -); - const StyledPopoverButton = styled(Button)` margin-top: 12px; width: 150px; `; -const IconWrapper = styled.span` - display: flex; - justify-content: center; - align-items: center; - width: 24px; - height: 24px; -`; - export default ExpiryDatePicker; diff --git a/app/scenes/ApiKeyNew/index.tsx b/app/scenes/ApiKeyNew/index.tsx index 8e31af2876..53064de406 100644 --- a/app/scenes/ApiKeyNew/index.tsx +++ b/app/scenes/ApiKeyNew/index.tsx @@ -13,7 +13,6 @@ import Text from "~/components/Text"; import useStores from "~/hooks/useStores"; import useUserLocale from "~/hooks/useUserLocale"; import { dateToExpiry } from "~/utils/date"; -import "react-day-picker/dist/style.css"; import ExpiryDatePicker from "./components/ExpiryDatePicker"; import { ExpiryType, ExpiryValues, calculateExpiryDate } from "./utils"; @@ -123,7 +122,7 @@ function ApiKeyNew({ onSubmit }: Props) { )} . </Text> - <Flex align="center" gap={16}> + <Flex align="center" gap={8}> <StyledExpirySelect options={expiryOptions} value={expiryType} diff --git a/package.json b/package.json index 8c491fb622..b13461d9e5 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,7 @@ "addressparser": "^1.0.1", "async-sema": "^3.1.1", "bull": "^4.16.5", + "chrono-node": "^2.9.1", "class-validator": "^0.15.1", "command-score": "^0.1.2", "compressorjs": "^1.3.0", diff --git a/shared/components/Calendar.tsx b/shared/components/Calendar.tsx new file mode 100644 index 0000000000..efbce7e2eb --- /dev/null +++ b/shared/components/Calendar.tsx @@ -0,0 +1,167 @@ +import * as React from "react"; +import { DayPicker } from "react-day-picker"; +import styled from "styled-components"; +import { s } from "../styles"; + +type Props = React.ComponentProps<typeof DayPicker>; + +/** + * A themed calendar built on react-day-picker. It is styled from scratch (the + * library's base stylesheet is intentionally not relied upon) so that it looks + * consistent everywhere it is used. Outside (previous/next month) days are + * shown de-emphasised, the selected day is a solid accent-filled circle, and + * today is highlighted with the accent colour. + * + * @param props the underlying react-day-picker props; `showOutsideDays` and + * `fixedWeeks` default to true but may be overridden. + * @returns the rendered calendar. + */ +export function Calendar(props: Props) { + return ( + <Wrapper> + <DayPicker showOutsideDays fixedWeeks {...props} /> + </Wrapper> + ); +} + +const Wrapper = styled.div` + padding: 12px; + color: ${s("text")}; + + .rdp { + margin: 0; + } + + /* Visually-hidden accessibility labels (would otherwise show without the + base stylesheet). */ + .rdp-vhidden { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; + appearance: none; + } + + .rdp-month { + width: 100%; + } + + .rdp-caption { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 2px 8px; + } + + .rdp-caption_label { + font-size: 14px; + font-weight: 600; + color: ${s("text")}; + } + + .rdp-nav { + display: flex; + gap: 2px; + } + + .rdp-nav_button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 28px; + height: 28px; + padding: 0; + border: 0; + background: none; + border-radius: 4px; + color: ${s("textSecondary")}; + cursor: pointer; + transition: background 100ms ease; + + &:hover { + background: ${s("listItemHoverBackground")}; + } + } + + .rdp-nav_icon { + width: 16px; + height: 16px; + } + + .rdp-table { + border-collapse: collapse; + width: 100%; + } + + .rdp-head_cell { + font-size: 12px; + font-weight: 500; + text-transform: none; + color: ${s("textTertiary")}; + padding: 4px 0; + text-align: center; + } + + .rdp-cell { + padding: 1px; + text-align: center; + } + + .rdp-day { + display: inline-flex; + align-items: center; + justify-content: center; + width: 34px; + height: 34px; + border: 0; + background: none; + border-radius: 50%; + font-family: inherit; + font-size: 13px; + font-variant-numeric: tabular-nums; + color: ${s("text")}; + cursor: pointer; + transition: background 100ms ease; + + &:hover:not([disabled]):not(.rdp-day_selected) { + background: ${s("listItemHoverBackground")}; + } + + &:focus-visible:not([disabled]) { + outline: 2px solid ${s("accent")}; + outline-offset: -2px; + } + } + + /* Today, when not selected, is emphasised with the accent colour. */ + .rdp-day_today:not(.rdp-day_selected) { + font-weight: 700; + color: ${s("accent")}; + } + + /* Days belonging to the previous/next month are clearly de-emphasised. */ + .rdp-day_outside { + color: ${s("textTertiary")}; + opacity: 0.5; + } + + .rdp-day[disabled] { + color: ${s("textTertiary")}; + opacity: 0.4; + cursor: default; + } + + /* The selected day is a solid accent-filled circle. */ + .rdp-day_selected, + .rdp-day_selected:hover, + .rdp-day_selected:focus-visible { + background: ${s("accent")}; + color: ${s("accentText")}; + font-weight: 500; + opacity: 1; + } +`; diff --git a/shared/components/DynamicCalendarIcon.tsx b/shared/components/DynamicCalendarIcon.tsx new file mode 100644 index 0000000000..90ed8e3f88 --- /dev/null +++ b/shared/components/DynamicCalendarIcon.tsx @@ -0,0 +1,47 @@ +import { useTheme } from "styled-components"; + +type Props = { day?: number; className?: string }; + +export function DynamicCalendarIcon({ day, className }: Props) { + const theme = useTheme(); + + return ( + <svg + width="24" + height="24" + viewBox="0 0 24 24" + fill="none" + xmlns="http://www.w3.org/2000/svg" + className={className} + // Decorative icon: hide from assistive tech so the day digit isn't + // announced out of context. + aria-hidden + focusable={false} + // Isolate so the day text only blends against the icon's own fill below + // it, not whatever is behind the icon on the page. + style={{ isolation: "isolate" }} + > + <path + d="M10 5.01953C10.3319 5.00624 10.6846 5 11.0596 5H12.9404C13.3154 5 13.6681 5.00624 14 5.01953V4H16V5.24609C18.3996 5.78241 19 7.32118 19 11.0596V12.9404C19 17.9302 17.9302 19 12.9404 19H11.0596C6.06982 19 5 17.9302 5 12.9404V11.0596C5 7.32118 5.60035 5.78241 8 5.24609V4H10V5.01953Z" + fill="currentColor" + /> + <text + // White blended with "difference" against the fill below produces the + // exact inverse of the fill colour, so the day is always legible + // regardless of the icon's (currentColor) fill. + fill="white" + style={{ mixBlendMode: "difference" }} + fontFamily={theme.fontFamily} + fontSize="8" + fontWeight="600" + textAnchor="middle" + dominantBaseline="middle" + letterSpacing="0em" + > + <tspan x="12" y="13.5"> + {day} + </tspan> + </text> + </svg> + ); +} diff --git a/shared/editor/components/DateMentionPicker.tsx b/shared/editor/components/DateMentionPicker.tsx new file mode 100644 index 0000000000..cf2ad1e9c4 --- /dev/null +++ b/shared/editor/components/DateMentionPicker.tsx @@ -0,0 +1,100 @@ +import * as PopoverPrimitive from "@radix-ui/react-popover"; +import { Slot } from "@radix-ui/react-slot"; +import * as React from "react"; +import { useTranslation } from "react-i18next"; +import { RemoveScroll } from "react-remove-scroll"; +import styled from "styled-components"; +import { Calendar } from "../../components/Calendar"; +import { depths, s } from "../../styles"; +import { dateLocale, toISODate } from "../../utils/date"; + +type Props = { + /** The currently selected date, if any. */ + selectedDate?: Date; + /** The user's language, used to localise the calendar. */ + language?: Parameters<typeof dateLocale>[0]; + /** Called with the new date-only ISO string when a day is picked. */ + onChange: (modelId: string) => void; + /** The trigger element the calendar popover is anchored to. */ + children: React.ReactNode; +}; + +/** + * The interactive calendar popover for a date mention. It lives in its own + * module so that its browser-only dependencies (Radix, react-day-picker) are + * loaded lazily and stay out of the editor schema graph, which is also imported + * on the server. + * + * @returns the popover wrapping the provided trigger. + */ +export default function DateMentionPicker({ + selectedDate, + language, + onChange, + children, +}: Props) { + const { t } = useTranslation(); + const [open, setOpen] = React.useState(false); + + const handleSelect = React.useCallback( + (date: Date) => { + setOpen(false); + onChange(toISODate(date)); + }, + [onChange] + ); + + return ( + <PopoverPrimitive.Root open={open} onOpenChange={setOpen}> + <PopoverPrimitive.Trigger + asChild + onMouseDown={(e) => e.stopPropagation()} + > + {children} + </PopoverPrimitive.Trigger> + <PopoverPrimitive.Portal> + <PopoverPrimitive.Content + asChild + sideOffset={4} + align="start" + aria-label={t("Choose a date")} + onOpenAutoFocus={(e) => e.preventDefault()} + > + <RemoveScroll as={Slot} allowPinchZoom> + <DatePopoverContent> + <Calendar + required + mode="single" + selected={selectedDate} + defaultMonth={selectedDate} + onSelect={handleSelect} + locale={dateLocale(language)} + /> + </DatePopoverContent> + </RemoveScroll> + </PopoverPrimitive.Content> + </PopoverPrimitive.Portal> + </PopoverPrimitive.Root> + ); +} + +const DatePopoverContent = styled.div` + z-index: ${depths.modal}; + background: ${s("menuBackground")}; + box-shadow: ${s("menuShadow")}; + border-radius: 8px; + outline: none; + + &[data-state="open"] { + animation: fadeIn 150ms ease; + } + + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } +`; diff --git a/shared/editor/components/Mentions.tsx b/shared/editor/components/Mentions.tsx index 76daae135c..83a7a0d03d 100644 --- a/shared/editor/components/Mentions.tsx +++ b/shared/editor/components/Mentions.tsx @@ -10,6 +10,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import styled from "styled-components"; +import { dateToRelativeReadable, parseISODate } from "../../utils/date"; import { Backticks } from "../../components/Backticks"; import Flex from "../../components/Flex"; import Icon from "../../components/Icon"; @@ -510,6 +511,55 @@ export const MentionPullRequest = observer((props: IssuePrProps) => { ); }); +type DateProps = ComponentProps & { + onChangeDate: (modelId: string) => void; +}; + +// Loaded lazily so its browser-only dependencies (Radix, react-day-picker) +// don't enter the editor schema's static import graph, which is also used on +// the server. +const DateMentionPicker = React.lazy(() => import("./DateMentionPicker")); + +export const MentionDate = observer(function MentionDate_(props: DateProps) { + const { isSelected, isEditable, node, onChangeDate } = props; + const { t } = useTranslation(); + const { auth } = useStores(); + const { className, unfurl, ...attrs } = getAttributesFromNode(node); + + const language = auth.user?.language; + const iso = typeof node.attrs.modelId === "string" ? node.attrs.modelId : ""; + const display = dateToRelativeReadable(iso, t, language); + const selectedDate = parseISODate(iso) ?? undefined; + + const content = ( + <DateMention + {...attrs} + className={cn(className, { + "ProseMirror-selectednode": isSelected, + })} + $editable={isEditable} + > + {display} + </DateMention> + ); + + if (!isEditable) { + return content; + } + + return ( + <React.Suspense fallback={content}> + <DateMentionPicker + selectedDate={selectedDate} + language={language} + onChange={onChangeDate} + > + {content} + </DateMentionPicker> + </React.Suspense> + ); +}); + const MentionLoading = ({ className }: { className: string }) => { const { t } = useTranslation(); @@ -532,6 +582,11 @@ const MentionError = ({ className }: { className: string }) => { ); }; +const DateMention = styled.span<{ $editable: boolean }>` + cursor: ${(props) => (props.$editable ? "pointer" : "default")}; + user-select: none; +`; + const StyledWarningIcon = styled(WarningIcon)` margin: 0 -2px; `; diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 16dfb5529a..8dc5c0928b 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -570,6 +570,12 @@ width: 100%; gap: 0; } + /* Date mentions are plain text, so they inherit the surrounding font weight + (e.g. bold when placed inside a heading). */ + &[data-type="date"] { + font-weight: inherit; + } + &.mention-user::before { content: "@"; } diff --git a/shared/editor/nodes/Mention.tsx b/shared/editor/nodes/Mention.tsx index 86b6a11720..5370d9a2bd 100644 --- a/shared/editor/nodes/Mention.tsx +++ b/shared/editor/nodes/Mention.tsx @@ -14,6 +14,7 @@ import { v4 as uuidv4 } from "uuid"; import env from "../../env"; import type { UnfurlResponse } from "../../types"; import { MentionType, UnfurlResourceType } from "../../types"; +import { dateToReadable } from "../../utils/date"; import { MentionCollection, MentionDocument, @@ -21,6 +22,7 @@ import { MentionIssue, MentionProject, MentionPullRequest, + MentionDate, MentionURL, MentionUser, } from "../components/Mentions"; @@ -39,17 +41,25 @@ export default class Mention extends Node { } get schema(): NodeSpec { - const toPlainText = (node: ProsemirrorNode) => - node.attrs.type === MentionType.User + // Date mentions derive their text from the ISO `modelId`, which is the + // single source of truth — no human-readable label is persisted for them. + const toPlainText = (node: ProsemirrorNode) => { + if (node.attrs.type === MentionType.Date) { + return dateToReadable(node.attrs.modelId); + } + return node.attrs.type === MentionType.User ? `@${node.attrs.label}` : node.attrs.label; + }; return { attrs: { type: { default: MentionType.User, }, - label: {}, + label: { + default: undefined, + }, modelId: {}, actorId: { default: undefined, @@ -84,7 +94,9 @@ export default class Mention extends Node { type, modelId, actorId: dom.dataset.actorid, - label: dom.innerText, + // Date mentions derive their text from `modelId`; never capture + // the rendered text as a persisted label. + label: type === MentionType.Date ? undefined : dom.innerText, id: dom.id, href: dom.getAttribute("href"), unfurl: dom.dataset.unfurl @@ -95,12 +107,21 @@ export default class Mention extends Node { }, ], toDOM: (node) => [ - node.attrs.type === MentionType.User ? "span" : "a", + node.attrs.type === MentionType.User || + node.attrs.type === MentionType.Date + ? "span" + : "a", { - class: `${node.type.name} use-hover-preview`, + // Date mentions are self-contained and have nothing to unfurl, so + // they opt out of the hover preview behaviour. + class: + node.attrs.type === MentionType.Date + ? node.type.name + : `${node.type.name} use-hover-preview`, id: node.attrs.id, href: - node.attrs.type === MentionType.User + node.attrs.type === MentionType.User || + node.attrs.type === MentionType.Date ? undefined : node.attrs.type === MentionType.Document ? `${env.URL}/doc/${node.attrs.modelId}` @@ -162,6 +183,10 @@ export default class Mention extends Node { onChangeUnfurl={this.handleChangeUnfurl(props)} /> ); + case MentionType.Date: + return ( + <MentionDate {...props} onChangeDate={this.handleChangeDate(props)} /> + ); default: return null; } @@ -315,7 +340,10 @@ export default class Mention extends Node { toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { const mType = node.attrs.type; const mId = node.attrs.modelId; - const label = node.attrs.label; + // Date mentions have no stored label; the readable text is derived from + // the ISO `modelId` so it can never drift from the source of truth. + const label = + mType === MentionType.Date ? dateToReadable(mId) : node.attrs.label; const id = node.attrs.id; // Use regular links for document and collection mentions @@ -336,11 +364,32 @@ export default class Mention extends Node { id: tok.attrGet("id"), type: tok.attrGet("type"), modelId: tok.attrGet("modelId"), - label: tok.content, + // Date mentions derive their text from `modelId`; the link text is not + // persisted as a label. + label: + tok.attrGet("type") === MentionType.Date ? undefined : tok.content, }), }; } + handleChangeDate = + ({ node, getPos }: { node: ProsemirrorNode; getPos: () => number }) => + (modelId: string) => { + const { view } = this.editor; + const { tr } = view.state; + const pos = getPos(); + + if (node.attrs.modelId === modelId) { + return; + } + + const transaction = tr.setNodeMarkup(pos, undefined, { + ...node.attrs, + modelId, + }); + view.dispatch(transaction); + }; + handleChangeUnfurl = ({ node, getPos }: { node: ProsemirrorNode; getPos: () => number }) => (unfurl: UnfurlResponse[keyof UnfurlResponse]) => { diff --git a/shared/editor/rules/mention.test.ts b/shared/editor/rules/mention.test.ts index 5806668b68..cd1e162ca0 100644 --- a/shared/editor/rules/mention.test.ts +++ b/shared/editor/rules/mention.test.ts @@ -98,6 +98,21 @@ describe("mention rule", () => { }); }); + describe("date format", () => { + it("should parse a date mention with an ISO date modelId", () => { + const result = md.parse( + "@[February 3rd, 2024](mention://a1b2c3d4-e5f6-7890-abcd-ef1234567890/date/2024-02-03)", + {} + ); + const mentions = findMentionTokens(result); + + expect(mentions).toHaveLength(1); + expect(mentions[0].type).toBe("date"); + expect(mentions[0].modelId).toBe("2024-02-03"); + expect(mentions[0].label).toBe("February 3rd, 2024"); + }); + }); + describe("mixed content", () => { it("should parse mention within text", () => { const result = md.parse( diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 637f688062..7ecf337b7a 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -188,6 +188,7 @@ "Collection": "Collection", "Collections": "Collections", "Debug": "Debug", + "Date": "Date", "Document": "Document", "Search results": "Search results", "Documents": "Documents", @@ -616,8 +617,6 @@ "Divider": "Divider", "Page break": "Page break", "Current date": "Current date", - "Current time": "Current time", - "Current date and time": "Current date and time", "Info notice": "Info notice", "Success notice": "Success notice", "Warning notice": "Warning notice", @@ -1781,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Write a caption", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/types.ts b/shared/types.ts index 6a7d17a4bd..5df4ddfc90 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -121,6 +121,7 @@ export enum MentionType { PullRequest = "pull_request", Project = "project", URL = "url", + Date = "date", } export type PublicEnv = { diff --git a/shared/utils/date.test.ts b/shared/utils/date.test.ts new file mode 100644 index 0000000000..431385358a --- /dev/null +++ b/shared/utils/date.test.ts @@ -0,0 +1,80 @@ +import { + dateToReadable, + dateToRelativeReadable, + parseISODate, + toISODate, +} from "./date"; + +describe("toISODate / parseISODate", () => { + it("round-trips a date through its ISO representation", () => { + const date = new Date(2024, 1, 3); // Feb 3, 2024 + const iso = toISODate(date); + expect(iso).toBe("2024-02-03"); + expect(parseISODate(iso)).toEqual(date); + }); + + it("returns null for an invalid ISO string", () => { + expect(parseISODate("not-a-date")).toBeNull(); + }); + + it("rejects strings carrying a time component", () => { + expect(parseISODate("2024-02-03T10:00:00Z")).toBeNull(); + }); + + it("parses a date-only string to local midnight", () => { + const date = parseISODate("2024-02-03"); + expect(date?.getHours()).toBe(0); + expect(date?.getMinutes()).toBe(0); + }); +}); + +describe("dateToReadable", () => { + it("includes the year outside the current year", () => { + expect(dateToReadable("2020-02-03")).toBe("February 3rd, 2020"); + }); + + it("omits the year within the current year", () => { + const date = new Date(); + date.setMonth(date.getMonth() === 0 ? 6 : 0); + date.setDate(15); + const result = dateToReadable(toISODate(date)); + expect(result).not.toContain(`${date.getFullYear()}`); + }); + + it("returns the original string when invalid", () => { + expect(dateToReadable("nonsense")).toBe("nonsense"); + }); +}); + +describe("dateToRelativeReadable", () => { + const t = (key: string) => key; + + it("returns Today for the current date", () => { + const iso = toISODate(new Date()); + expect(dateToRelativeReadable(iso, t)).toBe("Today"); + }); + + it("returns Tomorrow for the next day", () => { + const tomorrow = new Date(); + tomorrow.setDate(tomorrow.getDate() + 1); + expect(dateToRelativeReadable(toISODate(tomorrow), t)).toBe("Tomorrow"); + }); + + it("returns Yesterday for the previous day", () => { + const yesterday = new Date(); + yesterday.setDate(yesterday.getDate() - 1); + expect(dateToRelativeReadable(toISODate(yesterday), t)).toBe("Yesterday"); + }); + + it("omits the year within the current year", () => { + const date = new Date(); + date.setMonth(date.getMonth() === 0 ? 6 : 0); // a different month, same year + date.setDate(15); + const result = dateToRelativeReadable(toISODate(date), t); + expect(result).not.toContain(`${date.getFullYear()}`); + }); + + it("includes the year for a date in a different year", () => { + expect(dateToRelativeReadable("2020-02-03", t)).toBe("February 3rd, 2020"); + }); +}); diff --git a/shared/utils/date.ts b/shared/utils/date.ts index b1df1e49d7..afd1f2db58 100644 --- a/shared/utils/date.ts +++ b/shared/utils/date.ts @@ -2,7 +2,13 @@ import type { Locale } from "date-fns"; import { addSeconds, + format, formatDistanceToNow, + isSameYear, + isToday, + isTomorrow, + isYesterday, + parseISO, subDays, subMonths, subWeeks, @@ -297,3 +303,94 @@ export function dateLocale(language: keyof typeof locales | undefined | null) { } export { locales }; + +/** + * Formats a Date into a date-only ISO string (yyyy-MM-dd) in the local + * timezone. Used as the stored value for date mentions. + * + * @param date The date to format. + * @returns the date-only ISO string. + */ +export function toISODate(date: Date): string { + return format(date, "yyyy-MM-dd"); +} + +/** + * Parses a date-only ISO string (yyyy-MM-dd) into a Date at local midnight. + * Strings carrying a time component are rejected so the date-only contract + * (and the day-granular comparisons that depend on it) cannot be violated. + * + * @param iso The date-only ISO string. + * @returns the parsed Date at local midnight, or null when the string is not a + * valid date-only value. + */ +export function parseISODate(iso: string): Date | null { + if (!/^\d{4}-\d{2}-\d{2}$/.test(iso)) { + return null; + } + const date = parseISO(iso); + return isValid(date) ? date : null; +} + +/** + * Formats a date mention's stored ISO value into an absolute, localized, + * human-readable label. The year is omitted within the current year (e.g. + * "January 2nd") and included otherwise (e.g. "February 3rd, 2024"). Suitable + * for plaintext and markdown serialization. + * + * @param iso The date-only ISO string. + * @param language The user's language preference. + * @returns the absolute human-readable date, or the original string when invalid. + */ +export function dateToReadable( + iso: string, + language?: keyof typeof locales | null +): string { + const date = parseISODate(iso); + if (!date) { + return iso; + } + const locale = dateLocale(language); + if (isSameYear(date, new Date())) { + return format(date, "MMMM do", { locale }); + } + return format(date, "MMMM do, yyyy", { locale }); +} + +/** + * Formats a date mention's stored ISO value into a relative, localized, + * human-readable label with increasing granularity. Returns "Today", + * "Tomorrow" or "Yesterday" where applicable, "January 2nd" within the + * current year, and "February 3rd, 2024" otherwise. + * + * @param iso The date-only ISO string. + * @param t The translation function. + * @param language The user's language preference. + * @returns the relative human-readable date, or the original string when invalid. + */ +export function dateToRelativeReadable( + iso: string, + t: (key: string) => string, + language?: keyof typeof locales | null +): string { + const date = parseISODate(iso); + if (!date) { + return iso; + } + + if (isToday(date)) { + return t("Today"); + } + if (isTomorrow(date)) { + return t("Tomorrow"); + } + if (isYesterday(date)) { + return t("Yesterday"); + } + + const locale = dateLocale(language); + if (isSameYear(date, new Date())) { + return format(date, "MMMM do", { locale }); + } + return format(date, "MMMM do, yyyy", { locale }); +} diff --git a/shared/utils/parseNaturalLanguageDate.test.ts b/shared/utils/parseNaturalLanguageDate.test.ts new file mode 100644 index 0000000000..bf1f3a2869 --- /dev/null +++ b/shared/utils/parseNaturalLanguageDate.test.ts @@ -0,0 +1,45 @@ +import { parseNaturalLanguageDate } from "./parseNaturalLanguageDate"; + +describe("parseNaturalLanguageDate", () => { + const reference = new Date(2024, 0, 1); // Mon Jan 1, 2024 + + it("returns null for empty input", async () => { + expect(await parseNaturalLanguageDate("", reference)).toBeNull(); + expect(await parseNaturalLanguageDate(" ", reference)).toBeNull(); + }); + + it("returns null for non-date input", async () => { + expect(await parseNaturalLanguageDate("hello world", reference)).toBeNull(); + }); + + it("parses 'today'", async () => { + const result = await parseNaturalLanguageDate("today", reference); + expect(result).toEqual(new Date(2024, 0, 1)); + }); + + it("parses 'tomorrow'", async () => { + const result = await parseNaturalLanguageDate("tomorrow", reference); + expect(result).toEqual(new Date(2024, 0, 2)); + }); + + it("parses 'yesterday'", async () => { + const result = await parseNaturalLanguageDate("yesterday", reference); + expect(result).toEqual(new Date(2023, 11, 31)); + }); + + it("parses 'in 3 days'", async () => { + const result = await parseNaturalLanguageDate("in 3 days", reference); + expect(result).toEqual(new Date(2024, 0, 4)); + }); + + it("parses an explicit month and day", async () => { + const result = await parseNaturalLanguageDate("February 3", reference); + expect(result).toEqual(new Date(2024, 1, 3)); + }); + + it("normalizes the time component to local midnight", async () => { + const result = await parseNaturalLanguageDate("tomorrow at 5pm", reference); + expect(result?.getHours()).toBe(0); + expect(result?.getMinutes()).toBe(0); + }); +}); diff --git a/shared/utils/parseNaturalLanguageDate.ts b/shared/utils/parseNaturalLanguageDate.ts new file mode 100644 index 0000000000..da015e47d4 --- /dev/null +++ b/shared/utils/parseNaturalLanguageDate.ts @@ -0,0 +1,65 @@ +// Type-only import is fully erased at compile time, so it does not pull +// chrono-node into the bundle. +import type * as Chrono from "chrono-node"; + +/** + * chrono-node is a sizeable dependency, so it is loaded lazily on first use + * via a dynamic import. The bundler splits it into its own chunk that is only + * fetched when a date actually needs to be parsed (i.e. when the user types in + * the mention menu), keeping it out of the main bundle. + */ +let chronoPromise: Promise<typeof Chrono> | undefined; + +function loadChrono(): Promise<typeof Chrono> { + if (!chronoPromise) { + chronoPromise = import("chrono-node").catch((err) => { + // Don't cache a rejected import (e.g. a transient chunk-load failure), + // otherwise every subsequent parse would reuse the failure. Clearing it + // lets the next call retry. + chronoPromise = undefined; + throw err; + }); + } + return chronoPromise; +} + +/** + * Parse a natural language string such as "tomorrow", "next friday", + * "jan 2" or "in 3 days" into a calendar date. + * + * The time component is intentionally discarded as date mentions are + * day-granular; only the year, month and day of the matched date are + * returned. chrono-node is loaded asynchronously the first time this is + * called. + * + * @param input the natural language string to parse. + * @param referenceDate the date relative to which terms like "tomorrow" + * are resolved, defaults to now. + * @returns a promise resolving to the matched date with the time set to + * local midnight, or null when no date could be confidently parsed. + */ +export async function parseNaturalLanguageDate( + input: string, + referenceDate: Date = new Date() +): Promise<Date | null> { + const trimmed = input.trim(); + if (!trimmed) { + return null; + } + + const chrono = await loadChrono(); + const results = chrono.parse(trimmed, referenceDate, { forwardDate: true }); + const result = results[0]; + if (!result) { + return null; + } + + // Only accept matches that span (roughly) the whole input so that + // unrelated text typed after "@" does not accidentally resolve to a date. + if (result.text.trim().length < trimmed.length) { + return null; + } + + const date = result.start.date(); + return new Date(date.getFullYear(), date.getMonth(), date.getDate()); +} diff --git a/yarn.lock b/yarn.lock index fa44d7fb40..0574a9c863 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8682,6 +8682,13 @@ __metadata: languageName: node linkType: hard +"chrono-node@npm:^2.9.1": + version: 2.9.1 + resolution: "chrono-node@npm:2.9.1" + checksum: 10c0/2408e4a404ea3e7e8226daae75cdbc4621bc66065d596574440d0f81a7c456c166ca212c9e1c329e653c716300289498794fece2102f9365bfd33bd1a4b24473 + languageName: node + linkType: hard + "ci-info@npm:^3.7.0": version: 3.9.0 resolution: "ci-info@npm:3.9.0" @@ -15178,6 +15185,7 @@ __metadata: babel-plugin-transform-typescript-metadata: "npm:^0.4.0" browserslist-to-esbuild: "npm:^1.2.0" bull: "npm:^4.16.5" + chrono-node: "npm:^2.9.1" class-validator: "npm:^0.15.1" command-score: "npm:^0.1.2" compressorjs: "npm:^1.3.0" From c0e68848981cbe0037bef24b6dbcd048df67d61d Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sat, 13 Jun 2026 01:46:17 +0000 Subject: [PATCH 227/286] fix: preserve nesting when toggling to/from checklist in nested lists Converting a list to or from a checklist previously cleared all nodes and re-wrapped them, which flattened any nested list structure. Convert the list nodes in place instead, recursively mapping list and item types so nesting is preserved. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD --- shared/editor/commands/toggleList.test.ts | 120 +++++++++++++++++++++- shared/editor/commands/toggleList.ts | 80 ++++++++++++++- 2 files changed, 194 insertions(+), 6 deletions(-) diff --git a/shared/editor/commands/toggleList.test.ts b/shared/editor/commands/toggleList.test.ts index de26362ea7..e873c58a64 100644 --- a/shared/editor/commands/toggleList.test.ts +++ b/shared/editor/commands/toggleList.test.ts @@ -8,7 +8,8 @@ import { } from "@shared/test/editor"; import toggleList from "./toggleList"; -const { bullet_list, ordered_list, list_item } = schema.nodes; +const { bullet_list, ordered_list, list_item, checkbox_list, checkbox_item } = + schema.nodes; /** * Creates a list item node with the given block content. @@ -17,6 +18,13 @@ function li(content: Node[]) { return list_item.create(null, content); } +/** + * Creates a checkbox item node with the given block content. + */ +function cli(content: Node[], checked = false) { + return checkbox_item.create({ checked }, content); +} + /** * Returns a position inside the first text node matching the given text. * @@ -97,6 +105,116 @@ describe("toggleList", () => { expect(outer?.child(1).child(1).type.name).toBe("bullet_list"); }); + it("preserves nesting when converting a bullet list with a nested list to a checklist", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("one")]), + li([p("two"), bullet_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = run( + testDoc, + "two", + toggleList(checkbox_list, checkbox_item) + ); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("checkbox_list"); + expect(outer?.childCount).toBe(2); + expect(outer?.child(0).type.name).toBe("checkbox_item"); + expect(outer?.child(1).type.name).toBe("checkbox_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("checkbox_list"); + expect(nested?.child(0).type.name).toBe("checkbox_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("preserves nesting when converting a checklist with a nested checklist to a bullet list", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("one")]), + cli([p("two"), checkbox_list.create(null, [cli([p("nested")])])]), + ]), + ]); + + const result = run(testDoc, "two", toggleList(bullet_list, list_item)); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("bullet_list"); + expect(outer?.childCount).toBe(2); + expect(outer?.child(0).type.name).toBe("list_item"); + expect(outer?.child(1).type.name).toBe("list_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("bullet_list"); + expect(nested?.child(0).type.name).toBe("list_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("converts a checklist nested in a bullet list without changing the parent list", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("one")]), + li([p("two"), checkbox_list.create(null, [cli([p("nested")])])]), + ]), + ]); + + const result = run(testDoc, "nested", toggleList(bullet_list, list_item)); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("bullet_list"); + expect(outer?.child(1).type.name).toBe("list_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("bullet_list"); + expect(nested?.child(0).type.name).toBe("list_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("converts a bullet list nested in a checklist to a checklist without changing the parent list", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("one")]), + cli([p("two"), bullet_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = run( + testDoc, + "nested", + toggleList(checkbox_list, checkbox_item) + ); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("checkbox_list"); + expect(outer?.child(1).type.name).toBe("checkbox_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("checkbox_list"); + expect(nested?.child(0).type.name).toBe("checkbox_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("preserves the checked state of items already part of a nested checklist", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("one"), checkbox_list.create(null, [cli([p("nested")], true)])]), + ]), + ]); + + const result = run( + testDoc, + "one", + toggleList(checkbox_list, checkbox_item) + ); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("checkbox_list"); + expect(outer?.child(0).child(1).child(0).attrs.checked).toBe(true); + }); + it("lifts the item out of the list when toggling the same list type", () => { const testDoc = doc([ bullet_list.create(null, [li([p("one")]), li([p("two")])]), diff --git a/shared/editor/commands/toggleList.ts b/shared/editor/commands/toggleList.ts index 1485aa85e3..145f66da6a 100644 --- a/shared/editor/commands/toggleList.ts +++ b/shared/editor/commands/toggleList.ts @@ -1,4 +1,9 @@ -import type { NodeType } from "prosemirror-model"; +import type { + Attrs, + Node as ProsemirrorNode, + NodeType, + Schema, +} from "prosemirror-model"; import { liftListItem, wrapInList } from "prosemirror-schema-list"; import type { Command } from "prosemirror-state"; import { chainTransactions } from "../lib/chainTransactions"; @@ -40,10 +45,31 @@ export default function toggleList( const differentType = currentItemType && currentItemType !== itemType; if (differentType) { - return chainTransactions( - clearNodes(), - wrapInList(listType, { listStyle }) - )(state, dispatch); + // Convert the list in place, preserving any nested list structure, + // rather than clearing the nodes and re-wrapping which would flatten + // nesting – this path is hit when toggling to or from a checklist. + try { + const converted = convertListType( + parentList.node, + listType, + itemType, + schema, + listStyle ? { listStyle } : undefined + ); + dispatch?.( + tr.replaceWith( + parentList.pos, + parentList.pos + parentList.node.nodeSize, + converted + ) + ); + return true; + } catch (_err) { + return chainTransactions( + clearNodes(), + wrapInList(listType, { listStyle }) + )(state, dispatch); + } } if ( @@ -85,3 +111,47 @@ export default function toggleList( ); }; } + +/** + * Recursively converts a list node, its items, and any lists nested within + * those items to the given list and item type, preserving nesting structure. + * + * @param node the list node to convert. + * @param listType the node type to convert lists to. + * @param itemType the node type to convert list items to. + * @param schema the document schema. + * @param attrs optional attributes for the converted lists. + * @returns the converted list node. + * @throws if the content of an item is not valid for the new item type. + */ +function convertListType( + node: ProsemirrorNode, + listType: NodeType, + itemType: NodeType, + schema: Schema, + attrs?: Attrs +): ProsemirrorNode { + const items: ProsemirrorNode[] = []; + node.forEach((item) => { + const content: ProsemirrorNode[] = []; + item.forEach((child) => { + content.push( + isList(child, schema) + ? convertListType(child, listType, itemType, schema, attrs) + : child + ); + }); + items.push( + itemType.createChecked( + item.type === itemType ? item.attrs : null, + content, + item.marks + ) + ); + }); + return listType.createChecked( + node.type === listType ? node.attrs : (attrs ?? null), + items, + node.marks + ); +} From cdd08bbf58ed52141e21c9e2bd05b2047e8aac67 Mon Sep 17 00:00:00 2001 From: eliottreich <eliottreich@googlemail.com> Date: Sat, 13 Jun 2026 05:01:26 +0300 Subject: [PATCH 228/286] ci: pin third-party GitHub Actions to commit SHAs (#12662) Pins all 12 third-party action references currently on mutable tags to the commit each tag resolves to, across 4 workflow files, keeping a # tag comment. Ref-only, no behavior change. --- .github/workflows/calibreapp-image-actions.yml | 4 ++-- .github/workflows/ci.yml | 4 ++-- .github/workflows/docker.yml | 14 +++++++------- .github/workflows/update-node.yml | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml index ab3d7c6689..d90251c498 100644 --- a/.github/workflows/calibreapp-image-actions.yml +++ b/.github/workflows/calibreapp-image-actions.yml @@ -43,7 +43,7 @@ jobs: uses: actions/checkout@v5 - name: Compress Images id: calibre - uses: calibreapp/image-actions@main + uses: calibreapp/image-actions@3d5873ac3e7bf1a38b24d9778d8dc639d5706d8b # main with: githubToken: ${{ secrets.GITHUB_TOKEN }} # For non-Pull Requests, run in compressOnly mode and we'll PR after. @@ -54,7 +54,7 @@ jobs: if: | github.event_name != 'pull_request' && steps.calibre.outputs.markdown != '' - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@18f7dc018cc2cd597073088f7c7591b9d1c02672 # v3 with: title: "chore: Auto Compress Images" branch-suffix: timestamp diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d4d299439..208f43f7e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: deps: ${{ steps.filter.outputs.deps }} steps: - uses: actions/checkout@v5 - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2 id: filter with: filters: | @@ -126,7 +126,7 @@ jobs: run: echo "NODE_ENV=production" >> $GITHUB_ENV - run: yarn vite:build - name: Send bundle stats to RelativeCI - uses: relative-ci/agent-action@v2 + uses: relative-ci/agent-action@38328454d6a23942175eba485fca4fbb807b1f03 # v2 with: key: ${{ secrets.RELATIVE_CI_KEY }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8feaa4807b..722402d1c3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Blacksmith Builder - uses: useblacksmith/setup-docker-builder@v1 + uses: useblacksmith/setup-docker-builder@ab5c1da94f53f5cd75c1038092aa276dddfccbba # v1 - name: Docker base meta id: base_meta @@ -38,7 +38,7 @@ jobs: - name: Build and push base image id: base_build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile.base @@ -60,7 +60,7 @@ jobs: - name: Build and push id: build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile @@ -93,7 +93,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Blacksmith Builder - uses: useblacksmith/setup-docker-builder@v1 + uses: useblacksmith/setup-docker-builder@ab5c1da94f53f5cd75c1038092aa276dddfccbba # v1 - name: Docker base meta id: base_meta @@ -113,7 +113,7 @@ jobs: - name: Build and push base image id: base_build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile.base @@ -135,7 +135,7 @@ jobs: - name: Build and push id: build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile @@ -182,7 +182,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Setup Blacksmith Builder - uses: useblacksmith/setup-docker-builder@v1 + uses: useblacksmith/setup-docker-builder@ab5c1da94f53f5cd75c1038092aa276dddfccbba # v1 - name: Docker meta id: meta diff --git a/.github/workflows/update-node.yml b/.github/workflows/update-node.yml index beef80ed35..b87a089b64 100644 --- a/.github/workflows/update-node.yml +++ b/.github/workflows/update-node.yml @@ -78,7 +78,7 @@ jobs: - name: Create pull request if: steps.check.outputs.updated == 'true' - uses: peter-evans/create-pull-request@v7 + uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7 with: commit-message: "fix: Update Node.js to ${{ steps.check.outputs.latest }}" title: "fix: Update Node.js to ${{ steps.check.outputs.latest }}" From a34d7790f9cf53060a209d59d6a0c51f4240f05f Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sat, 13 Jun 2026 02:32:22 +0000 Subject: [PATCH 229/286] feat: convert plain list to checklist when typing checkbox marker Typing "[ ] " at the start of an existing bullet or ordered list item now converts the whole list to a checklist, preserving nested list structure, reusing the in-place list conversion utility. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD --- shared/editor/lib/listInputRule.test.ts | 151 ++++++++++++++++++++++++ shared/editor/lib/listInputRule.ts | 40 +++++++ shared/editor/nodes/CheckboxList.ts | 15 ++- 3 files changed, 203 insertions(+), 3 deletions(-) create mode 100644 shared/editor/lib/listInputRule.test.ts diff --git a/shared/editor/lib/listInputRule.test.ts b/shared/editor/lib/listInputRule.test.ts new file mode 100644 index 0000000000..ab6d2cc367 --- /dev/null +++ b/shared/editor/lib/listInputRule.test.ts @@ -0,0 +1,151 @@ +import type { InputRule } from "prosemirror-inputrules"; +import type { Node } from "prosemirror-model"; +import { + createEditorStateWithSelection, + doc, + p, + schema, +} from "@shared/test/editor"; +import { checkboxListInputRule } from "./listInputRule"; + +const { bullet_list, ordered_list, list_item, checkbox_list, checkbox_item } = + schema.nodes; + +/** + * Creates a list item node with the given block content. + */ +function li(content: Node[]) { + return list_item.create(null, content); +} + +/** + * Returns the position directly after the first occurrence of the given text. + * + * @throws if no matching text node exists in the document. + */ +function posAfterText(node: Node, text: string) { + let found = -1; + node.descendants((child, pos) => { + if (found === -1 && child.isText && child.text?.startsWith(text)) { + found = pos; + } + return found === -1; + }); + if (found === -1) { + throw new Error(`Text "${text}" not found in document`); + } + return found + text.length; +} + +/** + * Simulates typing the trigger character of an input rule, mirroring the way + * prosemirror-inputrules invokes a rule's handler, and returns the resulting + * document (or the unchanged document when the rule does not fire). + */ +function typeTrigger( + rule: InputRule, + testDoc: Node, + markerInDoc: string, + triggerChar: string +) { + let state = createEditorStateWithSelection( + testDoc, + posAfterText(testDoc, markerInDoc) + ); + const { from, to } = state.selection; + const $from = state.doc.resolve(from); + const textBefore = + $from.parent.textBetween( + Math.max(0, $from.parentOffset - 500), + $from.parentOffset, + null, + "" + ) + triggerChar; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const match = (rule as any).match.exec(textBefore) as RegExpMatchArray | null; + if (!match) { + return state.doc; + } + const startPos = from - (match[0].length - triggerChar.length); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const tr = (rule as any).handler(state, match, startPos, to); + if (tr) { + state = state.apply(tr); + } + return state.doc; +} + +const rule = checkboxListInputRule( + /^-?\s*(\[\s?\])\s$/i, + checkbox_list, + checkbox_item +); + +describe("checkboxListInputRule", () => { + it("converts a plain bullet list to a checklist", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("[ ]")]), li([p("two")])]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + const list = result.firstChild; + expect(list?.type.name).toBe("checkbox_list"); + expect(list?.childCount).toBe(2); + expect(list?.child(0).type.name).toBe("checkbox_item"); + expect(list?.child(0).textContent).toBe(""); + expect(list?.child(1).textContent).toBe("two"); + }); + + it("converts a plain ordered list to a checklist", () => { + const testDoc = doc([ + ordered_list.create(null, [li([p("[ ]")]), li([p("two")])]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + expect(result.firstChild?.type.name).toBe("checkbox_list"); + }); + + it("preserves nesting when converting a list with a nested list", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("[ ]")]), + li([p("two"), bullet_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + const list = result.firstChild; + expect(list?.type.name).toBe("checkbox_list"); + const nested = list?.child(1).child(1); + expect(nested?.type.name).toBe("checkbox_list"); + expect(nested?.child(0).type.name).toBe("checkbox_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("does nothing when already in a checklist", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + checkbox_item.create(null, p("[ ]")), + checkbox_item.create(null, p("two")), + ]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + // The rule should not fire; the marker text is left untouched. + expect(result.firstChild?.type.name).toBe("checkbox_list"); + expect(result.firstChild?.child(0).textContent).toBe("[ ]"); + }); + + it("does nothing when not inside a list", () => { + const testDoc = doc([p("[ ]")]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + expect(result.firstChild?.type.name).toBe("paragraph"); + expect(result.firstChild?.textContent).toBe("[ ]"); + }); +}); diff --git a/shared/editor/lib/listInputRule.ts b/shared/editor/lib/listInputRule.ts index 9a46c1ce83..aeaff11e59 100644 --- a/shared/editor/lib/listInputRule.ts +++ b/shared/editor/lib/listInputRule.ts @@ -4,7 +4,10 @@ import type { Node as ProsemirrorNode, Attrs, } from "prosemirror-model"; +import toggleList from "../commands/toggleList"; +import { findParentNodeClosestToPos } from "../queries/findParentNode"; import { isInHeading } from "../queries/isInHeading"; +import { isList } from "../queries/isList"; /** * A wrapper for wrappingInputRule that prevents execution inside heading nodes. @@ -31,3 +34,40 @@ export function listWrappingInputRule( return (rule as any).handler(state, match, start, end); }); } + +/** + * An input rule that converts an existing plain list (bullet or ordered) to a + * checklist when the checkbox marker is typed at the start of a list item, + * preserving any nested list structure. + * + * @param regexp the pattern matching the checkbox marker, e.g. "[ ] ". + * @param listType the checkbox list node type to convert to. + * @param itemType the checkbox item node type to convert items to. + * @returns the input rule. + */ +export function checkboxListInputRule( + regexp: RegExp, + listType: NodeType, + itemType: NodeType +): InputRule { + return new InputRule(regexp, (state, _match, start, end) => { + const { schema } = state; + + // Only act when the selection sits inside a plain (non-checkbox) list — + // converting a paragraph is already handled by listWrappingInputRule. + const list = findParentNodeClosestToPos(state.selection.$from, (node) => + isList(node, schema) + ); + if (!list || list.node.type === listType) { + return null; + } + + // Remove the typed marker, then convert the list in place. + const tr = state.tr.delete(start, end); + const after = state.apply(tr); + toggleList(listType, itemType)(after, (toggleTr) => { + toggleTr.steps.forEach((step) => tr.step(step)); + }); + return tr; + }); +} diff --git a/shared/editor/nodes/CheckboxList.ts b/shared/editor/nodes/CheckboxList.ts index ff07f18add..dfafc772dc 100644 --- a/shared/editor/nodes/CheckboxList.ts +++ b/shared/editor/nodes/CheckboxList.ts @@ -8,7 +8,10 @@ import { Plugin } from "prosemirror-state"; import { v4 as generateUuid } from "uuid"; import toggleList from "../commands/toggleList"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; -import { listWrappingInputRule } from "../lib/listInputRule"; +import { + checkboxListInputRule, + listWrappingInputRule, +} from "../lib/listInputRule"; import { findBlockNodes } from "../queries/findChildren"; import { CheckboxListView } from "./CheckboxListView"; import Node from "./Node"; @@ -84,8 +87,14 @@ export default class CheckboxList extends Node { return () => toggleList(type, schema.nodes.checkbox_item); } - inputRules({ type }: { type: NodeType }) { - return [listWrappingInputRule(/^-?\s*(\[\s?\])\s$/i, type)]; + inputRules({ type, schema }: { type: NodeType; schema: Schema }) { + const pattern = /^-?\s*(\[\s?\])\s$/i; + return [ + // Convert an existing plain list to a checklist, keeping nesting intact. + checkboxListInputRule(pattern, type, schema.nodes.checkbox_item), + // Wrap a plain paragraph into a new checklist. + listWrappingInputRule(pattern, type), + ]; } toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { From e8aac7c3ec778121c10b7d1cdc8973c776ba989b Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sat, 13 Jun 2026 02:37:56 +0000 Subject: [PATCH 230/286] fix: place cursor at start of item after checklist conversion After converting a list to a checklist via the checkbox marker input rule, position the selection at the start of the converted item so the user can continue typing immediately. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD --- shared/editor/lib/listInputRule.test.ts | 36 ++++++++++++++++++------- shared/editor/lib/listInputRule.ts | 5 ++++ 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/shared/editor/lib/listInputRule.test.ts b/shared/editor/lib/listInputRule.test.ts index ab6d2cc367..f64d5e2056 100644 --- a/shared/editor/lib/listInputRule.test.ts +++ b/shared/editor/lib/listInputRule.test.ts @@ -40,7 +40,7 @@ function posAfterText(node: Node, text: string) { /** * Simulates typing the trigger character of an input rule, mirroring the way * prosemirror-inputrules invokes a rule's handler, and returns the resulting - * document (or the unchanged document when the rule does not fire). + * editor state (unchanged when the rule does not fire). */ function typeTrigger( rule: InputRule, @@ -64,7 +64,7 @@ function typeTrigger( // eslint-disable-next-line @typescript-eslint/no-explicit-any const match = (rule as any).match.exec(textBefore) as RegExpMatchArray | null; if (!match) { - return state.doc; + return state; } const startPos = from - (match[0].length - triggerChar.length); // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -72,7 +72,7 @@ function typeTrigger( if (tr) { state = state.apply(tr); } - return state.doc; + return state; } const rule = checkboxListInputRule( @@ -89,7 +89,7 @@ describe("checkboxListInputRule", () => { const result = typeTrigger(rule, testDoc, "[ ]", " "); - const list = result.firstChild; + const list = result.doc.firstChild; expect(list?.type.name).toBe("checkbox_list"); expect(list?.childCount).toBe(2); expect(list?.child(0).type.name).toBe("checkbox_item"); @@ -97,6 +97,22 @@ describe("checkboxListInputRule", () => { expect(list?.child(1).textContent).toBe("two"); }); + it("places the cursor at the start of the converted item", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("[ ]")]), li([p("two")])]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + // The selection should sit empty at the start of the first item's content. + const { selection } = result; + expect(selection.empty).toBe(true); + const $from = result.doc.resolve(selection.from); + expect($from.parent.type.name).toBe("paragraph"); + expect($from.parentOffset).toBe(0); + expect($from.node(-1).type.name).toBe("checkbox_item"); + }); + it("converts a plain ordered list to a checklist", () => { const testDoc = doc([ ordered_list.create(null, [li([p("[ ]")]), li([p("two")])]), @@ -104,7 +120,7 @@ describe("checkboxListInputRule", () => { const result = typeTrigger(rule, testDoc, "[ ]", " "); - expect(result.firstChild?.type.name).toBe("checkbox_list"); + expect(result.doc.firstChild?.type.name).toBe("checkbox_list"); }); it("preserves nesting when converting a list with a nested list", () => { @@ -117,7 +133,7 @@ describe("checkboxListInputRule", () => { const result = typeTrigger(rule, testDoc, "[ ]", " "); - const list = result.firstChild; + const list = result.doc.firstChild; expect(list?.type.name).toBe("checkbox_list"); const nested = list?.child(1).child(1); expect(nested?.type.name).toBe("checkbox_list"); @@ -136,8 +152,8 @@ describe("checkboxListInputRule", () => { const result = typeTrigger(rule, testDoc, "[ ]", " "); // The rule should not fire; the marker text is left untouched. - expect(result.firstChild?.type.name).toBe("checkbox_list"); - expect(result.firstChild?.child(0).textContent).toBe("[ ]"); + expect(result.doc.firstChild?.type.name).toBe("checkbox_list"); + expect(result.doc.firstChild?.child(0).textContent).toBe("[ ]"); }); it("does nothing when not inside a list", () => { @@ -145,7 +161,7 @@ describe("checkboxListInputRule", () => { const result = typeTrigger(rule, testDoc, "[ ]", " "); - expect(result.firstChild?.type.name).toBe("paragraph"); - expect(result.firstChild?.textContent).toBe("[ ]"); + expect(result.doc.firstChild?.type.name).toBe("paragraph"); + expect(result.doc.firstChild?.textContent).toBe("[ ]"); }); }); diff --git a/shared/editor/lib/listInputRule.ts b/shared/editor/lib/listInputRule.ts index aeaff11e59..065ace0a6f 100644 --- a/shared/editor/lib/listInputRule.ts +++ b/shared/editor/lib/listInputRule.ts @@ -4,6 +4,7 @@ import type { Node as ProsemirrorNode, Attrs, } from "prosemirror-model"; +import { TextSelection } from "prosemirror-state"; import toggleList from "../commands/toggleList"; import { findParentNodeClosestToPos } from "../queries/findParentNode"; import { isInHeading } from "../queries/isInHeading"; @@ -68,6 +69,10 @@ export function checkboxListInputRule( toggleList(listType, itemType)(after, (toggleTr) => { toggleTr.steps.forEach((step) => tr.step(step)); }); + + // Place the cursor at the start of the converted item, where the marker + // was, so the user can continue typing. + tr.setSelection(TextSelection.near(tr.doc.resolve(start))); return tr; }); } From 546ae467396a942ec9299b4bbbc1b041e58e97de Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sat, 13 Jun 2026 03:09:54 +0000 Subject: [PATCH 231/286] fix: remove vertical margin from checklist nested in a list A checklist nested inside any list (bullet, ordered, or another checklist) no longer carries the 1em vertical margin of a top-level checklist. Since both list_item and checkbox_item render as li elements, target any checklist-wrapper inside an li rather than only those inside another wrapper. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD --- shared/editor/components/Styles.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 16dfb5529a..93833cfc9e 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -1478,11 +1478,11 @@ ol li { .${EditorStyleHelper.checklistWrapper} { position: relative; margin: 1em 0; +} - .${EditorStyleHelper.checklistWrapper} { - position: static; - margin: 0; - } +li .${EditorStyleHelper.checklistWrapper} { + position: static; + margin: 0; } .${EditorStyleHelper.checklistCompletedToggle} { From a44a725d194a1ce941430fa157daeb8492a75eb4 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sat, 13 Jun 2026 15:04:43 +0000 Subject: [PATCH 232/286] fix: only highlight the closest list in the formatting toolbar When the selection sits inside a nested list, the toolbar previously marked both the inner list and any ancestor list of a different type as active, because each list button walked the full ancestor chain. Highlight only the list closest to the selection. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD --- app/editor/menus/formatting.tsx | 7 +- shared/editor/queries/isListActive.test.ts | 106 +++++++++++++++++++++ shared/editor/queries/isListActive.ts | 22 +++++ 3 files changed, 132 insertions(+), 3 deletions(-) create mode 100644 shared/editor/queries/isListActive.test.ts create mode 100644 shared/editor/queries/isListActive.ts diff --git a/app/editor/menus/formatting.tsx b/app/editor/menus/formatting.tsx index 0552a28462..07d14114bc 100644 --- a/app/editor/menus/formatting.tsx +++ b/app/editor/menus/formatting.tsx @@ -29,6 +29,7 @@ import HighlightColorPicker from "../components/HighlightColorPicker"; import { getDocumentHighlightColors } from "@shared/editor/queries/getDocumentHighlightColors"; import { getMarksBetween } from "@shared/editor/queries/getMarksBetween"; import { isInList } from "@shared/editor/queries/isInList"; +import { isListActive } from "@shared/editor/queries/isListActive"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; import type { MenuItem, SelectionContext } from "@shared/editor/types"; @@ -384,7 +385,7 @@ export default function formattingMenuItems(ctx: SelectionContext): MenuItem[] { shortcut: `⇧+Ctrl+7`, icon: <TodoListIcon />, keywords: "checklist checkbox task", - active: isNodeActive(schema.nodes.checkbox_list), + active: isListActive(schema.nodes.checkbox_list), visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { @@ -392,7 +393,7 @@ export default function formattingMenuItems(ctx: SelectionContext): MenuItem[] { tooltip: t("Bulleted list"), shortcut: `⇧+Ctrl+8`, icon: <BulletedListIcon />, - active: isNodeActive(schema.nodes.bullet_list), + active: isListActive(schema.nodes.bullet_list), visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { @@ -400,7 +401,7 @@ export default function formattingMenuItems(ctx: SelectionContext): MenuItem[] { tooltip: t("Ordered list"), shortcut: `⇧+Ctrl+9`, icon: <OrderedListIcon />, - active: isNodeActive(schema.nodes.ordered_list), + active: isListActive(schema.nodes.ordered_list), visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { diff --git a/shared/editor/queries/isListActive.test.ts b/shared/editor/queries/isListActive.test.ts new file mode 100644 index 0000000000..8d79c8f4f4 --- /dev/null +++ b/shared/editor/queries/isListActive.test.ts @@ -0,0 +1,106 @@ +import type { Node } from "prosemirror-model"; +import { + createEditorStateWithSelection, + doc, + p, + schema, +} from "@shared/test/editor"; +import { isListActive } from "./isListActive"; + +const { bullet_list, ordered_list, list_item, checkbox_list, checkbox_item } = + schema.nodes; + +/** + * Creates a list item node with the given block content. + */ +function li(content: Node[]) { + return list_item.create(null, content); +} + +/** + * Creates a checkbox item node with the given block content. + */ +function cli(content: Node[]) { + return checkbox_item.create(null, content); +} + +/** + * Returns a position inside the first text node matching the given text. + * + * @throws if no matching text node exists in the document. + */ +function posOfText(node: Node, text: string) { + let found = -1; + node.descendants((child, pos) => { + if (found === -1 && child.isText && child.text === text) { + found = pos; + } + return found === -1; + }); + if (found === -1) { + throw new Error(`Text "${text}" not found in document`); + } + return found + 1; +} + +/** + * Builds an editor state with the selection placed inside the given text. + */ +function stateAt(testDoc: Node, selectionText: string) { + return createEditorStateWithSelection( + testDoc, + posOfText(testDoc, selectionText) + ); +} + +describe("isListActive", () => { + it("matches the closest list type", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("one")]), li([p("two")])]), + ]); + const state = stateAt(testDoc, "one"); + + expect(isListActive(bullet_list)(state)).toBe(true); + expect(isListActive(ordered_list)(state)).toBe(false); + expect(isListActive(checkbox_list)(state)).toBe(false); + }); + + it("does not mark an ancestor list of a different type as active", () => { + // An ordered list nested inside a checkbox list, selection in the + // ordered list item. + const testDoc = doc([ + checkbox_list.create(null, [ + cli([ + p("moo"), + ordered_list.create(null, [li([p("dfsdf")]), li([p("sd")])]), + ]), + ]), + ]); + const state = stateAt(testDoc, "dfsdf"); + + expect(isListActive(ordered_list)(state)).toBe(true); + expect(isListActive(checkbox_list)(state)).toBe(false); + expect(isListActive(bullet_list)(state)).toBe(false); + }); + + it("matches the parent list when the selection is in the parent item", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("moo"), ordered_list.create(null, [li([p("dfsdf")])])]), + ]), + ]); + const state = stateAt(testDoc, "moo"); + + expect(isListActive(checkbox_list)(state)).toBe(true); + expect(isListActive(ordered_list)(state)).toBe(false); + }); + + it("returns false when the selection is not in a list", () => { + const testDoc = doc([p("hello")]); + const state = stateAt(testDoc, "hello"); + + expect(isListActive(bullet_list)(state)).toBe(false); + expect(isListActive(ordered_list)(state)).toBe(false); + expect(isListActive(checkbox_list)(state)).toBe(false); + }); +}); diff --git a/shared/editor/queries/isListActive.ts b/shared/editor/queries/isListActive.ts new file mode 100644 index 0000000000..0e046be2bf --- /dev/null +++ b/shared/editor/queries/isListActive.ts @@ -0,0 +1,22 @@ +import type { NodeType } from "prosemirror-model"; +import type { EditorState } from "prosemirror-state"; +import { findParentNode } from "./findParentNode"; +import { isList } from "./isList"; + +/** + * Checks whether the list closest to the current selection is of the given + * type. Unlike isNodeActive, this only matches the innermost list so that a + * nested list does not also mark an ancestor list of a different type as + * active in the toolbar. + * + * @param type the list node type to check for. + * @returns a function that returns true when the closest list is of the type. + */ +export const isListActive = + (type: NodeType) => + (state: EditorState): boolean => { + const closestList = findParentNode((node) => isList(node, state.schema))( + state.selection + ); + return closestList?.node.type === type; + }; From 2292e5683456797f6d6aacc223f93ae03e982208 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 13 Jun 2026 12:18:35 -0400 Subject: [PATCH 233/286] fix: Comment thread animations (#12677) * Improve comment thread solidity/animations * fixes * Animation flash on thread switch --- .../components/Comments/CommentForm.tsx | 35 +++-- .../components/Comments/CommentThread.tsx | 131 ++++++++++-------- .../components/Comments/CommentThreadItem.tsx | 43 +++--- 3 files changed, 127 insertions(+), 82 deletions(-) diff --git a/app/scenes/Document/components/Comments/CommentForm.tsx b/app/scenes/Document/components/Comments/CommentForm.tsx index 4ecb53a4a0..ec08cd2acb 100644 --- a/app/scenes/Document/components/Comments/CommentForm.tsx +++ b/app/scenes/Document/components/Comments/CommentForm.tsx @@ -146,7 +146,12 @@ function CommentForm({ toast.error(t("Error creating comment")); }); - // optimistically update the comment model + // optimistically update the comment model. Setting the data here, rather + // than waiting for save() to resolve, avoids a frame where the rendered + // comment is empty before the saved data is applied. + if (draft) { + comment.data = draft; + } comment.isNew = false; comment.createdById = user.id; comment.createdBy = user; @@ -303,20 +308,23 @@ function CommentForm({ ? { initial: { opacity: 0, - marginBottom: -100, + y: 10, }, animate: { opacity: 1, - marginBottom: 0, + y: 0, transition: { - type: "spring", - bounce: 0.1, + duration: 0.2, + ease: "easeOut", }, }, exit: { opacity: 0, - marginBottom: -100, - scale: 0.98, + y: 10, + transition: { + duration: 0.2, + ease: "easeOut", + }, }, } : {}; @@ -338,7 +346,18 @@ function CommentForm({ /> </VisuallyHidden.Root> <Flex gap={8} align="flex-start"> - <Avatar model={user} size={24} style={{ marginTop: 8 }} /> + {standalone ? ( + <m.div + style={{ marginTop: 8 }} + initial={{ opacity: 0, y: 6 }} + animate={{ opacity: 1, y: 0 }} + transition={{ duration: 0.3, ease: "easeOut" }} + > + <Avatar model={user} size={24} /> + </m.div> + ) : ( + <Avatar model={user} size={24} style={{ marginTop: 8 }} /> + )} <Bubble gap={10} onClick={handleClickPadding} diff --git a/app/scenes/Document/components/Comments/CommentThread.tsx b/app/scenes/Document/components/Comments/CommentThread.tsx index 5b2ec858f5..40218dd994 100644 --- a/app/scenes/Document/components/Comments/CommentThread.tsx +++ b/app/scenes/Document/components/Comments/CommentThread.tsx @@ -1,3 +1,4 @@ +import { m } from "framer-motion"; import { observer } from "mobx-react"; import { darken } from "polished"; import * as React from "react"; @@ -49,6 +50,9 @@ function CommentThread({ collapseNumDisplayed = 3, }: Props) { const [scrollOnMount] = React.useState(focused && !window.location.hash); + // Whether to play the entrance animation, captured once at mount so that + // submitting the thread (which flips isNew) does not change the animation. + const [animateIn] = React.useState(thread.isNew); const { editor, setFocusedCommentId } = useDocumentContext(); const { comments } = useStores(); const topRef = React.useRef<HTMLDivElement>(null); @@ -92,9 +96,14 @@ function CommentThread({ }); useOnClickOutside(topRef, (event) => { + const target = event.target as HTMLElement; if ( focused && - !(event.target as HTMLElement).classList.contains("comment") && + !target.classList.contains("comment") && + // Clicking another thread switches focus to it directly via its own + // click handler, so skip deselecting here to avoid a flash of the + // deselected state (and the new comment form) in between. + !target.closest("[data-comment-thread]") && event.defaultPrevented === false ) { setFocusedCommentId(null); @@ -217,66 +226,78 @@ function CommentThread({ return ( <Thread ref={topRef} + data-comment-thread + layout="position" + transition={{ layout: { duration: 0.2, ease: "easeOut" } }} $focused={focused} $recessed={recessed} onClick={handleClickThread} > - {commentsInThread.map((comment, index) => { - if (collapse !== null) { - if (index === collapse.begin) { - return renderShowMore(collapse); - } else if (index > collapse.begin && index <= collapse.final) { - return null; + {/* The entrance transform lives on an inner element so it does not + conflict with the layout projection transform on Thread, which + would otherwise skew the thread during layout animations. */} + <ThreadInner + initial={animateIn ? { opacity: 0, y: 10 } : false} + animate={{ opacity: 1, y: 0 }} + transition={{ duration: 0.2, ease: "easeOut" }} + > + {commentsInThread.map((comment, index) => { + if (collapse !== null) { + if (index === collapse.begin) { + return renderShowMore(collapse); + } else if (index > collapse.begin && index <= collapse.final) { + return null; + } } - } - const firstOfAuthor = - index === 0 || - (collapse && index === collapse.final + 1) || - comment.createdById !== commentsInThread[index - 1].createdById; - const lastOfAuthor = - index === commentsInThread.length - 1 || - comment.createdById !== commentsInThread[index + 1].createdById; + const firstOfAuthor = + index === 0 || + (collapse && index === collapse.final + 1) || + comment.createdById !== commentsInThread[index - 1].createdById; + const lastOfAuthor = + index === commentsInThread.length - 1 || + comment.createdById !== commentsInThread[index + 1].createdById; - return ( - <CommentThreadItem - highlightedText={index === 0 ? highlightedText : undefined} - comment={comment} - onDelete={editor?.removeComment} - onUpdate={editor?.updateComment} - key={comment.id} - firstOfThread={index === 0} - lastOfThread={index === commentsInThread.length - 1 && !draft} - canReply={focused && can.comment} - firstOfAuthor={firstOfAuthor} - lastOfAuthor={lastOfAuthor} - previousCommentCreatedAt={commentsInThread[index - 1]?.createdAt} - forceEdit={editingCommentIds.has(comment.id)} - onEditStart={() => handleCommentEditStart(comment.id)} - onEditEnd={() => handleCommentEditEnd(comment.id)} - /> - ); - })} - - <ResizingHeightContainer hideOverflow={false} ref={replyRef}> - {(focused || draft || commentsInThread.length === 0) && canReply && ( - <Fade timing={100}> - <CommentForm - onSubmit={handleSubmit} - onSaveDraft={onSaveDraft} - draft={draft} - documentId={document.id} - thread={thread} - standalone={commentsInThread.length === 0} - autoFocus={autoFocus} - highlightedText={ - commentsInThread.length === 0 ? highlightedText : undefined - } - onUpArrowAtStart={handleUpArrowAtStart} + return ( + <CommentThreadItem + highlightedText={index === 0 ? highlightedText : undefined} + comment={comment} + onDelete={editor?.removeComment} + onUpdate={editor?.updateComment} + key={comment.id} + firstOfThread={index === 0} + lastOfThread={index === commentsInThread.length - 1 && !draft} + canReply={focused && can.comment} + firstOfAuthor={firstOfAuthor} + lastOfAuthor={lastOfAuthor} + previousCommentCreatedAt={commentsInThread[index - 1]?.createdAt} + forceEdit={editingCommentIds.has(comment.id)} + onEditStart={() => handleCommentEditStart(comment.id)} + onEditEnd={() => handleCommentEditEnd(comment.id)} /> - </Fade> - )} - </ResizingHeightContainer> + ); + })} + + <ResizingHeightContainer hideOverflow={false} ref={replyRef}> + {(focused || draft || commentsInThread.length === 0) && canReply && ( + <Fade timing={100}> + <CommentForm + onSubmit={handleSubmit} + onSaveDraft={onSaveDraft} + draft={draft} + documentId={document.id} + thread={thread} + standalone={commentsInThread.length === 0} + autoFocus={autoFocus} + highlightedText={ + commentsInThread.length === 0 ? highlightedText : undefined + } + onUpArrowAtStart={handleUpArrowAtStart} + /> + </Fade> + )} + </ResizingHeightContainer> + </ThreadInner> {!focused && !recessed && !draft && canReply && ( <Reply onClick={setAutoFocusOn}>{t("Reply")}…</Reply> )} @@ -327,7 +348,7 @@ const ShowMore = styled.div` } `; -const Thread = styled.div<{ +const Thread = styled(m.div)<{ $focused: boolean; $recessed: boolean; }>` @@ -351,4 +372,6 @@ const Thread = styled.div<{ `} `; +const ThreadInner = styled(m.div)``; + export default observer(CommentThread); diff --git a/app/scenes/Document/components/Comments/CommentThreadItem.tsx b/app/scenes/Document/components/Comments/CommentThreadItem.tsx index b7bd4f7d90..71b43656df 100644 --- a/app/scenes/Document/components/Comments/CommentThreadItem.tsx +++ b/app/scenes/Document/components/Comments/CommentThreadItem.tsx @@ -20,6 +20,7 @@ import Flex from "~/components/Flex"; import NudeButton from "~/components/NudeButton"; import ReactionList from "~/components/Reactions/ReactionList"; import ReactionPicker from "~/components/Reactions/ReactionPicker"; +import { ResizingHeightContainer } from "~/components/ResizingHeightContainer"; import Text from "~/components/Text"; import Time from "~/components/Time"; import Tooltip from "~/components/Tooltip"; @@ -251,25 +252,27 @@ function CommentThreadItem({ </ButtonSmall> </Flex> )} - {!!comment.reactions.length && ( - <ReactionListContainer gap={6} align="center"> - <ReactionList - model={comment} - onAddReaction={handleAddReaction} - onRemoveReaction={handleRemoveReaction} - picker={ - !comment.isResolved ? ( - <Action - as={ReactionPicker} - onSelect={handleAddReaction} - size={28} - $rounded - /> - ) : undefined - } - /> - </ReactionListContainer> - )} + <ResizingHeightContainer hideOverflow> + {!!comment.reactions.length && ( + <ReactionListContainer gap={6} align="center"> + <ReactionList + model={comment} + onAddReaction={handleAddReaction} + onRemoveReaction={handleRemoveReaction} + picker={ + !comment.isResolved ? ( + <Action + as={ReactionPicker} + onSelect={handleAddReaction} + size={28} + $rounded + /> + ) : undefined + } + /> + </ReactionListContainer> + )} + </ResizingHeightContainer> </Body> <EventBoundary> {!isEditing && ( @@ -400,7 +403,7 @@ const Actions = styled(Flex)` `; const ReactionListContainer = styled(Flex)` - margin-top: 6px; + padding-top: 6px; `; const Meta = styled(Text)` From d4185e6455b4fb098cb1385f133460d75b254cf1 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sat, 13 Jun 2026 16:18:45 +0000 Subject: [PATCH 234/286] fix: consider node selections on lists in isListActive When a list node is the target of a NodeSelection, findParentNode resolves to its parent list rather than the selected node. Check the selected node directly so the toolbar reflects the selected list. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD --- shared/editor/queries/isListActive.test.ts | 58 ++++++++++++++++++++++ shared/editor/queries/isListActive.ts | 14 +++++- 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/shared/editor/queries/isListActive.test.ts b/shared/editor/queries/isListActive.test.ts index 8d79c8f4f4..e9d5ba9b82 100644 --- a/shared/editor/queries/isListActive.test.ts +++ b/shared/editor/queries/isListActive.test.ts @@ -1,5 +1,7 @@ import type { Node } from "prosemirror-model"; +import { NodeSelection } from "prosemirror-state"; import { + createEditorState, createEditorStateWithSelection, doc, p, @@ -53,6 +55,38 @@ function stateAt(testDoc: Node, selectionText: string) { ); } +/** + * Returns the position directly before the first node of the given type. + * + * @throws if no matching node exists in the document. + */ +function posOfNode(node: Node, typeName: string) { + let found = -1; + node.descendants((child, pos) => { + if (found === -1 && child.type.name === typeName) { + found = pos; + } + return found === -1; + }); + if (found === -1) { + throw new Error(`Node "${typeName}" not found in document`); + } + return found; +} + +/** + * Builds an editor state with a NodeSelection on the first node of the given + * type. + */ +function nodeSelectionStateAt(testDoc: Node, typeName: string) { + const state = createEditorState(testDoc); + const selection = NodeSelection.create( + state.doc, + posOfNode(testDoc, typeName) + ); + return state.apply(state.tr.setSelection(selection)); +} + describe("isListActive", () => { it("matches the closest list type", () => { const testDoc = doc([ @@ -95,6 +129,30 @@ describe("isListActive", () => { expect(isListActive(ordered_list)(state)).toBe(false); }); + it("matches a list selected directly via a NodeSelection", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("one")]), li([p("two")])]), + ]); + const state = nodeSelectionStateAt(testDoc, "bullet_list"); + + expect(isListActive(bullet_list)(state)).toBe(true); + expect(isListActive(ordered_list)(state)).toBe(false); + expect(isListActive(checkbox_list)(state)).toBe(false); + }); + + it("matches the selected nested list, not its parent, via a NodeSelection", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("moo"), ordered_list.create(null, [li([p("dfsdf")])])]), + ]), + ]); + const state = nodeSelectionStateAt(testDoc, "ordered_list"); + + expect(isListActive(ordered_list)(state)).toBe(true); + expect(isListActive(checkbox_list)(state)).toBe(false); + expect(isListActive(bullet_list)(state)).toBe(false); + }); + it("returns false when the selection is not in a list", () => { const testDoc = doc([p("hello")]); const state = stateAt(testDoc, "hello"); diff --git a/shared/editor/queries/isListActive.ts b/shared/editor/queries/isListActive.ts index 0e046be2bf..6620b95a5b 100644 --- a/shared/editor/queries/isListActive.ts +++ b/shared/editor/queries/isListActive.ts @@ -1,5 +1,6 @@ import type { NodeType } from "prosemirror-model"; import type { EditorState } from "prosemirror-state"; +import { NodeSelection } from "prosemirror-state"; import { findParentNode } from "./findParentNode"; import { isList } from "./isList"; @@ -15,8 +16,19 @@ import { isList } from "./isList"; export const isListActive = (type: NodeType) => (state: EditorState): boolean => { + const { selection } = state; + + // When the list node itself is selected via a NodeSelection, consider that + // node directly — findParentNode would otherwise report its parent list. + if ( + selection instanceof NodeSelection && + isList(selection.node, state.schema) + ) { + return selection.node.type === type; + } + const closestList = findParentNode((node) => isList(node, state.schema))( - state.selection + selection ); return closestList?.node.type === type; }; From 93c928439d27420085b246c3f11c6e5c836b4662 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 13 Jun 2026 12:33:17 -0400 Subject: [PATCH 235/286] fix: Nested list behavior (#12678) * fix: preserve nesting when toggling to/from checklist in nested lists Converting a list to or from a checklist previously cleared all nodes and re-wrapped them, which flattened any nested list structure. Convert the list nodes in place instead, recursively mapping list and item types so nesting is preserved. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD * feat: convert plain list to checklist when typing checkbox marker Typing "[ ] " at the start of an existing bullet or ordered list item now converts the whole list to a checklist, preserving nested list structure, reusing the in-place list conversion utility. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD * fix: place cursor at start of item after checklist conversion After converting a list to a checklist via the checkbox marker input rule, position the selection at the start of the converted item so the user can continue typing immediately. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD * fix: remove vertical margin from checklist nested in a list A checklist nested inside any list (bullet, ordered, or another checklist) no longer carries the 1em vertical margin of a top-level checklist. Since both list_item and checkbox_item render as li elements, target any checklist-wrapper inside an li rather than only those inside another wrapper. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD * fix: only highlight the closest list in the formatting toolbar When the selection sits inside a nested list, the toolbar previously marked both the inner list and any ancestor list of a different type as active, because each list button walked the full ancestor chain. Highlight only the list closest to the selection. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD * fix: consider node selections on lists in isListActive When a list node is the target of a NodeSelection, findParentNode resolves to its parent list rather than the selected node. Check the selected node directly so the toolbar reflects the selected list. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD --------- Co-authored-by: Claude <noreply@anthropic.com> --- app/editor/menus/formatting.tsx | 7 +- shared/editor/commands/toggleList.test.ts | 120 ++++++++++++++- shared/editor/commands/toggleList.ts | 80 +++++++++- shared/editor/components/Styles.ts | 8 +- shared/editor/lib/listInputRule.test.ts | 167 +++++++++++++++++++++ shared/editor/lib/listInputRule.ts | 45 ++++++ shared/editor/nodes/CheckboxList.ts | 15 +- shared/editor/queries/isListActive.test.ts | 164 ++++++++++++++++++++ shared/editor/queries/isListActive.ts | 34 +++++ 9 files changed, 624 insertions(+), 16 deletions(-) create mode 100644 shared/editor/lib/listInputRule.test.ts create mode 100644 shared/editor/queries/isListActive.test.ts create mode 100644 shared/editor/queries/isListActive.ts diff --git a/app/editor/menus/formatting.tsx b/app/editor/menus/formatting.tsx index 0552a28462..07d14114bc 100644 --- a/app/editor/menus/formatting.tsx +++ b/app/editor/menus/formatting.tsx @@ -29,6 +29,7 @@ import HighlightColorPicker from "../components/HighlightColorPicker"; import { getDocumentHighlightColors } from "@shared/editor/queries/getDocumentHighlightColors"; import { getMarksBetween } from "@shared/editor/queries/getMarksBetween"; import { isInList } from "@shared/editor/queries/isInList"; +import { isListActive } from "@shared/editor/queries/isListActive"; import { isMarkActive } from "@shared/editor/queries/isMarkActive"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; import type { MenuItem, SelectionContext } from "@shared/editor/types"; @@ -384,7 +385,7 @@ export default function formattingMenuItems(ctx: SelectionContext): MenuItem[] { shortcut: `⇧+Ctrl+7`, icon: <TodoListIcon />, keywords: "checklist checkbox task", - active: isNodeActive(schema.nodes.checkbox_list), + active: isListActive(schema.nodes.checkbox_list), visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { @@ -392,7 +393,7 @@ export default function formattingMenuItems(ctx: SelectionContext): MenuItem[] { tooltip: t("Bulleted list"), shortcut: `⇧+Ctrl+8`, icon: <BulletedListIcon />, - active: isNodeActive(schema.nodes.bullet_list), + active: isListActive(schema.nodes.bullet_list), visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { @@ -400,7 +401,7 @@ export default function formattingMenuItems(ctx: SelectionContext): MenuItem[] { tooltip: t("Ordered list"), shortcut: `⇧+Ctrl+9`, icon: <OrderedListIcon />, - active: isNodeActive(schema.nodes.ordered_list), + active: isListActive(schema.nodes.ordered_list), visible: !isInCodeBlock && !isTableCell && (!isList || !isTouch), }, { diff --git a/shared/editor/commands/toggleList.test.ts b/shared/editor/commands/toggleList.test.ts index de26362ea7..e873c58a64 100644 --- a/shared/editor/commands/toggleList.test.ts +++ b/shared/editor/commands/toggleList.test.ts @@ -8,7 +8,8 @@ import { } from "@shared/test/editor"; import toggleList from "./toggleList"; -const { bullet_list, ordered_list, list_item } = schema.nodes; +const { bullet_list, ordered_list, list_item, checkbox_list, checkbox_item } = + schema.nodes; /** * Creates a list item node with the given block content. @@ -17,6 +18,13 @@ function li(content: Node[]) { return list_item.create(null, content); } +/** + * Creates a checkbox item node with the given block content. + */ +function cli(content: Node[], checked = false) { + return checkbox_item.create({ checked }, content); +} + /** * Returns a position inside the first text node matching the given text. * @@ -97,6 +105,116 @@ describe("toggleList", () => { expect(outer?.child(1).child(1).type.name).toBe("bullet_list"); }); + it("preserves nesting when converting a bullet list with a nested list to a checklist", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("one")]), + li([p("two"), bullet_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = run( + testDoc, + "two", + toggleList(checkbox_list, checkbox_item) + ); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("checkbox_list"); + expect(outer?.childCount).toBe(2); + expect(outer?.child(0).type.name).toBe("checkbox_item"); + expect(outer?.child(1).type.name).toBe("checkbox_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("checkbox_list"); + expect(nested?.child(0).type.name).toBe("checkbox_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("preserves nesting when converting a checklist with a nested checklist to a bullet list", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("one")]), + cli([p("two"), checkbox_list.create(null, [cli([p("nested")])])]), + ]), + ]); + + const result = run(testDoc, "two", toggleList(bullet_list, list_item)); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("bullet_list"); + expect(outer?.childCount).toBe(2); + expect(outer?.child(0).type.name).toBe("list_item"); + expect(outer?.child(1).type.name).toBe("list_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("bullet_list"); + expect(nested?.child(0).type.name).toBe("list_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("converts a checklist nested in a bullet list without changing the parent list", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("one")]), + li([p("two"), checkbox_list.create(null, [cli([p("nested")])])]), + ]), + ]); + + const result = run(testDoc, "nested", toggleList(bullet_list, list_item)); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("bullet_list"); + expect(outer?.child(1).type.name).toBe("list_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("bullet_list"); + expect(nested?.child(0).type.name).toBe("list_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("converts a bullet list nested in a checklist to a checklist without changing the parent list", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("one")]), + cli([p("two"), bullet_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = run( + testDoc, + "nested", + toggleList(checkbox_list, checkbox_item) + ); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("checkbox_list"); + expect(outer?.child(1).type.name).toBe("checkbox_item"); + + const nested = outer?.child(1).child(1); + expect(nested?.type.name).toBe("checkbox_list"); + expect(nested?.child(0).type.name).toBe("checkbox_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("preserves the checked state of items already part of a nested checklist", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("one"), checkbox_list.create(null, [cli([p("nested")], true)])]), + ]), + ]); + + const result = run( + testDoc, + "one", + toggleList(checkbox_list, checkbox_item) + ); + + const outer = result.firstChild; + expect(outer?.type.name).toBe("checkbox_list"); + expect(outer?.child(0).child(1).child(0).attrs.checked).toBe(true); + }); + it("lifts the item out of the list when toggling the same list type", () => { const testDoc = doc([ bullet_list.create(null, [li([p("one")]), li([p("two")])]), diff --git a/shared/editor/commands/toggleList.ts b/shared/editor/commands/toggleList.ts index 1485aa85e3..145f66da6a 100644 --- a/shared/editor/commands/toggleList.ts +++ b/shared/editor/commands/toggleList.ts @@ -1,4 +1,9 @@ -import type { NodeType } from "prosemirror-model"; +import type { + Attrs, + Node as ProsemirrorNode, + NodeType, + Schema, +} from "prosemirror-model"; import { liftListItem, wrapInList } from "prosemirror-schema-list"; import type { Command } from "prosemirror-state"; import { chainTransactions } from "../lib/chainTransactions"; @@ -40,10 +45,31 @@ export default function toggleList( const differentType = currentItemType && currentItemType !== itemType; if (differentType) { - return chainTransactions( - clearNodes(), - wrapInList(listType, { listStyle }) - )(state, dispatch); + // Convert the list in place, preserving any nested list structure, + // rather than clearing the nodes and re-wrapping which would flatten + // nesting – this path is hit when toggling to or from a checklist. + try { + const converted = convertListType( + parentList.node, + listType, + itemType, + schema, + listStyle ? { listStyle } : undefined + ); + dispatch?.( + tr.replaceWith( + parentList.pos, + parentList.pos + parentList.node.nodeSize, + converted + ) + ); + return true; + } catch (_err) { + return chainTransactions( + clearNodes(), + wrapInList(listType, { listStyle }) + )(state, dispatch); + } } if ( @@ -85,3 +111,47 @@ export default function toggleList( ); }; } + +/** + * Recursively converts a list node, its items, and any lists nested within + * those items to the given list and item type, preserving nesting structure. + * + * @param node the list node to convert. + * @param listType the node type to convert lists to. + * @param itemType the node type to convert list items to. + * @param schema the document schema. + * @param attrs optional attributes for the converted lists. + * @returns the converted list node. + * @throws if the content of an item is not valid for the new item type. + */ +function convertListType( + node: ProsemirrorNode, + listType: NodeType, + itemType: NodeType, + schema: Schema, + attrs?: Attrs +): ProsemirrorNode { + const items: ProsemirrorNode[] = []; + node.forEach((item) => { + const content: ProsemirrorNode[] = []; + item.forEach((child) => { + content.push( + isList(child, schema) + ? convertListType(child, listType, itemType, schema, attrs) + : child + ); + }); + items.push( + itemType.createChecked( + item.type === itemType ? item.attrs : null, + content, + item.marks + ) + ); + }); + return listType.createChecked( + node.type === listType ? node.attrs : (attrs ?? null), + items, + node.marks + ); +} diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 8dc5c0928b..cf9e5917d2 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -1484,11 +1484,11 @@ ol li { .${EditorStyleHelper.checklistWrapper} { position: relative; margin: 1em 0; +} - .${EditorStyleHelper.checklistWrapper} { - position: static; - margin: 0; - } +li .${EditorStyleHelper.checklistWrapper} { + position: static; + margin: 0; } .${EditorStyleHelper.checklistCompletedToggle} { diff --git a/shared/editor/lib/listInputRule.test.ts b/shared/editor/lib/listInputRule.test.ts new file mode 100644 index 0000000000..f64d5e2056 --- /dev/null +++ b/shared/editor/lib/listInputRule.test.ts @@ -0,0 +1,167 @@ +import type { InputRule } from "prosemirror-inputrules"; +import type { Node } from "prosemirror-model"; +import { + createEditorStateWithSelection, + doc, + p, + schema, +} from "@shared/test/editor"; +import { checkboxListInputRule } from "./listInputRule"; + +const { bullet_list, ordered_list, list_item, checkbox_list, checkbox_item } = + schema.nodes; + +/** + * Creates a list item node with the given block content. + */ +function li(content: Node[]) { + return list_item.create(null, content); +} + +/** + * Returns the position directly after the first occurrence of the given text. + * + * @throws if no matching text node exists in the document. + */ +function posAfterText(node: Node, text: string) { + let found = -1; + node.descendants((child, pos) => { + if (found === -1 && child.isText && child.text?.startsWith(text)) { + found = pos; + } + return found === -1; + }); + if (found === -1) { + throw new Error(`Text "${text}" not found in document`); + } + return found + text.length; +} + +/** + * Simulates typing the trigger character of an input rule, mirroring the way + * prosemirror-inputrules invokes a rule's handler, and returns the resulting + * editor state (unchanged when the rule does not fire). + */ +function typeTrigger( + rule: InputRule, + testDoc: Node, + markerInDoc: string, + triggerChar: string +) { + let state = createEditorStateWithSelection( + testDoc, + posAfterText(testDoc, markerInDoc) + ); + const { from, to } = state.selection; + const $from = state.doc.resolve(from); + const textBefore = + $from.parent.textBetween( + Math.max(0, $from.parentOffset - 500), + $from.parentOffset, + null, + "" + ) + triggerChar; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const match = (rule as any).match.exec(textBefore) as RegExpMatchArray | null; + if (!match) { + return state; + } + const startPos = from - (match[0].length - triggerChar.length); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const tr = (rule as any).handler(state, match, startPos, to); + if (tr) { + state = state.apply(tr); + } + return state; +} + +const rule = checkboxListInputRule( + /^-?\s*(\[\s?\])\s$/i, + checkbox_list, + checkbox_item +); + +describe("checkboxListInputRule", () => { + it("converts a plain bullet list to a checklist", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("[ ]")]), li([p("two")])]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + const list = result.doc.firstChild; + expect(list?.type.name).toBe("checkbox_list"); + expect(list?.childCount).toBe(2); + expect(list?.child(0).type.name).toBe("checkbox_item"); + expect(list?.child(0).textContent).toBe(""); + expect(list?.child(1).textContent).toBe("two"); + }); + + it("places the cursor at the start of the converted item", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("[ ]")]), li([p("two")])]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + // The selection should sit empty at the start of the first item's content. + const { selection } = result; + expect(selection.empty).toBe(true); + const $from = result.doc.resolve(selection.from); + expect($from.parent.type.name).toBe("paragraph"); + expect($from.parentOffset).toBe(0); + expect($from.node(-1).type.name).toBe("checkbox_item"); + }); + + it("converts a plain ordered list to a checklist", () => { + const testDoc = doc([ + ordered_list.create(null, [li([p("[ ]")]), li([p("two")])]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + expect(result.doc.firstChild?.type.name).toBe("checkbox_list"); + }); + + it("preserves nesting when converting a list with a nested list", () => { + const testDoc = doc([ + bullet_list.create(null, [ + li([p("[ ]")]), + li([p("two"), bullet_list.create(null, [li([p("nested")])])]), + ]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + const list = result.doc.firstChild; + expect(list?.type.name).toBe("checkbox_list"); + const nested = list?.child(1).child(1); + expect(nested?.type.name).toBe("checkbox_list"); + expect(nested?.child(0).type.name).toBe("checkbox_item"); + expect(nested?.child(0).textContent).toBe("nested"); + }); + + it("does nothing when already in a checklist", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + checkbox_item.create(null, p("[ ]")), + checkbox_item.create(null, p("two")), + ]), + ]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + // The rule should not fire; the marker text is left untouched. + expect(result.doc.firstChild?.type.name).toBe("checkbox_list"); + expect(result.doc.firstChild?.child(0).textContent).toBe("[ ]"); + }); + + it("does nothing when not inside a list", () => { + const testDoc = doc([p("[ ]")]); + + const result = typeTrigger(rule, testDoc, "[ ]", " "); + + expect(result.doc.firstChild?.type.name).toBe("paragraph"); + expect(result.doc.firstChild?.textContent).toBe("[ ]"); + }); +}); diff --git a/shared/editor/lib/listInputRule.ts b/shared/editor/lib/listInputRule.ts index 9a46c1ce83..065ace0a6f 100644 --- a/shared/editor/lib/listInputRule.ts +++ b/shared/editor/lib/listInputRule.ts @@ -4,7 +4,11 @@ import type { Node as ProsemirrorNode, Attrs, } from "prosemirror-model"; +import { TextSelection } from "prosemirror-state"; +import toggleList from "../commands/toggleList"; +import { findParentNodeClosestToPos } from "../queries/findParentNode"; import { isInHeading } from "../queries/isInHeading"; +import { isList } from "../queries/isList"; /** * A wrapper for wrappingInputRule that prevents execution inside heading nodes. @@ -31,3 +35,44 @@ export function listWrappingInputRule( return (rule as any).handler(state, match, start, end); }); } + +/** + * An input rule that converts an existing plain list (bullet or ordered) to a + * checklist when the checkbox marker is typed at the start of a list item, + * preserving any nested list structure. + * + * @param regexp the pattern matching the checkbox marker, e.g. "[ ] ". + * @param listType the checkbox list node type to convert to. + * @param itemType the checkbox item node type to convert items to. + * @returns the input rule. + */ +export function checkboxListInputRule( + regexp: RegExp, + listType: NodeType, + itemType: NodeType +): InputRule { + return new InputRule(regexp, (state, _match, start, end) => { + const { schema } = state; + + // Only act when the selection sits inside a plain (non-checkbox) list — + // converting a paragraph is already handled by listWrappingInputRule. + const list = findParentNodeClosestToPos(state.selection.$from, (node) => + isList(node, schema) + ); + if (!list || list.node.type === listType) { + return null; + } + + // Remove the typed marker, then convert the list in place. + const tr = state.tr.delete(start, end); + const after = state.apply(tr); + toggleList(listType, itemType)(after, (toggleTr) => { + toggleTr.steps.forEach((step) => tr.step(step)); + }); + + // Place the cursor at the start of the converted item, where the marker + // was, so the user can continue typing. + tr.setSelection(TextSelection.near(tr.doc.resolve(start))); + return tr; + }); +} diff --git a/shared/editor/nodes/CheckboxList.ts b/shared/editor/nodes/CheckboxList.ts index ff07f18add..dfafc772dc 100644 --- a/shared/editor/nodes/CheckboxList.ts +++ b/shared/editor/nodes/CheckboxList.ts @@ -8,7 +8,10 @@ import { Plugin } from "prosemirror-state"; import { v4 as generateUuid } from "uuid"; import toggleList from "../commands/toggleList"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; -import { listWrappingInputRule } from "../lib/listInputRule"; +import { + checkboxListInputRule, + listWrappingInputRule, +} from "../lib/listInputRule"; import { findBlockNodes } from "../queries/findChildren"; import { CheckboxListView } from "./CheckboxListView"; import Node from "./Node"; @@ -84,8 +87,14 @@ export default class CheckboxList extends Node { return () => toggleList(type, schema.nodes.checkbox_item); } - inputRules({ type }: { type: NodeType }) { - return [listWrappingInputRule(/^-?\s*(\[\s?\])\s$/i, type)]; + inputRules({ type, schema }: { type: NodeType; schema: Schema }) { + const pattern = /^-?\s*(\[\s?\])\s$/i; + return [ + // Convert an existing plain list to a checklist, keeping nesting intact. + checkboxListInputRule(pattern, type, schema.nodes.checkbox_item), + // Wrap a plain paragraph into a new checklist. + listWrappingInputRule(pattern, type), + ]; } toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { diff --git a/shared/editor/queries/isListActive.test.ts b/shared/editor/queries/isListActive.test.ts new file mode 100644 index 0000000000..e9d5ba9b82 --- /dev/null +++ b/shared/editor/queries/isListActive.test.ts @@ -0,0 +1,164 @@ +import type { Node } from "prosemirror-model"; +import { NodeSelection } from "prosemirror-state"; +import { + createEditorState, + createEditorStateWithSelection, + doc, + p, + schema, +} from "@shared/test/editor"; +import { isListActive } from "./isListActive"; + +const { bullet_list, ordered_list, list_item, checkbox_list, checkbox_item } = + schema.nodes; + +/** + * Creates a list item node with the given block content. + */ +function li(content: Node[]) { + return list_item.create(null, content); +} + +/** + * Creates a checkbox item node with the given block content. + */ +function cli(content: Node[]) { + return checkbox_item.create(null, content); +} + +/** + * Returns a position inside the first text node matching the given text. + * + * @throws if no matching text node exists in the document. + */ +function posOfText(node: Node, text: string) { + let found = -1; + node.descendants((child, pos) => { + if (found === -1 && child.isText && child.text === text) { + found = pos; + } + return found === -1; + }); + if (found === -1) { + throw new Error(`Text "${text}" not found in document`); + } + return found + 1; +} + +/** + * Builds an editor state with the selection placed inside the given text. + */ +function stateAt(testDoc: Node, selectionText: string) { + return createEditorStateWithSelection( + testDoc, + posOfText(testDoc, selectionText) + ); +} + +/** + * Returns the position directly before the first node of the given type. + * + * @throws if no matching node exists in the document. + */ +function posOfNode(node: Node, typeName: string) { + let found = -1; + node.descendants((child, pos) => { + if (found === -1 && child.type.name === typeName) { + found = pos; + } + return found === -1; + }); + if (found === -1) { + throw new Error(`Node "${typeName}" not found in document`); + } + return found; +} + +/** + * Builds an editor state with a NodeSelection on the first node of the given + * type. + */ +function nodeSelectionStateAt(testDoc: Node, typeName: string) { + const state = createEditorState(testDoc); + const selection = NodeSelection.create( + state.doc, + posOfNode(testDoc, typeName) + ); + return state.apply(state.tr.setSelection(selection)); +} + +describe("isListActive", () => { + it("matches the closest list type", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("one")]), li([p("two")])]), + ]); + const state = stateAt(testDoc, "one"); + + expect(isListActive(bullet_list)(state)).toBe(true); + expect(isListActive(ordered_list)(state)).toBe(false); + expect(isListActive(checkbox_list)(state)).toBe(false); + }); + + it("does not mark an ancestor list of a different type as active", () => { + // An ordered list nested inside a checkbox list, selection in the + // ordered list item. + const testDoc = doc([ + checkbox_list.create(null, [ + cli([ + p("moo"), + ordered_list.create(null, [li([p("dfsdf")]), li([p("sd")])]), + ]), + ]), + ]); + const state = stateAt(testDoc, "dfsdf"); + + expect(isListActive(ordered_list)(state)).toBe(true); + expect(isListActive(checkbox_list)(state)).toBe(false); + expect(isListActive(bullet_list)(state)).toBe(false); + }); + + it("matches the parent list when the selection is in the parent item", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("moo"), ordered_list.create(null, [li([p("dfsdf")])])]), + ]), + ]); + const state = stateAt(testDoc, "moo"); + + expect(isListActive(checkbox_list)(state)).toBe(true); + expect(isListActive(ordered_list)(state)).toBe(false); + }); + + it("matches a list selected directly via a NodeSelection", () => { + const testDoc = doc([ + bullet_list.create(null, [li([p("one")]), li([p("two")])]), + ]); + const state = nodeSelectionStateAt(testDoc, "bullet_list"); + + expect(isListActive(bullet_list)(state)).toBe(true); + expect(isListActive(ordered_list)(state)).toBe(false); + expect(isListActive(checkbox_list)(state)).toBe(false); + }); + + it("matches the selected nested list, not its parent, via a NodeSelection", () => { + const testDoc = doc([ + checkbox_list.create(null, [ + cli([p("moo"), ordered_list.create(null, [li([p("dfsdf")])])]), + ]), + ]); + const state = nodeSelectionStateAt(testDoc, "ordered_list"); + + expect(isListActive(ordered_list)(state)).toBe(true); + expect(isListActive(checkbox_list)(state)).toBe(false); + expect(isListActive(bullet_list)(state)).toBe(false); + }); + + it("returns false when the selection is not in a list", () => { + const testDoc = doc([p("hello")]); + const state = stateAt(testDoc, "hello"); + + expect(isListActive(bullet_list)(state)).toBe(false); + expect(isListActive(ordered_list)(state)).toBe(false); + expect(isListActive(checkbox_list)(state)).toBe(false); + }); +}); diff --git a/shared/editor/queries/isListActive.ts b/shared/editor/queries/isListActive.ts new file mode 100644 index 0000000000..6620b95a5b --- /dev/null +++ b/shared/editor/queries/isListActive.ts @@ -0,0 +1,34 @@ +import type { NodeType } from "prosemirror-model"; +import type { EditorState } from "prosemirror-state"; +import { NodeSelection } from "prosemirror-state"; +import { findParentNode } from "./findParentNode"; +import { isList } from "./isList"; + +/** + * Checks whether the list closest to the current selection is of the given + * type. Unlike isNodeActive, this only matches the innermost list so that a + * nested list does not also mark an ancestor list of a different type as + * active in the toolbar. + * + * @param type the list node type to check for. + * @returns a function that returns true when the closest list is of the type. + */ +export const isListActive = + (type: NodeType) => + (state: EditorState): boolean => { + const { selection } = state; + + // When the list node itself is selected via a NodeSelection, consider that + // node directly — findParentNode would otherwise report its parent list. + if ( + selection instanceof NodeSelection && + isList(selection.node, state.schema) + ) { + return selection.node.type === type; + } + + const closestList = findParentNode((node) => isList(node, state.schema))( + selection + ); + return closestList?.node.type === type; + }; From 0ffe077f6eb6939819f02b8ff263e385b91a49c7 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 13 Jun 2026 13:37:49 -0400 Subject: [PATCH 236/286] fix: Various checkbox fixes (#12679) * fix: Checkbox list item margin click and nested "Hide completed" Clicking the margin beside a checkbox now places the cursor at the start of the list item instead of being a dead zone, and shows a text cursor. The "Hide completed" toggle no longer appears on a parent checkbox list when completed items live in a checkbox list nested via a regular list (checkbox -> list -> checkbox); those inner lists manage their own toggle. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Checkbox improvements * fix: Address PR review on checkbox NodeView - Remove the checkbox click listener in CheckboxItemView.destroy() to avoid leaks when items are deleted/replaced. - Globally escape "#" in the SSR fallback data URIs (replace all, not just the first occurrence). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- shared/editor/components/Styles.ts | 71 ++++++++++++--- shared/editor/nodes/CheckboxItem.ts | 76 +++++++--------- shared/editor/nodes/CheckboxItemView.ts | 114 ++++++++++++++++++++++++ shared/editor/nodes/CheckboxListView.ts | 13 ++- 4 files changed, 214 insertions(+), 60 deletions(-) create mode 100644 shared/editor/nodes/CheckboxItemView.ts diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index cf9e5917d2..bc8b8dcdb0 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -1622,13 +1622,16 @@ ul.checkbox_list > li { } ul.checkbox_list { + & > li > span[contenteditable="false"] { + cursor: text; + } + .checkbox { display: inline-block; cursor: var(--pointer); pointer-events: ${ props.readOnly && !props.readOnlyWriteCheckboxes ? "none" : "initial" }; - opacity: ${props.readOnly && !props.readOnlyWriteCheckboxes ? 0.75 : 1}; width: 14px; height: 14px; position: relative; @@ -1637,24 +1640,66 @@ ul.checkbox_list { opacity: .8; margin: 0 0.5em 0 0; - background-image: ${`url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3ZM3 2C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2H3Z' fill='${props.theme.text.replace( - "#", - "%23" - )}' /%3E%3C/svg%3E%0A");`} - &[aria-checked=true] { - opacity: 1; - background-image: ${`url( - "data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3ZM4.26825 5.85982L5.95873 7.88839L9.70003 2.9C10.0314 2.45817 10.6582 2.36863 11.1 2.7C11.5419 3.03137 11.6314 3.65817 11.3 4.1L6.80002 10.1C6.41275 10.6164 5.64501 10.636 5.2318 10.1402L2.7318 7.14018C2.37824 6.71591 2.43556 6.08534 2.85984 5.73178C3.28412 5.37821 3.91468 5.43554 4.26825 5.85982Z' fill='${props.theme.accent.replace( - "#", - "%23" - )}' /%3E%3C/svg%3E%0A" - )`}; + opacity: 1; } &:active { transform: scale(0.9); } + + svg { + display: block; + width: 14px; + height: 14px; + overflow: visible; + } + + .checkbox-box { + fill: ${props.theme.accent}; + fill-opacity: 0; + stroke: ${props.theme.text}; + stroke-width: 2; + transition: fill-opacity 100ms ease-in-out, stroke 100ms ease-in-out; + } + + .checkbox-tick { + fill: none; + stroke: ${props.theme.accentText}; + stroke-width: 2; + stroke-linecap: round; + stroke-linejoin: round; + stroke-dasharray: 14; + stroke-dashoffset: 14; + transition: stroke-dashoffset 200ms ease-in-out; + } + + &[aria-checked=true] { + .checkbox-box { + fill-opacity: 1; + stroke: ${props.theme.accent}; + } + .checkbox-tick { + stroke-dashoffset: 0; + } + } + + /* Static fallback for environments without inline SVG (e.g. SSR) */ + &:not(:has(svg)) { + background-image: ${`url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3ZM3 2C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2H3Z' fill='${props.theme.text.replace( + /#/g, + "%23" + )}' /%3E%3C/svg%3E%0A");`} + + &[aria-checked=true] { + background-image: ${`url( + "data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3ZM4.26825 5.85982L5.95873 7.88839L9.70003 2.9C10.0314 2.45817 10.6582 2.36863 11.1 2.7C11.5419 3.03137 11.6314 3.65817 11.3 4.1L6.80002 10.1C6.41275 10.6164 5.64501 10.636 5.2318 10.1402L2.7318 7.14018C2.37824 6.71591 2.43556 6.08534 2.85984 5.73178C3.28412 5.37821 3.91468 5.43554 4.26825 5.85982Z' fill='${props.theme.accent.replace( + /#/g, + "%23" + )}' /%3E%3C/svg%3E%0A" + )`}; + } + } } &:has(p:dir(rtl)) { diff --git a/shared/editor/nodes/CheckboxItem.ts b/shared/editor/nodes/CheckboxItem.ts index 4390d32f90..cc722a99d6 100644 --- a/shared/editor/nodes/CheckboxItem.ts +++ b/shared/editor/nodes/CheckboxItem.ts @@ -9,10 +9,11 @@ import { sinkListItem, liftListItem, } from "prosemirror-schema-list"; -import { v4 as uuidv4 } from "uuid"; +import { Plugin } from "prosemirror-state"; import { toggleCheckboxItems } from "../commands/toggleCheckboxItems"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; import checkboxRule from "../rules/checkboxes"; +import { CheckboxItemView } from "./CheckboxItemView"; import Node from "./Node"; export default class CheckboxItem extends Node { @@ -38,38 +39,28 @@ export default class CheckboxItem extends Node { }), }, ], - toDOM: (node) => { - const id = `checkbox-${uuidv4()}`; - const checked = node.attrs.checked.toString(); - let input; - if (typeof document !== "undefined") { - input = document.createElement("span"); - input.tabIndex = -1; - input.className = "checkbox"; - input.setAttribute("aria-checked", checked); - input.setAttribute("aria-labelledby", id); - input.setAttribute("role", "checkbox"); - input.addEventListener("click", this.handleClick); - } - - return [ - "li", - { - "data-type": this.name, - class: node.attrs.checked ? "checked" : undefined, - }, + // Rendering and interaction are handled by CheckboxItemView; this spec is + // only used for serialization (e.g. clipboard, HTML export). + toDOM: (node) => [ + "li", + { + "data-type": this.name, + class: node.attrs.checked ? "checked" : undefined, + }, + [ + "span", + { contentEditable: "false" }, [ "span", { - contentEditable: "false", + class: "checkbox", + role: "checkbox", + "aria-checked": node.attrs.checked ? "true" : "false", }, - ...(input - ? [input] - : [["span", { class: "checkbox", "aria-checked": checked }]]), ], - ["div", { id }, 0], - ]; - }, + ], + ["div", 0], + ], }; } @@ -77,23 +68,18 @@ export default class CheckboxItem extends Node { return [checkboxRule]; } - handleClick = (event: Event) => { - if (!(event.target instanceof HTMLSpanElement)) { - return; - } - - const { view } = this.editor; - const { tr } = view.state; - const { top, left } = event.target.getBoundingClientRect(); - const result = view.posAtCoords({ top, left }); - - if (result) { - const transaction = tr.setNodeMarkup(result.inside, undefined, { - checked: event.target.getAttribute("aria-checked") !== "true", - }); - view.dispatch(transaction); - } - }; + get plugins() { + return [ + new Plugin({ + props: { + nodeViews: { + [this.name]: (node, view, getPos) => + new CheckboxItemView(node, view, getPos), + }, + }, + }), + ]; + } commands({ type }: { type: NodeType }) { return { diff --git a/shared/editor/nodes/CheckboxItemView.ts b/shared/editor/nodes/CheckboxItemView.ts new file mode 100644 index 0000000000..c6e731ae94 --- /dev/null +++ b/shared/editor/nodes/CheckboxItemView.ts @@ -0,0 +1,114 @@ +import type { Node as ProsemirrorNode } from "prosemirror-model"; +import { TextSelection } from "prosemirror-state"; +import type { EditorView, NodeView } from "prosemirror-view"; +import { v4 as uuidv4 } from "uuid"; +import { isBrowser } from "../../utils/browser"; + +const checkboxSVG = `<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><rect class="checkbox-box" x="1" y="1" width="12" height="12" rx="3" /><path class="checkbox-tick" d="M3.5 7.3L6 9.8L10.5 4.2" /></svg>`; + +/** + * Custom NodeView for checkbox items. Keeps the DOM stable across checked + * state changes so the tick can transition its stroke when toggled, and + * handles clicks on both the checkbox and the margin beside it. + */ +export class CheckboxItemView implements NodeView { + dom: HTMLElement; + contentDOM: HTMLElement; + + private view: EditorView; + private getPos: () => number | undefined; + private checkbox: HTMLElement; + private wrapper: HTMLElement; + + constructor( + node: ProsemirrorNode, + view: EditorView, + getPos: () => number | undefined + ) { + this.view = view; + this.getPos = getPos; + + const id = `checkbox-${uuidv4()}`; + + this.dom = document.createElement("li"); + this.dom.setAttribute("data-type", "checkbox_item"); + + this.checkbox = document.createElement("span"); + this.checkbox.tabIndex = -1; + this.checkbox.className = "checkbox"; + this.checkbox.setAttribute("aria-labelledby", id); + this.checkbox.setAttribute("role", "checkbox"); + this.checkbox.innerHTML = checkboxSVG; + + this.wrapper = document.createElement("span"); + this.wrapper.contentEditable = "false"; + this.wrapper.appendChild(this.checkbox); + if (isBrowser) { + this.wrapper.addEventListener("click", this.handleClick); + } + + this.contentDOM = document.createElement("div"); + this.contentDOM.id = id; + + this.dom.appendChild(this.wrapper); + this.dom.appendChild(this.contentDOM); + + this.updateChecked(node); + } + + update(node: ProsemirrorNode) { + if (node.type.name !== "checkbox_item") { + return false; + } + this.updateChecked(node); + return true; + } + + ignoreMutation(mutation: MutationRecord) { + // Only mutations within the editable content should be read by the editor; + // the checkbox chrome is managed here. + return !this.contentDOM.contains(mutation.target); + } + + destroy() { + if (isBrowser) { + this.wrapper.removeEventListener("click", this.handleClick); + } + } + + private updateChecked(node: ProsemirrorNode) { + const checked = !!node.attrs.checked; + this.checkbox.setAttribute("aria-checked", checked.toString()); + this.dom.classList.toggle("checked", checked); + } + + private handleClick = (event: Event) => { + // The target may be the checkbox itself, the SVG inside it, or the + // surrounding margin, so resolve up to the nearest checkbox element. + if (!(event.target instanceof Element)) { + return; + } + const checkbox = event.target.closest(".checkbox"); + + const pos = this.getPos(); + if (pos === undefined) { + return; + } + + const { view } = this; + const { tr, doc } = view.state; + + if (checkbox) { + // Clicking the checkbox toggles its checked state. + view.dispatch( + tr.setNodeMarkup(pos, undefined, { + checked: checkbox.getAttribute("aria-checked") !== "true", + }) + ); + } else if (view.editable) { + // Clicking the margin beside the checkbox focuses the start of the item. + view.dispatch(tr.setSelection(TextSelection.near(doc.resolve(pos + 1)))); + view.focus(); + } + }; +} diff --git a/shared/editor/nodes/CheckboxListView.ts b/shared/editor/nodes/CheckboxListView.ts index c7a7930bfa..8972fd5775 100644 --- a/shared/editor/nodes/CheckboxListView.ts +++ b/shared/editor/nodes/CheckboxListView.ts @@ -97,15 +97,24 @@ export class CheckboxListView implements NodeView { const storageKey = `checklist-${listId}-${this.userIdentifier}-hidden`; const shouldCollapse = !!Storage.get(storageKey); - // Count completed items, including nested checkbox lists + // Count completed items, including checkbox lists nested directly within a + // checkbox_item (which are toggle-less). Skip checkbox lists nested via a + // non-checkbox list, as those manage their own toggle. let completedItemsCount = 0; - this.node.descendants((childNode) => { + this.node.descendants((childNode, _pos, parent) => { + if ( + childNode.type.name === "checkbox_list" && + parent?.type.name !== "checkbox_item" + ) { + return false; + } if ( childNode.type.name === "checkbox_item" && childNode.attrs.checked === true ) { completedItemsCount++; } + return undefined; }); // Show/hide button based on completed count From 3e4727d67cf6888f5fb262a0f8a8fe3cfa25c96a Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 13 Jun 2026 13:50:51 -0400 Subject: [PATCH 237/286] perf: Server startup time (#12680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: lazy-load jsdom in DocumentHelper to keep it off startup path DocumentHelper is imported by the Document and Collection models, so its eager `import { JSDOM } from "jsdom"` pulled jsdom (~140ms) into every server process at boot. jsdom is only needed by toEmailDiff for HTML export, so load it lazily there — matching the existing pattern in the sibling ProsemirrorHelper.toHTML. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * perf: defer AWS CRT signer load out of the startup path S3Storage had a top-level `import "@aws-sdk/signature-v4-crt"` side effect that loaded the native CRT binding (~140ms) whenever the module was imported — which happens at boot via the Attachment model in every process, even for local-storage deployments that never construct S3Storage. Move the import into the S3Storage constructor so the native binding only loads when S3 storage is actually instantiated, keeping it off the startup path for local-storage deployments. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * perf: load dd-trace only when APM is enabled tracer.ts imported dd-trace unconditionally, so the library (which patches Node internals on require, ~35-80ms) loaded at startup in every process — including the common self-hosted case where DD_API_KEY is unset and APM does nothing. tracer.ts is the first import in server/index.ts, so this cost is fully serial on the boot path. Require dd-trace only when DD_API_KEY is set; otherwise fall back to a no-op tracer covering the surface used by callers (scope/startSpan and a no-op span), so tracing.ts and the named helpers work unchanged. The dd-trace/ext/tags import used by tracing.ts is a standalone constants module and does not pull in the full tracer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/logging/tracer.ts | 29 +++++++++++++++++++++--- server/models/helpers/DocumentHelper.tsx | 3 ++- server/storage/files/S3Storage.ts | 6 ++++- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/server/logging/tracer.ts b/server/logging/tracer.ts index 61c9bd4cdc..ebe2a56949 100644 --- a/server/logging/tracer.ts +++ b/server/logging/tracer.ts @@ -1,5 +1,4 @@ -import type { Span } from "dd-trace"; -import tracer from "dd-trace"; +import type { Span, Tracer } from "dd-trace"; import env from "@server/env"; interface ReportableError extends Error { @@ -22,9 +21,25 @@ type PrivateDatadogContext = { }; }; +// dd-trace patches Node internals on require and is comparatively expensive to +// load, so it is kept off the startup path unless APM is actually enabled. When +// disabled we fall back to a no-op tracer that satisfies the surface consumed by +// callers (see tracing.ts) so they don't need to branch. +const noopSpan = { + addTags: () => noopSpan, + setTag: () => noopSpan, + finish: () => undefined, +} as unknown as Span; + +let tracer: Tracer; + // If the DataDog agent is installed and the DD_API_KEY environment variable is -// in the environment then we can safely attempt to start the DD tracer +// in the environment then we can safely attempt to start the DD tracer. This +// must happen before any instrumented module is imported. if (env.DD_API_KEY) { + const ddTrace = require("dd-trace") as { default?: Tracer }; + tracer = ddTrace.default ?? (ddTrace as unknown as Tracer); + tracer.init({ version: env.VERSION, service: env.DD_SERVICE, @@ -35,6 +50,14 @@ if (env.DD_API_KEY) { // Disable per-middleware spans so that non-reportable errors are not captured // This is also generally excessive noise tracer.use("koa", { middleware: false }); +} else { + tracer = { + scope: () => ({ + active: () => null, + activate: <T>(_span: Span, fn: () => T) => fn(), + }), + startSpan: () => noopSpan, + } as unknown as Tracer; } const getCurrentSpan = (): Span | null => tracer.scope().active(); diff --git a/server/models/helpers/DocumentHelper.tsx b/server/models/helpers/DocumentHelper.tsx index 08813948c5..767dd7c108 100644 --- a/server/models/helpers/DocumentHelper.tsx +++ b/server/models/helpers/DocumentHelper.tsx @@ -1,4 +1,3 @@ -import { JSDOM } from "jsdom"; import { Node, Fragment, type NodeType } from "prosemirror-model"; import ukkonen from "ukkonen"; import { updateYFragment, yDocToProsemirrorJSON } from "y-prosemirror"; @@ -367,6 +366,8 @@ export class DocumentHelper { } const html = await DocumentHelper.diff(before, after, options); + // Loaded lazily to keep jsdom off the startup path — only HTML export needs it. + const { JSDOM } = await import("jsdom"); const dom = new JSDOM(html); const doc = dom.window.document; diff --git a/server/storage/files/S3Storage.ts b/server/storage/files/S3Storage.ts index b63bf36a0c..cf0663d3c9 100644 --- a/server/storage/files/S3Storage.ts +++ b/server/storage/files/S3Storage.ts @@ -9,7 +9,6 @@ import { CopyObjectCommand, } from "@aws-sdk/client-s3"; import { Upload } from "@aws-sdk/lib-storage"; -import "@aws-sdk/signature-v4-crt"; // https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt import type { PresignedPostOptions } from "@aws-sdk/s3-presigned-post"; import { createPresignedPost } from "@aws-sdk/s3-presigned-post"; import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; @@ -26,6 +25,11 @@ export default class S3Storage extends BaseStorage { constructor() { super(); + // Loaded here rather than at module top-level so the native CRT binding + // only loads when S3 storage is actually used, keeping it off startup. + // https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt + require("@aws-sdk/signature-v4-crt"); + this.client = new S3Client({ bucketEndpoint: env.AWS_S3_ACCELERATE_URL ? true : false, forcePathStyle: env.AWS_S3_FORCE_PATH_STYLE, From a1481679e41f408532c8df5908449e43b13624d6 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 13 Jun 2026 14:40:13 -0400 Subject: [PATCH 238/286] fix: Tracking of block toolbars (#12681) --- app/editor/components/SelectionToolbar.tsx | 13 ++ app/editor/components/StickyBlockToolbar.tsx | 182 +++++++++++++++++++ app/editor/extensions/SelectionToolbar.tsx | 7 +- shared/editor/types/index.ts | 8 + shared/styles/depths.ts | 2 +- 5 files changed, 207 insertions(+), 5 deletions(-) create mode 100644 app/editor/components/StickyBlockToolbar.tsx diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index af5ee74680..ed2637bb0f 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -25,6 +25,7 @@ import FloatingToolbar from "./FloatingToolbar"; import LinkEditor from "./LinkEditor"; import ToolbarMenu from "./ToolbarMenu"; import InlineMenu from "./InlineMenu"; +import StickyBlockToolbar from "./StickyBlockToolbar"; import { isModKey } from "@shared/utils/keyboard"; type Props = { @@ -275,6 +276,18 @@ export function SelectionToolbar(props: Props) { return <InlineMenu items={items} rtl={rtl} />; } + // Block toolbars (code, notice) stick to the top of the viewport as the block + // scrolls instead of floating at a position fixed on selection. On mobile the + // floating toolbar renders as a bottom bar, so the sticky path is desktop only. + if ( + matched?.sticky && + !isMobile && + activeToolbar === Toolbar.Menu && + items.length + ) { + return <StickyBlockToolbar ref={menuRef} items={items} rtl={rtl} />; + } + return ( <FloatingToolbar align={align} diff --git a/app/editor/components/StickyBlockToolbar.tsx b/app/editor/components/StickyBlockToolbar.tsx new file mode 100644 index 0000000000..b230b789bf --- /dev/null +++ b/app/editor/components/StickyBlockToolbar.tsx @@ -0,0 +1,182 @@ +import { NodeSelection } from "prosemirror-state"; +import type { EditorView } from "prosemirror-view"; +import * as React from "react"; +import styled from "styled-components"; +import { isCode } from "@shared/editor/lib/isCode"; +import { findParentNode } from "@shared/editor/queries/findParentNode"; +import type { MenuItem } from "@shared/editor/types"; +import { depths, s } from "@shared/styles"; +import { HEADER_HEIGHT } from "~/components/Header"; +import { Portal } from "~/components/Portal"; +import useWindowSize from "~/hooks/useWindowSize"; +import { useEditor } from "./EditorContext"; +import ToolbarMenu from "./ToolbarMenu"; + +type Props = { + /** The menu items to render in the toolbar. */ + items: MenuItem[]; + /** Whether the text direction is right-to-left. */ + rtl: boolean; +}; + +type TrackRect = { + top: number; + left: number; + width: number; + height: number; +}; + +// Height of the toolbar, used to offset it above the block. +const menuHeight = 36; + +// Gap between the toolbar and the block / document header. +const margin = 8; + +/** + * Resolves the DOM element of the block (code or notice) the current selection + * is anchored to, which the toolbar tracks. + */ +function getBlockElement(view: EditorView): HTMLElement | null { + const { selection } = view.state; + const isCodeNodeSelection = + selection instanceof NodeSelection && isCode(selection.node); + const block = isCodeNodeSelection + ? { pos: selection.from } + : (findParentNode(isCode)(selection) ?? + findParentNode((node) => node.type.name === "container_notice")( + selection + )); + if (!block) { + return null; + } + const dom = view.nodeDOM(block.pos); + return dom instanceof HTMLElement ? dom : null; +} + +function sameRect(a: TrackRect | null, b: TrackRect | null) { + if (a === b) { + return true; + } + if (!a || !b) { + return false; + } + return ( + a.top === b.top && + a.left === b.left && + a.width === b.width && + a.height === b.height + ); +} + +/** + * Renders a block toolbar (code, notice) as a sticky element that pins to the + * top of the viewport while the block is scrolled through, rather than a + * floating toolbar positioned once over the selection and left behind on + * scroll. A track element is absolutely positioned over the block; the toolbar + * is a `position: sticky` child constrained to that track, so the browser keeps + * it visible without any scroll listener and releases it when the block leaves + * the viewport. + * + * @param items - the menu items to render. + * @param rtl - whether the document is right-to-left. + * @returns the sticky block toolbar. + */ +const StickyBlockToolbar = React.forwardRef(function StickyBlockToolbar_( + { items, rtl }: Props, + ref: React.RefObject<HTMLDivElement> +) { + const { view } = useEditor(); + const trackRef = ref || React.createRef<HTMLDivElement>(); + const [rect, setRect] = React.useState<TrackRect | null>(null); + + // Re-measure when the window resizes; scroll is handled by `position: sticky`. + useWindowSize(); + + const element = getBlockElement(view); + + // Measure the block relative to the portal's offset parent. + React.useLayoutEffect(() => { + const track = trackRef.current; + if (!element || !track) { + setRect((prev) => (prev === null ? prev : null)); + return; + } + + const offsetParent = track.offsetParent; + const parent = offsetParent + ? offsetParent.getBoundingClientRect() + : { top: 0, left: 0 }; + // Extend the track above the block by the toolbar height so the toolbar's + // natural (unstuck) position floats above the block rather than over its + // first line. The track still ends at the block's bottom so the toolbar is + // released as the block scrolls out of view. + const offset = menuHeight + margin; + const bounds = element.getBoundingClientRect(); + const next: TrackRect = { + top: Math.round(bounds.top - parent.top - offset), + left: Math.round(bounds.left - parent.left), + width: Math.round(bounds.width), + height: Math.round(bounds.height + offset), + }; + + setRect((prev) => (sameRect(prev, next) ? prev : next)); + }); + + return ( + <Portal> + <Track + ref={trackRef} + $rtl={rtl} + style={ + rect + ? { + top: rect.top, + left: rect.left, + width: rect.width, + height: rect.height, + visibility: "visible", + } + : undefined + } + > + <Sticky> + <Background> + <ToolbarMenu items={items} /> + </Background> + </Sticky> + </Track> + </Portal> + ); +}); + +const Track = styled.div<{ $rtl: boolean }>` + position: absolute; + top: 0; + left: -10000px; + visibility: hidden; + display: flex; + justify-content: ${(props) => (props.$rtl ? "flex-start" : "flex-end")}; + align-items: flex-start; + pointer-events: none; + z-index: ${depths.editorToolbar}; + + @media print { + display: none; + } +`; + +const Sticky = styled.div` + position: sticky; + top: calc(var(--header-offset, ${HEADER_HEIGHT}px) + ${margin}px); + pointer-events: auto; + line-height: 0; +`; + +const Background = styled.div` + background-color: ${s("menuBackground")}; + box-shadow: ${s("menuShadow")}; + border-radius: 4px; + height: 36px; +`; + +export default StickyBlockToolbar; diff --git a/app/editor/extensions/SelectionToolbar.tsx b/app/editor/extensions/SelectionToolbar.tsx index 0c172be290..b71ec24f10 100644 --- a/app/editor/extensions/SelectionToolbar.tsx +++ b/app/editor/extensions/SelectionToolbar.tsx @@ -58,6 +58,7 @@ export default class SelectionToolbarExtension extends Extension { { priority: 100, align: "end", + sticky: true, matches: (ctx) => ctx.isInCodeBlock && (ctx.isEmpty || ctx.selectedNodeType !== undefined), @@ -95,14 +96,12 @@ export default class SelectionToolbarExtension extends Extension { priority: 30, matches: (ctx) => ctx.readOnly, getItems: (ctx) => - getReadOnlyMenuItems( - ctx, - this.editor.props.canUpdate ?? false - ), + getReadOnlyMenuItems(ctx, this.editor.props.canUpdate ?? false), }, { priority: 20, align: "end", + sticky: true, matches: (ctx) => ctx.isInNotice && ctx.isEmpty, getItems: (ctx) => getNoticeMenuItems(ctx), }, diff --git a/shared/editor/types/index.ts b/shared/editor/types/index.ts index 7d8181369a..3ad48a1ec6 100644 --- a/shared/editor/types/index.ts +++ b/shared/editor/types/index.ts @@ -148,6 +148,14 @@ export interface SelectionToolbarMenuDescriptor { priority: number; /** Toolbar alignment when this menu is active. Defaults to "center". */ align?: "center" | "start" | "end"; + /** + * Whether the toolbar is anchored to a block rather than a transient text + * selection. Block toolbars (code, notice) stay visible while the caret sits + * in the block, so on desktop they are rendered as a sticky element that pins + * to the top of the viewport as the block scrolls, instead of a floating + * toolbar positioned once and left behind on scroll. + */ + sticky?: boolean; /** * How the menu is presented. "toolbar" (default) renders a horizontal strip * of buttons; "inline" renders a vertical menu anchored to the selection diff --git a/shared/styles/depths.ts b/shared/styles/depths.ts index 92003cbfeb..18462c7102 100644 --- a/shared/styles/depths.ts +++ b/shared/styles/depths.ts @@ -1,8 +1,8 @@ const depths = { toc: 100, + editorToolbar: 750, header: 800, sidebar: 900, - editorToolbar: 925, mobileSidebar: 930, hoverPreview: 950, // Note: editor lightbox is z-index 999 From d85ead5a461e66e124d2419284d59a267c6e57a6 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sat, 13 Jun 2026 15:26:09 -0400 Subject: [PATCH 239/286] Revert optional mention label (#12682) --- app/editor/components/MentionMenu.tsx | 5 ++--- app/editor/menus/block.tsx | 14 ++++++++----- shared/editor/nodes/Mention.tsx | 30 +++++++-------------------- 3 files changed, 18 insertions(+), 31 deletions(-) diff --git a/app/editor/components/MentionMenu.tsx b/app/editor/components/MentionMenu.tsx index ec74866bb0..a2e8f94b07 100644 --- a/app/editor/components/MentionMenu.tsx +++ b/app/editor/components/MentionMenu.tsx @@ -47,9 +47,7 @@ interface MentionItem extends MenuItem { id: string; type: MentionType; modelId: string; - // Date mentions intentionally omit a label — their text is derived from - // the ISO `modelId` so nothing human-readable is persisted. - label?: string; + label: string; actorId?: string; }; } @@ -119,6 +117,7 @@ function MentionMenu({ search = "", isActive, ...rest }: Props) { id: uuidv4(), type: MentionType.Date, modelId: parsedISODate, + label: parsedISODate, actorId, }, } as MentionItem, diff --git a/app/editor/menus/block.tsx b/app/editor/menus/block.tsx index d06b895b94..5fbe318265 100644 --- a/app/editor/menus/block.tsx +++ b/app/editor/menus/block.tsx @@ -193,11 +193,15 @@ export default function blockMenuItems( keywords: "clock today date time now", icon: <CalendarIcon />, appendSpace: true, - attrs: () => ({ - id: uuidv4(), - type: MentionType.Date, - modelId: toISODate(new Date()), - }), + attrs: () => { + const modelId = toISODate(new Date()); + return { + id: uuidv4(), + type: MentionType.Date, + modelId, + label: modelId, + }; + }, }, { name: "separator", diff --git a/shared/editor/nodes/Mention.tsx b/shared/editor/nodes/Mention.tsx index 5370d9a2bd..e121a67423 100644 --- a/shared/editor/nodes/Mention.tsx +++ b/shared/editor/nodes/Mention.tsx @@ -14,7 +14,6 @@ import { v4 as uuidv4 } from "uuid"; import env from "../../env"; import type { UnfurlResponse } from "../../types"; import { MentionType, UnfurlResourceType } from "../../types"; -import { dateToReadable } from "../../utils/date"; import { MentionCollection, MentionDocument, @@ -41,25 +40,17 @@ export default class Mention extends Node { } get schema(): NodeSpec { - // Date mentions derive their text from the ISO `modelId`, which is the - // single source of truth — no human-readable label is persisted for them. - const toPlainText = (node: ProsemirrorNode) => { - if (node.attrs.type === MentionType.Date) { - return dateToReadable(node.attrs.modelId); - } - return node.attrs.type === MentionType.User + const toPlainText = (node: ProsemirrorNode) => + node.attrs.type === MentionType.User ? `@${node.attrs.label}` : node.attrs.label; - }; return { attrs: { type: { default: MentionType.User, }, - label: { - default: undefined, - }, + label: {}, modelId: {}, actorId: { default: undefined, @@ -94,9 +85,7 @@ export default class Mention extends Node { type, modelId, actorId: dom.dataset.actorid, - // Date mentions derive their text from `modelId`; never capture - // the rendered text as a persisted label. - label: type === MentionType.Date ? undefined : dom.innerText, + label: dom.innerText, id: dom.id, href: dom.getAttribute("href"), unfurl: dom.dataset.unfurl @@ -340,10 +329,7 @@ export default class Mention extends Node { toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { const mType = node.attrs.type; const mId = node.attrs.modelId; - // Date mentions have no stored label; the readable text is derived from - // the ISO `modelId` so it can never drift from the source of truth. - const label = - mType === MentionType.Date ? dateToReadable(mId) : node.attrs.label; + const label = node.attrs.label; const id = node.attrs.id; // Use regular links for document and collection mentions @@ -364,10 +350,7 @@ export default class Mention extends Node { id: tok.attrGet("id"), type: tok.attrGet("type"), modelId: tok.attrGet("modelId"), - // Date mentions derive their text from `modelId`; the link text is not - // persisted as a label. - label: - tok.attrGet("type") === MentionType.Date ? undefined : tok.content, + label: tok.content, }), }; } @@ -386,6 +369,7 @@ export default class Mention extends Node { const transaction = tr.setNodeMarkup(pos, undefined, { ...node.attrs, modelId, + label: modelId, }); view.dispatch(transaction); }; From 2a5346d32668a464502b3aacd7b09acf97dc3dff Mon Sep 17 00:00:00 2001 From: Dmytro Oliinyk <dima@oliinyk.com> Date: Sun, 14 Jun 2026 16:14:01 +0200 Subject: [PATCH 240/286] feat(s3): add optional CloudFront support for signed attachment URLs (#12656) * feat(s3): add optional CloudFront support for signed attachment URLs Serve attachment downloads through CloudFront when configured, while keeping uploads on the direct S3 endpoint. Signed URLs require a key pair; missing or invalid signing config falls back to S3 presigned URLs instead of unsigned CDN links. CloudFront secrets are kept server-side only. Co-authored-by: Cursor <cursoragent@cursor.com> * Update .env.sample Co-authored-by: Tom Moor <tom.moor@gmail.com> * Update server/env.ts Co-authored-by: Tom Moor <tom.moor@gmail.com> * fix(s3): address CloudFront PR review feedback" --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Tom Moor <tom.moor@gmail.com> --- .env.sample | 5 + package.json | 1 + server/env.ts | 30 +++++ .../files/S3Storage.cloudfront.test.ts | 121 ++++++++++++++++++ server/storage/files/S3Storage.ts | 111 ++++++++++++---- yarn.lock | 31 +++++ 6 files changed, 274 insertions(+), 25 deletions(-) create mode 100644 server/storage/files/S3Storage.cloudfront.test.ts diff --git a/.env.sample b/.env.sample index 19136f8aae..e35f803405 100644 --- a/.env.sample +++ b/.env.sample @@ -120,6 +120,11 @@ AWS_S3_UPLOAD_BUCKET_NAME=bucket_name_here AWS_S3_FORCE_PATH_STYLE=true AWS_S3_ACL=private +# Optional CloudFront CDN for attachment downloads (uploads stay on S3). +# Requires a key pair for signed URLs; otherwise downloads fall back to S3. +AWS_CLOUDFRONT_URL= +AWS_CLOUDFRONT_KEY_PAIR_ID= +AWS_CLOUDFRONT_PRIVATE_KEY= # –––––––––––––––––––––––––––––––––––––– # –––––––––––––––– SSL ––––––––––––––– diff --git a/package.json b/package.json index b13461d9e5..573272b959 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ ], "dependencies": { "@aws-sdk/client-s3": "^3.1053.0", + "@aws-sdk/cloudfront-signer": "^3.1053.0", "@aws-sdk/lib-storage": "^3.1053.0", "@aws-sdk/s3-presigned-post": "^3.1053.0", "@aws-sdk/s3-request-presigner": "^3.1053.0", diff --git a/server/env.ts b/server/env.ts index a00ee84a46..c7661209b1 100644 --- a/server/env.ts +++ b/server/env.ts @@ -645,6 +645,36 @@ export class Environment { @IsOptional() public AWS_S3_ACCELERATE_URL = environment.AWS_S3_ACCELERATE_URL ?? ""; + /** + * Optional CloudFront distribution URL for serving attachment downloads. + * Uploads continue to use the S3 endpoint directly. When set together with + * AWS_CLOUDFRONT_KEY_PAIR_ID and a private key, signed CloudFront URLs are + * used for downloads. If signing credentials are missing, S3 presigned URLs + * are used instead. + * Example: https://d1a2b3c4d5e6f.cloudfront.net (no trailing slash) + */ + @IsOptional() + public AWS_CLOUDFRONT_URL = this.toOptionalString(environment.AWS_CLOUDFRONT_URL); + + /** + * CloudFront key pair ID for signed download URLs. Required together with a + * private key when AWS_CLOUDFRONT_URL is set. + */ + @IsOptional() + public AWS_CLOUDFRONT_KEY_PAIR_ID = this.toOptionalString( + environment.AWS_CLOUDFRONT_KEY_PAIR_ID + ); + + /** + * PEM-encoded RSA private key for CloudFront signed URLs, or a base64-encoded + * PEM string on a single line. Use a YAML block scalar in docker-compose for + * multi-line PEM values. + */ + @IsOptional() + public AWS_CLOUDFRONT_PRIVATE_KEY = this.toOptionalString( + environment.AWS_CLOUDFRONT_PRIVATE_KEY + ); + /** * Optional AWS S3 endpoint URL for file attachments. */ diff --git a/server/storage/files/S3Storage.cloudfront.test.ts b/server/storage/files/S3Storage.cloudfront.test.ts new file mode 100644 index 0000000000..b6204b4bfe --- /dev/null +++ b/server/storage/files/S3Storage.cloudfront.test.ts @@ -0,0 +1,121 @@ +import type S3Storage from "./S3Storage"; + +const { mockEnv, mockGetS3SignedUrl, mockGetCloudFrontSignedUrl } = vi.hoisted( + () => ({ + mockEnv: { + AWS_CLOUDFRONT_URL: undefined as string | undefined, + AWS_CLOUDFRONT_KEY_PAIR_ID: undefined as string | undefined, + AWS_CLOUDFRONT_PRIVATE_KEY: undefined as string | undefined, + AWS_S3_UPLOAD_BUCKET_URL: "http://s3:4569", + AWS_S3_UPLOAD_BUCKET_NAME: "bucket", + AWS_S3_ACCELERATE_URL: "", + AWS_REGION: "us-east-1", + AWS_S3_FORCE_PATH_STYLE: true, + }, + mockGetS3SignedUrl: vi.fn(), + mockGetCloudFrontSignedUrl: vi.fn(), + }) +); + +vi.mock("@server/env", () => ({ + default: mockEnv, +})); + +vi.mock("@aws-sdk/signature-v4-crt", () => ({})); + +vi.mock("@aws-sdk/s3-request-presigner", () => ({ + getSignedUrl: mockGetS3SignedUrl, +})); + +vi.mock("@aws-sdk/cloudfront-signer", () => ({ + getSignedUrl: mockGetCloudFrontSignedUrl, +})); + +vi.mock("@aws-sdk/client-s3", () => ({ + S3Client: class MockS3Client { + send = vi.fn(); + }, + DeleteObjectCommand: vi.fn(), + GetObjectCommand: vi.fn(), + HeadObjectCommand: vi.fn(), + CopyObjectCommand: vi.fn(), +})); + +describe("S3Storage CloudFront signed URLs", () => { + let Storage: typeof S3Storage; + + beforeEach(async () => { + vi.resetModules(); + mockEnv.AWS_CLOUDFRONT_URL = undefined; + mockEnv.AWS_CLOUDFRONT_KEY_PAIR_ID = undefined; + mockEnv.AWS_CLOUDFRONT_PRIVATE_KEY = undefined; + mockGetS3SignedUrl.mockReset(); + mockGetCloudFrontSignedUrl.mockReset(); + mockGetS3SignedUrl.mockResolvedValue("https://s3.example/presigned"); + mockGetCloudFrontSignedUrl.mockReturnValue("https://cf.example/signed"); + + Storage = (await import("./S3Storage")).default; + }); + + it("should return a CloudFront signed URL when signing is configured", async () => { + mockEnv.AWS_CLOUDFRONT_URL = "https://d111.cloudfront.net"; + mockEnv.AWS_CLOUDFRONT_KEY_PAIR_ID = "K2ABCDEF"; + mockEnv.AWS_CLOUDFRONT_PRIVATE_KEY = "-----BEGIN RSA PRIVATE KEY-----"; + + const storage = new Storage(); + const url = await storage.getSignedUrl("uploads/test.png"); + + expect(url).toBe("https://cf.example/signed"); + expect(mockGetCloudFrontSignedUrl).toHaveBeenCalledWith( + expect.objectContaining({ + url: "https://d111.cloudfront.net/uploads/test.png", + keyPairId: "K2ABCDEF", + privateKey: "-----BEGIN RSA PRIVATE KEY-----", + }) + ); + expect(mockGetS3SignedUrl).not.toHaveBeenCalled(); + }); + + it("should fall back to S3 when CloudFront signing credentials are missing", async () => { + mockEnv.AWS_CLOUDFRONT_URL = "https://d111.cloudfront.net"; + + const storage = new Storage(); + const url = await storage.getSignedUrl("uploads/test.png"); + + expect(url).toBe("http://localhost:4569/bucket/uploads/test.png"); + expect(mockGetCloudFrontSignedUrl).not.toHaveBeenCalled(); + expect(mockGetS3SignedUrl).not.toHaveBeenCalled(); + }); + + it("should fall back to S3 when CloudFront signing fails", async () => { + mockEnv.AWS_CLOUDFRONT_URL = "https://d111.cloudfront.net"; + mockEnv.AWS_CLOUDFRONT_KEY_PAIR_ID = "K2ABCDEF"; + mockEnv.AWS_CLOUDFRONT_PRIVATE_KEY = "-----BEGIN RSA PRIVATE KEY-----"; + mockGetCloudFrontSignedUrl.mockImplementationOnce(() => { + throw new Error("signing failed"); + }); + + const storage = new Storage(); + const url = await storage.getSignedUrl("uploads/test.png"); + + expect(url).toBe("http://localhost:4569/bucket/uploads/test.png"); + expect(mockGetS3SignedUrl).not.toHaveBeenCalled(); + }); + + it("should decode a base64-encoded private key in AWS_CLOUDFRONT_PRIVATE_KEY", async () => { + mockEnv.AWS_CLOUDFRONT_URL = "https://d111.cloudfront.net"; + mockEnv.AWS_CLOUDFRONT_KEY_PAIR_ID = "K2ABCDEF"; + mockEnv.AWS_CLOUDFRONT_PRIVATE_KEY = Buffer.from( + "-----BEGIN RSA PRIVATE KEY-----" + ).toString("base64"); + + const storage = new Storage(); + await storage.getSignedUrl("uploads/test.png"); + + expect(mockGetCloudFrontSignedUrl).toHaveBeenCalledWith( + expect.objectContaining({ + privateKey: "-----BEGIN RSA PRIVATE KEY-----", + }) + ); + }); +}); diff --git a/server/storage/files/S3Storage.ts b/server/storage/files/S3Storage.ts index cf0663d3c9..e9d4777971 100644 --- a/server/storage/files/S3Storage.ts +++ b/server/storage/files/S3Storage.ts @@ -12,6 +12,7 @@ import { Upload } from "@aws-sdk/lib-storage"; import type { PresignedPostOptions } from "@aws-sdk/s3-presigned-post"; import { createPresignedPost } from "@aws-sdk/s3-presigned-post"; import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; +import { getSignedUrl as getCloudFrontSignedUrl } from "@aws-sdk/cloudfront-signer"; import fs from "fs-extra"; import invariant from "invariant"; import { compact } from "es-toolkit/compat"; @@ -100,6 +101,10 @@ export default class S3Storage extends BaseStorage { } public getUrlForKey(key: string): string { + if (env.AWS_CLOUDFRONT_URL) { + const base = env.AWS_CLOUDFRONT_URL.replace(/\/$/, ""); + return `${base}/${key}`; + } return `${this.getPublicEndpoint()}/${key}`; } @@ -146,35 +151,35 @@ export default class S3Storage extends BaseStorage { key: string, expiresIn = S3Storage.defaultSignedUrlExpires ) => { - const isDocker = env.AWS_S3_UPLOAD_BUCKET_URL.match(/http:\/\/s3:/); - const params = { - Bucket: this.getBucket(), - Key: key, - }; - - if (isDocker) { - return `${this.getPublicEndpoint()}/${key}`; - } else { - // Ensure expiration does not exceed AWS S3 Signature V4 limit of 7 days - const clampedExpiresIn = Math.min( - expiresIn, - S3Storage.maxSignedUrlExpires - ); - - const command = new GetObjectCommand(params); - const url = await getSignedUrl(this.client, command, { - expiresIn: clampedExpiresIn, - }); - - if (env.AWS_S3_ACCELERATE_URL) { - return url.replace( - env.AWS_S3_UPLOAD_BUCKET_URL, - env.AWS_S3_ACCELERATE_URL + if (env.AWS_CLOUDFRONT_URL) { + const privateKey = this.getCloudFrontPrivateKey(); + if (!env.AWS_CLOUDFRONT_KEY_PAIR_ID || !privateKey) { + Logger.warn( + "AWS_CLOUDFRONT_URL is set but signing credentials are missing, falling back to S3 presigned URLs", + { key } ); + return this.getS3PresignedUrl(key, expiresIn); } - return url; + const cfUrl = this.getCloudFrontUrlForKey(key); + + try { + return getCloudFrontSignedUrl({ + url: cfUrl, + keyPairId: env.AWS_CLOUDFRONT_KEY_PAIR_ID, + privateKey, + dateLessThan: new Date(Date.now() + expiresIn * 1000).toISOString(), + }); + } catch (err) { + Logger.error("Failed to sign CloudFront URL, falling back to S3", err, { + key, + cfUrl, + }); + return this.getS3PresignedUrl(key, expiresIn); + } } + + return this.getS3PresignedUrl(key, expiresIn); }; public getFileHandle(key: string): Promise<{ @@ -261,6 +266,62 @@ export default class S3Storage extends BaseStorage { private client: S3Client; + private getCloudFrontUrlForKey(key: string): string { + if (!env.AWS_CLOUDFRONT_URL) { + throw new Error("CloudFront URL is not configured"); + } + const base = env.AWS_CLOUDFRONT_URL.replace(/\/$/, ""); + return `${base}/${encodeURI(key)}`; + } + + private getCloudFrontPrivateKey(): string | undefined { + const key = env.AWS_CLOUDFRONT_PRIVATE_KEY; + if (!key) { + return undefined; + } + + if (key.includes("BEGIN")) { + return key; + } + + return Buffer.from(key, "base64").toString("utf-8"); + } + + private getS3PresignedUrl = async ( + key: string, + expiresIn = S3Storage.defaultSignedUrlExpires + ) => { + const isDocker = env.AWS_S3_UPLOAD_BUCKET_URL.match(/http:\/\/s3:/); + const params = { + Bucket: this.getBucket(), + Key: key, + }; + + if (isDocker) { + return `${this.getPublicEndpoint()}/${key}`; + } + + // Ensure expiration does not exceed AWS S3 Signature V4 limit of 7 days + const clampedExpiresIn = Math.min( + expiresIn, + S3Storage.maxSignedUrlExpires + ); + + const command = new GetObjectCommand(params); + const url = await getSignedUrl(this.client, command, { + expiresIn: clampedExpiresIn, + }); + + if (env.AWS_S3_ACCELERATE_URL) { + return url.replace( + env.AWS_S3_UPLOAD_BUCKET_URL, + env.AWS_S3_ACCELERATE_URL + ); + } + + return url; + }; + private getEndpoint() { if (env.AWS_S3_ACCELERATE_URL) { return env.AWS_S3_ACCELERATE_URL; diff --git a/yarn.lock b/yarn.lock index 0574a9c863..77e96ef583 100644 --- a/yarn.lock +++ b/yarn.lock @@ -136,6 +136,16 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/cloudfront-signer@npm:^3.1053.0": + version: 3.1063.0 + resolution: "@aws-sdk/cloudfront-signer@npm:3.1063.0" + dependencies: + "@smithy/core": "npm:^3.24.6" + tslib: "npm:^2.6.2" + checksum: 10c0/1215bf0910da66d41863e4ab6fc22cc9db6366c4f1411583978ef9ba5215286278279a32b586a69ee3344d5d028752441fd149d9cfa3c5b9cb06c52b424a01e8 + languageName: node + linkType: hard + "@aws-sdk/core@npm:^3.974.13": version: 3.974.13 resolution: "@aws-sdk/core@npm:3.974.13" @@ -5914,6 +5924,17 @@ __metadata: languageName: node linkType: hard +"@smithy/core@npm:^3.24.6": + version: 3.24.6 + resolution: "@smithy/core@npm:3.24.6" + dependencies: + "@aws-crypto/crc32": "npm:5.2.0" + "@smithy/types": "npm:^4.14.3" + tslib: "npm:^2.6.2" + checksum: 10c0/4d3db2296a99a4bcb17007b8276a243930f63c3169b9b86b973a2d1422e8dee7e95e3b98eea115e2759b989b23db1ff89ca505bddbacb7391ca3fe4e222b84ff + languageName: node + linkType: hard + "@smithy/credential-provider-imds@npm:^4.3.2": version: 4.3.4 resolution: "@smithy/credential-provider-imds@npm:4.3.4" @@ -5976,6 +5997,15 @@ __metadata: languageName: node linkType: hard +"@smithy/types@npm:^4.14.3": + version: 4.14.3 + resolution: "@smithy/types@npm:4.14.3" + dependencies: + tslib: "npm:^2.6.2" + checksum: 10c0/c80244d5ca88992e5609e372eaf2441497d36063688af44e9f0e81ab0ee8d5a4cbdb644822243e4cdfad2dd6484c6274e618dc2a9e91b3b9befe7c7b55e09ddc + languageName: node + linkType: hard + "@smithy/util-buffer-from@npm:^2.2.0": version: 2.2.0 resolution: "@smithy/util-buffer-from@npm:2.2.0" @@ -15044,6 +15074,7 @@ __metadata: resolution: "outline@workspace:." dependencies: "@aws-sdk/client-s3": "npm:^3.1053.0" + "@aws-sdk/cloudfront-signer": "npm:^3.1053.0" "@aws-sdk/lib-storage": "npm:^3.1053.0" "@aws-sdk/s3-presigned-post": "npm:^3.1053.0" "@aws-sdk/s3-request-presigner": "npm:^3.1053.0" From 69de13b29ad91555aace33425278e61b61b7406f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 14 Jun 2026 10:40:37 -0400 Subject: [PATCH 241/286] fix: Reset focusedCommentId on doc nav (#12687) --- app/components/DocumentContext.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/components/DocumentContext.tsx b/app/components/DocumentContext.tsx index e37ec76d6d..20a8d2ac82 100644 --- a/app/components/DocumentContext.tsx +++ b/app/components/DocumentContext.tsx @@ -31,6 +31,10 @@ class DocumentContext { @action setDocument = (document: Document) => { + // Reset the focused comment when navigating between documents + if (this.document && this.document.id !== document.id) { + this.focusedCommentId = null; + } this.document = document; this.updateState(); }; From aa4a8dadc990582155c6712645f76cc91399826f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 14 Jun 2026 18:28:14 -0400 Subject: [PATCH 242/286] fix: Setting attributes from col/row span (#12686) closes #12685 --- shared/editor/commands/table.ts | 16 ++++-- shared/editor/queries/table.ts | 87 +++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 3 deletions(-) diff --git a/shared/editor/commands/table.ts b/shared/editor/commands/table.ts index 68e571c420..8d8fa42271 100644 --- a/shared/editor/commands/table.ts +++ b/shared/editor/commands/table.ts @@ -28,6 +28,8 @@ import { getAllSelectedColumns, getCellsInColumn, getCellsInRow, + getCellsInSelectedColumns, + getCellsInSelectedRows, isHeaderEnabled, isTableSelected, getWidthFromDom, @@ -752,7 +754,10 @@ export function setColumnAttr({ if (dispatch) { const rect = selectedRect(state); - const cells = getCellsInColumn(index)(state) || []; + // Apply to every selected column so that aligning a span of columns – or a + // column whose header cell spans multiple columns – affects all of them, + // not just the first. + const cells = getCellsInSelectedColumns(state, index); let tr = state.tr; cells.forEach((pos) => { const node = state.doc.nodeAt(pos); @@ -1157,7 +1162,9 @@ export function toggleRowBackground({ } if (dispatch) { - const cells = getCellsInRow(rowIndex)(state) || []; + // Apply to every selected row so that coloring a span of rows – or a row + // whose cell spans multiple rows – affects all of them, not just the first. + const cells = getCellsInSelectedRows(state, rowIndex); let tr = state.tr; cells.forEach((pos) => { @@ -1211,7 +1218,10 @@ export function toggleColumnBackground({ if (dispatch) { const rect = selectedRect(state); - const cells = getCellsInColumn(colIndex)(state) || []; + // Apply to every selected column so that coloring a span of columns – or a + // column whose header cell spans multiple columns – affects all of them, + // not just the first. + const cells = getCellsInSelectedColumns(state, colIndex); let tr = state.tr; cells.forEach((pos) => { diff --git a/shared/editor/queries/table.ts b/shared/editor/queries/table.ts index 83ed163684..7bff6026f8 100644 --- a/shared/editor/queries/table.ts +++ b/shared/editor/queries/table.ts @@ -382,6 +382,93 @@ export function getAllSelectedColumns(state: EditorState): number[] { return selectedColumns; } +/** + * Get the indices of all currently selected rows. + * + * @param state The editor state + * @returns Array of selected row indices + */ +export function getAllSelectedRows(state: EditorState): number[] { + const rect = selectedRect(state); + + const selectedRows: number[] = []; + for (let row = rect.top; row < rect.bottom; row++) { + selectedRows.push(row); + } + + return selectedRows; +} + +/** + * Get the positions of every unique cell across all selected columns, falling + * back to a single column when it is not part of the selection. + * + * Operating on the full selection ensures column operations affect all selected + * columns – including columns spanned by a merged (colspan) header cell, which a + * single-column lookup would miss. + * + * @param state The editor state + * @param fallbackIndex The column index to use when nothing is selected + * @returns Array of unique cell positions + */ +export function getCellsInSelectedColumns( + state: EditorState, + fallbackIndex: number +): number[] { + const selectedColumns = getAllSelectedColumns(state); + const columns = selectedColumns.includes(fallbackIndex) + ? selectedColumns + : [fallbackIndex]; + + const seen = new Set<number>(); + const cells: number[] = []; + columns.forEach((index) => { + getCellsInColumn(index)(state).forEach((pos) => { + if (!seen.has(pos)) { + seen.add(pos); + cells.push(pos); + } + }); + }); + + return cells; +} + +/** + * Get the positions of every unique cell across all selected rows, falling back + * to a single row when it is not part of the selection. + * + * Operating on the full selection ensures row operations affect all selected + * rows – including rows spanned by a merged (rowspan) cell, which a single-row + * lookup would miss. + * + * @param state The editor state + * @param fallbackIndex The row index to use when nothing is selected + * @returns Array of unique cell positions + */ +export function getCellsInSelectedRows( + state: EditorState, + fallbackIndex: number +): number[] { + const selectedRows = getAllSelectedRows(state); + const rows = selectedRows.includes(fallbackIndex) + ? selectedRows + : [fallbackIndex]; + + const seen = new Set<number>(); + const cells: number[] = []; + rows.forEach((index) => { + getCellsInRow(index)(state).forEach((pos) => { + if (!seen.has(pos)) { + seen.add(pos); + cells.push(pos); + } + }); + }); + + return cells; +} + /** * Get the total width of selected columns by measuring DOM elements. * Uses getBoundingClientRect to get precise rendered widths including decimals. From c59e8bcc3f8ef42220fa52694cfdab3667a833de Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Sun, 14 Jun 2026 23:03:14 -0400 Subject: [PATCH 243/286] fix: Encode code & math fences in table cells with <br> to avoid breaking rows (#12569) * fix: Encode code & math fences in table cells with <br> to avoid breaking rows Code and LaTeX fences inside table cells emitted literal newlines during Markdown serialization, breaking the single-line table-row structure and corrupting the whole table. Serialize them on a single line using <br> for line breaks (and escaped pipes) when inside a table, matching the existing handling for lists and hard breaks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: Escape backslashes in table-cell code & math fences CodeQL flagged incomplete string escaping: escaping pipes as \| without escaping pre-existing backslashes leaves the encoding ambiguous. Escape the backslash (the escape character) and pipe together in a single pass so cell content cannot break out of the column. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * test: Cover math block table-cell serialization Add a test mirroring the code fence case to guard the MathBlock half of the table-cell <br> encoding and pipe/backslash escaping. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/models/helpers/DocumentHelper.test.ts | 115 +++++++++++++++++++ shared/editor/nodes/CodeFence.ts | 13 +++ shared/editor/nodes/MathBlock.ts | 11 ++ 3 files changed, 139 insertions(+) diff --git a/server/models/helpers/DocumentHelper.test.ts b/server/models/helpers/DocumentHelper.test.ts index 8616bca215..d829c1ce91 100644 --- a/server/models/helpers/DocumentHelper.test.ts +++ b/server/models/helpers/DocumentHelper.test.ts @@ -635,6 +635,121 @@ This is a [test paragraph](https://example.net)`, expect(result).toContain("[x] done"); }); + it("should export code fences inside table cells on a single line", async () => { + const document = await buildDocument({ + content: { + type: "doc", + content: [ + { + type: "table", + content: [ + { + type: "tr", + content: [ + { + type: "th", + attrs: { colspan: 1, rowspan: 1 }, + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "Header" }], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { colspan: 1, rowspan: 1 }, + content: [ + { + type: "code_fence", + attrs: { language: "abap" }, + content: [ + { type: "text", text: "a | b\nc \\ d\nline 2" }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + }); + const result = await DocumentHelper.toMarkdown(document, { + includeTitle: false, + }); + // Code fences inside tables should use <br> tags rather than literal + // newlines that would break the table row structure, with pipes and + // backslashes escaped so the content cannot break out of the column. + expect(result).toContain( + "```abap<br>a \\| b<br>c \\\\ d<br>line 2<br>```" + ); + // The fence content must not introduce raw newlines inside the table. + expect(result).not.toMatch(/```abap\n/); + }); + + it("should export math blocks inside table cells on a single line", async () => { + const document = await buildDocument({ + content: { + type: "doc", + content: [ + { + type: "table", + content: [ + { + type: "tr", + content: [ + { + type: "th", + attrs: { colspan: 1, rowspan: 1 }, + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "Header" }], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { colspan: 1, rowspan: 1 }, + content: [ + { + type: "math_block", + content: [ + { type: "text", text: "a | b\n\\frac{1}{2}" }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + }); + const result = await DocumentHelper.toMarkdown(document, { + includeTitle: false, + }); + // Math blocks inside tables should use <br> tags rather than literal + // newlines that would break the table row structure, with pipes and + // backslashes escaped so the content cannot break out of the column. + expect(result).toContain("$$<br>a \\| b<br>\\\\frac{1}{2}<br>$$"); + // The block content must not introduce raw newlines inside the table. + expect(result).not.toMatch(/\$\$\n/); + }); + it("should include collection title by default", async () => { const collection = await buildCollection({ name: "Test Collection", diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index a736e68fad..59652813ad 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -698,6 +698,19 @@ export default class CodeFence extends Node<CodeFenceOptions> { } toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { + // Inside table cells literal newlines break the row structure, so encode + // the fence on a single line using <br> for line breaks. Backslashes and + // pipes are escaped so the cell content cannot break out of the column. + if (state.inTable) { + const code = node.textContent + .replace(/[\\|]/g, "\\$&") + .replace(/\n/g, "<br>"); + state.write( + "```" + (node.attrs.language || "") + "<br>" + code + "<br>```" + ); + return; + } + state.write("```" + (node.attrs.language || "") + "\n"); state.text(node.textContent, false); state.ensureNewLine(); diff --git a/shared/editor/nodes/MathBlock.ts b/shared/editor/nodes/MathBlock.ts index 5626ed9f1a..be485e3914 100644 --- a/shared/editor/nodes/MathBlock.ts +++ b/shared/editor/nodes/MathBlock.ts @@ -46,6 +46,17 @@ export default class MathBlock extends Node { } toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { + // Inside table cells literal newlines break the row structure, so encode + // the block on a single line using <br> for line breaks. Backslashes and + // pipes are escaped so the cell content cannot break out of the column. + if (state.inTable) { + const math = node.textContent + .replace(/[\\|]/g, "\\$&") + .replace(/\n/g, "<br>"); + state.write("$$<br>" + math + "<br>$$"); + return; + } + state.write("$$\n"); state.text(node.textContent, false); state.ensureNewLine(); From 401214112cc003b41b1ea63c538f8a5cae8316d1 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 15 Jun 2026 08:06:16 -0400 Subject: [PATCH 244/286] fix: Image drop into editor (#12691) --- app/components/EditorAwareHTML5Backend.ts | 29 +++++++++++++---------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/app/components/EditorAwareHTML5Backend.ts b/app/components/EditorAwareHTML5Backend.ts index a80c27aea2..ff35a5a7b8 100644 --- a/app/components/EditorAwareHTML5Backend.ts +++ b/app/components/EditorAwareHTML5Backend.ts @@ -2,21 +2,26 @@ import type { BackendFactory } from "dnd-core"; import { HTML5Backend } from "react-dnd-html5-backend"; /** - * react-dnd's HTML5 backend installs global capture-phase listeners on `window` - * that call `preventDefault()` on drops whose dataTransfer resembles a native - * item – including a dragged `<img>`, which is how ProseMirror serializes an - * image drag. + * react-dnd's HTML5 backend installs global drag listeners on `window` in both + * the capture and bubble phases. The bubble-phase `dragover` handler runs after + * ProseMirror's and, when react-dnd isn't tracking a drag, forces + * `dataTransfer.dropEffect = "none"` – which tells the browser the drop is + * disallowed and silently rejects images dragged into the editor. * - * These handlers run before ProseMirror's, and they live on `window`, so a - * propagation-based guard can't stop react-dnd without also starving the editor - * of the event. Instead we wrap the backend and make its top-level capture - * handlers no-op for events that occur within the editor surface. + * These handlers live on `window`, so a propagation-based guard can't stop + * react-dnd without also starving the editor of the event. Instead we wrap the + * backend and make all of its top-level handlers no-op for events that occur + * within the editor surface, leaving ProseMirror to handle them itself. */ -const captureHandlerNames = [ +const topHandlerNames = [ + "handleTopDragStart", "handleTopDragStartCapture", + "handleTopDragEnter", "handleTopDragEnterCapture", - "handleTopDragOverCapture", "handleTopDragLeaveCapture", + "handleTopDragOver", + "handleTopDragOverCapture", + "handleTopDrop", "handleTopDropCapture", "handleTopDragEndCapture", ] as const; @@ -40,14 +45,14 @@ export const EditorAwareHTML5Backend: BackendFactory = ( ) => { const backend = HTML5Backend(manager, context, options); - // The capture handlers are private instance fields on the backend, so reach + // The top-level handlers are private instance fields on the backend, so reach // for them through an index signature view of the instance. const handlers = backend as unknown as Record< string, (event: DragEvent) => void >; - for (const name of captureHandlerNames) { + for (const name of topHandlerNames) { const original = handlers[name]; if (typeof original === "function") { handlers[name] = (event: DragEvent) => { From d2f8caa626e99d815520487dc0c57de1da685d50 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:51:24 -0400 Subject: [PATCH 245/286] chore(deps): bump @aws-sdk/cloudfront-signer in the aws group (#12695) Bumps the aws group with 1 update: [@aws-sdk/cloudfront-signer](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/cloudfront-signer). Updates `@aws-sdk/cloudfront-signer` from 3.1063.0 to 3.1064.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/cloudfront-signer/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1064.0/packages/cloudfront-signer) --- updated-dependencies: - dependency-name: "@aws-sdk/cloudfront-signer" dependency-version: 3.1064.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 573272b959..aa5bce01a6 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ ], "dependencies": { "@aws-sdk/client-s3": "^3.1053.0", - "@aws-sdk/cloudfront-signer": "^3.1053.0", + "@aws-sdk/cloudfront-signer": "^3.1064.0", "@aws-sdk/lib-storage": "^3.1053.0", "@aws-sdk/s3-presigned-post": "^3.1053.0", "@aws-sdk/s3-request-presigner": "^3.1053.0", diff --git a/yarn.lock b/yarn.lock index 77e96ef583..e990222e3f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -136,13 +136,13 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/cloudfront-signer@npm:^3.1053.0": - version: 3.1063.0 - resolution: "@aws-sdk/cloudfront-signer@npm:3.1063.0" +"@aws-sdk/cloudfront-signer@npm:^3.1064.0": + version: 3.1064.0 + resolution: "@aws-sdk/cloudfront-signer@npm:3.1064.0" dependencies: "@smithy/core": "npm:^3.24.6" tslib: "npm:^2.6.2" - checksum: 10c0/1215bf0910da66d41863e4ab6fc22cc9db6366c4f1411583978ef9ba5215286278279a32b586a69ee3344d5d028752441fd149d9cfa3c5b9cb06c52b424a01e8 + checksum: 10c0/facbed64978ae029597cb5969356d74f434a1e8c0cdb7cdfe998389628a32993ef80112de1b464a8a16040cefc62401e8879791c78a00912a57cb0d1e9e114db languageName: node linkType: hard @@ -15074,7 +15074,7 @@ __metadata: resolution: "outline@workspace:." dependencies: "@aws-sdk/client-s3": "npm:^3.1053.0" - "@aws-sdk/cloudfront-signer": "npm:^3.1053.0" + "@aws-sdk/cloudfront-signer": "npm:^3.1064.0" "@aws-sdk/lib-storage": "npm:^3.1053.0" "@aws-sdk/s3-presigned-post": "npm:^3.1053.0" "@aws-sdk/s3-request-presigner": "npm:^3.1053.0" From 9d8510ad1b1f2e4b8ef42d7c41bce34d54a9c746 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:51:35 -0400 Subject: [PATCH 246/286] chore(deps): bump ws from 7.5.10 to 7.5.11 (#12699) Bumps [ws](https://github.com/websockets/ws) from 7.5.10 to 7.5.11. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/7.5.10...7.5.11) --- updated-dependencies: - dependency-name: ws dependency-version: 7.5.11 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index aa5bce01a6..671c567afc 100644 --- a/package.json +++ b/package.json @@ -270,7 +270,7 @@ "vite-plugin-pwa": "1.3.0", "web-haptics": "^0.0.6", "winston": "^3.17.0", - "ws": "^7.5.10", + "ws": "^7.5.11", "y-indexeddb": "^9.0.12", "y-prosemirror": "^1.3.7", "y-protocols": "^1.0.7", diff --git a/yarn.lock b/yarn.lock index e990222e3f..869aa0d223 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15391,7 +15391,7 @@ __metadata: vitest: "npm:^4.1.5" web-haptics: "npm:^0.0.6" winston: "npm:^3.17.0" - ws: "npm:^7.5.10" + ws: "npm:^7.5.11" y-indexeddb: "npm:^9.0.12" y-prosemirror: "npm:^1.3.7" y-protocols: "npm:^1.0.7" @@ -20689,7 +20689,22 @@ __metadata: languageName: node linkType: hard -"ws@npm:^7.5.10, ws@npm:^7.5.5": +"ws@npm:^7.5.11": + version: 7.5.11 + resolution: "ws@npm:7.5.11" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: 10c0/7972670b676fb1ccba73b0899ca3c2e04e8c2075629c2614cced7f556536f96a672bbf4619fc5a06c8b8720bb839a47ca88c69c95dc14c9c61a99fbecba1c866 + languageName: node + linkType: hard + +"ws@npm:^7.5.5": version: 7.5.10 resolution: "ws@npm:7.5.10" peerDependencies: From 70f7a6982f48716ac56b92617190f9ffb04ad750 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:51:46 -0400 Subject: [PATCH 247/286] chore(deps): bump es-toolkit from 1.46.1 to 1.47.1 (#12698) Bumps [es-toolkit](https://github.com/toss/es-toolkit) from 1.46.1 to 1.47.1. - [Release notes](https://github.com/toss/es-toolkit/releases) - [Changelog](https://github.com/toss/es-toolkit/blob/main/CHANGELOG.md) - [Commits](https://github.com/toss/es-toolkit/compare/v1.46.1...v1.47.1) --- updated-dependencies: - dependency-name: es-toolkit dependency-version: 1.47.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 671c567afc..9b420b3fb7 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ "email-providers": "^1.14.0", "emoji-mart": "^5.6.0", "emoji-regex": "^10.6.0", - "es-toolkit": "^1.46.1", + "es-toolkit": "^1.47.1", "es6-error": "^4.1.1", "fast-deep-equal": "^3.1.3", "fetch-retry": "^5.0.6", diff --git a/yarn.lock b/yarn.lock index 869aa0d223..f559c2b4a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10626,7 +10626,7 @@ __metadata: languageName: node linkType: hard -"es-toolkit@npm:^1.45.1, es-toolkit@npm:^1.46.1": +"es-toolkit@npm:^1.45.1": version: 1.46.1 resolution: "es-toolkit@npm:1.46.1" dependenciesMeta: @@ -10638,6 +10638,20 @@ __metadata: languageName: node linkType: hard +"es-toolkit@npm:^1.47.1": + version: 1.47.1 + resolution: "es-toolkit@npm:1.47.1" + dependenciesMeta: + "@trivago/prettier-plugin-sort-imports@4.3.0": + unplugged: true + prettier-plugin-sort-re-exports@0.0.1: + unplugged: true + vitepress-plugin-sandpack@1.1.4: + unplugged: true + checksum: 10c0/d6dff140a71e15d22209f8482f1ce34bab433f449e569c28b9c535963b18b2c3b89b00d7cf7156b5c74cace4c5f96283f0a5fee3be8802dd2cf7481da90cfe0a + languageName: node + linkType: hard + "es6-error@npm:^4.1.1": version: 4.1.1 resolution: "es6-error@npm:4.1.1" @@ -15233,7 +15247,7 @@ __metadata: email-providers: "npm:^1.14.0" emoji-mart: "npm:^5.6.0" emoji-regex: "npm:^10.6.0" - es-toolkit: "npm:^1.46.1" + es-toolkit: "npm:^1.47.1" es6-error: "npm:^4.1.1" fast-deep-equal: "npm:^3.1.3" fetch-retry: "npm:^5.0.6" From db70dcb4a15c08dad25932f1e6d2494c91a32504 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:51:56 -0400 Subject: [PATCH 248/286] chore(deps): bump fs-extra from 11.3.4 to 11.3.5 (#12697) Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 11.3.4 to 11.3.5. - [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md) - [Commits](https://github.com/jprichardson/node-fs-extra/compare/11.3.4...11.3.5) --- updated-dependencies: - dependency-name: fs-extra dependency-version: 11.3.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9b420b3fb7..da2bb82c03 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,7 @@ "fractional-index": "^1.0.0", "framer-motion": "^6.5.1", "franc": "^6.2.0", - "fs-extra": "^11.3.4", + "fs-extra": "^11.3.5", "fuzzy-search": "^3.2.1", "glob": "^11.1.0", "hot-shots": "^12.1.0", diff --git a/yarn.lock b/yarn.lock index f559c2b4a0..d6eadbde2c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11338,7 +11338,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^11.2.0, fs-extra@npm:^11.3.4": +"fs-extra@npm:^11.2.0": version: 11.3.4 resolution: "fs-extra@npm:11.3.4" dependencies: @@ -11349,6 +11349,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:^11.3.5": + version: 11.3.5 + resolution: "fs-extra@npm:11.3.5" + dependencies: + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: 10c0/33e80bad6b5d17308faa197e5ede99ecba4b6f6cb4aa4645d52745476c75afc57665bdf39ec75b2ebb38b97b7110f634a8dcc0a546e248eb4de059275cf5ac90 + languageName: node + linkType: hard + "fs-extra@npm:^8.0.1, fs-extra@npm:^8.1.0": version: 8.1.0 resolution: "fs-extra@npm:8.1.0" @@ -15255,7 +15266,7 @@ __metadata: fractional-index: "npm:^1.0.0" framer-motion: "npm:^6.5.1" franc: "npm:^6.2.0" - fs-extra: "npm:^11.3.4" + fs-extra: "npm:^11.3.5" fuzzy-search: "npm:^3.2.1" glob: "npm:^11.1.0" hot-shots: "npm:^12.1.0" From f908b25da612ae91f834cbb9ddc57fee1f2c0d2b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 15 Jun 2026 18:23:02 -0400 Subject: [PATCH 249/286] fix: npm audit (#12705) --- package.json | 4 +-- yarn.lock | 100 +++++++++++---------------------------------------- 2 files changed, 23 insertions(+), 81 deletions(-) diff --git a/package.json b/package.json index da2bb82c03..a680c7f5f9 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "es6-error": "^4.1.1", "fast-deep-equal": "^3.1.3", "fetch-retry": "^5.0.6", - "form-data": "^4.0.5", + "form-data": "^4.0.6", "fractional-index": "^1.0.0", "framer-motion": "^6.5.1", "franc": "^6.2.0", @@ -392,7 +392,7 @@ "minimatch@npm:9.0.1": "9.0.9", "lodash@npm:4.17.21": "^4.18.1", "i18next-parser/i18next": "^23.16.8", - "ws@npm:~8.17.1": "^8.20.1", + "ws@npm:~8.17.1": "^8.21.0", "uuid": "^11.1.1" }, "version": "1.8.1", diff --git a/yarn.lock b/yarn.lock index d6eadbde2c..53968cbca2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5913,18 +5913,7 @@ __metadata: languageName: node linkType: hard -"@smithy/core@npm:^3.24.3, @smithy/core@npm:^3.24.4": - version: 3.24.4 - resolution: "@smithy/core@npm:3.24.4" - dependencies: - "@aws-crypto/crc32": "npm:5.2.0" - "@smithy/types": "npm:^4.14.2" - tslib: "npm:^2.6.2" - checksum: 10c0/0951177e0556baf63093e30e2768991153f364655aafcaf4fca297b1d120ff3a7f445f068c3de65e4224dbecd99d86ca9e1f5c7d96841756905454c321951cd5 - languageName: node - linkType: hard - -"@smithy/core@npm:^3.24.6": +"@smithy/core@npm:^3.24.3, @smithy/core@npm:^3.24.4, @smithy/core@npm:^3.24.6": version: 3.24.6 resolution: "@smithy/core@npm:3.24.6" dependencies: @@ -5988,16 +5977,7 @@ __metadata: languageName: node linkType: hard -"@smithy/types@npm:^4.14.2": - version: 4.14.2 - resolution: "@smithy/types@npm:4.14.2" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/8bdad874d9e47233c6f2f74ac001e810b87b0a7c6504b9a9490536c9733ffec36b7b2a73010b31044f22553819a8d1e8bb9b2310f09257b1278a048a5f9679f8 - languageName: node - linkType: hard - -"@smithy/types@npm:^4.14.3": +"@smithy/types@npm:^4.14.2, @smithy/types@npm:^4.14.3": version: 4.14.3 resolution: "@smithy/types@npm:4.14.3" dependencies: @@ -10626,19 +10606,7 @@ __metadata: languageName: node linkType: hard -"es-toolkit@npm:^1.45.1": - version: 1.46.1 - resolution: "es-toolkit@npm:1.46.1" - dependenciesMeta: - "@trivago/prettier-plugin-sort-imports@4.3.0": - unplugged: true - prettier-plugin-sort-re-exports@0.0.1: - unplugged: true - checksum: 10c0/6a4c3dd0ddc2138fa13d983d93ebaf8061759c52c2cf7c3101315139fc1fca826d253daa67fe85ad880c03cc4c092bd53a83a7cbf58b4721c251479122ba5303 - languageName: node - linkType: hard - -"es-toolkit@npm:^1.47.1": +"es-toolkit@npm:^1.45.1, es-toolkit@npm:^1.47.1": version: 1.47.1 resolution: "es-toolkit@npm:1.47.1" dependenciesMeta: @@ -11217,16 +11185,16 @@ __metadata: languageName: node linkType: hard -"form-data@npm:*, form-data@npm:^4.0.0, form-data@npm:^4.0.4, form-data@npm:^4.0.5": - version: 4.0.5 - resolution: "form-data@npm:4.0.5" +"form-data@npm:*, form-data@npm:^4.0.0, form-data@npm:^4.0.4, form-data@npm:^4.0.5, form-data@npm:^4.0.6": + version: 4.0.6 + resolution: "form-data@npm:4.0.6" dependencies: asynckit: "npm:^0.4.0" combined-stream: "npm:^1.0.8" es-set-tostringtag: "npm:^2.1.0" - hasown: "npm:^2.0.2" - mime-types: "npm:^2.1.12" - checksum: 10c0/dd6b767ee0bbd6d84039db12a0fa5a2028160ffbfaba1800695713b46ae974a5f6e08b3356c3195137f8530dcd9dfcb5d5ae1eeff53d0db1e5aad863b619ce3b + hasown: "npm:^2.0.4" + mime-types: "npm:^2.1.35" + checksum: 10c0/43947a77bf0ff45c6ceed789778982d47a3f3e720a74b71721174ebf3310a5f1a8be1d6b38a3ee3688e8a18a2c4273073ec0844cd37efda3eaf46d41c9c318ff languageName: node linkType: hard @@ -11338,18 +11306,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^11.2.0": - version: 11.3.4 - resolution: "fs-extra@npm:11.3.4" - dependencies: - graceful-fs: "npm:^4.2.0" - jsonfile: "npm:^6.0.1" - universalify: "npm:^2.0.0" - checksum: 10c0/e08276f767a62496ae97d711aaa692c6a478177f24a85979b6a2881c9db9c68b8c2ad5da0bcf92c0b2a474cea6e935ec245656441527958fd8372cb647087df0 - languageName: node - linkType: hard - -"fs-extra@npm:^11.3.5": +"fs-extra@npm:^11.2.0, fs-extra@npm:^11.3.5": version: 11.3.5 resolution: "fs-extra@npm:11.3.5" dependencies: @@ -11854,12 +11811,12 @@ __metadata: languageName: node linkType: hard -"hasown@npm:^2.0.2": - version: 2.0.2 - resolution: "hasown@npm:2.0.2" +"hasown@npm:^2.0.2, hasown@npm:^2.0.4": + version: 2.0.4 + resolution: "hasown@npm:2.0.4" dependencies: function-bind: "npm:^1.1.2" - checksum: 10c0/3769d434703b8ac66b209a4cca0737519925bbdb61dd887f93a16372b14694c63ff4e797686d87c90f08168e81082248b9b028bad60d4da9e0d1148766f56eb9 + checksum: 10c0/2d8de939e270b70618f8cebb69746620db10617dbb495bc66ddad326955ea24d3ca4af133aff3eb7c1853e0218f867bc2b050ec26fe02e3aea58f880ffc5e506 languageName: node linkType: hard @@ -14275,7 +14232,7 @@ __metadata: languageName: node linkType: hard -"mime-types@npm:^2.1.12, mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": +"mime-types@npm:^2.1.35, mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": version: 2.1.35 resolution: "mime-types@npm:2.1.35" dependencies: @@ -15262,7 +15219,7 @@ __metadata: es6-error: "npm:^4.1.1" fast-deep-equal: "npm:^3.1.3" fetch-retry: "npm:^5.0.6" - form-data: "npm:^4.0.5" + form-data: "npm:^4.0.6" fractional-index: "npm:^1.0.0" framer-motion: "npm:^6.5.1" franc: "npm:^6.2.0" @@ -20699,9 +20656,9 @@ __metadata: languageName: node linkType: hard -"ws@npm:*, ws@npm:^8.13.0, ws@npm:^8.20.1, ws@npm:^8.5.0": - version: 8.20.1 - resolution: "ws@npm:8.20.1" +"ws@npm:*, ws@npm:^8.13.0, ws@npm:^8.21.0, ws@npm:^8.5.0": + version: 8.21.0 + resolution: "ws@npm:8.21.0" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -20710,11 +20667,11 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 10c0/ce162433218399cdedeb76fd33363d4d86a7d910058d4e3c679dce08cea65d6da6b39f11baa4d7808d024cf46ed88f6a05c17611621aaad8fc5e62edacc30c5d + checksum: 10c0/ef4a243476283fc49bc7550966c4af4aa0eef56273837211e700de3b664e08604a760cdddcb5ba43c049140e74ccfec5b0ee0bb439e08c2adf9138902fdde5f9 languageName: node linkType: hard -"ws@npm:^7.5.11": +"ws@npm:^7.5.11, ws@npm:^7.5.5": version: 7.5.11 resolution: "ws@npm:7.5.11" peerDependencies: @@ -20729,21 +20686,6 @@ __metadata: languageName: node linkType: hard -"ws@npm:^7.5.5": - version: 7.5.10 - resolution: "ws@npm:7.5.10" - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: 10c0/bd7d5f4aaf04fae7960c23dcb6c6375d525e00f795dd20b9385902bd008c40a94d3db3ce97d878acc7573df852056ca546328b27b39f47609f80fb22a0a9b61d - languageName: node - linkType: hard - "xcase@npm:^2.0.1": version: 2.0.1 resolution: "xcase@npm:2.0.1" From 9b0eb5337f7b996da0bedd326f7e530191aa8960 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:23:19 -0400 Subject: [PATCH 250/286] chore(deps): bump tar from 7.5.13 to 7.5.16 (#12704) Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.13 to 7.5.16. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v7.5.13...v7.5.16) --- updated-dependencies: - dependency-name: tar dependency-version: 7.5.16 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 53968cbca2..18b6198cd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18896,15 +18896,15 @@ __metadata: linkType: hard "tar@npm:^7.5.2": - version: 7.5.13 - resolution: "tar@npm:7.5.13" + version: 7.5.16 + resolution: "tar@npm:7.5.16" dependencies: "@isaacs/fs-minipass": "npm:^4.0.0" chownr: "npm:^3.0.0" minipass: "npm:^7.1.2" minizlib: "npm:^3.1.0" yallist: "npm:^5.0.0" - checksum: 10c0/5c65b8084799bde7a791593a1c1a45d3d6ee98182e3700b24c247b7b8f8654df4191642abbdb07ff25043d45dcff35620827c3997b88ae6c12040f64bed5076b + checksum: 10c0/4f37f3c4bd2ca2755fd736a5df1d573c1a868ec1b1e893346aeafa95ac510f9e2fd1469420bd866cc7904799e5bd4ac62b5d4f03fe27747d6e1e373b44505c5c languageName: node linkType: hard From be900ccc721a4e1ffe368db8bc3d24554a5abb03 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:24:05 -0400 Subject: [PATCH 251/286] chore(deps): bump js-yaml from 4.1.1 to 4.2.0 (#12700) Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.1 to 4.2.0. - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/commits) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.2.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a680c7f5f9..cd5a5ae736 100644 --- a/package.json +++ b/package.json @@ -153,7 +153,7 @@ "ipaddr.js": "^2.4.0", "is-printable-key-event": "^1.0.0", "iso-639-3": "^3.0.1", - "js-yaml": "^4.1.1", + "js-yaml": "^4.2.0", "jsdom": "^22.1.0", "jsonwebtoken": "^9.0.3", "katex": "^0.16.45", diff --git a/yarn.lock b/yarn.lock index 18b6198cd0..4f0ac283f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13010,7 +13010,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^4.1.0, js-yaml@npm:^4.1.1": +"js-yaml@npm:^4.1.0": version: 4.1.1 resolution: "js-yaml@npm:4.1.1" dependencies: @@ -13021,6 +13021,17 @@ __metadata: languageName: node linkType: hard +"js-yaml@npm:^4.2.0": + version: 4.2.0 + resolution: "js-yaml@npm:4.2.0" + dependencies: + argparse: "npm:^2.0.1" + bin: + js-yaml: bin/js-yaml.js + checksum: 10c0/1916456c118746603b067d74bbcbb0445d9a1d5e474ad4ae775e7b20525bed902e01d9d97dd0c81fcd8d4f596162309d0eb057f4aa38f3e9647f14075e9dea45 + languageName: node + linkType: hard + "jsdom@npm:^22.1.0": version: 22.1.0 resolution: "jsdom@npm:22.1.0" @@ -15240,7 +15251,7 @@ __metadata: ipaddr.js: "npm:^2.4.0" is-printable-key-event: "npm:^1.0.0" iso-639-3: "npm:^3.0.1" - js-yaml: "npm:^4.1.1" + js-yaml: "npm:^4.2.0" jsdom: "npm:^22.1.0" jsonwebtoken: "npm:^9.0.3" katex: "npm:^0.16.45" From f2fad9649cedc468f56f7669118956107cc7a3c1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:25:23 -0400 Subject: [PATCH 252/286] chore(deps): bump nodemailer from 7.0.13 to 8.0.9 (#12702) Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 7.0.13 to 8.0.9. - [Release notes](https://github.com/nodemailer/nodemailer/releases) - [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodemailer/nodemailer/compare/v7.0.13...v8.0.9) --- updated-dependencies: - dependency-name: nodemailer dependency-version: 8.0.9 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index cd5a5ae736..39e307ba85 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "mobx-utils": "^4.0.1", "natural-sort": "^1.0.0", "node-fetch": "2.7.0", - "nodemailer": "^7.0.13", + "nodemailer": "^8.0.9", "octokit": "^5.0.5", "outline-icons": "^4.3.0", "oy-vey": "^0.12.1", diff --git a/yarn.lock b/yarn.lock index 4f0ac283f1..1869390df0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14795,10 +14795,10 @@ __metadata: languageName: node linkType: hard -"nodemailer@npm:^7.0.13": - version: 7.0.13 - resolution: "nodemailer@npm:7.0.13" - checksum: 10c0/b26aa5b9fa4a033bbc1e1c16ef75ee2a9c8641fd290c00a8361d6a251b3c1b8bad545a23efa627f59cb266340a448891ea8aa49d8a9307c767b8505219d95079 +"nodemailer@npm:^8.0.9": + version: 8.0.9 + resolution: "nodemailer@npm:8.0.9" + checksum: 10c0/f5c671ed1c28b27fc997416be70c41aa068ea7540feebc8aca1d0c4f18ac1017d05d74d08218b5aa13206d2639d6a4605f9f3b2acbcb84d20b9cc89d50c5ab5a languageName: node linkType: hard @@ -15280,7 +15280,7 @@ __metadata: msw: "npm:^2.14.2" natural-sort: "npm:^1.0.0" node-fetch: "npm:2.7.0" - nodemailer: "npm:^7.0.13" + nodemailer: "npm:^8.0.9" nodemon: "npm:^3.1.14" octokit: "npm:^5.0.5" outline-icons: "npm:^4.3.0" From fc7d08c0a27ccf5c452e3c0dd58d675b4e7b32d5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:35:05 -0400 Subject: [PATCH 253/286] chore(deps): bump markdown-it from 14.1.1 to 14.2.0 (#12706) Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.1.1 to 14.2.0. - [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md) - [Commits](https://github.com/markdown-it/markdown-it/compare/14.1.1...14.2.0) --- updated-dependencies: - dependency-name: markdown-it dependency-version: 14.2.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 29 +++++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 39e307ba85..6f02a1ce9f 100644 --- a/package.json +++ b/package.json @@ -170,7 +170,7 @@ "koa-useragent": "^4.1.0", "mailparser": "^3.7.5", "mammoth": "^1.11.0", - "markdown-it": "^14.1.1", + "markdown-it": "^14.2.0", "markdown-it-container": "^3.0.0", "markdown-it-emoji": "^3.0.0", "mermaid": "11.15.0", diff --git a/yarn.lock b/yarn.lock index 1869390df0..b399b0ee87 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13718,6 +13718,15 @@ __metadata: languageName: node linkType: hard +"linkify-it@npm:^5.0.1": + version: 5.0.1 + resolution: "linkify-it@npm:5.0.1" + dependencies: + uc.micro: "npm:^2.0.0" + checksum: 10c0/d06d04f1ed03be131740fc900a5e74ea1f49886b052213599e306d469d5ffe2303db76dd8f771de9f28e2b0b38852de22ec46ae597d245f8b66439b0ceb19b10 + languageName: node + linkType: hard + "lint-staged@npm:^16.4.0": version: 16.4.0 resolution: "lint-staged@npm:16.4.0" @@ -14099,7 +14108,7 @@ __metadata: languageName: node linkType: hard -"markdown-it@npm:^14.0.0, markdown-it@npm:^14.1.1": +"markdown-it@npm:^14.0.0": version: 14.1.1 resolution: "markdown-it@npm:14.1.1" dependencies: @@ -14115,6 +14124,22 @@ __metadata: languageName: node linkType: hard +"markdown-it@npm:^14.2.0": + version: 14.2.0 + resolution: "markdown-it@npm:14.2.0" + dependencies: + argparse: "npm:^2.0.1" + entities: "npm:^4.4.0" + linkify-it: "npm:^5.0.1" + mdurl: "npm:^2.0.0" + punycode.js: "npm:^2.3.1" + uc.micro: "npm:^2.1.0" + bin: + markdown-it: bin/markdown-it.mjs + checksum: 10c0/1d3a50061d2fe4efbcf317aac853dbee6892ed6f5a217570eead723f2ef2dd1c9baaeef5a687cd283480c45c2d20724a73e84a9ed72843cf7b3b719067af40ef + languageName: node + linkType: hard + "marked@npm:^16.3.0": version: 16.4.2 resolution: "marked@npm:16.4.2" @@ -15269,7 +15294,7 @@ __metadata: lint-staged: "npm:^16.4.0" mailparser: "npm:^3.7.5" mammoth: "npm:^1.11.0" - markdown-it: "npm:^14.1.1" + markdown-it: "npm:^14.2.0" markdown-it-container: "npm:^3.0.0" markdown-it-emoji: "npm:^3.0.0" mermaid: "npm:11.15.0" From c1d4b0556a85880329cd0e05333e107f79281562 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:35:15 -0400 Subject: [PATCH 254/286] chore(deps): bump dompurify from 3.4.0 to 3.4.10 (#12707) Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.0 to 3.4.10. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/3.4.0...3.4.10) --- updated-dependencies: - dependency-name: dompurify dependency-version: 3.4.10 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index b399b0ee87..a051736559 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10117,14 +10117,14 @@ __metadata: linkType: hard "dompurify@npm:^3.3.1": - version: 3.4.0 - resolution: "dompurify@npm:3.4.0" + version: 3.4.10 + resolution: "dompurify@npm:3.4.10" dependencies: "@types/trusted-types": "npm:^2.0.7" dependenciesMeta: "@types/trusted-types": optional: true - checksum: 10c0/5593ac44ee20b9aa521c2120884effc98927fb9128c548183c75e79e0a04357c62ee913a049a267c8f396cb8c9d520ecf72562826c5524c46d4fe03c12063638 + checksum: 10c0/6ffbc564c09ae11f9e1ab97040d556f8fafb0a5221248fca02539378d442f4fbe737ebb72dd34309c46896f1093714622895cc6815a7a57599c4511e30e234ae languageName: node linkType: hard From c08d12173b1d22ad7faf6294b91cb20a81041f2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:43:06 -0400 Subject: [PATCH 255/286] chore(deps): bump vite from 8.0.10 to 8.0.16 (#12703) * chore(deps): bump vite from 8.0.10 to 8.0.16 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.0.10 to 8.0.16. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v8.0.16/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 8.0.16 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): regenerate yarn.lock for vite bump Dependabot hand-edited yarn.lock for the vite bump, but the project aliases vite to rolldown-vite, so the lockfile no longer matched the resolver output and `yarn install --immutable` failed across all CI jobs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- yarn.lock | 206 +++++++++++++++++++++++++++--------------------------- 1 file changed, 103 insertions(+), 103 deletions(-) diff --git a/yarn.lock b/yarn.lock index a051736559..e4f5bb2ceb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3250,14 +3250,14 @@ __metadata: linkType: hard "@napi-rs/wasm-runtime@npm:^1.1.0, @napi-rs/wasm-runtime@npm:^1.1.1, @napi-rs/wasm-runtime@npm:^1.1.4": - version: 1.1.4 - resolution: "@napi-rs/wasm-runtime@npm:1.1.4" + version: 1.1.5 + resolution: "@napi-rs/wasm-runtime@npm:1.1.5" dependencies: - "@tybys/wasm-util": "npm:^0.10.1" + "@tybys/wasm-util": "npm:^0.10.2" peerDependencies: "@emnapi/core": ^1.7.1 "@emnapi/runtime": ^1.7.1 - checksum: 10c0/2e88e1955258949ccf2d18c79975821ad38071b465ef126a5e14110977b97868867b016c1ad046e963cccc42c0bd9db6c8ff5fd1ebb61b87bb3487f339041658 + checksum: 10c0/727f2b6ae0e68bbe5d39aeb68aa6f183314e9f03dc50bb55a962849535b2db53ecc3fbf1554d8656a54488a608df5a2634670595cf5874dc4af2ee59f817c65d languageName: node linkType: hard @@ -3861,10 +3861,10 @@ __metadata: languageName: node linkType: hard -"@oxc-project/types@npm:=0.127.0": - version: 0.127.0 - resolution: "@oxc-project/types@npm:0.127.0" - checksum: 10c0/52c0947ac64a9ca119fe971f947e784a35ecd14a072fa3f542a58a5f6c42010b53f2bf92731e39b9899b83c990a9517bbd29d1e5a5b7b489e52616685c6a9278 +"@oxc-project/types@npm:=0.133.0": + version: 0.133.0 + resolution: "@oxc-project/types@npm:0.133.0" + checksum: 10c0/70c57ba58644f7ec217b670c301801f4d06995f4ccdba6b2bd106ea3e5ee49d616573e6ef8d55530b87571a960696543687f3850e87ad173d3f88965c30cdd63 languageName: node linkType: hard @@ -5231,9 +5231,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-android-arm64@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-android-arm64@npm:1.0.0-rc.17" +"@rolldown/binding-android-arm64@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-android-arm64@npm:1.0.3" conditions: os=android & cpu=arm64 languageName: node linkType: hard @@ -5245,9 +5245,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-darwin-arm64@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-darwin-arm64@npm:1.0.0-rc.17" +"@rolldown/binding-darwin-arm64@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-darwin-arm64@npm:1.0.3" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard @@ -5259,9 +5259,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-darwin-x64@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-darwin-x64@npm:1.0.0-rc.17" +"@rolldown/binding-darwin-x64@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-darwin-x64@npm:1.0.3" conditions: os=darwin & cpu=x64 languageName: node linkType: hard @@ -5273,9 +5273,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-freebsd-x64@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-freebsd-x64@npm:1.0.0-rc.17" +"@rolldown/binding-freebsd-x64@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-freebsd-x64@npm:1.0.3" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard @@ -5287,9 +5287,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-linux-arm-gnueabihf@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-linux-arm-gnueabihf@npm:1.0.0-rc.17" +"@rolldown/binding-linux-arm-gnueabihf@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-linux-arm-gnueabihf@npm:1.0.3" conditions: os=linux & cpu=arm languageName: node linkType: hard @@ -5301,9 +5301,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-linux-arm64-gnu@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-linux-arm64-gnu@npm:1.0.0-rc.17" +"@rolldown/binding-linux-arm64-gnu@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-linux-arm64-gnu@npm:1.0.3" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard @@ -5315,23 +5315,23 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-linux-arm64-musl@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-linux-arm64-musl@npm:1.0.0-rc.17" +"@rolldown/binding-linux-arm64-musl@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-linux-arm64-musl@npm:1.0.3" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rolldown/binding-linux-ppc64-gnu@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-linux-ppc64-gnu@npm:1.0.0-rc.17" +"@rolldown/binding-linux-ppc64-gnu@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-linux-ppc64-gnu@npm:1.0.3" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@rolldown/binding-linux-s390x-gnu@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-linux-s390x-gnu@npm:1.0.0-rc.17" +"@rolldown/binding-linux-s390x-gnu@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-linux-s390x-gnu@npm:1.0.3" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard @@ -5343,9 +5343,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-linux-x64-gnu@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-linux-x64-gnu@npm:1.0.0-rc.17" +"@rolldown/binding-linux-x64-gnu@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-linux-x64-gnu@npm:1.0.3" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard @@ -5357,9 +5357,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-linux-x64-musl@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-linux-x64-musl@npm:1.0.0-rc.17" +"@rolldown/binding-linux-x64-musl@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-linux-x64-musl@npm:1.0.3" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard @@ -5371,9 +5371,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-openharmony-arm64@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-openharmony-arm64@npm:1.0.0-rc.17" +"@rolldown/binding-openharmony-arm64@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-openharmony-arm64@npm:1.0.3" conditions: os=openharmony & cpu=arm64 languageName: node linkType: hard @@ -5387,9 +5387,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-wasm32-wasi@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-wasm32-wasi@npm:1.0.0-rc.17" +"@rolldown/binding-wasm32-wasi@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-wasm32-wasi@npm:1.0.3" dependencies: "@emnapi/core": "npm:1.10.0" "@emnapi/runtime": "npm:1.10.0" @@ -5405,9 +5405,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-win32-arm64-msvc@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-win32-arm64-msvc@npm:1.0.0-rc.17" +"@rolldown/binding-win32-arm64-msvc@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-win32-arm64-msvc@npm:1.0.3" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard @@ -5419,9 +5419,9 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-win32-x64-msvc@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/binding-win32-x64-msvc@npm:1.0.0-rc.17" +"@rolldown/binding-win32-x64-msvc@npm:1.0.3": + version: 1.0.3 + resolution: "@rolldown/binding-win32-x64-msvc@npm:1.0.3" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -5440,10 +5440,10 @@ __metadata: languageName: node linkType: hard -"@rolldown/pluginutils@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "@rolldown/pluginutils@npm:1.0.0-rc.17" - checksum: 10c0/5e840b20cc531910c093c1ca36e550952cf4936465a50d89f0a98fc9d0dfd7d319d06a10a5f4376209d89e9bf4d60af6cc8363ebf0dcc5e60842f7fef438b2f0 +"@rolldown/pluginutils@npm:^1.0.0": + version: 1.0.1 + resolution: "@rolldown/pluginutils@npm:1.0.1" + checksum: 10c0/99d9b06d90196823e4d8c841f258db7a16e5dbba5824a2962b05d907b79f1ba929d56f22dd744fd530936e568c865ee56a719dc31e57e13bc0a8eb4764a8d8dd languageName: node linkType: hard @@ -6239,12 +6239,12 @@ __metadata: languageName: node linkType: hard -"@tybys/wasm-util@npm:^0.10.1": - version: 0.10.1 - resolution: "@tybys/wasm-util@npm:0.10.1" +"@tybys/wasm-util@npm:^0.10.2": + version: 0.10.2 + resolution: "@tybys/wasm-util@npm:0.10.2" dependencies: tslib: "npm:^2.4.0" - checksum: 10c0/b255094f293794c6d2289300c5fbcafbb5532a3aed3a5ffd2f8dc1828e639b88d75f6a376dd8f94347a44813fd7a7149d8463477a9a49525c8b2dcaa38c2d1e8 + checksum: 10c0/26165bcd1fd7269f42d7fbe3de318f854a8968de8397e89fc9a423bb3e2da35a52150f382e6323b3367595beb16d9800a6f35971a5599daf76da1742ec3afc25 languageName: node linkType: hard @@ -14691,12 +14691,12 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^3.3.11": - version: 3.3.11 - resolution: "nanoid@npm:3.3.11" +"nanoid@npm:^3.3.12": + version: 3.3.12 + resolution: "nanoid@npm:3.3.12" bin: nanoid: bin/nanoid.cjs - checksum: 10c0/40e7f70b3d15f725ca072dfc4f74e81fcf1fbb02e491cf58ac0c79093adc9b0a73b152bcde57df4b79cd097e13023d7504acb38404a4da7bc1cd8e887b82fe0b + checksum: 10c0/ba142b7b39e11e80c16dd74b0365d407880c87c1cf7e1480956981ae940ee36060fa5b6f092cd1e315184dd19244c657bd017d03327bd3c62247d691c5e8edfb languageName: node linkType: hard @@ -16228,14 +16228,14 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.5.10, postcss@npm:^8.5.6": - version: 8.5.13 - resolution: "postcss@npm:8.5.13" +"postcss@npm:^8.5.15, postcss@npm:^8.5.6": + version: 8.5.15 + resolution: "postcss@npm:8.5.15" dependencies: - nanoid: "npm:^3.3.11" + nanoid: "npm:^3.3.12" picocolors: "npm:^1.1.1" source-map-js: "npm:^1.2.1" - checksum: 10c0/3aa7c8cbdfbfd99b34406a433cef56d164dd135fc9cb9e63d487cc363291f877a55ec7b8ff6ec15348c17c2d98a43be46bfad671e6340403041a3e79f70c2f2f + checksum: 10c0/7f2e63ae22fbe43aace1bf652bd99da4e90737c64194d49e51ddc9cd0f9e51ff2861a7d734379b494deffa03a880a5c65eec70bc29ee9ebaa7136dde3eee8f31 languageName: node linkType: hard @@ -17521,27 +17521,27 @@ __metadata: languageName: node linkType: hard -"rolldown@npm:1.0.0-rc.17": - version: 1.0.0-rc.17 - resolution: "rolldown@npm:1.0.0-rc.17" +"rolldown@npm:1.0.3": + version: 1.0.3 + resolution: "rolldown@npm:1.0.3" dependencies: - "@oxc-project/types": "npm:=0.127.0" - "@rolldown/binding-android-arm64": "npm:1.0.0-rc.17" - "@rolldown/binding-darwin-arm64": "npm:1.0.0-rc.17" - "@rolldown/binding-darwin-x64": "npm:1.0.0-rc.17" - "@rolldown/binding-freebsd-x64": "npm:1.0.0-rc.17" - "@rolldown/binding-linux-arm-gnueabihf": "npm:1.0.0-rc.17" - "@rolldown/binding-linux-arm64-gnu": "npm:1.0.0-rc.17" - "@rolldown/binding-linux-arm64-musl": "npm:1.0.0-rc.17" - "@rolldown/binding-linux-ppc64-gnu": "npm:1.0.0-rc.17" - "@rolldown/binding-linux-s390x-gnu": "npm:1.0.0-rc.17" - "@rolldown/binding-linux-x64-gnu": "npm:1.0.0-rc.17" - "@rolldown/binding-linux-x64-musl": "npm:1.0.0-rc.17" - "@rolldown/binding-openharmony-arm64": "npm:1.0.0-rc.17" - "@rolldown/binding-wasm32-wasi": "npm:1.0.0-rc.17" - "@rolldown/binding-win32-arm64-msvc": "npm:1.0.0-rc.17" - "@rolldown/binding-win32-x64-msvc": "npm:1.0.0-rc.17" - "@rolldown/pluginutils": "npm:1.0.0-rc.17" + "@oxc-project/types": "npm:=0.133.0" + "@rolldown/binding-android-arm64": "npm:1.0.3" + "@rolldown/binding-darwin-arm64": "npm:1.0.3" + "@rolldown/binding-darwin-x64": "npm:1.0.3" + "@rolldown/binding-freebsd-x64": "npm:1.0.3" + "@rolldown/binding-linux-arm-gnueabihf": "npm:1.0.3" + "@rolldown/binding-linux-arm64-gnu": "npm:1.0.3" + "@rolldown/binding-linux-arm64-musl": "npm:1.0.3" + "@rolldown/binding-linux-ppc64-gnu": "npm:1.0.3" + "@rolldown/binding-linux-s390x-gnu": "npm:1.0.3" + "@rolldown/binding-linux-x64-gnu": "npm:1.0.3" + "@rolldown/binding-linux-x64-musl": "npm:1.0.3" + "@rolldown/binding-openharmony-arm64": "npm:1.0.3" + "@rolldown/binding-wasm32-wasi": "npm:1.0.3" + "@rolldown/binding-win32-arm64-msvc": "npm:1.0.3" + "@rolldown/binding-win32-x64-msvc": "npm:1.0.3" + "@rolldown/pluginutils": "npm:^1.0.0" dependenciesMeta: "@rolldown/binding-android-arm64": optional: true @@ -17574,8 +17574,8 @@ __metadata: "@rolldown/binding-win32-x64-msvc": optional: true bin: - rolldown: bin/cli.mjs - checksum: 10c0/bb99abc62ece4e34edd06d2b8eb9ffb7194dc2f0465a4329bb106cbde3006a10f1575e3580b198b793341109a2109581aed623c537c12b0c3a4ba0d72169b2fb + rolldown: ./bin/cli.mjs + checksum: 10c0/5f9dd47b7abf203b16bc600db68542f245e974c800e59ff50b76157d1dada1403657690435b036fabca88e93d13a67c31abe5cfaa6f61ce33717f61720204cdf languageName: node linkType: hard @@ -19074,13 +19074,13 @@ __metadata: languageName: node linkType: hard -"tinyglobby@npm:^0.2.10, tinyglobby@npm:^0.2.12, tinyglobby@npm:^0.2.15, tinyglobby@npm:^0.2.16": - version: 0.2.16 - resolution: "tinyglobby@npm:0.2.16" +"tinyglobby@npm:^0.2.10, tinyglobby@npm:^0.2.12, tinyglobby@npm:^0.2.15, tinyglobby@npm:^0.2.16, tinyglobby@npm:^0.2.17": + version: 0.2.17 + resolution: "tinyglobby@npm:0.2.17" dependencies: fdir: "npm:^6.5.0" picomatch: "npm:^4.0.4" - checksum: 10c0/f2e09fd93dd95c41e522113b686ff6f7c13020962f8698a864a257f3d7737599afc47722b7ab726e12f8a813f779906187911ff8ee6701ede65072671a7e934b + checksum: 10c0/7f7bb0f197c88bc4b20c231e0deca4240ca3bf313a88f5a7fee93a872b84966a4d50220947c0455ad07a60b3b360961c5b7fd979222aeb716a9f99b412002e4c languageName: node linkType: hard @@ -19981,18 +19981,18 @@ __metadata: linkType: hard "vite@npm:^6.0.0 || ^7.0.0 || ^8.0.0": - version: 8.0.10 - resolution: "vite@npm:8.0.10" + version: 8.0.16 + resolution: "vite@npm:8.0.16" dependencies: fsevents: "npm:~2.3.3" lightningcss: "npm:^1.32.0" picomatch: "npm:^4.0.4" - postcss: "npm:^8.5.10" - rolldown: "npm:1.0.0-rc.17" - tinyglobby: "npm:^0.2.16" + postcss: "npm:^8.5.15" + rolldown: "npm:1.0.3" + tinyglobby: "npm:^0.2.17" peerDependencies: "@types/node": ^20.19.0 || >=22.12.0 - "@vitejs/devtools": ^0.1.0 + "@vitejs/devtools": ^0.1.18 esbuild: ^0.27.0 || ^0.28.0 jiti: ">=1.21.0" less: ^4.0.0 @@ -20033,7 +20033,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 10c0/92188b82654f856dbe562a1b679de695bb6ca18c0f43c4c276f84a869fb78e22dedb7c2df83b5617d6afdca979c059d654b5f61a0936a45f49917f352b9325ca + checksum: 10c0/d75be3fbe2f63e6a8145325970338afaf0dd4d96ba9175c13f9a286fd5f95afc489401b693e4fa6c0899a4dd0e137be91cdf9401a40a635563911ad5036e3467 languageName: node linkType: hard From 6541bd4ffe6c7eb2c8ef68be7b5d99776c33fd06 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:46:30 -0400 Subject: [PATCH 256/286] chore(deps): bump the radix-ui group with 14 updates (#12696) Bumps the radix-ui group with 14 updates: | Package | From | To | | --- | --- | --- | | [@radix-ui/react-collapsible](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/collapsible) | `1.1.12` | `1.1.13` | | [@radix-ui/react-context-menu](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/context-menu) | `2.2.16` | `2.3.0` | | [@radix-ui/react-dialog](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/dialog) | `1.1.15` | `1.1.16` | | [@radix-ui/react-direction](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/direction) | `1.1.1` | `1.1.2` | | [@radix-ui/react-dropdown-menu](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/dropdown-menu) | `2.1.16` | `2.1.17` | | [@radix-ui/react-one-time-password-field](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/one-time-password-field) | `0.1.8` | `0.1.9` | | [@radix-ui/react-popover](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/popover) | `1.1.15` | `1.1.16` | | [@radix-ui/react-select](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/select) | `2.2.6` | `2.3.0` | | [@radix-ui/react-slot](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/slot) | `1.2.4` | `1.2.5` | | [@radix-ui/react-switch](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/switch) | `1.2.6` | `1.3.0` | | [@radix-ui/react-tabs](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/tabs) | `1.1.13` | `1.1.14` | | [@radix-ui/react-toolbar](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/toolbar) | `1.1.11` | `1.1.12` | | [@radix-ui/react-tooltip](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/tooltip) | `1.2.8` | `1.2.9` | | [@radix-ui/react-visually-hidden](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/visually-hidden) | `1.2.4` | `1.2.5` | Updates `@radix-ui/react-collapsible` from 1.1.12 to 1.1.13 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/collapsible/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/collapsible) Updates `@radix-ui/react-context-menu` from 2.2.16 to 2.3.0 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/context-menu/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/context-menu) Updates `@radix-ui/react-dialog` from 1.1.15 to 1.1.16 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/dialog) Updates `@radix-ui/react-direction` from 1.1.1 to 1.1.2 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/direction/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/direction) Updates `@radix-ui/react-dropdown-menu` from 2.1.16 to 2.1.17 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/dropdown-menu/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/dropdown-menu) Updates `@radix-ui/react-one-time-password-field` from 0.1.8 to 0.1.9 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/one-time-password-field/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/one-time-password-field) Updates `@radix-ui/react-popover` from 1.1.15 to 1.1.16 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/popover/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/popover) Updates `@radix-ui/react-select` from 2.2.6 to 2.3.0 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/select/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/select) Updates `@radix-ui/react-slot` from 1.2.4 to 1.2.5 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/slot/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/slot) Updates `@radix-ui/react-switch` from 1.2.6 to 1.3.0 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/switch/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/switch) Updates `@radix-ui/react-tabs` from 1.1.13 to 1.1.14 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/tabs/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/tabs) Updates `@radix-ui/react-toolbar` from 1.1.11 to 1.1.12 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/toolbar/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/toolbar) Updates `@radix-ui/react-tooltip` from 1.2.8 to 1.2.9 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/tooltip/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/tooltip) Updates `@radix-ui/react-visually-hidden` from 1.2.4 to 1.2.5 - [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/visually-hidden/CHANGELOG.md) - [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/visually-hidden) --- updated-dependencies: - dependency-name: "@radix-ui/react-collapsible" dependency-version: 1.1.13 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-context-menu" dependency-version: 2.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: radix-ui - dependency-name: "@radix-ui/react-dialog" dependency-version: 1.1.16 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-direction" dependency-version: 1.1.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-dropdown-menu" dependency-version: 2.1.17 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-one-time-password-field" dependency-version: 0.1.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-popover" dependency-version: 1.1.16 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-select" dependency-version: 2.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: radix-ui - dependency-name: "@radix-ui/react-slot" dependency-version: 1.2.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-switch" dependency-version: 1.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: radix-ui - dependency-name: "@radix-ui/react-tabs" dependency-version: 1.1.14 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-toolbar" dependency-version: 1.1.12 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-tooltip" dependency-version: 1.2.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui - dependency-name: "@radix-ui/react-visually-hidden" dependency-version: 1.2.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: radix-ui ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 28 +- yarn.lock | 910 ++++++++++++++++++++++++++++++++------------------- 2 files changed, 595 insertions(+), 343 deletions(-) diff --git a/package.json b/package.json index 6f02a1ce9f..82009cf68e 100644 --- a/package.json +++ b/package.json @@ -88,20 +88,20 @@ "@octokit/webhooks-types": "^7.6.1", "@outlinewiki/koa-passport": "^4.2.1", "@outlinewiki/passport-azure-ad-oauth2": "^0.1.0", - "@radix-ui/react-collapsible": "^1.1.12", - "@radix-ui/react-context-menu": "^2.2.16", - "@radix-ui/react-dialog": "^1.1.15", - "@radix-ui/react-direction": "^1.1.1", - "@radix-ui/react-dropdown-menu": "^2.1.16", - "@radix-ui/react-one-time-password-field": "^0.1.8", - "@radix-ui/react-popover": "^1.1.15", - "@radix-ui/react-select": "^2.2.6", - "@radix-ui/react-slot": "^1.2.3", - "@radix-ui/react-switch": "^1.2.6", - "@radix-ui/react-tabs": "^1.1.13", - "@radix-ui/react-toolbar": "^1.1.11", - "@radix-ui/react-tooltip": "^1.2.8", - "@radix-ui/react-visually-hidden": "^1.2.4", + "@radix-ui/react-collapsible": "^1.1.13", + "@radix-ui/react-context-menu": "^2.3.0", + "@radix-ui/react-dialog": "^1.1.16", + "@radix-ui/react-direction": "^1.1.2", + "@radix-ui/react-dropdown-menu": "^2.1.17", + "@radix-ui/react-one-time-password-field": "^0.1.9", + "@radix-ui/react-popover": "^1.1.16", + "@radix-ui/react-select": "^2.3.0", + "@radix-ui/react-slot": "^1.2.5", + "@radix-ui/react-switch": "^1.3.0", + "@radix-ui/react-tabs": "^1.1.14", + "@radix-ui/react-toolbar": "^1.1.12", + "@radix-ui/react-tooltip": "^1.2.9", + "@radix-ui/react-visually-hidden": "^1.2.5", "@sentry/node": "^7.120.4", "@sentry/react": "^7.120.4", "@simplewebauthn/browser": "^13.3.0", diff --git a/yarn.lock b/yarn.lock index e4f5bb2ceb..9e38d85a46 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4229,10 +4229,10 @@ __metadata: languageName: node linkType: hard -"@radix-ui/number@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/number@npm:1.1.1" - checksum: 10c0/0570ad92287398e8a7910786d7cee0a998174cdd6637ba61571992897c13204adf70b9ed02d0da2af554119411128e701d9c6b893420612897b438dc91db712b +"@radix-ui/number@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/number@npm:1.1.2" + checksum: 10c0/c3bddaa1a290f10b723173b38c06a7e958bb6d48ebddf7ccde5e43dcd824473d40f029e1d9067b4c53b5344186888c41a7574896e79bd12ed5f7049086522f77 languageName: node linkType: hard @@ -4243,37 +4243,18 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-arrow@npm:1.1.7": - version: 1.1.7 - resolution: "@radix-ui/react-arrow@npm:1.1.7" - dependencies: - "@radix-ui/react-primitive": "npm:2.1.3" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/c3b46766238b3ee2a394d8806a5141432361bf1425110c9f0dcf480bda4ebd304453a53f294b5399c6ee3ccfcae6fd544921fd01ddc379cf5942acdd7168664b +"@radix-ui/primitive@npm:1.1.4": + version: 1.1.4 + resolution: "@radix-ui/primitive@npm:1.1.4" + checksum: 10c0/f366fa15b721a466ad78f9b5b966f7129fb6932f6f33ab117253ce8c6a13f4895dce4a1fd483d3f15859623d3bfd964a4b172fe1d6ccc3a1a3c4de4c2b861119 languageName: node linkType: hard -"@radix-ui/react-collapsible@npm:^1.1.12": - version: 1.1.12 - resolution: "@radix-ui/react-collapsible@npm:1.1.12" +"@radix-ui/react-arrow@npm:1.1.9": + version: 1.1.9 + resolution: "@radix-ui/react-arrow@npm:1.1.9" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-presence": "npm:1.1.5" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" + "@radix-ui/react-primitive": "npm:2.1.5" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4284,18 +4265,22 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/777cced73fbbec9cfafe6325aa5605e90f49d889af2778f4c4a6be101c07cacd69ae817d0b41cc27e3181f49392e2c06db7f32d6b084db047a51805ec70729b3 + checksum: 10c0/1d7f8fd3e44fc74ca31600368a8570e29e03f4b0c4658467699e61c17ce33ff16ac38180c640894988d930aa758c6a0cc72329dc8d1211b3e41e24605e6d06f8 languageName: node linkType: hard -"@radix-ui/react-collection@npm:1.1.7": - version: 1.1.7 - resolution: "@radix-ui/react-collection@npm:1.1.7" +"@radix-ui/react-collapsible@npm:^1.1.13": + version: 1.1.13 + resolution: "@radix-ui/react-collapsible@npm:1.1.13" dependencies: - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-slot": "npm:1.2.3" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-presence": "npm:1.1.6" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4306,7 +4291,29 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/fa321a7300095508491f75414f02b243f0c3f179dc0728cfd115e2ea9f6f48f1516532b59f526d9ac81bbab63cd98a052074b4703ec0b9428fac945ebabec5fd + checksum: 10c0/040981eccd57f019450e58eba39bb8763928351714f05f02a21be51f0509a81815ddd1b0510c8489493222e1c46107dad105647dcc4c0b4b3260b7061cd931bd + languageName: node + linkType: hard + +"@radix-ui/react-collection@npm:1.1.9": + version: 1.1.9 + resolution: "@radix-ui/react-collection@npm:1.1.9" + dependencies: + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-slot": "npm:1.2.5" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/26e86ba9e4f196ae07df0b19cad347f7c1c3ab26eb0d833c92e18c10a6279bd4277c31ab183fd0e7ddccb48ad0b77a84452f480b1f2186bad04219316cc702e3 languageName: node linkType: hard @@ -4323,16 +4330,28 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-context-menu@npm:^2.2.16": - version: 2.2.16 - resolution: "@radix-ui/react-context-menu@npm:2.2.16" +"@radix-ui/react-compose-refs@npm:1.1.3": + version: 1.1.3 + resolution: "@radix-ui/react-compose-refs@npm:1.1.3" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/c4853e7bc15cda6f68a1bbd7910412cc7f298419ee363fb4e40494e16a1cfadc857b2384dbe4d98b58c1312f280ca3474f67dc14da325d29ae8b7ebcfddaf743 + languageName: node + linkType: hard + +"@radix-ui/react-context-menu@npm:^2.3.0": + version: 2.3.0 + resolution: "@radix-ui/react-context-menu@npm:2.3.0" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-menu": "npm:2.1.16" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-callback-ref": "npm:1.1.1" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-menu": "npm:2.1.17" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4343,7 +4362,7 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/950f7559e65474a19145238cf44d744cb1e49be2221ff18436ba49b496b05ccf93bd3906aaa2c7ab76bc77daf694911a78442801e0053f57d2e57ebbfd281c49 + checksum: 10c0/a74336c840719d7256c4312b2c756c48a1271be74e5b04ab3a5a016109e2bba01cefa3d90a271d4aedb82855fcf9354d7ea096e5e1efc12e9cb1352e6e02b956 languageName: node linkType: hard @@ -4360,7 +4379,20 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-dialog@npm:^1.1.1, @radix-ui/react-dialog@npm:^1.1.15": +"@radix-ui/react-context@npm:1.1.4": + version: 1.1.4 + resolution: "@radix-ui/react-context@npm:1.1.4" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/917be4dcb9fd9f465ab18f6982879daf83a5ca298a22504fa3bc4abd8dea963a57abb9ad38c099dd756ba2cddff0edde680bf8369012f44dedede20912702c8f + languageName: node + linkType: hard + +"@radix-ui/react-dialog@npm:^1.1.1": version: 1.1.15 resolution: "@radix-ui/react-dialog@npm:1.1.15" dependencies: @@ -4392,16 +4424,48 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-direction@npm:1.1.1, @radix-ui/react-direction@npm:^1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-direction@npm:1.1.1" +"@radix-ui/react-dialog@npm:^1.1.16": + version: 1.1.16 + resolution: "@radix-ui/react-dialog@npm:1.1.16" + dependencies: + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-dismissable-layer": "npm:1.1.12" + "@radix-ui/react-focus-guards": "npm:1.1.4" + "@radix-ui/react-focus-scope": "npm:1.1.9" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-portal": "npm:1.1.11" + "@radix-ui/react-presence": "npm:1.1.6" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-slot": "npm:1.2.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + aria-hidden: "npm:^1.2.4" + react-remove-scroll: "npm:^2.7.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/989e72fcac4f9caf62354fdb666c510bc828966f719231a12746e05f9c7a3d3090a797cff601919f72622f2746ead53af1e5e9b2f66ffa1c6c857d63ca66627f + languageName: node + linkType: hard + +"@radix-ui/react-direction@npm:1.1.2, @radix-ui/react-direction@npm:^1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-direction@npm:1.1.2" peerDependencies: "@types/react": "*" react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/7a89d9291f846a3105e45f4df98d6b7a08f8d7b30acdcd253005dc9db107ee83cbbebc9e47a9af1e400bcd47697f1511ceab23a399b0da854488fc7220482ac9 + checksum: 10c0/e8172f8598b5bddaf82bdc2e16e9561d0d89eaf85ef3cd1fe2506a1564398ee6cb07b22fd7d0ac892e733d4f6247b1e328c4b3680141d22a04e262f14ff11230 languageName: node linkType: hard @@ -4428,17 +4492,15 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-dropdown-menu@npm:^2.1.16": - version: 2.1.16 - resolution: "@radix-ui/react-dropdown-menu@npm:2.1.16" +"@radix-ui/react-dismissable-layer@npm:1.1.12": + version: 1.1.12 + resolution: "@radix-ui/react-dismissable-layer@npm:1.1.12" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-menu": "npm:2.1.16" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-callback-ref": "npm:1.1.2" + "@radix-ui/react-use-escape-keydown": "npm:1.1.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4449,7 +4511,32 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/8caaa8dd791ccb284568720adafa59855e13860aa29eb20e10a04ba671cbbfa519a4c5d3a339a4d9fb08009eeb1065f4a8b5c3c8ef45e9753161cc560106b935 + checksum: 10c0/d40c69569777932b37fdb33439da349dbe9f17e95c91b8140f5c957bb25d116f359d57492c48cc8f10b113ebe9b0313a93a31a57ee49ddddd07ddba617aeaa4f + languageName: node + linkType: hard + +"@radix-ui/react-dropdown-menu@npm:^2.1.17": + version: 2.1.17 + resolution: "@radix-ui/react-dropdown-menu@npm:2.1.17" + dependencies: + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-menu": "npm:2.1.17" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/61df99eccd7a3075e98a246aaa2ea8c8e02a6796e34baac8d94bbb056374413f23ef4c12ff208e37477e4c613967dd6b58cfe1cb93d3d08c98c2d12f4c03c857 languageName: node linkType: hard @@ -4466,6 +4553,19 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-focus-guards@npm:1.1.4": + version: 1.1.4 + resolution: "@radix-ui/react-focus-guards@npm:1.1.4" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/0447a97a2672ad04fa73e0af3a09adafa1e85327c43cec2ae7267daa8544c9e6ef3136fbadcbdd3e28bf1ff0864537241c159e26cf5800b7698e5e69772e7ed3 + languageName: node + linkType: hard + "@radix-ui/react-focus-scope@npm:1.1.7": version: 1.1.7 resolution: "@radix-ui/react-focus-scope@npm:1.1.7" @@ -4487,6 +4587,27 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-focus-scope@npm:1.1.9": + version: 1.1.9 + resolution: "@radix-ui/react-focus-scope@npm:1.1.9" + dependencies: + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-callback-ref": "npm:1.1.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/efe05f7fc39449259e49a3705130a58e9ee1d92c4952f065b211a68ace1f354570cbea6ac8ece2c8b0efd119da286dbb388b4c7a5490e97718dbd2945a80b7eb + languageName: node + linkType: hard + "@radix-ui/react-id@npm:1.1.1": version: 1.1.1 resolution: "@radix-ui/react-id@npm:1.1.1" @@ -4502,28 +4623,43 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-menu@npm:2.1.16": - version: 2.1.16 - resolution: "@radix-ui/react-menu@npm:2.1.16" +"@radix-ui/react-id@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-id@npm:1.1.2" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-collection": "npm:1.1.7" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-direction": "npm:1.1.1" - "@radix-ui/react-dismissable-layer": "npm:1.1.11" - "@radix-ui/react-focus-guards": "npm:1.1.3" - "@radix-ui/react-focus-scope": "npm:1.1.7" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-popper": "npm:1.2.8" - "@radix-ui/react-portal": "npm:1.1.9" - "@radix-ui/react-presence": "npm:1.1.5" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-roving-focus": "npm:1.1.11" - "@radix-ui/react-slot": "npm:1.2.3" - "@radix-ui/react-use-callback-ref": "npm:1.1.1" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/cd8638f0e259b9cee26cc8248b96533927abf91302a9164d674a45119a15dbb6929652e450c18bc3b99adf5d02a698152bf45d3ae052e1cd63f68fe8dd1ca87d + languageName: node + linkType: hard + +"@radix-ui/react-menu@npm:2.1.17": + version: 2.1.17 + resolution: "@radix-ui/react-menu@npm:2.1.17" + dependencies: + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-collection": "npm:1.1.9" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-direction": "npm:1.1.2" + "@radix-ui/react-dismissable-layer": "npm:1.1.12" + "@radix-ui/react-focus-guards": "npm:1.1.4" + "@radix-ui/react-focus-scope": "npm:1.1.9" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-popper": "npm:1.3.0" + "@radix-ui/react-portal": "npm:1.1.11" + "@radix-ui/react-presence": "npm:1.1.6" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-roving-focus": "npm:1.1.12" + "@radix-ui/react-slot": "npm:1.2.5" + "@radix-ui/react-use-callback-ref": "npm:1.1.2" aria-hidden: "npm:^1.2.4" - react-remove-scroll: "npm:^2.6.3" + react-remove-scroll: "npm:^2.7.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4534,26 +4670,26 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/27516b2b987fa9181c4da8645000af8f60691866a349d7a46b9505fa7d2e9d92b9e364db4f7305d08e9e57d0e1afc8df8354f8ee3c12aa05c0100c16b0e76c27 + checksum: 10c0/e9b0538277eb3083846b6ec1d0d05db30b56761b9542cae422f839203921c75fb42fe8359605c6bd58f9e3e788bbc09569087283a6bec71c9a662bd596f5637f languageName: node linkType: hard -"@radix-ui/react-one-time-password-field@npm:^0.1.8": - version: 0.1.8 - resolution: "@radix-ui/react-one-time-password-field@npm:0.1.8" +"@radix-ui/react-one-time-password-field@npm:^0.1.9": + version: 0.1.9 + resolution: "@radix-ui/react-one-time-password-field@npm:0.1.9" dependencies: - "@radix-ui/number": "npm:1.1.1" - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-collection": "npm:1.1.7" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-direction": "npm:1.1.1" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-roving-focus": "npm:1.1.11" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" - "@radix-ui/react-use-effect-event": "npm:0.0.2" - "@radix-ui/react-use-is-hydrated": "npm:0.1.0" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" + "@radix-ui/number": "npm:1.1.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-collection": "npm:1.1.9" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-direction": "npm:1.1.2" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-roving-focus": "npm:1.1.12" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + "@radix-ui/react-use-effect-event": "npm:0.0.3" + "@radix-ui/react-use-is-hydrated": "npm:0.1.1" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4564,29 +4700,29 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/1dded300690d148c71b022ef2fffd271faae906ad6546ec39ae537d5f7cfaab76b8c13567c97660bc3623c38eb1686e248e6a442de289f70226df87230196650 + checksum: 10c0/956497a833aed68d86b2459f7469a37d581fb6b573615f24e4093aea3f85d374cc7d5abc2b17d3c0fdff1d2e0426efba08fde8746584ba0201deefd37e944c04 languageName: node linkType: hard -"@radix-ui/react-popover@npm:^1.1.15": - version: 1.1.15 - resolution: "@radix-ui/react-popover@npm:1.1.15" +"@radix-ui/react-popover@npm:^1.1.16": + version: 1.1.16 + resolution: "@radix-ui/react-popover@npm:1.1.16" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-dismissable-layer": "npm:1.1.11" - "@radix-ui/react-focus-guards": "npm:1.1.3" - "@radix-ui/react-focus-scope": "npm:1.1.7" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-popper": "npm:1.2.8" - "@radix-ui/react-portal": "npm:1.1.9" - "@radix-ui/react-presence": "npm:1.1.5" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-slot": "npm:1.2.3" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-dismissable-layer": "npm:1.1.12" + "@radix-ui/react-focus-guards": "npm:1.1.4" + "@radix-ui/react-focus-scope": "npm:1.1.9" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-popper": "npm:1.3.0" + "@radix-ui/react-portal": "npm:1.1.11" + "@radix-ui/react-presence": "npm:1.1.6" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-slot": "npm:1.2.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" aria-hidden: "npm:^1.2.4" - react-remove-scroll: "npm:^2.6.3" + react-remove-scroll: "npm:^2.7.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4597,24 +4733,24 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/c1c76b5e5985b128d03b621424fb453f769931d497759a1977734d303007da9f970570cf3ea1f6968ab609ab4a97f384168bff056197bd2d3d422abea0e3614b + checksum: 10c0/d47334ae70ad1b4647b4eb66ff8f75c5636f96ab2f0d357f38ce51e447d344ccebc77b2c7ea319a49a44e23fd3652f7793cf4e1c2a0ee52fc5f92f5a74b2da8d languageName: node linkType: hard -"@radix-ui/react-popper@npm:1.2.8": - version: 1.2.8 - resolution: "@radix-ui/react-popper@npm:1.2.8" +"@radix-ui/react-popper@npm:1.3.0": + version: 1.3.0 + resolution: "@radix-ui/react-popper@npm:1.3.0" dependencies: "@floating-ui/react-dom": "npm:^2.0.0" - "@radix-ui/react-arrow": "npm:1.1.7" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-callback-ref": "npm:1.1.1" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - "@radix-ui/react-use-rect": "npm:1.1.1" - "@radix-ui/react-use-size": "npm:1.1.1" - "@radix-ui/rect": "npm:1.1.1" + "@radix-ui/react-arrow": "npm:1.1.9" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-callback-ref": "npm:1.1.2" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + "@radix-ui/react-use-rect": "npm:1.1.2" + "@radix-ui/react-use-size": "npm:1.1.2" + "@radix-ui/rect": "npm:1.1.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4625,7 +4761,27 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/48e3f13eac3b8c13aca8ded37d74db17e1bb294da8d69f142ab6b8719a06c3f90051668bed64520bf9f3abdd77b382ce7ce209d056bb56137cecc949b69b421c + checksum: 10c0/9ea9ee61210a3da8c1a206b1a4e67bdc483c9295e3a9b3d6a27e6f035d6a9f506ed12098bae79a3fdb01fc831ce6e0f0f000a9c09f5c8b33a62f003f8d7a342a + languageName: node + linkType: hard + +"@radix-ui/react-portal@npm:1.1.11": + version: 1.1.11 + resolution: "@radix-ui/react-portal@npm:1.1.11" + dependencies: + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/fa5942bbdff1baec9df4238f77a23d36d5e3716ae6b558aa7f9e91b795d4ba4208355ea0770e2f6300678fda6aa7b26fd1e10cdf3f227a6af67e0429a271a1f2 languageName: node linkType: hard @@ -4689,6 +4845,25 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-presence@npm:1.1.6": + version: 1.1.6 + resolution: "@radix-ui/react-presence@npm:1.1.6" + dependencies: + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/8b96ba32eae20162005f7e818b07e1e6e351da03f4753a79403ec58d27c4965e881a506960283fd7ded5b8ecf5ccb6a58bbc1d6799f5254a6cd4e5ae8837e345 + languageName: node + linkType: hard + "@radix-ui/react-primitive@npm:2.1.3": version: 2.1.3 resolution: "@radix-ui/react-primitive@npm:2.1.3" @@ -4727,19 +4902,11 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-roving-focus@npm:1.1.11": - version: 1.1.11 - resolution: "@radix-ui/react-roving-focus@npm:1.1.11" +"@radix-ui/react-primitive@npm:2.1.5": + version: 2.1.5 + resolution: "@radix-ui/react-primitive@npm:2.1.5" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-collection": "npm:1.1.7" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-direction": "npm:1.1.1" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-callback-ref": "npm:1.1.1" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" + "@radix-ui/react-slot": "npm:1.2.5" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4750,35 +4917,63 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/2cd43339c36e89a3bf1db8aab34b939113dfbde56bf3a33df2d74757c78c9489b847b1962f1e2441c67e41817d120cb6177943e0f655f47bc1ff8e44fd55b1a2 + checksum: 10c0/585d59d03343db4894a70dde81f4038660de32235d522f29b95a2c5209be39a6ffbef2ddabad9f3fd2cc002bb927d5ded09bc5fb6a8ccacb58ff405afb4b484c languageName: node linkType: hard -"@radix-ui/react-select@npm:^2.2.6": - version: 2.2.6 - resolution: "@radix-ui/react-select@npm:2.2.6" +"@radix-ui/react-roving-focus@npm:1.1.12": + version: 1.1.12 + resolution: "@radix-ui/react-roving-focus@npm:1.1.12" dependencies: - "@radix-ui/number": "npm:1.1.1" - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-collection": "npm:1.1.7" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-direction": "npm:1.1.1" - "@radix-ui/react-dismissable-layer": "npm:1.1.11" - "@radix-ui/react-focus-guards": "npm:1.1.3" - "@radix-ui/react-focus-scope": "npm:1.1.7" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-popper": "npm:1.2.8" - "@radix-ui/react-portal": "npm:1.1.9" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-slot": "npm:1.2.3" - "@radix-ui/react-use-callback-ref": "npm:1.1.1" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - "@radix-ui/react-use-previous": "npm:1.1.1" - "@radix-ui/react-visually-hidden": "npm:1.2.3" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-collection": "npm:1.1.9" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-direction": "npm:1.1.2" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-callback-ref": "npm:1.1.2" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/7a93bc145a9891a7f48921d7edcb379ab7a318366ac22a18a1d9aa34a89e0b5bd42a7401bf84ed8a1d541c933dadb6c49fb0a6c1e0eb78f8416aa169a850fcb5 + languageName: node + linkType: hard + +"@radix-ui/react-select@npm:^2.3.0": + version: 2.3.0 + resolution: "@radix-ui/react-select@npm:2.3.0" + dependencies: + "@radix-ui/number": "npm:1.1.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-collection": "npm:1.1.9" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-direction": "npm:1.1.2" + "@radix-ui/react-dismissable-layer": "npm:1.1.12" + "@radix-ui/react-focus-guards": "npm:1.1.4" + "@radix-ui/react-focus-scope": "npm:1.1.9" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-popper": "npm:1.3.0" + "@radix-ui/react-portal": "npm:1.1.11" + "@radix-ui/react-presence": "npm:1.1.6" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-slot": "npm:1.2.5" + "@radix-ui/react-use-callback-ref": "npm:1.1.2" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + "@radix-ui/react-use-previous": "npm:1.1.2" + "@radix-ui/react-visually-hidden": "npm:1.2.5" aria-hidden: "npm:^1.2.4" - react-remove-scroll: "npm:^2.6.3" + react-remove-scroll: "npm:^2.7.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4789,15 +4984,15 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/34b2492589c3a4b118a03900d622640033630f30ac93c4a69b3701513117607f4ac3a0d9dd3cad39caa8b6495660f71f3aa9d0074d4eb4dac6804dc0b8408deb + checksum: 10c0/9f10030738ad81d58537f2962fdfadbaa2955bb89f1930607b59b70ada6c9e18c236cd9323591146ff54f993104e44a1b8594548a76af14845eac43932dae349 languageName: node linkType: hard -"@radix-ui/react-separator@npm:1.1.7": - version: 1.1.7 - resolution: "@radix-ui/react-separator@npm:1.1.7" +"@radix-ui/react-separator@npm:1.1.9": + version: 1.1.9 + resolution: "@radix-ui/react-separator@npm:1.1.9" dependencies: - "@radix-ui/react-primitive": "npm:2.1.3" + "@radix-ui/react-primitive": "npm:2.1.5" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4808,7 +5003,7 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/32c0eb4fe018397efbe580542e6e33fdc09b76b96395b2bb4c55da7b6d49224b18f46143bdaf9eb6cb01e166c459fb77508a81d20a591a9034949acee5d171d9 + checksum: 10c0/ebca7c92aaf9b493fba318ce170803c11c132d3d5c69ece5d5857fab49ee8513a1de38cbed1331c7d7809cae9c48f55f439ae2893f9d8d3482dbe595110c87c0 languageName: node linkType: hard @@ -4827,7 +5022,7 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-slot@npm:1.2.4, @radix-ui/react-slot@npm:^1.2.3": +"@radix-ui/react-slot@npm:1.2.4": version: 1.2.4 resolution: "@radix-ui/react-slot@npm:1.2.4" dependencies: @@ -4842,17 +5037,32 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-switch@npm:^1.2.6": - version: 1.2.6 - resolution: "@radix-ui/react-switch@npm:1.2.6" +"@radix-ui/react-slot@npm:1.2.5, @radix-ui/react-slot@npm:^1.2.5": + version: 1.2.5 + resolution: "@radix-ui/react-slot@npm:1.2.5" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" - "@radix-ui/react-use-previous": "npm:1.1.1" - "@radix-ui/react-use-size": "npm:1.1.1" + "@radix-ui/react-compose-refs": "npm:1.1.3" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/348e0ee3970532805dc972656efc7a7427f0f46cca951e8b78e3969d3ffcd51666f000a611fc5f2b0b9921690da77291b08342f9c0aa0261720aecbc5e275cc1 + languageName: node + linkType: hard + +"@radix-ui/react-switch@npm:^1.3.0": + version: 1.3.0 + resolution: "@radix-ui/react-switch@npm:1.3.0" + dependencies: + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + "@radix-ui/react-use-previous": "npm:1.1.2" + "@radix-ui/react-use-size": "npm:1.1.2" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4863,22 +5073,22 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/888303cbeb0e69ebba5676b225f9ea0f00f61453c6b8a6b66384b5c5c4c7fb0ccc53493c1eb14ec6d436e5b867b302aadd6af51a1f2e6c04581c583fd9be65be + checksum: 10c0/a80a41f6524bb3fcde3ddd89a4a39258ccafca152b0f0de6af0e8b1e8e9d32da2552dbe434098999e51625976319e04fc769d56660eafe599757a78aa5fd2bc6 languageName: node linkType: hard -"@radix-ui/react-tabs@npm:^1.1.13": - version: 1.1.13 - resolution: "@radix-ui/react-tabs@npm:1.1.13" +"@radix-ui/react-tabs@npm:^1.1.14": + version: 1.1.14 + resolution: "@radix-ui/react-tabs@npm:1.1.14" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-direction": "npm:1.1.1" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-presence": "npm:1.1.5" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-roving-focus": "npm:1.1.11" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-direction": "npm:1.1.2" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-presence": "npm:1.1.6" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-roving-focus": "npm:1.1.12" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4889,21 +5099,42 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/a3c78cd8c30dcb95faf1605a8424a1a71dab121dfa6e9c0019bb30d0f36d882762c925b17596d4977990005a255d8ddc0b7454e4f83337fe557b45570a2d8058 + checksum: 10c0/73c2a9e8d87545c8f9582b7ff861b02e0ce4e0e97a3294489e07fc0ae0cd82e7563007292ae191dda17e4c2ae91f01977e6e3eda2a2428434a67d38de9eba025 languageName: node linkType: hard -"@radix-ui/react-toggle-group@npm:1.1.11": +"@radix-ui/react-toggle-group@npm:1.1.12": + version: 1.1.12 + resolution: "@radix-ui/react-toggle-group@npm:1.1.12" + dependencies: + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-direction": "npm:1.1.2" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-roving-focus": "npm:1.1.12" + "@radix-ui/react-toggle": "npm:1.1.11" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/638cc8f1285ef81f9ff73fbbf910d6d0f63dd2535636d000b2f6bc3542277803cd186d3790073245065333645dd69c0516e6ee7168d83ccc695a4b6f344a05b5 + languageName: node + linkType: hard + +"@radix-ui/react-toggle@npm:1.1.11": version: 1.1.11 - resolution: "@radix-ui/react-toggle-group@npm:1.1.11" + resolution: "@radix-ui/react-toggle@npm:1.1.11" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-direction": "npm:1.1.1" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-roving-focus": "npm:1.1.11" - "@radix-ui/react-toggle": "npm:1.1.10" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4914,17 +5145,21 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/c8cbccda3e25754ed9f3145c67792df2d5d0ee1a910bde6dc07c4577ab508d4b939f145569d4e2af5b17dc4a5c701473380d8695248f8620cf0a372c05b8e958 + checksum: 10c0/188954040e7edb827662f671f20aeecfedba01ac4785bac940b29ff3f13a7ce93dcbc9ab1edd4f09302e72db1f7b9911d790a6e13ab9aab7b8c1b6a0fe255d0b languageName: node linkType: hard -"@radix-ui/react-toggle@npm:1.1.10": - version: 1.1.10 - resolution: "@radix-ui/react-toggle@npm:1.1.10" +"@radix-ui/react-toolbar@npm:^1.1.12": + version: 1.1.12 + resolution: "@radix-ui/react-toolbar@npm:1.1.12" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-direction": "npm:1.1.2" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-roving-focus": "npm:1.1.12" + "@radix-ui/react-separator": "npm:1.1.9" + "@radix-ui/react-toggle-group": "npm:1.1.12" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4935,21 +5170,26 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/5406cdf5dd7299ae6cfdb4865dc5fd43ca3c475ebcd4e86830bd296d734255b61f749c9bde452ebfaad126033f92dd1112ee9d95982344ffad34491238dcc9b1 + checksum: 10c0/047c9548bd996bdffe1f65a72fb3d9b3547fa644167ad2eb20c1e600553b87d998a9dc4435fa957e428670e64b71481e323111d829cf8d4d21fab824181149cf languageName: node linkType: hard -"@radix-ui/react-toolbar@npm:^1.1.11": - version: 1.1.11 - resolution: "@radix-ui/react-toolbar@npm:1.1.11" +"@radix-ui/react-tooltip@npm:^1.2.9": + version: 1.2.9 + resolution: "@radix-ui/react-tooltip@npm:1.2.9" dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-direction": "npm:1.1.1" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-roving-focus": "npm:1.1.11" - "@radix-ui/react-separator": "npm:1.1.7" - "@radix-ui/react-toggle-group": "npm:1.1.11" + "@radix-ui/primitive": "npm:1.1.4" + "@radix-ui/react-compose-refs": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.4" + "@radix-ui/react-dismissable-layer": "npm:1.1.12" + "@radix-ui/react-id": "npm:1.1.2" + "@radix-ui/react-popper": "npm:1.3.0" + "@radix-ui/react-portal": "npm:1.1.11" + "@radix-ui/react-presence": "npm:1.1.6" + "@radix-ui/react-primitive": "npm:2.1.5" + "@radix-ui/react-slot": "npm:1.2.5" + "@radix-ui/react-use-controllable-state": "npm:1.2.3" + "@radix-ui/react-visually-hidden": "npm:1.2.5" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -4960,37 +5200,7 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/3e2ef134608afd08b7a4fd8b222f7638f6d1760f0c3551a9532c91c82b02192b37684c48d5f2bc6c29e3c4be3d3c63ba9a5660d6e99fefa08044c5ded22ee311 - languageName: node - linkType: hard - -"@radix-ui/react-tooltip@npm:^1.2.8": - version: 1.2.8 - resolution: "@radix-ui/react-tooltip@npm:1.2.8" - dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-dismissable-layer": "npm:1.1.11" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-popper": "npm:1.2.8" - "@radix-ui/react-portal": "npm:1.1.9" - "@radix-ui/react-presence": "npm:1.1.5" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-slot": "npm:1.2.3" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" - "@radix-ui/react-visually-hidden": "npm:1.2.3" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/de0cbae9c571a00671f160928d819e59502f59be8749f536ab4b180181d9d70aee3925a5b2555f8f32d0bea622bc35f65b70ca7ff0449e4844f891302310cc48 + checksum: 10c0/fc109d0967485b21d8360a3d5a193102bd8281e45eda3dd4db7735ac3d4ad18269cac5c320641950be413575f6d466c02e8f10e3fd8a9bfca33dd4816bb260fd languageName: node linkType: hard @@ -5007,6 +5217,19 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-use-callback-ref@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-use-callback-ref@npm:1.1.2" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/aa43df8cf54b410f2b0fff817247cee5e4d4560b86d9bff7c17c19441726163c28f09f908e154607e5e6d0a055538c768381b723c9f5d1019807546f352b4cc1 + languageName: node + linkType: hard + "@radix-ui/react-use-controllable-state@npm:1.2.2": version: 1.2.2 resolution: "@radix-ui/react-use-controllable-state@npm:1.2.2" @@ -5023,6 +5246,22 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-use-controllable-state@npm:1.2.3": + version: 1.2.3 + resolution: "@radix-ui/react-use-controllable-state@npm:1.2.3" + dependencies: + "@radix-ui/react-use-effect-event": "npm:0.0.3" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/8c551263a2753cebc1d60019d8beb307d20cbb1b9847887a9eed13db5392672c6d5179b7f46a2cbd34a64bda702617670012ebcd32cffeb22f6645fcf5345ee8 + languageName: node + linkType: hard + "@radix-ui/react-use-effect-event@npm:0.0.2": version: 0.0.2 resolution: "@radix-ui/react-use-effect-event@npm:0.0.2" @@ -5038,6 +5277,21 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-use-effect-event@npm:0.0.3": + version: 0.0.3 + resolution: "@radix-ui/react-use-effect-event@npm:0.0.3" + dependencies: + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/8808fab0b26e30da9b50070a426b3ac135132c360b23a2a5de331bd06d8b164b10cd5561573dd17530172ba67dde428057fbf9a1f5fae2cba3cc66f118e72406 + languageName: node + linkType: hard + "@radix-ui/react-use-escape-keydown@npm:1.1.1": version: 1.1.1 resolution: "@radix-ui/react-use-escape-keydown@npm:1.1.1" @@ -5053,18 +5307,31 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-use-is-hydrated@npm:0.1.0": - version: 0.1.0 - resolution: "@radix-ui/react-use-is-hydrated@npm:0.1.0" +"@radix-ui/react-use-escape-keydown@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-use-escape-keydown@npm:1.1.2" dependencies: - use-sync-external-store: "npm:^1.5.0" + "@radix-ui/react-use-callback-ref": "npm:1.1.2" peerDependencies: "@types/react": "*" react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/635079bafe32829fc7405895154568ea94a22689b170489fd6d77668e4885e72ff71ed6d0ea3d602852841ef0f1927aa400fee2178d5dfbeb8bc9297da7d6498 + checksum: 10c0/3fce06fbb986b21712db2ba3ec52b79c0928c7341983b3f08b878258d6b6f35247882c87a990bc1cd30ca44662cfe86733263d3b00cbdf34252311b8c7195138 + languageName: node + linkType: hard + +"@radix-ui/react-use-is-hydrated@npm:0.1.1": + version: 0.1.1 + resolution: "@radix-ui/react-use-is-hydrated@npm:0.1.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/70e72c0fb3a2eb0526bbd631671c13d2e6ce3fd12418150daf13f6ce547d949f45a2d764c77bc89074267393ed66f29b988b45cee141497f002ece409d754872 languageName: node linkType: hard @@ -5081,54 +5348,67 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-use-previous@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-use-previous@npm:1.1.1" +"@radix-ui/react-use-layout-effect@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-use-layout-effect@npm:1.1.2" peerDependencies: "@types/react": "*" react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/52f1089d941491cd59b7f52a5679a14e9381711419a0557ce0f3bc9a4c117078224efec54dcced41a3653a13a386a7b6ec75435d61a273e8b9f5d00235f2b182 + checksum: 10c0/c7fc76744a4d37b5010eac33eda6439db2ac4d657e2bb5f596236e60aa4384ac88a7b2e3ebc1c88312c5c536a40081cc85ae6d70c0bba4bb8702d302b8ff07f7 languageName: node linkType: hard -"@radix-ui/react-use-rect@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-use-rect@npm:1.1.1" - dependencies: - "@radix-ui/rect": "npm:1.1.1" +"@radix-ui/react-use-previous@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-use-previous@npm:1.1.2" peerDependencies: "@types/react": "*" react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/271711404c05c589c8dbdaa748749e7daf44bcc6bffc9ecd910821c3ebca0ee245616cf5b39653ce690f53f875c3836fd3f36f51ab1c628273b6db599eee4864 + checksum: 10c0/12832e4785c853995a117a795f77aba8cedc9665623dd5183be810057b225ef5799f175f498dc2f0800adda5474fcc80ab5428de2c195b9f8aa7b3e37b240542 languageName: node linkType: hard -"@radix-ui/react-use-size@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-use-size@npm:1.1.1" +"@radix-ui/react-use-rect@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-use-rect@npm:1.1.2" dependencies: - "@radix-ui/react-use-layout-effect": "npm:1.1.1" + "@radix-ui/rect": "npm:1.1.2" peerDependencies: "@types/react": "*" react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/851d09a816f44282e0e9e2147b1b571410174cc048703a50c4fa54d672de994fd1dfff1da9d480ecfd12c77ae8f48d74f01adaf668f074156b8cd0043c6c21d8 + checksum: 10c0/eafaa88ea33bfb3761a81a3badb73ecf99c613aa7c10e53dac08fee3457d21f4dfd1e65b5a47e7925e4aa1da60f2793404183353d4d21e85aae4009c76de64d4 languageName: node linkType: hard -"@radix-ui/react-visually-hidden@npm:1.2.3": - version: 1.2.3 - resolution: "@radix-ui/react-visually-hidden@npm:1.2.3" +"@radix-ui/react-use-size@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-use-size@npm:1.1.2" dependencies: - "@radix-ui/react-primitive": "npm:2.1.3" + "@radix-ui/react-use-layout-effect": "npm:1.1.2" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/0a088412bb831fd1d59f9058352aca384c2d0a07b894b35707b3486eea4a1d8a37a04fb117379f9a8a46a921b0092f97b29b517689c8f97029ec73eb68973521 + languageName: node + linkType: hard + +"@radix-ui/react-visually-hidden@npm:1.2.5, @radix-ui/react-visually-hidden@npm:^1.2.5": + version: 1.2.5 + resolution: "@radix-ui/react-visually-hidden@npm:1.2.5" + dependencies: + "@radix-ui/react-primitive": "npm:2.1.5" peerDependencies: "@types/react": "*" "@types/react-dom": "*" @@ -5139,33 +5419,14 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/cf86a37f1cbee50a964056f3dc4f6bb1ee79c76daa321f913aa20ff3e1ccdfafbf2b114d7bb616aeefc7c4b895e6ca898523fdb67710d89bd5d8edb739a0d9b6 + checksum: 10c0/9d0169a1950cbc4a9c47893e7101fc1286bfec85489665692f818c4322a8614dcccab873ce06099220c20dc454d978153e29fc6fb23d37bc89c10b8ed4f037db languageName: node linkType: hard -"@radix-ui/react-visually-hidden@npm:^1.2.4": - version: 1.2.4 - resolution: "@radix-ui/react-visually-hidden@npm:1.2.4" - dependencies: - "@radix-ui/react-primitive": "npm:2.1.4" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/cca313cd3268f483612da1ab91c4cca55a54d24963dd543154f2d043bfdca21a96ab0582152ae473de44769474867d5433dbadae799a42932e6204fd2d5fa889 - languageName: node - linkType: hard - -"@radix-ui/rect@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/rect@npm:1.1.1" - checksum: 10c0/0dac4f0f15691199abe6a0e067821ddd9d0349c0c05f39834e4eafc8403caf724106884035ae91bbc826e10367e6a5672e7bec4d4243860fa7649de246b1f60b +"@radix-ui/rect@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/rect@npm:1.1.2" + checksum: 10c0/304d648c4b6786755a10eabf2327f40b7c6303bb588174ab6194a5bb032c195c51f3e43395dee1dd37239fa68b63558092f2bc8ce5a14962d5e4303afb0a17ca languageName: node linkType: hard @@ -15135,20 +15396,20 @@ __metadata: "@octokit/webhooks-types": "npm:^7.6.1" "@outlinewiki/koa-passport": "npm:^4.2.1" "@outlinewiki/passport-azure-ad-oauth2": "npm:^0.1.0" - "@radix-ui/react-collapsible": "npm:^1.1.12" - "@radix-ui/react-context-menu": "npm:^2.2.16" - "@radix-ui/react-dialog": "npm:^1.1.15" - "@radix-ui/react-direction": "npm:^1.1.1" - "@radix-ui/react-dropdown-menu": "npm:^2.1.16" - "@radix-ui/react-one-time-password-field": "npm:^0.1.8" - "@radix-ui/react-popover": "npm:^1.1.15" - "@radix-ui/react-select": "npm:^2.2.6" - "@radix-ui/react-slot": "npm:^1.2.3" - "@radix-ui/react-switch": "npm:^1.2.6" - "@radix-ui/react-tabs": "npm:^1.1.13" - "@radix-ui/react-toolbar": "npm:^1.1.11" - "@radix-ui/react-tooltip": "npm:^1.2.8" - "@radix-ui/react-visually-hidden": "npm:^1.2.4" + "@radix-ui/react-collapsible": "npm:^1.1.13" + "@radix-ui/react-context-menu": "npm:^2.3.0" + "@radix-ui/react-dialog": "npm:^1.1.16" + "@radix-ui/react-direction": "npm:^1.1.2" + "@radix-ui/react-dropdown-menu": "npm:^2.1.17" + "@radix-ui/react-one-time-password-field": "npm:^0.1.9" + "@radix-ui/react-popover": "npm:^1.1.16" + "@radix-ui/react-select": "npm:^2.3.0" + "@radix-ui/react-slot": "npm:^1.2.5" + "@radix-ui/react-switch": "npm:^1.3.0" + "@radix-ui/react-tabs": "npm:^1.1.14" + "@radix-ui/react-toolbar": "npm:^1.1.12" + "@radix-ui/react-tooltip": "npm:^1.2.9" + "@radix-ui/react-visually-hidden": "npm:^1.2.5" "@relative-ci/agent": "npm:^4.3.1" "@sentry/node": "npm:^7.120.4" "@sentry/react": "npm:^7.120.4" @@ -19792,15 +20053,6 @@ __metadata: languageName: node linkType: hard -"use-sync-external-store@npm:^1.5.0": - version: 1.6.0 - resolution: "use-sync-external-store@npm:1.6.0" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - checksum: 10c0/35e1179f872a53227bdf8a827f7911da4c37c0f4091c29b76b1e32473d1670ebe7bcd880b808b7549ba9a5605c233350f800ffab963ee4a4ee346ee983b6019b - languageName: node - linkType: hard - "utf8-byte-length@npm:^1.0.1": version: 1.0.5 resolution: "utf8-byte-length@npm:1.0.5" From dc38abc475b24fac3616006aa2eadd49e1f4f1e4 Mon Sep 17 00:00:00 2001 From: Ori <1646245+orikad@users.noreply.github.com> Date: Tue, 16 Jun 2026 01:48:12 +0300 Subject: [PATCH 257/286] only users with "manage" permissions can edit page permissions (#12597) * only users with "manage" permissions can edit page permissions * Fix document permission test authentication * allow manage perms on archived docs --- server/policies/document.test.ts | 51 +++- server/policies/document.ts | 7 +- server/routes/api/documents/documents.test.ts | 234 +++++++++++++++++- 3 files changed, 286 insertions(+), 6 deletions(-) diff --git a/server/policies/document.test.ts b/server/policies/document.test.ts index 23a00778d8..e9e6736cf0 100644 --- a/server/policies/document.test.ts +++ b/server/policies/document.test.ts @@ -33,7 +33,7 @@ describe("read_write collection", () => { expect(abilities.download).toBeTruthy(); expect(abilities.update).toBeTruthy(); expect(abilities.createChildDocument).toBeTruthy(); - expect(abilities.manageUsers).toBeTruthy(); + expect(abilities.manageUsers).toEqual(false); expect(abilities.archive).toBeTruthy(); expect(abilities.delete).toBeTruthy(); expect(abilities.share).toBeTruthy(); @@ -41,6 +41,53 @@ describe("read_write collection", () => { expect(abilities.comment).toBeTruthy(); }); + it("should allow user management for collection admins", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const user = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + }); + const doc = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + await collection.$add("user", user, { + through: { + permission: CollectionPermission.Admin, + createdById: admin.id, + }, + }); + + // reload to get membership + const document = await Document.findByPk(doc.id, { userId: user.id }); + const abilities = serialize(user, document); + expect(abilities.read).toBeTruthy(); + expect(abilities.update).toBeTruthy(); + expect(abilities.manageUsers).toBeTruthy(); + }); + + it("should allow user management for workspace admins with read access", async () => { + const team = await buildTeam(); + const user = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: CollectionPermission.Read, + }); + const doc = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + + // reload to get membership + const document = await Document.findByPk(doc.id, { userId: user.id }); + const abilities = serialize(user, document); + expect(abilities.read).toBeTruthy(); + expect(abilities.update).toEqual(false); + expect(abilities.manageUsers).toBeTruthy(); + }); + it("should allow read permissions for viewer", async () => { const team = await buildTeam(); const user = await buildUser({ @@ -308,7 +355,7 @@ describe("archived document", () => { expect(abilities.unarchive).toBeTruthy(); expect(abilities.update).toEqual(false); expect(abilities.createChildDocument).toEqual(false); - expect(abilities.manageUsers).toEqual(false); + expect(abilities.manageUsers).toBeTruthy(); expect(abilities.archive).toEqual(false); expect(abilities.share).toEqual(false); expect(abilities.move).toEqual(false); diff --git a/server/policies/document.ts b/server/policies/document.ts index db305824df..216d045158 100644 --- a/server/policies/document.ts +++ b/server/policies/document.ts @@ -107,11 +107,12 @@ allow(User, "publish", Document, (actor, document) => allow(User, "manageUsers", Document, (actor, document) => and( - can(actor, "update", document), + isTeamMutable(actor), + can(actor, "read", document), or( includesMembership(document, [DocumentPermission.Admin]), - and(isTeamAdmin(actor, document), can(actor, "read", document)), - can(actor, "updateDocument", document?.collection), + isTeamAdmin(actor, document), + can(actor, "update", document?.collection), !!document?.isDraft && actor.id === document?.createdById ) ) diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index fa98dce801..3145a3f08f 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -12,7 +12,7 @@ import { import { TextHelper } from "@shared/utils/TextHelper"; import { createContext } from "@server/context"; import { parser } from "@server/editor"; -import type { User } from "@server/models"; +import type { Group, User } from "@server/models"; import { Document, View, @@ -47,6 +47,106 @@ beforeEach(async () => { await buildDocument(); }); +type PermissionManagementSubject = { + actor: User; + document: Document; + member: User; + group: Group; +}; + +async function expectCanManageDocumentPermissions({ + actor, + document, + member, + group, +}: PermissionManagementSubject) { + const addUser = await server.post("/api/documents.add_user", actor, { + body: { + id: document.id, + userId: member.id, + }, + }); + expect(addUser.status).toEqual(200); + + const removeUser = await server.post("/api/documents.remove_user", actor, { + body: { + id: document.id, + userId: member.id, + }, + }); + expect(removeUser.status).toEqual(200); + + const addGroup = await server.post("/api/documents.add_group", actor, { + body: { + id: document.id, + groupId: group.id, + }, + }); + expect(addGroup.status).toEqual(200); + + const removeGroup = await server.post("/api/documents.remove_group", actor, { + body: { + id: document.id, + groupId: group.id, + }, + }); + expect(removeGroup.status).toEqual(200); +} + +async function expectCannotManageDocumentPermissions({ + actor, + document, + member, + group, +}: PermissionManagementSubject) { + await UserMembership.create({ + userId: member.id, + documentId: document.id, + permission: DocumentPermission.Read, + createdById: actor.id, + }); + await GroupMembership.create({ + groupId: group.id, + documentId: document.id, + permission: DocumentPermission.Read, + createdById: actor.id, + }); + + const addUser = await server.post("/api/documents.add_user", actor, { + body: { + id: document.id, + userId: member.id, + permission: DocumentPermission.ReadWrite, + }, + }); + expect(addUser.status).toEqual(403); + + const removeUser = await server.post("/api/documents.remove_user", actor, { + body: { + id: document.id, + userId: member.id, + }, + }); + expect(removeUser.status).toEqual(403); + + const addGroup = await server.post("/api/documents.add_group", actor, { + body: { + id: document.id, + groupId: group.id, + permission: DocumentPermission.ReadWrite, + }, + }); + expect(addGroup.status).toEqual(403); + + const removeGroup = await server.post("/api/documents.remove_group", actor, { + body: { + id: document.id, + groupId: group.id, + }, + }); + expect(removeGroup.status).toEqual(403); +} + describe("#documents.info", () => { it("should fail if both id and shareId are absent", async () => { const res = await server.post("/api/documents.info", { @@ -4916,6 +5016,138 @@ describe("#documents.users", () => { }); }); +describe("document permission management authorization", () => { + it("should prevent collection read_write members from managing document users and groups", async () => { + const team = await buildTeam(); + const actor = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: CollectionPermission.ReadWrite, + }); + const document = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + const member = await buildUser({ teamId: team.id }); + const group = await buildGroup({ teamId: team.id }); + + await expectCannotManageDocumentPermissions({ + actor, + document, + member, + group, + }); + }); + + it("should allow collection admins to manage document users and groups", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const actor = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + userId: admin.id, + permission: null, + }); + const document = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + const member = await buildUser({ teamId: team.id }); + const group = await buildGroup({ teamId: team.id }); + await collection.$add("user", actor, { + through: { + permission: CollectionPermission.Admin, + createdById: admin.id, + }, + }); + + await expectCanManageDocumentPermissions({ + actor, + document, + member, + group, + }); + }); + + it("should allow workspace admins with read access to manage document users and groups", async () => { + const team = await buildTeam(); + const actor = await buildAdmin({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: CollectionPermission.Read, + }); + const document = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + const member = await buildUser({ teamId: team.id }); + const group = await buildGroup({ teamId: team.id }); + + await expectCanManageDocumentPermissions({ + actor, + document, + member, + group, + }); + }); + + it("should allow direct document admins to manage users and groups", async () => { + const team = await buildTeam(); + const actor = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + }); + const document = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + const member = await buildUser({ teamId: team.id }); + const group = await buildGroup({ teamId: team.id }); + await UserMembership.create({ + userId: actor.id, + documentId: document.id, + permission: DocumentPermission.Admin, + createdById: actor.id, + }); + + await expectCanManageDocumentPermissions({ + actor, + document, + member, + group, + }); + }); + + it("should prevent direct document read_write members from managing users and groups", async () => { + const team = await buildTeam(); + const actor = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + }); + const document = await buildDocument({ + teamId: team.id, + collectionId: collection.id, + }); + const member = await buildUser({ teamId: team.id }); + const group = await buildGroup({ teamId: team.id }); + await UserMembership.create({ + userId: actor.id, + documentId: document.id, + permission: DocumentPermission.ReadWrite, + createdById: actor.id, + }); + + await expectCannotManageDocumentPermissions({ + actor, + document, + member, + group, + }); + }); +}); + describe("#documents.add_user", () => { it("should require id", async () => { const user = await buildUser(); From 018a08c6d7a73a7b36a7de4c5477535d2436cade Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:48:29 -0400 Subject: [PATCH 258/286] New Crowdin updates (#12612) * fix: New French translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Danish translations from Crowdin [ci skip] * fix: New Japanese translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] * fix: New Portuguese, Brazilian translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] * fix: New Spanish translations from Crowdin [ci skip] * fix: New Czech translations from Crowdin [ci skip] * fix: New Romanian translations from Crowdin [ci skip] * fix: New German translations from Crowdin [ci skip] * fix: New Hebrew translations from Crowdin [ci skip] * fix: New Hungarian translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New Dutch translations from Crowdin [ci skip] * fix: New Polish translations from Crowdin [ci skip] * fix: New Portuguese translations from Crowdin [ci skip] * fix: New Swedish translations from Crowdin [ci skip] * fix: New Turkish translations from Crowdin [ci skip] * fix: New Ukrainian translations from Crowdin [ci skip] * fix: New Chinese Simplified translations from Crowdin [ci skip] * fix: New Chinese Traditional translations from Crowdin [ci skip] * fix: New Vietnamese translations from Crowdin [ci skip] * fix: New Indonesian translations from Crowdin [ci skip] * fix: New Persian translations from Crowdin [ci skip] * fix: New Thai translations from Crowdin [ci skip] * fix: New English, United Kingdom translations from Crowdin [ci skip] * fix: New Norwegian Bokmal translations from Crowdin [ci skip] * fix: New Italian translations from Crowdin [ci skip] * fix: New French translations from Crowdin [ci skip] * fix: New Catalan translations from Crowdin [ci skip] --- shared/i18n/locales/ca_ES/translation.json | 38 +- shared/i18n/locales/cs_CZ/translation.json | 12 +- shared/i18n/locales/da_DK/translation.json | 12 +- shared/i18n/locales/de_DE/translation.json | 12 +- shared/i18n/locales/en_GB/translation.json | 12 +- shared/i18n/locales/es_ES/translation.json | 12 +- shared/i18n/locales/fa_IR/translation.json | 12 +- shared/i18n/locales/fr_FR/translation.json | 30 +- shared/i18n/locales/he_IL/translation.json | 12 +- shared/i18n/locales/hu_HU/translation.json | 12 +- shared/i18n/locales/id_ID/translation.json | 12 +- shared/i18n/locales/it_IT/translation.json | 12 +- shared/i18n/locales/ja_JP/translation.json | 58 +- shared/i18n/locales/ko_KR/translation.json | 12 +- shared/i18n/locales/nb_NO/translation.json | 12 +- shared/i18n/locales/nl_NL/translation.json | 36 +- shared/i18n/locales/pl_PL/translation.json | 12 +- shared/i18n/locales/pt_BR/translation.json | 12 +- shared/i18n/locales/pt_PT/translation.json | 12 +- shared/i18n/locales/ro_RO/translation.json | 12 +- shared/i18n/locales/sv_SE/translation.json | 12 +- shared/i18n/locales/th_TH/translation.json | 12 +- shared/i18n/locales/tr_TR/translation.json | 12 +- shared/i18n/locales/uk_UA/translation.json | 12 +- shared/i18n/locales/vi_VN/translation.json | 12 +- shared/i18n/locales/zh_CN/translation.json | 12 +- shared/i18n/locales/zh_TW/translation.json | 1472 ++++++++++---------- 27 files changed, 1003 insertions(+), 895 deletions(-) diff --git a/shared/i18n/locales/ca_ES/translation.json b/shared/i18n/locales/ca_ES/translation.json index 891f5d544f..d5ea5b564d 100644 --- a/shared/i18n/locales/ca_ES/translation.json +++ b/shared/i18n/locales/ca_ES/translation.json @@ -1,5 +1,5 @@ { - "New API key": "Clau API nova", + "New API key": "Nova clau API", "Copy": "Còpia", "API key copied": "S'ha copiat la clau API", "Delete": "Elimina", @@ -12,13 +12,13 @@ "Edit": "Editar", "Edit collection": "Editar col·lecció", "Permissions": "Permisos", - "Collection permissions": "Permisos de col·lecció", + "Collection permissions": "Permisos de la col·lecció", "Share this collection": "Compartir aquesta col·lecció", "Import document": "Importar document", - "Uploading": "S'està carregant", + "Uploading": "S'està penjant", "Sort in sidebar": "Ordena a la barra lateral", - "A-Z sort": "Classificació A-Z", - "Z-A sort": "Classificació Z-A", + "A-Z sort": "Ordena A-Z", + "Z-A sort": "Ordena Z-A", "Manual sort": "Ordenació manual", "Search in collection": "Cerca a la col·lecció", "Star": "Destaca", @@ -188,6 +188,7 @@ "Collection": "Col·lecció", "Collections": "Col·leccions", "Debug": "Depuració", + "Date": "Data", "Document": "Document", "Search results": "Resultats de cerca", "Documents": "Documents", @@ -542,14 +543,14 @@ "Viewers can only view and comment on documents.": "Els lectors només poden veure i comentar documents.", "Are you sure you want to make {{ userName }} a {{ role }}?": "Esteu segur que voleu fer que {{ userName }} sigui {{ role }}?", "I understand, delete": "Entenc, elimina", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Esteu segur que voleu eliminar permanentment {{ userName }}? Aquesta operació és irrecuperable. Totes les Claus API, webhooks i integracions que hagi creat deixaran de funcionar — considereu suspendre l'usuari.", "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Esteu segur que voleu suspendre {{ userName }}? S'evitarà que els usuaris suspesos iniciïn sessió.", "New name": "Nom nou", "Name can't be empty": "El nom no es pot deixar buit", "Profile picture updated": "Foto de perfil actualitzada", "Unable to upload new profile picture": "No s'ha pogut penjar la nova foto de perfil", "Profile picture": "Foto de perfil", - "Done": "Done", + "Done": "Fet", "Check your email to verify the new address.": "Comproveu el vostre correu electrònic per verificar la nova adreça.", "The email will be changed once verified.": "El correu electrònic es canviarà un cop verificat.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Rebreu un correu electrònic per verificar la teva nova adreça. Ha de ser únic en l'espai de treball.", @@ -567,6 +568,7 @@ "Replacement": "Substitució", "Replace": "Substitueix", "Replace all": "Substitueix-ho tot", + "Options": "Opcions", "Go to link": "Vés a l'enllaç", "Open link": "Obre l'enllaç", "Remove link": "Elimina l'enllaç", @@ -615,8 +617,6 @@ "Divider": "Divisor", "Page break": "Salt de pàgina", "Current date": "Data actual", - "Current time": "Hora actual", - "Current date and time": "Data i hora actuals", "Info notice": "Avís d'informació", "Success notice": "Avís d'èxit", "Warning notice": "Avís d'alerta", @@ -647,10 +647,13 @@ "Edit image URL": "Edita l'URL de la imatge", "Default width": "Amplada predeterminada", "Distribute columns": "Distribueix les columnes", - "Delete table": "Elimina la taula", "Export as CSV": "Exporta com a CSV", + "Delete table": "Elimina la taula", + "Align": "Alinea", + "Sort": "Ordena", "Sort ascending": "Ordenació ascendent", "Sort descending": "Ordenació descendent", + "Background": "Fons", "Toggle header": "Commuta la capçalera", "Insert after": "Insereix després", "Insert before": "Insereix abans", @@ -683,7 +686,7 @@ "Embeds": "Incrustacions", "Configure which embed providers are available in the editor.": "Configura quins proveïdors d'incrustació estan disponibles a l'editor.", "Install": "Instal·lar", - "Change profile picture": "Change profile picture", + "Change profile picture": "Canviar imatge del perfil", "Change name": "Canvia el nom", "Change email": "Canvia el correu electrònic", "Suspend user": "Suspèn l'usuari", @@ -1040,7 +1043,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Se us redirigirà a <em>{{ redirectUri }}</em> després d'autoritzar. Assegureu-vos que confieu en aquest URL.", "read": "llegir", "write": "escriure", - "create": "create", + "create": "crear", "read and write": "llegir i escriure", "API keys": "Claus API", "attachments": "adjunts", @@ -1057,10 +1060,10 @@ "users": "usuaris", "teams": "equips", "workspace": "espai de treball", - "Full access": "Full access", + "Full access": "Accés complet", "Read all data": "Llegeix totes les dades", "Write all data": "Escriu totes les dades", - "Create all data": "Create all data", + "Create all data": "Crear totes les dades", "Any collection": "Qualsevol col·lecció", "All time": "Des de sempre", "Past day": "El darrer dia", @@ -1169,7 +1172,7 @@ "Your import is being processed, you can safely leave this page": "S'està processant la vostra importació, podeu sortir d'aquesta pàgina", "File not supported – please upload a valid ZIP file": "El fitxer no és compatible – pugeu un fitxer ZIP vàlid", "Set the default permission level for collections created from the import": "Estableix el nivell de permisos per defecte per a les col·leccions creades a partir de la importació", - "Uploading {{progress}}%": "Uploading {{progress}}%", + "Uploading {{progress}}%": "S'està penjant {{progress}}%", "Start import": "Inicia la importació", "Added by": "Afegit per", "Date added": "Data d'addició", @@ -1612,7 +1615,7 @@ "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Proporcioneu un nom descriptiu per a aquest webhook i l'URL a la qual hauríem d'enviar una sol·licitud POST quan es creïn esdeveniments coincidents.", "A memorable identifer": "Un identificador memorable", "URL": "URL", - "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", + "Webhook delivery over http is insecure, use https if possible": "L'enviament del webhook a través d'http és insegur, utilitzeu https si és possible", "Signing secret": "Clau de la signatura", "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum amount of events that your application needs to function.": "Subscriu-te a tots els esdeveniments, grups o esdeveniments individuals. Recomanem només subscriure's a la quantitat mínima d'esdeveniments que la teva aplicació necessita per funcionar.", "All events": "Tots els esdeveniments", @@ -1777,5 +1780,6 @@ "Hide completed": "Amaga els completats", "Write a caption": "Escriu una llegenda", "Add title": "Afegeix un títol", - "Add content": "Afegeix contingut" + "Add content": "Afegeix contingut", + "Tomorrow": "Demà" } diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 8e44e004cf..87d3728d26 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -188,6 +188,7 @@ "Collection": "Kolekce", "Collections": "Kolekce", "Debug": "Ladění", + "Date": "Date", "Document": "Dokument", "Search results": "Výsledky vyhledávání", "Documents": "Dokumenty", @@ -567,6 +568,7 @@ "Replacement": "Nahrazení", "Replace": "Nahradit", "Replace all": "Nahradit vše", + "Options": "Options", "Go to link": "Přejít na odkaz", "Open link": "Otevřít odkaz", "Remove link": "Odstranit odkaz", @@ -615,8 +617,6 @@ "Divider": "Oddělovač", "Page break": "Konec stránky", "Current date": "Aktuální datum", - "Current time": "Aktuální čas", - "Current date and time": "Aktuální datum a čas", "Info notice": "Informační upozornění", "Success notice": "Úspěch", "Warning notice": "Varování", @@ -647,10 +647,13 @@ "Edit image URL": "Upravit URL obrázku", "Default width": "Výchozí šířka", "Distribute columns": "Rozložit sloupce", - "Delete table": "Odstranit tabulku", "Export as CSV": "Exportovat do CSV", + "Delete table": "Odstranit tabulku", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Seřadit vzestupně", "Sort descending": "Seřadit sestupně", + "Background": "Background", "Toggle header": "Přepnout záhlaví", "Insert after": "Vložit za", "Insert before": "Vložit před", @@ -1777,5 +1780,6 @@ "Hide completed": "Skrýt dokončené", "Write a caption": "Napsat popisek", "Add title": "Přidat titulek", - "Add content": "Přidat obsah" + "Add content": "Přidat obsah", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 2c563fe826..e6390b9c2c 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -188,6 +188,7 @@ "Collection": "Samling", "Collections": "Samlinger", "Debug": "Fejlsøgning", + "Date": "Date", "Document": "Dokument", "Search results": "Søgeresultater", "Documents": "Dokumenter", @@ -567,6 +568,7 @@ "Replacement": "Udskiftning", "Replace": "Udskift", "Replace all": "Udskift alle", + "Options": "Options", "Go to link": "Gå til link", "Open link": "Åbn link", "Remove link": "Fjern link", @@ -615,8 +617,6 @@ "Divider": "Skillelinje", "Page break": "Sideskift", "Current date": "Current date", - "Current time": "Current time", - "Current date and time": "Current date and time", "Info notice": "Info-meddelelse", "Success notice": "Success notice", "Warning notice": "Warning notice", @@ -647,10 +647,13 @@ "Edit image URL": "Redigér billede URL", "Default width": "Standardbredde", "Distribute columns": "Distribute columns", - "Delete table": "Slet tabel", "Export as CSV": "Export as CSV", + "Delete table": "Slet tabel", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sorter stigende", "Sort descending": "Sorter faldende", + "Background": "Background", "Toggle header": "Toggle header", "Insert after": "Indsæt efter", "Insert before": "Indsæt før", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Skriv en tekst", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index 5902350ea4..04e7b454ee 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -188,6 +188,7 @@ "Collection": "Sammlung", "Collections": "Sammlungen", "Debug": "Testen", + "Date": "Date", "Document": "Dokument", "Search results": "Suchergebnisse", "Documents": "Dokumente", @@ -567,6 +568,7 @@ "Replacement": "Ersetzung", "Replace": "Ersetzen", "Replace all": "Alle ersetzen", + "Options": "Options", "Go to link": "Gehe zu Link", "Open link": "Link öffnen", "Remove link": "Link entfernen", @@ -615,8 +617,6 @@ "Divider": "Trennlinie", "Page break": "Seitenumbruch", "Current date": "Aktuelles Datum", - "Current time": "Aktuelle Zeit", - "Current date and time": "Aktuelles Datum & Zeit", "Info notice": "Info-Hinweis", "Success notice": "Erfolgsmitteilung", "Warning notice": "Warnhinweis", @@ -647,10 +647,13 @@ "Edit image URL": "Bild-URL bearbeiten", "Default width": "Standardbreite", "Distribute columns": "Spalten teilen", - "Delete table": "Tabelle löschen", "Export as CSV": "Exportiere als CSV", + "Delete table": "Tabelle löschen", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Aufsteigend sortieren", "Sort descending": "Absteigend sortieren", + "Background": "Background", "Toggle header": "Kopfzeile umschalten", "Insert after": "Danach einfügen", "Insert before": "Davor einfügen", @@ -1777,5 +1780,6 @@ "Hide completed": "Abgeschlossene ausblenden", "Write a caption": "Untertitel schreiben", "Add title": "Titel hinzufügen", - "Add content": "Inhalte hinzufügen" + "Add content": "Inhalte hinzufügen", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/en_GB/translation.json b/shared/i18n/locales/en_GB/translation.json index b8d99d0c9e..733c026780 100644 --- a/shared/i18n/locales/en_GB/translation.json +++ b/shared/i18n/locales/en_GB/translation.json @@ -188,6 +188,7 @@ "Collection": "Collection", "Collections": "Collections", "Debug": "Debug", + "Date": "Date", "Document": "Document", "Search results": "Search results", "Documents": "Documents", @@ -567,6 +568,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Options": "Options", "Go to link": "Go to link", "Open link": "Open link", "Remove link": "Remove link", @@ -615,8 +617,6 @@ "Divider": "Divider", "Page break": "Page break", "Current date": "Current date", - "Current time": "Current time", - "Current date and time": "Current date and time", "Info notice": "Info notice", "Success notice": "Success notice", "Warning notice": "Warning notice", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Default width", "Distribute columns": "Distribute columns", - "Delete table": "Delete table", "Export as CSV": "Export as CSV", + "Delete table": "Delete table", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", + "Background": "Background", "Toggle header": "Toggle header", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Write a caption", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index 9587340ff0..e699fe0344 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -188,6 +188,7 @@ "Collection": "Colección", "Collections": "Colecciones", "Debug": "Depurar", + "Date": "Date", "Document": "Documento", "Search results": "Resultados de la búsqueda", "Documents": "Documentos", @@ -567,6 +568,7 @@ "Replacement": "Reemplazo", "Replace": "Reemplazar", "Replace all": "Reemplazar todas", + "Options": "Options", "Go to link": "Ir al enlace", "Open link": "Abrir enlace", "Remove link": "Eliminar enlace", @@ -615,8 +617,6 @@ "Divider": "Divisor", "Page break": "Salto de página", "Current date": "Fecha actual", - "Current time": "Hora actual", - "Current date and time": "Fecha y hora actual", "Info notice": "Aviso de información", "Success notice": "Aviso de éxito", "Warning notice": "Aviso de advertencia", @@ -647,10 +647,13 @@ "Edit image URL": "Editar URL de la imagen", "Default width": "Ancho predeterminado", "Distribute columns": "Distribuir columnas", - "Delete table": "Eliminar tabla", "Export as CSV": "Exportar como CSV", + "Delete table": "Eliminar tabla", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Ordenar ascendentemente", "Sort descending": "Ordenar descendientemente", + "Background": "Background", "Toggle header": "Mostrar/Ocultar cabecera", "Insert after": "Insertar después", "Insert before": "Insertar antes", @@ -1777,5 +1780,6 @@ "Hide completed": "Ocultar completados", "Write a caption": "Escribe un pie de foto", "Add title": "Añadir título", - "Add content": "Añadir contenido" + "Add content": "Añadir contenido", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index 839be2b137..45e8cbce0b 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -188,6 +188,7 @@ "Collection": "مجموعه", "Collections": "مجموعه‌ها", "Debug": "دیباگ", + "Date": "Date", "Document": "سند", "Search results": "Search results", "Documents": "اسناد", @@ -567,6 +568,7 @@ "Replacement": "مقدار جایگزین", "Replace": "جایگزین کردن", "Replace all": "جایگزینی همه", + "Options": "Options", "Go to link": "برو به لینک", "Open link": "باز کردن لینک", "Remove link": "حذف لینک", @@ -615,8 +617,6 @@ "Divider": "جدا کننده", "Page break": "جداکننده صفحه", "Current date": "تاریخ فعلی", - "Current time": "زمان فعلی", - "Current date and time": "تاریخ و زمان فعلی", "Info notice": "اخطار اطلاع‌رسانی", "Success notice": "اعلان موفقیت", "Warning notice": "بلوک هشدار", @@ -647,10 +647,13 @@ "Edit image URL": "ویرایش آدرس تصویر", "Default width": "عرض پیش‌فرض", "Distribute columns": "Distribute columns", - "Delete table": "حذف جدول", "Export as CSV": "خروجی به CSV", + "Delete table": "حذف جدول", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "مرتب‌سازی صعودی", "Sort descending": "مرتب‌سازی نزولی", + "Background": "Background", "Toggle header": "تغییر وضعیت هدر", "Insert after": "درج بعد از", "Insert before": "درج قبل از", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "عنوانی بنویسید", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index 58c7e278aa..765c87b9e2 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -188,6 +188,7 @@ "Collection": "Collection", "Collections": "Collections", "Debug": "Débogage", + "Date": "Date", "Document": "Document", "Search results": "Résultats de la recherche", "Documents": "Documents", @@ -434,7 +435,7 @@ "Public link copied to clipboard": "Lien public copié dans le presse-papier", "Only lowercase letters, digits and dashes allowed": "Seuls les lettres minuscules, les chiffres et le tiret sont autorisés", "Sorry, this link has already been used": "Désolé, ce lien a déjà été utilisé", - "Publish to web": "Publish to web", + "Publish to web": "Publier sur le web", "Allow anyone with the link to access": "Permettre à toute personne ayant le lien d'accéder", "Publish to internet": "Publier sur Internet", "All documents in this collection will be shared on the web, including any new documents added later": "Tous les documents de cette collection seront partagés sur le web, y compris les nouveaux documents ajoutés plus tard", @@ -446,16 +447,16 @@ "{{ count }} people and {{ count2 }} groups added to the collection_plural": "{{ count }} personnes et {{ count2 }} groupes ont été ajoutés à la collection", "Switch to dark": "Passer en mode sombre", "Switch to light": "Passer en mode clair", - "Subscribe to updates": "Subscribe to updates", + "Subscribe to updates": "S'abonner aux mises à jour", "Logo": "Logo", "Add": "Ajouter", "Add or invite": "Ajouter ou inviter", "Sharing settings updated": "Sharing settings updated", - "Display settings": "Display settings", + "Display settings": "Paramètres d'affichage", "Customize how the published document is displayed": "Customize how the published document is displayed", - "Image options": "Image options", - "Upload": "Upload", - "Site title": "Site title", + "Image options": "Options d'image", + "Upload": "Téléverser", + "Site title": "Titre du site", "Show last modified": "Afficher les dernières modifications", "Display the last modified timestamp on the shared page": "Afficher le dernier horodatage modifié sur la page partagée", "Show table of contents": "Montrer la table des matières", @@ -567,6 +568,7 @@ "Replacement": "Remplacement", "Replace": "Remplacer", "Replace all": "Tout remplacer", + "Options": "Options", "Go to link": "Accéder au lien", "Open link": "Ouvrir le lien", "Remove link": "Supprimer le lien", @@ -611,12 +613,10 @@ "Quote": "Citation", "Code block": "Bloc de code", "Math block (LaTeX)": "Bloc mathématique (LaTeX)", - "Toggle block": "Basculer le bloc", + "Toggle block": "Bloc à bascule", "Divider": "Séparateur", "Page break": "Saut de page", "Current date": "Date actuelle", - "Current time": "Heure actuelle", - "Current date and time": "Date et heure actuelle", "Info notice": "Avis d'information", "Success notice": "Avis de succès", "Warning notice": "Avertissement", @@ -647,10 +647,13 @@ "Edit image URL": "Modifier l'URL de l'image", "Default width": "Largeur par défaut", "Distribute columns": "Répartir les colonnes", - "Delete table": "Supprimer ce tableau", "Export as CSV": "Exporter en CSV", + "Delete table": "Supprimer ce tableau", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Tri croissant", "Sort descending": "Tri décroissant", + "Background": "Background", "Toggle header": "Activer/Désactiver l'en-tête", "Insert after": "Insérer après", "Insert before": "Insérer avant", @@ -675,7 +678,7 @@ "Details": "Détails", "Authentication": "Authentification", "Security": "Sécurité", - "AI": "AI", + "AI": "IA", "API Keys": "Clés API", "Applications": "Applications", "Shared Links": "Liens partagés", @@ -957,7 +960,7 @@ "Outdent list item": "Désindenter la liste", "Move list item up": "Déplacer l'élément vers le haut", "Move list item down": "Déplacer l’élément vers le bas", - "Toggle blocks": "Basculer les blocs", + "Toggle blocks": "Blocs à bascule", "Open / close": "Ouvrir / fermer", "Indent item": "Augmenter le retrait", "Outdent item": "Diminuer le retrait", @@ -1777,5 +1780,6 @@ "Hide completed": "Cacher les complétés", "Write a caption": "Ajoutez une légende", "Add title": "Ajouter un titre", - "Add content": "Ajouter du contenu" + "Add content": "Ajouter du contenu", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index bb73085dd0..6b7cbcd923 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -188,6 +188,7 @@ "Collection": "אוסף", "Collections": "אוספים", "Debug": "לְנַפּוֹת", + "Date": "Date", "Document": "מִסְמָך", "Search results": "תוצאות חיפוש", "Documents": "מסמכים", @@ -567,6 +568,7 @@ "Replacement": "תַחֲלִיף", "Replace": "לְהַחלִיף", "Replace all": "החלף הכל", + "Options": "Options", "Go to link": "עבור לקישור", "Open link": "פתח קישור", "Remove link": "Error 500 (Server Error)!!1500.That’s an error.There was an error. Please try again later.That’s all we know.", @@ -615,8 +617,6 @@ "Divider": "מְחַלֵק", "Page break": "מעבר עמוד", "Current date": "תאריך נוכחי", - "Current time": "זמן נוכחי", - "Current date and time": "תאריך ושעה נוכחיים", "Info notice": "הודעת מידע", "Success notice": "הודעת הצלחה", "Warning notice": "הערת אזהרה", @@ -647,10 +647,13 @@ "Edit image URL": "ערוך את כתובת האתר של התמונה", "Default width": "רוחב ברירת מחדל", "Distribute columns": "חלוקת עמודות", - "Delete table": "מחק טבלה", "Export as CSV": "ייצא כ-CSV", + "Delete table": "מחק טבלה", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "מיין עולה", "Sort descending": "מיון יורד", + "Background": "Background", "Toggle header": "החלף את הכותרת", "Insert after": "הכנס אחרי", "Insert before": "הכנס לפני", @@ -1777,5 +1780,6 @@ "Hide completed": "הסתרה הושלמה", "Write a caption": "כתוב כיתוב", "Add title": "הוסף כותרת", - "Add content": "הוסף תוכן" + "Add content": "הוסף תוכן", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index b5d4ebebb9..d433ad0cce 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -188,6 +188,7 @@ "Collection": "Gyűjtemény", "Collections": "Gyűjtemények", "Debug": "Hibakeresés", + "Date": "Date", "Document": "Dokumentum", "Search results": "Search results", "Documents": "Dokumentumok", @@ -567,6 +568,7 @@ "Replacement": "Csere", "Replace": "Cserél", "Replace all": "Összeset cseréli", + "Options": "Options", "Go to link": "Ugrás a hivatkozásra", "Open link": "Hivatkozás megnyitása", "Remove link": "Hivatkozás eltávolítása", @@ -615,8 +617,6 @@ "Divider": "Elválasztó", "Page break": "Oldaltörés", "Current date": "Jelenlegi dátum", - "Current time": "Jelenlegi idő", - "Current date and time": "Jelenlegi dátum és idő", "Info notice": "Információs értesítés", "Success notice": "Siker értesítés", "Warning notice": "Figyelmeztető értesítés", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Alapértelmezett szélesség", "Distribute columns": "Distribute columns", - "Delete table": "Táblázat törlése", "Export as CSV": "CSV exportálás", + "Delete table": "Táblázat törlése", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Rendezés növekvő sorrendben", "Sort descending": "Rendezés csökkenő sorrendben", + "Background": "Background", "Toggle header": "Fejléc be- vagy kikapcsolása", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Írjon egy elnevezést", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index 18c14f8148..8af0e5154d 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -188,6 +188,7 @@ "Collection": "Koleksi", "Collections": "Koleksi", "Debug": "Debug", + "Date": "Date", "Document": "Dokumen", "Search results": "Search results", "Documents": "Dokumen", @@ -567,6 +568,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Options": "Options", "Go to link": "Buka tautan", "Open link": "Buka tautan", "Remove link": "Hapus tautan", @@ -615,8 +617,6 @@ "Divider": "Pemisah", "Page break": "Halaman Pemisah", "Current date": "Tanggal saat ini", - "Current time": "Waktu saat ini", - "Current date and time": "Tanggal dan waktu saat ini", "Info notice": "Pemberitahuan info", "Success notice": "Pemberitahuan sukses", "Warning notice": "Pemberitahuan peringatan", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Default width", "Distribute columns": "Distribute columns", - "Delete table": "Hapus tabel", "Export as CSV": "Export as CSV", + "Delete table": "Hapus tabel", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", + "Background": "Background", "Toggle header": "Toggle header", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Tulis keterangan", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index d19b9319b4..58b979e636 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -188,6 +188,7 @@ "Collection": "Raccolta", "Collections": "Raccolta", "Debug": "Debug", + "Date": "Data", "Document": "Documento", "Search results": "Risultati della ricerca", "Documents": "Documenti", @@ -567,6 +568,7 @@ "Replacement": "Sostituire", "Replace": "Sostituisci", "Replace all": "Sostituisci tutti", + "Options": "Opzioni", "Go to link": "Vai al link", "Open link": "Apri collegamento", "Remove link": "Elimina link", @@ -615,8 +617,6 @@ "Divider": "Divisore", "Page break": "Interruzione di pagina", "Current date": "Data corrente", - "Current time": "Ora corrente", - "Current date and time": "Data e ora correnti", "Info notice": "Nota informativa", "Success notice": "", "Warning notice": "Nota di avviso", @@ -647,10 +647,13 @@ "Edit image URL": "Modifica URL immagine", "Default width": "Larghezza default", "Distribute columns": "Distribuisci colonne", - "Delete table": "Elimina tabella", "Export as CSV": "Esporta in CSV", + "Delete table": "Elimina tabella", + "Align": "Allineamento", + "Sort": "Ordina", "Sort ascending": "Ordinamento crescente", "Sort descending": "Ordinamento decrescente", + "Background": "Sfondo", "Toggle header": "Attiva/disattiva Intestazione", "Insert after": "Inserisci dopo", "Insert before": "Inserisci prima", @@ -1777,5 +1780,6 @@ "Hide completed": "Nascondi completati", "Write a caption": "Scrivi una descrizione", "Add title": "Aggiungi titolo", - "Add content": "Aggiungi contenuto" + "Add content": "Aggiungi contenuto", + "Tomorrow": "Domani" } diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index 1d050cc37f..216c1c13da 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -169,7 +169,7 @@ "New workspace": "新しいワークスペース", "Create a workspace": "ワークスペースを作成", "Login to workspace": "ワークスペースにログイン", - "template": "template", + "template": "テンプレート", "Template deleted": "テンプレートが削除されました", "Deleting": "削除中", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.", @@ -188,6 +188,7 @@ "Collection": "コレクション", "Collections": "コレクション", "Debug": "デバッグ", + "Date": "Date", "Document": "ドキュメント", "Search results": "Search results", "Documents": "ドキュメント", @@ -209,8 +210,8 @@ "Viewers": "閲覧者", "Managers": "Managers", "Members": "メンバー", - "Manage templates": "Manage templates", - "Choose who can create and edit templates in this collection.": "Choose who can create and edit templates in this collection.", + "Manage templates": "テンプレートの管理", + "Choose who can create and edit templates in this collection.": "このコレクションでテンプレートを作成または編集できるユーザーを選択します。", "Public document sharing": "公開されているドキュメントを共有", "Allow documents within this collection to be shared publicly on the internet.": "このコレクション内のドキュメントをインターネット上で公開することを許可します。", "Commenting": "コメントの追加", @@ -271,7 +272,7 @@ "Document moved": "ドキュメントが移動されました", "Couldn’t move the document, try again?": "ドキュメントを移動できませんでした。もう一度お試しください。", "Move to <em>{{ location }}</em>": "<em>{{ location }}</em> に移動する", - "Couldn’t move the template, try again?": "Couldn’t move the template, try again?", + "Couldn’t move the template, try again?": "テンプレートを移動できませんでした。もう一度お試しください。", "New": "新規作成", "Only visible to you": "あなたにのみ表示されます", "Draft": "下書き", @@ -310,7 +311,7 @@ "Please select an image file": "画像ファイルを選択してください", "Emoji created successfully": "絵文字の作成に成功しました", "Add emoji": "絵文字を追加", - "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.", + "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "透過背景を持つ正方形の画像が最適です。画像が大きすぎる場合は、サイズを変更します。", "Upload an image": "画像をアップロード", "Choose a name": "名前を選択", "name can only contain lowercase letters, numbers, and underscores.": "名前には小文字、数字、アンダースコアのみを含めることができます。", @@ -567,6 +568,7 @@ "Replacement": "置換する", "Replace": "置換", "Replace all": "全て置換", + "Options": "Options", "Go to link": "リンクへ移動", "Open link": "リンクを開く", "Remove link": "リンクを削除", @@ -615,8 +617,6 @@ "Divider": "区切り線", "Page break": "ページ区切り", "Current date": "現在の日付", - "Current time": "現在の時刻", - "Current date and time": "現在の日時", "Info notice": "アラート - INFO", "Success notice": "アラート - SUCCESS", "Warning notice": "アラート - WARNING", @@ -647,10 +647,13 @@ "Edit image URL": "画像のURLを編集", "Default width": "デフォルトの幅", "Distribute columns": "Distribute columns", - "Delete table": "テーブルを削除", "Export as CSV": "CSV 形式でエクスポート", + "Delete table": "テーブルを削除", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "昇順に並べ替え", "Sort descending": "降順にソート", + "Background": "Background", "Toggle header": "ヘッダーの切り替え", "Insert after": "下に挿入", "Insert before": "上に挿入", @@ -680,8 +683,8 @@ "Applications": "アプリ", "Shared Links": "共有済みのリンク", "Import": "インポート", - "Embeds": "Embeds", - "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", + "Embeds": "埋め込み", + "Configure which embed providers are available in the editor.": "エディタで利用可能な埋め込みプロバイダを設定します。", "Install": "インストール", "Change profile picture": "Change profile picture", "Change name": "名前を変更", @@ -715,7 +718,7 @@ "Headings you add to the document will appear here": "ドキュメントに追加した見出しがここに表示されます", "Contents": "目次", "Table of contents": "目次", - "Template options": "Template options", + "Template options": "テンプレートオプション", "User options": "ユーザーオプション", "document": "ドキュメント", "Export complete": "エクスポート完了", @@ -1276,15 +1279,15 @@ "When enabled team members can add comments to documents.": "有効にすると、チームメンバーはドキュメントにコメントを追加できます。", "Danger": "危険", "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", - "Enabled": "Enabled", + "Enabled": "有効化", "Allow supported providers to be inserted as interactive embeds in documents.": "Allow supported providers to be inserted as interactive embeds in documents.", - "Providers": "Providers", + "Providers": "プロバイダー", "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.", - "All providers": "All providers", + "All providers": "全てのプロバイダー", "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 <em>{{ userEmail }}</em> when it’s complete.": "完全なデータをエクスポートするには、時間がかかることがあります。代わりに、単一のドキュメントまたはコレクションをエクスポートすることを検討してください。処理が開始された後、このウェブページを閉じることができます。通知を有効にした場合、エクスポートが完了すると、Url が <em>{{ userEmail }}</em> にメールされます。", + "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 <em>{{ userEmail }}</em> when it’s complete.": "完全なデータをエクスポートするには、時間がかかることがあります。代わりに、単一のドキュメントまたはコレクションをエクスポートすることを検討してください。処理が開始された後、このウェブページを閉じることができます。通知を有効にした場合、エクスポートが完了すると、URL が <em>{{ userEmail }}</em> にメールされます。", "Recent exports": "最近のエクスポート", - "Manage AI and integration features for your workspace.": "Manage AI and integration features for your workspace.", + "Manage AI and integration features for your workspace.": "ワークスペースのAIと統合機能を管理します。", "MCP server": "MCPサーバー", "Allow members to connect to this workspace with MCP to read and write data.": "Allow members to connect to this workspace with MCP to read and write data.", "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.", @@ -1296,7 +1299,7 @@ "Add people to {{groupName}}": "ユーザーを {{groupName}} に追加", "Could not load group members": "Could not load group members", "Add people": "ユーザーを追加", - "Synced to {{ provider }}": "Synced to {{ provider }}", + "Synced to {{ provider }}": "{{ provider }} と同期しました", "No description": "No description", "Create a group": "グループを作成", "Could not load groups": "グループを読み込めませんでした", @@ -1361,16 +1364,16 @@ "Automatically return to the document you were last viewing when the app is re-opened.": "アプリを再度開いたときに、最後に表示していたドキュメントを自動的に表示します。", "Smart text replacements": "スマートテキストの置換", "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "ショートカットをシンボル、ダッシュ、スマート引用符、その他の組版要素に置き換えることでテキストを自動的に書式設定します。", - "Notification badge": "Notification badge", - "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", + "Notification badge": "通知バッジ", + "Choose how unread notifications are indicated on the app icon.": "アプリのアイコンに未読の通知がどのように表示されるかを選択します。", "You may delete your account at any time, note that this is unrecoverable": "アカウントはいつでも削除することができます。これは取り返しのつかないことです。", "Profile saved": "プロフィールを保存しました", "Manage how you appear to other members of the workspace.": "他のメンバーに自分がどのように見えるかを管理します。", "Photo": "画像", "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.": "あなたとわかる名前にしましょう", - "Members and guests": "Members and guests", - "No one": "No one", + "Members and guests": "メンバーおよびゲスト", + "No one": "誰にも表示しない", "Are you sure you want to require invites?": "招待を要求してもよろしいですか?", "New users will first need to be invited to create an account. <em>Default role</em> and <em>Allowed domains</em> will no longer apply.": "新しいユーザーは、アカウントを作成するために招待される必要があります。 <em>デフォルトのロール</em> および <em>許可されたドメイン</em> は適用されなくなります。", "Settings that impact the access, security, and content of your workspace.": "ワークスペースのアクセス、セキュリティ、およびコンテンツに影響する設定。", @@ -1398,9 +1401,9 @@ "You can globally enable and disable public document sharing in the <em>security settings</em>.": "<em>セキュリティ設定</em> で公開ドキュメントの共有をグローバルに有効/無効にすることができます。", "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公開リンクを知っている人は誰でも、リンクが無効になるまでドキュメントの読み取り専用バージョンにアクセスできます。", "A template must have content": "A template must have content", - "Could not load templates": "Could not load templates", - "Templates help your team create consistent and accurate documentation.": "Templates help your team create consistent and accurate documentation.", - "No templates have been created yet": "No templates have been created yet", + "Could not load templates": "テンプレートを読み込めませんでした", + "Templates help your team create consistent and accurate documentation.": "テンプレートにより、チームは一貫性のある正確なドキュメントを作成できます。", + "No templates have been created yet": "テンプレートがまだ作成されていません", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} は {{ appName }} を使用してドキュメントを共有しています。続けるにはログインしてください。", "A confirmation code has been sent to your email address, please enter the code below to permanently destroy this workspace.": "登録されたメールアドレスに認証用のコードが送信されました。ワークスペースを永久に削除するには、メール内のコードを入力してください。", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "<1>{{workspaceName}}</1> ワークスペースを削除すると、全てのコレクション、ドキュメント、ユーザー、および関連データが破棄されます。 {{appName}} からすぐにログアウトされます。", @@ -1483,7 +1486,7 @@ "All users": "All users", "Private": "Private", "View and edit": "View and edit", - "Sharing enabled": "Sharing enabled", + "Sharing enabled": "共有の有効化", "Date archived": "Date archived", "Could not load collections": "Could not load collections", "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.", @@ -1512,7 +1515,7 @@ "Connect GitLab": "Connect GitLab", "Enter the details for your GitLab instance.": "Enter the details for your GitLab instance.", "GitLab URL": "GitLab URL", - "URL must start with https": "URL must start with https", + "URL must start with https": "URLはhttpsで始まる必要があります", "Client ID": "Client ID", "OAuth application ID": "OAuth application ID", "Client Secret": "Client Secret", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "脚注を書く", "Add title": "タイトルを追加", - "Add content": "コンテンツを追加" + "Add content": "コンテンツを追加", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index b048f1dead..efffd45a66 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -188,6 +188,7 @@ "Collection": "컬렉션", "Collections": "컬렉션", "Debug": "디버그", + "Date": "Date", "Document": "문서", "Search results": "검색 결과", "Documents": "문서", @@ -567,6 +568,7 @@ "Replacement": "대체", "Replace": "바꾸기", "Replace all": "모두 바꾸기", + "Options": "Options", "Go to link": "링크로 이동", "Open link": "링크 열기", "Remove link": "링크 삭제", @@ -615,8 +617,6 @@ "Divider": "구분선", "Page break": "페이지 나누기", "Current date": "현재 날짜", - "Current time": "현재 시간", - "Current date and time": "현재 날짜 및 시간", "Info notice": "정보 공지", "Success notice": "성공 안내", "Warning notice": "주의 공지", @@ -647,10 +647,13 @@ "Edit image URL": "이미지 URL 수정", "Default width": "기본 너비", "Distribute columns": "열 배분", - "Delete table": "테이블 삭제", "Export as CSV": "CSV로 내보내기", + "Delete table": "테이블 삭제", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "오름차순 정렬", "Sort descending": "내림차순 정렬", + "Background": "Background", "Toggle header": "토글 제목", "Insert after": "다음에 삽입", "Insert before": "이전에 삽입", @@ -1777,5 +1780,6 @@ "Hide completed": "완료 숨기기", "Write a caption": "캡션 입력", "Add title": "제목 추가", - "Add content": "콘텐츠 추가" + "Add content": "콘텐츠 추가", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index a6edbb5393..ffe9e32863 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -188,6 +188,7 @@ "Collection": "Samling", "Collections": "Samlinger", "Debug": "Feilsøk", + "Date": "Date", "Document": "Dokument", "Search results": "Search results", "Documents": "Dokumenter", @@ -567,6 +568,7 @@ "Replacement": "Erstatning", "Replace": "Erstatt", "Replace all": "Erstatt alle", + "Options": "Options", "Go to link": "Gå til lenke", "Open link": "Åpne lenke", "Remove link": "Fjern lenke", @@ -615,8 +617,6 @@ "Divider": "Skillelinje", "Page break": "Sideskift", "Current date": "Nåværende dato", - "Current time": "Nåværende tid", - "Current date and time": "Nåværende dato og tid", "Info notice": "Infovarsel", "Success notice": "Suksessvarsel", "Warning notice": "Advarselvarsel", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Standardbredde", "Distribute columns": "Distribute columns", - "Delete table": "Slett tabell", "Export as CSV": "Eksporter som CSV", + "Delete table": "Slett tabell", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sorter stigende", "Sort descending": "Sorter synkende", + "Background": "Background", "Toggle header": "Vis/skjul topp", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Skriv en bildetekst", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index 9a292ede4d..573f3f0a33 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -1,7 +1,7 @@ { "New API key": "Nieuwe API-sleutel", "Copy": "Kopiëren", - "API key copied": "API key copied", + "API key copied": "API-sleutel gekopieerd", "Delete": "Verwijderen", "Revoke": "Intrekken", "Revoke API key": "API-sleutel intrekken", @@ -169,7 +169,7 @@ "New workspace": "Nieuwe werkruimte", "Create a workspace": "Werkruimte aanmaken", "Login to workspace": "Inloggen op werkruimte", - "template": "template", + "template": "sjabloon", "Template deleted": "Sjabloon verwijderd", "Deleting": "Verwijderen", "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "Weet je het zeker? Het verwijderen van het sjabloon <em>{{ templateName }}</em> is definitief.", @@ -188,6 +188,7 @@ "Collection": "Collectie", "Collections": "Collecties", "Debug": "Fout opsporen", + "Date": "Date", "Document": "Document", "Search results": "Zoekresultaten", "Documents": "Documenten", @@ -246,7 +247,7 @@ "Install now": "Nu installeren", "Deleted Collection": "Verwijderde Collectie", "Untitled": "Naamloos", - "Collection options": "Collection options", + "Collection options": "Collectie opties", "Document options": "Documentopties", "Unpin": "Losmaken", "Export started": "Exporteren is begonnen", @@ -310,12 +311,12 @@ "Please select an image file": "Selecteer een afbeeldingsbestand", "Emoji created successfully": "Emoji met succes aangemaakt", "Add emoji": "Emoji toevoegen", - "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.", + "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Vierkante afbeeldingen met transparante achtergronden werken het beste. Als je afbeelding te groot is, proberen we het voor je aan te passen.", "Upload an image": "Afbeelding uploaden", "Choose a name": "Kies een naam", "name can only contain lowercase letters, numbers, and underscores.": "naam mag alleen kleine letters, cijfers en onderstrepingstekens bevatten.", "This emoji will be available as": "Deze emoji zal beschikbaar zijn als", - "Emoji replaced": "Emoji replaced", + "Emoji replaced": "Emoji vervangen", "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.", "Module failed to load": "Module kon niet geladen worden", "Loading Failed": "Laden mislukt", @@ -392,9 +393,9 @@ "Full access including sharing": "Full access including sharing", "Permissions for {{ userName }} updated": "Machtigingen voor {{ userName }} bijgewerkt", "Failed to approve access request": "Failed to approve access request", - "Access request dismissed": "Access request dismissed", - "Failed to dismiss access request": "Failed to dismiss access request", - "Approve": "Approve", + "Access request dismissed": "Toegangsverzoek afgewezen", + "Failed to dismiss access request": "Toegangsaanvraag afwijzen mislukt", + "Approve": "Goedkeuren", "Notification options": "Meldingsopties", "Unknown": "Onbekend", "Mentions": "Vermeldingen", @@ -549,7 +550,7 @@ "Profile picture updated": "Profielfoto gewijzigd", "Unable to upload new profile picture": "Kan nieuwe profielfoto niet uploaden", "Profile picture": "Profielfoto", - "Done": "Done", + "Done": "Klaar", "Check your email to verify the new address.": "Controleer je e-mail om het nieuwe adres te verifiëren.", "The email will be changed once verified.": "De e-mail zal worden gewijzigd na controle.", "You will receive an email to verify your new address. It must be unique in the workspace.": "Je ontvangt een e-mail om je nieuwe adres te verifiëren. Het moet uniek zijn in de werkruimte.", @@ -567,6 +568,7 @@ "Replacement": "Vervanging", "Replace": "Vervang", "Replace all": "Vervang alle", + "Options": "Instellingen", "Go to link": "Ga naar link", "Open link": "Open link", "Remove link": "Verwijder link", @@ -615,8 +617,6 @@ "Divider": "Scheidingslijn", "Page break": "Pagina-einde", "Current date": "Huidige datum", - "Current time": "Huidige tijd", - "Current date and time": "Huidige datum en tijd", "Info notice": "Informatie opmerking", "Success notice": "Succes bericht", "Warning notice": "Waarschuwing opmerking", @@ -647,10 +647,13 @@ "Edit image URL": "Afbeeldingslink bewerken", "Default width": "Standaardbreedte", "Distribute columns": "Kolommen verdelen", - "Delete table": "Tabel verwijderen", "Export as CSV": "Exporteren als CSV", + "Delete table": "Tabel verwijderen", + "Align": "Uitlijnen", + "Sort": "Sorteren", "Sort ascending": "Oplopend sorteren", "Sort descending": "Aflopend sorteren", + "Background": "Background", "Toggle header": "Schakel koptekst", "Insert after": "Invoegen achter", "Insert before": "Invoegen voor", @@ -1040,7 +1043,7 @@ "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "Na autorisatie wordt je doorverwezen naar <em>{{ redirectUri }}</em>. Zorg ervoor dat je deze URL vertrouwt.", "read": "lezen", "write": "schrijven", - "create": "create", + "create": "aanmaken", "read and write": "lezen en schrijven", "API keys": "API-sleutels", "attachments": "bijlagen", @@ -1057,7 +1060,7 @@ "users": "gebruikers", "teams": "teams", "workspace": "werkruimte", - "Full access": "Full access", + "Full access": "Volledige toegang", "Read all data": "Lees alle gegevens", "Write all data": "Schrijf alle gegevens", "Create all data": "Create all data", @@ -1713,7 +1716,7 @@ "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", "Great news, {{ invitedName }}, accepted your invitation": "Great news, {{ invitedName }}, accepted your invitation", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", - "Open {{ appName }}": "Open {{ appName }}", + "Open {{ appName }}": "{{ appName }} openen", "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", @@ -1777,5 +1780,6 @@ "Hide completed": "Verbergen voltooid", "Write a caption": "Schrijf een onderschrift", "Add title": "Titel toevoegen", - "Add content": "Inhoud toevoegen" + "Add content": "Inhoud toevoegen", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index fa555fdc3d..b8ab6f95fb 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -188,6 +188,7 @@ "Collection": "Kolekcja", "Collections": "Kolekcje", "Debug": "Debuguj", + "Date": "Date", "Document": "Dokument", "Search results": "Search results", "Documents": "Dokumenty", @@ -567,6 +568,7 @@ "Replacement": "Zastąpienie", "Replace": "Zamień", "Replace all": "Zamień wszystko", + "Options": "Options", "Go to link": "Przejdź do linku", "Open link": "Otwórz link", "Remove link": "Usuń link", @@ -615,8 +617,6 @@ "Divider": "Separator", "Page break": "Podział strony", "Current date": "Aktualna data", - "Current time": "Aktualny czas", - "Current date and time": "Aktualna data i czas", "Info notice": "Zawiadomienie informacyjne", "Success notice": "Zawiadomienie o sukcesie", "Warning notice": "Zawiadomienie ostrzegawcze", @@ -647,10 +647,13 @@ "Edit image URL": "Zmień adres obrazu", "Default width": "Domyślna szerokość", "Distribute columns": "Distribute columns", - "Delete table": "Usuń tabelę", "Export as CSV": "Eksport jako CSV", + "Delete table": "Usuń tabelę", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sortuj rosnąco", "Sort descending": "Sortuj malejąco", + "Background": "Background", "Toggle header": "Przełącz nagłówek", "Insert after": "Wstaw po", "Insert before": "Wstaw przed", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Napisz podpis", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index 55bdab2f04..3fa9d0b260 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -188,6 +188,7 @@ "Collection": "Coleção", "Collections": "Coleções", "Debug": "Depurar", + "Date": "Date", "Document": "Documento", "Search results": "Resultados da pesquisa", "Documents": "Documentos", @@ -567,6 +568,7 @@ "Replacement": "Substituição", "Replace": "Substituir", "Replace all": "Substituir todos", + "Options": "Options", "Go to link": "Ir para o link", "Open link": "Abrir link", "Remove link": "Excluir link", @@ -615,8 +617,6 @@ "Divider": "Divisor", "Page break": "Quebra de página", "Current date": "Data atual", - "Current time": "Horário atual", - "Current date and time": "Data e hora atual", "Info notice": "Aviso de informação", "Success notice": "Aviso de Sucesso", "Warning notice": "Aviso de atenção", @@ -647,10 +647,13 @@ "Edit image URL": "Editar URL da imagem", "Default width": "Default width", "Distribute columns": "Distribuir colunas", - "Delete table": "Excluir tabela", "Export as CSV": "Exportar como CSV", + "Delete table": "Excluir tabela", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Ordenação ascendente", "Sort descending": "Ordenação decrescente", + "Background": "Background", "Toggle header": "Ativar/desativar cabeçalho", "Insert after": "Inserir depois", "Insert before": "Inserir antes", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Escreva uma legenda", "Add title": "Adicionar Título", - "Add content": "Adicionar conteúdo" + "Add content": "Adicionar conteúdo", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index 89f4328d33..817123f983 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -188,6 +188,7 @@ "Collection": "Coleção", "Collections": "Coleções", "Debug": "Depurar", + "Date": "Date", "Document": "Documento", "Search results": "Search results", "Documents": "Documentos", @@ -567,6 +568,7 @@ "Replacement": "Substituição", "Replace": "Substituir", "Replace all": "Trocar todos", + "Options": "Options", "Go to link": "Ir para o link", "Open link": "Abrir link", "Remove link": "Remover link", @@ -615,8 +617,6 @@ "Divider": "Separador", "Page break": "Quebra de página", "Current date": "Data atual", - "Current time": "Hora atual", - "Current date and time": "Data e hora atual", "Info notice": "Aviso de informação", "Success notice": "Notificação de sucesso", "Warning notice": "Aviso de alerta", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Largura padrão", "Distribute columns": "Distribute columns", - "Delete table": "Eliminar tabela", "Export as CSV": "Export as CSV", + "Delete table": "Eliminar tabela", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Ordenação ascendente", "Sort descending": "Ordenação descendente", + "Background": "Background", "Toggle header": "Alternar cabeçalho", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Escreva uma legenda", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/ro_RO/translation.json b/shared/i18n/locales/ro_RO/translation.json index 43195a1e03..fda53fc625 100644 --- a/shared/i18n/locales/ro_RO/translation.json +++ b/shared/i18n/locales/ro_RO/translation.json @@ -188,6 +188,7 @@ "Collection": "Collection", "Collections": "Collections", "Debug": "Debug", + "Date": "Date", "Document": "Document", "Search results": "Search results", "Documents": "Documents", @@ -567,6 +568,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Options": "Options", "Go to link": "Go to link", "Open link": "Open link", "Remove link": "Remove link", @@ -615,8 +617,6 @@ "Divider": "Divider", "Page break": "Page break", "Current date": "Current date", - "Current time": "Current time", - "Current date and time": "Current date and time", "Info notice": "Info notice", "Success notice": "Success notice", "Warning notice": "Warning notice", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Default width", "Distribute columns": "Distribute columns", - "Delete table": "Delete table", "Export as CSV": "Export as CSV", + "Delete table": "Delete table", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", + "Background": "Background", "Toggle header": "Toggle header", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Write a caption", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index 53a80da7d5..480620f0c8 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -188,6 +188,7 @@ "Collection": "Samling", "Collections": "Samlingar", "Debug": "Felsök", + "Date": "Date", "Document": "Dokument", "Search results": "Search results", "Documents": "Dokument", @@ -567,6 +568,7 @@ "Replacement": "Ersättning", "Replace": "Ersätt", "Replace all": "Ersätt alla", + "Options": "Options", "Go to link": "Gå till länk", "Open link": "Öppna länk", "Remove link": "Ta bort länk", @@ -615,8 +617,6 @@ "Divider": "Avdelare", "Page break": "Sidbrytning", "Current date": "Aktuellt datum", - "Current time": "Aktuell tid", - "Current date and time": "Nuvarande datum och tid", "Info notice": "Infomeddelande", "Success notice": "Meddelande om framgång", "Warning notice": "Varningsmeddelande", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Standardbredd", "Distribute columns": "Distribute columns", - "Delete table": "Ta bort tabell", "Export as CSV": "Exportera som CSV", + "Delete table": "Ta bort tabell", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sortera stigande", "Sort descending": "Sortera fallande", + "Background": "Background", "Toggle header": "Visa/dölj topp", "Insert after": "Infoga efter", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Skriv en bildtext", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index 1335618b60..618ef63e5e 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -188,6 +188,7 @@ "Collection": "คอลเลคชั่น", "Collections": "คอลเลคชั่น", "Debug": "ดีบัก", + "Date": "Date", "Document": "เอกสาร", "Search results": "Search results", "Documents": "เอกสาร", @@ -567,6 +568,7 @@ "Replacement": "Replacement", "Replace": "Replace", "Replace all": "Replace all", + "Options": "Options", "Go to link": "ไปที่ลิงค์", "Open link": "เปิดลิงก์", "Remove link": "ลบลิงก์", @@ -615,8 +617,6 @@ "Divider": "ตัวแบ่ง", "Page break": "แบ่งหน้า", "Current date": "วันที่ปัจจุบัน", - "Current time": "เวลาปัจจุบัน", - "Current date and time": "วันที่และเวลาปัจจุบัน", "Info notice": "ประกาศข้อมูล", "Success notice": "Success notice", "Warning notice": "คำเตือน", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Default width", "Distribute columns": "Distribute columns", - "Delete table": "ลบตาราง", "Export as CSV": "Export as CSV", + "Delete table": "ลบตาราง", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sort ascending", "Sort descending": "Sort descending", + "Background": "Background", "Toggle header": "Toggle header", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "เขียนแคปชั่น", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index 696ba8a046..f25282c9b6 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -188,6 +188,7 @@ "Collection": "Koleksiyon", "Collections": "Koleksiyonlar", "Debug": "Hata ayıklama", + "Date": "Date", "Document": "Belge", "Search results": "Arama sonuçları", "Documents": "Belgeler", @@ -567,6 +568,7 @@ "Replacement": "Değiştirme", "Replace": "Değiştir", "Replace all": "Tümünü değiştir", + "Options": "Options", "Go to link": "Bağlantıya git", "Open link": "Bağlantıyı aç", "Remove link": "Bağlantıyı kaldır", @@ -615,8 +617,6 @@ "Divider": "Ayırıcı", "Page break": "Sayfa sonu", "Current date": "Şimdiki tarih", - "Current time": "Şimdiki saat", - "Current date and time": "Şimdiki tarih ve saat", "Info notice": "Bilgi bildirimi", "Success notice": "Başarı bildirimi", "Warning notice": "Uyarı bildirimi", @@ -647,10 +647,13 @@ "Edit image URL": "Görsel URL'sini düzenle", "Default width": "Varsayılan genişlik", "Distribute columns": "Distribute columns", - "Delete table": "Tabloyu sil", "Export as CSV": "CSV olarak dışa aktar", + "Delete table": "Tabloyu sil", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Artan sırada sırala", "Sort descending": "Azalan sırada sırala", + "Background": "Background", "Toggle header": "Başlığı aç/kapat", "Insert after": "Sonrasına ekle", "Insert before": "Öncesine ekle", @@ -1777,5 +1780,6 @@ "Hide completed": "Tamamlananları gizle", "Write a caption": "Bir başlık yazın", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index 70b080f9aa..2f816a4f02 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -188,6 +188,7 @@ "Collection": "Колекція", "Collections": "Колекції", "Debug": "Режим налагодження", + "Date": "Date", "Document": "Документ", "Search results": "Search results", "Documents": "Документи", @@ -567,6 +568,7 @@ "Replacement": "Заміна", "Replace": "Замінити", "Replace all": "Замінити все", + "Options": "Options", "Go to link": "Перейти за посиланням", "Open link": "Відкрити посилання", "Remove link": "Видалити посилання", @@ -615,8 +617,6 @@ "Divider": "Роздільник", "Page break": "Розрив сторінки", "Current date": "Поточна дата", - "Current time": "Поточний час", - "Current date and time": "Поточні дата і час", "Info notice": "Інформаційне повідомлення", "Success notice": "Сповіщення про успіх", "Warning notice": "Попереджувальне повідомлення", @@ -647,10 +647,13 @@ "Edit image URL": "Редагувати посилання на зображення", "Default width": "Стандартна ширина", "Distribute columns": "Розподілити стовпці", - "Delete table": "Видалити таблицю", "Export as CSV": "Експортувати у форматі CSV", + "Delete table": "Видалити таблицю", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Сортування за зростанням", "Sort descending": "Сортувати за спаданням", + "Background": "Background", "Toggle header": "Перемикнути заголовок", "Insert after": "Вставити після", "Insert before": "Вставити до", @@ -1777,5 +1780,6 @@ "Hide completed": "Приховати виконані", "Write a caption": "Напишіть підпис", "Add title": "Додати заголовок", - "Add content": "Додати вміст" + "Add content": "Додати вміст", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index 8307b6056b..fcab2f2a92 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -188,6 +188,7 @@ "Collection": "Bộ sưu tập", "Collections": "Bộ sưu tập", "Debug": "Gỡ lỗi", + "Date": "Date", "Document": "Tài liệu", "Search results": "Search results", "Documents": "Tài liệu", @@ -567,6 +568,7 @@ "Replacement": "Thay thế", "Replace": "Thay thế", "Replace all": "Thay thế tất cả", + "Options": "Options", "Go to link": "Đi đến liên kết", "Open link": "Mở đường Link", "Remove link": "Gỡ bỏ đường Link", @@ -615,8 +617,6 @@ "Divider": "Phân cách", "Page break": "Ngắt trang", "Current date": "Ngày hiện tại", - "Current time": "Thời gian hiện tại", - "Current date and time": "Ngày giờ hiện tại", "Info notice": "Thông báo thông tin", "Success notice": "Thông báo hoàn tất", "Warning notice": "Thông báo cảnh báo", @@ -647,10 +647,13 @@ "Edit image URL": "Edit image URL", "Default width": "Chiều rộng mặc định", "Distribute columns": "Distribute columns", - "Delete table": "Xóa bảng", "Export as CSV": "Export as CSV", + "Delete table": "Xóa bảng", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "Sắp xếp tăng dần", "Sort descending": "Sắp xếp giảm dần", + "Background": "Background", "Toggle header": "Toggle header", "Insert after": "Insert after", "Insert before": "Insert before", @@ -1777,5 +1780,6 @@ "Hide completed": "Hide completed", "Write a caption": "Viết chú thích", "Add title": "Add title", - "Add content": "Add content" + "Add content": "Add content", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index f141c552ed..68809f8993 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -188,6 +188,7 @@ "Collection": "文档集", "Collections": "文档集", "Debug": "调试", + "Date": "Date", "Document": "文档", "Search results": "搜索结果", "Documents": "文档", @@ -567,6 +568,7 @@ "Replacement": "替换", "Replace": "替换", "Replace all": "全部替换", + "Options": "Options", "Go to link": "转到链接", "Open link": "打开链接", "Remove link": "移除链接", @@ -615,8 +617,6 @@ "Divider": "分割线", "Page break": "分页符", "Current date": "当前日期", - "Current time": "当前时间", - "Current date and time": "当前日期和时间", "Info notice": "提示信息", "Success notice": "成功通知", "Warning notice": "警告信息", @@ -647,10 +647,13 @@ "Edit image URL": "编辑图片 URL", "Default width": "默认宽度", "Distribute columns": "分布列", - "Delete table": "删除表格", "Export as CSV": "导出为 CSV", + "Delete table": "删除表格", + "Align": "Align", + "Sort": "Sort", "Sort ascending": "升序排序", "Sort descending": "降序排序", + "Background": "Background", "Toggle header": "切换标题", "Insert after": "在之后插入", "Insert before": "在之前插入", @@ -1777,5 +1780,6 @@ "Hide completed": "隐藏已完成", "Write a caption": "撰写一个标题", "Add title": "添加标题", - "Add content": "添加内容" + "Add content": "添加内容", + "Tomorrow": "Tomorrow" } diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index cdfaa35f03..a26f0d848f 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -1,10 +1,10 @@ { "New API key": "新 API 金鑰", "Copy": "複製", - "API key copied": "API key copied", + "API key copied": "API 金鑰已複製", "Delete": "刪除", "Revoke": "撤銷", - "Revoke API key": "撤銷API金鑰", + "Revoke API key": "撤銷 API 金鑰", "Revoke token": "撤銷權杖", "Open collection": "打開文件集", "New collection": "新文件集", @@ -39,20 +39,20 @@ "Export collection": "匯出文件集", "New document": "建立新文件", "New template": "新增範本", - "Delete comment": "刪除評論", + "Delete comment": "刪除留言", "Mark as resolved": "標記為已解決", - "Thread resolved": "話題已解決", + "Thread resolved": "留言串已解決", "Mark as unresolved": "標記為未解決", - "View reactions": "查看迴響", - "Reactions": "迴響", + "View reactions": "檢視回應", + "Reactions": "回應", "Copy ID": "複製 ID", - "Clear IndexedDB cache": "清除索引資料庫快取", - "IndexedDB cache cleared": "索引資料庫快取已清除", + "Clear IndexedDB cache": "清除 IndexedDB 快取", + "IndexedDB cache cleared": "IndexedDB 快取已清除", "Clear local storage": "清除本機儲存空間", "Local storage cleared": "已清除本機儲存空間", - "Toggle debug logging": "啟用除錯日誌", - "Debug logging enabled": "除錯日誌已啟動", - "Debug logging disabled": "偵錯記錄已停用", + "Toggle debug logging": "切換除錯記錄", + "Debug logging enabled": "除錯記錄已啟用", + "Debug logging disabled": "除錯記錄已停用", "Development": "開發", "Open document": "打開文件", "New draft": "新增草稿", @@ -60,19 +60,19 @@ "Before": "之前", "After": "之後", "Publish": "發佈", - "Published {{ documentName }}": "已發佈 {{ documentName }}", + "Published {{ documentName }}": "已發布 {{ documentName }}", "Publish document": "發佈文件", "Unpublish": "下架", - "Unpublished {{ documentName }}": "撤下發佈 {{ documentName }}", - "Subscription inherited from collection": "訂閱繼承自集合", + "Unpublished {{ documentName }}": "已取消發布 {{ documentName }}", + "Subscription inherited from collection": "訂閱設定繼承自文件集", "Share this document": "分享這份文件", "Download": "下載", "Download document": "下載文件", - "Download as Markdown": "匯出為Markdown", - "Download as HTML": "匯出為HTML", - "Download as PDF": "匯出為PDF", - "Copy as Markdown": "以Markdown格式複製", - "Markdown copied to clipboard": "Markdown已複製到剪貼簿", + "Download as Markdown": "下載為 Markdown", + "Download as HTML": "下載為 HTML", + "Download as PDF": "下載為 PDF", + "Copy as Markdown": "複製為 Markdown", + "Markdown copied to clipboard": "Markdown 已複製到剪貼簿", "Copy as text": "以純文字複製", "Text copied to clipboard": "文字已複製至剪貼簿", "Copy public link": "複製公開連結", @@ -91,24 +91,24 @@ "Print": "列印", "Print document": "列印文件", "Open in desktop app": "在桌面應用程式開啟", - "Present": "投影", - "Present document": "投影文件", + "Present": "簡報", + "Present document": "以簡報模式呈現文件", "Templatize": "作為範本", "Create template": "建立範本", - "Open random document": "隨機打開文件", - "Search documents for \"{{searchQuery}}\"": "搜尋含有 “{{searchQuery}}” 的文件", + "Open random document": "隨機開啟文件", + "Search documents for \"{{searchQuery}}\"": "搜尋含有「{{searchQuery}}」的文件", "Move": "移動", "Move {{ documentType }}": "移動 {{ documentType }}", - "Are you sure you want to archive this document?": "您確定要封存這份文件?", + "Are you sure you want to archive this document?": "您確定要封存這份文件嗎?", "Document archived": "文件已被封存", - "Archiving this document will remove it from the collection and search results.": "封存這個文件將從文件集及搜尋結果中移除。", + "Archiving this document will remove it from the collection and search results.": "封存此文件會將它從文件集與搜尋結果中移除。", "{{ documentName }} restored": "{{ documentName }} 已還原", "Choose a collection": "選擇一個文件集", "Delete {{ documentName }}": "刪除 {{ documentName }}", "Permanently delete": "永久刪除", "Permanently delete {{ documentName }}": "永久刪除 {{ documentName }}", "Empty trash": "清空回收桶", - "Permanently delete documents in trash": "永久刪除回收桶裡的文件", + "Permanently delete documents in trash": "永久刪除回收桶中的文件", "Comments": "留言", "History": "歷史紀錄", "Insights": "洞察分析", @@ -119,7 +119,7 @@ "New emoji": "新增表情符號", "Upload emoji": "上傳表情符號", "Disconnect": "解除連結", - "Disconnect analytics": "解除 Analytics", + "Disconnect analytics": "中斷 Analytics 連結", "Home": "首頁", "Drafts": "草稿", "Search": "搜尋", @@ -130,7 +130,7 @@ "Notification settings": "通知設定", "Notifications": "通知", "Preferences": "喜好設定", - "Documentation": "文件", + "Documentation": "說明文件", "API documentation": "API 文件", "Toggle sidebar": "切換側邊欄", "Send us feedback": "回饋意見給我們", @@ -154,7 +154,7 @@ "Download revision": "下載版本", "Dark": "深色", "Light": "淺色", - "Toggle theme": "切換主題", + "Toggle theme": "切換佈景佈景主題", "System": "依照系統", "Appearance": "介面設定", "Change theme": "變更主題", @@ -169,35 +169,36 @@ "New workspace": "新建的工作空間", "Create a workspace": "建立新的工作空間", "Login to workspace": "登入工作區", - "template": "template", + "template": "範本", "Template deleted": "範本已刪除", "Deleting": "正在刪除", - "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "您確定要刪除 <em>{{ templateName }}</em> 範本? 此動作無法復原。", + "Are you sure about that? Deleting the <em>{{ templateName }}</em> template is permanent.": "您確定要刪除 <em>{{ templateName }}</em> 範本嗎?此動作無法復原。", "Move to workspace": "移至工作區", "Template moved": "範本已移動", - "Couldn't move the template, try again?": "移動文件失敗,是否重新嘗試?", + "Couldn't move the template, try again?": "無法移動範本,要再試一次嗎?", "Move to collection": "移至文件集", "Move template": "移動範本", "Print template": "列印範本", "Invite people": "邀請使用者", "Invite to workspace": "邀請至工作區", - "Promote to {{ role }}": "提升為{{ role }}", - "Demote to {{ role }}": "降級為{{ role }}", + "Promote to {{ role }}": "提升為 {{ role }}", + "Demote to {{ role }}": "降級為 {{ role }}", "Update role": "更新角色", "Delete user": "刪除使用者", "Collection": "文件集", "Collections": "文件集", "Debug": "除錯", + "Date": "Date", "Document": "文件", "Search results": "搜尋結果", "Documents": "所有文件", "Template": "範本", "Recently viewed": "最近瀏覽", - "Revision": "版本紀錄", + "Revision": "修訂版本", "Navigation": "導覽", "Notification": "通知", "Groups": "群組", - "Emoji": "Emoji", + "Emoji": "表情符號", "People": "人員", "Share": "分享", "Workspace": "工作空間", @@ -205,19 +206,19 @@ "currently viewing": "正在瀏覽", "previously edited": "先前編輯過", "You": "您", - "Avatar of {{ name }}": "{{name}} 的大頭貼", + "Avatar of {{ name }}": "{{ name }} 的大頭貼", "Viewers": "檢視者", - "Managers": "管理員", + "Managers": "管理者", "Members": "成員", "Manage templates": "管理範本", "Choose who can create and edit templates in this collection.": "選擇誰可以在此文件集建立、編輯範本。", - "Public document sharing": "公開分享文件", + "Public document sharing": "文件公開分享", "Allow documents within this collection to be shared publicly on the internet.": "允許此文件集內的文件在網際網路上公開分享。", - "Commenting": "評論中", - "Allow commenting on documents within this collection.": "允許評論此文件。", - "Collections are used to group documents and choose permissions": "文件集用於將文件分組並設定權限。", + "Commenting": "留言中", + "Allow commenting on documents within this collection.": "允許對此文件集中的文件留言。", + "Collections are used to group documents and choose permissions": "文件集可用來整理文件並設定權限。", "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.": "工作區成員的預設存取權。您稍後可以再與更多使用者或群組分享。", "Advanced options": "進階選項", "Saving": "正在儲存", "Save": "儲存", @@ -225,24 +226,24 @@ "Create": "建立", "Collection deleted": "文件集已刪除", "I’m sure – Delete": "我確定「刪除」", - "Are you sure about that? Deleting the <em>{{collectionName}}</em> collection is permanent and cannot be restored, however all published documents within will be moved to the trash.": "您確定這麼做嗎? 刪除 <em>{{collectionName}}</em> 文件集後將無法還原,而文件集中包含的文件會被移動到垃圾桶。", - "Also, <em>{{collectionName}}</em> is being used as the start view – deleting it will reset the start view to the Home page.": "此外, <em>{{collectionName}}</em> 被用作開始視圖 - 刪除它會將開始頁面重置為主頁。", + "Are you sure about that? Deleting the <em>{{collectionName}}</em> collection is permanent and cannot be restored, however all published documents within will be moved to the trash.": "您確定要這麼做嗎?刪除 <em>{{collectionName}}</em> 文件集後將無法還原,但其中所有已發布的文件都會移至回收桶。", + "Also, <em>{{collectionName}}</em> is being used as the start view – deleting it will reset the start view to the Home page.": "此外,<em>{{collectionName}}</em> 目前被設為起始畫面;刪除後,起始畫面會重設為首頁。", "Type a command or search": "輸入或搜尋指令", "New from 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 comment?": "您確定要永久刪除此留言嗎?", "Confirm": "確認", - "manage access": "管理存取權限", + "manage access": "管理存取權", "view and edit access": "可以檢視與編輯", "view only access": "僅供檢視", "no access": "無存取權限", - "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "您沒有權限將 {{ documentName }} 移動到 {{ collectionName }} 集合中", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "您沒有權限將 {{ documentName }} 移動到 {{ collectionName }} 文件集", "Move document": "移動文件", "Moving": "正在移動", - "Moving the document <em>{{ title }}</em> to the {{ newCollectionName }} collection will change permission for all workspace members from <em>{{ prevPermission }}</em> to <em>{{ newPermission }}</em>.": "將文件<em>{{ title }}</em>移動至「{{ newCollectionName }}」文件集,會將所有工作區成員的權限從 「<em>{{ prevPermission }}</em>」 變更為 「 <em>{{ newPermission }}</em>」。", + "Moving the document <em>{{ title }}</em> to the {{ newCollectionName }} collection will change permission for all workspace members from <em>{{ prevPermission }}</em> to <em>{{ newPermission }}</em>.": "將文件 <em>{{ title }}</em> 移動至「{{ newCollectionName }}」文件集,會將所有工作區成員的權限從 <em>{{ prevPermission }}</em> 變更為 <em>{{ newPermission }}</em>。", "Collections could not be loaded, please reload the app": "文件集無法被載入,請重新整理 App", - "Start view": "初始介面", + "Start view": "起始畫面", "Install now": "立即安裝", "Deleted Collection": "刪除的文件集", "Untitled": "無標題", @@ -250,28 +251,28 @@ "Document options": "文件選項", "Unpin": "取消釘選", "Export started": "已經開始匯出", - "A link to your file will be sent through email soon": "檔案連結將發送至信箱", + "A link to your file will be sent through email soon": "檔案連結稍後會透過電子郵件寄出", "Preparing your download": "準備下載中", - "A file containing the selected documents in Markdown format.": "A file containing the selected documents in Markdown format.", - "A file containing the selected documents in HTML format.": "A file containing the selected documents in HTML format.", - "A file containing the selected documents in PDF format.": "A file containing the selected documents in PDF format.", - "Include child documents": "包含所有子文件", - "When selected, exporting the document <em>{{documentName}}</em> may take some time.": "When selected, exporting the document <em>{{documentName}}</em> may take some time.", - "You will receive an email when it's complete.": "完成後,您將收到一封電子郵件。", + "A file containing the selected documents in Markdown format.": "包含所選文件且格式為 Markdown 的檔案。", + "A file containing the selected documents in HTML format.": "包含所選文件且格式為 HTML 的檔案。", + "A file containing the selected documents in PDF format.": "包含所選文件且格式為 PDF 的檔案。", + "Include child documents": "包含子文件", + "When selected, exporting the document <em>{{documentName}}</em> may take some time.": "選取後,匯出文件 <em>{{documentName}}</em> 可能需要一些時間。", + "You will receive an email when it's complete.": "完成後,您將收到電子郵件。", "Select a location to copy": "選擇要複製到的位置", "Document copied": "已複製文件", - "Couldn’t copy the document, try again?": "無法複製文件,再嘗試一次?", + "Couldn’t copy the document, try again?": "無法複製文件,要再試一次嗎?", "Include nested documents": "包含所有子文件", - "Copy to <em>{{ location }}</em>": "複製到<em>{{ location }}</em>", + "Copy to <em>{{ location }}</em>": "複製到 <em>{{ location }}</em>", "Copying": "複製中", "Search collections & documents": "搜尋文件集與文件", "Search collections": "搜尋文件集", "No results found": "找不到任何結果", "Select a location to move": "選擇要移動至的位置", "Document moved": "文件已移動", - "Couldn’t move the document, try again?": "無法移動文件,請重新嘗試。", + "Couldn’t move the document, try again?": "無法移動文件,請再試一次。", "Move to <em>{{ location }}</em>": "移動至 <em>{{ location }}</em>", - "Couldn’t move the template, try again?": "移動文件失敗,是否重新嘗試?", + "Couldn’t move the template, try again?": "無法移動範本,要再試一次嗎?", "New": "新", "Only visible to you": "只有您可以檢視", "Draft": "草稿", @@ -284,15 +285,15 @@ "Imported": "已匯入", "You created": "由您建立", "{{ userName }} created": "由 {{ userName }} 建立", - "You published": "由您發佈", - "{{ userName }} published": "由 {{ userName }} 發佈", + "You published": "由您發布", + "{{ userName }} published": "由 {{ userName }} 發布", "Never viewed": "從未瀏覽過", "Viewed": "已瀏覽", "in": "在", "nested document": "子文件", "nested document_plural": "子文件", "{{ total }} task": "{{ total }} 任務", - "{{ total }} task_plural": "共 {{ total }} 項工作", + "{{ total }} task_plural": "{{ total }} 項工作", "{{ completed }} task done": "{{ completed }} 任務已完成", "{{ completed }} task done_plural": "已完成 {{ completed }} 項工作", "{{ completed }} of {{ total }} tasks": "{{ completed }} / {{ total }} 任務已完成", @@ -301,38 +302,38 @@ "Viewed {{ timeAgo }}": "{{ timeAgo }} 前瀏覽過", "Uploading… {{ progress }}%": "上傳中…{{ progress }}%", "File type not supported. Please use PNG, JPG, GIF, or WebP.": "不支援的檔案格式,請使用 PNG、JPG、GIF 或 WebP。", - "File size too large. Maximum size is {{ size }}.": "已超過最大檔案限制 {{ size }} 。", - "Click or drag to replace": "點擊或拖曳來取代", - "Drop the image here": "拖曳影像到這裡", - "Click, drop, or paste an image here": "點擊、放置或貼上影像到這裡", - "PNG, JPG, GIF, or WebP up to {{ size }}": "PNG, JPG, GIF, or WebP 最大為 {{ size }}", + "File size too large. Maximum size is {{ size }}.": "檔案太大。大小上限為 {{ size }}。", + "Click or drag to replace": "點選或拖曳以取代", + "Drop the image here": "將圖片拖放到這裡", + "Click, drop, or paste an image here": "點選、拖放或貼上圖片到這裡", + "PNG, JPG, GIF, or WebP up to {{ size }}": "PNG、JPG、GIF 或 WebP,大小上限為 {{ size }}", "Please enter a name for the emoji": "請輸入表情符號名稱", - "Please select an image file": "請選擇一個影像檔案", + "Please select an image file": "請選擇圖片檔案", "Emoji created successfully": "表情符號已建立", "Add emoji": "新增表情符號", - "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.", + "Square images with transparent backgrounds work best. If your image is too large, we'll try to resize it for you.": "方形且背景透明的圖片效果最佳。如果圖片太大,我們會嘗試為您調整大小。", "Upload an image": "上傳圖片", - "Choose a name": "選擇一個名稱", + "Choose a name": "選擇名稱", "name can only contain lowercase letters, numbers, and underscores.": "名稱只能是英文小寫、數字和底線。", - "This emoji will be available as": "可用的表情符號", - "Emoji replaced": "Emoji replaced", - "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.", + "This emoji will be available as": "此表情符號可作為", + "Emoji replaced": "表情符號已取代", + "Upload a new image to replace the current one for <em>{{emojiName}}</em>. All existing uses of this emoji will be updated automatically.": "上傳新圖片,以取代 <em>{{emojiName}}</em> 目前使用的圖片。所有已使用此表情符號的地方都會自動更新。", "Module failed to load": "模組載入失敗", "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.": "抱歉,部分應用程式載入失敗。有可能是因為在您打開分頁後被更新過,或是網路連線請求失敗。請嘗試重新載入。", "Reload": "重新載入", "Something Unexpected Happened": "發生了未預期的狀況", - "An error has occurred multiple times recently. If it continues please try clearing the cache or using a different browser.": "問題在近期已多次發生,如果問題持續發生,請試試清除快取或使用其它瀏覽器。", + "An error has occurred multiple times recently. If it continues please try clearing the cache or using a different browser.": "問題在近期已多次發生,如果問題持續發生,請試試清除快取或使用其他瀏覽器。", "Sorry, an unrecoverable error occurred{{notified}}. Please try reloading the page, it may have been a temporary glitch.": "抱歉,發生了無法回復的錯誤 {{notified}}。錯誤有可能只是暫時的,請嘗試重新載入頁面。", "our engineers have been notified": "我們的工程師已經收到通知", "Clear cache + reload": "清除快取並重新整理", "Show detail": "顯示詳情", - "A ZIP file containing the images, and documents in the Markdown format.": "包含圖片和 Markdown 格式文件的 ZIP 文件。", - "A ZIP file containing the images, and documents as HTML files.": "包含圖片和 HTML 格式文件的 ZIP 文件。", - "Structured data that can be used to transfer data to another compatible {{ appName }} instance.": "可用於將資料傳輸到另一個相容的 {{ appName }} 實例的結構化資料。", + "A ZIP file containing the images, and documents in the Markdown format.": "包含圖片與 Markdown 格式文件的 ZIP 檔案。", + "A ZIP file containing the images, and documents as HTML files.": "包含圖片與 HTML 文件的 ZIP 檔案。", + "Structured data that can be used to transfer data to another compatible {{ appName }} instance.": "可用於將資料轉移到另一個相容 {{ appName }} 執行個體的結構化資料。", "Exporting the collection <em>{{collectionName}}</em> may take some time.": "匯出文件集 <em>{{collectionName}}</em> 可能需要一些時間。", "Include attachments": "包含附件", - "Including uploaded images and files in the exported data": "在輸出的數據中將會包含您上傳的圖片跟文件", + "Including uploaded images and files in the exported data": "在匯出的資料中包含已上傳的圖片與檔案", "Include private collections": "包含私人的文件集", "{{count}} more user": "還有 {{count}} 位使用者", "{{count}} more user_plural": "還有 {{count}} 位使用者", @@ -341,14 +342,14 @@ "No results": "找不到任何結果", "{{ count }} members": "{{ count }} 位成員", "{{ count }} members_plural": "{{ count }} 位成員", - "{{authorName}} created <3></3>": "{{authorName}}建立了<3></3>", + "{{authorName}} created <3></3>": "{{authorName}} 建立了<3></3>", "Lead": "負責人", "Target date": "目標日期", "Labels": "標籤", - "{{authorName}} opened <3></3>": "{{authorName}}開啟了<3></3>", + "{{authorName}} opened <3></3>": "{{authorName}} 開啟了<3></3>", "Search emoji": "搜尋表情符號", "Search icons": "搜尋圖示", - "Choose default skin tone": "選擇預設的膚色", + "Choose default skin tone": "選擇預設膚色", "Show menu": "顯示選單", "Icon Picker": "圖示選擇器", "Icons": "圖示", @@ -359,7 +360,7 @@ "Search Results": "搜尋結果", "Smileys & People": "表情符號與人物", "Animals & Nature": "動物與自然", - "Food & Drink": "食物和飲料", + "Food & Drink": "食物與飲料", "Activity": "活動", "Travel & Places": "旅遊與地點", "Objects": "物品", @@ -374,114 +375,114 @@ "Dismiss": "知道了", "Unable to download image": "無法下載影像", "Lightbox": "燈箱", - "View, navigate, or download images in the document": "在文件中檢視、瀏覽或下載影像", + "View, navigate, or download images in the document": "在文件中檢視、瀏覽或下載圖片", "Zoom in": "放大", "Zoom out": "縮小", - "Edit diagram": "修改圖表", + "Edit diagram": "編輯圖表", "Close": "關閉", "Previous": "上一個", "Next": "下一個", "Image failed to load": "影像載入失敗", "You’re offline.": "您目前離線中。", "Sorry, an error occurred.": "抱歉,發生錯誤。", - "Click to retry": "按此重新嘗試", + "Click to retry": "按此再試一次", "Back": "上一步", - "Can view the document": "Can view the document", - "Can view and edit the document": "Can view and edit the document", + "Can view the document": "可以檢視文件", + "Can view and edit the document": "可以檢視與編輯文件", "Manage": "管理", - "Full access including sharing": "Full access including sharing", + "Full access including sharing": "包含分享的完整存取權", "Permissions for {{ userName }} updated": "{{ userName }} 的權限已更新", - "Failed to approve access request": "Failed to approve access request", - "Access request dismissed": "Access request dismissed", - "Failed to dismiss access request": "Failed to dismiss access request", - "Approve": "Approve", + "Failed to approve access request": "無法核准存取要求", + "Access request dismissed": "存取要求已忽略", + "Failed to dismiss access request": "無法忽略存取要求", + "Approve": "核准", "Notification options": "通知選項", "Unknown": "未知", "Mentions": "提及", - "Comments and replies": "評論及回覆", + "Comments and replies": "留言及回覆", "Document events": "文件事件", "Collection events": "文件集事件", "Mark all as read": "全部標記為已讀", - "You're all caught up": "已看完所有評論!", - "Client type": "用戶端類型", + "You're all caught up": "您已檢視所有通知", + "Client type": "客戶端類型", "Confidential": "機密", - "Suitable for server-side applications": "適合伺服器端應用", + "Suitable for server-side applications": "適合伺服器端應用程式", "Public": "公開", - "Suitable for client-side or mobile applications": "適合客戶端或手機端應用", + "Suitable for client-side or mobile applications": "適合客戶端或行動裝置應用程式", "Icon": "圖示", "OAuth client icon": "OAuth 客戶端圖示", "My App": "我的應用程式", - "Tagline": "Tagline", - "A short description": "簡易描述", - "Callback URLs": "回呼網址 (Callback URL)", - "Published": "已發佈", - "Allow this app to be installed by other workspaces": "允許該應用程式安裝至其它工作空間", - "{{ 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 }}", + "Tagline": "標語", + "A short description": "簡短描述", + "Callback URLs": "回呼 URL (Callback URL)", + "Published": "已發布", + "Allow this app to be installed by other workspaces": "允許其他工作區安裝此應用程式", + "{{ 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": "回應", - "{{ hours }}h {{ minutes }}m read": "{{ hours }}小時{{ minutes }}分閱讀", - "{{ hours }}h read": "{{ hours }}小時閱讀", - "{{ minutes }}m read": "{{ minutes }}分鐘閱讀", + "{{ hours }}h {{ minutes }}m read": "閱讀時間 {{ hours }} 小時 {{ minutes }} 分鐘", + "{{ hours }}h read": "閱讀時間 {{ hours }} 小時", + "{{ minutes }}m read": "閱讀時間 {{ minutes }} 分鐘", "All members": "所有成員", "Everyone in the workspace": "工作區裡的所有人", "{{ count }} member": "{{ count }} 位成員", "{{ count }} member_plural": "{{ count }} 位成員", "Public link copied to clipboard": "已將連結複製到剪貼簿", - "Only lowercase letters, digits and dashes allowed": "只允許使用小寫字母、數字和破折號", + "Only lowercase letters, digits and dashes allowed": "僅允許小寫字母、數字和連字號", "Sorry, this link has already been used": "抱歉,此連結已被使用", - "Publish to web": "Publish to web", - "Allow anyone with the link to access": "允許任何知道該連結的人訪問", - "Publish to internet": "發佈到網路", - "All documents in this collection will be shared on the web, including any new documents added later": "所有在此文件集的文件將發佈於網路,包含任何未來新增的文件", + "Publish to web": "發布到網頁", + "Allow anyone with the link to access": "允許任何知道該連結的人存取", + "Publish to internet": "發布到網際網路", + "All documents in this collection will be shared on the web, including any new documents added later": "此文件集中的所有文件都會發布到網頁上,包含日後新增的任何文件", "Invite": "邀請", "{{ userName }} was added to the collection": "{{ userName }} 已經被新增到文件集", - "{{ count }} people added to the collection": "{{ count }} 人已經被新增到文件集", - "{{ count }} people added to the collection_plural": "{{ count }} 人已經被新增到文件集", - "{{ count }} people and {{ count2 }} groups added to the collection": "{{ count }} 人以及 {{ count2 }} 個群組已經被新增到文件集", - "{{ count }} people and {{ count2 }} groups added to the collection_plural": "{{ count }} 人以及 {{ count2 }} 個群組已經被新增到文件集", + "{{ count }} people added to the collection": "{{ count }} 人已經新增至文件集", + "{{ count }} people added to the collection_plural": "{{ count }} 人已經新增至文件集", + "{{ count }} people and {{ count2 }} groups added to the collection": "{{ count }} 人以及 {{ count2 }} 個群組已經新增至文件集", + "{{ count }} people and {{ count2 }} groups added to the collection_plural": "{{ count }} 人以及 {{ count2 }} 個群組已經新增至文件集", "Switch to dark": "切換到深色模式", "Switch to light": "切換到淺色模式", - "Subscribe to updates": "Subscribe to updates", + "Subscribe to updates": "訂閱更新", "Logo": "Logo", "Add": "新增", "Add or invite": "新增或邀請", - "Sharing settings updated": "Sharing settings updated", - "Display settings": "Display settings", - "Customize how the published document is displayed": "Customize how the published document is displayed", - "Image options": "Image options", - "Upload": "Upload", - "Site title": "Site title", - "Show last modified": "顯示最後修改", - "Display the last modified timestamp on the shared page": "顯示最後修改時間戳記於分享頁面", + "Sharing settings updated": "分享設定已更新", + "Display settings": "顯示設定", + "Customize how the published document is displayed": "自訂已發布文件的顯示方式", + "Image options": "圖片選項", + "Upload": "上傳", + "Site title": "網站標題", + "Show last modified": "顯示最後修改時間", + "Display the last modified timestamp on the shared page": "在分享頁面顯示最後修改時間戳記", "Show table of contents": "顯示目錄", - "Display the table of contents on documents by default": "預設顯示文件目錄", + "Display the table of contents on documents by default": "預設在文件中顯示目錄", "Behavior": "行為", - "Search engine indexing": "搜索引擎索引", - "Disable this setting to discourage search engines from indexing the page": "停用此設定可阻止搜尋引擎為此頁面建立索引", - "Email subscriptions": "Email subscriptions", - "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Search engine indexing": "搜尋引擎索引", + "Disable this setting to discourage search engines from indexing the page": "停用此設定可避免搜尋引擎索引此頁面", + "Email subscriptions": "電子郵件訂閱", + "Allow viewers to subscribe and receive email notifications when documents are updated": "允許檢視者訂閱,並在文件更新時收到電子郵件通知", "Something went wrong": "發生了某些錯誤", - "Check your email to confirm your subscription": "Check your email to confirm your subscription", - "Get notified when this document is updated": "Get notified when this document is updated", + "Check your email to confirm your subscription": "請檢視電子郵件以確認訂閱", + "Get notified when this document is updated": "在此文件更新時接收通知", "Email address": "電子郵件地址", "Viewer": "檢視者", "Editor": "編輯者", "Suggestions for invitation": "建議邀請", - "No matches": "無匹配", + "No matches": "沒有符合項目", "Created the document": "建立文件", - "Can view": "可以查看", - "Everyone in the collection": "文件集裡的所有人", - "You have full access": "你擁有完整權限", + "Can view": "可以檢視", + "Everyone in the collection": "文件集中的所有人", + "You have full access": "您擁有完整存取權", "Other people": "其他人", - "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": "此文件可能透過您無權存取的上層文件或文件集,與更多工作區成員共用。", + "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": "此文件可能透過您無權存取的上層文件或文件集,分享給更多工作區成員。", "Access inherited from collection": "從文件集繼承的存取權", - "{{ userName }} was removed from the document": "{{ userName }} 已經從文件中移除", + "{{ userName }} was removed from the document": "{{ userName }} 已從文件中移除", "Could not remove user": "無法移除使用者", "Could not update user": "無法更新使用者資料", "Has access through <2>parent</2>": "透過<2>上層文件</2>取得存取權", @@ -490,9 +491,9 @@ "Active <1></1> ago": "最後活動於 <1></1> 前", "Never signed in": "從未登入", "Leave": "離開", - "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "任何擁有連結的人都可以存取,因為文件集 <2>{sharedParent.sourceTitle}</2> 已設為公開。", - "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "任何擁有連結的人都可以存取,因為父文件 <2>{sharedParent.sourceTitle}</2> 已設為公開。", - "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "巢狀文件不會在網路上共用。切換共享以啟用訪問,這會成為未來的預設行為", + "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "任何擁有連結的人都可以存取,因為所屬文件集 <2>{sharedParent.sourceTitle}</2> 已共用。", + "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "任何擁有連結的人都可以存取,因為上層文件 <2>{sharedParent.sourceTitle}</2> 已共用。", + "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 }} 已新增至此文件", "{{ count }} people added to the document": "{{ count }} 人已新增至此文件", "{{ count }} people added to the document_plural": "{{ count }} 人已新增至此文件", @@ -501,29 +502,29 @@ "Expand sidebar": "展開側欄", "Collapse sidebar": "收起側欄", "Archived collections": "已封存的文件集", - "Empty": "空無一物", + "Empty": "空白", "New doc": "新文件", "New nested document": "建立新的子文件", "No collections": "沒有文件集", "Collapse": "收合", "Expand": "展開", "Document not supported – try Markdown, Plain text, HTML, or Word": "不支援的文件格式-請嘗試使用 Markdown、純文字、HTML 或 Word 格式", - "Import files": "匯入文件", - "Recent": "Recent", + "Import files": "匯入檔案", + "Recent": "最近", "Go back": "返回", "Go forward": "前進", "Could not load shared documents": "無法載入分享文件", - "Shared with me": "與我共用", + "Shared with me": "與我分享", "Show more": "顯示更多", "Link options": "連結選項", - "Could not load starred documents": "無法加載已標記文件", + "Could not load starred documents": "無法載入已收藏的文件", "Starred": "已收藏", "Up to date": "已是最新版本", - "{{ releasesBehind }} versions behind": "{{ releasesBehind }} 版本落後", - "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} 數個版本落後", + "{{ 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": "您無法對按字母順序排序的文件集中的文件再重新排序", + "You can't reorder documents in an alphabetically sorted collection": "您無法重新排序按字母排序的文件集中的文件", "{{ documentName }} cannot be moved here": "「{{ documentName }}」無法移動至此", "Integrations": "整合", "Return to App": "返回", @@ -531,42 +532,43 @@ "Unstar document": "取消星號", "Star document": "標示星號", "Select a color": "選擇顏色", - "Highlight some text and use the <1></1> control to add placeholders that can be filled out when creating new documents": "高亮顯示一些文字並使用 <1></1> 控制項添加可以在建立新文件時填寫的佔位符", + "Highlight some text and use the <1></1> control to add placeholders that can be filled out when creating new documents": "反白選取一些文字,並使用 <1></1> 控制項新增可在建立新文件時填寫的預留位置", "You’re editing a template": "您正在編輯範本", "Template created, go ahead and customize it": "範本已經建立,繼續將其客製化", "Creating a template from <em>{{titleWithDefault}}</em> 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.": "從 <em>{{titleWithDefault}}</em> 建立範本是不會對原本的文件造成影響-我們會將文件複製後並將其轉換為可以用來建立新文件的範本。", - "Enable other members to use the template immediately": "允許其它成員立即使用此範本", + "Enable other members to use the template immediately": "允許其他成員立即使用此範本", "Location": "位置", - "Admins can manage the workspace and access billing.": "管理員可以管理工作區和帳單資訊", - "Editors can create, edit, and comment on documents.": "編輯者可以建立、編輯、以及在文件中評論", - "Viewers can only view and comment on documents.": "預覽者只能預覽文件與留言", - "Are you sure you want to make {{ userName }} a {{ role }}?": "您確定要將 {{ userName }} 設定為 {{ role }} 嗎?", - "I understand, delete": "我明白了,刪除", - "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.", - "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "您確定要停用 {{ userName }} 的賬號嗎?遭到停用的使用者將無法登入。", + "Admins can manage the workspace and access billing.": "管理員可以管理工作區並存取帳單資訊。", + "Editors can create, edit, and comment on documents.": "編輯者可以建立、編輯文件並留言。", + "Viewers can only view and comment on documents.": "檢視者只能檢視文件並留言。", + "Are you sure you want to make {{ userName }} a {{ role }}?": "您確定要將 {{ userName }} 設為 {{ role }} 嗎?", + "I understand, delete": "我了解,刪除", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "您確定要永久刪除 {{ userName }} 嗎?此操作無法復原。其建立的所有 API 金鑰、Webhook 和整合都將停止運作,請考慮改為停用該使用者。", + "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "您確定要停用 {{ userName }} 嗎?已停用的使用者將無法登入。", "New name": "新的名稱", "Name can't be empty": "名稱不可以空白", "Profile picture updated": "大頭貼已上傳", "Unable to upload new profile picture": "無法上傳新的大頭貼", "Profile picture": "大頭貼", - "Done": "Done", - "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.": "在更改新地址之前,將會向新地址發送一封確認電子郵件。", + "Done": "完成", + "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": "下一筆", + "Previous match": "上一個符合項目", + "Next match": "下一個符合項目", "Find and replace": "尋找與取代", "Find": "搜尋", "Match case": "區分大小寫", - "Enable regex": "使用正規表示式(regex)", - "Replace options": "替代方式", - "Replacement": "替代", + "Enable regex": "啟用正規表示式", + "Replace options": "取代選項", + "Replacement": "取代內容", "Replace": "取代", "Replace all": "全部取代", + "Options": "選項", "Go to link": "前往連結", "Open link": "開啟連結", "Remove link": "移除連結", @@ -581,8 +583,8 @@ "Delete image": "刪除圖片", "Create a new doc": "建立新文件", "Create a nested doc": "建立子文件", - "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }}不會被通知,因為他們沒有這個文件的存取權", - "Members of \"{{ groupName }}\" that have access to this document will be notified": "Members of \"{{ groupName }}\" that have access to this document will be notified", + "{{ userName }} won't be notified, as they do not have access to this document": "{{ userName }} 不會收到通知,因為他們沒有此文件的存取權", + "Members of \"{{ groupName }}\" that have access to this document will be notified": "具有此文件存取權的「{{ groupName }}」成員將會收到通知", "Keep as link": "保留為連結", "Mention": "提及", "Embed": "嵌入", @@ -591,7 +593,7 @@ "Upload file": "上傳文件", "Paste a {{service}} link…": "貼上 {{service}} 連結...", "More options": "更多選項", - "Type '/' to insert": "輸入 '/' 進行插入", + "Type '/' to insert": "輸入「/」以插入", "Keep typing to filter": "繼續輸入以進行篩選", "Replace file": "取代檔案", "Delete file": "刪除檔案", @@ -600,23 +602,21 @@ "Medium heading": "中標題", "Small heading": "小標題", "Extra small heading": "更小的標題", - "Todo list": "工作清單", + "Todo list": "待辦清單", "Bulleted list": "項目清單", "Ordered list": "有序清單", "Image": "圖片", "Video": "影片", - "Embed PDF": "Embed PDF", + "Embed PDF": "嵌入 PDF", "File attachment": "附加檔案", "Table": "表格", "Quote": "引用", "Code block": "程式碼區塊", "Math block (LaTeX)": "數學區塊 (LaTeX)", - "Toggle block": "摺疊區塊", + "Toggle block": "收合/展開區塊", "Divider": "分隔線", "Page break": "分頁符號", - "Current date": "當前日期", - "Current time": "當前時間", - "Current date and time": "當前日期和時間", + "Current date": "目前日期", "Info notice": "訊息通知", "Success notice": "成功通知", "Warning notice": "警告", @@ -634,8 +634,8 @@ "Subheading": "副標題", "Merge cells": "合併儲存格", "Split cell": "分割儲存格", - "Outdent": "凸排", - "Indent": "縮排", + "Outdent": "減少縮排", + "Indent": "增加縮排", "Create link": "建立超連結", "Comment": "評論", "Align left": "靠左對齊", @@ -644,16 +644,19 @@ "Full width": "全螢幕寬度", "Download image": "下載圖片", "Replace image": "替換圖片", - "Edit image URL": "Edit image URL", - "Default width": "預設寬度:", + "Edit image URL": "編輯圖片 URL", + "Default width": "預設寬度", "Distribute columns": "平均分配欄寬", + "Export as CSV": "匯出為 CSV", "Delete table": "刪除表格", - "Export as CSV": "匯出為CSV", + "Align": "對齊", + "Sort": "排序", "Sort ascending": "由小到大排序", "Sort descending": "由大到小排序", + "Background": "背景", "Toggle header": "切換標題列", - "Insert after": "下方插入", - "Insert before": "上方插入", + "Insert after": "在下方插入", + "Insert before": "在上方插入", "Move left": "往左移動", "Move right": "往右移動", "Move up": "往上移動", @@ -661,33 +664,33 @@ "Rename": "重新命名", "Delete Emoji": "刪除表情符號", "Emoji deleted": "表情符號已刪除", - "I'm sure – Delete": "我確定「刪除」", - "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.": "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.", + "I'm sure – Delete": "我確定,刪除", + "Are you sure you want to delete the <em>{{emojiName}}</em> emoji? You will no longer be able to use it in your documents or collections.": "您確定要刪除 <em>{{emojiName}}</em> 表情符號嗎?刪除後將無法在文件或文件集中使用。", "Edit group": "編輯群組", "Delete group": "刪除群組", "Could not import file": "無法匯入檔案", "Unsubscribed from document": "取消訂閱文件", "Unsubscribed from collection": "取消訂閱文件", - "Subscription successful": "Subscription successful", - "Unsubscribed": "Unsubscribed", + "Subscription successful": "訂閱成功", + "Unsubscribed": "已取消訂閱", "Account": "帳號", - "API & Access": "API & Access", + "API & Access": "API 與存取權", "Details": "詳細", - "Authentication": "驗證", + "Authentication": "身分驗證", "Security": "安全性", "AI": "AI", - "API Keys": "API金鑰", + "API Keys": "API 金鑰", "Applications": "應用程式", - "Shared Links": "已分享的連結", + "Shared Links": "已分享連結", "Import": "匯入", "Embeds": "嵌入", - "Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.", + "Configure which embed providers are available in the editor.": "設定編輯器中可使用的嵌入提供者。", "Install": "安裝", - "Change profile picture": "Change profile picture", + "Change profile picture": "變更個人資料圖片", "Change name": "變更名稱", "Change email": "更改電子郵件", "Suspend user": "停用使用者", - "An error occurred while sending the invite": "發送邀請時發生錯誤", + "An error occurred while sending the invite": "傳送邀請時發生錯誤", "Change role": "變更角色", "Resend invite": "重新發送邀請", "Revoke invite": "取消邀請", @@ -695,20 +698,20 @@ "API key": "API 金鑰", "Show path to document": "顯示文件路徑", "Collection menu": "文件集選單", - "Comment options": "評論選項", - "Enable viewer insights": "啟用瀏覽者洞察分析", + "Comment options": "留言選項", + "Enable viewer insights": "啟用檢視者洞察分析", "Enable embeds": "啟用嵌入物件", "Emoji options": "表情符號選項", "File": "檔案", "Group options": "群組選項", "Cancel": "取消", - "Import menu options": "Import menu options", + "Import menu options": "匯入選單選項", "New document in <em>{{ collectionName }}</em>": "新文件在<em>{{ collectionName }}</em>", "New child document": "建立新的子文件", "Save in workspace": "儲存在工作區", - "Revoke {{ appName }}": "撤銷 {{ appName }}", + "Revoke {{ appName }}": "撤銷 {{ appName }} 存取權", "Revoking": "撤銷中", - "Are you sure you want to revoke access?": "您確定要撤銷存取嗎?", + "Are you sure you want to revoke access?": "您確定要撤銷存取權嗎?", "Delete app": "刪除應用程式", "Revision options": "修訂版本選項", "Share options": "共享設定", @@ -721,23 +724,23 @@ "Export complete": "匯出完成", "Export failed": "匯出失敗", "An unexpected error occurred": "發生未預期的錯誤", - "published": "已發佈", + "published": "已發布", "edited": "已編輯", - "created the collection": "建立文件集", - "mentioned you in": "提到了您:", - "mentioned your group in": "提及您的群組在", - "left a comment on": "發表評論", - "resolved a comment on": "標記評論為已解決", - "reacted {{ emoji }} to your comment on": "reacted {{ emoji }} to your comment on", + "created the collection": "建立了文件集", + "mentioned you in": "在此處提及您:", + "mentioned your group in": "在此處提及您的群組:", + "left a comment on": "在此處留言:", + "resolved a comment on": "已解決此處的留言:", + "reacted {{ emoji }} to your comment on": "以 {{ emoji }} 回應您在此處的留言:", "shared": "已分享", "invited you to": "邀請您到", - "was granted access to": "was granted access to", - "requested access to": "requested access to", - "is requesting access to": "is requesting access to", + "was granted access to": "已獲得存取權:", + "requested access to": "要求存取:", + "is requesting access to": "正在要求存取:", "Choose a date": "選擇日期", "API key created. Please copy the value now as it will not be shown again.": "API 金鑰已建立。請立即複製該值,因為它不會再次顯示。", "Scopes": "範圍", - "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "以空格分隔的作用域會將此 API 金鑰的訪問權限限制在 API 的特定部分。若要全權訪問,請留空。", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "以空格分隔的範圍會將此 API 金鑰的存取權限制在 API 的特定部分。留空表示完整存取權", "Expiration": "到期日", "Never expires": "永不過期", "7 days": "7 天", @@ -749,15 +752,15 @@ "Done editing": "編輯完成", "Drop documents to import": "拖曳文件以進行匯入", "<em>{{ collectionName }}</em> doesn’t contain any\n documents yet.": "<em>{{ collectionName }}</em> 中還沒有任何文件。", - "{{ usersCount }} users and {{ groupsCount }} groups with access": "{{ usersCount }} 位使用者和 {{ groupsCount }} 群組具有存取權限", - "{{ usersCount }} users and {{ groupsCount }} groups with access_plural": "{{ usersCount }} 位使用者和 {{ groupsCount }} 群組具有存取權限", - "{{ usersCount }} users and a group have access": "{{ usersCount }} 個使用者和一個群組有權限訪問", - "{{ usersCount }} users and a group have access_plural": "{{ usersCount }} 個使用者和群組有權限訪問", + "{{ usersCount }} users and {{ groupsCount }} groups with access": "{{ usersCount }} 位使用者和 {{ groupsCount }} 個群組具有存取權", + "{{ usersCount }} users and {{ groupsCount }} groups with access_plural": "{{ usersCount }} 位使用者和 {{ groupsCount }} 個群組具有存取權", + "{{ usersCount }} users and a group have access": "{{ usersCount }} 位使用者和 1 個群組具有存取權", + "{{ usersCount }} users and a group have access_plural": "{{ usersCount }} 位使用者和 1 個群組具有存取權", "{{ usersCount }} users with access": "{{ usersCount }} 個使用者擁有存取權限", "{{ usersCount }} users with access_plural": "{{ usersCount }} 個使用者擁有存取權限", - "{{ groupsCount }} groups with access": "{{ groupsCount }} 個群組擁有存取權限", - "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} 個群組擁有存取權限", - "Overview": "概覽", + "{{ groupsCount }} groups with access": "{{ groupsCount }} 個群組具有存取權", + "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} 個群組具有存取權", + "Overview": "總覽", "Popular": "熱門", "Recently updated": "最近更新", "Recently published": "最近發布", @@ -767,56 +770,56 @@ "Sorry, an error occurred saving the collection": "抱歉,儲存到文件集時發生了錯誤。", "Add a description": "新增描述", "Signing in": "正在登入", - "You can safely close this window once the Outline desktop app has opened": "Outline 桌面應用程式打開後,您可以安全地關閉此視窗", - "{{ current }} of {{ count }} changes": "{{ current }} of {{ count }} changes", - "{{ current }} of {{ count }} changes_plural": "{{ current }} of {{ count }} changes", - "{{ count }} changes": "{{ count }} 修改", - "{{ count }} changes_plural": "{{ count }} 修改", - "Previous change": "上一個修改", - "Next change": "下一個修改", + "You can safely close this window once the Outline desktop app has opened": "Outline 桌面應用程式開啟後,您即可安全地關閉此視窗", + "{{ current }} of {{ count }} changes": "{{ count }} 項變更中的第 {{ current }} 項", + "{{ current }} of {{ count }} changes_plural": "{{ count }} 項變更中的第 {{ current }} 項", + "{{ count }} changes": "{{ count }} 項變更", + "{{ count }} changes_plural": "{{ count }} 項變更", + "Previous change": "上一項變更", + "Next change": "下一項變更", "Error creating comment": "留言時發生錯誤", "Add a comment": "新增留言", "Add a reply": "新增回覆…", "Reply": "回覆", - "Post": "發佈", + "Post": "發布", "Upload image": "上傳圖片", "No resolved comments": "無已解決的留言", "No comments yet": "尚無留言", - "New comments": "新評論", - "Most recent": "最近", - "Order in doc": "文件中的順序", + "New comments": "新留言", + "Most recent": "最新", + "Order in doc": "依文件順序", "Resolved": "已解決", - "Sort comments": "對評論進行排序", + "Sort comments": "排序留言", "Show {{ count }} reply": "顯示 {{ count }} 則回覆", - "Show {{ count }} reply_plural": "顯示{{ count }}則回覆。", - "Error updating comment": "無法更新評論", - "Document is too large": "文件大小太大", - "This document has reached the maximum size and can no longer be edited": "該文檔已達到最大字數限制,無法再進行編輯。", - "Authentication failed": "認證失敗", + "Show {{ count }} reply_plural": "顯示 {{ count }} 則回覆。", + "Error updating comment": "更新留言時發生錯誤", + "Document is too large": "文件太大", + "This document has reached the maximum size and can no longer be edited": "此文件已達大小上限,無法再編輯。", + "Authentication failed": "身分驗證失敗", "Please try logging out and back in again": "請嘗試登出並再次登入", - "Authorization failed": "驗證失敗", - "You may have lost access to this document, try reloading": "您可能已失去對此文件的訪問權限,請嘗試重新加載。", - "Too many users connected to document": "太多用戶正在使用這個文檔", - "Your edits will sync once other users leave the document": "等其他用戶離開這個文檔之後,您的修改將會被保存", + "Authorization failed": "授權失敗", + "You may have lost access to this document, try reloading": "您可能已失去此文件的存取權,請嘗試重新載入", + "Too many users connected to document": "太多使用者連線到此文件", + "Your edits will sync once other users leave the document": "其他使用者離開此文件後,您的編輯內容就會同步", "New version available": "發現新版本", - "Please reload the page to update to the latest version": "請重新載入頁面以查看最新版本", + "Please reload the page to update to the latest version": "請重新載入頁面以檢視最新版本", "Server connection lost": "與伺服器連線中斷", "Edits you make will sync once you’re online": "您所做的變更將在您與伺服器連線時同步", "Offline": "離線", "Document restored": "文件已經被還原", "Images are still uploading.\nAre you sure you want to discard them?": "圖片皆已被上傳。\n您確定要捨棄嗎?", - "{{ count }} comment": "{{ count }} 則評論", - "{{ count }} comment_plural": "{{ count }} 則評論", + "{{ count }} comment": "{{ count }} 則留言", + "{{ count }} comment_plural": "{{ count }} 則留言", "Viewed by": "已瀏覽過", "only you": "僅限自己", "person": "人", "people": "人", "Document title": "文件標題", - "Last updated": "最後更新於", - "Type '/' to insert, or start writing…": "輸入 '/' 以插入,或直接撰寫…", + "Last updated": "最後更新時間", + "Type '/' to insert, or start writing…": "輸入「/」以插入,或開始撰寫…", "Hide contents": "隱藏目錄內容", "Show contents": "顯示目錄內容", - "available when headings are added": "新增標題後有效", + "available when headings are added": "新增標題後可用", "Edit {{noun}}": "編輯 {{noun}}", "Archived": "已封存", "Save draft": "儲存草稿", @@ -824,101 +827,101 @@ "{{userName}} archived": "{{userName}} 將其封存", "{{userName}} restored": "{{userName}} 將其還原", "{{userName}} deleted": "{{userName}} 將其刪除", - "{{userName}} added {{addedUserName}}": "{{userName}}新增了{{addedUserName}}", - "{{userName}} removed {{removedUserName}}": "{{userName}}刪除了{{removedUserName}}", + "{{userName}} added {{addedUserName}}": "{{userName}} 新增了 {{addedUserName}}", + "{{userName}} removed {{removedUserName}}": "{{userName}} 移除了 {{removedUserName}}", "{{userName}} moved from trash": "{{userName}} 從垃圾桶移出", "{{userName}} published": "{{userName}} 已將其發布", - "{{userName}} unpublished": "{{userName}} 已取消將其發布", + "{{userName}} unpublished": "{{userName}} 已取消發布", "{{userName}} moved": "{{userName}} 將其移動", - "Previous version": "Previous version", + "Previous version": "上一個版本", "Highlight changes": "顯示差異", - "Compare to": "Compare to", - "No history yet": "暫無歷史紀錄", + "Compare to": "比較對象", + "No history yet": "尚無歷史紀錄", "Revision deleted": "修訂版本已刪除", "Current version": "目前版本", "{{userName}} edited": "{{userName}} 已編輯", - "{{count}} people": "{{count}}人", - "{{count}} people_plural": "{{count}}人", + "{{count}} people": "{{count}} 人", + "{{count}} people_plural": "{{count}} 人", "Source": "來源", "Created": "建立日期", "Imported from {{ source }}": "從 {{ source }} 匯入", "Stats": "統計", - "{{ number }} minute read": "{{ number }} 分鐘閲讀", - "{{ number }} words": "{{ number }} 字", - "{{ number }} words_plural": "{{ number }} 字", - "{{ number }} characters": "{{ number }} 字元", - "{{ number }} characters_plural": "{{ number }} 字元", + "{{ number }} minute read": "閱讀時間 {{ number }} 分鐘", + "{{ number }} words": "{{ number }} 個字", + "{{ number }} words_plural": "{{ number }} 個字", + "{{ number }} characters": "{{ number }} 個字元", + "{{ number }} characters_plural": "{{ number }} 個字元", "{{ number }} emoji": "{{ number }} 個表情符號", "No text selected": "尚未選擇任何文字", - "{{ number }} words selected": "已選擇 {{ number }} 個字", - "{{ number }} words selected_plural": "已選擇 {{ number }} 個字", - "{{ number }} characters selected": "已選擇 {{ number }} 個字元", - "{{ number }} characters selected_plural": "已選擇 {{ number }} 個字元", + "{{ number }} words selected": "已選取 {{ number }} 個字", + "{{ number }} words selected_plural": "已選取 {{ number }} 個字", + "{{ number }} characters selected": "已選取 {{ number }} 個字元", + "{{ number }} characters selected_plural": "已選取 {{ number }} 個字元", "Contributors": "貢獻者", "Creator": "建立者", "Last edited": "最後編輯於", "Previously edited": "先前編輯過", - "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 }} 天", "{{ count }} days_plural": "{{ count }} 天", "This document will be permanently deleted in <2></2> unless restored.": "文件若未於 <2></2> 還原,將被永久刪除。", "Deleted by {{userName}}": "已由 {{userName}} 刪除", - "Observing {{ userName }}": "正在觀察 {{ userName }}", + "Observing {{ userName }}": "正在觀看 {{ userName }}", "Previous slide": "上一張投影片", "Next slide": "下一張投影片", "Toggle fullscreen": "切換全螢幕", - "Create your presentation": "建立投影片", - "Add content to your document, then use headings or dividers to separate it into slides.": "Add content to your document, then use headings or dividers to separate it into slides.", + "Create your presentation": "建立簡報", + "Add content to your document, then use headings or dividers to separate it into slides.": "將內容新增至文件,然後使用標題或分隔線將內容分成投影片。", "Learn more": "瞭解更多", "Backlinks": "反向連結", - "Clear search highlight": "Clear search highlight", + "Clear search highlight": "清除搜尋醒目提示", "Warning": "警告", - "This document is large which may affect performance": "This document is large which may affect performance", - "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "你確定嗎?刪除 <em>{{ documentTitle }}</em> 文件將刪除其所有歷史記錄</em>。", - "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "您確定要這麼做嗎?將文件 <em>{{ documentTitle }}</em> 刪除同時也會刪除所有它的歷史紀錄以及 <em>{{ any }} 所屬的子文件</em>。", - "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>._plural": "您確定要這麼做嗎?將文件 <em>{{ documentTitle }}</em> 刪除同時也會刪除所有它的歷史紀錄以及 <em>{{ any }} 所屬的子文件</em>。", + "This document is large which may affect performance": "此文件較大,可能會影響效能", + "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history</em>.": "您確定要這麼做嗎?刪除 <em>{{ documentTitle }}</em> 文件會一併刪除其所有歷史紀錄</em>。", + "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>.": "您確定要這麼做嗎?刪除 <em>{{ documentTitle }}</em> 文件會一併刪除其所有歷史紀錄和 <em>{{ any }} 份巢狀文件</em>。", + "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and <em>{{ any }} nested document</em>._plural": "您確定要這麼做嗎?刪除 <em>{{ documentTitle }}</em> 文件會一併刪除其所有歷史紀錄和 <em>{{ any }} 份巢狀文件</em>。", "If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.": "如果您希望將來可以引用或還原 {{noun}},請考慮改將其封存。", "Couldn’t create the document, try again?": "無法建立文件,請再試一次?", "Document permanently deleted": "文件已經被永久刪除", "Are you sure you want to permanently delete the <em>{{ documentTitle }}</em> document? This action is immediate and cannot be undone.": "您確定要永久刪除文件 <em>{{ documentTitle }}</em> 嗎?這個動作會立即生效且無法被回復。", - "Select a location to publish": "選擇要發佈到的位置", + "Select a location to publish": "選擇要發布到的位置", "Document published": "文件已發佈", - "Couldn’t publish the document, try again?": "無法發佈文件,請重新嘗試。", - "Publish in <em>{{ location }}</em>": "發佈到 <em>{{ location }}</em>", + "Couldn’t publish the document, try again?": "無法發布文件,請再試一次。", + "Publish in <em>{{ location }}</em>": "發布至 <em>{{ location }}</em>", "Search documents": "搜尋文件", "No documents found for your filters.": "沒有符合過篩選條件的文件。", "You’ve not got any drafts at the moment.": "目前您還沒有任何草稿。", "Payment Required": "需要付款", - "Access request sent": "Access request sent", + "Access request sent": "存取要求已送出", "No access to this doc": "無法存取此文件", - "Your request to access this document has been sent. You will be notified once access is granted.": "Your request to access this document has been sent. You will be notified once access is granted.", - "It doesn't look like you have permission to access this document. You can request access.": "It doesn't look like you have permission to access this document. You can request access.", - "Access requested": "Access requested", - "Requesting…": "Requesting…", - "Request access": "Request access", + "Your request to access this document has been sent. You will be notified once access is granted.": "您的文件存取要求已送出。存取權核准後,您將會收到通知。", + "It doesn't look like you have permission to access this document. You can request access.": "您似乎沒有此文件的存取權。您可以要求存取。", + "Access requested": "已要求存取", + "Requesting…": "要求中…", + "Request access": "要求存取權", "Not found": "找不到頁面", - "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "您所在的頁面無法找到,可能是已刪除或連結不正確。", + "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "找不到您要檢視的頁面。頁面可能已刪除,或連結不正確。", "We were unable to load the document while offline.": "我們無法在離線狀態下讀取文件。", "Your account has been suspended": "您的使用者帳號已經被停用", "Warning Sign": "警告", - "A workspace admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.": "工作區管理員<em>{{ suspendedContactEmail }}</em>已暫停您的帳戶。要重新啟用您的帳戶,請直接聯繫他們。", - "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.": "抱歉,載入頁面時發生未知的錯誤,請稍後重試,如問題持續發生,請連絡管理員。", + "A workspace admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.": "工作區管理員(<em>{{ suspendedContactEmail }}</em>)已停用您的帳號。若要重新啟用帳號,請直接聯絡對方。", + "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.": "抱歉,載入頁面時發生未知的錯誤,請稍後再試,如果問題持續發生,請聯絡支援團隊。", "Created by me": "由我建立的", - "Weird, this shouldn't ever be empty": "發生錯誤,這不應該是空的", - "Documents with recent activity will appear here": "此處會顯示近期有修改的文件", + "Weird, this shouldn't ever be empty": "奇怪,這裡不應該是空的", + "Documents with recent activity will appear here": "近期有活動的文件會顯示在此處", "You haven’t created any documents yet": "您還沒有建立任何文件", "Documents you’ve recently viewed will be here for easy access": "您最近檢視過的文件會被列於此方便您快速存取", "{{ count }} invites sent": "{{ count }} 則邀請已傳送", "{{ count }} invites sent_plural": "{{ count }} 則邀請已傳送", - "Those email addresses are already invited": "這些電子郵件地址早前已被邀請過", + "Those email addresses are already invited": "這些電子郵件地址已受邀", "Sorry, you can only send {{MAX_INVITES}} invites at a time": "抱歉,您一次最多只能發送 {{MAX_INVITES}} 個邀請", - "Invited {{roleName}} will receive access to": "受邀的 {{roleName}} 將獲得對……的訪問權限。", + "Invited {{roleName}} will receive access to": "受邀的 {{roleName}} 將取得存取權:", "{{collectionCount}} collections": "{{collectionCount}}個文件集", "Admin": "管理員", "Can manage all workspace settings": "可以管理所有工作區的設定", - "Can create, edit, and delete documents": "可以建立、編輯、刪除文件", - "Can view and comment": "可以查看評論", - "Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "邀請他人加入你的工作空間。他們可以使用{{signinMethods}}或電子郵件地址登錄。", + "Can create, edit, and delete documents": "可以建立、編輯及刪除文件", + "Can view and comment": "可以檢視及留言", + "Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "邀請他人加入您的工作區。他們可以使用 {{signinMethods}} 或電子郵件地址登入。", "Invite members to join your workspace. They will need to sign in with {{signinMethods}}.": "邀請成員加入您的工作區。他們需要使用 {{signinMethods}} 登入。", "As an admin you can also <2>enable email sign-in</2>.": "\b身為管理員,您也可以啟用<2>使用電子郵件登入</2>功能。", "Invite as": "邀請為", @@ -926,17 +929,17 @@ "Add another": "新增另一個", "Inviting": "正在邀請", "Send Invites": "發送邀請", - "Open command menu": "打開指令選單", + "Open command menu": "開啟指令選單", "Forward": "往前", "Edit current document": "編輯目前文件", "Move current document": "移動目前文件", "Open document history": "打開文件歷史紀錄", "Jump to search": "跳轉到搜尋", "Jump to home": "跳轉到首頁", - "Focus search input": "將游標移至搜尋框", + "Focus search input": "聚焦搜尋輸入框", "Open this guide": "打開這份指南", "Enter": "Enter", - "Publish document and exit": "發佈並退出", + "Publish document and exit": "發布文件並離開", "Cancel editing": "取消編輯", "Collaboration": "合作", "Formatting": "格式化", @@ -951,7 +954,7 @@ "Move block up": "往上移動區塊", "Move block down": "往下移動區塊", "Lists": "清單", - "Toggle task list item": "切換任務清單項目", + "Toggle task list item": "切換工作清單項目", "Tab": "Tab", "Indent list item": "增加清單縮排", "Outdent list item": "減少清單縮排", @@ -973,7 +976,7 @@ "Inline code": "行內程式碼", "Inline LaTeX": "行內 LaTeX", "Triggers": "觸發器", - "Mention users and more": "Mention users and more", + "Mention users and more": "提及使用者等項目", "Insert block": "插入區塊", "Continue with Passkey": "以密碼金鑰登入", "Passkeys are not supported in the desktop app": "密碼金鑰在桌機應用程式尚未支援", @@ -982,30 +985,30 @@ "Continue with {{ authProviderName }}": "使用 {{ authProviderName }} 以繼續", "Back to home": "回到首頁", "The workspace could not be found": "找不到工作區", - "To continue, enter your workspace’s subdomain.": "輸入工作區的子網域以繼續", + "To continue, enter your workspace’s subdomain.": "若要繼續,請輸入您工作區的子網域。", "subdomain": "子網域", "Continue": "繼續", "Sorry, the code you entered is invalid or has expired.": "抱歉,您輸入的碼無效或已過期。", - "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></1>If you were invited to a workspace, you will find a link to it in the invite email.": "無法登入。請瀏覽至您工作區的自訂URL,再重新嘗試登入。<1></1>如果您是被邀請至工作區,你會在邀請信件中找到連結。", - "Sorry, a new account cannot be created with a personal Gmail address.<1></1>Please use a Google Workspaces account instead.": "抱歉,無法使用個人 Gmail 地址建立新帳號。<1></1>請改用 Google Workspaces 帳號。", - "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?": "您進行身份驗證的工作區在此安裝中未獲得授權。嘗試另一個?", - "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.": "您的帳號使用電子郵件登入,請使用電子郵件登入才能繼續。", - "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 – 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.": "抱歉,該登入連結似乎不再有效,請嘗試請求另一個。", - "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.": "這個工作區已被停用。請聯繫支援以回復存取權限。", - "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></1>Please request an invite from your workspace admin and try again.": "您正嘗試加入的工作區需要先得到邀請才能建立帳戶。<1></1>請向工作區管理員獲得邀請後再試一次。", + "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></1>If you were invited to a workspace, you will find a link to it in the invite email.": "無法登入。請前往您工作區的自訂 URL,然後次嘗試登入。<1></1>如果您受邀加入某個工作區,可以在邀請郵件中找到該工作區的連結。", + "Sorry, a new account cannot be created with a personal Gmail address.<1></1>Please use a Google Workspaces account instead.": "抱歉,無法使用個人 Gmail 地址建立新帳號。<1></1>請改用 Google Workspace 帳號。", + "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?": "您驗證的工作區未在此安裝中取得授權。要嘗試另一個嗎?", + "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.": "您的帳號使用電子郵件登入,請使用電子郵件登入以繼續。", + "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 – 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.": "抱歉,該登入連結似乎已失效,請嘗試要求另一個連結。", + "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.": "此工作區已停用。請聯絡支援團隊以恢復存取權。", + "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></1>Please request an invite from your workspace admin and try again.": "您嘗試加入的工作區需要先受邀才能建立帳號。<1></1>請向工作區管理員要求邀請後再試一次。", "Sorry, an unknown error occurred.": "抱歉,發生了未知的錯誤。", - "Choose a workspace": "選擇工作空間", - "Choose an {{ appName }} workspace or login to continue connecting this app": "Choose an {{ appName }} workspace or login to continue connecting this app", - "Create workspace": "建立工作空間", - "Setup your workspace by providing a name and details for admin login. You can change these later.": "Setup your workspace by providing a name and details for admin login. You can change these later.", + "Choose a workspace": "選擇工作區", + "Choose an {{ appName }} workspace or login to continue connecting this app": "選擇 {{ appName }} 工作區或登入,以繼續連結此應用程式", + "Create workspace": "建立工作區", + "Setup your workspace by providing a name and details for admin login. You can change these later.": "請提供名稱和管理員登入資訊來設定工作區。您稍後仍可變更這些設定。", "Workspace name": "工作區名字", "Admin name": "管理員名稱", "Admin email": "管理者信箱", @@ -1013,39 +1016,39 @@ "Error": "發生錯誤", "Failed to load configuration.": "設定載入失敗", "Check the network requests and server logs for full details of the error.": "檢查網路請求和伺服器日誌以獲取錯誤的完整詳細信息。", - "Custom domain setup": "自訂域名設置", + "Custom domain setup": "自訂網域設定", "Almost there": "快完成了", - "Your custom domain is successfully pointing at Outline. To complete the setup process please contact support.": "您的自訂域名已成功指向 Outline。要完成設置過程,請聯繫客服人員。", + "Your custom domain is successfully pointing at Outline. To complete the setup process please contact support.": "您的自訂網域已成功指向 Outline。要完成設定過程,請聯繫客服人員。", "Choose workspace": "選擇工作區", "This login method requires choosing your workspace to continue": "此登入方法需要選擇您的工作區才能繼續", "Check your email": "確認您的電子郵件", - "Enter the sign-in code sent to the email <em>{{ emailLinkSentTo }}</em>": "Enter the sign-in code sent to the email <em>{{ emailLinkSentTo }}</em>", - "A magic sign-in link has been sent to the email <em>{{ emailLinkSentTo }}</em> if an account exists.": "如果帳戶存在,登錄連結會被發送到以下電子郵件 <em>{{ emailLinkSentTo }}</em>。", + "Enter the sign-in code sent to the email <em>{{ emailLinkSentTo }}</em>": "請輸入傳送至電子郵件 <em>{{ emailLinkSentTo }}</em> 的登入代碼", + "A magic sign-in link has been sent to the email <em>{{ emailLinkSentTo }}</em> if an account exists.": "如果帳號存在,登入連結會被傳送到以下電子郵件 <em>{{ emailLinkSentTo }}</em>。", "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 }}": "登入到 {{ authProviderName }}", "You signed in with {{ authProviderName }} last time.": "您上次使用 {{ authProviderName }} 進行登入。", "Or": "或", "Already have an account? Go to <1>login</1>.": "已經有帳號了嗎?馬上 <1>登入</1>。", "An error occurred": "發生錯誤", - "The OAuth client could not be found, please check the provided client ID": "The OAuth client could not be found, please check the provided client ID", - "The OAuth client could not be loaded, please check the redirect URI is valid": "The OAuth client could not be loaded, please check the redirect URI is valid", - "The OAuth client could not be loaded, please check your workspace subdomain is correct": "The OAuth client could not be loaded, please check your workspace subdomain is correct", - "Required OAuth parameters are missing": "Required OAuth parameters are missing", + "The OAuth client could not be found, please check the provided client ID": "找不到 OAuth 客戶端,請檢查提供的客戶端 ID", + "The OAuth client could not be loaded, please check the redirect URI is valid": "無法載入 OAuth 客戶端,請確認重新導向 URI 有效", + "The OAuth client could not be loaded, please check your workspace subdomain is correct": "無法載入 OAuth 客戶端,請確認工作區子網域正確", + "Required OAuth parameters are missing": "缺少必要的 OAuth 參數", "Authorize": "授權", - "{{ appName }} wants to access {{ teamName }}": "{{ appName }} wants to access {{ teamName }}", - "By <em>{{ developerName }}</em>": "來自 {{ developerName }}", - "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} will be able to access your account and perform the following actions", - "You will be redirected to a local application after authorizing.": "You will be redirected to a local application after authorizing.", - "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.", - "read": "瀏覽", - "write": "編輯", - "create": "create", - "read and write": "瀏覽與編輯", + "{{ appName }} wants to access {{ teamName }}": "{{ appName }} 想要存取 {{ teamName }}", + "By <em>{{ developerName }}</em>": "由 <em>{{ developerName }}</em> 開發", + "{{ appName }} will be able to access your account and perform the following actions": "{{ appName }} 將能存取您的帳號並執行下列操作", + "You will be redirected to a local application after authorizing.": "授權後,您將被重新導向至本機應用程式。", + "You will be redirected to <em>{{ redirectUri }}</em> after authorizing. Make sure you trust this URL.": "授權後,您將被重新導向至 <em>{{ redirectUri }}</em>。請確認您信任此 URL。", + "read": "讀取", + "write": "寫入", + "create": "建立", + "read and write": "讀取與寫入", "API keys": "API 金鑰", "attachments": "附件", "collections": "文件集", - "comments": "評論", + "comments": "留言", "documents": "文件", "events": "事件", "groups": "群組", @@ -1056,13 +1059,13 @@ "shares": "分享", "users": "使用者", "teams": "團隊", - "workspace": "工作空間", - "Full access": "Full access", + "workspace": "工作區", + "Full access": "完整存取權", "Read all data": "讀取所有資料", "Write all data": "寫入所有資料", - "Create all data": "Create all data", + "Create all data": "建立所有資料", "Any collection": "任何文件集", - "All time": "全天", + "All time": "所有時間", "Past day": "過去一天", "Past week": "過去一週", "Past month": "過去一個月", @@ -1071,72 +1074,72 @@ "Remove document filter": "移除文件篩選器", "Any status": "任何狀態", "Recent searches": "最近搜尋", - "Remove search": "刪除搜索", + "Remove search": "移除搜尋", "Relevance": "相關", "Newest": "最新", - "Oldest": "最早", + "Oldest": "最舊", "A → Z": "A → Z", "Z → A": "Z → A", "Any author": "任何作者", "Search titles only": "僅搜尋標題", - "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.": "沒有符合篩選條件的文件。", - "Personal keys": "Personal keys", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.", - "API keys have been disabled by an admin for your account": "API 金鑰已被管理員停用", - "Application access": "應用程式存取", - "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Manage which third-party and internal applications have been granted access to your {{ appName }} account.", - "Could not load API keys": "Could not load API keys", + "Personal keys": "個人金鑰", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "建立個人 API 金鑰以透過 API 驗證身分,並以程式化方式控制\n 您工作區的資料。如需更多詳細資訊,請參閱<em>開發者文件</em>。", + "API keys have been disabled by an admin for your account": "管理員已停用您帳號的 API 金鑰", + "Application access": "應用程式存取權", + "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "管理哪些第三方與內部應用程式已獲准存取您的 {{ appName }} 帳號。", + "Could not load API keys": "無法載入 API 金鑰", "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 <em>developer documentation</em>.": "API 金鑰可用於對 API 進行身份驗證,並透過程式控制您工作區的資料。如需更多詳細資訊,請參閱<em>開發人員文件</em>。", - "Application published": "應用程式已發佈", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the <em>developer documentation</em>.": "API 金鑰可用於透過 API 驗證身分,並以程式化方式控制\n 您工作區的資料。如需更多詳細資訊,請參閱<em>開發者文件</em>。", + "Application published": "應用程式已發布", "Application updated": "應用程式已更新", - "Client secret rotated": "Client secret rotated", - "Rotate secret": "更換密鑰", - "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.": "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.", - "Displayed to users when authorizing": "Displayed to users when authorizing", + "Client secret rotated": "客戶端密鑰已輪替", + "Rotate secret": "輪替密鑰", + "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.": "輪替客戶端密鑰會使目前的密鑰失效。請務必更新所有使用這些憑證的應用程式。", + "Displayed to users when authorizing": "授權時顯示給使用者", "Application icon": "應用程式圖示", - "Confidential clients can securely store a secret": "Confidential clients can securely store a secret", - "Developer information shown to users when authorizing": "Developer information shown to users when authorizing", + "Confidential clients can securely store a secret": "機密客戶端可以安全地儲存密鑰", + "Developer information shown to users when authorizing": "授權時顯示給使用者的開發者資訊", "Developer name": "開發者名稱", "Developer URL": "開發者頁面", - "Allow users from other workspaces to authorize this app": "Allow users from other workspaces to authorize this app", + "Allow users from other workspaces to authorize this app": "允許其他工作區的使用者授權此應用程式", "Credentials": "憑證", - "OAuth client ID": "OAuth client ID", - "The public identifier for this app": "此應用程式公開 ID", + "OAuth client ID": "OAuth 客戶端 ID", + "The public identifier for this app": "此應用程式的公開識別碼", "Copied to clipboard": "已複製到剪貼簿", - "OAuth client secret": "OAuth client secret", - "Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly", - "Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app", + "OAuth client secret": "OAuth 客戶端密鑰", + "Store this value securely, do not expose it publicly": "請安全地儲存此值,不要公開外洩", + "Where users are redirected after authorizing this app": "使用者授權此應用程式後重新導向的位置", "Authorization URL": "授權網址", - "Where users are redirected to authorize this app": "Where users are redirected to authorize this app", - "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.": "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.", + "Where users are redirected to authorize this app": "使用者前往授權此應用程式的位置", + "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.": "應用程式可讓您建立與 Outline 的內部或公開整合,並透過 OAuth 提供安全存取。如需更多詳細資訊,請參閱<em>開發者文件</em>。", "Settings saved": "設定已儲存", - "Are you sure?": "是否確定?", + "Are you sure?": "您確定嗎?", "Removing": "移除中", - "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.", + "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "移除此身分驗證提供者後,成員將無法使用 {{ authProvider }} 登入。", "Disable group sync": "停用群組同步", - "Manage how members sign-in to your workspace and which authentication providers are enabled.": "Manage how members sign-in to your workspace and which authentication providers are enabled.", + "Manage how members sign-in to your workspace and which authentication providers are enabled.": "管理成員登入工作區的方式,以及啟用哪些身分驗證提供者。", "Allow members to sign-in with {{ authProvider }}": "允許成員使用 {{ authProvider }} 登入", - "Connect {{ authProvider }} to allow members to sign-in": "Connect {{ authProvider }} to allow members to sign-in", - "Connected": "已連接", + "Connect {{ authProvider }} to allow members to sign-in": "連結 {{ authProvider }} 以允許成員登入", + "Connected": "已連結", "Disabled": "已停用", "Connect": "連結", "Group sync": "群組同步", - "Sync group memberships from {{ authProvider }} on each sign-in": "Sync group memberships from {{ authProvider }} on each sign-in", - "Group claim": "Group claim", - "The claim in the provider response that contains group names (e.g. groups, roles)": "The claim in the provider response that contains group names (e.g. groups, roles)", - "Allow members to sign-in using their email address": "允許成員使用他們的電子郵件地址登入", + "Sync group memberships from {{ authProvider }} on each sign-in": "每次登入時從 {{ authProvider }} 同步群組成員資格", + "Group claim": "群組宣告", + "The claim in the provider response that contains group names (e.g. groups, roles)": "提供者回應中包含群組名稱的宣告(例如 groups、roles)", + "Allow members to sign-in using their email address": "允許成員使用電子郵件地址登入", "The server must have SMTP configured to enable this setting": "伺服器必須有已組態的 SMTP 才能啟用此設定", "Passkeys": "密碼金鑰", - "Allow members to sign-in with a WebAuthn passkey": "Allow members to sign-in with a WebAuthn passkey", + "Allow members to sign-in with a WebAuthn passkey": "允許成員使用 WebAuthn 密碼金鑰登入", "Restrictions": "限制", - "Keep synced groups": "Keep synced groups", - "Groups will remain but no longer update": "Groups will remain but no longer update", - "Delete synced groups": "Delete synced groups", - "Remove all groups created by sync": "Remove all groups created by sync", - "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "Group memberships will no longer be synced from {{ authProvider }} when members sign in.", - "Existing groups": "目前群組", + "Keep synced groups": "保留已同步群組", + "Groups will remain but no longer update": "群組將會保留,但不再更新", + "Delete synced groups": "刪除已同步群組", + "Remove all groups created by sync": "移除所有透過同步建立的群組", + "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "成員登入時,將不再從 {{ authProvider }} 同步群組成員資格。", + "Existing groups": "現有群組", "Disabling": "停用中", "Disable": "停用", "by {{ name }}": "来自 {{ name }}", @@ -1147,59 +1150,59 @@ "API key copied to clipboard": "API 金鑰已複製到剪貼簿", "Copied": "已複製", "Are you sure you want to revoke the {{ tokenName }} token?": "您確定要撤銷 {{ tokenName }} 權杖嗎?", - "Key": "Key", - "Created by": "Created by", - "Never": "Never", - "Expires": "Expires", - "Could not load preference": "Could not load preference", - "Preferences saved": "已保存偏好設定", - "Could not save preference": "Could not save preference", - "Open on startup": "Open on startup", - "Automatically launch {{ appName }} when you sign in to your computer.": "Automatically launch {{ appName }} when you sign in to your computer.", + "Key": "金鑰", + "Created by": "建立者", + "Never": "永不", + "Expires": "到期日", + "Could not load preference": "無法載入偏好設定", + "Preferences saved": "已儲存偏好設定", + "Could not save preference": "無法儲存偏好設定", + "Open on startup": "啟動時開啟", + "Automatically launch {{ appName }} when you sign in to your computer.": "登入電腦時自動啟動 {{ appName }}。", "Disconnect integration": "中斷整合", "Disconnecting": "正在中斷", - "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "Are you sure you want to disconnect the <em>{{ service }}</em> integration?", - "This will stop sending analytics events to the configured instance.": "This will stop sending analytics events to the configured instance.", - "Allowed domains": "域名白名單", - "The domains which should be allowed to create new accounts using SSO. Changing this setting does not affect existing user accounts.": "應該要可以使用SSO建立新帳號的網域。更改這個並不會影響現有的帳號。", + "Are you sure you want to disconnect the <em>{{ service }}</em> integration?": "您確定要中斷 <em>{{ service }}</em> 整合嗎?", + "This will stop sending analytics events to the configured instance.": "這會停止將分析事件傳送到已設定的執行個體。", + "Allowed domains": "網域白名單", + "The domains which should be allowed to create new accounts using SSO. Changing this setting does not affect existing user accounts.": "允許使用 SSO 建立新帳號的網域。變更此設定不會影響現有使用者帳號。", "Remove domain": "移除網域", - "Add a domain": "添加網域", - "Save changes": "保存變更", + "Add a domain": "新增網域", + "Save changes": "儲存變更", "Please choose a single file to import": "請選擇要匯入的檔案", "Your import is being processed, you can safely leave this page": "您的匯入正在處理中,您可以安全地離開此頁面", - "File not supported – please upload a valid ZIP file": "該文件不被支持 - 請上傳有效的 ZIP 壓縮文件", - "Set the default permission level for collections created from the import": "為從匯入建立的文件集建立預設權限", - "Uploading {{progress}}%": "Uploading {{progress}}%", + "File not supported – please upload a valid ZIP file": "不支援此檔案,請上傳有效的 ZIP 檔案", + "Set the default permission level for collections created from the import": "設定從匯入建立之文件集的預設權限等級", + "Uploading {{progress}}%": "上傳中 {{progress}}%", "Start import": "開始匯入", "Added by": "作者", "Date added": "新增於", - "Members exported successfully": "Members exported successfully", - "Failed to export members": "Failed to export members", - "Download CSV": "下載CSV", + "Members exported successfully": "成員已成功匯出", + "Failed to export members": "成員匯出失敗", + "Download CSV": "下載 CSV", "Processing": "正在處理", "Completed": "已完成", "Failed": "失敗", "All collections": "所有的文件集", - "Import deleted": "匯出已刪除", + "Import deleted": "匯入已刪除", "Export deleted": "匯出已刪除", "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.": "刪除這個匯入檔案也會刪除透過這個建立的所有文件集及文件。這無法被取消。", - "Check server logs for more details.": "檢查服務器日誌", + "Check server logs for more details.": "請檢查伺服器記錄以取得更多詳細資訊。", "{{userName}} requested": "{{userName}} 已請求", "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering for example.": "透過群組功能組織您的團隊。基於職務或責任範圍進行分組的效果做好——例如支援團隊或工程團隊。", "Optional": "選填", "You’ll be able to add people to the group next.": "接下來,您可以將人員新增到群組中。", - "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.", + "This group is managed by an external authentication provider. The name is synced automatically and cannot be changed.": "此群組由外部身分驗證提供者管理。名稱會自動同步,無法變更。", "You can edit the name of this group at any time, however doing so too often might confuse your team mates.": "您可以在任何時間修改群組名稱,但若您太經常修改群組名稱可能會導致團隊成員困擾。", "Description": "描述", "Hidden": "隱藏", - "Prevent this group from being mentionable in documents or comments": "Prevent this group from being mentionable in documents or comments", + "Prevent this group from being mentionable in documents or comments": "防止此群組在文件或留言中被提及", "Are you sure about that? Deleting the <em>{{groupName}}</em> group will cause its members to lose access to collections and documents that it is associated with.": "您確定嗎?刪除 <em>{{groupName}}</em> 群組將會導致其成員失去與該群組關聯之文件集與文件存取權限。", "{{userName}} was added to the group": "{{userName}} 已經被加入到群組", "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}}": "邀請他們加入 {{teamName}}", - "Ask an admin to invite them first": "請管理員先邀請他們。", + "Ask an admin to invite them first": "請管理員先邀請他們", "Search by name": "依名稱搜尋", "Search people": "搜尋使用者", "No people matching your search": "找不到符合搜尋條件的使用者", @@ -1210,23 +1213,23 @@ "Last active": "最近一次活動", "All permissions": "全部權限", "All sources": "所有來源", - "Manual": "Manual", + "Manual": "手動", "This group is hidden": "此群組已隱藏", - "Synced <2></2>": "Synced <2></2>", - "Date created": "創建日期", + "Synced <2></2>": "已同步 <2></2>", + "Date created": "建立日期", "Crop Image": "裁切影像", "Crop image": "裁切影像", - "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "你可以輸入自先前其他實例透過JSON選項輸出的zip檔案。在{{ appName }}中,在側邊欄的設定中打開<em>匯出</em>並且選取<em>匯出資料</em>。", - "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "請將從 {{appName}} 的 JSON 匯出選項中匯出的 zip 檔案拖放到此處,或點擊上傳", + "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "您可以匯入先前從另一個執行個體的 JSON 選項匯出的 ZIP 檔案。在 {{ appName }} 中,開啟設定側邊欄的<em>匯出</em>,然後點選<em>匯出資料</em>。", + "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "將從 {{appName}} JSON 匯出選項取得的 ZIP 檔案拖放到此處,或點選上傳", "Canceled": "已取消", "Import canceled": "匯入已取消", "Are you sure you want to cancel this import?": "您確定要取消匯入嗎?", "Canceling": "正在取消", - "Canceling this import will discard any progress made. This cannot be undone.": "Canceling this import will discard any progress made. This cannot be undone.", + "Canceling this import will discard any progress made. This cannot be undone.": "取消此匯入將捨棄所有進度。此操作無法復原。", "{{ count }} document imported": "{{ count }} 個文件已匯入", "{{ count }} document imported_plural": "{{ count }} 個文件已匯入", - "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "你可以輸入自先前其他Outline實例輸出的zip檔案 – 文件集,文件,以及照片都會被匯入。在Outline中,在側邊欄的設定中打開<em>匯出</em>並且選取<em>匯出資料</em>。", - "Drag and drop the zip file from the Markdown export option in {{appName}}, or click to upload": "請將從 {{appName}} 的 Markdown 匯出選項中匯出的 zip 檔案拖放到此處,或點擊上傳", + "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "您可以匯入先前從 Outline 安裝匯出的 ZIP 檔案;文件集、文件和圖片都會被匯入。在 Outline 中,開啟設定側邊欄的<em>匯出</em>,然後點選<em>匯出資料</em>。", + "Drag and drop the zip file from the Markdown export option in {{appName}}, or click to upload": "將從 {{appName}} Markdown 匯出選項取得的 ZIP 檔案拖放到此處,或點選上傳", "Configure": "設定", "Role": "角色", "Guest": "訪客", @@ -1246,7 +1249,7 @@ "All status": "所有狀態", "Active": "上線", "Could not load emojis": "無法載入表情符號", - "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", + "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "自訂表情符號可在整個工作區的文件、留言與回應中使用。", "Left": "左", "Right": "右", "Logo updated": "標誌已更新", @@ -1255,95 +1258,95 @@ "These settings affect the way that your workspace appears to everyone on the team.": "這些設定會影響所有團隊成員所看到的工作區外觀。", "Display": "介面", "The logo is displayed at the top left of the application.": "標誌圖案會被顯示在應用程式的左上方。", - "Workspace logo": "工作空間圖像", + "Workspace logo": "工作區圖像", "The workspace name, usually the same as your company name.": "工作區的名稱,通常與您的公司名稱相同。", - "A short description of your workspace.": "關於工作空間的簡易描述。", - "Theme": "外觀主題", - "Customize the interface look and feel.": "自定義界面的外觀和感覺。", - "Reset theme": "重置主題", + "A short description of your workspace.": "關於工作區的簡短描述。", + "Theme": "佈景佈景主題", + "Customize the interface look and feel.": "自訂界面的外觀和感覺。", + "Reset theme": "重設佈景主題", "Accent color": "強調色", "Accent text color": "強調文字顏色", "Public branding": "品牌形象", - "Show your workspace logo, description, and branding on publicly shared pages.": "Show your workspace logo, description, and branding on publicly shared pages.", + "Show your workspace logo, description, and branding on publicly shared pages.": "在公開分享頁面上顯示工作區標誌、描述與品牌。", "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.", + "The side to display the table of contents in relation to the main content.": "目錄相對於主要內容顯示的位置。", "Subdomain": "子網域", "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.": "選擇一個子網域來為您的團隊啟用登入頁。", "This is the screen that workspace members will first see when they sign in.": "這是工作區成員登入時首先會看到的介面。", "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 team members can add comments to documents.": "啓用時,團隊成員可以在文件中新增留言。", "Danger": "危險", - "You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.", + "You can delete this entire workspace including collections, documents, and users.": "您可以刪除此整個工作區,包含文件集、文件與使用者。", "Enabled": "已啟用", "Allow supported providers to be inserted as interactive embeds in documents.": "允許支援的供應者以互動形式內嵌於文件中。", "Providers": "供應者", - "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "。。。", + "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "啟用的提供者會出現在編輯器的斜線選單中,並在貼上相容連結時自動嵌入。文件中現有的嵌入內容會持續顯示,不受這些設定影響。", "All providers": "所有供應者", - "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 <em>{{ userEmail }}</em> when it’s complete.": "匯出所有文件集將會需要一些時間,可以的話,請考慮匯出單一的文件或文件集。我們會將您擁有的所有文件轉換為 Markdown 格式,並封裝為一個 zip 壓縮檔。\n在匯出作業開始後您即可離開這個頁面 – 如果您有開啟通知,匯出完成時我們會透過電子郵件寄送連結到 <em>{{ userEmail }}</em>。", + "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 <em>{{ userEmail }}</em> when it’s complete.": "完整匯出可能需要一些時間,您可以考慮只匯出單一文件或文件集。匯出開始後即可離開此頁面;如果您已啟用通知,匯出完成時我們會將連結透過電子郵件寄送至 <em>{{ userEmail }}</em>。", "Recent exports": "最近匯出的", - "Manage AI and integration features for your workspace.": "Manage AI and integration features for your workspace.", - "MCP server": "MCP server", - "Allow members to connect to this workspace with MCP to read and write data.": "Allow members to connect to this workspace with MCP to read and write data.", - "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.", - "Copy URL": "複製URL", - "Additional guidance": "Additional guidance", - "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "You can use these optional instructions to tell MCP clients how to use your knowledge base.", - "AI answers": "AI 回應", - "Use AI to get direct answers to questions in search. This feature requires a paid license.": "Use AI to get direct answers to questions in search. This feature requires a paid license.", + "Manage AI and integration features for your workspace.": "管理工作區的 AI 與整合功能。", + "MCP server": "MCP 伺服器", + "Allow members to connect to this workspace with MCP to read and write data.": "允許成員透過 MCP 連線到此工作區以讀寫資料。", + "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "使用以下端點,從您的應用程式連線至 MCP 伺服器。如需更多設定資訊,請參閱<a>文件</a>。", + "Copy URL": "複製 URL", + "Additional guidance": "補充指引", + "You can use these optional instructions to tell MCP clients how to use your knowledge base.": "您可以使用這些選填指示,告訴 MCP 客戶端如何使用您的知識庫。", + "AI answers": "AI 回答", + "Use AI to get direct answers to questions in search. This feature requires a paid license.": "使用 AI 在搜尋中直接取得問題的答案。此功能需要付費授權。", "Add people to {{groupName}}": "新增人員到 {{groupName}}", "Could not load group members": "無法載入群組成員", "Add people": "新增人員", - "Synced to {{ provider }}": "Synced to {{ provider }}", + "Synced to {{ provider }}": "已同步至 {{ provider }}", "No description": "無描述", "Create a group": "建立群組", - "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": "尚未建立任何群組", - "Import a zip file of Markdown documents (exported from version 0.67.0 or earlier)": "匯入包含 Markdown 文檔的 zip 壓縮檔案 (需要從 0.67.0 或更早版本匯出)", - "Import data": "匯入數據", + "Import a zip file of Markdown documents (exported from version 0.67.0 or earlier)": "匯入 Markdown 文件的 ZIP 檔案(需由 0.67.0 或更早版本匯出)", + "Import data": "匯入資料", "Import a JSON data file exported from another {{ appName }} instance": "匯入從另一個 {{ appName }} 實例匯出的 JSON 資料檔案", "Import pages from a Confluence instance": "從 Confluence 實例匯入文件", "Enterprise": "企業", - "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "快速將您現有的文件、頁面和檔案從其他工具和服務轉移到 {{appName}}。您還可以直接將任何 HTML、Markdown 和純文本文件拖放到應用程式中的文件集中。", + "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "快速將您現有的文件、頁面和檔案從其他工具和服務轉移到 {{appName}}。您還可以直接將任何 HTML、Markdown 和純文字文件拖放到應用程式中的文件集中。", "Recent imports": "最近匯入的", - "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", - "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.": "", + "Configure a variety of integrations with third-party services.": "設定多種第三方服務整合。", + "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": "文件已更新", - "Receive a notification when a document you are subscribed to is edited": "當您訂閱的文件被編輯時收到通知", - "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 is edited": "當您訂閱的文件更新時接收通知", + "Comment posted": "留言已發布", + "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": "當有人在文件或評論中提及您時收到通知", - "Group mentions": "Group mentions", - "Receive a notification when someone mentions a group you are a member of in a document or comment": "Receive a notification when someone mentions a group you are a member of 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", - "Reaction added": "Reaction added", - "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", + "Receive a notification when someone mentions you in a document or comment": "當有人在文件或留言中提及您時收到通知", + "Group mentions": "群組提及", + "Receive a notification when someone mentions a group you are a member of in a document or comment": "當有人在文件或留言中提及您所屬的群組時接收通知", + "Receive a notification when a comment thread you were involved in is resolved": "當您參與的留言串被標記為已解決時接收通知", + "Reaction added": "已新增回應", + "Receive a notification when someone reacts to your comment": "當有人回應您的留言時接收通知", "Collection created": "文件集已建立", "Receive a notification whenever a new collection is created": "當新的文件集建立時接收通知", "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": "邀請到文件", "Receive a notification when a document is shared with you": "有文件分享給你時收到通知", "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": "匯出已完成", "Receive a notification when an export you requested has been completed": "當您要求的匯出完成時收到通知", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Document access requested": "已要求文件存取權", + "Receive a notification when a user requests access to a document you manage": "當使用者要求存取您管理的文件時接收通知", "Getting started": "快速入門", "Tips on getting started with features and functionality": "幫助您開始使用 Outline 功能的提示", "New features": "新功能", "Receive an email when new features of note are added": "當有新功能增加到筆記時接收電子郵件", - "Notifications saved": "已保存通知", + "Notifications saved": "已儲存通知", "Unsubscription successful. Your notification settings were updated": "取消訂閱成功。您的通知設定已被更新", - "Manage when and where you receive email notifications.": "管理您接收電子郵件通知的時間和地點。", + "Manage when and where you receive email notifications.": "管理您收到電子郵件通知的時間和地點。", "All notifications": "所有通知", "Unread count": "未讀數", "Unread indicator": "未讀指示", @@ -1358,60 +1361,60 @@ "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.": "啟用時,文件進入獨立的編輯模式。停用時,只要您有足夠權限,始終可對文件進行編輯。", "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": "智慧文字取代", "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "自動編排文字格式,將捷徑鍵取代為符號、破折號、智慧引號及其他印刷樣式元素。", "Notification badge": "通知標記", - "Choose how unread notifications are indicated on the app icon.": "Choose how unread notifications are indicated on the app icon.", + "Choose how unread notifications are indicated on the app icon.": "選擇應用程式圖示如何顯示未讀通知。", "You may delete your account at any time, note that this is unrecoverable": "您隨時可以刪除您的使用者帳號,但此為不可回復之動作", "Profile saved": "個人資料已儲存", "Manage how you appear to other members of the workspace.": "管理您在工作區中的樣子。", "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.": "這可以是您的真實姓名或暱稱,或任何您希望別人用來稱呼您的名字。", - "Members and guests": "Members and guests", + "Members and guests": "成員與訪客", "No one": "無", "Are you sure you want to require invites?": "您確定您想要獲得邀請嗎?", - "New users will first need to be invited to create an account. <em>Default role</em> and <em>Allowed domains</em> will no longer apply.": "新使用者在創建賬號前需要先被邀請。 <em>預設身份</em> 和 <em>允許使用的域名</em> 都將不再適用。", + "New users will first need to be invited to create an account. <em>Default role</em> and <em>Allowed domains</em> will no longer apply.": "新使用者必須先受邀才能建立帳號。<em>預設角色</em>和<em>允許的網域</em>將不再適用。", "Settings that impact the access, security, and content of your workspace.": "此處設定將影響您的知識庫存取、安全性、內容。", "Invites": "邀請", - "Allow users to send invites": "允許使用者發送邀請", + "Allow users to send invites": "允許使用者傳送邀請", "Allow editors to invite other people to the workspace": "允許編輯者邀請其他人到工作區", "Require invites": "需要被邀請", "Require members to be invited to the workspace before they can create an account using SSO.": "成員必須先受邀加入工作區,才能使用 SSO 建立帳號。", "Default role": "預設角色", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "預設角色設定只會套用到新的使用者帳號。改變此設定並不會影響現有使用者帳號。", - "Allow users to sign in with passkeys for passwordless authentication": "Allow users to sign in with passkeys for passwordless authentication", + "Allow users to sign in with passkeys for passwordless authentication": "允許使用者使用密碼金鑰進行無密碼登入驗證", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "啟用後,工作區中的任何成員都可以在網際網絡上公開共享工作區中的文件", "Viewer document exports": "檢視者可匯出文件", "When enabled, viewers can see download options for documents": "啓用時,檢視者可以看到文件的下載選項", "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", - "Email address visibility": "Email address visibility", - "Controls who can see user email addresses in the workspace": "Controls who can see user email addresses in the workspace", + "When enabled, users can delete their own account from the workspace": "啟用後,使用者可以從工作區刪除自己的帳號", + "Email address visibility": "電子郵件地址可見度", + "Controls who can see user email addresses in the workspace": "控制誰可以在工作區中檢視使用者的電子郵件地址", "Collection creation": "文件集已建立", "Allow editors to create new collections within the workspace": "允許編輯者在工作區內建立新的文件集", "Workspace creation": "建立工作區", "Allow editors to create new workspaces": "允許編輯者建立新的工作區", - "Could not load shares": "無法移除群組", + "Could not load shares": "無法載入", "Sharing is currently disabled.": "已停用分享功能。", "You can globally enable and disable public document sharing in the <em>security settings</em>.": "您可以透過<em>安全性設定</em>針對全域啟用或停用文件公開分享的功能。", "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.": "下列清單為已被分享之文件。任何擁有公開分享連結的人,在分享連結被註銷前,都可以存取文件的唯讀版本。", - "A template must have content": "A template must have content", - "Could not load templates": "Could not load templates", - "Templates help your team create consistent and accurate documentation.": "Templates help your team create consistent and accurate documentation.", - "No templates have been created yet": "No templates have been created yet", + "A template must have content": "範本必須有內容", + "Could not load templates": "無法載入範本", + "Templates help your team create consistent and accurate documentation.": "範本可協助團隊建立一致且準確的文件。", + "No templates have been created yet": "尚未建立任何範本", "{{ teamName }} is using {{ appName }} to share documents, please login to continue.": "{{ teamName }} 正在使用 {{ appName }} 分享文件,請登入以繼續。", - "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.": "確認碼已傳送至您的電子郵件,請輸入確認碼以永久刪除這個工作區。", "Deleting the <1>{{workspaceName}}</1> workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "刪除<1>{{workspaceName}}</1>工作區會刪除所有文件集,文件,使用者,以及相關資料。您會立即從{{appName}} 登出。", "Please note that workspaces are completely separated. They can have a different domain, settings, users, and billing.": "請留意工作區是完全分開的。它們可以有不同的網域,設定,使用者,帳務資訊。", - "You are creating a new workspace using your current account — <em>{{email}}</em>": "您正在使用當前帳戶建立新的工作區 — <em>{{email}}</em>", + "You are creating a new workspace using your current account — <em>{{email}}</em>": "您正在使用當前帳號建立新的工作區 — <em>{{email}}</em>", "To create a workspace under another email please sign up from the homepage": "要使用另一個電子郵件建立工作區請從首頁登入", "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": "最近刪除", "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.": "您確定嗎?刪除您的帳號將會破壞您的使用者個人資料而且將無法還原。您將會被立刻從 {{appName}} 被登出,同時所有的 API 權杖都會被撤銷。", "Delete my account": "刪除我的帳號", "Today": "今日", @@ -1425,341 +1428,341 @@ "Expires today": "今天到期", "Expires tomorrow": "明天到期", "Expires {{ date }}": "{{ date }} 到期", - "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", - "Installation URL": "Installation URL", - "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net": "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net", + "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "設定自訂 Diagrams.net 安裝 URL,以使用您自行託管的執行個體在文件中嵌入圖表。", + "Installation URL": "安裝 URL", + "The URL of your Diagrams.net installation. Leave empty to use the cloud hosted app.diagrams.net": "您的 Diagrams.net 安裝 URL。留空則使用雲端託管的 app.diagrams.net", "New attribute": "新增屬性", "Paper size": "頁面大小", - "Ask AI \"{{question}}\"": "Ask AI \"{{question}}\"", - "Are you sure you want to delete?": "確定要刪除嗎?", - "Deleting this version of the document will permanently and irrevocably remove it from the history.": "Deleting this version of the document will permanently and irrevocably remove it from the history.", + "Ask AI \"{{question}}\"": "詢問 AI「{{question}}」", + "Are you sure you want to delete?": "確定要刪除嗎?", + "Deleting this version of the document will permanently and irrevocably remove it from the history.": "刪除此文件版本會將它從歷史紀錄中永久移除,且無法復原。", "Format": "格式", "Add option": "新增選項", - "Choose a size for your exported document": "Choose a size for your exported document", + "Choose a size for your exported document": "選擇匯出文件的頁面大小", "Revision renamed": "修訂版本已重新命名", - "Failed to save revision": "Failed to save revision", + "Failed to save revision": "儲存修訂版本失敗", "Invite to document": "邀請到文件", - "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", - "Edit attribute": "Edit attribute", + "Sorry, invalid embed link": "抱歉,嵌入連結無效", + "Data Attributes": "資料屬性", + "Edit attribute": "編輯屬性", "Property": "屬性", "Yes": "是", "No": "否", - "Search or ask a question": "Search or ask a question", - "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.": "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.", - "Can view only what is explicitly shared": "Can view only what is explicitly shared", - "SAML assertion was invalid or missing fields, please check your configuration": "SAML assertion was invalid or missing fields, please check your configuration", - "AI generated answer based on related documents in your workspace": "AI generated answer based on related documents in your workspace", + "Search or ask a question": "搜尋或提問", + "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.": "受邀的 {{roleName}} 不會取得任何文件集或文件的存取權,除非明確分享給他們。", + "Can view only what is explicitly shared": "只能檢視明確分享的內容", + "SAML assertion was invalid or missing fields, please check your configuration": "SAML 判斷提示無效或缺少欄位,請檢查您的設定", + "AI generated answer based on related documents in your workspace": "AI 根據您工作區中的相關文件產生的答案", "References": "參考", - "Enable AI answers to get direct answers to searched questions.": "Enable AI answers to get direct answers to searched questions.", - "Go to settings": "Go to settings", + "Enable AI answers to get direct answers to searched questions.": "啟用 AI 回答,以直接取得搜尋問題的答案。", + "Go to settings": "前往設定", "Where do I find the file?": "我在哪裡可以找到該檔案?", - "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.": "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.", - "Drag and drop the zip file from Confluence's HTML export option, or click to upload": "Drag and drop the zip file from Confluence's HTML export option, or click to upload", + "In a Confluence space, navigate to <em>Space Settings -> Manage space -> Export space</em> and choose to export as HTML with the \"Normal Export\" option.": "在 Confluence 空間中,前往<em>空間設定 -> 管理空間 -> 匯出空間</em>,並選擇使用「一般匯出」選項匯出為 HTML。", + "Drag and drop the zip file from Confluence's HTML export option, or click to upload": "將從 Confluence HTML 匯出選項取得的 ZIP 檔案拖放到此處,或點選上傳", "Guests": "訪客", "New Attribute": "新屬性", - "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.": "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.", + "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.": "屬性可讓您定義要與文件一起儲存的資料。它們可用於儲存自訂屬性、中繼資料,或文件之間共用的任何其他結構化資訊。", "Custom domain": "自訂網域", - "Use AI to directly answer searched questions using content in your workspace.": "Use AI to directly answer searched questions using content in your workspace.", + "Use AI to directly answer searched questions using content in your workspace.": "使用工作區中的內容,透過 AI 直接回答搜尋問題。", "API access": "API 存取", - "Allow members to create API keys for programmatic access": "Allow members to create API keys for programmatic access", - "Public document embedding": "Public document embedding", - "When enabled, publicly shared documents can be embedded in third-party websites": "When enabled, publicly shared documents can be embedded in third-party websites", - "Include previews in emails": "Include previews in emails", - "When enabled, email notifications will include content previews": "When enabled, email notifications will include content previews", + "Allow members to create API keys for programmatic access": "允許成員建立 API 金鑰以進行程式化存取", + "Public document embedding": "公開文件嵌入", + "When enabled, publicly shared documents can be embedded in third-party websites": "啟用後,公開分享的文件可嵌入第三方網站", + "Include previews in emails": "在電子郵件中包含預覽", + "When enabled, email notifications will include content previews": "啟用後,電子郵件通知將包含內容預覽", "Boolean": "布林值", "Number": "數字", "Text": "文字", "List": "清單", - "Could not load events": "Could not load events", - "Audit Log": "Audit Log", - "The audit log details the history of security related and other events across your knowledge base.": "The audit log details the history of security related and other events across your knowledge base.", + "Could not load events": "無法載入事件", + "Audit Log": "稽核記錄", + "The audit log details the history of security related and other events across your knowledge base.": "稽核記錄會詳列整個知識庫中的安全相關事件與其他事件歷史。", "IP address": "IP 位址", - "Actor": "Actor", - "Event": "Event", + "Actor": "執行者", + "Event": "事件", "Timestamp": "時間戳記", "IP": "IP", "a group": "群組", "All users": "所有使用者", "Private": "不公開", "View and edit": "檢視與編輯", - "Sharing enabled": "Sharing enabled", + "Sharing enabled": "已啟用分享", "Date archived": "封存日期", - "Could not load collections": "Could not load collections", - "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.", - "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.": "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.", - "API Endpoint": "API Endpoint", - "API Secret": "API Secret", - "Datasource": "Datasource", - "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.": "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.", - "Sorry, an answer could not be found in the collection, try widening your search.": "Sorry, an answer could not be found in the collection, try widening your search.", - "Sorry, an answer could not be found in the workspace, try widening your search.": "Sorry, an answer could not be found in the workspace, try widening your search.", - "Looking for answers": "Looking for answers", - "Answer to \"{{ query }}\"": "Answer to \"{{ query }}\"", - "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?", + "Could not load collections": "無法載入文件集", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "管理知識庫中所有文件集的權限與設定。身為工作區管理員,您也可以管理私人文件集。", + "Automatically index and search document content from {{appName}} inside <4>Glean</4> in realtime.": "在 <4>Glean</4> 中即時自動索引並搜尋來自 {{appName}} 的文件內容。", + "API Endpoint": "API 端點", + "API Secret": "API 密鑰", + "Datasource": "資料來源", + "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach or increase licensed seats please contact your account manager or email <4>priority@getoutline.com</4>.": "目前 {{appName}} 授權的詳細資訊。若授權即將到期、席位數接近上限、需要續約或增加授權席位,請聯絡您的客戶經理,或寄信至 <4>priority@getoutline.com</4>。", + "Sorry, an answer could not be found in the collection, try widening your search.": "抱歉,在此文件集中找不到答案,請嘗試擴大搜尋範圍。", + "Sorry, an answer could not be found in the workspace, try widening your search.": "抱歉,在此工作區中找不到答案,請嘗試擴大搜尋範圍。", + "Looking for answers": "正在尋找答案", + "Answer to \"{{ query }}\"": "「{{ query }}」的答案", + "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?": "哎呀,您需要在 Figma 中允許權限,才能將 {{appName}} 連結到您的工作區。要再試一次嗎?", "Something went wrong while authenticating your request. Please try logging in again.": "請求認證時發生一些錯誤,請嘗試重新登入。", - "Something went wrong while processing your request. Please try again.": "Something went wrong while processing your request. Please try again.", - "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.": "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.", - "Enabled on": "Enabled on", - "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?": "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?", - "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", + "Something went wrong while processing your request. Please try again.": "處理您的要求時發生錯誤。請再試一次。", + "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.": "將您的 {{appName}} 帳號連結到 Figma,即可直接在文件中預覽您有權存取的設計檔案。", + "Enabled on": "啟用於", + "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?": "中斷連結後,將無法在文件中預覽此帳號的 Figma 設計檔案。您確定嗎?", + "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "Figma 整合目前已停用。若要啟用整合,請設定相關環境變數並重新啟動伺服器。", "Whoops, you need to accept the permissions in GitHub to connect {{appName}} to your workspace. Try again?": "喔歐!您必須在 GitHub 允許 {{appName}} 取得權限連結您的工作區。再試一次?", - "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}.": "透過將 GitHub 組織或特定儲存庫連接到 {appName},啟用 GitHub issues的預覽並在文件中拉取請求。", + "The owner of GitHub account has been requested to install the {{githubAppName}} GitHub app. Once approved, previews will be shown for respective links.": "已要求 GitHub 帳號擁有者安裝 {{githubAppName}} GitHub 應用程式。核准後,相關連結將會顯示預覽。", + "Enable previews of GitHub issues and pull requests in documents by connecting a GitHub organization or specific repositories to {appName}.": "將 GitHub 組織或特定儲存庫連結到 {appName},即可在文件中啟用 GitHub issue 與 pull request 預覽。", "Enabled by {{integrationCreatedBy}}": "由 {{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?", + "Disconnecting will prevent previewing GitHub links from this organization in documents. Are you sure?": "中斷連結後,將無法在文件中預覽此組織的 GitHub 連結。您確定嗎?", "The GitHub integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "Slack 整合目前已停用,若要啟用,請設定相關的環境變數並重新啟動伺服器。", - "Connect GitLab": "Connect GitLab", - "Enter the details for your GitLab instance.": "Enter the details for your GitLab instance.", + "Connect GitLab": "連結 GitLab", + "Enter the details for your GitLab instance.": "輸入 GitLab 執行個體的詳細資訊。", "GitLab URL": "GitLab 網址", - "URL must start with https": "URL must start with https", - "Client ID": "Client ID", - "OAuth application ID": "OAuth application ID", - "Client Secret": "Client Secret", - "OAuth application secret": "OAuth application secret", + "URL must start with https": "URL 必須以 HTTPS 開頭", + "Client ID": "客戶端 ID", + "OAuth application ID": "OAuth 應用程式 ID", + "Client Secret": "客戶端密鑰", + "OAuth application secret": "OAuth 應用程式密鑰", "Connecting": "連接中", - "Choose which GitLab instance to connect to.": "Choose which GitLab instance to connect to.", + "Choose which GitLab instance to connect to.": "選擇要連結的 GitLab 執行個體。", "GitLab Cloud": "GitLab Cloud", - "Connect to your account on gitlab.com": "Connect to your account on gitlab.com", - "GitLab Cloud credentials are not configured": "GitLab Cloud credentials are not configured", + "Connect to your account on gitlab.com": "連結至您在 gitlab.com 上的帳號", + "GitLab Cloud credentials are not configured": "尚未設定 GitLab Cloud 憑證", "Self-managed": "自行管理", - "Connect to a custom GitLab installation": "Connect to a custom GitLab installation", - "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?": "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?", - "The GitLab account is already connected to this workspace.": "The GitLab account is already connected to this workspace.", - "Something went wrong while authenticating your request. Please try again.": "Something went wrong while authenticating your request. Please try again.", - "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.": "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.", - "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.": "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.", - "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?": "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?", - "Google Analytics": "Google 分析", - "Add a Google Analytics 4 measurement ID to send document views and analytics from the workspace to your own Google Analytics account.": "添加你的 Google Analytics ,以將知識庫的文件檢視和分析數據發送到您自己的 Google Analytics 帳戶。", - "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.": "在 Google Analytics 管理儀表板中創建 \"Web\" 流,並從生成的程式碼片段中複製 measurement ID 進行安裝。", - "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?", - "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.", - "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?", - "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", - "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.", + "Connect to a custom GitLab installation": "連結至自訂 GitLab 安裝", + "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?": "您需要在 GitLab 中允許權限,才能將 {{appName}} 連結到您的工作區。要再試一次嗎?", + "The GitLab account is already connected to this workspace.": "此 GitLab 帳號已連結到此工作區。", + "Something went wrong while authenticating your request. Please try again.": "驗證您的要求時發生錯誤。請再試一次。", + "The owner of GitLab account has been requested to install the application. Once approved, the connection will be completed.": "已要求 GitLab 帳號擁有者安裝應用程式。核准後,連結將會完成。", + "Enable previews of GitLab issues and merge requests in documents by connecting a GitLab organization or specific repositories to {appName}.": "將 GitLab 組織或特定儲存庫連結到 {appName},即可在文件中啟用 GitLab issue 與 merge request 預覽。", + "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?": "中斷連結後,將無法在文件中預覽 GitLab 連結。您確定嗎?", + "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.": "新增你的 Google Analytics ,以將知識庫的文件檢視和分析資料傳送到您自己的 Google Analytics 帳號。", + "Measurement ID": "評估 ID", + "Create a \"Web\" stream in your Google Analytics admin dashboard and copy the measurement ID from the generated code snippet to install.": "請在 Google Analytics 管理後台建立「網頁」串流,並從產生的程式碼片段中複製評估 ID 以進行安裝。", + "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "哎呀,您需要在 Linear 中允許權限,才能將 {{appName}} 連結到您的工作區。要再試一次嗎?", + "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "將 Linear 工作區連結到 {{appName}},即可在文件中啟用 Linear issue 預覽。", + "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "中斷連結後,將無法在文件中預覽此工作區的 Linear 連結。您確定嗎?", + "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "Linear 整合目前已停用。若要啟用整合,請設定相關環境變數並重新啟動伺服器。", + "Configure a Matomo installation to send views and analytics from the workspace to your own Matomo instance.": "設定 Matomo 安裝,將工作區的檢視與分析資料傳送至您自己的 Matomo 執行個體。", "Instance URL": "執行個體 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": "網頁 ID", - "An ID that uniquely identifies the website in your Matomo instance.": "An ID that uniquely identifies the website in your Matomo instance.", - "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?": "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?", + "The URL of your Matomo instance. If you are using Matomo Cloud it will end in matomo.cloud/": "您的 Matomo 執行個體 URL。如果您使用 Matomo Cloud,URL 會以 matomo.cloud/ 結尾", + "Site ID": "網站 ID", + "An ID that uniquely identifies the website in your Matomo instance.": "在您的 Matomo 執行個體中唯一識別網站的 ID。", + "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?": "哎呀,您需要在 Notion 中允許權限,才能將 {{ appName }} 連結到您的工作區。要再試一次嗎?", "Import pages from Notion": "從 Notion 匯入文件", "Passkey options": "密碼金鑰選項", - "Registered {{ timeAgo }}": "Registered {{ timeAgo }}", + "Registered {{ timeAgo }}": "{{ timeAgo }} 前註冊", "Passkey updated": "密碼金鑰已更新", - "Failed to update passkey. Please try again.": "Failed to update passkey. Please try again.", - "Give your passkey a memorable name to easily identify it.": "Give your passkey a memorable name to easily identify it.", + "Failed to update passkey. Please try again.": "更新密碼金鑰失敗。請再試一次。", + "Give your passkey a memorable name to easily identify it.": "為您的密碼金鑰取一個容易記住的名稱,方便識別。", "Enter passkey name": "輸入密碼金鑰名稱", "Failed to load passkeys": "載入密碼金鑰失敗", "Passkey added successfully": "密碼金鑰新增成功", - "Failed to register passkey. Please try again.": "密碼金鑰註冊失敗,請稍後重試。", + "Failed to register passkey. Please try again.": "密碼金鑰註冊失敗,請稍後再試。", "Rename passkey": "重新命名密碼金鑰", "Delete passkey": "刪除密碼金鑰", "Passkey deleted successfully": "密碼金鑰刪除成功", - "Failed to delete passkey. Please try again.": "刪除密碼金鑰失敗,請稍後重試。", - "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.": "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.", + "Failed to delete passkey. Please try again.": "刪除密碼金鑰失敗,請稍後再試。", + "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.": "您確定要刪除此密碼金鑰嗎?刪除後將無法再使用它登入。", "Registering": "註冊中", "Add Passkey": "新增密碼金鑰", - "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.": "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.", - "Sign-in with Passkey is currently disabled for this team.": "Sign-in with Passkey is currently disabled for this team.", - "Enable for all users in Settings -> Authentication.": "Enable for all users in Settings -> Authentication.", - "Contact a workspace admin to enable it.": "Contact a workspace admin to enable it.", - "You don't have any passkeys yet.": "You don't have any passkeys yet.", - "New passkey added to your {{ appName }} account": "New passkey added to your {{ appName }} account", + "Passkeys allow you to sign in safely without a password using your device's biometric authentication (Face ID, Touch ID, Windows Hello) or security key.": "密碼金鑰可讓您使用裝置的生物辨識驗證(Face ID、Touch ID、Windows Hello)或安全金鑰,安全地無密碼登入。", + "Sign-in with Passkey is currently disabled for this team.": "此團隊目前已停用密碼金鑰登入。", + "Enable for all users in Settings -> Authentication.": "請在「設定 -> 身分驗證」中為所有使用者啟用。", + "Contact a workspace admin to enable it.": "請聯絡工作區管理員啟用此功能。", + "You don't have any passkeys yet.": "您尚未建立任何密碼金鑰。", + "New passkey added to your {{ appName }} account": "新的密碼金鑰已新增至您的 {{ appName }} 帳號", "A new passkey was created for your account.": "您的帳號已建立新的密碼金鑰。", "New Passkey Created": "密碼金鑰已建立", - "A new passkey has been added to your {{ appName }} account": "A new passkey has been added to your {{ appName }} account", - "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.", - "You can manage your passkeys at any time": "You can manage your passkeys at any time", - "If you have any concerns about your account security, please contact a workspace admin.": "If you have any concerns about your account security, please contact a workspace admin.", + "A new passkey has been added to your {{ appName }} account": "新的密碼金鑰已新增至您的 {{ appName }} 帳號", + "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "密碼金鑰提供安全的無密碼登入方式。若此密碼金鑰不是您建立的,請立即檢查您的帳號安全性設定。", + "You can manage your passkeys at any time": "您可以隨時管理密碼金鑰", + "If you have any concerns about your account security, please contact a workspace admin.": "若您對帳號安全有任何疑慮,請聯絡工作區管理員。", "Manage Passkeys": "管理密碼金鑰", "Add to Slack": "新增到 Slack", - "document published": "已發佈文件", + "document published": "已發布文件", "document updated": "已更新文件", - "Posting to the <em>{{ channelName }}</em> channel on": "連結到 <em>{{ channelName }}</em> 頻道", - "These events should be posted to Slack": "這些活動應該被發佈到 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?", + "Posting to the <em>{{ channelName }}</em> channel on": "連結至 <em>{{ channelName }}</em> 頻道", + "These events should be posted to Slack": "這些活動應該被發布到 Slack", + "This will prevent any future updates from being posted to this Slack channel. Are you sure?": "這會防止日後任何更新發布到此 Slack 頻道。您確定嗎?", "Whoops, you need to accept the permissions in Slack to connect {{appName}} to your workspace. Try again?": "喔歐!您必須在 Slack 允許 {{appName}} 取得權限連結您的工作區。再試一次?", "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.", + "Link your {{appName}} account to Slack to enable searching and previewing the documents you have access to, directly within chat.": "將您的 {{appName}} 帳號連結到 Slack,即可直接在聊天中搜尋並預覽您有權存取的文件。", "Disconnecting your personal account will prevent searching for documents from Slack. Are you sure?": "取消連結您的個人帳號將不會從 Slack 搜尋文件,您確定嗎", "Slash command": "斜線指令", - "Get rich previews of {{ appName }} links shared in Slack and use the <em>{{ command }}</em> slash command to search for documents without leaving your chat.": "使用 <em>{{ command }}</em> slash command 功能搜尋文件不需跳開聊天視窗,而且可以在 Slack 獲得更多細節的 {{ appName }} 文件預覽功能。", - "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.": "將 {{appName}} 文件集連結到 Slack 頻道。若文件已經被更新或公開釋出,則會被自動張貼在 Slack 上。", - "Comment by {{ author }} on \"{{ title }}\"": "Comment by {{ author }} on \"{{ title }}\"", + "Get rich previews of {{ appName }} links shared in Slack and use the <em>{{ command }}</em> slash command to search for documents without leaving your chat.": "在 Slack 中取得 {{ appName }} 分享連結的豐富預覽,並使用 <em>{{ command }}</em> 斜線指令搜尋文件,無需離開聊天畫面。", + "This will remove the Outline slash command from your Slack workspace. Are you sure?": "這會從您的 Slack 工作區移除 Outline 斜線指令。您確定嗎?", + "Connect {{appName}} collections to Slack channels. Messages will be automatically posted to Slack when documents are published or updated.": "將 {{appName}} 文件集連結到 Slack 頻道。若文件已經更新或公開釋出,則會被自動張貼在 Slack 上。", + "Comment by {{ author }} on \"{{ title }}\"": "{{ author }} 在「{{ title }}」上的留言", "How to use {{ command }}": "如何使用 {{ command }}", "To search your workspace use {{ command }}. \nType {{ command2 }} help to display this help text.": "要搜尋您的工作區請使用 {{ command }}.\n輸入 {{ command2 }} 來顯示這個幫助文字。", - "Post to Channel": "發送到頻道", + "Post to Channel": "發布到頻道", "This is what we found for \"{{ term }}\"": "這是我們找到關於 \"{{ term }}\" 的搜尋結果", "No results for \"{{ term }}\"": "找不到任何 ”{{ 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 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 }}", + "It looks like you haven’t linked your {{ appName }} account to Slack yet": "您似乎尚未將 {{ appName }} 帳號連結到 Slack", + "Link your account": "連結您的帳號", + "Link your account in {{ appName }} settings to search from Slack": "請在 {{ appName }} 設定中連結您的帳號,以便從 Slack 搜尋", + "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.": "設定 Umami 安裝,將工作區的檢視與分析資料傳送至您自己的 Umami 執行個體。", + "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}": "您的 Umami 執行個體 URL。如果您使用 Umami Cloud,URL 會以 {{ url }} 開頭", "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.", + "The name of the script file that Umami uses to track analytics.": "Umami 用來追蹤分析資料的指令碼檔案名稱。", + "An ID that uniquely identifies the website in your Umami instance.": "在您的 Umami 執行個體中唯一識別網站的 ID。", "New webhook": "新 Webhook", "Edit webhook": "編輯 Webhook", "Delete webhook": "刪除 Webhook", - "Are you sure you want to delete the {{ name }} webhook?": "您確定要刪除 {{ name }} webhook 嗎?", + "Are you sure you want to delete the {{ name }} webhook?": "您確定要刪除 {{ name }} Webhook 嗎?", "Webhook updated": "已更新 Webhook", "Update": "更新", "Updating": "正在更新", - "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "提供一個描述名稱給這個Webhook以及當符合特定事件時我們要傳送POST要求的URL。", - "A memorable identifer": "容易記憶的辨識名稱", + "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "請為此 Webhook 提供描述性名稱,以及在建立相符事件時應傳送 POST 要求的 URL。", + "A memorable identifer": "容易記住的識別名稱", "URL": "URL", - "Webhook delivery over http is insecure, use https if possible": "Webhook delivery over http is insecure, use https if possible", + "Webhook delivery over http is insecure, use https if possible": "透過 HTTP 傳送 Webhook 並不安全,請盡可能使用 HTTPS", "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.": "訂閱所有事件、群組或個人事件。我們建議僅訂閱應用程序運行所需的最少量事件。", - "All events": "所有活動", - "All {{ groupName }} events": "所有 {{ groupName }} 活動", + "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 {{ groupName }} events": "所有 {{ groupName }} 事件", "Webhook": "Webhook", "Webhook created": "已建立 Webhook", - "Could not load webhooks": "Could not load webhooks", - "Webhooks": "Webhooks", - "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 用在當 {{appName}} 事件發生時通知您的應用程式。事件會使用帶有 JSON payload 的 https 請求近乎即時地發送。", - "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier是一個可以讓 {{appName}} 簡單的跟上千個商業工具整合的平台。自動化你的工作流程,同步資料,以及更多。", - "Delayed notification": "Delayed notification", - "“{{ collectionName }}” created": "“{{ collectionName }}” created", - "{{ userName }} created a collection": "{{ userName }} created a collection", - "{{ userName }} created the collection “{{ collectionName }}”": "{{ userName }} created the collection “{{ collectionName }}”", - "Open Collection": "打開文件集", + "Could not load webhooks": "無法載入 Webhook", + "Webhooks": "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.": "Webhook 可在 {{appName}} 發生事件時通知您的應用程式。事件會以含有 JSON 承載資料的 HTTPS 要求近乎即時傳送。", + "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Zapier 是一個可讓 {{appName}} 輕鬆整合數千種商務工具的平台。您可以自動化工作流程、同步資料等。", + "Delayed notification": "延遲通知", + "“{{ collectionName }}” created": "「{{ collectionName }}」已建立", + "{{ userName }} created a collection": "{{ userName }} 建立了文件集", + "{{ userName }} created the collection “{{ collectionName }}”": "{{ userName }} 建立了文件集「{{ collectionName }}」", + "Open Collection": "開啟文件集", "View Collection": "檢視文件集", - "{{ userName }} created the collection “{{ collectionName }}”.": "。。", - "Unsubscribe from these emails": "", - "{{ actorName }} invited you to the “{{ collectionName }}” collection": "{{ actorName }} invited you to the “{{ collectionName }}” collection", - "{{ actorName }} invited you to a collection": "{{ actorName }} invited you to a collection", - "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "{{ actorName }} invited you to the “{{ collectionName }}” collection.", - "view and edit": "view and edit", - "manage": "manage", - "view": "view", - "{{ actorName }} invited you to {{ permission }} documents in the": "{{ actorName }} invited you to {{ permission }} documents in the", - "Re": "Re", - "New comment on “{{ documentTitle }}” - {{ trimmedText }}": "New comment on “{{ documentTitle }}” - {{ trimmedText }}", - "{{ actorName }} replied in a thread": "{{ actorName }} replied in a thread", - "{{ actorName }} commented on the document": "{{ actorName }} commented on the document", - "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "", - "{{ actorName }} commented on “{{ documentTitle }}”": "{{ actorName }} commented on “{{ documentTitle }}”", - "in the {{ collectionName }} collection": "in the {{ collectionName }} collection", - "Open Thread": "Open Thread", - "View Thread": "View Thread", - "{{ actorName }} replied to a thread in": "{{ actorName }} replied to a thread in", - "{{ actorName }} commented on": "{{ actorName }} commented on", - "Mentioned you in “{{ documentTitle }}”": "Mentioned you in “{{ documentTitle }}”", - "{{ actorName }} mentioned you in a thread": "{{ actorName }} mentioned you in a thread", - "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”": "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”", - "{{ actorName }} mentioned you in a comment on": "{{ actorName }} mentioned you in a comment on", - "Resolved a comment thread in “{{ documentTitle }}”": "Resolved a comment thread in “{{ documentTitle }}”", - "{{ actorName }} resolved a comment thread": "{{ actorName }} resolved a comment thread", - "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”", - "{{ actorName }} resolved a comment on": "{{ actorName }} resolved a comment on", - "Your workspace deletion request": "Your workspace deletion request", - "Your requested workspace deletion code": "Your requested workspace deletion code", - "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.", - "Your email update request": "Your email update request", - "Here’s your email change confirmation.": "Here’s your email change confirmation.", - "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.", - "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.", - "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to", - "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "You requested to update your {{ appName }} account email. Please click below to confirm the change to", - "Confirm Change": "Confirm Change", - "Your account deletion request": "Your account deletion request", - "Your requested account deletion code": "Your requested account deletion code", - "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.", - "You requested to permanently delete your {{ appName }} user account in the": "You requested to permanently delete your {{ appName }} user account in the", - "workspace. Please enter the code below to confirm your account deletion.": "workspace. Please enter the code below to confirm your account deletion.", - "{{ actorName }} mentioned you": "{{ actorName }} mentioned you", - "You were mentioned": "You were mentioned", - "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.", + "{{ userName }} created the collection “{{ collectionName }}”.": "{{ userName }} 建立了文件集「{{ collectionName }}」。", + "Unsubscribe from these emails": "取消訂閱這些電子郵件", + "{{ actorName }} invited you to the “{{ collectionName }}” collection": "{{ actorName }} 邀請您加入「{{ collectionName }}」文件集", + "{{ actorName }} invited you to a collection": "{{ actorName }} 邀請您加入文件集", + "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "{{ actorName }} 邀請您加入「{{ collectionName }}」文件集。", + "view and edit": "檢視與編輯", + "manage": "管理", + "view": "檢視", + "{{ actorName }} invited you to {{ permission }} documents in the": "{{ actorName }} 邀請您{{ permission }}此處的文件:", + "Re": "回覆", + "New comment on “{{ documentTitle }}” - {{ trimmedText }}": "「{{ documentTitle }}」有新留言 — {{ trimmedText }}", + "{{ actorName }} replied in a thread": "{{ actorName }} 在留言串中回覆", + "{{ actorName }} commented on the document": "{{ actorName }} 在文件中留言", + "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "{{ actorName }} 回覆了「{{ documentTitle }}」中的留言串", + "{{ actorName }} commented on “{{ documentTitle }}”": "{{ actorName }} 在「{{ documentTitle }}」中留言", + "in the {{ collectionName }} collection": "在 {{ collectionName }} 文件集中", + "Open Thread": "開啟留言串", + "View Thread": "檢視留言串", + "{{ actorName }} replied to a thread in": "{{ actorName }} 回覆了此處的留言串:", + "{{ actorName }} commented on": "{{ actorName }} 留言於", + "Mentioned you in “{{ documentTitle }}”": "在「{{ documentTitle }}」中提及您", + "{{ actorName }} mentioned you in a thread": "{{ actorName }} 在留言串中提及您", + "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”": "{{ actorName }} 在「{{ documentTitle }}」的留言中提及您", + "{{ actorName }} mentioned you in a comment on": "{{ actorName }} 在此處的留言中提及您:", + "Resolved a comment thread in “{{ documentTitle }}”": "已解決「{{ documentTitle }}」中的留言串", + "{{ actorName }} resolved a comment thread": "{{ actorName }} 已解決留言串", + "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "{{ actorName }} 已解決「{{ documentTitle }}」中的留言串", + "{{ actorName }} resolved a comment on": "{{ actorName }} 已解決此處的留言:", + "Your workspace deletion request": "您的工作區刪除要求", + "Your requested workspace deletion code": "您要求的工作區刪除代碼", + "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "您要求永久刪除您的 {{ appName }} 工作區。請輸入下方代碼以確認刪除工作區。", + "Your email update request": "您的電子郵件更新要求", + "Here’s your email change confirmation.": "這是您的電子郵件變更確認。", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "您要求更新 {{ appName }} 帳號電子郵件。請點選下方連結,確認將 {{ previous }} 變更為 {{ to }}。", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "您要求更新 {{ appName }} 帳號電子郵件。請點選下方連結,確認變更為 {{ to }}。", + "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "您要求更新 {{ appName }} 帳號電子郵件。請點選下方按鈕,確認將 {{ previous }} 變更為", + "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "您要求更新 {{ appName }} 帳號電子郵件。請點選下方按鈕,確認變更為", + "Confirm Change": "確認變更", + "Your account deletion request": "您的帳號刪除要求", + "Your requested account deletion code": "您要求的帳號刪除代碼", + "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "您要求永久刪除 {{ teamName }} 工作區中的 {{ appName }} 使用者帳號。請輸入下方代碼以確認刪除帳號。", + "You requested to permanently delete your {{ appName }} user account in the": "您要求永久刪除此工作區中的 {{ appName }} 使用者帳號:", + "workspace. Please enter the code below to confirm your account deletion.": "工作區。請輸入下方代碼以確認刪除帳號。", + "{{ actorName }} mentioned you": "{{ actorName }} 提及了您", + "You were mentioned": "您被提及", + "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "{{ actorName }} 在文件「{{ documentTitle }}」中提及了您。", "Open Document": "開啟文件", - "View Document": "查看文件", - "{{ actorName }} mentioned you in the document": "{{ actorName }} mentioned you in the document", + "View Document": "檢視文件", + "{{ actorName }} mentioned you in the document": "{{ actorName }} 在文件中提及了您", "updated": "已更新", "“{{ documentTitle }}” {{ eventName }}": "“{{ documentTitle }}” {{ eventName }}", - "{{ actorName }} {{ eventName }} a document": "{{ actorName }} {{ eventName }} a document", + "{{ actorName }} {{ eventName }} a document": "{{ actorName }}{{ eventName }}了一份文件", "\"{{ documentTitle }}\" {{ eventName }}": "\"{{ documentTitle }}\" {{ eventName }}", - "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"", - "{{ actorName }} {{ eventName }} the document": "{{ actorName }} {{ eventName }} the document", + "{{ actorName }} {{ eventName }} the document \"{{ documentTitle }}\"": "{{ actorName }}{{ eventName }}了文件「{{ documentTitle }}」", + "{{ actorName }} {{ eventName }} the document": "{{ actorName }}{{ eventName }}了此文件", "Unsubscribe from this doc": "取消訂閱此文件", - "{{ actorName }} shared “{{ documentTitle }}” with you": "", - "{{ actorName }} shared a document": "{{ actorName }} shared a document", - "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} shared “{{ documentTitle }}” with you.", + "{{ actorName }} shared “{{ documentTitle }}” with you": "{{ actorName }} 與您分享了「{{ documentTitle }}」", + "{{ actorName }} shared a document": "{{ actorName }} 分享了一份文件", + "{{ actorName }} shared “{{ documentTitle }}” with you.": "{{ actorName }} 與您分享了「{{ documentTitle }}」。", "edit": "編輯", - "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} invited you to {{ permission }} the", - "Your requested export": "Your requested export", - "Sorry, your requested data export has failed": "Sorry, your requested data export has failed", - "Your Data Export": "Your Data Export", - "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.", - "Sorry, your requested data export has failed, please visit the": "Sorry, your requested data export has failed, please visit the", - "admin section": "admin section", - "to try again – if the problem persists please contact support.": "to try again – if the problem persists please contact support.", - "Go to export": "Go to export", - "Here's your request data export from {{ appName }}": "Here's your request data export from {{ appName }}", - "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.", - "Download export": "Download export", - "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.", - "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "The {{ groupName }} group was mentioned in “{{ documentTitle }}”", - "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "{{ actorName }} mentioned the “{{ groupName }}” group in a thread", - "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”", - "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "{{ actorName }}提及了{{ groupName }}群組於評論", - "{{ actorName }} mentioned the “{{ groupName }}” group": "{{ actorName }} mentioned the “{{ groupName }}” group", - "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", - "Your group was mentioned": "Your group was mentioned", - "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document": "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", - "Great news, {{ invitedName }}, accepted your invitation": "Great news, {{ invitedName }}, accepted your invitation", - "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", - "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", - "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", - "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", - "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", - "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", + "{{ actorName }} invited you to {{ permission }} the": "{{ actorName }} 邀請您{{ permission }}此處內容:", + "Your requested export": "您要求的匯出", + "Sorry, your requested data export has failed": "抱歉,您要求的資料匯出失敗", + "Your Data Export": "您的資料匯出", + "Sorry, your requested data export has failed, please visit the admin section to try again – if the problem persists please contact support.": "抱歉,您要求的資料匯出失敗。請前往管理區再試一次;如果問題持續發生,請聯絡支援團隊。", + "Sorry, your requested data export has failed, please visit the": "抱歉,您要求的資料匯出失敗。請前往", + "admin section": "管理區", + "to try again – if the problem persists please contact support.": "再試一次;如果問題持續發生,請聯絡支援團隊。", + "Go to export": "前往匯出", + "Here's your request data export from {{ appName }}": "這是您從 {{ appName }} 要求的資料匯出", + "Your requested data export is complete, you can download from the link below in a browser that is logged into your account.": "您要求的資料匯出已完成。您可以在已登入帳號的瀏覽器中,透過下方連結下載。", + "Download export": "下載匯出", + "Your requested data export is complete - you can download from the link below in a browser that is logged into your account.": "您要求的資料匯出已完成,您可以在已登入帳號的瀏覽器中,透過下方連結下載。", + "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "{{ groupName }} 群組在「{{ documentTitle }}」中被提及", + "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "{{ actorName }} 在留言串中提及「{{ groupName }}」群組", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "{{ actorName }} 在「{{ documentTitle }}」的留言中提及「{{ groupName }}」群組", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "{{ actorName }}提及了{{ groupName }}群組於留言", + "{{ actorName }} mentioned the “{{ groupName }}” group": "{{ actorName }} 提及了「{{ groupName }}」群組", + "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} 在文件「{{ documentTitle }}」中提及了「{{ groupName }}」群組。", + "Your group was mentioned": "您的群組被提及", + "{{ actorName }} mentioned the \"{{ groupName }}\" group in the document": "{{ actorName }} 在文件中提及了「{{ groupName }}」群組", + "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} 已加入您的 {{ appName }} 團隊", + "Great news, {{ invitedName }}, accepted your invitation": "好消息,{{ invitedName }} 已接受您的邀請", + "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "好消息,{{ invitedName }} 剛接受您的邀請並建立了帳號。您現在可以開始一起協作文件。", + "Open {{ appName }}": "開啟 {{ appName }}", + "{{ invitedName }} has joined your team": "{{ invitedName }} 已加入您的團隊", + "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} 邀請您加入 {{ teamName }} 的工作區", + "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} 是供團隊建立並分享知識的地方。", + "Join {{ teamName }} on {{ appName }}": "在 {{ appName }} 加入 {{ teamName }}", + "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "已邀請您加入 {{ appName }},這是一個讓團隊建立並分享知識的地方。", "Join now": "立即加入", "Reminder": "提醒", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", - "We only send a reminder once.": "We only send a reminder once.", - "If you haven't signed up yet, you can do so here": "If you haven't signed up yet, you can do so here", - "\"{{ documentTitle }}\" updated": "\"{{ documentTitle }}\" updated", - "\"{{ documentTitle }}\" has been updated.": "\"{{ documentTitle }}\" has been updated.", - "A document you subscribed to has been updated.": "A document you subscribed to has been updated.", - "Click below to view the latest version.": "Click below to view the latest version.", - "Confirm your subscription": "Confirm your subscription", - "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.": "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.", - "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.", - "Confirm Subscription": "Confirm Subscription", - "This link will expire in 24 hours.": "This link will expire in 24 hours.", - "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.": "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.", - "Please confirm your subscription by clicking the button below.": "Please confirm your subscription by clicking the button below.", - "Magic Sign-in Link": "Magic Sign-in Link", - "Sign in verification code": "Sign in verification code", - "Here’s your link to signin to {{ appName }}.": "Here’s your link to signin to {{ appName }}.", - "Use the link below to sign in": "Use the link below to sign in", - "If the link expired you can request a new one from your team's signin page at": "If the link expired you can request a new one from your team's signin page at", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "這是一封簡短提醒:{{ actorName }}({{ actorEmail }})邀請您加入 {{ appName }} 上的 {{ teamName }} 團隊。{{ appName }} 是讓團隊建立並分享知識的地方。", + "We only send a reminder once.": "我們只會傳送一次提醒。", + "If you haven't signed up yet, you can do so here": "如果您尚未註冊,可以在此完成", + "\"{{ documentTitle }}\" updated": "「{{ documentTitle }}」已更新", + "\"{{ documentTitle }}\" has been updated.": "「{{ documentTitle }}」已更新。", + "A document you subscribed to has been updated.": "您訂閱的文件已更新。", + "Click below to view the latest version.": "點選下方以檢視最新版本。", + "Confirm your subscription": "確認您的訂閱", + "Confirm your subscription to receive updates when \"{{ documentTitle }}\" changes.": "確認訂閱,以在「{{ documentTitle }}」變更時接收更新。", + "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}. Please confirm your subscription by following the link below.": "您要求在 {{ appName }} 上的「{{ documentTitle }}」更新時收到電子郵件通知。請點選下方連結確認訂閱。", + "Confirm Subscription": "確認訂閱", + "This link will expire in 24 hours.": "此連結將於 24 小時後失效。", + "You requested to receive email notifications when \"{{ documentTitle }}\" is updated on {{ appName }}.": "您要求在 {{ appName }} 上的「{{ documentTitle }}」更新時收到電子郵件通知。", + "Please confirm your subscription by clicking the button below.": "請點選下方按鈕確認訂閱。", + "Magic Sign-in Link": "魔法登入連結", + "Sign in verification code": "登入驗證碼", + "Here’s your link to signin to {{ appName }}.": "這是您登入 {{ appName }} 的連結。", + "Use the link below to sign in": "使用下方連結登入", + "If the link expired you can request a new one from your team's signin page at": "如果連結已失效,您可以前往團隊登入頁要求新的連結:", "Enter this verification code": "輸入驗證碼", - "If the code expired you can request a new one from your team's signin page at": "If the code expired you can request a new one from your team's signin page at", - "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", - "If the link expired you can request a new one from your team's sign-in page at": "If the link expired you can request a new one from your team's sign-in page at", - "Sign-in Code": "Sign-in Code", - "Enter this code on your team's sign-in page to continue.": "Enter this code on your team's sign-in page to continue.", - "If the code expired you can request a new one from your team's sign-in page at": "If the code expired you can request a new one from your team's sign-in page at", + "If the code expired you can request a new one from your team's signin page at": "如果代碼已失效,您可以前往團隊登入頁要求新的代碼:", + "Click the button below to sign in to {{ appName }}.": "點選下方按鈕登入 {{ appName }}。", + "If the link expired you can request a new one from your team's sign-in page at": "如果連結已失效,您可以前往團隊登入頁要求新的連結:", + "Sign-in Code": "登入代碼", + "Enter this code on your team's sign-in page to continue.": "請在團隊登入頁輸入此代碼以繼續。", + "If the code expired you can request a new one from your team's sign-in page at": "如果代碼已失效,您可以前往團隊登入頁要求新的代碼:", "Webhook disabled": "Webhook 已關閉", - "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", - "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.": "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.", + "Your webhook ({{ webhookName }}) has been disabled": "您的 Webhook({{ webhookName }})已停用", + "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable by editing the webhook.": "由於近期傳送嘗試的失敗率過高,您的 Webhook({{ webhookName }})已自動停用。您可以編輯 Webhook 以重新啟用。", "Webhook settings": "Webhook 設定", "Welcome to {{ appName }}!": "歡迎來到 {{ appName }} !", - "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.", - "Or, learn more about everything {{ appName }} can do in the guide": "Or, learn more about everything {{ appName }} can do in the guide", - "Or, learn more about everything {{ appName }} can do in": "Or, learn more about everything {{ appName }} can do in", - "the guide": "the guide", + "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team's work.": "若要開始使用,請前往首頁並嘗試建立文件集,用來記錄流程、建立作業手冊,或規劃團隊工作。", + "Or, learn more about everything {{ appName }} can do in the guide": "或者,您也可以在指南中進一步了解 {{ appName }} 的所有功能", + "Or, learn more about everything {{ appName }} can do in": "或者,進一步了解 {{ appName }} 的所有功能:", + "the guide": "指南", "Never logged in": "從未登入", "Online now": "正在線上", "Online {{ timeAgo }}": "{{ timeAgo }} 前上線", - "Viewed just now": "剛剛查看過", + "Viewed just now": "剛剛檢視過", "You updated {{ timeAgo }}": "{{ timeAgo }} 由您更新", "{{ user }} updated {{ timeAgo }}": "{{ timeAgo }} 由 {{ user }} 更新", "You created {{ timeAgo }}": "{{ timeAgo }} 由您新增", @@ -1767,15 +1770,16 @@ "Sorry, an error occurred uploading the file": "抱歉,上傳檔案時發生錯誤", "Sorry, that type of link is not supported": "抱歉,尚未支援此類型的連結", "Caption": "標題", - "Empty diagram": "Empty diagram", + "Empty diagram": "空白圖表", "Double click to edit": "按兩下編輯", "Open": "開啟", "Loading": "正在讀取", "Error loading data": "載入資料時發生錯誤", - "Show {{ count }} completed": "Show {{ count }} completed", - "Show {{ count }} completed_plural": "Show {{ count }} completed", + "Show {{ count }} completed": "顯示 {{ count }} 個已完成項目", + "Show {{ count }} completed_plural": "顯示 {{ count }} 個已完成項目", "Hide completed": "隱藏已完成項目", "Write a caption": "撰寫說明文字", "Add title": "加入標題", - "Add content": "新增內容" + "Add content": "新增內容", + "Tomorrow": "Tomorrow" } From 7567f407af4f1f87bb82e2bb93c346062258ec5e Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 15 Jun 2026 19:03:40 -0400 Subject: [PATCH 259/286] fix: Enable PDF toggle for old embeds pre contentType (#12709) --- app/editor/menus/attachment.tsx | 10 +++---- shared/editor/nodes/Attachment.tsx | 18 ++++++------- shared/editor/queries/isPDFAttachment.ts | 34 ++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 17 deletions(-) create mode 100644 shared/editor/queries/isPDFAttachment.ts diff --git a/app/editor/menus/attachment.tsx b/app/editor/menus/attachment.tsx index 4d1c9a0f93..ba07e0b27f 100644 --- a/app/editor/menus/attachment.tsx +++ b/app/editor/menus/attachment.tsx @@ -1,6 +1,7 @@ import { t } from "i18next"; import { TrashIcon, DownloadIcon, ReplaceIcon, PDFIcon } from "outline-icons"; import { isNodeActive } from "@shared/editor/queries/isNodeActive"; +import { isPDFAttachmentActive } from "@shared/editor/queries/isPDFAttachment"; import type { MenuItem, SelectionContext } from "@shared/editor/types"; /** @@ -9,9 +10,7 @@ import type { MenuItem, SelectionContext } from "@shared/editor/types"; * @param ctx - the current selection context. * @returns an array of menu items. */ -export default function attachmentMenuItems( - ctx: SelectionContext -): MenuItem[] { +export default function attachmentMenuItems(ctx: SelectionContext): MenuItem[] { if (ctx.readOnly) { return []; } @@ -20,9 +19,6 @@ export default function attachmentMenuItems( const isAttachmentWithPreview = isNodeActive(schema.nodes.attachment, { preview: true, }); - const isPdfAttachment = isNodeActive(schema.nodes.attachment, { - contentType: "application/pdf", - }); return [ { @@ -40,7 +36,7 @@ export default function attachmentMenuItems( tooltip: t("Show preview"), icon: <PDFIcon />, active: isAttachmentWithPreview, - visible: isPdfAttachment(state), + visible: isPDFAttachmentActive(state), }, { name: "separator", diff --git a/shared/editor/nodes/Attachment.tsx b/shared/editor/nodes/Attachment.tsx index dc0c91174e..e754eeb716 100644 --- a/shared/editor/nodes/Attachment.tsx +++ b/shared/editor/nodes/Attachment.tsx @@ -16,6 +16,7 @@ import toggleWrap from "../commands/toggleWrap"; import FileExtension from "../components/FileExtension"; import Widget from "../components/Widget"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; +import { isPDFAttachment } from "../queries/isPDFAttachment"; import attachmentsRule from "../rules/links"; import type { ComponentProps } from "../types"; import Node from "./Node"; @@ -127,9 +128,7 @@ export default class Attachment extends Node { </> ); - return node.attrs.preview && - !embedsDisabled && - node.attrs.contentType === "application/pdf" ? ( + return node.attrs.preview && !embedsDisabled && isPDFAttachment(node) ? ( <PdfViewer icon={<FileExtension title={node.attrs.title} />} title={node.attrs.title} @@ -185,12 +184,11 @@ export default class Attachment extends Node { throw new Error("uploadFile prop is required to replace attachments"); } - const accept = - node.attrs.contentType === "application/pdf" - ? ".pdf" - : node.type.name === "attachment" - ? "*" - : null; + const accept = isPDFAttachment(node) + ? ".pdf" + : node.type.name === "attachment" + ? "*" + : null; if (accept === null) { return false; @@ -239,7 +237,7 @@ export default class Attachment extends Node { } const { node } = state.selection; - if (node.attrs.contentType !== "application/pdf") { + if (!isPDFAttachment(node)) { return false; } diff --git a/shared/editor/queries/isPDFAttachment.ts b/shared/editor/queries/isPDFAttachment.ts new file mode 100644 index 0000000000..339336643d --- /dev/null +++ b/shared/editor/queries/isPDFAttachment.ts @@ -0,0 +1,34 @@ +import type { Node as ProsemirrorNode } from "prosemirror-model"; +import { NodeSelection } from "prosemirror-state"; +import type { EditorState } from "prosemirror-state"; + +/** + * Determines whether an attachment node represents a PDF file. Falls back to the + * filename extension when the contentType attribute is missing, which is the + * case for attachments uploaded before PDF previews were introduced. + * + * @param node The attachment node to check. + * @returns true if the attachment is a PDF. + */ +export function isPDFAttachment(node: ProsemirrorNode): boolean { + if (node.attrs.contentType) { + return node.attrs.contentType === "application/pdf"; + } + + return /\.pdf$/i.test(node.attrs.title ?? ""); +} + +/** + * Determines whether the current selection is a PDF attachment. + * + * @param state The editor state. + * @returns true if a PDF attachment is selected. + */ +export function isPDFAttachmentActive(state: EditorState): boolean { + const { selection } = state; + return ( + selection instanceof NodeSelection && + selection.node.type === state.schema.nodes.attachment && + isPDFAttachment(selection.node) + ); +} From 62d5c25bd3f34c8914be6f8ab219b43e51854534 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Mon, 15 Jun 2026 20:22:15 -0400 Subject: [PATCH 260/286] fix: Import avatar image from Azure/Entra/Microsoft (#12710) * fix: Import avatar image from Azure/Entra/Microsoft * fix: Cap Azure photo fetch and backfill avatar-less users Add a timeout and response size limit to the Microsoft Graph photo request so a slow or oversized response can't stall the login callback, and sync the avatar whenever the user has none stored (respecting a manually set avatar) rather than only on account creation. --- plugins/azure/server/auth/azure.ts | 62 ++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index bd0512e131..aa7c5e1af6 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -22,10 +22,54 @@ import { import config from "../../plugin.json"; import env from "../env"; import { createContext } from "@server/context"; +import fetch from "@server/utils/fetch"; +import UploadUserAvatarTask from "@server/queues/tasks/UploadUserAvatarTask"; +import AttachmentHelper from "@server/models/helpers/AttachmentHelper"; +import { AttachmentPreset } from "@shared/types"; +import { UserFlag } from "@server/models/User"; const router = new Router(); const scopes: string[] = []; +/** + * Loads the user's profile photo from the Microsoft Graph API and encodes it as + * a data URL. Entra ID does not emit a `picture` claim in the ID token, so the + * photo is only available via Graph. Requires no additional permissions beyond + * the delegated `User.Read` already used to load the profile. + * + * @param accessToken The delegated access token for the Microsoft Graph API. + * @returns A base64 encoded data URL for the photo, or undefined if not set. + */ +async function requestPhoto(accessToken: string): Promise<string | undefined> { + try { + const response = await fetch( + "https://graph.microsoft.com/v1.0/me/photo/$value", + { + method: "GET", + allowPrivateIPAddress: true, + // Cap how long we'll wait and how many bytes we'll buffer so a slow or + // oversized response can never stall the login callback. + timeout: 10000, + size: AttachmentHelper.presetToMaxUploadSize(AttachmentPreset.Avatar), + headers: { + Authorization: `Bearer ${accessToken}`, + }, + } + ); + + // A missing photo returns 404, which we can safely ignore. + if (!response.ok) { + return undefined; + } + + const contentType = response.headers.get("content-type") ?? "image/jpeg"; + const buffer = await response.buffer(); + return `data:${contentType};base64,${buffer.toString("base64")}`; + } catch (_err) { + return undefined; + } +} + if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { const strategy = new AzureStrategy( { @@ -162,6 +206,24 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { scopes, }, }); + // Entra ID does not include the photo in the token, so it must be + // fetched separately from Graph. To avoid the extra round-trip on every + // sign-in we only do so when the user has no avatar yet and hasn't set + // one manually — this also backfills accounts created before avatar + // syncing was supported, and stops once an avatar is stored. + if ( + !result.user.avatarUrl && + !result.user.getFlag(UserFlag.AvatarUpdated) + ) { + const avatarUrl = await requestPhoto(accessToken); + if (avatarUrl) { + await new UploadUserAvatarTask().schedule({ + userId: result.user.id, + avatarUrl, + }); + } + } + return done(null, result.user, { ...result, client }); } catch (err) { return done(err, null); From 061aee02253fc773b75818fdb65e41bc4468cc3f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 16 Jun 2026 22:28:22 -0400 Subject: [PATCH 261/286] chore: Improve `ApiClient` class (#12720) * refactor: Decouple ApiClient from auth store and document its public surface Move logout policy out of the transport layer: ApiClient now notifies a registered handler on unauthenticated responses (401 / suspended 403) instead of calling stores.auth.logout directly, breaking the AuthStore -> client -> stores import cycle. AuthStore owns the logout flags and registers the handler. Also add JSDoc across the public surface (setShareId, fetch, get, post, client). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * refactor: Extend request deduplication to PUT via shared helper Extract the in-flight dedup logic into a private deduplicate() helper and route both post() and the new put() through it. The dedup key now includes the HTTP method so a POST and PUT to the same path can't collide. Multipart uploads continue to bypass deduplication. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Improve types * refactor: Improve ApiClient type safety and address review feedback - Add a Method union ("GET" | "POST" | "PUT") for fetch/deduplicate, replacing the loose string type. Narrowed to methods whose bodies are actually serialized, so callers aren't given false support for PATCH/DELETE. - Type previously implicit-any locals (modifiedPath, urlToFetch, isJson). - Extract an ApiErrorResponse interface for the parsed error payload. - Register the unauthorized handler before fetchAuth() so a 401 on the initial auth request triggers the logout policy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- app/stores/AuthStore.ts | 7 ++ app/utils/ApiClient.ts | 144 ++++++++++++++++++++++++------- app/utils/__mocks__/ApiClient.ts | 1 + 3 files changed, 123 insertions(+), 29 deletions(-) diff --git a/app/stores/AuthStore.ts b/app/stores/AuthStore.ts index 77ac60d369..684cf26d01 100644 --- a/app/stores/AuthStore.ts +++ b/app/stores/AuthStore.ts @@ -92,6 +92,13 @@ export default class AuthStore extends Store<Team> { const data: PersistedData = Storage.get(this.name) || {}; this.rehydrate(data); + + client.setUnauthorizedHandler((reason) => + reason === "user_suspended" + ? this.logout({ savePath: false, revokeToken: false, clearCache: true }) + : this.logout({ savePath: true, revokeToken: false, clearCache: false }) + ); + void this.fetchAuth(); // persists this entire store to localstorage whenever any keys are changed diff --git a/app/utils/ApiClient.ts b/app/utils/ApiClient.ts index 6da3166be1..5e4c35f5a0 100644 --- a/app/utils/ApiClient.ts +++ b/app/utils/ApiClient.ts @@ -6,7 +6,6 @@ import type { JSONObject } from "@shared/types"; import { Scope } from "@shared/types"; import { version } from "../../package.json"; import env from "~/env"; -import stores from "~/stores"; import Logger from "./Logger"; import download from "./download"; import { @@ -31,6 +30,22 @@ type Options = { baseUrl?: string; }; +/** An HTTP method supported by the API client. */ +type Method = "GET" | "POST" | "PUT"; + +/** Shape of an error payload returned by the API. */ +interface ApiErrorResponse { + message?: string; + error?: string; + data?: Record<string, unknown>; +} + +/** Reason the server rejected a request as unauthenticated. */ +export type UnauthorizedReason = "unauthorized" | "user_suspended"; + +/** Handler invoked when a request is rejected as unauthenticated. */ +type UnauthorizedHandler = (reason: UnauthorizedReason) => void | Promise<void>; + interface FetchOptions { download?: boolean; retry?: boolean; @@ -46,29 +61,60 @@ class ApiClient { shareId?: string; - /** Map of in-flight POST requests for deduplication, keyed by path + body. */ + /** Map of in-flight requests for deduplication, keyed by method + path + body. */ // oxlint-disable-next-line no-explicit-any private inflightRequests = new Map<string, Promise<any>>(); + private onUnauthorized?: UnauthorizedHandler; + constructor(options: Options = {}) { this.baseUrl = options.baseUrl || "/api"; } + /** + * Sets the share identifier appended to subsequent requests, used to + * authenticate access to publicly shared documents. + * + * @param shareId the share identifier, or undefined to clear it. + */ setShareId = (shareId: string | undefined) => { this.shareId = shareId; }; + /** + * Registers a handler invoked when a request is rejected as unauthenticated + * (a 401, or a 403 indicating the user was suspended). Used to keep + * session/logout policy out of the transport layer. + * + * @param handler the handler to invoke. + */ + setUnauthorizedHandler = (handler: UnauthorizedHandler) => { + this.onUnauthorized = handler; + }; + + /** + * Performs an HTTP request against the API, handling serialization, headers, + * CSRF, retries, and error mapping. + * + * @param path the request path, relative to the base URL or an absolute URL. + * @param method the HTTP method to use. + * @param data the request payload, sent as a query string for GET requests + * and as a JSON or multipart body otherwise. + * @param options additional request options. + * @returns the parsed JSON response, or undefined for downloads and empty responses. + * @throws {RequestError} if the response status indicates failure. + */ // oxlint-disable-next-line no-explicit-any fetch = async <T = any>( path: string, - method: string, + method: Method, data: JSONObject | FormData | undefined, options: FetchOptions = {} ): Promise<T> => { let body: string | FormData | undefined; - let modifiedPath; - let urlToFetch; - let isJson; + let modifiedPath: string | undefined; + let urlToFetch: string; + let isJson = false; if (this.shareId) { if (data instanceof FormData) { @@ -122,9 +168,7 @@ class ApiClient { }; // Add CSRF token to headers for mutating requests - const isModifyingRequest = ["POST", "PUT", "PATCH", "DELETE"].includes( - method - ); + const isModifyingRequest = method === "POST" || method === "PUT"; const canAccessWithReadOnly = AuthenticationHelper.canAccess(path, [ Scope.Read, ]); @@ -182,14 +226,10 @@ class ApiClient { return response.json(); } - // Handle 401, log out user + // Handle 401, notify session owner to log out if (response.status === 401) { if (!this.shareId) { - await stores.auth.logout({ - savePath: true, - clearCache: false, - revokeToken: false, - }); + await this.onUnauthorized?.("unauthorized"); } throw new AuthorizationError(); } @@ -208,14 +248,10 @@ class ApiClient { } // Handle failed responses - const error: { - message?: string; - error?: string; - data?: Record<string, unknown>; - } = {}; + const error: ApiErrorResponse = {}; try { - const parsed = await response.json(); + const parsed: ApiErrorResponse = await response.json(); error.message = parsed.message || ""; error.error = parsed.error; error.data = parsed.data; @@ -238,11 +274,7 @@ class ApiClient { if (response.status === 403) { if (error.error === "user_suspended") { - await stores.auth.logout({ - savePath: false, - revokeToken: false, - clearCache: true, - }); + await this.onUnauthorized?.("user_suspended"); } if (error.error === "csrf_error") { @@ -282,6 +314,14 @@ class ApiClient { throw err; }; + /** + * Performs a GET request against the API. + * + * @param path the request path, relative to the base URL or an absolute URL. + * @param data the data serialized into the query string. + * @param options additional request options. + * @returns the parsed JSON response. + */ // oxlint-disable-next-line no-explicit-any get = <T = any>( path: string, @@ -289,23 +329,68 @@ class ApiClient { options?: FetchOptions ) => this.fetch<T>(path, "GET", data, options); + /** + * Performs a POST request against the API. Identical in-flight requests are + * deduplicated and share a single response, except for multipart uploads. + * + * @param path the request path, relative to the base URL or an absolute URL. + * @param data the request payload, sent as a JSON or multipart body. + * @param options additional request options. + * @returns the parsed JSON response. + */ // oxlint-disable-next-line no-explicit-any post = <T = any>( path: string, data?: JSONObject | FormData, options?: FetchOptions + ): Promise<T> => this.deduplicate<T>(path, "POST", data, options); + + /** + * Performs a PUT request against the API. Identical in-flight requests are + * deduplicated and share a single response, except for multipart uploads. + * + * @param path the request path, relative to the base URL or an absolute URL. + * @param data the request payload, sent as a JSON or multipart body. + * @param options additional request options. + * @returns the parsed JSON response. + */ + // oxlint-disable-next-line no-explicit-any + put = <T = any>( + path: string, + data?: JSONObject | FormData, + options?: FetchOptions + ): Promise<T> => this.deduplicate<T>(path, "PUT", data, options); + + /** + * Sends a request, deduplicating identical in-flight requests so concurrent + * callers share a single response. Multipart uploads are never deduplicated. + * + * @param path the request path, relative to the base URL or an absolute URL. + * @param method the HTTP method to use. + * @param data the request payload. + * @param options additional request options. + * @returns the parsed JSON response. + */ + // oxlint-disable-next-line no-explicit-any + private deduplicate = <T = any>( + path: string, + method: Method, + data?: JSONObject | FormData, + options?: FetchOptions ): Promise<T> => { if (data instanceof FormData) { - return this.fetch<T>(path, "POST", data, options); + return this.fetch<T>(path, method, data, options); } - const key = `${path}:${JSON.stringify(data)}:${JSON.stringify(options)}`; + const key = `${method}:${path}:${JSON.stringify(data)}:${JSON.stringify( + options + )}`; const inflight = this.inflightRequests.get(key); if (inflight) { return inflight; } - const promise = this.fetch<T>(path, "POST", data, options).finally(() => { + const promise = this.fetch<T>(path, method, data, options).finally(() => { this.inflightRequests.delete(key); }); this.inflightRequests.set(key, promise); @@ -313,4 +398,5 @@ class ApiClient { }; } +/** Shared API client instance configured against the default base URL. */ export const client = new ApiClient(); diff --git a/app/utils/__mocks__/ApiClient.ts b/app/utils/__mocks__/ApiClient.ts index 8cdd5475df..ba5cbdb953 100644 --- a/app/utils/__mocks__/ApiClient.ts +++ b/app/utils/__mocks__/ApiClient.ts @@ -2,6 +2,7 @@ import { vi } from "vitest"; export const client = { + setUnauthorizedHandler: vi.fn(), post: vi.fn(() => Promise.resolve({ data: { From ef5e1c10b41a3d33f9beb696e4e17ea51c4285ab Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 16 Jun 2026 22:29:09 -0400 Subject: [PATCH 262/286] fix: Template management can never be extended to viewers (#12719) closes #11807 --- server/policies/collection.test.ts | 148 +++++++++++++++++++++++++++++ server/policies/collection.ts | 6 +- 2 files changed, 152 insertions(+), 2 deletions(-) diff --git a/server/policies/collection.test.ts b/server/policies/collection.test.ts index c8c29fa699..c43bc2a17c 100644 --- a/server/policies/collection.test.ts +++ b/server/policies/collection.test.ts @@ -459,3 +459,151 @@ describe("guest", () => { expect(abilities.archive).toEqual(false); }); }); + +describe("manage templates", () => { + describe("templateManagement is members (read_write)", () => { + it("should allow member with read_write membership", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const member = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + templateManagement: CollectionPermission.ReadWrite, + }); + await collection.$add("user", member, { + through: { + permission: CollectionPermission.ReadWrite, + createdById: admin.id, + }, + }); + // reload to get membership + const reloaded = await Collection.findByPk(collection.id, { + userId: member.id, + }); + const abilities = serialize(member, reloaded); + expect(abilities.createTemplate).toBeTruthy(); + expect(abilities.manageTemplate).toBeTruthy(); + }); + + it("should allow viewer with read_write membership", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const user = await buildUser({ + role: UserRole.Viewer, + teamId: team.id, + }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + templateManagement: CollectionPermission.ReadWrite, + }); + await collection.$add("user", user, { + through: { + permission: CollectionPermission.ReadWrite, + createdById: admin.id, + }, + }); + // reload to get membership + const reloaded = await Collection.findByPk(collection.id, { + userId: user.id, + }); + const abilities = serialize(user, reloaded); + expect(abilities.createTemplate).toBeTruthy(); + expect(abilities.manageTemplate).toBeTruthy(); + }); + + it("should disallow viewer without membership in an open collection", async () => { + const team = await buildTeam(); + const user = await buildUser({ + role: UserRole.Viewer, + teamId: team.id, + }); + const collection = await buildCollection({ + teamId: team.id, + permission: CollectionPermission.ReadWrite, + templateManagement: CollectionPermission.ReadWrite, + }); + const abilities = serialize(user, collection); + expect(abilities.createTemplate).toEqual(false); + expect(abilities.manageTemplate).toEqual(false); + }); + + it("should disallow guest with read_write membership", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const user = await buildUser({ + role: UserRole.Guest, + teamId: team.id, + }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + templateManagement: CollectionPermission.ReadWrite, + }); + await collection.$add("user", user, { + through: { + permission: CollectionPermission.ReadWrite, + createdById: admin.id, + }, + }); + // reload to get membership + const reloaded = await Collection.findByPk(collection.id, { + userId: user.id, + }); + const abilities = serialize(user, reloaded); + expect(abilities.createTemplate).toEqual(false); + expect(abilities.manageTemplate).toEqual(false); + }); + }); + + describe("templateManagement is managers (admin)", () => { + it("should disallow member with read_write membership", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const member = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + templateManagement: CollectionPermission.Admin, + }); + await collection.$add("user", member, { + through: { + permission: CollectionPermission.ReadWrite, + createdById: admin.id, + }, + }); + // reload to get membership + const reloaded = await Collection.findByPk(collection.id, { + userId: member.id, + }); + const abilities = serialize(member, reloaded); + expect(abilities.createTemplate).toEqual(false); + expect(abilities.manageTemplate).toEqual(false); + }); + + it("should allow member with admin membership", async () => { + const team = await buildTeam(); + const admin = await buildAdmin({ teamId: team.id }); + const member = await buildUser({ teamId: team.id }); + const collection = await buildCollection({ + teamId: team.id, + permission: null, + templateManagement: CollectionPermission.Admin, + }); + await collection.$add("user", member, { + through: { + permission: CollectionPermission.Admin, + createdById: admin.id, + }, + }); + // reload to get membership + const reloaded = await Collection.findByPk(collection.id, { + userId: member.id, + }); + const abilities = serialize(member, reloaded); + expect(abilities.createTemplate).toBeTruthy(); + expect(abilities.manageTemplate).toBeTruthy(); + }); + }); +}); diff --git a/server/policies/collection.ts b/server/policies/collection.ts index e72ac6352f..56ef2e9b8a 100644 --- a/server/policies/collection.ts +++ b/server/policies/collection.ts @@ -158,10 +158,12 @@ allow( includesMembership(collection, [CollectionPermission.Admin]), and( collection?.templateManagement === CollectionPermission.ReadWrite, - !user.isViewer, !user.isGuest, or( - collection?.permission === CollectionPermission.ReadWrite, + and( + collection?.permission === CollectionPermission.ReadWrite, + !user.isViewer + ), includesMembership(collection, [ CollectionPermission.ReadWrite, CollectionPermission.Admin, From 6ed1e711578478d3f97a2b223bcd0b4edb69a0f4 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 16 Jun 2026 22:29:17 -0400 Subject: [PATCH 263/286] fix: Pinterest host matching too broad (#12718) --- server/routes/embeds.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes/embeds.ts b/server/routes/embeds.ts index 9abd577e3e..c83441d90b 100644 --- a/server/routes/embeds.ts +++ b/server/routes/embeds.ts @@ -153,7 +153,8 @@ ${resizeObserverScript(ctx)} } if ( - parsed.host.endsWith("pinterest.com") && + (parsed.host === "pinterest.com" || + parsed.host.endsWith(".pinterest.com")) && parsed.protocol === "https:" && ctx.path === "/embeds/pinterest" ) { From 535184461c53b75af7a90a6caea85ce906ff10bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 22:29:48 -0400 Subject: [PATCH 264/286] chore(deps): bump js-yaml from 4.1.1 to 4.2.0 (#12723) * chore(deps): bump js-yaml from 4.1.1 to 4.2.0 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.1 to 4.2.0. - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/commits) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.2.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * fix: sync yarn.lock for js-yaml 4.2.0 install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- yarn.lock | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/yarn.lock b/yarn.lock index 9e38d85a46..fa76549366 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13271,18 +13271,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^4.1.0": - version: 4.1.1 - resolution: "js-yaml@npm:4.1.1" - dependencies: - argparse: "npm:^2.0.1" - bin: - js-yaml: bin/js-yaml.js - checksum: 10c0/561c7d7088c40a9bb53cc75becbfb1df6ae49b34b5e6e5a81744b14ae8667ec564ad2527709d1a6e7d5e5fa6d483aa0f373a50ad98d42fde368ec4a190d4fae7 - languageName: node - linkType: hard - -"js-yaml@npm:^4.2.0": +"js-yaml@npm:^4.1.0, js-yaml@npm:^4.2.0": version: 4.2.0 resolution: "js-yaml@npm:4.2.0" dependencies: From ef57be8c05d107eb370a563f0233b320674e29cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 22:29:59 -0400 Subject: [PATCH 265/286] chore(deps): bump nodemailer from 8.0.5 to 8.0.11 (#12721) * chore(deps): bump nodemailer from 8.0.5 to 8.0.11 Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 8.0.5 to 8.0.11. - [Release notes](https://github.com/nodemailer/nodemailer/releases) - [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodemailer/nodemailer/compare/v8.0.5...v8.0.11) --- updated-dependencies: - dependency-name: nodemailer dependency-version: 8.0.11 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): regenerate lockfile for nodemailer 8.0.11 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- yarn.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yarn.lock b/yarn.lock index fa76549366..ae65c11bdd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7383,11 +7383,11 @@ __metadata: linkType: hard "@types/nodemailer@npm:^6.4.23": - version: 6.4.23 - resolution: "@types/nodemailer@npm:6.4.23" + version: 6.4.24 + resolution: "@types/nodemailer@npm:6.4.24" dependencies: "@types/node": "npm:*" - checksum: 10c0/86a456eb387d685d7713d56576147315fff03b0868fbde1b12291ab11df4df5c07c87010bd31ce10da16dfdad5d21ecc7d2ea4487e42706795f612865e1c564e + checksum: 10c0/7e500ee7f34b3e7ea88e7363a1dc9d93ca70d762db42e729604805e9ce576d25bd2f3c92342506625e09a3a9fd9788502457356e94d054c17c553ab3575091db languageName: node linkType: hard @@ -15071,9 +15071,9 @@ __metadata: linkType: hard "nodemailer@npm:^8.0.9": - version: 8.0.9 - resolution: "nodemailer@npm:8.0.9" - checksum: 10c0/f5c671ed1c28b27fc997416be70c41aa068ea7540feebc8aca1d0c4f18ac1017d05d74d08218b5aa13206d2639d6a4605f9f3b2acbcb84d20b9cc89d50c5ab5a + version: 8.0.11 + resolution: "nodemailer@npm:8.0.11" + checksum: 10c0/19229216c63a32eae59d7b39f3dffeba20be317f2335d08d86fb70bd01845a1bf108fecd019c0e90ef186e3d9177cf478192b333cf38620ad0f8c7a6e1e5ae05 languageName: node linkType: hard From e7401f20e154d2dcf1aa2461738588e44bb5735d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 22:39:00 -0400 Subject: [PATCH 266/286] chore(deps): bump markdown-it from 14.1.1 to 14.2.0 (#12722) * chore(deps): bump markdown-it from 14.1.1 to 14.2.0 Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.1.1 to 14.2.0. - [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md) - [Commits](https://github.com/markdown-it/markdown-it/compare/14.1.1...14.2.0) --- updated-dependencies: - dependency-name: markdown-it dependency-version: 14.2.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * fix: regenerate lockfile for markdown-it bump --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- yarn.lock | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/yarn.lock b/yarn.lock index ae65c11bdd..aba7fa0a32 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13959,7 +13959,7 @@ __metadata: languageName: node linkType: hard -"linkify-it@npm:5.0.0, linkify-it@npm:^5.0.0": +"linkify-it@npm:5.0.0": version: 5.0.0 resolution: "linkify-it@npm:5.0.0" dependencies: @@ -14358,23 +14358,7 @@ __metadata: languageName: node linkType: hard -"markdown-it@npm:^14.0.0": - version: 14.1.1 - resolution: "markdown-it@npm:14.1.1" - dependencies: - argparse: "npm:^2.0.1" - entities: "npm:^4.4.0" - linkify-it: "npm:^5.0.0" - mdurl: "npm:^2.0.0" - punycode.js: "npm:^2.3.1" - uc.micro: "npm:^2.1.0" - bin: - markdown-it: bin/markdown-it.mjs - checksum: 10c0/c67f2a4c8069a307c78d8c15104bbcb15a2c6b17f4c904364ca218ec2eccf76a397eba1ea05f5ac5de72c4b67fcf115d422d22df0bfb86a09b663f55b9478d4f - languageName: node - linkType: hard - -"markdown-it@npm:^14.2.0": +"markdown-it@npm:^14.0.0, markdown-it@npm:^14.2.0": version: 14.2.0 resolution: "markdown-it@npm:14.2.0" dependencies: From 4e3f20831ac51e1d0099ef29502ee4142bb90735 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Tue, 16 Jun 2026 23:21:08 -0400 Subject: [PATCH 267/286] chore: Upgrade mailparser dep (#12725) --- package.json | 2 +- yarn.lock | 495 +++++++-------------------------------------------- 2 files changed, 68 insertions(+), 429 deletions(-) diff --git a/package.json b/package.json index 82009cf68e..388ea8d674 100644 --- a/package.json +++ b/package.json @@ -168,7 +168,7 @@ "koa-send": "5.0.1", "koa-sslify": "5.0.1", "koa-useragent": "^4.1.0", - "mailparser": "^3.7.5", + "mailparser": "^3.9.10", "mammoth": "^1.11.0", "markdown-it": "^14.2.0", "markdown-it-container": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index aba7fa0a32..474792fac9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4236,13 +4236,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/primitive@npm:1.1.3": - version: 1.1.3 - resolution: "@radix-ui/primitive@npm:1.1.3" - checksum: 10c0/88860165ee7066fa2c179f32ffcd3ee6d527d9dcdc0e8be85e9cb0e2c84834be8e3c1a976c74ba44b193f709544e12f54455d892b28e32f0708d89deda6b9f1d - languageName: node - linkType: hard - "@radix-ui/primitive@npm:1.1.4": version: 1.1.4 resolution: "@radix-ui/primitive@npm:1.1.4" @@ -4317,19 +4310,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-compose-refs@npm:1.1.2": - version: 1.1.2 - resolution: "@radix-ui/react-compose-refs@npm:1.1.2" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/d36a9c589eb75d634b9b139c80f916aadaf8a68a7c1c4b8c6c6b88755af1a92f2e343457042089f04cc3f23073619d08bb65419ced1402e9d4e299576d970771 - languageName: node - linkType: hard - "@radix-ui/react-compose-refs@npm:1.1.3": version: 1.1.3 resolution: "@radix-ui/react-compose-refs@npm:1.1.3" @@ -4366,19 +4346,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-context@npm:1.1.2": - version: 1.1.2 - resolution: "@radix-ui/react-context@npm:1.1.2" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/cece731f8cc25d494c6589cc681e5c01a93867d895c75889973afa1a255f163c286e390baa7bc028858eaabe9f6b57270d0ca6377356f652c5557c1c7a41ccce - languageName: node - linkType: hard - "@radix-ui/react-context@npm:1.1.4": version: 1.1.4 resolution: "@radix-ui/react-context@npm:1.1.4" @@ -4392,39 +4359,7 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-dialog@npm:^1.1.1": - version: 1.1.15 - resolution: "@radix-ui/react-dialog@npm:1.1.15" - dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-context": "npm:1.1.2" - "@radix-ui/react-dismissable-layer": "npm:1.1.11" - "@radix-ui/react-focus-guards": "npm:1.1.3" - "@radix-ui/react-focus-scope": "npm:1.1.7" - "@radix-ui/react-id": "npm:1.1.1" - "@radix-ui/react-portal": "npm:1.1.9" - "@radix-ui/react-presence": "npm:1.1.5" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-slot": "npm:1.2.3" - "@radix-ui/react-use-controllable-state": "npm:1.2.2" - aria-hidden: "npm:^1.2.4" - react-remove-scroll: "npm:^2.6.3" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/2f2c88e3c281acaea2fd9b96fa82132d59177d3aa5da2e7c045596fd4028e84e44ac52ac28f4f236910605dd7d9338c2858ba44a9ced2af2e3e523abbfd33014 - languageName: node - linkType: hard - -"@radix-ui/react-dialog@npm:^1.1.16": +"@radix-ui/react-dialog@npm:^1.1.1, @radix-ui/react-dialog@npm:^1.1.16": version: 1.1.16 resolution: "@radix-ui/react-dialog@npm:1.1.16" dependencies: @@ -4469,29 +4404,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-dismissable-layer@npm:1.1.11": - version: 1.1.11 - resolution: "@radix-ui/react-dismissable-layer@npm:1.1.11" - dependencies: - "@radix-ui/primitive": "npm:1.1.3" - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-callback-ref": "npm:1.1.1" - "@radix-ui/react-use-escape-keydown": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/c825572a64073c4d3853702029979f6658770ffd6a98eabc4984e1dee1b226b4078a2a4dc7003f96475b438985e9b21a58e75f51db74dd06848dcae1f2d395dc - languageName: node - linkType: hard - "@radix-ui/react-dismissable-layer@npm:1.1.12": version: 1.1.12 resolution: "@radix-ui/react-dismissable-layer@npm:1.1.12" @@ -4540,19 +4452,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-focus-guards@npm:1.1.3": - version: 1.1.3 - resolution: "@radix-ui/react-focus-guards@npm:1.1.3" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/0bab65eb8d7e4f72f685d63de7fbba2450e3cb15ad6a20a16b42195e9d335c576356f5a47cb58d1ffc115393e46d7b14b12c5d4b10029b0ec090861255866985 - languageName: node - linkType: hard - "@radix-ui/react-focus-guards@npm:1.1.4": version: 1.1.4 resolution: "@radix-ui/react-focus-guards@npm:1.1.4" @@ -4566,27 +4465,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-focus-scope@npm:1.1.7": - version: 1.1.7 - resolution: "@radix-ui/react-focus-scope@npm:1.1.7" - dependencies: - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-callback-ref": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/8a6071331bdeeb79b223463de75caf759b8ad19339cab838e537b8dbb2db236891a1f4df252445c854d375d43d9d315dfcce0a6b01553a2984ec372bb8f1300e - languageName: node - linkType: hard - "@radix-ui/react-focus-scope@npm:1.1.9": version: 1.1.9 resolution: "@radix-ui/react-focus-scope@npm:1.1.9" @@ -4608,21 +4486,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-id@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-id@npm:1.1.1" - dependencies: - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/7d12e76818763d592c331277ef62b197e2e64945307e650bd058f0090e5ae48bbd07691b23b7e9e977901ef4eadcb3e2d5eaeb17a13859083384be83fc1292c7 - languageName: node - linkType: hard - "@radix-ui/react-id@npm:1.1.2": version: 1.1.2 resolution: "@radix-ui/react-id@npm:1.1.2" @@ -4765,7 +4628,7 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-portal@npm:1.1.11": +"@radix-ui/react-portal@npm:1.1.11, @radix-ui/react-portal@npm:^1.0.1": version: 1.1.11 resolution: "@radix-ui/react-portal@npm:1.1.11" dependencies: @@ -4785,66 +4648,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-portal@npm:1.1.9": - version: 1.1.9 - resolution: "@radix-ui/react-portal@npm:1.1.9" - dependencies: - "@radix-ui/react-primitive": "npm:2.1.3" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/45b432497c722720c72c493a29ef6085bc84b50eafe79d48b45c553121b63e94f9cdb77a3a74b9c49126f8feb3feee009fe400d48b7759d3552396356b192cd7 - languageName: node - linkType: hard - -"@radix-ui/react-portal@npm:^1.0.1": - version: 1.1.10 - resolution: "@radix-ui/react-portal@npm:1.1.10" - dependencies: - "@radix-ui/react-primitive": "npm:2.1.4" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/c8f77e2c9413f654f5232045888898eaac88d8d0515714c8ecdc25eea0dc20667639a1ead1528bfbb591ac9ae599de006879859ccb4c2b5c088b49f1af3a9c1a - languageName: node - linkType: hard - -"@radix-ui/react-presence@npm:1.1.5": - version: 1.1.5 - resolution: "@radix-ui/react-presence@npm:1.1.5" - dependencies: - "@radix-ui/react-compose-refs": "npm:1.1.2" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/d0e61d314250eeaef5369983cb790701d667f51734bafd98cf759072755562018052c594e6cdc5389789f4543cb0a4d98f03ff4e8f37338d6b5bf51a1700c1d1 - languageName: node - linkType: hard - "@radix-ui/react-presence@npm:1.1.6": version: 1.1.6 resolution: "@radix-ui/react-presence@npm:1.1.6" @@ -4864,44 +4667,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-primitive@npm:2.1.3": - version: 2.1.3 - resolution: "@radix-ui/react-primitive@npm:2.1.3" - dependencies: - "@radix-ui/react-slot": "npm:1.2.3" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/fdff9b84913bb4172ef6d3af7442fca5f9bba5f2709cba08950071f819d7057aec3a4a2d9ef44cf9cbfb8014d02573c6884a04cff175895823aaef809ebdb034 - languageName: node - linkType: hard - -"@radix-ui/react-primitive@npm:2.1.4": - version: 2.1.4 - resolution: "@radix-ui/react-primitive@npm:2.1.4" - dependencies: - "@radix-ui/react-slot": "npm:1.2.4" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/90d687b222a25975371ed1f9f08648d75237214b8dec4cbaf09ec9ac951339b17421278f1aff2fb7c5672ba8bd03774a94904efdba73805dd5cc947ce5be8c4a - languageName: node - linkType: hard - "@radix-ui/react-primitive@npm:2.1.5": version: 2.1.5 resolution: "@radix-ui/react-primitive@npm:2.1.5" @@ -5007,36 +4772,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-slot@npm:1.2.3": - version: 1.2.3 - resolution: "@radix-ui/react-slot@npm:1.2.3" - dependencies: - "@radix-ui/react-compose-refs": "npm:1.1.2" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/5913aa0d760f505905779515e4b1f0f71a422350f077cc8d26d1aafe53c97f177fec0e6d7fbbb50d8b5e498aa9df9f707ca75ae3801540c283b26b0136138eef - languageName: node - linkType: hard - -"@radix-ui/react-slot@npm:1.2.4": - version: 1.2.4 - resolution: "@radix-ui/react-slot@npm:1.2.4" - dependencies: - "@radix-ui/react-compose-refs": "npm:1.1.2" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/8b719bb934f1ae5ac0e37214783085c17c2f1080217caf514c1c6cc3d9ca56c7e19d25470b26da79aa6e605ab36589edaade149b76f5fc0666f1063e2fc0a0dc - languageName: node - linkType: hard - "@radix-ui/react-slot@npm:1.2.5, @radix-ui/react-slot@npm:^1.2.5": version: 1.2.5 resolution: "@radix-ui/react-slot@npm:1.2.5" @@ -5204,19 +4939,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-use-callback-ref@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-use-callback-ref@npm:1.1.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/5f6aff8592dea6a7e46589808912aba3fb3b626cf6edd2b14f01638b61dbbe49eeb9f67cd5601f4c15b2fb547b9a7e825f7c4961acd4dd70176c969ae405f8d8 - languageName: node - linkType: hard - "@radix-ui/react-use-callback-ref@npm:1.1.2": version: 1.1.2 resolution: "@radix-ui/react-use-callback-ref@npm:1.1.2" @@ -5230,22 +4952,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-use-controllable-state@npm:1.2.2": - version: 1.2.2 - resolution: "@radix-ui/react-use-controllable-state@npm:1.2.2" - dependencies: - "@radix-ui/react-use-effect-event": "npm:0.0.2" - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/f55c4b06e895293aed4b44c9ef26fb24432539f5346fcd6519c7745800535b571058685314e83486a45bf61dc83887e24826490d3068acc317fb0a9010516e63 - languageName: node - linkType: hard - "@radix-ui/react-use-controllable-state@npm:1.2.3": version: 1.2.3 resolution: "@radix-ui/react-use-controllable-state@npm:1.2.3" @@ -5262,21 +4968,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-use-effect-event@npm:0.0.2": - version: 0.0.2 - resolution: "@radix-ui/react-use-effect-event@npm:0.0.2" - dependencies: - "@radix-ui/react-use-layout-effect": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/e84ff72a3e76c5ae9c94941028bb4b6472f17d4104481b9eab773deab3da640ecea035e54da9d6f4df8d84c18ef6913baf92b7511bee06930dc58bd0c0add417 - languageName: node - linkType: hard - "@radix-ui/react-use-effect-event@npm:0.0.3": version: 0.0.3 resolution: "@radix-ui/react-use-effect-event@npm:0.0.3" @@ -5292,21 +4983,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-use-escape-keydown@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-use-escape-keydown@npm:1.1.1" - dependencies: - "@radix-ui/react-use-callback-ref": "npm:1.1.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/bff53be99e940fef1d3c4df7d560e1d9133182e5a98336255d3063327d1d3dd4ec54a95dc5afe15cca4fb6c184f0a956c70de2815578c318cf995a7f9beabaa1 - languageName: node - linkType: hard - "@radix-ui/react-use-escape-keydown@npm:1.1.2": version: 1.1.2 resolution: "@radix-ui/react-use-escape-keydown@npm:1.1.2" @@ -5335,19 +5011,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-use-layout-effect@npm:1.1.1": - version: 1.1.1 - resolution: "@radix-ui/react-use-layout-effect@npm:1.1.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/9f98fdaba008dfc58050de60a77670b885792df473cf82c1cef8daee919a5dd5a77d270209f5f0b0abfaac78cb1627396e3ff56c81b735be550409426fe8b040 - languageName: node - linkType: hard - "@radix-ui/react-use-layout-effect@npm:1.1.2": version: 1.1.2 resolution: "@radix-ui/react-use-layout-effect@npm:1.1.2" @@ -6013,13 +5676,15 @@ __metadata: languageName: node linkType: hard -"@selderee/plugin-htmlparser2@npm:^0.11.0": - version: 0.11.0 - resolution: "@selderee/plugin-htmlparser2@npm:0.11.0" +"@selderee/plugin-htmlparser2@npm:~0.12.0": + version: 0.12.0 + resolution: "@selderee/plugin-htmlparser2@npm:0.12.0" dependencies: - domhandler: "npm:^5.0.3" - selderee: "npm:^0.11.0" - checksum: 10c0/e938ba9aeb31a9cf30dcb2977ef41685c598bf744bedc88c57aa9e8b7e71b51781695cf99c08aac50773fd7714eba670bd2a079e46db0788abe40c6d220084eb + domelementtype: "npm:~2.3.0" + domhandler: "npm:~5.0.3" + peerDependencies: + selderee: ~0.12.0 + checksum: 10c0/42930869fa52061b75b682aca3dd55c30a69cc5b9298f1503c6639ff9aa42fae3738f95541248e5197053e52b860d9e7c8820b5083bed3d8ea2956c33afe312d languageName: node linkType: hard @@ -7963,14 +7628,14 @@ __metadata: languageName: node linkType: hard -"@zone-eu/mailsplit@npm:5.4.8": - version: 5.4.8 - resolution: "@zone-eu/mailsplit@npm:5.4.8" +"@zone-eu/mailsplit@npm:5.4.12": + version: 5.4.12 + resolution: "@zone-eu/mailsplit@npm:5.4.12" dependencies: libbase64: "npm:1.3.0" - libmime: "npm:5.3.7" + libmime: "npm:5.3.8" libqp: "npm:2.1.1" - checksum: 10c0/a054bdf50e2378c773f9c54861d27095b6f3ef4c7828576aaaa9e2173de8edb59d603e052282eebfe8c5d442efc6896a22c374daa855e9e3d55af9771b97484a + checksum: 10c0/1b16a17a79a8d183adb2a8bab554d8d14b6566ae11e1e4f425f217714f1352d69963e67b48767f31699331157a3a965d3d8ce444ce57b01857d9338a77635370 languageName: node linkType: hard @@ -10198,7 +9863,14 @@ __metadata: languageName: node linkType: hard -"deepmerge@npm:^4.2.2, deepmerge@npm:^4.3.1": +"deepmerge-ts@npm:^7.1.5": + version: 7.1.5 + resolution: "deepmerge-ts@npm:7.1.5" + checksum: 10c0/3a265a2086f334e3ecf43a7d4138c950cb99e0b39e816fa7fd7f5326161364e51b13010906908212667619066f5b48de738ed42543212323fbbb5d4ed7ebdc84 + languageName: node + linkType: hard + +"deepmerge@npm:^4.2.2": version: 4.3.1 resolution: "deepmerge@npm:4.3.1" checksum: 10c0/e53481aaf1aa2c4082b5342be6b6d8ad9dfe387bc92ce197a66dea08bd4265904a087e75e464f14d1347cf2ac8afe1e4c16b266e0561cc5df29382d3c5f80044 @@ -10352,7 +10024,7 @@ __metadata: languageName: node linkType: hard -"domelementtype@npm:^2.3.0": +"domelementtype@npm:^2.3.0, domelementtype@npm:~2.3.0": version: 2.3.0 resolution: "domelementtype@npm:2.3.0" checksum: 10c0/686f5a9ef0fff078c1412c05db73a0dce096190036f33e400a07e2a4518e9f56b1e324f5c576a0a747ef0e75b5d985c040b0d51945ce780c0dd3c625a18cd8c9 @@ -10368,7 +10040,7 @@ __metadata: languageName: node linkType: hard -"domhandler@npm:^5.0.2, domhandler@npm:^5.0.3": +"domhandler@npm:^5.0.2, domhandler@npm:^5.0.3, domhandler@npm:~5.0.3": version: 5.0.3 resolution: "domhandler@npm:5.0.3" dependencies: @@ -12223,16 +11895,16 @@ __metadata: languageName: node linkType: hard -"html-to-text@npm:9.0.5": - version: 9.0.5 - resolution: "html-to-text@npm:9.0.5" +"html-to-text@npm:10.0.0": + version: 10.0.0 + resolution: "html-to-text@npm:10.0.0" dependencies: - "@selderee/plugin-htmlparser2": "npm:^0.11.0" - deepmerge: "npm:^4.3.1" + "@selderee/plugin-htmlparser2": "npm:~0.12.0" + deepmerge-ts: "npm:^7.1.5" dom-serializer: "npm:^2.0.0" - htmlparser2: "npm:^8.0.2" - selderee: "npm:^0.11.0" - checksum: 10c0/5d2c77b798cf88a81b1da2fc1ea1a3b3e2ff49fe5a3d812392f802fff18ec315cf0969bd7846ef2eb7df8c37f463bc63e8cbdcf84e42696c6f3e15dfa61cdf4f + htmlparser2: "npm:^10.1.0" + selderee: "npm:~0.12.0" + checksum: 10c0/fde3b3695ff1bf8ba71b5fb388734de941cf8ccd4c0e816add07104496e21b8f9f937058b35c69554e510af72a5fb582e8966daa165a350464faf97d0aa9e066 languageName: node linkType: hard @@ -12248,18 +11920,6 @@ __metadata: languageName: node linkType: hard -"htmlparser2@npm:^8.0.2": - version: 8.0.2 - resolution: "htmlparser2@npm:8.0.2" - dependencies: - domelementtype: "npm:^2.3.0" - domhandler: "npm:^5.0.3" - domutils: "npm:^3.0.1" - entities: "npm:^4.4.0" - checksum: 10c0/609cca85886d0bf2c9a5db8c6926a89f3764596877492e2caa7a25a789af4065bc6ee2cdc81807fe6b1d03a87bf8a373b5a754528a4cc05146b713c20575aab4 - languageName: node - linkType: hard - "http-assert@npm:^1.5.0": version: 1.5.0 resolution: "http-assert@npm:1.5.0" @@ -13721,10 +13381,10 @@ __metadata: languageName: node linkType: hard -"leac@npm:^0.6.0": - version: 0.6.0 - resolution: "leac@npm:0.6.0" - checksum: 10c0/5257781e10791ef8462eb1cbe5e48e3cda7692486f2a775265d6f5216cc088960c62f138163b8df0dcf2119d18673bfe7b050d6b41543d92a7b7ac90e4eb1e8b +"leac@npm:^0.7.0": + version: 0.7.0 + resolution: "leac@npm:0.7.0" + checksum: 10c0/befd28f1adcef2039e6f071c44f2565dab0ac7e03b54ea35447786ef9ff3d10879d02cd0a7ed3d872f7d038c22890b30fce4518106d95fb94e5ac2947b486dda languageName: node linkType: hard @@ -13769,18 +13429,6 @@ __metadata: languageName: node linkType: hard -"libmime@npm:5.3.7": - version: 5.3.7 - resolution: "libmime@npm:5.3.7" - dependencies: - encoding-japanese: "npm:2.2.0" - iconv-lite: "npm:0.6.3" - libbase64: "npm:1.3.0" - libqp: "npm:2.1.1" - checksum: 10c0/2c8afbe287df533b983b8eb6db0e98d4eb79c833aca7aac531994168d30dd6194a90d78cefb320427183853422be1c86511ab975b1a3fc9f1fc69ce1b83bb7c0 - languageName: node - linkType: hard - "libmime@npm:5.3.8": version: 5.3.8 resolution: "libmime@npm:5.3.8" @@ -13959,16 +13607,7 @@ __metadata: languageName: node linkType: hard -"linkify-it@npm:5.0.0": - version: 5.0.0 - resolution: "linkify-it@npm:5.0.0" - dependencies: - uc.micro: "npm:^2.0.0" - checksum: 10c0/ff4abbcdfa2003472fc3eb4b8e60905ec97718e11e33cca52059919a4c80cc0e0c2a14d23e23d8c00e5402bc5a885cdba8ca053a11483ab3cc8b3c7a52f88e2d - languageName: node - linkType: hard - -"linkify-it@npm:^5.0.1": +"linkify-it@npm:5.0.1, linkify-it@npm:^5.0.1": version: 5.0.1 resolution: "linkify-it@npm:5.0.1" dependencies: @@ -14277,21 +13916,21 @@ __metadata: languageName: node linkType: hard -"mailparser@npm:^3.7.5": - version: 3.9.8 - resolution: "mailparser@npm:3.9.8" +"mailparser@npm:^3.9.10": + version: 3.9.10 + resolution: "mailparser@npm:3.9.10" dependencies: - "@zone-eu/mailsplit": "npm:5.4.8" + "@zone-eu/mailsplit": "npm:5.4.12" encoding-japanese: "npm:2.2.0" he: "npm:1.2.0" - html-to-text: "npm:9.0.5" + html-to-text: "npm:10.0.0" iconv-lite: "npm:0.7.2" libmime: "npm:5.3.8" - linkify-it: "npm:5.0.0" - nodemailer: "npm:8.0.5" + linkify-it: "npm:5.0.1" + nodemailer: "npm:9.0.0" punycode.js: "npm:2.3.1" tlds: "npm:1.261.0" - checksum: 10c0/7d86b57cb6b676902d4547d573bb40c660b5adf1024b418ddd02a584af3b5a64b20d2153d94ea8b666034939e1f156b823f9f6ee3ddfbd2a2ae61920c7c3fc0a + checksum: 10c0/2a33747161b0d7c85e8824d40634672f06afd17c2968b9ddebeb72ff33623f041613c97af1b753f2e1cad6b5a9a174cd316a4d874c0206f5b2bb865f66b0d27f languageName: node linkType: hard @@ -15047,10 +14686,10 @@ __metadata: languageName: node linkType: hard -"nodemailer@npm:8.0.5": - version: 8.0.5 - resolution: "nodemailer@npm:8.0.5" - checksum: 10c0/5e8450499bd059c56d74ba96fa5f9928de2ecdae0d53c083dba5661d797114c1f9524d30f992d0263cc5a7dcf5a54b9c1d92dc1f766da150c9d0bde7d3798431 +"nodemailer@npm:9.0.0": + version: 9.0.0 + resolution: "nodemailer@npm:9.0.0" + checksum: 10c0/0a7f37fe3c27c9eff428cdde2341c879d5318550278cacb12f17c20d92abfbc8e8020e2d24d60f656d26bc3aef6fda8ca0b5720a11d295daaaa234cb4d2e08a9 languageName: node linkType: hard @@ -15526,7 +15165,7 @@ __metadata: koa-sslify: "npm:5.0.1" koa-useragent: "npm:^4.1.0" lint-staged: "npm:^16.4.0" - mailparser: "npm:^3.7.5" + mailparser: "npm:^3.9.10" mammoth: "npm:^1.11.0" markdown-it: "npm:^14.2.0" markdown-it-container: "npm:^3.0.0" @@ -15988,13 +15627,13 @@ __metadata: languageName: node linkType: hard -"parseley@npm:^0.12.0": - version: 0.12.1 - resolution: "parseley@npm:0.12.1" +"parseley@npm:~0.13.1": + version: 0.13.1 + resolution: "parseley@npm:0.13.1" dependencies: - leac: "npm:^0.6.0" - peberminta: "npm:^0.9.0" - checksum: 10c0/df3de74172b72305b867298a71e5882c413df75d30f2bafb5fb70779dfd349c5e4db03441fbf8ca83da8e4aa72bd0ef2b5c73086c4825d27d1c649d61bc0bcc0 + leac: "npm:^0.7.0" + peberminta: "npm:^0.10.0" + checksum: 10c0/cf92da29c1c6b280852327cb2f7d6af44306c75a653e6fa2b27df920903c498dd83383aa9e5174dd95cb49379234d4d4236671d39d795520480873794e732bae languageName: node linkType: hard @@ -16223,10 +15862,10 @@ __metadata: languageName: node linkType: hard -"peberminta@npm:^0.9.0": - version: 0.9.0 - resolution: "peberminta@npm:0.9.0" - checksum: 10c0/59c2c39269d9f7f559cf44582f1c0503524c6a9bc3478e0309adba2b41c71ab98745a239a4e6f98f46105291256e6d8f12ae9860d9f016b1c9a6f52c0b63bfe7 +"peberminta@npm:^0.10.0": + version: 0.10.0 + resolution: "peberminta@npm:0.10.0" + checksum: 10c0/348ddd5779b1406399c0cb59e8b004720f5a7c48dd1a66c0df105607f7480e16e6d999084dfb5990a4c89424fbd49b40e000ff2ecf391f2f21330b2285b606f0 languageName: node linkType: hard @@ -17146,7 +16785,7 @@ __metadata: languageName: node linkType: hard -"react-remove-scroll@npm:^2.6.3, react-remove-scroll@npm:^2.7.2": +"react-remove-scroll@npm:^2.7.2": version: 2.7.2 resolution: "react-remove-scroll@npm:2.7.2" dependencies: @@ -18116,12 +17755,12 @@ __metadata: languageName: node linkType: hard -"selderee@npm:^0.11.0": - version: 0.11.0 - resolution: "selderee@npm:0.11.0" +"selderee@npm:~0.12.0": + version: 0.12.0 + resolution: "selderee@npm:0.12.0" dependencies: - parseley: "npm:^0.12.0" - checksum: 10c0/c2ad8313a0dbf3c0b74752a8d03cfbc0931ae77a36679cdb64733eb732c1762f95a5174249bf7e8b8103874cb0e013a030f9c8b72f5d41e62f1d847d4a845d39 + parseley: "npm:~0.13.1" + checksum: 10c0/dc0aea68d50dbbe0748fccf3332284546851bed698b1765c604b4a95868ac1090b7feea499cff7c48c98fc215a279ed9f8cbd468ebf0fb19e73967f671b6d39b languageName: node linkType: hard From f577a52580cadc888932625f40d32aea8d6b0fcf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 23:21:50 -0400 Subject: [PATCH 268/286] chore(deps): bump hono from 4.12.23 to 4.12.25 (#12724) Bumps [hono](https://github.com/honojs/hono) from 4.12.23 to 4.12.25. - [Release notes](https://github.com/honojs/hono/releases) - [Commits](https://github.com/honojs/hono/compare/v4.12.23...v4.12.25) --- updated-dependencies: - dependency-name: hono dependency-version: 4.12.25 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 474792fac9..162dbfb77b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11859,9 +11859,9 @@ __metadata: linkType: hard "hono@npm:^4.11.4": - version: 4.12.23 - resolution: "hono@npm:4.12.23" - checksum: 10c0/58945bb3aeb16d710b4a6c2809ba02b86b7269f6a3a67e126fc81cee5e9ae8ad2d9aa553db03c4f1a104ec03e423072e33932cb23eb3bbc48774acc72fc9c346 + version: 4.12.25 + resolution: "hono@npm:4.12.25" + checksum: 10c0/9216d647fe2f39b17855b0e74913688b837e3fa9519d367c7beeec399265b36608a820928cc33ab926eee58fe2daf7e33296235b52e56dbfac0fbcd51a5e818e languageName: node linkType: hard From 8183c8e032e6b72ec584987e783293872b866392 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 17 Jun 2026 20:29:03 -0400 Subject: [PATCH 269/286] fix: Allow webhook urls without a top-level domain when self-hosted (#12728) * fix: Allow webhook urls without a top-level domain when self-hosted Webhook URL validation required a top-level domain, rejecting valid internal hostnames such as http://webhook on self-hosted installations. The TLD requirement is now only enforced when cloud hosted. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * refactor: Extract webhook url validation into reusable IsUrl decorator Move the conditional top-level domain validation into a reusable IsUrl validator alongside the other model validators, and restore mocks between create tests to keep hosting mode isolated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * test: Move webhook url validation tests onto IsUrl validator The top-level domain validation is owned by the IsUrl decorator, so test it directly via a collocated unit test rather than through the webhookSubscriptions API. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * PR feedback --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/models/WebhookSubscription.ts | 2 +- server/models/validators/IsUrl.test.ts | 47 ++++++++++++++++++++++++++ server/models/validators/IsUrl.ts | 26 ++++++++++++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 server/models/validators/IsUrl.test.ts create mode 100644 server/models/validators/IsUrl.ts diff --git a/server/models/WebhookSubscription.ts b/server/models/WebhookSubscription.ts index 9ec423e3ab..6b4898fe31 100644 --- a/server/models/WebhookSubscription.ts +++ b/server/models/WebhookSubscription.ts @@ -13,7 +13,6 @@ import { ForeignKey, NotEmpty, DataType, - IsUrl, BeforeCreate, AfterCreate, AfterUpdate, @@ -33,6 +32,7 @@ import User from "./User"; import ParanoidModel from "./base/ParanoidModel"; import Encrypted from "./decorators/Encrypted"; import Fix from "./decorators/Fix"; +import IsUrl from "./validators/IsUrl"; import Length from "./validators/Length"; import { randomString } from "@shared/random"; diff --git a/server/models/validators/IsUrl.test.ts b/server/models/validators/IsUrl.test.ts new file mode 100644 index 0000000000..41d4c1147d --- /dev/null +++ b/server/models/validators/IsUrl.test.ts @@ -0,0 +1,47 @@ +import env from "@server/env"; +import { WebhookSubscription } from "@server/models"; + +describe("IsUrl", () => { + afterEach(() => { + vi.restoreAllMocks(); + }); + + const validateUrl = (url: string) => + WebhookSubscription.build({ url }).validate({ fields: ["url"] }); + + describe("when cloud hosted", () => { + beforeEach(() => { + vi.spyOn(env, "isCloudHosted", "get").mockReturnValue(true); + }); + + it("should allow urls with a top-level domain", async () => { + await expect(validateUrl("https://example.com")).resolves.toBeTruthy(); + }); + + it("should reject urls without a top-level domain", async () => { + await expect(validateUrl("https://webhook")).rejects.toThrow(); + }); + }); + + describe("self hosted", () => { + beforeEach(() => { + vi.spyOn(env, "isCloudHosted", "get").mockReturnValue(false); + }); + + it("should allow urls with a top-level domain", async () => { + await expect(validateUrl("https://example.com")).resolves.toBeTruthy(); + }); + + it("should allow urls without a top-level domain", async () => { + await expect(validateUrl("http://webhook")).resolves.toBeTruthy(); + }); + }); + + it("should reject urls without a protocol", async () => { + await expect(validateUrl("example.com")).rejects.toThrow(); + }); + + it("should reject non-http protocols", async () => { + await expect(validateUrl("ftp://example.com")).rejects.toThrow(); + }); +}); diff --git a/server/models/validators/IsUrl.ts b/server/models/validators/IsUrl.ts new file mode 100644 index 0000000000..80c1268f74 --- /dev/null +++ b/server/models/validators/IsUrl.ts @@ -0,0 +1,26 @@ +import { isURL } from "class-validator"; +import { addAttributeOptions } from "sequelize-typescript"; +import env from "@server/env"; + +/** + * A decorator that validates that a string is a valid HTTP(S) url. A top-level + * domain is only required when cloud hosted, allowing self-hosted installations + * to use internal hostnames. + */ +export default function IsUrl(target: object, propertyName: string) { + return addAttributeOptions(target, propertyName, { + validate: { + validUrl(value: string) { + if ( + !isURL(value, { + protocols: ["http", "https"], + require_protocol: true, + require_tld: env.isCloudHosted, + }) + ) { + throw new Error("Must be a valid url"); + } + }, + }, + }); +} From 7ad35252fd94324cb55ec2f755ea27b8c13c08cd Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 17 Jun 2026 20:29:17 -0400 Subject: [PATCH 270/286] fix(mcp): Documents shared directly with user not accessible through list tool (#12717) * fix: Documents shared directly with user not accessible through list tool closes #12716 * fix --- .../server/PostgresSearchProvider.ts | 6 ++ server/tools/documents.test.ts | 96 ++++++++++++++++++- server/tools/documents.ts | 23 ++--- 3 files changed, 109 insertions(+), 16 deletions(-) diff --git a/plugins/search-postgres/server/PostgresSearchProvider.ts b/plugins/search-postgres/server/PostgresSearchProvider.ts index 8eca93125a..0be0eef517 100644 --- a/plugins/search-postgres/server/PostgresSearchProvider.ts +++ b/plugins/search-postgres/server/PostgresSearchProvider.ts @@ -617,6 +617,12 @@ export default class PostgresSearchProvider extends BaseSearchProvider { deletedAt: { [Op.eq]: null, }, + template: false, + sourceMetadata: { + trial: { + [Op.is]: null, + }, + }, }, ], }; diff --git a/server/tools/documents.test.ts b/server/tools/documents.test.ts index d88e3cecac..f19603aca8 100644 --- a/server/tools/documents.test.ts +++ b/server/tools/documents.test.ts @@ -1,4 +1,4 @@ -import { CollectionPermission, Scope } from "@shared/types"; +import { CollectionPermission, DocumentPermission, Scope } from "@shared/types"; import { buildUser, buildViewer, @@ -6,8 +6,9 @@ import { buildDocument, buildTemplate, buildOAuthAuthentication, + buildGroup, } from "@server/test/factories"; -import { Document } from "@server/models"; +import { Document, GroupMembership, UserMembership } from "@server/models"; import { getTestServer } from "@server/test/support"; import { buildOAuthUser, callMcpTool } from "@server/test/McpHelper"; @@ -43,6 +44,33 @@ describe("list_documents", () => { ).toBeUndefined(); }); + it("does not return templates in recent documents", async () => { + const { user, accessToken } = await buildOAuthUser(); + const collection = await buildCollection({ + teamId: user.teamId, + userId: user.id, + }); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + const template = await buildTemplate({ + teamId: user.teamId, + userId: user.id, + collectionId: collection.id, + }); + + const res = await callMcpTool(server, accessToken, "list_documents"); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const ids = data.map((d: { document: { id: string } }) => d.document.id); + expect(ids).toContain(document.id); + expect(ids).not.toContain(template.id); + }); + it("filters by collection", async () => { const { user, accessToken } = await buildOAuthUser(); const collection1 = await buildCollection({ @@ -81,6 +109,70 @@ describe("list_documents", () => { ).toBe(true); }); + it("returns documents shared directly with the user", async () => { + const { user, accessToken } = await buildOAuthUser(); + const author = await buildUser({ teamId: user.teamId }); + // A document in a private collection the user is not a member of, shared + // directly with the user via a membership ("Shared with me"). + const collection = await buildCollection({ + teamId: author.teamId, + userId: author.id, + permission: null, + }); + const document = await buildDocument({ + teamId: author.teamId, + userId: author.id, + collectionId: collection.id, + title: "Metaphysics", + }); + await UserMembership.create({ + documentId: document.id, + userId: user.id, + createdById: author.id, + permission: DocumentPermission.Read, + }); + + const res = await callMcpTool(server, accessToken, "list_documents"); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const ids = data.map((d: { document: { id: string } }) => d.document.id); + expect(ids).toContain(document.id); + }); + + it("returns documents shared with the user via a group", async () => { + const { user, accessToken } = await buildOAuthUser(); + const author = await buildUser({ teamId: user.teamId }); + const collection = await buildCollection({ + teamId: author.teamId, + userId: author.id, + permission: null, + }); + const document = await buildDocument({ + teamId: author.teamId, + userId: author.id, + collectionId: collection.id, + title: "Metaphysics", + }); + + const group = await buildGroup({ teamId: user.teamId }); + await group.$add("user", user, { through: { createdById: author.id } }); + await GroupMembership.create({ + createdById: author.id, + groupId: group.id, + documentId: document.id, + }); + + const res = await callMcpTool(server, accessToken, "list_documents"); + const data = (res?.result?.content ?? []).map((c: { text: string }) => + JSON.parse(c.text) + ); + + const ids = data.map((d: { document: { id: string } }) => d.document.id); + expect(ids).toContain(document.id); + }); + it("does not return private documents via exact urlId match", async () => { const owner = await buildUser(); const otherUser = await buildUser({ teamId: owner.teamId }); diff --git a/server/tools/documents.ts b/server/tools/documents.ts index 42dbf4f2ca..a5212de531 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -8,7 +8,6 @@ import documentCreator, { import documentMover from "@server/commands/documentMover"; import documentRestorer from "@server/commands/documentRestorer"; import documentUpdater from "@server/commands/documentUpdater"; -import { Op } from "sequelize"; import { Collection, Document, Template } from "@server/models"; import { sequelize } from "@server/storage/database"; import { authorize, can } from "@server/policies"; @@ -30,7 +29,7 @@ import { pathToUrl, withTracing, } from "./util"; -import { TextEditMode } from "@shared/types"; +import { StatusFilter, TextEditMode } from "@shared/types"; import SearchProviderManager from "@server/utils/SearchProviderManager"; /** @@ -201,22 +200,18 @@ export function documentTools(server: McpServer, scopes: string[]) { return success(presented); } - const collectionIds = collectionId - ? [collectionId] - : await user.collectionIds(); - - const documents = await Document.findAll({ - where: { - teamId: user.teamId, - collectionId: collectionIds, - archivedAt: { [Op.eq]: null }, - deletedAt: { [Op.eq]: null }, - }, - order: [["updatedAt", "DESC"]], + // List recent documents via the search provider (with no query) so + // access control matches the search path exactly. + const searchProvider = SearchProviderManager.getProvider(); + const { results } = await searchProvider.searchForUser(user, { + collectionId, offset: effectiveOffset, limit: effectiveLimit, + statusFilter: [StatusFilter.Published], }); + const documents = results.map((result) => result.document); + const breadcrumbs = await getBreadcrumbsForDocuments( documents, user From 06c5188184a0a337c99d0714386d1515a3f111ae Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Wed, 17 Jun 2026 22:53:50 -0400 Subject: [PATCH 271/286] fix: Importer fails after stripping emoji within mark on first line (#12730) --- .../models/helpers/ProseMirrorHelper.test.ts | 35 ++++++++++++++++ server/models/helpers/ProsemirrorHelper.tsx | 40 +++++++++++++------ 2 files changed, 62 insertions(+), 13 deletions(-) diff --git a/server/models/helpers/ProseMirrorHelper.test.ts b/server/models/helpers/ProseMirrorHelper.test.ts index 445f56c6e2..59741fa848 100644 --- a/server/models/helpers/ProseMirrorHelper.test.ts +++ b/server/models/helpers/ProseMirrorHelper.test.ts @@ -937,6 +937,41 @@ describe("ProsemirrorHelper", () => { expect(result.emoji).toBe("🇺🇸"); expect(result.doc.content.child(0).textContent).toBe(" United States"); }); + + it("should extract emoji when the text node is only the emoji", () => { + const doc = buildProseMirrorDoc([ + { + type: "paragraph", + content: [ + { type: "text", text: "🎯" }, + { type: "text", text: "Overview" }, + ], + }, + ]); + + const result = ProsemirrorHelper.extractEmojiFromStart(doc); + + expect(result.emoji).toBe("🎯"); + // The emoji-only text node is dropped rather than left empty. + expect(result.doc.content.child(0).textContent).toBe("Overview"); + }); + + it("should extract a marked emoji-only text node without throwing", () => { + const doc = buildProseMirrorDoc([ + { + type: "paragraph", + content: [ + { type: "text", text: "🎯", marks: [{ type: "strong" }] }, + { type: "text", text: "Overview" }, + ], + }, + ]); + + const result = ProsemirrorHelper.extractEmojiFromStart(doc); + + expect(result.emoji).toBe("🎯"); + expect(result.doc.content.child(0).textContent).toBe("Overview"); + }); }); describe("replaceImagesWithAttachments", () => { diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index 250c958ab6..f37bf85898 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -824,27 +824,41 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { // Create a new document with the emoji removed from the text const json = doc.toJSON(); - function removeEmojiFromNode(node: ProsemirrorData): ProsemirrorData { + function removeEmojiFromNode( + node: ProsemirrorData + ): ProsemirrorData | null { if (node.type === "text" && node.text && node.text.startsWith(emoji)) { + const text = node.text.slice(emoji.length); + // Removing the emoji can leave an empty text node (e.g. when the text + // node contained only the emoji). Prosemirror disallows empty text + // nodes, so drop the node entirely in that case. + if (!text) { + return null; + } return { ...node, - text: node.text.slice(emoji.length), + text, }; } if (node.content) { let found = false; + const content: ProsemirrorData[] = []; + for (const child of node.content) { + if (found) { + content.push(child); + continue; + } + const result = removeEmojiFromNode(child); + if (result !== child) { + found = true; + } + if (result !== null) { + content.push(result); + } + } return { ...node, - content: node.content.map((child) => { - if (found) { - return child; - } - const result = removeEmojiFromNode(child); - if (result !== child) { - found = true; - } - return result; - }), + content, }; } return node; @@ -853,7 +867,7 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { const modifiedJson = removeEmojiFromNode(json as ProsemirrorData); return { emoji, - doc: Node.fromJSON(schema, modifiedJson), + doc: modifiedJson ? Node.fromJSON(schema, modifiedJson) : doc, }; } From a19ae23a6b1bbf8f848177131512ed49ed6b2f3c Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 18 Jun 2026 07:53:26 -0400 Subject: [PATCH 272/286] Add IP address-aware sort for tables (#12734) --- shared/editor/commands/table.test.ts | 103 ++++++++++++++++++++ shared/editor/commands/table.ts | 136 ++++++++++++++------------- shared/utils/ip.test.ts | 48 ++++++++++ shared/utils/ip.ts | 31 ++++++ 4 files changed, 252 insertions(+), 66 deletions(-) create mode 100644 shared/editor/commands/table.test.ts create mode 100644 shared/utils/ip.test.ts create mode 100644 shared/utils/ip.ts diff --git a/shared/editor/commands/table.test.ts b/shared/editor/commands/table.test.ts new file mode 100644 index 0000000000..c2f0be5265 --- /dev/null +++ b/shared/editor/commands/table.test.ts @@ -0,0 +1,103 @@ +import type { Node } from "prosemirror-model"; +import { + createEditorStateWithSelection, + doc, + table, + tr, + td, +} from "@shared/test/editor"; +import { sortTable } from "./table"; + +/** + * Builds a table document from a 2D array of cell strings (rows of columns), + * runs sortTable on the given column, and returns the resulting rows as a 2D + * array of cell text. + */ +function runSort( + data: string[][], + index: number, + direction: "asc" | "desc" +): string[][] { + const testDoc = doc([ + table(data.map((row) => tr(row.map((cell) => td(cell))))), + ]); + // place the selection inside the first cell of the table + let state = createEditorStateWithSelection(testDoc, 4); + + sortTable({ index, direction })(state, (tx) => { + state = state.apply(tx); + }); + + const resultTable = state.doc.firstChild as Node; + const rows: string[][] = []; + resultTable.forEach((row) => { + const cells: string[] = []; + row.forEach((cell) => cells.push(cell.textContent)); + rows.push(cells); + }); + return rows; +} + +describe("sortTable", () => { + it("sorts a text column ascending and descending", () => { + const data = [["banana"], ["apple"], ["cherry"]]; + expect(runSort(data, 0, "asc")).toEqual([ + ["apple"], + ["banana"], + ["cherry"], + ]); + expect(runSort(data, 0, "desc")).toEqual([ + ["cherry"], + ["banana"], + ["apple"], + ]); + }); + + it("sorts IP addresses octet-wise within a subnet", () => { + const data = [["192.168.69.10"], ["192.168.69.9"], ["192.168.69.2"]]; + expect(runSort(data, 0, "asc")).toEqual([ + ["192.168.69.2"], + ["192.168.69.9"], + ["192.168.69.10"], + ]); + }); + + it("sorts IP addresses octet-wise across subnets", () => { + const data = [["192.168.150.10"], ["192.168.69.20"], ["10.0.0.1"]]; + expect(runSort(data, 0, "asc")).toEqual([ + ["10.0.0.1"], + ["192.168.69.20"], + ["192.168.150.10"], + ]); + }); + + it("keeps empty cells last in both directions", () => { + const data = [["b"], [""], ["a"], ["c"]]; + expect(runSort(data, 0, "asc")).toEqual([["a"], ["b"], ["c"], [""]]); + expect(runSort(data, 0, "desc")).toEqual([["c"], ["b"], ["a"], [""]]); + }); + + it("is stable so sorts can be chained into a multi-key order", () => { + // Inventory of [VLAN, IP]. First sort by the secondary key (IP), then by + // the primary key (VLAN). A stable sort must preserve the IP order within + // each VLAN group. + const inventory = [ + ["20", "192.168.20.10"], + ["10", "192.168.10.5"], + ["20", "192.168.20.2"], + ["10", "192.168.10.20"], + ["10", "192.168.10.3"], + ]; + + const byIP = runSort(inventory, 1, "asc"); + const byVlanThenIP = runSort(byIP, 0, "asc"); + + expect(byVlanThenIP).toEqual([ + ["10", "192.168.10.3"], + ["10", "192.168.10.5"], + ["10", "192.168.10.20"], + ["20", "192.168.20.2"], + ["20", "192.168.20.10"], + ]); + }); +}); diff --git a/shared/editor/commands/table.ts b/shared/editor/commands/table.ts index 8d8fa42271..55601648af 100644 --- a/shared/editor/commands/table.ts +++ b/shared/editor/commands/table.ts @@ -23,6 +23,7 @@ import { ProsemirrorHelper } from "../../utils/ProsemirrorHelper"; import { CSVHelper } from "../../utils/csv"; import { isCurrency, parseCurrency } from "../../utils/currency"; import { parseDate } from "../../utils/date"; +import { isIPv4Address, parseIPv4 } from "../../utils/ip"; import { chainTransactions } from "../lib/chainTransactions"; import { getAllSelectedColumns, @@ -400,93 +401,96 @@ export function sortTable({ // column data before sort const columnData = rows.map(getCellContent); - // determine sorting type: date, currency, number, or text + // determine sorting type: date, currency, IP address, number, or text let compareAsDate = false; let compareAsCurrency = false; + let compareAsIP = false; let compareAsNumber = false; const nonEmptyCells = columnData .map((content) => content.trim()) .filter((content): content is string => content.length > 0); if (nonEmptyCells.length > 0) { - // check if all non-empty cells are valid dates + // Dates require every cell to match; `every` short-circuits on the first + // miss, so the expensive date parsing is skipped for non-date columns. compareAsDate = nonEmptyCells.every((cell) => parseDate(cell) !== null); - // if not dates, check if cells are currency values - // treat as currency if at least 50% of non-empty cells look like currency values if (!compareAsDate) { - const currencyCells = nonEmptyCells.filter((cell) => - isCurrency(cell) - ); - const currencyRatio = currencyCells.length / nonEmptyCells.length; - compareAsCurrency = currencyCells.length >= 2 && currencyRatio >= 0.5; - } + // Tally the remaining candidate types in a single pass. The checks are + // mutually exclusive and ordered by priority — IP must come before the + // number check, as IPs would otherwise be parsed as truncated numbers. + let currencyCount = 0; + let ipCount = 0; + let numberCount = 0; + for (const cell of nonEmptyCells) { + if (isCurrency(cell)) { + currencyCount++; + } else if (isIPv4Address(cell)) { + ipCount++; + } else if (!isNaN(parseFloat(cell))) { + numberCount++; + } + } - // if not currency, check if cells are numbers (same logic) - if (!compareAsDate && !compareAsCurrency) { - const numberCells = nonEmptyCells.filter( - (cell) => !isNaN(parseFloat(cell)) - ); - const numberRatio = numberCells.length / nonEmptyCells.length; - compareAsNumber = numberCells.length >= 2 && numberRatio >= 0.5; + // Treat as a type if at least 2 cells match and they form a majority. + const isMajority = (count: number) => + count >= 2 && count / nonEmptyCells.length >= 0.5; + if (isMajority(currencyCount)) { + compareAsCurrency = true; + } else if (isMajority(ipCount)) { + compareAsIP = true; + } else if (isMajority(numberCount)) { + compareAsNumber = true; + } } } - // sort rows based on column at index - rows.sort((a, b) => { - const aContent = getCellContent(a); - const bContent = getCellContent(b); - - // empty cells always go to the end - if (!aContent) { - return bContent ? 1 : 0; + // Extracts a comparable value for the detected column type. Returns null + // for empty or non-matching cells, which always sort to the end. + const getSortValue = (content: string): number | string | null => { + if (!content) { + return null; } - if (!bContent) { + if (compareAsDate) { + return parseDate(content)?.getTime() ?? null; + } + if (compareAsCurrency) { + return parseCurrency(content); + } + if (compareAsIP) { + return parseIPv4(content); + } + if (compareAsNumber) { + const num = parseFloat(content); + return isNaN(num) ? null : num; + } + return content; + }; + + // Sort rows based on column at index. The comparator is direction-aware + // rather than reversing afterwards, so the sort stays stable in both + // directions — equal cells keep their prior order, which lets sorts be + // chained to build a multi-key order (e.g. sort by IP, then by VLAN). + const directionMultiplier = direction === "desc" ? -1 : 1; + rows.sort((a, b) => { + const aValue = getSortValue(getCellContent(a)); + const bValue = getSortValue(getCellContent(b)); + + // empty or non-matching cells always go to the end, regardless of direction + if (aValue === null) { + return bValue === null ? 0 : 1; + } + if (bValue === null) { return -1; } - if (compareAsDate) { - const aDate = parseDate(aContent); - const bDate = parseDate(bContent); - // non-date cells go to the end (like empty cells) - if (!aDate) { - return bDate ? 1 : 0; - } - if (!bDate) { - return -1; - } - return aDate.getTime() - bDate.getTime(); - } else if (compareAsCurrency) { - const aValue = parseCurrency(aContent); - const bValue = parseCurrency(bContent); - // non-currency cells go to the end (like empty cells) - if (aValue === null) { - return bValue !== null ? 1 : 0; - } - if (bValue === null) { - return -1; - } - return aValue - bValue; - } else if (compareAsNumber) { - const aNum = parseFloat(aContent); - const bNum = parseFloat(bContent); - // non-number cells go to the end (like empty cells) - if (isNaN(aNum)) { - return !isNaN(bNum) ? 1 : 0; - } - if (isNaN(bNum)) { - return -1; - } - return aNum - bNum; - } else { - return aContent.localeCompare(bContent); - } + const result = + typeof aValue === "string" + ? aValue.localeCompare(bValue as string) + : aValue - (bValue as number); + return directionMultiplier * result; }); - if (direction === "desc") { - rows.reverse(); - } - // check if column data changed, if not then do not replace table if (columnData.join() === rows.map(getCellContent).join()) { return true; diff --git a/shared/utils/ip.test.ts b/shared/utils/ip.test.ts new file mode 100644 index 0000000000..db29279d1a --- /dev/null +++ b/shared/utils/ip.test.ts @@ -0,0 +1,48 @@ +import { isIPv4Address, parseIPv4 } from "./ip"; + +describe("parseIPv4", () => { + it("parses valid IPv4 addresses", () => { + expect(parseIPv4("0.0.0.0")).toBe(0); + expect(parseIPv4("255.255.255.255")).toBe(4294967295); + expect(parseIPv4("192.168.1.1")).toBe(3232235777); + }); + + it("trims surrounding whitespace", () => { + expect(parseIPv4(" 192.168.1.1 ")).toBe(parseIPv4("192.168.1.1")); + }); + + it("orders addresses octet-wise within a subnet", () => { + expect(parseIPv4("192.168.69.9")!).toBeLessThan( + parseIPv4("192.168.69.10")! + ); + }); + + it("orders addresses octet-wise across subnets", () => { + expect(parseIPv4("192.168.69.20")!).toBeLessThan( + parseIPv4("192.168.150.10")! + ); + }); + + it("returns null for invalid input", () => { + expect(parseIPv4("")).toBeNull(); + expect(parseIPv4("192.168.1")).toBeNull(); + expect(parseIPv4("192.168.1.1.1")).toBeNull(); + expect(parseIPv4("192.168.1.256")).toBeNull(); + expect(parseIPv4("not an ip")).toBeNull(); + expect(parseIPv4("1.2.3.4 ")).toBe(parseIPv4("1.2.3.4")); + expect(parseIPv4("192.168.1.x")).toBeNull(); + }); +}); + +describe("isIPv4Address", () => { + it("returns true for valid addresses", () => { + expect(isIPv4Address("10.0.0.1")).toBe(true); + expect(isIPv4Address("255.255.255.255")).toBe(true); + }); + + it("returns false for invalid addresses", () => { + expect(isIPv4Address("256.0.0.1")).toBe(false); + expect(isIPv4Address("hello")).toBe(false); + expect(isIPv4Address("")).toBe(false); + }); +}); diff --git a/shared/utils/ip.ts b/shared/utils/ip.ts new file mode 100644 index 0000000000..c0cfd9e7ea --- /dev/null +++ b/shared/utils/ip.ts @@ -0,0 +1,31 @@ +import ipaddr from "ipaddr.js"; + +/** + * Checks if a string is a canonical dotted-quad IPv4 address (e.g. 192.168.1.1). + * Stricter than ipaddr's `isValid`, which also accepts shorthand and hex forms + * such as "1.2.3" or "0xC0.0xA8.1.1" that would misclassify ordinary numbers. + * + * @param value - the string to check. + * @returns true if the string is a canonical IPv4 address. + */ +export function isIPv4Address(value: string): boolean { + return ipaddr.IPv4.isValidFourPartDecimal(value.trim()); +} + +/** + * Parses an IPv4 address into a single numeric value that preserves octet-wise + * ordering, so addresses sort correctly both within and across subnets + * (e.g. 192.168.69.9 before 192.168.69.10, and 192.168.69.20 before 192.168.150.10). + * + * @param value - the IPv4 address string to parse. + * @returns the numeric value, or null if the string is not a canonical IPv4 address. + */ +export function parseIPv4(value: string): number | null { + const trimmed = value.trim(); + if (!ipaddr.IPv4.isValidFourPartDecimal(trimmed)) { + return null; + } + return ipaddr.IPv4.parse(trimmed) + .toByteArray() + .reduce((acc, octet) => acc * 256 + octet, 0); +} From 25da5596a94a75c6ec99f234bdf4e23121b34839 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 18 Jun 2026 08:56:19 -0400 Subject: [PATCH 273/286] fix: Inline code marks longer than the width of editor escape (#12735) --- shared/editor/components/Styles.ts | 5 ++++- shared/editor/plugins/CodeWordDecorationsPlugin.ts | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index bc8b8dcdb0..ee3a62ceb6 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -1752,11 +1752,14 @@ code { font-family: ${props.theme.fontFamilyMono}; font-size: 90%; + &.inline { + color: ${props.theme.codeKeyword}; + } + .${EditorStyleHelper.codeWord} { @media (min-width: ${breakpoints.tablet}px) { white-space: nowrap; } - color: ${props.theme.codeKeyword}; } } diff --git a/shared/editor/plugins/CodeWordDecorationsPlugin.ts b/shared/editor/plugins/CodeWordDecorationsPlugin.ts index a398e2c78b..365f6a2bf2 100644 --- a/shared/editor/plugins/CodeWordDecorationsPlugin.ts +++ b/shared/editor/plugins/CodeWordDecorationsPlugin.ts @@ -9,12 +9,15 @@ import { EditorStyleHelper } from "../styles/EditorStyleHelper"; interface CodeWordDecorationsConfig { /** CSS class to apply to word decorations */ className?: string; + /** Tokens longer than this many characters are left unwrapped so they break */ + maxWordLength?: number; } class CodeWordDecorationsPlugin extends Plugin { constructor(config: CodeWordDecorationsConfig = {}) { const defaultConfig: Required<CodeWordDecorationsConfig> = { className: EditorStyleHelper.codeWord, + maxWordLength: 40, }; const finalConfig = { ...defaultConfig, ...config }; @@ -102,7 +105,10 @@ class CodeWordDecorationsPlugin extends Plugin { for (let i = 0; i < words.length; i++) { const word = words[i]; - if (word.length > 0) { + // Tokens longer than a line cannot move to the next line as a unit, + // so leave them unwrapped to inherit the editor's default breaking + // rather than overflow. + if (word.length > 0 && word.length <= config.maxWordLength) { const wordStart = currentPos; const wordEnd = wordStart + word.length; From 75bfcd59da73ae84fc1b9c4fa61d03aacc83cfb8 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 18 Jun 2026 17:21:01 -0400 Subject: [PATCH 274/286] chore: nodemailer dep failing audit (again) (#12738) --- package.json | 5 +++-- yarn.lock | 17 +++++------------ 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 388ea8d674..a3f35cf781 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "mobx-utils": "^4.0.1", "natural-sort": "^1.0.0", "node-fetch": "2.7.0", - "nodemailer": "^8.0.9", + "nodemailer": "^9.0.1", "octokit": "^5.0.5", "outline-icons": "^4.3.0", "oy-vey": "^0.12.1", @@ -393,7 +393,8 @@ "lodash@npm:4.17.21": "^4.18.1", "i18next-parser/i18next": "^23.16.8", "ws@npm:~8.17.1": "^8.21.0", - "uuid": "^11.1.1" + "uuid": "^11.1.1", + "nodemailer@npm:9.0.0": "^9.0.1" }, "version": "1.8.1", "packageManager": "yarn@4.11.0" diff --git a/yarn.lock b/yarn.lock index 162dbfb77b..8139c2790c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14686,17 +14686,10 @@ __metadata: languageName: node linkType: hard -"nodemailer@npm:9.0.0": - version: 9.0.0 - resolution: "nodemailer@npm:9.0.0" - checksum: 10c0/0a7f37fe3c27c9eff428cdde2341c879d5318550278cacb12f17c20d92abfbc8e8020e2d24d60f656d26bc3aef6fda8ca0b5720a11d295daaaa234cb4d2e08a9 - languageName: node - linkType: hard - -"nodemailer@npm:^8.0.9": - version: 8.0.11 - resolution: "nodemailer@npm:8.0.11" - checksum: 10c0/19229216c63a32eae59d7b39f3dffeba20be317f2335d08d86fb70bd01845a1bf108fecd019c0e90ef186e3d9177cf478192b333cf38620ad0f8c7a6e1e5ae05 +"nodemailer@npm:^9.0.1": + version: 9.0.1 + resolution: "nodemailer@npm:9.0.1" + checksum: 10c0/4213f01aa211127c1ce33243c5e45e7f831601a933d03fa864cd827b1bd5ea2782cb4b43722bee7028cbc193733d9802dad1120fe67181448eb0b7de52218a37 languageName: node linkType: hard @@ -15178,7 +15171,7 @@ __metadata: msw: "npm:^2.14.2" natural-sort: "npm:^1.0.0" node-fetch: "npm:2.7.0" - nodemailer: "npm:^8.0.9" + nodemailer: "npm:^9.0.1" nodemon: "npm:^3.1.14" octokit: "npm:^5.0.5" outline-icons: "npm:^4.3.0" From 1b4a14cb0b475e90579135e37fc05d6962de1f2f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 17:31:52 -0400 Subject: [PATCH 275/286] chore(deps): bump undici from 7.25.0 to 7.28.0 (#12739) Bumps [undici](https://github.com/nodejs/undici) from 7.25.0 to 7.28.0. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](https://github.com/nodejs/undici/compare/v7.25.0...v7.28.0) --- updated-dependencies: - dependency-name: undici dependency-version: 7.28.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 8139c2790c..26fd94e34a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19433,9 +19433,9 @@ __metadata: linkType: hard "undici@npm:^7.19.0": - version: 7.25.0 - resolution: "undici@npm:7.25.0" - checksum: 10c0/02a0b45dc14eb91bc488948750232450fe52f27a6b08086d6ac6736bb47908d600fe3a96d346f12eab24729c782e5c2f693bc8e8eca6696d4e4c09b1ed4cb4ec + version: 7.28.0 + resolution: "undici@npm:7.28.0" + checksum: 10c0/fe781983a26098795e99bb1f64906cbb7d0bcaa029a26baade007b53ea67f2631d189b8f9671a31f4c8d0cb3773b7559608628ba54452fef51fec90e7c78bb0d languageName: node linkType: hard From 66eee9007f0cd65e36d9b528672a4177588a8062 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 18 Jun 2026 17:34:05 -0400 Subject: [PATCH 276/286] chore: Upgrade to Typescript 6 (#12737) * chore: Upgrade TypeScript to 6.0 --- app/actions/definitions/collections.tsx | 3 +- app/actions/definitions/documents.tsx | 3 +- app/actions/definitions/shares.tsx | 3 +- app/components/Collection/CollectionEdit.tsx | 3 +- app/components/Collection/CollectionNew.tsx | 3 +- app/components/CommentDeleteDialog.tsx | 3 +- app/components/ConfirmMoveDialog.tsx | 3 +- app/components/ConfirmationDialog.tsx | 3 +- .../DefaultCollectionInputSelect.tsx | 5 +-- app/components/EditableTitle.tsx | 3 +- app/components/OAuthClient/OAuthClientNew.tsx | 3 +- app/components/PaginatedList.tsx | 3 +- .../Sharing/Collection/AccessControlList.tsx | 5 +-- .../Sharing/Collection/PublicAccess.tsx | 6 ++-- .../Sharing/Document/PublicAccess.tsx | 6 ++-- .../components/ShareSettingsPopover.tsx | 15 ++++---- app/components/Sidebar/components/Version.tsx | 3 +- .../Sidebar/hooks/useDragAndDrop.tsx | 9 ++--- app/components/UserDialogs.tsx | 5 +-- app/components/WebsocketProvider.tsx | 25 +++++++++---- app/editor/components/FloatingToolbar.tsx | 2 +- app/editor/components/SuggestionsMenu.tsx | 2 +- app/hooks/useEmbeds.ts | 3 +- app/hooks/useImportDocument.ts | 5 +-- app/hooks/useRequest.ts | 2 +- app/hooks/useUserMenuActions.tsx | 4 ++- app/models/base/Model.ts | 2 +- app/models/decorators/Relation.ts | 3 +- app/scenes/ApiKeyNew/index.tsx | 3 +- app/scenes/Collection/index.tsx | 3 +- app/scenes/Document/components/DataLoader.tsx | 5 +-- app/scenes/Document/hooks/useDocumentSave.ts | 6 ++-- app/scenes/DocumentDelete.tsx | 5 +-- app/scenes/Errors/Error403.tsx | 3 +- app/scenes/Invite.tsx | 3 +- .../components/AuthenticationProvider.tsx | 3 +- app/scenes/Settings/Application.tsx | 5 +-- app/scenes/Settings/Authentication.tsx | 13 +++---- app/scenes/Settings/Details.tsx | 3 +- app/scenes/Settings/Profile.tsx | 3 +- app/scenes/Settings/Security.tsx | 3 +- app/scenes/Settings/Template.tsx | 3 +- app/scenes/Settings/TemplateNew.tsx | 3 +- .../Settings/components/DomainManagement.tsx | 3 +- .../Settings/components/DropToImport.tsx | 3 +- .../components/FileOperationListItem.tsx | 3 +- .../Settings/components/GroupDialogs.tsx | 7 ++-- .../Settings/components/ImageUpload.tsx | 3 +- .../Settings/components/ImportListItem.tsx | 5 +-- app/scenes/TeamDelete.tsx | 5 +-- app/scenes/TeamNew.tsx | 3 +- app/scenes/UserDelete.tsx | 5 +-- app/stores/AuthStore.ts | 18 ++++++++-- app/stores/UnfurlsStore.ts | 3 +- app/typings/index.d.ts | 2 ++ app/typings/window.d.ts | 1 + app/utils/download.ts | 1 + package.json | 2 +- plugins/azure/server/auth/azure.ts | 3 +- plugins/diagrams/client/Settings.tsx | 3 +- plugins/discord/server/auth/discord.ts | 3 +- plugins/email/server/auth/email.ts | 8 +++-- plugins/figma/server/api/figma.ts | 6 +++- plugins/figma/server/figma.ts | 3 +- plugins/github/server/github.ts | 9 +++-- .../client/components/GitLabConnectDialog.tsx | 3 +- plugins/gitlab/server/GitLabIssueProvider.ts | 3 +- plugins/gitlab/server/api/gitlab.ts | 6 +++- plugins/gitlab/server/gitlab.ts | 7 ++-- plugins/google/server/auth/google.ts | 3 +- plugins/googleanalytics/client/Settings.tsx | 3 +- plugins/iframely/server/iframely.ts | 10 ++++-- plugins/linear/server/api/linear.ts | 6 +++- plugins/linear/server/linear.ts | 6 ++-- plugins/linear/server/uninstall.ts | 3 +- plugins/matomo/client/Settings.tsx | 3 +- .../notion/client/components/ImportDialog.tsx | 3 +- plugins/oidc/server/auth/oidc.ts | 3 +- plugins/oidc/server/auth/oidcRouter.ts | 5 +-- plugins/oidc/server/oidcDiscovery.ts | 3 +- plugins/passkeys/client/Settings.tsx | 6 ++-- .../client/components/RenamePasskeyDialog.tsx | 3 +- plugins/passkeys/server/auth/passkeys.ts | 8 +++-- .../server/PostgresSearchProvider.ts | 10 ++++-- plugins/slack/server/api/hooks.ts | 3 +- plugins/slack/server/auth/slack.ts | 3 +- plugins/slack/server/slack.ts | 5 +-- plugins/storage/server/api/files.ts | 2 +- plugins/storage/server/index.ts | 3 +- plugins/umami/client/Settings.tsx | 3 +- .../components/WebhookSubscriptionEdit.tsx | 3 +- .../components/WebhookSubscriptionNew.tsx | 3 +- .../server/tasks/DeliverWebhookTask.ts | 18 ++++++---- server/__mocks__/bull.ts | 14 ++++---- server/collaboration/PersistenceExtension.ts | 3 +- server/commands/accountProvisioner.test.ts | 7 ++-- server/commands/accountProvisioner.ts | 13 ++++--- server/commands/documentImporter.test.ts | 5 +-- .../commands/documentPermanentDeleter.test.ts | 3 +- server/commands/teamPermanentDeleter.test.ts | 3 +- server/commands/teamProvisioner.test.ts | 4 ++- server/emails/mailer.tsx | 3 +- server/emails/templates/BaseEmail.tsx | 7 +++- server/index.ts | 5 +-- server/middlewares/apexAuthRedirect.ts | 3 +- server/middlewares/authentication.test.ts | 29 ++++++++------- server/middlewares/rateLimiter.ts | 9 +++-- server/middlewares/validate.ts | 3 +- server/models/Attachment.ts | 3 +- server/models/Collection.ts | 16 ++++----- server/models/FileOperation.ts | 4 +-- server/models/Group.ts | 2 +- server/models/IntegrationAuthentication.ts | 6 +++- server/models/Team.ts | 2 +- server/models/User.test.ts | 5 +-- server/models/User.ts | 26 +++++++------- server/models/UserAuthentication.ts | 6 +++- server/models/decorators/Encrypted.ts | 13 ++++--- server/models/helpers/ProsemirrorHelper.tsx | 10 ++++-- server/models/helpers/TextHelper.ts | 3 +- server/onerror.ts | 3 +- server/queues/tasks/APIImportTask.ts | 3 +- server/queues/tasks/DocumentImportTask.ts | 3 +- server/queues/tasks/ExportDocumentTreeTask.ts | 3 +- server/queues/tasks/ExportJSONTask.ts | 3 +- server/queues/tasks/ExportTask.ts | 5 +-- server/queues/tasks/ImportTask.ts | 9 ++--- .../UpdateDocumentsPopularityScoreTask.ts | 11 ++++-- .../tasks/UploadAttachmentFromUrlTask.ts | 3 +- .../tasks/UploadAttachmentsForImportTask.ts | 3 +- server/routes/api/documents/documents.ts | 3 +- .../routes/api/middlewares/apiErrorHandler.ts | 5 +-- server/routes/api/revisions/revisions.ts | 3 +- server/routes/api/shares/shares.ts | 2 +- server/routes/api/urls/urls.ts | 2 +- server/routes/index.ts | 4 +-- server/routes/mcp/index.ts | 3 +- .../oauth/middlewares/oauthErrorHandler.ts | 21 +++++++++-- server/services/websockets.ts | 6 ++-- server/services/worker.ts | 7 ++-- server/storage/database.ts | 8 +++-- server/storage/files/BaseStorage.ts | 5 +-- server/storage/files/LocalStorage.ts | 9 ++--- server/storage/files/S3Storage.ts | 18 +++++----- server/storage/redis.ts | 5 +-- server/tools/util.ts | 3 +- server/utils/CacheHelper.ts | 15 +++++--- server/utils/RateLimiter.ts | 10 ++++-- server/utils/authentication.ts | 3 +- server/utils/fetch.ts | 10 +++--- server/utils/getInstallationInfo.ts | 3 +- server/utils/oauth.test.ts | 4 ++- server/utils/oauth.ts | 7 ++-- server/utils/passport.ts | 3 +- server/utils/startup.ts | 9 +++-- shared/editor/extensions/Mermaid.ts | 3 +- shared/editor/lib/uploadPlaceholder.tsx | 2 +- shared/utils/error.test.ts | 36 +++++++++++++++++++ shared/utils/error.ts | 19 ++++++++++ shared/utils/files.ts | 2 +- tsconfig.json | 5 ++- yarn.lock | 26 ++++++++++++-- 162 files changed, 654 insertions(+), 295 deletions(-) create mode 100644 shared/utils/error.test.ts create mode 100644 shared/utils/error.ts diff --git a/app/actions/definitions/collections.tsx b/app/actions/definitions/collections.tsx index 4dca402f7a..08729e4bda 100644 --- a/app/actions/definitions/collections.tsx +++ b/app/actions/definitions/collections.tsx @@ -20,6 +20,7 @@ import { UnsubscribeIcon, } from "outline-icons"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Collection from "~/models/Collection"; import { CollectionEdit } from "~/components/Collection/CollectionEdit"; import { CollectionNew } from "~/components/Collection/CollectionNew"; @@ -173,7 +174,7 @@ export const importDocument = createAction({ }); history.push(document.path); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { toast.dismiss(toastId); } diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index 0c2e18517b..6efba6eaa5 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -36,6 +36,7 @@ import { OpenIcon, } from "outline-icons"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Icon from "@shared/components/Icon"; import type { NavigationNode } from "@shared/types"; import { ExportContentType, TeamPreference } from "@shared/types"; @@ -1123,7 +1124,7 @@ export const importDocument = createAction({ ); history.push(document.url); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { toast.dismiss(toastId); } diff --git a/app/actions/definitions/shares.tsx b/app/actions/definitions/shares.tsx index 5ddde114e3..fb4ce8239a 100644 --- a/app/actions/definitions/shares.tsx +++ b/app/actions/definitions/shares.tsx @@ -1,4 +1,5 @@ import copy from "copy-to-clipboard"; +import { errToString } from "@shared/utils/error"; import type Share from "~/models/Share"; import { createAction, createInternalLinkAction } from ".."; import { ArrowIcon, CopyIcon, TrashIcon } from "outline-icons"; @@ -53,7 +54,7 @@ export const revokeShareFactory = ({ await stores.shares.revoke(share); toast.message(t("Share link revoked")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, }); diff --git a/app/components/Collection/CollectionEdit.tsx b/app/components/Collection/CollectionEdit.tsx index cef1e0c80b..c85e94c9dc 100644 --- a/app/components/Collection/CollectionEdit.tsx +++ b/app/components/Collection/CollectionEdit.tsx @@ -1,6 +1,7 @@ import { observer } from "mobx-react"; import { useCallback } from "react"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import useStores from "~/hooks/useStores"; import type { FormData } from "./CollectionForm"; import { CollectionForm } from "./CollectionForm"; @@ -23,7 +24,7 @@ export const CollectionEdit = observer(function CollectionEdit_({ await collection?.save(data); onSubmit?.(); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } }, [collection, onSubmit] diff --git a/app/components/Collection/CollectionNew.tsx b/app/components/Collection/CollectionNew.tsx index 05877b2c03..1645f93f5f 100644 --- a/app/components/Collection/CollectionNew.tsx +++ b/app/components/Collection/CollectionNew.tsx @@ -2,6 +2,7 @@ import { runInAction } from "mobx"; import { observer } from "mobx-react"; import { useCallback } from "react"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import useStores from "~/hooks/useStores"; import history from "~/utils/history"; import type { FormData } from "./CollectionForm"; @@ -26,7 +27,7 @@ export const CollectionNew = observer(function CollectionNew_({ onSubmit?.(); history.push(collection.path); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } }, [collections, onSubmit] diff --git a/app/components/CommentDeleteDialog.tsx b/app/components/CommentDeleteDialog.tsx index 7808c022b4..61c8faa899 100644 --- a/app/components/CommentDeleteDialog.tsx +++ b/app/components/CommentDeleteDialog.tsx @@ -1,6 +1,7 @@ import { observer } from "mobx-react"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import type Comment from "~/models/Comment"; import ConfirmationDialog from "~/components/ConfirmationDialog"; import Text from "~/components/Text"; @@ -21,7 +22,7 @@ function CommentDeleteDialog({ comment, onSubmit }: Props) { await comment.delete(); onSubmit?.(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }; diff --git a/app/components/ConfirmMoveDialog.tsx b/app/components/ConfirmMoveDialog.tsx index 75d13f186a..55401670a8 100644 --- a/app/components/ConfirmMoveDialog.tsx +++ b/app/components/ConfirmMoveDialog.tsx @@ -1,6 +1,7 @@ import { observer } from "mobx-react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import type { NavigationNode } from "@shared/types"; import { CollectionPermission } from "@shared/types"; import type Collection from "~/models/Collection"; @@ -50,7 +51,7 @@ function ConfirmMoveDialog({ collection, item, ...rest }: Props) { ) ); } else { - toast.error(err.message); + toast.error(errToString(err)); } } finally { dialogs.closeAllModals(); diff --git a/app/components/ConfirmationDialog.tsx b/app/components/ConfirmationDialog.tsx index 6dc927d312..75e702f9d9 100644 --- a/app/components/ConfirmationDialog.tsx +++ b/app/components/ConfirmationDialog.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; import Text from "~/components/Text"; @@ -44,7 +45,7 @@ const ConfirmationDialog: React.FC<Props> = ({ } dialogs.closeAllModals(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); } diff --git a/app/components/DefaultCollectionInputSelect.tsx b/app/components/DefaultCollectionInputSelect.tsx index e46edac00a..caac5675eb 100644 --- a/app/components/DefaultCollectionInputSelect.tsx +++ b/app/components/DefaultCollectionInputSelect.tsx @@ -8,6 +8,7 @@ import { getLuminance } from "polished"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { toError } from "@shared/utils/error"; import Icon from "@shared/components/Icon"; import { colorPalette } from "@shared/utils/collections"; import type { Option } from "~/components/InputSelect"; @@ -27,7 +28,7 @@ const DefaultCollectionInputSelect = observer( const { t } = useTranslation(); const { collections, ui } = useStores(); const [fetching, setFetching] = useState(false); - const [fetchError, setFetchError] = useState(); + const [fetchError, setFetchError] = useState<Error>(); React.useEffect(() => { async function fetchData() { @@ -41,7 +42,7 @@ const DefaultCollectionInputSelect = observer( toast.error( t("Collections could not be loaded, please reload the app") ); - setFetchError(error); + setFetchError(toError(error)); } finally { setFetching(false); } diff --git a/app/components/EditableTitle.tsx b/app/components/EditableTitle.tsx index 38f0433e3b..cd9b065e0a 100644 --- a/app/components/EditableTitle.tsx +++ b/app/components/EditableTitle.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { toast } from "sonner"; import styled from "styled-components"; +import { errToString } from "@shared/utils/error"; import { s, ellipsis } from "@shared/styles"; import EventBoundary from "@shared/components/EventBoundary"; @@ -109,7 +110,7 @@ function EditableTitle( setValue(value); setIsEditing(true); - toast.error(error.message); + toast.error(errToString(error)); throw error; } finally { setIsSubmitting(false); diff --git a/app/components/OAuthClient/OAuthClientNew.tsx b/app/components/OAuthClient/OAuthClientNew.tsx index 3b364bce63..6337874f3b 100644 --- a/app/components/OAuthClient/OAuthClientNew.tsx +++ b/app/components/OAuthClient/OAuthClientNew.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import { useCallback } from "react"; import { useHistory } from "react-router-dom"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import useStores from "~/hooks/useStores"; import { settingsPath } from "~/utils/routeHelpers"; import type { FormData } from "./OAuthClientForm"; @@ -24,7 +25,7 @@ export const OAuthClientNew = observer(function OAuthClientNew_({ onSubmit?.(); history.push(settingsPath("applications", oauthClient.id)); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } }, [oauthClients, history, onSubmit] diff --git a/app/components/PaginatedList.tsx b/app/components/PaginatedList.tsx index 914957159b..084e7665c7 100644 --- a/app/components/PaginatedList.tsx +++ b/app/components/PaginatedList.tsx @@ -2,6 +2,7 @@ import { isEqual } from "es-toolkit/compat"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { Waypoint } from "react-waypoint"; +import { toError } from "@shared/utils/error"; import { Pagination } from "@shared/constants"; import ArrowKeyNavigation from "~/components/ArrowKeyNavigation"; import DelayedMount from "~/components/DelayedMount"; @@ -176,7 +177,7 @@ const PaginatedList = <T extends PaginatedItem>({ setIsFetchingInitial(false); } catch (err) { - setError(err); + setError(toError(err)); } finally { // only the most recent fetch should end the loading state if (counter >= fetchCounter) { diff --git a/app/components/Sharing/Collection/AccessControlList.tsx b/app/components/Sharing/Collection/AccessControlList.tsx index 0207d58f23..d7c82e3c3e 100644 --- a/app/components/Sharing/Collection/AccessControlList.tsx +++ b/app/components/Sharing/Collection/AccessControlList.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import styled, { useTheme } from "styled-components"; +import { errToString } from "@shared/utils/error"; import Squircle from "@shared/components/Squircle"; import { s } from "@shared/styles"; import { CollectionPermission } from "@shared/types"; @@ -186,7 +187,7 @@ export const AccessControlList = observer( }); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); return false; } return true; @@ -240,7 +241,7 @@ export const AccessControlList = observer( }); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); return false; } return true; diff --git a/app/components/Sharing/Collection/PublicAccess.tsx b/app/components/Sharing/Collection/PublicAccess.tsx index e11cc00687..fcf2ffad50 100644 --- a/app/components/Sharing/Collection/PublicAccess.tsx +++ b/app/components/Sharing/Collection/PublicAccess.tsx @@ -6,6 +6,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import { useTheme } from "styled-components"; +import { errToString } from "@shared/utils/error"; import Squircle from "@shared/components/Squircle"; import { UrlHelper } from "@shared/utils/UrlHelper"; import type Collection from "~/models/Collection"; @@ -71,7 +72,7 @@ function InnerPublicAccess( } } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setCreating(false); } @@ -100,7 +101,8 @@ function InnerPublicAccess( urlId: isEmpty(val) ? null : val, }); } catch (err) { - if (err.message.includes("must be unique")) { + const message = errToString(err); + if (message.includes("must be unique")) { setValidationError(t("Sorry, this link has already been used")); } } diff --git a/app/components/Sharing/Document/PublicAccess.tsx b/app/components/Sharing/Document/PublicAccess.tsx index 86a423c611..e57a2fd3e9 100644 --- a/app/components/Sharing/Document/PublicAccess.tsx +++ b/app/components/Sharing/Document/PublicAccess.tsx @@ -6,6 +6,7 @@ import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; import { useTheme } from "styled-components"; +import { errToString } from "@shared/utils/error"; import Flex from "@shared/components/Flex"; import Squircle from "@shared/components/Squircle"; import { UrlHelper } from "@shared/utils/UrlHelper"; @@ -81,7 +82,7 @@ function PublicAccess( } } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setCreating(false); } @@ -110,7 +111,8 @@ function PublicAccess( urlId: isEmpty(val) ? null : val, }); } catch (err) { - if (err.message.includes("must be unique")) { + const message = errToString(err); + if (message.includes("must be unique")) { setValidationError(t("Sorry, this link has already been used")); } } diff --git a/app/components/Sharing/components/ShareSettingsPopover.tsx b/app/components/Sharing/components/ShareSettingsPopover.tsx index 2c0bf7309d..964e797da1 100644 --- a/app/components/Sharing/components/ShareSettingsPopover.tsx +++ b/app/components/Sharing/components/ShareSettingsPopover.tsx @@ -10,6 +10,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import styled, { useTheme } from "styled-components"; +import { errToString } from "@shared/utils/error"; import { s } from "@shared/styles"; import { HStack } from "~/components/primitives/HStack"; import { AttachmentPreset } from "@shared/types"; @@ -70,7 +71,7 @@ function ShareSettingsPopover({ share, children }: Props) { await share.save({ title: val || null }); hasChangesRef.current = true; } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, 500), [share] @@ -100,7 +101,7 @@ function ShareSettingsPopover({ share, children }: Props) { await share.save({ iconUrl: attachment.url }); hasChangesRef.current = true; } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsUploading(false); if (fileInputRef.current) { @@ -116,7 +117,7 @@ function ShareSettingsPopover({ share, children }: Props) { await share.save({ iconUrl: null }); hasChangesRef.current = true; } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [share]); @@ -126,7 +127,7 @@ function ShareSettingsPopover({ share, children }: Props) { await share.save({ allowIndexing: checked }); hasChangesRef.current = true; } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [share] @@ -138,7 +139,7 @@ function ShareSettingsPopover({ share, children }: Props) { await share.save({ allowSubscriptions: checked }); hasChangesRef.current = true; } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [share] @@ -150,7 +151,7 @@ function ShareSettingsPopover({ share, children }: Props) { await share.save({ showLastUpdated: checked }); hasChangesRef.current = true; } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [share] @@ -162,7 +163,7 @@ function ShareSettingsPopover({ share, children }: Props) { await share.save({ showTOC: checked }); hasChangesRef.current = true; } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [share] diff --git a/app/components/Sidebar/components/Version.tsx b/app/components/Sidebar/components/Version.tsx index 66f9a8affd..1a8066b149 100644 --- a/app/components/Sidebar/components/Version.tsx +++ b/app/components/Sidebar/components/Version.tsx @@ -1,6 +1,7 @@ import { useState, useEffect } from "react"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; +import { toError } from "@shared/utils/error"; import Badge from "~/components/Badge"; import { client } from "~/utils/ApiClient"; import Logger from "~/utils/Logger"; @@ -20,7 +21,7 @@ export default function Version() { setVersionsBehind(res.data.versionsBehind); } } catch (error) { - Logger.error("Failed to load version info", error); + Logger.error("Failed to load version info", toError(error)); } } diff --git a/app/components/Sidebar/hooks/useDragAndDrop.tsx b/app/components/Sidebar/hooks/useDragAndDrop.tsx index 88e2896c16..83d9f926b6 100644 --- a/app/components/Sidebar/hooks/useDragAndDrop.tsx +++ b/app/components/Sidebar/hooks/useDragAndDrop.tsx @@ -5,6 +5,7 @@ import { useDrag, useDrop } from "react-dnd"; import { getEmptyImage } from "react-dnd-html5-backend"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Icon from "@shared/components/Icon"; import type { NavigationNode } from "@shared/types"; import type Collection from "~/models/Collection"; @@ -275,7 +276,7 @@ export function useDropToChangeCollection( ) ); } else { - toast.error(err.message); + toast.error(errToString(err)); } } } @@ -370,7 +371,7 @@ export function useDropToReparentDocument( ) ); } else { - toast.error(err.message); + toast.error(errToString(err)); } } } @@ -483,7 +484,7 @@ export function useDropToReorderDocument( }) ); } else { - toast.error(err.message); + toast.error(errToString(err)); } } } @@ -620,7 +621,7 @@ export function useDropToUnpublish() { }) ); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, canDrop: (item) => { diff --git a/app/components/UserDialogs.tsx b/app/components/UserDialogs.tsx index a6ce379f31..2d06a55f6f 100644 --- a/app/components/UserDialogs.tsx +++ b/app/components/UserDialogs.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { UserRole } from "@shared/types"; import { UserValidation } from "@shared/validations"; import type User from "~/models/User"; @@ -157,7 +158,7 @@ export const UserChangeAvatarDialog = observer(function UserChangeAvatarDialog({ await user.save({ avatarUrl }); toast.success(t("Profile picture updated")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }; @@ -205,7 +206,7 @@ export function UserChangeEmailDialog({ user, onSubmit }: Props) { ); return true; } catch (err) { - setError(err.message); + setError(errToString(err)); return false; } }; diff --git a/app/components/WebsocketProvider.tsx b/app/components/WebsocketProvider.tsx index 62c19d4bda..17009e790e 100644 --- a/app/components/WebsocketProvider.tsx +++ b/app/components/WebsocketProvider.tsx @@ -13,6 +13,7 @@ import { FileOperationType, ImportState, } from "@shared/types"; +import { toError } from "@shared/utils/error"; import type RootStore from "~/stores/RootStore"; import type Collection from "~/models/Collection"; import type Comment from "~/models/Comment"; @@ -340,7 +341,7 @@ function useDocumentHandlers() { force: event.userId === currentUserId, }); } catch (err) { - Logger.error("Failed to fetch document after add_user", err); + Logger.error("Failed to fetch document after add_user", toError(err)); } } ); @@ -439,7 +440,10 @@ function useCollectionHandlers() { try { await collections.fetch(collectionId, { force: true }); } catch (err) { - Logger.error("Failed to fetch collection after archive", err); + Logger.error( + "Failed to fetch collection after archive", + toError(err) + ); } documents.unarchivedInCollection(collectionId).forEach( @@ -475,7 +479,10 @@ function useCollectionHandlers() { try { await collections.fetch(collectionId, { force: true }); } catch (err) { - Logger.error("Failed to fetch collection after restore", err); + Logger.error( + "Failed to fetch collection after restore", + toError(err) + ); } } ); @@ -487,7 +494,7 @@ function useCollectionHandlers() { force: event.userId === currentUserId, }); } catch (err) { - Logger.error("Failed to fetch collection after add_user", err); + Logger.error("Failed to fetch collection after add_user", toError(err)); } }); @@ -505,7 +512,10 @@ function useCollectionHandlers() { try { await collections.fetch(event.collectionId!); } catch (err) { - Logger.error("Failed to fetch collection after add_group", err); + Logger.error( + "Failed to fetch collection after add_group", + toError(err) + ); } }); @@ -637,7 +647,10 @@ function useUserHandlers() { try { await collections.fetchAll(); } catch (err) { - Logger.error("Failed to fetch collections after demote", err); + Logger.error( + "Failed to fetch collections after demote", + toError(err) + ); } } }); diff --git a/app/editor/components/FloatingToolbar.tsx b/app/editor/components/FloatingToolbar.tsx index 73f5ea412f..73f8f31c25 100644 --- a/app/editor/components/FloatingToolbar.tsx +++ b/app/editor/components/FloatingToolbar.tsx @@ -68,7 +68,7 @@ function usePosition({ fromPos = view.coordsAtPos(selection.from); toPos = view.coordsAtPos(selection.to, -1); } catch (err) { - Logger.warn("Unable to calculate selection position", err); + Logger.warn("Unable to calculate selection position", { err }); return defaultPosition; } diff --git a/app/editor/components/SuggestionsMenu.tsx b/app/editor/components/SuggestionsMenu.tsx index d1a497f7e1..e2df81a4c4 100644 --- a/app/editor/components/SuggestionsMenu.tsx +++ b/app/editor/components/SuggestionsMenu.tsx @@ -108,7 +108,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { const right = Math.max(fromPos.right, toPos.right); return new DOMRect(left, top, right - left, bottom - top); } catch (err) { - Logger.warn("Unable to calculate caret position", err); + Logger.warn("Unable to calculate caret position", { err }); return new DOMRect(); } }, [props.isActive, view]); diff --git a/app/hooks/useEmbeds.ts b/app/hooks/useEmbeds.ts index aaaad31ddc..2c1c3ccc3c 100644 --- a/app/hooks/useEmbeds.ts +++ b/app/hooks/useEmbeds.ts @@ -1,5 +1,6 @@ import { find } from "es-toolkit/compat"; import { useEffect, useMemo } from "react"; +import { toError } from "@shared/utils/error"; import embeds from "@shared/editor/embeds"; import { IntegrationType, TeamPreference } from "@shared/types"; import type Integration from "~/models/Integration"; @@ -24,7 +25,7 @@ export default function useEmbeds(loadIfMissing = false) { type: IntegrationType.Embed, }); } catch (err) { - Logger.error("Failed to fetch embed integrations", err); + Logger.error("Failed to fetch embed integrations", toError(err)); } } diff --git a/app/hooks/useImportDocument.ts b/app/hooks/useImportDocument.ts index e07e9fbcd1..05d9eabf4e 100644 --- a/app/hooks/useImportDocument.ts +++ b/app/hooks/useImportDocument.ts @@ -3,6 +3,7 @@ import { useState, useCallback } from "react"; import { useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { useSidebarContext } from "~/components/Sidebar/components/SidebarContext"; import useStores from "~/hooks/useStores"; import { documentPath } from "~/utils/routeHelpers"; @@ -61,13 +62,13 @@ export default function useImportDocument( }); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { toast.dismiss(toastId); } } } catch (err) { - toast.error(`${t("Could not import file")}. ${err.message}`); + toast.error(`${t("Could not import file")}. ${errToString(err)}`); } finally { setImporting(false); importingLock = false; diff --git a/app/hooks/useRequest.ts b/app/hooks/useRequest.ts index 7bfaae3244..9061c2b812 100644 --- a/app/hooks/useRequest.ts +++ b/app/hooks/useRequest.ts @@ -29,7 +29,7 @@ export default function useRequest<T = unknown>( const [data, setData] = useState<T>(); const [loading, setLoading] = useState<boolean>(false); const [loaded, setLoaded] = useState<boolean>(false); - const [error, setError] = useState(); + const [error, setError] = useState<unknown>(); const request = useCallback(async () => { setLoading(true); diff --git a/app/hooks/useUserMenuActions.tsx b/app/hooks/useUserMenuActions.tsx index a976c6c21e..99637aa2c6 100644 --- a/app/hooks/useUserMenuActions.tsx +++ b/app/hooks/useUserMenuActions.tsx @@ -110,7 +110,9 @@ export function useUserMenuActions(targetUser: User | null) { toast.success(t(`Invite was resent to ${targetUser.name}`)); } catch (err) { toast.error( - err.message ?? t(`An error occurred while sending the invite`) + err instanceof Error + ? err.message + : t(`An error occurred while sending the invite`) ); } }, [users, targetUser, t]); diff --git a/app/models/base/Model.ts b/app/models/base/Model.ts index 901f116125..1598d14d35 100644 --- a/app/models/base/Model.ts +++ b/app/models/base/Model.ts @@ -153,7 +153,7 @@ export default abstract class Model { // @ts-expect-error TODO this[key] = data[key]; } catch (error) { - Logger.warn(`Error setting ${key} on model`, error); + Logger.warn(`Error setting ${key} on model`, { error }); } } diff --git a/app/models/decorators/Relation.ts b/app/models/decorators/Relation.ts index db100aa605..2f72755bd2 100644 --- a/app/models/decorators/Relation.ts +++ b/app/models/decorators/Relation.ts @@ -1,5 +1,6 @@ import invariant from "invariant"; import { singular } from "pluralize"; +import { toError } from "@shared/utils/error"; import type Model from "../base/Model"; import Logger from "~/utils/Logger"; @@ -61,7 +62,7 @@ export const getInverseRelationsForModelClass = (targetClass: typeof Model) => { } catch (error) { Logger.error( `Error resolving relation ${modelName}.${propertyName} for target ${targetClass.modelName}:`, - error + toError(error) ); } }); diff --git a/app/scenes/ApiKeyNew/index.tsx b/app/scenes/ApiKeyNew/index.tsx index 53064de406..6b1da73bee 100644 --- a/app/scenes/ApiKeyNew/index.tsx +++ b/app/scenes/ApiKeyNew/index.tsx @@ -3,6 +3,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import styled from "styled-components"; +import { errToString } from "@shared/utils/error"; import { ApiKeyValidation } from "@shared/validations"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; @@ -85,7 +86,7 @@ function ApiKeyNew({ onSubmit }: Props) { ); onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); } diff --git a/app/scenes/Collection/index.tsx b/app/scenes/Collection/index.tsx index 39f2d72554..59e80b2bcd 100644 --- a/app/scenes/Collection/index.tsx +++ b/app/scenes/Collection/index.tsx @@ -11,6 +11,7 @@ import { Redirect, } from "react-router-dom"; import styled from "styled-components"; +import { toError } from "@shared/utils/error"; import { s } from "@shared/styles"; import { StatusFilter } from "@shared/types"; import type Collection from "~/models/Collection"; @@ -109,7 +110,7 @@ const CollectionScene = observer(function CollectionScene_() { setError(undefined); await collections.fetch(id); } catch (err) { - setError(err); + setError(toError(err)); } } diff --git a/app/scenes/Document/components/DataLoader.tsx b/app/scenes/Document/components/DataLoader.tsx index c5fae17713..796266b6d7 100644 --- a/app/scenes/Document/components/DataLoader.tsx +++ b/app/scenes/Document/components/DataLoader.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import type { RouteComponentProps, StaticContext } from "react-router"; import { Redirect, useLocation } from "react-router"; +import { toError } from "@shared/utils/error"; import { TeamPreference } from "@shared/types"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { RevisionHelper } from "@shared/utils/RevisionHelper"; @@ -105,7 +106,7 @@ function DataLoader({ match, children }: Props) { force: missingPolicy, }); } catch (err) { - setError(err); + setError(toError(err)); } } void fetchDocument(); @@ -152,7 +153,7 @@ function DataLoader({ match, children }: Props) { documentId: document.id, }); } catch (err) { - Logger.error("Failed to fetch views", err); + Logger.error("Failed to fetch views", toError(err)); } } } diff --git a/app/scenes/Document/hooks/useDocumentSave.ts b/app/scenes/Document/hooks/useDocumentSave.ts index 54b3f3e8a5..9c6f281af5 100644 --- a/app/scenes/Document/hooks/useDocumentSave.ts +++ b/app/scenes/Document/hooks/useDocumentSave.ts @@ -5,6 +5,7 @@ import { AllSelection, TextSelection } from "prosemirror-state"; import { useState, useRef, useEffect, useCallback, useMemo } from "react"; import { useHistory } from "react-router-dom"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { TextHelper } from "@shared/utils/TextHelper"; import type Document from "~/models/Document"; @@ -182,7 +183,7 @@ export function useDocumentSave({ ui.setActiveDocument(savedDocument); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); setIsPublishing(false); @@ -341,7 +342,8 @@ export function useDocumentSave({ () => () => { autosave.cancel(); const currentDoc = editorRef.current?.view.state.doc; - const isEditorEmpty = !currentDoc || ProsemirrorHelper.isEmpty(currentDoc); + const isEditorEmpty = + !currentDoc || ProsemirrorHelper.isEmpty(currentDoc); if ( shouldAutoDeleteDraftOnUnmount({ diff --git a/app/scenes/DocumentDelete.tsx b/app/scenes/DocumentDelete.tsx index 76e370f1cc..70bc5a7afb 100644 --- a/app/scenes/DocumentDelete.tsx +++ b/app/scenes/DocumentDelete.tsx @@ -3,6 +3,7 @@ import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import { useHistory } from "react-router-dom"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import type Document from "~/models/Document"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; @@ -64,7 +65,7 @@ function DocumentDelete({ document, onSubmit }: Props) { onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setDeleting(false); } @@ -90,7 +91,7 @@ function DocumentDelete({ document, onSubmit }: Props) { await document.archive(); onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setArchiving(false); } diff --git a/app/scenes/Errors/Error403.tsx b/app/scenes/Errors/Error403.tsx index 3143bdde9e..14402cfd32 100644 --- a/app/scenes/Errors/Error403.tsx +++ b/app/scenes/Errors/Error403.tsx @@ -2,6 +2,7 @@ import { useCallback, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { useHistory, useLocation } from "react-router-dom"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Button from "~/components/Button"; import Empty from "~/components/Empty"; import Heading from "~/components/Heading"; @@ -57,7 +58,7 @@ const Error403 = ({ documentId }: Props) => { setRequested(true); toast.success(t("Access request sent")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setRequesting(false); } diff --git a/app/scenes/Invite.tsx b/app/scenes/Invite.tsx index b6a3885187..7c9cae0f4f 100644 --- a/app/scenes/Invite.tsx +++ b/app/scenes/Invite.tsx @@ -6,6 +6,7 @@ import { useTranslation, Trans } from "react-i18next"; import { Link } from "react-router-dom"; import { toast } from "sonner"; import styled from "styled-components"; +import { errToString } from "@shared/utils/error"; import { UserRole } from "@shared/types"; import { parseEmail } from "@shared/utils/email"; import { UserValidation } from "@shared/validations"; @@ -66,7 +67,7 @@ function Invite({ onSubmit }: Props) { toast.message(t("Those email addresses are already invited")); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); } diff --git a/app/scenes/Login/components/AuthenticationProvider.tsx b/app/scenes/Login/components/AuthenticationProvider.tsx index 00ad9cf7b2..4a1c67de10 100644 --- a/app/scenes/Login/components/AuthenticationProvider.tsx +++ b/app/scenes/Login/components/AuthenticationProvider.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import styled from "styled-components"; +import { errToString } from "@shared/utils/error"; import { Client } from "@shared/types"; import ButtonLarge from "~/components/ButtonLarge"; import InputLarge from "~/components/InputLarge"; @@ -122,7 +123,7 @@ function AuthenticationProvider(props: Props) { // Submit form natively to let browser handle redirect and cookies formRef.current?.submit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }; diff --git a/app/scenes/Settings/Application.tsx b/app/scenes/Settings/Application.tsx index a422d62586..55db759f7c 100644 --- a/app/scenes/Settings/Application.tsx +++ b/app/scenes/Settings/Application.tsx @@ -6,6 +6,7 @@ import { useTranslation } from "react-i18next"; import { useParams } from "react-router-dom"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { OAuthClientValidation } from "@shared/validations"; import type OAuthClient from "~/models/oauth/OAuthClient"; import Breadcrumb from "~/components/Breadcrumb"; @@ -103,7 +104,7 @@ const Application = observer(function Application({ oauthClient }: Props) { : t("Application updated") ); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } }, [oauthClient, t] @@ -115,7 +116,7 @@ const Application = observer(function Application({ oauthClient }: Props) { await oauthClient.rotateClientSecret(); toast.success(t("Client secret rotated")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }; diff --git a/app/scenes/Settings/Authentication.tsx b/app/scenes/Settings/Authentication.tsx index 07d92e3b41..6a48593538 100644 --- a/app/scenes/Settings/Authentication.tsx +++ b/app/scenes/Settings/Authentication.tsx @@ -3,6 +3,7 @@ import { EmailIcon, PadlockIcon } from "outline-icons"; import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import ConfirmationDialog from "~/components/ConfirmationDialog"; import Flex from "~/components/Flex"; import Heading from "~/components/Heading"; @@ -52,7 +53,7 @@ function Authentication() { await team.save({ guestSignin: checked }); toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [team, t] @@ -64,7 +65,7 @@ function Authentication() { await provider.save({ isEnabled }); toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [t] @@ -114,7 +115,7 @@ function Authentication() { }); toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } })(); } else { @@ -143,7 +144,7 @@ function Authentication() { }); toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [t] @@ -308,7 +309,7 @@ function Authentication() { await team.save({ passkeysEnabled: checked }); toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }} /> @@ -370,7 +371,7 @@ const DisableGroupSyncDialog = observer(function DisableGroupSyncDialog({ toast.success(t("Settings saved")); onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); } diff --git a/app/scenes/Settings/Details.tsx b/app/scenes/Settings/Details.tsx index 39582ec556..f20499be31 100644 --- a/app/scenes/Settings/Details.tsx +++ b/app/scenes/Settings/Details.tsx @@ -7,6 +7,7 @@ import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; import { ThemeProvider, useTheme } from "styled-components"; +import { errToString } from "@shared/utils/error"; import { buildDarkTheme, buildLightTheme } from "@shared/styles/theme"; import type { CustomTheme } from "@shared/types"; import { TOCPosition, TeamPreference } from "@shared/types"; @@ -110,7 +111,7 @@ function Details() { }); toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [ diff --git a/app/scenes/Settings/Profile.tsx b/app/scenes/Settings/Profile.tsx index 947f6801d3..4ee6b30051 100644 --- a/app/scenes/Settings/Profile.tsx +++ b/app/scenes/Settings/Profile.tsx @@ -3,6 +3,7 @@ import { ProfileIcon } from "outline-icons"; import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Button from "~/components/Button"; import Heading from "~/components/Heading"; import Input from "~/components/Input"; @@ -30,7 +31,7 @@ const Profile = () => { await user.save({ name }); toast.success(t("Profile saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }; diff --git a/app/scenes/Settings/Security.tsx b/app/scenes/Settings/Security.tsx index c38344a311..8b145f2e49 100644 --- a/app/scenes/Settings/Security.tsx +++ b/app/scenes/Settings/Security.tsx @@ -5,6 +5,7 @@ import { useState } from "react"; import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { TeamPreference, EmailDisplay } from "@shared/types"; import ConfirmationDialog from "~/components/ConfirmationDialog"; import Heading from "~/components/Heading"; @@ -86,7 +87,7 @@ function Security() { await team.save(newData); showSuccessMessage(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [team, showSuccessMessage] diff --git a/app/scenes/Settings/Template.tsx b/app/scenes/Settings/Template.tsx index beb9d814b7..65b6cbf891 100644 --- a/app/scenes/Settings/Template.tsx +++ b/app/scenes/Settings/Template.tsx @@ -4,6 +4,7 @@ import { useEffect, useCallback, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; import { useParams } from "react-router-dom"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import { Action } from "~/components/Actions"; import Breadcrumb from "~/components/Breadcrumb"; @@ -101,7 +102,7 @@ const TemplateSetting = observer(function Template_({ template }: Props) { await template.save(); history.push(settingsPath("templates")); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } finally { setSaving(false); } diff --git a/app/scenes/Settings/TemplateNew.tsx b/app/scenes/Settings/TemplateNew.tsx index 446c177ced..2344816e49 100644 --- a/app/scenes/Settings/TemplateNew.tsx +++ b/app/scenes/Settings/TemplateNew.tsx @@ -3,6 +3,7 @@ import { ShapesIcon } from "outline-icons"; import { useCallback, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper"; import Template from "~/models/Template"; import { Action } from "~/components/Actions"; @@ -63,7 +64,7 @@ function TemplateNewScene() { await template.save(); history.push(settingsPath("templates")); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } finally { setSaving(false); } diff --git a/app/scenes/Settings/components/DomainManagement.tsx b/app/scenes/Settings/components/DomainManagement.tsx index 48ad2eb2ae..68c3cb0481 100644 --- a/app/scenes/Settings/components/DomainManagement.tsx +++ b/app/scenes/Settings/components/DomainManagement.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; import styled from "styled-components"; +import { errToString } from "@shared/utils/error"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; import Input from "~/components/Input"; @@ -37,7 +38,7 @@ function DomainManagement({ onSuccess }: Props) { setExistingDomainsTouched(false); updateLastKnownDomainCount(allowedDomains.length); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [team, allowedDomains, onSuccess]); diff --git a/app/scenes/Settings/components/DropToImport.tsx b/app/scenes/Settings/components/DropToImport.tsx index 8e8c30b725..7d943f8c74 100644 --- a/app/scenes/Settings/components/DropToImport.tsx +++ b/app/scenes/Settings/components/DropToImport.tsx @@ -5,6 +5,7 @@ import Dropzone from "react-dropzone"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import styled from "styled-components"; +import { errToString } from "@shared/utils/error"; import { s } from "@shared/styles"; import { AttachmentPreset, @@ -89,7 +90,7 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) { ), }); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setImporting(false); setUploadProgress(0); diff --git a/app/scenes/Settings/components/FileOperationListItem.tsx b/app/scenes/Settings/components/FileOperationListItem.tsx index 7a139fc847..092f328f46 100644 --- a/app/scenes/Settings/components/FileOperationListItem.tsx +++ b/app/scenes/Settings/components/FileOperationListItem.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import { useTheme } from "styled-components"; +import { errToString } from "@shared/utils/error"; import Spinner from "@shared/components/Spinner"; import { FileOperationFormat, @@ -72,7 +73,7 @@ const FileOperationListItem = ({ fileOperation }: Props) => { toast.success(t("Export deleted")); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [fileOperation, fileOperations, t]); diff --git a/app/scenes/Settings/components/GroupDialogs.tsx b/app/scenes/Settings/components/GroupDialogs.tsx index fb8f4a9a26..d9cc9f8a66 100644 --- a/app/scenes/Settings/components/GroupDialogs.tsx +++ b/app/scenes/Settings/components/GroupDialogs.tsx @@ -3,6 +3,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Group from "~/models/Group"; import type User from "~/models/User"; import Invite from "~/scenes/Invite"; @@ -64,7 +65,7 @@ export function CreateGroupDialog() { dialogs.closeAllModals(); history.push(settingsPath("groups", group.id, "members")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); } @@ -135,7 +136,7 @@ export function EditGroupDialog({ group, onSubmit }: Props) { }); onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); } @@ -434,7 +435,7 @@ const GroupMemberListItem = observer(function ({ }); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); return false; } return true; diff --git a/app/scenes/Settings/components/ImageUpload.tsx b/app/scenes/Settings/components/ImageUpload.tsx index d5e1db53ea..fe81288e2d 100644 --- a/app/scenes/Settings/components/ImageUpload.tsx +++ b/app/scenes/Settings/components/ImageUpload.tsx @@ -6,6 +6,7 @@ import AvatarEditor from "react-avatar-editor"; import { useDropzone } from "react-dropzone"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; +import { errToString } from "@shared/utils/error"; import { s } from "@shared/styles"; import { AttachmentPreset } from "@shared/types"; import { AttachmentValidation } from "@shared/validations"; @@ -49,7 +50,7 @@ const ImageUpload: React.FC<Props> = ({ }); void onSuccess(attachment.url); } catch (err) { - onError(err.message); + onError(errToString(err)); } finally { setIsUploading(false); setIsCropping(false); diff --git a/app/scenes/Settings/components/ImportListItem.tsx b/app/scenes/Settings/components/ImportListItem.tsx index 6b098afae8..5bdef8693a 100644 --- a/app/scenes/Settings/components/ImportListItem.tsx +++ b/app/scenes/Settings/components/ImportListItem.tsx @@ -5,6 +5,7 @@ import { useMemo, useCallback } from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import { useTheme } from "styled-components"; +import { errToString } from "@shared/utils/error"; import Spinner from "@shared/components/Spinner"; import { ImportState } from "@shared/types"; import type Import from "~/models/Import"; @@ -61,7 +62,7 @@ export const ImportListItem = observer(({ importModel }: Props) => { await importModel.cancel(); toast.success(t("Import canceled")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }; @@ -88,7 +89,7 @@ export const ImportListItem = observer(({ importModel }: Props) => { await importModel.delete(); toast.success(t("Import deleted")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }; diff --git a/app/scenes/TeamDelete.tsx b/app/scenes/TeamDelete.tsx index 8a038d6682..9e4195cb58 100644 --- a/app/scenes/TeamDelete.tsx +++ b/app/scenes/TeamDelete.tsx @@ -3,6 +3,7 @@ import * as React from "react"; import { Controller, useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; import { OneTimePasswordInput } from "~/components/OneTimePasswordInput"; @@ -38,7 +39,7 @@ function TeamDelete({ onSubmit }: Props) { await auth.requestDeleteTeam(); setWaitingCode(true); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } }, [auth] @@ -56,7 +57,7 @@ function TeamDelete({ onSubmit }: Props) { }); onSubmit(); } catch (error) { - toast.error(error.message); + toast.error(errToString(error)); } }, [auth, onSubmit] diff --git a/app/scenes/TeamNew.tsx b/app/scenes/TeamNew.tsx index f228190689..9d04ceb97d 100644 --- a/app/scenes/TeamNew.tsx +++ b/app/scenes/TeamNew.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import type User from "~/models/User"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; @@ -31,7 +32,7 @@ function TeamNew({ user }: Props) { }); } } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setIsSaving(false); } diff --git a/app/scenes/UserDelete.tsx b/app/scenes/UserDelete.tsx index 914e14e4b5..a270841daa 100644 --- a/app/scenes/UserDelete.tsx +++ b/app/scenes/UserDelete.tsx @@ -3,6 +3,7 @@ import * as React from "react"; import { Controller, useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; import { OneTimePasswordInput } from "~/components/OneTimePasswordInput"; @@ -37,7 +38,7 @@ function UserDelete({ onSubmit }: Props) { await auth.requestDeleteUser(); setWaitingCode(true); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [auth] @@ -55,7 +56,7 @@ function UserDelete({ onSubmit }: Props) { }); onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [auth, onSubmit] diff --git a/app/stores/AuthStore.ts b/app/stores/AuthStore.ts index 684cf26d01..206cfe0915 100644 --- a/app/stores/AuthStore.ts +++ b/app/stores/AuthStore.ts @@ -3,6 +3,7 @@ import invariant from "invariant"; import { isNil } from "es-toolkit/compat"; import { observable, action, computed, autorun, runInAction } from "mobx"; import { getCookie, setCookie } from "tiny-cookie"; +import { toError } from "@shared/utils/error"; import type { CustomTheme } from "@shared/types"; import Storage from "@shared/utils/Storage"; import { getCookieDomain, parseDomain } from "@shared/utils/domains"; @@ -255,9 +256,20 @@ export default class AuthStore extends Store<Team> { } }); } catch (err) { - if (err.error === "user_suspended") { + if ( + err instanceof Error && + "error" in err && + err.error === "user_suspended" + ) { this.isSuspended = true; - this.suspendedContactEmail = err.data.adminEmail; + if ( + "data" in err && + err.data instanceof Object && + "adminEmail" in err.data && + typeof err.data.adminEmail === "string" + ) { + this.suspendedContactEmail = err.data.adminEmail; + } return; } throw err; @@ -342,7 +354,7 @@ export default class AuthStore extends Store<Team> { // invalidate authentication token on server and unset auth cookie await client.post(`/auth.delete`); } catch (err) { - Logger.error("Failed to delete authentication", err); + Logger.error("Failed to delete authentication", toError(err)); } } diff --git a/app/stores/UnfurlsStore.ts b/app/stores/UnfurlsStore.ts index 0714aa8a1f..0e3ea09482 100644 --- a/app/stores/UnfurlsStore.ts +++ b/app/stores/UnfurlsStore.ts @@ -1,5 +1,6 @@ import { subMinutes } from "date-fns"; import { action } from "mobx"; +import { errToString } from "@shared/utils/error"; import type { UnfurlResourceType } from "@shared/types"; import Unfurl from "~/models/Unfurl"; import { client } from "~/utils/ApiClient"; @@ -89,7 +90,7 @@ class UnfurlsStore extends Store<Unfurl<any>> { } catch (err) { Logger.warn("Failed to unfurl url", { url, - message: err.message, + message: errToString(err), }); return; } finally { diff --git a/app/typings/index.d.ts b/app/typings/index.d.ts index 38a24f9b2a..72c3d97303 100644 --- a/app/typings/index.d.ts +++ b/app/typings/index.d.ts @@ -1,5 +1,7 @@ declare module "~/utils/autotrack"; +declare module "vite/modulepreload-polyfill"; + declare module "emoji-mart"; declare module "string-replace-to-array"; diff --git a/app/typings/window.d.ts b/app/typings/window.d.ts index 23752e23ad..d5a17b6a0a 100644 --- a/app/typings/window.d.ts +++ b/app/typings/window.d.ts @@ -1,3 +1,4 @@ +/// <reference types="google.analytics" /> import type RootStore from "~/stores/RootStore"; declare global { diff --git a/app/utils/download.ts b/app/utils/download.ts index a85d25159d..ddd82cb68c 100644 --- a/app/utils/download.ts +++ b/app/utils/download.ts @@ -5,6 +5,7 @@ // v3 added dataURL and Blob Input, bind-toggle arity, and legacy dataURL fallback was improved with force-download mime and base64 support // data can be a string, Blob, File, or dataURL export default function download( + this: unknown, data: Blob | string | File, strFileName: string, strMimeType?: string diff --git a/package.json b/package.json index a3f35cf781..b60b6bf10c 100644 --- a/package.json +++ b/package.json @@ -375,7 +375,7 @@ "rimraf": "^6.1.3", "rollup-plugin-webpack-stats": "2.1.11", "terser": "^5.48.0", - "typescript": "^5.9.3", + "typescript": "^6.0.3", "unplugin-swc": "^1.5.9", "vite-plugin-babel": "^1.7.3", "vite-tsconfig-paths": "^6.1.1", diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index aa7c5e1af6..aa56a71a6c 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -4,6 +4,7 @@ import jwt from "jsonwebtoken"; import type { Context } from "koa"; import Router from "koa-router"; import type { Profile } from "passport"; +import { toError } from "@shared/utils/error"; import { slugifyDomain } from "@shared/utils/domains"; import { parseEmail } from "@shared/utils/email"; import accountProvisioner from "@server/commands/accountProvisioner"; @@ -226,7 +227,7 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { return done(null, result.user, { ...result, client }); } catch (err) { - return done(err, null); + return done(toError(err), null); } } ); diff --git a/plugins/diagrams/client/Settings.tsx b/plugins/diagrams/client/Settings.tsx index 23ac7ddeba..76f6a47526 100644 --- a/plugins/diagrams/client/Settings.tsx +++ b/plugins/diagrams/client/Settings.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { IntegrationType, IntegrationService } from "@shared/types"; import type Integration from "~/models/Integration"; import { IntegrationScene } from "~/scenes/Settings/components/IntegrationScene"; @@ -67,7 +68,7 @@ function DiagramsNet() { toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [integrations, integration, t] diff --git a/plugins/discord/server/auth/discord.ts b/plugins/discord/server/auth/discord.ts index c2a9e73f87..33b670e2d2 100644 --- a/plugins/discord/server/auth/discord.ts +++ b/plugins/discord/server/auth/discord.ts @@ -9,6 +9,7 @@ import type { Context } from "koa"; import Router from "koa-router"; import { Strategy } from "passport-oauth2"; +import { toError } from "@shared/utils/error"; import { languages } from "@shared/i18n"; import { slugifyDomain } from "@shared/utils/domains"; import { parseEmail } from "@shared/utils/email"; @@ -220,7 +221,7 @@ if (env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET) { }); return done(null, result.user, { ...result, client }); } catch (err) { - return done(err, null); + return done(toError(err), null); } } ) diff --git a/plugins/email/server/auth/email.ts b/plugins/email/server/auth/email.ts index c418e0d64b..9454444fe8 100644 --- a/plugins/email/server/auth/email.ts +++ b/plugins/email/server/auth/email.ts @@ -1,4 +1,5 @@ import Router from "koa-router"; +import { errToString } from "@shared/utils/error"; import { Client, NotificationEventType } from "@shared/types"; import { parseDomain } from "@shared/utils/domains"; import InviteAcceptedEmail from "@server/emails/templates/InviteAcceptedEmail"; @@ -161,8 +162,11 @@ const emailCallback = async (ctx: APIContext<T.EmailCallbackReq>) => { return; } } catch (err) { - Logger.debug("authentication", err); - return ctx.redirect(`/?notice=auth-error&description=${err.message}`); + const message = errToString(err); + Logger.debug("authentication", message); + return ctx.redirect( + `/?notice=auth-error&description=${encodeURIComponent(message)}` + ); } if (!user) { diff --git a/plugins/figma/server/api/figma.ts b/plugins/figma/server/api/figma.ts index 9786c693b3..3ec95f74a0 100644 --- a/plugins/figma/server/api/figma.ts +++ b/plugins/figma/server/api/figma.ts @@ -1,3 +1,4 @@ +import { toError } from "@shared/utils/error"; import auth from "@server/middlewares/authentication"; import Router from "koa-router"; import * as T from "./schema"; @@ -102,7 +103,10 @@ router.get( ctx.redirect(FigmaUtils.successUrl()); } catch (err) { - Logger.error("Encountered error during Figma OAuth callback", err); + Logger.error( + "Encountered error during Figma OAuth callback", + toError(err) + ); ctx.redirect(FigmaUtils.errorUrl("unknown")); } } diff --git a/plugins/figma/server/figma.ts b/plugins/figma/server/figma.ts index 569636908a..5c28ac63e6 100644 --- a/plugins/figma/server/figma.ts +++ b/plugins/figma/server/figma.ts @@ -1,4 +1,5 @@ import { z } from "zod"; +import { toError } from "@shared/utils/error"; import fetch from "@server/utils/fetch"; import env from "./env"; import { FigmaUtils } from "../shared/FigmaUtils"; @@ -173,7 +174,7 @@ export class Figma { } catch (err) { Logger.error( `Error fetching Figma file metadata for integration ${integration.id}`, - err + toError(err) ); } } diff --git a/plugins/github/server/github.ts b/plugins/github/server/github.ts index f25aba9e51..fcb067675c 100644 --- a/plugins/github/server/github.ts +++ b/plugins/github/server/github.ts @@ -8,6 +8,7 @@ import { Sequelize } from "sequelize"; import type { Endpoints, OctokitResponse } from "@octokit/types"; import { Octokit } from "octokit"; import pluralize from "pluralize"; +import { toError, errToString } from "@shared/utils/error"; import type { IntegrationType } from "@shared/types"; import { IntegrationService, UnfurlResourceType } from "@shared/types"; import Logger from "@server/logging/Logger"; @@ -385,8 +386,10 @@ export class GitHub { return GitHub.transformData(res.data, resource.type); } catch (err) { - Logger.warn("Failed to fetch resource from GitHub", err); - return { error: err.message || "Unknown error" }; + Logger.warn("Failed to fetch resource from GitHub", toError(err)); + return { + error: errToString(err) || "Unknown error", + }; } }; @@ -398,7 +401,7 @@ export class GitHub { try { project = await client.requestProject(resource); } catch (err) { - Logger.warn("Failed to fetch project from GitHub", err); + Logger.warn("Failed to fetch project from GitHub", toError(err)); return { error: "Resource not found" }; } diff --git a/plugins/gitlab/client/components/GitLabConnectDialog.tsx b/plugins/gitlab/client/components/GitLabConnectDialog.tsx index 03b3c62032..da60ddca99 100644 --- a/plugins/gitlab/client/components/GitLabConnectDialog.tsx +++ b/plugins/gitlab/client/components/GitLabConnectDialog.tsx @@ -2,6 +2,7 @@ import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import styled from "styled-components"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { s } from "@shared/styles"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; @@ -39,7 +40,7 @@ function GitLabConnectDialog() { dialogs.closeAllModals(); redirectTo(res.data.redirectUrl); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } finally { setSaving(false); } diff --git a/plugins/gitlab/server/GitLabIssueProvider.ts b/plugins/gitlab/server/GitLabIssueProvider.ts index 390a376a70..2bb6425443 100644 --- a/plugins/gitlab/server/GitLabIssueProvider.ts +++ b/plugins/gitlab/server/GitLabIssueProvider.ts @@ -1,3 +1,4 @@ +import { toError } from "@shared/utils/error"; import type { IssueSource } from "@shared/schema"; import { IntegrationService, type IntegrationType } from "@shared/types"; import Logger from "@server/logging/Logger"; @@ -69,7 +70,7 @@ export class GitLabIssueProvider extends BaseIssueProvider { })) ); } catch (err) { - Logger.warn("Failed to fetch projects from GitLab", err); + Logger.warn("Failed to fetch projects from GitLab", toError(err)); } return sources; diff --git a/plugins/gitlab/server/api/gitlab.ts b/plugins/gitlab/server/api/gitlab.ts index c1a74dd7f8..fb50b85b17 100644 --- a/plugins/gitlab/server/api/gitlab.ts +++ b/plugins/gitlab/server/api/gitlab.ts @@ -1,5 +1,6 @@ import Router from "koa-router"; import { Op } from "sequelize"; +import { toError } from "@shared/utils/error"; import { IntegrationService, IntegrationType } from "@shared/types"; import { createContext } from "@server/context"; import { ValidationError } from "@server/errors"; @@ -284,7 +285,10 @@ router.get( ctx.redirect(GitLabUtils.url); } catch (err) { - Logger.error("Encountered error during Gitlab OAuth callback", err); + Logger.error( + "Encountered error during Gitlab OAuth callback", + toError(err) + ); ctx.redirect(GitLabUtils.errorUrl("unauthenticated")); } } diff --git a/plugins/gitlab/server/gitlab.ts b/plugins/gitlab/server/gitlab.ts index 2f90abe6c7..ae3528cebb 100644 --- a/plugins/gitlab/server/gitlab.ts +++ b/plugins/gitlab/server/gitlab.ts @@ -11,6 +11,7 @@ import { IntegrationService, UnfurlResourceType, } from "@shared/types"; +import { toError, errToString } from "@shared/utils/error"; import Logger from "@server/logging/Logger"; import type { User } from "@server/models"; import { Integration, IntegrationAuthentication } from "@server/models"; @@ -267,8 +268,10 @@ export class GitLab { return { error: "Resource not found" }; } catch (err) { - Logger.warn("Failed to fetch resource from GitLab", err); - return { error: err.message || "Unknown error" }; + Logger.warn("Failed to fetch resource from GitLab", toError(err)); + return { + error: errToString(err) || "Unknown error", + }; } }; diff --git a/plugins/google/server/auth/google.ts b/plugins/google/server/auth/google.ts index 8e4d0f83c0..ec3c0fa775 100644 --- a/plugins/google/server/auth/google.ts +++ b/plugins/google/server/auth/google.ts @@ -4,6 +4,7 @@ import Router from "koa-router"; import { capitalize } from "es-toolkit/compat"; import type { Profile } from "passport"; import { Strategy as GoogleStrategy } from "passport-google-oauth2"; +import { toError } from "@shared/utils/error"; import { languages } from "@shared/i18n"; import { slugifyDomain } from "@shared/utils/domains"; import accountProvisioner from "@server/commands/accountProvisioner"; @@ -159,7 +160,7 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { return done(null, result.user, { ...result, client }); } catch (err) { - return done(err, null); + return done(toError(err), null); } } ) diff --git a/plugins/googleanalytics/client/Settings.tsx b/plugins/googleanalytics/client/Settings.tsx index 1a8b885eb4..de046e3e17 100644 --- a/plugins/googleanalytics/client/Settings.tsx +++ b/plugins/googleanalytics/client/Settings.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { IntegrationType, IntegrationService } from "@shared/types"; import type Integration from "~/models/Integration"; import { IntegrationScene } from "~/scenes/Settings/components/IntegrationScene"; @@ -63,7 +64,7 @@ function GoogleAnalytics() { toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [integrations, integration, t] diff --git a/plugins/iframely/server/iframely.ts b/plugins/iframely/server/iframely.ts index 13f7930578..cdf784e6b0 100644 --- a/plugins/iframely/server/iframely.ts +++ b/plugins/iframely/server/iframely.ts @@ -1,3 +1,4 @@ +import { toError, errToString } from "@shared/utils/error"; import type { JSONObject } from "@shared/types"; import { UnfurlResourceType } from "@shared/types"; import Logger from "@server/logging/Logger"; @@ -29,8 +30,13 @@ class Iframely { ); return await res.json(); } catch (err) { - Logger.error(`Error fetching data from Iframely for url: ${url}`, err); - return { error: err.message || "Unknown error" }; + Logger.error( + `Error fetching data from Iframely for url: ${url}`, + toError(err) + ); + return { + error: errToString(err) || "Unknown error", + }; } } diff --git a/plugins/linear/server/api/linear.ts b/plugins/linear/server/api/linear.ts index ab10230011..03c64c5ac5 100644 --- a/plugins/linear/server/api/linear.ts +++ b/plugins/linear/server/api/linear.ts @@ -1,4 +1,5 @@ import Router from "koa-router"; +import { toError } from "@shared/utils/error"; import { IntegrationService, IntegrationType } from "@shared/types"; import { ValidationError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -107,7 +108,10 @@ router.get( ctx.redirect(LinearUtils.successUrl()); } catch (err) { - Logger.error("Encountered error during Linear OAuth callback", err); + Logger.error( + "Encountered error during Linear OAuth callback", + toError(err) + ); ctx.redirect(LinearUtils.errorUrl("unknown")); } } diff --git a/plugins/linear/server/linear.ts b/plugins/linear/server/linear.ts index 85a8376430..ff4da75d0d 100644 --- a/plugins/linear/server/linear.ts +++ b/plugins/linear/server/linear.ts @@ -1,5 +1,6 @@ import type { Issue, WorkflowState } from "@linear/sdk"; import { LinearClient } from "@linear/sdk"; +import { toError } from "@shared/utils/error"; import fetch from "@server/utils/fetch"; import { sortBy } from "es-toolkit/compat"; import { z } from "zod"; @@ -155,8 +156,9 @@ export class Linear { return; } } catch (err) { - Logger.warn("Failed to fetch resource from Linear", err); - return { error: err.message || "Unknown error" }; + const error = toError(err); + Logger.warn("Failed to fetch resource from Linear", error); + return { error: error.message || "Unknown error" }; } }; diff --git a/plugins/linear/server/uninstall.ts b/plugins/linear/server/uninstall.ts index 7c3108576a..aba0d8f533 100644 --- a/plugins/linear/server/uninstall.ts +++ b/plugins/linear/server/uninstall.ts @@ -1,3 +1,4 @@ +import { toError } from "@shared/utils/error"; import type { IntegrationType } from "@shared/types"; import { IntegrationService } from "@shared/types"; import Logger from "@server/logging/Logger"; @@ -21,6 +22,6 @@ export async function uninstall( await Linear.revokeAccess(authentication.token); } catch (err) { // suppress error since this is a best-effort operation. - Logger.error("Failed to revoke Linear access token", err); + Logger.error("Failed to revoke Linear access token", toError(err)); } } diff --git a/plugins/matomo/client/Settings.tsx b/plugins/matomo/client/Settings.tsx index 2c1a2e3e59..7de1f35699 100644 --- a/plugins/matomo/client/Settings.tsx +++ b/plugins/matomo/client/Settings.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { IntegrationType, IntegrationService } from "@shared/types"; import type Integration from "~/models/Integration"; import { IntegrationScene } from "~/scenes/Settings/components/IntegrationScene"; @@ -71,7 +72,7 @@ function Matomo() { toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [integrations, integration, t] diff --git a/plugins/notion/client/components/ImportDialog.tsx b/plugins/notion/client/components/ImportDialog.tsx index 64d3562e9d..b3d9c4e3fc 100644 --- a/plugins/notion/client/components/ImportDialog.tsx +++ b/plugins/notion/client/components/ImportDialog.tsx @@ -1,6 +1,7 @@ import React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import type { ImportInput } from "@shared/schema"; import type { CollectionPermission } from "@shared/types"; import { IntegrationService } from "@shared/types"; @@ -50,7 +51,7 @@ export function ImportDialog({ integrationId, onSubmit }: Props) { onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); resetSubmitting(); } }, [ diff --git a/plugins/oidc/server/auth/oidc.ts b/plugins/oidc/server/auth/oidc.ts index 13df3df081..bee28857af 100644 --- a/plugins/oidc/server/auth/oidc.ts +++ b/plugins/oidc/server/auth/oidc.ts @@ -1,4 +1,5 @@ import Router from "koa-router"; +import { toError } from "@shared/utils/error"; import Logger from "@server/logging/Logger"; import env from "../env"; import { fetchOIDCConfiguration } from "../oidcDiscovery"; @@ -63,7 +64,7 @@ if (hasManualConfig) { return router; } catch (error) { - Logger.fatal("Failed to discover OIDC configuration", error); + Logger.fatal("Failed to discover OIDC configuration", toError(error)); throw error; } })(); diff --git a/plugins/oidc/server/auth/oidcRouter.ts b/plugins/oidc/server/auth/oidcRouter.ts index 131b5300eb..07aba58190 100644 --- a/plugins/oidc/server/auth/oidcRouter.ts +++ b/plugins/oidc/server/auth/oidcRouter.ts @@ -3,6 +3,7 @@ import JWT from "jsonwebtoken"; import type { Context } from "koa"; import type Router from "koa-router"; import { get } from "es-toolkit/compat"; +import { toError } from "@shared/utils/error"; import { slugifyDomain } from "@shared/utils/domains"; import { parseEmail } from "@shared/utils/email"; import { isBase64Url } from "@shared/utils/urls"; @@ -110,7 +111,7 @@ export function createOIDCRouter( sub?: string; }; } catch (err) { - Logger.error("id_token decode threw error: ", err); + Logger.error("id_token decode threw error: ", toError(err)); return {}; } })(); @@ -233,7 +234,7 @@ export function createOIDCRouter( }); return done(null, result.user, { ...result, client }); } catch (err) { - return done(err, null); + return done(toError(err), null); } } ) diff --git a/plugins/oidc/server/oidcDiscovery.ts b/plugins/oidc/server/oidcDiscovery.ts index 61d66aa37e..5474eb95ea 100644 --- a/plugins/oidc/server/oidcDiscovery.ts +++ b/plugins/oidc/server/oidcDiscovery.ts @@ -1,3 +1,4 @@ +import { toError } from "@shared/utils/error"; import { InternalError } from "@server/errors"; import Logger from "@server/logging/Logger"; import fetch from "@server/utils/fetch"; @@ -85,7 +86,7 @@ export async function fetchOIDCConfiguration( return config; } catch (error) { - Logger.error("Failed to fetch OIDC configuration", error); + Logger.error("Failed to fetch OIDC configuration", toError(error)); throw error; } } diff --git a/plugins/passkeys/client/Settings.tsx b/plugins/passkeys/client/Settings.tsx index 4b96b1f0ef..dd736ee1ba 100644 --- a/plugins/passkeys/client/Settings.tsx +++ b/plugins/passkeys/client/Settings.tsx @@ -1,4 +1,5 @@ import { startRegistration } from "@simplewebauthn/browser"; +import { errToString } from "@shared/utils/error"; import type { JSONObject } from "@shared/types"; import { observer } from "mobx-react"; import { KeyIcon, PlusIcon } from "outline-icons"; @@ -78,7 +79,7 @@ function PasskeysSettings() { await loadPasskeys(); } catch (err) { toast.error( - err.message || t("Failed to register passkey. Please try again.") + errToString(err) || t("Failed to register passkey. Please try again.") ); } finally { setIsRegistering(false); @@ -113,7 +114,8 @@ function PasskeysSettings() { await loadPasskeys(); } catch (err) { toast.error( - err.message || t("Failed to delete passkey. Please try again.") + errToString(err) || + t("Failed to delete passkey. Please try again.") ); } }} diff --git a/plugins/passkeys/client/components/RenamePasskeyDialog.tsx b/plugins/passkeys/client/components/RenamePasskeyDialog.tsx index 38bd6033f1..9746ec34e2 100644 --- a/plugins/passkeys/client/components/RenamePasskeyDialog.tsx +++ b/plugins/passkeys/client/components/RenamePasskeyDialog.tsx @@ -2,6 +2,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import Button from "~/components/Button"; import Flex from "~/components/Flex"; import Input from "~/components/Input"; @@ -44,7 +45,7 @@ function RenamePasskeyDialog({ onSuccess(); } catch (err) { toast.error( - err.message || t("Failed to update passkey. Please try again.") + errToString(err) || t("Failed to update passkey. Please try again.") ); } finally { setIsSaving(false); diff --git a/plugins/passkeys/server/auth/passkeys.ts b/plugins/passkeys/server/auth/passkeys.ts index c7b4fd4405..621326987f 100644 --- a/plugins/passkeys/server/auth/passkeys.ts +++ b/plugins/passkeys/server/auth/passkeys.ts @@ -8,6 +8,7 @@ import { isoBase64URL } from "@simplewebauthn/server/helpers"; import type { AuthenticatorTransportFuture } from "@simplewebauthn/server"; import Router from "koa-router"; import { randomBytes } from "node:crypto"; +import { toError } from "@shared/utils/error"; import { User, UserPasskey, Team } from "@server/models"; import auth from "@server/middlewares/authentication"; import validate from "@server/middlewares/validate"; @@ -156,7 +157,7 @@ router.post( expectedRPID: getRpID(ctx), }); } catch (error) { - const err = error instanceof Error ? error : new Error(String(error)); + const err = toError(error); Logger.error("passkeys: Registration verification failed", err); throw ValidationError(err.message); } @@ -306,7 +307,10 @@ router.post( }, }); } catch (err) { - Logger.error("passkeys: Authentication verification failed", err); + Logger.error( + "passkeys: Authentication verification failed", + toError(err) + ); throw ValidationError("Passkey authentication failed. Please try again."); } diff --git a/plugins/search-postgres/server/PostgresSearchProvider.ts b/plugins/search-postgres/server/PostgresSearchProvider.ts index 0be0eef517..49653aeb5f 100644 --- a/plugins/search-postgres/server/PostgresSearchProvider.ts +++ b/plugins/search-postgres/server/PostgresSearchProvider.ts @@ -264,7 +264,10 @@ export default class PostgresSearchProvider extends BaseSearchProvider { count, }); } catch (err) { - if (err.message.includes("syntax error in tsquery")) { + if ( + err instanceof Error && + err.message.includes("syntax error in tsquery") + ) { throw ValidationError("Invalid search query"); } throw err; @@ -456,7 +459,10 @@ export default class PostgresSearchProvider extends BaseSearchProvider { count, }); } catch (err) { - if (err.message.includes("syntax error in tsquery")) { + if ( + err instanceof Error && + err.message.includes("syntax error in tsquery") + ) { throw ValidationError("Invalid search query"); } throw err; diff --git a/plugins/slack/server/api/hooks.ts b/plugins/slack/server/api/hooks.ts index 95a86873cd..3c1431f522 100644 --- a/plugins/slack/server/api/hooks.ts +++ b/plugins/slack/server/api/hooks.ts @@ -3,6 +3,7 @@ import Router from "koa-router"; import { escapeRegExp } from "es-toolkit/compat"; import queryString from "query-string"; import { z } from "zod"; +import { toError } from "@shared/utils/error"; import { IntegrationService, IntegrationType } from "@shared/types"; import parseDocumentSlug from "@shared/utils/parseDocumentSlug"; import { @@ -155,7 +156,7 @@ router.post( callback_id = parsed.callback_id; token = parsed.token; } catch (err) { - Logger.error("Failed to parse Slack interactive payload", err, { + Logger.error("Failed to parse Slack interactive payload", toError(err), { payload, }); throw ValidationError("Invalid payload"); diff --git a/plugins/slack/server/auth/slack.ts b/plugins/slack/server/auth/slack.ts index b33c6cf53f..06d31a9cc5 100644 --- a/plugins/slack/server/auth/slack.ts +++ b/plugins/slack/server/auth/slack.ts @@ -3,6 +3,7 @@ import type { Context } from "koa"; import Router from "koa-router"; import type { Profile } from "passport"; import { Strategy as SlackStrategy } from "passport-slack-oauth2"; +import { toError } from "@shared/utils/error"; import { IntegrationService, IntegrationType } from "@shared/types"; import accountProvisioner from "@server/commands/accountProvisioner"; import { ValidationError } from "@server/errors"; @@ -128,7 +129,7 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) { }); return done(null, result.user, { ...result, client }); } catch (err) { - return done(err, null); + return done(toError(err), null); } } ); diff --git a/plugins/slack/server/slack.ts b/plugins/slack/server/slack.ts index 2bb6c984a3..41a0fe3852 100644 --- a/plugins/slack/server/slack.ts +++ b/plugins/slack/server/slack.ts @@ -1,4 +1,5 @@ import querystring, { type ParsedUrlQueryInput } from "node:querystring"; +import { errToString } from "@shared/utils/error"; import { InvalidRequestError } from "@server/errors"; import fetch from "@server/utils/fetch"; import { SlackUtils } from "../shared/SlackUtils"; @@ -31,7 +32,7 @@ export async function post( }); data = await response.json(); } catch (err) { - throw InvalidRequestError(err.message); + throw InvalidRequestError(errToString(err)); } if (!data.ok) { @@ -76,7 +77,7 @@ export async function request( }); data = await response.json(); } catch (err) { - throw InvalidRequestError(err.message); + throw InvalidRequestError(errToString(err)); } if (!data.ok) { diff --git a/plugins/storage/server/api/files.ts b/plugins/storage/server/api/files.ts index 009ffccfd1..9bfe73fe99 100644 --- a/plugins/storage/server/api/files.ts +++ b/plugins/storage/server/api/files.ts @@ -70,7 +70,7 @@ router.post( try { await attachment.writeFile(file); } catch (err) { - if (err.message.includes("permission denied")) { + if (err instanceof Error && err.message.includes("permission denied")) { throw Error( `Permission denied writing to "${key}". Check the host machine file system permissions.` ); diff --git a/plugins/storage/server/index.ts b/plugins/storage/server/index.ts index f428f3a899..d5a9f20321 100644 --- a/plugins/storage/server/index.ts +++ b/plugins/storage/server/index.ts @@ -1,4 +1,5 @@ import { existsSync, mkdirSync } from "node:fs"; +import { toError } from "@shared/utils/error"; import env from "@server/env"; import Logger from "@server/logging/Logger"; import { @@ -18,7 +19,7 @@ if (env.FILE_STORAGE === "local") { } catch (err) { Logger.fatal( `Failed to create directory for local file storage at ${env.FILE_STORAGE_LOCAL_ROOT_DIR}`, - err + toError(err) ); } } diff --git a/plugins/umami/client/Settings.tsx b/plugins/umami/client/Settings.tsx index c89c0a938f..0f26e79e06 100644 --- a/plugins/umami/client/Settings.tsx +++ b/plugins/umami/client/Settings.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import { useForm } from "react-hook-form"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import { IntegrationType, IntegrationService } from "@shared/types"; import type Integration from "~/models/Integration"; import { IntegrationScene } from "~/scenes/Settings/components/IntegrationScene"; @@ -75,7 +76,7 @@ function Umami() { toast.success(t("Settings saved")); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [integrations, integration, t] diff --git a/plugins/webhooks/client/components/WebhookSubscriptionEdit.tsx b/plugins/webhooks/client/components/WebhookSubscriptionEdit.tsx index 5d224812a2..5204b50406 100644 --- a/plugins/webhooks/client/components/WebhookSubscriptionEdit.tsx +++ b/plugins/webhooks/client/components/WebhookSubscriptionEdit.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import type WebhookSubscription from "~/models/WebhookSubscription"; import WebhookSubscriptionForm from "./WebhookSubscriptionForm"; @@ -33,7 +34,7 @@ function WebhookSubscriptionEdit({ onSubmit, webhookSubscription }: Props) { toast.success(t("Webhook updated")); onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [t, onSubmit, webhookSubscription] diff --git a/plugins/webhooks/client/components/WebhookSubscriptionNew.tsx b/plugins/webhooks/client/components/WebhookSubscriptionNew.tsx index 4acdc67a1a..306074ff58 100644 --- a/plugins/webhooks/client/components/WebhookSubscriptionNew.tsx +++ b/plugins/webhooks/client/components/WebhookSubscriptionNew.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; import useStores from "~/hooks/useStores"; import WebhookSubscriptionForm from "./WebhookSubscriptionForm"; @@ -32,7 +33,7 @@ function WebhookSubscriptionNew({ onSubmit }: Props) { toast.success(t("Webhook created")); onSubmit(); } catch (err) { - toast.error(err.message); + toast.error(errToString(err)); } }, [t, onSubmit, webhookSubscriptions] diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts index 7fe6f088f0..d622995911 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts @@ -1,5 +1,6 @@ import { FetchError } from "node-fetch"; import { Op } from "sequelize"; +import { toError } from "@shared/utils/error"; import { colorPalette } from "@shared/utils/collections"; import WebhookDisabledEmail from "@server/emails/templates/WebhookDisabledEmail"; import env from "@server/env"; @@ -815,13 +816,14 @@ export default class DeliverWebhookTask extends BaseTask<Props> { }); status = response.ok ? "success" : "failed"; } catch (err) { + const error = toError(err); if (isExpectedNetworkError(err) && env.isCloudHosted) { - Logger.warn(`Failed to send webhook: ${err.message}`, { + Logger.warn(`Failed to send webhook: ${error.message}`, { event, deliveryId: delivery.id, }); } else { - Logger.error("Failed to send webhook", err, { + Logger.error("Failed to send webhook", error, { event, deliveryId: delivery.id, }); @@ -857,10 +859,14 @@ export default class DeliverWebhookTask extends BaseTask<Props> { try { await this.checkAndDisableSubscription(subscription); } catch (err) { - Logger.error("Failed to check and disable recent deliveries", err, { - event, - deliveryId: delivery.id, - }); + Logger.error( + "Failed to check and disable recent deliveries", + toError(err), + { + event, + deliveryId: delivery.id, + } + ); } } } diff --git a/server/__mocks__/bull.ts b/server/__mocks__/bull.ts index aea7a2f13b..1fe4350589 100644 --- a/server/__mocks__/bull.ts +++ b/server/__mocks__/bull.ts @@ -1,4 +1,6 @@ export default class Queue { + handler?: (job: unknown, done: () => void) => void; + done() { // } @@ -15,7 +17,7 @@ export default class Queue { return 0; } - add = function (data: unknown) { + add(data: unknown) { const job = this.createJob(data); if (!this.handler) { @@ -23,19 +25,19 @@ export default class Queue { } this.handler(job, this.done); - }; + } - process = function (handler: (job: unknown, done: () => void) => void) { + process(handler: (job: unknown, done: () => void) => void) { if (this.handler) { throw Error("Cannot define a handler more than once per Queue instance"); } this.handler = handler; - }; + } - createJob = function (data: unknown) { + createJob(data: unknown) { return { data, }; - }; + } } diff --git a/server/collaboration/PersistenceExtension.ts b/server/collaboration/PersistenceExtension.ts index 1362bc93de..b73e697b88 100644 --- a/server/collaboration/PersistenceExtension.ts +++ b/server/collaboration/PersistenceExtension.ts @@ -5,6 +5,7 @@ import type { Extension, } from "@hocuspocus/server"; import * as Y from "yjs"; +import { toError } from "@shared/utils/error"; import Logger from "@server/logging/Logger"; import { trace } from "@server/logging/tracing"; import Document from "@server/models/Document"; @@ -135,7 +136,7 @@ export default class PersistenceExtension implements Extension { clientVersion, }); } catch (err) { - Logger.error("Unable to persist document", err, { + Logger.error("Unable to persist document", toError(err), { documentId, userId: context.user?.id, }); diff --git a/server/commands/accountProvisioner.test.ts b/server/commands/accountProvisioner.test.ts index 9be87981d2..32fec40274 100644 --- a/server/commands/accountProvisioner.test.ts +++ b/server/commands/accountProvisioner.test.ts @@ -1,5 +1,6 @@ import { faker } from "@faker-js/faker"; import { randomUUID } from "node:crypto"; +import { errToString } from "@shared/utils/error"; import { TeamDomain } from "@server/models"; import Collection from "@server/models/Collection"; import UserAuthentication from "@server/models/UserAuthentication"; @@ -184,7 +185,9 @@ describe("accountProvisioner", () => { } expect(error).toBeTruthy(); - expect(error.id).toEqual("invalid_authentication"); + expect( + error instanceof Error && "id" in error ? error.id : undefined + ).toEqual("invalid_authentication"); }); it("should throw an error when authentication provider is disabled", async () => { @@ -533,7 +536,7 @@ describe("accountProvisioner", () => { error = err; } - expect(error.message).toEqual("Invalid authentication"); + expect(errToString(error)).toEqual("Invalid authentication"); }); it("should always use existing team if self-hosted", async () => { diff --git a/server/commands/accountProvisioner.ts b/server/commands/accountProvisioner.ts index 7a81d1231d..6fc22929e3 100644 --- a/server/commands/accountProvisioner.ts +++ b/server/commands/accountProvisioner.ts @@ -1,6 +1,7 @@ import path from "node:path"; import { readFile } from "fs-extra"; import invariant from "invariant"; +import { toError, errToString } from "@shared/utils/error"; import { CollectionPermission, UserRole } from "@shared/types"; import env from "@server/env"; import { @@ -136,7 +137,11 @@ async function accountProvisioner( } catch (err) { // The account could not be provisioned for the provided teamId // check to see if we can try authentication using email matching only - if (err.id === "invalid_authentication") { + if ( + err instanceof Error && + "id" in err && + err.id === "invalid_authentication" + ) { const authProvider = await AuthenticationProvider.findOne({ where: { name: authenticationProviderParams.name, @@ -163,10 +168,10 @@ async function accountProvisioner( } if (!result) { - if (err.id) { + if (err instanceof Error && "id" in err && err.id) { throw err; } else { - throw InvalidAuthenticationError(err.message); + throw InvalidAuthenticationError(errToString(err)); } } } @@ -260,7 +265,7 @@ async function accountProvisioner( }); } catch (err) { // Group sync failure should never block login - Logger.error("Group sync failed during login", err, { + Logger.error("Group sync failed during login", toError(err), { userId: user.id, provider: authenticationProviderParams.name, }); diff --git a/server/commands/documentImporter.test.ts b/server/commands/documentImporter.test.ts index 1f6a32f067..6e81b3ac25 100644 --- a/server/commands/documentImporter.test.ts +++ b/server/commands/documentImporter.test.ts @@ -1,5 +1,6 @@ import path from "node:path"; import fs from "fs-extra"; +import { errToString } from "@shared/utils/error"; import { createContext } from "@server/context"; import Attachment from "@server/models/Attachment"; import { sequelize } from "@server/storage/database"; @@ -103,7 +104,7 @@ describe("documentImporter", () => { }) ); } catch (err) { - error = err.message; + error = errToString(err); } expect(error).toEqual("File type application/octet-stream not supported"); @@ -278,7 +279,7 @@ describe("documentImporter", () => { }) ); } catch (err) { - error = err.message; + error = errToString(err); } expect(error).toEqual("File type executable/zip not supported"); diff --git a/server/commands/documentPermanentDeleter.test.ts b/server/commands/documentPermanentDeleter.test.ts index eaa13ccb3a..af6809bfca 100644 --- a/server/commands/documentPermanentDeleter.test.ts +++ b/server/commands/documentPermanentDeleter.test.ts @@ -1,4 +1,5 @@ import { subDays } from "date-fns"; +import { errToString } from "@shared/utils/error"; import { Attachment, Document } from "@server/models"; import { buildAttachment, buildDocument } from "@server/test/factories"; import { mockTaskSchedule } from "@server/test/support"; @@ -33,7 +34,7 @@ describe("documentPermanentDeleter", () => { try { await documentPermanentDeleter([document]); } catch (err) { - error = err.message; + error = errToString(err); } expect(error).toEqual( diff --git a/server/commands/teamPermanentDeleter.test.ts b/server/commands/teamPermanentDeleter.test.ts index b1b5730427..4b83b008e8 100644 --- a/server/commands/teamPermanentDeleter.test.ts +++ b/server/commands/teamPermanentDeleter.test.ts @@ -14,6 +14,7 @@ import { buildDocument, buildImport, } from "@server/test/factories"; +import { errToString } from "@shared/utils/error"; import teamPermanentDeleter from "./teamPermanentDeleter"; describe("teamPermanentDeleter", () => { @@ -207,7 +208,7 @@ describe("teamPermanentDeleter", () => { try { await teamPermanentDeleter(team); } catch (err) { - error = err.message; + error = errToString(err); } expect(error).toEqual( diff --git a/server/commands/teamProvisioner.test.ts b/server/commands/teamProvisioner.test.ts index 7f514a4e8d..1505e7cc82 100644 --- a/server/commands/teamProvisioner.test.ts +++ b/server/commands/teamProvisioner.test.ts @@ -151,7 +151,9 @@ describe("teamProvisioner", () => { } catch (e) { error = e; } - expect(error.id).toEqual("invalid_authentication"); + expect( + error instanceof Error && "id" in error ? error.id : undefined + ).toEqual("invalid_authentication"); }); }); diff --git a/server/emails/mailer.tsx b/server/emails/mailer.tsx index 0c6517a38c..a6a218b88d 100644 --- a/server/emails/mailer.tsx +++ b/server/emails/mailer.tsx @@ -3,6 +3,7 @@ import type { Transporter } from "nodemailer"; import nodemailer from "nodemailer"; import type SMTPTransport from "nodemailer/lib/smtp-transport"; import Oy from "oy-vey"; +import { toError } from "@shared/utils/error"; import env from "@server/env"; import { InternalError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -216,7 +217,7 @@ export class Mailer { ); } } catch (err) { - Logger.error(`Error sending email to ${data.to}`, err); + Logger.error(`Error sending email to ${data.to}`, toError(err)); throw err; // Re-throw for queue to re-try } }; diff --git a/server/emails/templates/BaseEmail.tsx b/server/emails/templates/BaseEmail.tsx index 03fa1b3a3a..0d1bbe0fe2 100644 --- a/server/emails/templates/BaseEmail.tsx +++ b/server/emails/templates/BaseEmail.tsx @@ -5,6 +5,7 @@ import invariant from "invariant"; import { t as i18nT } from "i18next"; import { subMinutes } from "date-fns"; import type { Node } from "prosemirror-model"; +import { toError } from "@shared/utils/error"; import { randomString } from "@shared/random"; import { TeamPreference } from "@shared/types"; import { unicodeCLDRtoBCP47 } from "@shared/utils/date"; @@ -194,7 +195,11 @@ export default abstract class BaseEmail< notification.emailedAt = new Date(); await notification.save(); } catch (err) { - Logger.error(`Failed to update notification`, err, this.metadata); + Logger.error( + `Failed to update notification`, + toError(err), + this.metadata + ); } } } diff --git a/server/index.ts b/server/index.ts index 549244b1a5..f7a2c0f708 100644 --- a/server/index.ts +++ b/server/index.ts @@ -1,5 +1,6 @@ /* oxlint-disable @typescript-eslint/no-misused-promises */ /* oxlint-disable import/order */ +import { toError } from "@shared/utils/error"; import env from "./env"; import "./logging/tracer"; // must come before importing any instrumented module @@ -159,7 +160,7 @@ async function start(_id: number, disconnect: () => void) { try { await sequelize.query("SELECT 1"); } catch (err) { - Logger.error("Database connection failed", err); + Logger.error("Database connection failed", toError(err)); ctx.status = 500; return; } @@ -167,7 +168,7 @@ async function start(_id: number, disconnect: () => void) { try { await Redis.defaultClient.ping(); } catch (err) { - Logger.error("Redis ping failed", err); + Logger.error("Redis ping failed", toError(err)); ctx.status = 500; return; } diff --git a/server/middlewares/apexAuthRedirect.ts b/server/middlewares/apexAuthRedirect.ts index 44d2ccf3c9..466a9963f6 100644 --- a/server/middlewares/apexAuthRedirect.ts +++ b/server/middlewares/apexAuthRedirect.ts @@ -1,4 +1,5 @@ import type { Next } from "koa"; +import { toError } from "@shared/utils/error"; import { parseDomain } from "@shared/utils/domains"; import Logger from "@server/logging/Logger"; import { Team } from "@server/models"; @@ -49,7 +50,7 @@ export default function apexAuthRedirect<T>({ ? ctx.redirect("/") : ctx.redirectOnClient(getRedirectPath(ctx, team)); } catch (err) { - Logger.error("Error fetching team", err); + Logger.error("Error fetching team", toError(err)); return ctx.redirect(getErrorPath(ctx)); } } else { diff --git a/server/middlewares/authentication.test.ts b/server/middlewares/authentication.test.ts index fc4608cdfe..1e9d631bce 100644 --- a/server/middlewares/authentication.test.ts +++ b/server/middlewares/authentication.test.ts @@ -1,4 +1,5 @@ import type { DefaultState } from "koa"; +import { errToString } from "@shared/utils/error"; import { randomString } from "@shared/random"; import { Scope } from "@shared/types"; import { @@ -49,7 +50,7 @@ describe("Authentication middleware", () => { vi.fn() ); } catch (e) { - expect(e.message).toBe("Invalid token"); + expect(errToString(e)).toBe("Invalid token"); } }); @@ -73,7 +74,7 @@ describe("Authentication middleware", () => { vi.fn() ); } catch (e) { - expect(e.message).toBe("Invalid authentication type"); + expect(errToString(e)).toBe("Invalid authentication type"); } }); }); @@ -147,9 +148,11 @@ describe("Authentication middleware", () => { ); throw new Error("Expected error to be thrown"); } catch (e) { - expect(e.status).toBe(403); - expect(e.id).toBe("authorization_error"); - expect(e.message).toContain("does not have access to this resource"); + expect(e).toHaveProperty("status", 403); + expect(e).toHaveProperty("id", "authorization_error"); + expect(errToString(e)).toContain( + "does not have access to this resource" + ); } }); @@ -170,7 +173,7 @@ describe("Authentication middleware", () => { vi.fn() ); } catch (e) { - expect(e.message).toBe("Invalid API key"); + expect(errToString(e)).toBe("Invalid API key"); } }); }); @@ -225,7 +228,9 @@ describe("Authentication middleware", () => { vi.fn() ); } catch (e) { - expect(e.message).toContain("does not have access to this resource"); + expect(errToString(e)).toContain( + "does not have access to this resource" + ); } }); @@ -255,7 +260,7 @@ describe("Authentication middleware", () => { vi.fn() ); } catch (e) { - expect(e.message).toContain( + expect(errToString(e)).toContain( "must be passed in the Authorization header" ); } @@ -279,7 +284,7 @@ describe("Authentication middleware", () => { vi.fn() ); } catch (e) { - expect(e.message).toBe( + expect(errToString(e)).toBe( 'Bad Authorization header format. Format is "Authorization: Bearer <token>"' ); } @@ -353,10 +358,10 @@ describe("Authentication middleware", () => { error = err; } - expect(error.message).toEqual( + expect(errToString(error)).toEqual( "Your access has been suspended by a workspace admin" ); - expect(error.errorData.adminEmail).toEqual(admin.email); + expect(error).toHaveProperty("errorData.adminEmail", admin.email); }); it("should return an error for deleted team", async () => { @@ -383,6 +388,6 @@ describe("Authentication middleware", () => { error = err; } - expect(error.message).toEqual("Invalid token"); + expect(errToString(error)).toEqual("Invalid token"); }); }); diff --git a/server/middlewares/rateLimiter.ts b/server/middlewares/rateLimiter.ts index dca5b10980..122f7d814c 100644 --- a/server/middlewares/rateLimiter.ts +++ b/server/middlewares/rateLimiter.ts @@ -1,5 +1,7 @@ import type { Next } from "koa"; import { defaults } from "es-toolkit/compat"; +import { RateLimiterRes } from "rate-limiter-flexible"; +import { toError } from "@shared/utils/error"; import env from "@server/env"; import { RateLimitExceededError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -69,8 +71,11 @@ export function defaultRateLimiter() { try { await limiter.consume(key); } catch (rateLimiterRes) { - if (rateLimiterRes instanceof Error) { - Logger.error("Rate limiter error", rateLimiterRes); + if ( + rateLimiterRes instanceof Error || + !(rateLimiterRes instanceof RateLimiterRes) + ) { + Logger.error("Rate limiter error", toError(rateLimiterRes)); return next(); } diff --git a/server/middlewares/validate.ts b/server/middlewares/validate.ts index b44bb08695..b013d7976d 100644 --- a/server/middlewares/validate.ts +++ b/server/middlewares/validate.ts @@ -1,6 +1,7 @@ import type { Next } from "koa"; import type { z } from "zod"; import { ZodError } from "zod"; +import { toError } from "@shared/utils/error"; import { ValidationError } from "@server/errors"; import type { APIContext } from "@server/types"; @@ -22,7 +23,7 @@ export default function validate<T extends z.ZodType<Record<string, unknown>>>( : message; throw ValidationError(errMessage); } - ctx.throw(err); + ctx.throw(toError(err)); } return next(); }; diff --git a/server/models/Attachment.ts b/server/models/Attachment.ts index 224428d243..4a76a398f4 100644 --- a/server/models/Attachment.ts +++ b/server/models/Attachment.ts @@ -21,6 +21,7 @@ import { BeforeCreate, BeforeUpdate, } from "sequelize-typescript"; +import { errToString } from "@shared/utils/error"; import { ValidationError } from "@server/errors"; import FileStorage from "@server/storage/files"; import { ValidateKey } from "@server/validation"; @@ -183,7 +184,7 @@ class Attachment extends IdModel< { id: model.id, teamId: model.teamId, - message: err.message, + message: errToString(err), } ); } diff --git a/server/models/Collection.ts b/server/models/Collection.ts index 64d121a081..ea4769c080 100644 --- a/server/models/Collection.ts +++ b/server/models/Collection.ts @@ -855,7 +855,7 @@ class Collection extends ParanoidModel< return this; }; - deleteDocument = async function (document: Document, options?: FindOptions) { + deleteDocument = async (document: Document, options?: FindOptions) => { await this.removeDocumentInStructure(document, options); // Helper to destroy all child documents for a document @@ -879,12 +879,12 @@ class Collection extends ParanoidModel< await document.destroy(options); }; - removeDocumentInStructure = async function ( + removeDocumentInStructure = async ( document: Document, options?: FindOptions & { save?: boolean; } - ) { + ) => { if (!this.documentStructure) { return; } @@ -942,7 +942,7 @@ class Collection extends ParanoidModel< return result; }; - getDocumentParents = function (documentId: string): string[] | void { + getDocumentParents = (documentId: string): string[] | void => { let result!: string[]; const loopChildren = (documents: NavigationNode[], path: string[] = []) => { @@ -969,10 +969,10 @@ class Collection extends ParanoidModel< /** * Update document's title and url in the documentStructure */ - updateDocument = async function ( + updateDocument = async ( updatedDocument: Document, options?: { transaction?: Transaction | null | undefined } - ) { + ) => { if (!this.documentStructure) { return; } @@ -1007,7 +1007,7 @@ class Collection extends ParanoidModel< return this; }; - addDocumentToStructure = async function ( + addDocumentToStructure = async ( document: Document, index?: number, options: FindOptions & { @@ -1017,7 +1017,7 @@ class Collection extends ParanoidModel< includeArchived?: boolean; insertOrder?: "prepend" | "append"; } = {} - ) { + ) => { if (!this.documentStructure) { this.documentStructure = []; } diff --git a/server/models/FileOperation.ts b/server/models/FileOperation.ts index 101df621c7..08b5ca9553 100644 --- a/server/models/FileOperation.ts +++ b/server/models/FileOperation.ts @@ -91,12 +91,12 @@ class FileOperation extends ParanoidModel< /** * Mark the current file operation as expired and remove the file from storage. */ - expire = async function () { + expire = async () => { this.state = FileOperationState.Expired; try { await FileStorage.deleteFile(this.key); } catch (err) { - if (err.retryable) { + if (err instanceof Error && "retryable" in err && err.retryable) { throw err; } } diff --git a/server/models/Group.ts b/server/models/Group.ts index f57b19fa9f..83761b8924 100644 --- a/server/models/Group.ts +++ b/server/models/Group.ts @@ -39,7 +39,7 @@ import NotContainsUrl from "./validators/NotContainsUrl"; tableName: "groups", modelName: "group", validate: { - async isUniqueNameInTeam() { + async isUniqueNameInTeam(this: Group) { const foundItem = await Group.findOne({ where: { teamId: this.teamId, diff --git a/server/models/IntegrationAuthentication.ts b/server/models/IntegrationAuthentication.ts index 01c2058504..c19aa3e56e 100644 --- a/server/models/IntegrationAuthentication.ts +++ b/server/models/IntegrationAuthentication.ts @@ -10,6 +10,7 @@ import { BelongsTo, Column, } from "sequelize-typescript"; +import { toError } from "@shared/utils/error"; import type { IntegrationService } from "@shared/types"; import Logger from "../logging/Logger"; import Team from "./Team"; @@ -161,7 +162,10 @@ class IntegrationAuthentication extends IdModel< return refreshedToken; } catch (err) { - Logger.warn(`Failed to refresh ${this.service} access token`, err); + Logger.warn( + `Failed to refresh ${this.service} access token`, + toError(err) + ); // Continue with existing token - it might still work return this.token; } diff --git a/server/models/Team.ts b/server/models/Team.ts index 6733ce0024..0147507cca 100644 --- a/server/models/Team.ts +++ b/server/models/Team.ts @@ -408,7 +408,7 @@ class Team extends ParanoidModel< }); }; - public collectionIds = async function (paranoid = true) { + public collectionIds = async (paranoid = true) => { const models = await Collection.findAll({ attributes: ["id"], where: { diff --git a/server/models/User.test.ts b/server/models/User.test.ts index 410a29406e..ec372570f1 100644 --- a/server/models/User.test.ts +++ b/server/models/User.test.ts @@ -1,4 +1,5 @@ import { faker } from "@faker-js/faker"; +import { errToString } from "@shared/utils/error"; import { CollectionPermission, UserRole } from "@shared/types"; import { createContext } from "@server/context"; import { Event } from "@server/models"; @@ -123,7 +124,7 @@ describe("user model", () => { error = err; } - expect(error && error.message).toContain("Cannot delete last user"); + expect(errToString(error)).toContain("Cannot delete last user"); }); it("should prevent last admin from deleting account", async () => { @@ -139,7 +140,7 @@ describe("user model", () => { error = err; } - expect(error && error.message).toContain("Cannot delete account"); + expect(errToString(error)).toContain("Cannot delete account"); }); it("should not prevent multiple admin from deleting account", async () => { diff --git a/server/models/User.ts b/server/models/User.ts index 8234c36658..328894c892 100644 --- a/server/models/User.ts +++ b/server/models/User.ts @@ -935,7 +935,11 @@ class User extends ParanoidModel< } }; - static findByEmail = async function (ctx: APIContext, email: string) { + static findByEmail = async function ( + this: typeof User, + ctx: APIContext, + email: string + ) { return this.findOne({ where: { teamId: ctx.state.auth.user.teamId, @@ -945,7 +949,7 @@ class User extends ParanoidModel< }); }; - static getCounts = async function (teamId: string) { + static getCounts = async function (this: typeof User, teamId: string) { const countSql = ` SELECT COUNT(CASE WHEN "suspendedAt" IS NOT NULL THEN 1 END) as "suspendedCount", @@ -958,7 +962,14 @@ class User extends ParanoidModel< WHERE "deletedAt" IS NULL AND "teamId" = :teamId `; - const [results] = await this.sequelize.query(countSql, { + const [counts] = await this.sequelize!.query<{ + activeCount: string; + adminCount: string; + invitedCount: string; + suspendedCount: string; + viewerCount: string; + count: string; + }>(countSql, { type: QueryTypes.SELECT, replacements: { teamId, @@ -967,15 +978,6 @@ class User extends ParanoidModel< }, }); - const counts: { - activeCount: string; - adminCount: string; - invitedCount: string; - suspendedCount: string; - viewerCount: string; - count: string; - } = results; - return { active: parseInt(counts.activeCount), admins: parseInt(counts.adminCount), diff --git a/server/models/UserAuthentication.ts b/server/models/UserAuthentication.ts index 3ce1721092..fa9d588864 100644 --- a/server/models/UserAuthentication.ts +++ b/server/models/UserAuthentication.ts @@ -124,7 +124,11 @@ class UserAuthentication extends IdModel< return true; } catch (error) { - if (error.id === "authentication_required") { + if ( + error instanceof Error && + "id" in error && + error.id === "authentication_required" + ) { return false; } diff --git a/server/models/decorators/Encrypted.ts b/server/models/decorators/Encrypted.ts index 3535b1e25f..3174db87db 100644 --- a/server/models/decorators/Encrypted.ts +++ b/server/models/decorators/Encrypted.ts @@ -1,5 +1,6 @@ import { isEmpty, isNil } from "es-toolkit/compat"; import { getAttributes } from "sequelize-typescript"; +import { toError, errToString } from "@shared/utils/error"; import Logger from "@server/logging/Logger"; import vaults from "@server/storage/vaults"; @@ -41,13 +42,14 @@ export default function Encrypted(target: object, propertyKey: string) { ? defaultValue : value; } catch (err) { - if (err.message.includes("Unexpected end of JSON input")) { + const message = errToString(err); + if (message.includes("Unexpected end of JSON input")) { return defaultValue; } - if (err.message.includes("bad decrypt")) { + if (message.includes("bad decrypt")) { Logger.fatal( `Failed to decrypt database column (${propertyKey}). The SECRET_KEY environment variable may have changed since installation.`, - err + toError(err) ); } throw err; @@ -61,7 +63,10 @@ export default function Encrypted(target: object, propertyKey: string) { Reflect.getMetadata(key, this, propertyKey).set.call(this, value); } } catch (err) { - if (err.message.includes("Invalid key length")) { + if ( + err instanceof Error && + err.message.includes("Invalid key length") + ) { Logger.fatal( `Failed to encrypt database column (${propertyKey}). The SECRET_KEY environment variable is not the correct length.`, err diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index f37bf85898..25335203f0 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -16,6 +16,7 @@ import { yDocToProsemirrorJSON, } from "y-prosemirror"; import * as Y from "yjs"; +import { toError, errToString } from "@shared/utils/error"; import Diff from "@shared/editor/extensions/Diff"; import { EditorStyleHelper } from "@shared/editor/styles/EditorStyleHelper"; import type { ExtendedChange } from "@shared/editor/lib/ChangesetHelper"; @@ -532,7 +533,10 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { ); styleTags = sheet.getStyleTags(); } catch (error) { - Logger.error("Failed to render styles on node HTML conversion", error); + Logger.error( + "Failed to render styles on node HTML conversion", + toError(error) + ); } finally { sheet.seal(); } @@ -671,7 +675,7 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { try { view?.destroy(); } catch (err) { - Logger.error("Error destroying ProseMirror view", err); + Logger.error("Error destroying ProseMirror view", toError(err)); } cleanupEnv?.(); } @@ -990,7 +994,7 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { } } catch (err) { Logger.warn("Failed to download image for attachment", { - error: err.message, + error: errToString(err), src, }); } diff --git a/server/models/helpers/TextHelper.ts b/server/models/helpers/TextHelper.ts index d995b3cd33..ca21907758 100644 --- a/server/models/helpers/TextHelper.ts +++ b/server/models/helpers/TextHelper.ts @@ -1,4 +1,5 @@ import { chunk, escapeRegExp } from "es-toolkit/compat"; +import { errToString } from "@shared/utils/error"; import { AttachmentPreset } from "@shared/types"; import { isInternalUrl } from "@shared/utils/urls"; import attachmentCreator from "@server/commands/attachmentCreator"; @@ -117,7 +118,7 @@ export class TextHelper { } } catch (err) { Logger.warn("Failed to download image for attachment", { - error: err.message, + error: errToString(err), src: image.src, }); } diff --git a/server/onerror.ts b/server/onerror.ts index 00ba281ab0..1ddfd52507 100644 --- a/server/onerror.ts +++ b/server/onerror.ts @@ -7,12 +7,13 @@ import { escape, isNil, snakeCase } from "es-toolkit/compat"; import env from "@server/env"; import { ClientClosedRequestError, InternalError } from "@server/errors"; import { requestErrorHandler } from "@server/logging/sentry"; +import type { AppContext } from "@server/types"; let errorHtmlCache: Buffer | undefined; export default function onerror(app: Koa) { // oxlint-disable-next-line @typescript-eslint/no-explicit-any - app.context.onerror = function (err: any) { + app.context.onerror = function (this: AppContext, err: any) { // Don't do anything if there is no error, this allows you to pass `this.onerror` to node-style callbacks. if (isNil(err)) { return; diff --git a/server/queues/tasks/APIImportTask.ts b/server/queues/tasks/APIImportTask.ts index 5740912abb..e2037b7793 100644 --- a/server/queues/tasks/APIImportTask.ts +++ b/server/queues/tasks/APIImportTask.ts @@ -20,6 +20,7 @@ import { ImportTaskPhase, ImportTaskState, } from "@shared/types"; +import { toError } from "@shared/utils/error"; import { createContext } from "@server/context"; import { schema } from "@server/editor"; import Logger from "@server/logging/Logger"; @@ -410,7 +411,7 @@ export default abstract class APIImportTask< // upload attachments failure is not critical enough to fail the whole import. Logger.error( `upload attachment task failed for externalId ${externalId}`, - err + toError(err) ); } diff --git a/server/queues/tasks/DocumentImportTask.ts b/server/queues/tasks/DocumentImportTask.ts index c5f0ed1d3a..6043e7379b 100644 --- a/server/queues/tasks/DocumentImportTask.ts +++ b/server/queues/tasks/DocumentImportTask.ts @@ -1,3 +1,4 @@ +import { errToString } from "@shared/utils/error"; import type { SourceMetadata } from "@shared/types"; import documentCreator from "@server/commands/documentCreator"; import documentImporter from "@server/commands/documentImporter"; @@ -73,7 +74,7 @@ export default class DocumentImportTask extends BaseTask<Props> { ); return { documentId: document.id }; } catch (err) { - return { error: err.message }; + return { error: errToString(err) }; } finally { await FileStorage.deleteFile(key); } diff --git a/server/queues/tasks/ExportDocumentTreeTask.ts b/server/queues/tasks/ExportDocumentTreeTask.ts index 4c09cdfda3..bc8574cc17 100644 --- a/server/queues/tasks/ExportDocumentTreeTask.ts +++ b/server/queues/tasks/ExportDocumentTreeTask.ts @@ -1,6 +1,7 @@ import path from "node:path"; import { escapeRegExp } from "es-toolkit/compat"; import type { ZipFile } from "yazl"; +import { errToString } from "@shared/utils/error"; import type { NavigationNode } from "@shared/types"; import { FileOperationFormat } from "@shared/types"; import Logger from "@server/logging/Logger"; @@ -89,7 +90,7 @@ export default abstract class ExportDocumentTreeTask extends ExportTask { Logger.warn(`Failed to read attachment from storage`, { attachmentId: attachment.id, teamId: attachment.teamId, - error: err.message, + error: errToString(err), }); buffer = Buffer.from(""); } diff --git a/server/queues/tasks/ExportJSONTask.ts b/server/queues/tasks/ExportJSONTask.ts index 685c989fd0..50b6feed4a 100644 --- a/server/queues/tasks/ExportJSONTask.ts +++ b/server/queues/tasks/ExportJSONTask.ts @@ -1,5 +1,6 @@ import { ZipFile } from "yazl"; import { omit } from "es-toolkit/compat"; +import { errToString } from "@shared/utils/error"; import type { NavigationNode } from "@shared/types"; import env from "@server/env"; import Logger from "@server/logging/Logger"; @@ -95,7 +96,7 @@ export default class ExportJSONTask extends ExportTask { Logger.warn(`Failed to read attachment from storage`, { attachmentId: attachment.id, teamId: attachment.teamId, - error: err.message, + error: errToString(err), }); buffer = Buffer.from(""); } diff --git a/server/queues/tasks/ExportTask.ts b/server/queues/tasks/ExportTask.ts index 7d87be51f7..c3d5c05a3b 100644 --- a/server/queues/tasks/ExportTask.ts +++ b/server/queues/tasks/ExportTask.ts @@ -1,5 +1,6 @@ import fs from "fs-extra"; import { truncate } from "es-toolkit/compat"; +import { toError } from "@shared/utils/error"; import type { NavigationNode } from "@shared/types"; import { FileOperationState, NotificationEventType } from "@shared/types"; import { bytesToHumanReadable } from "@shared/utils/files"; @@ -93,7 +94,7 @@ export default abstract class ExportTask extends BaseTask<Props> { } catch (error) { await this.updateFileOperation(fileOperation, { state: FileOperationState.Error, - error, + error: toError(error), }); if (user.subscribedToEventType(NotificationEventType.ExportCompleted)) { await new ExportFailureEmail({ @@ -223,7 +224,7 @@ export default abstract class ExportTask extends BaseTask<Props> { */ private async updateFileOperation( fileOperation: FileOperation, - options: Partial<FileOperation> & { error?: Error } + options: Omit<Partial<FileOperation>, "error"> & { error?: Error } ) { await fileOperation.update( { diff --git a/server/queues/tasks/ImportTask.ts b/server/queues/tasks/ImportTask.ts index 61d3efaabe..ca8a33d3c7 100644 --- a/server/queues/tasks/ImportTask.ts +++ b/server/queues/tasks/ImportTask.ts @@ -3,6 +3,7 @@ import fs from "fs-extra"; import { chunk, truncate } from "es-toolkit/compat"; import type { InferCreationAttributes } from "sequelize"; import tmp from "tmp"; +import { toError } from "@shared/utils/error"; import type { CollectionSort, ProsemirrorData } from "@shared/types"; import { AttachmentPreset, @@ -150,7 +151,7 @@ export default abstract class ImportTask extends BaseTask<Props> { } catch (error) { Logger.error( `ImportTask failed to persist data for ${fileOperationId}`, - error + toError(error) ); throw new Error("Sorry, an internal error occurred during import"); } @@ -162,12 +163,12 @@ export default abstract class ImportTask extends BaseTask<Props> { return result; } catch (error) { - Logger.error(`ImportTask failed for ${fileOperationId}`, error); + Logger.error(`ImportTask failed for ${fileOperationId}`, toError(error)); await this.updateFileOperation( fileOperation, FileOperationState.Error, - error + toError(error) ); throw error; } finally { @@ -269,7 +270,7 @@ export default abstract class ImportTask extends BaseTask<Props> { } catch (error) { Logger.error( `ImportTask failed to cleanup extracted data for ${fileOperation.id}`, - error + toError(error) ); } } diff --git a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts index 33fc305f5b..59c3fe7a50 100644 --- a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts +++ b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts @@ -2,6 +2,7 @@ import crypto from "node:crypto"; import { setTimeout } from "node:timers/promises"; import { subDays } from "date-fns"; import { QueryTypes } from "sequelize"; +import { toError } from "@shared/utils/error"; import { Minute } from "@shared/utils/time"; import env from "@server/env"; import Logger from "@server/logging/Logger"; @@ -128,7 +129,10 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { } } catch (error) { totalErrors++; - Logger.error(`Batch ${batchNumber} failed after retries`, error); + Logger.error( + `Batch ${batchNumber} failed after retries`, + toError(error) + ); // Remove failed batch from working table to prevent infinite loop await this.skipCurrentBatch(); @@ -140,7 +144,10 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { `Completed updating popularity scores: ${totalUpdated} documents updated, ${totalErrors} batch errors` ); } catch (error) { - Logger.error("Failed to update document popularity scores", error); + Logger.error( + "Failed to update document popularity scores", + toError(error) + ); throw error; } finally { // Always clean up the working table diff --git a/server/queues/tasks/UploadAttachmentFromUrlTask.ts b/server/queues/tasks/UploadAttachmentFromUrlTask.ts index 5c7c18a1df..dcd4fe2ecc 100644 --- a/server/queues/tasks/UploadAttachmentFromUrlTask.ts +++ b/server/queues/tasks/UploadAttachmentFromUrlTask.ts @@ -1,3 +1,4 @@ +import { errToString } from "@shared/utils/error"; import { createContext } from "@server/context"; import { Attachment } from "@server/models"; import FileStorage from "@server/storage/files"; @@ -39,7 +40,7 @@ export default class UploadAttachmentFromUrlTask extends BaseTask<Props> { }); } } catch (err) { - return { error: err.message }; + return { error: errToString(err) }; } return {}; diff --git a/server/queues/tasks/UploadAttachmentsForImportTask.ts b/server/queues/tasks/UploadAttachmentsForImportTask.ts index 3cc52b85aa..5e90ff8b7a 100644 --- a/server/queues/tasks/UploadAttachmentsForImportTask.ts +++ b/server/queues/tasks/UploadAttachmentsForImportTask.ts @@ -1,4 +1,5 @@ import { Sema } from "async-sema"; +import { toError } from "@shared/utils/error"; import Logger from "@server/logging/Logger"; import { Attachment } from "@server/models"; import FileStorage from "@server/storage/files"; @@ -54,7 +55,7 @@ export default class UploadAttachmentsForImportTask extends BaseTask<Item[]> { }); } } catch (err) { - Logger.error("error uploading attachments for import", err); + Logger.error("error uploading attachments for import", toError(err)); throw err; } finally { sema.release(); diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 91411068f8..b1354736d1 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -9,6 +9,7 @@ import mime from "mime-types"; import type { Order, ScopeOptions, WhereOptions } from "sequelize"; import { Op, Sequelize } from "sequelize"; import { randomUUID } from "node:crypto"; +import { errToString } from "@shared/utils/error"; import type { DirectionFilter, SortFilter } from "@shared/types"; import { type NavigationNode } from "@shared/types"; import { @@ -932,7 +933,7 @@ router.post( Logger.warn(`Failed to read attachment from storage`, { attachmentId: attachment.id, teamId: attachment.teamId, - error: err.message, + error: errToString(err), }); buffer = Buffer.from(""); } diff --git a/server/routes/api/middlewares/apiErrorHandler.ts b/server/routes/api/middlewares/apiErrorHandler.ts index 0b621c7cf9..0221f80e1c 100644 --- a/server/routes/api/middlewares/apiErrorHandler.ts +++ b/server/routes/api/middlewares/apiErrorHandler.ts @@ -18,6 +18,7 @@ export default function apiErrorHandler() { if ( !(err instanceof AuthorizationError) && + err instanceof Error && /Authorization error/i.test(err.message) ) { transformedErr = AuthorizationError(); @@ -34,9 +35,9 @@ export default function apiErrorHandler() { } if ( - err.code === "ENOENT" || + (err instanceof Error && "code" in err && err.code === "ENOENT") || err instanceof SequelizeEmptyResultError || - /Not found/i.test(err.message) + (err instanceof Error && /Not found/i.test(err.message)) ) { transformedErr = NotFoundError(); } diff --git a/server/routes/api/revisions/revisions.ts b/server/routes/api/revisions/revisions.ts index 08f73afb5b..954265ea20 100644 --- a/server/routes/api/revisions/revisions.ts +++ b/server/routes/api/revisions/revisions.ts @@ -3,6 +3,7 @@ import Router from "koa-router"; import contentDisposition from "content-disposition"; import { escapeRegExp } from "es-toolkit/compat"; import mime from "mime-types"; +import { errToString } from "@shared/utils/error"; import { UserRole } from "@shared/types"; import { RevisionHelper } from "@shared/utils/RevisionHelper"; import slugify from "@shared/utils/slugify"; @@ -207,7 +208,7 @@ router.post( Logger.warn(`Failed to read attachment from storage`, { attachmentId: attachment.id, teamId: attachment.teamId, - error: err.message, + error: errToString(err), }); buffer = Buffer.from(""); } diff --git a/server/routes/api/shares/shares.ts b/server/routes/api/shares/shares.ts index c4a3e94194..f8b9f38644 100644 --- a/server/routes/api/shares/shares.ts +++ b/server/routes/api/shares/shares.ts @@ -139,7 +139,7 @@ router.post( policies: presentPolicies(user, shares), }; } catch (err) { - if (err.id === "not_found") { + if (err instanceof Error && "id" in err && err.id === "not_found") { ctx.response.status = 204; return; } diff --git a/server/routes/api/urls/urls.ts b/server/routes/api/urls/urls.ts index 93b5ead181..5ed0619a92 100644 --- a/server/routes/api/urls/urls.ts +++ b/server/routes/api/urls/urls.ts @@ -278,7 +278,7 @@ router.post( }); }); } catch (err) { - if (err.code === "ENOTFOUND") { + if (err instanceof Error && "code" in err && err.code === "ENOTFOUND") { throw NotFoundError("No CNAME record found"); } diff --git a/server/routes/index.ts b/server/routes/index.ts index 4beb87e3fb..ccd300d1b2 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -39,7 +39,7 @@ router.use(["/images/*", "/email/*", "/fonts/*"], async (ctx, next) => { }, }); } catch (err) { - if (err.status !== 404) { + if (!(err instanceof Error && "status" in err && err.status === 404)) { throw err; } } @@ -78,7 +78,7 @@ if (env.isProduction) { }, }); } catch (err) { - if (err.status === 404) { + if (err instanceof Error && "status" in err && err.status === 404) { // Serve a bad request instead of not found if the file doesn't exist // This prevents CDN's from caching the response, allowing them to continue // serving old file versions diff --git a/server/routes/mcp/index.ts b/server/routes/mcp/index.ts index 3adbe198c1..e330b8f1b4 100644 --- a/server/routes/mcp/index.ts +++ b/server/routes/mcp/index.ts @@ -5,6 +5,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; import type { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js"; import { ErrorCode } from "@modelcontextprotocol/sdk/types.js"; +import { toError } from "@shared/utils/error"; import { TeamPreference } from "@shared/types"; import { NotFoundError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -126,7 +127,7 @@ router.post( } catch (error) { Logger.error( "MCP request handling failed", - error instanceof Error ? error : new Error(String(error)), + toError(error), undefined, ctx.req ); diff --git a/server/routes/oauth/middlewares/oauthErrorHandler.ts b/server/routes/oauth/middlewares/oauthErrorHandler.ts index 308dd5bb61..5994c2618f 100644 --- a/server/routes/oauth/middlewares/oauthErrorHandler.ts +++ b/server/routes/oauth/middlewares/oauthErrorHandler.ts @@ -3,6 +3,23 @@ import { ValidationError as SequelizeValidationError, EmptyResultError as SequelizeEmptyResultError, } from "sequelize"; +import { errToString } from "@shared/utils/error"; + +/** Extract the first numeric status-like property from an unknown error. */ +function statusCodeFromError(err: unknown): number { + if (err instanceof Error) { + if ("status" in err && typeof err.status === "number") { + return err.status; + } + if ("statusCode" in err && typeof err.statusCode === "number") { + return err.statusCode; + } + if ("code" in err && typeof err.code === "number") { + return err.code; + } + } + return 500; +} /** * To adhere to the OAuth 2.0 specification, errors from the /token and /authorize routes @@ -31,7 +48,7 @@ export default function oauthErrorHandler() { return; } - ctx.status = err.status || err.statusCode || err.code || 500; + ctx.status = statusCodeFromError(err); // Map common HTTP status codes to OAuth error types let errorType = "server_error"; if (ctx.status === 400) { @@ -42,7 +59,7 @@ export default function oauthErrorHandler() { ctx.body = { error: errorType, - error_description: err.message, + error_description: errToString(err), }; } }; diff --git a/server/services/websockets.ts b/server/services/websockets.ts index 5cfac37391..c11c80234e 100644 --- a/server/services/websockets.ts +++ b/server/services/websockets.ts @@ -5,6 +5,7 @@ import cookie from "cookie"; import type Koa from "koa"; import IO from "socket.io"; import { createAdapter } from "socket.io-redis"; +import { errToString } from "@shared/utils/error"; import env from "@server/env"; import { AuthenticationError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -133,10 +134,11 @@ export default function init( socket.emit("authenticated", true); void authenticated(io, socket); } catch (err) { + const message = errToString(err); Logger.debug("websockets", `Authentication error socket ${socket.id}`, { - error: err.message, + error: message, }); - socket.emit("unauthorized", { message: err.message }, function () { + socket.emit("unauthorized", { message }, function () { socket.disconnect(); }); } diff --git a/server/services/worker.ts b/server/services/worker.ts index 9d58ace917..2960a0076d 100644 --- a/server/services/worker.ts +++ b/server/services/worker.ts @@ -1,3 +1,4 @@ +import { toError } from "@shared/utils/error"; import env from "@server/env"; import Logger from "@server/logging/Logger"; import { setResource, addTags } from "@server/logging/tracer"; @@ -69,7 +70,7 @@ export default async function init() { } catch (error) { Logger.error( `Error adding ${event.name} to ${name} queue`, - error, + toError(error), event ); err = error; @@ -125,7 +126,7 @@ export default async function init() { Logger.error( `Error processing ${event.name} in ${name}`, - err, + toError(err), event ); throw err; @@ -171,7 +172,7 @@ export default async function init() { await task.onFailed(props).catch(); // suppress exception from 'onFailed'. } - Logger.error(`Error processing task in ${name}`, err, props); + Logger.error(`Error processing task in ${name}`, toError(err), props); throw err; } }) diff --git a/server/storage/database.ts b/server/storage/database.ts index 4e25661319..f246db16d3 100644 --- a/server/storage/database.ts +++ b/server/storage/database.ts @@ -11,6 +11,7 @@ import type { SequelizeOptions } from "sequelize-typescript"; import { Sequelize } from "sequelize-typescript"; import type { MigrationError } from "umzug"; import { Umzug, SequelizeStorage } from "umzug"; +import { toError } from "@shared/utils/error"; import env from "@server/env"; import { ClientClosedRequestError } from "@server/errors"; import type Model from "@server/models/base/Model"; @@ -196,13 +197,16 @@ export const checkConnection = async (db: Sequelize) => { try { await db.authenticate(); } catch (error) { - if (error.message.includes("does not support SSL")) { + if ( + error instanceof Error && + error.message.includes("does not support SSL") + ) { Logger.fatal( "The database does not support SSL connections. Set the `PGSSLMODE` environment variable to `disable` or enable SSL on your database server.", error ); } else { - Logger.fatal("Failed to connect to database", error); + Logger.fatal("Failed to connect to database", toError(error)); } } }; diff --git a/server/storage/files/BaseStorage.ts b/server/storage/files/BaseStorage.ts index fb354d2b61..0fe1d215e8 100644 --- a/server/storage/files/BaseStorage.ts +++ b/server/storage/files/BaseStorage.ts @@ -2,6 +2,7 @@ import type { Blob } from "node:buffer"; import type { Readable } from "node:stream"; import type { PresignedPost } from "@aws-sdk/s3-presigned-post"; import { omit } from "es-toolkit/compat"; +import { toError, errToString } from "@shared/utils/error"; import FileHelper from "@shared/editor/lib/FileHelper"; import { isBase64Url, isInternalUrl } from "@shared/utils/urls"; import { Week } from "@shared/utils/time"; @@ -217,7 +218,7 @@ export default abstract class BaseStorage { res.headers.get("content-type") ?? "application/octet-stream"; } catch (err) { Logger.warn("Error fetching URL to upload", { - error: err.message, + error: errToString(err), url, key, acl, @@ -247,7 +248,7 @@ export default abstract class BaseStorage { } : undefined; } catch (err) { - Logger.error("Error uploading to file storage from URL", err, { + Logger.error("Error uploading to file storage from URL", toError(err), { url, key, acl, diff --git a/server/storage/files/LocalStorage.ts b/server/storage/files/LocalStorage.ts index 2ddeb23396..945502d44d 100644 --- a/server/storage/files/LocalStorage.ts +++ b/server/storage/files/LocalStorage.ts @@ -7,6 +7,7 @@ import fs from "fs-extra"; import invariant from "invariant"; import JWT from "jsonwebtoken"; import safeResolvePath from "resolve-path"; +import { toError } from "@shared/utils/error"; import env from "@server/env"; import { InternalError, ValidationError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -95,7 +96,7 @@ export default class LocalStorage extends BaseStorage { try { await unlink(filePath); } catch (err) { - Logger.warn(`Couldn't delete ${filePath}`, err); + Logger.warn(`Couldn't delete ${filePath}`, { error: err }); return; } @@ -103,10 +104,10 @@ export default class LocalStorage extends BaseStorage { try { await rmdir(directory); } catch (err) { - if (err.code === "ENOTEMPTY") { + if (err instanceof Error && "code" in err && err.code === "ENOTEMPTY") { return; } - Logger.warn(`Couldn't delete directory ${directory}`, err); + Logger.warn(`Couldn't delete directory ${directory}`, { error: err }); } } @@ -160,7 +161,7 @@ export default class LocalStorage extends BaseStorage { try { return fs.createReadStream(filePath, range); } catch (err) { - Logger.error(`Failed to create read stream`, err, { filePath }); + Logger.error(`Failed to create read stream`, toError(err), { filePath }); throw ValidationError("Unable to read file"); } } diff --git a/server/storage/files/S3Storage.ts b/server/storage/files/S3Storage.ts index e9d4777971..67606777a9 100644 --- a/server/storage/files/S3Storage.ts +++ b/server/storage/files/S3Storage.ts @@ -17,6 +17,7 @@ import fs from "fs-extra"; import invariant from "invariant"; import { compact } from "es-toolkit/compat"; import tmp from "tmp"; +import { toError } from "@shared/utils/error"; import env from "@server/env"; import Logger from "@server/logging/Logger"; import BaseStorage from "./BaseStorage"; @@ -171,10 +172,14 @@ export default class S3Storage extends BaseStorage { dateLessThan: new Date(Date.now() + expiresIn * 1000).toISOString(), }); } catch (err) { - Logger.error("Failed to sign CloudFront URL, falling back to S3", err, { - key, - cfUrl, - }); + Logger.error( + "Failed to sign CloudFront URL, falling back to S3", + toError(err), + { + key, + cfUrl, + } + ); return this.getS3PresignedUrl(key, expiresIn); } } @@ -302,10 +307,7 @@ export default class S3Storage extends BaseStorage { } // Ensure expiration does not exceed AWS S3 Signature V4 limit of 7 days - const clampedExpiresIn = Math.min( - expiresIn, - S3Storage.maxSignedUrlExpires - ); + const clampedExpiresIn = Math.min(expiresIn, S3Storage.maxSignedUrlExpires); const command = new GetObjectCommand(params); const url = await getSignedUrl(this.client, command, { diff --git a/server/storage/redis.ts b/server/storage/redis.ts index 6625247772..24c08d166f 100644 --- a/server/storage/redis.ts +++ b/server/storage/redis.ts @@ -1,6 +1,7 @@ import type { RedisOptions } from "ioredis"; import Redis from "ioredis"; import { defaults } from "es-toolkit/compat"; +import { errToString } from "@shared/utils/error"; import env from "@server/env"; import Logger from "@server/logging/Logger"; import { getConnectionName } from "./utils"; @@ -56,7 +57,7 @@ export default class RedisAdapter extends Redis { const decodedString = Buffer.from(url.slice(10), "base64").toString(); customOptions = JSON.parse(decodedString); } catch (error) { - const message = error instanceof Error ? error.message : String(error); + const message = errToString(error); throw new Error(`Failed to decode redis adapter options: ${message}`); } @@ -65,7 +66,7 @@ export default class RedisAdapter extends Redis { defaults(options, { connectionName }, customOptions, defaultOptions) ); } catch (error) { - const message = error instanceof Error ? error.message : String(error); + const message = errToString(error); throw new Error(`Failed to initialize redis client: ${message}`); } } diff --git a/server/tools/util.ts b/server/tools/util.ts index f061a158ca..84df635649 100644 --- a/server/tools/util.ts +++ b/server/tools/util.ts @@ -1,6 +1,7 @@ import type { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js"; import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; import { z } from "zod"; +import { errToString } from "@shared/utils/error"; import { Collection, type Team, type User } from "@server/models"; import { addTags } from "@server/logging/tracer"; import { traceFunction } from "@server/logging/tracing"; @@ -88,7 +89,7 @@ export function success<T>(data: T | T[]): CallToolResult { * @returns a formatted error response object for MCP tools. */ export function error(err: unknown): CallToolResult { - const message = err instanceof Error ? err.message : String(err); + const message = errToString(err); return { content: [{ type: "text" as const, text: message }], diff --git a/server/utils/CacheHelper.ts b/server/utils/CacheHelper.ts index f8d4caa9f7..40107f772f 100644 --- a/server/utils/CacheHelper.ts +++ b/server/utils/CacheHelper.ts @@ -1,3 +1,4 @@ +import { toError } from "@shared/utils/error"; import { Day } from "@shared/utils/time"; import Logger from "@server/logging/Logger"; import Redis from "@server/storage/redis"; @@ -54,7 +55,7 @@ export class CacheHelper { try { lock = await MutexLock.acquire(lockKey, lockTimeout); } catch (err) { - Logger.error(`Could not acquire lock for ${key}`, err); + Logger.error(`Could not acquire lock for ${key}`, toError(err)); } cache = await this.getData<T>(key); if (cache) { @@ -100,7 +101,10 @@ export class CacheHelper { } } catch (err) { // just log it, response can still be obtained using the fetch call - Logger.error(`Could not fetch cached response against ${key}`, err); + Logger.error( + `Could not fetch cached response against ${key}`, + toError(err) + ); } return; } @@ -122,7 +126,7 @@ export class CacheHelper { ); } catch (err) { // just log it, can skip caching and directly return response - Logger.error(`Could not cache response against ${key}`, err); + Logger.error(`Could not cache response against ${key}`, toError(err)); } } @@ -135,7 +139,10 @@ export class CacheHelper { try { await Redis.defaultClient.del(key); } catch (err) { - Logger.error(`Could not remove cached entry against ${key}`, err); + Logger.error( + `Could not remove cached entry against ${key}`, + toError(err) + ); } } diff --git a/server/utils/RateLimiter.ts b/server/utils/RateLimiter.ts index 7f6cfb1347..9c815c9c1c 100644 --- a/server/utils/RateLimiter.ts +++ b/server/utils/RateLimiter.ts @@ -1,6 +1,7 @@ import { createHash } from "crypto"; import type { IRateLimiterStoreOptions } from "rate-limiter-flexible"; import { RateLimiterRedis, RateLimiterMemory } from "rate-limiter-flexible"; +import { toError } from "@shared/utils/error"; import env from "@server/env"; import Logger from "@server/logging/Logger"; import Redis from "@server/storage/redis"; @@ -69,7 +70,7 @@ export default class RateLimiter { this.TOKEN_CACHE_TTL_SECONDS ); } catch (err) { - Logger.warn("Failed to cache user for rate limiter token", err); + Logger.warn("Failed to cache user for rate limiter token", toError(err)); } } @@ -84,7 +85,10 @@ export default class RateLimiter { try { return await Redis.defaultClient.get(this.tokenCacheKey(token)); } catch (err) { - Logger.warn("Failed to read cached user for rate limiter token", err); + Logger.warn( + "Failed to read cached user for rate limiter token", + toError(err) + ); return null; } } @@ -99,7 +103,7 @@ export default class RateLimiter { try { await Redis.defaultClient.del(this.tokenCacheKey(token)); } catch (err) { - Logger.warn("Failed to clear cached rate limiter token", err); + Logger.warn("Failed to clear cached rate limiter token", toError(err)); } } diff --git a/server/utils/authentication.ts b/server/utils/authentication.ts index 4c86f007d3..841182e93a 100644 --- a/server/utils/authentication.ts +++ b/server/utils/authentication.ts @@ -2,6 +2,7 @@ import querystring from "node:querystring"; import { addMonths } from "date-fns"; import type { Context } from "koa"; import { pick } from "es-toolkit/compat"; +import { toError } from "@shared/utils/error"; import { Client } from "@shared/types"; import { getCookieDomain } from "@shared/utils/domains"; import env from "@server/env"; @@ -62,7 +63,7 @@ export async function signIn( } ); } catch (error) { - Logger.error(`Error persisting signup query params`, error); + Logger.error(`Error persisting signup query params`, toError(error)); } } } diff --git a/server/utils/fetch.ts b/server/utils/fetch.ts index 6c59e6a555..cd3b977d23 100644 --- a/server/utils/fetch.ts +++ b/server/utils/fetch.ts @@ -10,6 +10,7 @@ import nodeFetch, { } from "node-fetch"; import { getProxyForUrl } from "proxy-from-env"; import tunnelAgent, { type TunnelAgent } from "tunnel-agent"; +import { errToString } from "@shared/utils/error"; import env from "@server/env"; import { InvalidRequestError } from "@server/errors"; import Logger from "@server/logging/Logger"; @@ -181,14 +182,15 @@ export default async function fetch( return response; } catch (err) { - if (err.name === "AbortError") { + if (err instanceof Error && "name" in err && err.name === "AbortError") { throw new Error(`Request timeout after ${timeout}ms`); } - if (err.message?.startsWith("DNS lookup")) { + const message = errToString(err); + if (message.startsWith("DNS lookup")) { throw InvalidRequestError( env.isCloudHosted - ? err.message - : `${err.message}\n\nTo allow this request, add the IP address or CIDR range to the ALLOWED_PRIVATE_IP_ADDRESSES environment variable.` + ? message + : `${message}\n\nTo allow this request, add the IP address or CIDR range to the ALLOWED_PRIVATE_IP_ADDRESSES environment variable.` ); } throw err; diff --git a/server/utils/getInstallationInfo.ts b/server/utils/getInstallationInfo.ts index be0904756d..59cbabfc4a 100644 --- a/server/utils/getInstallationInfo.ts +++ b/server/utils/getInstallationInfo.ts @@ -1,3 +1,4 @@ +import { errToString } from "@shared/utils/error"; import { version } from "../../package.json"; import Logger from "@server/logging/Logger"; import fetch from "./fetch"; @@ -65,7 +66,7 @@ export async function getVersionInfo(currentVersion: string): Promise<{ "Failed to fetch version information from Docker Hub. This is expected in isolated environments.", { currentVersion, - error: error instanceof Error ? error.message : String(error), + error: errToString(error), } ); diff --git a/server/utils/oauth.test.ts b/server/utils/oauth.test.ts index eb47b9174f..77e1f9eff7 100644 --- a/server/utils/oauth.test.ts +++ b/server/utils/oauth.test.ts @@ -25,7 +25,9 @@ describe("userInfo", () => { expect.assertions(1); await client.userInfo("token"); } catch (e) { - expect(e.id).toBe("authentication_required"); + expect(e instanceof Error && "id" in e ? e.id : undefined).toBe( + "authentication_required" + ); } }); }); diff --git a/server/utils/oauth.ts b/server/utils/oauth.ts index b4732a4d91..ac330b1ffa 100644 --- a/server/utils/oauth.ts +++ b/server/utils/oauth.ts @@ -1,5 +1,6 @@ import { addMinutes, subMinutes } from "date-fns"; import type { Context } from "koa"; +import { errToString } from "@shared/utils/error"; import { randomString } from "@shared/random"; import { getCookieDomain } from "@shared/utils/domains"; import env from "@server/env"; @@ -95,7 +96,7 @@ export default abstract class OAuthClient { }, }); } catch (err) { - throw InvalidRequestError(err.message); + throw InvalidRequestError(errToString(err)); } const success = response.status >= 200 && response.status < 300; @@ -106,7 +107,7 @@ export default abstract class OAuthClient { try { data = await response.json(); } catch (err) { - throw InvalidRequestError(err.message); + throw InvalidRequestError(errToString(err)); } return data; @@ -142,7 +143,7 @@ export default abstract class OAuthClient { }); data = await response.json(); } catch (err) { - throw InvalidRequestError(err.message); + throw InvalidRequestError(errToString(err)); } const success = response.status >= 200 && response.status < 300; diff --git a/server/utils/passport.ts b/server/utils/passport.ts index 117a1d684b..fe766f92dc 100644 --- a/server/utils/passport.ts +++ b/server/utils/passport.ts @@ -6,6 +6,7 @@ import type { StateStoreVerifyCallback, } from "passport-oauth2"; import type { Primitive } from "utility-types"; +import { toError } from "@shared/utils/error"; import { Client } from "@shared/types"; import { getCookieDomain, parseDomain } from "@shared/utils/domains"; import env from "@server/env"; @@ -173,7 +174,7 @@ export class StateStore { try { state = verifyOAuthState(providedToken); } catch (err) { - return callback(err, false, providedToken); + return callback(toError(err), false, providedToken); } if (!safeEqual(hashOAuthStateNonce(csrfNonce ?? ""), state.nonceHash)) { diff --git a/server/utils/startup.ts b/server/utils/startup.ts index 0a40f22cbe..b5cd53896c 100644 --- a/server/utils/startup.ts +++ b/server/utils/startup.ts @@ -1,5 +1,6 @@ import { styleText } from "node:util"; import { isEmpty } from "es-toolkit/compat"; +import { toError, errToString } from "@shared/utils/error"; import env from "@server/env"; import Logger from "@server/logging/Logger"; import AuthenticationProvider from "@server/models/AuthenticationProvider"; @@ -33,16 +34,18 @@ export async function checkPendingMigrations() { } await checkDataMigrations(); } catch (err) { - if (err.message.includes("ECONNREFUSED")) { + const message = errToString(err); + const error = toError(err); + if (message.includes("ECONNREFUSED")) { Logger.fatal( styleText( "red", `Could not connect to the database. Please check your connection settings.` ), - err + error ); } else { - Logger.fatal(styleText("red", err.message), err); + Logger.fatal(styleText("red", message), error); } } finally { if (lock) { diff --git a/shared/editor/extensions/Mermaid.ts b/shared/editor/extensions/Mermaid.ts index 2ac9e8de0a..d49425debc 100644 --- a/shared/editor/extensions/Mermaid.ts +++ b/shared/editor/extensions/Mermaid.ts @@ -8,6 +8,7 @@ import type { Transaction } from "prosemirror-state"; import { NodeSelection, Plugin, PluginKey } from "prosemirror-state"; import { Decoration, DecorationSet } from "prosemirror-view"; import { toast } from "sonner"; +import { errToString } from "../../utils/error"; import { isCode, isMermaid } from "../lib/isCode"; import { isRemoteTransaction, mapDecorations } from "../lib/multiplayer"; import { findBlockNodes } from "../queries/findChildren"; @@ -262,7 +263,7 @@ class MermaidRenderer { element.innerText = "Empty diagram"; element.classList.add("empty"); } else { - element.innerText = error; + element.innerText = errToString(error); element.classList.add("parse-error"); } } finally { diff --git a/shared/editor/lib/uploadPlaceholder.tsx b/shared/editor/lib/uploadPlaceholder.tsx index 8c602de984..b8f7738924 100644 --- a/shared/editor/lib/uploadPlaceholder.tsx +++ b/shared/editor/lib/uploadPlaceholder.tsx @@ -11,7 +11,7 @@ const uploadPlaceholder = new Plugin({ init() { return DecorationSet.empty; }, - apply(tr, set: DecorationSet) { + apply(this: Plugin, tr, set: DecorationSet) { // See if the transaction adds or removes any placeholders – the placeholder display is // different depending on if we're uploading an image, video or plain file const action = tr.getMeta(this); diff --git a/shared/utils/error.test.ts b/shared/utils/error.test.ts new file mode 100644 index 0000000000..05d78835e2 --- /dev/null +++ b/shared/utils/error.test.ts @@ -0,0 +1,36 @@ +import { toError, errToString } from "./error"; + +describe("toError", () => { + it("returns the same Error instance when given an Error", () => { + const error = new Error("boom"); + expect(toError(error)).toBe(error); + }); + + it("preserves Error subclasses", () => { + const error = new TypeError("nope"); + expect(toError(error)).toBe(error); + }); + + it("wraps a string in an Error", () => { + expect(toError("boom")).toBeInstanceOf(Error); + expect(toError("boom").message).toBe("boom"); + }); + + it("wraps non-string values using their string representation", () => { + expect(toError(42).message).toBe("42"); + expect(toError(null).message).toBe("null"); + expect(toError(undefined).message).toBe("undefined"); + }); +}); + +describe("errToString", () => { + it("returns the message of an Error", () => { + expect(errToString(new Error("boom"))).toBe("boom"); + }); + + it("returns the string representation of a non-Error", () => { + expect(errToString("boom")).toBe("boom"); + expect(errToString(42)).toBe("42"); + expect(errToString(undefined)).toBe("undefined"); + }); +}); diff --git a/shared/utils/error.ts b/shared/utils/error.ts new file mode 100644 index 0000000000..ba5a45cf26 --- /dev/null +++ b/shared/utils/error.ts @@ -0,0 +1,19 @@ +/** + * Coerce an unknown value, such as a value caught in a try/catch, to an Error. + * + * @param value the value to coerce, typically a caught error. + * @returns the value itself when it is already an Error, otherwise a new Error wrapping its string representation. + */ +export function toError(value: unknown): Error { + return value instanceof Error ? value : new Error(String(value)); +} + +/** + * Extract a human-readable message from an unknown value, such as a value caught in a try/catch. + * + * @param value the value to read a message from, typically a caught error. + * @returns the Error's message when it is an Error, otherwise its string representation. + */ +export function errToString(value: unknown): string { + return value instanceof Error ? value.message : String(value); +} diff --git a/shared/utils/files.ts b/shared/utils/files.ts index ea3ba88f4a..da13b04287 100644 --- a/shared/utils/files.ts +++ b/shared/utils/files.ts @@ -104,7 +104,7 @@ export function getDataTransferFiles( .call(dt.items) .filter((dti: DataTransferItem) => dti.kind !== "string") .map((dti: DataTransferItem) => dti.getAsFile()) - .filter(Boolean) + .filter((file: File | null): file is File => file !== null) : []; } } diff --git a/tsconfig.json b/tsconfig.json index 0384b882dd..67b46190f8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "strict": false, "allowSyntheticDefaultImports": true, "alwaysStrict": true, "esModuleInterop": true, @@ -16,11 +17,13 @@ "noImplicitAny": true, "noImplicitOverride": false, "noImplicitReturns": true, - "noImplicitThis": false, + "noImplicitThis": true, + "useUnknownInCatchVariables": true, "sourceMap": true, "resolveJsonModule": true, "strictNullChecks": true, "noEmit": true, + "strictBindCallApply": true, "skipLibCheck": true, "ignoreDeprecations": "5.0", "target": "es2020", diff --git a/yarn.lock b/yarn.lock index 26fd94e34a..e24d473001 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15260,7 +15260,7 @@ __metadata: tiny-cookie: "npm:^2.5.1" tmp: "npm:^0.2.6" tunnel-agent: "npm:^0.6.0" - typescript: "npm:^5.9.3" + typescript: "npm:^6.0.3" ukkonen: "npm:^2.2.0" umzug: "npm:^3.8.3" unplugin-swc: "npm:^1.5.9" @@ -19298,7 +19298,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.0.4, typescript@npm:^5.9.3": +"typescript@npm:^5.0.4": version: 5.9.3 resolution: "typescript@npm:5.9.3" bin: @@ -19308,7 +19308,17 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.9.3#optional!builtin<compat/typescript>": +"typescript@npm:^6.0.3": + version: 6.0.3 + resolution: "typescript@npm:6.0.3" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606 + languageName: node + linkType: hard + +"typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>": version: 5.9.3 resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5" bin: @@ -19318,6 +19328,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@npm%3A^6.0.3#optional!builtin<compat/typescript>": + version: 6.0.3 + resolution: "typescript@patch:typescript@npm%3A6.0.3#optional!builtin<compat/typescript>::version=6.0.3&hash=5786d5" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/2f25c74e65663c248fa1ade2b8459d9ce5372ff9dad07067310f132966ebec1d93f6c42f0baf77a6b6a7a91460463f708e6887013aaade22111037457c6b25df + languageName: node + linkType: hard + "uc.micro@npm:^2.0.0, uc.micro@npm:^2.1.0": version: 2.1.0 resolution: "uc.micro@npm:2.1.0" From 0ba430e111831d3e4a9f9c7cf5e86e111259d0a9 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 18 Jun 2026 18:21:50 -0400 Subject: [PATCH 277/286] fix: Newlines in block fences in table cells (#12740) * fix: Newlines in block fences in table cells closes #12736 * refactor --- server/models/helpers/DocumentHelper.test.ts | 66 +++++++++++ shared/editor/lib/markdown/serializer.ts | 24 +++- shared/editor/lib/markdown/tableCell.ts | 24 ++++ shared/editor/nodes/CodeFence.ts | 20 ++-- shared/editor/nodes/MathBlock.ts | 18 ++- shared/editor/rules/tables.test.ts | 118 +++++++++++++++++++ shared/editor/rules/tables.ts | 54 +++++++++ 7 files changed, 295 insertions(+), 29 deletions(-) create mode 100644 shared/editor/lib/markdown/tableCell.ts create mode 100644 shared/editor/rules/tables.test.ts diff --git a/server/models/helpers/DocumentHelper.test.ts b/server/models/helpers/DocumentHelper.test.ts index d829c1ce91..bd5c9dd074 100644 --- a/server/models/helpers/DocumentHelper.test.ts +++ b/server/models/helpers/DocumentHelper.test.ts @@ -750,6 +750,72 @@ This is a [test paragraph](https://example.net)`, expect(result).not.toMatch(/\$\$\n/); }); + it("should export notice blocks inside table cells on a single line", async () => { + const document = await buildDocument({ + content: { + type: "doc", + content: [ + { + type: "table", + content: [ + { + type: "tr", + content: [ + { + type: "th", + attrs: { colspan: 1, rowspan: 1 }, + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "Header" }], + }, + ], + }, + ], + }, + { + type: "tr", + content: [ + { + type: "td", + attrs: { colspan: 1, rowspan: 1 }, + content: [ + { + type: "container_notice", + attrs: { style: "warning" }, + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "First | line" }], + }, + { + type: "paragraph", + content: [{ type: "text", text: "Second line" }], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + }); + const result = await DocumentHelper.toMarkdown(document, { + includeTitle: false, + }); + // Notice blocks inside tables should use <br> tags rather than literal + // newlines that would break the table row structure, with pipes escaped + // so the content cannot break out of the column. + expect(result).toContain( + ":::warning<br>First \\| line<br><br>Second line<br><br>:::" + ); + // The notice must not introduce raw newlines inside the table. + expect(result).not.toMatch(/:::warning\n/); + }); + it("should include collection title by default", async () => { const collection = await buildCollection({ name: "Test Collection", diff --git a/shared/editor/lib/markdown/serializer.ts b/shared/editor/lib/markdown/serializer.ts index 0d3ce72093..ff00f0dabd 100644 --- a/shared/editor/lib/markdown/serializer.ts +++ b/shared/editor/lib/markdown/serializer.ts @@ -484,7 +484,17 @@ export class MarkdownSerializerState { row.forEach((cell, _, j) => { this.append(j === 0 ? "| " : " | "); - const startPos = this.out.length; + // A table row is a single line of Markdown, so render the cell into an + // isolated buffer and flatten any newlines its block content (notices, + // code fences, blockquotes, …) produced into <br>. + const cellState = new MarkdownSerializerState( + this.nodes, + this.marks, + this.options + ); + cellState.inTable = true; + cellState.inList = this.inList; + cellState.inTightList = this.inTightList; cell.forEach((cellNode) => { if ( @@ -494,14 +504,18 @@ export class MarkdownSerializerState { cellNode.type.name === "paragraph" ) ) { - this.closed = false; - this.render(cellNode, row, j); + cellState.closed = false; + cellState.render(cellNode, row, j); } }); + const content = cellState.out + .replace(/^\n+|\n+$/g, "") + .replace(/\n/g, "<br>"); + this.append(content); + // Pad to column width - const contentLength = this.out.length - startPos; - const padding = Math.max(0, columnWidths[j] - contentLength); + const padding = Math.max(0, columnWidths[j] - content.length); this.append(" ".repeat(padding)); }); diff --git a/shared/editor/lib/markdown/tableCell.ts b/shared/editor/lib/markdown/tableCell.ts new file mode 100644 index 0000000000..3ae62999f7 --- /dev/null +++ b/shared/editor/lib/markdown/tableCell.ts @@ -0,0 +1,24 @@ +/** + * Escapes raw block content (code & math fences) so it survives on a single + * table-cell line. Their content bypasses the serializer's `esc()`, so the + * backslash (the escape character) and pipe (the cell delimiter) are escaped + * together in one pass to keep the content from breaking out of the column. + * + * @param text - the raw fence content. + * @returns the escaped content, reversible with `unescapeRawTableCell`. + */ +export function escapeRawTableCell(text: string): string { + return text.replace(/[\\|]/g, "\\$&"); +} + +/** + * Reverses `escapeRawTableCell` when a fenced block is reconstructed from a + * table cell, restoring the escaped backslashes and pipes. Markdown does not + * unescape inside raw blocks, so this is applied during the nested re-parse. + * + * @param text - the escaped fence content. + * @returns the original raw content. + */ +export function unescapeRawTableCell(text: string): string { + return text.replace(/\\([\\|])/g, "$1"); +} diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index 59652813ad..1ecc26520e 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -45,6 +45,7 @@ import { isCode, isMermaid } from "../lib/isCode"; import { isRemoteTransaction } from "../lib/multiplayer"; import { findBlockNodes } from "../queries/findChildren"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; +import { escapeRawTableCell } from "../lib/markdown/tableCell"; import { findNextNewline, findPreviousNewline } from "../queries/findNewlines"; import { findParentNode, @@ -698,21 +699,14 @@ export default class CodeFence extends Node<CodeFenceOptions> { } toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { - // Inside table cells literal newlines break the row structure, so encode - // the fence on a single line using <br> for line breaks. Backslashes and - // pipes are escaped so the cell content cannot break out of the column. - if (state.inTable) { - const code = node.textContent - .replace(/[\\|]/g, "\\$&") - .replace(/\n/g, "<br>"); - state.write( - "```" + (node.attrs.language || "") + "<br>" + code + "<br>```" - ); - return; - } + // Fence content bypasses esc(), so when inside a table cell escape it here + // so it cannot break out of the column. + const content = state.inTable + ? escapeRawTableCell(node.textContent) + : node.textContent; state.write("```" + (node.attrs.language || "") + "\n"); - state.text(node.textContent, false); + state.text(content, false); state.ensureNewLine(); state.write("```"); state.closeBlock(node); diff --git a/shared/editor/nodes/MathBlock.ts b/shared/editor/nodes/MathBlock.ts index be485e3914..0b68083a52 100644 --- a/shared/editor/nodes/MathBlock.ts +++ b/shared/editor/nodes/MathBlock.ts @@ -11,6 +11,7 @@ import type { import type { Command } from "prosemirror-state"; import { TextSelection } from "prosemirror-state"; import type { MarkdownSerializerState } from "../lib/markdown/serializer"; +import { escapeRawTableCell } from "../lib/markdown/tableCell"; import mathRule, { REGEX_BLOCK_MATH_DOLLARS } from "../rules/math"; import Node from "./Node"; @@ -46,19 +47,14 @@ export default class MathBlock extends Node { } toMarkdown(state: MarkdownSerializerState, node: ProsemirrorNode) { - // Inside table cells literal newlines break the row structure, so encode - // the block on a single line using <br> for line breaks. Backslashes and - // pipes are escaped so the cell content cannot break out of the column. - if (state.inTable) { - const math = node.textContent - .replace(/[\\|]/g, "\\$&") - .replace(/\n/g, "<br>"); - state.write("$$<br>" + math + "<br>$$"); - return; - } + // Block content bypasses esc(), so when inside a table cell escape it here + // so it cannot break out of the column. + const content = state.inTable + ? escapeRawTableCell(node.textContent) + : node.textContent; state.write("$$\n"); - state.text(node.textContent, false); + state.text(content, false); state.ensureNewLine(); state.write("$$"); state.closeBlock(node); diff --git a/shared/editor/rules/tables.test.ts b/shared/editor/rules/tables.test.ts new file mode 100644 index 0000000000..f22298a55a --- /dev/null +++ b/shared/editor/rules/tables.test.ts @@ -0,0 +1,118 @@ +import { extensionManager, schema } from "../../test/editor"; + +const serializer = extensionManager.serializer(); +const parser = extensionManager.parser({ + schema, + plugins: extensionManager.rulePlugins, +}); + +/** + * Wraps a block node in a single-cell table so cell serialization/parsing can + * be exercised in isolation. + */ +function tableWith(cell: Record<string, unknown>) { + return schema.nodeFromJSON({ + type: "doc", + content: [ + { + type: "table", + content: [ + { + type: "tr", + content: [ + { + type: "th", + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "Header" }], + }, + ], + }, + ], + }, + { + type: "tr", + content: [{ type: "td", content: [cell] }], + }, + ], + }, + ], + }); +} + +it("round-trips a notice inside a table cell", () => { + const doc = tableWith({ + type: "container_notice", + attrs: { style: "warning" }, + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "First | line" }], + }, + { + type: "paragraph", + content: [{ type: "text", text: "Second line" }], + }, + ], + }); + + const markdown = serializer.serialize(doc, { commonMark: true }); + expect(parser.parse(markdown)!.toJSON()).toEqual(doc.toJSON()); +}); + +it("round-trips a code fence inside a table cell", () => { + // A ``` fence always parses to a code_block node (see CodeFence.parseMarkdown), + // so the round-trippable shape is code_block regardless of the table. + const doc = tableWith({ + type: "code_block", + attrs: { language: "javascript", wrap: false }, + content: [{ type: "text", text: "a | b\nc \\ d" }], + }); + + const markdown = serializer.serialize(doc, { commonMark: true }); + expect(parser.parse(markdown)!.toJSON()).toEqual(doc.toJSON()); +}); + +it("round-trips a toggle block inside a table cell", () => { + const doc = tableWith({ + type: "container_toggle", + content: [ + { + type: "paragraph", + content: [{ type: "text", text: "Toggle | heading" }], + }, + { + type: "paragraph", + content: [{ type: "text", text: "Hidden body" }], + }, + ], + }); + + const markdown = serializer.serialize(doc, { commonMark: true }); + expect(parser.parse(markdown)!.toJSON()).toEqual(doc.toJSON()); +}); + +it("round-trips a math block inside a table cell", () => { + const doc = tableWith({ + type: "math_block", + content: [{ type: "text", text: "a | b\n\\frac{1}{2}" }], + }); + + const markdown = serializer.serialize(doc, { commonMark: true }); + expect(parser.parse(markdown)!.toJSON()).toEqual(doc.toJSON()); +}); + +it("keeps a multi-line paragraph cell as hard breaks, not a fenced block", () => { + const doc = tableWith({ + type: "paragraph", + content: [ + { type: "text", text: "Line one" }, + { type: "br" }, + { type: "text", text: "Line two" }, + ], + }); + + const markdown = serializer.serialize(doc, { commonMark: true }); + expect(parser.parse(markdown)!.toJSON()).toEqual(doc.toJSON()); +}); diff --git a/shared/editor/rules/tables.ts b/shared/editor/rules/tables.ts index ffaaf4def2..480f2c0b4c 100644 --- a/shared/editor/rules/tables.ts +++ b/shared/editor/rules/tables.ts @@ -1,10 +1,56 @@ import type MarkdownIt from "markdown-it"; +import { unescapeRawTableCell } from "../lib/markdown/tableCell"; const BREAK_REGEX = /(?<=^|[^\\])\\n/; const BR_TAG_REGEX = /<br\s*\/?>/gi; // Matches checkbox syntax with optional list prefix: "- [x] Task" or "[x] Task" // Stops at <br> or newline to handle multiple checkboxes in a cell const CHECKBOX_REGEX = /^(?:-\s*)?\[(X|\s|_|-)\]\s([^<\n]*)?/i; +// Matches the opening of a notice (:::style), toggle (+++), code (```) or math +// ($$) fence +const FENCE_OPEN_REGEX = /^(?::::\S|\+{3,}|```|\$\$)/; + +/** + * Block content (notice, toggle, code & math fences) is serialized onto a + * single table-cell line using <br> in place of newlines so it does not break + * the row. Reconstruct it by re-parsing the un-flattened source, round-tripping + * back to the original block rather than leaving literal fence markers as + * text. + * + * @param md - the markdown-it instance, used to re-parse the cell source. + * @param content - the raw inline content of the cell. + * @param env - the markdown-it environment, forwarded to the nested parse. + * @returns the reconstructed block tokens, or null if the cell is not a fence. + */ +function parseFencedCell( + md: MarkdownIt, + content: string, + env: unknown +): ReturnType<MarkdownIt["parse"]> | null { + const source = content.replace(BR_TAG_REGEX, "\n"); + // A fenced block spans multiple lines and opens with its fence marker. + if (!source.includes("\n") || !FENCE_OPEN_REGEX.test(source)) { + return null; + } + + // Code & math fences are raw, so the parser won't undo the escaping the + // serializer added to keep the cell intact — reverse it here. Notice and + // toggle content is inline, so markdown unescapes it on re-parse. + const isRawFence = source.startsWith("```") || source.startsWith("$$"); + const unescaped = isRawFence ? unescapeRawTableCell(source) : source; + + const tokens = md.parse(unescaped, env); + const type = tokens[0]?.type; + if ( + type === "container_notice_open" || + type === "container_toggle_open" || + type === "fence" || + type === "math_block" + ) { + return tokens; + } + return null; +} export default function markdownTables(md: MarkdownIt): void { // insert a new rule after the "inline" rules are parsed @@ -105,6 +151,14 @@ export default function markdownTables(md: MarkdownIt): void { continue; } + // Reconstruct notice, toggle, code & math fences that were serialized + // onto a single line, replacing the inline token with the block tokens. + const fenceTokens = parseFencedCell(md, inlineToken.content, state.env); + if (fenceTokens) { + tokens.splice(i + 1, closeIndex - i - 1, ...fenceTokens); + continue; + } + // Split content by <br> to find all checkboxes const parts = inlineToken.content.split(BR_TAG_REGEX); const checkboxItems: Array<{ checked: boolean; label: string }> = []; From f7f0e9fdfee2f2691dab1cb1f7beae865b2fa69f Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Thu, 18 Jun 2026 18:47:25 -0400 Subject: [PATCH 278/286] chore: Remove dead ImportTask base class (#12741) The FileOperation-based ImportTask was superseded by the APIImportTask pipeline (JSON/Markdown/Notion) in #12361 and #12380. Nothing extends or imports it any longer. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- server/queues/tasks/ImportTask.ts | 622 ------------------------------ 1 file changed, 622 deletions(-) delete mode 100644 server/queues/tasks/ImportTask.ts diff --git a/server/queues/tasks/ImportTask.ts b/server/queues/tasks/ImportTask.ts deleted file mode 100644 index ca8a33d3c7..0000000000 --- a/server/queues/tasks/ImportTask.ts +++ /dev/null @@ -1,622 +0,0 @@ -import path from "node:path"; -import fs from "fs-extra"; -import { chunk, truncate } from "es-toolkit/compat"; -import type { InferCreationAttributes } from "sequelize"; -import tmp from "tmp"; -import { toError } from "@shared/utils/error"; -import type { CollectionSort, ProsemirrorData } from "@shared/types"; -import { - AttachmentPreset, - CollectionPermission, - FileOperationState, -} from "@shared/types"; -import { CollectionValidation } from "@shared/validations"; -import attachmentCreator from "@server/commands/attachmentCreator"; -import documentCreator from "@server/commands/documentCreator"; -import { createContext } from "@server/context"; -import { InternalError, ValidationError } from "@server/errors"; -import Logger from "@server/logging/Logger"; -import { - User, - Event, - Document, - Collection, - FileOperation, - Attachment, -} from "@server/models"; -import { sequelize } from "@server/storage/database"; -import ZipHelper from "@server/utils/ZipHelper"; -import { generateUrlId } from "@server/utils/url"; -import { BaseTask, TaskPriority } from "./base/BaseTask"; -import env from "@server/env"; - -type Props = { - fileOperationId: string; -}; - -/** - * Standardized format for data importing, to be used by all import tasks. - */ -export type StructuredImportData = { - collections: { - id: string; - urlId?: string; - color?: string | null; - icon?: string | null; - sort?: CollectionSort; - permission?: CollectionPermission | null; - name: string; - /** - * The collection description. To reference an attachment or image use the - * special formatting <<attachmentId>>. It will be replaced with a reference - * to the actual attachment as part of persistData. - * - * To reference a document use <<documentId>>, it will be replaced with a - * link to the document as part of persistData once the document url is - * generated. - */ - description?: string | null; - data?: ProsemirrorData | null; - /** Optional id from import source, useful for mapping */ - externalId?: string; - }[]; - documents: { - id: string; - urlId?: string; - title: string; - emoji?: string | null; - icon?: string | null; - color?: string | null; - /** - * The document text. To reference an attachment or image use the special - * formatting <<attachmentId>>. It will be replaced with a reference to the - * actual attachment as part of persistData. - * - * To reference another document use <<documentId>>, it will be replaced - * with a link to the document as part of persistData once the document url - * is generated. - */ - text: string; - data?: ProsemirrorData; - collectionId: string; - updatedAt?: Date; - createdAt?: Date; - publishedAt?: Date | null; - parentDocumentId?: string | null; - createdById?: string; - createdByName?: string; - createdByEmail?: string | null; - path: string; - mimeType: string; - /** Optional id from import source, useful for mapping */ - externalId?: string; - }[]; - attachments: { - id: string; - name: string; - path: string; - mimeType: string; - buffer: () => Promise<Buffer>; - /** Optional id from import source, useful for mapping */ - externalId?: string; - }[]; -}; - -export default abstract class ImportTask extends BaseTask<Props> { - /** - * Runs the import task. - * - * @param props The props - */ - public async perform({ fileOperationId }: Props) { - let dirPath; - const fileOperation = await FileOperation.unscoped().findByPk( - fileOperationId, - { - rejectOnEmpty: true, - } - ); - - try { - Logger.info("task", `ImportTask fetching data for ${fileOperationId}`); - dirPath = await this.fetchAndExtractData(fileOperation); - if (!dirPath) { - throw InternalError("Failed to fetch data for import from storage."); - } - - Logger.info("task", `ImportTask parsing data for ${fileOperationId}`, { - dirPath, - }); - const parsed = await this.parseData(dirPath, fileOperation); - - if (parsed.collections.length === 0) { - throw ValidationError( - "Uploaded file does not contain any valid collections. It may be corrupt, the wrong type, or version." - ); - } - - if (parsed.documents.length === 0) { - throw ValidationError( - "Uploaded file does not contain any valid documents" - ); - } - - let result; - try { - Logger.info( - "task", - `ImportTask persisting data for ${fileOperationId}` - ); - result = await this.persistData(parsed, fileOperation); - } catch (error) { - Logger.error( - `ImportTask failed to persist data for ${fileOperationId}`, - toError(error) - ); - throw new Error("Sorry, an internal error occurred during import"); - } - - await this.updateFileOperation( - fileOperation, - FileOperationState.Complete - ); - - return result; - } catch (error) { - Logger.error(`ImportTask failed for ${fileOperationId}`, toError(error)); - - await this.updateFileOperation( - fileOperation, - FileOperationState.Error, - toError(error) - ); - throw error; - } finally { - if (dirPath) { - await this.cleanupExtractedData(dirPath, fileOperation); - } - } - } - - /** - * Update the state of the underlying FileOperation in the database and send - * an event to the client. - * - * @param fileOperation The FileOperation to update - */ - private async updateFileOperation( - fileOperation: FileOperation, - state: FileOperationState, - error?: Error - ) { - await fileOperation.update( - { - state, - error: error ? truncate(error.message, { length: 255 }) : undefined, - }, - { - hooks: false, - } - ); - await Event.schedule({ - name: "fileOperations.update", - modelId: fileOperation.id, - teamId: fileOperation.teamId, - actorId: fileOperation.userId, - }); - } - - /** - * Fetch the remote data associated with the file operation into a temporary disk location. - * - * @param fileOperation The FileOperation to fetch data for - * @returns A promise that resolves to the temporary file path. - */ - protected async fetchAndExtractData( - fileOperation: FileOperation - ): Promise<string> { - let cleanup; - let filePath: string; - - try { - const res = await fileOperation.handle; - filePath = res.path; - cleanup = res.cleanup; - - const tmpPath = await new Promise<string>((resolve, reject) => { - tmp.dir((err, tmpDir) => { - if (err) { - Logger.error("Could not create temporary directory", err); - return reject(err); - } - - Logger.debug( - "task", - `ImportTask extracting data for ${fileOperation.id}` - ); - - void ZipHelper.extract(filePath, tmpDir) - .then(() => resolve(tmpDir)) - .catch((zErr) => { - Logger.error("Could not extract zip file", zErr); - reject(zErr); - }); - }); - }); - - return tmpPath; - } finally { - Logger.debug( - "task", - `ImportTask cleaning up temporary data for ${fileOperation.id}` - ); - - await cleanup?.(); - } - } - - /** - * Cleanup the temporary directory where the data was fetched and extracted. - * - * @param dirPath The temporary directory path where the data was fetched - * @param fileOperation The associated FileOperation - */ - protected async cleanupExtractedData( - dirPath: string, - fileOperation: FileOperation - ) { - try { - await fs.rm(dirPath, { recursive: true, force: true }); - } catch (error) { - Logger.error( - `ImportTask failed to cleanup extracted data for ${fileOperation.id}`, - toError(error) - ); - } - } - - /** - * Parse the data loaded from fetchAndExtractData into a consistent structured format - * that represents collections, documents, and the relationships between them. - * - * @param dirPath The temporary directory path where the data was fetched - * @param fileOperation The FileOperation to parse data for - * @returns A promise that resolves to the structured data - */ - protected abstract parseData( - dirPath: string, - fileOperation: FileOperation - ): Promise<StructuredImportData>; - - /** - * Persist the data that was already fetched and parsed into the consistent - * structured data. - * - * @param props The props - */ - protected async persistData( - data: StructuredImportData, - fileOperation: FileOperation - ): Promise<{ - collections: Map<string, Collection>; - documents: Map<string, Document>; - attachments: Map<string, Attachment>; - }> { - const collections = new Map<string, Collection>(); - const documents = new Map<string, Document>(); - const attachments = new Map<string, Attachment>(); - const userIdCache = new Map<string, string | undefined>(); - - const user = await User.findByPk(fileOperation.userId, { - rejectOnEmpty: true, - }); - - try { - await this.preprocessDocUrlIds(data); - - // Collections - for (const item of data.collections) { - await sequelize.transaction(async (transaction) => { - Logger.debug( - "task", - `ImportTask persisting collection ${item.name} (${item.id})` - ); - let description = item.description; - - if (description) { - // Check all of the attachments we've created against urls in the text - // and replace them out with attachment redirect urls before saving. - for (const aitem of data.attachments) { - description = description.replace( - new RegExp(`<<${aitem.id}>>`, "g"), - Attachment.getRedirectUrl(aitem.id) - ); - } - - // Check all of the document we've created against urls in the text - // and replace them out with a valid internal link. - for (const ditem of data.documents) { - description = description.replace( - new RegExp(`<<${ditem.id}>>`, "g"), - Document.getPath({ title: ditem.title, urlId: ditem.urlId! }) - ); - } - } - - const options: { urlId?: string } = {}; - if (item.urlId) { - const existing = await Collection.unscoped().findOne({ - attributes: ["id"], - paranoid: false, - transaction, - where: { - urlId: item.urlId, - }, - }); - - if (!existing) { - options.urlId = item.urlId; - } - } - - const truncatedDescription = description - ? truncate(description, { - length: CollectionValidation.maxDescriptionLength, - }) - : null; - - const sharedDefaults: Partial<InferCreationAttributes<Collection>> = { - ...options, - id: item.id, - description: truncatedDescription, - content: item.data, - color: item.color, - icon: item.icon, - sort: item.sort, - createdById: fileOperation.userId, - permission: - (item.permission ?? - fileOperation.options?.permission !== undefined) - ? fileOperation.options?.permission - : CollectionPermission.ReadWrite, - importId: fileOperation.id, - }; - - const ctx = createContext({ user, transaction }); - - // check if collection with name exists - const response = await Collection.findOrCreateWithCtx(ctx, { - where: { - teamId: fileOperation.teamId, - name: item.name, - }, - defaults: sharedDefaults, - }); - - let collection = response[0]; - const isCreated = response[1]; - - // create new collection if name already exists, yes it's possible that - // there is also a "Name (Imported)" but this is a case not worth dealing - // with right now - if (!isCreated) { - const name = `${item.name} (Imported)`; - collection = await Collection.createWithCtx(ctx, { - ...sharedDefaults, - name, - teamId: fileOperation.teamId, - }); - } - - collections.set(item.id, collection); - - // Documents - for (const item of data.documents.filter( - (d) => d.collectionId === collection.id - )) { - Logger.debug( - "task", - `ImportTask persisting document ${item.title} (${item.id})` - ); - let text = item.text; - - // Check all of the attachments we've created against urls in the text - // and replace them out with attachment redirect urls before saving. - for (const aitem of data.attachments) { - text = text.replace( - new RegExp(`<<${aitem.id}>>`, "g"), - Attachment.getRedirectUrl(aitem.id) - ); - } - - // Check all of the document we've created against urls in the text - // and replace them out with a valid internal link. - for (const ditem of data.documents) { - text = text.replace( - new RegExp(`<<${ditem.id}>>`, "g"), - Document.getPath({ title: ditem.title, urlId: ditem.urlId! }) - ); - } - - const resolvedUserId = - (await this.resolveUserId( - item, - fileOperation.teamId, - userIdCache - )) ?? fileOperation.userId; - - const document = await documentCreator(ctx, { - sourceMetadata: { - fileName: path.basename(item.path), - mimeType: item.mimeType, - externalId: item.externalId, - createdByName: item.createdByName, - }, - id: item.id, - title: item.title, - urlId: item.urlId, - text, - content: item.data, - icon: item.icon, - color: item.color, - collectionId: item.collectionId, - createdAt: item.createdAt, - updatedAt: item.updatedAt ?? item.createdAt, - publishedAt: item.updatedAt ?? item.createdAt ?? new Date(), - parentDocumentId: item.parentDocumentId, - importId: fileOperation.id, - createdById: resolvedUserId, - lastModifiedById: resolvedUserId, - }); - documents.set(item.id, document); - - await collection.addDocumentToStructure(document, undefined, { - transaction, - save: false, - insertOrder: "append", - }); - } - - await collection.save({ transaction }); - }); - } - - // Attachments - await sequelize.transaction(async (transaction) => { - const chunks = chunk(data.attachments, 10); - - for (const attChunk of chunks) { - // Parallelize 10 uploads at a time - await Promise.all( - attChunk.map(async (item) => { - Logger.debug( - "task", - `ImportTask persisting attachment ${item.name} (${item.id})` - ); - const attachment = await attachmentCreator({ - source: "import", - preset: AttachmentPreset.DocumentAttachment, - id: item.id, - name: item.name, - type: item.mimeType, - buffer: await item.buffer(), - user, - ctx: createContext({ user, transaction }), - fetchOptions: { - timeout: env.FILE_STORAGE_IMPORT_TIMEOUT, - }, - }); - if (attachment) { - attachments.set(item.id, attachment); - } - }) - ); - } - }); - } catch (err) { - Logger.info( - "task", - `Removing ${attachments.size} attachments on failure` - ); - - await Promise.all( - Array.from(attachments.values()).map((model) => - Attachment.deleteAttachmentFromS3(model) - ) - ); - throw err; - } - - // Return value is only used for testing - return { - collections, - documents, - attachments, - }; - } - - /** - * Job options such as priority and retry strategy, as defined by Bull. - */ - public get options() { - return { - priority: TaskPriority.Low, - attempts: 1, - }; - } - - /** - * Resolves the original document author to an internal user, using a cache - * to avoid redundant database queries. Attempts to match by user ID first, - * then by email. Both hits and misses are cached. - * - * @param item the document import item containing createdById and createdByEmail. - * @param teamId the team ID to scope the lookup to. - * @param cache a map used to cache resolved user IDs across calls. - * @returns the resolved user ID, or undefined if no match was found. - */ - private async resolveUserId( - item: { createdById?: string; createdByEmail?: string | null }, - teamId: string, - cache: Map<string, string | undefined> - ): Promise<string | undefined> { - if (item.createdById) { - const cacheKey = `id:${item.createdById}`; - if (cache.has(cacheKey)) { - return cache.get(cacheKey); - } - - const user = await User.findOne({ - where: { id: item.createdById, teamId }, - }); - if (user) { - cache.set(cacheKey, user.id); - return user.id; - } - cache.set(cacheKey, undefined); - } - - if (item.createdByEmail) { - const email = item.createdByEmail.toLowerCase().trim(); - const cacheKey = `email:${email}`; - if (cache.has(cacheKey)) { - return cache.get(cacheKey); - } - - const user = await User.findOne({ - where: { email, teamId }, - }); - if (user) { - cache.set(cacheKey, user.id); - if (item.createdById) { - cache.set(`id:${item.createdById}`, user.id); - } - return user.id; - } - cache.set(cacheKey, undefined); - } - - return undefined; - } - - private async preprocessDocUrlIds(data: StructuredImportData) { - for (const doc of data.documents) { - // check DB only if urlId is present in the input. - if (doc.urlId) { - const existing = await Document.unscoped().findOne({ - attributes: ["id"], - paranoid: false, - where: { - urlId: doc.urlId, - }, - }); - - if (!existing) { - continue; - } - } - - doc.urlId = generateUrlId(); - } - } -} From b4dbfc269edc828f812425d6b8fd3000a6104328 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 10:05:20 -0400 Subject: [PATCH 279/286] feat: Add installation switcher to desktop login (#12742) * feat: Add installation switcher to desktop login * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- app/scenes/Login/Login.tsx | 3 + app/scenes/Login/components/BackButton.tsx | 19 ++- .../Login/components/SwitchHostButton.tsx | 69 +++++++++ .../Login/components/SwitchHostDialog.tsx | 139 ++++++++++++++++++ app/scenes/Login/urls.test.ts | 34 +++++ app/scenes/Login/urls.ts | 55 +++++++ app/typings/window.d.ts | 13 ++ shared/i18n/locales/en_US/translation.json | 3 + 8 files changed, 331 insertions(+), 4 deletions(-) create mode 100644 app/scenes/Login/components/SwitchHostButton.tsx create mode 100644 app/scenes/Login/components/SwitchHostDialog.tsx create mode 100644 app/scenes/Login/urls.test.ts diff --git a/app/scenes/Login/Login.tsx b/app/scenes/Login/Login.tsx index 9576208cd0..ffab0fda0c 100644 --- a/app/scenes/Login/Login.tsx +++ b/app/scenes/Login/Login.tsx @@ -40,6 +40,7 @@ import { BackButton } from "./components/BackButton"; import { Background } from "./components/Background"; import { Centered } from "./components/Centered"; import { Notices } from "./components/Notices"; +import { SwitchHostButton } from "./components/SwitchHostButton"; import { navigateToSubdomain } from "./urls"; import lazyWithRetry from "~/utils/lazyWithRetry"; import { getRedirectUrl } from "~/utils/urls"; @@ -139,6 +140,7 @@ function Login({ children, onBack }: Props) { <Background> <BackButton onBack={onBack} /> <ChangeLanguage locale={detectLanguage()} /> + <SwitchHostButton /> <Centered> <PageTitle title={t("Login")} /> <Heading centered>{t("Error")}</Heading> @@ -298,6 +300,7 @@ function Login({ children, onBack }: Props) { <Background> <BackButton onBack={onBack} config={config} /> <ChangeLanguage locale={detectLanguage()} /> + <SwitchHostButton /> <Centered gap={12}> <PageTitle diff --git a/app/scenes/Login/components/BackButton.tsx b/app/scenes/Login/components/BackButton.tsx index f53cf64f90..520b7c33a0 100644 --- a/app/scenes/Login/components/BackButton.tsx +++ b/app/scenes/Login/components/BackButton.tsx @@ -6,6 +6,7 @@ import type { Config } from "~/stores/AuthStore"; import env from "~/env"; import Desktop from "~/utils/Desktop"; import isCloudHosted from "~/utils/isCloudHosted"; +import { DefaultHost } from "../urls"; type Props = { config?: Config; @@ -24,17 +25,27 @@ export function BackButton({ onBack, config }: Props) { ); } - if (!isCloudHosted || parseDomain(window.location.origin).custom) { - return null; + // In the desktop app any host other than the default is one the user has + // switched to, so back always returns to the default host. + if (Desktop.isElectron()) { + if (window.location.origin === DefaultHost) { + return null; + } + + return ( + <Link href={DefaultHost}> + <BackIcon /> {t("Back")} + </Link> + ); } - if (Desktop.isElectron() && !isSubdomain) { + if (!isCloudHosted || parseDomain(window.location.origin).custom) { return null; } return ( <Link href={isSubdomain ? env.URL : "https://www.getoutline.com"}> - <BackIcon /> {Desktop.isElectron() ? t("Back") : t("Back to home")} + <BackIcon /> {t("Back to home")} </Link> ); } diff --git a/app/scenes/Login/components/SwitchHostButton.tsx b/app/scenes/Login/components/SwitchHostButton.tsx new file mode 100644 index 0000000000..9f46e680cc --- /dev/null +++ b/app/scenes/Login/components/SwitchHostButton.tsx @@ -0,0 +1,69 @@ +import { GlobeIcon } from "outline-icons"; +import { useCallback } from "react"; +import { useTranslation } from "react-i18next"; +import styled from "styled-components"; +import { s } from "@shared/styles"; +import NudeButton from "~/components/NudeButton"; +import Tooltip from "~/components/Tooltip"; +import useStores from "~/hooks/useStores"; +import Desktop from "~/utils/Desktop"; +import { SwitchHostDialog } from "./SwitchHostDialog"; + +/** + * Control shown in the top right of the login screen when running inside the + * desktop app, allowing the user to switch the Outline installation to connect + * to. + */ +export function SwitchHostButton() { + const { t } = useTranslation(); + const { dialogs } = useStores(); + + const handleClick = useCallback(() => { + dialogs.openModal({ + title: t("Choose installation"), + content: <SwitchHostDialog />, + }); + }, [dialogs, t]); + + // Hidden on the web and in older desktop apps that predate the bridge method + // used to validate the chosen installation. + if (!Desktop.isElectron() || !Desktop.bridge?.loadAuthConfig) { + return null; + } + + return ( + <Position> + <Tooltip content={t("Choose installation")} side="bottom"> + <Button onClick={handleClick} aria-label={t("Choose installation")}> + <Host>{window.location.host}</Host> + <GlobeIcon /> + </Button> + </Tooltip> + </Position> + ); +} + +const Position = styled.div` + position: absolute; + top: 0; + right: 0; + padding: ${Desktop.isElectron() ? "48px 32px" : "32px"}; +`; + +const Button = styled(NudeButton)` + display: flex; + align-items: center; + gap: 8px; + width: auto; + height: auto; + color: ${s("textSecondary")}; + + &:hover { + color: ${s("text")}; + } +`; + +const Host = styled.span` + font-size: 14px; + font-weight: 500; +`; diff --git a/app/scenes/Login/components/SwitchHostDialog.tsx b/app/scenes/Login/components/SwitchHostDialog.tsx new file mode 100644 index 0000000000..32d5fbb0b4 --- /dev/null +++ b/app/scenes/Login/components/SwitchHostDialog.tsx @@ -0,0 +1,139 @@ +import { debounce } from "es-toolkit/compat"; +import { CheckmarkIcon } from "outline-icons"; +import { useState, useEffect, useCallback, useMemo, useRef } from "react"; +import { useTranslation } from "react-i18next"; +import styled from "styled-components"; +import { s } from "@shared/styles"; +import Spinner from "@shared/components/Spinner"; +import ButtonLarge from "~/components/ButtonLarge"; +import Input from "~/components/Input"; +import Text from "~/components/Text"; +import { DefaultHostname, navigateToHost, validateHost } from "../urls"; + +type Status = "idle" | "checking" | "valid" | "invalid"; + +/** + * Dialog that allows choosing the Outline installation to connect the desktop + * app to. The entered host is validated against its auth configuration before + * the user is able to continue. + */ +export function SwitchHostDialog() { + const { t } = useTranslation(); + const [host, setHost] = useState(DefaultHostname); + const [status, setStatus] = useState<Status>("idle"); + const [validatedUrl, setValidatedUrl] = useState<string | null>(null); + + // Tracks the latest value being checked so a slow check that resolves after + // newer input is ignored. + const latestValue = useRef(""); + + const checkHost = useMemo( + () => + debounce(async (value: string) => { + try { + const url = await validateHost(value); + if (latestValue.current === value) { + setValidatedUrl(url); + setStatus("valid"); + } + } catch { + if (latestValue.current === value) { + setValidatedUrl(null); + setStatus("invalid"); + } + } + }, 500), + [] + ); + + useEffect(() => { + const value = host.trim(); + latestValue.current = value; + + if (!value) { + checkHost.cancel(); + setStatus("idle"); + setValidatedUrl(null); + return; + } + + setStatus("checking"); + void checkHost(value); + + return () => checkHost.cancel(); + }, [host, checkHost]); + + const handleChange = useCallback( + (event: React.ChangeEvent<HTMLInputElement>) => { + const value = event.target.value; + setHost(value); + setValidatedUrl(null); + setStatus(value.trim() ? "checking" : "idle"); + }, + [] + ); + + const handleSubmit = useCallback( + async (event: React.FormEvent) => { + event.preventDefault(); + if (status === "valid" && validatedUrl) { + await navigateToHost(validatedUrl); + } + }, + [status, validatedUrl] + ); + + return ( + <form onSubmit={handleSubmit}> + <Text as="p"> + {t("Enter the address of an Outline install to connect to")} + </Text> + <Input + autoFocus + value={host} + onChange={handleChange} + autoComplete="off" + autoCorrect="off" + autoCapitalize="off" + spellCheck={false} + prefix={<Prefix>https://</Prefix>} + error={ + status === "invalid" + ? t("This doesn’t appear to be a valid installation") + : undefined + } + > + <Status> + {status === "checking" ? ( + <Spinner /> + ) : status === "valid" ? ( + <ValidIcon /> + ) : null} + </Status> + </Input> + <ButtonLarge + type="submit" + fullwidth + disabled={status !== "valid"} + style={{ marginTop: "1em" }} + > + {t("Continue")} + </ButtonLarge> + </form> + ); +} + +const Prefix = styled.span` + color: ${s("textTertiary")}; + padding-left: 8px; +`; + +const Status = styled.span` + display: flex; + align-items: center; + padding-right: 8px; +`; + +const ValidIcon = styled(CheckmarkIcon)` + color: ${s("accent")}; +`; diff --git a/app/scenes/Login/urls.test.ts b/app/scenes/Login/urls.test.ts new file mode 100644 index 0000000000..2d3dca37e8 --- /dev/null +++ b/app/scenes/Login/urls.test.ts @@ -0,0 +1,34 @@ +import { normalizeHost } from "./urls"; + +describe("normalizeHost", () => { + it("defaults to https when no protocol is given", () => { + expect(normalizeHost("app.getoutline.com")).toBe( + "https://app.getoutline.com" + ); + }); + + it("preserves an explicit protocol", () => { + expect(normalizeHost("http://localhost:3000")).toBe( + "http://localhost:3000" + ); + }); + + it("strips paths and trailing slashes", () => { + expect(normalizeHost("https://docs.example.com/")).toBe( + "https://docs.example.com" + ); + expect(normalizeHost("docs.example.com/login")).toBe( + "https://docs.example.com" + ); + }); + + it("trims surrounding whitespace", () => { + expect(normalizeHost(" app.getoutline.com ")).toBe( + "https://app.getoutline.com" + ); + }); + + it("throws on an unparseable host", () => { + expect(() => normalizeHost("not a url")).toThrow(); + }); +}); diff --git a/app/scenes/Login/urls.ts b/app/scenes/Login/urls.ts index fe1328a358..34f77dac97 100644 --- a/app/scenes/Login/urls.ts +++ b/app/scenes/Login/urls.ts @@ -1,5 +1,11 @@ import Desktop from "~/utils/Desktop"; +/** The hostname of the default Outline cloud installation. */ +export const DefaultHostname = "app.getoutline.com"; + +/** The origin of the default Outline cloud installation. */ +export const DefaultHost = `https://${DefaultHostname}`; + function validateAndEncodeSubdomain(subdomain: string): string { const encodedSubdomain = encodeURIComponent(subdomain); const urlPattern = /^[a-z\d-]{1,63}$/; @@ -23,3 +29,52 @@ export async function navigateToSubdomain(subdomain: string) { await Desktop.bridge?.addCustomHost(host); window.location.href = host; } + +/** + * Normalize a user-entered host into an origin URL, defaulting to https. + * + * @param input The host entered by the user. + * @returns the normalized origin (e.g. "https://app.getoutline.com"). + * @throws if the input cannot be parsed into a valid URL. + */ +export function normalizeHost(input: string): string { + const trimmed = input.trim().replace(/\/+$/, ""); + const withProtocol = /^https?:\/\//i.test(trimmed) + ? trimmed + : `https://${trimmed}`; + return new URL(withProtocol).origin; +} + +/** + * Check that the given host is a reachable Outline installation by requesting + * its auth configuration. The request is performed in the desktop main process + * to bypass renderer CORS restrictions. + * + * @param input The host entered by the user. + * @returns the normalized origin of the validated installation. + * @throws if the host is unreachable or not an Outline installation. + */ +export async function validateHost(input: string): Promise<string> { + const origin = normalizeHost(input); + + if (!Desktop.bridge?.loadAuthConfig) { + throw new Error("Host validation is unavailable"); + } + + const config = await Desktop.bridge.loadAuthConfig(origin); + if (!Array.isArray(config?.providers)) { + throw new Error("Host is not an Outline installation"); + } + + return origin; +} + +/** + * Set the given host in desktop config and navigate to it. + * + * @param host The normalized origin to switch to. + */ +export async function navigateToHost(host: string) { + await Desktop.bridge?.addCustomHost(host); + window.location.href = host; +} diff --git a/app/typings/window.d.ts b/app/typings/window.d.ts index d5a17b6a0a..7658b5d0e8 100644 --- a/app/typings/window.d.ts +++ b/app/typings/window.d.ts @@ -56,6 +56,19 @@ declare global { */ addCustomHost: (host: string) => Promise<void>; + /** + * Loads the authentication configuration for the given host from the main + * process, bypassing renderer CORS restrictions. Used to verify a host is + * a reachable Outline installation before switching to it. + */ + loadAuthConfig: (host: string) => Promise<{ providers: unknown[] }>; + + /** + * Clears the desktop configuration, removing any custom hosts. Intended + * for debugging use. + */ + clearConfig: () => Promise<void>; + /** * Set the language used by the spellchecker on Windows/Linux. */ diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 7ecf337b7a..ec7197004a 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -1005,6 +1005,9 @@ "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></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></1>Please request an invite from your workspace admin and try again.", "Sorry, an unknown error occurred.": "Sorry, an unknown error occurred.", + "Choose installation": "Choose installation", + "Enter the address of an Outline install to connect to": "Enter the address of an Outline install to connect to", + "This doesn’t appear to be a valid installation": "This doesn’t appear to be a valid installation", "Choose a workspace": "Choose a workspace", "Choose an {{ appName }} workspace or login to continue connecting this app": "Choose an {{ appName }} workspace or login to continue connecting this app", "Create workspace": "Create workspace", From d7ebae60d1c19caa23a07a2e1c82905ad20e7240 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 11:16:00 -0400 Subject: [PATCH 280/286] feat: Allow Passkey logins on desktop (#12749) * feat: Allow Passkey logins on desktop * Refactor, address PR feedback --- app/scenes/Login/Login.tsx | 6 +- .../components/AuthenticationProvider.tsx | 96 +--------- .../PasskeyAuthenticationProvider.tsx | 177 ++++++++++++++++++ plugins/passkeys/server/auth/passkeys.test.ts | 28 ++- plugins/passkeys/server/auth/passkeys.ts | 25 +++ shared/i18n/locales/en_US/translation.json | 3 +- 6 files changed, 237 insertions(+), 98 deletions(-) create mode 100644 app/scenes/Login/components/PasskeyAuthenticationProvider.tsx diff --git a/app/scenes/Login/Login.tsx b/app/scenes/Login/Login.tsx index ffab0fda0c..4b0426b54c 100644 --- a/app/scenes/Login/Login.tsx +++ b/app/scenes/Login/Login.tsx @@ -118,7 +118,11 @@ function Login({ children, onBack }: Props) { } }, [query]); - if (auth.authenticated) { + // A passkey login initiated from the desktop app must complete the login + // ceremony even when this browser already has a session. + const isPasskeyLogin = query.get("method") === "passkey"; + + if (auth.authenticated && !isPasskeyLogin) { const postLoginPath = spendPostLoginPath(); if (postLoginPath) { return <Redirect to={postLoginPath} />; diff --git a/app/scenes/Login/components/AuthenticationProvider.tsx b/app/scenes/Login/components/AuthenticationProvider.tsx index 4a1c67de10..d6824fd79f 100644 --- a/app/scenes/Login/components/AuthenticationProvider.tsx +++ b/app/scenes/Login/components/AuthenticationProvider.tsx @@ -1,20 +1,15 @@ -import { startAuthentication } from "@simplewebauthn/browser"; import { EmailIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; -import { toast } from "sonner"; import styled from "styled-components"; -import { errToString } from "@shared/utils/error"; import { Client } from "@shared/types"; import ButtonLarge from "~/components/ButtonLarge"; import InputLarge from "~/components/InputLarge"; import PluginIcon from "~/components/PluginIcon"; -import Tooltip from "~/components/Tooltip"; import { client } from "~/utils/ApiClient"; import Desktop from "~/utils/Desktop"; import { getRedirectUrl } from "~/utils/urls"; -import { CSRF } from "@shared/constants"; -import { getCookie } from "tiny-cookie"; +import { PasskeyAuthenticationProvider } from "./PasskeyAuthenticationProvider"; type Props = React.ComponentProps<typeof ButtonLarge> & { id: string; @@ -32,7 +27,6 @@ function AuthenticationProvider(props: Props) { const [authState, setAuthState] = React.useState<AuthState>("initial"); const [isSubmitting, setSubmitting] = React.useState(false); const [email, setEmail] = React.useState(""); - const formRef = React.useRef<HTMLFormElement>(null); const { isCreate, id, name, authUrl, onEmailSuccess, preferOTP, ...rest } = props; const clientType = Desktop.isElectron() ? Client.Desktop : Client.Web; @@ -73,93 +67,7 @@ function AuthenticationProvider(props: Props) { const href = getRedirectUrl(authUrl); if (id === "passkeys") { - const handleSubmitPasskey = async ( - event: React.SyntheticEvent<HTMLFormElement> - ) => { - event.preventDefault(); - - try { - const resp = await client.post( - "/passkeys.generateAuthenticationOptions", - undefined, - { - baseUrl: "/auth", - } - ); - const { challengeId, ...optionsData } = resp.data; - const authResp = await startAuthentication(optionsData); - - // Populate hidden form fields with authentication data - if (formRef.current) { - const createInputs = (obj: Record<string, unknown>, prefix = "") => { - Object.entries(obj).forEach(([key, value]) => { - if (value === undefined || value === null) { - return; - } - - const fieldName = prefix ? `${prefix}[${key}]` : key; - - if (typeof value === "object" && !Array.isArray(value)) { - createInputs(value as Record<string, unknown>, fieldName); - } else { - // Create hidden input for primitive values - const input = document.createElement("input"); - input.type = "hidden"; - input.name = fieldName; - input.value = String(value as string | number | boolean); - formRef.current?.appendChild(input); - } - }); - }; - - createInputs({ - ...authResp, - challengeId, - [CSRF.fieldName]: getCookie(CSRF.cookieName), - client: clientType, - }); - } - - // Submit form natively to let browser handle redirect and cookies - formRef.current?.submit(); - } catch (err) { - toast.error(errToString(err)); - } - }; - - const isDesktop = Desktop.isElectron(); - const button = ( - <ButtonLarge - type="submit" - icon={<PluginIcon id={id} color="currentColor" />} - fullwidth - disabled={isDesktop} - {...rest} - > - {t("Continue with Passkey")} - </ButtonLarge> - ); - - return ( - <Wrapper> - <Form - ref={formRef} - method="POST" - action="/auth/passkeys.verifyAuthentication" - onSubmit={handleSubmitPasskey} - > - {isDesktop ? ( - <Tooltip - content={t("Passkeys are not supported in the desktop app")} - > - {button} - </Tooltip> - ) : ( - button - )} - </Form> - </Wrapper> - ); + return <PasskeyAuthenticationProvider {...rest} />; } if (id === "email") { diff --git a/app/scenes/Login/components/PasskeyAuthenticationProvider.tsx b/app/scenes/Login/components/PasskeyAuthenticationProvider.tsx new file mode 100644 index 0000000000..58a5389364 --- /dev/null +++ b/app/scenes/Login/components/PasskeyAuthenticationProvider.tsx @@ -0,0 +1,177 @@ +import { startAuthentication } from "@simplewebauthn/browser"; +import * as React from "react"; +import { useTranslation } from "react-i18next"; +import { toast } from "sonner"; +import styled from "styled-components"; +import { getCookie } from "tiny-cookie"; +import { CSRF } from "@shared/constants"; +import { Client } from "@shared/types"; +import { errToString } from "@shared/utils/error"; +import ButtonLarge from "~/components/ButtonLarge"; +import PluginIcon from "~/components/PluginIcon"; +import useQuery from "~/hooks/useQuery"; +import { client } from "~/utils/ApiClient"; +import Desktop from "~/utils/Desktop"; + +type Props = React.ComponentProps<typeof ButtonLarge>; + +/** + * Flattens a nested object into form field entries using bracket notation + * (e.g. `response[authenticatorData]`) so the values can be rendered as hidden + * inputs and submitted as a regular form. + * + * @param obj The object to flatten. + * @param prefix Internal accumulator for nested field names. + * @param out Internal accumulator for the flattened result. + * @returns A flat map of field name to string value. + */ +function flattenFormFields( + obj: Record<string, unknown>, + prefix = "", + out: Record<string, string> = {} +): Record<string, string> { + Object.entries(obj).forEach(([key, value]) => { + if (value === undefined || value === null) { + return; + } + + const fieldName = prefix ? `${prefix}[${key}]` : key; + + if (typeof value === "object" && !Array.isArray(value)) { + flattenFormFields(value as Record<string, unknown>, fieldName, out); + } else { + out[fieldName] = String(value as string | number | boolean); + } + }); + + return out; +} + +/** + * Renders the "Continue with Passkey" login option and runs the WebAuthn + * authentication ceremony. + * + * In the desktop app the ceremony cannot run inside Electron's Chromium, so the + * flow is opened in the system browser and the resulting session is returned to + * the app via the outline:// deep link, mirroring the SSO desktop flow. + */ +export function PasskeyAuthenticationProvider(props: Props) { + const { t } = useTranslation(); + const query = useQuery(); + const formRef = React.useRef<HTMLFormElement>(null); + const hasAutoStarted = React.useRef(false); + const [fields, setFields] = React.useState<Record<string, string> | null>( + null + ); + const [isAuthenticating, setIsAuthenticating] = React.useState(false); + + // True when this page was opened in the system browser from the desktop app + // to complete a passkey login (see the /auth/passkey route). In that case the + // resulting session must be handed back to the desktop app rather than the + // browser. + const isDesktopRedirect = + query.get("method") === "passkey" && query.get("client") === Client.Desktop; + + const runAuthentication = React.useCallback(async (verifyClient: Client) => { + setIsAuthenticating(true); + try { + const resp = await client.post( + "/passkeys.generateAuthenticationOptions", + undefined, + { + baseUrl: "/auth", + } + ); + const { challengeId, ...optionsData } = resp.data; + const authResp = await startAuthentication(optionsData); + + // Render the authentication response as hidden inputs; the effect below + // submits the form natively once they're in the DOM so the browser + // follows the redirect and applies cookies. + setFields( + flattenFormFields({ + ...authResp, + challengeId, + [CSRF.fieldName]: getCookie(CSRF.cookieName), + client: verifyClient, + }) + ); + } catch (err) { + toast.error(errToString(err)); + // Re-enable the button so the user can retry; on success the form submits + // and navigates away, so there's no need to reset there. + setIsAuthenticating(false); + } + }, []); + + // Submit the form once the hidden fields from the ceremony have rendered. + React.useEffect(() => { + if (fields) { + formRef.current?.submit(); + } + }, [fields]); + + // When returning from the desktop app to complete passkey login, start the + // ceremony automatically once. + React.useEffect(() => { + if (isDesktopRedirect && !Desktop.isElectron() && !hasAutoStarted.current) { + hasAutoStarted.current = true; + void runAuthentication(Client.Desktop); + } + }, [isDesktopRedirect, runAuthentication]); + + const handleSubmit = (event: React.SyntheticEvent<HTMLFormElement>) => { + event.preventDefault(); + + // The WebAuthn ceremony cannot run inside Electron's Chromium as it lacks + // platform authenticator support. Open the flow in the system browser, + // which returns to the app via the outline:// deep link like SSO login. + if (Desktop.isElectron()) { + window.location.href = `/auth/passkey?client=${Client.Desktop}`; + return; + } + + void runAuthentication(isDesktopRedirect ? Client.Desktop : Client.Web); + }; + + return ( + <Wrapper> + <Form + ref={formRef} + method="POST" + action="/auth/passkeys.verifyAuthentication" + onSubmit={handleSubmit} + > + {fields && + Object.entries(fields).map(([fieldName, value]) => ( + <input + key={fieldName} + type="hidden" + name={fieldName} + value={value} + readOnly + /> + ))} + <ButtonLarge + type="submit" + icon={<PluginIcon id="passkeys" color="currentColor" />} + fullwidth + {...props} + disabled={isAuthenticating} + > + {t("Continue with Passkey")} + </ButtonLarge> + </Form> + </Wrapper> + ); +} + +const Wrapper = styled.div` + width: 100%; +`; + +const Form = styled.form` + width: 100%; + display: flex; + justify-content: space-between; +`; diff --git a/plugins/passkeys/server/auth/passkeys.test.ts b/plugins/passkeys/server/auth/passkeys.test.ts index 9adb78d6cf..1fad053090 100644 --- a/plugins/passkeys/server/auth/passkeys.test.ts +++ b/plugins/passkeys/server/auth/passkeys.test.ts @@ -1,5 +1,5 @@ import type { APIContext } from "@server/types"; -import { getExpectedOrigin } from "./passkeys"; +import { getExpectedOrigin, getPasskeyLoginRedirect } from "./passkeys"; describe("getExpectedOrigin", () => { // Helper to mock APIContext for testing @@ -87,3 +87,29 @@ describe("getExpectedOrigin", () => { expect(getExpectedOrigin(ctx)).toBe("http://outline.example.com:8080"); }); }); + +describe("getPasskeyLoginRedirect", () => { + it("should redirect to the desktop passkey flow when client=desktop", () => { + expect(getPasskeyLoginRedirect("desktop")).toBe( + "/?method=passkey&client=desktop" + ); + }); + + it("should default to the web client when client is missing", () => { + expect(getPasskeyLoginRedirect(undefined)).toBe( + "/?method=passkey&client=web" + ); + }); + + it("should default to the web client when client is invalid", () => { + expect(getPasskeyLoginRedirect("bogus")).toBe( + "/?method=passkey&client=web" + ); + }); + + it("should default to the web client when client is an array", () => { + expect(getPasskeyLoginRedirect(["desktop", "web"])).toBe( + "/?method=passkey&client=web" + ); + }); +}); diff --git a/plugins/passkeys/server/auth/passkeys.ts b/plugins/passkeys/server/auth/passkeys.ts index 621326987f..6a4a904a65 100644 --- a/plugins/passkeys/server/auth/passkeys.ts +++ b/plugins/passkeys/server/auth/passkeys.ts @@ -225,6 +225,31 @@ router.post( } ); +/** + * Resolves the login screen redirect for the desktop passkey entrypoint, + * normalizing an untrusted client query parameter to a known value. + * + * @param client - the raw client value from the request query. + * @returns the relative path to redirect the browser to. + */ +export const getPasskeyLoginRedirect = ( + client: string | string[] | undefined +): string => { + const normalized = client === Client.Desktop ? Client.Desktop : Client.Web; + return `/?method=passkey&client=${normalized}`; +}; + +/** + * Entry point for passkey login from the desktop app. The WebAuthn ceremony + * cannot run inside Electron's Chromium, so the desktop client opens this URL + * in the system browser. We forward to the login screen, which auto-starts the + * ceremony and returns the authenticated session via the outline:// deep link, + * mirroring the existing SSO desktop flow. + */ +router.get("passkey", (ctx: APIContext) => { + ctx.redirect(getPasskeyLoginRedirect(ctx.query.client)); +}); + router.post( "passkeys.generateAuthenticationOptions", validate(T.PasskeysGenerateAuthenticationOptionsSchema), diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index ec7197004a..0f5789643b 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -978,8 +978,6 @@ "Triggers": "Triggers", "Mention users and more": "Mention users and more", "Insert block": "Insert block", - "Continue with Passkey": "Continue with Passkey", - "Passkeys are not supported in the desktop app": "Passkeys are not supported in the desktop app", "Sign In": "Sign In", "Continue with Email": "Continue with Email", "Continue with {{ authProviderName }}": "Continue with {{ authProviderName }}", @@ -1005,6 +1003,7 @@ "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></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></1>Please request an invite from your workspace admin and try again.", "Sorry, an unknown error occurred.": "Sorry, an unknown error occurred.", + "Continue with Passkey": "Continue with Passkey", "Choose installation": "Choose installation", "Enter the address of an Outline install to connect to": "Enter the address of an Outline install to connect to", "This doesn’t appear to be a valid installation": "This doesn’t appear to be a valid installation", From d3917c2e2330072f2ee7a219f29d0b8428abc3a8 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 11:16:41 -0400 Subject: [PATCH 281/286] fix: Cmd+A in image/video captions (#12751) * fix: Cmd+A in image caption selects caption text, not whole document * fix: Share caption Cmd+A select-all and fix placeholder rendering Move the Cmd/Ctrl+A select-all handling into the shared Caption component so image and video captions both select their own text instead of the whole document. Also fix a stray brace in the caption styles that corrupted the empty-caption placeholder rendering. --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- shared/editor/components/Caption.tsx | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/shared/editor/components/Caption.tsx b/shared/editor/components/Caption.tsx index f2b7dd6bb0..9aab9c480c 100644 --- a/shared/editor/components/Caption.tsx +++ b/shared/editor/components/Caption.tsx @@ -23,7 +23,14 @@ type Props = { /** * A component that renders a caption for an image or video. */ -function Caption({ placeholder, children, isSelected, width, ...rest }: Props) { +function Caption({ + placeholder, + children, + isSelected, + width, + onKeyDown, + ...rest +}: Props) { const { t } = useTranslation(); const handlePaste = (event: React.ClipboardEvent<HTMLParagraphElement>) => { event.preventDefault(); @@ -36,12 +43,28 @@ function Caption({ placeholder, children, isSelected, width, ...rest }: Props) { ev.stopPropagation(); }; + const handleKeyDown = (event: React.KeyboardEvent<HTMLParagraphElement>) => { + // Cmd/Ctrl-A should select the caption text, not the whole document. + if ((event.metaKey || event.ctrlKey) && event.key === "a") { + event.preventDefault(); + event.stopPropagation(); + const selection = window.getSelection(); + const range = window.document.createRange(); + range.selectNodeContents(event.currentTarget); + selection?.removeAllRanges(); + selection?.addRange(range); + return; + } + onKeyDown(event); + }; + return ( <Content $width={width} $isSelected={isSelected} onMouseDown={handleMouseDown} onPaste={handlePaste} + onKeyDown={handleKeyDown} className={EditorStyleHelper.imageCaption} tabIndex={-1} aria-label={t("Caption")} @@ -64,7 +87,7 @@ const Content = styled.p<{ $width: number; $isSelected: boolean }>` max-width: 100%; &:empty:not(:focus) { - display: ${(props) => (props.$isSelected ? "block" : "none")}}; + display: ${(props) => (props.$isSelected ? "block" : "none")}; } &:empty::before { From 7b71aa53d2850a2e62b80f26facfdba667dccac7 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 11:17:28 -0400 Subject: [PATCH 282/286] fix: Suggestion menus are now correctly announced to screenreaders (#12750) * fix: Suggestion menus are not correctly announced to screenreaders * PR feedback, pass disabled as ARIA prop --- app/editor/components/SuggestionsMenu.tsx | 173 ++++++++++++++++-- app/editor/components/SuggestionsMenuItem.tsx | 3 + shared/i18n/locales/en_US/translation.json | 1 + 3 files changed, 165 insertions(+), 12 deletions(-) diff --git a/app/editor/components/SuggestionsMenu.tsx b/app/editor/components/SuggestionsMenu.tsx index e2df81a4c4..ccf148d15e 100644 --- a/app/editor/components/SuggestionsMenu.tsx +++ b/app/editor/components/SuggestionsMenu.tsx @@ -2,6 +2,7 @@ import * as VisuallyHidden from "@radix-ui/react-visually-hidden"; import commandScore from "command-score"; import { capitalize, orderBy } from "es-toolkit/compat"; import { TextSelection } from "prosemirror-state"; +import type { EditorView } from "prosemirror-view"; import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; @@ -59,6 +60,123 @@ export type Props<T extends MenuItem = MenuItem> = { items: T[]; }; +/** Incrementing counter used to generate unique, stable ids per menu instance. */ +let menuInstanceCounter = 0; + +interface SubmenuState { + index: number; + items: MenuItem[]; + selectedIndex: number; +} + +interface UseSuggestionsMenuAriaProps { + view: EditorView; + isActive: boolean; + isMobile: boolean; + selectedIndex: number; + activeItem?: MenuItem | EmbedDescriptor; + submenu: SubmenuState | null; +} + +function useSuggestionsMenuAria({ + view, + isActive, + isMobile, + selectedIndex, + activeItem, + submenu, +}: UseSuggestionsMenuAriaProps) { + // Stable ids for the WAI-ARIA editable-combobox-with-listbox pattern. The + // editor keeps real DOM focus while the active option is exposed virtually + // via aria-activedescendant (see effect below). + const instanceIdRef = React.useRef<number>(); + if (instanceIdRef.current === undefined) { + instanceIdRef.current = menuInstanceCounter++; + } + const listboxId = `suggestions-menu-${instanceIdRef.current}`; + const submenuListboxId = `${listboxId}-submenu`; + const optionId = React.useCallback( + (index: number) => `${listboxId}-option-${index}`, + [listboxId] + ); + const submenuOptionId = React.useCallback( + (index: number) => `${submenuListboxId}-option-${index}`, + [submenuListboxId] + ); + + // Expose the suggestion list to assistive technology using the editable + // combobox pattern: DOM focus stays in the editor while the active option is + // communicated via aria-activedescendant. aria-owns associates the portaled + // listbox with the editor so the referenced option ids resolve. + React.useEffect(() => { + const dom = view.dom; + const removeOwnedAttributes = () => { + const owns = dom.getAttribute("aria-owns"); + if (!owns?.split(" ").includes(listboxId)) { + return; + } + + dom.removeAttribute("aria-owns"); + dom.removeAttribute("aria-controls"); + dom.removeAttribute("aria-activedescendant"); + dom.removeAttribute("aria-expanded"); + dom.removeAttribute("aria-haspopup"); + dom.removeAttribute("aria-autocomplete"); + dom.setAttribute("role", "textbox"); + }; + + if (!isActive || isMobile) { + removeOwnedAttributes(); + return; + } + + dom.setAttribute("role", "combobox"); + dom.setAttribute("aria-expanded", "true"); + dom.setAttribute("aria-haspopup", "listbox"); + dom.setAttribute("aria-autocomplete", "list"); + + if (submenu) { + const owns = `${listboxId} ${submenuListboxId}`; + dom.setAttribute("aria-owns", owns); + dom.setAttribute("aria-controls", owns); + dom.setAttribute( + "aria-activedescendant", + submenuOptionId(submenu.selectedIndex) + ); + } else { + dom.setAttribute("aria-owns", listboxId); + dom.setAttribute("aria-controls", listboxId); + if (activeItem && activeItem.name !== "separator") { + dom.setAttribute("aria-activedescendant", optionId(selectedIndex)); + } else { + dom.removeAttribute("aria-activedescendant"); + } + } + + return () => { + removeOwnedAttributes(); + }; + }, [ + activeItem, + isActive, + isMobile, + listboxId, + optionId, + selectedIndex, + submenu, + submenuListboxId, + submenuOptionId, + view, + ]); + + return { + listboxId, + submenuListboxId, + optionId, + submenuOptionId, + }; +} + function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { const { view, commands, props: editorProps } = useEditor(); const { t } = useTranslation(); @@ -73,11 +191,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { MenuItem | EmbedDescriptor >(); const [selectedIndex, setSelectedIndex] = React.useState(0); - const [submenu, setSubmenu] = React.useState<{ - index: number; - items: MenuItem[]; - selectedIndex: number; - } | null>(null); + const [submenu, setSubmenu] = React.useState<SubmenuState | null>(null); const itemRefs = React.useRef<Map<number, HTMLElement>>(new Map()); const submenuContentRef = React.useRef<HTMLDivElement>(null); const hoverTimerRef = React.useRef<ReturnType<typeof setTimeout>>(); @@ -744,6 +858,15 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { const { isActive, uploadFile } = props; const items = filtered; + const { listboxId, submenuListboxId, optionId, submenuOptionId } = + useSuggestionsMenuAria({ + view, + isActive, + isMobile, + selectedIndex, + activeItem: filtered[selectedIndex], + submenu, + }); const handleOpenChange = React.useCallback( (open: boolean) => { @@ -793,7 +916,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { {items.map((item, index) => { if (item.name === "separator") { return ( - <ListItem key={index}> + <ListItem key={index} role="presentation"> <hr /> </ListItem> ); @@ -873,10 +996,18 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { const response = ( <React.Fragment key={`${index}-${item.name}`}> {currentHeading !== prevHeading && ( - <MenuHeader key={currentHeading}>{currentHeading}</MenuHeader> + <MenuHeader key={currentHeading} role="presentation"> + {currentHeading} + </MenuHeader> )} <ListItem ref={itemRef} + role="option" + id={optionId(index)} + aria-selected={index === selectedIndex} + aria-disabled={ + ("disabled" in item && item.disabled) || undefined + } onPointerMove={handlePointerMove} onPointerDown={handlePointerDown} > @@ -893,7 +1024,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { return response; })} {items.length === 0 && ( - <ListItem> + <ListItem role="presentation"> <Empty>{t("No results")}</Empty> </ListItem> )} @@ -929,7 +1060,13 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { /> </LinkInputWrapper> ) : ( - <List>{renderItems()}</List> + <List + role="listbox" + id={listboxId} + aria-label={t("Suggestions")} + > + {renderItems()} + </List> )} </MobileScrollable> </DrawerContent> @@ -981,7 +1118,9 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { /> </LinkInputWrapper> ) : ( - <List>{renderItems()}</List> + <List role="listbox" id={listboxId} aria-label={t("Suggestions")}> + {renderItems()} + </List> )} </BouncyPopoverContent> </Popover> @@ -1009,11 +1148,15 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { onPointerLeave={() => setSubmenu(null)} > <MouseSafeArea parentRef={submenuContentRef} /> - <List> + <List + role="listbox" + id={submenuListboxId} + aria-label={t("Suggestions")} + > {submenu.items.map((child, childIndex) => { if (child.name === "separator") { return ( - <ListItem key={childIndex}> + <ListItem key={childIndex} role="presentation"> <hr /> </ListItem> ); @@ -1048,6 +1191,12 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) { return ( <ListItem key={`sub-${childIndex}-${child.name}`} + role="option" + id={submenuOptionId(childIndex)} + aria-selected={childIndex === submenu.selectedIndex} + aria-disabled={ + ("disabled" in child && child.disabled) || undefined + } onPointerMove={handleChildPointerMove} > {props.renderMenuItem(child as unknown as T, childIndex, { diff --git a/app/editor/components/SuggestionsMenuItem.tsx b/app/editor/components/SuggestionsMenuItem.tsx index fbda11f656..97db73aa36 100644 --- a/app/editor/components/SuggestionsMenuItem.tsx +++ b/app/editor/components/SuggestionsMenuItem.tsx @@ -63,6 +63,9 @@ function SuggestionsMenuItem({ return ( <MenuButton ref={ref} + // Virtual focus stays in the editor (see SuggestionsMenu); the wrapping + // element carries the listbox option role, so keep this out of tab order. + tabIndex={-1} disabled={disabled} onClick={onClick} onPointerMove={disabled ? undefined : onPointerMove} diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 0f5789643b..df58748b04 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -592,6 +592,7 @@ "Sorry, that link won’t work for this embed type": "Sorry, that link won’t work for this embed type", "Upload file": "Upload file", "Paste a {{service}} link…": "Paste a {{service}} link…", + "Suggestions": "Suggestions", "More options": "More options", "Type '/' to insert": "Type '/' to insert", "Keep typing to filter": "Keep typing to filter", From 4c36bd83dee73ffc4fe41cdd0c68008e4d57a29b Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 15:58:51 -0400 Subject: [PATCH 283/286] fix: Prevent concurrent OAuth refresh attempts from revoking grant (#12752) * Prevent concurrent refresh attempts from revoking grant * test --- server/routes/oauth/index.test.ts | 66 +++++++++++++++++++++++ server/utils/oauth/OAuthInterface.test.ts | 60 +++++++++++++++++++++ server/utils/oauth/OAuthInterface.ts | 23 +++++++- 3 files changed, 148 insertions(+), 1 deletion(-) diff --git a/server/routes/oauth/index.test.ts b/server/routes/oauth/index.test.ts index fb07fb9f1b..1355e0f842 100644 --- a/server/routes/oauth/index.test.ts +++ b/server/routes/oauth/index.test.ts @@ -264,6 +264,13 @@ describe("#oauth.token", () => { const body1 = await res1.json(); const auth2RefreshToken = body1.refresh_token; + // Simulate the rotation having happened outside the reuse interval, so the + // replay below is treated as genuine reuse rather than a concurrent refresh. + await OAuthAuthentication.update( + { deletedAt: new Date(Date.now() - 60 * 1000) }, + { where: { id: auth1.id }, paranoid: false, silent: true } + ); + // Create an unrelated authentication const otherAuth = await buildOAuthAuthentication({ user, @@ -334,6 +341,13 @@ describe("#oauth.token", () => { }), }); + // Simulate the rotation having happened outside the reuse interval, so the + // replay below is treated as genuine reuse rather than a concurrent refresh. + await OAuthAuthentication.update( + { deletedAt: new Date(Date.now() - 60 * 1000) }, + { where: { id: auth.id }, paranoid: false, silent: true } + ); + // Use the OLD refresh token again (reuse detection) await server.post("/oauth/token", { headers: { @@ -351,5 +365,57 @@ describe("#oauth.token", () => { const foundCode = await OAuthAuthorizationCode.findByPk(code.id); expect(foundCode).toBeNull(); }); + + it("should not revoke the grant when a rotated refresh token is replayed within the reuse interval", async () => { + const user = await buildUser(); + const client = await buildOAuthClient({ + teamId: user.teamId, + clientType: "confidential", + }); + const grantId = crypto.randomUUID(); + + const auth1 = await buildOAuthAuthentication({ + user, + scope: [Scope.Read], + oauthClientId: client.id, + grantId, + }); + + // Use the refresh token once (rotation) + const res1 = await server.post("/oauth/token", { + headers: { + "Content-Type": "application/x-www-form-urlencoded", + }, + body: toFormData({ + grant_type: "refresh_token", + refresh_token: auth1.refreshToken, + client_id: client.clientId, + client_secret: client.clientSecret, + }), + }); + expect(res1.status).toEqual(200); + const body1 = await res1.json(); + const auth2RefreshToken = body1.refresh_token; + + // Immediately replay the OLD refresh token, as a client issuing concurrent + // refresh requests would. This is within the reuse interval. + const res2 = await server.post("/oauth/token", { + headers: { + "Content-Type": "application/x-www-form-urlencoded", + }, + body: toFormData({ + grant_type: "refresh_token", + refresh_token: auth1.refreshToken, + client_id: client.clientId, + client_secret: client.clientSecret, + }), + }); + + // The replay fails, but the grant won by the first request survives. + expect(res2.status).toEqual(400); + const foundAuth2 = + await OAuthAuthentication.findByRefreshToken(auth2RefreshToken); + expect(foundAuth2).not.toBeNull(); + }); }); }); diff --git a/server/utils/oauth/OAuthInterface.test.ts b/server/utils/oauth/OAuthInterface.test.ts index b515a2974f..2f109b5f47 100644 --- a/server/utils/oauth/OAuthInterface.test.ts +++ b/server/utils/oauth/OAuthInterface.test.ts @@ -1,6 +1,8 @@ import { randomUUID } from "node:crypto"; +import { subSeconds } from "date-fns"; import { Scope } from "@shared/types"; import { OAuthInterface } from "./OAuthInterface"; +import { OAuthAuthentication } from "@server/models"; import { buildOAuthAuthentication, buildOAuthClient, @@ -87,6 +89,64 @@ describe("OAuthInterface", () => { const result = await OAuthInterface.getRefreshToken("invalid_token"); expect(result).toBe(false); }); + + it("should revoke the entire grant when a refresh token is reused outside the reuse interval", async () => { + const user = await buildUser(); + const scope = [Scope.Read]; + const grantId = randomUUID(); + const oAuthClient = await buildOAuthClient({ teamId: user.teamId }); + const rotated = await buildOAuthAuthentication({ + user, + oauthClientId: oAuthClient.id, + scope, + grantId, + }); + const sibling = await buildOAuthAuthentication({ + user, + oauthClientId: oAuthClient.id, + scope, + grantId, + }); + const refreshToken = rotated.refreshToken!; + + // Simulate a rotation that happened longer ago than the reuse interval. + await rotated.destroy(); + await OAuthAuthentication.update( + { deletedAt: subSeconds(new Date(), 60) }, + { where: { id: rotated.id }, paranoid: false, silent: true } + ); + + const result = await OAuthInterface.getRefreshToken(refreshToken); + expect(result).toBe(false); + expect(await OAuthAuthentication.findByPk(sibling.id)).toBeNull(); + }); + + it("should not revoke the grant when a rotated refresh token is replayed within the reuse interval", async () => { + const user = await buildUser(); + const scope = [Scope.Read]; + const grantId = randomUUID(); + const oAuthClient = await buildOAuthClient({ teamId: user.teamId }); + const rotated = await buildOAuthAuthentication({ + user, + oauthClientId: oAuthClient.id, + scope, + grantId, + }); + const sibling = await buildOAuthAuthentication({ + user, + oauthClientId: oAuthClient.id, + scope, + grantId, + }); + const refreshToken = rotated.refreshToken!; + + // Simulate a rotation that just happened, as with a concurrent refresh. + await rotated.destroy(); + + const result = await OAuthInterface.getRefreshToken(refreshToken); + expect(result).toBe(false); + expect(await OAuthAuthentication.findByPk(sibling.id)).not.toBeNull(); + }); }); describe("#validateRedirectUri", () => { diff --git a/server/utils/oauth/OAuthInterface.ts b/server/utils/oauth/OAuthInterface.ts index e869a46667..4ac086c4bb 100644 --- a/server/utils/oauth/OAuthInterface.ts +++ b/server/utils/oauth/OAuthInterface.ts @@ -1,4 +1,5 @@ import crypto from "node:crypto"; +import { subSeconds } from "date-fns"; import type { RefreshTokenModel, AuthorizationCodeModel, @@ -14,6 +15,14 @@ import { } from "@server/models"; import { hash, safeEqual } from "@server/utils/crypto"; +/** + * The number of seconds during which a rotated refresh token may be replayed + * without triggering reuse detection. This provides a grace window for clients + * that issue concurrent refresh requests, preventing the entire grant from being + * revoked due to a benign race. + */ +const refreshTokenReuseInterval = 10; + /** * Additional configuration for the OAuthInterface, not part of the * OAuth2Server library. @@ -127,7 +136,19 @@ export const OAuthInterface: RefreshTokenModel & paranoid: false, }); - if (authentication?.grantId) { + // A recently rotated token may be replayed by a client that issued + // concurrent refresh requests. Treat replays within the reuse interval as + // benign and skip revocation, so the grant won by the parallel request + // survives. Replays outside the window are treated as genuine reuse. + const reuseWindowStart = subSeconds( + new Date(), + refreshTokenReuseInterval + ); + const withinReuseInterval = + authentication?.deletedAt && + authentication.deletedAt > reuseWindowStart; + + if (authentication?.grantId && !withinReuseInterval) { await Promise.all([ OAuthAuthentication.destroy({ where: { From f5f81f8d3a69a2471953fde136f1b6dc90b60aee Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 16:39:50 -0400 Subject: [PATCH 284/286] feat: Record search query duration in milliseconds (#12755) * feat: Record search query duration in milliseconds Adds a `duration` column to search_queries that stores how long each search took, including result presentation time. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * test --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- ...260619000000-add-duration-to-search-queries.js | 15 +++++++++++++++ server/models/SearchQuery.ts | 6 ++++++ server/routes/api/documents/documents.test.ts | 2 ++ server/routes/api/documents/documents.ts | 3 +++ 4 files changed, 26 insertions(+) create mode 100644 server/migrations/20260619000000-add-duration-to-search-queries.js diff --git a/server/migrations/20260619000000-add-duration-to-search-queries.js b/server/migrations/20260619000000-add-duration-to-search-queries.js new file mode 100644 index 0000000000..10eabc02a8 --- /dev/null +++ b/server/migrations/20260619000000-add-duration-to-search-queries.js @@ -0,0 +1,15 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addColumn("search_queries", "duration", { + type: Sequelize.INTEGER, + allowNull: true, + }); + }, + + async down(queryInterface, Sequelize) { + await queryInterface.removeColumn("search_queries", "duration"); + }, +}; diff --git a/server/models/SearchQuery.ts b/server/models/SearchQuery.ts index 3a8c1945f8..0167b885e5 100644 --- a/server/models/SearchQuery.ts +++ b/server/models/SearchQuery.ts @@ -47,6 +47,12 @@ class SearchQuery extends Model< @Column results: number; + /** + * How long the search took to execute, in milliseconds. + */ + @Column + duration: number; + /** * User score for the results for this query, -1 for negative, 1 for positive, null for neutral. */ diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index 3145a3f08f..d10264ced5 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -1951,6 +1951,8 @@ describe("#documents.search", () => { expect(searchQuery.length).toBe(1); expect(searchQuery[0].results).toBe(0); expect(searchQuery[0].source).toBe("app"); + expect(Number.isInteger(searchQuery[0].duration)).toBe(true); + expect(searchQuery[0].duration).toBeGreaterThanOrEqual(0); }); it("should include individually shared docs with a user in search results", async () => { diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index b1354736d1..a2ca5521de 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -1058,6 +1058,7 @@ router.post( let response; let share; let isPublic = false; + const searchStartedAt = Date.now(); if (shareId) { const teamFromCtx = await getTeamFromContext(ctx, { @@ -1171,6 +1172,7 @@ router.post( // When requesting subsequent pages of search results we don't want to record // duplicate search query records if (query && offset === 0) { + const duration = Date.now() - searchStartedAt; await SearchQuery.create({ userId: user?.id, teamId, @@ -1178,6 +1180,7 @@ router.post( source: ctx.state.auth.type || "app", // we'll consider anything that isn't "api" to be "app" query, results: total, + duration, }); } From 283edf8ffde52d753de63bba2fc37bcc60bc1c94 Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 17:19:36 -0400 Subject: [PATCH 285/286] Hide original element during lightbox transition (#12756) * fix: Lightbox effect tweaks * refactor * refactor * fix: Address review feedback on image lightbox - Use useLayoutEffect in useHideElement to hide/restore before paint - Intersperse separators between image hover actions to avoid orphaned dividers when Download is hidden in edit mode Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --- app/components/Lightbox.tsx | 10 +++++ app/hooks/useHideElement.ts | 29 +++++++++++++ shared/editor/components/Image.tsx | 69 ++++++++++++++++-------------- 3 files changed, 77 insertions(+), 31 deletions(-) create mode 100644 app/hooks/useHideElement.ts diff --git a/app/components/Lightbox.tsx b/app/components/Lightbox.tsx index fa4b9bdbc3..9618f13e39 100644 --- a/app/components/Lightbox.tsx +++ b/app/components/Lightbox.tsx @@ -64,6 +64,7 @@ import { HStack } from "./primitives/HStack"; import { useDocumentContext } from "./DocumentContext"; import LightboxComments from "~/scenes/Document/components/Comments/LightboxComments"; import { PortalContext } from "./Portal"; +import useHideElement from "~/hooks/useHideElement"; export enum LightboxStatus { READY_TO_OPEN, @@ -361,6 +362,15 @@ function Lightbox({ images, activeImage, onUpdate, onClose, readOnly }: Props) { } }, [status.image]); + // Hide the inline image in the editor while the lightbox zoom transition is + // active, otherwise a duplicate is visible behind the fading overlay. + useHideElement( + activeImage.getElement(), + status.lightbox !== null && + status.lightbox !== LightboxStatus.READY_TO_OPEN && + status.lightbox !== LightboxStatus.CLOSED + ); + const rememberImagePosition = () => { if (imgRef.current) { const lightboxImgDOMRect = imgRef.current.getBoundingClientRect(); diff --git a/app/hooks/useHideElement.ts b/app/hooks/useHideElement.ts new file mode 100644 index 0000000000..7002df3179 --- /dev/null +++ b/app/hooks/useHideElement.ts @@ -0,0 +1,29 @@ +import { useLayoutEffect } from "react"; + +/** + * Temporarily hides a DOM element while `enabled` is true, restoring its + * previous visibility when disabled or unmounted. Useful for shared-element + * transitions where an element should be hidden so it isn't visible behind the + * animating clone. + * + * @param element The element to hide. + * @param enabled Whether the element should currently be hidden. + */ +export default function useHideElement( + element: Element | null | undefined, + enabled: boolean +) { + useLayoutEffect(() => { + if ( + !enabled || + (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) + ) { + return; + } + const previousVisibility = element.style.visibility; + element.style.visibility = "hidden"; + return () => { + element.style.visibility = previousVisibility; + }; + }, [element, enabled]); +} diff --git a/shared/editor/components/Image.tsx b/shared/editor/components/Image.tsx index 557e9008b8..faff4f7fb9 100644 --- a/shared/editor/components/Image.tsx +++ b/shared/editor/components/Image.tsx @@ -114,6 +114,37 @@ const Image = (props: Props) => { } }; + const actions = [ + isExternalUrl(src) && ( + <Button key="open" onClick={handleOpen} aria-label={t("Open")}> + <GlobeIcon /> + </Button> + ), + imgLink && ( + <Button + key="zoom" + // `mousedown` on ancestor `div.ProseMirror` was preventing the `onClick` handler from firing + onMouseDown={(e) => e.stopPropagation()} + onClick={props.onZoomIn} + aria-label={t("Zoom in")} + > + <ZoomInIcon /> + </Button> + ), + !isEditable && ( + <Button + key="download" + onClick={handleDownload} + // `mousedown` on ancestor `div.ProseMirror` was preventing the `onClick` handler from firing + onMouseDown={(e) => e.stopPropagation()} + aria-label={t("Download")} + disabled={isDownloading} + > + <DownloadIcon /> + </Button> + ), + ].filter(Boolean); + return ( <div contentEditable={false} className={className} ref={ref}> <ImageWrapper @@ -126,38 +157,14 @@ const Image = (props: Props) => { } style={widthStyle} > - {!dragging && width > 60 && isDownloadable && ( + {!dragging && width > 60 && isDownloadable && actions.length > 0 && ( <Actions> - {isExternalUrl(src) && ( - <> - <Button onClick={handleOpen} aria-label={t("Open")}> - <GlobeIcon /> - </Button> - <Separator height={24} /> - </> - )} - {imgLink && ( - <> - <Button - // `mousedown` on ancestor `div.ProseMirror` was preventing the `onClick` handler from firing - onMouseDown={(e) => e.stopPropagation()} - onClick={props.onZoomIn} - aria-label={t("Zoom in")} - > - <ZoomInIcon /> - </Button> - <Separator height={24} /> - </> - )} - <Button - onClick={handleDownload} - // `mousedown` on ancestor `div.ProseMirror` was preventing the `onClick` handler from firing - onMouseDown={(e) => e.stopPropagation()} - aria-label={t("Download")} - disabled={isDownloading} - > - <DownloadIcon /> - </Button> + {actions.map((action, index) => ( + <React.Fragment key={index}> + {index > 0 && <Separator height={24} />} + {action} + </React.Fragment> + ))} </Actions> )} {error ? ( From 3b4f2ddac0963ea61da8fbae9b6f0df15af684fb Mon Sep 17 00:00:00 2001 From: Tom Moor <tom@getoutline.com> Date: Fri, 19 Jun 2026 17:24:42 -0400 Subject: [PATCH 286/286] chore: Vendorize sequelize-encrypted (#12757) --- app/typings/index.d.ts | 2 - package.json | 1 - server/models/decorators/Encrypted.test.ts | 72 ++++++++++++++++++++++ server/models/decorators/Encrypted.ts | 67 +++++++++++++++----- server/storage/vaults.ts | 10 --- server/typings/index.d.ts | 2 - yarn.lock | 8 --- 7 files changed, 125 insertions(+), 37 deletions(-) create mode 100644 server/models/decorators/Encrypted.test.ts delete mode 100644 server/storage/vaults.ts diff --git a/app/typings/index.d.ts b/app/typings/index.d.ts index 72c3d97303..9c4d1f8862 100644 --- a/app/typings/index.d.ts +++ b/app/typings/index.d.ts @@ -6,8 +6,6 @@ declare module "emoji-mart"; declare module "string-replace-to-array"; -declare module "sequelize-encrypted"; - declare module "styled-components-breakpoint"; declare module "command-score"; diff --git a/package.json b/package.json index b60b6bf10c..c2c7171cf1 100644 --- a/package.json +++ b/package.json @@ -242,7 +242,6 @@ "semver": "^7.8.1", "sequelize": "^6.37.8", "sequelize-cli": "^6.6.5", - "sequelize-encrypted": "^1.0.0", "sequelize-strict-attributes": "^1.0.2", "sequelize-typescript": "^2.1.6", "slug": "^5.3.0", diff --git a/server/models/decorators/Encrypted.test.ts b/server/models/decorators/Encrypted.test.ts new file mode 100644 index 0000000000..8bd3a70433 --- /dev/null +++ b/server/models/decorators/Encrypted.test.ts @@ -0,0 +1,72 @@ +import env from "@server/env"; +import { encrypt, decrypt } from "./Encrypted"; + +describe("Encrypted", () => { + it("should round-trip a simple string", () => { + const value = JSON.stringify("hello world"); + expect(decrypt(encrypt(value))).toEqual(value); + }); + + it("should round-trip an object", () => { + const value = JSON.stringify({ + token: "abc123", + scopes: ["read", "write"], + }); + expect(JSON.parse(decrypt(encrypt(value)))).toEqual({ + token: "abc123", + scopes: ["read", "write"], + }); + }); + + it("should round-trip unicode and emoji", () => { + const value = JSON.stringify("héllo 🌍 こんにちは"); + expect(decrypt(encrypt(value))).toEqual(value); + }); + + it("should round-trip an empty string", () => { + const value = JSON.stringify(""); + expect(decrypt(encrypt(value))).toEqual(value); + }); + + it("should round-trip a long value across multiple cipher blocks", () => { + // A value longer than a single AES block (16 bytes) to guard against + // ciphertext truncation regressions. + const value = JSON.stringify("a".repeat(1024)); + expect(decrypt(encrypt(value))).toEqual(value); + }); + + it("should produce a different IV (and ciphertext) each time", () => { + const value = JSON.stringify("hello world"); + expect(encrypt(value).equals(encrypt(value))).toBe(false); + }); + + it("should fail to decrypt tampered data", () => { + const encrypted = encrypt(JSON.stringify("hello world")); + encrypted[encrypted.length - 1] ^= 0xff; + expect(() => decrypt(encrypted)).toThrow(); + }); + + it("should fail to decrypt with a different key", () => { + const originalKey = env.SECRET_KEY; + const encrypted = encrypt(JSON.stringify("hello world")); + try { + env.SECRET_KEY = + "a593e7f567d01031d153b5af6d9a25766b95926cff91c6be3438c7f7ac37230f"; + expect(() => decrypt(encrypted)).toThrow(/bad decrypt/); + } finally { + env.SECRET_KEY = originalKey; + } + }); + + it("should throw on an incorrectly sized key", () => { + const originalKey = env.SECRET_KEY; + try { + env.SECRET_KEY = "abcd"; + expect(() => encrypt(JSON.stringify("hello world"))).toThrow( + /Invalid key length/ + ); + } finally { + env.SECRET_KEY = originalKey; + } + }); +}); diff --git a/server/models/decorators/Encrypted.ts b/server/models/decorators/Encrypted.ts index 3174db87db..750ba80a12 100644 --- a/server/models/decorators/Encrypted.ts +++ b/server/models/decorators/Encrypted.ts @@ -1,15 +1,57 @@ +import crypto from "node:crypto"; import { isEmpty, isNil } from "es-toolkit/compat"; import { getAttributes } from "sequelize-typescript"; import { toError, errToString } from "@shared/utils/error"; +import env from "@server/env"; import Logger from "@server/logging/Logger"; -import vaults from "@server/storage/vaults"; -const key = "sequelize:vault"; +const algorithm = "aes-256-cbc"; +const ivLength = 16; /** - * A decorator that stores the encrypted vault for a particular database column - * so that it can be used by getters and setters. Must be accompanied by a - * @Column(DataType.BLOB) annotation. + * Encrypt a string value for storage in a database column. The returned buffer + * is the initialization vector followed by the ciphertext (`iv || ciphertext`) + * using AES-256-CBC, matching the on-disk format of previously encrypted data. + * + * @param value The plaintext value to encrypt. + * @returns A buffer containing the IV concatenated with the ciphertext. + */ +export function encrypt(value: string): Buffer { + const iv = crypto.randomBytes(ivLength); + const cipher = crypto.createCipheriv( + algorithm, + Buffer.from(env.SECRET_KEY, "hex"), + iv + ); + const ciphertext = Buffer.concat([ + cipher.update(value, "utf-8"), + cipher.final(), + ]); + return Buffer.concat([iv, ciphertext]); +} + +/** + * Decrypt a buffer produced by `encrypt` back into its original string value. + * + * @param value A buffer containing the IV concatenated with the ciphertext. + * @returns The decrypted plaintext value. + */ +export function decrypt(value: Buffer): string { + const iv = value.subarray(0, ivLength); + const ciphertext = value.subarray(ivLength); + const decipher = crypto.createDecipheriv( + algorithm, + Buffer.from(env.SECRET_KEY, "hex"), + iv + ); + return ( + decipher.update(ciphertext, undefined, "utf-8") + decipher.final("utf-8") + ); +} + +/** + * A decorator that transparently encrypts and decrypts the value of a database + * column. Must be accompanied by a @Column(DataType.BLOB) annotation. */ export default function Encrypted(target: object, propertyKey: string) { // Ensure that the Encrypted decorator is the first decorator applied to the property, we can check @@ -21,23 +63,20 @@ export default function Encrypted(target: object, propertyKey: string) { ); } - Reflect.defineMetadata(key, vaults().vault(propertyKey), target, propertyKey); - return { get() { const attributeOptions = getAttributes(target); const defaultValue = attributeOptions[propertyKey].allowNull ? null : ""; - if (!this.getDataValue(propertyKey)) { + const previous = this.getDataValue(propertyKey); + if (!previous) { return defaultValue; } try { - const value = Reflect.getMetadata(key, this, propertyKey).get.call( - this - ); + const value = JSON.parse(decrypt(previous)); - // `value` equals to `{}` instead of `null` if column value in db is `null`. Possibly explained by: - // https://github.com/defunctzombie/sequelize-encrypted/blob/c3854e76ae4b80318c8f10f94e6c898c67659ca6/index.js#L30-L33 + // An empty object can be the result of a `null` column value, in which + // case we return the default value instead. return isEmpty(value) && typeof value === "object" ? defaultValue : value; @@ -60,7 +99,7 @@ export default function Encrypted(target: object, propertyKey: string) { if (isNil(value)) { this.setDataValue(propertyKey, value); } else { - Reflect.getMetadata(key, this, propertyKey).set.call(this, value); + this.setDataValue(propertyKey, encrypt(JSON.stringify(value))); } } catch (err) { if ( diff --git a/server/storage/vaults.ts b/server/storage/vaults.ts deleted file mode 100644 index 637f8fce50..0000000000 --- a/server/storage/vaults.ts +++ /dev/null @@ -1,10 +0,0 @@ -import SequelizeEncrypted from "sequelize-encrypted"; -import { Sequelize } from "sequelize-typescript"; -import env from "@server/env"; - -/** - * Encrypted field storage, use via the Encrypted decorator, not directly. - */ -export default function vaults() { - return SequelizeEncrypted(Sequelize, env.SECRET_KEY); -} diff --git a/server/typings/index.d.ts b/server/typings/index.d.ts index 4535ba5ba7..39630108d5 100644 --- a/server/typings/index.d.ts +++ b/server/typings/index.d.ts @@ -1,5 +1,3 @@ -declare module "sequelize-encrypted"; - declare module "styled-components-breakpoint"; declare module "formidable/lib/file"; diff --git a/yarn.lock b/yarn.lock index e24d473001..249dfa89c5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15241,7 +15241,6 @@ __metadata: semver: "npm:^7.8.1" sequelize: "npm:^6.37.8" sequelize-cli: "npm:^6.6.5" - sequelize-encrypted: "npm:^1.0.0" sequelize-strict-attributes: "npm:^1.0.2" sequelize-typescript: "npm:^2.1.6" slug: "npm:^5.3.0" @@ -17832,13 +17831,6 @@ __metadata: languageName: node linkType: hard -"sequelize-encrypted@npm:^1.0.0": - version: 1.0.0 - resolution: "sequelize-encrypted@npm:1.0.0" - checksum: 10c0/be6861ac71a6986ec3a06d3b41056ceff6f9a2a258d7954e38bf82be327d61b1d67d34bb303296f1b0e43e9c117f86dfbc20ac2b85450c715beaa1cdf36ad503 - languageName: node - linkType: hard - "sequelize-pool@npm:^7.1.0": version: 7.1.0 resolution: "sequelize-pool@npm:7.1.0"