@inkbar/react 0.1.1 → 0.3.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/README.md +49 -7
- package/dist/index.d.mts +140 -106
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +190 -112
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
2
2
|
import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, ConfidenceBucket, DocumentSource, ImportOptions, InkDocument, InkError, InkStatus, PageInfo, PdfAssets, Readable } from "@inkbar/core";
|
|
3
3
|
import { AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, LayoutMode, NotePopoverSlotProps, NotePopoverSlotProps as NotePopoverSlotProps$1, PageMount, SuggestionCardSlotProps, SuggestionCardSlotProps as SuggestionCardSlotProps$1, ToolController, ToolId, ViewRotation, Viewport, ZoomValue } from "@inkbar/core/dom";
|
|
4
|
+
import { Select } from "radix-ui";
|
|
5
|
+
import { IconNode } from "@inkbar/icons";
|
|
4
6
|
//#region src/context.d.ts
|
|
5
7
|
/** Undo and redo for the current document, whichever mode its annotations are in. */
|
|
6
8
|
interface InkHistory {
|
|
@@ -122,8 +124,8 @@ export declare function useAnnotations(): {
|
|
|
122
124
|
createdAt: string;
|
|
123
125
|
modifiedAt: string;
|
|
124
126
|
source: "session" | "pdf";
|
|
125
|
-
type: "
|
|
126
|
-
icon: "
|
|
127
|
+
type: "text";
|
|
128
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
127
129
|
author?: string | undefined;
|
|
128
130
|
contents?: string | undefined;
|
|
129
131
|
inReplyTo?: string | undefined;
|
|
@@ -143,13 +145,12 @@ export declare function useAnnotations(): {
|
|
|
143
145
|
createdAt: string;
|
|
144
146
|
modifiedAt: string;
|
|
145
147
|
source: "session" | "pdf";
|
|
146
|
-
type: "
|
|
147
|
-
|
|
148
|
+
type: "freetext";
|
|
149
|
+
contents: string;
|
|
148
150
|
fontSize: number;
|
|
149
151
|
fontFamily: string;
|
|
150
152
|
align: "left" | "center" | "right";
|
|
151
153
|
author?: string | undefined;
|
|
152
|
-
contents?: string | undefined;
|
|
153
154
|
inReplyTo?: string | undefined;
|
|
154
155
|
locked?: boolean | undefined;
|
|
155
156
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -172,13 +173,13 @@ export declare function useAnnotations(): {
|
|
|
172
173
|
modifiedAt: string;
|
|
173
174
|
source: "session" | "pdf";
|
|
174
175
|
type: "square" | "circle";
|
|
175
|
-
|
|
176
|
+
width: number;
|
|
176
177
|
author?: string | undefined;
|
|
177
178
|
contents?: string | undefined;
|
|
178
179
|
inReplyTo?: string | undefined;
|
|
179
180
|
locked?: boolean | undefined;
|
|
180
181
|
custom?: Record<string, unknown> | undefined;
|
|
181
|
-
|
|
182
|
+
interiorColor?: string | undefined;
|
|
182
183
|
} | {
|
|
183
184
|
id: string;
|
|
184
185
|
page: number;
|
|
@@ -202,13 +203,14 @@ export declare function useAnnotations(): {
|
|
|
202
203
|
x: number;
|
|
203
204
|
y: number;
|
|
204
205
|
};
|
|
205
|
-
|
|
206
|
+
width: number;
|
|
206
207
|
author?: string | undefined;
|
|
207
208
|
contents?: string | undefined;
|
|
208
209
|
inReplyTo?: string | undefined;
|
|
209
210
|
locked?: boolean | undefined;
|
|
210
211
|
custom?: Record<string, unknown> | undefined;
|
|
211
|
-
|
|
212
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
213
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
212
214
|
} | {
|
|
213
215
|
id: string;
|
|
214
216
|
page: number;
|
|
@@ -228,13 +230,13 @@ export declare function useAnnotations(): {
|
|
|
228
230
|
x: number;
|
|
229
231
|
y: number;
|
|
230
232
|
}[];
|
|
231
|
-
|
|
233
|
+
width: number;
|
|
232
234
|
author?: string | undefined;
|
|
233
235
|
contents?: string | undefined;
|
|
234
236
|
inReplyTo?: string | undefined;
|
|
235
237
|
locked?: boolean | undefined;
|
|
236
238
|
custom?: Record<string, unknown> | undefined;
|
|
237
|
-
|
|
239
|
+
interiorColor?: string | undefined;
|
|
238
240
|
} | {
|
|
239
241
|
id: string;
|
|
240
242
|
page: number;
|
|
@@ -250,11 +252,11 @@ export declare function useAnnotations(): {
|
|
|
250
252
|
modifiedAt: string;
|
|
251
253
|
source: "session" | "pdf";
|
|
252
254
|
type: "ink";
|
|
253
|
-
|
|
255
|
+
inklist: {
|
|
254
256
|
x: number;
|
|
255
257
|
y: number;
|
|
256
258
|
}[][];
|
|
257
|
-
|
|
259
|
+
width: number;
|
|
258
260
|
author?: string | undefined;
|
|
259
261
|
contents?: string | undefined;
|
|
260
262
|
inReplyTo?: string | undefined;
|
|
@@ -276,7 +278,7 @@ export declare function useAnnotations(): {
|
|
|
276
278
|
source: "session" | "pdf";
|
|
277
279
|
type: "redact";
|
|
278
280
|
origin: "user" | "suggested";
|
|
279
|
-
|
|
281
|
+
interiorColor: string;
|
|
280
282
|
author?: string | undefined;
|
|
281
283
|
contents?: string | undefined;
|
|
282
284
|
inReplyTo?: string | undefined;
|
|
@@ -361,8 +363,8 @@ export declare function useAnnotations(): {
|
|
|
361
363
|
createdAt: string;
|
|
362
364
|
modifiedAt: string;
|
|
363
365
|
source: "session" | "pdf";
|
|
364
|
-
type: "
|
|
365
|
-
icon: "
|
|
366
|
+
type: "text";
|
|
367
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
366
368
|
author?: string | undefined;
|
|
367
369
|
contents?: string | undefined;
|
|
368
370
|
inReplyTo?: string | undefined;
|
|
@@ -382,13 +384,12 @@ export declare function useAnnotations(): {
|
|
|
382
384
|
createdAt: string;
|
|
383
385
|
modifiedAt: string;
|
|
384
386
|
source: "session" | "pdf";
|
|
385
|
-
type: "
|
|
386
|
-
|
|
387
|
+
type: "freetext";
|
|
388
|
+
contents: string;
|
|
387
389
|
fontSize: number;
|
|
388
390
|
fontFamily: string;
|
|
389
391
|
align: "left" | "center" | "right";
|
|
390
392
|
author?: string | undefined;
|
|
391
|
-
contents?: string | undefined;
|
|
392
393
|
inReplyTo?: string | undefined;
|
|
393
394
|
locked?: boolean | undefined;
|
|
394
395
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -411,13 +412,13 @@ export declare function useAnnotations(): {
|
|
|
411
412
|
modifiedAt: string;
|
|
412
413
|
source: "session" | "pdf";
|
|
413
414
|
type: "square" | "circle";
|
|
414
|
-
|
|
415
|
+
width: number;
|
|
415
416
|
author?: string | undefined;
|
|
416
417
|
contents?: string | undefined;
|
|
417
418
|
inReplyTo?: string | undefined;
|
|
418
419
|
locked?: boolean | undefined;
|
|
419
420
|
custom?: Record<string, unknown> | undefined;
|
|
420
|
-
|
|
421
|
+
interiorColor?: string | undefined;
|
|
421
422
|
} | {
|
|
422
423
|
id: string;
|
|
423
424
|
page: number;
|
|
@@ -441,13 +442,14 @@ export declare function useAnnotations(): {
|
|
|
441
442
|
x: number;
|
|
442
443
|
y: number;
|
|
443
444
|
};
|
|
444
|
-
|
|
445
|
+
width: number;
|
|
445
446
|
author?: string | undefined;
|
|
446
447
|
contents?: string | undefined;
|
|
447
448
|
inReplyTo?: string | undefined;
|
|
448
449
|
locked?: boolean | undefined;
|
|
449
450
|
custom?: Record<string, unknown> | undefined;
|
|
450
|
-
|
|
451
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
452
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
451
453
|
} | {
|
|
452
454
|
id: string;
|
|
453
455
|
page: number;
|
|
@@ -467,13 +469,13 @@ export declare function useAnnotations(): {
|
|
|
467
469
|
x: number;
|
|
468
470
|
y: number;
|
|
469
471
|
}[];
|
|
470
|
-
|
|
472
|
+
width: number;
|
|
471
473
|
author?: string | undefined;
|
|
472
474
|
contents?: string | undefined;
|
|
473
475
|
inReplyTo?: string | undefined;
|
|
474
476
|
locked?: boolean | undefined;
|
|
475
477
|
custom?: Record<string, unknown> | undefined;
|
|
476
|
-
|
|
478
|
+
interiorColor?: string | undefined;
|
|
477
479
|
} | {
|
|
478
480
|
id: string;
|
|
479
481
|
page: number;
|
|
@@ -489,11 +491,11 @@ export declare function useAnnotations(): {
|
|
|
489
491
|
modifiedAt: string;
|
|
490
492
|
source: "session" | "pdf";
|
|
491
493
|
type: "ink";
|
|
492
|
-
|
|
494
|
+
inklist: {
|
|
493
495
|
x: number;
|
|
494
496
|
y: number;
|
|
495
497
|
}[][];
|
|
496
|
-
|
|
498
|
+
width: number;
|
|
497
499
|
author?: string | undefined;
|
|
498
500
|
contents?: string | undefined;
|
|
499
501
|
inReplyTo?: string | undefined;
|
|
@@ -515,7 +517,7 @@ export declare function useAnnotations(): {
|
|
|
515
517
|
source: "session" | "pdf";
|
|
516
518
|
type: "redact";
|
|
517
519
|
origin: "user" | "suggested";
|
|
518
|
-
|
|
520
|
+
interiorColor: string;
|
|
519
521
|
author?: string | undefined;
|
|
520
522
|
contents?: string | undefined;
|
|
521
523
|
inReplyTo?: string | undefined;
|
|
@@ -603,8 +605,8 @@ export declare function useAnnotations(): {
|
|
|
603
605
|
createdAt: string;
|
|
604
606
|
modifiedAt: string;
|
|
605
607
|
source: "session" | "pdf";
|
|
606
|
-
type: "
|
|
607
|
-
icon: "
|
|
608
|
+
type: "text";
|
|
609
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
608
610
|
author?: string | undefined;
|
|
609
611
|
contents?: string | undefined;
|
|
610
612
|
inReplyTo?: string | undefined;
|
|
@@ -624,13 +626,12 @@ export declare function useAnnotations(): {
|
|
|
624
626
|
createdAt: string;
|
|
625
627
|
modifiedAt: string;
|
|
626
628
|
source: "session" | "pdf";
|
|
627
|
-
type: "
|
|
628
|
-
|
|
629
|
+
type: "freetext";
|
|
630
|
+
contents: string;
|
|
629
631
|
fontSize: number;
|
|
630
632
|
fontFamily: string;
|
|
631
633
|
align: "left" | "center" | "right";
|
|
632
634
|
author?: string | undefined;
|
|
633
|
-
contents?: string | undefined;
|
|
634
635
|
inReplyTo?: string | undefined;
|
|
635
636
|
locked?: boolean | undefined;
|
|
636
637
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -653,13 +654,13 @@ export declare function useAnnotations(): {
|
|
|
653
654
|
modifiedAt: string;
|
|
654
655
|
source: "session" | "pdf";
|
|
655
656
|
type: "square" | "circle";
|
|
656
|
-
|
|
657
|
+
width: number;
|
|
657
658
|
author?: string | undefined;
|
|
658
659
|
contents?: string | undefined;
|
|
659
660
|
inReplyTo?: string | undefined;
|
|
660
661
|
locked?: boolean | undefined;
|
|
661
662
|
custom?: Record<string, unknown> | undefined;
|
|
662
|
-
|
|
663
|
+
interiorColor?: string | undefined;
|
|
663
664
|
} | {
|
|
664
665
|
id: string;
|
|
665
666
|
page: number;
|
|
@@ -683,13 +684,14 @@ export declare function useAnnotations(): {
|
|
|
683
684
|
x: number;
|
|
684
685
|
y: number;
|
|
685
686
|
};
|
|
686
|
-
|
|
687
|
+
width: number;
|
|
687
688
|
author?: string | undefined;
|
|
688
689
|
contents?: string | undefined;
|
|
689
690
|
inReplyTo?: string | undefined;
|
|
690
691
|
locked?: boolean | undefined;
|
|
691
692
|
custom?: Record<string, unknown> | undefined;
|
|
692
|
-
|
|
693
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
694
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
693
695
|
} | {
|
|
694
696
|
id: string;
|
|
695
697
|
page: number;
|
|
@@ -709,13 +711,13 @@ export declare function useAnnotations(): {
|
|
|
709
711
|
x: number;
|
|
710
712
|
y: number;
|
|
711
713
|
}[];
|
|
712
|
-
|
|
714
|
+
width: number;
|
|
713
715
|
author?: string | undefined;
|
|
714
716
|
contents?: string | undefined;
|
|
715
717
|
inReplyTo?: string | undefined;
|
|
716
718
|
locked?: boolean | undefined;
|
|
717
719
|
custom?: Record<string, unknown> | undefined;
|
|
718
|
-
|
|
720
|
+
interiorColor?: string | undefined;
|
|
719
721
|
} | {
|
|
720
722
|
id: string;
|
|
721
723
|
page: number;
|
|
@@ -731,11 +733,11 @@ export declare function useAnnotations(): {
|
|
|
731
733
|
modifiedAt: string;
|
|
732
734
|
source: "session" | "pdf";
|
|
733
735
|
type: "ink";
|
|
734
|
-
|
|
736
|
+
inklist: {
|
|
735
737
|
x: number;
|
|
736
738
|
y: number;
|
|
737
739
|
}[][];
|
|
738
|
-
|
|
740
|
+
width: number;
|
|
739
741
|
author?: string | undefined;
|
|
740
742
|
contents?: string | undefined;
|
|
741
743
|
inReplyTo?: string | undefined;
|
|
@@ -757,7 +759,7 @@ export declare function useAnnotations(): {
|
|
|
757
759
|
source: "session" | "pdf";
|
|
758
760
|
type: "redact";
|
|
759
761
|
origin: "user" | "suggested";
|
|
760
|
-
|
|
762
|
+
interiorColor: string;
|
|
761
763
|
author?: string | undefined;
|
|
762
764
|
contents?: string | undefined;
|
|
763
765
|
inReplyTo?: string | undefined;
|
|
@@ -843,8 +845,8 @@ export declare function useAnnotations(): {
|
|
|
843
845
|
createdAt: string;
|
|
844
846
|
modifiedAt: string;
|
|
845
847
|
source: "session" | "pdf";
|
|
846
|
-
type: "
|
|
847
|
-
icon: "
|
|
848
|
+
type: "text";
|
|
849
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
848
850
|
author?: string | undefined;
|
|
849
851
|
contents?: string | undefined;
|
|
850
852
|
inReplyTo?: string | undefined;
|
|
@@ -864,13 +866,12 @@ export declare function useAnnotations(): {
|
|
|
864
866
|
createdAt: string;
|
|
865
867
|
modifiedAt: string;
|
|
866
868
|
source: "session" | "pdf";
|
|
867
|
-
type: "
|
|
868
|
-
|
|
869
|
+
type: "freetext";
|
|
870
|
+
contents: string;
|
|
869
871
|
fontSize: number;
|
|
870
872
|
fontFamily: string;
|
|
871
873
|
align: "left" | "center" | "right";
|
|
872
874
|
author?: string | undefined;
|
|
873
|
-
contents?: string | undefined;
|
|
874
875
|
inReplyTo?: string | undefined;
|
|
875
876
|
locked?: boolean | undefined;
|
|
876
877
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -893,13 +894,13 @@ export declare function useAnnotations(): {
|
|
|
893
894
|
modifiedAt: string;
|
|
894
895
|
source: "session" | "pdf";
|
|
895
896
|
type: "square" | "circle";
|
|
896
|
-
|
|
897
|
+
width: number;
|
|
897
898
|
author?: string | undefined;
|
|
898
899
|
contents?: string | undefined;
|
|
899
900
|
inReplyTo?: string | undefined;
|
|
900
901
|
locked?: boolean | undefined;
|
|
901
902
|
custom?: Record<string, unknown> | undefined;
|
|
902
|
-
|
|
903
|
+
interiorColor?: string | undefined;
|
|
903
904
|
} | {
|
|
904
905
|
id: string;
|
|
905
906
|
page: number;
|
|
@@ -923,13 +924,14 @@ export declare function useAnnotations(): {
|
|
|
923
924
|
x: number;
|
|
924
925
|
y: number;
|
|
925
926
|
};
|
|
926
|
-
|
|
927
|
+
width: number;
|
|
927
928
|
author?: string | undefined;
|
|
928
929
|
contents?: string | undefined;
|
|
929
930
|
inReplyTo?: string | undefined;
|
|
930
931
|
locked?: boolean | undefined;
|
|
931
932
|
custom?: Record<string, unknown> | undefined;
|
|
932
|
-
|
|
933
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
934
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
933
935
|
} | {
|
|
934
936
|
id: string;
|
|
935
937
|
page: number;
|
|
@@ -949,13 +951,13 @@ export declare function useAnnotations(): {
|
|
|
949
951
|
x: number;
|
|
950
952
|
y: number;
|
|
951
953
|
}[];
|
|
952
|
-
|
|
954
|
+
width: number;
|
|
953
955
|
author?: string | undefined;
|
|
954
956
|
contents?: string | undefined;
|
|
955
957
|
inReplyTo?: string | undefined;
|
|
956
958
|
locked?: boolean | undefined;
|
|
957
959
|
custom?: Record<string, unknown> | undefined;
|
|
958
|
-
|
|
960
|
+
interiorColor?: string | undefined;
|
|
959
961
|
} | {
|
|
960
962
|
id: string;
|
|
961
963
|
page: number;
|
|
@@ -971,11 +973,11 @@ export declare function useAnnotations(): {
|
|
|
971
973
|
modifiedAt: string;
|
|
972
974
|
source: "session" | "pdf";
|
|
973
975
|
type: "ink";
|
|
974
|
-
|
|
976
|
+
inklist: {
|
|
975
977
|
x: number;
|
|
976
978
|
y: number;
|
|
977
979
|
}[][];
|
|
978
|
-
|
|
980
|
+
width: number;
|
|
979
981
|
author?: string | undefined;
|
|
980
982
|
contents?: string | undefined;
|
|
981
983
|
inReplyTo?: string | undefined;
|
|
@@ -997,7 +999,7 @@ export declare function useAnnotations(): {
|
|
|
997
999
|
source: "session" | "pdf";
|
|
998
1000
|
type: "redact";
|
|
999
1001
|
origin: "user" | "suggested";
|
|
1000
|
-
|
|
1002
|
+
interiorColor: string;
|
|
1001
1003
|
author?: string | undefined;
|
|
1002
1004
|
contents?: string | undefined;
|
|
1003
1005
|
inReplyTo?: string | undefined;
|
|
@@ -1083,8 +1085,8 @@ export declare function useAnnotations(): {
|
|
|
1083
1085
|
createdAt: string;
|
|
1084
1086
|
modifiedAt: string;
|
|
1085
1087
|
source: "session" | "pdf";
|
|
1086
|
-
type: "
|
|
1087
|
-
icon: "
|
|
1088
|
+
type: "text";
|
|
1089
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
1088
1090
|
author?: string | undefined;
|
|
1089
1091
|
contents?: string | undefined;
|
|
1090
1092
|
inReplyTo?: string | undefined;
|
|
@@ -1104,13 +1106,12 @@ export declare function useAnnotations(): {
|
|
|
1104
1106
|
createdAt: string;
|
|
1105
1107
|
modifiedAt: string;
|
|
1106
1108
|
source: "session" | "pdf";
|
|
1107
|
-
type: "
|
|
1108
|
-
|
|
1109
|
+
type: "freetext";
|
|
1110
|
+
contents: string;
|
|
1109
1111
|
fontSize: number;
|
|
1110
1112
|
fontFamily: string;
|
|
1111
1113
|
align: "left" | "center" | "right";
|
|
1112
1114
|
author?: string | undefined;
|
|
1113
|
-
contents?: string | undefined;
|
|
1114
1115
|
inReplyTo?: string | undefined;
|
|
1115
1116
|
locked?: boolean | undefined;
|
|
1116
1117
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -1133,13 +1134,13 @@ export declare function useAnnotations(): {
|
|
|
1133
1134
|
modifiedAt: string;
|
|
1134
1135
|
source: "session" | "pdf";
|
|
1135
1136
|
type: "square" | "circle";
|
|
1136
|
-
|
|
1137
|
+
width: number;
|
|
1137
1138
|
author?: string | undefined;
|
|
1138
1139
|
contents?: string | undefined;
|
|
1139
1140
|
inReplyTo?: string | undefined;
|
|
1140
1141
|
locked?: boolean | undefined;
|
|
1141
1142
|
custom?: Record<string, unknown> | undefined;
|
|
1142
|
-
|
|
1143
|
+
interiorColor?: string | undefined;
|
|
1143
1144
|
} | {
|
|
1144
1145
|
id: string;
|
|
1145
1146
|
page: number;
|
|
@@ -1163,13 +1164,14 @@ export declare function useAnnotations(): {
|
|
|
1163
1164
|
x: number;
|
|
1164
1165
|
y: number;
|
|
1165
1166
|
};
|
|
1166
|
-
|
|
1167
|
+
width: number;
|
|
1167
1168
|
author?: string | undefined;
|
|
1168
1169
|
contents?: string | undefined;
|
|
1169
1170
|
inReplyTo?: string | undefined;
|
|
1170
1171
|
locked?: boolean | undefined;
|
|
1171
1172
|
custom?: Record<string, unknown> | undefined;
|
|
1172
|
-
|
|
1173
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
1174
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
1173
1175
|
} | {
|
|
1174
1176
|
id: string;
|
|
1175
1177
|
page: number;
|
|
@@ -1189,13 +1191,13 @@ export declare function useAnnotations(): {
|
|
|
1189
1191
|
x: number;
|
|
1190
1192
|
y: number;
|
|
1191
1193
|
}[];
|
|
1192
|
-
|
|
1194
|
+
width: number;
|
|
1193
1195
|
author?: string | undefined;
|
|
1194
1196
|
contents?: string | undefined;
|
|
1195
1197
|
inReplyTo?: string | undefined;
|
|
1196
1198
|
locked?: boolean | undefined;
|
|
1197
1199
|
custom?: Record<string, unknown> | undefined;
|
|
1198
|
-
|
|
1200
|
+
interiorColor?: string | undefined;
|
|
1199
1201
|
} | {
|
|
1200
1202
|
id: string;
|
|
1201
1203
|
page: number;
|
|
@@ -1211,11 +1213,11 @@ export declare function useAnnotations(): {
|
|
|
1211
1213
|
modifiedAt: string;
|
|
1212
1214
|
source: "session" | "pdf";
|
|
1213
1215
|
type: "ink";
|
|
1214
|
-
|
|
1216
|
+
inklist: {
|
|
1215
1217
|
x: number;
|
|
1216
1218
|
y: number;
|
|
1217
1219
|
}[][];
|
|
1218
|
-
|
|
1220
|
+
width: number;
|
|
1219
1221
|
author?: string | undefined;
|
|
1220
1222
|
contents?: string | undefined;
|
|
1221
1223
|
inReplyTo?: string | undefined;
|
|
@@ -1237,7 +1239,7 @@ export declare function useAnnotations(): {
|
|
|
1237
1239
|
source: "session" | "pdf";
|
|
1238
1240
|
type: "redact";
|
|
1239
1241
|
origin: "user" | "suggested";
|
|
1240
|
-
|
|
1242
|
+
interiorColor: string;
|
|
1241
1243
|
author?: string | undefined;
|
|
1242
1244
|
contents?: string | undefined;
|
|
1243
1245
|
inReplyTo?: string | undefined;
|
|
@@ -1322,8 +1324,8 @@ export declare function useAnnotations(): {
|
|
|
1322
1324
|
createdAt: string;
|
|
1323
1325
|
modifiedAt: string;
|
|
1324
1326
|
source: "session" | "pdf";
|
|
1325
|
-
type: "
|
|
1326
|
-
icon: "
|
|
1327
|
+
type: "text";
|
|
1328
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
1327
1329
|
author?: string | undefined;
|
|
1328
1330
|
contents?: string | undefined;
|
|
1329
1331
|
inReplyTo?: string | undefined;
|
|
@@ -1343,13 +1345,12 @@ export declare function useAnnotations(): {
|
|
|
1343
1345
|
createdAt: string;
|
|
1344
1346
|
modifiedAt: string;
|
|
1345
1347
|
source: "session" | "pdf";
|
|
1346
|
-
type: "
|
|
1347
|
-
|
|
1348
|
+
type: "freetext";
|
|
1349
|
+
contents: string;
|
|
1348
1350
|
fontSize: number;
|
|
1349
1351
|
fontFamily: string;
|
|
1350
1352
|
align: "left" | "center" | "right";
|
|
1351
1353
|
author?: string | undefined;
|
|
1352
|
-
contents?: string | undefined;
|
|
1353
1354
|
inReplyTo?: string | undefined;
|
|
1354
1355
|
locked?: boolean | undefined;
|
|
1355
1356
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -1372,13 +1373,13 @@ export declare function useAnnotations(): {
|
|
|
1372
1373
|
modifiedAt: string;
|
|
1373
1374
|
source: "session" | "pdf";
|
|
1374
1375
|
type: "square" | "circle";
|
|
1375
|
-
|
|
1376
|
+
width: number;
|
|
1376
1377
|
author?: string | undefined;
|
|
1377
1378
|
contents?: string | undefined;
|
|
1378
1379
|
inReplyTo?: string | undefined;
|
|
1379
1380
|
locked?: boolean | undefined;
|
|
1380
1381
|
custom?: Record<string, unknown> | undefined;
|
|
1381
|
-
|
|
1382
|
+
interiorColor?: string | undefined;
|
|
1382
1383
|
} | {
|
|
1383
1384
|
id: string;
|
|
1384
1385
|
page: number;
|
|
@@ -1402,13 +1403,14 @@ export declare function useAnnotations(): {
|
|
|
1402
1403
|
x: number;
|
|
1403
1404
|
y: number;
|
|
1404
1405
|
};
|
|
1405
|
-
|
|
1406
|
+
width: number;
|
|
1406
1407
|
author?: string | undefined;
|
|
1407
1408
|
contents?: string | undefined;
|
|
1408
1409
|
inReplyTo?: string | undefined;
|
|
1409
1410
|
locked?: boolean | undefined;
|
|
1410
1411
|
custom?: Record<string, unknown> | undefined;
|
|
1411
|
-
|
|
1412
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
1413
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
1412
1414
|
} | {
|
|
1413
1415
|
id: string;
|
|
1414
1416
|
page: number;
|
|
@@ -1428,13 +1430,13 @@ export declare function useAnnotations(): {
|
|
|
1428
1430
|
x: number;
|
|
1429
1431
|
y: number;
|
|
1430
1432
|
}[];
|
|
1431
|
-
|
|
1433
|
+
width: number;
|
|
1432
1434
|
author?: string | undefined;
|
|
1433
1435
|
contents?: string | undefined;
|
|
1434
1436
|
inReplyTo?: string | undefined;
|
|
1435
1437
|
locked?: boolean | undefined;
|
|
1436
1438
|
custom?: Record<string, unknown> | undefined;
|
|
1437
|
-
|
|
1439
|
+
interiorColor?: string | undefined;
|
|
1438
1440
|
} | {
|
|
1439
1441
|
id: string;
|
|
1440
1442
|
page: number;
|
|
@@ -1450,11 +1452,11 @@ export declare function useAnnotations(): {
|
|
|
1450
1452
|
modifiedAt: string;
|
|
1451
1453
|
source: "session" | "pdf";
|
|
1452
1454
|
type: "ink";
|
|
1453
|
-
|
|
1455
|
+
inklist: {
|
|
1454
1456
|
x: number;
|
|
1455
1457
|
y: number;
|
|
1456
1458
|
}[][];
|
|
1457
|
-
|
|
1459
|
+
width: number;
|
|
1458
1460
|
author?: string | undefined;
|
|
1459
1461
|
contents?: string | undefined;
|
|
1460
1462
|
inReplyTo?: string | undefined;
|
|
@@ -1476,7 +1478,7 @@ export declare function useAnnotations(): {
|
|
|
1476
1478
|
source: "session" | "pdf";
|
|
1477
1479
|
type: "redact";
|
|
1478
1480
|
origin: "user" | "suggested";
|
|
1479
|
-
|
|
1481
|
+
interiorColor: string;
|
|
1480
1482
|
author?: string | undefined;
|
|
1481
1483
|
contents?: string | undefined;
|
|
1482
1484
|
inReplyTo?: string | undefined;
|
|
@@ -1562,8 +1564,8 @@ export declare function useAnnotations(): {
|
|
|
1562
1564
|
createdAt: string;
|
|
1563
1565
|
modifiedAt: string;
|
|
1564
1566
|
source: "session" | "pdf";
|
|
1565
|
-
type: "
|
|
1566
|
-
icon: "
|
|
1567
|
+
type: "text";
|
|
1568
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
1567
1569
|
author?: string | undefined;
|
|
1568
1570
|
contents?: string | undefined;
|
|
1569
1571
|
inReplyTo?: string | undefined;
|
|
@@ -1583,13 +1585,12 @@ export declare function useAnnotations(): {
|
|
|
1583
1585
|
createdAt: string;
|
|
1584
1586
|
modifiedAt: string;
|
|
1585
1587
|
source: "session" | "pdf";
|
|
1586
|
-
type: "
|
|
1587
|
-
|
|
1588
|
+
type: "freetext";
|
|
1589
|
+
contents: string;
|
|
1588
1590
|
fontSize: number;
|
|
1589
1591
|
fontFamily: string;
|
|
1590
1592
|
align: "left" | "center" | "right";
|
|
1591
1593
|
author?: string | undefined;
|
|
1592
|
-
contents?: string | undefined;
|
|
1593
1594
|
inReplyTo?: string | undefined;
|
|
1594
1595
|
locked?: boolean | undefined;
|
|
1595
1596
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -1612,13 +1613,13 @@ export declare function useAnnotations(): {
|
|
|
1612
1613
|
modifiedAt: string;
|
|
1613
1614
|
source: "session" | "pdf";
|
|
1614
1615
|
type: "square" | "circle";
|
|
1615
|
-
|
|
1616
|
+
width: number;
|
|
1616
1617
|
author?: string | undefined;
|
|
1617
1618
|
contents?: string | undefined;
|
|
1618
1619
|
inReplyTo?: string | undefined;
|
|
1619
1620
|
locked?: boolean | undefined;
|
|
1620
1621
|
custom?: Record<string, unknown> | undefined;
|
|
1621
|
-
|
|
1622
|
+
interiorColor?: string | undefined;
|
|
1622
1623
|
} | {
|
|
1623
1624
|
id: string;
|
|
1624
1625
|
page: number;
|
|
@@ -1642,13 +1643,14 @@ export declare function useAnnotations(): {
|
|
|
1642
1643
|
x: number;
|
|
1643
1644
|
y: number;
|
|
1644
1645
|
};
|
|
1645
|
-
|
|
1646
|
+
width: number;
|
|
1646
1647
|
author?: string | undefined;
|
|
1647
1648
|
contents?: string | undefined;
|
|
1648
1649
|
inReplyTo?: string | undefined;
|
|
1649
1650
|
locked?: boolean | undefined;
|
|
1650
1651
|
custom?: Record<string, unknown> | undefined;
|
|
1651
|
-
|
|
1652
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
1653
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
1652
1654
|
} | {
|
|
1653
1655
|
id: string;
|
|
1654
1656
|
page: number;
|
|
@@ -1668,13 +1670,13 @@ export declare function useAnnotations(): {
|
|
|
1668
1670
|
x: number;
|
|
1669
1671
|
y: number;
|
|
1670
1672
|
}[];
|
|
1671
|
-
|
|
1673
|
+
width: number;
|
|
1672
1674
|
author?: string | undefined;
|
|
1673
1675
|
contents?: string | undefined;
|
|
1674
1676
|
inReplyTo?: string | undefined;
|
|
1675
1677
|
locked?: boolean | undefined;
|
|
1676
1678
|
custom?: Record<string, unknown> | undefined;
|
|
1677
|
-
|
|
1679
|
+
interiorColor?: string | undefined;
|
|
1678
1680
|
} | {
|
|
1679
1681
|
id: string;
|
|
1680
1682
|
page: number;
|
|
@@ -1690,11 +1692,11 @@ export declare function useAnnotations(): {
|
|
|
1690
1692
|
modifiedAt: string;
|
|
1691
1693
|
source: "session" | "pdf";
|
|
1692
1694
|
type: "ink";
|
|
1693
|
-
|
|
1695
|
+
inklist: {
|
|
1694
1696
|
x: number;
|
|
1695
1697
|
y: number;
|
|
1696
1698
|
}[][];
|
|
1697
|
-
|
|
1699
|
+
width: number;
|
|
1698
1700
|
author?: string | undefined;
|
|
1699
1701
|
contents?: string | undefined;
|
|
1700
1702
|
inReplyTo?: string | undefined;
|
|
@@ -1716,7 +1718,7 @@ export declare function useAnnotations(): {
|
|
|
1716
1718
|
source: "session" | "pdf";
|
|
1717
1719
|
type: "redact";
|
|
1718
1720
|
origin: "user" | "suggested";
|
|
1719
|
-
|
|
1721
|
+
interiorColor: string;
|
|
1720
1722
|
author?: string | undefined;
|
|
1721
1723
|
contents?: string | undefined;
|
|
1722
1724
|
inReplyTo?: string | undefined;
|
|
@@ -1899,6 +1901,13 @@ interface InkToolbarProps extends Omit<ComponentPropsWithoutRef<'div'>, 'dir'> {
|
|
|
1899
1901
|
}
|
|
1900
1902
|
export declare function InkToolbar({ label, asChild, className, children, ...rest }: InkToolbarProps): import("react").JSX.Element;
|
|
1901
1903
|
//#endregion
|
|
1904
|
+
//#region src/components/InkIcon.d.ts
|
|
1905
|
+
interface InkIconProps {
|
|
1906
|
+
icon: IconNode;
|
|
1907
|
+
size?: number;
|
|
1908
|
+
}
|
|
1909
|
+
export declare function InkIcon({ icon, size }: InkIconProps): import("react").JSX.Element;
|
|
1910
|
+
//#endregion
|
|
1902
1911
|
//#region src/components/InkToolButton.d.ts
|
|
1903
1912
|
interface InkToolButtonProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
1904
1913
|
tool: ToolId;
|
|
@@ -1911,6 +1920,26 @@ interface InkToolButtonProps extends Omit<ComponentPropsWithoutRef<'button'>, 'c
|
|
|
1911
1920
|
}
|
|
1912
1921
|
export declare function InkToolButton({ tool, label, asChild, className, children, onClick, ...rest }: InkToolButtonProps): import("react").JSX.Element;
|
|
1913
1922
|
//#endregion
|
|
1923
|
+
//#region src/components/InkToolbarSeparator.d.ts
|
|
1924
|
+
type InkToolbarSeparatorProps = ComponentPropsWithoutRef<'div'>;
|
|
1925
|
+
/**
|
|
1926
|
+
* A divider between groups of controls in a horizontal toolbar. Not focusable. A plain div
|
|
1927
|
+
* rather than Radix's separator, which reads as horizontal inside a horizontal toolbar.
|
|
1928
|
+
*/
|
|
1929
|
+
export declare function InkToolbarSeparator({ className, ...rest }: InkToolbarSeparatorProps): import("react").JSX.Element;
|
|
1930
|
+
//#endregion
|
|
1931
|
+
//#region src/components/history-button.d.ts
|
|
1932
|
+
/** Props of `InkUndo` and `InkRedo`: a toolbar button that may render as its child. */
|
|
1933
|
+
interface InkHistoryButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
1934
|
+
asChild?: boolean;
|
|
1935
|
+
}
|
|
1936
|
+
//#endregion
|
|
1937
|
+
//#region src/components/InkUndo.d.ts
|
|
1938
|
+
export declare function InkUndo({ asChild, className, children, disabled, onClick, ...rest }: InkHistoryButtonProps): import("react").JSX.Element;
|
|
1939
|
+
//#endregion
|
|
1940
|
+
//#region src/components/InkRedo.d.ts
|
|
1941
|
+
export declare function InkRedo({ asChild, className, children, disabled, onClick, ...rest }: InkHistoryButtonProps): import("react").JSX.Element;
|
|
1942
|
+
//#endregion
|
|
1914
1943
|
//#region src/components/zoom-button.d.ts
|
|
1915
1944
|
/** Props of `InkZoomIn` and `InkZoomOut`: a toolbar button that may render as its child. */
|
|
1916
1945
|
interface InkZoomButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
@@ -1924,7 +1953,8 @@ export declare function InkZoomIn({ asChild, className, children, onClick, ...re
|
|
|
1924
1953
|
export declare function InkZoomOut({ asChild, className, children, onClick, ...rest }: InkZoomButtonProps): import("react").JSX.Element;
|
|
1925
1954
|
//#endregion
|
|
1926
1955
|
//#region src/components/InkZoomSelect.d.ts
|
|
1927
|
-
|
|
1956
|
+
/** Props of the select's trigger button; the options come from the zoom levels. */
|
|
1957
|
+
type InkZoomSelectProps = Omit<ComponentPropsWithoutRef<typeof Select.Trigger>, 'children' | 'asChild'>;
|
|
1928
1958
|
export declare function InkZoomSelect({ className, ...rest }: InkZoomSelectProps): import("react").JSX.Element;
|
|
1929
1959
|
//#endregion
|
|
1930
1960
|
//#region src/components/InkPageInput.d.ts
|
|
@@ -1934,13 +1964,17 @@ export declare function InkPageInput({ className, onKeyDown: onKeyDownProp, ...r
|
|
|
1934
1964
|
//#region src/components/InkPageCount.d.ts
|
|
1935
1965
|
export declare function InkPageCount({ className, ...rest }: ComponentPropsWithoutRef<'span'>): import("react").JSX.Element;
|
|
1936
1966
|
//#endregion
|
|
1937
|
-
//#region src/
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
children?: ReactNode;
|
|
1967
|
+
//#region src/components/page-button.d.ts
|
|
1968
|
+
/** Props of `InkPrevPage` and `InkNextPage`: a toolbar button that may render as its child. */
|
|
1969
|
+
interface InkPageButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
1970
|
+
asChild?: boolean;
|
|
1942
1971
|
}
|
|
1943
|
-
|
|
1972
|
+
//#endregion
|
|
1973
|
+
//#region src/components/InkPrevPage.d.ts
|
|
1974
|
+
export declare function InkPrevPage({ asChild, className, children, disabled, onClick, ...rest }: InkPageButtonProps): import("react").JSX.Element;
|
|
1975
|
+
//#endregion
|
|
1976
|
+
//#region src/components/InkNextPage.d.ts
|
|
1977
|
+
export declare function InkNextPage({ asChild, className, children, disabled, onClick, ...rest }: InkPageButtonProps): import("react").JSX.Element;
|
|
1944
1978
|
//#endregion
|
|
1945
1979
|
//#region src/components/InkNotePopover.d.ts
|
|
1946
1980
|
interface InkNotePopoverProps {
|
|
@@ -1954,5 +1988,5 @@ interface InkSuggestionCardProps {
|
|
|
1954
1988
|
}
|
|
1955
1989
|
export declare function InkSuggestionCard({ children }: InkSuggestionCardProps): import("react").JSX.Element;
|
|
1956
1990
|
//#endregion
|
|
1957
|
-
export type { AnnotationSlotProps, AnnotationState, ConfidenceBucket,
|
|
1991
|
+
export type { AnnotationSlotProps, AnnotationState, ConfidenceBucket, InkAnnotationProps, InkContext, InkHistory, InkHistoryButtonProps, InkIconProps, InkNotePopoverProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkRootHandle, InkRootProps, InkStatus, InkSuggestionCardProps, InkToolButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, NotePopoverSlotProps, SuggestionCardSlotProps };
|
|
1958
1992
|
//# sourceMappingURL=index.d.mts.map
|