@superdoc-dev/cli 0.8.0-next.115 → 0.8.0-next.116
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 +39 -6
- 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-K3nVkG8Q.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 {
|
|
@@ -290256,13 +290260,38 @@ var Node$13 = class Node$14 {
|
|
|
290256
290260
|
display: none;
|
|
290257
290261
|
}
|
|
290258
290262
|
|
|
290263
|
+
/* Hidden appearance per ECMA-376 (w15:appearance val="hidden"). SDT
|
|
290264
|
+
* exists in the document for anchoring but is visually transparent: no
|
|
290265
|
+
* padding, no border, no hover background, no selected outline. The
|
|
290266
|
+
* alias label is not emitted into the DOM at all (see renderer.ts), so
|
|
290267
|
+
* there is nothing to hide from copy-paste or screen readers. */
|
|
290268
|
+
.superdoc-structured-content-inline[data-appearance='hidden'] {
|
|
290269
|
+
padding: 0;
|
|
290270
|
+
border: none;
|
|
290271
|
+
border-radius: 0;
|
|
290272
|
+
}
|
|
290273
|
+
.superdoc-structured-content-inline[data-appearance='hidden']:hover {
|
|
290274
|
+
background-color: transparent;
|
|
290275
|
+
border: none;
|
|
290276
|
+
}
|
|
290277
|
+
.superdoc-structured-content-inline[data-appearance='hidden'].ProseMirror-selectednode {
|
|
290278
|
+
border-color: transparent;
|
|
290279
|
+
background-color: transparent;
|
|
290280
|
+
}
|
|
290281
|
+
|
|
290259
290282
|
/* Hover highlight for SDT containers.
|
|
290260
290283
|
* Hover adds background highlight and z-index boost.
|
|
290261
290284
|
* Block SDTs use .sdt-group-hover class (event delegation for multi-fragment coordination).
|
|
290262
290285
|
* Inline SDTs use :hover (single element, no coordination needed).
|
|
290263
|
-
* Hover is suppressed when the node is selected (SD-1584).
|
|
290286
|
+
* Hover is suppressed when the node is selected (SD-1584).
|
|
290287
|
+
*
|
|
290288
|
+
* Inline SDTs with appearance=hidden are excluded via the same :not()
|
|
290289
|
+
* that handles selection. Both predicates live in one :not(a, b) so the
|
|
290290
|
+
* selector keeps (0,4,0) specificity. A second chained :not() would push
|
|
290291
|
+
* it to (0,5,0) and beat the viewing-mode suppression rule below, which
|
|
290292
|
+
* also sits at (0,4,0). */
|
|
290264
290293
|
.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) {
|
|
290294
|
+
.superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode, [data-appearance='hidden']) {
|
|
290266
290295
|
background-color: var(--sd-content-controls-lock-hover-bg, rgba(98, 155, 231, 0.08));
|
|
290267
290296
|
z-index: 9999999;
|
|
290268
290297
|
}
|
|
@@ -304052,7 +304081,7 @@ menclose::after {
|
|
|
304052
304081
|
return;
|
|
304053
304082
|
console.log(...args$1);
|
|
304054
304083
|
}, 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
|
|
304084
|
+
var init_src_K3nVkG8Q_es = __esm(() => {
|
|
304056
304085
|
init_rolldown_runtime_Bg48TavK_es();
|
|
304057
304086
|
init_SuperConverter_ByqzBuoW_es();
|
|
304058
304087
|
init_jszip_C49i9kUs_es();
|
|
@@ -334690,6 +334719,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334690
334719
|
wrapper.className = DOM_CLASS_NAMES.INLINE_SDT_WRAPPER;
|
|
334691
334720
|
wrapper.dataset.layoutEpoch = String(this.layoutEpoch);
|
|
334692
334721
|
this.applySdtDataset(wrapper, sdt);
|
|
334722
|
+
if ((sdt.type === "structuredContent" ? sdt.appearance : undefined) === "hidden") {
|
|
334723
|
+
wrapper.dataset.appearance = "hidden";
|
|
334724
|
+
return wrapper;
|
|
334725
|
+
}
|
|
334693
334726
|
const alias = sdt?.alias || "Inline content";
|
|
334694
334727
|
const labelEl = this.doc.createElement("span");
|
|
334695
334728
|
labelEl.className = `${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}__label`;
|
|
@@ -342169,7 +342202,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
342169
342202
|
|
|
342170
342203
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342171
342204
|
var init_super_editor_es = __esm(() => {
|
|
342172
|
-
|
|
342205
|
+
init_src_K3nVkG8Q_es();
|
|
342173
342206
|
init_SuperConverter_ByqzBuoW_es();
|
|
342174
342207
|
init_jszip_C49i9kUs_es();
|
|
342175
342208
|
init_xml_js_CqGKpaft_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.116",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"@superdoc/document-api": "0.0.1",
|
|
28
28
|
"@superdoc/pm-adapter": "0.0.0",
|
|
29
|
-
"superdoc": "
|
|
30
|
-
"
|
|
29
|
+
"@superdoc/super-editor": "0.0.1",
|
|
30
|
+
"superdoc": "1.32.0"
|
|
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.116",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.116",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.116",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.116",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.116"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|