@genesislcap/foundation-utils 14.426.1-alpha-be0ea39.0 → 14.427.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.
@@ -209,6 +209,245 @@
209
209
  }
210
210
  ]
211
211
  },
212
+ {
213
+ "kind": "javascript-module",
214
+ "path": "src/converters/index.ts",
215
+ "declarations": [],
216
+ "exports": [
217
+ {
218
+ "kind": "js",
219
+ "name": "*",
220
+ "declaration": {
221
+ "name": "*",
222
+ "package": "./string-array-converter"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "javascript-module",
229
+ "path": "src/converters/string-array-converter.ts",
230
+ "declarations": [
231
+ {
232
+ "kind": "variable",
233
+ "name": "stringArrayConverter",
234
+ "type": {
235
+ "text": "ValueConverter"
236
+ },
237
+ "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
238
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
239
+ "privacy": "public"
240
+ }
241
+ ],
242
+ "exports": [
243
+ {
244
+ "kind": "js",
245
+ "name": "stringArrayConverter",
246
+ "declaration": {
247
+ "name": "stringArrayConverter",
248
+ "module": "src/converters/string-array-converter.ts"
249
+ }
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "kind": "javascript-module",
255
+ "path": "src/data/inMemoryDatabase.ts",
256
+ "declarations": [
257
+ {
258
+ "kind": "class",
259
+ "description": "An in memory database of specific DatabaseRecord types.",
260
+ "name": "InMemoryDatabase",
261
+ "members": [
262
+ {
263
+ "kind": "field",
264
+ "name": "isWorking",
265
+ "type": {
266
+ "text": "boolean"
267
+ },
268
+ "privacy": "public",
269
+ "default": "false"
270
+ },
271
+ {
272
+ "kind": "field",
273
+ "name": "records",
274
+ "type": {
275
+ "text": "Record<string, T>"
276
+ },
277
+ "privacy": "private",
278
+ "default": "{}"
279
+ },
280
+ {
281
+ "kind": "field",
282
+ "name": "beforeUpdateListeners",
283
+ "privacy": "private"
284
+ },
285
+ {
286
+ "kind": "field",
287
+ "name": "afterUpdateListeners",
288
+ "privacy": "private"
289
+ },
290
+ {
291
+ "kind": "method",
292
+ "name": "create",
293
+ "privacy": "public",
294
+ "return": {
295
+ "type": {
296
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
297
+ }
298
+ },
299
+ "parameters": [
300
+ {
301
+ "name": "newValue",
302
+ "type": {
303
+ "text": "Omit<T, 'id'>"
304
+ }
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "kind": "method",
310
+ "name": "read",
311
+ "privacy": "public",
312
+ "return": {
313
+ "type": {
314
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
315
+ }
316
+ },
317
+ "parameters": [
318
+ {
319
+ "name": "id",
320
+ "type": {
321
+ "text": "string"
322
+ }
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "kind": "method",
328
+ "name": "update",
329
+ "privacy": "public",
330
+ "return": {
331
+ "type": {
332
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
333
+ }
334
+ },
335
+ "parameters": [
336
+ {
337
+ "name": "id",
338
+ "type": {
339
+ "text": "string"
340
+ }
341
+ },
342
+ {
343
+ "name": "newValue",
344
+ "type": {
345
+ "text": "Omit<Partial<T>, 'id'>"
346
+ }
347
+ }
348
+ ]
349
+ },
350
+ {
351
+ "kind": "method",
352
+ "name": "delete",
353
+ "privacy": "public",
354
+ "return": {
355
+ "type": {
356
+ "text": "Promise<DatabaseAccessResult.Delete>"
357
+ }
358
+ },
359
+ "parameters": [
360
+ {
361
+ "name": "id",
362
+ "type": {
363
+ "text": "string"
364
+ }
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "kind": "method",
370
+ "name": "visit",
371
+ "privacy": "public",
372
+ "return": {
373
+ "type": {
374
+ "text": "Promise<void>"
375
+ }
376
+ },
377
+ "parameters": [
378
+ {
379
+ "name": "visitor",
380
+ "type": {
381
+ "text": "(record: T) => void"
382
+ }
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "kind": "method",
388
+ "name": "onBeforeUpdate",
389
+ "privacy": "public",
390
+ "return": {
391
+ "type": {
392
+ "text": "() => void"
393
+ }
394
+ },
395
+ "parameters": [
396
+ {
397
+ "name": "listener",
398
+ "type": {
399
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
400
+ }
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "kind": "method",
406
+ "name": "onAfterUpdate",
407
+ "privacy": "public",
408
+ "return": {
409
+ "type": {
410
+ "text": "() => void"
411
+ }
412
+ },
413
+ "parameters": [
414
+ {
415
+ "name": "listener",
416
+ "type": {
417
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
+ }
419
+ }
420
+ ]
421
+ }
422
+ ]
423
+ }
424
+ ],
425
+ "exports": [
426
+ {
427
+ "kind": "js",
428
+ "name": "InMemoryDatabase",
429
+ "declaration": {
430
+ "name": "InMemoryDatabase",
431
+ "module": "src/data/inMemoryDatabase.ts"
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "kind": "javascript-module",
438
+ "path": "src/data/index.ts",
439
+ "declarations": [],
440
+ "exports": [
441
+ {
442
+ "kind": "js",
443
+ "name": "*",
444
+ "declaration": {
445
+ "name": "*",
446
+ "package": "./inMemoryDatabase"
447
+ }
448
+ }
449
+ ]
450
+ },
212
451
  {
213
452
  "kind": "javascript-module",
214
453
  "path": "src/design-system/design-system.ts",
@@ -316,23 +555,158 @@
316
555
  },
317
556
  {
318
557
  "kind": "javascript-module",
319
- "path": "src/design-system/index.ts",
320
- "declarations": [],
321
- "exports": [
558
+ "path": "src/design-system/editable-elements.ts",
559
+ "declarations": [
322
560
  {
323
- "kind": "js",
324
- "name": "*",
325
- "declaration": {
326
- "name": "*",
327
- "package": "./design-system"
328
- }
329
- }
330
- ]
331
- },
332
- {
333
- "kind": "javascript-module",
334
- "path": "src/directives/index.ts",
335
- "declarations": [],
561
+ "kind": "variable",
562
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
563
+ "type": {
564
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
565
+ },
566
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
567
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
568
+ },
569
+ {
570
+ "kind": "variable",
571
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
572
+ "type": {
573
+ "text": "Record<\n ShortcutDesignSystemPrefix,\n readonly string[]\n>"
574
+ },
575
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
576
+ "description": "Design-system specific editable host selectors."
577
+ },
578
+ {
579
+ "kind": "function",
580
+ "name": "buildEditableElementSelector",
581
+ "return": {
582
+ "type": {
583
+ "text": "string"
584
+ }
585
+ },
586
+ "parameters": [
587
+ {
588
+ "name": "designSystems",
589
+ "type": {
590
+ "text": "readonly ShortcutDesignSystemPrefix[]"
591
+ }
592
+ },
593
+ {
594
+ "name": "customEditableSelectors",
595
+ "default": "[]",
596
+ "type": {
597
+ "text": "readonly string[]"
598
+ }
599
+ }
600
+ ]
601
+ }
602
+ ],
603
+ "exports": [
604
+ {
605
+ "kind": "js",
606
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
607
+ "declaration": {
608
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
609
+ "module": "src/design-system/editable-elements.ts"
610
+ }
611
+ },
612
+ {
613
+ "kind": "js",
614
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
615
+ "declaration": {
616
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
617
+ "module": "src/design-system/editable-elements.ts"
618
+ }
619
+ },
620
+ {
621
+ "kind": "js",
622
+ "name": "buildEditableElementSelector",
623
+ "declaration": {
624
+ "name": "buildEditableElementSelector",
625
+ "module": "src/design-system/editable-elements.ts"
626
+ }
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "kind": "javascript-module",
632
+ "path": "src/design-system/index.ts",
633
+ "declarations": [],
634
+ "exports": [
635
+ {
636
+ "kind": "js",
637
+ "name": "*",
638
+ "declaration": {
639
+ "name": "*",
640
+ "package": "./design-system"
641
+ }
642
+ },
643
+ {
644
+ "kind": "js",
645
+ "name": "*",
646
+ "declaration": {
647
+ "name": "*",
648
+ "package": "./editable-elements"
649
+ }
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "kind": "javascript-module",
655
+ "path": "src/decorators/index.ts",
656
+ "declarations": [],
657
+ "exports": [
658
+ {
659
+ "kind": "js",
660
+ "name": "*",
661
+ "declaration": {
662
+ "name": "*",
663
+ "package": "./renderOnChange"
664
+ }
665
+ }
666
+ ]
667
+ },
668
+ {
669
+ "kind": "javascript-module",
670
+ "path": "src/decorators/renderOnChange.ts",
671
+ "declarations": [
672
+ {
673
+ "kind": "function",
674
+ "name": "renderOnChange",
675
+ "parameters": [
676
+ {
677
+ "name": "target",
678
+ "type": {
679
+ "text": "FASTElement & { render(): void }"
680
+ },
681
+ "description": "The target to define the property change handler on."
682
+ },
683
+ {
684
+ "name": "name",
685
+ "type": {
686
+ "text": "string"
687
+ },
688
+ "description": "The property name."
689
+ }
690
+ ],
691
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
692
+ "privacy": "public"
693
+ }
694
+ ],
695
+ "exports": [
696
+ {
697
+ "kind": "js",
698
+ "name": "renderOnChange",
699
+ "declaration": {
700
+ "name": "renderOnChange",
701
+ "module": "src/decorators/renderOnChange.ts"
702
+ }
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "kind": "javascript-module",
708
+ "path": "src/directives/index.ts",
709
+ "declarations": [],
336
710
  "exports": [
337
711
  {
338
712
  "kind": "js",
@@ -734,402 +1108,110 @@
734
1108
  "declaration": {
735
1109
  "name": "_DEFAULT_ORGANISATION",
736
1110
  "module": "src/env/variables.ts"
737
- }
738
- },
739
- {
740
- "kind": "js",
741
- "name": "DEFAULT_PASSWORD",
742
- "declaration": {
743
- "name": "_DEFAULT_PASSWORD",
744
- "module": "src/env/variables.ts"
745
- }
746
- },
747
- {
748
- "kind": "js",
749
- "name": "DEFAULT_USER",
750
- "declaration": {
751
- "name": "_DEFAULT_USER",
752
- "module": "src/env/variables.ts"
753
- }
754
- },
755
- {
756
- "kind": "js",
757
- "name": "LOGIN_URL",
758
- "declaration": {
759
- "name": "LOGIN_URL",
760
- "module": "src/env/variables.ts"
761
- }
762
- },
763
- {
764
- "kind": "js",
765
- "name": "LOGIN_REFRESH_URL",
766
- "declaration": {
767
- "name": "LOGIN_REFRESH_URL",
768
- "module": "src/env/variables.ts"
769
- }
770
- },
771
- {
772
- "kind": "js",
773
- "name": "LOGIN_DETAILS_URL",
774
- "declaration": {
775
- "name": "LOGIN_DETAILS_URL",
776
- "module": "src/env/variables.ts"
777
- }
778
- },
779
- {
780
- "kind": "js",
781
- "name": "LOGOUT_URL",
782
- "declaration": {
783
- "name": "LOGOUT_URL",
784
- "module": "src/env/variables.ts"
785
- }
786
- },
787
- {
788
- "kind": "js",
789
- "name": "CHANGE_PASSWORD_URL",
790
- "declaration": {
791
- "name": "CHANGE_PASSWORD_URL",
792
- "module": "src/env/variables.ts"
793
- }
794
- },
795
- {
796
- "kind": "js",
797
- "name": "FORGOT_PASSWORD_URL",
798
- "declaration": {
799
- "name": "FORGOT_PASSWORD_URL",
800
- "module": "src/env/variables.ts"
801
- }
802
- },
803
- {
804
- "kind": "js",
805
- "name": "RESET_PASSWORD_URL",
806
- "declaration": {
807
- "name": "RESET_PASSWORD_URL",
808
- "module": "src/env/variables.ts"
809
- }
810
- },
811
- {
812
- "kind": "js",
813
- "name": "SSO_LIST_URL",
814
- "declaration": {
815
- "name": "SSO_LIST_URL",
816
- "module": "src/env/variables.ts"
817
- }
818
- },
819
- {
820
- "kind": "js",
821
- "name": "SSO_LOGIN_URL",
822
- "declaration": {
823
- "name": "SSO_LOGIN_URL",
824
- "module": "src/env/variables.ts"
825
- }
826
- },
827
- {
828
- "kind": "js",
829
- "name": "ENVIRONMENT_LEVEL",
830
- "declaration": {
831
- "name": "ENVIRONMENT_LEVEL",
832
- "module": "src/env/variables.ts"
833
- }
834
- },
835
- {
836
- "kind": "js",
837
- "name": "ACCEPT_TERMS_URL",
838
- "declaration": {
839
- "name": "ACCEPT_TERMS_URL",
840
- "module": "src/env/variables.ts"
841
- }
842
- }
843
- ]
844
- },
845
- {
846
- "kind": "javascript-module",
847
- "path": "src/converters/index.ts",
848
- "declarations": [],
849
- "exports": [
850
- {
851
- "kind": "js",
852
- "name": "*",
853
- "declaration": {
854
- "name": "*",
855
- "package": "./string-array-converter"
856
- }
857
- }
858
- ]
859
- },
860
- {
861
- "kind": "javascript-module",
862
- "path": "src/converters/string-array-converter.ts",
863
- "declarations": [
864
- {
865
- "kind": "variable",
866
- "name": "stringArrayConverter",
867
- "type": {
868
- "text": "ValueConverter"
869
- },
870
- "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
871
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
872
- "privacy": "public"
873
- }
874
- ],
875
- "exports": [
876
- {
877
- "kind": "js",
878
- "name": "stringArrayConverter",
879
- "declaration": {
880
- "name": "stringArrayConverter",
881
- "module": "src/converters/string-array-converter.ts"
882
- }
883
- }
884
- ]
885
- },
886
- {
887
- "kind": "javascript-module",
888
- "path": "src/data/inMemoryDatabase.ts",
889
- "declarations": [
890
- {
891
- "kind": "class",
892
- "description": "An in memory database of specific DatabaseRecord types.",
893
- "name": "InMemoryDatabase",
894
- "members": [
895
- {
896
- "kind": "field",
897
- "name": "isWorking",
898
- "type": {
899
- "text": "boolean"
900
- },
901
- "privacy": "public",
902
- "default": "false"
903
- },
904
- {
905
- "kind": "field",
906
- "name": "records",
907
- "type": {
908
- "text": "Record<string, T>"
909
- },
910
- "privacy": "private",
911
- "default": "{}"
912
- },
913
- {
914
- "kind": "field",
915
- "name": "beforeUpdateListeners",
916
- "privacy": "private"
917
- },
918
- {
919
- "kind": "field",
920
- "name": "afterUpdateListeners",
921
- "privacy": "private"
922
- },
923
- {
924
- "kind": "method",
925
- "name": "create",
926
- "privacy": "public",
927
- "return": {
928
- "type": {
929
- "text": "Promise<DatabaseAccessResult.Create<T>>"
930
- }
931
- },
932
- "parameters": [
933
- {
934
- "name": "newValue",
935
- "type": {
936
- "text": "Omit<T, 'id'>"
937
- }
938
- }
939
- ]
940
- },
941
- {
942
- "kind": "method",
943
- "name": "read",
944
- "privacy": "public",
945
- "return": {
946
- "type": {
947
- "text": "Promise<DatabaseAccessResult.Read<T>>"
948
- }
949
- },
950
- "parameters": [
951
- {
952
- "name": "id",
953
- "type": {
954
- "text": "string"
955
- }
956
- }
957
- ]
958
- },
959
- {
960
- "kind": "method",
961
- "name": "update",
962
- "privacy": "public",
963
- "return": {
964
- "type": {
965
- "text": "Promise<DatabaseAccessResult.Update<T>>"
966
- }
967
- },
968
- "parameters": [
969
- {
970
- "name": "id",
971
- "type": {
972
- "text": "string"
973
- }
974
- },
975
- {
976
- "name": "newValue",
977
- "type": {
978
- "text": "Omit<Partial<T>, 'id'>"
979
- }
980
- }
981
- ]
982
- },
983
- {
984
- "kind": "method",
985
- "name": "delete",
986
- "privacy": "public",
987
- "return": {
988
- "type": {
989
- "text": "Promise<DatabaseAccessResult.Delete>"
990
- }
991
- },
992
- "parameters": [
993
- {
994
- "name": "id",
995
- "type": {
996
- "text": "string"
997
- }
998
- }
999
- ]
1000
- },
1001
- {
1002
- "kind": "method",
1003
- "name": "visit",
1004
- "privacy": "public",
1005
- "return": {
1006
- "type": {
1007
- "text": "Promise<void>"
1008
- }
1009
- },
1010
- "parameters": [
1011
- {
1012
- "name": "visitor",
1013
- "type": {
1014
- "text": "(record: T) => void"
1015
- }
1016
- }
1017
- ]
1018
- },
1019
- {
1020
- "kind": "method",
1021
- "name": "onBeforeUpdate",
1022
- "privacy": "public",
1023
- "return": {
1024
- "type": {
1025
- "text": "() => void"
1026
- }
1027
- },
1028
- "parameters": [
1029
- {
1030
- "name": "listener",
1031
- "type": {
1032
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1033
- }
1034
- }
1035
- ]
1036
- },
1037
- {
1038
- "kind": "method",
1039
- "name": "onAfterUpdate",
1040
- "privacy": "public",
1041
- "return": {
1042
- "type": {
1043
- "text": "() => void"
1044
- }
1045
- },
1046
- "parameters": [
1047
- {
1048
- "name": "listener",
1049
- "type": {
1050
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1051
- }
1052
- }
1053
- ]
1054
- }
1055
- ]
1056
- }
1057
- ],
1058
- "exports": [
1111
+ }
1112
+ },
1059
1113
  {
1060
1114
  "kind": "js",
1061
- "name": "InMemoryDatabase",
1115
+ "name": "DEFAULT_PASSWORD",
1062
1116
  "declaration": {
1063
- "name": "InMemoryDatabase",
1064
- "module": "src/data/inMemoryDatabase.ts"
1117
+ "name": "_DEFAULT_PASSWORD",
1118
+ "module": "src/env/variables.ts"
1065
1119
  }
1066
- }
1067
- ]
1068
- },
1069
- {
1070
- "kind": "javascript-module",
1071
- "path": "src/data/index.ts",
1072
- "declarations": [],
1073
- "exports": [
1120
+ },
1074
1121
  {
1075
1122
  "kind": "js",
1076
- "name": "*",
1123
+ "name": "DEFAULT_USER",
1077
1124
  "declaration": {
1078
- "name": "*",
1079
- "package": "./inMemoryDatabase"
1125
+ "name": "_DEFAULT_USER",
1126
+ "module": "src/env/variables.ts"
1080
1127
  }
1081
- }
1082
- ]
1083
- },
1084
- {
1085
- "kind": "javascript-module",
1086
- "path": "src/decorators/index.ts",
1087
- "declarations": [],
1088
- "exports": [
1128
+ },
1089
1129
  {
1090
1130
  "kind": "js",
1091
- "name": "*",
1131
+ "name": "LOGIN_URL",
1092
1132
  "declaration": {
1093
- "name": "*",
1094
- "package": "./renderOnChange"
1133
+ "name": "LOGIN_URL",
1134
+ "module": "src/env/variables.ts"
1095
1135
  }
1096
- }
1097
- ]
1098
- },
1099
- {
1100
- "kind": "javascript-module",
1101
- "path": "src/decorators/renderOnChange.ts",
1102
- "declarations": [
1136
+ },
1103
1137
  {
1104
- "kind": "function",
1105
- "name": "renderOnChange",
1106
- "parameters": [
1107
- {
1108
- "name": "target",
1109
- "type": {
1110
- "text": "FASTElement & { render(): void }"
1111
- },
1112
- "description": "The target to define the property change handler on."
1113
- },
1114
- {
1115
- "name": "name",
1116
- "type": {
1117
- "text": "string"
1118
- },
1119
- "description": "The property name."
1120
- }
1121
- ],
1122
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1123
- "privacy": "public"
1124
- }
1125
- ],
1126
- "exports": [
1138
+ "kind": "js",
1139
+ "name": "LOGIN_REFRESH_URL",
1140
+ "declaration": {
1141
+ "name": "LOGIN_REFRESH_URL",
1142
+ "module": "src/env/variables.ts"
1143
+ }
1144
+ },
1127
1145
  {
1128
1146
  "kind": "js",
1129
- "name": "renderOnChange",
1147
+ "name": "LOGIN_DETAILS_URL",
1130
1148
  "declaration": {
1131
- "name": "renderOnChange",
1132
- "module": "src/decorators/renderOnChange.ts"
1149
+ "name": "LOGIN_DETAILS_URL",
1150
+ "module": "src/env/variables.ts"
1151
+ }
1152
+ },
1153
+ {
1154
+ "kind": "js",
1155
+ "name": "LOGOUT_URL",
1156
+ "declaration": {
1157
+ "name": "LOGOUT_URL",
1158
+ "module": "src/env/variables.ts"
1159
+ }
1160
+ },
1161
+ {
1162
+ "kind": "js",
1163
+ "name": "CHANGE_PASSWORD_URL",
1164
+ "declaration": {
1165
+ "name": "CHANGE_PASSWORD_URL",
1166
+ "module": "src/env/variables.ts"
1167
+ }
1168
+ },
1169
+ {
1170
+ "kind": "js",
1171
+ "name": "FORGOT_PASSWORD_URL",
1172
+ "declaration": {
1173
+ "name": "FORGOT_PASSWORD_URL",
1174
+ "module": "src/env/variables.ts"
1175
+ }
1176
+ },
1177
+ {
1178
+ "kind": "js",
1179
+ "name": "RESET_PASSWORD_URL",
1180
+ "declaration": {
1181
+ "name": "RESET_PASSWORD_URL",
1182
+ "module": "src/env/variables.ts"
1183
+ }
1184
+ },
1185
+ {
1186
+ "kind": "js",
1187
+ "name": "SSO_LIST_URL",
1188
+ "declaration": {
1189
+ "name": "SSO_LIST_URL",
1190
+ "module": "src/env/variables.ts"
1191
+ }
1192
+ },
1193
+ {
1194
+ "kind": "js",
1195
+ "name": "SSO_LOGIN_URL",
1196
+ "declaration": {
1197
+ "name": "SSO_LOGIN_URL",
1198
+ "module": "src/env/variables.ts"
1199
+ }
1200
+ },
1201
+ {
1202
+ "kind": "js",
1203
+ "name": "ENVIRONMENT_LEVEL",
1204
+ "declaration": {
1205
+ "name": "ENVIRONMENT_LEVEL",
1206
+ "module": "src/env/variables.ts"
1207
+ }
1208
+ },
1209
+ {
1210
+ "kind": "js",
1211
+ "name": "ACCEPT_TERMS_URL",
1212
+ "declaration": {
1213
+ "name": "ACCEPT_TERMS_URL",
1214
+ "module": "src/env/variables.ts"
1133
1215
  }
1134
1216
  }
1135
1217
  ]
@@ -2749,18 +2831,162 @@
2749
2831
  "exports": [
2750
2832
  {
2751
2833
  "kind": "js",
2752
- "name": "*",
2834
+ "name": "*",
2835
+ "declaration": {
2836
+ "name": "*",
2837
+ "package": "./shortcut-manager"
2838
+ }
2839
+ },
2840
+ {
2841
+ "kind": "js",
2842
+ "name": "*",
2843
+ "declaration": {
2844
+ "name": "*",
2845
+ "package": "./shortcut-listener"
2846
+ }
2847
+ },
2848
+ {
2849
+ "kind": "js",
2850
+ "name": "*",
2851
+ "declaration": {
2852
+ "name": "*",
2853
+ "package": "./shortcut-events"
2854
+ }
2855
+ }
2856
+ ]
2857
+ },
2858
+ {
2859
+ "kind": "javascript-module",
2860
+ "path": "src/shortcut-manager/shortcut-events.ts",
2861
+ "declarations": [
2862
+ {
2863
+ "kind": "variable",
2864
+ "name": "SHORTCUT_BLOCKED_EVENT",
2865
+ "type": {
2866
+ "text": "string"
2867
+ },
2868
+ "default": "'foundation-shortcut-blocked'"
2869
+ },
2870
+ {
2871
+ "kind": "variable",
2872
+ "name": "SHORTCUT_BLOCKED_DEFAULT_TITLE",
2873
+ "type": {
2874
+ "text": "string"
2875
+ },
2876
+ "default": "'Shortcut blocked'"
2877
+ },
2878
+ {
2879
+ "kind": "variable",
2880
+ "name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
2881
+ "type": {
2882
+ "text": "string"
2883
+ },
2884
+ "default": "'This shortcut is currently unavailable in this context.'"
2885
+ },
2886
+ {
2887
+ "kind": "variable",
2888
+ "name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
2889
+ "type": {
2890
+ "text": "string"
2891
+ },
2892
+ "default": "'This shortcut is unavailable while typing in an input field.'"
2893
+ },
2894
+ {
2895
+ "kind": "variable",
2896
+ "name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
2897
+ "type": {
2898
+ "text": "string"
2899
+ },
2900
+ "default": "'Shortcuts are paused.'"
2901
+ },
2902
+ {
2903
+ "kind": "variable",
2904
+ "name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
2905
+ "type": {
2906
+ "text": "string"
2907
+ },
2908
+ "default": "'This shortcut is unavailable in the current focus context.'"
2909
+ },
2910
+ {
2911
+ "kind": "function",
2912
+ "name": "emitShortcutBlockedEvent",
2913
+ "return": {
2914
+ "type": {
2915
+ "text": "void"
2916
+ }
2917
+ },
2918
+ "parameters": [
2919
+ {
2920
+ "name": "detail",
2921
+ "type": {
2922
+ "text": "Omit<ShortcutBlockedEventDetail, 'blockedMessage'> & {\n blockedMessage?: ShortcutBlockedMessage;\n }"
2923
+ }
2924
+ },
2925
+ {
2926
+ "name": "target",
2927
+ "optional": true,
2928
+ "type": {
2929
+ "text": "EventTarget | null"
2930
+ }
2931
+ }
2932
+ ]
2933
+ }
2934
+ ],
2935
+ "exports": [
2936
+ {
2937
+ "kind": "js",
2938
+ "name": "SHORTCUT_BLOCKED_EVENT",
2939
+ "declaration": {
2940
+ "name": "SHORTCUT_BLOCKED_EVENT",
2941
+ "module": "src/shortcut-manager/shortcut-events.ts"
2942
+ }
2943
+ },
2944
+ {
2945
+ "kind": "js",
2946
+ "name": "SHORTCUT_BLOCKED_DEFAULT_TITLE",
2947
+ "declaration": {
2948
+ "name": "SHORTCUT_BLOCKED_DEFAULT_TITLE",
2949
+ "module": "src/shortcut-manager/shortcut-events.ts"
2950
+ }
2951
+ },
2952
+ {
2953
+ "kind": "js",
2954
+ "name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
2955
+ "declaration": {
2956
+ "name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
2957
+ "module": "src/shortcut-manager/shortcut-events.ts"
2958
+ }
2959
+ },
2960
+ {
2961
+ "kind": "js",
2962
+ "name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
2963
+ "declaration": {
2964
+ "name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
2965
+ "module": "src/shortcut-manager/shortcut-events.ts"
2966
+ }
2967
+ },
2968
+ {
2969
+ "kind": "js",
2970
+ "name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
2971
+ "declaration": {
2972
+ "name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
2973
+ "module": "src/shortcut-manager/shortcut-events.ts"
2974
+ }
2975
+ },
2976
+ {
2977
+ "kind": "js",
2978
+ "name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
2753
2979
  "declaration": {
2754
- "name": "*",
2755
- "package": "./shortcut-manager"
2980
+ "name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
2981
+ "module": "src/shortcut-manager/shortcut-events.ts"
2756
2982
  }
2757
2983
  },
2758
2984
  {
2759
2985
  "kind": "js",
2760
- "name": "*",
2986
+ "name": "emitShortcutBlockedEvent",
2761
2987
  "declaration": {
2762
- "name": "*",
2763
- "package": "./shortcut-listener"
2988
+ "name": "emitShortcutBlockedEvent",
2989
+ "module": "src/shortcut-manager/shortcut-events.ts"
2764
2990
  }
2765
2991
  }
2766
2992
  ]
@@ -2799,11 +3025,6 @@
2799
3025
  "privacy": "private",
2800
3026
  "default": "false"
2801
3027
  },
2802
- {
2803
- "kind": "method",
2804
- "name": "setupStateSubscription",
2805
- "privacy": "private"
2806
- },
2807
3028
  {
2808
3029
  "kind": "method",
2809
3030
  "name": "addKeyListener",
@@ -2845,6 +3066,58 @@
2845
3066
  }
2846
3067
  ]
2847
3068
  },
3069
+ {
3070
+ "kind": "method",
3071
+ "name": "getDeepActiveElement",
3072
+ "privacy": "private",
3073
+ "return": {
3074
+ "type": {
3075
+ "text": "Element | null"
3076
+ }
3077
+ }
3078
+ },
3079
+ {
3080
+ "kind": "method",
3081
+ "name": "getEventElement",
3082
+ "privacy": "private",
3083
+ "return": {
3084
+ "type": {
3085
+ "text": "Element | null"
3086
+ }
3087
+ },
3088
+ "parameters": [
3089
+ {
3090
+ "name": "event",
3091
+ "type": {
3092
+ "text": "KeyboardEvent"
3093
+ }
3094
+ }
3095
+ ]
3096
+ },
3097
+ {
3098
+ "kind": "method",
3099
+ "name": "isEditableContext",
3100
+ "privacy": "private",
3101
+ "return": {
3102
+ "type": {
3103
+ "text": "boolean"
3104
+ }
3105
+ },
3106
+ "parameters": [
3107
+ {
3108
+ "name": "event",
3109
+ "type": {
3110
+ "text": "KeyboardEvent"
3111
+ }
3112
+ },
3113
+ {
3114
+ "name": "editableSelector",
3115
+ "type": {
3116
+ "text": "string"
3117
+ }
3118
+ }
3119
+ ]
3120
+ },
2848
3121
  {
2849
3122
  "kind": "method",
2850
3123
  "name": "isInputElement",
@@ -2860,6 +3133,12 @@
2860
3133
  "type": {
2861
3134
  "text": "HTMLElement | null"
2862
3135
  }
3136
+ },
3137
+ {
3138
+ "name": "editableSelector",
3139
+ "type": {
3140
+ "text": "string"
3141
+ }
2863
3142
  }
2864
3143
  ]
2865
3144
  }
@@ -2932,6 +3211,35 @@
2932
3211
  },
2933
3212
  "privacy": "private"
2934
3213
  },
3214
+ {
3215
+ "kind": "field",
3216
+ "name": "executionGuards",
3217
+ "privacy": "private",
3218
+ "default": "new Map<string, () => ShortcutExecutionStatus | boolean>()"
3219
+ },
3220
+ {
3221
+ "kind": "field",
3222
+ "name": "editableContextConfig",
3223
+ "type": {
3224
+ "text": "Required<ShortcutEditableContextConfig>"
3225
+ },
3226
+ "privacy": "private",
3227
+ "default": "{\n ...DEFAULT_SHORTCUT_EDITABLE_CONTEXT_CONFIG,\n }"
3228
+ },
3229
+ {
3230
+ "kind": "field",
3231
+ "name": "editableSelector",
3232
+ "privacy": "private"
3233
+ },
3234
+ {
3235
+ "kind": "field",
3236
+ "name": "blockedMessageConfig",
3237
+ "type": {
3238
+ "text": "Required<ShortcutBlockedMessageConfig>"
3239
+ },
3240
+ "privacy": "private",
3241
+ "default": "{\n ...DEFAULT_SHORTCUT_BLOCKED_MESSAGE_CONFIG,\n }"
3242
+ },
2935
3243
  {
2936
3244
  "kind": "field",
2937
3245
  "name": "isPaused",
@@ -3044,6 +3352,56 @@
3044
3352
  "type": {
3045
3353
  "text": "string"
3046
3354
  }
3355
+ },
3356
+ {
3357
+ "name": "eventTarget",
3358
+ "optional": true,
3359
+ "type": {
3360
+ "text": "EventTarget | null"
3361
+ }
3362
+ }
3363
+ ]
3364
+ },
3365
+ {
3366
+ "kind": "method",
3367
+ "name": "shouldEmitBlockedEvent",
3368
+ "privacy": "private",
3369
+ "return": {
3370
+ "type": {
3371
+ "text": "boolean"
3372
+ }
3373
+ },
3374
+ "parameters": [
3375
+ {
3376
+ "name": "shortcut",
3377
+ "optional": true,
3378
+ "type": {
3379
+ "text": "ShortcutDefinition"
3380
+ }
3381
+ }
3382
+ ]
3383
+ },
3384
+ {
3385
+ "kind": "method",
3386
+ "name": "resolveBlockedMessage",
3387
+ "privacy": "private",
3388
+ "return": {
3389
+ "type": {
3390
+ "text": "ShortcutBlockedMessage"
3391
+ }
3392
+ },
3393
+ "parameters": [
3394
+ {
3395
+ "name": "shortcut",
3396
+ "type": {
3397
+ "text": "ShortcutDefinition | undefined"
3398
+ }
3399
+ },
3400
+ {
3401
+ "name": "fallback",
3402
+ "type": {
3403
+ "text": "ShortcutBlockedMessage"
3404
+ }
3047
3405
  }
3048
3406
  ]
3049
3407
  },
@@ -3067,6 +3425,13 @@
3067
3425
  "type": {
3068
3426
  "text": "string"
3069
3427
  }
3428
+ },
3429
+ {
3430
+ "name": "eventTarget",
3431
+ "optional": true,
3432
+ "type": {
3433
+ "text": "EventTarget | null"
3434
+ }
3070
3435
  }
3071
3436
  ]
3072
3437
  },
@@ -3199,6 +3564,118 @@
3199
3564
  }
3200
3565
  }
3201
3566
  },
3567
+ {
3568
+ "kind": "method",
3569
+ "name": "registerExecutionGuard",
3570
+ "return": {
3571
+ "type": {
3572
+ "text": "void"
3573
+ }
3574
+ },
3575
+ "parameters": [
3576
+ {
3577
+ "name": "id",
3578
+ "type": {
3579
+ "text": "string"
3580
+ }
3581
+ },
3582
+ {
3583
+ "name": "guard",
3584
+ "type": {
3585
+ "text": "() => ShortcutExecutionStatus | boolean"
3586
+ }
3587
+ }
3588
+ ]
3589
+ },
3590
+ {
3591
+ "kind": "method",
3592
+ "name": "unregisterExecutionGuard",
3593
+ "return": {
3594
+ "type": {
3595
+ "text": "void"
3596
+ }
3597
+ },
3598
+ "parameters": [
3599
+ {
3600
+ "name": "id",
3601
+ "type": {
3602
+ "text": "string"
3603
+ }
3604
+ }
3605
+ ]
3606
+ },
3607
+ {
3608
+ "kind": "method",
3609
+ "name": "clearExecutionGuards",
3610
+ "return": {
3611
+ "type": {
3612
+ "text": "void"
3613
+ }
3614
+ }
3615
+ },
3616
+ {
3617
+ "kind": "method",
3618
+ "name": "configureEditableContext",
3619
+ "return": {
3620
+ "type": {
3621
+ "text": "void"
3622
+ }
3623
+ },
3624
+ "parameters": [
3625
+ {
3626
+ "name": "config",
3627
+ "default": "{}",
3628
+ "type": {
3629
+ "text": "ShortcutEditableContextConfig"
3630
+ }
3631
+ }
3632
+ ]
3633
+ },
3634
+ {
3635
+ "kind": "method",
3636
+ "name": "getEditableContextConfig",
3637
+ "return": {
3638
+ "type": {
3639
+ "text": "Required<ShortcutEditableContextConfig>"
3640
+ }
3641
+ }
3642
+ },
3643
+ {
3644
+ "kind": "method",
3645
+ "name": "getEditableSelector",
3646
+ "return": {
3647
+ "type": {
3648
+ "text": "string"
3649
+ }
3650
+ }
3651
+ },
3652
+ {
3653
+ "kind": "method",
3654
+ "name": "configureBlockedMessages",
3655
+ "return": {
3656
+ "type": {
3657
+ "text": "void"
3658
+ }
3659
+ },
3660
+ "parameters": [
3661
+ {
3662
+ "name": "config",
3663
+ "default": "{}",
3664
+ "type": {
3665
+ "text": "ShortcutBlockedMessageConfig"
3666
+ }
3667
+ }
3668
+ ]
3669
+ },
3670
+ {
3671
+ "kind": "method",
3672
+ "name": "getBlockedMessages",
3673
+ "return": {
3674
+ "type": {
3675
+ "text": "Required<ShortcutBlockedMessageConfig>"
3676
+ }
3677
+ }
3678
+ },
3202
3679
  {
3203
3680
  "kind": "method",
3204
3681
  "name": "pause",
@@ -3287,6 +3764,44 @@
3287
3764
  }
3288
3765
  }
3289
3766
  ]
3767
+ },
3768
+ {
3769
+ "kind": "method",
3770
+ "name": "getExecutionStatus",
3771
+ "privacy": "private",
3772
+ "return": {
3773
+ "type": {
3774
+ "text": "ShortcutExecutionStatus"
3775
+ }
3776
+ },
3777
+ "parameters": [
3778
+ {
3779
+ "name": "shortcut",
3780
+ "type": {
3781
+ "text": "ShortcutDefinition"
3782
+ }
3783
+ }
3784
+ ]
3785
+ },
3786
+ {
3787
+ "kind": "method",
3788
+ "name": "getExecutionGuardStatus",
3789
+ "privacy": "private",
3790
+ "return": {
3791
+ "type": {
3792
+ "text": "ShortcutExecutionStatus"
3793
+ }
3794
+ }
3795
+ },
3796
+ {
3797
+ "kind": "method",
3798
+ "name": "refreshEditableSelector",
3799
+ "privacy": "private",
3800
+ "return": {
3801
+ "type": {
3802
+ "text": "void"
3803
+ }
3804
+ }
3290
3805
  }
3291
3806
  ]
3292
3807
  },