superdoc 2.29.0 → 2.30.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/README.md +127 -25
- package/dist/chunks/{FindReplaceSurface-B_5ggdWg.es.js → FindReplaceSurface-BEnRLpD9.es.js} +1 -1
- package/dist/chunks/{FindReplaceSurface-fVHxPXtn.cjs → FindReplaceSurface-DWXgWgg7.cjs} +1 -1
- package/dist/chunks/{PasswordPromptSurface-CZqhDQQ1.es.js → PasswordPromptSurface-DjV1JgjD.es.js} +1 -1
- package/dist/chunks/{PasswordPromptSurface-x8GNmMJT.cjs → PasswordPromptSurface-VFPnQOML.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CW09MNrB.es.js → PdfViewer-C2r-K8zC.es.js} +1 -1
- package/dist/chunks/{PdfViewer-CkrAHpC-.cjs → PdfViewer-DYTbPVUr.cjs} +1 -1
- package/dist/chunks/{_plugin-vue_export-helper-BkbCxNeT.cjs → _plugin-vue_export-helper-BzM2_tVU.cjs} +9 -0
- package/dist/chunks/{_plugin-vue_export-helper-DRPRMkeA.es.js → _plugin-vue_export-helper-CmkaJDnr.es.js} +4 -1
- package/dist/chunks/{create-super-doc-ui-Dc8dQAMc.es.js → create-super-doc-ui--o8TcYYv.es.js} +6080 -5456
- package/dist/chunks/{create-super-doc-ui-L60GhVAX.cjs → create-super-doc-ui-CvK1JdZv.cjs} +3567 -2937
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/changes/changes.d.ts +26 -0
- package/dist/document-api/src/changes/changes.types.d.ts +156 -0
- package/dist/document-api/src/comments/comment-create-attribution.d.ts +4 -0
- package/dist/document-api/src/comments/comments.types.d.ts +4 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +76 -8
- package/dist/document-api/src/contract/operation-registry.d.ts +2 -2
- package/dist/document-api/src/contract/schemas.d.ts +7 -1
- package/dist/document-api/src/create/create.d.ts +0 -4
- package/dist/document-api/src/diff/diff.types.d.ts +6 -6
- package/dist/document-api/src/header-footers/header-footers.d.ts +1 -3
- package/dist/document-api/src/index.d.ts +13 -1
- package/dist/document-api/src/inline-semantics/token-sets.d.ts +0 -2
- package/dist/document-api/src/insert/insert.d.ts +0 -1
- package/dist/document-api/src/paragraphs/paragraphs.d.ts +8 -3
- package/dist/document-api/src/paragraphs/paragraphs.types.d.ts +49 -5
- package/dist/document-api/src/tables/data/table-preset-appearance.generated.d.ts +2 -0
- package/dist/document-api/src/tables/table-style-presets.d.ts +73 -0
- package/dist/document-api/src/tables/tables.d.ts +4 -1
- package/dist/document-api/src/types/sd-props.d.ts +7 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +12 -15
- package/dist/layout-engine/contracts/src/index.d.ts +4 -1
- package/dist/layout-engine/contracts/src/table-cell-vector-overlay.d.ts +2 -0
- package/dist/layout-engine/dom-contract/src/data-attrs.d.ts +4 -0
- package/dist/layout-engine/layout-bridge/src/coupled-footnote-pagination.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/footnote-page-certificate.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/footnote-page-planner.d.ts +5 -0
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +1 -0
- package/dist/layout-engine/layout-engine/src/footnote-page-flow.d.ts +3 -0
- package/dist/layout-engine/layout-engine/src/index.d.ts +7 -0
- package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +5 -0
- package/dist/layout-engine/layout-engine/src/layout-table.d.ts +3 -1
- package/dist/layout-engine/layout-engine/src/layout-utils.d.ts +0 -4
- package/dist/layout-engine/layout-engine/src/paginator.d.ts +4 -0
- package/dist/layout-engine/painters/dom/src/index.d.ts +2 -0
- package/dist/layout-engine/painters/dom/src/paragraph/list-marker.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphContent.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/styles.d.ts +0 -10
- package/dist/layout-engine/painters/dom/src/svg-utils.d.ts +1 -13
- 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/shared/common/Telemetry.d.ts +50 -0
- package/dist/shared/common/event-types.d.ts +13 -0
- package/dist/shared/font-system/src/bundled-face-names.d.ts +1 -0
- package/dist/shared/font-system/src/resolver.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +17 -33
- package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +6 -4
- package/dist/superdoc/src/components/CommentsLayer/comment-params.d.ts +84 -0
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +15 -95
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -9
- package/dist/superdoc/src/composables/use-comment-sidebar.d.ts +6 -0
- package/dist/superdoc/src/composables/use-document.d.ts +51 -99
- package/dist/superdoc/src/core/SuperDoc.d.ts +12 -3
- package/dist/superdoc/src/core/collaboration/cdn-collaboration-comment-map.d.ts +1 -0
- package/dist/superdoc/src/core/collaboration/collaboration-comment-map.d.ts +2 -0
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +1 -1
- package/dist/superdoc/src/core/config/normalize-interaction-config.d.ts +10 -1
- package/dist/superdoc/src/core/document-open-telemetry.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +4 -0
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +1 -0
- package/dist/superdoc/src/core/types/index.d.ts +110 -39
- package/dist/superdoc/src/helpers/deprecation.d.ts +12 -3
- package/dist/superdoc/src/helpers/object-guards.d.ts +1 -0
- package/dist/superdoc/src/helpers/v2-review-geometry-delivery.d.ts +22 -0
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +1 -0
- package/dist/superdoc/src/public/content-control-ref.d.ts +12 -0
- package/dist/superdoc/src/public/index.d.cts +20 -0
- package/dist/superdoc/src/public/index.d.ts +4 -1
- package/dist/superdoc/src/public/ui/async-read-cache.d.ts +32 -0
- package/dist/superdoc/src/public/ui/block-commands.d.ts +39 -0
- package/dist/superdoc/src/public/ui/command-results.d.ts +39 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +5 -1
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -17
- package/dist/superdoc/src/public/ui/document-change-records.d.ts +7 -0
- package/dist/superdoc/src/public/ui/entity-rows.d.ts +14 -0
- package/dist/superdoc/src/public/ui/font-options.d.ts +7 -0
- package/dist/superdoc/src/public/ui/format-painter-paragraph.d.ts +7 -0
- package/dist/superdoc/src/public/ui/format-painter-state.d.ts +29 -0
- package/dist/superdoc/src/public/ui/heavy-read-policy.d.ts +11 -0
- package/dist/superdoc/src/public/ui/host-events.d.ts +3 -0
- package/dist/superdoc/src/public/ui/inline-values.d.ts +80 -0
- package/dist/superdoc/src/public/ui/loose-record.d.ts +4 -0
- package/dist/superdoc/src/public/ui/reasons.d.ts +1 -0
- package/dist/superdoc/src/public/ui/selection-targets.d.ts +53 -0
- package/dist/superdoc/src/public/ui/shared-tracked-changes-catalog.d.ts +16 -0
- package/dist/superdoc/src/public/ui/tracked-change-ids.d.ts +51 -0
- package/dist/superdoc/src/public/ui/types.d.ts +25 -2
- package/dist/superdoc/src/public/ui/ui-bench-timing.d.ts +9 -0
- package/dist/superdoc/src/public/ui.d.cts +18 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +23022 -546
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +1 -1
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +10 -10
- package/dist/superdoc/src/stores/helpers/review-presentation.d.ts +91 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +4 -2
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +1 -8
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +1 -1
- package/dist/superdoc/src/stores/helpers/v2-review-adapters.d.ts +147 -0
- package/dist/superdoc/src/stores/superdoc-store.d.ts +12 -2895
- package/dist/superdoc.cjs +915 -516
- package/dist/superdoc.es.js +915 -516
- package/dist/word-layout/src/marker-utils.d.ts +0 -5
- package/dist/word-layout/src/unit-conversions.d.ts +0 -1
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +38 -42
- package/package.json +12 -3
- package/dist/document-api/src/diff/index.d.ts +0 -3
- package/dist/document-api/src/write/locator.d.ts +0 -24
- package/dist/layout-engine/painters/dom/src/features/feature-registry.d.ts +0 -41
- package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +0 -11
- package/dist/word-layout/src/tab-layout.d.ts +0 -193
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SDRunProps } from '../../../../document-api/src/index.js';
|
|
2
|
+
import { ParagraphPaintOperation } from './format-painter-paragraph.js';
|
|
3
|
+
export type FormatPainterMode = 'idle' | 'armed' | 'persistent';
|
|
4
|
+
export interface FormatPainterParagraphSnapshot {
|
|
5
|
+
styleId: string | null;
|
|
6
|
+
inheritedFontKeys?: Array<'fontFamily' | 'fontSize'>;
|
|
7
|
+
operations: ParagraphPaintOperation[];
|
|
8
|
+
markRunProps: SDRunProps | null;
|
|
9
|
+
numbering: {
|
|
10
|
+
numId: number;
|
|
11
|
+
level?: number;
|
|
12
|
+
} | null;
|
|
13
|
+
listStyle: unknown | null;
|
|
14
|
+
}
|
|
15
|
+
export interface FormatPainterSnapshot {
|
|
16
|
+
story: unknown | null;
|
|
17
|
+
inline: Record<string, unknown>;
|
|
18
|
+
mixedInlineKeys: string[];
|
|
19
|
+
paragraph: FormatPainterParagraphSnapshot | null;
|
|
20
|
+
}
|
|
21
|
+
export declare const FORMAT_PAINTER_BOOLEAN_KEYS: Set<string>;
|
|
22
|
+
export interface FormatPainterState {
|
|
23
|
+
mode: FormatPainterMode;
|
|
24
|
+
snapshot: FormatPainterSnapshot | null;
|
|
25
|
+
sourceSelectionKey: string | null;
|
|
26
|
+
lastClickAt: number;
|
|
27
|
+
pointerSelecting: boolean;
|
|
28
|
+
keyboardSelecting: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SliceStatus } from './types.js';
|
|
2
|
+
export interface HeavyDocReadPolicyEntry {
|
|
3
|
+
key: string;
|
|
4
|
+
match: 'exact' | 'prefix';
|
|
5
|
+
note: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const HEAVY_DOC_READ_POLICY: readonly HeavyDocReadPolicyEntry[];
|
|
8
|
+
export declare const COMMENTS_CATALOG_PART_URIS: ReadonlySet<string>;
|
|
9
|
+
export declare function isHeavyDocReadKey(key: string): boolean;
|
|
10
|
+
export declare const STATUS_RANK: Record<SliceStatus, number>;
|
|
11
|
+
export declare function combineStatus(...statuses: readonly SliceStatus[]): SliceStatus;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ContentControlClickPayload } from './types.js';
|
|
2
|
+
export declare const HOST_EVENTS: readonly ["document-replaced", "editorCreate", "active-editor-change", "document-mode-change", "formatting-marks-change", "zoomChange", "measurement-unit-change", "viewport-change", "fonts-changed"];
|
|
3
|
+
export declare function isContentControlClickPayload(value: unknown): value is ContentControlClickPayload;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { SelectionSlice, SelectionTarget, SuperDocUIState } from './types.js';
|
|
2
|
+
import { LooseRecord } from './loose-record.js';
|
|
3
|
+
import { CommandDescriptor } from './commands.js';
|
|
4
|
+
import { selectionStoryLocator } from './selection-targets.js';
|
|
5
|
+
export { selectionStoryLocator };
|
|
6
|
+
export type EffectiveInlineUniformityState = {
|
|
7
|
+
state: 'uniform';
|
|
8
|
+
value: string;
|
|
9
|
+
} | {
|
|
10
|
+
state: 'mixed' | 'unresolvable' | 'absent';
|
|
11
|
+
};
|
|
12
|
+
export declare function readEffectiveInlineUniformityStates(raw: unknown): Record<string, EffectiveInlineUniformityState> | null;
|
|
13
|
+
export type SelectionTextSegment = {
|
|
14
|
+
blockId: string;
|
|
15
|
+
start: number;
|
|
16
|
+
end: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const PROJECTED_INLINE_SELECTION_VALUE_KEYS: readonly ["fontFamily", "fontSize", "color", "highlight"];
|
|
19
|
+
export type ProjectedInlineSelectionValueKey = (typeof PROJECTED_INLINE_SELECTION_VALUE_KEYS)[number];
|
|
20
|
+
export type ProjectedInlineSelectionValues = Partial<Record<ProjectedInlineSelectionValueKey, string>>;
|
|
21
|
+
export declare const EFFECTIVE_MARK_KEYS: readonly ["bold", "italic", "underline", "strikethrough"];
|
|
22
|
+
export type EffectiveMarkKey = (typeof EFFECTIVE_MARK_KEYS)[number];
|
|
23
|
+
export type EffectiveMarkValues = Partial<Record<EffectiveMarkKey, boolean>>;
|
|
24
|
+
export type OptimisticInlineSelectionValue = {
|
|
25
|
+
selectionSignature: string;
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
28
|
+
export type OptimisticInlineToggle = {
|
|
29
|
+
selectionSignature: string;
|
|
30
|
+
active: boolean;
|
|
31
|
+
generation: number;
|
|
32
|
+
settled: boolean;
|
|
33
|
+
editorSource: unknown;
|
|
34
|
+
documentSource: unknown;
|
|
35
|
+
documentMode: SuperDocUIState['documentMode'];
|
|
36
|
+
};
|
|
37
|
+
export type OptimisticParagraphAlignment = {
|
|
38
|
+
selectionSignature: string;
|
|
39
|
+
value: 'left' | 'center' | 'right' | 'justify';
|
|
40
|
+
generation: number;
|
|
41
|
+
settled: boolean;
|
|
42
|
+
canReconcile: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type PendingInlineToggleMutation = {
|
|
45
|
+
key: string;
|
|
46
|
+
mutate: () => unknown;
|
|
47
|
+
result: Promise<unknown>;
|
|
48
|
+
resolve: (value: unknown | PromiseLike<unknown>) => void;
|
|
49
|
+
};
|
|
50
|
+
export declare function isProjectedInlineSelectionValueKey(value: string): value is ProjectedInlineSelectionValueKey;
|
|
51
|
+
export declare function selectionTextSegments(selection: SelectionSlice): SelectionTextSegment[];
|
|
52
|
+
export declare function selectionInlineValueStorySignature(selection: SelectionSlice): string;
|
|
53
|
+
export declare function selectionInlineValueSignature(selection: SelectionSlice): string | null;
|
|
54
|
+
export declare function selectionEffectiveUniformitySignature(selection: SelectionSlice): string | null;
|
|
55
|
+
export declare function normalizeOptimisticInlineSelectionValue(key: ProjectedInlineSelectionValueKey, value: unknown): string | null;
|
|
56
|
+
export declare function rangesOverlap(left: {
|
|
57
|
+
start: number;
|
|
58
|
+
end: number;
|
|
59
|
+
}, right: {
|
|
60
|
+
start: number;
|
|
61
|
+
end: number;
|
|
62
|
+
}): boolean;
|
|
63
|
+
export declare function queryMatchItemSegments(item: LooseRecord | null | undefined): SelectionTextSegment[];
|
|
64
|
+
export declare function sameSelectionTextSegments(left: readonly SelectionTextSegment[], right: readonly SelectionTextSegment[]): boolean;
|
|
65
|
+
export declare function pickSelectionTextQueryItem(result: LooseRecord | null, selection: SelectionSlice): LooseRecord | null;
|
|
66
|
+
export declare function readProjectedInlineStyleValue(styles: LooseRecord | null | undefined, key: ProjectedInlineSelectionValueKey): string | undefined;
|
|
67
|
+
export declare function normalizeLayoutFontFamily(value: unknown): string | undefined;
|
|
68
|
+
export declare function normalizeLayoutFontSizePt(value: unknown): string | undefined;
|
|
69
|
+
export declare function normalizeProjectedInlineStyleValueKey(key: ProjectedInlineSelectionValueKey, value: string): string;
|
|
70
|
+
export declare function projectInlineValuesFromQueryItem(item: LooseRecord | null, selection: SelectionSlice): ProjectedInlineSelectionValues;
|
|
71
|
+
export declare function collectProjectionTextBlocks(blocks: unknown): LooseRecord[];
|
|
72
|
+
export declare function projectionBlockMatchesId(block: LooseRecord, id: string): boolean;
|
|
73
|
+
export declare function projectionRunSelectionLength(run: LooseRecord): number;
|
|
74
|
+
export declare function inlineFormatMethod(descriptor: CommandDescriptor): string | null;
|
|
75
|
+
export declare const CLEAR_INLINE_PATCH: Readonly<Record<string, null>>;
|
|
76
|
+
export declare const TRACKED_CLEAR_INLINE_PATCH: Readonly<Record<string, null>>;
|
|
77
|
+
export declare function buildInlineFormatInput(spec: {
|
|
78
|
+
key: string;
|
|
79
|
+
kind: 'toggle' | 'value-string' | 'value-number' | 'clear';
|
|
80
|
+
}, target: SelectionTarget, payload: unknown, active: boolean): LooseRecord | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type AnyFn = (...args: unknown[]) => unknown;
|
|
2
|
+
export type LooseRecord = Record<string, unknown>;
|
|
3
|
+
export declare function readRecord(value: unknown): LooseRecord | undefined;
|
|
4
|
+
export declare function readRecordList(value: unknown): Array<LooseRecord | undefined>;
|
|
@@ -94,6 +94,7 @@ export declare const SUPERDOC_UI_REASONS: {
|
|
|
94
94
|
* are never gated by this reason.
|
|
95
95
|
*/
|
|
96
96
|
readonly contentControlLocked: "content-control-locked";
|
|
97
|
+
readonly deletedTextFormattingUnsupported: "deleted-text-formatting-unsupported";
|
|
97
98
|
/**
|
|
98
99
|
* The current user is not allowed to run this command under the product
|
|
99
100
|
* permissionResolver / role matrix (SD-3845). Distinct from document
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SelectionCapture, SelectionPoint, SelectionSlice, SelectionTarget, TextTarget } from './types.js';
|
|
2
|
+
import { LooseRecord } from './loose-record.js';
|
|
3
|
+
import { TextAddress, TextSegment } from '../../../../document-api/src/index.js';
|
|
4
|
+
export declare const EMPTY_SELECTION: SelectionSlice;
|
|
5
|
+
export declare function textTargetSegments(target: TextTarget | null | undefined): readonly TextSegment[];
|
|
6
|
+
export declare function selectionPointWithBlockId(point: SelectionPoint | null | undefined): Extract<SelectionPoint, {
|
|
7
|
+
kind: 'text';
|
|
8
|
+
}> | undefined;
|
|
9
|
+
export declare function selectionBlockRange(selection: SelectionSlice): {
|
|
10
|
+
startBlockId: string;
|
|
11
|
+
endBlockId: string;
|
|
12
|
+
} | null;
|
|
13
|
+
export declare function selectionBlockIds(selection: SelectionSlice): string[];
|
|
14
|
+
export declare const MAX_REACTIVE_SELECTION_BLOCK_READS = 64;
|
|
15
|
+
export declare function canProbeEverySelectedBlock(blockIds: readonly string[]): boolean;
|
|
16
|
+
export declare function selectionStoryLocator(selection: SelectionSlice): unknown | undefined;
|
|
17
|
+
export declare function selectionStory(selection: SelectionSlice): LooseRecord;
|
|
18
|
+
export declare function paragraphTarget(blockId: string, story?: unknown): LooseRecord;
|
|
19
|
+
export declare function listsBlockTarget(blockId: string): LooseRecord;
|
|
20
|
+
export declare function listItemTarget(blockId: string, story?: unknown): LooseRecord;
|
|
21
|
+
export declare function selectionTextAddresses(selection: SelectionSlice): TextAddress[];
|
|
22
|
+
export declare function textAddressesFromTarget(target: unknown): LooseRecord[];
|
|
23
|
+
export declare function collapsedTextAddressFromTarget(target: unknown): LooseRecord | null;
|
|
24
|
+
export declare function collapsedTextAddressFromSelection(selection: SelectionSlice): LooseRecord | null;
|
|
25
|
+
export declare function isHeaderFooterCaret(selection: SelectionSlice): boolean;
|
|
26
|
+
export declare function createLocationAt(selection: SelectionSlice, mode: 'nodeId' | 'target'): LooseRecord;
|
|
27
|
+
export declare function hyperlinkAddressToSelectionTarget(address: LooseRecord | null | undefined): LooseRecord | null;
|
|
28
|
+
export declare function hyperlinkTargetFromHref(href: string): LooseRecord;
|
|
29
|
+
export declare function isAddressableSegment(segment: unknown): segment is {
|
|
30
|
+
blockId: string;
|
|
31
|
+
range: {
|
|
32
|
+
start: number;
|
|
33
|
+
end: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare function selectionTargetFromTextTarget(target: SelectionSlice['target'] | SelectionCapture['target'] | null): SelectionTarget | null;
|
|
37
|
+
export type CellSelectionCapture = SelectionCapture & {
|
|
38
|
+
_tableCellSelectionTarget?: unknown;
|
|
39
|
+
_paintedSelectionTarget?: unknown;
|
|
40
|
+
};
|
|
41
|
+
export type TextSelectionTarget = SelectionTarget & {
|
|
42
|
+
start: Extract<SelectionTarget['start'], {
|
|
43
|
+
kind: 'text';
|
|
44
|
+
}>;
|
|
45
|
+
end: Extract<SelectionTarget['end'], {
|
|
46
|
+
kind: 'text';
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
export declare function capturedTableCellTarget(value: unknown): TextSelectionTarget | null;
|
|
50
|
+
export declare function selectionTargetForRestore(capture: SelectionCapture): SelectionTarget | null;
|
|
51
|
+
export declare function resolveInlineSelectionTarget(selection: SelectionSlice): SelectionTarget | null;
|
|
52
|
+
export declare function selectionHasOnlyDeletedText(selection: SelectionSlice): boolean;
|
|
53
|
+
export declare function selectionTouchesDeletedText(selection: SelectionSlice): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type SharedUiTrackedChangesCatalogState = {
|
|
2
|
+
refCount: number;
|
|
3
|
+
generation: number;
|
|
4
|
+
abortController: AbortController;
|
|
5
|
+
inFlight: {
|
|
6
|
+
generation: number;
|
|
7
|
+
commitSeq: number;
|
|
8
|
+
promise: Promise<unknown>;
|
|
9
|
+
} | null;
|
|
10
|
+
activeMutationTokens: Set<string>;
|
|
11
|
+
commitSeq: number;
|
|
12
|
+
countedCommitEvents: WeakSet<object>;
|
|
13
|
+
};
|
|
14
|
+
export declare const sharedUiTrackedChangesCatalogByHost: WeakMap<object, SharedUiTrackedChangesCatalogState>;
|
|
15
|
+
export declare function acquireSharedUiTrackedChangesCatalog(host: object): SharedUiTrackedChangesCatalogState;
|
|
16
|
+
export declare function releaseSharedUiTrackedChangesCatalog(host: object, state: SharedUiTrackedChangesCatalogState): void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CommentInfo, SelectionSlice, TrackChangeInfo, TrackChangesItem } from './types.js';
|
|
2
|
+
import { LooseRecord } from './loose-record.js';
|
|
3
|
+
import { SuperDocUIReason } from './reasons.js';
|
|
4
|
+
export declare function identityText(value: unknown): string;
|
|
5
|
+
export type TrackChangeAuthorship = Pick<TrackChangeInfo, 'author' | 'authorEmail'> & {
|
|
6
|
+
authorId?: unknown;
|
|
7
|
+
};
|
|
8
|
+
export declare function trackedChangeOwnedByCurrentUser(change: TrackChangeAuthorship, currentUser: LooseRecord | null): boolean;
|
|
9
|
+
export declare function readCollapsedHostTrackChangeId(snapshot: unknown): string | null;
|
|
10
|
+
export declare function isNonCollapsedHostSelection(snapshot: unknown): boolean;
|
|
11
|
+
export type SelectionTrackDecisionPlan = {
|
|
12
|
+
kind: 'ids';
|
|
13
|
+
ids: readonly string[];
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'id';
|
|
16
|
+
id: string;
|
|
17
|
+
story?: unknown;
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'range';
|
|
20
|
+
target: LooseRecord;
|
|
21
|
+
changeId: string | null;
|
|
22
|
+
story?: unknown;
|
|
23
|
+
permissionIds?: readonly string[];
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'blocked';
|
|
26
|
+
reason: SuperDocUIReason;
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'unavailable';
|
|
29
|
+
};
|
|
30
|
+
export interface TrackedChangeIdContext {
|
|
31
|
+
toPublicId(rawId: string): string | null;
|
|
32
|
+
aliasesFor(publicId: string): readonly string[];
|
|
33
|
+
}
|
|
34
|
+
export declare const trackedChangeIdContextCache: WeakMap<readonly unknown[], TrackedChangeIdContext>;
|
|
35
|
+
export declare function readTrackChangeProvenanceIds(item: unknown): string[];
|
|
36
|
+
export declare function buildTrackedChangeIdContext(items: readonly unknown[]): TrackedChangeIdContext;
|
|
37
|
+
export declare const storyScopedTrackedChangeIdContextCache: WeakMap<readonly unknown[], Map<string, TrackedChangeIdContext>>;
|
|
38
|
+
export declare const declaredBodyItemsCache: WeakMap<readonly unknown[], readonly unknown[]>;
|
|
39
|
+
export declare function buildStoryScopedTrackedChangeIdContext(items: readonly unknown[], story: unknown): TrackedChangeIdContext;
|
|
40
|
+
export declare function isTextboxStory(story: unknown): boolean;
|
|
41
|
+
export declare function resolveStorylessCanonicalTrackedChangeId(items: readonly unknown[], selectionIds: readonly string[]): string | null;
|
|
42
|
+
export declare function declaredBodyItems(items: readonly unknown[]): readonly unknown[];
|
|
43
|
+
export declare function resolveSelectionActiveChangeId(options: {
|
|
44
|
+
selectionIds: readonly string[];
|
|
45
|
+
publicIds?: readonly string[];
|
|
46
|
+
selection: SelectionSlice;
|
|
47
|
+
bodyItems: readonly unknown[];
|
|
48
|
+
allStoryItems: readonly unknown[] | null;
|
|
49
|
+
}): string | null;
|
|
50
|
+
export declare function resolveActiveCommentId(items: readonly CommentInfo[], commentId: string): string | null;
|
|
51
|
+
export declare function trackChangesItemPayload(item: TrackChangesItem): TrackChangeInfo;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, EntityAddress, TextAddress, BookmarkAddress, TextTarget, ScrollIntoViewInput, ScrollIntoViewOutput, SelectionInfo, SelectionTarget, Receipt, ReceiptFailureCode, ContentControlInfo, ContentControlTarget, StyleCatalogItem, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, StoryLocator as DocumentStoryLocator } from '../../../../document-api/src/index.js';
|
|
1
|
+
import { CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, EntityAddress, TextAddress, BookmarkAddress, TextTarget, ScrollIntoViewInput, ScrollIntoViewOutput, SelectionInfo, SelectionTarget, Receipt, ReceiptFailureCode, ContentControlInfo, ContentControlTarget, StyleCatalogItem, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, StoryLocator as DocumentStoryLocator, ChangeRecord } from '../../../../document-api/src/index.js';
|
|
2
2
|
import { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
|
|
3
|
+
import { ContentControlClickPayload } from '../content-control-ref.js';
|
|
3
4
|
import { ExportParams } from '../export-types.js';
|
|
4
5
|
import { SuperDocVisualHandle, SuperDocVisualOptions } from '../../core/extensions/types.js';
|
|
5
6
|
import { DocumentReplacementResult } from '../document-replacement.js';
|
|
@@ -31,10 +32,11 @@ import { BuiltInCommandId } from './commands.js';
|
|
|
31
32
|
* (`scripts/ensure-types.cjs` `rewriteDocApiPaths`), so no bare private
|
|
32
33
|
* specifier leaks into the emitted `.d.ts`.
|
|
33
34
|
*/
|
|
34
|
-
export type { Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, BookmarkAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, StoryLocator as DocumentStoryLocator, OperationId, OperationCall, OperationInput, OperationOptions, OperationOutput, } from '../../../../document-api/src/index.js';
|
|
35
|
+
export type { Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, BookmarkAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, StoryLocator as DocumentStoryLocator, ChangeRecord, ChangeActor, ChangeCause, ChangeProvenance, BlockChange, OperationId, OperationCall, OperationInput, OperationOptions, OperationOutput, } from '../../../../document-api/src/index.js';
|
|
35
36
|
export type { StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, } from '../../../../document-api/src/index.js';
|
|
36
37
|
export type { ListPresetId } from '../../../../document-api/src/index.js';
|
|
37
38
|
export type { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
|
|
39
|
+
export type { ContentControlClickPayload, ContentControlRef } from '../content-control-ref.js';
|
|
38
40
|
export type { DocumentReplacementResult } from '../document-replacement.js';
|
|
39
41
|
export type { SuperDocUIReason } from './reasons.js';
|
|
40
42
|
export type { BuiltInCommandId } from './commands.js';
|
|
@@ -164,6 +166,7 @@ export interface FontSizeOption {
|
|
|
164
166
|
}
|
|
165
167
|
/** Observable enable/active state for a toolbar-style command. */
|
|
166
168
|
export interface CommandState {
|
|
169
|
+
pending?: boolean;
|
|
167
170
|
/** Availability for a control in the current selection / mode snapshot. */
|
|
168
171
|
enabled: boolean;
|
|
169
172
|
/** Compatibility inverse of `enabled` for demo code that models commands as disabled. */
|
|
@@ -689,6 +692,12 @@ export interface SuperDocDocumentChange {
|
|
|
689
692
|
} | {
|
|
690
693
|
kind: 'unknown';
|
|
691
694
|
};
|
|
695
|
+
/**
|
|
696
|
+
* Attributed change records behind a remote change, oldest first. Present
|
|
697
|
+
* only when the engine recorded the remote transactions; `scope` is then
|
|
698
|
+
* derived from the stories the records touched.
|
|
699
|
+
*/
|
|
700
|
+
records?: ChangeRecord[];
|
|
692
701
|
}
|
|
693
702
|
/** Document-level state slice. */
|
|
694
703
|
export interface DocumentSlice {
|
|
@@ -824,6 +833,17 @@ export interface ViewportGetRectsResult {
|
|
|
824
833
|
/** One result per input. An invalidated batch contains no usable rectangles. */
|
|
825
834
|
results: readonly ViewportRectResult[];
|
|
826
835
|
}
|
|
836
|
+
export interface ViewportPositionAtInput {
|
|
837
|
+
x: number;
|
|
838
|
+
y: number;
|
|
839
|
+
signal?: AbortSignal;
|
|
840
|
+
}
|
|
841
|
+
export type ViewportPositionAtResult = {
|
|
842
|
+
status: 'resolved';
|
|
843
|
+
target: SelectionTarget;
|
|
844
|
+
} | {
|
|
845
|
+
status: 'no-target' | 'stale' | 'cancelled' | 'disposed' | 'unavailable';
|
|
846
|
+
};
|
|
827
847
|
/** Result of `ui.viewport.getRect`. */
|
|
828
848
|
export interface ViewportRectResult {
|
|
829
849
|
/** Whether the target resolved to any painted geometry. */
|
|
@@ -865,6 +885,7 @@ export interface SelectionHandle extends SnapshotSubscribable<SelectionSlice> {
|
|
|
865
885
|
* Fails closed with a stable reason when the host cannot honor the target.
|
|
866
886
|
*/
|
|
867
887
|
apply(target: SelectionTarget): WorkflowActionResult;
|
|
888
|
+
applyAndWait(target: SelectionTarget): Promise<WorkflowActionResult>;
|
|
868
889
|
/**
|
|
869
890
|
* Place the browser caret before or after a live inline content control.
|
|
870
891
|
* Placement does not edit the document or create an undo entry.
|
|
@@ -1132,6 +1153,7 @@ export interface ContentControlsHandle extends SnapshotSubscribable<ContentContr
|
|
|
1132
1153
|
* should use {@link observe}.
|
|
1133
1154
|
*/
|
|
1134
1155
|
observeActivePath(listener: (snapshot: ContentControlsSlice) => void): () => void;
|
|
1156
|
+
onClick(listener: (payload: ContentControlClickPayload) => void): () => void;
|
|
1135
1157
|
/** Event-shaped alias of {@link observe}. */
|
|
1136
1158
|
subscribe(listener: (event: {
|
|
1137
1159
|
snapshot: ContentControlsSlice;
|
|
@@ -1284,6 +1306,7 @@ export interface ViewportHandle {
|
|
|
1284
1306
|
getRect(input: ViewportGetRectInput): ViewportRectResult;
|
|
1285
1307
|
/** At most 5000 targets, yielding every 32. Never forces unpainted pages to render. */
|
|
1286
1308
|
getRects(input: ViewportGetRectsInput): Promise<ViewportGetRectsResult>;
|
|
1309
|
+
positionAt(input: ViewportPositionAtInput): Promise<ViewportPositionAtResult>;
|
|
1287
1310
|
/**
|
|
1288
1311
|
* Subscribe to geometry invalidation after selection, zoom, scroll, resize,
|
|
1289
1312
|
* layout, or repaint changes. The callback is coalesced to one per frame.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function uiBenchNowMs(): number;
|
|
2
|
+
export declare function readUiBenchRuntime(): {
|
|
3
|
+
sink: ((event: Record<string, unknown>) => void) | null;
|
|
4
|
+
workerContext: {
|
|
5
|
+
commandId: string | null;
|
|
6
|
+
commandKind: string | null;
|
|
7
|
+
} | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function emitUiBenchTiming(event: Record<string, unknown>): void;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
// Generated by scripts/ensure-types.cjs. Do not edit by hand.
|
|
2
2
|
import type { ActiveParagraphStyle as __Cjs_ActiveParagraphStyle } from './ui.js' with { "resolution-mode": "import" };
|
|
3
|
+
import type { BlockChange as __Cjs_BlockChange } from './ui.js' with { "resolution-mode": "import" };
|
|
3
4
|
import type { BookmarkAddress as __Cjs_BookmarkAddress } from './ui.js' with { "resolution-mode": "import" };
|
|
4
5
|
import type { BookmarksHandle as __Cjs_BookmarksHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
5
6
|
import type { BorrowedSuperDocUI as __Cjs_BorrowedSuperDocUI } from './ui.js' with { "resolution-mode": "import" };
|
|
6
7
|
import type { BrowserDocumentApi as __Cjs_BrowserDocumentApi } from './ui.js' with { "resolution-mode": "import" };
|
|
7
8
|
import type { BuiltInCommandId as __Cjs_BuiltInCommandId } from './ui.js' with { "resolution-mode": "import" };
|
|
9
|
+
import type { ChangeActor as __Cjs_ChangeActor } from './ui.js' with { "resolution-mode": "import" };
|
|
10
|
+
import type { ChangeCause as __Cjs_ChangeCause } from './ui.js' with { "resolution-mode": "import" };
|
|
11
|
+
import type { ChangeProvenance as __Cjs_ChangeProvenance } from './ui.js' with { "resolution-mode": "import" };
|
|
12
|
+
import type { ChangeRecord as __Cjs_ChangeRecord } from './ui.js' with { "resolution-mode": "import" };
|
|
8
13
|
import type { CommandExecutionResult as __Cjs_CommandExecutionResult } from './ui.js' with { "resolution-mode": "import" };
|
|
9
14
|
import type { CommandHandle as __Cjs_CommandHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
10
15
|
import type { CommandId as __Cjs_CommandId } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -17,10 +22,12 @@ import type { CommentsHandle as __Cjs_CommentsHandle } from './ui.js' with { "re
|
|
|
17
22
|
import type { CommentsListQuery as __Cjs_CommentsListQuery } from './ui.js' with { "resolution-mode": "import" };
|
|
18
23
|
import type { CommentsListResult as __Cjs_CommentsListResult } from './ui.js' with { "resolution-mode": "import" };
|
|
19
24
|
import type { CommentsSlice as __Cjs_CommentsSlice } from './ui.js' with { "resolution-mode": "import" };
|
|
25
|
+
import type { ContentControlClickPayload as __Cjs_ContentControlClickPayload } from './ui.js' with { "resolution-mode": "import" };
|
|
20
26
|
import type { ContentControlCreationRejectionReason as __Cjs_ContentControlCreationRejectionReason } from './ui.js' with { "resolution-mode": "import" };
|
|
21
27
|
import type { ContentControlFocusResult as __Cjs_ContentControlFocusResult } from './ui.js' with { "resolution-mode": "import" };
|
|
22
28
|
import type { ContentControlHighlightResult as __Cjs_ContentControlHighlightResult } from './ui.js' with { "resolution-mode": "import" };
|
|
23
29
|
import type { ContentControlInfo as __Cjs_ContentControlInfo } from './ui.js' with { "resolution-mode": "import" };
|
|
30
|
+
import type { ContentControlRef as __Cjs_ContentControlRef } from './ui.js' with { "resolution-mode": "import" };
|
|
24
31
|
import type { ContentControlsHandle as __Cjs_ContentControlsHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
25
32
|
import type { ContentControlsListResult as __Cjs_ContentControlsListResult } from './ui.js' with { "resolution-mode": "import" };
|
|
26
33
|
import type { ContentControlsSlice as __Cjs_ContentControlsSlice } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -142,6 +149,8 @@ import type { ViewportGetRectsInput as __Cjs_ViewportGetRectsInput } from './ui.
|
|
|
142
149
|
import type { ViewportGetRectsResult as __Cjs_ViewportGetRectsResult } from './ui.js' with { "resolution-mode": "import" };
|
|
143
150
|
import type { ViewportGetRectTarget as __Cjs_ViewportGetRectTarget } from './ui.js' with { "resolution-mode": "import" };
|
|
144
151
|
import type { ViewportHandle as __Cjs_ViewportHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
152
|
+
import type { ViewportPositionAtInput as __Cjs_ViewportPositionAtInput } from './ui.js' with { "resolution-mode": "import" };
|
|
153
|
+
import type { ViewportPositionAtResult as __Cjs_ViewportPositionAtResult } from './ui.js' with { "resolution-mode": "import" };
|
|
145
154
|
import type { ViewportRect as __Cjs_ViewportRect } from './ui.js' with { "resolution-mode": "import" };
|
|
146
155
|
import type { ViewportRectResult as __Cjs_ViewportRectResult } from './ui.js' with { "resolution-mode": "import" };
|
|
147
156
|
import type { WatermarkHandle as __Cjs_WatermarkHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -157,12 +166,17 @@ import type { WorkflowScrollResult as __Cjs_WorkflowScrollResult } from './ui.js
|
|
|
157
166
|
import type { ZoomHandle as __Cjs_ZoomHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
158
167
|
import type { ZoomSlice as __Cjs_ZoomSlice } from './ui.js' with { "resolution-mode": "import" };
|
|
159
168
|
export type { __Cjs_ActiveParagraphStyle as ActiveParagraphStyle };
|
|
169
|
+
export type { __Cjs_BlockChange as BlockChange };
|
|
160
170
|
export type { __Cjs_BookmarkAddress as BookmarkAddress };
|
|
161
171
|
export type { __Cjs_BookmarksHandle as BookmarksHandle };
|
|
162
172
|
export type { __Cjs_BorrowedSuperDocUI as BorrowedSuperDocUI };
|
|
163
173
|
export type { __Cjs_BrowserDocumentApi as BrowserDocumentApi };
|
|
164
174
|
export declare const BUILT_IN_COMMAND_IDS: typeof import('./ui.js', { with: { "resolution-mode": "import" } }).BUILT_IN_COMMAND_IDS;
|
|
165
175
|
export type { __Cjs_BuiltInCommandId as BuiltInCommandId };
|
|
176
|
+
export type { __Cjs_ChangeActor as ChangeActor };
|
|
177
|
+
export type { __Cjs_ChangeCause as ChangeCause };
|
|
178
|
+
export type { __Cjs_ChangeProvenance as ChangeProvenance };
|
|
179
|
+
export type { __Cjs_ChangeRecord as ChangeRecord };
|
|
166
180
|
export type { __Cjs_CommandExecutionResult as CommandExecutionResult };
|
|
167
181
|
export type { __Cjs_CommandHandle as CommandHandle };
|
|
168
182
|
export type { __Cjs_CommandId as CommandId };
|
|
@@ -175,10 +189,12 @@ export type { __Cjs_CommentsHandle as CommentsHandle };
|
|
|
175
189
|
export type { __Cjs_CommentsListQuery as CommentsListQuery };
|
|
176
190
|
export type { __Cjs_CommentsListResult as CommentsListResult };
|
|
177
191
|
export type { __Cjs_CommentsSlice as CommentsSlice };
|
|
192
|
+
export type { __Cjs_ContentControlClickPayload as ContentControlClickPayload };
|
|
178
193
|
export type { __Cjs_ContentControlCreationRejectionReason as ContentControlCreationRejectionReason };
|
|
179
194
|
export type { __Cjs_ContentControlFocusResult as ContentControlFocusResult };
|
|
180
195
|
export type { __Cjs_ContentControlHighlightResult as ContentControlHighlightResult };
|
|
181
196
|
export type { __Cjs_ContentControlInfo as ContentControlInfo };
|
|
197
|
+
export type { __Cjs_ContentControlRef as ContentControlRef };
|
|
182
198
|
export type { __Cjs_ContentControlsHandle as ContentControlsHandle };
|
|
183
199
|
export type { __Cjs_ContentControlsListResult as ContentControlsListResult };
|
|
184
200
|
export type { __Cjs_ContentControlsSlice as ContentControlsSlice };
|
|
@@ -303,6 +319,8 @@ export type { __Cjs_ViewportGetRectsInput as ViewportGetRectsInput };
|
|
|
303
319
|
export type { __Cjs_ViewportGetRectsResult as ViewportGetRectsResult };
|
|
304
320
|
export type { __Cjs_ViewportGetRectTarget as ViewportGetRectTarget };
|
|
305
321
|
export type { __Cjs_ViewportHandle as ViewportHandle };
|
|
322
|
+
export type { __Cjs_ViewportPositionAtInput as ViewportPositionAtInput };
|
|
323
|
+
export type { __Cjs_ViewportPositionAtResult as ViewportPositionAtResult };
|
|
306
324
|
export type { __Cjs_ViewportRect as ViewportRect };
|
|
307
325
|
export type { __Cjs_ViewportRectResult as ViewportRectResult };
|
|
308
326
|
export type { __Cjs_WatermarkHandle as WatermarkHandle };
|
|
@@ -18,5 +18,5 @@ export { createSuperDocUI } from './ui/create-super-doc-ui.js';
|
|
|
18
18
|
export { getDocumentApiRejectionReason } from './ui/rejection-reasons.js';
|
|
19
19
|
export { shallowEqual } from './ui/equality.js';
|
|
20
20
|
export { BUILT_IN_COMMAND_IDS } from './ui/commands.js';
|
|
21
|
-
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, HistoryHandle, DocumentHandle, DocumentReplacementResult, SuperDocDocumentChange, DocumentVersion, DocumentMarkCleanResult, ScopedDocumentHandle, ViewportHandle, DecorationsHandle, DecorationPointerEvent, StylesHandle, StylesUpdateToMatchSelectionInput, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, HistorySlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectTarget, ViewportGetRectsInput, ViewportGetRectsResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, OperationId, OperationCall, OperationInput, OperationOptions, OperationOutput, } from './ui/types.js';
|
|
21
|
+
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, ContentControlClickPayload, ContentControlRef, FontsHandle, ZoomHandle, HistoryHandle, DocumentHandle, DocumentReplacementResult, SuperDocDocumentChange, DocumentVersion, DocumentMarkCleanResult, ScopedDocumentHandle, ViewportHandle, DecorationsHandle, DecorationPointerEvent, StylesHandle, StylesUpdateToMatchSelectionInput, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, HistorySlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectTarget, ViewportGetRectsInput, ViewportGetRectsResult, ViewportPositionAtInput, ViewportPositionAtResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, ChangeRecord, ChangeActor, ChangeCause, ChangeProvenance, BlockChange, OperationId, OperationCall, OperationInput, OperationOptions, OperationOutput, } from './ui/types.js';
|
|
22
22
|
export type { PageMetricsHandle, PageMetricsSnapshot, PageMetricsPage, PageBodyTarget } from './ui/page-metrics.js';
|