@superdoc-dev/cli 0.3.0-next.8 → 0.3.0-next.9

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -7
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -33776,7 +33776,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
33776
33776
  emptyOptions2 = {};
33777
33777
  });
33778
33778
 
33779
- // ../../packages/superdoc/dist/chunks/SuperConverter-C2Sw7Q5Z.es.js
33779
+ // ../../packages/superdoc/dist/chunks/SuperConverter-CuiyvNak.es.js
33780
33780
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
33781
33781
  const fieldValue = extension$1.config[field];
33782
33782
  if (typeof fieldValue === "function")
@@ -69533,6 +69533,8 @@ var isRegExp = (value) => {
69533
69533
  const firstMatch = elementsWithId[0];
69534
69534
  if (!firstMatch)
69535
69535
  return result;
69536
+ if (!firstMatch.elements)
69537
+ return result;
69536
69538
  const qFormat = elementsWithId.find((el) => {
69537
69539
  return el.elements.find((innerEl) => innerEl.name === "w:qFormat");
69538
69540
  });
@@ -70668,7 +70670,7 @@ var isRegExp = (value) => {
70668
70670
  state.kern = kernNode.attributes["w:val"];
70669
70671
  }
70670
70672
  }, SuperConverter;
70671
- var init_SuperConverter_C2Sw7Q5Z_es = __esm(() => {
70673
+ var init_SuperConverter_CuiyvNak_es = __esm(() => {
70672
70674
  init_rolldown_runtime_B2q5OVn9_es();
70673
70675
  init_jszip_ChlR43oI_es();
70674
70676
  init_xml_js_BtmJ6bNs_es();
@@ -131315,7 +131317,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
131315
131317
  init_remark_gfm_z_sDF4ss_es();
131316
131318
  });
131317
131319
 
131318
- // ../../packages/superdoc/dist/chunks/src-CN3DqjnS.es.js
131320
+ // ../../packages/superdoc/dist/chunks/src-YzdsFylW.es.js
131319
131321
  function deleteProps(obj, propOrProps) {
131320
131322
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
131321
131323
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -217838,9 +217840,9 @@ var Node$13 = class Node$14 {
217838
217840
  return false;
217839
217841
  return Boolean(checker(attrs));
217840
217842
  }, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
217841
- var init_src_CN3DqjnS_es = __esm(() => {
217843
+ var init_src_YzdsFylW_es = __esm(() => {
217842
217844
  init_rolldown_runtime_B2q5OVn9_es();
217843
- init_SuperConverter_C2Sw7Q5Z_es();
217845
+ init_SuperConverter_CuiyvNak_es();
217844
217846
  init_jszip_ChlR43oI_es();
217845
217847
  init_uuid_qzgm05fK_es();
217846
217848
  init_constants_ep1_Gwqi_es();
@@ -252008,8 +252010,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
252008
252010
 
252009
252011
  // ../../packages/superdoc/dist/super-editor.es.js
252010
252012
  var init_super_editor_es = __esm(() => {
252011
- init_src_CN3DqjnS_es();
252012
- init_SuperConverter_C2Sw7Q5Z_es();
252013
+ init_src_YzdsFylW_es();
252014
+ init_SuperConverter_CuiyvNak_es();
252013
252015
  init_jszip_ChlR43oI_es();
252014
252016
  init_xml_js_BtmJ6bNs_es();
252015
252017
  init_constants_ep1_Gwqi_es();
@@ -306874,6 +306876,8 @@ var getDefaultStyleDefinition2 = (defaultStyleId, docx) => {
306874
306876
  const firstMatch = elementsWithId[0];
306875
306877
  if (!firstMatch)
306876
306878
  return result;
306879
+ if (!firstMatch.elements)
306880
+ return result;
306877
306881
  const qFormat = elementsWithId.find((el) => {
306878
306882
  const qFormat2 = el.elements.find((innerEl) => innerEl.name === "w:qFormat");
306879
306883
  return qFormat2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.3.0-next.8",
3
+ "version": "0.3.0-next.9",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -20,8 +20,8 @@
20
20
  "@types/bun": "^1.3.8",
21
21
  "@types/node": "22.19.2",
22
22
  "typescript": "^5.9.2",
23
- "@superdoc/pm-adapter": "0.0.0",
24
23
  "@superdoc/document-api": "0.0.1",
24
+ "@superdoc/pm-adapter": "0.0.0",
25
25
  "@superdoc/super-editor": "0.0.1",
26
26
  "superdoc": "1.19.0"
27
27
  },
@@ -30,11 +30,11 @@
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.8",
34
- "@superdoc-dev/cli-darwin-x64": "0.3.0-next.8",
35
- "@superdoc-dev/cli-linux-x64": "0.3.0-next.8",
36
- "@superdoc-dev/cli-windows-x64": "0.3.0-next.8",
37
- "@superdoc-dev/cli-linux-arm64": "0.3.0-next.8"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.9",
34
+ "@superdoc-dev/cli-darwin-x64": "0.3.0-next.9",
35
+ "@superdoc-dev/cli-linux-x64": "0.3.0-next.9",
36
+ "@superdoc-dev/cli-linux-arm64": "0.3.0-next.9",
37
+ "@superdoc-dev/cli-windows-x64": "0.3.0-next.9"
38
38
  },
39
39
  "scripts": {
40
40
  "dev": "bun run src/index.ts",