superdoc 2.23.0-next.12 → 2.23.0-next.14

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.
@@ -10952,6 +10952,7 @@ function createSuperDocUI(options) {
10952
10952
  return false;
10953
10953
  }
10954
10954
  }
10955
+ if (requestedTextTarget && !collapsedTextAddressFromTarget(requestedTextTarget)) return false;
10955
10956
  const insert = trustedLinksApi?.insert;
10956
10957
  const text = readLinkPayloadText(payload, normalizedHref);
10957
10958
  if (typeof insert !== "function" || text.trim() === "") return false;
@@ -10951,6 +10951,7 @@ function createSuperDocUI(options) {
10951
10951
  return false;
10952
10952
  }
10953
10953
  }
10954
+ if (requestedTextTarget && !collapsedTextAddressFromTarget(requestedTextTarget)) return false;
10954
10955
  const insert = trustedLinksApi?.insert;
10955
10956
  const text = readLinkPayloadText(payload, normalizedHref);
10956
10957
  if (typeof insert !== "function" || text.trim() === "") return false;
@@ -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.23.0-next.12",
22
+ superdocVersion: "2.23.0-next.14",
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.23.0-next.12",
21
+ superdocVersion: "2.23.0-next.14",
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
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CbiiPcgr.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-1uZB3O_w.cjs");
3
3
  const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
4
4
  let react = require("react");
5
5
  //#region src/public/ui/react.ts
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-DHW9Toxn.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-B8N_IUG2.es.js";
2
2
  import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
3
3
  import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
4
4
  //#region src/public/ui/react.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CbiiPcgr.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-1uZB3O_w.cjs");
3
3
  const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
4
4
  let superdoc_entry_vue = require("vue");
5
5
  //#region src/public/ui/vue.ts
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-DHW9Toxn.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-B8N_IUG2.es.js";
2
2
  import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
3
3
  import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
4
4
  //#region src/public/ui/vue.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CbiiPcgr.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-1uZB3O_w.cjs");
3
3
  exports.BUILT_IN_COMMAND_IDS = require_create_super_doc_ui.BUILT_IN_COMMAND_IDS;
4
4
  exports.createSuperDocUI = require_create_super_doc_ui.createSuperDocUI;
5
5
  exports.shallowEqual = require_create_super_doc_ui.shallowEqual;
@@ -1,2 +1,2 @@
1
- import { a as BUILT_IN_COMMAND_IDS, t as createSuperDocUI, u as shallowEqual } from "../chunks/create-super-doc-ui-DHW9Toxn.es.js";
1
+ import { a as BUILT_IN_COMMAND_IDS, t as createSuperDocUI, u as shallowEqual } from "../chunks/create-super-doc-ui-B8N_IUG2.es.js";
2
2
  export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
package/dist/style.css CHANGED
@@ -1971,12 +1971,12 @@ img[data-v-c95b2073] {
1971
1971
  padding: 38px 75px 75px;
1972
1972
  }
1973
1973
 
1974
- .link-input-wrapper[data-v-3e4bd44e] {
1974
+ .link-input-wrapper[data-v-498a6e6e] {
1975
1975
  display: flex;
1976
1976
  flex-direction: column;
1977
1977
  gap: 8px;
1978
1978
  }
1979
- .link-input-ctn[data-v-3e4bd44e] {
1979
+ .link-input-ctn[data-v-498a6e6e] {
1980
1980
  width: 320px;
1981
1981
  display: flex;
1982
1982
  flex-direction: column;
@@ -1985,20 +1985,20 @@ img[data-v-c95b2073] {
1985
1985
  background-color: var(--sd-ui-dropdown-bg, #ffffff);
1986
1986
  box-sizing: border-box;
1987
1987
  }
1988
- .link-input-ctn[data-v-3e4bd44e] svg {
1988
+ .link-input-ctn[data-v-498a6e6e] svg {
1989
1989
  width: 100%;
1990
1990
  height: 100%;
1991
1991
  display: block;
1992
1992
  fill: currentColor;
1993
1993
  }
1994
- .link-input-ctn .input-row[data-v-3e4bd44e] {
1994
+ .link-input-ctn .input-row[data-v-498a6e6e] {
1995
1995
  align-content: baseline;
1996
1996
  display: flex;
1997
1997
  align-items: center;
1998
1998
  position: relative;
1999
1999
  font-size: var(--sd-ui-font-size-600, 16px);
2000
2000
  }
2001
- .link-input-ctn .input-row input[data-v-3e4bd44e] {
2001
+ .link-input-ctn .input-row input[data-v-498a6e6e] {
2002
2002
  font-size: var(--sd-ui-font-size-300, 13px);
2003
2003
  flex-grow: 1;
2004
2004
  min-width: 0;
@@ -2010,22 +2010,22 @@ img[data-v-c95b2073] {
2010
2010
  border: 1px solid var(--sd-ui-border, #dbdbdb);
2011
2011
  box-sizing: border-box;
2012
2012
  }
2013
- .link-input-ctn .input-row input[data-v-3e4bd44e]:active,
2014
- .link-input-ctn .input-row input[data-v-3e4bd44e]:focus {
2013
+ .link-input-ctn .input-row input[data-v-498a6e6e]:active,
2014
+ .link-input-ctn .input-row input[data-v-498a6e6e]:focus {
2015
2015
  outline: none;
2016
2016
  border: 1px solid var(--sd-ui-action, #1355ff);
2017
2017
  }
2018
- .link-input-ctn .input-row input[readonly][data-v-3e4bd44e] {
2018
+ .link-input-ctn .input-row input[readonly][data-v-498a6e6e] {
2019
2019
  background-color: var(--sd-ui-disabled-bg, #f5f5f5);
2020
2020
  cursor: default;
2021
2021
  color: var(--sd-ui-text-disabled, #888);
2022
2022
  border-color: var(--sd-ui-border, #e0e0e0);
2023
2023
  }
2024
- .link-input-ctn .input-row input[readonly][data-v-3e4bd44e]:active,
2025
- .link-input-ctn .input-row input[readonly][data-v-3e4bd44e]:focus {
2024
+ .link-input-ctn .input-row input[readonly][data-v-498a6e6e]:active,
2025
+ .link-input-ctn .input-row input[readonly][data-v-498a6e6e]:focus {
2026
2026
  border-color: var(--sd-ui-border, #e0e0e0);
2027
2027
  }
2028
- .link-input-ctn .input-icon[data-v-3e4bd44e] {
2028
+ .link-input-ctn .input-icon[data-v-498a6e6e] {
2029
2029
  position: absolute;
2030
2030
  left: 12px;
2031
2031
  width: 14px;
@@ -2034,18 +2034,18 @@ img[data-v-c95b2073] {
2034
2034
  text-align: center;
2035
2035
  z-index: 1;
2036
2036
  }
2037
- .link-input-ctn .input-icon[data-v-3e4bd44e]:not(.text-input-icon) {
2037
+ .link-input-ctn .input-icon[data-v-498a6e6e]:not(.text-input-icon) {
2038
2038
  transform: rotate(45deg);
2039
2039
  height: 14px;
2040
2040
  }
2041
- .link-input-ctn.high-contrast .input-icon[data-v-3e4bd44e] {
2041
+ .link-input-ctn.high-contrast .input-icon[data-v-498a6e6e] {
2042
2042
  color: var(--sd-ui-text, #47484a);
2043
2043
  }
2044
- .link-input-ctn.high-contrast .input-row input[data-v-3e4bd44e] {
2044
+ .link-input-ctn.high-contrast .input-row input[data-v-498a6e6e] {
2045
2045
  color: var(--sd-ui-text, #47484a);
2046
2046
  border-color: var(--sd-ui-text, #47484a);
2047
2047
  }
2048
- .open-link-icon[data-v-3e4bd44e] {
2048
+ .open-link-icon[data-v-498a6e6e] {
2049
2049
  margin-left: 10px;
2050
2050
  width: 30px;
2051
2051
  height: 30px;
@@ -2058,57 +2058,57 @@ img[data-v-c95b2073] {
2058
2058
  transition: all 0.2s ease;
2059
2059
  cursor: pointer;
2060
2060
  }
2061
- .open-link-icon[data-v-3e4bd44e]:hover {
2061
+ .open-link-icon[data-v-498a6e6e]:hover {
2062
2062
  color: var(--sd-ui-action, #1355ff);
2063
2063
  background-color: var(--sd-ui-bg, #ffffff);
2064
2064
  border: 1px solid var(--sd-ui-border, #dbdbdb);
2065
2065
  }
2066
- .open-link-icon[data-v-3e4bd44e] svg {
2066
+ .open-link-icon[data-v-498a6e6e] svg {
2067
2067
  width: 15px;
2068
2068
  height: 15px;
2069
2069
  }
2070
- .sd-disabled[data-v-3e4bd44e] {
2070
+ .sd-disabled[data-v-498a6e6e] {
2071
2071
  opacity: 0.6;
2072
2072
  cursor: not-allowed;
2073
2073
  pointer-events: none;
2074
2074
  }
2075
- .link-buttons[data-v-3e4bd44e] {
2075
+ .link-buttons[data-v-498a6e6e] {
2076
2076
  display: flex;
2077
2077
  justify-content: flex-end;
2078
2078
  margin-top: 10px;
2079
2079
  }
2080
- .remove-btn__icon[data-v-3e4bd44e] {
2080
+ .remove-btn__icon[data-v-498a6e6e] {
2081
2081
  display: inline-flex;
2082
2082
  width: 13px;
2083
2083
  height: 13px;
2084
2084
  flex-shrink: 0;
2085
2085
  margin-right: 4px;
2086
2086
  }
2087
- .link-buttons button[data-v-3e4bd44e] {
2087
+ .link-buttons button[data-v-498a6e6e] {
2088
2088
  margin-left: 5px;
2089
2089
  }
2090
- .disable-btn[data-v-3e4bd44e] {
2090
+ .disable-btn[data-v-498a6e6e] {
2091
2091
  opacity: 0.6;
2092
2092
  cursor: not-allowed;
2093
2093
  pointer-events: none;
2094
2094
  }
2095
- .go-to-anchor a[data-v-3e4bd44e] {
2095
+ .go-to-anchor a[data-v-498a6e6e] {
2096
2096
  font-size: var(--sd-ui-font-size-400, 14px);
2097
2097
  text-decoration: underline;
2098
2098
  }
2099
- .clickable[data-v-3e4bd44e] {
2099
+ .clickable[data-v-498a6e6e] {
2100
2100
  cursor: pointer;
2101
2101
  }
2102
- .link-title[data-v-3e4bd44e] {
2102
+ .link-title[data-v-498a6e6e] {
2103
2103
  font-size: var(--sd-ui-font-size-400, 14px);
2104
2104
  font-weight: 600;
2105
2105
  color: var(--sd-ui-text, #47484a);
2106
2106
  margin-bottom: 10px;
2107
2107
  }
2108
- .hasBottomMargin[data-v-3e4bd44e] {
2108
+ .hasBottomMargin[data-v-498a6e6e] {
2109
2109
  margin-bottom: 1em;
2110
2110
  }
2111
- .remove-btn[data-v-3e4bd44e] {
2111
+ .remove-btn[data-v-498a6e6e] {
2112
2112
  display: inline-flex;
2113
2113
  justify-content: center;
2114
2114
  align-items: center;
@@ -2124,10 +2124,10 @@ img[data-v-c95b2073] {
2124
2124
  border: 1px solid var(--sd-ui-border, #dbdbdb);
2125
2125
  box-sizing: border-box;
2126
2126
  }
2127
- .remove-btn[data-v-3e4bd44e]:hover {
2127
+ .remove-btn[data-v-498a6e6e]:hover {
2128
2128
  background-color: var(--sd-ui-hover-bg, #dbdbdb);
2129
2129
  }
2130
- .sd-submit-btn[data-v-3e4bd44e] {
2130
+ .sd-submit-btn[data-v-498a6e6e] {
2131
2131
  display: inline-flex;
2132
2132
  justify-content: center;
2133
2133
  align-items: center;
@@ -2143,10 +2143,10 @@ img[data-v-c95b2073] {
2143
2143
  transition: all 0.2s ease;
2144
2144
  box-sizing: border-box;
2145
2145
  }
2146
- .sd-submit-btn[data-v-3e4bd44e]:hover {
2146
+ .sd-submit-btn[data-v-498a6e6e]:hover {
2147
2147
  background-color: var(--sd-ui-action-hover, #0f44cc);
2148
2148
  }
2149
- .sd-error[data-v-3e4bd44e] {
2149
+ .sd-error[data-v-498a6e6e] {
2150
2150
  border-color: red !important;
2151
2151
  background-color: #ff00001a;
2152
2152
  }
@@ -2341,34 +2341,34 @@ img[data-v-c95b2073] {
2341
2341
  pointer-events: auto;
2342
2342
  }
2343
2343
 
2344
- .superdoc[data-v-3a8bc935] {
2344
+ .superdoc[data-v-f53aafe0] {
2345
2345
  display: flex;
2346
2346
  position: relative;
2347
2347
  }
2348
- .right-sidebar[data-v-3a8bc935] {
2348
+ .right-sidebar[data-v-f53aafe0] {
2349
2349
  min-width: 320px;
2350
2350
  height: 100%;
2351
2351
  }
2352
- .floating-comments[data-v-3a8bc935] {
2352
+ .floating-comments[data-v-f53aafe0] {
2353
2353
  min-width: 300px;
2354
2354
  width: 300px;
2355
2355
  height: 100%;
2356
2356
  overflow: visible;
2357
2357
  }
2358
- .superdoc__layers[data-v-3a8bc935] {
2358
+ .superdoc__layers[data-v-f53aafe0] {
2359
2359
  height: 100%;
2360
2360
  position: relative;
2361
2361
  box-sizing: border-box;
2362
2362
  }
2363
- .superdoc__document[data-v-3a8bc935] {
2363
+ .superdoc__document[data-v-f53aafe0] {
2364
2364
  width: 100%;
2365
2365
  position: relative;
2366
2366
  }
2367
- .superdoc__sub-document[data-v-3a8bc935] {
2367
+ .superdoc__sub-document[data-v-f53aafe0] {
2368
2368
  width: 100%;
2369
2369
  position: relative;
2370
2370
  }
2371
- .superdoc__selection-layer[data-v-3a8bc935] {
2371
+ .superdoc__selection-layer[data-v-f53aafe0] {
2372
2372
  position: absolute;
2373
2373
  min-width: 100%;
2374
2374
  min-height: 100%;
@@ -2379,13 +2379,13 @@ img[data-v-c95b2073] {
2379
2379
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
2380
2380
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
2381
2381
  clickable, and below the selection layer (z-index 10). */
2382
- .superdoc__whiteboard-layer[data-v-3a8bc935] {
2382
+ .superdoc__whiteboard-layer[data-v-f53aafe0] {
2383
2383
  z-index: 4;
2384
2384
  }
2385
- .superdoc__temp-selection[data-v-3a8bc935] {
2385
+ .superdoc__temp-selection[data-v-f53aafe0] {
2386
2386
  position: absolute;
2387
2387
  }
2388
- .superdoc__right-sidebar[data-v-3a8bc935] {
2388
+ .superdoc__right-sidebar[data-v-f53aafe0] {
2389
2389
  width: 320px;
2390
2390
  min-width: 320px;
2391
2391
  padding: 0 10px;
@@ -2393,7 +2393,7 @@ img[data-v-c95b2073] {
2393
2393
  position: relative;
2394
2394
  z-index: 2;
2395
2395
  }
2396
- .superdoc__compact-comment-popover[data-v-3a8bc935] {
2396
+ .superdoc__compact-comment-popover[data-v-f53aafe0] {
2397
2397
  position: absolute;
2398
2398
  top: 12px;
2399
2399
  right: 12px;
@@ -2402,14 +2402,14 @@ img[data-v-c95b2073] {
2402
2402
  }
2403
2403
 
2404
2404
  /* Tools styles */
2405
- .tools[data-v-3a8bc935] {
2405
+ .tools[data-v-f53aafe0] {
2406
2406
  position: absolute;
2407
2407
  z-index: 3;
2408
2408
  display: flex;
2409
2409
  flex-direction: column;
2410
2410
  gap: var(--sd-ui-tools-gap, 6px);
2411
2411
  }
2412
- .tools-item[data-v-3a8bc935] {
2412
+ .tools-item[data-v-f53aafe0] {
2413
2413
  display: flex;
2414
2414
  align-items: center;
2415
2415
  justify-content: center;
@@ -2420,10 +2420,10 @@ img[data-v-c95b2073] {
2420
2420
  cursor: pointer;
2421
2421
  position: relative;
2422
2422
  }
2423
- .tools-item i[data-v-3a8bc935] {
2423
+ .tools-item i[data-v-f53aafe0] {
2424
2424
  cursor: pointer;
2425
2425
  }
2426
- .superdoc__tools-icon[data-v-3a8bc935] {
2426
+ .superdoc__tools-icon[data-v-f53aafe0] {
2427
2427
  width: var(--sd-ui-tools-icon-size, 20px);
2428
2428
  height: var(--sd-ui-tools-icon-size, 20px);
2429
2429
  flex-shrink: 0;
@@ -2438,22 +2438,22 @@ img[data-v-c95b2073] {
2438
2438
 
2439
2439
  /* 834px is iPad screen size in portrait orientation */
2440
2440
  @media (max-width: 834px) {
2441
- .superdoc .superdoc__layers[data-v-3a8bc935] {
2441
+ .superdoc .superdoc__layers[data-v-f53aafe0] {
2442
2442
  margin: 0;
2443
2443
  border: 0 !important;
2444
2444
  box-shadow: none;
2445
2445
  }
2446
- .superdoc__sub-document[data-v-3a8bc935] {
2446
+ .superdoc__sub-document[data-v-f53aafe0] {
2447
2447
  max-width: 100%;
2448
2448
  }
2449
- .superdoc__right-sidebar[data-v-3a8bc935] {
2449
+ .superdoc__right-sidebar[data-v-f53aafe0] {
2450
2450
  padding: 10px;
2451
2451
  position: relative;
2452
2452
  }
2453
2453
  }
2454
2454
 
2455
2455
  /* AI Writer styles */
2456
- .ai-writer-container[data-v-3a8bc935] {
2456
+ .ai-writer-container[data-v-f53aafe0] {
2457
2457
  position: fixed;
2458
2458
  z-index: 1000;
2459
2459
  background: white;
@@ -2469,10 +2469,10 @@ img[data-v-c95b2073] {
2469
2469
  transform: translateY(-50%);
2470
2470
  z-index: 50;
2471
2471
  } */
2472
- .ai-tool > svg[data-v-3a8bc935] {
2472
+ .ai-tool > svg[data-v-f53aafe0] {
2473
2473
  fill: transparent;
2474
2474
  }
2475
- .ai-tool[data-v-3a8bc935]::before {
2475
+ .ai-tool[data-v-f53aafe0]::before {
2476
2476
  content: '';
2477
2477
  position: absolute;
2478
2478
  width: 20px;
@@ -2493,7 +2493,7 @@ img[data-v-c95b2073] {
2493
2493
  filter: brightness(1.2);
2494
2494
  transition: filter 0.2s ease;
2495
2495
  }
2496
- .ai-tool[data-v-3a8bc935]:hover::before {
2496
+ .ai-tool[data-v-f53aafe0]:hover::before {
2497
2497
  filter: brightness(1.3);
2498
2498
  }
2499
2499