superdoc 2.29.0-next.3 → 2.29.0
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/chunks/{FindReplaceSurface-BKVHzhQ4.es.js → FindReplaceSurface-B_5ggdWg.es.js} +1 -1
- package/dist/chunks/{FindReplaceSurface-BNDrJ6VS.cjs → FindReplaceSurface-fVHxPXtn.cjs} +1 -1
- package/dist/chunks/{PasswordPromptSurface-6mF6Azda.es.js → PasswordPromptSurface-CZqhDQQ1.es.js} +1 -1
- package/dist/chunks/{PasswordPromptSurface-BNkaztaP.cjs → PasswordPromptSurface-x8GNmMJT.cjs} +1 -1
- package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-CW09MNrB.es.js} +70 -105
- package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-CkrAHpC-.cjs} +74 -109
- package/dist/chunks/{_plugin-vue_export-helper-6MBoygIY.cjs → _plugin-vue_export-helper-BkbCxNeT.cjs} +31 -7
- package/dist/chunks/{_plugin-vue_export-helper-CsJQtMvr.es.js → _plugin-vue_export-helper-DRPRMkeA.es.js} +20 -8
- package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
- package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
- package/dist/chunks/{create-super-doc-ui-BFt8agAI.es.js → create-super-doc-ui-Dc8dQAMc.es.js} +89 -137
- package/dist/chunks/{create-super-doc-ui-BAGOnYGM.cjs → create-super-doc-ui-L60GhVAX.cjs} +211 -259
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
- package/dist/document-api/src/comments/comments.d.ts +2 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
- package/dist/document-api/src/index.d.ts +8 -7
- package/dist/document-api/src/insert/insert.d.ts +2 -2
- package/dist/document-api/src/replace/replace.d.ts +3 -2
- package/dist/document-api/src/types/address.d.ts +3 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/document-api/src/write/write.d.ts +12 -6
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/SuperDoc.vue.d.ts +132 -58
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +28 -13
- package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +11 -1
- package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +19 -2
- package/dist/superdoc/src/components/CommentsLayer/comment-urls.d.ts +1 -1
- package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +23 -20
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
- package/dist/superdoc/src/components/CommentsLayer/helpers.d.ts +1 -4
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +16 -2
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +28 -13
- package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
- package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
- package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
- package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +80 -16
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +48 -13
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +13 -0
- package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
- package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
- package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
- package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
- package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
- package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
- package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
- package/dist/superdoc/src/composables/use-field.d.ts +88 -25
- package/dist/superdoc/src/composables/use-find-replace.d.ts +13 -3
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +62 -26
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
- package/dist/superdoc/src/core/SuperDoc.d.ts +4 -4
- package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
- package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
- package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
- package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
- package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
- package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
- package/dist/superdoc/src/core/create-app.d.ts +13 -24
- package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
- package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
- package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
- package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
- package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
- package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +28 -61
- package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
- package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
- package/dist/superdoc/src/core/types/index.d.ts +41 -23
- package/dist/superdoc/src/core/v2-integration/browser-peer-runtime.d.ts +5 -3
- package/dist/superdoc/src/core/v2-integration/cdn-engine-loader.d.ts +3 -13
- package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +64 -59
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
- package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
- package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
- package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
- package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
- package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
- package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
- package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
- package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
- package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
- package/dist/superdoc/src/helpers/object-guards.d.ts +2 -5
- package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
- package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
- package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
- package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
- package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
- package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
- package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
- package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
- package/dist/superdoc/src/icons.d.ts +11 -19
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
- package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +6 -4
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +4 -24
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +34 -0
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +34 -0
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +25 -15
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +12 -14
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -11
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +9 -19
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +14 -45
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
- package/dist/superdoc/src/internal/toolbar/built-in/font-options.d.ts +15 -1
- package/dist/superdoc/src/internal/toolbar/built-in/font-typeahead.d.ts +37 -7
- package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +10 -4
- package/dist/superdoc/src/internal/toolbar/built-in/general.d.ts +12 -1
- package/dist/superdoc/src/internal/toolbar/built-in/helpers.d.ts +9 -4
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/page-number-feedback.d.ts +4 -5
- package/dist/superdoc/src/internal/toolbar/built-in/scroll-helpers.d.ts +3 -4
- package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +78 -145
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
- package/dist/superdoc/src/internal/toolbar/built-in/url-safety.d.ts +11 -3
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +11 -30
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/image-upload.d.ts +29 -39
- package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
- package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
- package/dist/superdoc/src/public/index.d.cts +26 -0
- package/dist/superdoc/src/public/index.d.ts +13 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
- package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
- package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +231 -105
- package/dist/superdoc/src/stores/helpers/comment-document-scope.d.ts +22 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
- package/dist/superdoc/src/stores/helpers/pending-selection-snapshot.d.ts +17 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-compaction.d.ts +16 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-decision.d.ts +45 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +0 -4
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
- package/dist/superdoc/src/stores/superdoc-store.d.ts +694 -316
- package/dist/superdoc.cjs +1804 -2782
- package/dist/superdoc.es.js +1720 -2699
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +3 -2
- package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
- package/dist/superdoc/src/main.d.ts +0 -1
|
@@ -1,59 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export function
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export function
|
|
10
|
-
export function
|
|
11
|
-
export function
|
|
12
|
-
export function
|
|
13
|
-
export function
|
|
14
|
-
export function
|
|
15
|
-
export function
|
|
16
|
-
export function
|
|
17
|
-
export function
|
|
18
|
-
export function
|
|
19
|
-
export function
|
|
20
|
-
export function
|
|
21
|
-
export function
|
|
22
|
-
export function
|
|
23
|
-
export function
|
|
24
|
-
export function
|
|
25
|
-
export function
|
|
26
|
-
export function
|
|
27
|
-
export function
|
|
28
|
-
export function
|
|
29
|
-
export function
|
|
30
|
-
export function
|
|
31
|
-
export function
|
|
32
|
-
export function
|
|
33
|
-
export function
|
|
34
|
-
export function
|
|
35
|
-
export function
|
|
36
|
-
export function
|
|
37
|
-
export function
|
|
38
|
-
export function
|
|
39
|
-
export function
|
|
40
|
-
export function
|
|
41
|
-
export function
|
|
42
|
-
export function
|
|
43
|
-
export function
|
|
44
|
-
export function
|
|
45
|
-
export function
|
|
46
|
-
export function
|
|
47
|
-
export function
|
|
48
|
-
export function
|
|
49
|
-
export function
|
|
50
|
-
export function
|
|
51
|
-
export function
|
|
52
|
-
export function
|
|
53
|
-
export function
|
|
54
|
-
export function
|
|
55
|
-
export
|
|
56
|
-
export const
|
|
57
|
-
export const
|
|
58
|
-
export const
|
|
59
|
-
export
|
|
1
|
+
import type * as Vue from 'vue';
|
|
2
|
+
type VueRuntime = typeof Vue;
|
|
3
|
+
type TransitionProps = Parameters<VueRuntime['Transition']>[0];
|
|
4
|
+
type TransitionContext = Parameters<VueRuntime['Transition']>[1];
|
|
5
|
+
export declare function defineComponent(options: object, extraOptions?: object): object;
|
|
6
|
+
export declare const Transition: (props: TransitionProps, context: TransitionContext) => any;
|
|
7
|
+
export declare const Fragment: unique symbol;
|
|
8
|
+
export declare const Teleport: object;
|
|
9
|
+
export declare function computed(...args: Parameters<VueRuntime['computed']>): ReturnType<VueRuntime['computed']>;
|
|
10
|
+
export declare function createApp(...args: Parameters<VueRuntime['createApp']>): ReturnType<VueRuntime['createApp']>;
|
|
11
|
+
export declare function createBlock(...args: Parameters<VueRuntime['createBlock']>): ReturnType<VueRuntime['createBlock']>;
|
|
12
|
+
export declare function createCommentVNode(...args: Parameters<VueRuntime['createCommentVNode']>): ReturnType<VueRuntime['createCommentVNode']>;
|
|
13
|
+
export declare function createElementBlock(...args: Parameters<VueRuntime['createElementBlock']>): ReturnType<VueRuntime['createElementBlock']>;
|
|
14
|
+
export declare function createElementVNode(...args: Parameters<VueRuntime['createElementVNode']>): ReturnType<VueRuntime['createElementVNode']>;
|
|
15
|
+
export declare function createStaticVNode(...args: Parameters<VueRuntime['createStaticVNode']>): ReturnType<VueRuntime['createStaticVNode']>;
|
|
16
|
+
export declare function createTextVNode(...args: Parameters<VueRuntime['createTextVNode']>): ReturnType<VueRuntime['createTextVNode']>;
|
|
17
|
+
export declare function createVNode(...args: Parameters<VueRuntime['createVNode']>): ReturnType<VueRuntime['createVNode']>;
|
|
18
|
+
export declare function defineAsyncComponent(...args: Parameters<VueRuntime['defineAsyncComponent']>): ReturnType<VueRuntime['defineAsyncComponent']>;
|
|
19
|
+
export declare function effectScope(...args: Parameters<VueRuntime['effectScope']>): ReturnType<VueRuntime['effectScope']>;
|
|
20
|
+
export declare function getCurrentInstance(...args: Parameters<VueRuntime['getCurrentInstance']>): ReturnType<VueRuntime['getCurrentInstance']>;
|
|
21
|
+
export declare function getCurrentScope(...args: Parameters<VueRuntime['getCurrentScope']>): ReturnType<VueRuntime['getCurrentScope']>;
|
|
22
|
+
export declare function guardReactiveProps(...args: Parameters<VueRuntime['guardReactiveProps']>): ReturnType<VueRuntime['guardReactiveProps']>;
|
|
23
|
+
export declare function h(...args: Parameters<VueRuntime['h']>): ReturnType<VueRuntime['h']>;
|
|
24
|
+
export declare function hasInjectionContext(...args: Parameters<VueRuntime['hasInjectionContext']>): ReturnType<VueRuntime['hasInjectionContext']>;
|
|
25
|
+
export declare function inject(...args: Parameters<VueRuntime['inject']>): ReturnType<VueRuntime['inject']>;
|
|
26
|
+
export declare function isReactive(...args: Parameters<VueRuntime['isReactive']>): ReturnType<VueRuntime['isReactive']>;
|
|
27
|
+
export declare function isRef(...args: Parameters<VueRuntime['isRef']>): ReturnType<VueRuntime['isRef']>;
|
|
28
|
+
export declare function markRaw(...args: Parameters<VueRuntime['markRaw']>): ReturnType<VueRuntime['markRaw']>;
|
|
29
|
+
export declare function mergeProps(...args: Parameters<VueRuntime['mergeProps']>): ReturnType<VueRuntime['mergeProps']>;
|
|
30
|
+
export declare function nextTick(...args: Parameters<VueRuntime['nextTick']>): ReturnType<VueRuntime['nextTick']>;
|
|
31
|
+
export declare function normalizeClass(...args: Parameters<VueRuntime['normalizeClass']>): ReturnType<VueRuntime['normalizeClass']>;
|
|
32
|
+
export declare function normalizeProps(...args: Parameters<VueRuntime['normalizeProps']>): ReturnType<VueRuntime['normalizeProps']>;
|
|
33
|
+
export declare function normalizeStyle(...args: Parameters<VueRuntime['normalizeStyle']>): ReturnType<VueRuntime['normalizeStyle']>;
|
|
34
|
+
export declare function onActivated(...args: Parameters<VueRuntime['onActivated']>): ReturnType<VueRuntime['onActivated']>;
|
|
35
|
+
export declare function onBeforeUnmount(...args: Parameters<VueRuntime['onBeforeUnmount']>): ReturnType<VueRuntime['onBeforeUnmount']>;
|
|
36
|
+
export declare function onDeactivated(...args: Parameters<VueRuntime['onDeactivated']>): ReturnType<VueRuntime['onDeactivated']>;
|
|
37
|
+
export declare function onMounted(...args: Parameters<VueRuntime['onMounted']>): ReturnType<VueRuntime['onMounted']>;
|
|
38
|
+
export declare function onScopeDispose(...args: Parameters<VueRuntime['onScopeDispose']>): ReturnType<VueRuntime['onScopeDispose']>;
|
|
39
|
+
export declare function openBlock(...args: Parameters<VueRuntime['openBlock']>): ReturnType<VueRuntime['openBlock']>;
|
|
40
|
+
export declare function provide(...args: Parameters<VueRuntime['provide']>): ReturnType<VueRuntime['provide']>;
|
|
41
|
+
export declare function reactive(...args: Parameters<VueRuntime['reactive']>): ReturnType<VueRuntime['reactive']>;
|
|
42
|
+
export declare function readonly(...args: Parameters<VueRuntime['readonly']>): ReturnType<VueRuntime['readonly']>;
|
|
43
|
+
export declare function ref(...args: Parameters<VueRuntime['ref']>): ReturnType<VueRuntime['ref']>;
|
|
44
|
+
export declare function renderList(...args: Parameters<VueRuntime['renderList']>): ReturnType<VueRuntime['renderList']>;
|
|
45
|
+
export declare function renderSlot(...args: Parameters<VueRuntime['renderSlot']>): ReturnType<VueRuntime['renderSlot']>;
|
|
46
|
+
export declare function resolveDirective(...args: Parameters<VueRuntime['resolveDirective']>): ReturnType<VueRuntime['resolveDirective']>;
|
|
47
|
+
export declare function resolveDynamicComponent(...args: Parameters<VueRuntime['resolveDynamicComponent']>): ReturnType<VueRuntime['resolveDynamicComponent']>;
|
|
48
|
+
export declare function shallowRef(...args: Parameters<VueRuntime['shallowRef']>): ReturnType<VueRuntime['shallowRef']>;
|
|
49
|
+
export declare function toDisplayString(...args: Parameters<VueRuntime['toDisplayString']>): ReturnType<VueRuntime['toDisplayString']>;
|
|
50
|
+
export declare function toRaw(...args: Parameters<VueRuntime['toRaw']>): ReturnType<VueRuntime['toRaw']>;
|
|
51
|
+
export declare function toRef(...args: Parameters<VueRuntime['toRef']>): ReturnType<VueRuntime['toRef']>;
|
|
52
|
+
export declare function toRefs(...args: Parameters<VueRuntime['toRefs']>): ReturnType<VueRuntime['toRefs']>;
|
|
53
|
+
export declare function unref(...args: Parameters<VueRuntime['unref']>): ReturnType<VueRuntime['unref']>;
|
|
54
|
+
export declare function useAttrs(...args: Parameters<VueRuntime['useAttrs']>): ReturnType<VueRuntime['useAttrs']>;
|
|
55
|
+
export declare function useSlots(...args: Parameters<VueRuntime['useSlots']>): ReturnType<VueRuntime['useSlots']>;
|
|
56
|
+
export declare const vModelCheckbox: object;
|
|
57
|
+
export declare const vModelSelect: object;
|
|
58
|
+
export declare const vModelText: object;
|
|
59
|
+
export declare function watch(...args: Parameters<VueRuntime['watch']>): ReturnType<VueRuntime['watch']>;
|
|
60
|
+
export declare function withCtx(...args: Parameters<VueRuntime['withCtx']>): ReturnType<VueRuntime['withCtx']>;
|
|
61
|
+
export declare function withDirectives(...args: Parameters<VueRuntime['withDirectives']>): ReturnType<VueRuntime['withDirectives']>;
|
|
62
|
+
export declare function withKeys(...args: Parameters<VueRuntime['withKeys']>): ReturnType<VueRuntime['withKeys']>;
|
|
63
|
+
export declare function withModifiers(...args: Parameters<VueRuntime['withModifiers']>): ReturnType<VueRuntime['withModifiers']>;
|
|
64
|
+
export {};
|
|
@@ -12,7 +12,7 @@ export interface V2GeometryPayload {
|
|
|
12
12
|
mount?: unknown;
|
|
13
13
|
}
|
|
14
14
|
export type V2CommittedPageWindow = Readonly<Record<string, unknown>>;
|
|
15
|
-
|
|
15
|
+
interface V2GeometryPublisherOptions {
|
|
16
16
|
getLayersContainer: () => HTMLElement | null;
|
|
17
17
|
isCommentsEnabled: () => boolean;
|
|
18
18
|
publishPositions: (positions: Record<string, unknown>, options?: V2GeometryPublishOptions) => void;
|
|
@@ -20,7 +20,7 @@ export interface V2GeometryPublisherOptions {
|
|
|
20
20
|
readCurrentPositions?: () => Record<string, unknown>;
|
|
21
21
|
setGeometryAvailable?: (value: boolean) => void;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
interface V2GeometryPublisher {
|
|
24
24
|
publish(payload: V2GeometryPayload | null, options?: V2GeometryPublishOptions): Promise<void> | void;
|
|
25
25
|
recollect(options?: V2GeometryPublishOptions): Promise<void> | void;
|
|
26
26
|
noteCommittedPageWindow?(window: V2CommittedPageWindow | null | undefined): void;
|
|
@@ -28,7 +28,7 @@ export interface V2GeometryPublisher {
|
|
|
28
28
|
getLastEpoch(): number | null;
|
|
29
29
|
getLastPayload(): V2GeometryPayload | null;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
interface V2ReviewWindowContext {
|
|
32
32
|
superdoc: unknown;
|
|
33
33
|
documentId: string;
|
|
34
34
|
commentsAdapter: unknown;
|
|
@@ -36,7 +36,7 @@ export interface V2ReviewWindowContext {
|
|
|
36
36
|
resolveReviewWindow: (input: unknown) => unknown;
|
|
37
37
|
moveFragmentWordIds: (ids: readonly string[]) => unknown;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
interface V2ReviewWindowResult {
|
|
40
40
|
comments?: {
|
|
41
41
|
items?: readonly unknown[];
|
|
42
42
|
requestedIds?: readonly string[];
|
|
@@ -49,20 +49,20 @@ export interface V2ReviewWindowResult {
|
|
|
49
49
|
};
|
|
50
50
|
preparedReview?: unknown;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
interface V2ReviewWindowControllerOptions {
|
|
53
53
|
applyReviewWindow?: ((context: V2ReviewWindowContext, result: V2ReviewWindowResult) => unknown) | null;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
interface V2ReviewMutationSettlement {
|
|
56
56
|
outcome: 'aborted' | 'rejected' | 'committed';
|
|
57
57
|
allResolved?: boolean;
|
|
58
58
|
resumeDomains?: readonly ('comments' | 'trackedChanges')[];
|
|
59
59
|
trackedRowCount?: number | null;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
interface V2ReviewWindowSnapshot {
|
|
62
62
|
readonly status: 'pending' | 'ready' | 'stale';
|
|
63
63
|
readonly [field: string]: unknown;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
interface V2ReviewWindowDiagnostics {
|
|
66
66
|
generation: number;
|
|
67
67
|
reviewEpoch: number;
|
|
68
68
|
hasContext: boolean;
|
|
@@ -71,7 +71,7 @@ export interface V2ReviewWindowDiagnostics {
|
|
|
71
71
|
mutationPaused: boolean;
|
|
72
72
|
records: readonly Record<string, unknown>[];
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
interface V2ReviewWindowController {
|
|
75
75
|
setContext(context: V2ReviewWindowContext | null): void;
|
|
76
76
|
onCommittedPagePaint?(commit: V2CommittedPageWindow): void;
|
|
77
77
|
refreshCommittedWindow(reason?: string): void;
|
|
@@ -85,7 +85,7 @@ export interface V2ReviewWindowController {
|
|
|
85
85
|
subscribe?(listener: (snapshot: V2ReviewWindowSnapshot) => void): () => void;
|
|
86
86
|
getDiagnostics(): V2ReviewWindowDiagnostics | null;
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
interface SuperDocV2Integration {
|
|
89
89
|
version: number;
|
|
90
90
|
capabilities: unknown;
|
|
91
91
|
EditorComponent: Component;
|
|
@@ -1,230 +1,26 @@
|
|
|
1
1
|
import { EventEmitter } from '../EventEmitter.js';
|
|
2
|
-
import { WhiteboardPage } from './WhiteboardPage.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* The page-level serialized shape is the normalized one (matches what
|
|
7
|
-
* `WhiteboardPage.toJSON()` actually returns). SD-3213 follow-up:
|
|
8
|
-
* the previous `any[]` typing meant consumers reading
|
|
9
|
-
* `whiteboard.getWhiteboardData().pages[0].strokes` had no
|
|
10
|
-
* IntelliSense — and a wrong assumption that fields like `.points`
|
|
11
|
-
* or `.x` would be present (runtime gives `pointsN` / `xN`).
|
|
12
|
-
*
|
|
13
|
-
* @typedef {import('./WhiteboardPage.js').WhiteboardStoredPageData} WhiteboardPageData
|
|
14
|
-
*
|
|
15
|
-
* Per-page size snapshot recorded in `WhiteboardDataMeta.pageSizes`.
|
|
16
|
-
* `originalWidth` / `originalHeight` are `number | null` because
|
|
17
|
-
* `getWhiteboardData()` writes `page.originalSize?.width ?? null` when
|
|
18
|
-
* the original size is unknown.
|
|
19
|
-
*
|
|
20
|
-
* @typedef {{ width: number, height: number, originalWidth: number | null, originalHeight: number | null }} WhiteboardPageSizeSnapshot
|
|
21
|
-
*
|
|
22
|
-
* @typedef {{ pageSizes: Record<string, WhiteboardPageSizeSnapshot> }} WhiteboardDataMeta
|
|
23
|
-
*
|
|
24
|
-
* `WhiteboardData` is the **output** shape: what `getWhiteboardData()`
|
|
25
|
-
* returns and what the `change` event payload carries. All three
|
|
26
|
-
* fields are required because the runtime always populates them.
|
|
27
|
-
* Consumers reading the change payload can write
|
|
28
|
-
* `data.meta.pageSizes` without optional chaining.
|
|
29
|
-
*
|
|
30
|
-
* @typedef {{ pages: Record<string, WhiteboardPageData>, meta: WhiteboardDataMeta, version: 1 }} WhiteboardData
|
|
31
|
-
*
|
|
32
|
-
* `WhiteboardDataInput` is the **input** shape accepted by
|
|
33
|
-
* `setWhiteboardData(json)`. All fields are optional because the
|
|
34
|
-
* runtime only reads `json?.pages`; callers can pass
|
|
35
|
-
* `{ pages: {...} }` without supplying `meta` or `version`. A round
|
|
36
|
-
* trip works (`setWhiteboardData(getWhiteboardData())`) because
|
|
37
|
-
* `WhiteboardData` is structurally assignable to `WhiteboardDataInput`.
|
|
38
|
-
*
|
|
39
|
-
* @typedef {{ pages?: Record<string, WhiteboardPageData>, meta?: WhiteboardDataMeta, version?: number }} WhiteboardDataInput
|
|
40
|
-
*
|
|
41
|
-
* Registry items the host can attach for UI palettes (stickers,
|
|
42
|
-
* comments, etc.). The shape is intentionally extensible: `id` is the
|
|
43
|
-
* one field the runtime actually relies on (filter, dedup); everything
|
|
44
|
-
* else is consumer-typed via `unknown` so palettes for new domains
|
|
45
|
-
* don't need a contract change.
|
|
46
|
-
*
|
|
47
|
-
* @typedef {{ id?: string | number, [key: string]: unknown }} WhiteboardRegistryItem
|
|
48
|
-
*
|
|
49
|
-
* Event map for `whiteboard.on(name, fn)` / `whiteboard.emit(name, ...)`.
|
|
50
|
-
* Closed map (no DefaultEventMap fallback) because every event the
|
|
51
|
-
* runtime emits is enumerated here; an unknown event name should be a
|
|
52
|
-
* type error, not an `unknown[]` payload. SD-3213 follow-up to the
|
|
53
|
-
* EventEmitter `unknown[]` drain: that change only fixed the
|
|
54
|
-
* untyped-event fallback; without this map, listeners on Whiteboard
|
|
55
|
-
* still received `unknown[]` because no event was named.
|
|
56
|
-
*
|
|
57
|
-
* @typedef {{
|
|
58
|
-
* tool: [string],
|
|
59
|
-
* enabled: [boolean],
|
|
60
|
-
* opacity: [number],
|
|
61
|
-
* setData: [WhiteboardPage[]],
|
|
62
|
-
* change: [WhiteboardData],
|
|
63
|
-
* }} WhiteboardEventMap
|
|
64
|
-
*
|
|
65
|
-
* @typedef {{
|
|
66
|
-
* Renderer?: any,
|
|
67
|
-
* enabled?: boolean,
|
|
68
|
-
* onChange?: (data: WhiteboardData) => void,
|
|
69
|
-
* onSetData?: (pages: WhiteboardPage[]) => void,
|
|
70
|
-
* onEnabledChange?: (enabled: boolean) => void,
|
|
71
|
-
* }} WhiteboardInit
|
|
72
|
-
*/
|
|
73
|
-
/**
|
|
74
|
-
* Whiteboard manager for multi-page annotations.
|
|
75
|
-
*
|
|
76
|
-
* @extends {EventEmitter<WhiteboardEventMap>}
|
|
77
|
-
*/
|
|
78
|
-
export class Whiteboard extends EventEmitter<WhiteboardEventMap> {
|
|
79
|
-
/**
|
|
80
|
-
* Initialize the whiteboard instance.
|
|
81
|
-
* @param {WhiteboardInit} [props]
|
|
82
|
-
*/
|
|
83
|
-
constructor(props?: WhiteboardInit);
|
|
84
|
-
/**
|
|
85
|
-
* Register items for a UI palette type (e.g. stickers, comments).
|
|
86
|
-
* @param {string} type
|
|
87
|
-
* @param {WhiteboardRegistryItem[]} items
|
|
88
|
-
*/
|
|
89
|
-
register(type: string, items: WhiteboardRegistryItem[]): void;
|
|
90
|
-
/**
|
|
91
|
-
* Get registered items by type.
|
|
92
|
-
* @param {string} type
|
|
93
|
-
* @returns {WhiteboardRegistryItem[] | undefined}
|
|
94
|
-
*/
|
|
95
|
-
getType(type: string): WhiteboardRegistryItem[] | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Set current tool for all pages.
|
|
98
|
-
* @param {string} tool
|
|
99
|
-
*/
|
|
100
|
-
setTool(tool: string): void;
|
|
101
|
-
/**
|
|
102
|
-
* Get current tool.
|
|
103
|
-
* @returns {string}
|
|
104
|
-
*/
|
|
105
|
-
getTool(): string;
|
|
106
|
-
/**
|
|
107
|
-
* Enable/disable interactivity for all pages.
|
|
108
|
-
* @param {boolean} enabled
|
|
109
|
-
*/
|
|
110
|
-
setEnabled(enabled: boolean): void;
|
|
111
|
-
/**
|
|
112
|
-
* @returns {boolean}
|
|
113
|
-
*/
|
|
114
|
-
isEnabled(): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Set overlay opacity.
|
|
117
|
-
* @param {number} opacity
|
|
118
|
-
*/
|
|
119
|
-
setOpacity(opacity: number): void;
|
|
120
|
-
/**
|
|
121
|
-
* @returns {number}
|
|
122
|
-
*/
|
|
123
|
-
getOpacity(): number;
|
|
124
|
-
/**
|
|
125
|
-
* Return all page instances.
|
|
126
|
-
* @returns {WhiteboardPage[]}
|
|
127
|
-
*/
|
|
128
|
-
getPages(): WhiteboardPage[];
|
|
129
|
-
/**
|
|
130
|
-
* Re-render all pages.
|
|
131
|
-
*/
|
|
132
|
-
rerender(): void;
|
|
133
|
-
/**
|
|
134
|
-
* Set size for a page (creates page if missing).
|
|
135
|
-
* @param {number} pageIndex
|
|
136
|
-
* @param {WhiteboardPageSize} size
|
|
137
|
-
*/
|
|
138
|
-
setPageSize(pageIndex: number, size: WhiteboardPageSize): void;
|
|
139
|
-
/**
|
|
140
|
-
* Get a page by index.
|
|
141
|
-
* @param {number} pageIndex
|
|
142
|
-
* @returns {WhiteboardPage}
|
|
143
|
-
*/
|
|
144
|
-
getPage(pageIndex: number): WhiteboardPage;
|
|
145
|
-
/**
|
|
146
|
-
* Serialize whiteboard data.
|
|
147
|
-
* @returns {WhiteboardData}
|
|
148
|
-
*/
|
|
149
|
-
getWhiteboardData(): WhiteboardData;
|
|
150
|
-
/**
|
|
151
|
-
* Load whiteboard data from JSON.
|
|
152
|
-
* @param {WhiteboardDataInput} json
|
|
153
|
-
*/
|
|
154
|
-
setWhiteboardData(json: WhiteboardDataInput): void;
|
|
155
|
-
#private;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* The page-level serialized shape is the normalized one (matches what
|
|
159
|
-
* `WhiteboardPage.toJSON()` actually returns). SD-3213 follow-up:
|
|
160
|
-
* the previous `any[]` typing meant consumers reading
|
|
161
|
-
* `whiteboard.getWhiteboardData().pages[0].strokes` had no
|
|
162
|
-
* IntelliSense — and a wrong assumption that fields like `.points`
|
|
163
|
-
* or `.x` would be present (runtime gives `pointsN` / `xN`).
|
|
164
|
-
*/
|
|
165
|
-
export type WhiteboardPageSize = {
|
|
166
|
-
width: number;
|
|
167
|
-
height: number;
|
|
168
|
-
originalWidth?: number;
|
|
169
|
-
originalHeight?: number;
|
|
170
|
-
};
|
|
171
|
-
/**
|
|
172
|
-
* Per-page size snapshot recorded in `WhiteboardDataMeta.pageSizes`.
|
|
173
|
-
* `originalWidth` / `originalHeight` are `number | null` because
|
|
174
|
-
* `getWhiteboardData()` writes `page.originalSize?.width ?? null` when
|
|
175
|
-
* the original size is unknown.
|
|
176
|
-
*/
|
|
177
|
-
export type WhiteboardPageData = import('./WhiteboardPage.js').WhiteboardStoredPageData;
|
|
2
|
+
import { WhiteboardPage, WhiteboardPageRenderer, WhiteboardPageSize, WhiteboardStoredPageData } from './WhiteboardPage.js';
|
|
3
|
+
export type { WhiteboardPageSize };
|
|
4
|
+
export type WhiteboardPageData = WhiteboardStoredPageData;
|
|
178
5
|
export type WhiteboardPageSizeSnapshot = {
|
|
179
6
|
width: number;
|
|
180
7
|
height: number;
|
|
181
8
|
originalWidth: number | null;
|
|
182
9
|
originalHeight: number | null;
|
|
183
10
|
};
|
|
184
|
-
/**
|
|
185
|
-
* `WhiteboardData` is the **output** shape: what `getWhiteboardData()`
|
|
186
|
-
* returns and what the `change` event payload carries. All three
|
|
187
|
-
* fields are required because the runtime always populates them.
|
|
188
|
-
* Consumers reading the change payload can write
|
|
189
|
-
* `data.meta.pageSizes` without optional chaining.
|
|
190
|
-
*/
|
|
191
11
|
export type WhiteboardDataMeta = {
|
|
192
12
|
pageSizes: Record<string, WhiteboardPageSizeSnapshot>;
|
|
193
13
|
};
|
|
194
|
-
/**
|
|
195
|
-
* `WhiteboardDataInput` is the **input** shape accepted by
|
|
196
|
-
* `setWhiteboardData(json)`. All fields are optional because the
|
|
197
|
-
* runtime only reads `json?.pages`; callers can pass
|
|
198
|
-
* `{ pages: {...} }` without supplying `meta` or `version`. A round
|
|
199
|
-
* trip works (`setWhiteboardData(getWhiteboardData())`) because
|
|
200
|
-
* `WhiteboardData` is structurally assignable to `WhiteboardDataInput`.
|
|
201
|
-
*/
|
|
202
14
|
export type WhiteboardData = {
|
|
203
15
|
pages: Record<string, WhiteboardPageData>;
|
|
204
16
|
meta: WhiteboardDataMeta;
|
|
205
17
|
version: 1;
|
|
206
18
|
};
|
|
207
|
-
/**
|
|
208
|
-
* Registry items the host can attach for UI palettes (stickers,
|
|
209
|
-
* comments, etc.). The shape is intentionally extensible: `id` is the
|
|
210
|
-
* one field the runtime actually relies on (filter, dedup); everything
|
|
211
|
-
* else is consumer-typed via `unknown` so palettes for new domains
|
|
212
|
-
* don't need a contract change.
|
|
213
|
-
*/
|
|
214
19
|
export type WhiteboardDataInput = {
|
|
215
20
|
pages?: Record<string, WhiteboardPageData>;
|
|
216
21
|
meta?: WhiteboardDataMeta;
|
|
217
22
|
version?: number;
|
|
218
23
|
};
|
|
219
|
-
/**
|
|
220
|
-
* Event map for `whiteboard.on(name, fn)` / `whiteboard.emit(name, ...)`.
|
|
221
|
-
* Closed map (no DefaultEventMap fallback) because every event the
|
|
222
|
-
* runtime emits is enumerated here; an unknown event name should be a
|
|
223
|
-
* type error, not an `unknown[]` payload. SD-3213 follow-up to the
|
|
224
|
-
* EventEmitter `unknown[]` drain: that change only fixed the
|
|
225
|
-
* untyped-event fallback; without this map, listeners on Whiteboard
|
|
226
|
-
* still received `unknown[]` because no event was named.
|
|
227
|
-
*/
|
|
228
24
|
export type WhiteboardRegistryItem = {
|
|
229
25
|
id?: string | number;
|
|
230
26
|
[key: string]: unknown;
|
|
@@ -237,9 +33,27 @@ export type WhiteboardEventMap = {
|
|
|
237
33
|
change: [WhiteboardData];
|
|
238
34
|
};
|
|
239
35
|
export type WhiteboardInit = {
|
|
240
|
-
Renderer?:
|
|
36
|
+
Renderer?: WhiteboardPageRenderer;
|
|
241
37
|
enabled?: boolean;
|
|
242
38
|
onChange?: (data: WhiteboardData) => void;
|
|
243
39
|
onSetData?: (pages: WhiteboardPage[]) => void;
|
|
244
40
|
onEnabledChange?: (enabled: boolean) => void;
|
|
245
41
|
};
|
|
42
|
+
export declare class Whiteboard extends EventEmitter<WhiteboardEventMap> {
|
|
43
|
+
#private;
|
|
44
|
+
constructor(props?: WhiteboardInit);
|
|
45
|
+
register(type: string, items: WhiteboardRegistryItem[]): void;
|
|
46
|
+
getType(type: string): WhiteboardRegistryItem[] | undefined;
|
|
47
|
+
setTool(tool: string): void;
|
|
48
|
+
getTool(): string;
|
|
49
|
+
setEnabled(enabled: boolean): void;
|
|
50
|
+
isEnabled(): boolean;
|
|
51
|
+
setOpacity(opacity: number): void;
|
|
52
|
+
getOpacity(): number;
|
|
53
|
+
getPages(): WhiteboardPage[];
|
|
54
|
+
rerender(): void;
|
|
55
|
+
setPageSize(pageIndex: number, size: WhiteboardPageSize): void;
|
|
56
|
+
getPage(pageIndex: number): WhiteboardPage | undefined;
|
|
57
|
+
getWhiteboardData(): WhiteboardData;
|
|
58
|
+
setWhiteboardData(json: WhiteboardDataInput): void;
|
|
59
|
+
}
|