superdoc 2.29.0 → 2.30.0-next.19

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 (138) hide show
  1. package/README.md +127 -25
  2. package/dist/chunks/{FindReplaceSurface-B_5ggdWg.es.js → FindReplaceSurface-BEnRLpD9.es.js} +1 -1
  3. package/dist/chunks/{FindReplaceSurface-fVHxPXtn.cjs → FindReplaceSurface-DWXgWgg7.cjs} +1 -1
  4. package/dist/chunks/{PasswordPromptSurface-CZqhDQQ1.es.js → PasswordPromptSurface-DjV1JgjD.es.js} +1 -1
  5. package/dist/chunks/{PasswordPromptSurface-x8GNmMJT.cjs → PasswordPromptSurface-VFPnQOML.cjs} +1 -1
  6. package/dist/chunks/{PdfViewer-CW09MNrB.es.js → PdfViewer-C2r-K8zC.es.js} +1 -1
  7. package/dist/chunks/{PdfViewer-CkrAHpC-.cjs → PdfViewer-DYTbPVUr.cjs} +1 -1
  8. package/dist/chunks/{_plugin-vue_export-helper-BkbCxNeT.cjs → _plugin-vue_export-helper-BzM2_tVU.cjs} +9 -0
  9. package/dist/chunks/{_plugin-vue_export-helper-DRPRMkeA.es.js → _plugin-vue_export-helper-CmkaJDnr.es.js} +4 -1
  10. package/dist/chunks/{create-super-doc-ui-L60GhVAX.cjs → create-super-doc-ui-D7uBUZfs.cjs} +14347 -13625
  11. package/dist/chunks/{create-super-doc-ui-Dc8dQAMc.es.js → create-super-doc-ui-_t6kMzLs.es.js} +14076 -13360
  12. package/dist/collaboration-upgrade-engine.cjs +1 -1
  13. package/dist/collaboration-upgrade-engine.es.js +1 -1
  14. package/dist/document-api/src/changes/changes.d.ts +26 -0
  15. package/dist/document-api/src/changes/changes.types.d.ts +156 -0
  16. package/dist/document-api/src/comments/comment-create-attribution.d.ts +4 -0
  17. package/dist/document-api/src/comments/comments.types.d.ts +4 -0
  18. package/dist/document-api/src/content-controls/content-controls.types.d.ts +1 -0
  19. package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
  20. package/dist/document-api/src/contract/operation-definitions.d.ts +76 -8
  21. package/dist/document-api/src/contract/operation-registry.d.ts +2 -2
  22. package/dist/document-api/src/contract/schemas.d.ts +7 -1
  23. package/dist/document-api/src/create/create.d.ts +0 -4
  24. package/dist/document-api/src/diff/diff.types.d.ts +6 -6
  25. package/dist/document-api/src/header-footers/header-footers.d.ts +1 -3
  26. package/dist/document-api/src/index.d.ts +13 -1
  27. package/dist/document-api/src/inline-semantics/token-sets.d.ts +0 -2
  28. package/dist/document-api/src/insert/insert.d.ts +0 -1
  29. package/dist/document-api/src/paragraphs/paragraphs.d.ts +8 -3
  30. package/dist/document-api/src/paragraphs/paragraphs.types.d.ts +49 -5
  31. package/dist/document-api/src/tables/data/table-preset-appearance.generated.d.ts +2 -0
  32. package/dist/document-api/src/tables/table-style-presets.d.ts +73 -0
  33. package/dist/document-api/src/tables/tables.d.ts +4 -1
  34. package/dist/document-api/src/types/sd-props.d.ts +7 -0
  35. package/dist/document-api/src/types/table-operations.types.d.ts +12 -15
  36. package/dist/layout-engine/contracts/src/index.d.ts +4 -1
  37. package/dist/layout-engine/contracts/src/table-cell-vector-overlay.d.ts +2 -0
  38. package/dist/layout-engine/dom-contract/src/data-attrs.d.ts +4 -0
  39. package/dist/layout-engine/layout-bridge/src/coupled-footnote-pagination.d.ts +1 -0
  40. package/dist/layout-engine/layout-bridge/src/footnote-page-certificate.d.ts +1 -0
  41. package/dist/layout-engine/layout-bridge/src/footnote-page-planner.d.ts +5 -0
  42. package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +1 -0
  43. package/dist/layout-engine/layout-engine/src/footnote-page-flow.d.ts +3 -0
  44. package/dist/layout-engine/layout-engine/src/index.d.ts +7 -0
  45. package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +5 -0
  46. package/dist/layout-engine/layout-engine/src/layout-table.d.ts +3 -1
  47. package/dist/layout-engine/layout-engine/src/layout-utils.d.ts +0 -4
  48. package/dist/layout-engine/layout-engine/src/paginator.d.ts +4 -0
  49. package/dist/layout-engine/painters/dom/src/index.d.ts +2 -0
  50. package/dist/layout-engine/painters/dom/src/paragraph/list-marker.d.ts +1 -1
  51. package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphContent.d.ts +1 -1
  52. package/dist/layout-engine/painters/dom/src/styles.d.ts +0 -10
  53. package/dist/layout-engine/painters/dom/src/svg-utils.d.ts +1 -13
  54. package/dist/public/ui-react.cjs +1 -1
  55. package/dist/public/ui-react.es.js +1 -1
  56. package/dist/public/ui-vue.cjs +1 -1
  57. package/dist/public/ui-vue.es.js +1 -1
  58. package/dist/public/ui.cjs +1 -1
  59. package/dist/public/ui.es.js +1 -1
  60. package/dist/shared/common/Telemetry.d.ts +50 -0
  61. package/dist/shared/common/event-types.d.ts +13 -0
  62. package/dist/shared/font-system/src/bundled-face-names.d.ts +1 -0
  63. package/dist/shared/font-system/src/resolver.d.ts +1 -0
  64. package/dist/style.css +1 -1
  65. package/dist/style.layered.css +1 -1
  66. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +17 -33
  67. package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +6 -4
  68. package/dist/superdoc/src/components/CommentsLayer/comment-params.d.ts +84 -0
  69. package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +15 -95
  70. package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -9
  71. package/dist/superdoc/src/composables/use-comment-sidebar.d.ts +6 -0
  72. package/dist/superdoc/src/composables/use-document.d.ts +51 -99
  73. package/dist/superdoc/src/core/SuperDoc.d.ts +12 -3
  74. package/dist/superdoc/src/core/collaboration/cdn-collaboration-comment-map.d.ts +1 -0
  75. package/dist/superdoc/src/core/collaboration/collaboration-comment-map.d.ts +2 -0
  76. package/dist/superdoc/src/core/collaboration/helpers.d.ts +1 -1
  77. package/dist/superdoc/src/core/config/normalize-interaction-config.d.ts +10 -1
  78. package/dist/superdoc/src/core/document-open-telemetry.d.ts +1 -1
  79. package/dist/superdoc/src/core/editor-runtime/types.d.ts +4 -0
  80. package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +1 -0
  81. package/dist/superdoc/src/core/types/index.d.ts +110 -42
  82. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +6 -0
  83. package/dist/superdoc/src/helpers/deprecation.d.ts +12 -3
  84. package/dist/superdoc/src/helpers/object-guards.d.ts +1 -0
  85. package/dist/superdoc/src/helpers/v2-review-geometry-delivery.d.ts +22 -0
  86. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +1 -0
  87. package/dist/superdoc/src/public/content-control-ref.d.ts +12 -0
  88. package/dist/superdoc/src/public/index.d.cts +20 -0
  89. package/dist/superdoc/src/public/index.d.ts +4 -1
  90. package/dist/superdoc/src/public/ui/async-read-cache.d.ts +32 -0
  91. package/dist/superdoc/src/public/ui/block-commands.d.ts +39 -0
  92. package/dist/superdoc/src/public/ui/command-results.d.ts +39 -0
  93. package/dist/superdoc/src/public/ui/commands.d.ts +5 -1
  94. package/dist/superdoc/src/public/ui/content-controls-handle.d.ts +31 -0
  95. package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -17
  96. package/dist/superdoc/src/public/ui/document-change-records.d.ts +7 -0
  97. package/dist/superdoc/src/public/ui/entity-rows.d.ts +14 -0
  98. package/dist/superdoc/src/public/ui/font-options.d.ts +7 -0
  99. package/dist/superdoc/src/public/ui/format-painter-paragraph.d.ts +7 -0
  100. package/dist/superdoc/src/public/ui/format-painter-state.d.ts +29 -0
  101. package/dist/superdoc/src/public/ui/heavy-read-gate.d.ts +41 -0
  102. package/dist/superdoc/src/public/ui/heavy-read-policy.d.ts +11 -0
  103. package/dist/superdoc/src/public/ui/host-events.d.ts +3 -0
  104. package/dist/superdoc/src/public/ui/inline-values.d.ts +80 -0
  105. package/dist/superdoc/src/public/ui/loose-record.d.ts +4 -0
  106. package/dist/superdoc/src/public/ui/reasons.d.ts +1 -0
  107. package/dist/superdoc/src/public/ui/search-handle.d.ts +24 -0
  108. package/dist/superdoc/src/public/ui/selection-targets.d.ts +53 -0
  109. package/dist/superdoc/src/public/ui/shared-tracked-changes-catalog.d.ts +16 -0
  110. package/dist/superdoc/src/public/ui/styles-handle.d.ts +54 -0
  111. package/dist/superdoc/src/public/ui/tracked-change-ids.d.ts +51 -0
  112. package/dist/superdoc/src/public/ui/types.d.ts +31 -2
  113. package/dist/superdoc/src/public/ui/ui-bench-timing.d.ts +9 -0
  114. package/dist/superdoc/src/public/ui.d.cts +18 -0
  115. package/dist/superdoc/src/public/ui.d.ts +1 -1
  116. package/dist/superdoc/src/stores/comments-store.d.ts +23052 -537
  117. package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +1 -1
  118. package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +10 -10
  119. package/dist/superdoc/src/stores/helpers/pending-selection-snapshot.d.ts +3 -3
  120. package/dist/superdoc/src/stores/helpers/review-presentation.d.ts +91 -0
  121. package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +4 -2
  122. package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +1 -8
  123. package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +1 -1
  124. package/dist/superdoc/src/stores/helpers/v2-review-adapters.d.ts +148 -0
  125. package/dist/superdoc/src/stores/superdoc-store.d.ts +12 -2895
  126. package/dist/superdoc.cjs +1000 -566
  127. package/dist/superdoc.es.js +1000 -566
  128. package/dist/word-layout/src/marker-utils.d.ts +0 -5
  129. package/dist/word-layout/src/unit-conversions.d.ts +0 -1
  130. package/dist-cdn/style.layered.css +1 -1
  131. package/dist-cdn/superdoc.min.css +1 -1
  132. package/dist-cdn/superdoc.min.js +38 -42
  133. package/package.json +12 -3
  134. package/dist/document-api/src/diff/index.d.ts +0 -3
  135. package/dist/document-api/src/write/locator.d.ts +0 -24
  136. package/dist/layout-engine/painters/dom/src/features/feature-registry.d.ts +0 -41
  137. package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +0 -11
  138. package/dist/word-layout/src/tab-layout.d.ts +0 -193
package/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # superdoc
2
2
 
3
- Browser editor for opening, editing, and rendering DOCX files.
3
+ Browser DOCX editor for reviewing, filling, and editing Word documents. Edits
4
+ write back to OOXML without an HTML conversion step. Use the built-in UI or
5
+ build your own. For headless or agent workflows, use
6
+ [`@superdoc/sdk`](https://www.npmjs.com/package/@superdoc/sdk).
7
+
8
+ [Live demo](https://www.superdoc.dev) · [Documentation](https://docs.superdoc.dev) · [GitHub](https://github.com/superdoc/docx-editor)
4
9
 
5
10
  ## Install
6
11
 
@@ -8,49 +13,146 @@ Browser editor for opening, editing, and rendering DOCX files.
8
13
  npm install superdoc
9
14
  ```
10
15
 
16
+ The imports below need a bundler such as Vite or webpack.
17
+
11
18
  ## Quick start
12
19
 
20
+ ```html
21
+ <div id="toolbar"></div>
22
+ <div id="editor" style="height: 100vh"></div>
23
+ ```
24
+
13
25
  ```js
14
26
  import { SuperDoc } from 'superdoc';
15
27
  import 'superdoc/style.css';
16
28
 
17
- const editor = new SuperDoc({
29
+ const superdoc = new SuperDoc({
18
30
  selector: '#editor',
19
- document: '/document.docx',
31
+ document: '/sample.docx', // URL, File, or Blob; omit for a blank document
32
+ documentMode: 'editing', // 'editing' | 'suggesting' | 'viewing'
33
+ user: { name: 'Ada Lovelace', email: 'ada@superdoc.dev' },
34
+ ui: { toolbar: { container: '#toolbar' } },
35
+ onReady: ({ superdoc }) => {
36
+ console.log('Document ready');
37
+ },
20
38
  });
21
39
  ```
22
40
 
23
- See the [editor quick start](https://docs.superdoc.dev/editor/quickstart) for a complete example and the
24
- [SuperDoc documentation](https://docs.superdoc.dev) for configuration and APIs.
41
+ ## Common tasks
25
42
 
26
- See [package compatibility](https://docs.superdoc.dev/resources/package-compatibility) for the peer dependency policy and current-version inspection commands.
43
+ ### Export the edited DOCX
27
44
 
28
- ## License
45
+ ```js
46
+ await superdoc.export({ exportedName: 'sample-edited' }); // downloads sample-edited.docx
47
+ const docx = await superdoc.export({ triggerDownload: false }); // returns the file instead
48
+ ```
49
+
50
+ Exports keep tracked changes and comments by default. See
51
+ [export options](https://docs.superdoc.dev/editor/export-options) to accept
52
+ changes or remove comments in the exported copy.
29
53
 
30
- AGPL-3.0. Commercial licenses are available from [SuperDoc](https://www.superdoc.dev).
54
+ ### Record edits as tracked changes
31
55
 
32
- ## Navigate to a bookmark
56
+ Set `documentMode: 'suggesting'` and a `user` so each change has an author.
57
+ Switch modes later with:
33
58
 
34
- After the V2 browser editor is ready, navigate by an exact bookmark name:
59
+ ```js
60
+ superdoc.setDocumentMode('suggesting');
61
+ ```
62
+
63
+ ### Find and replace text
64
+
65
+ Use the Document API at `superdoc.activeEditor.doc` after `onReady`. Find a
66
+ target with `query.match`, then pass that target to the mutation:
35
67
 
36
68
  ```js
37
- const result = await editor.ui.bookmarks.navigateTo('Terms');
69
+ onReady: async ({ superdoc }) => {
70
+ const doc = superdoc.activeEditor?.doc;
71
+ if (!doc) throw new Error('The active document is unavailable.');
72
+
73
+ const match = await doc.query.match({
74
+ select: { type: 'text', pattern: 'Amazing' },
75
+ require: 'exactlyOne',
76
+ });
77
+ const item = match.items[0];
78
+ if (!item || item.matchKind !== 'text') throw new Error('Text not found.');
79
+
80
+ const receipt = await doc.replace(
81
+ { target: item.target, text: 'Northstar' },
82
+ { changeMode: 'tracked', expectedRevision: match.evaluatedRevision },
83
+ );
84
+ if (!receipt.success) throw new Error(receipt.failure?.message ?? 'Replace failed.');
85
+ },
86
+ ```
87
+
88
+ ### Add a comment
89
+
90
+ Every edit changes the document revision, so query again after an edit instead
91
+ of reusing an earlier `match`:
92
+
93
+ ```js
94
+ const match = await doc.query.match({
95
+ select: { type: 'text', pattern: 'Confidential Information' },
96
+ require: 'exactlyOne',
97
+ });
98
+ const item = match.items[0];
99
+ if (!item || item.matchKind !== 'text') throw new Error('Text not found.');
100
+
101
+ const receipt = await doc.comments.create(
102
+ { target: item.target, text: 'Confirm this definition.' },
103
+ { expectedRevision: match.evaluatedRevision },
104
+ );
105
+ if (!receipt.success) throw new Error(receipt.failure?.message ?? 'Comment failed.');
106
+ ```
107
+
108
+ ### Navigate to a bookmark
109
+
110
+ After the document is ready, navigate by an exact bookmark name:
111
+
112
+ ```js
113
+ const result = await superdoc.ui.bookmarks.navigateTo('Terms');
38
114
  if (!result.success) console.log(result.reason);
39
115
  ```
40
116
 
41
- You can also pass a `BookmarkAddress` returned by `editor.activeEditor.doc.bookmarks.get()`
42
- or `.list()`. The method reveals the bookmark's start and selects its complete range,
43
- including across paragraphs. A collapsed bookmark places a caret. It supports editing,
44
- suggesting, and viewing modes. Navigation stays local in a shared room and does not change
45
- content or another client's selection. It does not take native keyboard focus.
117
+ You can also pass a `BookmarkAddress` from `doc.bookmarks.get()` or `.list()`.
118
+ Navigation scrolls to the bookmark and selects its range without changing
119
+ content or other collaborators' selections. Pass
120
+ `{ block: 'start', behavior: 'auto' }` as a second argument to change
121
+ alignment or scrolling. Only body bookmarks are supported; other targets
122
+ return `{ success: false, reason: 'target-unresolved' }`. The handle and
123
+ address types are exported from `superdoc/ui`.
124
+
125
+ ## Common mistakes
46
126
 
47
- Scrolling defaults to instant, centered navigation. Pass `{ block: 'start', behavior: 'auto' }`
48
- as a second argument to change alignment or scrolling behavior.
127
+ | Wrong | Right |
128
+ | --- | --- |
129
+ | `documentMode: 'edit'`, `'view'`, or `'suggest'` | `'editing'`, `'viewing'`, or `'suggesting'` |
130
+ | Importing `SuperDoc` without `superdoc/style.css` | Import both |
131
+ | `modules: { collaboration: { ydoc, provider } }` (V1) | `document: { url, collaboration: { providerType, serverUrl, documentId } }` |
132
+ | `Editor`, `superdoc/super-editor`, ProseMirror commands, or plugin keys (V1) | The Document API at `superdoc.activeEditor.doc` |
133
+ | Calling the Document API before the document loads | Call it inside `onReady` |
134
+ | Building edit targets from DOM positions or OOXML IDs | Use the `target` returned by `doc.query.match` |
135
+ | Importing `superdoc` in Node.js | Use `@superdoc/sdk` |
136
+
137
+ `documentMode` controls editor behavior only. Your application still manages
138
+ who may open or change a document.
139
+
140
+ ## Related packages
141
+
142
+ - [`@superdoc/react`](https://www.npmjs.com/package/@superdoc/react) and [`@superdoc/vue`](https://www.npmjs.com/package/@superdoc/vue): framework wrappers for this editor.
143
+ - [`@superdoc/sdk`](https://www.npmjs.com/package/@superdoc/sdk): Node.js SDK for headless editing and agent toolkits. Python and Rust SDKs are listed in the [documentation](https://docs.superdoc.dev).
144
+ - [`@superdoc/mcp`](https://www.npmjs.com/package/@superdoc/mcp): MCP server for AI agents.
145
+
146
+ ## Documentation
147
+
148
+ - [Editor quick start](https://docs.superdoc.dev/editor/quickstart)
149
+ - [Configuration](https://docs.superdoc.dev/editor/configuration)
150
+ - [Document modes](https://docs.superdoc.dev/editor/document-modes)
151
+ - [Export options](https://docs.superdoc.dev/editor/export-options)
152
+ - [Package compatibility](https://docs.superdoc.dev/resources/package-compatibility): peer dependency policy and version inspection.
153
+ - [`llms.txt`](https://docs.superdoc.dev/llms.txt): machine-readable index of the documentation for coding agents.
154
+
155
+ ## License
49
156
 
50
- The first release supports body bookmarks. Non-body and table-column bookmarks, malformed,
51
- missing, deleted, or ambiguous targets return `{ success: false, ok: false, reason: 'target-unresolved' }`.
52
- Name-only lookup requires a unique match across the document; an explicit body address scopes
53
- lookup to the body. Resolution or reveal failure preserves the existing selection. Navigation
54
- abandons stale work after content changes, document replacement, or a newer request, and times
55
- out after 15 seconds. Missing editor or host capabilities return their readiness or availability
56
- reason. The handle and address types are exported from `superdoc/ui`.
157
+ AGPL-3.0. [Commercial licenses](https://www.superdoc.dev/#pricing) are
158
+ available for proprietary deployments.
@@ -1,4 +1,4 @@
1
- import { D as normalizeClass, F as openBlock, G as toDisplayString, N as onMounted, a as computed, at as withModifiers, c as createCommentVNode, h as defineComponent, it as withKeys, l as createElementBlock, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-DRPRMkeA.es.js";
1
+ import { D as normalizeClass, F as openBlock, G as toDisplayString, N as onMounted, a as computed, at as withModifiers, c as createCommentVNode, h as defineComponent, it as withKeys, l as createElementBlock, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-CmkaJDnr.es.js";
2
2
  //#region src/components/surfaces/FindReplaceSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = { class: "sd-find-replace__row" };
@@ -1,4 +1,4 @@
1
- const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BkbCxNeT.cjs");
1
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BzM2_tVU.cjs");
2
2
  //#region src/components/surfaces/FindReplaceSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = { class: "sd-find-replace__row" };
@@ -1,4 +1,4 @@
1
- import { F as openBlock, G as toDisplayString, a as computed, at as withModifiers, c as createCommentVNode, et as vModelText, h as defineComponent, it as withKeys, l as createElementBlock, rt as withDirectives, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-DRPRMkeA.es.js";
1
+ import { F as openBlock, G as toDisplayString, a as computed, at as withModifiers, c as createCommentVNode, et as vModelText, h as defineComponent, it as withKeys, l as createElementBlock, rt as withDirectives, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-CmkaJDnr.es.js";
2
2
  //#region src/components/surfaces/PasswordPromptSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = ["id"];
@@ -1,4 +1,4 @@
1
- const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BkbCxNeT.cjs");
1
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BzM2_tVU.cjs");
2
2
  //#region src/components/surfaces/PasswordPromptSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = ["id"];
@@ -1,4 +1,4 @@
1
- import { B as renderList, F as openBlock, N as onMounted, T as mergeProps, W as shallowRef, a as computed, c as createCommentVNode, h as defineComponent, j as onBeforeUnmount, k as normalizeStyle, l as createElementBlock, n as Fragment, p as createVNode, s as createBlock, t as _plugin_vue_export_helper_default, tt as watch, u as createElementVNode, w as markRaw, z as ref } from "./_plugin-vue_export-helper-DRPRMkeA.es.js";
1
+ import { B as renderList, F as openBlock, N as onMounted, T as mergeProps, W as shallowRef, a as computed, c as createCommentVNode, h as defineComponent, j as onBeforeUnmount, k as normalizeStyle, l as createElementBlock, n as Fragment, p as createVNode, s as createBlock, t as _plugin_vue_export_helper_default, tt as watch, u as createElementVNode, w as markRaw, z as ref } from "./_plugin-vue_export-helper-CmkaJDnr.es.js";
2
2
  import { t as isFiniteNumber } from "./is-finite-number-BpL4F38c.es.js";
3
3
  import { t as PDF_TO_CSS_UNITS } from "./constants-BvNs_ybI.es.js";
4
4
  //#region src/core/pdf/helpers/floor.ts
@@ -1,4 +1,4 @@
1
- const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BkbCxNeT.cjs");
1
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BzM2_tVU.cjs");
2
2
  const require_is_finite_number = require("./is-finite-number-BEXgTRgc.cjs");
3
3
  const require_constants = require("./constants-BeeNZoQp.cjs");
4
4
  //#region src/core/pdf/helpers/floor.ts
@@ -2,6 +2,9 @@
2
2
  function isPlainObject(value) {
3
3
  return typeof value === "object" && value !== null && !Array.isArray(value);
4
4
  }
5
+ function isObjectRecord(value) {
6
+ return typeof value === "object" && value !== null;
7
+ }
5
8
  function isThenable(value) {
6
9
  return (typeof value === "object" || typeof value === "function") && value !== null && "then" in value && typeof value.then === "function";
7
10
  }
@@ -352,6 +355,12 @@ Object.defineProperty(exports, "inject", {
352
355
  return inject;
353
356
  }
354
357
  });
358
+ Object.defineProperty(exports, "isObjectRecord", {
359
+ enumerable: true,
360
+ get: function() {
361
+ return isObjectRecord;
362
+ }
363
+ });
355
364
  Object.defineProperty(exports, "isPlainObject", {
356
365
  enumerable: true,
357
366
  get: function() {
@@ -2,6 +2,9 @@
2
2
  function isPlainObject(value) {
3
3
  return typeof value === "object" && value !== null && !Array.isArray(value);
4
4
  }
5
+ function isObjectRecord(value) {
6
+ return typeof value === "object" && value !== null;
7
+ }
5
8
  function isThenable(value) {
6
9
  return (typeof value === "object" || typeof value === "function") && value !== null && "then" in value && typeof value.then === "function";
7
10
  }
@@ -226,4 +229,4 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
226
229
  return target;
227
230
  };
228
231
  //#endregion
229
- export { vModelSelect as $, onActivated as A, renderList as B, isRef as C, normalizeClass as D, nextTick as E, openBlock as F, toDisplayString as G, resolveDirective as H, provide as I, toRefs as J, toRaw as K, reactive as L, onDeactivated as M, onMounted as N, normalizeProps as O, onScopeDispose as P, vModelCheckbox as Q, readonly as R, isReactive as S, mergeProps as T, resolveDynamicComponent as U, renderSlot as V, shallowRef as W, useAttrs as X, unref as Y, useSlots as Z, getCurrentInstance as _, computed as a, withModifiers as at, hasInjectionContext as b, createCommentVNode as c, createStaticVNode as d, vModelText as et, createTextVNode as f, effectScope as g, defineComponent as h, Transition as i, withKeys as it, onBeforeUnmount as j, normalizeStyle as k, createElementBlock as l, defineAsyncComponent as m, Fragment as n, withCtx as nt, createApp as o, isPlainObject as ot, createVNode as p, toRef as q, Teleport as r, withDirectives as rt, createBlock as s, isThenable as st, _plugin_vue_export_helper_default as t, watch as tt, createElementVNode as u, getCurrentScope as v, markRaw as w, inject as x, h as y, ref as z };
232
+ export { vModelSelect as $, onActivated as A, renderList as B, isRef as C, normalizeClass as D, nextTick as E, openBlock as F, toDisplayString as G, resolveDirective as H, provide as I, toRefs as J, toRaw as K, reactive as L, onDeactivated as M, onMounted as N, normalizeProps as O, onScopeDispose as P, vModelCheckbox as Q, readonly as R, isReactive as S, mergeProps as T, resolveDynamicComponent as U, renderSlot as V, shallowRef as W, useAttrs as X, unref as Y, useSlots as Z, getCurrentInstance as _, computed as a, withModifiers as at, hasInjectionContext as b, createCommentVNode as c, isThenable as ct, createStaticVNode as d, vModelText as et, createTextVNode as f, effectScope as g, defineComponent as h, Transition as i, withKeys as it, onBeforeUnmount as j, normalizeStyle as k, createElementBlock as l, defineAsyncComponent as m, Fragment as n, withCtx as nt, createApp as o, isObjectRecord as ot, createVNode as p, toRef as q, Teleport as r, withDirectives as rt, createBlock as s, isPlainObject as st, _plugin_vue_export_helper_default as t, watch as tt, createElementVNode as u, getCurrentScope as v, markRaw as w, inject as x, h as y, ref as z };