superdoc 2.28.0 → 2.29.0-next.13
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-Dm043CZP.es.js → FindReplaceSurface-BKVHzhQ4.es.js} +34 -26
- package/dist/chunks/{FindReplaceSurface-BRs3JrCq.cjs → FindReplaceSurface-BNDrJ6VS.cjs} +34 -26
- package/dist/chunks/{PasswordPromptSurface-DGjmN7A-.es.js → PasswordPromptSurface-6mF6Azda.es.js} +6 -4
- package/dist/chunks/{PasswordPromptSurface-BpqP4pUa.cjs → PasswordPromptSurface-BNkaztaP.cjs} +6 -4
- package/dist/chunks/{PdfViewer-Cg072l5d.cjs → PdfViewer-DmSkZehl.cjs} +72 -100
- package/dist/chunks/{PdfViewer-JHXZQZ9x.es.js → PdfViewer-aOWhUVI7.es.js} +69 -97
- 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-BbjHD1ul.es.js → create-super-doc-ui-DdT4b29f.es.js} +200 -65
- package/dist/chunks/{create-super-doc-ui-BfgYblyI.cjs → create-super-doc-ui-_SbygYQ4.cjs} +227 -68
- package/dist/chunks/is-finite-number-BEXgTRgc.cjs +11 -0
- package/dist/chunks/is-finite-number-BpL4F38c.es.js +6 -0
- 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/metadata-types.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +3 -3
- 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/lists/lists.d.ts +79 -79
- package/dist/document-api/src/replace/replace.d.ts +3 -2
- package/dist/document-api/src/tables/tables.d.ts +2 -1
- package/dist/document-api/src/types/address.d.ts +3 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/document-api/src/write/write.d.ts +18 -11
- package/dist/layout-engine/contracts/src/index.d.ts +1 -1
- package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +3 -1
- package/dist/layout-engine/painters/dom/src/page-content.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
- 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 +137 -61
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +533 -48
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +107 -23
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +74 -14
- package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
- package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +21 -8
- package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +24 -8
- package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +5 -3
- package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +60 -12
- package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +20 -6
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +0 -1
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +29 -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 +81 -16
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +49 -13
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +11 -0
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +14 -0
- package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +27 -9
- package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +53 -16
- package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +14 -6
- package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +25 -15
- 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-link-popover.d.ts +3 -3
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +4 -1
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +40 -26
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
- package/dist/superdoc/src/core/SuperDoc.d.ts +3 -8
- 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 -9
- 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 +9 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.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 +24 -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 +14 -23
- 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/is-finite-number.d.ts +1 -0
- package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
- package/dist/superdoc/src/helpers/object-guards.d.ts +1 -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 -11
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +7 -16
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +77 -16
- package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +5 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +85 -5
- package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +44 -12
- package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +32 -9
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +181 -36
- package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +133 -22
- package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +62 -23
- package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +24 -6
- package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +7 -3
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +101 -16
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +31 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +80 -11
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +113 -33
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +16 -6
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +10 -20
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +12 -45
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- 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 +67 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -49
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +7 -27
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
- 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 +372 -123
- package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -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/tracked-change-identity.d.ts +19 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +21 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
- package/dist/superdoc/src/stores/superdoc-store.d.ts +1117 -370
- package/dist/superdoc.cjs +1923 -2838
- package/dist/superdoc.es.js +1863 -2783
- 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 +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +0 -104
- package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
- package/dist/superdoc/src/main.d.ts +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DocumentApiSurface } from '../index.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { InsertInput } from '../insert/insert.js';
|
|
3
|
+
import { ReplaceInput, TrackedReplaceMutationOptions } from '../replace/replace.js';
|
|
4
4
|
import { BodyStoryLocator } from '../types/story.types.js';
|
|
5
5
|
import { OperationCancellation } from '../write/operation-cancellation.js';
|
|
6
|
-
import {
|
|
6
|
+
import { TrackedRichContentMutationOptions } from '../write/write.js';
|
|
7
7
|
import { OPERATION_DEFINITIONS } from './operation-definitions.js';
|
|
8
8
|
import { OperationId } from './types.js';
|
|
9
9
|
type ResolveMemberPath<T, Path extends string> = Path extends `${infer Head}.${infer Tail}` ? Head extends keyof T ? ResolveMemberPath<T[Head], Tail> : never : Path extends keyof T ? T[Path] : never;
|
|
@@ -32,19 +32,20 @@ type MethodInvokeRequest<T extends OperationId> = OperationRegistry[T]['options'
|
|
|
32
32
|
input: OperationRegistry[T]['input'];
|
|
33
33
|
options?: OperationRegistry[T]['options'];
|
|
34
34
|
};
|
|
35
|
-
type
|
|
35
|
+
type AttributedInvokeRequest<T extends OperationId> = T extends 'insert' ? {
|
|
36
36
|
operationId: T;
|
|
37
|
-
input:
|
|
38
|
-
options:
|
|
37
|
+
input: InsertInput;
|
|
38
|
+
options: TrackedRichContentMutationOptions & OperationCancellation;
|
|
39
39
|
} : T extends 'replace' ? {
|
|
40
40
|
operationId: T;
|
|
41
|
-
input: Exclude<
|
|
41
|
+
input: Exclude<ReplaceInput, {
|
|
42
42
|
target: BodyStoryLocator;
|
|
43
|
+
text: string;
|
|
43
44
|
}>;
|
|
44
|
-
options:
|
|
45
|
+
options: TrackedReplaceMutationOptions;
|
|
45
46
|
} : never;
|
|
46
47
|
/** Typed invoke request narrowed by `operationId` and supported content shape. */
|
|
47
|
-
export type InvokeRequest<T extends OperationId> = MethodInvokeRequest<T> |
|
|
48
|
+
export type InvokeRequest<T extends OperationId> = MethodInvokeRequest<T> | AttributedInvokeRequest<T>;
|
|
48
49
|
/** Typed invoke result narrowed by `operationId`. */
|
|
49
50
|
export type InvokeResult<T extends OperationId> = T extends 'mutations.preview' | 'mutations.apply' ? Promise<OperationRegistry[T]['output']> : T extends 'plan.execute' ? OperationRegistry[T]['output'] | Promise<OperationRegistry[T]['output']> : OperationRegistry[T]['output'];
|
|
50
51
|
export type OperationCall<T extends OperationId> = InvokeRequest<T> extends infer Request ? (Request extends unknown ? Omit<Request, 'operationId'> : never) : never;
|
|
@@ -26,12 +26,12 @@ import { InsertInput } from './insert/insert.js';
|
|
|
26
26
|
import { ResolveRangeInput, ResolveRangeOutput } from './ranges/ranges.types.js';
|
|
27
27
|
import { SelectionApi, SelectionAdapter } from './selection/selection.js';
|
|
28
28
|
import { ListsAdapter, ListsApi } from './lists/lists.js';
|
|
29
|
-
import { ReplaceInput, ReplaceMutationOptions } from './replace/replace.js';
|
|
29
|
+
import { ReplaceInput, ReplaceMutationOptions, TrackedReplaceMutationOptions } from './replace/replace.js';
|
|
30
30
|
import { CreateAdapter, CreateApi } from './create/create.js';
|
|
31
31
|
import { BlocksAdapter, BlocksApi } from './blocks/blocks.js';
|
|
32
32
|
import { TableLocator, TableMutationResult, TablesConvertFromTextInput, TablesMoveInput, TablesSplitInput, TablesConvertToTextInput, TablesSetLayoutInput, TablesInsertRowInput, TablesDeleteRowInput, TablesMoveRowInput, TablesSetRowHeightInput, TablesDistributeRowsInput, TablesSetRowOptionsInput, TablesInsertColumnInput, TablesDeleteColumnInput, TablesMoveColumnInput, TablesSetColumnWidthInput, TablesDistributeColumnsInput, TablesInsertCellInput, TablesDeleteCellInput, TablesMergeCellsInput, TablesUnmergeCellsInput, TablesSplitCellInput, TablesSetCellPropertiesInput, TablesSetCellTextInput, TablesSortInput, TablesSetAltTextInput, TablesSetStyleInput, TablesClearStyleInput, TablesSetStyleOptionInput, TablesSetBorderInput, TablesClearBorderInput, TablesApplyBorderPresetInput, TablesSetShadingInput, TablesClearShadingInput, TablesSetTablePaddingInput, TablesSetCellPaddingInput, TablesSetCellSpacingInput, TablesClearCellSpacingInput, TablesApplyStyleInput, TablesSetBordersInput, TablesSetTableOptionsInput, TablesApplyPresetInput, TablesGetInput, TablesGetOutput, TablesGetCellsInput, TablesGetCellsOutput, TablesGetPropertiesInput, TablesGetPropertiesOutput, TablesGetStylesInput, TablesGetStylesOutput, TablesSetDefaultStyleInput, TablesClearDefaultStyleInput } from './types/table-operations.types.js';
|
|
33
33
|
import { TrackChangesAdapter, TrackChangesApi } from './track-changes/track-changes.js';
|
|
34
|
-
import { MutationOptions, RichContentMutationOptions,
|
|
34
|
+
import { MutationOptions, RichContentMutationOptions, TrackedRichContentMutationOptions, TextMutationOptions, WriteAdapter } from './write/write.js';
|
|
35
35
|
import { OperationCancellation } from './write/operation-cancellation.js';
|
|
36
36
|
import { SelectionMutationAdapter } from './selection-mutation.js';
|
|
37
37
|
import { CapabilitiesAdapter, DocumentApiCapabilities, OperationCapabilityResolveInput, OperationCapabilityResolveResult } from './capabilities/capabilities.js';
|
|
@@ -109,7 +109,7 @@ export type { GetMarkdownAdapter, GetMarkdownInput } from './get-markdown/get-ma
|
|
|
109
109
|
export type { GetHtmlAdapter, GetHtmlInput } from './get-html/get-html.js';
|
|
110
110
|
export type { InfoAdapter, InfoInput } from './info/info.js';
|
|
111
111
|
export type { ExtractAdapter, ExtractInput } from './extract/extract.js';
|
|
112
|
-
export type { WriteAdapter, WriteRequest, RichContentMutationOptions, TrackedTextMutationOptions, TextMutationOptions, } from './write/write.js';
|
|
112
|
+
export type { WriteAdapter, WriteRequest, RichContentMutationOptions, TrackedAttribution, TrackedRichContentMutationOptions, TrackedTextMutationOptions, TextMutationOptions, } from './write/write.js';
|
|
113
113
|
export type { OperationCancellation, OperationCancellationCode } from './write/operation-cancellation.js';
|
|
114
114
|
export { OperationCancellationError, assertOperationCanStart, indeterminateOperation, splitOperationCancellation, } from './write/operation-cancellation.js';
|
|
115
115
|
export type { FormatInlineAliasApi, FormatInlineAliasInput, FormatBoldInput, FormatItalicInput, FormatRangeInput, FormatUnderlineInput, FormatStrikethroughInput, StyleApplyInput, StyleApplyOptions, } from './format/format.js';
|
|
@@ -185,7 +185,7 @@ export type { MutationReceiptBridgeContext, StructuralReceiptParams } from './re
|
|
|
185
185
|
export { isBlockNodeAddress } from './validation-primitives.js';
|
|
186
186
|
export type { InsertInput, InsertContentType, TextInsertInput, PlainTextInsertInput, RichContentInsertInput, NativeOoxmlInsertInput, LegacyInsertInput, } from './insert/insert.js';
|
|
187
187
|
export { isStructuralInsertInput } from './insert/insert.js';
|
|
188
|
-
export type { ReplaceInput, TextReplaceInput, TextReplacementGranularity, RichContentReplaceInput, ReplaceMutationOptions, NativeOoxmlReplaceInput, SnapshotReplaceInput, ParagraphTextReplaceInput, } from './replace/replace.js';
|
|
188
|
+
export type { ReplaceInput, TextReplaceInput, TextReplacementGranularity, RichContentReplaceInput, ReplaceMutationOptions, TrackedReplaceMutationOptions, NativeOoxmlReplaceInput, SnapshotReplaceInput, ParagraphTextReplaceInput, } from './replace/replace.js';
|
|
189
189
|
export { executeReplace, isStructuralReplaceInput, isRichContentReplaceInput, TEXT_REPLACEMENT_GRANULARITIES, isTextReplacementGranularity, isSingleParagraphVisibleTextSelection, } from './replace/replace.js';
|
|
190
190
|
export { executeFind } from './find/find.js';
|
|
191
191
|
export { validateDocumentFragment, validateSDFragment } from './validation/fragment-validator.js';
|
|
@@ -362,14 +362,15 @@ export interface DocumentApiSurface {
|
|
|
362
362
|
* Insert content at a target location.
|
|
363
363
|
* If target is omitted, inserts at the end of the document.
|
|
364
364
|
*/
|
|
365
|
-
insert(input:
|
|
365
|
+
insert(input: InsertInput, options: TrackedRichContentMutationOptions & OperationCancellation): SDMutationReceipt;
|
|
366
366
|
insert(input: InsertInput, options?: RichContentMutationOptions & OperationCancellation): SDMutationReceipt;
|
|
367
367
|
/**
|
|
368
368
|
* Replace text at a target range.
|
|
369
369
|
*/
|
|
370
|
-
replace(input: Exclude<
|
|
370
|
+
replace(input: Exclude<ReplaceInput, {
|
|
371
371
|
target: import('./types/story.types.js').BodyStoryLocator;
|
|
372
|
-
|
|
372
|
+
text: string;
|
|
373
|
+
}>, options: TrackedReplaceMutationOptions): SDMutationReceipt;
|
|
373
374
|
replace(input: ReplaceInput, options?: ReplaceMutationOptions): SDMutationReceipt;
|
|
374
375
|
/**
|
|
375
376
|
* Delete text at a target range.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OoxmlContentSource } from '../selection/selection.types.js';
|
|
2
|
-
import { RichContentMutationOptions, TextMutationOptions, WriteAdapter } from '../write/write.js';
|
|
2
|
+
import { RichContentMutationOptions, TextMutationOptions, TrackedRichContentMutationOptions, WriteAdapter } from '../write/write.js';
|
|
3
3
|
import { SelectionTarget, TargetLocator, SDMutationReceipt } from '../types/index.js';
|
|
4
4
|
import { SDInsertInput } from '../types/structural-input.js';
|
|
5
5
|
import { StoryLocator } from '../types/story.types.js';
|
|
@@ -80,5 +80,5 @@ export declare function validateInsertInput(input: unknown): asserts input is In
|
|
|
80
80
|
* @param options - Optional mutation options (changeMode, dryRun, expectedRevision).
|
|
81
81
|
* @returns Receipt indicating success/failure and mutation metadata.
|
|
82
82
|
*/
|
|
83
|
-
export declare function executeInsert(selectionAdapter: SelectionMutationAdapter, writeAdapter: WriteAdapter, input: InsertInput, options?: (RichContentMutationOptions | TextMutationOptions) & OperationCancellation): SDMutationReceipt;
|
|
83
|
+
export declare function executeInsert(selectionAdapter: SelectionMutationAdapter, writeAdapter: WriteAdapter, input: InsertInput, options?: (RichContentMutationOptions | TrackedRichContentMutationOptions | TextMutationOptions) & OperationCancellation): SDMutationReceipt;
|
|
84
84
|
export {};
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextMutationOptions } from '../write/write.js';
|
|
2
2
|
import { ListInsertInput, ListsGetInput, ListsInsertResult, ListsListQuery, ListsListResult, ListsMutateItemResult, ListTargetInput, ListItemInfo, ListsCreateInput, ListsCreateResult, ListsAttachInput, ListsDetachInput, ListsDetachResult, ListsDeleteInput, ListsDeleteResult, ListsJoinInput, ListsJoinResult, ListsCanJoinInput, ListsCanJoinResult, ListsSeparateInput, ListsSeparateResult, ListsMergeInput, ListsMergeResult, ListsSplitInput, ListsSplitResult, ListsSetLevelInput, ListsSetValueInput, ListsContinuePreviousInput, ListsCanContinuePreviousInput, ListsCanContinuePreviousResult, ListsSetLevelRestartInput, ListsConvertToTextInput, ListsConvertToTextResult, ListsApplyTemplateInput, ListsApplyPresetInput, ListsCaptureTemplateInput, ListsCaptureTemplateResult, ListsSetLevelNumberingInput, ListsSetLevelBulletInput, ListsSetLevelPictureBulletInput, ListsSetLevelAlignmentInput, ListsSetLevelIndentsInput, ListsSetLevelTrailingCharacterInput, ListsSetLevelMarkerFontInput, ListsClearLevelOverridesInput, ListsSetTypeInput, ListsGetStyleInput, ListsGetStyleResult, ListsApplyStyleInput, ListsRestartAtInput, ListsSetLevelNumberStyleInput, ListsSetLevelTextInput, ListsSetLevelStartInput, ListsSetLevelLayoutInput, ListsGetStateInput, ListsGetStateResult, ListsApplyInput, ListsContinueV2Input, ListsRestartV2Input, ListsRemoveV2Input } from './lists.types.js';
|
|
3
3
|
export type { ListInsertInput, ListsGetInput, ListsInsertResult, ListsListQuery, ListsListResult, ListsMutateItemResult, ListTargetInput, ListItemInfo, ListsCreateInput, ListsCreateResult, ListsAttachInput, ListsDetachInput, ListsDetachResult, ListsDeleteInput, ListsDeleteResult, ListsJoinInput, ListsJoinResult, ListsCanJoinInput, ListsCanJoinResult, ListsSeparateInput, ListsSeparateResult, ListsMergeInput, ListsMergeResult, ListsSplitInput, ListsSplitResult, ListsSetLevelInput, ListsSetValueInput, ListsContinuePreviousInput, ListsCanContinuePreviousInput, ListsCanContinuePreviousResult, ListsSetLevelRestartInput, ListsConvertToTextInput, ListsConvertToTextResult, ListsApplyTemplateInput, ListsApplyPresetInput, ListsCaptureTemplateInput, ListsCaptureTemplateResult, ListsSetLevelNumberingInput, ListsSetLevelBulletInput, ListsSetLevelPictureBulletInput, ListsSetLevelAlignmentInput, ListsSetLevelIndentsInput, ListsSetLevelTrailingCharacterInput, ListsSetLevelMarkerFontInput, ListsClearLevelOverridesInput, ListsSetTypeInput, ListsGetStyleInput, ListsGetStyleResult, ListsApplyStyleInput, ListsRestartAtInput, ListsSetLevelNumberStyleInput, ListsSetLevelTextInput, ListsSetLevelStartInput, ListsSetLevelLayoutInput, ListsBlockTarget, ListsGetStateInput, ListsGetStateResult, ListsApplyInput, ListsContinueV2Input, ListsRestartV2Input, ListsRemoveV2Input, } from './lists.types.js';
|
|
4
4
|
export interface ListsAdapter {
|
|
5
5
|
list(query?: ListsListQuery): ListsListResult;
|
|
6
6
|
get(input: ListsGetInput): ListItemInfo;
|
|
7
|
-
insert(input: ListInsertInput, options?:
|
|
8
|
-
indent(input: ListTargetInput, options?:
|
|
9
|
-
outdent(input: ListTargetInput, options?:
|
|
10
|
-
create(input: ListsCreateInput, options?:
|
|
11
|
-
attach(input: ListsAttachInput, options?:
|
|
12
|
-
detach(input: ListsDetachInput, options?:
|
|
13
|
-
delete(input: ListsDeleteInput, options?:
|
|
14
|
-
join(input: ListsJoinInput, options?:
|
|
7
|
+
insert(input: ListInsertInput, options?: TextMutationOptions): ListsInsertResult;
|
|
8
|
+
indent(input: ListTargetInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
9
|
+
outdent(input: ListTargetInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
10
|
+
create(input: ListsCreateInput, options?: TextMutationOptions): ListsCreateResult;
|
|
11
|
+
attach(input: ListsAttachInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
12
|
+
detach(input: ListsDetachInput, options?: TextMutationOptions): ListsDetachResult;
|
|
13
|
+
delete(input: ListsDeleteInput, options?: TextMutationOptions): ListsDeleteResult;
|
|
14
|
+
join(input: ListsJoinInput, options?: TextMutationOptions): ListsJoinResult;
|
|
15
15
|
canJoin(input: ListsCanJoinInput): ListsCanJoinResult;
|
|
16
|
-
separate(input: ListsSeparateInput, options?:
|
|
17
|
-
merge(input: ListsMergeInput, options?:
|
|
18
|
-
split(input: ListsSplitInput, options?:
|
|
19
|
-
setLevel(input: ListsSetLevelInput, options?:
|
|
20
|
-
setValue(input: ListsSetValueInput, options?:
|
|
21
|
-
continuePrevious(input: ListsContinuePreviousInput, options?:
|
|
16
|
+
separate(input: ListsSeparateInput, options?: TextMutationOptions): ListsSeparateResult;
|
|
17
|
+
merge(input: ListsMergeInput, options?: TextMutationOptions): ListsMergeResult;
|
|
18
|
+
split(input: ListsSplitInput, options?: TextMutationOptions): ListsSplitResult;
|
|
19
|
+
setLevel(input: ListsSetLevelInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
20
|
+
setValue(input: ListsSetValueInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
21
|
+
continuePrevious(input: ListsContinuePreviousInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
22
22
|
canContinuePrevious(input: ListsCanContinuePreviousInput): ListsCanContinuePreviousResult;
|
|
23
|
-
setLevelRestart(input: ListsSetLevelRestartInput, options?:
|
|
24
|
-
convertToText(input: ListsConvertToTextInput, options?:
|
|
25
|
-
applyTemplate(input: ListsApplyTemplateInput, options?:
|
|
26
|
-
applyPreset(input: ListsApplyPresetInput, options?:
|
|
23
|
+
setLevelRestart(input: ListsSetLevelRestartInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
24
|
+
convertToText(input: ListsConvertToTextInput, options?: TextMutationOptions): ListsConvertToTextResult;
|
|
25
|
+
applyTemplate(input: ListsApplyTemplateInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
26
|
+
applyPreset(input: ListsApplyPresetInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
27
27
|
captureTemplate(input: ListsCaptureTemplateInput): ListsCaptureTemplateResult;
|
|
28
|
-
setLevelNumbering(input: ListsSetLevelNumberingInput, options?:
|
|
29
|
-
setLevelBullet(input: ListsSetLevelBulletInput, options?:
|
|
30
|
-
setLevelPictureBullet(input: ListsSetLevelPictureBulletInput, options?:
|
|
31
|
-
setLevelAlignment(input: ListsSetLevelAlignmentInput, options?:
|
|
32
|
-
setLevelIndents(input: ListsSetLevelIndentsInput, options?:
|
|
33
|
-
setLevelTrailingCharacter(input: ListsSetLevelTrailingCharacterInput, options?:
|
|
34
|
-
setLevelMarkerFont(input: ListsSetLevelMarkerFontInput, options?:
|
|
35
|
-
clearLevelOverrides(input: ListsClearLevelOverridesInput, options?:
|
|
36
|
-
setType(input: ListsSetTypeInput, options?:
|
|
28
|
+
setLevelNumbering(input: ListsSetLevelNumberingInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
29
|
+
setLevelBullet(input: ListsSetLevelBulletInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
30
|
+
setLevelPictureBullet(input: ListsSetLevelPictureBulletInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
31
|
+
setLevelAlignment(input: ListsSetLevelAlignmentInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
32
|
+
setLevelIndents(input: ListsSetLevelIndentsInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
33
|
+
setLevelTrailingCharacter(input: ListsSetLevelTrailingCharacterInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
34
|
+
setLevelMarkerFont(input: ListsSetLevelMarkerFontInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
35
|
+
clearLevelOverrides(input: ListsClearLevelOverridesInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
36
|
+
setType(input: ListsSetTypeInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
37
37
|
getStyle(input: ListsGetStyleInput): ListsGetStyleResult;
|
|
38
|
-
applyStyle(input: ListsApplyStyleInput, options?:
|
|
39
|
-
restartAt(input: ListsRestartAtInput, options?:
|
|
40
|
-
setLevelNumberStyle(input: ListsSetLevelNumberStyleInput, options?:
|
|
41
|
-
setLevelText(input: ListsSetLevelTextInput, options?:
|
|
42
|
-
setLevelStart(input: ListsSetLevelStartInput, options?:
|
|
43
|
-
setLevelLayout(input: ListsSetLevelLayoutInput, options?:
|
|
38
|
+
applyStyle(input: ListsApplyStyleInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
39
|
+
restartAt(input: ListsRestartAtInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
40
|
+
setLevelNumberStyle(input: ListsSetLevelNumberStyleInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
41
|
+
setLevelText(input: ListsSetLevelTextInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
42
|
+
setLevelStart(input: ListsSetLevelStartInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
43
|
+
setLevelLayout(input: ListsSetLevelLayoutInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
44
44
|
getState?(input: ListsGetStateInput): ListsGetStateResult;
|
|
45
|
-
apply?(input: ListsApplyInput, options?:
|
|
46
|
-
continue?(input: ListsContinueV2Input, options?:
|
|
47
|
-
restart?(input: ListsRestartV2Input, options?:
|
|
48
|
-
remove?(input: ListsRemoveV2Input, options?:
|
|
45
|
+
apply?(input: ListsApplyInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
46
|
+
continue?(input: ListsContinueV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
47
|
+
restart?(input: ListsRestartV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
48
|
+
remove?(input: ListsRemoveV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
49
49
|
}
|
|
50
50
|
export interface ListsApi extends ListsAdapter {
|
|
51
51
|
getState(input: ListsGetStateInput): ListsGetStateResult;
|
|
52
|
-
apply(input: ListsApplyInput, options?:
|
|
53
|
-
continue(input: ListsContinueV2Input, options?:
|
|
54
|
-
restart(input: ListsRestartV2Input, options?:
|
|
55
|
-
remove(input: ListsRemoveV2Input, options?:
|
|
52
|
+
apply(input: ListsApplyInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
53
|
+
continue(input: ListsContinueV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
54
|
+
restart(input: ListsRestartV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
55
|
+
remove(input: ListsRemoveV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
56
56
|
}
|
|
57
57
|
export declare function executeListsList(adapter: ListsAdapter, query?: ListsListQuery): ListsListResult;
|
|
58
58
|
export declare function executeListsGet(adapter: ListsAdapter, input: ListsGetInput): ListItemInfo;
|
|
59
|
-
export declare function executeListsInsert(adapter: ListsAdapter, input: ListInsertInput, options?:
|
|
60
|
-
export declare function executeListsIndent(adapter: ListsAdapter, input: ListTargetInput, options?:
|
|
61
|
-
export declare function executeListsOutdent(adapter: ListsAdapter, input: ListTargetInput, options?:
|
|
62
|
-
export declare function executeListsCreate(adapter: ListsAdapter, input: ListsCreateInput, options?:
|
|
63
|
-
export declare function executeListsAttach(adapter: ListsAdapter, input: ListsAttachInput, options?:
|
|
64
|
-
export declare function executeListsDetach(adapter: ListsAdapter, input: ListsDetachInput, options?:
|
|
65
|
-
export declare function executeListsDelete(adapter: ListsAdapter, input: ListsDeleteInput, options?:
|
|
66
|
-
export declare function executeListsJoin(adapter: ListsAdapter, input: ListsJoinInput, options?:
|
|
59
|
+
export declare function executeListsInsert(adapter: ListsAdapter, input: ListInsertInput, options?: TextMutationOptions): ListsInsertResult;
|
|
60
|
+
export declare function executeListsIndent(adapter: ListsAdapter, input: ListTargetInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
61
|
+
export declare function executeListsOutdent(adapter: ListsAdapter, input: ListTargetInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
62
|
+
export declare function executeListsCreate(adapter: ListsAdapter, input: ListsCreateInput, options?: TextMutationOptions): ListsCreateResult;
|
|
63
|
+
export declare function executeListsAttach(adapter: ListsAdapter, input: ListsAttachInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
64
|
+
export declare function executeListsDetach(adapter: ListsAdapter, input: ListsDetachInput, options?: TextMutationOptions): ListsDetachResult;
|
|
65
|
+
export declare function executeListsDelete(adapter: ListsAdapter, input: ListsDeleteInput, options?: TextMutationOptions): ListsDeleteResult;
|
|
66
|
+
export declare function executeListsJoin(adapter: ListsAdapter, input: ListsJoinInput, options?: TextMutationOptions): ListsJoinResult;
|
|
67
67
|
export declare function executeListsCanJoin(adapter: ListsAdapter, input: ListsCanJoinInput): ListsCanJoinResult;
|
|
68
|
-
export declare function executeListsSeparate(adapter: ListsAdapter, input: ListsSeparateInput, options?:
|
|
69
|
-
export declare function executeListsMerge(adapter: ListsAdapter, input: ListsMergeInput, options?:
|
|
70
|
-
export declare function executeListsSplit(adapter: ListsAdapter, input: ListsSplitInput, options?:
|
|
71
|
-
export declare function executeListsSetLevel(adapter: ListsAdapter, input: ListsSetLevelInput, options?:
|
|
72
|
-
export declare function executeListsSetValue(adapter: ListsAdapter, input: ListsSetValueInput, options?:
|
|
73
|
-
export declare function executeListsContinuePrevious(adapter: ListsAdapter, input: ListsContinuePreviousInput, options?:
|
|
68
|
+
export declare function executeListsSeparate(adapter: ListsAdapter, input: ListsSeparateInput, options?: TextMutationOptions): ListsSeparateResult;
|
|
69
|
+
export declare function executeListsMerge(adapter: ListsAdapter, input: ListsMergeInput, options?: TextMutationOptions): ListsMergeResult;
|
|
70
|
+
export declare function executeListsSplit(adapter: ListsAdapter, input: ListsSplitInput, options?: TextMutationOptions): ListsSplitResult;
|
|
71
|
+
export declare function executeListsSetLevel(adapter: ListsAdapter, input: ListsSetLevelInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
72
|
+
export declare function executeListsSetValue(adapter: ListsAdapter, input: ListsSetValueInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
73
|
+
export declare function executeListsContinuePrevious(adapter: ListsAdapter, input: ListsContinuePreviousInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
74
74
|
export declare function executeListsCanContinuePrevious(adapter: ListsAdapter, input: ListsCanContinuePreviousInput): ListsCanContinuePreviousResult;
|
|
75
|
-
export declare function executeListsSetLevelRestart(adapter: ListsAdapter, input: ListsSetLevelRestartInput, options?:
|
|
76
|
-
export declare function executeListsConvertToText(adapter: ListsAdapter, input: ListsConvertToTextInput, options?:
|
|
77
|
-
export declare function executeListsApplyTemplate(adapter: ListsAdapter, input: ListsApplyTemplateInput, options?:
|
|
78
|
-
export declare function executeListsApplyPreset(adapter: ListsAdapter, input: ListsApplyPresetInput, options?:
|
|
75
|
+
export declare function executeListsSetLevelRestart(adapter: ListsAdapter, input: ListsSetLevelRestartInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
76
|
+
export declare function executeListsConvertToText(adapter: ListsAdapter, input: ListsConvertToTextInput, options?: TextMutationOptions): ListsConvertToTextResult;
|
|
77
|
+
export declare function executeListsApplyTemplate(adapter: ListsAdapter, input: ListsApplyTemplateInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
78
|
+
export declare function executeListsApplyPreset(adapter: ListsAdapter, input: ListsApplyPresetInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
79
79
|
export declare function executeListsCaptureTemplate(adapter: ListsAdapter, input: ListsCaptureTemplateInput): ListsCaptureTemplateResult;
|
|
80
|
-
export declare function executeListsSetLevelNumbering(adapter: ListsAdapter, input: ListsSetLevelNumberingInput, options?:
|
|
81
|
-
export declare function executeListsSetLevelBullet(adapter: ListsAdapter, input: ListsSetLevelBulletInput, options?:
|
|
82
|
-
export declare function executeListsSetLevelPictureBullet(adapter: ListsAdapter, input: ListsSetLevelPictureBulletInput, options?:
|
|
83
|
-
export declare function executeListsSetLevelAlignment(adapter: ListsAdapter, input: ListsSetLevelAlignmentInput, options?:
|
|
84
|
-
export declare function executeListsSetLevelIndents(adapter: ListsAdapter, input: ListsSetLevelIndentsInput, options?:
|
|
85
|
-
export declare function executeListsSetLevelTrailingCharacter(adapter: ListsAdapter, input: ListsSetLevelTrailingCharacterInput, options?:
|
|
86
|
-
export declare function executeListsSetLevelMarkerFont(adapter: ListsAdapter, input: ListsSetLevelMarkerFontInput, options?:
|
|
87
|
-
export declare function executeListsClearLevelOverrides(adapter: ListsAdapter, input: ListsClearLevelOverridesInput, options?:
|
|
88
|
-
export declare function executeListsSetType(adapter: ListsAdapter, input: ListsSetTypeInput, options?:
|
|
80
|
+
export declare function executeListsSetLevelNumbering(adapter: ListsAdapter, input: ListsSetLevelNumberingInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
81
|
+
export declare function executeListsSetLevelBullet(adapter: ListsAdapter, input: ListsSetLevelBulletInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
82
|
+
export declare function executeListsSetLevelPictureBullet(adapter: ListsAdapter, input: ListsSetLevelPictureBulletInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
83
|
+
export declare function executeListsSetLevelAlignment(adapter: ListsAdapter, input: ListsSetLevelAlignmentInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
84
|
+
export declare function executeListsSetLevelIndents(adapter: ListsAdapter, input: ListsSetLevelIndentsInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
85
|
+
export declare function executeListsSetLevelTrailingCharacter(adapter: ListsAdapter, input: ListsSetLevelTrailingCharacterInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
86
|
+
export declare function executeListsSetLevelMarkerFont(adapter: ListsAdapter, input: ListsSetLevelMarkerFontInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
87
|
+
export declare function executeListsClearLevelOverrides(adapter: ListsAdapter, input: ListsClearLevelOverridesInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
88
|
+
export declare function executeListsSetType(adapter: ListsAdapter, input: ListsSetTypeInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
89
89
|
export declare function executeListsGetStyle(adapter: ListsAdapter, input: ListsGetStyleInput): ListsGetStyleResult;
|
|
90
|
-
export declare function executeListsApplyStyle(adapter: ListsAdapter, input: ListsApplyStyleInput, options?:
|
|
91
|
-
export declare function executeListsRestartAt(adapter: ListsAdapter, input: ListsRestartAtInput, options?:
|
|
92
|
-
export declare function executeListsSetLevelNumberStyle(adapter: ListsAdapter, input: ListsSetLevelNumberStyleInput, options?:
|
|
93
|
-
export declare function executeListsSetLevelText(adapter: ListsAdapter, input: ListsSetLevelTextInput, options?:
|
|
94
|
-
export declare function executeListsSetLevelStart(adapter: ListsAdapter, input: ListsSetLevelStartInput, options?:
|
|
95
|
-
export declare function executeListsSetLevelLayout(adapter: ListsAdapter, input: ListsSetLevelLayoutInput, options?:
|
|
90
|
+
export declare function executeListsApplyStyle(adapter: ListsAdapter, input: ListsApplyStyleInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
91
|
+
export declare function executeListsRestartAt(adapter: ListsAdapter, input: ListsRestartAtInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
92
|
+
export declare function executeListsSetLevelNumberStyle(adapter: ListsAdapter, input: ListsSetLevelNumberStyleInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
93
|
+
export declare function executeListsSetLevelText(adapter: ListsAdapter, input: ListsSetLevelTextInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
94
|
+
export declare function executeListsSetLevelStart(adapter: ListsAdapter, input: ListsSetLevelStartInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
95
|
+
export declare function executeListsSetLevelLayout(adapter: ListsAdapter, input: ListsSetLevelLayoutInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
96
96
|
export declare function executeListsGetState(adapter: ListsAdapter, input: ListsGetStateInput): ListsGetStateResult;
|
|
97
|
-
export declare function executeListsApply(adapter: ListsAdapter, input: ListsApplyInput, options?:
|
|
98
|
-
export declare function executeListsContinueV2(adapter: ListsAdapter, input: ListsContinueV2Input, options?:
|
|
99
|
-
export declare function executeListsRestartV2(adapter: ListsAdapter, input: ListsRestartV2Input, options?:
|
|
100
|
-
export declare function executeListsRemoveV2(adapter: ListsAdapter, input: ListsRemoveV2Input, options?:
|
|
97
|
+
export declare function executeListsApply(adapter: ListsAdapter, input: ListsApplyInput, options?: TextMutationOptions): ListsMutateItemResult;
|
|
98
|
+
export declare function executeListsContinueV2(adapter: ListsAdapter, input: ListsContinueV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
99
|
+
export declare function executeListsRestartV2(adapter: ListsAdapter, input: ListsRestartV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
100
|
+
export declare function executeListsRemoveV2(adapter: ListsAdapter, input: ListsRemoveV2Input, options?: TextMutationOptions): ListsMutateItemResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OoxmlContentSource } from '../selection/selection.types.js';
|
|
2
|
-
import { RichContentMutationOptions, TextMutationOptions, WriteAdapter } from '../write/write.js';
|
|
2
|
+
import { RichContentMutationOptions, TextMutationOptions, TrackedRichContentMutationOptions, WriteAdapter } from '../write/write.js';
|
|
3
3
|
import { SelectionTarget } from '../types/address.js';
|
|
4
4
|
import { SDMutationReceipt } from '../types/sd-contract.js';
|
|
5
5
|
import { SDReplaceInput } from '../types/structural-input.js';
|
|
@@ -81,7 +81,8 @@ export interface ReplaceMutationOptions extends RichContentMutationOptions {
|
|
|
81
81
|
/** Compare the addressed paragraph with an unchanged retained snapshot before committing. */
|
|
82
82
|
expectedSnapshotId?: string;
|
|
83
83
|
}
|
|
84
|
-
type
|
|
84
|
+
export type TrackedReplaceMutationOptions = TrackedRichContentMutationOptions & Pick<ReplaceMutationOptions, 'replaceMode' | 'expectedSnapshotId'>;
|
|
85
|
+
type ReplaceExecutionOptions = ReplaceMutationOptions | TrackedReplaceMutationOptions | (TextMutationOptions & {
|
|
85
86
|
replaceMode?: never;
|
|
86
87
|
expectedSnapshotId?: never;
|
|
87
88
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MutationOptions } from '../write/write.js';
|
|
2
|
-
import { TablesApplyStyleInput, TablesSetBordersInput, TablesSetCellPaddingInput, TablesSetLayoutInput, TablesSetTableOptionsInput } from '../types/table-operations.types.js';
|
|
2
|
+
import { TablesApplyStyleInput, TablesSetBordersInput, TablesSetCellPaddingInput, TablesSetLayoutInput, TablesSetTableOptionsInput, TablesSortInput } from '../types/table-operations.types.js';
|
|
3
3
|
type RowLocatorInput = {
|
|
4
4
|
target?: unknown;
|
|
5
5
|
nodeId?: unknown;
|
|
@@ -52,6 +52,7 @@ export declare function executeTableLocatorOp<TInput extends {
|
|
|
52
52
|
nodeId?: unknown;
|
|
53
53
|
}, TResult>(operationName: string, adapter: (input: TInput, options?: MutationOptions) => TResult, input: TInput, options?: MutationOptions): TResult;
|
|
54
54
|
export declare function executeTablesSetLayoutOp<TResult>(adapter: (input: TablesSetLayoutInput, options?: MutationOptions) => TResult, input: TablesSetLayoutInput, options?: MutationOptions): TResult;
|
|
55
|
+
export declare function executeTablesSortOp<TResult>(adapter: (input: TablesSortInput, options?: MutationOptions) => TResult, input: TablesSortInput, options?: MutationOptions): TResult;
|
|
55
56
|
export declare function executeRowLocatorOp<TInput extends RowLocatorInput, TResult>(operationName: string, adapter: (input: TInput, options?: MutationOptions) => TResult, input: TInput, options?: MutationOptions, rowLocatorOptions?: RowLocatorOptions): TResult;
|
|
56
57
|
export declare function executeCellOrTableScopedCellLocatorOp<TInput extends CellOrTableScopedCellLocatorInput, TResult>(operationName: string, adapter: (input: TInput, options?: MutationOptions) => TResult, input: TInput, options?: MutationOptions): TResult;
|
|
57
58
|
/**
|
|
@@ -17,6 +17,7 @@ export type Range = {
|
|
|
17
17
|
export type TextCoordinateSpace = 'visible' | 'tracked';
|
|
18
18
|
export type TextAddress = {
|
|
19
19
|
kind: 'text';
|
|
20
|
+
captureState?: string;
|
|
20
21
|
blockId: string;
|
|
21
22
|
range: Range;
|
|
22
23
|
/** Story containing this text. Omit for body (backward compatible). */
|
|
@@ -47,6 +48,7 @@ export type TextSegment = {
|
|
|
47
48
|
*/
|
|
48
49
|
export type TextTarget = {
|
|
49
50
|
kind: 'text';
|
|
51
|
+
captureState?: string;
|
|
50
52
|
segments: [TextSegment, ...TextSegment[]];
|
|
51
53
|
/** Story containing this text target. Omit for body (backward compatible). */
|
|
52
54
|
story?: StoryLocator;
|
|
@@ -93,6 +95,7 @@ export type SelectionPoint = {
|
|
|
93
95
|
*/
|
|
94
96
|
export type SelectionTarget = {
|
|
95
97
|
kind: 'selection';
|
|
98
|
+
captureState?: string;
|
|
96
99
|
start: SelectionPoint;
|
|
97
100
|
end: SelectionPoint;
|
|
98
101
|
/** Story containing this selection. Omit for body (backward compatible). */
|
|
@@ -364,6 +364,7 @@ export interface TablesSortKey {
|
|
|
364
364
|
}
|
|
365
365
|
export interface TablesSortInput extends TableLocator {
|
|
366
366
|
keys: [TablesSortKey, ...TablesSortKey[]];
|
|
367
|
+
skipHeaderRows?: number;
|
|
367
368
|
}
|
|
368
369
|
export interface TablesSetAltTextInput extends TableLocator {
|
|
369
370
|
title?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DocumentApiSurface } from '../index.js';
|
|
2
2
|
import { ReceiptEntity, ReceiptFailureResult, ReceiptSuccess } from './receipt.js';
|
|
3
3
|
import { PlainTextInsertInput } from '../insert/insert.js';
|
|
4
|
-
import { ParagraphTextReplaceInput, ReplaceMutationOptions, TextReplaceInput } from '../replace/replace.js';
|
|
4
|
+
import { ParagraphTextReplaceInput, ReplaceMutationOptions, TextReplaceInput, TrackedReplaceMutationOptions } from '../replace/replace.js';
|
|
5
5
|
import { MutationOptions, TrackedTextMutationOptions } from '../write/write.js';
|
|
6
6
|
import { BodyStoryLocator } from './story.types.js';
|
|
7
7
|
type TemporaryCall<Name extends string, Method extends (...args: never[]) => unknown> = {
|
|
@@ -37,6 +37,10 @@ export type TemporaryMutationOperation = {
|
|
|
37
37
|
operation: 'replace';
|
|
38
38
|
input: ParagraphTextReplaceInput;
|
|
39
39
|
options?: ReplaceMutationOptions;
|
|
40
|
+
} | {
|
|
41
|
+
operation: 'replace';
|
|
42
|
+
input: ParagraphTextReplaceInput;
|
|
43
|
+
options: TrackedReplaceMutationOptions;
|
|
40
44
|
} | TemporaryCall<'delete', DocumentApiSurface['delete']> | TemporaryCall<'blocks.delete', DocumentApiSurface['blocks']['delete']> | TemporaryCall<'trackChanges.decide', DocumentApiSurface['trackChanges']['decide']> | {
|
|
41
45
|
operation: 'comments.create';
|
|
42
46
|
input: TemporaryCommentInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextMutationReceipt, SDMutationReceipt } from '../types/index.js';
|
|
2
2
|
import { InsertInput } from '../insert/insert.js';
|
|
3
|
-
import { ReplaceMutationOptions, ReplaceInput } from '../replace/replace.js';
|
|
3
|
+
import { ReplaceMutationOptions, ReplaceInput, TrackedReplaceMutationOptions } from '../replace/replace.js';
|
|
4
4
|
import { StoryLocator } from '../types/story.types.js';
|
|
5
5
|
import { SDHtmlMarkdownCheckGuard } from '../capabilities/html-markdown-support.js';
|
|
6
6
|
export type ChangeMode = 'direct' | 'tracked';
|
|
@@ -42,23 +42,30 @@ export interface MutationOptions extends RevisionGuardOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
dryRun?: boolean;
|
|
44
44
|
}
|
|
45
|
+
/** Display-only attribution for one tracked mutation. */
|
|
46
|
+
export interface TrackedAttribution {
|
|
47
|
+
author?: {
|
|
48
|
+
name: string;
|
|
49
|
+
};
|
|
50
|
+
/** ISO 8601 UTC revision timestamp. Omitted values use the transaction time. */
|
|
51
|
+
date?: string;
|
|
52
|
+
}
|
|
45
53
|
export interface RichContentMutationOptions extends MutationOptions {
|
|
46
54
|
author?: never;
|
|
47
55
|
date?: never;
|
|
48
56
|
/** Guard returned by `doc.capabilities.check` for an exact rich write. */
|
|
49
57
|
supportCheck?: SDHtmlMarkdownCheckGuard;
|
|
50
58
|
}
|
|
51
|
-
|
|
52
|
-
export interface TrackedTextMutationOptions extends MutationOptions {
|
|
59
|
+
export interface TrackedTextMutationOptions extends MutationOptions, TrackedAttribution {
|
|
53
60
|
changeMode: 'tracked';
|
|
54
|
-
author?: {
|
|
55
|
-
name: string;
|
|
56
|
-
};
|
|
57
|
-
/** ISO 8601 UTC revision timestamp. Omitted values use the transaction time. */
|
|
58
|
-
date?: string;
|
|
59
61
|
}
|
|
60
|
-
export type
|
|
62
|
+
export type TrackedRichContentMutationOptions = TrackedTextMutationOptions & Pick<RichContentMutationOptions, 'supportCheck'>;
|
|
63
|
+
export type TextMutationOptions = (MutationOptions & {
|
|
64
|
+
author?: never;
|
|
65
|
+
date?: never;
|
|
66
|
+
}) | TrackedTextMutationOptions;
|
|
61
67
|
export declare function normalizeTextMutationOptions(options?: RichContentMutationOptions | TextMutationOptions): RichContentMutationOptions | TrackedTextMutationOptions;
|
|
68
|
+
export declare function normalizeRichMutationOptions(options: (MutationOptions & TrackedAttribution & Pick<RichContentMutationOptions, 'supportCheck'>) | undefined, supportCheckOperation?: 'insert' | 'replace'): RichContentMutationOptions | TrackedRichContentMutationOptions;
|
|
62
69
|
/**
|
|
63
70
|
* Text insertion request: target-less insert at document end.
|
|
64
71
|
*
|
|
@@ -86,9 +93,9 @@ export interface WriteAdapter {
|
|
|
86
93
|
readonly supportsNativeOoxml?: boolean;
|
|
87
94
|
write(request: InsertWriteRequest, options?: TextMutationOptions): TextMutationReceipt;
|
|
88
95
|
/** Structured insert for SDFragment or markdown/html content. Returns SDMutationReceipt. */
|
|
89
|
-
insertStructured(input: InsertInput, options?: RichContentMutationOptions): SDMutationReceipt;
|
|
96
|
+
insertStructured(input: InsertInput, options?: RichContentMutationOptions | TrackedRichContentMutationOptions): SDMutationReceipt;
|
|
90
97
|
/** Structured replace for SDFragment or markdown/html content. Returns SDMutationReceipt. */
|
|
91
|
-
replaceStructured(input: ReplaceInput, options?: ReplaceMutationOptions): SDMutationReceipt;
|
|
98
|
+
replaceStructured(input: ReplaceInput, options?: ReplaceMutationOptions | TrackedReplaceMutationOptions): SDMutationReceipt;
|
|
92
99
|
}
|
|
93
100
|
export declare function normalizeMutationOptions(options?: MutationOptions | RichContentMutationOptions, supportCheckOperation?: 'insert' | 'replace'): RichContentMutationOptions;
|
|
94
101
|
export declare function executeWrite(adapter: WriteAdapter, request: InsertWriteRequest, options?: TextMutationOptions): TextMutationReceipt;
|
|
@@ -2976,7 +2976,7 @@ export declare const extractHeaderFooterSpace: (margins?: PageMargins | null) =>
|
|
|
2976
2976
|
export type { ResolvedLayout, ResolvedPage, ResolvedPaintItem, ResolvedGroupItem, ResolvedFragmentItem, ResolvedParagraphContent, ResolvedTextLineItem, ResolvedDropCapItem, ResolvedListMarkerItem, ResolvedTableItem, ResolvedImageItem, ResolvedDrawingItem, ResolvedHeaderFooterPage, ResolvedHeaderFooterLayout, } from './resolved-layout.js';
|
|
2977
2977
|
export { isResolvedTableItem, isResolvedImageItem, isResolvedDrawingItem } from './resolved-layout.js';
|
|
2978
2978
|
export { PAGE_BREAK_DELETION_ANCHOR_ATTR, DELETED_PAGE_BREAK_LABEL, isPageBreakDeletionAnchorRun, expandRunsForInlineNewlines, isBodyNoteReferenceRun, isZeroWidthMarkerRun, isGeneratedFieldResultRun, hasZeroWidthMarkerSpan, isNoteLabelRun, isNumberedNoteMarkerRun, isEmptyInlineSdtPlaceholderRun, isEmptySdtPlaceholderRun, NOTE_LABEL_MARKER_ATTR, NOTE_REFERENCE_MARKER_ATTR, sliceRunsForLine, usesPositionedTextGeometry, } from './run-helpers.js';
|
|
2979
|
-
export { INLINE_OBJECT_REPLACEMENT_CHARACTER, flattenParagraphVisibleText, mapVisibleRangeToRunSlices, type ParagraphVisibleRunSlice, } from './paragraph-visible-text.js';
|
|
2979
|
+
export { runVisibleLength, splitsSurrogatePair, INLINE_OBJECT_REPLACEMENT_CHARACTER, flattenParagraphVisibleText, mapVisibleRangeToRunSlices, type ParagraphVisibleRunSlice, } from './paragraph-visible-text.js';
|
|
2980
2980
|
export { inlineBoxStyleSignature, isFiniteNonNegativeInteger, normalizeInlineBoxLogicalSides, type InlineBoxLogicalSides, type ResolvedInlineBoxLogicalSides, } from './inline-box.js';
|
|
2981
2981
|
export { INCREMENTAL_DEPENDENCY_CERTIFICATE_CLASSES, PAGE_CHECKPOINT_DEPENDENCY_CLASSES, areValidPageCheckpointDependencyClasses, isValidIncrementalDependencyOwnerVersion, isValidNonFlowingPageRelativeAnchorDependencyProof, isValidPageCheckpointDependencyCertificate, type IncrementalDependencyCertificateClass, type IncrementalDependencyOwnerVersion, type NonFlowingPageRelativeAnchorDependencyProof, type PageCheckpointDependencyCertificate, type PageCheckpointDependencyClass, } from './incremental-dependency.js';
|
|
2982
2982
|
export * as Engines from './engines/index.js';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { ParagraphBlock } from './index.js';
|
|
1
|
+
import { ParagraphBlock, Run } from './index.js';
|
|
2
2
|
export declare const INLINE_OBJECT_REPLACEMENT_CHARACTER = "\uFFFC";
|
|
3
3
|
export type ParagraphVisibleRunSlice = {
|
|
4
4
|
runIndex: number;
|
|
5
5
|
fromChar: number;
|
|
6
6
|
toChar: number;
|
|
7
7
|
};
|
|
8
|
+
export declare const runVisibleLength: (run: Run) => number;
|
|
9
|
+
export declare const splitsSurrogatePair: (text: string, offset: number) => boolean;
|
|
8
10
|
/**
|
|
9
11
|
* Flattens a paragraph into Document API visible-text coordinates.
|
|
10
12
|
*
|
|
@@ -5,7 +5,7 @@ import { BetweenBorderInfo } from './paragraph/borders/index.js';
|
|
|
5
5
|
import { PageStyles } from './styles.js';
|
|
6
6
|
import { TableFragmentPatchResult } from './table/renderTableFragment.js';
|
|
7
7
|
import { DerivedRunTextPlane } from './derived-run-text-plane.js';
|
|
8
|
-
export declare function refreshPageBreakReviewPlacements(state: PageDomState, page: ResolvedPage, recordChangedRoot?: (root: HTMLElement) => void): void;
|
|
8
|
+
export declare function refreshPageBreakReviewPlacements(state: PageDomState, page: ResolvedPage, recordChangedRoot?: (root: HTMLElement) => void, beforePlacementChange?: () => void): void;
|
|
9
9
|
export type FragmentDomState = {
|
|
10
10
|
key: string;
|
|
11
11
|
signature: string;
|
|
@@ -72,6 +72,8 @@ export type DomPainterPersistentPageInput = {
|
|
|
72
72
|
documentBackground?: DocumentBackground | null;
|
|
73
73
|
derivedRunTextPlane?: DerivedRunTextPlane | null;
|
|
74
74
|
captureSnapshot?: boolean;
|
|
75
|
+
beforePageContentChange?: (pageIndex: number) => void;
|
|
76
|
+
onPageContentRetained?: (pageIndex: number) => void;
|
|
75
77
|
};
|
|
76
78
|
/** Shell registry entry: the persistent page root and its geometry/style reuse key. */
|
|
77
79
|
export type PersistentShellEntry = {
|
package/dist/public/ui-react.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-_SbygYQ4.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let use_sync_external_store_shim = require("use-sync-external-store/shim");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-DdT4b29f.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useSyncExternalStore } from "use-sync-external-store/shim";
|
package/dist/public/ui-vue.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-_SbygYQ4.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let superdoc_entry_vue = require("vue");
|
|
5
5
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui-vue.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-DdT4b29f.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
|
|
4
4
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-_SbygYQ4.cjs");
|
|
3
3
|
//#region ../document-api/src/types/receipt.ts
|
|
4
4
|
/** Read a known failure.details.reason without assuming every failure has one. */
|
|
5
5
|
function getDocumentApiRejectionReason(details) {
|
package/dist/public/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as shallowEqual, s as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { m as shallowEqual, s as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-DdT4b29f.es.js";
|
|
2
2
|
//#region ../document-api/src/types/receipt.ts
|
|
3
3
|
/** Read a known failure.details.reason without assuming every failure has one. */
|
|
4
4
|
function getDocumentApiRejectionReason(details) {
|