@inkbar/react 0.6.0 → 0.7.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/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
2
2
  import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, AnnotationPatch, CurrentStyle, DocumentSource, ImportOptions, InkDocument, InkError, InkStatus, PageInfo, PdfAssets, PluginHistory, Readable, SignatureLibrary, SignatureStore, SignatureTemplate, StyleGroup, StyleKey, StyleProps, Writable } from "@inkbar/core";
3
- import { AnnotationDecoration, AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, ColorProperty, DecorateAnnotation, DecorateAnnotation as DecorateAnnotation$1, InkPlugin, InkPlugin as InkPlugin$1, LayoutMode, PageMount, PluginHost, ThreadPopoverSlotProps, ThreadPopoverSlotProps as ThreadPopoverSlotProps$1, Tool, ToolController, ToolId, ToolOptions, ToolStyle, ViewRotation, Viewport, ZoomValue } from "@inkbar/core/dom";
4
- import { Select } from "radix-ui";
3
+ import { AnnotationDecoration, AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, ColorProperty, DecorateAnnotation, DecorateAnnotation as DecorateAnnotation$1, InkPlugin, InkPlugin as InkPlugin$1, LayoutMode, PageMount, PluginHost, SearchController, SearchState, ThreadPopoverSlotProps, ThreadPopoverSlotProps as ThreadPopoverSlotProps$1, Tool, ToolController, ToolId, ToolOptions, ToolStyle, ViewRotation, ViewerSearch, Viewport, ZoomValue } from "@inkbar/core/dom";
4
+ import { Select, Toolbar } from "radix-ui";
5
5
  import { IconNode } from "@inkbar/icons";
6
6
  //#region src/context.d.ts
7
7
  /**
@@ -35,6 +35,12 @@ interface InkContext {
35
35
  * InkCommand places its commands.
36
36
  */
37
37
  pluginHost: PluginHost | null;
38
+ /**
39
+ * The search controller from the same set-up as `pluginHost`: shared by the find bar, the
40
+ * search button, the engine's highlights and the plugins. `null` before the root has
41
+ * mounted, and on the server.
42
+ */
43
+ search: SearchController | null;
38
44
  /** InkViewport's scroll element while it is mounted: the plugins' `root`. */
39
45
  viewportEl: Writable<HTMLElement | null>;
40
46
  /** Set by InkViewport once it has built its viewport and tool controller. */
@@ -148,7 +154,7 @@ export declare function useAnnotations(): {
148
154
  contents?: string | undefined;
149
155
  inReplyTo?: string | undefined;
150
156
  subject?: string | undefined;
151
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
157
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
152
158
  custom?: Record<string, unknown> | undefined;
153
159
  } | {
154
160
  rect: {
@@ -171,7 +177,7 @@ export declare function useAnnotations(): {
171
177
  contents?: string | undefined;
172
178
  inReplyTo?: string | undefined;
173
179
  subject?: string | undefined;
174
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
180
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
175
181
  custom?: Record<string, unknown> | undefined;
176
182
  } | {
177
183
  defaultStyle: {
@@ -221,7 +227,7 @@ export declare function useAnnotations(): {
221
227
  author?: string | undefined;
222
228
  inReplyTo?: string | undefined;
223
229
  subject?: string | undefined;
224
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
230
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
225
231
  custom?: Record<string, unknown> | undefined;
226
232
  } | {
227
233
  rect: {
@@ -247,7 +253,7 @@ export declare function useAnnotations(): {
247
253
  contents?: string | undefined;
248
254
  inReplyTo?: string | undefined;
249
255
  subject?: string | undefined;
250
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
256
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
251
257
  custom?: Record<string, unknown> | undefined;
252
258
  } | {
253
259
  rect: {
@@ -273,7 +279,7 @@ export declare function useAnnotations(): {
273
279
  contents?: string | undefined;
274
280
  inReplyTo?: string | undefined;
275
281
  subject?: string | undefined;
276
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
282
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
277
283
  custom?: Record<string, unknown> | undefined;
278
284
  } | {
279
285
  start: {
@@ -307,7 +313,7 @@ export declare function useAnnotations(): {
307
313
  contents?: string | undefined;
308
314
  inReplyTo?: string | undefined;
309
315
  subject?: string | undefined;
310
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
316
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
311
317
  custom?: Record<string, unknown> | undefined;
312
318
  } | {
313
319
  vertices: {
@@ -338,7 +344,7 @@ export declare function useAnnotations(): {
338
344
  contents?: string | undefined;
339
345
  inReplyTo?: string | undefined;
340
346
  subject?: string | undefined;
341
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
347
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
342
348
  custom?: Record<string, unknown> | undefined;
343
349
  } | {
344
350
  vertices: {
@@ -369,7 +375,7 @@ export declare function useAnnotations(): {
369
375
  contents?: string | undefined;
370
376
  inReplyTo?: string | undefined;
371
377
  subject?: string | undefined;
372
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
378
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
373
379
  custom?: Record<string, unknown> | undefined;
374
380
  } | {
375
381
  inklist: {
@@ -398,7 +404,7 @@ export declare function useAnnotations(): {
398
404
  contents?: string | undefined;
399
405
  inReplyTo?: string | undefined;
400
406
  subject?: string | undefined;
401
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
407
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
402
408
  custom?: Record<string, unknown> | undefined;
403
409
  } | {
404
410
  rect: {
@@ -422,7 +428,7 @@ export declare function useAnnotations(): {
422
428
  contents?: string | undefined;
423
429
  inReplyTo?: string | undefined;
424
430
  subject?: string | undefined;
425
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
431
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
426
432
  custom?: Record<string, unknown> | undefined;
427
433
  } | {
428
434
  rect: {
@@ -446,7 +452,7 @@ export declare function useAnnotations(): {
446
452
  contents?: string | undefined;
447
453
  inReplyTo?: string | undefined;
448
454
  subject?: string | undefined;
449
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
455
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
450
456
  custom?: Record<string, unknown> | undefined;
451
457
  } | {
452
458
  rect: {
@@ -470,7 +476,7 @@ export declare function useAnnotations(): {
470
476
  contents?: string | undefined;
471
477
  inReplyTo?: string | undefined;
472
478
  subject?: string | undefined;
473
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
479
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
474
480
  custom?: Record<string, unknown> | undefined;
475
481
  } | {
476
482
  interiorColor: string;
@@ -512,7 +518,7 @@ export declare function useAnnotations(): {
512
518
  contents?: string | undefined;
513
519
  inReplyTo?: string | undefined;
514
520
  subject?: string | undefined;
515
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
521
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
516
522
  custom?: Record<string, unknown> | undefined;
517
523
  } | undefined;
518
524
  update: (id: string, patch: AnnotationPatch) => {
@@ -553,7 +559,7 @@ export declare function useAnnotations(): {
553
559
  contents?: string | undefined;
554
560
  inReplyTo?: string | undefined;
555
561
  subject?: string | undefined;
556
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
562
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
557
563
  custom?: Record<string, unknown> | undefined;
558
564
  } | {
559
565
  rect: {
@@ -576,7 +582,7 @@ export declare function useAnnotations(): {
576
582
  contents?: string | undefined;
577
583
  inReplyTo?: string | undefined;
578
584
  subject?: string | undefined;
579
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
585
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
580
586
  custom?: Record<string, unknown> | undefined;
581
587
  } | {
582
588
  defaultStyle: {
@@ -626,7 +632,7 @@ export declare function useAnnotations(): {
626
632
  author?: string | undefined;
627
633
  inReplyTo?: string | undefined;
628
634
  subject?: string | undefined;
629
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
635
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
630
636
  custom?: Record<string, unknown> | undefined;
631
637
  } | {
632
638
  rect: {
@@ -652,7 +658,7 @@ export declare function useAnnotations(): {
652
658
  contents?: string | undefined;
653
659
  inReplyTo?: string | undefined;
654
660
  subject?: string | undefined;
655
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
661
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
656
662
  custom?: Record<string, unknown> | undefined;
657
663
  } | {
658
664
  rect: {
@@ -678,7 +684,7 @@ export declare function useAnnotations(): {
678
684
  contents?: string | undefined;
679
685
  inReplyTo?: string | undefined;
680
686
  subject?: string | undefined;
681
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
687
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
682
688
  custom?: Record<string, unknown> | undefined;
683
689
  } | {
684
690
  start: {
@@ -712,7 +718,7 @@ export declare function useAnnotations(): {
712
718
  contents?: string | undefined;
713
719
  inReplyTo?: string | undefined;
714
720
  subject?: string | undefined;
715
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
721
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
716
722
  custom?: Record<string, unknown> | undefined;
717
723
  } | {
718
724
  vertices: {
@@ -743,7 +749,7 @@ export declare function useAnnotations(): {
743
749
  contents?: string | undefined;
744
750
  inReplyTo?: string | undefined;
745
751
  subject?: string | undefined;
746
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
752
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
747
753
  custom?: Record<string, unknown> | undefined;
748
754
  } | {
749
755
  vertices: {
@@ -774,7 +780,7 @@ export declare function useAnnotations(): {
774
780
  contents?: string | undefined;
775
781
  inReplyTo?: string | undefined;
776
782
  subject?: string | undefined;
777
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
783
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
778
784
  custom?: Record<string, unknown> | undefined;
779
785
  } | {
780
786
  inklist: {
@@ -803,7 +809,7 @@ export declare function useAnnotations(): {
803
809
  contents?: string | undefined;
804
810
  inReplyTo?: string | undefined;
805
811
  subject?: string | undefined;
806
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
812
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
807
813
  custom?: Record<string, unknown> | undefined;
808
814
  } | {
809
815
  rect: {
@@ -827,7 +833,7 @@ export declare function useAnnotations(): {
827
833
  contents?: string | undefined;
828
834
  inReplyTo?: string | undefined;
829
835
  subject?: string | undefined;
830
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
836
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
831
837
  custom?: Record<string, unknown> | undefined;
832
838
  } | {
833
839
  rect: {
@@ -851,7 +857,7 @@ export declare function useAnnotations(): {
851
857
  contents?: string | undefined;
852
858
  inReplyTo?: string | undefined;
853
859
  subject?: string | undefined;
854
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
860
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
855
861
  custom?: Record<string, unknown> | undefined;
856
862
  } | {
857
863
  rect: {
@@ -875,7 +881,7 @@ export declare function useAnnotations(): {
875
881
  contents?: string | undefined;
876
882
  inReplyTo?: string | undefined;
877
883
  subject?: string | undefined;
878
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
884
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
879
885
  custom?: Record<string, unknown> | undefined;
880
886
  } | {
881
887
  interiorColor: string;
@@ -917,7 +923,7 @@ export declare function useAnnotations(): {
917
923
  contents?: string | undefined;
918
924
  inReplyTo?: string | undefined;
919
925
  subject?: string | undefined;
920
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
926
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
921
927
  custom?: Record<string, unknown> | undefined;
922
928
  } | undefined;
923
929
  remove: (id: string) => boolean;
@@ -960,7 +966,7 @@ export declare function useAnnotations(): {
960
966
  contents?: string | undefined;
961
967
  inReplyTo?: string | undefined;
962
968
  subject?: string | undefined;
963
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
969
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
964
970
  custom?: Record<string, unknown> | undefined;
965
971
  } | {
966
972
  rect: {
@@ -983,7 +989,7 @@ export declare function useAnnotations(): {
983
989
  contents?: string | undefined;
984
990
  inReplyTo?: string | undefined;
985
991
  subject?: string | undefined;
986
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
992
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
987
993
  custom?: Record<string, unknown> | undefined;
988
994
  } | {
989
995
  defaultStyle: {
@@ -1033,7 +1039,7 @@ export declare function useAnnotations(): {
1033
1039
  author?: string | undefined;
1034
1040
  inReplyTo?: string | undefined;
1035
1041
  subject?: string | undefined;
1036
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1042
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1037
1043
  custom?: Record<string, unknown> | undefined;
1038
1044
  } | {
1039
1045
  rect: {
@@ -1059,7 +1065,7 @@ export declare function useAnnotations(): {
1059
1065
  contents?: string | undefined;
1060
1066
  inReplyTo?: string | undefined;
1061
1067
  subject?: string | undefined;
1062
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1068
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1063
1069
  custom?: Record<string, unknown> | undefined;
1064
1070
  } | {
1065
1071
  rect: {
@@ -1085,7 +1091,7 @@ export declare function useAnnotations(): {
1085
1091
  contents?: string | undefined;
1086
1092
  inReplyTo?: string | undefined;
1087
1093
  subject?: string | undefined;
1088
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1094
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1089
1095
  custom?: Record<string, unknown> | undefined;
1090
1096
  } | {
1091
1097
  start: {
@@ -1119,7 +1125,7 @@ export declare function useAnnotations(): {
1119
1125
  contents?: string | undefined;
1120
1126
  inReplyTo?: string | undefined;
1121
1127
  subject?: string | undefined;
1122
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1128
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1123
1129
  custom?: Record<string, unknown> | undefined;
1124
1130
  } | {
1125
1131
  vertices: {
@@ -1150,7 +1156,7 @@ export declare function useAnnotations(): {
1150
1156
  contents?: string | undefined;
1151
1157
  inReplyTo?: string | undefined;
1152
1158
  subject?: string | undefined;
1153
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1159
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1154
1160
  custom?: Record<string, unknown> | undefined;
1155
1161
  } | {
1156
1162
  vertices: {
@@ -1181,7 +1187,7 @@ export declare function useAnnotations(): {
1181
1187
  contents?: string | undefined;
1182
1188
  inReplyTo?: string | undefined;
1183
1189
  subject?: string | undefined;
1184
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1190
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1185
1191
  custom?: Record<string, unknown> | undefined;
1186
1192
  } | {
1187
1193
  inklist: {
@@ -1210,7 +1216,7 @@ export declare function useAnnotations(): {
1210
1216
  contents?: string | undefined;
1211
1217
  inReplyTo?: string | undefined;
1212
1218
  subject?: string | undefined;
1213
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1219
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1214
1220
  custom?: Record<string, unknown> | undefined;
1215
1221
  } | {
1216
1222
  rect: {
@@ -1234,7 +1240,7 @@ export declare function useAnnotations(): {
1234
1240
  contents?: string | undefined;
1235
1241
  inReplyTo?: string | undefined;
1236
1242
  subject?: string | undefined;
1237
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1243
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1238
1244
  custom?: Record<string, unknown> | undefined;
1239
1245
  } | {
1240
1246
  rect: {
@@ -1258,7 +1264,7 @@ export declare function useAnnotations(): {
1258
1264
  contents?: string | undefined;
1259
1265
  inReplyTo?: string | undefined;
1260
1266
  subject?: string | undefined;
1261
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1267
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1262
1268
  custom?: Record<string, unknown> | undefined;
1263
1269
  } | {
1264
1270
  rect: {
@@ -1282,7 +1288,7 @@ export declare function useAnnotations(): {
1282
1288
  contents?: string | undefined;
1283
1289
  inReplyTo?: string | undefined;
1284
1290
  subject?: string | undefined;
1285
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1291
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1286
1292
  custom?: Record<string, unknown> | undefined;
1287
1293
  } | {
1288
1294
  interiorColor: string;
@@ -1324,7 +1330,7 @@ export declare function useAnnotations(): {
1324
1330
  contents?: string | undefined;
1325
1331
  inReplyTo?: string | undefined;
1326
1332
  subject?: string | undefined;
1327
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1333
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1328
1334
  custom?: Record<string, unknown> | undefined;
1329
1335
  })[];
1330
1336
  selection: readonly string[];
@@ -1366,7 +1372,7 @@ export declare function useAnnotations(): {
1366
1372
  contents?: string | undefined;
1367
1373
  inReplyTo?: string | undefined;
1368
1374
  subject?: string | undefined;
1369
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1375
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1370
1376
  custom?: Record<string, unknown> | undefined;
1371
1377
  } | {
1372
1378
  rect: {
@@ -1389,7 +1395,7 @@ export declare function useAnnotations(): {
1389
1395
  contents?: string | undefined;
1390
1396
  inReplyTo?: string | undefined;
1391
1397
  subject?: string | undefined;
1392
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1398
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1393
1399
  custom?: Record<string, unknown> | undefined;
1394
1400
  } | {
1395
1401
  defaultStyle: {
@@ -1439,7 +1445,7 @@ export declare function useAnnotations(): {
1439
1445
  author?: string | undefined;
1440
1446
  inReplyTo?: string | undefined;
1441
1447
  subject?: string | undefined;
1442
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1448
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1443
1449
  custom?: Record<string, unknown> | undefined;
1444
1450
  } | {
1445
1451
  rect: {
@@ -1465,7 +1471,7 @@ export declare function useAnnotations(): {
1465
1471
  contents?: string | undefined;
1466
1472
  inReplyTo?: string | undefined;
1467
1473
  subject?: string | undefined;
1468
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1474
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1469
1475
  custom?: Record<string, unknown> | undefined;
1470
1476
  } | {
1471
1477
  rect: {
@@ -1491,7 +1497,7 @@ export declare function useAnnotations(): {
1491
1497
  contents?: string | undefined;
1492
1498
  inReplyTo?: string | undefined;
1493
1499
  subject?: string | undefined;
1494
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1500
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1495
1501
  custom?: Record<string, unknown> | undefined;
1496
1502
  } | {
1497
1503
  start: {
@@ -1525,7 +1531,7 @@ export declare function useAnnotations(): {
1525
1531
  contents?: string | undefined;
1526
1532
  inReplyTo?: string | undefined;
1527
1533
  subject?: string | undefined;
1528
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1534
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1529
1535
  custom?: Record<string, unknown> | undefined;
1530
1536
  } | {
1531
1537
  vertices: {
@@ -1556,7 +1562,7 @@ export declare function useAnnotations(): {
1556
1562
  contents?: string | undefined;
1557
1563
  inReplyTo?: string | undefined;
1558
1564
  subject?: string | undefined;
1559
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1565
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1560
1566
  custom?: Record<string, unknown> | undefined;
1561
1567
  } | {
1562
1568
  vertices: {
@@ -1587,7 +1593,7 @@ export declare function useAnnotations(): {
1587
1593
  contents?: string | undefined;
1588
1594
  inReplyTo?: string | undefined;
1589
1595
  subject?: string | undefined;
1590
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1596
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1591
1597
  custom?: Record<string, unknown> | undefined;
1592
1598
  } | {
1593
1599
  inklist: {
@@ -1616,7 +1622,7 @@ export declare function useAnnotations(): {
1616
1622
  contents?: string | undefined;
1617
1623
  inReplyTo?: string | undefined;
1618
1624
  subject?: string | undefined;
1619
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1625
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1620
1626
  custom?: Record<string, unknown> | undefined;
1621
1627
  } | {
1622
1628
  rect: {
@@ -1640,7 +1646,7 @@ export declare function useAnnotations(): {
1640
1646
  contents?: string | undefined;
1641
1647
  inReplyTo?: string | undefined;
1642
1648
  subject?: string | undefined;
1643
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1649
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1644
1650
  custom?: Record<string, unknown> | undefined;
1645
1651
  } | {
1646
1652
  rect: {
@@ -1664,7 +1670,7 @@ export declare function useAnnotations(): {
1664
1670
  contents?: string | undefined;
1665
1671
  inReplyTo?: string | undefined;
1666
1672
  subject?: string | undefined;
1667
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1673
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1668
1674
  custom?: Record<string, unknown> | undefined;
1669
1675
  } | {
1670
1676
  rect: {
@@ -1688,7 +1694,7 @@ export declare function useAnnotations(): {
1688
1694
  contents?: string | undefined;
1689
1695
  inReplyTo?: string | undefined;
1690
1696
  subject?: string | undefined;
1691
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1697
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1692
1698
  custom?: Record<string, unknown> | undefined;
1693
1699
  } | {
1694
1700
  interiorColor: string;
@@ -1730,7 +1736,7 @@ export declare function useAnnotations(): {
1730
1736
  contents?: string | undefined;
1731
1737
  inReplyTo?: string | undefined;
1732
1738
  subject?: string | undefined;
1733
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1739
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1734
1740
  custom?: Record<string, unknown> | undefined;
1735
1741
  })[];
1736
1742
  byPage: (page: number) => ({
@@ -1771,7 +1777,7 @@ export declare function useAnnotations(): {
1771
1777
  contents?: string | undefined;
1772
1778
  inReplyTo?: string | undefined;
1773
1779
  subject?: string | undefined;
1774
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1780
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1775
1781
  custom?: Record<string, unknown> | undefined;
1776
1782
  } | {
1777
1783
  rect: {
@@ -1794,7 +1800,7 @@ export declare function useAnnotations(): {
1794
1800
  contents?: string | undefined;
1795
1801
  inReplyTo?: string | undefined;
1796
1802
  subject?: string | undefined;
1797
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1803
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1798
1804
  custom?: Record<string, unknown> | undefined;
1799
1805
  } | {
1800
1806
  defaultStyle: {
@@ -1844,7 +1850,7 @@ export declare function useAnnotations(): {
1844
1850
  author?: string | undefined;
1845
1851
  inReplyTo?: string | undefined;
1846
1852
  subject?: string | undefined;
1847
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1853
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1848
1854
  custom?: Record<string, unknown> | undefined;
1849
1855
  } | {
1850
1856
  rect: {
@@ -1870,7 +1876,7 @@ export declare function useAnnotations(): {
1870
1876
  contents?: string | undefined;
1871
1877
  inReplyTo?: string | undefined;
1872
1878
  subject?: string | undefined;
1873
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1879
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1874
1880
  custom?: Record<string, unknown> | undefined;
1875
1881
  } | {
1876
1882
  rect: {
@@ -1896,7 +1902,7 @@ export declare function useAnnotations(): {
1896
1902
  contents?: string | undefined;
1897
1903
  inReplyTo?: string | undefined;
1898
1904
  subject?: string | undefined;
1899
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1905
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1900
1906
  custom?: Record<string, unknown> | undefined;
1901
1907
  } | {
1902
1908
  start: {
@@ -1930,7 +1936,7 @@ export declare function useAnnotations(): {
1930
1936
  contents?: string | undefined;
1931
1937
  inReplyTo?: string | undefined;
1932
1938
  subject?: string | undefined;
1933
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1939
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1934
1940
  custom?: Record<string, unknown> | undefined;
1935
1941
  } | {
1936
1942
  vertices: {
@@ -1961,7 +1967,7 @@ export declare function useAnnotations(): {
1961
1967
  contents?: string | undefined;
1962
1968
  inReplyTo?: string | undefined;
1963
1969
  subject?: string | undefined;
1964
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
1970
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1965
1971
  custom?: Record<string, unknown> | undefined;
1966
1972
  } | {
1967
1973
  vertices: {
@@ -1992,7 +1998,7 @@ export declare function useAnnotations(): {
1992
1998
  contents?: string | undefined;
1993
1999
  inReplyTo?: string | undefined;
1994
2000
  subject?: string | undefined;
1995
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2001
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1996
2002
  custom?: Record<string, unknown> | undefined;
1997
2003
  } | {
1998
2004
  inklist: {
@@ -2021,7 +2027,7 @@ export declare function useAnnotations(): {
2021
2027
  contents?: string | undefined;
2022
2028
  inReplyTo?: string | undefined;
2023
2029
  subject?: string | undefined;
2024
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2030
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2025
2031
  custom?: Record<string, unknown> | undefined;
2026
2032
  } | {
2027
2033
  rect: {
@@ -2045,7 +2051,7 @@ export declare function useAnnotations(): {
2045
2051
  contents?: string | undefined;
2046
2052
  inReplyTo?: string | undefined;
2047
2053
  subject?: string | undefined;
2048
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2054
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2049
2055
  custom?: Record<string, unknown> | undefined;
2050
2056
  } | {
2051
2057
  rect: {
@@ -2069,7 +2075,7 @@ export declare function useAnnotations(): {
2069
2075
  contents?: string | undefined;
2070
2076
  inReplyTo?: string | undefined;
2071
2077
  subject?: string | undefined;
2072
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2078
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2073
2079
  custom?: Record<string, unknown> | undefined;
2074
2080
  } | {
2075
2081
  rect: {
@@ -2093,7 +2099,7 @@ export declare function useAnnotations(): {
2093
2099
  contents?: string | undefined;
2094
2100
  inReplyTo?: string | undefined;
2095
2101
  subject?: string | undefined;
2096
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2102
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2097
2103
  custom?: Record<string, unknown> | undefined;
2098
2104
  } | {
2099
2105
  interiorColor: string;
@@ -2135,7 +2141,7 @@ export declare function useAnnotations(): {
2135
2141
  contents?: string | undefined;
2136
2142
  inReplyTo?: string | undefined;
2137
2143
  subject?: string | undefined;
2138
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2144
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2139
2145
  custom?: Record<string, unknown> | undefined;
2140
2146
  })[];
2141
2147
  /** Replies in creation order for a note id. */
@@ -2177,7 +2183,7 @@ export declare function useAnnotations(): {
2177
2183
  contents?: string | undefined;
2178
2184
  inReplyTo?: string | undefined;
2179
2185
  subject?: string | undefined;
2180
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2186
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2181
2187
  custom?: Record<string, unknown> | undefined;
2182
2188
  } | {
2183
2189
  rect: {
@@ -2200,7 +2206,7 @@ export declare function useAnnotations(): {
2200
2206
  contents?: string | undefined;
2201
2207
  inReplyTo?: string | undefined;
2202
2208
  subject?: string | undefined;
2203
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2209
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2204
2210
  custom?: Record<string, unknown> | undefined;
2205
2211
  } | {
2206
2212
  defaultStyle: {
@@ -2250,7 +2256,7 @@ export declare function useAnnotations(): {
2250
2256
  author?: string | undefined;
2251
2257
  inReplyTo?: string | undefined;
2252
2258
  subject?: string | undefined;
2253
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2259
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2254
2260
  custom?: Record<string, unknown> | undefined;
2255
2261
  } | {
2256
2262
  rect: {
@@ -2276,7 +2282,7 @@ export declare function useAnnotations(): {
2276
2282
  contents?: string | undefined;
2277
2283
  inReplyTo?: string | undefined;
2278
2284
  subject?: string | undefined;
2279
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2285
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2280
2286
  custom?: Record<string, unknown> | undefined;
2281
2287
  } | {
2282
2288
  rect: {
@@ -2302,7 +2308,7 @@ export declare function useAnnotations(): {
2302
2308
  contents?: string | undefined;
2303
2309
  inReplyTo?: string | undefined;
2304
2310
  subject?: string | undefined;
2305
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2311
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2306
2312
  custom?: Record<string, unknown> | undefined;
2307
2313
  } | {
2308
2314
  start: {
@@ -2336,7 +2342,7 @@ export declare function useAnnotations(): {
2336
2342
  contents?: string | undefined;
2337
2343
  inReplyTo?: string | undefined;
2338
2344
  subject?: string | undefined;
2339
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2345
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2340
2346
  custom?: Record<string, unknown> | undefined;
2341
2347
  } | {
2342
2348
  vertices: {
@@ -2367,7 +2373,7 @@ export declare function useAnnotations(): {
2367
2373
  contents?: string | undefined;
2368
2374
  inReplyTo?: string | undefined;
2369
2375
  subject?: string | undefined;
2370
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2376
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2371
2377
  custom?: Record<string, unknown> | undefined;
2372
2378
  } | {
2373
2379
  vertices: {
@@ -2398,7 +2404,7 @@ export declare function useAnnotations(): {
2398
2404
  contents?: string | undefined;
2399
2405
  inReplyTo?: string | undefined;
2400
2406
  subject?: string | undefined;
2401
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2407
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2402
2408
  custom?: Record<string, unknown> | undefined;
2403
2409
  } | {
2404
2410
  inklist: {
@@ -2427,7 +2433,7 @@ export declare function useAnnotations(): {
2427
2433
  contents?: string | undefined;
2428
2434
  inReplyTo?: string | undefined;
2429
2435
  subject?: string | undefined;
2430
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2436
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2431
2437
  custom?: Record<string, unknown> | undefined;
2432
2438
  } | {
2433
2439
  rect: {
@@ -2451,7 +2457,7 @@ export declare function useAnnotations(): {
2451
2457
  contents?: string | undefined;
2452
2458
  inReplyTo?: string | undefined;
2453
2459
  subject?: string | undefined;
2454
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2460
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2455
2461
  custom?: Record<string, unknown> | undefined;
2456
2462
  } | {
2457
2463
  rect: {
@@ -2475,7 +2481,7 @@ export declare function useAnnotations(): {
2475
2481
  contents?: string | undefined;
2476
2482
  inReplyTo?: string | undefined;
2477
2483
  subject?: string | undefined;
2478
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2484
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2479
2485
  custom?: Record<string, unknown> | undefined;
2480
2486
  } | {
2481
2487
  rect: {
@@ -2499,7 +2505,7 @@ export declare function useAnnotations(): {
2499
2505
  contents?: string | undefined;
2500
2506
  inReplyTo?: string | undefined;
2501
2507
  subject?: string | undefined;
2502
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2508
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2503
2509
  custom?: Record<string, unknown> | undefined;
2504
2510
  } | {
2505
2511
  interiorColor: string;
@@ -2541,7 +2547,7 @@ export declare function useAnnotations(): {
2541
2547
  contents?: string | undefined;
2542
2548
  inReplyTo?: string | undefined;
2543
2549
  subject?: string | undefined;
2544
- intent?: "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}) | undefined;
2550
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2545
2551
  custom?: Record<string, unknown> | undefined;
2546
2552
  })[];
2547
2553
  };
@@ -2605,6 +2611,17 @@ export declare function useZoom(): {
2605
2611
  zoomOut: () => void | undefined;
2606
2612
  };
2607
2613
  //#endregion
2614
+ //#region src/hooks/useSearch.d.ts
2615
+ /**
2616
+ * The document search for hosts building their own control: the state, and the actions the
2617
+ * find bar uses. Search is set up once InkRoot has mounted, so until then (and on the server)
2618
+ * the state is closed and the actions do nothing. `open()` runs the search and draws the
2619
+ * highlights even when no find bar is mounted.
2620
+ */
2621
+ export declare function useSearch(): {
2622
+ state: SearchState;
2623
+ } & Omit<ViewerSearch, 'state'>;
2624
+ //#endregion
2608
2625
  //#region src/hooks/usePage.d.ts
2609
2626
  export declare function usePage(): {
2610
2627
  /** 0-based. */
@@ -2835,6 +2852,31 @@ export declare function InkUndo({ asChild, className, children, disabled, onClic
2835
2852
  //#region src/components/InkRedo.d.ts
2836
2853
  export declare function InkRedo({ asChild, className, children, disabled, onClick, ...rest }: InkHistoryButtonProps): import("react").JSX.Element;
2837
2854
  //#endregion
2855
+ //#region src/components/InkSearchButton.d.ts
2856
+ type InkSearchButtonProps = ComponentPropsWithoutRef<typeof Toolbar.Button>;
2857
+ /**
2858
+ * Opens the find bar; pressed while it is open. Pressing it again focuses the field. Place it
2859
+ * in a toolbar next to `InkFindBar`, which it needs for the field to focus. Disabled until a
2860
+ * document is open.
2861
+ */
2862
+ export declare function InkSearchButton({ asChild, className, children, disabled, onClick, ...rest }: InkSearchButtonProps): import("react").JSX.Element;
2863
+ //#endregion
2864
+ //#region src/components/InkFindBar.d.ts
2865
+ type InkFindBarProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'>;
2866
+ /**
2867
+ * The find bar: a field, the match count, previous and next, a match-case toggle and close,
2868
+ * a view of the root's search state. Place it anywhere inside `InkRoot`: it portals itself
2869
+ * into `[data-ink-viewport-root]`, the positioned ancestor the theme floats it from over the
2870
+ * top-right of the pages (as `InkThreadPopover` anchors to the root's overlay rather than
2871
+ * where it is written). It renders nothing until `InkViewport` has mounted, and is hidden
2872
+ * while the search is closed. While it is mounted it registers with the search controller,
2873
+ * which is what lets Ctrl/Cmd+F open it.
2874
+ *
2875
+ * Enter in the field steps to the next match, Shift+Enter to the previous, Escape closes.
2876
+ * Closing returns focus to where it was before the bar opened, else to the document.
2877
+ */
2878
+ export declare function InkFindBar({ className, ...rest }: InkFindBarProps): import("react").ReactPortal | null;
2879
+ //#endregion
2838
2880
  //#region src/components/zoom-button.d.ts
2839
2881
  /** Props of `InkZoomIn` and `InkZoomOut`: a toolbar button that may render as its child. */
2840
2882
  interface InkZoomButtonProps extends ComponentPropsWithoutRef<'button'> {
@@ -2949,5 +2991,5 @@ interface InkThreadPopoverProps {
2949
2991
  }
2950
2992
  export declare function InkThreadPopover({ children }: InkThreadPopoverProps): import("react").JSX.Element;
2951
2993
  //#endregion
2952
- export type { AnnotationDecoration, AnnotationSlotProps, AnnotationState, CommandHandle, DecorateAnnotation, InkAnnotationProps, InkColorMenuProps, InkCommandProps, InkContext, InkHighlightMenuProps, InkHistory, InkHistoryButtonProps, InkIconProps, InkLineStyleMenuProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkPlugin, InkRootHandle, InkRootProps, InkShapeMenuProps, InkSignatureDialogProps, InkSignatureMenuProps, InkStatus, InkTextStyleMenuProps, InkThreadPopoverProps, InkToolButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, ScopedToolStyleHandle, ThreadPopoverSlotProps, ToolStyleHandle };
2994
+ export type { AnnotationDecoration, AnnotationSlotProps, AnnotationState, CommandHandle, DecorateAnnotation, InkAnnotationProps, InkColorMenuProps, InkCommandProps, InkContext, InkFindBarProps, InkHighlightMenuProps, InkHistory, InkHistoryButtonProps, InkIconProps, InkLineStyleMenuProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkPlugin, InkRootHandle, InkRootProps, InkSearchButtonProps, InkShapeMenuProps, InkSignatureDialogProps, InkSignatureMenuProps, InkStatus, InkTextStyleMenuProps, InkThreadPopoverProps, InkToolButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, ScopedToolStyleHandle, ThreadPopoverSlotProps, ToolStyleHandle };
2953
2995
  //# sourceMappingURL=index.d.mts.map