superdoc 2.28.0-next.9 → 2.29.0-next.1
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-8V8AjgR4.cjs → FindReplaceSurface-BRs3JrCq.cjs} +1 -1
- package/dist/chunks/{FindReplaceSurface-RUiTFDt3.es.js → FindReplaceSurface-Dm043CZP.es.js} +1 -1
- package/dist/chunks/{PasswordPromptSurface-B5DHV6qr.cjs → PasswordPromptSurface-BpqP4pUa.cjs} +1 -1
- package/dist/chunks/{PasswordPromptSurface-BDpxqdzp.es.js → PasswordPromptSurface-DGjmN7A-.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DjdsIh6n.es.js → PdfViewer-D4lVeOJu.es.js} +4 -3
- package/dist/chunks/{PdfViewer-omriDChK.cjs → PdfViewer-boENOZdF.cjs} +4 -3
- package/dist/chunks/{_plugin-vue_export-helper-BUdjGKyl.cjs → _plugin-vue_export-helper-6MBoygIY.cjs} +9 -0
- package/dist/chunks/{_plugin-vue_export-helper-7ZiLY07t.es.js → _plugin-vue_export-helper-CsJQtMvr.es.js} +4 -1
- package/dist/chunks/{create-super-doc-ui-B4c55pFy.cjs → create-super-doc-ui-0OA8hCNb.cjs} +390 -44
- package/dist/chunks/{create-super-doc-ui-C4Ka5Ph3.es.js → create-super-doc-ui-Duf65d0b.es.js} +357 -41
- 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 +3 -3
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- package/dist/document-api/src/index.d.ts +1 -1
- package/dist/document-api/src/lists/lists.d.ts +79 -79
- package/dist/document-api/src/lists/lists.types.d.ts +1 -0
- package/dist/document-api/src/sections/sections.types.d.ts +5 -1
- package/dist/document-api/src/types/clipboard.d.ts +5 -1
- package/dist/document-api/src/types/receipt.d.ts +2 -1
- package/dist/document-api/src/write/write.d.ts +10 -9
- package/dist/layout-engine/contracts/src/index.d.ts +5 -1
- package/dist/layout-engine/contracts/src/run-helpers.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/index.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/place-inline-drawings.d.ts +9 -0
- package/dist/layout-engine/layout-engine/src/layout-drawing.d.ts +2 -1
- package/dist/layout-engine/layout-engine/src/paginator.d.ts +1 -0
- 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/layout-engine/style-engine/src/ooxml/index.d.ts +1 -1
- 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 +3 -2
- package/dist/public/ui.es.js +3 -2
- package/dist/shared/font-system/src/resolver.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/SuperDoc.vue.d.ts +5 -3
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +1670 -24
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +2 -2
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +2 -2
- package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +24 -0
- package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +4 -0
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +7 -0
- 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/composables/use-high-contrast-mode.d.ts +8 -4
- package/dist/superdoc/src/composables/use-link-popover.d.ts +3 -3
- package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +10 -0
- package/dist/superdoc/src/core/SuperDoc.d.ts +2 -6
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +0 -5
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +1 -0
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +2 -1
- package/dist/superdoc/src/core/create-app.d.ts +2 -6
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +2 -0
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -0
- package/dist/superdoc/src/core/types/index.d.ts +10 -4
- package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +1 -0
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +104 -84
- package/dist/superdoc/src/helpers/is-finite-number.d.ts +1 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +2 -0
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +2 -2
- package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +5 -0
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
- 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/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 +82 -11
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +122 -33
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -48
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +0 -1
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +4 -1
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +16 -0
- package/dist/superdoc/src/public/ui/types.d.ts +39 -1
- package/dist/superdoc/src/public/ui.d.cts +12 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +158 -125
- package/dist/superdoc/src/stores/superdoc-store.d.ts +475 -376
- package/dist/superdoc.cjs +561 -1843
- package/dist/superdoc.es.js +766 -13144
- 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 +4 -3
- package/dist/superdoc/src/core/collaboration/collaboration.d.ts +0 -18
- package/dist/superdoc/src/helpers/group-changes.d.ts +0 -1
- package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +0 -104
|
@@ -2829,7 +2829,7 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
2829
2829
|
readonly 'footnotes.insert': {
|
|
2830
2830
|
readonly memberPath: "footnotes.insert";
|
|
2831
2831
|
readonly description: "Insert a new footnote or endnote at a target location or the current selection.";
|
|
2832
|
-
readonly expectedResult:
|
|
2832
|
+
readonly expectedResult: string;
|
|
2833
2833
|
readonly requiresDocumentContext: true;
|
|
2834
2834
|
readonly metadata: CommandStaticMetadata;
|
|
2835
2835
|
readonly referenceDocPath: "footnotes/insert.mdx";
|
|
@@ -3726,7 +3726,7 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
3726
3726
|
readonly find: {
|
|
3727
3727
|
readonly memberPath: "find";
|
|
3728
3728
|
readonly description: "Search the document for text or node matches using SDM/1 selectors. Returns discovery-grade results: for mutation targeting, use query.match instead.";
|
|
3729
|
-
readonly expectedResult: "Returns an SDFindResult envelope ({ total, limit, offset, items }). Each item is an SDNodeResult ({ node, address }). Text hits contain only the matched text; use getNode or getNodeById for the full containing node. Node selectors return full node projections.";
|
|
3729
|
+
readonly expectedResult: "Returns an SDFindResult envelope ({ total, limit, offset, items }). Each item is an SDNodeResult ({ node, address }). Text hits contain only the matched text; use getNode or getNodeById for the full containing node. Node selectors return full node projections. Bookmark selectors return the bookmarks of the searched story in document order: each address is an inline bookmark address whose anchor spans the bookmark range, and each node is an ext.bookmark node whose bookmark.address resolves through bookmarks.get.";
|
|
3730
3730
|
readonly requiresDocumentContext: true;
|
|
3731
3731
|
readonly metadata: CommandStaticMetadata;
|
|
3732
3732
|
readonly referenceDocPath: "find.mdx";
|
|
@@ -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, 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';
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { BlockNodeAddress, ChangeMode, ReceiptFailure } from '../types/index.js';
|
|
1
|
+
import { BlockNodeAddress, ChangeMode, ReceiptFailure, TrackedChangeAddress } from '../types/index.js';
|
|
2
2
|
import { DiscoveryOutput } from '../types/discovery.js';
|
|
3
3
|
export type SectionAddress = {
|
|
4
4
|
kind: 'section';
|
|
@@ -111,6 +111,7 @@ export interface SectionsGetInput {
|
|
|
111
111
|
export type SectionsListResult = DiscoveryOutput<SectionDomain>;
|
|
112
112
|
export interface SectionMutationSuccessResult {
|
|
113
113
|
success: true;
|
|
114
|
+
dryRun?: boolean;
|
|
114
115
|
section: SectionAddress;
|
|
115
116
|
/** Committed review-aware content mode; omitted for dry runs, no-ops and non-reviewable settings. */
|
|
116
117
|
appliedChangeMode?: ChangeMode;
|
|
@@ -126,11 +127,14 @@ export type SectionMutationResult = SectionMutationSuccessResult | SectionMutati
|
|
|
126
127
|
*/
|
|
127
128
|
export interface DocumentMutationSuccessResult {
|
|
128
129
|
success: true;
|
|
130
|
+
dryRun?: boolean;
|
|
131
|
+
changed?: boolean;
|
|
129
132
|
}
|
|
130
133
|
export type DocumentMutationResult = DocumentMutationSuccessResult | SectionMutationFailureResult;
|
|
131
134
|
export interface CreateSectionBreakSuccessResult {
|
|
132
135
|
success: true;
|
|
133
136
|
appliedChangeMode?: 'direct' | 'tracked';
|
|
137
|
+
trackedChangeRefs?: TrackedChangeAddress[];
|
|
134
138
|
section: SectionAddress;
|
|
135
139
|
/**
|
|
136
140
|
* Present only when the break is represented as a dedicated paragraph.
|
|
@@ -138,7 +138,11 @@ export interface SDPasteBlockSdt {
|
|
|
138
138
|
lockMode?: 'unlocked' | 'sdtLocked' | 'contentLocked' | 'sdtContentLocked';
|
|
139
139
|
multiline?: boolean;
|
|
140
140
|
}
|
|
141
|
-
export type SDPasteInline =
|
|
141
|
+
export type SDPasteInline = {
|
|
142
|
+
kind: 'math';
|
|
143
|
+
omml: string;
|
|
144
|
+
sourcePath?: readonly (string | number)[];
|
|
145
|
+
} | SDPasteLeafInline | SDPasteSdtInline | {
|
|
142
146
|
kind: 'hyperlink';
|
|
143
147
|
target: {
|
|
144
148
|
kind: 'external';
|
|
@@ -15,7 +15,7 @@ export type ReceiptFailureCode = 'NO_OP' | 'INVALID_TARGET' | 'TARGET_NOT_FOUND'
|
|
|
15
15
|
export type TextRangeRejectionReason = 'text-range-in-sdt' | 'text-range-in-field' | 'text-range-in-unsupported-tracked-wrapper';
|
|
16
16
|
/** Content-control creation keeps its existing top-level failure code. */
|
|
17
17
|
export type ContentControlCreationRejectionReason = 'content-control-unsupported-inline-structure' | 'content-control-shared-run-boundary';
|
|
18
|
-
export type DocumentApiRejectionReason = TextRangeRejectionReason | ContentControlCreationRejectionReason;
|
|
18
|
+
export type DocumentApiRejectionReason = TextRangeRejectionReason | ContentControlCreationRejectionReason | 'paragraph-mark-already-deleted';
|
|
19
19
|
export interface DocumentApiRejectionDetails extends Record<string, unknown> {
|
|
20
20
|
reason: DocumentApiRejectionReason;
|
|
21
21
|
}
|
|
@@ -145,6 +145,7 @@ export type ReceiptSuccess = {
|
|
|
145
145
|
/** Temporary-preview lifecycle and caller tag, also delivered through mutation events. */
|
|
146
146
|
temporary?: import('./temporary-mutation.js').TemporaryMutationMetadata;
|
|
147
147
|
success: true;
|
|
148
|
+
status?: 'NO_OP';
|
|
148
149
|
/** Whether a successful request changed the document; false represents a no-op commit. */
|
|
149
150
|
changed?: boolean;
|
|
150
151
|
/** Tracked changes authored by this mutation. */
|
|
@@ -42,23 +42,24 @@ export interface MutationOptions extends RevisionGuardOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
dryRun?: boolean;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
date?: never;
|
|
48
|
-
/** Guard returned by `doc.capabilities.check` for an exact rich write. */
|
|
49
|
-
supportCheck?: SDHtmlMarkdownCheckGuard;
|
|
50
|
-
}
|
|
51
|
-
/** Display-only attribution for one tracked plain-text or inline-format mutation. */
|
|
52
|
-
export interface TrackedTextMutationOptions extends MutationOptions {
|
|
53
|
-
changeMode: 'tracked';
|
|
45
|
+
/** Display-only attribution for one tracked mutation. */
|
|
46
|
+
export interface TrackedAttribution {
|
|
54
47
|
author?: {
|
|
55
48
|
name: string;
|
|
56
49
|
};
|
|
57
50
|
/** ISO 8601 UTC revision timestamp. Omitted values use the transaction time. */
|
|
58
51
|
date?: string;
|
|
59
52
|
}
|
|
53
|
+
export interface RichContentMutationOptions extends MutationOptions, TrackedAttribution {
|
|
54
|
+
/** Guard returned by `doc.capabilities.check` for an exact rich write. */
|
|
55
|
+
supportCheck?: SDHtmlMarkdownCheckGuard;
|
|
56
|
+
}
|
|
57
|
+
export interface TrackedTextMutationOptions extends MutationOptions, TrackedAttribution {
|
|
58
|
+
changeMode: 'tracked';
|
|
59
|
+
}
|
|
60
60
|
export type TextMutationOptions = MutationOptions | TrackedTextMutationOptions;
|
|
61
61
|
export declare function normalizeTextMutationOptions(options?: RichContentMutationOptions | TextMutationOptions): RichContentMutationOptions | TrackedTextMutationOptions;
|
|
62
|
+
export declare function normalizeRichMutationOptions(options: (MutationOptions & TrackedAttribution & Partial<RichContentMutationOptions>) | undefined, supportCheckOperation?: 'insert' | 'replace'): RichContentMutationOptions;
|
|
62
63
|
/**
|
|
63
64
|
* Text insertion request: target-less insert at document end.
|
|
64
65
|
*
|
|
@@ -564,6 +564,7 @@ export type RenderPlaceholder = {
|
|
|
564
564
|
*/
|
|
565
565
|
export type ImageRun = {
|
|
566
566
|
kind: 'image';
|
|
567
|
+
inlineDrawingId?: string;
|
|
567
568
|
/** Image source URL (data URI or external URL). */
|
|
568
569
|
src: string;
|
|
569
570
|
/** Image width in pixels. */
|
|
@@ -1525,6 +1526,7 @@ export type SectionPageBorderSide = {
|
|
|
1525
1526
|
};
|
|
1526
1527
|
export type SectionPageBorders = {
|
|
1527
1528
|
offsetFrom: 'page';
|
|
1529
|
+
display?: 'allPages' | 'firstPage';
|
|
1528
1530
|
top?: SectionPageBorderSide;
|
|
1529
1531
|
right?: SectionPageBorderSide;
|
|
1530
1532
|
bottom?: SectionPageBorderSide;
|
|
@@ -1894,6 +1896,7 @@ export type WordLayoutMarker = {
|
|
|
1894
1896
|
*/
|
|
1895
1897
|
trackedChange?: MarkerTrackedChange;
|
|
1896
1898
|
};
|
|
1899
|
+
export declare const markerRunSignature: (run: WordLayoutMarker["run"] | undefined) => string;
|
|
1897
1900
|
/**
|
|
1898
1901
|
* Word layout configuration for list items created via input rules.
|
|
1899
1902
|
*
|
|
@@ -2404,6 +2407,7 @@ export type ImageMeasure = {
|
|
|
2404
2407
|
};
|
|
2405
2408
|
export type DrawingMeasure = {
|
|
2406
2409
|
kind: 'drawing';
|
|
2410
|
+
inlineDrawing?: boolean;
|
|
2407
2411
|
drawingKind: DrawingKind;
|
|
2408
2412
|
width: number;
|
|
2409
2413
|
height: number;
|
|
@@ -2971,7 +2975,7 @@ export declare const extractHeaderFooterSpace: (margins?: PageMargins | null) =>
|
|
|
2971
2975
|
};
|
|
2972
2976
|
export type { ResolvedLayout, ResolvedPage, ResolvedPaintItem, ResolvedGroupItem, ResolvedFragmentItem, ResolvedParagraphContent, ResolvedTextLineItem, ResolvedDropCapItem, ResolvedListMarkerItem, ResolvedTableItem, ResolvedImageItem, ResolvedDrawingItem, ResolvedHeaderFooterPage, ResolvedHeaderFooterLayout, } from './resolved-layout.js';
|
|
2973
2977
|
export { isResolvedTableItem, isResolvedImageItem, isResolvedDrawingItem } from './resolved-layout.js';
|
|
2974
|
-
export { PAGE_BREAK_DELETION_ANCHOR_ATTR, DELETED_PAGE_BREAK_LABEL, isPageBreakDeletionAnchorRun, expandRunsForInlineNewlines, isBodyNoteReferenceRun, isZeroWidthMarkerRun, hasZeroWidthMarkerSpan, isNoteLabelRun, isNumberedNoteMarkerRun, isEmptyInlineSdtPlaceholderRun, isEmptySdtPlaceholderRun, NOTE_LABEL_MARKER_ATTR, NOTE_REFERENCE_MARKER_ATTR, sliceRunsForLine, usesPositionedTextGeometry, } from './run-helpers.js';
|
|
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';
|
|
2975
2979
|
export { INLINE_OBJECT_REPLACEMENT_CHARACTER, flattenParagraphVisibleText, mapVisibleRangeToRunSlices, type ParagraphVisibleRunSlice, } from './paragraph-visible-text.js';
|
|
2976
2980
|
export { inlineBoxStyleSignature, isFiniteNonNegativeInteger, normalizeInlineBoxLogicalSides, type InlineBoxLogicalSides, type ResolvedInlineBoxLogicalSides, } from './inline-box.js';
|
|
2977
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';
|
|
@@ -12,6 +12,7 @@ export declare const NOTE_LABEL_MARKER_ATTR = "data-v2-note-label";
|
|
|
12
12
|
export declare function isBodyNoteReferenceRun(run: Run): boolean;
|
|
13
13
|
export declare function isZeroWidthMarkerRun(run: Run): boolean;
|
|
14
14
|
export declare function hasZeroWidthMarkerSpan(run: Run): boolean;
|
|
15
|
+
export declare function isGeneratedFieldResultRun(run: Run): boolean;
|
|
15
16
|
/** Synthetic note-band or appended-endnote label keyed to its source note. */
|
|
16
17
|
export declare function isNoteLabelRun(run: Run): boolean;
|
|
17
18
|
/** Numbered marker text whose measurement identity can use digit capabilities. */
|
|
@@ -213,3 +213,4 @@ export declare function pmPosToCharOffset(block: FlowBlock, line: Line, pmPos: n
|
|
|
213
213
|
export declare function pmPosToVisualCharOffset(block: FlowBlock, line: Line, pmPos: number): number;
|
|
214
214
|
export { measureVisualBidiFragment, type MeasuredVisualBidiFragment } from './neutral-segment-geometry.js';
|
|
215
215
|
export { measuredVisualBidiCaretX, measuredVisualBidiOffsetAtX, measuredVisualBidiRangeBands, isMeasuredVisualBidiLineCurrent, type MeasuredVisualBidiLine, } from './visual-bidi-geometry.js';
|
|
216
|
+
export { placeInlineDrawings } from './place-inline-drawings.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FlowBlock, Layout, Measure } from '../../contracts/src/index.js';
|
|
2
|
+
export declare function placeInlineDrawings(layout: Layout, blocks: FlowBlock[], measures: Measure[], blockIndexById?: ReadonlyMap<string, number>, retainedPages?: {
|
|
3
|
+
prefixEndPageIndex?: number;
|
|
4
|
+
tail?: {
|
|
5
|
+
startPageIndex: number;
|
|
6
|
+
endPageIndexExclusive: number;
|
|
7
|
+
blockIdRewrites?: ReadonlyMap<string, string> | null;
|
|
8
|
+
};
|
|
9
|
+
}): Layout;
|
|
@@ -9,6 +9,7 @@ import { PageState } from './paginator.js';
|
|
|
9
9
|
* callbacks for positioning the drawing fragment on the current page/column.
|
|
10
10
|
*/
|
|
11
11
|
export type DrawingLayoutContext = {
|
|
12
|
+
inlineParagraphBound?: boolean;
|
|
12
13
|
/** The drawing block to layout */
|
|
13
14
|
block: DrawingBlock;
|
|
14
15
|
/** Measured dimensions and geometry data for the drawing */
|
|
@@ -57,4 +58,4 @@ export type DrawingLayoutContext = {
|
|
|
57
58
|
* - Anchored drawings (`block.anchor?.isAnchored === true`) are skipped
|
|
58
59
|
* - They are positioned via the paragraph anchoring pre-pass
|
|
59
60
|
*/
|
|
60
|
-
export declare function layoutDrawingBlock({ block, measure, columns, ensurePage, advanceColumn, columnX, textboxContentMeasures, }: DrawingLayoutContext): void;
|
|
61
|
+
export declare function layoutDrawingBlock({ block, measure, columns, ensurePage, advanceColumn, columnX, textboxContentMeasures, inlineParagraphBound, }: DrawingLayoutContext): void;
|
|
@@ -99,6 +99,7 @@ export type PaginatorOptions = {
|
|
|
99
99
|
}): Page;
|
|
100
100
|
onNewPage?: (state: PageState | undefined, options?: {
|
|
101
101
|
applyPendingSection: boolean;
|
|
102
|
+
replaceCurrentPage: boolean;
|
|
102
103
|
}) => void;
|
|
103
104
|
shouldStopBeforeNewPage?: (input: {
|
|
104
105
|
completedPageIndex: number;
|
|
@@ -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 = {
|
|
@@ -46,7 +46,7 @@ export interface TableInfo {
|
|
|
46
46
|
* Word applies these flags when a table has no explicit w:tblLook element.
|
|
47
47
|
*/
|
|
48
48
|
export declare const DEFAULT_TBL_LOOK: TableLookProperties;
|
|
49
|
-
export declare function resolveRunProperties(params: OoxmlResolverParams, inlineRpr: RunProperties | null | undefined, resolvedPpr: ParagraphProperties | null | undefined, tableInfo?: TableInfo | null | undefined, isListNumber?: boolean
|
|
49
|
+
export declare function resolveRunProperties(params: OoxmlResolverParams, inlineRpr: RunProperties | null | undefined, resolvedPpr: ParagraphProperties | null | undefined, tableInfo?: TableInfo | null | undefined, isListNumber?: boolean): RunProperties;
|
|
50
50
|
export declare function resolveParagraphProperties(params: OoxmlResolverParams, inlineProps: ParagraphProperties | null | undefined, tableInfo: TableInfo | null | undefined): ParagraphProperties;
|
|
51
51
|
export declare function resolveStyleChain<T extends PropertyObject>(propertyType: 'paragraphProperties' | 'runProperties' | 'tableProperties', params: OoxmlResolverParams, styleId: string | undefined, followBasedOnChain?: boolean): T;
|
|
52
52
|
export declare function getNumberingProperties<T extends ParagraphProperties | RunProperties>(propertyType: 'paragraphProperties' | 'runProperties', params: OoxmlResolverParams, ilvl: number, numId: number, tries?: number): T;
|
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-0OA8hCNb.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-Duf65d0b.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-0OA8hCNb.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-Duf65d0b.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-0OA8hCNb.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) {
|
|
@@ -9,7 +9,8 @@ function getDocumentApiRejectionReason(details) {
|
|
|
9
9
|
case "text-range-in-field":
|
|
10
10
|
case "text-range-in-unsupported-tracked-wrapper":
|
|
11
11
|
case "content-control-unsupported-inline-structure":
|
|
12
|
-
case "content-control-shared-run-boundary":
|
|
12
|
+
case "content-control-shared-run-boundary":
|
|
13
|
+
case "paragraph-mark-already-deleted": return details.reason;
|
|
13
14
|
default: return;
|
|
14
15
|
}
|
|
15
16
|
}
|
package/dist/public/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as shallowEqual, s as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-Duf65d0b.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) {
|
|
@@ -8,7 +8,8 @@ function getDocumentApiRejectionReason(details) {
|
|
|
8
8
|
case "text-range-in-field":
|
|
9
9
|
case "text-range-in-unsupported-tracked-wrapper":
|
|
10
10
|
case "content-control-unsupported-inline-structure":
|
|
11
|
-
case "content-control-shared-run-boundary":
|
|
11
|
+
case "content-control-shared-run-boundary":
|
|
12
|
+
case "paragraph-mark-already-deleted": return details.reason;
|
|
12
13
|
default: return;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -146,7 +146,7 @@ export declare class FontResolver {
|
|
|
146
146
|
/**
|
|
147
147
|
* Resolve a CSS font-family value for MEASURE and PAINT: swap the primary family to its
|
|
148
148
|
* physical substitute and keep the original fallbacks. "Calibri, sans-serif" ->
|
|
149
|
-
* "Carlito, sans-serif"; "Calibri" -> "Carlito".
|
|
149
|
+
* "Carlito, sans-serif"; "Calibri" -> "Carlito". Quotes primary names when required by CSS syntax.
|
|
150
150
|
*/
|
|
151
151
|
resolvePhysicalFamily(cssFontFamily: string): string;
|
|
152
152
|
/**
|
|
@@ -160,8 +160,8 @@ export declare class FontResolver {
|
|
|
160
160
|
/**
|
|
161
161
|
* Face-aware CSS-stack variant for MEASURE and PAINT - the face-scoped counterpart of
|
|
162
162
|
* {@link resolvePhysicalFamily}. Swaps the primary family to its substitute when this exact face is
|
|
163
|
-
* real or docfonts authorizes a synthetic source face. Otherwise
|
|
164
|
-
*
|
|
163
|
+
* real or docfonts authorizes a synthetic source face. Otherwise keeps the logical family and its
|
|
164
|
+
* fallbacks, quoting primary names when required by CSS syntax. Measure and
|
|
165
165
|
* paint MUST call this with the same face key, or text is measured in one face and painted in another.
|
|
166
166
|
*/
|
|
167
167
|
resolvePhysicalFamilyForFace(cssFontFamily: string, face: FaceKey, hasFace: HasFace): string;
|