superdoc 2.29.0-next.3 → 2.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{FindReplaceSurface-BKVHzhQ4.es.js → FindReplaceSurface-B_5ggdWg.es.js} +1 -1
- package/dist/chunks/{FindReplaceSurface-BNDrJ6VS.cjs → FindReplaceSurface-fVHxPXtn.cjs} +1 -1
- package/dist/chunks/{PasswordPromptSurface-6mF6Azda.es.js → PasswordPromptSurface-CZqhDQQ1.es.js} +1 -1
- package/dist/chunks/{PasswordPromptSurface-BNkaztaP.cjs → PasswordPromptSurface-x8GNmMJT.cjs} +1 -1
- package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-CW09MNrB.es.js} +70 -105
- package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-CkrAHpC-.cjs} +74 -109
- package/dist/chunks/{_plugin-vue_export-helper-6MBoygIY.cjs → _plugin-vue_export-helper-BkbCxNeT.cjs} +31 -7
- package/dist/chunks/{_plugin-vue_export-helper-CsJQtMvr.es.js → _plugin-vue_export-helper-DRPRMkeA.es.js} +20 -8
- package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
- package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
- package/dist/chunks/{create-super-doc-ui-BFt8agAI.es.js → create-super-doc-ui-Dc8dQAMc.es.js} +89 -137
- package/dist/chunks/{create-super-doc-ui-BAGOnYGM.cjs → create-super-doc-ui-L60GhVAX.cjs} +211 -259
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
- package/dist/document-api/src/comments/comments.d.ts +2 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
- package/dist/document-api/src/index.d.ts +8 -7
- package/dist/document-api/src/insert/insert.d.ts +2 -2
- package/dist/document-api/src/replace/replace.d.ts +3 -2
- package/dist/document-api/src/types/address.d.ts +3 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/document-api/src/write/write.d.ts +12 -6
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/SuperDoc.vue.d.ts +132 -58
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +28 -13
- package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +11 -1
- package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +19 -2
- package/dist/superdoc/src/components/CommentsLayer/comment-urls.d.ts +1 -1
- package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +23 -20
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
- package/dist/superdoc/src/components/CommentsLayer/helpers.d.ts +1 -4
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +16 -2
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +28 -13
- package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
- package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
- package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
- package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +80 -16
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +48 -13
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +13 -0
- package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
- package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
- package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
- package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
- package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
- package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
- package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
- package/dist/superdoc/src/composables/use-field.d.ts +88 -25
- package/dist/superdoc/src/composables/use-find-replace.d.ts +13 -3
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +62 -26
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
- package/dist/superdoc/src/core/SuperDoc.d.ts +4 -4
- package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
- package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
- package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
- package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
- package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
- package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
- package/dist/superdoc/src/core/create-app.d.ts +13 -24
- package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
- package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
- package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
- package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
- package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
- package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +28 -61
- package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
- package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
- package/dist/superdoc/src/core/types/index.d.ts +41 -23
- package/dist/superdoc/src/core/v2-integration/browser-peer-runtime.d.ts +5 -3
- package/dist/superdoc/src/core/v2-integration/cdn-engine-loader.d.ts +3 -13
- package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +64 -59
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
- package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
- package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
- package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
- package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
- package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
- package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
- package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
- package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
- package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
- package/dist/superdoc/src/helpers/object-guards.d.ts +2 -5
- package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
- package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
- package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
- package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
- package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
- package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
- package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
- package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
- package/dist/superdoc/src/icons.d.ts +11 -19
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
- package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +6 -4
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +4 -24
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +34 -0
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +34 -0
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +25 -15
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +12 -14
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -11
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +9 -19
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +14 -45
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
- package/dist/superdoc/src/internal/toolbar/built-in/font-options.d.ts +15 -1
- package/dist/superdoc/src/internal/toolbar/built-in/font-typeahead.d.ts +37 -7
- package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +10 -4
- package/dist/superdoc/src/internal/toolbar/built-in/general.d.ts +12 -1
- package/dist/superdoc/src/internal/toolbar/built-in/helpers.d.ts +9 -4
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/page-number-feedback.d.ts +4 -5
- package/dist/superdoc/src/internal/toolbar/built-in/scroll-helpers.d.ts +3 -4
- package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +78 -145
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
- package/dist/superdoc/src/internal/toolbar/built-in/url-safety.d.ts +11 -3
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +11 -30
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/image-upload.d.ts +29 -39
- package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
- package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
- package/dist/superdoc/src/public/index.d.cts +26 -0
- package/dist/superdoc/src/public/index.d.ts +13 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
- package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
- package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +231 -105
- package/dist/superdoc/src/stores/helpers/comment-document-scope.d.ts +22 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
- package/dist/superdoc/src/stores/helpers/pending-selection-snapshot.d.ts +17 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-compaction.d.ts +16 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-decision.d.ts +45 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +0 -4
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
- package/dist/superdoc/src/stores/superdoc-store.d.ts +694 -316
- package/dist/superdoc.cjs +1804 -2782
- package/dist/superdoc.es.js +1720 -2699
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +3 -2
- package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
- package/dist/superdoc/src/main.d.ts +0 -1
|
@@ -135,9 +135,9 @@ export interface FieldCommandSpec {
|
|
|
135
135
|
instruction: string;
|
|
136
136
|
}
|
|
137
137
|
/** Number style of a section's pages, as Word's Format Page Numbers names them. */
|
|
138
|
-
|
|
138
|
+
type PageNumberFormat = 'decimal' | 'lowerLetter' | 'upperLetter' | 'lowerRoman' | 'upperRoman' | 'numberInDash' | 'hebrew1' | 'hebrew2';
|
|
139
139
|
/** Normalized input of the page-numbers-apply command. Omitted options keep the section's settings. */
|
|
140
|
-
|
|
140
|
+
interface PageNumbersApplyCommandInput {
|
|
141
141
|
/** 'header' numbers the top of the page, 'footer' the bottom. */
|
|
142
142
|
kind: 'header' | 'footer';
|
|
143
143
|
alignment?: 'left' | 'center' | 'right';
|
|
@@ -147,7 +147,7 @@ export interface PageNumbersApplyCommandInput {
|
|
|
147
147
|
start?: number | null;
|
|
148
148
|
}
|
|
149
149
|
/** Normalized input of the page-numbers-remove command. */
|
|
150
|
-
|
|
150
|
+
interface PageNumbersRemoveCommandInput {
|
|
151
151
|
/** Remove only the header's or the footer's numbers. Omitted removes both. */
|
|
152
152
|
kind?: 'header' | 'footer';
|
|
153
153
|
}
|
|
@@ -237,44 +237,44 @@ export interface CommandDescriptor {
|
|
|
237
237
|
reason?: SuperDocUIReason;
|
|
238
238
|
}
|
|
239
239
|
/** Strip a trailing `pt` unit from v1-style font sizes (`"12pt"` → `"12"`). */
|
|
240
|
-
|
|
240
|
+
declare function normalizeFontSizePayload(payload: unknown): unknown;
|
|
241
241
|
/**
|
|
242
242
|
* Normalize v1-style zoom payloads to the percentage `SuperDoc.setZoom`
|
|
243
243
|
* expects (`100 === 100%`). Accepts `150`, `"150%"`, `"1.5"`, or `1.5`.
|
|
244
244
|
* Percentages pass through as numbers; legacy fraction-style values in the
|
|
245
245
|
* `0..5` range are converted to percentages (`1.5` → `150`).
|
|
246
246
|
*/
|
|
247
|
-
|
|
247
|
+
declare function normalizeZoomPayload(payload: unknown): unknown;
|
|
248
248
|
/**
|
|
249
249
|
* Normalize a measurement-unit payload to the `'in'` / `'cm'` form
|
|
250
250
|
* `SuperDoc.setMeasurementUnit` expects. Accepts the canonical `'in'` / `'cm'`,
|
|
251
251
|
* a `{ value }` wrapper, or common long forms (`"inches"`, `"centimeters"`).
|
|
252
252
|
* An unrecognized value passes through so the instance method can reject it.
|
|
253
253
|
*/
|
|
254
|
-
|
|
254
|
+
declare function normalizeMeasurementUnitPayload(payload: unknown): unknown;
|
|
255
255
|
/**
|
|
256
256
|
* Normalize a v1-style color payload to the `#RRGGBB` form the inline
|
|
257
257
|
* `format.color` / `format.highlight` operations expect. Accepts `"#RRGGBB"`,
|
|
258
258
|
* `"RRGGBB"`, or `{ value }`. `null` (clear) passes through unchanged; an
|
|
259
259
|
* unrecognized value is returned as-is so the operation can reject it.
|
|
260
260
|
*/
|
|
261
|
-
|
|
261
|
+
declare function normalizeColorPayload(payload: unknown): unknown;
|
|
262
262
|
/** Normalize a v1 alignment payload (`"left"`, `{ value }`, `"justified"`) to a `ParagraphAlignment`. */
|
|
263
|
-
|
|
263
|
+
declare function normalizeAlignmentPayload(payload: unknown): unknown;
|
|
264
264
|
/**
|
|
265
265
|
* Normalize a page-numbers-apply payload. `position` takes 'top' or 'bottom';
|
|
266
266
|
* `kind` takes 'header' or 'footer'; without either the numbers go at the bottom
|
|
267
267
|
* of the page, as in Word. Other omitted options keep the section's settings.
|
|
268
268
|
* Returns null for a value it does not recognize, so the command fails closed.
|
|
269
269
|
*/
|
|
270
|
-
|
|
270
|
+
declare function normalizePageNumbersApplyPayload(payload: unknown): PageNumbersApplyCommandInput | null;
|
|
271
271
|
/** Normalize a page-numbers-remove payload: an optional `position` or `kind`. */
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
declare function normalizePageNumbersRemovePayload(payload: unknown): PageNumbersRemoveCommandInput | null;
|
|
273
|
+
declare function normalizeLineHeightPayload(payload: unknown): unknown;
|
|
274
274
|
/** Preserve semantic style intent; normalize legacy linked-style payloads to a concrete ID. */
|
|
275
|
-
|
|
275
|
+
declare function normalizeStyleIdPayload(payload: unknown): unknown;
|
|
276
276
|
/** Resolve a document-mode payload (`"viewing"` or `{ mode }`) to the mode string. */
|
|
277
|
-
|
|
277
|
+
declare function normalizeDocumentModePayload(payload: unknown): unknown;
|
|
278
278
|
/**
|
|
279
279
|
* The built-in command catalog. Order is documentation-only. Every v1
|
|
280
280
|
* headless-toolbar id appears here with an explicit disposition; the 14
|
|
@@ -797,3 +797,4 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
797
797
|
export declare const ALL_BUILT_IN_COMMAND_IDS: readonly BuiltInCommandId[];
|
|
798
798
|
/** Resolve a command descriptor by id, or `null` when the id is unknown. */
|
|
799
799
|
export declare function getCommandDescriptor(id: string): CommandDescriptor | null;
|
|
800
|
+
export {};
|
|
@@ -25,7 +25,7 @@ export declare function executeFirstPartyShortcutAsync(ui: object, id: string, p
|
|
|
25
25
|
* tested set. Keys are coordinator cache keys (exact) or key families
|
|
26
26
|
* (prefix). See the gate in `readAsync` for the runtime semantics.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
interface HeavyDocReadPolicyEntry {
|
|
29
29
|
key: string;
|
|
30
30
|
match: 'exact' | 'prefix';
|
|
31
31
|
/** Audit rationale — why this key is catalog-scale (or reserved). */
|
|
@@ -8,7 +8,7 @@ import { ViewportEntityHit } from './types.js';
|
|
|
8
8
|
* fresh). Kept off the public {@link ViewportEntityHit} so consumers still only
|
|
9
9
|
* switch on the typed public shape.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
interface CollectedEntityHit extends ViewportEntityHit {
|
|
12
12
|
storyKey?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare function collectDecorationProvidersFromChain(start: Element | null, stopAt: Element): string[];
|
|
@@ -28,3 +28,4 @@ export declare function collectDecorationProvidersFromChain(start: Element | nul
|
|
|
28
28
|
* browser) without an `instanceof` check that could fail across realms.
|
|
29
29
|
*/
|
|
30
30
|
export declare function collectEntityHitsFromChain(start: Element | null, stopAt?: Element | null): CollectedEntityHit[];
|
|
31
|
+
export {};
|
|
@@ -2,22 +2,16 @@
|
|
|
2
2
|
* Maps SDRunProps field names to InlineRunPatch field names.
|
|
3
3
|
* SDRunProps (read-side) and InlineRunPatch (write-side) use different keys
|
|
4
4
|
* for the same properties; direct assignment between them is forbidden.
|
|
5
|
-
*
|
|
6
|
-
* @param {Record<string, unknown>} props - SDRunProps object from doc.getNodeById
|
|
7
|
-
* @returns {Record<string, unknown>} InlineRunPatch ready for doc.format.apply
|
|
8
5
|
*/
|
|
9
|
-
export function sdRunPropsToInlineRunPatch(props: Record<string, unknown>): Record<string, unknown>;
|
|
6
|
+
export declare function sdRunPropsToInlineRunPatch(props: Record<string, unknown>): Record<string, unknown>;
|
|
10
7
|
/**
|
|
11
8
|
* Serializes a selection to a stable string key used to detect whether
|
|
12
9
|
* the target selection is the same as the source (skip apply in that case).
|
|
13
10
|
*
|
|
14
11
|
* Falls back to the plain text target when the host has not populated an
|
|
15
12
|
* explicit `selectionTarget` yet.
|
|
16
|
-
*
|
|
17
|
-
* @param {{ selectionTarget?: unknown; target?: unknown } | null | undefined} selection
|
|
18
|
-
* @returns {string}
|
|
19
13
|
*/
|
|
20
|
-
export function selectionKey(selection: {
|
|
14
|
+
export declare function selectionKey(selection: {
|
|
21
15
|
selectionTarget?: unknown;
|
|
22
16
|
target?: unknown;
|
|
23
17
|
} | null | undefined): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormatReadSelectionResult, InlineRunPatchKey, StylesStyleRunPatch } from '../../../../document-api/src/index.js';
|
|
2
|
-
export declare const STYLE_MATCH_KEYS: readonly [readonly ["bold", "bold"], readonly ["italic", "italic"], readonly ["underline", "underline"], readonly ["color", "color"], readonly ["fontSize", "fontSize"], readonly ["rFonts", "fontFamily"]];
|
|
3
2
|
export declare const STYLE_MATCH_READ_KEYS: InlineRunPatchKey[];
|
|
4
|
-
|
|
3
|
+
interface StyleMatchPatchOptions {
|
|
5
4
|
selectionUsesStyle: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare function buildStyleMatchPatch(effective: FormatReadSelectionResult, direct: FormatReadSelectionResult, options: StyleMatchPatchOptions): StylesStyleRunPatch;
|
|
7
|
+
export {};
|
|
@@ -31,7 +31,7 @@ import { BuiltInCommandId } from './commands.js';
|
|
|
31
31
|
* (`scripts/ensure-types.cjs` `rewriteDocApiPaths`), so no bare private
|
|
32
32
|
* specifier leaks into the emitted `.d.ts`.
|
|
33
33
|
*/
|
|
34
|
-
export type { Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, BookmarkAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress,
|
|
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
35
|
export type { StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, } from '../../../../document-api/src/index.js';
|
|
36
36
|
export type { ListPresetId } from '../../../../document-api/src/index.js';
|
|
37
37
|
export type { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
|