@superdoc-dev/cli 0.7.0-next.32 → 0.7.0-next.33
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 +25 -18
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -65501,7 +65501,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
65501
65501
|
emptyOptions2 = {};
|
|
65502
65502
|
});
|
|
65503
65503
|
|
|
65504
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
65504
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-D8HLuwGQ.es.js
|
|
65505
65505
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
65506
65506
|
const fieldValue = extension$1.config[field];
|
|
65507
65507
|
if (typeof fieldValue === "function")
|
|
@@ -117269,7 +117269,7 @@ var isRegExp = (value) => {
|
|
|
117269
117269
|
state.kern = kernNode.attributes["w:val"];
|
|
117270
117270
|
}
|
|
117271
117271
|
}, SuperConverter;
|
|
117272
|
-
var
|
|
117272
|
+
var init_SuperConverter_D8HLuwGQ_es = __esm(() => {
|
|
117273
117273
|
init_rolldown_runtime_Bg48TavK_es();
|
|
117274
117274
|
init_jszip_C49i9kUs_es();
|
|
117275
117275
|
init_xml_js_CqGKpaft_es();
|
|
@@ -154550,7 +154550,7 @@ var init_SuperConverter_BeDVoX0d_es = __esm(() => {
|
|
|
154550
154550
|
};
|
|
154551
154551
|
});
|
|
154552
154552
|
|
|
154553
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
154553
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-CbE9_87q.es.js
|
|
154554
154554
|
function parseSizeUnit(val = "0") {
|
|
154555
154555
|
const length3 = val.toString() || "0";
|
|
154556
154556
|
const value = Number.parseFloat(length3);
|
|
@@ -157142,8 +157142,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
157142
157142
|
}
|
|
157143
157143
|
};
|
|
157144
157144
|
};
|
|
157145
|
-
var
|
|
157146
|
-
|
|
157145
|
+
var init_create_headless_toolbar_CbE9_87q_es = __esm(() => {
|
|
157146
|
+
init_SuperConverter_D8HLuwGQ_es();
|
|
157147
157147
|
init_constants_CGhJRd87_es();
|
|
157148
157148
|
init_dist_B8HfvhaK_es();
|
|
157149
157149
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -205830,7 +205830,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
205830
205830
|
init_remark_gfm_BhnWr3yf_es();
|
|
205831
205831
|
});
|
|
205832
205832
|
|
|
205833
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
205833
|
+
// ../../packages/superdoc/dist/chunks/src-Bn2I5jpR.es.js
|
|
205834
205834
|
function deleteProps(obj, propOrProps) {
|
|
205835
205835
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
205836
205836
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -251029,11 +251029,11 @@ function layoutDocument(blocks2, measures, options = {}) {
|
|
|
251029
251029
|
const footerContentHeights = options.footerContentHeights;
|
|
251030
251030
|
const headerContentHeightsByRId = options.headerContentHeightsByRId;
|
|
251031
251031
|
const footerContentHeightsByRId = options.footerContentHeightsByRId;
|
|
251032
|
-
const getVariantTypeForPage = (
|
|
251033
|
-
if (sectionPageNumber === 1 && titlePgEnabled)
|
|
251032
|
+
const getVariantTypeForPage = (args$1) => {
|
|
251033
|
+
if (args$1.sectionPageNumber === 1 && args$1.titlePgEnabled)
|
|
251034
251034
|
return "first";
|
|
251035
|
-
if (alternateHeaders)
|
|
251036
|
-
return
|
|
251035
|
+
if (args$1.alternateHeaders)
|
|
251036
|
+
return args$1.documentPageNumber % 2 === 0 ? "even" : "odd";
|
|
251037
251037
|
return "default";
|
|
251038
251038
|
};
|
|
251039
251039
|
const getHeaderHeightForPage = (variantType, headerRef) => {
|
|
@@ -251467,7 +251467,12 @@ function layoutDocument(blocks2, measures, options = {}) {
|
|
|
251467
251467
|
const newPageNumber = pageCount;
|
|
251468
251468
|
if (isEnteringNewSection || !sectionFirstPageNumbers.has(activeSectionIndex))
|
|
251469
251469
|
sectionFirstPageNumbers.set(activeSectionIndex, newPageNumber);
|
|
251470
|
-
const variantType = getVariantTypeForPage(
|
|
251470
|
+
const variantType = getVariantTypeForPage({
|
|
251471
|
+
sectionPageNumber: newPageNumber - (sectionFirstPageNumbers.get(activeSectionIndex) ?? newPageNumber) + 1,
|
|
251472
|
+
documentPageNumber: newPageNumber,
|
|
251473
|
+
titlePgEnabled: sectionMetadataList[activeSectionIndex]?.titlePg ?? false,
|
|
251474
|
+
alternateHeaders: options.alternateHeaders ?? false
|
|
251475
|
+
});
|
|
251471
251476
|
let headerRef = activeSectionRefs?.headerRefs?.[variantType];
|
|
251472
251477
|
let footerRef = activeSectionRefs?.footerRefs?.[variantType];
|
|
251473
251478
|
let effectiveVariantType = variantType;
|
|
@@ -290298,12 +290303,12 @@ menclose::after {
|
|
|
290298
290303
|
return;
|
|
290299
290304
|
console.log(...args$1);
|
|
290300
290305
|
}, 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;
|
|
290301
|
-
var
|
|
290306
|
+
var init_src_Bn2I5jpR_es = __esm(() => {
|
|
290302
290307
|
init_rolldown_runtime_Bg48TavK_es();
|
|
290303
|
-
|
|
290308
|
+
init_SuperConverter_D8HLuwGQ_es();
|
|
290304
290309
|
init_jszip_C49i9kUs_es();
|
|
290305
290310
|
init_uuid_qzgm05fK_es();
|
|
290306
|
-
|
|
290311
|
+
init_create_headless_toolbar_CbE9_87q_es();
|
|
290307
290312
|
init_constants_CGhJRd87_es();
|
|
290308
290313
|
init_dist_B8HfvhaK_es();
|
|
290309
290314
|
init_unified_Dsuw2be5_es();
|
|
@@ -324092,12 +324097,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324092
324097
|
};
|
|
324093
324098
|
}
|
|
324094
324099
|
this.#hiddenHost.style.width = `${pageSize.w}px`;
|
|
324100
|
+
const alternateHeaders = Boolean(this.#editor?.converter?.pageStyles?.alternateHeaders);
|
|
324095
324101
|
return {
|
|
324096
324102
|
flowMode: "paginated",
|
|
324097
324103
|
pageSize,
|
|
324098
324104
|
margins: resolvedMargins,
|
|
324099
324105
|
...columns ? { columns } : {},
|
|
324100
|
-
sectionMetadata
|
|
324106
|
+
sectionMetadata,
|
|
324107
|
+
alternateHeaders
|
|
324101
324108
|
};
|
|
324102
324109
|
}
|
|
324103
324110
|
#buildHeaderFooterInput() {
|
|
@@ -325151,11 +325158,11 @@ var init_zipper_DbkgrypV_es = __esm(() => {
|
|
|
325151
325158
|
|
|
325152
325159
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
325153
325160
|
var init_super_editor_es = __esm(() => {
|
|
325154
|
-
|
|
325155
|
-
|
|
325161
|
+
init_src_Bn2I5jpR_es();
|
|
325162
|
+
init_SuperConverter_D8HLuwGQ_es();
|
|
325156
325163
|
init_jszip_C49i9kUs_es();
|
|
325157
325164
|
init_xml_js_CqGKpaft_es();
|
|
325158
|
-
|
|
325165
|
+
init_create_headless_toolbar_CbE9_87q_es();
|
|
325159
325166
|
init_constants_CGhJRd87_es();
|
|
325160
325167
|
init_dist_B8HfvhaK_es();
|
|
325161
325168
|
init_unified_Dsuw2be5_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.7.0-next.
|
|
3
|
+
"version": "0.7.0-next.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.7.0-next.
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.7.0-next.33",
|
|
38
|
+
"@superdoc-dev/cli-linux-x64": "0.7.0-next.33",
|
|
39
|
+
"@superdoc-dev/cli-darwin-x64": "0.7.0-next.33",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.7.0-next.33",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.7.0-next.33"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|