superdoc 2.12.0-next.2 → 2.12.0-next.20

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.
Files changed (50) hide show
  1. package/dist/chunks/{FindReplaceSurface-40AnrqWk.es.js → FindReplaceSurface-CVKgivXi.es.js} +8 -2
  2. package/dist/chunks/{FindReplaceSurface-0p7EtMZh.cjs → FindReplaceSurface-qi9OhbwN.cjs} +8 -2
  3. package/dist/chunks/{create-super-doc-ui-CBFGggZ2.cjs → create-super-doc-ui-BWWWNPP8.cjs} +180 -84
  4. package/dist/chunks/{create-super-doc-ui-C-AuEM9F.es.js → create-super-doc-ui-FnwgTkUv.es.js} +180 -84
  5. package/dist/collaboration-upgrade-engine.cjs +1 -1
  6. package/dist/collaboration-upgrade-engine.es.js +1 -1
  7. package/dist/layout-engine/contracts/src/column-layout.d.ts +58 -1
  8. package/dist/layout-engine/contracts/src/graphic-placement.d.ts +3 -0
  9. package/dist/layout-engine/contracts/src/index.d.ts +17 -3
  10. package/dist/layout-engine/contracts/src/run-helpers.d.ts +8 -0
  11. package/dist/layout-engine/layout-bridge/src/cache.d.ts +5 -4
  12. package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +4 -1
  13. package/dist/layout-engine/layout-bridge/src/note-marker-measure-key.d.ts +3 -0
  14. package/dist/layout-engine/layout-bridge/src/remeasure.d.ts +2 -1
  15. package/dist/layout-engine/layout-engine/src/column-balancing.d.ts +11 -7
  16. package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +2 -6
  17. package/dist/layout-engine/painters/dom/src/derived-run-text-plane.d.ts +9 -0
  18. package/dist/layout-engine/painters/dom/src/index.d.ts +1 -0
  19. package/dist/layout-engine/painters/dom/src/page-content.d.ts +3 -1
  20. package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
  21. package/dist/layout-engine/painters/dom/src/renderer.d.ts +9 -16
  22. package/dist/public/ui-react.cjs +56 -10
  23. package/dist/public/ui-react.es.js +56 -11
  24. package/dist/public/ui-vue.cjs +18 -1
  25. package/dist/public/ui-vue.es.js +18 -2
  26. package/dist/public/ui.cjs +1 -1
  27. package/dist/public/ui.es.js +1 -1
  28. package/dist/shared/font-system/src/index.d.ts +3 -1
  29. package/dist/shared/font-system/src/natural-line-metrics.d.ts +11 -0
  30. package/dist/shared/font-system/src/resolver.d.ts +14 -0
  31. package/dist/style.css +65 -65
  32. package/dist/style.layered.css +65 -65
  33. package/dist/superdoc/src/core/types/index.d.ts +35 -12
  34. package/dist/superdoc/src/public/index.d.cts +2 -0
  35. package/dist/superdoc/src/public/index.d.ts +1 -0
  36. package/dist/superdoc/src/public/ui/react.d.ts +12 -3
  37. package/dist/superdoc/src/public/ui/types.d.ts +81 -21
  38. package/dist/superdoc/src/public/ui/vue.d.ts +4 -2
  39. package/dist/superdoc/src/public/ui-react.d.cts +3 -0
  40. package/dist/superdoc/src/public/ui-react.d.ts +2 -2
  41. package/dist/superdoc/src/public/ui-vue.d.cts +1 -0
  42. package/dist/superdoc/src/public/ui-vue.d.ts +1 -1
  43. package/dist/superdoc/src/public/ui.d.cts +2 -0
  44. package/dist/superdoc/src/public/ui.d.ts +1 -1
  45. package/dist/superdoc.cjs +166 -14
  46. package/dist/superdoc.es.js +166 -14
  47. package/dist-cdn/style.layered.css +1 -1
  48. package/dist-cdn/superdoc.min.css +1 -1
  49. package/dist-cdn/superdoc.min.js +37 -37
  50. package/package.json +2 -2
@@ -184,6 +184,10 @@ export interface CommandState {
184
184
  */
185
185
  reason?: SuperDocUIReason;
186
186
  }
187
+ /** A built-in command id, or an application id registered through `ui.commands.register()`. */
188
+ export type CommandId = BuiltInCommandId | (string & {});
189
+ /** Command id accepted by toolbar APIs. Equivalent to {@link CommandId}. */
190
+ export type ToolbarCommandId = CommandId;
187
191
  /**
188
192
  * Failure code carried by a receipt that the UI controller mints itself
189
193
  * (rather than relaying from the Document API). Extends the Document API's
@@ -317,7 +321,7 @@ export type SelectionRestoreResult = {
317
321
  * Document API / SuperDoc instance; `getState` reflects the live enable/active
318
322
  * snapshot; `observe` notifies on state change.
319
323
  */
320
- export interface CommandHandle<Id extends string = string> {
324
+ export interface CommandHandle<Id extends CommandId = CommandId> {
321
325
  /** The command id this handle wraps. */
322
326
  readonly id: Id;
323
327
  /** Current enable/active state. */
@@ -437,9 +441,9 @@ export interface CustomCommandContext<TPayload = unknown> {
437
441
  */
438
442
  ui: BorrowedSuperDocUI;
439
443
  /** Run a catalog command id through the shared controller. */
440
- execute(id: string, payload?: unknown): CommandExecutionResult;
444
+ execute(id: CommandId, payload?: unknown): CommandExecutionResult;
441
445
  /** Run a catalog command id and await its settled result. */
442
- executeAsync(id: string, payload?: unknown): Promise<CommandExecutionResult>;
446
+ executeAsync(id: CommandId, payload?: unknown): Promise<CommandExecutionResult>;
443
447
  /**
444
448
  * The host's browser Document API facade (read-only-guarded, async-capable),
445
449
  * or `null` when unavailable.
@@ -469,7 +473,7 @@ export interface CustomCommandContext<TPayload = unknown> {
469
473
  }
470
474
  export interface CustomCommandRegistration<TPayload = unknown, TValue = unknown> {
471
475
  /** Unique command id. */
472
- id: string;
476
+ id: CommandId;
473
477
  /** Implementation invoked when the command runs. */
474
478
  execute(context: CustomCommandContext<TPayload>): unknown;
475
479
  /** Optional live-state provider. */
@@ -484,7 +488,7 @@ export interface CustomCommandRegistration<TPayload = unknown, TValue = unknown>
484
488
  when?(context: ViewportContext): boolean;
485
489
  };
486
490
  }
487
- export interface CustomCommandHandle<TPayload = unknown, TValue = unknown> extends Omit<CommandHandle<string>, 'execute' | 'executeAsync' | 'getState' | 'observe'> {
491
+ export interface CustomCommandHandle<TPayload = unknown, TValue = unknown> extends Omit<CommandHandle<CommandId>, 'execute' | 'executeAsync' | 'getState' | 'observe'> {
488
492
  /** Current custom-command state. */
489
493
  getState(): CustomCommandHandleState<TValue>;
490
494
  /** Subscribe to custom-command state changes; returns an unsubscribe function. */
@@ -501,15 +505,15 @@ export type CustomCommandRegistrationResult<TPayload = unknown, TValue = unknown
501
505
  /** Aggregate command surface. */
502
506
  export interface CommandsHandle {
503
507
  /** All known command ids (built-in plus registered). */
504
- readonly ids: readonly string[];
508
+ readonly ids: readonly CommandId[];
505
509
  /** Whether a command id is known to the controller. */
506
- has(id: string): boolean;
510
+ has(id: CommandId): boolean;
507
511
  /** Resolve a handle for a command id. */
508
- get<Id extends string = string>(id: Id): CommandHandle<Id>;
512
+ get<Id extends CommandId = CommandId>(id: Id): CommandHandle<Id>;
509
513
  /** Execute a command by id. */
510
- execute(id: string, payload?: unknown): CommandExecutionResult;
514
+ execute(id: CommandId, payload?: unknown): CommandExecutionResult;
511
515
  /** Execute a command by id and resolve once the routed work has settled. */
512
- executeAsync(id: string, payload?: unknown): Promise<CommandExecutionResult>;
516
+ executeAsync(id: CommandId, payload?: unknown): Promise<CommandExecutionResult>;
513
517
  /** Register a consumer-defined command; returns an unregister function. */
514
518
  register<TPayload = unknown, TValue = unknown>(registration: CustomCommandRegistration<TPayload, TValue>): CustomCommandRegistrationResult<TPayload, TValue>;
515
519
  /** Resolve context-menu contributions for a viewport context. */
@@ -916,33 +920,49 @@ export interface TrackChangesHandle extends SnapshotSubscribable<TrackChangesSli
916
920
  * already identifies one occurrence, anywhere in the document). A
917
921
  * `{ id, story }` record (e.g. a {@link getAt}/{@link setActive} hit) is
918
922
  * also accepted for convenience, so a hit can be passed straight through.
919
- * Structured failure receipt or `false` if unsupported.
923
+ * Returns the immediate routed result. Use {@link acceptAsync} when later UI
924
+ * depends on the settled document operation.
920
925
  */
921
926
  accept(changeId: string | {
922
927
  id: string;
923
928
  story?: unknown;
924
929
  }): CommandExecutionResult;
930
+ /** Accept a change and resolve after the document operation settles. */
931
+ acceptAsync(changeId: string | {
932
+ id: string;
933
+ story?: unknown;
934
+ }): Promise<CommandExecutionResult>;
925
935
  /**
926
936
  * Reject a change. The id is sufficient on its own (a tracked-change id
927
937
  * already identifies one occurrence, anywhere in the document). A
928
938
  * `{ id, story }` record (e.g. a {@link getAt}/{@link setActive} hit) is
929
939
  * also accepted for convenience, so a hit can be passed straight through.
930
- * Structured failure receipt or `false` if unsupported.
940
+ * Returns the immediate routed result. Use {@link rejectAsync} when later UI
941
+ * depends on the settled document operation.
931
942
  */
932
943
  reject(changeId: string | {
933
944
  id: string;
934
945
  story?: unknown;
935
946
  }): CommandExecutionResult;
947
+ /** Reject a change and resolve after the document operation settles. */
948
+ rejectAsync(changeId: string | {
949
+ id: string;
950
+ story?: unknown;
951
+ }): Promise<CommandExecutionResult>;
936
952
  /**
937
953
  * Accept every active tracked change. Returns the Document API receipt, or
938
954
  * `false` when bulk decisions are unavailable / disabled on the host.
939
955
  */
940
956
  acceptAll(): CommandExecutionResult;
957
+ /** Accept every active tracked change and resolve after the operation settles. */
958
+ acceptAllAsync(): Promise<CommandExecutionResult>;
941
959
  /**
942
960
  * Reject every active tracked change. Returns the Document API receipt, or
943
961
  * `false` when bulk decisions are unavailable / disabled on the host.
944
962
  */
945
963
  rejectAll(): CommandExecutionResult;
964
+ /** Reject every active tracked change and resolve after the operation settles. */
965
+ rejectAllAsync(): Promise<CommandExecutionResult>;
946
966
  /**
947
967
  * Move focus to the next tracked change in document order (relative to the
948
968
  * active change). Returns the id that became active, or `null` when there are
@@ -1001,12 +1021,33 @@ export interface TrackChangesHandle extends SnapshotSubscribable<TrackChangesSli
1001
1021
  /**
1002
1022
  * Scroll the tracked-change anchor into view through the host navigation
1003
1023
  * surface. Resolves with both v1/main `{ success }` and v2 `{ ok, reason? }`
1004
- * fields.
1024
+ * fields. A bare id resolves its story from the loaded rows; a
1025
+ * `{ id, story }` record pins the occurrence when the same id repeats across
1026
+ * the body and a footnote, header, or footer.
1005
1027
  */
1006
- scrollTo(changeId: string): Promise<WorkflowScrollResult>;
1028
+ scrollTo(input: string | {
1029
+ id: string;
1030
+ story?: unknown;
1031
+ }): Promise<WorkflowScrollResult>;
1007
1032
  }
1008
1033
  /** Content-controls handle. */
1009
1034
  export interface ContentControlsHandle extends SnapshotSubscribable<ContentControlsSlice> {
1035
+ /**
1036
+ * Observe the document-wide content-control catalog and active field IDs.
1037
+ * The catalog remains requested until the returned disposer runs.
1038
+ */
1039
+ observe(listener: (snapshot: ContentControlsSlice) => void): () => void;
1040
+ /**
1041
+ * Observe the passive content-controls slice without requesting the
1042
+ * document-wide catalog. Meant for consumers that only need the active
1043
+ * field path, such as the core active-change event bridge; a field panel
1044
+ * should use {@link observe}.
1045
+ */
1046
+ observeActivePath(listener: (snapshot: ContentControlsSlice) => void): () => void;
1047
+ /** Event-shaped alias of {@link observe}. */
1048
+ subscribe(listener: (event: {
1049
+ snapshot: ContentControlsSlice;
1050
+ }) => void): () => void;
1010
1051
  /** Read the current content-controls snapshot. */
1011
1052
  getSnapshot(): ContentControlsSlice;
1012
1053
  /** Read the current content-controls snapshot. */
@@ -1081,8 +1122,6 @@ export interface FontsHandle extends SnapshotSubscribable<FontsSlice> {
1081
1122
  /** Available font size options. */
1082
1123
  getSizeOptions(): readonly FontSizeOption[];
1083
1124
  }
1084
- /** A built-in command id, or an id registered through `ui.commands.register()`. */
1085
- export type ToolbarCommandId = BuiltInCommandId | (string & {});
1086
1125
  /** Toolbar handle. */
1087
1126
  export interface ToolbarHandle extends SnapshotSubscribable<ToolbarSnapshotSlice> {
1088
1127
  /** Read the current toolbar snapshot. */
@@ -1218,11 +1257,21 @@ export interface SearchSlice {
1218
1257
  /** Whether the query is a regular expression (V2 runtime only). */
1219
1258
  regex: boolean;
1220
1259
  /**
1221
- * Whether replace / replaceAll can mutate right now. False in viewing /
1222
- * read-only mode, when replace is host-unavailable, or when the match set is
1223
- * truncated and cannot be fully enumerated.
1260
+ * Whether `replace()` can mutate the active match right now. False in
1261
+ * viewing / read-only mode or when replace is host-unavailable.
1224
1262
  */
1225
1263
  canReplace: boolean;
1264
+ /**
1265
+ * Whether `replaceAll()` can mutate right now. Everything that disables
1266
+ * `canReplace` disables this too. It also requires at least one match, and
1267
+ * it is false for a truncated match set: when more matches exist than the
1268
+ * session enumerates, replacing all of them cannot be applied, while
1269
+ * replacing the active match still can.
1270
+ *
1271
+ * Optional here so existing implementations of the deprecated
1272
+ * {@link SearchHandle} keep compiling; {@link SearchSnapshot} requires it.
1273
+ */
1274
+ canReplaceAll?: boolean;
1226
1275
  /** Stable reason when the surface (or an action) is unavailable. */
1227
1276
  reason?: SuperDocUIReason;
1228
1277
  }
@@ -1230,8 +1279,10 @@ export interface SearchSlice {
1230
1279
  export interface SearchSnapshot extends SearchSlice {
1231
1280
  /** Whether the session includes pending tracked deletions in match discovery. */
1232
1281
  includeTrackedDeletions: boolean;
1282
+ /** Whether `replaceAll()` can mutate right now. See {@link SearchSlice.canReplaceAll}. */
1283
+ canReplaceAll: boolean;
1233
1284
  }
1234
- /** Options for `editor.ui.search.find()`. */
1285
+ /** Options for `superdoc.ui.search.find()`. */
1235
1286
  export interface SearchQueryOptions {
1236
1287
  /** Match uppercase and lowercase letters exactly (default: false). */
1237
1288
  caseSensitive?: boolean;
@@ -1304,12 +1355,21 @@ export interface SearchController extends Omit<SearchHandle, keyof SnapshotSubsc
1304
1355
  */
1305
1356
  search(query: string, options?: SearchQueryOptions): SearchSnapshot;
1306
1357
  }
1307
- /** Runtime control for the built-in context menu. */
1358
+ /** Runtime control and document context for context menus. */
1308
1359
  export interface ContextMenuHandle {
1309
1360
  /** Open the menu at the active selection or caret. */
1310
1361
  open(): WorkflowActionResult;
1311
1362
  /** Close the menu when it is open. */
1312
1363
  close(): void;
1364
+ /**
1365
+ * Resolve the public document context at a viewport point. Coordinates use
1366
+ * `MouseEvent.clientX` and `MouseEvent.clientY`. This remains available when
1367
+ * the built-in context menu is disabled.
1368
+ */
1369
+ contextAt(input: {
1370
+ x: number;
1371
+ y: number;
1372
+ }): ViewportContext;
1313
1373
  }
1314
1374
  /**
1315
1375
  * Structural shape of the active editor the controller reads. Every member is
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, MaybeRefOrGetter, ShallowRef } from 'vue';
2
2
  import { SliceSource } from './slice-source.js';
3
- import { BorrowedSuperDocUI, CommandExecutionResult, CommandState, CommentsSlice, ContentControlsSlice, DocumentSlice, FontFamilyOption, FontSizeOption, SelectionSlice, Subscribable, SuperDocLike, ToolbarSnapshotSlice, TrackChangesSlice, ZoomSlice } from './types.js';
3
+ import { BorrowedSuperDocUI, CommandExecutionResult, CommandId, CommandState, CommentsSlice, ContentControlsSlice, DocumentSlice, FontFamilyOption, FontSizeOption, SearchSnapshot, SelectionSlice, Subscribable, SuperDocLike, ToolbarSnapshotSlice, TrackChangesSlice, ZoomSlice } from './types.js';
4
4
  /** The raw SuperDoc instance (or host stub) handed to the provider. */
5
5
  export type SuperDocHost = SuperDocLike;
6
6
  /**
@@ -84,6 +84,8 @@ export declare function useClearSuperDoc(): (expectedHost: SuperDocHost) => bool
84
84
  export declare function useSuperDocSlice<T>(pick: (ui: BorrowedSuperDocUI) => SliceSource<T> | Subscribable<T>, initial: T): Readonly<ShallowRef<T>>;
85
85
  /** Subscribe to the selection slice. */
86
86
  export declare function useSuperDocSelection(): Readonly<ShallowRef<SelectionSlice>>;
87
+ /** Subscribe to the current Search session. */
88
+ export declare function useSuperDocSearch(): Readonly<ShallowRef<SearchSnapshot>>;
87
89
  /** Subscribe to the comments slice. */
88
90
  export declare function useSuperDocComments(): Readonly<ShallowRef<CommentsSlice>>;
89
91
  /** Subscribe to the content-controls slice. */
@@ -111,7 +113,7 @@ export interface UseSuperDocCommandResult {
111
113
  * Subscribe to and execute a single command. Accepts a plain id, a ref, or a
112
114
  * getter; a reactive id re-subscribes and routes execution to the new command.
113
115
  */
114
- export declare function useSuperDocCommand(id: MaybeRefOrGetter<string>): UseSuperDocCommandResult;
116
+ export declare function useSuperDocCommand(id: MaybeRefOrGetter<CommandId>): UseSuperDocCommandResult;
115
117
  /** Subscribe to the document slice. */
116
118
  export declare function useSuperDocDocument(): Readonly<ShallowRef<DocumentSlice>>;
117
119
  /** Subscribe to available font-family options. */
@@ -1,17 +1,20 @@
1
1
  // Generated by scripts/ensure-types.cjs. Do not edit by hand.
2
2
  import type { SuperDocHost as __Cjs_SuperDocHost } from './ui-react.js' with { "resolution-mode": "import" };
3
3
  import type { SuperDocUIProviderProps as __Cjs_SuperDocUIProviderProps } from './ui-react.js' with { "resolution-mode": "import" };
4
+ import type { UseSuperDocCommandResult as __Cjs_UseSuperDocCommandResult } from './ui-react.js' with { "resolution-mode": "import" };
4
5
  export type { __Cjs_SuperDocHost as SuperDocHost };
5
6
  export declare const SuperDocUIProvider: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).SuperDocUIProvider;
6
7
  export type { __Cjs_SuperDocUIProviderProps as SuperDocUIProviderProps };
7
8
  export declare const useSetSuperDoc: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSetSuperDoc;
8
9
  export declare const useSuperDocCommand: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocCommand;
10
+ export type { __Cjs_UseSuperDocCommandResult as UseSuperDocCommandResult };
9
11
  export declare const useSuperDocComments: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocComments;
10
12
  export declare const useSuperDocContentControls: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocContentControls;
11
13
  export declare const useSuperDocDocument: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocDocument;
12
14
  export declare const useSuperDocFontOptions: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocFontOptions;
13
15
  export declare const useSuperDocFontSizeOptions: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocFontSizeOptions;
14
16
  export declare const useSuperDocHost: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocHost;
17
+ export declare const useSuperDocSearch: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocSearch;
15
18
  export declare const useSuperDocSelection: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocSelection;
16
19
  export declare const useSuperDocSlice: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocSlice;
17
20
  export declare const useSuperDocToolbar: typeof import('./ui-react.js', { with: { "resolution-mode": "import" } }).useSuperDocToolbar;
@@ -16,5 +16,5 @@
16
16
  * - AIDEV-NOTE: `verify-public-facade-emit.cjs` parses this file and verifies
17
17
  * the emitted declarations expose exactly these named exports.
18
18
  */
19
- export { SuperDocUIProvider, useSuperDocUI, useSuperDocHost, useSetSuperDoc, useSuperDocSlice, useSuperDocSelection, useSuperDocComments, useSuperDocContentControls, useSuperDocTrackChanges, useSuperDocToolbar, useSuperDocCommand, useSuperDocDocument, useSuperDocFontOptions, useSuperDocFontSizeOptions, useSuperDocZoom, } from './ui/react.js';
20
- export type { SuperDocHost, SuperDocUIProviderProps } from './ui/react.js';
19
+ export { SuperDocUIProvider, useSuperDocUI, useSuperDocHost, useSetSuperDoc, useSuperDocSlice, useSuperDocSelection, useSuperDocSearch, useSuperDocComments, useSuperDocContentControls, useSuperDocTrackChanges, useSuperDocToolbar, useSuperDocCommand, useSuperDocDocument, useSuperDocFontOptions, useSuperDocFontSizeOptions, useSuperDocZoom, } from './ui/react.js';
20
+ export type { SuperDocHost, SuperDocUIProviderProps, UseSuperDocCommandResult } from './ui/react.js';
@@ -15,6 +15,7 @@ export declare const useSuperDocDocument: typeof import('./ui-vue.js', { with: {
15
15
  export declare const useSuperDocFontOptions: typeof import('./ui-vue.js', { with: { "resolution-mode": "import" } }).useSuperDocFontOptions;
16
16
  export declare const useSuperDocFontSizeOptions: typeof import('./ui-vue.js', { with: { "resolution-mode": "import" } }).useSuperDocFontSizeOptions;
17
17
  export declare const useSuperDocHost: typeof import('./ui-vue.js', { with: { "resolution-mode": "import" } }).useSuperDocHost;
18
+ export declare const useSuperDocSearch: typeof import('./ui-vue.js', { with: { "resolution-mode": "import" } }).useSuperDocSearch;
18
19
  export declare const useSuperDocSelection: typeof import('./ui-vue.js', { with: { "resolution-mode": "import" } }).useSuperDocSelection;
19
20
  export declare const useSuperDocSlice: typeof import('./ui-vue.js', { with: { "resolution-mode": "import" } }).useSuperDocSlice;
20
21
  export declare const useSuperDocToolbar: typeof import('./ui-vue.js', { with: { "resolution-mode": "import" } }).useSuperDocToolbar;
@@ -16,5 +16,5 @@
16
16
  * - AIDEV-NOTE: `verify-public-facade-emit.cjs` parses this file and verifies
17
17
  * the emitted declarations expose exactly these named exports.
18
18
  */
19
- export { provideSuperDocUI, useSuperDocUI, useSuperDocHost, useSetSuperDoc, useClearSuperDoc, useSuperDocSlice, useSuperDocSelection, useSuperDocComments, useSuperDocContentControls, useSuperDocTrackChanges, useSuperDocToolbar, useSuperDocCommand, useSuperDocDocument, useSuperDocFontOptions, useSuperDocFontSizeOptions, useSuperDocZoom, } from './ui/vue.js';
19
+ export { provideSuperDocUI, useSuperDocUI, useSuperDocHost, useSetSuperDoc, useClearSuperDoc, useSuperDocSlice, useSuperDocSelection, useSuperDocSearch, useSuperDocComments, useSuperDocContentControls, useSuperDocTrackChanges, useSuperDocToolbar, useSuperDocCommand, useSuperDocDocument, useSuperDocFontOptions, useSuperDocFontSizeOptions, useSuperDocZoom, } from './ui/vue.js';
20
20
  export type { SuperDocHost, SuperDocUIBinding, UseSuperDocCommandResult } from './ui/vue.js';
@@ -5,6 +5,7 @@ import type { BrowserDocumentApi as __Cjs_BrowserDocumentApi } from './ui.js' wi
5
5
  import type { BuiltInCommandId as __Cjs_BuiltInCommandId } from './ui.js' with { "resolution-mode": "import" };
6
6
  import type { CommandExecutionResult as __Cjs_CommandExecutionResult } from './ui.js' with { "resolution-mode": "import" };
7
7
  import type { CommandHandle as __Cjs_CommandHandle } from './ui.js' with { "resolution-mode": "import" };
8
+ import type { CommandId as __Cjs_CommandId } from './ui.js' with { "resolution-mode": "import" };
8
9
  import type { CommandsHandle as __Cjs_CommandsHandle } from './ui.js' with { "resolution-mode": "import" };
9
10
  import type { CommandState as __Cjs_CommandState } from './ui.js' with { "resolution-mode": "import" };
10
11
  import type { CommentAddress as __Cjs_CommentAddress } from './ui.js' with { "resolution-mode": "import" };
@@ -111,6 +112,7 @@ export declare const BUILT_IN_COMMAND_IDS: typeof import('./ui.js', { with: { "r
111
112
  export type { __Cjs_BuiltInCommandId as BuiltInCommandId };
112
113
  export type { __Cjs_CommandExecutionResult as CommandExecutionResult };
113
114
  export type { __Cjs_CommandHandle as CommandHandle };
115
+ export type { __Cjs_CommandId as CommandId };
114
116
  export type { __Cjs_CommandsHandle as CommandsHandle };
115
117
  export type { __Cjs_CommandState as CommandState };
116
118
  export type { __Cjs_CommentAddress as CommentAddress };
@@ -26,4 +26,4 @@
26
26
  export { createSuperDocUI } from './ui/create-super-doc-ui.js';
27
27
  export { shallowEqual } from './ui/equality.js';
28
28
  export { BUILT_IN_COMMAND_IDS } from './ui/commands.js';
29
- export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandsHandle, ContextMenuItem, ContextMenuHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, ContentControlFocusResult, FontsHandle, ZoomHandle, DocumentHandle, ViewportHandle, StylesHandle, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, 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, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, RichContentInsertInput, SDHtmlMarkdownSupportCheckResult, } from './ui/types.js';
29
+ export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, ContentControlFocusResult, FontsHandle, ZoomHandle, DocumentHandle, ViewportHandle, StylesHandle, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, 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, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, RichContentInsertInput, SDHtmlMarkdownSupportCheckResult, } from './ui/types.js';