@g9tm/lynxcontrols-code 0.0.0-stage → 2.9.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.
@@ -0,0 +1,1462 @@
1
+ {
2
+ "catalogVersion": 1,
3
+ "package": "@g9tm/lynxcontrols-code",
4
+ "version": "2.9.0",
5
+ "generatedBy": "node scripts/check-docs.mjs --write",
6
+ "components": [
7
+ {
8
+ "id": "code.editor.G9CodeEditor",
9
+ "export": "G9CodeEditor",
10
+ "from": "@g9tm/lynxcontrols-code/editor",
11
+ "kind": "component",
12
+ "family": "editor",
13
+ "summary": "Editable monospace text with line numbers, colours, marks, find, undo / redo; only the visible lines are drawn.",
14
+ "since": null,
15
+ "props": [
16
+ {
17
+ "name": "accessibilityLabel",
18
+ "type": {
19
+ "kind": "string"
20
+ },
21
+ "required": false,
22
+ "serializable": true,
23
+ "role": "identity"
24
+ },
25
+ {
26
+ "name": "className",
27
+ "type": {
28
+ "kind": "string"
29
+ },
30
+ "required": false,
31
+ "serializable": true,
32
+ "role": "appearance"
33
+ },
34
+ {
35
+ "name": "colors",
36
+ "type": {
37
+ "kind": "object",
38
+ "fields": [
39
+ {
40
+ "name": "string",
41
+ "required": false,
42
+ "type": {
43
+ "kind": "unknown"
44
+ },
45
+ "serializable": false
46
+ },
47
+ {
48
+ "name": "number",
49
+ "required": false,
50
+ "type": {
51
+ "kind": "unknown"
52
+ },
53
+ "serializable": false
54
+ },
55
+ {
56
+ "name": "boolean",
57
+ "required": false,
58
+ "type": {
59
+ "kind": "unknown"
60
+ },
61
+ "serializable": false
62
+ },
63
+ {
64
+ "name": "plain",
65
+ "required": false,
66
+ "type": {
67
+ "kind": "unknown"
68
+ },
69
+ "serializable": false
70
+ },
71
+ {
72
+ "name": "key",
73
+ "required": false,
74
+ "type": {
75
+ "kind": "unknown"
76
+ },
77
+ "serializable": false
78
+ },
79
+ {
80
+ "name": "null",
81
+ "required": false,
82
+ "type": {
83
+ "kind": "unknown"
84
+ },
85
+ "serializable": false
86
+ },
87
+ {
88
+ "name": "punctuation",
89
+ "required": false,
90
+ "type": {
91
+ "kind": "unknown"
92
+ },
93
+ "serializable": false
94
+ },
95
+ {
96
+ "name": "comment",
97
+ "required": false,
98
+ "type": {
99
+ "kind": "unknown"
100
+ },
101
+ "serializable": false
102
+ }
103
+ ]
104
+ },
105
+ "required": false,
106
+ "serializable": false,
107
+ "role": "behaviour"
108
+ },
109
+ {
110
+ "name": "defaultValue",
111
+ "type": {
112
+ "kind": "string"
113
+ },
114
+ "required": false,
115
+ "serializable": true,
116
+ "role": "state"
117
+ },
118
+ {
119
+ "name": "findLabels",
120
+ "type": {
121
+ "kind": "object",
122
+ "fields": [
123
+ {
124
+ "name": "placeholder",
125
+ "required": false,
126
+ "type": {
127
+ "kind": "string"
128
+ },
129
+ "serializable": true
130
+ },
131
+ {
132
+ "name": "next",
133
+ "required": false,
134
+ "type": {
135
+ "kind": "string"
136
+ },
137
+ "serializable": true
138
+ },
139
+ {
140
+ "name": "previous",
141
+ "required": false,
142
+ "type": {
143
+ "kind": "string"
144
+ },
145
+ "serializable": true
146
+ },
147
+ {
148
+ "name": "close",
149
+ "required": false,
150
+ "type": {
151
+ "kind": "string"
152
+ },
153
+ "serializable": true
154
+ },
155
+ {
156
+ "name": "count",
157
+ "required": false,
158
+ "type": {
159
+ "kind": "string"
160
+ },
161
+ "serializable": true
162
+ }
163
+ ]
164
+ },
165
+ "required": false,
166
+ "serializable": true,
167
+ "role": "behaviour"
168
+ },
169
+ {
170
+ "name": "fontSize",
171
+ "type": {
172
+ "kind": "number"
173
+ },
174
+ "required": false,
175
+ "default": 13,
176
+ "serializable": true,
177
+ "role": "appearance",
178
+ "doc": "Default 13."
179
+ },
180
+ {
181
+ "name": "handleRef",
182
+ "type": {
183
+ "kind": "object",
184
+ "fields": [
185
+ {
186
+ "name": "current",
187
+ "required": true,
188
+ "type": {
189
+ "kind": "object",
190
+ "fields": [
191
+ {
192
+ "name": "getValue",
193
+ "required": true,
194
+ "type": {
195
+ "kind": "event",
196
+ "payload": null,
197
+ "returns": "string"
198
+ },
199
+ "serializable": false
200
+ },
201
+ {
202
+ "name": "getSelectedText",
203
+ "required": true,
204
+ "type": {
205
+ "kind": "event",
206
+ "payload": null,
207
+ "returns": "string"
208
+ },
209
+ "serializable": false
210
+ },
211
+ {
212
+ "name": "setSelection",
213
+ "required": true,
214
+ "type": {
215
+ "kind": "event",
216
+ "payload": "selection: G9TextSelection"
217
+ },
218
+ "serializable": false
219
+ },
220
+ {
221
+ "name": "revealLine",
222
+ "required": true,
223
+ "type": {
224
+ "kind": "event",
225
+ "payload": "line: number"
226
+ },
227
+ "serializable": false
228
+ },
229
+ {
230
+ "name": "focus",
231
+ "required": true,
232
+ "type": {
233
+ "kind": "event",
234
+ "payload": null
235
+ },
236
+ "serializable": false
237
+ },
238
+ {
239
+ "name": "undo",
240
+ "required": true,
241
+ "type": {
242
+ "kind": "event",
243
+ "payload": null
244
+ },
245
+ "serializable": false
246
+ },
247
+ {
248
+ "name": "redo",
249
+ "required": true,
250
+ "type": {
251
+ "kind": "event",
252
+ "payload": null
253
+ },
254
+ "serializable": false
255
+ },
256
+ {
257
+ "name": "openFind",
258
+ "required": true,
259
+ "type": {
260
+ "kind": "event",
261
+ "payload": "query: string | undefined"
262
+ },
263
+ "serializable": false
264
+ }
265
+ ]
266
+ },
267
+ "serializable": false
268
+ }
269
+ ]
270
+ },
271
+ "required": false,
272
+ "serializable": false,
273
+ "role": "behaviour"
274
+ },
275
+ {
276
+ "name": "id",
277
+ "type": {
278
+ "kind": "string"
279
+ },
280
+ "required": false,
281
+ "serializable": true,
282
+ "role": "identity"
283
+ },
284
+ {
285
+ "name": "language",
286
+ "type": {
287
+ "kind": "union",
288
+ "of": [
289
+ {
290
+ "kind": "object",
291
+ "name": "G9Tokenizer"
292
+ },
293
+ {
294
+ "kind": "string"
295
+ },
296
+ {
297
+ "kind": "string"
298
+ }
299
+ ]
300
+ },
301
+ "required": false,
302
+ "serializable": false,
303
+ "role": "behaviour",
304
+ "doc": "`'json'` (default), `'plain'`, or a tokenizer of the app's own."
305
+ },
306
+ {
307
+ "name": "lineHeight",
308
+ "type": {
309
+ "kind": "number"
310
+ },
311
+ "required": false,
312
+ "default": 20,
313
+ "serializable": true,
314
+ "role": "appearance",
315
+ "doc": "Default 20."
316
+ },
317
+ {
318
+ "name": "lineNumbers",
319
+ "type": {
320
+ "kind": "boolean"
321
+ },
322
+ "required": false,
323
+ "serializable": true,
324
+ "role": "behaviour"
325
+ },
326
+ {
327
+ "name": "markers",
328
+ "type": {
329
+ "kind": "array",
330
+ "items": {
331
+ "kind": "object",
332
+ "fields": [
333
+ {
334
+ "name": "line",
335
+ "required": true,
336
+ "type": {
337
+ "kind": "number"
338
+ },
339
+ "serializable": true
340
+ },
341
+ {
342
+ "name": "message",
343
+ "required": true,
344
+ "type": {
345
+ "kind": "string"
346
+ },
347
+ "serializable": true
348
+ },
349
+ {
350
+ "name": "severity",
351
+ "required": false,
352
+ "type": {
353
+ "kind": "enum",
354
+ "values": [
355
+ "info",
356
+ "error",
357
+ "warning"
358
+ ]
359
+ },
360
+ "serializable": true
361
+ }
362
+ ]
363
+ }
364
+ },
365
+ "required": false,
366
+ "serializable": true,
367
+ "role": "behaviour"
368
+ },
369
+ {
370
+ "name": "onChange",
371
+ "type": {
372
+ "kind": "event",
373
+ "payload": "change: G9TextChange"
374
+ },
375
+ "required": false,
376
+ "serializable": false,
377
+ "role": "event",
378
+ "doc": "Every change at once, cheap: the range it replaced and the text."
379
+ },
380
+ {
381
+ "name": "onCopy",
382
+ "type": {
383
+ "kind": "event",
384
+ "payload": "text: string"
385
+ },
386
+ "required": false,
387
+ "serializable": false,
388
+ "role": "event",
389
+ "doc": "The copy (Ctrl+C, Ctrl+X) goes to the platform's clipboard through the app; without it Ctrl+C does nothing."
390
+ },
391
+ {
392
+ "name": "onValueChange",
393
+ "type": {
394
+ "kind": "event",
395
+ "payload": "value: string"
396
+ },
397
+ "required": false,
398
+ "serializable": false,
399
+ "role": "event",
400
+ "doc": "The whole text after a change, at most every `valueDelay` ms (joining 1 MB per key is not free)."
401
+ },
402
+ {
403
+ "name": "readOnly",
404
+ "type": {
405
+ "kind": "boolean"
406
+ },
407
+ "required": false,
408
+ "serializable": true,
409
+ "role": "state"
410
+ },
411
+ {
412
+ "name": "tabSize",
413
+ "type": {
414
+ "kind": "number"
415
+ },
416
+ "required": false,
417
+ "default": 2,
418
+ "serializable": true,
419
+ "role": "appearance",
420
+ "doc": "Spaces per Tab. Default 2."
421
+ },
422
+ {
423
+ "name": "value",
424
+ "type": {
425
+ "kind": "string"
426
+ },
427
+ "required": false,
428
+ "serializable": true,
429
+ "role": "state",
430
+ "doc": "The text (controlled) or its start. A new `value` the editor did not send replaces the document and its history."
431
+ },
432
+ {
433
+ "name": "valueDelay",
434
+ "type": {
435
+ "kind": "number"
436
+ },
437
+ "required": false,
438
+ "default": 150,
439
+ "serializable": true,
440
+ "role": "behaviour",
441
+ "doc": "Default 150."
442
+ }
443
+ ],
444
+ "anchor": null,
445
+ "accessibility": {
446
+ "labelFrom": [
447
+ "accessibilityLabel"
448
+ ],
449
+ "labelRequired": false
450
+ },
451
+ "targets": {
452
+ "android": "pending",
453
+ "ios": "pending",
454
+ "windows": "pending",
455
+ "macos": "pending",
456
+ "web": "pending"
457
+ },
458
+ "evidence": {
459
+ "ledger": [
460
+ "N-176"
461
+ ]
462
+ },
463
+ "tokens": [
464
+ "Error",
465
+ "InverseOnSurface",
466
+ "InverseSurface",
467
+ "OnSurface",
468
+ "OnSurfaceVariant",
469
+ "OutlineVariant",
470
+ "Primary",
471
+ "SurfaceContainerHigh",
472
+ "SurfaceContainerLow",
473
+ "SurfaceContainerLowest",
474
+ "Warning"
475
+ ],
476
+ "example": {
477
+ "line": "<G9CodeEditor />",
478
+ "from": "generated"
479
+ }
480
+ },
481
+ {
482
+ "id": "code.log.G9LogView",
483
+ "export": "G9LogView",
484
+ "from": "@g9tm/lynxcontrols-code/log",
485
+ "kind": "component",
486
+ "family": "log",
487
+ "summary": "A live, virtualised log: follows the end, pauses on scroll-up, filters by level and search, copies selected rows.",
488
+ "since": null,
489
+ "props": [
490
+ {
491
+ "name": "batchMs",
492
+ "type": {
493
+ "kind": "number"
494
+ },
495
+ "required": false,
496
+ "default": 100,
497
+ "serializable": true,
498
+ "role": "behaviour",
499
+ "doc": "How often appended lines are shown (ms). Default 100."
500
+ },
501
+ {
502
+ "name": "className",
503
+ "type": {
504
+ "kind": "string"
505
+ },
506
+ "required": false,
507
+ "serializable": true,
508
+ "role": "appearance"
509
+ },
510
+ {
511
+ "name": "defaultLevels",
512
+ "type": {
513
+ "kind": "array",
514
+ "items": {
515
+ "kind": "enum",
516
+ "values": [
517
+ "trace",
518
+ "debug",
519
+ "info",
520
+ "warn",
521
+ "error",
522
+ "fatal"
523
+ ]
524
+ }
525
+ },
526
+ "required": false,
527
+ "serializable": true,
528
+ "role": "behaviour"
529
+ },
530
+ {
531
+ "name": "defaultQuery",
532
+ "type": {
533
+ "kind": "string"
534
+ },
535
+ "required": false,
536
+ "serializable": true,
537
+ "role": "behaviour"
538
+ },
539
+ {
540
+ "name": "follow",
541
+ "type": {
542
+ "kind": "boolean"
543
+ },
544
+ "required": false,
545
+ "default": true,
546
+ "serializable": true,
547
+ "role": "behaviour",
548
+ "doc": "Follow the end while the reader is there. Default true."
549
+ },
550
+ {
551
+ "name": "handleRef",
552
+ "type": {
553
+ "kind": "object",
554
+ "fields": [
555
+ {
556
+ "name": "current",
557
+ "required": true,
558
+ "type": {
559
+ "kind": "object",
560
+ "fields": [
561
+ {
562
+ "name": "jumpToLatest",
563
+ "required": true,
564
+ "type": {
565
+ "kind": "event",
566
+ "payload": null
567
+ },
568
+ "serializable": false
569
+ },
570
+ {
571
+ "name": "paused",
572
+ "required": true,
573
+ "type": {
574
+ "kind": "boolean"
575
+ },
576
+ "serializable": true
577
+ },
578
+ {
579
+ "name": "getSelected",
580
+ "required": true,
581
+ "type": {
582
+ "kind": "event",
583
+ "payload": null,
584
+ "returns": "G9LogEntry[]"
585
+ },
586
+ "serializable": false
587
+ },
588
+ {
589
+ "name": "getRows",
590
+ "required": true,
591
+ "type": {
592
+ "kind": "event",
593
+ "payload": null,
594
+ "returns": "G9LogEntry[]"
595
+ },
596
+ "serializable": false
597
+ },
598
+ {
599
+ "name": "clearSelection",
600
+ "required": true,
601
+ "type": {
602
+ "kind": "event",
603
+ "payload": null
604
+ },
605
+ "serializable": false
606
+ },
607
+ {
608
+ "name": "copySelection",
609
+ "required": true,
610
+ "type": {
611
+ "kind": "event",
612
+ "payload": null,
613
+ "returns": "boolean"
614
+ },
615
+ "serializable": false
616
+ }
617
+ ]
618
+ },
619
+ "serializable": false
620
+ }
621
+ ]
622
+ },
623
+ "required": false,
624
+ "serializable": false,
625
+ "role": "behaviour"
626
+ },
627
+ {
628
+ "name": "id",
629
+ "type": {
630
+ "kind": "string"
631
+ },
632
+ "required": false,
633
+ "serializable": true,
634
+ "role": "identity"
635
+ },
636
+ {
637
+ "name": "labels",
638
+ "type": {
639
+ "kind": "object",
640
+ "fields": [
641
+ {
642
+ "name": "search",
643
+ "required": false,
644
+ "type": {
645
+ "kind": "string"
646
+ },
647
+ "serializable": true
648
+ },
649
+ {
650
+ "name": "jump",
651
+ "required": false,
652
+ "type": {
653
+ "kind": "string"
654
+ },
655
+ "serializable": true
656
+ },
657
+ {
658
+ "name": "levels",
659
+ "required": false,
660
+ "type": {
661
+ "kind": "object",
662
+ "name": "Partial"
663
+ },
664
+ "serializable": false
665
+ },
666
+ {
667
+ "name": "empty",
668
+ "required": false,
669
+ "type": {
670
+ "kind": "string"
671
+ },
672
+ "serializable": true
673
+ }
674
+ ]
675
+ },
676
+ "required": false,
677
+ "serializable": false,
678
+ "role": "behaviour"
679
+ },
680
+ {
681
+ "name": "levelColors",
682
+ "type": {
683
+ "kind": "object",
684
+ "fields": [
685
+ {
686
+ "name": "trace",
687
+ "required": false,
688
+ "type": {
689
+ "kind": "unknown"
690
+ },
691
+ "serializable": false
692
+ },
693
+ {
694
+ "name": "debug",
695
+ "required": false,
696
+ "type": {
697
+ "kind": "unknown"
698
+ },
699
+ "serializable": false
700
+ },
701
+ {
702
+ "name": "info",
703
+ "required": false,
704
+ "type": {
705
+ "kind": "unknown"
706
+ },
707
+ "serializable": false
708
+ },
709
+ {
710
+ "name": "warn",
711
+ "required": false,
712
+ "type": {
713
+ "kind": "unknown"
714
+ },
715
+ "serializable": false
716
+ },
717
+ {
718
+ "name": "error",
719
+ "required": false,
720
+ "type": {
721
+ "kind": "unknown"
722
+ },
723
+ "serializable": false
724
+ },
725
+ {
726
+ "name": "fatal",
727
+ "required": false,
728
+ "type": {
729
+ "kind": "unknown"
730
+ },
731
+ "serializable": false
732
+ }
733
+ ]
734
+ },
735
+ "required": false,
736
+ "serializable": false,
737
+ "role": "appearance",
738
+ "doc": "Each level's colour (default: the theme's)."
739
+ },
740
+ {
741
+ "name": "levels",
742
+ "type": {
743
+ "kind": "array",
744
+ "items": {
745
+ "kind": "enum",
746
+ "values": [
747
+ "trace",
748
+ "debug",
749
+ "info",
750
+ "warn",
751
+ "error",
752
+ "fatal"
753
+ ]
754
+ }
755
+ },
756
+ "required": false,
757
+ "serializable": true,
758
+ "role": "behaviour",
759
+ "doc": "The levels shown (controlled) or their start (default all)."
760
+ },
761
+ {
762
+ "name": "onActivate",
763
+ "type": {
764
+ "kind": "event",
765
+ "payload": "entry: G9LogEntry"
766
+ },
767
+ "required": false,
768
+ "serializable": false,
769
+ "role": "event",
770
+ "doc": "A double tap / click on a line."
771
+ },
772
+ {
773
+ "name": "onCopy",
774
+ "type": {
775
+ "kind": "event",
776
+ "payload": "text: string"
777
+ },
778
+ "required": false,
779
+ "serializable": false,
780
+ "role": "event",
781
+ "doc": "Ctrl+C (and `copySelection`) hands the selected lines here, one per line."
782
+ },
783
+ {
784
+ "name": "onLevelsChange",
785
+ "type": {
786
+ "kind": "event",
787
+ "payload": "levels: G9LogLevel[]"
788
+ },
789
+ "required": false,
790
+ "serializable": false,
791
+ "role": "event"
792
+ },
793
+ {
794
+ "name": "onQueryChange",
795
+ "type": {
796
+ "kind": "event",
797
+ "payload": "query: string"
798
+ },
799
+ "required": false,
800
+ "serializable": false,
801
+ "role": "event"
802
+ },
803
+ {
804
+ "name": "onSelectionChange",
805
+ "type": {
806
+ "kind": "event",
807
+ "payload": "entries: G9LogEntry[]"
808
+ },
809
+ "required": false,
810
+ "serializable": false,
811
+ "role": "event"
812
+ },
813
+ {
814
+ "name": "query",
815
+ "type": {
816
+ "kind": "string"
817
+ },
818
+ "required": false,
819
+ "serializable": true,
820
+ "role": "behaviour",
821
+ "doc": "The search (controlled) or its start."
822
+ },
823
+ {
824
+ "name": "rowHeight",
825
+ "type": {
826
+ "kind": "number"
827
+ },
828
+ "required": false,
829
+ "default": 22,
830
+ "serializable": true,
831
+ "role": "appearance",
832
+ "doc": "A row's height (px). Default 22."
833
+ },
834
+ {
835
+ "name": "showCategory",
836
+ "type": {
837
+ "kind": "boolean"
838
+ },
839
+ "required": false,
840
+ "default": true,
841
+ "serializable": true,
842
+ "role": "behaviour",
843
+ "doc": "The category column. Default true."
844
+ },
845
+ {
846
+ "name": "showDate",
847
+ "type": {
848
+ "kind": "boolean"
849
+ },
850
+ "required": false,
851
+ "serializable": true,
852
+ "role": "behaviour",
853
+ "doc": "The date before the time."
854
+ },
855
+ {
856
+ "name": "store",
857
+ "type": {
858
+ "kind": "object",
859
+ "fields": [
860
+ {
861
+ "name": "items",
862
+ "required": true,
863
+ "type": {
864
+ "kind": "array",
865
+ "items": {
866
+ "kind": "unknown",
867
+ "text": "G9LogEntry"
868
+ }
869
+ },
870
+ "serializable": false
871
+ },
872
+ {
873
+ "name": "start",
874
+ "required": true,
875
+ "type": {
876
+ "kind": "number"
877
+ },
878
+ "serializable": true
879
+ },
880
+ {
881
+ "name": "nextSeq",
882
+ "required": true,
883
+ "type": {
884
+ "kind": "number"
885
+ },
886
+ "serializable": true
887
+ },
888
+ {
889
+ "name": "listeners",
890
+ "required": true,
891
+ "type": {
892
+ "kind": "object",
893
+ "name": "Set"
894
+ },
895
+ "serializable": false
896
+ },
897
+ {
898
+ "name": "capacity",
899
+ "required": true,
900
+ "type": {
901
+ "kind": "number"
902
+ },
903
+ "serializable": true
904
+ },
905
+ {
906
+ "name": "size",
907
+ "required": true,
908
+ "type": {
909
+ "kind": "number"
910
+ },
911
+ "serializable": true
912
+ },
913
+ {
914
+ "name": "at",
915
+ "required": true,
916
+ "type": {
917
+ "kind": "event",
918
+ "payload": "index: number",
919
+ "returns": "G9LogEntry | undefined"
920
+ },
921
+ "serializable": false
922
+ },
923
+ {
924
+ "name": "entries",
925
+ "required": true,
926
+ "type": {
927
+ "kind": "event",
928
+ "payload": null,
929
+ "returns": "G9LogEntry[]"
930
+ },
931
+ "serializable": false
932
+ },
933
+ {
934
+ "name": "append",
935
+ "required": true,
936
+ "type": {
937
+ "kind": "event",
938
+ "payload": "input: G9LogInput | readonly G9LogInput[]",
939
+ "returns": "G9LogEntry[]"
940
+ },
941
+ "serializable": false
942
+ },
943
+ {
944
+ "name": "clear",
945
+ "required": true,
946
+ "type": {
947
+ "kind": "event",
948
+ "payload": null
949
+ },
950
+ "serializable": false
951
+ },
952
+ {
953
+ "name": "subscribe",
954
+ "required": true,
955
+ "type": {
956
+ "kind": "event",
957
+ "payload": "listener: (change: G9LogChange) => void",
958
+ "returns": "() => void"
959
+ },
960
+ "serializable": false
961
+ },
962
+ {
963
+ "name": "emit",
964
+ "required": true,
965
+ "type": {
966
+ "kind": "event",
967
+ "payload": "change: G9LogChange"
968
+ },
969
+ "serializable": false
970
+ }
971
+ ]
972
+ },
973
+ "required": true,
974
+ "serializable": false,
975
+ "role": "behaviour"
976
+ },
977
+ {
978
+ "name": "toolbar",
979
+ "type": {
980
+ "kind": "boolean"
981
+ },
982
+ "required": false,
983
+ "default": true,
984
+ "serializable": true,
985
+ "role": "behaviour",
986
+ "doc": "The level chips and the search above the rows. Default true."
987
+ },
988
+ {
989
+ "name": "utc",
990
+ "type": {
991
+ "kind": "boolean"
992
+ },
993
+ "required": false,
994
+ "serializable": true,
995
+ "role": "behaviour",
996
+ "doc": "Times in UTC."
997
+ }
998
+ ],
999
+ "anchor": null,
1000
+ "accessibility": {
1001
+ "labelFrom": [],
1002
+ "labelRequired": false
1003
+ },
1004
+ "targets": {
1005
+ "android": "pending",
1006
+ "ios": "unmeasured",
1007
+ "windows": "pending",
1008
+ "macos": "pending",
1009
+ "web": "pending"
1010
+ },
1011
+ "evidence": {
1012
+ "ledger": [
1013
+ "N-177"
1014
+ ]
1015
+ },
1016
+ "tokens": [
1017
+ "OnPrimary",
1018
+ "OnSurface",
1019
+ "OnSurfaceVariant",
1020
+ "OnWarning",
1021
+ "OutlineVariant",
1022
+ "Primary",
1023
+ "SecondaryContainer",
1024
+ "SurfaceContainer",
1025
+ "SurfaceContainerHigh",
1026
+ "SurfaceContainerLowest",
1027
+ "Tertiary",
1028
+ "Warning"
1029
+ ],
1030
+ "example": {
1031
+ "line": "<G9LogView store={store} />",
1032
+ "from": "generated"
1033
+ }
1034
+ }
1035
+ ],
1036
+ "exports": [
1037
+ {
1038
+ "id": "code.editor.applyChange",
1039
+ "export": "applyChange",
1040
+ "from": "@g9tm/lynxcontrols-code/editor",
1041
+ "kind": "function",
1042
+ "signature": "(lines: readonly string[], change: Pick<G9TextChange, \"from\" | \"to\" | \"inserted\">, eol?: string): { readonly lines: string[]; readonly change: G9TextChange; readonly inverse: G9TextChange; }",
1043
+ "summary": "Applies a change; answers the new lines and the inverse change (undo)."
1044
+ },
1045
+ {
1046
+ "id": "code.editor.caretAt",
1047
+ "export": "caretAt",
1048
+ "from": "@g9tm/lynxcontrols-code/editor",
1049
+ "kind": "function",
1050
+ "signature": "(pos: G9TextPos): G9TextSelection",
1051
+ "summary": "A caret at `pos`."
1052
+ },
1053
+ {
1054
+ "id": "code.editor.clampPos",
1055
+ "export": "clampPos",
1056
+ "from": "@g9tm/lynxcontrols-code/editor",
1057
+ "kind": "function",
1058
+ "signature": "(lines: readonly string[], pos: G9TextPos): G9TextPos",
1059
+ "summary": "Keeps a position inside the document."
1060
+ },
1061
+ {
1062
+ "id": "code.editor.comparePos",
1063
+ "export": "comparePos",
1064
+ "from": "@g9tm/lynxcontrols-code/editor",
1065
+ "kind": "function",
1066
+ "signature": "(a: G9TextPos, b: G9TextPos): number",
1067
+ "summary": "Compares two positions."
1068
+ },
1069
+ {
1070
+ "id": "code.editor.detectEol",
1071
+ "export": "detectEol",
1072
+ "from": "@g9tm/lynxcontrols-code/editor",
1073
+ "kind": "function",
1074
+ "signature": "(text: string): \"\\n\" | \"\\r\\n\"",
1075
+ "summary": "The line break a text uses most (`\\n` when it has none)."
1076
+ },
1077
+ {
1078
+ "id": "code.log.filterLog",
1079
+ "export": "filterLog",
1080
+ "from": "@g9tm/lynxcontrols-code/log",
1081
+ "kind": "function",
1082
+ "signature": "(entries: readonly G9LogEntry[], filter: G9LogFilter): G9LogEntry[]",
1083
+ "summary": "The lines a filter keeps, oldest first."
1084
+ },
1085
+ {
1086
+ "id": "code.editor.findAll",
1087
+ "export": "findAll",
1088
+ "from": "@g9tm/lynxcontrols-code/editor",
1089
+ "kind": "function",
1090
+ "signature": "(lines: readonly string[], query: string, options?: { readonly caseSensitive?: boolean; readonly limit?: number; }): G9FindMatch[]",
1091
+ "summary": "Every hit of `query` (one line, no break), in document order; case-insensitive unless `caseSensitive`."
1092
+ },
1093
+ {
1094
+ "id": "code.log.formatLogEntries",
1095
+ "export": "formatLogEntries",
1096
+ "from": "@g9tm/lynxcontrols-code/log",
1097
+ "kind": "function",
1098
+ "signature": "(entries: readonly G9LogEntry[], options?: Omit<G9LogTimeOptions, \"millis\">): string",
1099
+ "summary": "Lines as copied, one per line, oldest first."
1100
+ },
1101
+ {
1102
+ "id": "code.log.formatLogEntry",
1103
+ "export": "formatLogEntry",
1104
+ "from": "@g9tm/lynxcontrols-code/log",
1105
+ "kind": "function",
1106
+ "signature": "(entry: G9LogEntry, options?: Omit<G9LogTimeOptions, \"millis\">): string",
1107
+ "summary": "One line as copied: `time LEVEL [category] message`."
1108
+ },
1109
+ {
1110
+ "id": "code.log.formatLogTime",
1111
+ "export": "formatLogTime",
1112
+ "from": "@g9tm/lynxcontrols-code/log",
1113
+ "kind": "function",
1114
+ "signature": "(time: number, options?: G9LogTimeOptions): string",
1115
+ "summary": "A time as `HH:MM:SS.mmm` (24 h, ASCII digits — a log is read and pasted as code)."
1116
+ },
1117
+ {
1118
+ "id": "code.editor.G9CaretMove",
1119
+ "export": "G9CaretMove",
1120
+ "from": "@g9tm/lynxcontrols-code/editor",
1121
+ "kind": "type",
1122
+ "signature": "G9CaretMove",
1123
+ "summary": "A caret move."
1124
+ },
1125
+ {
1126
+ "id": "code.editor.G9CodeColors",
1127
+ "export": "G9CodeColors",
1128
+ "from": "@g9tm/lynxcontrols-code/editor",
1129
+ "kind": "type",
1130
+ "signature": "Partial<Record<G9TokenKind, string>>",
1131
+ "summary": "The colours of the token kinds (default: the theme's)."
1132
+ },
1133
+ {
1134
+ "id": "code.editor.G9CodeEditorHandle",
1135
+ "export": "G9CodeEditorHandle",
1136
+ "from": "@g9tm/lynxcontrols-code/editor",
1137
+ "kind": "interface",
1138
+ "signature": "G9CodeEditorHandle",
1139
+ "summary": "Driving the editor from code (`handleRef`)."
1140
+ },
1141
+ {
1142
+ "id": "code.editor.G9CodeEditorProps",
1143
+ "export": "G9CodeEditorProps",
1144
+ "from": "@g9tm/lynxcontrols-code/editor",
1145
+ "kind": "interface",
1146
+ "signature": "G9CodeEditorProps",
1147
+ "summary": "Props of `G9CodeEditor`."
1148
+ },
1149
+ {
1150
+ "id": "code.editor.G9CodeFindLabels",
1151
+ "export": "G9CodeFindLabels",
1152
+ "from": "@g9tm/lynxcontrols-code/editor",
1153
+ "kind": "interface",
1154
+ "signature": "G9CodeFindLabels",
1155
+ "summary": "What the find bar says."
1156
+ },
1157
+ {
1158
+ "id": "code.editor.G9CodeMarker",
1159
+ "export": "G9CodeMarker",
1160
+ "from": "@g9tm/lynxcontrols-code/editor",
1161
+ "kind": "interface",
1162
+ "signature": "G9CodeMarker",
1163
+ "summary": "A mark on a line: its 1-based number, the message (shown on hover or tap) and how bad it is."
1164
+ },
1165
+ {
1166
+ "id": "code.editor.G9EditHistory",
1167
+ "export": "G9EditHistory",
1168
+ "from": "@g9tm/lynxcontrols-code/editor",
1169
+ "kind": "class",
1170
+ "signature": "typeof G9EditHistory",
1171
+ "summary": "Undo and redo. Typing in a row (same `kind`, within `groupMs`) is one step; any other kind starts a new one. A new change clears the redo side. At most `limit` steps are kept."
1172
+ },
1173
+ {
1174
+ "id": "code.editor.G9FindMatch",
1175
+ "export": "G9FindMatch",
1176
+ "from": "@g9tm/lynxcontrols-code/editor",
1177
+ "kind": "interface",
1178
+ "signature": "G9FindMatch",
1179
+ "summary": "A find hit: its line, column and length."
1180
+ },
1181
+ {
1182
+ "id": "code.editor.G9HistoryStep",
1183
+ "export": "G9HistoryStep",
1184
+ "from": "@g9tm/lynxcontrols-code/editor",
1185
+ "kind": "interface",
1186
+ "signature": "G9HistoryStep",
1187
+ "summary": "What an undo or a redo answers: the lines and the selection to show."
1188
+ },
1189
+ {
1190
+ "id": "code.log.G9LogChange",
1191
+ "export": "G9LogChange",
1192
+ "from": "@g9tm/lynxcontrols-code/log",
1193
+ "kind": "interface",
1194
+ "signature": "G9LogChange",
1195
+ "summary": "What a store change was: the lines added at the end that it keeps, how many older lines the cap dropped from the start, or a clear."
1196
+ },
1197
+ {
1198
+ "id": "code.log.G9LogEntry",
1199
+ "export": "G9LogEntry",
1200
+ "from": "@g9tm/lynxcontrols-code/log",
1201
+ "kind": "interface",
1202
+ "signature": "G9LogEntry",
1203
+ "summary": "A stored line: the input with its sequence number (unique and rising for the store's life; the row's key)."
1204
+ },
1205
+ {
1206
+ "id": "code.log.G9LogFilter",
1207
+ "export": "G9LogFilter",
1208
+ "from": "@g9tm/lynxcontrols-code/log",
1209
+ "kind": "interface",
1210
+ "signature": "G9LogFilter",
1211
+ "summary": "What a view shows: the levels on (all when omitted) and a search (case-insensitive, in category and message)."
1212
+ },
1213
+ {
1214
+ "id": "code.log.G9LogInput",
1215
+ "export": "G9LogInput",
1216
+ "from": "@g9tm/lynxcontrols-code/log",
1217
+ "kind": "interface",
1218
+ "signature": "G9LogInput",
1219
+ "summary": "A line the app appends. `time`: ms since the epoch (a `Date` works too)."
1220
+ },
1221
+ {
1222
+ "id": "code.log.G9LogLevel",
1223
+ "export": "G9LogLevel",
1224
+ "from": "@g9tm/lynxcontrols-code/log",
1225
+ "kind": "type",
1226
+ "signature": "G9LogLevel",
1227
+ "summary": "The six levels, least to most severe."
1228
+ },
1229
+ {
1230
+ "id": "code.log.g9LogLevels",
1231
+ "export": "g9LogLevels",
1232
+ "from": "@g9tm/lynxcontrols-code/log",
1233
+ "kind": "constant",
1234
+ "signature": "readonly G9LogLevel[]",
1235
+ "summary": "Every level in order."
1236
+ },
1237
+ {
1238
+ "id": "code.log.G9LogStore",
1239
+ "export": "G9LogStore",
1240
+ "from": "@g9tm/lynxcontrols-code/log",
1241
+ "kind": "class",
1242
+ "signature": "typeof G9LogStore",
1243
+ "summary": "A bounded, append-only log: the newest `capacity` lines (default 50 000), the oldest dropped. `append` costs only the new lines; listeners hear each change at once (a view coalesces them)."
1244
+ },
1245
+ {
1246
+ "id": "code.log.G9LogTimeOptions",
1247
+ "export": "G9LogTimeOptions",
1248
+ "from": "@g9tm/lynxcontrols-code/log",
1249
+ "kind": "interface",
1250
+ "signature": "G9LogTimeOptions",
1251
+ "summary": "Options of `formatLogTime`."
1252
+ },
1253
+ {
1254
+ "id": "code.log.G9LogViewHandle",
1255
+ "export": "G9LogViewHandle",
1256
+ "from": "@g9tm/lynxcontrols-code/log",
1257
+ "kind": "interface",
1258
+ "signature": "G9LogViewHandle",
1259
+ "summary": "Driving the log view from code (`handleRef`)."
1260
+ },
1261
+ {
1262
+ "id": "code.log.G9LogViewLabels",
1263
+ "export": "G9LogViewLabels",
1264
+ "from": "@g9tm/lynxcontrols-code/log",
1265
+ "kind": "interface",
1266
+ "signature": "G9LogViewLabels",
1267
+ "summary": "What the log view says (English defaults)."
1268
+ },
1269
+ {
1270
+ "id": "code.log.G9LogViewProps",
1271
+ "export": "G9LogViewProps",
1272
+ "from": "@g9tm/lynxcontrols-code/log",
1273
+ "kind": "interface",
1274
+ "signature": "G9LogViewProps",
1275
+ "summary": "Props of `G9LogView`."
1276
+ },
1277
+ {
1278
+ "id": "code.editor.G9TextChange",
1279
+ "export": "G9TextChange",
1280
+ "from": "@g9tm/lynxcontrols-code/editor",
1281
+ "kind": "interface",
1282
+ "signature": "G9TextChange",
1283
+ "summary": "One edit: the range it replaced (before), the text it removed and the text it put there."
1284
+ },
1285
+ {
1286
+ "id": "code.editor.G9TextPos",
1287
+ "export": "G9TextPos",
1288
+ "from": "@g9tm/lynxcontrols-code/editor",
1289
+ "kind": "interface",
1290
+ "signature": "G9TextPos",
1291
+ "summary": "A place in the document: 0-based line and column (UTF-16 units)."
1292
+ },
1293
+ {
1294
+ "id": "code.editor.G9TextSelection",
1295
+ "export": "G9TextSelection",
1296
+ "from": "@g9tm/lynxcontrols-code/editor",
1297
+ "kind": "interface",
1298
+ "signature": "G9TextSelection",
1299
+ "summary": "A selection: where it started (`anchor`) and where the caret is (`head`); equal = a caret."
1300
+ },
1301
+ {
1302
+ "id": "code.editor.G9Token",
1303
+ "export": "G9Token",
1304
+ "from": "@g9tm/lynxcontrols-code/editor",
1305
+ "kind": "interface",
1306
+ "signature": "G9Token",
1307
+ "summary": "A coloured stretch of a line: [start, end) and its kind."
1308
+ },
1309
+ {
1310
+ "id": "code.editor.G9Tokenizer",
1311
+ "export": "G9Tokenizer",
1312
+ "from": "@g9tm/lynxcontrols-code/editor",
1313
+ "kind": "type",
1314
+ "signature": "G9Tokenizer",
1315
+ "summary": "Splits a line into tokens (an app's own language: the same shape)."
1316
+ },
1317
+ {
1318
+ "id": "code.editor.G9TokenKind",
1319
+ "export": "G9TokenKind",
1320
+ "from": "@g9tm/lynxcontrols-code/editor",
1321
+ "kind": "type",
1322
+ "signature": "G9TokenKind",
1323
+ "summary": "What a token is, for its colour."
1324
+ },
1325
+ {
1326
+ "id": "code.editor.indentOf",
1327
+ "export": "indentOf",
1328
+ "from": "@g9tm/lynxcontrols-code/editor",
1329
+ "kind": "function",
1330
+ "signature": "(line: string): string",
1331
+ "summary": "The leading blanks of a line."
1332
+ },
1333
+ {
1334
+ "id": "code.editor.isCaret",
1335
+ "export": "isCaret",
1336
+ "from": "@g9tm/lynxcontrols-code/editor",
1337
+ "kind": "function",
1338
+ "signature": "(sel: G9TextSelection): boolean",
1339
+ "summary": "True when the selection is a caret."
1340
+ },
1341
+ {
1342
+ "id": "code.log.logFilterTest",
1343
+ "export": "logFilterTest",
1344
+ "from": "@g9tm/lynxcontrols-code/log",
1345
+ "kind": "function",
1346
+ "signature": "(filter: G9LogFilter): (entry: G9LogEntry) => boolean",
1347
+ "summary": "A filter as one fast test."
1348
+ },
1349
+ {
1350
+ "id": "code.log.logHighlights",
1351
+ "export": "logHighlights",
1352
+ "from": "@g9tm/lynxcontrols-code/log",
1353
+ "kind": "function",
1354
+ "signature": "(text: string, query: string): (readonly [number, number])[]",
1355
+ "summary": "Where a search hits a text (case-insensitive, not overlapping): [start, end) pairs."
1356
+ },
1357
+ {
1358
+ "id": "code.log.logLevelRank",
1359
+ "export": "logLevelRank",
1360
+ "from": "@g9tm/lynxcontrols-code/log",
1361
+ "kind": "function",
1362
+ "signature": "(level: string): number",
1363
+ "summary": "The severity rank of a level (trace 0 … fatal 5); an unknown level counts as info."
1364
+ },
1365
+ {
1366
+ "id": "code.log.logRuns",
1367
+ "export": "logRuns",
1368
+ "from": "@g9tm/lynxcontrols-code/log",
1369
+ "kind": "function",
1370
+ "signature": "(text: string, query: string): { readonly text: string; readonly hit: boolean; }[]",
1371
+ "summary": "A text cut into plain and hit runs by `logHighlights`."
1372
+ },
1373
+ {
1374
+ "id": "code.editor.moveCaret",
1375
+ "export": "moveCaret",
1376
+ "from": "@g9tm/lynxcontrols-code/editor",
1377
+ "kind": "function",
1378
+ "signature": "(lines: readonly string[], pos: G9TextPos, move: G9CaretMove, goal?: number, page?: number): G9TextPos",
1379
+ "summary": "Where a caret goes. `goal` is the column up / down aim for (kept across short lines); `page` the rows of a page. Line start goes to the first non-blank column, and from there to column 0."
1380
+ },
1381
+ {
1382
+ "id": "code.editor.newlineText",
1383
+ "export": "newlineText",
1384
+ "from": "@g9tm/lynxcontrols-code/editor",
1385
+ "kind": "function",
1386
+ "signature": "(lines: readonly string[], pos: G9TextPos, tab?: string): { readonly text: string; readonly caret: number; }",
1387
+ "summary": "What Enter inserts at `pos`: a line break and the line's indent, one step more after an opening bracket; between a bracket pair the closing one moves to its own line. Answers the text and where the caret goes inside it."
1388
+ },
1389
+ {
1390
+ "id": "code.log.nextLogSelection",
1391
+ "export": "nextLogSelection",
1392
+ "from": "@g9tm/lynxcontrols-code/log",
1393
+ "kind": "function",
1394
+ "signature": "(selected: readonly number[], visible: readonly G9LogEntry[], seq: number, mode: \"range\" | \"single\" | \"toggle\", anchor: number | null): number[]",
1395
+ "summary": "The selection after a click on a line: alone, added / removed (`toggle`, Ctrl), or the range from `anchor` (Shift)."
1396
+ },
1397
+ {
1398
+ "id": "code.editor.nextMatchIndex",
1399
+ "export": "nextMatchIndex",
1400
+ "from": "@g9tm/lynxcontrols-code/editor",
1401
+ "kind": "function",
1402
+ "signature": "(matches: readonly G9FindMatch[], pos: G9TextPos, dir: 1 | -1): number",
1403
+ "summary": "The hit after (or before, `dir` -1) a position, wrapping around; -1 when there are none."
1404
+ },
1405
+ {
1406
+ "id": "code.editor.orderedRange",
1407
+ "export": "orderedRange",
1408
+ "from": "@g9tm/lynxcontrols-code/editor",
1409
+ "kind": "function",
1410
+ "signature": "(sel: G9TextSelection): { readonly from: G9TextPos; readonly to: G9TextPos; }",
1411
+ "summary": "A selection's start and end in document order."
1412
+ },
1413
+ {
1414
+ "id": "code.editor.replaceRange",
1415
+ "export": "replaceRange",
1416
+ "from": "@g9tm/lynxcontrols-code/editor",
1417
+ "kind": "function",
1418
+ "signature": "(lines: readonly string[], from: G9TextPos, to: G9TextPos, text: string): { readonly lines: string[]; readonly end: G9TextPos; }",
1419
+ "summary": "Replaces `from`–`to` with `text`: the new lines (the untouched ones shared) and where the inserted text ends."
1420
+ },
1421
+ {
1422
+ "id": "code.editor.splitLines",
1423
+ "export": "splitLines",
1424
+ "from": "@g9tm/lynxcontrols-code/editor",
1425
+ "kind": "function",
1426
+ "signature": "(text: string): string[]",
1427
+ "summary": "Splits a text into lines on `\\r\\n`, `\\n` or `\\r`."
1428
+ },
1429
+ {
1430
+ "id": "code.editor.textInRange",
1431
+ "export": "textInRange",
1432
+ "from": "@g9tm/lynxcontrols-code/editor",
1433
+ "kind": "function",
1434
+ "signature": "(lines: readonly string[], from: G9TextPos, to: G9TextPos, eol?: string): string",
1435
+ "summary": "The text between two positions (in order)."
1436
+ },
1437
+ {
1438
+ "id": "code.editor.tokenizeJsonLine",
1439
+ "export": "tokenizeJsonLine",
1440
+ "from": "@g9tm/lynxcontrols-code/editor",
1441
+ "kind": "function",
1442
+ "signature": "(line: string): G9Token[]",
1443
+ "summary": "The JSON tokenizer (JSONC comments too): keys (a string followed by `:`), strings, numbers, true / false, null, punctuation, `//` comments; anything else plain. A JSON string never holds a raw line break, so each line is tokenized alone, in one pass (a minified megabyte on one line costs linear time)."
1444
+ },
1445
+ {
1446
+ "id": "code.editor.tokenizePlainLine",
1447
+ "export": "tokenizePlainLine",
1448
+ "from": "@g9tm/lynxcontrols-code/editor",
1449
+ "kind": "function",
1450
+ "signature": "(line: string): G9Token[]",
1451
+ "summary": "No colours: the whole line plain."
1452
+ },
1453
+ {
1454
+ "id": "code.editor.wordAt",
1455
+ "export": "wordAt",
1456
+ "from": "@g9tm/lynxcontrols-code/editor",
1457
+ "kind": "function",
1458
+ "signature": "(lines: readonly string[], pos: G9TextPos): G9TextSelection",
1459
+ "summary": "The word around a position (a double click), as a selection; a caret where there is no word."
1460
+ }
1461
+ ]
1462
+ }