@superdoc-dev/cli 0.8.0-next.115 → 0.8.0-next.117
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/index.js +51 -9
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -209584,7 +209584,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
209584
209584
|
init_remark_gfm_BhnWr3yf_es();
|
|
209585
209585
|
});
|
|
209586
209586
|
|
|
209587
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
209587
|
+
// ../../packages/superdoc/dist/chunks/src-Db2DJZym.es.js
|
|
209588
209588
|
function deleteProps(obj, propOrProps) {
|
|
209589
209589
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
209590
209590
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -265297,7 +265297,7 @@ function normalizeFieldAnnotationMetadata(attrs) {
|
|
|
265297
265297
|
};
|
|
265298
265298
|
}
|
|
265299
265299
|
function normalizeStructuredContentMetadata(nodeType, attrs) {
|
|
265300
|
-
|
|
265300
|
+
const metadata = {
|
|
265301
265301
|
type: "structuredContent",
|
|
265302
265302
|
scope: nodeType === "structuredContentBlock" ? "block" : "inline",
|
|
265303
265303
|
id: toNullableString(attrs.id),
|
|
@@ -265306,6 +265306,10 @@ function normalizeStructuredContentMetadata(nodeType, attrs) {
|
|
|
265306
265306
|
lockMode: attrs.lockMode,
|
|
265307
265307
|
sdtPr: attrs.sdtPr
|
|
265308
265308
|
};
|
|
265309
|
+
const rawAppearance = toOptionalString(attrs.appearance);
|
|
265310
|
+
if (rawAppearance === "boundingBox" || rawAppearance === "tags" || rawAppearance === "hidden")
|
|
265311
|
+
metadata.appearance = rawAppearance;
|
|
265312
|
+
return metadata;
|
|
265309
265313
|
}
|
|
265310
265314
|
function normalizeDocumentSectionMetadata(attrs) {
|
|
265311
265315
|
return {
|
|
@@ -267922,6 +267926,13 @@ function findRenderedTrackedChangeElementsStrict(host, entityId, escapeAttrValue
|
|
|
267922
267926
|
const storySelector = `${baseSelector}[data-story-key="${escapeAttrValue$1(storyKey)}"]`;
|
|
267923
267927
|
return Array.from(host.querySelectorAll(storySelector));
|
|
267924
267928
|
}
|
|
267929
|
+
function findRenderedContentControlElements(host, entityId, escapeAttrValue$1, _storyKey) {
|
|
267930
|
+
if (!host || !entityId)
|
|
267931
|
+
return [];
|
|
267932
|
+
const id2 = escapeAttrValue$1(entityId);
|
|
267933
|
+
const selector = `.${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}[data-sdt-id="${id2}"][data-sdt-type="structuredContent"],.${DOM_CLASS_NAMES.BLOCK_SDT}[data-sdt-id="${id2}"][data-sdt-type="structuredContent"]`;
|
|
267934
|
+
return Array.from(host.querySelectorAll(selector));
|
|
267935
|
+
}
|
|
267925
267936
|
function elementsToRangeRects(elements) {
|
|
267926
267937
|
const result = [];
|
|
267927
267938
|
for (const element3 of elements) {
|
|
@@ -290256,13 +290267,38 @@ var Node$13 = class Node$14 {
|
|
|
290256
290267
|
display: none;
|
|
290257
290268
|
}
|
|
290258
290269
|
|
|
290270
|
+
/* Hidden appearance per ECMA-376 (w15:appearance val="hidden"). SDT
|
|
290271
|
+
* exists in the document for anchoring but is visually transparent: no
|
|
290272
|
+
* padding, no border, no hover background, no selected outline. The
|
|
290273
|
+
* alias label is not emitted into the DOM at all (see renderer.ts), so
|
|
290274
|
+
* there is nothing to hide from copy-paste or screen readers. */
|
|
290275
|
+
.superdoc-structured-content-inline[data-appearance='hidden'] {
|
|
290276
|
+
padding: 0;
|
|
290277
|
+
border: none;
|
|
290278
|
+
border-radius: 0;
|
|
290279
|
+
}
|
|
290280
|
+
.superdoc-structured-content-inline[data-appearance='hidden']:hover {
|
|
290281
|
+
background-color: transparent;
|
|
290282
|
+
border: none;
|
|
290283
|
+
}
|
|
290284
|
+
.superdoc-structured-content-inline[data-appearance='hidden'].ProseMirror-selectednode {
|
|
290285
|
+
border-color: transparent;
|
|
290286
|
+
background-color: transparent;
|
|
290287
|
+
}
|
|
290288
|
+
|
|
290259
290289
|
/* Hover highlight for SDT containers.
|
|
290260
290290
|
* Hover adds background highlight and z-index boost.
|
|
290261
290291
|
* Block SDTs use .sdt-group-hover class (event delegation for multi-fragment coordination).
|
|
290262
290292
|
* Inline SDTs use :hover (single element, no coordination needed).
|
|
290263
|
-
* Hover is suppressed when the node is selected (SD-1584).
|
|
290293
|
+
* Hover is suppressed when the node is selected (SD-1584).
|
|
290294
|
+
*
|
|
290295
|
+
* Inline SDTs with appearance=hidden are excluded via the same :not()
|
|
290296
|
+
* that handles selection. Both predicates live in one :not(a, b) so the
|
|
290297
|
+
* selector keeps (0,4,0) specificity. A second chained :not() would push
|
|
290298
|
+
* it to (0,5,0) and beat the viewing-mode suppression rule below, which
|
|
290299
|
+
* also sits at (0,4,0). */
|
|
290264
290300
|
.superdoc-structured-content-block[data-lock-mode].sdt-group-hover:not(.ProseMirror-selectednode),
|
|
290265
|
-
.superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode) {
|
|
290301
|
+
.superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode, [data-appearance='hidden']) {
|
|
290266
290302
|
background-color: var(--sd-content-controls-lock-hover-bg, rgba(98, 155, 231, 0.08));
|
|
290267
290303
|
z-index: 9999999;
|
|
290268
290304
|
}
|
|
@@ -304052,7 +304088,7 @@ menclose::after {
|
|
|
304052
304088
|
return;
|
|
304053
304089
|
console.log(...args$1);
|
|
304054
304090
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
|
|
304055
|
-
var
|
|
304091
|
+
var init_src_Db2DJZym_es = __esm(() => {
|
|
304056
304092
|
init_rolldown_runtime_Bg48TavK_es();
|
|
304057
304093
|
init_SuperConverter_ByqzBuoW_es();
|
|
304058
304094
|
init_jszip_C49i9kUs_es();
|
|
@@ -334690,6 +334726,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334690
334726
|
wrapper.className = DOM_CLASS_NAMES.INLINE_SDT_WRAPPER;
|
|
334691
334727
|
wrapper.dataset.layoutEpoch = String(this.layoutEpoch);
|
|
334692
334728
|
this.applySdtDataset(wrapper, sdt);
|
|
334729
|
+
if ((sdt.type === "structuredContent" ? sdt.appearance : undefined) === "hidden") {
|
|
334730
|
+
wrapper.dataset.appearance = "hidden";
|
|
334731
|
+
return wrapper;
|
|
334732
|
+
}
|
|
334693
334733
|
const alias = sdt?.alias || "Inline content";
|
|
334694
334734
|
const labelEl = this.doc.createElement("span");
|
|
334695
334735
|
labelEl.className = `${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}__label`;
|
|
@@ -336925,6 +336965,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
336925
336965
|
elements = findRenderedTrackedChangeElementsStrict(host, entityId, escapeAttrValue, storyKey);
|
|
336926
336966
|
else if (entityType === "comment")
|
|
336927
336967
|
elements = findRenderedCommentElements(host, entityId, storyKey);
|
|
336968
|
+
else if (entityType === "contentControl")
|
|
336969
|
+
elements = findRenderedContentControlElements(host, entityId, escapeAttrValue, storyKey);
|
|
336928
336970
|
else
|
|
336929
336971
|
return [];
|
|
336930
336972
|
return elementsToRangeRects(elements);
|
|
@@ -342123,9 +342165,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
342123
342165
|
];
|
|
342124
342166
|
});
|
|
342125
342167
|
|
|
342126
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
342168
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-ohqFuGuC.es.js
|
|
342127
342169
|
var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
|
|
342128
|
-
var
|
|
342170
|
+
var init_create_super_doc_ui_ohqFuGuC_es = __esm(() => {
|
|
342129
342171
|
init_SuperConverter_ByqzBuoW_es();
|
|
342130
342172
|
init_create_headless_toolbar_CaWsmmol_es();
|
|
342131
342173
|
MOD_ALIASES = new Set([
|
|
@@ -342169,7 +342211,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
342169
342211
|
|
|
342170
342212
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342171
342213
|
var init_super_editor_es = __esm(() => {
|
|
342172
|
-
|
|
342214
|
+
init_src_Db2DJZym_es();
|
|
342173
342215
|
init_SuperConverter_ByqzBuoW_es();
|
|
342174
342216
|
init_jszip_C49i9kUs_es();
|
|
342175
342217
|
init_xml_js_CqGKpaft_es();
|
|
@@ -342178,7 +342220,7 @@ var init_super_editor_es = __esm(() => {
|
|
|
342178
342220
|
init_dist_B8HfvhaK_es();
|
|
342179
342221
|
init_unified_Dsuw2be5_es();
|
|
342180
342222
|
init_DocxZipper_Bphhij1P_es();
|
|
342181
|
-
|
|
342223
|
+
init_create_super_doc_ui_ohqFuGuC_es();
|
|
342182
342224
|
init_ui_CGB3qmy3_es();
|
|
342183
342225
|
init_eventemitter3_UwU_CLPU_es();
|
|
342184
342226
|
init_errors_C_DoKMoN_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.8.0-next.
|
|
3
|
+
"version": "0.8.0-next.117",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"@superdoc/document-api": "0.0.1",
|
|
28
27
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
|
+
"@superdoc/super-editor": "0.0.1",
|
|
29
29
|
"superdoc": "1.32.0",
|
|
30
|
-
"@superdoc/
|
|
30
|
+
"@superdoc/document-api": "0.0.1"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.
|
|
39
|
-
"@superdoc-dev/cli-linux-x64": "0.8.0-next.
|
|
40
|
-
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.8.0-next.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.117",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.117",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.117",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.117",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.117"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|