@inkbar/svelte 0.8.0 → 0.10.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 +71 -6
- package/dist/components/InkDownloadButton.svelte +62 -0
- package/dist/components/InkDownloadButton.svelte.d.ts +14 -0
- package/dist/components/InkDownloadButton.svelte.d.ts.map +1 -0
- package/dist/components/InkFindBar.svelte +18 -15
- package/dist/components/InkFindBar.svelte.d.ts.map +1 -1
- package/dist/components/InkHighlightMenu.svelte +101 -93
- package/dist/components/InkHighlightMenu.svelte.d.ts.map +1 -1
- package/dist/components/InkPanel.svelte +73 -0
- package/dist/components/InkPanel.svelte.d.ts +18 -0
- package/dist/components/InkPanel.svelte.d.ts.map +1 -0
- package/dist/components/InkPrintButton.svelte +57 -0
- package/dist/components/InkPrintButton.svelte.d.ts +12 -0
- package/dist/components/InkPrintButton.svelte.d.ts.map +1 -0
- package/dist/components/InkRecordList.svelte +91 -0
- package/dist/components/InkRecordList.svelte.d.ts +72 -0
- package/dist/components/InkRecordList.svelte.d.ts.map +1 -0
- package/dist/components/InkRoot.svelte +53 -5
- package/dist/components/InkRoot.svelte.d.ts +7 -2
- package/dist/components/InkRoot.svelte.d.ts.map +1 -1
- package/dist/components/InkSearchResults.svelte +72 -0
- package/dist/components/InkSearchResults.svelte.d.ts +9 -0
- package/dist/components/InkSearchResults.svelte.d.ts.map +1 -0
- package/dist/components/InkShapeMenu.svelte +89 -84
- package/dist/components/InkShapeMenu.svelte.d.ts.map +1 -1
- package/dist/components/InkSidebar.svelte +179 -0
- package/dist/components/InkSidebar.svelte.d.ts +22 -0
- package/dist/components/InkSidebar.svelte.d.ts.map +1 -0
- package/dist/components/InkSignatureDialog.svelte +7 -3
- package/dist/components/InkSignatureDialog.svelte.d.ts +4 -3
- package/dist/components/InkSignatureDialog.svelte.d.ts.map +1 -1
- package/dist/components/InkSignatureMenu.svelte +85 -77
- package/dist/components/InkSignatureMenu.svelte.d.ts.map +1 -1
- package/dist/components/InkThumbnail.svelte +74 -0
- package/dist/components/InkThumbnail.svelte.d.ts +19 -0
- package/dist/components/InkThumbnail.svelte.d.ts.map +1 -0
- package/dist/components/InkThumbnails.svelte +146 -0
- package/dist/components/InkThumbnails.svelte.d.ts +24 -0
- package/dist/components/InkThumbnails.svelte.d.ts.map +1 -0
- package/dist/components/InkToolButton.svelte +23 -24
- package/dist/components/InkToolButton.svelte.d.ts.map +1 -1
- package/dist/components/InkToolbarButton.svelte +33 -0
- package/dist/components/InkToolbarButton.svelte.d.ts +12 -0
- package/dist/components/InkToolbarButton.svelte.d.ts.map +1 -0
- package/dist/components/InkViewport.svelte +4 -0
- package/dist/components/InkViewport.svelte.d.ts.map +1 -1
- package/dist/components/InkZoomSelect.svelte +1 -1
- package/dist/components/RecordCards.svelte +173 -0
- package/dist/components/RecordCards.svelte.d.ts +16 -0
- package/dist/components/RecordCards.svelte.d.ts.map +1 -0
- package/dist/components/SidebarTrigger.svelte +20 -0
- package/dist/components/SidebarTrigger.svelte.d.ts +9 -0
- package/dist/components/SidebarTrigger.svelte.d.ts.map +1 -0
- package/dist/components/SignatureForm.svelte +9 -3
- package/dist/components/SignatureForm.svelte.d.ts.map +1 -1
- package/dist/components/body-lock.d.ts +3 -0
- package/dist/components/body-lock.d.ts.map +1 -0
- package/dist/components/body-lock.js +43 -0
- package/dist/components/sidebar-context.d.ts +24 -0
- package/dist/components/sidebar-context.d.ts.map +1 -0
- package/dist/components/sidebar-context.js +13 -0
- package/dist/context.d.ts +6 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/hooks/useAnnotations.svelte.d.ts +78 -0
- package/dist/hooks/useAnnotations.svelte.d.ts.map +1 -1
- package/dist/hooks/useRecordSelection.svelte.d.ts +11 -0
- package/dist/hooks/useRecordSelection.svelte.d.ts.map +1 -0
- package/dist/hooks/useRecordSelection.svelte.js +19 -0
- package/dist/hooks/useRecords.svelte.d.ts +14 -0
- package/dist/hooks/useRecords.svelte.d.ts.map +1 -0
- package/dist/hooks/useRecords.svelte.js +24 -0
- package/dist/hooks/useRegisteredTool.svelte.d.ts +24 -0
- package/dist/hooks/useRegisteredTool.svelte.d.ts.map +1 -0
- package/dist/hooks/useRegisteredTool.svelte.js +47 -0
- package/dist/hooks/useSearch.svelte.d.ts.map +1 -1
- package/dist/hooks/useSearch.svelte.js +1 -0
- package/dist/hooks/useToolOptions.svelte.d.ts +8 -0
- package/dist/hooks/useToolOptions.svelte.d.ts.map +1 -1
- package/dist/hooks/useToolOptions.svelte.js +12 -2
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/to-readable.svelte.d.ts +8 -0
- package/dist/to-readable.svelte.d.ts.map +1 -0
- package/dist/to-readable.svelte.js +15 -0
- package/package.json +5 -5
|
@@ -34,6 +34,7 @@ export declare function useAnnotations(): {
|
|
|
34
34
|
id: string;
|
|
35
35
|
page: number;
|
|
36
36
|
locked?: boolean | undefined;
|
|
37
|
+
hasAppearance?: boolean | undefined;
|
|
37
38
|
author?: string | undefined;
|
|
38
39
|
contents?: string | undefined;
|
|
39
40
|
inReplyTo?: string | undefined;
|
|
@@ -57,6 +58,7 @@ export declare function useAnnotations(): {
|
|
|
57
58
|
page: number;
|
|
58
59
|
type: "text";
|
|
59
60
|
locked?: boolean | undefined;
|
|
61
|
+
hasAppearance?: boolean | undefined;
|
|
60
62
|
author?: string | undefined;
|
|
61
63
|
contents?: string | undefined;
|
|
62
64
|
inReplyTo?: string | undefined;
|
|
@@ -105,6 +107,7 @@ export declare function useAnnotations(): {
|
|
|
105
107
|
fontSize?: undefined;
|
|
106
108
|
align?: undefined;
|
|
107
109
|
locked?: boolean | undefined;
|
|
110
|
+
hasAppearance?: boolean | undefined;
|
|
108
111
|
dashes?: number[] | undefined;
|
|
109
112
|
cornerRadius?: number | undefined;
|
|
110
113
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -130,6 +133,7 @@ export declare function useAnnotations(): {
|
|
|
130
133
|
page: number;
|
|
131
134
|
type: "square";
|
|
132
135
|
locked?: boolean | undefined;
|
|
136
|
+
hasAppearance?: boolean | undefined;
|
|
133
137
|
dashes?: number[] | undefined;
|
|
134
138
|
interiorColor?: string | undefined;
|
|
135
139
|
cornerRadius?: number | undefined;
|
|
@@ -157,6 +161,7 @@ export declare function useAnnotations(): {
|
|
|
157
161
|
type: "circle";
|
|
158
162
|
cornerRadius?: undefined;
|
|
159
163
|
locked?: boolean | undefined;
|
|
164
|
+
hasAppearance?: boolean | undefined;
|
|
160
165
|
dashes?: number[] | undefined;
|
|
161
166
|
interiorColor?: string | undefined;
|
|
162
167
|
author?: string | undefined;
|
|
@@ -190,6 +195,7 @@ export declare function useAnnotations(): {
|
|
|
190
195
|
page: number;
|
|
191
196
|
type: "line";
|
|
192
197
|
locked?: boolean | undefined;
|
|
198
|
+
hasAppearance?: boolean | undefined;
|
|
193
199
|
dashes?: number[] | undefined;
|
|
194
200
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
195
201
|
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -220,6 +226,7 @@ export declare function useAnnotations(): {
|
|
|
220
226
|
page: number;
|
|
221
227
|
type: "polyline";
|
|
222
228
|
locked?: boolean | undefined;
|
|
229
|
+
hasAppearance?: boolean | undefined;
|
|
223
230
|
dashes?: number[] | undefined;
|
|
224
231
|
interiorColor?: string | undefined;
|
|
225
232
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -253,6 +260,7 @@ export declare function useAnnotations(): {
|
|
|
253
260
|
head?: undefined;
|
|
254
261
|
tail?: undefined;
|
|
255
262
|
locked?: boolean | undefined;
|
|
263
|
+
hasAppearance?: boolean | undefined;
|
|
256
264
|
dashes?: number[] | undefined;
|
|
257
265
|
interiorColor?: string | undefined;
|
|
258
266
|
author?: string | undefined;
|
|
@@ -283,6 +291,7 @@ export declare function useAnnotations(): {
|
|
|
283
291
|
type: "ink";
|
|
284
292
|
pressure?: number[][] | undefined;
|
|
285
293
|
locked?: boolean | undefined;
|
|
294
|
+
hasAppearance?: boolean | undefined;
|
|
286
295
|
dashes?: number[] | undefined;
|
|
287
296
|
author?: string | undefined;
|
|
288
297
|
contents?: string | undefined;
|
|
@@ -307,6 +316,7 @@ export declare function useAnnotations(): {
|
|
|
307
316
|
page: number;
|
|
308
317
|
type: "stamp";
|
|
309
318
|
locked?: boolean | undefined;
|
|
319
|
+
hasAppearance?: boolean | undefined;
|
|
310
320
|
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
311
321
|
author?: string | undefined;
|
|
312
322
|
contents?: string | undefined;
|
|
@@ -332,6 +342,7 @@ export declare function useAnnotations(): {
|
|
|
332
342
|
page: number;
|
|
333
343
|
type: "loupe";
|
|
334
344
|
locked?: boolean | undefined;
|
|
345
|
+
hasAppearance?: boolean | undefined;
|
|
335
346
|
author?: string | undefined;
|
|
336
347
|
contents?: string | undefined;
|
|
337
348
|
inReplyTo?: string | undefined;
|
|
@@ -356,6 +367,7 @@ export declare function useAnnotations(): {
|
|
|
356
367
|
page: number;
|
|
357
368
|
type: "mask";
|
|
358
369
|
locked?: boolean | undefined;
|
|
370
|
+
hasAppearance?: boolean | undefined;
|
|
359
371
|
author?: string | undefined;
|
|
360
372
|
contents?: string | undefined;
|
|
361
373
|
inReplyTo?: string | undefined;
|
|
@@ -397,6 +409,7 @@ export declare function useAnnotations(): {
|
|
|
397
409
|
};
|
|
398
410
|
}[] | undefined;
|
|
399
411
|
locked?: boolean | undefined;
|
|
412
|
+
hasAppearance?: boolean | undefined;
|
|
400
413
|
overlayText?: string | undefined;
|
|
401
414
|
author?: string | undefined;
|
|
402
415
|
contents?: string | undefined;
|
|
@@ -440,6 +453,7 @@ export declare function useAnnotations(): {
|
|
|
440
453
|
id: string;
|
|
441
454
|
page: number;
|
|
442
455
|
locked?: boolean | undefined;
|
|
456
|
+
hasAppearance?: boolean | undefined;
|
|
443
457
|
author?: string | undefined;
|
|
444
458
|
contents?: string | undefined;
|
|
445
459
|
inReplyTo?: string | undefined;
|
|
@@ -463,6 +477,7 @@ export declare function useAnnotations(): {
|
|
|
463
477
|
page: number;
|
|
464
478
|
type: "text";
|
|
465
479
|
locked?: boolean | undefined;
|
|
480
|
+
hasAppearance?: boolean | undefined;
|
|
466
481
|
author?: string | undefined;
|
|
467
482
|
contents?: string | undefined;
|
|
468
483
|
inReplyTo?: string | undefined;
|
|
@@ -511,6 +526,7 @@ export declare function useAnnotations(): {
|
|
|
511
526
|
fontSize?: undefined;
|
|
512
527
|
align?: undefined;
|
|
513
528
|
locked?: boolean | undefined;
|
|
529
|
+
hasAppearance?: boolean | undefined;
|
|
514
530
|
dashes?: number[] | undefined;
|
|
515
531
|
cornerRadius?: number | undefined;
|
|
516
532
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -536,6 +552,7 @@ export declare function useAnnotations(): {
|
|
|
536
552
|
page: number;
|
|
537
553
|
type: "square";
|
|
538
554
|
locked?: boolean | undefined;
|
|
555
|
+
hasAppearance?: boolean | undefined;
|
|
539
556
|
dashes?: number[] | undefined;
|
|
540
557
|
interiorColor?: string | undefined;
|
|
541
558
|
cornerRadius?: number | undefined;
|
|
@@ -563,6 +580,7 @@ export declare function useAnnotations(): {
|
|
|
563
580
|
type: "circle";
|
|
564
581
|
cornerRadius?: undefined;
|
|
565
582
|
locked?: boolean | undefined;
|
|
583
|
+
hasAppearance?: boolean | undefined;
|
|
566
584
|
dashes?: number[] | undefined;
|
|
567
585
|
interiorColor?: string | undefined;
|
|
568
586
|
author?: string | undefined;
|
|
@@ -596,6 +614,7 @@ export declare function useAnnotations(): {
|
|
|
596
614
|
page: number;
|
|
597
615
|
type: "line";
|
|
598
616
|
locked?: boolean | undefined;
|
|
617
|
+
hasAppearance?: boolean | undefined;
|
|
599
618
|
dashes?: number[] | undefined;
|
|
600
619
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
601
620
|
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -626,6 +645,7 @@ export declare function useAnnotations(): {
|
|
|
626
645
|
page: number;
|
|
627
646
|
type: "polyline";
|
|
628
647
|
locked?: boolean | undefined;
|
|
648
|
+
hasAppearance?: boolean | undefined;
|
|
629
649
|
dashes?: number[] | undefined;
|
|
630
650
|
interiorColor?: string | undefined;
|
|
631
651
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -659,6 +679,7 @@ export declare function useAnnotations(): {
|
|
|
659
679
|
head?: undefined;
|
|
660
680
|
tail?: undefined;
|
|
661
681
|
locked?: boolean | undefined;
|
|
682
|
+
hasAppearance?: boolean | undefined;
|
|
662
683
|
dashes?: number[] | undefined;
|
|
663
684
|
interiorColor?: string | undefined;
|
|
664
685
|
author?: string | undefined;
|
|
@@ -689,6 +710,7 @@ export declare function useAnnotations(): {
|
|
|
689
710
|
type: "ink";
|
|
690
711
|
pressure?: number[][] | undefined;
|
|
691
712
|
locked?: boolean | undefined;
|
|
713
|
+
hasAppearance?: boolean | undefined;
|
|
692
714
|
dashes?: number[] | undefined;
|
|
693
715
|
author?: string | undefined;
|
|
694
716
|
contents?: string | undefined;
|
|
@@ -713,6 +735,7 @@ export declare function useAnnotations(): {
|
|
|
713
735
|
page: number;
|
|
714
736
|
type: "stamp";
|
|
715
737
|
locked?: boolean | undefined;
|
|
738
|
+
hasAppearance?: boolean | undefined;
|
|
716
739
|
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
717
740
|
author?: string | undefined;
|
|
718
741
|
contents?: string | undefined;
|
|
@@ -738,6 +761,7 @@ export declare function useAnnotations(): {
|
|
|
738
761
|
page: number;
|
|
739
762
|
type: "loupe";
|
|
740
763
|
locked?: boolean | undefined;
|
|
764
|
+
hasAppearance?: boolean | undefined;
|
|
741
765
|
author?: string | undefined;
|
|
742
766
|
contents?: string | undefined;
|
|
743
767
|
inReplyTo?: string | undefined;
|
|
@@ -762,6 +786,7 @@ export declare function useAnnotations(): {
|
|
|
762
786
|
page: number;
|
|
763
787
|
type: "mask";
|
|
764
788
|
locked?: boolean | undefined;
|
|
789
|
+
hasAppearance?: boolean | undefined;
|
|
765
790
|
author?: string | undefined;
|
|
766
791
|
contents?: string | undefined;
|
|
767
792
|
inReplyTo?: string | undefined;
|
|
@@ -803,6 +828,7 @@ export declare function useAnnotations(): {
|
|
|
803
828
|
};
|
|
804
829
|
}[] | undefined;
|
|
805
830
|
locked?: boolean | undefined;
|
|
831
|
+
hasAppearance?: boolean | undefined;
|
|
806
832
|
overlayText?: string | undefined;
|
|
807
833
|
author?: string | undefined;
|
|
808
834
|
contents?: string | undefined;
|
|
@@ -845,6 +871,7 @@ export declare function useAnnotations(): {
|
|
|
845
871
|
id: string;
|
|
846
872
|
page: number;
|
|
847
873
|
locked?: boolean | undefined;
|
|
874
|
+
hasAppearance?: boolean | undefined;
|
|
848
875
|
author?: string | undefined;
|
|
849
876
|
contents?: string | undefined;
|
|
850
877
|
inReplyTo?: string | undefined;
|
|
@@ -868,6 +895,7 @@ export declare function useAnnotations(): {
|
|
|
868
895
|
page: number;
|
|
869
896
|
type: "text";
|
|
870
897
|
locked?: boolean | undefined;
|
|
898
|
+
hasAppearance?: boolean | undefined;
|
|
871
899
|
author?: string | undefined;
|
|
872
900
|
contents?: string | undefined;
|
|
873
901
|
inReplyTo?: string | undefined;
|
|
@@ -916,6 +944,7 @@ export declare function useAnnotations(): {
|
|
|
916
944
|
fontSize?: undefined;
|
|
917
945
|
align?: undefined;
|
|
918
946
|
locked?: boolean | undefined;
|
|
947
|
+
hasAppearance?: boolean | undefined;
|
|
919
948
|
dashes?: number[] | undefined;
|
|
920
949
|
cornerRadius?: number | undefined;
|
|
921
950
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -941,6 +970,7 @@ export declare function useAnnotations(): {
|
|
|
941
970
|
page: number;
|
|
942
971
|
type: "square";
|
|
943
972
|
locked?: boolean | undefined;
|
|
973
|
+
hasAppearance?: boolean | undefined;
|
|
944
974
|
dashes?: number[] | undefined;
|
|
945
975
|
interiorColor?: string | undefined;
|
|
946
976
|
cornerRadius?: number | undefined;
|
|
@@ -968,6 +998,7 @@ export declare function useAnnotations(): {
|
|
|
968
998
|
type: "circle";
|
|
969
999
|
cornerRadius?: undefined;
|
|
970
1000
|
locked?: boolean | undefined;
|
|
1001
|
+
hasAppearance?: boolean | undefined;
|
|
971
1002
|
dashes?: number[] | undefined;
|
|
972
1003
|
interiorColor?: string | undefined;
|
|
973
1004
|
author?: string | undefined;
|
|
@@ -1001,6 +1032,7 @@ export declare function useAnnotations(): {
|
|
|
1001
1032
|
page: number;
|
|
1002
1033
|
type: "line";
|
|
1003
1034
|
locked?: boolean | undefined;
|
|
1035
|
+
hasAppearance?: boolean | undefined;
|
|
1004
1036
|
dashes?: number[] | undefined;
|
|
1005
1037
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1006
1038
|
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1031,6 +1063,7 @@ export declare function useAnnotations(): {
|
|
|
1031
1063
|
page: number;
|
|
1032
1064
|
type: "polyline";
|
|
1033
1065
|
locked?: boolean | undefined;
|
|
1066
|
+
hasAppearance?: boolean | undefined;
|
|
1034
1067
|
dashes?: number[] | undefined;
|
|
1035
1068
|
interiorColor?: string | undefined;
|
|
1036
1069
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1064,6 +1097,7 @@ export declare function useAnnotations(): {
|
|
|
1064
1097
|
head?: undefined;
|
|
1065
1098
|
tail?: undefined;
|
|
1066
1099
|
locked?: boolean | undefined;
|
|
1100
|
+
hasAppearance?: boolean | undefined;
|
|
1067
1101
|
dashes?: number[] | undefined;
|
|
1068
1102
|
interiorColor?: string | undefined;
|
|
1069
1103
|
author?: string | undefined;
|
|
@@ -1094,6 +1128,7 @@ export declare function useAnnotations(): {
|
|
|
1094
1128
|
type: "ink";
|
|
1095
1129
|
pressure?: number[][] | undefined;
|
|
1096
1130
|
locked?: boolean | undefined;
|
|
1131
|
+
hasAppearance?: boolean | undefined;
|
|
1097
1132
|
dashes?: number[] | undefined;
|
|
1098
1133
|
author?: string | undefined;
|
|
1099
1134
|
contents?: string | undefined;
|
|
@@ -1118,6 +1153,7 @@ export declare function useAnnotations(): {
|
|
|
1118
1153
|
page: number;
|
|
1119
1154
|
type: "stamp";
|
|
1120
1155
|
locked?: boolean | undefined;
|
|
1156
|
+
hasAppearance?: boolean | undefined;
|
|
1121
1157
|
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1122
1158
|
author?: string | undefined;
|
|
1123
1159
|
contents?: string | undefined;
|
|
@@ -1143,6 +1179,7 @@ export declare function useAnnotations(): {
|
|
|
1143
1179
|
page: number;
|
|
1144
1180
|
type: "loupe";
|
|
1145
1181
|
locked?: boolean | undefined;
|
|
1182
|
+
hasAppearance?: boolean | undefined;
|
|
1146
1183
|
author?: string | undefined;
|
|
1147
1184
|
contents?: string | undefined;
|
|
1148
1185
|
inReplyTo?: string | undefined;
|
|
@@ -1167,6 +1204,7 @@ export declare function useAnnotations(): {
|
|
|
1167
1204
|
page: number;
|
|
1168
1205
|
type: "mask";
|
|
1169
1206
|
locked?: boolean | undefined;
|
|
1207
|
+
hasAppearance?: boolean | undefined;
|
|
1170
1208
|
author?: string | undefined;
|
|
1171
1209
|
contents?: string | undefined;
|
|
1172
1210
|
inReplyTo?: string | undefined;
|
|
@@ -1208,6 +1246,7 @@ export declare function useAnnotations(): {
|
|
|
1208
1246
|
};
|
|
1209
1247
|
}[] | undefined;
|
|
1210
1248
|
locked?: boolean | undefined;
|
|
1249
|
+
hasAppearance?: boolean | undefined;
|
|
1211
1250
|
overlayText?: string | undefined;
|
|
1212
1251
|
author?: string | undefined;
|
|
1213
1252
|
contents?: string | undefined;
|
|
@@ -1251,6 +1290,7 @@ export declare function useAnnotations(): {
|
|
|
1251
1290
|
id: string;
|
|
1252
1291
|
page: number;
|
|
1253
1292
|
locked?: boolean | undefined;
|
|
1293
|
+
hasAppearance?: boolean | undefined;
|
|
1254
1294
|
author?: string | undefined;
|
|
1255
1295
|
contents?: string | undefined;
|
|
1256
1296
|
inReplyTo?: string | undefined;
|
|
@@ -1274,6 +1314,7 @@ export declare function useAnnotations(): {
|
|
|
1274
1314
|
page: number;
|
|
1275
1315
|
type: "text";
|
|
1276
1316
|
locked?: boolean | undefined;
|
|
1317
|
+
hasAppearance?: boolean | undefined;
|
|
1277
1318
|
author?: string | undefined;
|
|
1278
1319
|
contents?: string | undefined;
|
|
1279
1320
|
inReplyTo?: string | undefined;
|
|
@@ -1322,6 +1363,7 @@ export declare function useAnnotations(): {
|
|
|
1322
1363
|
fontSize?: undefined;
|
|
1323
1364
|
align?: undefined;
|
|
1324
1365
|
locked?: boolean | undefined;
|
|
1366
|
+
hasAppearance?: boolean | undefined;
|
|
1325
1367
|
dashes?: number[] | undefined;
|
|
1326
1368
|
cornerRadius?: number | undefined;
|
|
1327
1369
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1347,6 +1389,7 @@ export declare function useAnnotations(): {
|
|
|
1347
1389
|
page: number;
|
|
1348
1390
|
type: "square";
|
|
1349
1391
|
locked?: boolean | undefined;
|
|
1392
|
+
hasAppearance?: boolean | undefined;
|
|
1350
1393
|
dashes?: number[] | undefined;
|
|
1351
1394
|
interiorColor?: string | undefined;
|
|
1352
1395
|
cornerRadius?: number | undefined;
|
|
@@ -1374,6 +1417,7 @@ export declare function useAnnotations(): {
|
|
|
1374
1417
|
type: "circle";
|
|
1375
1418
|
cornerRadius?: undefined;
|
|
1376
1419
|
locked?: boolean | undefined;
|
|
1420
|
+
hasAppearance?: boolean | undefined;
|
|
1377
1421
|
dashes?: number[] | undefined;
|
|
1378
1422
|
interiorColor?: string | undefined;
|
|
1379
1423
|
author?: string | undefined;
|
|
@@ -1407,6 +1451,7 @@ export declare function useAnnotations(): {
|
|
|
1407
1451
|
page: number;
|
|
1408
1452
|
type: "line";
|
|
1409
1453
|
locked?: boolean | undefined;
|
|
1454
|
+
hasAppearance?: boolean | undefined;
|
|
1410
1455
|
dashes?: number[] | undefined;
|
|
1411
1456
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1412
1457
|
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1437,6 +1482,7 @@ export declare function useAnnotations(): {
|
|
|
1437
1482
|
page: number;
|
|
1438
1483
|
type: "polyline";
|
|
1439
1484
|
locked?: boolean | undefined;
|
|
1485
|
+
hasAppearance?: boolean | undefined;
|
|
1440
1486
|
dashes?: number[] | undefined;
|
|
1441
1487
|
interiorColor?: string | undefined;
|
|
1442
1488
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1470,6 +1516,7 @@ export declare function useAnnotations(): {
|
|
|
1470
1516
|
head?: undefined;
|
|
1471
1517
|
tail?: undefined;
|
|
1472
1518
|
locked?: boolean | undefined;
|
|
1519
|
+
hasAppearance?: boolean | undefined;
|
|
1473
1520
|
dashes?: number[] | undefined;
|
|
1474
1521
|
interiorColor?: string | undefined;
|
|
1475
1522
|
author?: string | undefined;
|
|
@@ -1500,6 +1547,7 @@ export declare function useAnnotations(): {
|
|
|
1500
1547
|
type: "ink";
|
|
1501
1548
|
pressure?: number[][] | undefined;
|
|
1502
1549
|
locked?: boolean | undefined;
|
|
1550
|
+
hasAppearance?: boolean | undefined;
|
|
1503
1551
|
dashes?: number[] | undefined;
|
|
1504
1552
|
author?: string | undefined;
|
|
1505
1553
|
contents?: string | undefined;
|
|
@@ -1524,6 +1572,7 @@ export declare function useAnnotations(): {
|
|
|
1524
1572
|
page: number;
|
|
1525
1573
|
type: "stamp";
|
|
1526
1574
|
locked?: boolean | undefined;
|
|
1575
|
+
hasAppearance?: boolean | undefined;
|
|
1527
1576
|
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1528
1577
|
author?: string | undefined;
|
|
1529
1578
|
contents?: string | undefined;
|
|
@@ -1549,6 +1598,7 @@ export declare function useAnnotations(): {
|
|
|
1549
1598
|
page: number;
|
|
1550
1599
|
type: "loupe";
|
|
1551
1600
|
locked?: boolean | undefined;
|
|
1601
|
+
hasAppearance?: boolean | undefined;
|
|
1552
1602
|
author?: string | undefined;
|
|
1553
1603
|
contents?: string | undefined;
|
|
1554
1604
|
inReplyTo?: string | undefined;
|
|
@@ -1573,6 +1623,7 @@ export declare function useAnnotations(): {
|
|
|
1573
1623
|
page: number;
|
|
1574
1624
|
type: "mask";
|
|
1575
1625
|
locked?: boolean | undefined;
|
|
1626
|
+
hasAppearance?: boolean | undefined;
|
|
1576
1627
|
author?: string | undefined;
|
|
1577
1628
|
contents?: string | undefined;
|
|
1578
1629
|
inReplyTo?: string | undefined;
|
|
@@ -1614,6 +1665,7 @@ export declare function useAnnotations(): {
|
|
|
1614
1665
|
};
|
|
1615
1666
|
}[] | undefined;
|
|
1616
1667
|
locked?: boolean | undefined;
|
|
1668
|
+
hasAppearance?: boolean | undefined;
|
|
1617
1669
|
overlayText?: string | undefined;
|
|
1618
1670
|
author?: string | undefined;
|
|
1619
1671
|
contents?: string | undefined;
|
|
@@ -1656,6 +1708,7 @@ export declare function useAnnotations(): {
|
|
|
1656
1708
|
id: string;
|
|
1657
1709
|
page: number;
|
|
1658
1710
|
locked?: boolean | undefined;
|
|
1711
|
+
hasAppearance?: boolean | undefined;
|
|
1659
1712
|
author?: string | undefined;
|
|
1660
1713
|
contents?: string | undefined;
|
|
1661
1714
|
inReplyTo?: string | undefined;
|
|
@@ -1679,6 +1732,7 @@ export declare function useAnnotations(): {
|
|
|
1679
1732
|
page: number;
|
|
1680
1733
|
type: "text";
|
|
1681
1734
|
locked?: boolean | undefined;
|
|
1735
|
+
hasAppearance?: boolean | undefined;
|
|
1682
1736
|
author?: string | undefined;
|
|
1683
1737
|
contents?: string | undefined;
|
|
1684
1738
|
inReplyTo?: string | undefined;
|
|
@@ -1727,6 +1781,7 @@ export declare function useAnnotations(): {
|
|
|
1727
1781
|
fontSize?: undefined;
|
|
1728
1782
|
align?: undefined;
|
|
1729
1783
|
locked?: boolean | undefined;
|
|
1784
|
+
hasAppearance?: boolean | undefined;
|
|
1730
1785
|
dashes?: number[] | undefined;
|
|
1731
1786
|
cornerRadius?: number | undefined;
|
|
1732
1787
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1752,6 +1807,7 @@ export declare function useAnnotations(): {
|
|
|
1752
1807
|
page: number;
|
|
1753
1808
|
type: "square";
|
|
1754
1809
|
locked?: boolean | undefined;
|
|
1810
|
+
hasAppearance?: boolean | undefined;
|
|
1755
1811
|
dashes?: number[] | undefined;
|
|
1756
1812
|
interiorColor?: string | undefined;
|
|
1757
1813
|
cornerRadius?: number | undefined;
|
|
@@ -1779,6 +1835,7 @@ export declare function useAnnotations(): {
|
|
|
1779
1835
|
type: "circle";
|
|
1780
1836
|
cornerRadius?: undefined;
|
|
1781
1837
|
locked?: boolean | undefined;
|
|
1838
|
+
hasAppearance?: boolean | undefined;
|
|
1782
1839
|
dashes?: number[] | undefined;
|
|
1783
1840
|
interiorColor?: string | undefined;
|
|
1784
1841
|
author?: string | undefined;
|
|
@@ -1812,6 +1869,7 @@ export declare function useAnnotations(): {
|
|
|
1812
1869
|
page: number;
|
|
1813
1870
|
type: "line";
|
|
1814
1871
|
locked?: boolean | undefined;
|
|
1872
|
+
hasAppearance?: boolean | undefined;
|
|
1815
1873
|
dashes?: number[] | undefined;
|
|
1816
1874
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1817
1875
|
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1842,6 +1900,7 @@ export declare function useAnnotations(): {
|
|
|
1842
1900
|
page: number;
|
|
1843
1901
|
type: "polyline";
|
|
1844
1902
|
locked?: boolean | undefined;
|
|
1903
|
+
hasAppearance?: boolean | undefined;
|
|
1845
1904
|
dashes?: number[] | undefined;
|
|
1846
1905
|
interiorColor?: string | undefined;
|
|
1847
1906
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -1875,6 +1934,7 @@ export declare function useAnnotations(): {
|
|
|
1875
1934
|
head?: undefined;
|
|
1876
1935
|
tail?: undefined;
|
|
1877
1936
|
locked?: boolean | undefined;
|
|
1937
|
+
hasAppearance?: boolean | undefined;
|
|
1878
1938
|
dashes?: number[] | undefined;
|
|
1879
1939
|
interiorColor?: string | undefined;
|
|
1880
1940
|
author?: string | undefined;
|
|
@@ -1905,6 +1965,7 @@ export declare function useAnnotations(): {
|
|
|
1905
1965
|
type: "ink";
|
|
1906
1966
|
pressure?: number[][] | undefined;
|
|
1907
1967
|
locked?: boolean | undefined;
|
|
1968
|
+
hasAppearance?: boolean | undefined;
|
|
1908
1969
|
dashes?: number[] | undefined;
|
|
1909
1970
|
author?: string | undefined;
|
|
1910
1971
|
contents?: string | undefined;
|
|
@@ -1929,6 +1990,7 @@ export declare function useAnnotations(): {
|
|
|
1929
1990
|
page: number;
|
|
1930
1991
|
type: "stamp";
|
|
1931
1992
|
locked?: boolean | undefined;
|
|
1993
|
+
hasAppearance?: boolean | undefined;
|
|
1932
1994
|
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1933
1995
|
author?: string | undefined;
|
|
1934
1996
|
contents?: string | undefined;
|
|
@@ -1954,6 +2016,7 @@ export declare function useAnnotations(): {
|
|
|
1954
2016
|
page: number;
|
|
1955
2017
|
type: "loupe";
|
|
1956
2018
|
locked?: boolean | undefined;
|
|
2019
|
+
hasAppearance?: boolean | undefined;
|
|
1957
2020
|
author?: string | undefined;
|
|
1958
2021
|
contents?: string | undefined;
|
|
1959
2022
|
inReplyTo?: string | undefined;
|
|
@@ -1978,6 +2041,7 @@ export declare function useAnnotations(): {
|
|
|
1978
2041
|
page: number;
|
|
1979
2042
|
type: "mask";
|
|
1980
2043
|
locked?: boolean | undefined;
|
|
2044
|
+
hasAppearance?: boolean | undefined;
|
|
1981
2045
|
author?: string | undefined;
|
|
1982
2046
|
contents?: string | undefined;
|
|
1983
2047
|
inReplyTo?: string | undefined;
|
|
@@ -2019,6 +2083,7 @@ export declare function useAnnotations(): {
|
|
|
2019
2083
|
};
|
|
2020
2084
|
}[] | undefined;
|
|
2021
2085
|
locked?: boolean | undefined;
|
|
2086
|
+
hasAppearance?: boolean | undefined;
|
|
2022
2087
|
overlayText?: string | undefined;
|
|
2023
2088
|
author?: string | undefined;
|
|
2024
2089
|
contents?: string | undefined;
|
|
@@ -2061,6 +2126,7 @@ export declare function useAnnotations(): {
|
|
|
2061
2126
|
id: string;
|
|
2062
2127
|
page: number;
|
|
2063
2128
|
locked?: boolean | undefined;
|
|
2129
|
+
hasAppearance?: boolean | undefined;
|
|
2064
2130
|
author?: string | undefined;
|
|
2065
2131
|
contents?: string | undefined;
|
|
2066
2132
|
inReplyTo?: string | undefined;
|
|
@@ -2084,6 +2150,7 @@ export declare function useAnnotations(): {
|
|
|
2084
2150
|
page: number;
|
|
2085
2151
|
type: "text";
|
|
2086
2152
|
locked?: boolean | undefined;
|
|
2153
|
+
hasAppearance?: boolean | undefined;
|
|
2087
2154
|
author?: string | undefined;
|
|
2088
2155
|
contents?: string | undefined;
|
|
2089
2156
|
inReplyTo?: string | undefined;
|
|
@@ -2132,6 +2199,7 @@ export declare function useAnnotations(): {
|
|
|
2132
2199
|
fontSize?: undefined;
|
|
2133
2200
|
align?: undefined;
|
|
2134
2201
|
locked?: boolean | undefined;
|
|
2202
|
+
hasAppearance?: boolean | undefined;
|
|
2135
2203
|
dashes?: number[] | undefined;
|
|
2136
2204
|
cornerRadius?: number | undefined;
|
|
2137
2205
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -2157,6 +2225,7 @@ export declare function useAnnotations(): {
|
|
|
2157
2225
|
page: number;
|
|
2158
2226
|
type: "square";
|
|
2159
2227
|
locked?: boolean | undefined;
|
|
2228
|
+
hasAppearance?: boolean | undefined;
|
|
2160
2229
|
dashes?: number[] | undefined;
|
|
2161
2230
|
interiorColor?: string | undefined;
|
|
2162
2231
|
cornerRadius?: number | undefined;
|
|
@@ -2184,6 +2253,7 @@ export declare function useAnnotations(): {
|
|
|
2184
2253
|
type: "circle";
|
|
2185
2254
|
cornerRadius?: undefined;
|
|
2186
2255
|
locked?: boolean | undefined;
|
|
2256
|
+
hasAppearance?: boolean | undefined;
|
|
2187
2257
|
dashes?: number[] | undefined;
|
|
2188
2258
|
interiorColor?: string | undefined;
|
|
2189
2259
|
author?: string | undefined;
|
|
@@ -2217,6 +2287,7 @@ export declare function useAnnotations(): {
|
|
|
2217
2287
|
page: number;
|
|
2218
2288
|
type: "line";
|
|
2219
2289
|
locked?: boolean | undefined;
|
|
2290
|
+
hasAppearance?: boolean | undefined;
|
|
2220
2291
|
dashes?: number[] | undefined;
|
|
2221
2292
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2222
2293
|
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -2247,6 +2318,7 @@ export declare function useAnnotations(): {
|
|
|
2247
2318
|
page: number;
|
|
2248
2319
|
type: "polyline";
|
|
2249
2320
|
locked?: boolean | undefined;
|
|
2321
|
+
hasAppearance?: boolean | undefined;
|
|
2250
2322
|
dashes?: number[] | undefined;
|
|
2251
2323
|
interiorColor?: string | undefined;
|
|
2252
2324
|
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
@@ -2280,6 +2352,7 @@ export declare function useAnnotations(): {
|
|
|
2280
2352
|
head?: undefined;
|
|
2281
2353
|
tail?: undefined;
|
|
2282
2354
|
locked?: boolean | undefined;
|
|
2355
|
+
hasAppearance?: boolean | undefined;
|
|
2283
2356
|
dashes?: number[] | undefined;
|
|
2284
2357
|
interiorColor?: string | undefined;
|
|
2285
2358
|
author?: string | undefined;
|
|
@@ -2310,6 +2383,7 @@ export declare function useAnnotations(): {
|
|
|
2310
2383
|
type: "ink";
|
|
2311
2384
|
pressure?: number[][] | undefined;
|
|
2312
2385
|
locked?: boolean | undefined;
|
|
2386
|
+
hasAppearance?: boolean | undefined;
|
|
2313
2387
|
dashes?: number[] | undefined;
|
|
2314
2388
|
author?: string | undefined;
|
|
2315
2389
|
contents?: string | undefined;
|
|
@@ -2334,6 +2408,7 @@ export declare function useAnnotations(): {
|
|
|
2334
2408
|
page: number;
|
|
2335
2409
|
type: "stamp";
|
|
2336
2410
|
locked?: boolean | undefined;
|
|
2411
|
+
hasAppearance?: boolean | undefined;
|
|
2337
2412
|
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
2338
2413
|
author?: string | undefined;
|
|
2339
2414
|
contents?: string | undefined;
|
|
@@ -2359,6 +2434,7 @@ export declare function useAnnotations(): {
|
|
|
2359
2434
|
page: number;
|
|
2360
2435
|
type: "loupe";
|
|
2361
2436
|
locked?: boolean | undefined;
|
|
2437
|
+
hasAppearance?: boolean | undefined;
|
|
2362
2438
|
author?: string | undefined;
|
|
2363
2439
|
contents?: string | undefined;
|
|
2364
2440
|
inReplyTo?: string | undefined;
|
|
@@ -2383,6 +2459,7 @@ export declare function useAnnotations(): {
|
|
|
2383
2459
|
page: number;
|
|
2384
2460
|
type: "mask";
|
|
2385
2461
|
locked?: boolean | undefined;
|
|
2462
|
+
hasAppearance?: boolean | undefined;
|
|
2386
2463
|
author?: string | undefined;
|
|
2387
2464
|
contents?: string | undefined;
|
|
2388
2465
|
inReplyTo?: string | undefined;
|
|
@@ -2424,6 +2501,7 @@ export declare function useAnnotations(): {
|
|
|
2424
2501
|
};
|
|
2425
2502
|
}[] | undefined;
|
|
2426
2503
|
locked?: boolean | undefined;
|
|
2504
|
+
hasAppearance?: boolean | undefined;
|
|
2427
2505
|
overlayText?: string | undefined;
|
|
2428
2506
|
author?: string | undefined;
|
|
2429
2507
|
contents?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnnotations.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/hooks/useAnnotations.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEhF,wBAAgB,cAAc
|
|
1
|
+
{"version":3,"file":"useAnnotations.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/hooks/useAnnotations.svelte.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The selected record under `key` (`<plugin>.<name>`): the one selection the marks and every
|
|
3
|
+
* record list over those records share. `select` takes an id, or null to clear; an id that has
|
|
4
|
+
* no mark changes nothing. Until InkRoot has mounted (and on the server) nothing is selected
|
|
5
|
+
* and `select` does nothing. `selected` is a getter: keep the object and read through it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useRecordSelection(key: string): {
|
|
8
|
+
readonly selected: string | null;
|
|
9
|
+
select(id: string | null): void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useRecordSelection.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRecordSelection.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/hooks/useRecordSelection.svelte.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG;IAC/C,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CAChC,CAUA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useInkContext } from '../context.js';
|
|
2
|
+
import { useReadable } from '../use-readable.svelte.js';
|
|
3
|
+
/**
|
|
4
|
+
* The selected record under `key` (`<plugin>.<name>`): the one selection the marks and every
|
|
5
|
+
* record list over those records share. `select` takes an id, or null to clear; an id that has
|
|
6
|
+
* no mark changes nothing. Until InkRoot has mounted (and on the server) nothing is selected
|
|
7
|
+
* and `select` does nothing. `selected` is a getter: keep the object and read through it.
|
|
8
|
+
*/
|
|
9
|
+
export function useRecordSelection(key) {
|
|
10
|
+
const ctx = useInkContext('useRecordSelection()');
|
|
11
|
+
const selection = $derived(ctx.pluginHost?.selection(key) ?? null);
|
|
12
|
+
const selected = useReadable(() => selection?.selected, null);
|
|
13
|
+
return {
|
|
14
|
+
get selected() {
|
|
15
|
+
return selected.current;
|
|
16
|
+
},
|
|
17
|
+
select: (id) => selection?.select(id),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RecordBase } from '@inkbar/core';
|
|
2
|
+
import type { HostRecords } from '@inkbar/core/dom';
|
|
3
|
+
/**
|
|
4
|
+
* The records a plugin keeps under `key` (`<plugin>.<name>`), for host components: the live list
|
|
5
|
+
* for the open document, and the handle to read and write them, each write one undo step.
|
|
6
|
+
* Plugins are set up once InkRoot has mounted, so until then (and on the server) `handle` is
|
|
7
|
+
* null and `records` is empty. `T` is the plugin's record type. Both are getters: keep the
|
|
8
|
+
* object and read through it.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useRecords<T extends RecordBase>(key: string): {
|
|
11
|
+
readonly records: readonly T[];
|
|
12
|
+
readonly handle: HostRecords<T> | null;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useRecords.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRecords.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/hooks/useRecords.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAInD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,UAAU,EAC7C,GAAG,EAAE,MAAM,GACV;IAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;CAAE,CAa5E"}
|