@superdoc-dev/cli 0.4.0-next.1 → 0.4.0-next.3
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 +16 -9
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -154303,7 +154303,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
154303
154303
|
init_remark_gfm_z_sDF4ss_es();
|
|
154304
154304
|
});
|
|
154305
154305
|
|
|
154306
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
154306
|
+
// ../../packages/superdoc/dist/chunks/src-D3H7T1qq.es.js
|
|
154307
154307
|
function deleteProps(obj, propOrProps) {
|
|
154308
154308
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
154309
154309
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -197681,7 +197681,8 @@ function findAllBibliographies(doc$12) {
|
|
|
197681
197681
|
let occurrenceIndex = 0;
|
|
197682
197682
|
doc$12.descendants((node3, pos) => {
|
|
197683
197683
|
if (node3.type.name === "bibliography") {
|
|
197684
|
-
const
|
|
197684
|
+
const rawBlockId = node3.attrs?.sdBlockId;
|
|
197685
|
+
const commandNodeId = rawBlockId != null ? String(rawBlockId) : undefined;
|
|
197685
197686
|
const nodeId = resolvePublicReferenceBlockNodeId(node3, occurrenceIndex);
|
|
197686
197687
|
occurrenceIndex += 1;
|
|
197687
197688
|
results.push({
|
|
@@ -197754,9 +197755,9 @@ function resolveSourceTarget(editor, target) {
|
|
|
197754
197755
|
function resolveParentBlockId$1(doc$12, pos) {
|
|
197755
197756
|
const resolved = doc$12.resolve(pos);
|
|
197756
197757
|
for (let depth = resolved.depth;depth >= 0; depth--) {
|
|
197757
|
-
const
|
|
197758
|
-
if (
|
|
197759
|
-
return
|
|
197758
|
+
const rawBlockId = resolved.node(depth).attrs?.sdBlockId;
|
|
197759
|
+
if (rawBlockId != null)
|
|
197760
|
+
return String(rawBlockId);
|
|
197760
197761
|
}
|
|
197761
197762
|
return "";
|
|
197762
197763
|
}
|
|
@@ -198104,10 +198105,11 @@ function bibliographyInsertWrapper(editor, input2, options) {
|
|
|
198104
198105
|
function bibliographyConfigureWrapper(editor, input2, options) {
|
|
198105
198106
|
rejectTrackedMode("citations.bibliography.configure", options);
|
|
198106
198107
|
const resolved = resolveBibliographyTarget(editor.state.doc, input2.target);
|
|
198108
|
+
const stableNodeId = resolved.commandNodeId ?? resolved.nodeId;
|
|
198107
198109
|
const address2 = {
|
|
198108
198110
|
kind: "block",
|
|
198109
198111
|
nodeType: "bibliography",
|
|
198110
|
-
nodeId:
|
|
198112
|
+
nodeId: stableNodeId
|
|
198111
198113
|
};
|
|
198112
198114
|
if (options?.dryRun)
|
|
198113
198115
|
return bibSuccess(address2);
|
|
@@ -198125,7 +198127,12 @@ function bibliographyConfigureWrapper(editor, input2, options) {
|
|
|
198125
198127
|
}, { expectedRevision: options?.expectedRevision })))
|
|
198126
198128
|
return bibFailure("NO_OP", "Configure produced no change.");
|
|
198127
198129
|
syncBibliographyStyleToConverter(editor, input2.style);
|
|
198128
|
-
|
|
198130
|
+
const bibliographies = findAllBibliographies(editor.state.doc);
|
|
198131
|
+
return bibSuccess({
|
|
198132
|
+
kind: "block",
|
|
198133
|
+
nodeType: "bibliography",
|
|
198134
|
+
nodeId: (bibliographies.find((bibliography) => bibliography.pos === resolved.pos) ?? bibliographies.find((bibliography) => bibliography.commandNodeId === stableNodeId))?.nodeId ?? resolvePostMutationBibliographyId(editor.state.doc, stableNodeId)
|
|
198135
|
+
});
|
|
198129
198136
|
}
|
|
198130
198137
|
function bibliographyRebuildWrapper(editor, input2, options) {
|
|
198131
198138
|
rejectTrackedMode("citations.bibliography.rebuild", options);
|
|
@@ -233865,7 +233872,7 @@ var Node$13 = class Node$14 {
|
|
|
233865
233872
|
return;
|
|
233866
233873
|
console.log(...args$1);
|
|
233867
233874
|
}, 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;
|
|
233868
|
-
var
|
|
233875
|
+
var init_src_D3H7T1qq_es = __esm(() => {
|
|
233869
233876
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
233870
233877
|
init_SuperConverter_V_8WDjnK_es();
|
|
233871
233878
|
init_jszip_ChlR43oI_es();
|
|
@@ -267187,7 +267194,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
267187
267194
|
|
|
267188
267195
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
267189
267196
|
var init_super_editor_es = __esm(() => {
|
|
267190
|
-
|
|
267197
|
+
init_src_D3H7T1qq_es();
|
|
267191
267198
|
init_SuperConverter_V_8WDjnK_es();
|
|
267192
267199
|
init_jszip_ChlR43oI_es();
|
|
267193
267200
|
init_xml_js_DLE8mr0n_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"@types/node": "22.19.2",
|
|
22
22
|
"typescript": "^5.9.2",
|
|
23
23
|
"@superdoc/document-api": "0.0.1",
|
|
24
|
-
"superdoc": "
|
|
24
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
25
25
|
"@superdoc/super-editor": "0.0.1",
|
|
26
|
-
"
|
|
26
|
+
"superdoc": "1.21.0"
|
|
27
27
|
},
|
|
28
28
|
"module": "src/index.ts",
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@superdoc-dev/cli-darwin-arm64": "0.4.0-next.
|
|
34
|
-
"@superdoc-dev/cli-darwin-x64": "0.4.0-next.
|
|
35
|
-
"@superdoc-dev/cli-linux-x64": "0.4.0-next.
|
|
36
|
-
"@superdoc-dev/cli-linux-arm64": "0.4.0-next.
|
|
37
|
-
"@superdoc-dev/cli-windows-x64": "0.4.0-next.
|
|
33
|
+
"@superdoc-dev/cli-darwin-arm64": "0.4.0-next.3",
|
|
34
|
+
"@superdoc-dev/cli-darwin-x64": "0.4.0-next.3",
|
|
35
|
+
"@superdoc-dev/cli-linux-x64": "0.4.0-next.3",
|
|
36
|
+
"@superdoc-dev/cli-linux-arm64": "0.4.0-next.3",
|
|
37
|
+
"@superdoc-dev/cli-windows-x64": "0.4.0-next.3"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"predev": "node scripts/ensure-superdoc-build.js",
|