superdoc 2.19.0-next.6 → 2.19.0-next.7

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.
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
19
19
  var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
20
20
  var ENGINE_INFO = Object.freeze({
21
21
  ...PRIVATE_ENGINE_INFO,
22
- superdocVersion: "2.19.0-next.6",
22
+ superdocVersion: "2.19.0-next.7",
23
23
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
24
24
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
25
25
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
18
18
  var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
19
19
  var ENGINE_INFO = Object.freeze({
20
20
  ...PRIVATE_ENGINE_INFO,
21
- superdocVersion: "2.19.0-next.6",
21
+ superdocVersion: "2.19.0-next.7",
22
22
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
23
23
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
24
24
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
package/dist/style.css CHANGED
@@ -2339,34 +2339,34 @@ img[data-v-c95b2073] {
2339
2339
  pointer-events: auto;
2340
2340
  }
2341
2341
 
2342
- .superdoc[data-v-77e0209a] {
2342
+ .superdoc[data-v-696dd93d] {
2343
2343
  display: flex;
2344
2344
  position: relative;
2345
2345
  }
2346
- .right-sidebar[data-v-77e0209a] {
2346
+ .right-sidebar[data-v-696dd93d] {
2347
2347
  min-width: 320px;
2348
2348
  height: 100%;
2349
2349
  }
2350
- .floating-comments[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2361
+ .superdoc__document[data-v-696dd93d] {
2362
2362
  width: 100%;
2363
2363
  position: relative;
2364
2364
  }
2365
- .superdoc__sub-document[data-v-77e0209a] {
2365
+ .superdoc__sub-document[data-v-696dd93d] {
2366
2366
  width: 100%;
2367
2367
  position: relative;
2368
2368
  }
2369
- .superdoc__selection-layer[data-v-77e0209a] {
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-77e0209a] {
2380
+ .superdoc__whiteboard-layer[data-v-696dd93d] {
2381
2381
  z-index: 4;
2382
2382
  }
2383
- .superdoc__temp-selection[data-v-77e0209a] {
2383
+ .superdoc__temp-selection[data-v-696dd93d] {
2384
2384
  position: absolute;
2385
2385
  }
2386
- .superdoc__right-sidebar[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2421
+ .tools-item i[data-v-696dd93d] {
2422
2422
  cursor: pointer;
2423
2423
  }
2424
- .superdoc__tools-icon[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2444
+ .superdoc__sub-document[data-v-696dd93d] {
2445
2445
  max-width: 100%;
2446
2446
  }
2447
- .superdoc__right-sidebar[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2470
+ .ai-tool > svg[data-v-696dd93d] {
2471
2471
  fill: transparent;
2472
2472
  }
2473
- .ai-tool[data-v-77e0209a]::before {
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-77e0209a]:hover::before {
2494
+ .ai-tool[data-v-696dd93d]:hover::before {
2495
2495
  filter: brightness(1.3);
2496
2496
  }
2497
2497
 
@@ -2339,34 +2339,34 @@ img[data-v-c95b2073] {
2339
2339
  pointer-events: auto;
2340
2340
  }
2341
2341
 
2342
- .superdoc[data-v-77e0209a] {
2342
+ .superdoc[data-v-696dd93d] {
2343
2343
  display: flex;
2344
2344
  position: relative;
2345
2345
  }
2346
- .right-sidebar[data-v-77e0209a] {
2346
+ .right-sidebar[data-v-696dd93d] {
2347
2347
  min-width: 320px;
2348
2348
  height: 100%;
2349
2349
  }
2350
- .floating-comments[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2361
+ .superdoc__document[data-v-696dd93d] {
2362
2362
  width: 100%;
2363
2363
  position: relative;
2364
2364
  }
2365
- .superdoc__sub-document[data-v-77e0209a] {
2365
+ .superdoc__sub-document[data-v-696dd93d] {
2366
2366
  width: 100%;
2367
2367
  position: relative;
2368
2368
  }
2369
- .superdoc__selection-layer[data-v-77e0209a] {
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-77e0209a] {
2380
+ .superdoc__whiteboard-layer[data-v-696dd93d] {
2381
2381
  z-index: 4;
2382
2382
  }
2383
- .superdoc__temp-selection[data-v-77e0209a] {
2383
+ .superdoc__temp-selection[data-v-696dd93d] {
2384
2384
  position: absolute;
2385
2385
  }
2386
- .superdoc__right-sidebar[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2421
+ .tools-item i[data-v-696dd93d] {
2422
2422
  cursor: pointer;
2423
2423
  }
2424
- .superdoc__tools-icon[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2444
+ .superdoc__sub-document[data-v-696dd93d] {
2445
2445
  max-width: 100%;
2446
2446
  }
2447
- .superdoc__right-sidebar[data-v-77e0209a] {
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-77e0209a] {
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-77e0209a] {
2470
+ .ai-tool > svg[data-v-696dd93d] {
2471
2471
  fill: transparent;
2472
2472
  }
2473
- .ai-tool[data-v-77e0209a]::before {
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-77e0209a]:hover::before {
2494
+ .ai-tool[data-v-696dd93d]:hover::before {
2495
2495
  filter: brightness(1.3);
2496
2496
  }
2497
2497
 
package/dist/superdoc.cjs CHANGED
@@ -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.6";
319
+ return "2.19.0-next.7";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -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-77e0209a"]]);
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.6";
45693
+ this.version = "2.19.0-next.7";
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 ?? [];
@@ -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.6";
318
+ return "2.19.0-next.7";
319
319
  } catch {
320
320
  return "unknown";
321
321
  }
@@ -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-77e0209a"]]);
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.6";
45624
+ this.version = "2.19.0-next.7";
45621
45625
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45622
45626
  this.superdocId = config.superdocId || v4();
45623
45627
  this.colors = this.config.colors ?? [];