superdoc 2.19.0-next.1 → 2.19.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{create-super-doc-ui-BFJ9Y0YV.cjs → create-super-doc-ui-CSZSAgxc.cjs} +58 -0
- package/dist/chunks/{create-super-doc-ui-Dfw1b6h_.es.js → create-super-doc-ui-DMe-GQEe.es.js} +58 -0
- package/dist/chunks/pdf.worker.min-BgWCk_Cj.cjs +4 -0
- package/dist/chunks/pdf.worker.min-t-CYmkGJ.es.js +4 -0
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +9 -0
- package/dist/document-api/src/diff/diff.types.d.ts +9 -1
- package/dist/document-api/src/diff/index.d.ts +1 -1
- package/dist/document-api/src/index.d.ts +3 -3
- package/dist/document-api/src/selection/selection.d.ts +6 -2
- package/dist/document-api/src/selection/selection.types.d.ts +75 -0
- package/dist/document-api/src/types/track-changes.types.d.ts +35 -2
- package/dist/layout-engine/contracts/src/index.d.ts +15 -0
- package/dist/layout-engine/contracts/src/resolved-layout.d.ts +3 -1
- package/dist/layout-engine/painters/dom/src/runs/tab-run.d.ts +1 -1
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +22 -22
- package/dist/style.layered.css +22 -22
- package/dist/superdoc/src/core/SuperDoc.d.ts +8 -7
- package/dist/superdoc/src/core/types/index.d.ts +32 -14
- package/dist/superdoc.cjs +12 -8
- package/dist/superdoc.es.js +12 -8
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +36 -36
- package/package.json +3 -2
package/dist/style.layered.css
CHANGED
|
@@ -2339,34 +2339,34 @@ img[data-v-c95b2073] {
|
|
|
2339
2339
|
pointer-events: auto;
|
|
2340
2340
|
}
|
|
2341
2341
|
|
|
2342
|
-
.superdoc[data-v-
|
|
2342
|
+
.superdoc[data-v-696dd93d] {
|
|
2343
2343
|
display: flex;
|
|
2344
2344
|
position: relative;
|
|
2345
2345
|
}
|
|
2346
|
-
.right-sidebar[data-v-
|
|
2346
|
+
.right-sidebar[data-v-696dd93d] {
|
|
2347
2347
|
min-width: 320px;
|
|
2348
2348
|
height: 100%;
|
|
2349
2349
|
}
|
|
2350
|
-
.floating-comments[data-v-
|
|
2350
|
+
.floating-comments[data-v-696dd93d] {
|
|
2351
2351
|
min-width: 300px;
|
|
2352
2352
|
width: 300px;
|
|
2353
2353
|
height: 100%;
|
|
2354
2354
|
overflow: visible;
|
|
2355
2355
|
}
|
|
2356
|
-
.superdoc__layers[data-v-
|
|
2356
|
+
.superdoc__layers[data-v-696dd93d] {
|
|
2357
2357
|
height: 100%;
|
|
2358
2358
|
position: relative;
|
|
2359
2359
|
box-sizing: border-box;
|
|
2360
2360
|
}
|
|
2361
|
-
.superdoc__document[data-v-
|
|
2361
|
+
.superdoc__document[data-v-696dd93d] {
|
|
2362
2362
|
width: 100%;
|
|
2363
2363
|
position: relative;
|
|
2364
2364
|
}
|
|
2365
|
-
.superdoc__sub-document[data-v-
|
|
2365
|
+
.superdoc__sub-document[data-v-696dd93d] {
|
|
2366
2366
|
width: 100%;
|
|
2367
2367
|
position: relative;
|
|
2368
2368
|
}
|
|
2369
|
-
.superdoc__selection-layer[data-v-
|
|
2369
|
+
.superdoc__selection-layer[data-v-696dd93d] {
|
|
2370
2370
|
position: absolute;
|
|
2371
2371
|
min-width: 100%;
|
|
2372
2372
|
min-height: 100%;
|
|
@@ -2377,13 +2377,13 @@ img[data-v-c95b2073] {
|
|
|
2377
2377
|
/* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
|
|
2378
2378
|
the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
|
|
2379
2379
|
clickable, and below the selection layer (z-index 10). */
|
|
2380
|
-
.superdoc__whiteboard-layer[data-v-
|
|
2380
|
+
.superdoc__whiteboard-layer[data-v-696dd93d] {
|
|
2381
2381
|
z-index: 4;
|
|
2382
2382
|
}
|
|
2383
|
-
.superdoc__temp-selection[data-v-
|
|
2383
|
+
.superdoc__temp-selection[data-v-696dd93d] {
|
|
2384
2384
|
position: absolute;
|
|
2385
2385
|
}
|
|
2386
|
-
.superdoc__right-sidebar[data-v-
|
|
2386
|
+
.superdoc__right-sidebar[data-v-696dd93d] {
|
|
2387
2387
|
width: 320px;
|
|
2388
2388
|
min-width: 320px;
|
|
2389
2389
|
padding: 0 10px;
|
|
@@ -2391,7 +2391,7 @@ img[data-v-c95b2073] {
|
|
|
2391
2391
|
position: relative;
|
|
2392
2392
|
z-index: 2;
|
|
2393
2393
|
}
|
|
2394
|
-
.superdoc__compact-comment-popover[data-v-
|
|
2394
|
+
.superdoc__compact-comment-popover[data-v-696dd93d] {
|
|
2395
2395
|
position: absolute;
|
|
2396
2396
|
top: 12px;
|
|
2397
2397
|
right: 12px;
|
|
@@ -2400,14 +2400,14 @@ img[data-v-c95b2073] {
|
|
|
2400
2400
|
}
|
|
2401
2401
|
|
|
2402
2402
|
/* Tools styles */
|
|
2403
|
-
.tools[data-v-
|
|
2403
|
+
.tools[data-v-696dd93d] {
|
|
2404
2404
|
position: absolute;
|
|
2405
2405
|
z-index: 3;
|
|
2406
2406
|
display: flex;
|
|
2407
2407
|
flex-direction: column;
|
|
2408
2408
|
gap: var(--sd-ui-tools-gap, 6px);
|
|
2409
2409
|
}
|
|
2410
|
-
.tools-item[data-v-
|
|
2410
|
+
.tools-item[data-v-696dd93d] {
|
|
2411
2411
|
display: flex;
|
|
2412
2412
|
align-items: center;
|
|
2413
2413
|
justify-content: center;
|
|
@@ -2418,10 +2418,10 @@ img[data-v-c95b2073] {
|
|
|
2418
2418
|
cursor: pointer;
|
|
2419
2419
|
position: relative;
|
|
2420
2420
|
}
|
|
2421
|
-
.tools-item i[data-v-
|
|
2421
|
+
.tools-item i[data-v-696dd93d] {
|
|
2422
2422
|
cursor: pointer;
|
|
2423
2423
|
}
|
|
2424
|
-
.superdoc__tools-icon[data-v-
|
|
2424
|
+
.superdoc__tools-icon[data-v-696dd93d] {
|
|
2425
2425
|
width: var(--sd-ui-tools-icon-size, 20px);
|
|
2426
2426
|
height: var(--sd-ui-tools-icon-size, 20px);
|
|
2427
2427
|
flex-shrink: 0;
|
|
@@ -2436,22 +2436,22 @@ img[data-v-c95b2073] {
|
|
|
2436
2436
|
|
|
2437
2437
|
/* 834px is iPad screen size in portrait orientation */
|
|
2438
2438
|
@media (max-width: 834px) {
|
|
2439
|
-
.superdoc .superdoc__layers[data-v-
|
|
2439
|
+
.superdoc .superdoc__layers[data-v-696dd93d] {
|
|
2440
2440
|
margin: 0;
|
|
2441
2441
|
border: 0 !important;
|
|
2442
2442
|
box-shadow: none;
|
|
2443
2443
|
}
|
|
2444
|
-
.superdoc__sub-document[data-v-
|
|
2444
|
+
.superdoc__sub-document[data-v-696dd93d] {
|
|
2445
2445
|
max-width: 100%;
|
|
2446
2446
|
}
|
|
2447
|
-
.superdoc__right-sidebar[data-v-
|
|
2447
|
+
.superdoc__right-sidebar[data-v-696dd93d] {
|
|
2448
2448
|
padding: 10px;
|
|
2449
2449
|
position: relative;
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
|
|
2453
2453
|
/* AI Writer styles */
|
|
2454
|
-
.ai-writer-container[data-v-
|
|
2454
|
+
.ai-writer-container[data-v-696dd93d] {
|
|
2455
2455
|
position: fixed;
|
|
2456
2456
|
z-index: 1000;
|
|
2457
2457
|
background: white;
|
|
@@ -2467,10 +2467,10 @@ img[data-v-c95b2073] {
|
|
|
2467
2467
|
transform: translateY(-50%);
|
|
2468
2468
|
z-index: 50;
|
|
2469
2469
|
} */
|
|
2470
|
-
.ai-tool > svg[data-v-
|
|
2470
|
+
.ai-tool > svg[data-v-696dd93d] {
|
|
2471
2471
|
fill: transparent;
|
|
2472
2472
|
}
|
|
2473
|
-
.ai-tool[data-v-
|
|
2473
|
+
.ai-tool[data-v-696dd93d]::before {
|
|
2474
2474
|
content: '';
|
|
2475
2475
|
position: absolute;
|
|
2476
2476
|
width: 20px;
|
|
@@ -2491,7 +2491,7 @@ img[data-v-c95b2073] {
|
|
|
2491
2491
|
filter: brightness(1.2);
|
|
2492
2492
|
transition: filter 0.2s ease;
|
|
2493
2493
|
}
|
|
2494
|
-
.ai-tool[data-v-
|
|
2494
|
+
.ai-tool[data-v-696dd93d]:hover::before {
|
|
2495
2495
|
filter: brightness(1.3);
|
|
2496
2496
|
}
|
|
2497
2497
|
|
|
@@ -149,15 +149,16 @@ export declare class SuperDoc extends EventEmitter<SuperDocEventMap> {
|
|
|
149
149
|
* and throw a clear lifecycle error instead.
|
|
150
150
|
*/
|
|
151
151
|
users: User[];
|
|
152
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Not set in v2. SuperDoc owns the collaboration `Y.Doc` inside its
|
|
154
|
+
* collaboration worker and does not expose it on the main thread.
|
|
155
|
+
*/
|
|
153
156
|
ydoc: Y.Doc | undefined;
|
|
154
157
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* `
|
|
159
|
-
* specific members must narrow before use.
|
|
160
|
-
*
|
|
158
|
+
* Collaboration provider facade for the active v2 room. It is not a
|
|
159
|
+
* provider instance: SuperDoc owns the provider inside its collaboration
|
|
160
|
+
* worker, and this object only offers `sendStateless(message)`. It is
|
|
161
|
+
* `undefined` or `null` when no room is open.
|
|
161
162
|
*/
|
|
162
163
|
provider: CollaborationProvider | undefined;
|
|
163
164
|
/**
|
|
@@ -1023,14 +1023,16 @@ export interface Document {
|
|
|
1023
1023
|
isNewFile?: boolean;
|
|
1024
1024
|
/** Password for this encrypted DOCX. Overrides top-level `Config.password`. */
|
|
1025
1025
|
password?: string;
|
|
1026
|
-
/**
|
|
1026
|
+
/**
|
|
1027
|
+
* Not set in v2 and cannot be supplied. SuperDoc owns the collaboration
|
|
1028
|
+
* `Y.Doc` inside its worker; configure the room with `collaboration`.
|
|
1029
|
+
*/
|
|
1027
1030
|
ydoc?: YDoc;
|
|
1028
1031
|
/**
|
|
1029
|
-
*
|
|
1030
|
-
*
|
|
1031
|
-
*
|
|
1032
|
-
* (
|
|
1033
|
-
* Consumers needing Hocuspocus-specific members must narrow before use.
|
|
1032
|
+
* Collaboration provider facade for this document's v2 room. It is not a
|
|
1033
|
+
* provider instance and cannot be supplied: SuperDoc owns the provider
|
|
1034
|
+
* inside its collaboration worker, and this object only offers
|
|
1035
|
+
* `sendStateless(message)`. Configure the room with `collaboration`.
|
|
1034
1036
|
*/
|
|
1035
1037
|
provider?: CollaborationProvider;
|
|
1036
1038
|
/**
|
|
@@ -1143,19 +1145,30 @@ export interface RuntimeDocument extends Document {
|
|
|
1143
1145
|
*/
|
|
1144
1146
|
removeComments?: () => void;
|
|
1145
1147
|
}
|
|
1146
|
-
/**
|
|
1148
|
+
/**
|
|
1149
|
+
* SuperDoc v1 collaboration module configuration.
|
|
1150
|
+
*
|
|
1151
|
+
* SuperDoc v2 rejects this configuration at runtime: it owns the `Y.Doc` and
|
|
1152
|
+
* provider inside its collaboration worker, so it neither attaches an external
|
|
1153
|
+
* `{ ydoc, provider }` pair nor opens the internal provider these fields
|
|
1154
|
+
* describe. Configure a room with `document.collaboration`
|
|
1155
|
+
* (`DocumentCollaborationConfig`) instead. To keep an existing provider setup,
|
|
1156
|
+
* see https://docs.superdoc.dev/editor/collaboration/use-your-own-provider
|
|
1157
|
+
*
|
|
1158
|
+
* @deprecated replaceWith=`DocumentCollaborationConfig` removeIn=v3.0
|
|
1159
|
+
*/
|
|
1147
1160
|
export interface CollaborationConfig {
|
|
1148
|
-
/**
|
|
1161
|
+
/** SuperDoc v1 external Yjs document. Rejected by v2, which owns its `Y.Doc`. */
|
|
1149
1162
|
ydoc?: YDoc;
|
|
1150
|
-
/**
|
|
1163
|
+
/** SuperDoc v1 external provider. Rejected by v2, which owns its provider. */
|
|
1151
1164
|
provider?: CollaborationProvider;
|
|
1152
|
-
/**
|
|
1165
|
+
/** SuperDoc v1 internal provider type. Use `DocumentCollaborationConfig.providerType`. */
|
|
1153
1166
|
providerType?: 'hocuspocus' | 'superdoc';
|
|
1154
|
-
/**
|
|
1167
|
+
/** SuperDoc v1 internal provider URL. Use `DocumentCollaborationConfig` `serverUrl`. */
|
|
1155
1168
|
url?: string;
|
|
1156
|
-
/**
|
|
1169
|
+
/** SuperDoc v1 internal provider token. Use `DocumentCollaborationConfig` `token`. */
|
|
1157
1170
|
token?: string;
|
|
1158
|
-
/**
|
|
1171
|
+
/** SuperDoc v1 internal provider params. Use `DocumentCollaborationConfig` `params`. */
|
|
1159
1172
|
params?: object;
|
|
1160
1173
|
}
|
|
1161
1174
|
/**
|
|
@@ -2548,7 +2561,12 @@ export interface Modules {
|
|
|
2548
2561
|
/** Canvas render scale (quality). */
|
|
2549
2562
|
outputScale?: number;
|
|
2550
2563
|
} & Record<string, unknown>;
|
|
2551
|
-
/**
|
|
2564
|
+
/**
|
|
2565
|
+
* SuperDoc v1 collaboration module. SuperDoc v2 refuses it at runtime and
|
|
2566
|
+
* attaches nothing; configure `document.collaboration` instead.
|
|
2567
|
+
*
|
|
2568
|
+
* @deprecated replaceWith=`Document.collaboration` removeIn=v3.0
|
|
2569
|
+
*/
|
|
2552
2570
|
collaboration?: CollaborationConfig;
|
|
2553
2571
|
/**
|
|
2554
2572
|
* Toolbar module configuration. Pass `true` to configure the toolbar with
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./chunks/rolldown-runtime-74VwNCz7.cjs");
|
|
3
3
|
const require_blank_docx = require("./chunks/blank-docx-BuFAbRjs.cjs");
|
|
4
|
-
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-
|
|
4
|
+
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-CSZSAgxc.cjs");
|
|
5
5
|
const require_eventemitter3 = require("./chunks/eventemitter3-C_TAnXOl.cjs");
|
|
6
6
|
const require_uuid = require("./chunks/uuid-BhG0ngwk.cjs");
|
|
7
7
|
const require_jszip = require("./chunks/jszip-D8mAFF-r.cjs");
|
|
@@ -316,7 +316,7 @@ var shuffleArray = (array) => {
|
|
|
316
316
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
317
317
|
function getSuperdocVersion() {
|
|
318
318
|
try {
|
|
319
|
-
return "2.19.0-next.
|
|
319
|
+
return "2.19.0-next.10";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -5456,13 +5456,13 @@ function resolveProviderExtension(candidate) {
|
|
|
5456
5456
|
if (!adapterId) return {
|
|
5457
5457
|
ok: false,
|
|
5458
5458
|
reason: "invalid-adapter-id",
|
|
5459
|
-
message: "SuperDoc v2 provider extensions require a non-empty
|
|
5459
|
+
message: "SuperDoc v2 provider extensions require a non-empty collaboration.adapterId."
|
|
5460
5460
|
};
|
|
5461
5461
|
const documentId = normalizeNonEmptyString(candidate.documentId);
|
|
5462
5462
|
if (!documentId) return {
|
|
5463
5463
|
ok: false,
|
|
5464
5464
|
reason: "invalid-document-id",
|
|
5465
|
-
message: "SuperDoc v2 provider extensions require a non-empty
|
|
5465
|
+
message: "SuperDoc v2 provider extensions require a non-empty collaboration.documentId."
|
|
5466
5466
|
};
|
|
5467
5467
|
const roomMode = normalizeRoomMode(candidate.roomMode);
|
|
5468
5468
|
if (!roomMode) return invalidRoomMode();
|
|
@@ -23433,7 +23433,11 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
|
|
|
23433
23433
|
handleImageUpload: proxy.$superdoc.config.handleImageUpload,
|
|
23434
23434
|
externalExtensions: proxy.$superdoc.config.editorExtensions || [],
|
|
23435
23435
|
extensions: proxy.$superdoc.config.extensions || [],
|
|
23436
|
-
...pdfConfig?.pdfLib ? { pdfLib: pdfConfig.pdfLib } : {}
|
|
23436
|
+
...pdfConfig?.pdfLib ? { pdfLib: pdfConfig.pdfLib } : typeof __SUPERDOC_BUILD__ !== "undefined" && __SUPERDOC_BUILD__ === "cdn-iife" ? {} : { loadPdfJs: async () => {
|
|
23437
|
+
const [pdfJs, worker] = await Promise.all([import("pdfjs-dist/build/pdf.mjs"), Promise.resolve().then(() => require("./chunks/pdf.worker.min-BgWCk_Cj.cjs"))]);
|
|
23438
|
+
pdfJs.GlobalWorkerOptions.workerSrc = worker.default;
|
|
23439
|
+
return pdfJs;
|
|
23440
|
+
} },
|
|
23437
23441
|
suppressDefaultDocxStyles: proxy.$superdoc.config.suppressDefaultDocxStyles,
|
|
23438
23442
|
disableContextMenu: !proxy.$superdoc.uiConfig.contextMenu.enabled || proxy.$superdoc.config.disableContextMenu === true,
|
|
23439
23443
|
jsonOverride: proxy.$superdoc.config.jsonOverride,
|
|
@@ -24499,7 +24503,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
|
|
|
24499
24503
|
], 38);
|
|
24500
24504
|
};
|
|
24501
24505
|
}
|
|
24502
|
-
}, [["__scopeId", "data-v-
|
|
24506
|
+
}, [["__scopeId", "data-v-696dd93d"]]);
|
|
24503
24507
|
//#endregion
|
|
24504
24508
|
//#region src/core/create-app.js
|
|
24505
24509
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
@@ -45686,7 +45690,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
45686
45690
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45687
45691
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45688
45692
|
this.colorIndex = 0;
|
|
45689
|
-
this.version = "2.19.0-next.
|
|
45693
|
+
this.version = "2.19.0-next.10";
|
|
45690
45694
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45691
45695
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
45692
45696
|
this.colors = this.config.colors ?? [];
|
|
@@ -47078,7 +47082,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
47078
47082
|
{
|
|
47079
47083
|
feature: "shell.collaboration",
|
|
47080
47084
|
status: "supported",
|
|
47081
|
-
reason: "v2 single-doc y-websocket
|
|
47085
|
+
reason: "v2 single-doc collaboration (hocuspocus, y-websocket, liveblocks, and registered provider extensions) is wired through document.collaboration, including collaboration-ready, awareness-update, and locked event bridges; external { ydoc, provider } instances remain unsupported"
|
|
47082
47086
|
},
|
|
47083
47087
|
{
|
|
47084
47088
|
feature: "shell.context-menu",
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __toESM$2 } from "./chunks/rolldown-runtime-0pSA04fp.es.js";
|
|
2
2
|
import { t as blank_default } from "./chunks/blank-docx-DzQccOlW.es.js";
|
|
3
|
-
import { a as applyV2CommentInvalidationFromMutation, c as resolveImageSrc, d as closeInteractionHistory, f as createInteractionHistory, n as executeFirstPartyCommandAsync, o as getV2TrackedChangeMutationImpact, p as recordInteraction, r as registerFirstPartyCommandMutation, s as createImageFilePicker, t as createSuperDocUI, u as DOM_CLASS_NAMES } from "./chunks/create-super-doc-ui-
|
|
3
|
+
import { a as applyV2CommentInvalidationFromMutation, c as resolveImageSrc, d as closeInteractionHistory, f as createInteractionHistory, n as executeFirstPartyCommandAsync, o as getV2TrackedChangeMutationImpact, p as recordInteraction, r as registerFirstPartyCommandMutation, s as createImageFilePicker, t as createSuperDocUI, u as DOM_CLASS_NAMES } from "./chunks/create-super-doc-ui-DMe-GQEe.es.js";
|
|
4
4
|
import { t as import_eventemitter3 } from "./chunks/eventemitter3-DEIiXiH2.es.js";
|
|
5
5
|
import { t as v4 } from "./chunks/uuid-H0Xcmmhy.es.js";
|
|
6
6
|
import { a as init_dist$1, i as global, n as init_dist$2, o as Buffer, r as process$1, s as init_dist, t as require_jszip_min } from "./chunks/jszip-BzJ3CyxR.es.js";
|
|
@@ -315,7 +315,7 @@ var shuffleArray = (array) => {
|
|
|
315
315
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
316
316
|
function getSuperdocVersion() {
|
|
317
317
|
try {
|
|
318
|
-
return "2.19.0-next.
|
|
318
|
+
return "2.19.0-next.10";
|
|
319
319
|
} catch {
|
|
320
320
|
return "unknown";
|
|
321
321
|
}
|
|
@@ -5455,13 +5455,13 @@ function resolveProviderExtension(candidate) {
|
|
|
5455
5455
|
if (!adapterId) return {
|
|
5456
5456
|
ok: false,
|
|
5457
5457
|
reason: "invalid-adapter-id",
|
|
5458
|
-
message: "SuperDoc v2 provider extensions require a non-empty
|
|
5458
|
+
message: "SuperDoc v2 provider extensions require a non-empty collaboration.adapterId."
|
|
5459
5459
|
};
|
|
5460
5460
|
const documentId = normalizeNonEmptyString(candidate.documentId);
|
|
5461
5461
|
if (!documentId) return {
|
|
5462
5462
|
ok: false,
|
|
5463
5463
|
reason: "invalid-document-id",
|
|
5464
|
-
message: "SuperDoc v2 provider extensions require a non-empty
|
|
5464
|
+
message: "SuperDoc v2 provider extensions require a non-empty collaboration.documentId."
|
|
5465
5465
|
};
|
|
5466
5466
|
const roomMode = normalizeRoomMode(candidate.roomMode);
|
|
5467
5467
|
if (!roomMode) return invalidRoomMode();
|
|
@@ -23393,7 +23393,11 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
23393
23393
|
handleImageUpload: proxy.$superdoc.config.handleImageUpload,
|
|
23394
23394
|
externalExtensions: proxy.$superdoc.config.editorExtensions || [],
|
|
23395
23395
|
extensions: proxy.$superdoc.config.extensions || [],
|
|
23396
|
-
...pdfConfig?.pdfLib ? { pdfLib: pdfConfig.pdfLib } : {}
|
|
23396
|
+
...pdfConfig?.pdfLib ? { pdfLib: pdfConfig.pdfLib } : typeof __SUPERDOC_BUILD__ !== "undefined" && __SUPERDOC_BUILD__ === "cdn-iife" ? {} : { loadPdfJs: async () => {
|
|
23397
|
+
const [pdfJs, worker] = await Promise.all([import("pdfjs-dist/build/pdf.mjs"), import("./chunks/pdf.worker.min-t-CYmkGJ.es.js")]);
|
|
23398
|
+
pdfJs.GlobalWorkerOptions.workerSrc = worker.default;
|
|
23399
|
+
return pdfJs;
|
|
23400
|
+
} },
|
|
23397
23401
|
suppressDefaultDocxStyles: proxy.$superdoc.config.suppressDefaultDocxStyles,
|
|
23398
23402
|
disableContextMenu: !proxy.$superdoc.uiConfig.contextMenu.enabled || proxy.$superdoc.config.disableContextMenu === true,
|
|
23399
23403
|
jsonOverride: proxy.$superdoc.config.jsonOverride,
|
|
@@ -24459,7 +24463,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
24459
24463
|
], 38);
|
|
24460
24464
|
};
|
|
24461
24465
|
}
|
|
24462
|
-
}, [["__scopeId", "data-v-
|
|
24466
|
+
}, [["__scopeId", "data-v-696dd93d"]]);
|
|
24463
24467
|
//#endregion
|
|
24464
24468
|
//#region src/core/create-app.js
|
|
24465
24469
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
@@ -45617,7 +45621,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
45617
45621
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45618
45622
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45619
45623
|
this.colorIndex = 0;
|
|
45620
|
-
this.version = "2.19.0-next.
|
|
45624
|
+
this.version = "2.19.0-next.10";
|
|
45621
45625
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45622
45626
|
this.superdocId = config.superdocId || v4();
|
|
45623
45627
|
this.colors = this.config.colors ?? [];
|
|
@@ -47009,7 +47013,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
47009
47013
|
{
|
|
47010
47014
|
feature: "shell.collaboration",
|
|
47011
47015
|
status: "supported",
|
|
47012
|
-
reason: "v2 single-doc y-websocket
|
|
47016
|
+
reason: "v2 single-doc collaboration (hocuspocus, y-websocket, liveblocks, and registered provider extensions) is wired through document.collaboration, including collaboration-ready, awareness-update, and locked event bridges; external { ydoc, provider } instances remain unsupported"
|
|
47013
47017
|
},
|
|
47014
47018
|
{
|
|
47015
47019
|
feature: "shell.context-menu",
|