@harbour-enterprises/superdoc 0.21.0-next.2 → 0.21.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.
Files changed (29) hide show
  1. package/dist/chunks/{PdfViewer-BkXBRXPs.es.js → PdfViewer-D3zo7tPo.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-1mNuyy3m.cjs → PdfViewer-OZDJ7gwT.cjs} +1 -1
  3. package/dist/chunks/{index-BB3Qn69u.cjs → index-CfYf4T_z.cjs} +2 -2
  4. package/dist/chunks/{index-C-44kxYe.es.js → index-MzW5BVNd.es.js} +2 -2
  5. package/dist/core/SuperDoc.d.ts +21 -569
  6. package/dist/core/SuperDoc.d.ts.map +1 -1
  7. package/dist/core/types/index.d.ts +396 -0
  8. package/dist/core/types/index.d.ts.map +1 -0
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{docx-zipper-BWZ2o1H5.js → docx-zipper-CZdELYi-.js} +1 -1
  11. package/dist/super-editor/chunks/{editor-XsrBXzy-.js → editor-BqYH4kDD.js} +2 -2
  12. package/dist/super-editor/chunks/{toolbar-tBWlOBPh.js → toolbar-TkaE2kKM.js} +2 -2
  13. package/dist/super-editor/converter.es.js +1 -1
  14. package/dist/super-editor/docx-zipper.es.js +2 -2
  15. package/dist/super-editor/editor.es.js +3 -3
  16. package/dist/super-editor/file-zipper.es.js +1 -1
  17. package/dist/super-editor/super-editor.es.js +6 -6
  18. package/dist/super-editor/toolbar.es.js +2 -2
  19. package/dist/super-editor.cjs +1 -1
  20. package/dist/super-editor.es.js +1 -1
  21. package/dist/superdoc.cjs +2 -2
  22. package/dist/superdoc.es.js +2 -2
  23. package/dist/superdoc.umd.js +12 -12
  24. package/dist/superdoc.umd.js.map +1 -1
  25. package/npm-deprecation-notice.cjs +1 -9
  26. package/package.json +1 -1
  27. package/dist/chunks/{super-editor.es-CKw7iZcz.es.js → super-editor.es-Bntob7Wd.es.js} +12 -12
  28. package/dist/chunks/{super-editor.es-Dd0joLAR.cjs → super-editor.es-U-GVCd_F.cjs} +12 -12
  29. package/dist/super-editor/chunks/{converter-FESR2WO7.js → converter-3xnF_NHq.js} +12 -12
@@ -1,10 +1,2 @@
1
1
  #!/usr/bin/env node
2
- console.warn('
3
- ////////////////////////////////////////////////////////////////////////////////
4
- The package "@harbour-enterprises/superdoc" is now mirrored from "superdoc".
5
- Please update your dependencies to use the unscoped package name:
6
- npm uninstall @harbour-enterprises/superdoc
7
- npm install superdoc
8
- This scoped package will eventually stop receiving new features.
9
- ////////////////////////////////////////////////////////////////////////////////
10
- ');
2
+ console.warn("\n////////////////////////////////////////////////////////////////////////////////\nThe package \"@harbour-enterprises/superdoc\" is now mirrored from \"superdoc\".\nPlease update your dependencies to use the unscoped package name:\n npm uninstall @harbour-enterprises/superdoc\n npm install superdoc\nThis scoped package will eventually stop receiving new features.\n////////////////////////////////////////////////////////////////////////////////\n");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harbour-enterprises/superdoc",
3
3
  "type": "module",
4
- "version": "0.21.0-next.2",
4
+ "version": "0.21.0-next.3",
5
5
  "license": "AGPL-3.0",
6
6
  "readme": "README.md",
7
7
  "files": [
@@ -24196,18 +24196,6 @@ const baseNumbering = {
24196
24196
  }
24197
24197
  ]
24198
24198
  };
24199
- const sanitizeDocxMediaName = (value, fallback = "image") => {
24200
- if (!value) return fallback;
24201
- const sanitized = value.replace(/[^a-zA-Z0-9_-]/g, "_");
24202
- return sanitized || fallback;
24203
- };
24204
- const getFallbackImageNameFromDataUri = (src = "", fallback = "image") => {
24205
- if (!src || typeof src !== "string") return fallback;
24206
- const [prefix2] = src.split(";");
24207
- const [, maybeType] = prefix2.split("/");
24208
- const extension = maybeType?.toLowerCase();
24209
- return extension ? `${fallback}.${extension}` : fallback;
24210
- };
24211
24199
  const TranslatorTypes = Object.freeze({
24212
24200
  NODE: "node",
24213
24201
  ATTRIBUTE: "attribute"
@@ -28329,6 +28317,18 @@ function handleAnchorNode(params2) {
28329
28317
  }
28330
28318
  return handleImageNode(node, params2, true);
28331
28319
  }
28320
+ const sanitizeDocxMediaName = (value, fallback = "image") => {
28321
+ if (!value) return fallback;
28322
+ const sanitized = value.replace(/[^a-zA-Z0-9_-]/g, "_");
28323
+ return sanitized || fallback;
28324
+ };
28325
+ const getFallbackImageNameFromDataUri = (src = "", fallback = "image") => {
28326
+ if (!src || typeof src !== "string") return fallback;
28327
+ const [prefix2] = src.split(";");
28328
+ const [, maybeType] = prefix2.split("/");
28329
+ const extension = maybeType?.toLowerCase();
28330
+ return extension ? `${fallback}.${extension}` : fallback;
28331
+ };
28332
28332
  const translateImageNode = (params2) => {
28333
28333
  const {
28334
28334
  node: { attrs = {} },
@@ -24213,18 +24213,6 @@ const baseNumbering = {
24213
24213
  }
24214
24214
  ]
24215
24215
  };
24216
- const sanitizeDocxMediaName = (value, fallback = "image") => {
24217
- if (!value) return fallback;
24218
- const sanitized = value.replace(/[^a-zA-Z0-9_-]/g, "_");
24219
- return sanitized || fallback;
24220
- };
24221
- const getFallbackImageNameFromDataUri = (src = "", fallback = "image") => {
24222
- if (!src || typeof src !== "string") return fallback;
24223
- const [prefix2] = src.split(";");
24224
- const [, maybeType] = prefix2.split("/");
24225
- const extension = maybeType?.toLowerCase();
24226
- return extension ? `${fallback}.${extension}` : fallback;
24227
- };
24228
24216
  const TranslatorTypes = Object.freeze({
24229
24217
  NODE: "node",
24230
24218
  ATTRIBUTE: "attribute"
@@ -28346,6 +28334,18 @@ function handleAnchorNode(params2) {
28346
28334
  }
28347
28335
  return handleImageNode(node, params2, true);
28348
28336
  }
28337
+ const sanitizeDocxMediaName = (value, fallback = "image") => {
28338
+ if (!value) return fallback;
28339
+ const sanitized = value.replace(/[^a-zA-Z0-9_-]/g, "_");
28340
+ return sanitized || fallback;
28341
+ };
28342
+ const getFallbackImageNameFromDataUri = (src = "", fallback = "image") => {
28343
+ if (!src || typeof src !== "string") return fallback;
28344
+ const [prefix2] = src.split(";");
28345
+ const [, maybeType] = prefix2.split("/");
28346
+ const extension = maybeType?.toLowerCase();
28347
+ return extension ? `${fallback}.${extension}` : fallback;
28348
+ };
28349
28349
  const translateImageNode = (params2) => {
28350
28350
  const {
28351
28351
  node: { attrs = {} },
@@ -24194,18 +24194,6 @@ const baseNumbering = {
24194
24194
  }
24195
24195
  ]
24196
24196
  };
24197
- const sanitizeDocxMediaName = (value, fallback = "image") => {
24198
- if (!value) return fallback;
24199
- const sanitized = value.replace(/[^a-zA-Z0-9_-]/g, "_");
24200
- return sanitized || fallback;
24201
- };
24202
- const getFallbackImageNameFromDataUri = (src = "", fallback = "image") => {
24203
- if (!src || typeof src !== "string") return fallback;
24204
- const [prefix] = src.split(";");
24205
- const [, maybeType] = prefix.split("/");
24206
- const extension = maybeType?.toLowerCase();
24207
- return extension ? `${fallback}.${extension}` : fallback;
24208
- };
24209
24197
  const TranslatorTypes = Object.freeze({
24210
24198
  NODE: "node",
24211
24199
  ATTRIBUTE: "attribute"
@@ -28336,6 +28324,18 @@ function handleAnchorNode(params) {
28336
28324
  }
28337
28325
  return handleImageNode(node, params, true);
28338
28326
  }
28327
+ const sanitizeDocxMediaName = (value, fallback = "image") => {
28328
+ if (!value) return fallback;
28329
+ const sanitized = value.replace(/[^a-zA-Z0-9_-]/g, "_");
28330
+ return sanitized || fallback;
28331
+ };
28332
+ const getFallbackImageNameFromDataUri = (src = "", fallback = "image") => {
28333
+ if (!src || typeof src !== "string") return fallback;
28334
+ const [prefix] = src.split(";");
28335
+ const [, maybeType] = prefix.split("/");
28336
+ const extension = maybeType?.toLowerCase();
28337
+ return extension ? `${fallback}.${extension}` : fallback;
28338
+ };
28339
28339
  const translateImageNode = (params) => {
28340
28340
  const {
28341
28341
  node: { attrs = {} },