@genesislcap/foundation-utils 14.428.0 → 14.428.1

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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +191 -191
  2. package/package.json +11 -11
@@ -450,53 +450,202 @@
450
450
  },
451
451
  {
452
452
  "kind": "javascript-module",
453
- "path": "src/decorators/index.ts",
454
- "declarations": [],
453
+ "path": "src/design-system/design-system.ts",
454
+ "declarations": [
455
+ {
456
+ "kind": "function",
457
+ "name": "assureDesignSystem",
458
+ "return": {
459
+ "type": {
460
+ "text": "DesignSystemModule"
461
+ }
462
+ },
463
+ "parameters": [
464
+ {
465
+ "name": "module",
466
+ "type": {
467
+ "text": "DesignSystemModule"
468
+ }
469
+ }
470
+ ],
471
+ "description": "assureDesignSystem.",
472
+ "privacy": "public"
473
+ },
474
+ {
475
+ "kind": "function",
476
+ "name": "getCurrentDesignSystem",
477
+ "return": {
478
+ "type": {
479
+ "text": ""
480
+ }
481
+ },
482
+ "parameters": [
483
+ {
484
+ "name": "element",
485
+ "type": {
486
+ "text": "HTMLElement"
487
+ },
488
+ "description": "The starting HTML element"
489
+ },
490
+ {
491
+ "name": "fallbackPrefix",
492
+ "type": {
493
+ "text": "string"
494
+ },
495
+ "description": "The prefix to fallback to if the provider is not available"
496
+ }
497
+ ],
498
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
499
+ "privacy": "public"
500
+ },
501
+ {
502
+ "kind": "function",
503
+ "name": "getCurrentDesignSystemPrefix",
504
+ "return": {
505
+ "type": {
506
+ "text": ""
507
+ }
508
+ },
509
+ "parameters": [
510
+ {
511
+ "name": "element",
512
+ "type": {
513
+ "text": "HTMLElement"
514
+ },
515
+ "description": "The starting HTML element"
516
+ },
517
+ {
518
+ "name": "fallbackPrefix",
519
+ "type": {
520
+ "text": "string"
521
+ },
522
+ "description": "The prefix to fallback to if the provider is not available"
523
+ }
524
+ ],
525
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
526
+ "privacy": "public"
527
+ }
528
+ ],
455
529
  "exports": [
456
530
  {
457
531
  "kind": "js",
458
- "name": "*",
532
+ "name": "assureDesignSystem",
459
533
  "declaration": {
460
- "name": "*",
461
- "package": "./renderOnChange"
534
+ "name": "assureDesignSystem",
535
+ "module": "src/design-system/design-system.ts"
536
+ }
537
+ },
538
+ {
539
+ "kind": "js",
540
+ "name": "getCurrentDesignSystem",
541
+ "declaration": {
542
+ "name": "getCurrentDesignSystem",
543
+ "module": "src/design-system/design-system.ts"
544
+ }
545
+ },
546
+ {
547
+ "kind": "js",
548
+ "name": "getCurrentDesignSystemPrefix",
549
+ "declaration": {
550
+ "name": "getCurrentDesignSystemPrefix",
551
+ "module": "src/design-system/design-system.ts"
462
552
  }
463
553
  }
464
554
  ]
465
555
  },
466
556
  {
467
557
  "kind": "javascript-module",
468
- "path": "src/decorators/renderOnChange.ts",
558
+ "path": "src/design-system/editable-elements.ts",
469
559
  "declarations": [
560
+ {
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 EditableDesignSystemPrefix,\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
+ },
470
578
  {
471
579
  "kind": "function",
472
- "name": "renderOnChange",
580
+ "name": "buildEditableElementSelector",
581
+ "return": {
582
+ "type": {
583
+ "text": "string"
584
+ }
585
+ },
473
586
  "parameters": [
474
587
  {
475
- "name": "target",
588
+ "name": "designSystems",
476
589
  "type": {
477
- "text": "FASTElement & { render(): void }"
478
- },
479
- "description": "The target to define the property change handler on."
590
+ "text": "readonly EditableDesignSystemPrefix[]"
591
+ }
480
592
  },
481
593
  {
482
- "name": "name",
594
+ "name": "customEditableSelectors",
595
+ "default": "[]",
483
596
  "type": {
484
- "text": "string"
485
- },
486
- "description": "The property name."
597
+ "text": "readonly string[]"
598
+ }
487
599
  }
488
- ],
489
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
490
- "privacy": "public"
600
+ ]
491
601
  }
492
602
  ],
493
603
  "exports": [
494
604
  {
495
605
  "kind": "js",
496
- "name": "renderOnChange",
606
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
497
607
  "declaration": {
498
- "name": "renderOnChange",
499
- "module": "src/decorators/renderOnChange.ts"
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"
500
649
  }
501
650
  }
502
651
  ]
@@ -1016,202 +1165,53 @@
1016
1165
  },
1017
1166
  {
1018
1167
  "kind": "javascript-module",
1019
- "path": "src/design-system/design-system.ts",
1020
- "declarations": [
1021
- {
1022
- "kind": "function",
1023
- "name": "assureDesignSystem",
1024
- "return": {
1025
- "type": {
1026
- "text": "DesignSystemModule"
1027
- }
1028
- },
1029
- "parameters": [
1030
- {
1031
- "name": "module",
1032
- "type": {
1033
- "text": "DesignSystemModule"
1034
- }
1035
- }
1036
- ],
1037
- "description": "assureDesignSystem.",
1038
- "privacy": "public"
1039
- },
1040
- {
1041
- "kind": "function",
1042
- "name": "getCurrentDesignSystem",
1043
- "return": {
1044
- "type": {
1045
- "text": ""
1046
- }
1047
- },
1048
- "parameters": [
1049
- {
1050
- "name": "element",
1051
- "type": {
1052
- "text": "HTMLElement"
1053
- },
1054
- "description": "The starting HTML element"
1055
- },
1056
- {
1057
- "name": "fallbackPrefix",
1058
- "type": {
1059
- "text": "string"
1060
- },
1061
- "description": "The prefix to fallback to if the provider is not available"
1062
- }
1063
- ],
1064
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1065
- "privacy": "public"
1066
- },
1067
- {
1068
- "kind": "function",
1069
- "name": "getCurrentDesignSystemPrefix",
1070
- "return": {
1071
- "type": {
1072
- "text": ""
1073
- }
1074
- },
1075
- "parameters": [
1076
- {
1077
- "name": "element",
1078
- "type": {
1079
- "text": "HTMLElement"
1080
- },
1081
- "description": "The starting HTML element"
1082
- },
1083
- {
1084
- "name": "fallbackPrefix",
1085
- "type": {
1086
- "text": "string"
1087
- },
1088
- "description": "The prefix to fallback to if the provider is not available"
1089
- }
1090
- ],
1091
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1092
- "privacy": "public"
1093
- }
1094
- ],
1168
+ "path": "src/decorators/index.ts",
1169
+ "declarations": [],
1095
1170
  "exports": [
1096
1171
  {
1097
1172
  "kind": "js",
1098
- "name": "assureDesignSystem",
1099
- "declaration": {
1100
- "name": "assureDesignSystem",
1101
- "module": "src/design-system/design-system.ts"
1102
- }
1103
- },
1104
- {
1105
- "kind": "js",
1106
- "name": "getCurrentDesignSystem",
1107
- "declaration": {
1108
- "name": "getCurrentDesignSystem",
1109
- "module": "src/design-system/design-system.ts"
1110
- }
1111
- },
1112
- {
1113
- "kind": "js",
1114
- "name": "getCurrentDesignSystemPrefix",
1173
+ "name": "*",
1115
1174
  "declaration": {
1116
- "name": "getCurrentDesignSystemPrefix",
1117
- "module": "src/design-system/design-system.ts"
1175
+ "name": "*",
1176
+ "package": "./renderOnChange"
1118
1177
  }
1119
1178
  }
1120
1179
  ]
1121
1180
  },
1122
1181
  {
1123
1182
  "kind": "javascript-module",
1124
- "path": "src/design-system/editable-elements.ts",
1183
+ "path": "src/decorators/renderOnChange.ts",
1125
1184
  "declarations": [
1126
- {
1127
- "kind": "variable",
1128
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1129
- "type": {
1130
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
1131
- },
1132
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
1133
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
1134
- },
1135
- {
1136
- "kind": "variable",
1137
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1138
- "type": {
1139
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
1140
- },
1141
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
1142
- "description": "Design-system specific editable host selectors."
1143
- },
1144
1185
  {
1145
1186
  "kind": "function",
1146
- "name": "buildEditableElementSelector",
1147
- "return": {
1148
- "type": {
1149
- "text": "string"
1150
- }
1151
- },
1187
+ "name": "renderOnChange",
1152
1188
  "parameters": [
1153
1189
  {
1154
- "name": "designSystems",
1190
+ "name": "target",
1155
1191
  "type": {
1156
- "text": "readonly EditableDesignSystemPrefix[]"
1157
- }
1192
+ "text": "FASTElement & { render(): void }"
1193
+ },
1194
+ "description": "The target to define the property change handler on."
1158
1195
  },
1159
1196
  {
1160
- "name": "customEditableSelectors",
1161
- "default": "[]",
1197
+ "name": "name",
1162
1198
  "type": {
1163
- "text": "readonly string[]"
1164
- }
1199
+ "text": "string"
1200
+ },
1201
+ "description": "The property name."
1165
1202
  }
1166
- ]
1203
+ ],
1204
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1205
+ "privacy": "public"
1167
1206
  }
1168
1207
  ],
1169
1208
  "exports": [
1170
1209
  {
1171
1210
  "kind": "js",
1172
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1173
- "declaration": {
1174
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1175
- "module": "src/design-system/editable-elements.ts"
1176
- }
1177
- },
1178
- {
1179
- "kind": "js",
1180
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1181
- "declaration": {
1182
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1183
- "module": "src/design-system/editable-elements.ts"
1184
- }
1185
- },
1186
- {
1187
- "kind": "js",
1188
- "name": "buildEditableElementSelector",
1189
- "declaration": {
1190
- "name": "buildEditableElementSelector",
1191
- "module": "src/design-system/editable-elements.ts"
1192
- }
1193
- }
1194
- ]
1195
- },
1196
- {
1197
- "kind": "javascript-module",
1198
- "path": "src/design-system/index.ts",
1199
- "declarations": [],
1200
- "exports": [
1201
- {
1202
- "kind": "js",
1203
- "name": "*",
1204
- "declaration": {
1205
- "name": "*",
1206
- "package": "./design-system"
1207
- }
1208
- },
1209
- {
1210
- "kind": "js",
1211
- "name": "*",
1211
+ "name": "renderOnChange",
1212
1212
  "declaration": {
1213
- "name": "*",
1214
- "package": "./editable-elements"
1213
+ "name": "renderOnChange",
1214
+ "module": "src/decorators/renderOnChange.ts"
1215
1215
  }
1216
1216
  }
1217
1217
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.428.0",
4
+ "version": "14.428.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.428.0",
33
- "@genesislcap/genx": "14.428.0",
34
- "@genesislcap/rollup-builder": "14.428.0",
35
- "@genesislcap/ts-builder": "14.428.0",
36
- "@genesislcap/uvu-playwright-builder": "14.428.0",
37
- "@genesislcap/vite-builder": "14.428.0",
38
- "@genesislcap/webpack-builder": "14.428.0",
32
+ "@genesislcap/foundation-testing": "14.428.1",
33
+ "@genesislcap/genx": "14.428.1",
34
+ "@genesislcap/rollup-builder": "14.428.1",
35
+ "@genesislcap/ts-builder": "14.428.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.428.1",
37
+ "@genesislcap/vite-builder": "14.428.1",
38
+ "@genesislcap/webpack-builder": "14.428.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.428.0",
43
- "@genesislcap/foundation-logger": "14.428.0",
42
+ "@genesislcap/expression-builder": "14.428.1",
43
+ "@genesislcap/foundation-logger": "14.428.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "e43acca8a6393d0f3d243d4fd3625457c9b6a8e7"
61
+ "gitHead": "d0e41cc5c5065743cafe34d97ccf4a83480436f1"
62
62
  }