@inkbar/core 0.6.0 → 0.8.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/dom.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as PluginHistory, D as OpenOptions, E as InkStatus, Et as FreeTextAnnotation, Gt as NoteAnnotation, M as InkError, Rt as LineEnding, T as InkDocument, U as AnnotationEdit, W as AnnotationStore, X as RecordChange, Y as RecordBase, Z as RecordStore, _ as StyleGroup, _n as PdfAssets, _t as AnnotationInput, a as SignatureStore, b as ToolStyle, bn as Quad, cn as TextMarkupAnnotation, dt as cssVariableDefaults, g as ScopedToolStyle, hn as PageInfo, i as SignatureOptions, j as DocumentSource, m as CurrentStyle, mt as Annotation, o as SignatureTemplate, r as SignatureLibrary, un as Readable, ut as AnnotationDefaults, v as StyleKey, vn as Matrix, xn as Rect, xt as AnnotationType, y as StyleProps, yn as Point } from "./signatures-By4B40DP.mjs";
1
+ import { A as DocumentSource, Bn as Point, Ct as AnnotationInput, D as InkStatus, Dt as AnnotationType, E as InkDocument, Hn as Rect, I as FormController, In as PageInfo, K as PluginHistory, Mt as FreeTextAnnotation, O as OpenOptions, R as InkError, Rn as PdfAssets, Sn as FormAction, Vn as Quad, Wt as LineEnding, X as AnnotationStore, Y as AnnotationEdit, Zt as NoteAnnotation, _ as ScopedToolStyle, _t as cssVariableDefaults, a as SignatureOptions, b as StyleProps, bt as Annotation, gt as AnnotationDefaults, h as CurrentStyle, i as SignatureLibrary, j as SearchHit, jn as Readable, mn as TextMarkupAnnotation, nt as RecordChange, o as SignatureStore, rt as RecordStore, s as SignatureTemplate, t as signField, tt as RecordBase, v as StyleGroup, x as ToolStyle, xn as FieldsMode, y as StyleKey, zn as Matrix } from "./sign-47QLNaqQ.mjs";
2
2
  import { IconNode } from "@inkbar/icons";
3
3
  //#region src/dom/transform.d.ts
4
4
  type ViewRotation = 0 | 90 | 180 | 270;
@@ -162,6 +162,43 @@ interface ViewportKeysOptions {
162
162
  */
163
163
  export declare function attachViewportKeys(el: HTMLElement, opts: ViewportKeysOptions): () => void;
164
164
  //#endregion
165
+ //#region src/dom/history-keys.d.ts
166
+ /** A flag as a plain value, or as a readable such as core's `History.canUndo`. */
167
+ type Flag = boolean | {
168
+ get(): boolean;
169
+ };
170
+ /**
171
+ * What the keys drive: core's `History`, or a framework binding's history, whose flags are
172
+ * plain values.
173
+ */
174
+ interface HistoryKeysTarget {
175
+ readonly canUndo: Flag;
176
+ readonly canRedo: Flag;
177
+ undo(): void;
178
+ redo(): void;
179
+ }
180
+ /**
181
+ * Undo and redo from the keyboard: Ctrl or Cmd+Z undoes, Ctrl or Cmd+Shift+Z and Ctrl+Y redo,
182
+ * for keys pressed anywhere inside `el`. They do what the Undo and Redo buttons do: `history`
183
+ * is read on every key, and a key acts only while its button would be enabled (`canUndo`,
184
+ * `canRedo`). Then it is prevented; otherwise it is left to the browser. Events from inputs,
185
+ * text areas, selects and editable content are left alone, so a field keeps its native text
186
+ * undo, as are events already handled. Returns a function that removes the listener.
187
+ */
188
+ export declare function attachHistoryKeys(el: HTMLElement, history: () => HistoryKeysTarget | null | undefined): () => void;
189
+ /**
190
+ * Keeps focus in the viewer when a focused Undo or Redo button inside `el` turns disabled
191
+ * (it undid or redid the last step), which would otherwise drop focus to `<body>`, out of
192
+ * reach of the undo and redo keys. Focus moves to `scroll()`, the viewer's scroll element,
193
+ * without scrolling. Returns a function that removes the listeners.
194
+ *
195
+ * Chrome and Firefox blur the button as it is disabled: its `focusout` comes while the
196
+ * `disabled` change is still queued for the observer below, and only that `focusout` counts.
197
+ * WebKit can leave focus on the disabled button instead. The observer then moves it, and a later
198
+ * `focusout` (a click on content that takes no focus) is left alone.
199
+ */
200
+ export declare function keepHistoryFocus(el: HTMLElement, scroll: () => HTMLElement | null | undefined): () => void;
201
+ //#endregion
165
202
  //#region src/dom/page-renderer.d.ts
166
203
  interface PageRendererOptions {
167
204
  document: InkDocument;
@@ -175,6 +212,12 @@ interface PageRendererOptions {
175
212
  * and the page re-renders when it changes (browser zoom, moving to another screen).
176
213
  */
177
214
  devicePixelRatio?: number;
215
+ /**
216
+ * Whether form widgets are drawn into the canvas as the PDF draws them. By default they are
217
+ * drawn only when the document has no form fields; a document with fields leaves the
218
+ * widgets of its fields on the page out, and the form layer draws each one's appearance.
219
+ */
220
+ drawWidgets?: boolean;
178
221
  onRendered?(): void;
179
222
  /** Called for any render failure other than a superseded render's cancellation. */
180
223
  onError?(error: unknown): void;
@@ -479,6 +522,51 @@ interface PluginApi extends PluginContext {
479
522
  }>(records: Records<T>, opts: MarksOptions<T>): MarksHandle;
480
523
  }
481
524
  //#endregion
525
+ //#region src/dom/search/controller.d.ts
526
+ interface SearchState {
527
+ open: boolean;
528
+ query: string;
529
+ matchCase: boolean;
530
+ /** Found so far, in `(page, start)` order. */
531
+ hits: readonly SearchHit[];
532
+ /** Index into `hits`, -1 when none. */
533
+ current: number;
534
+ scanning: boolean;
535
+ }
536
+ interface ViewerSearch {
537
+ readonly state: Readable<SearchState>;
538
+ /** Shows the bar, optionally with a query. */
539
+ open(query?: string): void;
540
+ setQuery(query: string): void;
541
+ setMatchCase(on: boolean): void;
542
+ next(): void;
543
+ previous(): void;
544
+ /** Hides the bar and clears the hits; the query and match case are kept. */
545
+ close(): void;
546
+ }
547
+ interface SearchController extends ViewerSearch {
548
+ /** @internal Registers a mounted find bar; returns the function that unregisters it. */
549
+ attachBar(): () => void;
550
+ /** Whether any find bar is mounted for this viewer. */
551
+ readonly barAttached: Readable<boolean>;
552
+ destroy(): void;
553
+ }
554
+ interface SearchControllerOptions {
555
+ document: Readable<InkDocument | null>;
556
+ /** The viewer's viewport, read on each call. */
557
+ viewport: () => Viewport | null | undefined;
558
+ /** Default 150. */
559
+ debounceMs?: number;
560
+ }
561
+ export declare function createSearchController(opts: SearchControllerOptions): SearchController;
562
+ /**
563
+ * The actions and state of `controller` without the bar registration: what callers of a viewer
564
+ * or a plugin get.
565
+ *
566
+ * @internal Shared with the framework bindings.
567
+ */
568
+ export declare function viewerSearchOf(controller: SearchController): ViewerSearch;
569
+ //#endregion
482
570
  //#region src/dom/tools/options.d.ts
483
571
  interface ToolOptions {
484
572
  /** The tool's current options. Throws a `RangeError` for an id no tool registered. */
@@ -708,6 +796,11 @@ interface PluginContext {
708
796
  scrollTo(page: number, rect: Rect, opts?: {
709
797
  behavior?: ScrollBehavior;
710
798
  }): void;
799
+ /**
800
+ * The viewer's search state and actions, shared with the find bar. Inert (always closed, no
801
+ * hits) when the host has no search.
802
+ */
803
+ readonly search: ViewerSearch;
711
804
  }
712
805
  /** A factory's parameters: its options, optional only when `O` has no required field. */
713
806
  type PluginFactoryArgs<O> = {} extends O ? [options?: O & PluginOptions] : [options: O & PluginOptions];
@@ -795,6 +888,8 @@ interface PluginHostOptions {
795
888
  decorate?: () => DecorateAnnotation | undefined;
796
889
  /** The viewer's viewport, read on each call; without one, `ctx.scrollTo` does nothing. */
797
890
  viewport?: () => Viewport | null | undefined;
891
+ /** The viewer's search; without one, `ctx.search` is inert. */
892
+ search?: ViewerSearch;
798
893
  }
799
894
  interface PluginHost extends LayerSource {
800
895
  readonly commands: ReadonlyMap<string, Command>;
@@ -814,6 +909,47 @@ interface PluginHost extends LayerSource {
814
909
  */
815
910
  export declare function createPluginHost(opts: PluginHostOptions): PluginHost;
816
911
  //#endregion
912
+ //#region src/dom/form-layer.d.ts
913
+ /** A signature field asked to be signed, anchored to its widget's box. */
914
+ interface SignFieldRequest {
915
+ /** Full field name. */
916
+ field: string;
917
+ /** Widget id. */
918
+ widget: string;
919
+ /** Zero-based page index. */
920
+ page: number;
921
+ /** The widget's rect, in user space. */
922
+ rect: Rect;
923
+ /** The widget's box, to anchor the signature menu to. */
924
+ anchor: HTMLElement;
925
+ }
926
+ interface FormLayer {
927
+ readonly element: HTMLElement;
928
+ /**
929
+ * Resolves once the widget appearances shown now have painted (or failed). Never rejects.
930
+ */
931
+ readonly rendered: Promise<void>;
932
+ /** Places every widget for a new zoom or rotation, in place: focus, caret and typed text stay. */
933
+ update(t: PageTransform): void;
934
+ /** Focuses the widget's control. False when the widget is not on this page or is hidden. */
935
+ focusWidget(id: string): boolean;
936
+ /** The controls Tab stops at, in Tab order: none while fields take no input. */
937
+ tabStops(): HTMLElement[];
938
+ /** Reads `isActive()` again, after the active tool changed. */
939
+ refresh(): void;
940
+ /** Tints the fields or stops, in place, as `highlight` does at creation. */
941
+ setHighlight(on: boolean): void;
942
+ destroy(): void;
943
+ }
944
+ //#endregion
945
+ //#region src/dom/search/highlights.d.ts
946
+ /** The highlights of one viewer's pages; see `createSearchHighlights`. */
947
+ interface SearchHighlights {
948
+ mount(page: number, host: HTMLElement, transform: PageTransform): PageLayers;
949
+ /** Stops following the controller. Pages still mounted keep their highlights until they unmount. */
950
+ destroy(): void;
951
+ }
952
+ //#endregion
817
953
  //#region src/dom/page-mount.d.ts
818
954
  interface PageMountOptions {
819
955
  document: InkDocument;
@@ -829,31 +965,48 @@ interface PageMountOptions {
829
965
  decorate?: DecorateAnnotation;
830
966
  /** Defaults to `window.devicePixelRatio`. */
831
967
  devicePixelRatio?: number;
968
+ /** Tints fillable form fields. Default true. */
969
+ formHighlight?: boolean;
970
+ /**
971
+ * Whether form fields take input now. Default: always. The engine passes "the default
972
+ * pointer tool is active".
973
+ */
974
+ formActive?(): boolean;
975
+ /** A signature field asked to be signed. */
976
+ onSignField?(req: SignFieldRequest): void;
832
977
  /** Plugin layers, mounted above the overlay. The engine passes them for its pages only. */
833
978
  layers?: PluginLayers;
979
+ /** Search match highlights, mounted below the overlay. */
980
+ highlights?: SearchHighlights;
834
981
  /**
835
- * Canvas and text layer failures, with the layer that failed (cancellations are not
836
- * reported).
982
+ * Canvas, text layer and form appearance failures, with the layer that failed (cancellations
983
+ * are not reported).
837
984
  */
838
985
  onError?(error: unknown, layer: PageLayer): void;
839
986
  /**
840
- * A layer finished without error: the canvas painted, or the text layer mounted or applied
841
- * an update. Pair it with `onError` to tell when a failed layer has recovered.
987
+ * A layer finished without error: the canvas or the form appearances painted, or the text
988
+ * layer mounted or applied an update. Pair it with `onError` to tell when a failed layer has
989
+ * recovered.
842
990
  */
843
991
  onRendered?(layer: PageLayer): void;
844
992
  }
845
- /** The page layers that can fail and recover: the canvas and the text layer. */
846
- type PageLayer = 'canvas' | 'text';
993
+ /**
994
+ * The page layers that can fail and recover: the canvas, the text layer and the form layer's
995
+ * canvas of widget appearances.
996
+ */
997
+ type PageLayer = 'canvas' | 'text' | 'form';
847
998
  interface PageMount {
848
999
  readonly renderer: PageRenderer;
849
1000
  readonly textLayer: TextLayerHandle;
850
1001
  readonly overlay: Overlay;
1002
+ /** The page's form fields; undefined when the document has none. */
1003
+ readonly form: FormLayer | undefined;
851
1004
  update(transform: PageTransform): void;
852
1005
  destroy(): void;
853
1006
  }
854
1007
  /**
855
- * Canvas, text layer, annotation overlay and any plugin layers for one page, stacked in that
856
- * order.
1008
+ * Canvas, text layer, form layer, annotation overlay and any plugin layers for one page, stacked
1009
+ * in that order.
857
1010
  */
858
1011
  export declare function createPageMount(opts: PageMountOptions): PageMount;
859
1012
  //#endregion
@@ -1243,6 +1396,21 @@ interface SignatureMenuModel {
1243
1396
  }
1244
1397
  /** What the signature menu shows for the saved templates and the signature tool's options. */
1245
1398
  export declare function signatureMenuModel(templates: readonly SignatureTemplate[], options: SignatureOptions): SignatureMenuModel;
1399
+ /**
1400
+ * Words the form layer and the form dialogs add to the page's form fields, shared so every
1401
+ * binding says the same. A field is named by its own tooltip (`/TU`), else the last part of its
1402
+ * name; `unnamed` stands in when it has neither.
1403
+ */
1404
+ export declare const FORM_LABELS: {
1405
+ readonly unnamed: "Form field";
1406
+ /** An empty signature field's affordance. */
1407
+ readonly sign: "Sign";
1408
+ /** Its tooltip, and the start of its accessible name. */
1409
+ readonly signField: "Sign this field";
1410
+ /** The title of the dialog a form's script message shows in. */
1411
+ readonly alert: "Message";
1412
+ readonly ok: "OK";
1413
+ };
1246
1414
  //#endregion
1247
1415
  //#region src/dom/palette.d.ts
1248
1416
  interface Palette {
@@ -1350,6 +1518,12 @@ interface FocusReturn {
1350
1518
  onCloseAutoFocus(event: Event, anchor: HTMLElement | null): void;
1351
1519
  }
1352
1520
  export declare function createFocusReturn(opts: FocusReturnOptions): FocusReturn;
1521
+ /**
1522
+ * Calls `onDetach` once when `el` leaves its document for any reason: its page unmounted, its
1523
+ * layer rebuilt, or an ancestor removed, inside a shadow root too. Already detached, it calls
1524
+ * on the next microtask. Returns the stop function.
1525
+ */
1526
+ export declare function watchDetached(el: Element, onDetach: () => void): () => void;
1353
1527
  //#endregion
1354
1528
  //#region src/dom/viewer/popover.d.ts
1355
1529
  /** Options for `createPopover`. */
@@ -1466,6 +1640,24 @@ interface MountViewerOptions {
1466
1640
  * Default `SIGNATURE_FONTS`.
1467
1641
  */
1468
1642
  signatureFonts?: string[];
1643
+ /**
1644
+ * Tints fillable form fields, as other PDF viewers do. Default true. False sets
1645
+ * `data-ink-form-highlight="off"` on the container and each page's form layer.
1646
+ */
1647
+ formHighlight?: boolean;
1648
+ /**
1649
+ * An empty signature field was activated: sign it, for instance by offering the saved
1650
+ * signatures anchored to `req.anchor` and calling `signField` with the one picked.
1651
+ * `createViewer` opens its signature menu here. Without it the field does nothing.
1652
+ */
1653
+ onSignField?(req: SignFieldRequest): void;
1654
+ /**
1655
+ * The form asked the host to submit, open a link, send mail, print or prompt. Inkbar itself
1656
+ * never does any of these.
1657
+ */
1658
+ onFormAction?(action: FormAction): void;
1659
+ /** A form script called `app.alert`: show `message` (text, not markup) without blocking. */
1660
+ onFormAlert?(message: string): void;
1469
1661
  /** Annotation content is rendered by the host (custom slots). Changing it needs `rebuild`. */
1470
1662
  customAnnotations?: boolean;
1471
1663
  /**
@@ -1482,6 +1674,11 @@ interface MountViewerOptions {
1482
1674
  * the app's decoration (its `decorate` option) so the two compose.
1483
1675
  */
1484
1676
  plugins?: PluginHost;
1677
+ /**
1678
+ * The viewer's search controller. Its matches are highlighted on every page the engine
1679
+ * mounts, below the annotations.
1680
+ */
1681
+ search?: SearchController;
1485
1682
  onActivate?(id: string): void;
1486
1683
  /**
1487
1684
  * After every (re)build: subscribe to the new viewport and controller here. It fires inside
@@ -1537,6 +1734,11 @@ interface ViewerEngine {
1537
1734
  * no annotation did.
1538
1735
  */
1539
1736
  redecorate(): void;
1737
+ /**
1738
+ * Turns the form field tint on or off for the mounted pages and those mounted later, in
1739
+ * place: no page renders again and no field loses focus or typed text.
1740
+ */
1741
+ setFormHighlight(on: boolean): void;
1540
1742
  destroy(): void;
1541
1743
  }
1542
1744
  export declare function mountViewer(opts: MountViewerOptions): ViewerEngine;
@@ -1547,7 +1749,7 @@ export declare function mountViewer(opts: MountViewerOptions): ViewerEngine;
1547
1749
  * (bound to one document's store, so each engine makes its own), and the tool options and
1548
1750
  * signature library (one for the viewer's life).
1549
1751
  */
1550
- interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'document' | 'toolStyle' | 'toolHistory' | 'toolOptions' | 'signatureLibrary' | 'plugins'> {
1752
+ interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'document' | 'toolStyle' | 'toolHistory' | 'toolOptions' | 'signatureLibrary' | 'plugins' | 'search' | 'onSignField' | 'onFormAlert'> {
1551
1753
  source: DocumentSource;
1552
1754
  assets: PdfAssets;
1553
1755
  /** User password for encrypted files. `open` can pass its own for one load. */
@@ -1555,6 +1757,12 @@ interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'do
1555
1757
  /** Default: read from the theme's CSS variables on the viewer root. */
1556
1758
  defaults?: AnnotationDefaults;
1557
1759
  history?: OpenOptions['history'];
1760
+ /**
1761
+ * Form field values; defaults to uncontrolled, starting from the PDF's. Controlled:
1762
+ * `{ mode: 'controlled', initial, onChange }`, where `onChange` hears every commit with the
1763
+ * full map and the host pushes back with `viewer.form.get()?.setControlledValue(next)`.
1764
+ */
1765
+ fields?: FieldsMode;
1558
1766
  /**
1559
1767
  * Plugins, set up once for the viewer's life. Their tools join the viewer's tools, their
1560
1768
  * decoration and page layers apply to every document, and their commands are placed with
@@ -1564,6 +1772,7 @@ interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'do
1564
1772
  /** The thread popover for notes and text markup. Default true. */
1565
1773
  threads?: boolean;
1566
1774
  onReady?(this: void, doc: InkDocument): void;
1775
+ /** The document failed to open, a form script failed, or signing a field was refused. */
1567
1776
  onError?(this: void, error: InkError): void;
1568
1777
  }
1569
1778
  interface Viewer {
@@ -1571,6 +1780,8 @@ interface Viewer {
1571
1780
  readonly element: HTMLElement;
1572
1781
  readonly status: Readable<InkStatus>;
1573
1782
  readonly document: Readable<InkDocument | null>;
1783
+ /** The open document's form (`document.form`) while it is ready; `null` otherwise. */
1784
+ readonly form: Readable<FormController | null>;
1574
1785
  /** Set while a document is ready; `null` otherwise. */
1575
1786
  readonly engine: Readable<ViewerEngine | null>;
1576
1787
  /**
@@ -1591,10 +1802,20 @@ interface Viewer {
1591
1802
  * not in the open document's annotations is ignored.
1592
1803
  */
1593
1804
  setActivated(id: string | null): void;
1805
+ /**
1806
+ * Turns the form field tint on or off (the `formHighlight` option) for the open document,
1807
+ * in place, and for the documents opened after it.
1808
+ */
1809
+ setFormHighlight(on: boolean): void;
1594
1810
  /** The plugins' commands by namespaced id (`sandbox.suggest`); place one with `createCommandButton`. */
1595
1811
  readonly commands: {
1596
1812
  get(id: string): Command | undefined;
1597
1813
  };
1814
+ /**
1815
+ * The search state and its actions, shared by the find bar, the toolbar button and plugins.
1816
+ * `open()` runs the search and draws the highlights even when no find bar is mounted.
1817
+ */
1818
+ readonly search: ViewerSearch;
1598
1819
  /**
1599
1820
  * Opens another document in place; the previous one is destroyed. Latest call wins.
1600
1821
  * `password` is used for this load only; without it, the constructor's `password` applies.
@@ -1606,12 +1827,61 @@ interface Viewer {
1606
1827
  }
1607
1828
  export declare function createViewer(el: HTMLElement, opts: CreateViewerOptions): Viewer;
1608
1829
  //#endregion
1830
+ //#region src/dom/search/find-bar.d.ts
1831
+ /**
1832
+ * The find bar for `viewer`: a field, the match count, previous and next, a match-case toggle
1833
+ * and close. Its buttons keep focus while used; Enter in the field steps to the next match,
1834
+ * Shift+Enter to the previous, Escape closes. Closing returns focus to where it was before the
1835
+ * bar opened, else to the document.
1836
+ */
1837
+ export declare function createFindBar(viewer: Viewer): HTMLElement;
1838
+ //#endregion
1839
+ //#region src/dom/search/find-key.d.ts
1840
+ /**
1841
+ * The text selected on the page inside `root`, on one line and trimmed; '' when there is none,
1842
+ * when it is not in `root`, when it is in the find bar, or when it is too long to be a query.
1843
+ */
1844
+ export declare function pageSelectionText(root: HTMLElement): string;
1845
+ /**
1846
+ * Ctrl/Cmd+F on a viewer's root. Call it from a `keydown` listener on that root (it reads
1847
+ * `currentTarget`). Takes the key only when a find bar is mounted for this viewer and the event
1848
+ * comes from inside the root; otherwise the browser keeps it. Opens the search with the page selection as
1849
+ * the query, if there is one, and focuses and selects the field. Returns whether it took the key.
1850
+ *
1851
+ * @internal Shared with the framework bindings.
1852
+ */
1853
+ export declare function handleFindKey(e: KeyboardEvent, controller: SearchController, selection: () => string): boolean;
1854
+ //#endregion
1855
+ //#region src/dom/search/find-text.d.ts
1856
+ /**
1857
+ * The count beside the field: "3 of 17", "3 of 12…" while scanning, "No results".
1858
+ *
1859
+ * @internal Shared with the framework bindings.
1860
+ */
1861
+ export declare function findCountText(s: SearchState): string;
1862
+ /**
1863
+ * Returns the function a bar calls with each search state for its live region's text.
1864
+ *
1865
+ * A settled scan reads "Match 3 of 17, page 2" or "No results". While a scan runs it says
1866
+ * nothing until a step moves the current hit, then "Match 3 of 12 so far, page 2", and keeps
1867
+ * that text as more hits arrive, so the region speaks once per step and once on settle rather
1868
+ * than once per hit.
1869
+ *
1870
+ * @internal Shared with the framework bindings; each bar keeps its own.
1871
+ */
1872
+ export declare function findAnnouncer(): (s: SearchState) => string;
1873
+ //#endregion
1609
1874
  //#region src/dom/viewer/controls.d.ts
1610
1875
  /**
1611
1876
  * An `<svg>` drawing `icon` from `@inkbar/icons`, hidden from assistive technology: the
1612
1877
  * control it sits in carries the name. The theme sizes it with `--ink-icon-size`.
1613
1878
  */
1614
1879
  export declare function createIcon(icon: IconNode): SVGSVGElement;
1880
+ /**
1881
+ * Opens the viewer's find bar; pressed while it is open. Pressing it again focuses the field.
1882
+ * The bar itself is `createFindBar`.
1883
+ */
1884
+ export declare function createSearchButton(viewer: Viewer): HTMLButtonElement;
1615
1885
  /**
1616
1886
  * A toolbar following the WAI-ARIA toolbar pattern: its buttons share one Tab stop, with
1617
1887
  * arrow keys, Home and End to move between them. Fields and selects are Tab stops of their
@@ -1713,11 +1983,23 @@ interface MenuOptions {
1713
1983
  * in the DOM). Presses, focus and Escape inside it neither dismiss this menu nor close it.
1714
1984
  */
1715
1985
  owns?(target: Node): boolean;
1716
- /** Builds the items on first call and updates them in place after; called on open and `refresh`. */
1986
+ /**
1987
+ * The menu opens only through `open()`; the trigger's own clicks and keys stay its own. For a
1988
+ * menu a control opens as one of several things it does, such as a signature field's.
1989
+ */
1990
+ manual?: boolean;
1991
+ /** The menu closed, for any reason; the trigger's `aria-expanded` and `data-state` are set. */
1992
+ onClose?(): void;
1993
+ /**
1994
+ * Builds the items on first call and updates them in place after; called on open and
1995
+ * `refresh`.
1996
+ */
1717
1997
  render(menu: HTMLElement): void;
1718
1998
  }
1719
1999
  interface Menu {
1720
2000
  readonly isOpen: boolean;
2001
+ /** Opens the menu with its initial item focused, as a click on the trigger does. */
2002
+ open(): void;
1721
2003
  /** Re-renders an open menu, and closes it if the trigger has become disabled. */
1722
2004
  refresh(): void;
1723
2005
  close(restoreFocus?: boolean): void;
@@ -1833,9 +2115,14 @@ interface SignatureDialogOptions {
1833
2115
  }
1834
2116
  interface SignatureDialog {
1835
2117
  readonly isOpen: boolean;
1836
- /** Opens the dialog. On close, focus goes to `returnFocus`, else to what had it before. */
2118
+ /**
2119
+ * Opens the dialog. On close, focus goes to `returnFocus`, else to what had it before. Save
2120
+ * stores the template and selects it for the `signature` tool, or, with `onSave`, hands it
2121
+ * to `onSave` instead (to sign a form field with it).
2122
+ */
1837
2123
  open(opts?: {
1838
2124
  returnFocus?: HTMLElement | null;
2125
+ onSave?: (t: SignatureTemplate) => void;
1839
2126
  }): void;
1840
2127
  close(): void;
1841
2128
  destroy(): void;
@@ -1846,6 +2133,39 @@ export declare function createSignatureDialog(viewer: Viewer, opts?: SignatureDi
1846
2133
  /** A template drawn small: ink as an SVG of filled outlines, an image as an `<img>`. */
1847
2134
  export declare function createSignaturePreview(t: SignatureTemplate): HTMLElement;
1848
2135
  export declare function createSignatureMenu(viewer: Viewer, opts?: SignatureDialogOptions): HTMLElement;
2136
+ /** Options for `createSignFieldMenu`. */
2137
+ interface SignFieldMenuOptions extends SignatureDialogOptions {
2138
+ /** Signing failed: the field was read-only by then, or already signed. */
2139
+ onError?(error: InkError): void;
2140
+ }
2141
+ /** The signature menu for signature fields; see `createSignFieldMenu`. */
2142
+ interface SignFieldMenu {
2143
+ /** Opens the menu anchored to the field's box. Another field's open menu closes. */
2144
+ open(req: SignFieldRequest): void;
2145
+ close(): void;
2146
+ destroy(): void;
2147
+ }
2148
+ /**
2149
+ * The signature menu, opened on a signature field (the engine's `onSignField`). It lists the
2150
+ * saved signatures and "Create signature", as the toolbar's menu does. Picking one signs the
2151
+ * field with it (`signField`); a new one from the dialog signs the field once saved. Focus
2152
+ * returns to the field.
2153
+ */
2154
+ export declare function createSignFieldMenu(viewer: Viewer, opts?: SignFieldMenuOptions): SignFieldMenu;
2155
+ //#endregion
2156
+ //#region src/dom/viewer/form-alert.d.ts
2157
+ interface FormAlert {
2158
+ /** Shows `message`, replacing the one showing, if any. */
2159
+ show(message: string): void;
2160
+ /** Closes it, if open, returning focus. */
2161
+ close(): void;
2162
+ destroy(): void;
2163
+ }
2164
+ /**
2165
+ * A non-modal alert for the viewer under `root` (`[data-ink-root]`), placed on `<body>`.
2166
+ * Escape closes it while focus is in it; elsewhere Escape stays the viewer's.
2167
+ */
2168
+ export declare function createFormAlert(root: HTMLElement): FormAlert;
1849
2169
  //#endregion
1850
- export { type AnnotationDecoration, type AnnotationInputOf, type AnnotationLink, type AnnotationLinkSpec, type AnnotationSlotProps, type AnnotationState, type ArrowheadChoice, type BuiltinToolId, type CardSpec, type ColorMenuModel, type ColorMenuOptions, type ColorMenuSwatch, type ColorProperty, type ColorTrigger, type Command, type CommandOptions, type CommandRun, type CommandSpec, type CreateViewerOptions, type CssLayout, type CssLayoutInput, type CssPageBox, type CssRect, type CurrentStyle, type DecorateAnnotation, type EditorCloseReason, type FocusReturn, type FocusReturnOptions, type FreeTextEditor, type FreeTextEditorOptions, type HighlightMenuItem, type HighlightMenuModel, type HighlightOptions, type InkPlugin, type LayerEvent, type LayerSource, type LayerSpec, type LayoutMode, type LineStyleMenuItem, type LineStyleMenuModel, type LineStyleMenuSection, type MarksHandle, type MarksOptions, type MarkupKind, type Menu, type MenuOptions, type MountViewerOptions, type Overlay, type OverlayOptions, type PageHit, type PageLayer, type PageLayers, type PageMount, type PageMountOptions, type PageRenderer, type PageRendererOptions, type PageTransform, type Palette, type PluginApi, type PluginContext, type PluginHost, type PluginHostOptions, type PluginLayer, type PluginLayerHandle, type PluginLayers, type PluginOptions, type PluginStoreOptions, type Popover, type PopoverOptions, type Records, type ScopedToolStyle, type SelectionQuads, type ShapeKind, type ShapeMenuItem, type ShapeMenuModel, type ShapeOptions, type SignatureDialog, type SignatureDialogOptions, type SignatureDraft, type SignatureDraftState, type SignatureMenuItem, type SignatureMenuModel, type SignatureOptions, type SignaturePad, type SignatureTab, type StyleGroup, type StyleKey, type StyleProps, type TextAlignChoice, type TextAlignKey, type TextLayerHandle, type TextLayerOptions, type TextStyleMenuModel, type TextStyleToggle, type TextToggleKey, type ThreadPopoverSlotProps, type Tool, type ToolContext, type ToolController, type ToolControllerOptions, type ToolId, type ToolKind, type ToolOptions, type ToolStyle, type ToolStyleTracker, type TypedSignatureOptions, type ViewRotation, type Viewer, type ViewerEngine, type Viewport, type ViewportHit, type ViewportKeysOptions, type ViewportOptions, type ZoomValue, cssVariableDefaults };
2170
+ export { type AnnotationDecoration, type AnnotationInputOf, type AnnotationLink, type AnnotationLinkSpec, type AnnotationSlotProps, type AnnotationState, type ArrowheadChoice, type BuiltinToolId, type CardSpec, type ColorMenuModel, type ColorMenuOptions, type ColorMenuSwatch, type ColorProperty, type ColorTrigger, type Command, type CommandOptions, type CommandRun, type CommandSpec, type CreateViewerOptions, type CssLayout, type CssLayoutInput, type CssPageBox, type CssRect, type CurrentStyle, type DecorateAnnotation, type EditorCloseReason, type FocusReturn, type FocusReturnOptions, type FormAlert, type FormLayer, type FreeTextEditor, type FreeTextEditorOptions, type HighlightMenuItem, type HighlightMenuModel, type HighlightOptions, type HistoryKeysTarget, type InkPlugin, type LayerEvent, type LayerSource, type LayerSpec, type LayoutMode, type LineStyleMenuItem, type LineStyleMenuModel, type LineStyleMenuSection, type MarksHandle, type MarksOptions, type MarkupKind, type Menu, type MenuOptions, type MountViewerOptions, type Overlay, type OverlayOptions, type PageHit, type PageLayer, type PageLayers, type PageMount, type PageMountOptions, type PageRenderer, type PageRendererOptions, type PageTransform, type Palette, type PluginApi, type PluginContext, type PluginHost, type PluginHostOptions, type PluginLayer, type PluginLayerHandle, type PluginLayers, type PluginOptions, type PluginStoreOptions, type Popover, type PopoverOptions, type Records, type ScopedToolStyle, type SearchController, type SearchControllerOptions, type SearchState, type SelectionQuads, type ShapeKind, type ShapeMenuItem, type ShapeMenuModel, type ShapeOptions, type SignFieldMenu, type SignFieldMenuOptions, type SignFieldRequest, type SignatureDialog, type SignatureDialogOptions, type SignatureDraft, type SignatureDraftState, type SignatureMenuItem, type SignatureMenuModel, type SignatureOptions, type SignaturePad, type SignatureTab, type StyleGroup, type StyleKey, type StyleProps, type TextAlignChoice, type TextAlignKey, type TextLayerHandle, type TextLayerOptions, type TextStyleMenuModel, type TextStyleToggle, type TextToggleKey, type ThreadPopoverSlotProps, type Tool, type ToolContext, type ToolController, type ToolControllerOptions, type ToolId, type ToolKind, type ToolOptions, type ToolStyle, type ToolStyleTracker, type TypedSignatureOptions, type ViewRotation, type Viewer, type ViewerEngine, type ViewerSearch, type Viewport, type ViewportHit, type ViewportKeysOptions, type ViewportOptions, type ZoomValue, cssVariableDefaults, signField };
1851
2171
  //# sourceMappingURL=dom.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom.d.mts","names":[],"sources":["../src/dom/transform.ts","../src/dom/layout.ts","../src/dom/viewport.ts","../src/dom/viewport-keys.ts","../src/dom/page-renderer.ts","../src/dom/text-layer.ts","../src/dom/selection.ts","../src/dom/overlay.ts","../src/dom/overlay-render.ts","../src/dom/plugins/api/command.ts","../src/dom/plugins/api/links.ts","../src/dom/plugins/api/records.ts","../src/dom/plugins/api/card.ts","../src/dom/plugins/api/marks.ts","../src/dom/plugins/api/api.ts","../src/dom/tools/options.ts","../src/dom/tools/controller.ts","../src/dom/plugins/define.ts","../src/dom/plugins/commands.ts","../src/dom/plugins/layer.ts","../src/dom/plugins/host.ts","../src/dom/page-mount.ts","../src/dom/tools/freetext.ts","../src/dom/tools/highlight.ts","../src/dom/tools/note.ts","../src/dom/tools/redact-area.ts","../src/dom/tools/select.ts","../src/dom/tools/select-text.ts","../src/model/annotations/shape-geometry.ts","../src/dom/tools/shape.ts","../src/dom/tools/signature.ts","../src/dom/tools/index.ts","../src/dom/ui.ts","../src/dom/palette.ts","../src/dom/freetext-editor.ts","../src/dom/menu-keys.ts","../src/dom/annotation-element.ts","../src/dom/popover-focus.ts","../src/dom/viewer/popover.ts","../src/dom/viewer-engine.ts","../src/dom/viewer/create-viewer.ts","../src/dom/viewer/controls.ts","../src/dom/viewer/style-menu.ts","../src/dom/viewer/color-menu.ts","../src/dom/viewer/text-style-menu.ts","../src/dom/viewer/shape-menu.ts","../src/dom/viewer/highlight-menu.ts","../src/dom/shape-icons.ts","../src/dom/markup-icons.ts","../src/dom/viewer/menu.ts","../src/dom/signature-pad.ts","../src/dom/signature-draft.ts","../src/dom/viewer/signature-dialog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c,sBACd,QAAQ,QACR,OAAM,yBACL;;;;wBCda,uBAAuB,GAAG,oBAAoB;wBAoB9C,oBACd,QAAQ,QACR,OAAM,yBACL"}
1
+ {"version":3,"file":"dom.d.mts","names":[],"sources":["../src/dom/transform.ts","../src/dom/layout.ts","../src/dom/viewport.ts","../src/dom/viewport-keys.ts","../src/dom/history-keys.ts","../src/dom/page-renderer.ts","../src/dom/text-layer.ts","../src/dom/selection.ts","../src/dom/overlay.ts","../src/dom/overlay-render.ts","../src/dom/plugins/api/command.ts","../src/dom/plugins/api/links.ts","../src/dom/plugins/api/records.ts","../src/dom/plugins/api/card.ts","../src/dom/plugins/api/marks.ts","../src/dom/plugins/api/api.ts","../src/dom/search/controller.ts","../src/dom/tools/options.ts","../src/dom/tools/controller.ts","../src/dom/plugins/define.ts","../src/dom/plugins/commands.ts","../src/dom/plugins/layer.ts","../src/dom/plugins/host.ts","../src/dom/form-layer.ts","../src/dom/search/highlights.ts","../src/dom/page-mount.ts","../src/dom/tools/freetext.ts","../src/dom/tools/highlight.ts","../src/dom/tools/note.ts","../src/dom/tools/redact-area.ts","../src/dom/tools/select.ts","../src/dom/tools/select-text.ts","../src/model/annotations/shape-geometry.ts","../src/dom/tools/shape.ts","../src/dom/tools/signature.ts","../src/dom/tools/index.ts","../src/dom/ui.ts","../src/dom/palette.ts","../src/dom/freetext-editor.ts","../src/dom/menu-keys.ts","../src/dom/annotation-element.ts","../src/dom/popover-focus.ts","../src/dom/viewer/popover.ts","../src/dom/viewer-engine.ts","../src/dom/viewer/create-viewer.ts","../src/dom/search/find-bar.ts","../src/dom/search/find-key.ts","../src/dom/search/find-text.ts","../src/dom/viewer/controls.ts","../src/dom/viewer/style-menu.ts","../src/dom/viewer/color-menu.ts","../src/dom/viewer/text-style-menu.ts","../src/dom/viewer/shape-menu.ts","../src/dom/viewer/highlight-menu.ts","../src/dom/shape-icons.ts","../src/dom/markup-icons.ts","../src/dom/viewer/menu.ts","../src/dom/signature-pad.ts","../src/dom/signature-draft.ts","../src/dom/viewer/signature-dialog.ts","../src/dom/viewer/signature-menu.ts","../src/dom/viewer/form-alert.ts"],"mappings":";;;KAWY;;UAGK;EACf;EACA;EACA;EACA;;UAGe;WACN,MAAM;;WAEN;;;;;WAKA;;WAEA,UAAU;;WAEV,eAAe;;WAEf;;WAEA;;WAEA,QAAQ;EACjB,MAAM,GAAG,QAAQ;EACjB,UAAU,GAAG,OAAO;EACpB,UAAU,GAAG,OAAO;;EAEpB,YAAY;EACZ,QAAQ,GAAG,QAAQ;EACnB,YAAY,GAAG,UAAU;;EAEzB,cAAc;;;wBAIA,kBAAkB,cAAc;;;;;wBAWhC,oBACd,MAAM,UACN,cACA,eAAc,eACb;;;KC/DS;;UAGK;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf,OAAO;EACP;EACA;;UAGe;EACf,gBAAgB;EAChB;EACA,UAAU;;EAEV;EACA,MAAM;;EAEN;;EAEA;;;wBASc,iBAAiB,OAAO,iBAAiB;;wBAyBzC,WACd,MAAM,UACN,UAAU,cACV;EAAa;EAAe;GAC5B,gCACA;;;;;wBAac,gBACd,QAAQ,WACR,mBACA,wBACA;;wBAec,mBACd,QAAQ,WACR,mBACA;;;KChFU;UAEK;EACf,WAAW;EACX,UAAU;;EAEV,OAAO;;EAEP,OAAO;;EAEP,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;EACA,QAAQ,cAAc,MAAM,aAAa,WAAW;EACpD,SAAS,cAAc,MAAM,aAAa,WAAW;EACrD,UAAU,cAAc,MAAM;;;UAIf;EACf;EACA,MAAM;EACN,WAAW;;UAGI;WACN,MAAM,SAAS;;WAEf,OAAO;WACP,aAAa;WACb,SAAS;WACT,QAAQ,SAAS;WACjB,UAAU,SAAS;WACnB,MAAM,SAAS;;EAExB,QAAQ,MAAM,WAAW,YAAY;EACrC,OAAO,gBAAgB,YAAY;EACnC,QAAQ,MAAM;EACd,YAAY,UAAU;EACtB,aAAa,eAAe;IAAS,WAAW;;;EAEhD,aAAa,c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