@genesislcap/foundation-utils 15.1.0 → 15.2.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,202 +450,53 @@
450
450
  },
451
451
  {
452
452
  "kind": "javascript-module",
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
- ],
453
+ "path": "src/decorators/index.ts",
454
+ "declarations": [],
529
455
  "exports": [
530
456
  {
531
457
  "kind": "js",
532
- "name": "assureDesignSystem",
533
- "declaration": {
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",
458
+ "name": "*",
549
459
  "declaration": {
550
- "name": "getCurrentDesignSystemPrefix",
551
- "module": "src/design-system/design-system.ts"
460
+ "name": "*",
461
+ "package": "./renderOnChange"
552
462
  }
553
463
  }
554
464
  ]
555
465
  },
556
466
  {
557
467
  "kind": "javascript-module",
558
- "path": "src/design-system/editable-elements.ts",
468
+ "path": "src/decorators/renderOnChange.ts",
559
469
  "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
- },
578
470
  {
579
471
  "kind": "function",
580
- "name": "buildEditableElementSelector",
581
- "return": {
582
- "type": {
583
- "text": "string"
584
- }
585
- },
472
+ "name": "renderOnChange",
586
473
  "parameters": [
587
474
  {
588
- "name": "designSystems",
475
+ "name": "target",
589
476
  "type": {
590
- "text": "readonly EditableDesignSystemPrefix[]"
591
- }
477
+ "text": "FASTElement & { render(): void }"
478
+ },
479
+ "description": "The target to define the property change handler on."
592
480
  },
593
481
  {
594
- "name": "customEditableSelectors",
595
- "default": "[]",
482
+ "name": "name",
596
483
  "type": {
597
- "text": "readonly string[]"
598
- }
484
+ "text": "string"
485
+ },
486
+ "description": "The property name."
599
487
  }
600
- ]
488
+ ],
489
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
490
+ "privacy": "public"
601
491
  }
602
492
  ],
603
493
  "exports": [
604
494
  {
605
495
  "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": "*",
496
+ "name": "renderOnChange",
646
497
  "declaration": {
647
- "name": "*",
648
- "package": "./editable-elements"
498
+ "name": "renderOnChange",
499
+ "module": "src/decorators/renderOnChange.ts"
649
500
  }
650
501
  }
651
502
  ]
@@ -1189,53 +1040,202 @@
1189
1040
  },
1190
1041
  {
1191
1042
  "kind": "javascript-module",
1192
- "path": "src/decorators/index.ts",
1193
- "declarations": [],
1043
+ "path": "src/design-system/design-system.ts",
1044
+ "declarations": [
1045
+ {
1046
+ "kind": "function",
1047
+ "name": "assureDesignSystem",
1048
+ "return": {
1049
+ "type": {
1050
+ "text": "DesignSystemModule"
1051
+ }
1052
+ },
1053
+ "parameters": [
1054
+ {
1055
+ "name": "module",
1056
+ "type": {
1057
+ "text": "DesignSystemModule"
1058
+ }
1059
+ }
1060
+ ],
1061
+ "description": "assureDesignSystem.",
1062
+ "privacy": "public"
1063
+ },
1064
+ {
1065
+ "kind": "function",
1066
+ "name": "getCurrentDesignSystem",
1067
+ "return": {
1068
+ "type": {
1069
+ "text": ""
1070
+ }
1071
+ },
1072
+ "parameters": [
1073
+ {
1074
+ "name": "element",
1075
+ "type": {
1076
+ "text": "HTMLElement"
1077
+ },
1078
+ "description": "The starting HTML element"
1079
+ },
1080
+ {
1081
+ "name": "fallbackPrefix",
1082
+ "type": {
1083
+ "text": "string"
1084
+ },
1085
+ "description": "The prefix to fallback to if the provider is not available"
1086
+ }
1087
+ ],
1088
+ "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.",
1089
+ "privacy": "public"
1090
+ },
1091
+ {
1092
+ "kind": "function",
1093
+ "name": "getCurrentDesignSystemPrefix",
1094
+ "return": {
1095
+ "type": {
1096
+ "text": ""
1097
+ }
1098
+ },
1099
+ "parameters": [
1100
+ {
1101
+ "name": "element",
1102
+ "type": {
1103
+ "text": "HTMLElement"
1104
+ },
1105
+ "description": "The starting HTML element"
1106
+ },
1107
+ {
1108
+ "name": "fallbackPrefix",
1109
+ "type": {
1110
+ "text": "string"
1111
+ },
1112
+ "description": "The prefix to fallback to if the provider is not available"
1113
+ }
1114
+ ],
1115
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1116
+ "privacy": "public"
1117
+ }
1118
+ ],
1194
1119
  "exports": [
1195
1120
  {
1196
1121
  "kind": "js",
1197
- "name": "*",
1122
+ "name": "assureDesignSystem",
1198
1123
  "declaration": {
1199
- "name": "*",
1200
- "package": "./renderOnChange"
1124
+ "name": "assureDesignSystem",
1125
+ "module": "src/design-system/design-system.ts"
1126
+ }
1127
+ },
1128
+ {
1129
+ "kind": "js",
1130
+ "name": "getCurrentDesignSystem",
1131
+ "declaration": {
1132
+ "name": "getCurrentDesignSystem",
1133
+ "module": "src/design-system/design-system.ts"
1134
+ }
1135
+ },
1136
+ {
1137
+ "kind": "js",
1138
+ "name": "getCurrentDesignSystemPrefix",
1139
+ "declaration": {
1140
+ "name": "getCurrentDesignSystemPrefix",
1141
+ "module": "src/design-system/design-system.ts"
1201
1142
  }
1202
1143
  }
1203
1144
  ]
1204
1145
  },
1205
1146
  {
1206
1147
  "kind": "javascript-module",
1207
- "path": "src/decorators/renderOnChange.ts",
1148
+ "path": "src/design-system/editable-elements.ts",
1208
1149
  "declarations": [
1150
+ {
1151
+ "kind": "variable",
1152
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1153
+ "type": {
1154
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
1155
+ },
1156
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
1157
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
1158
+ },
1159
+ {
1160
+ "kind": "variable",
1161
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1162
+ "type": {
1163
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
1164
+ },
1165
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
1166
+ "description": "Design-system specific editable host selectors."
1167
+ },
1209
1168
  {
1210
1169
  "kind": "function",
1211
- "name": "renderOnChange",
1170
+ "name": "buildEditableElementSelector",
1171
+ "return": {
1172
+ "type": {
1173
+ "text": "string"
1174
+ }
1175
+ },
1212
1176
  "parameters": [
1213
1177
  {
1214
- "name": "target",
1178
+ "name": "designSystems",
1215
1179
  "type": {
1216
- "text": "FASTElement & { render(): void }"
1217
- },
1218
- "description": "The target to define the property change handler on."
1180
+ "text": "readonly EditableDesignSystemPrefix[]"
1181
+ }
1219
1182
  },
1220
1183
  {
1221
- "name": "name",
1184
+ "name": "customEditableSelectors",
1185
+ "default": "[]",
1222
1186
  "type": {
1223
- "text": "string"
1224
- },
1225
- "description": "The property name."
1187
+ "text": "readonly string[]"
1188
+ }
1226
1189
  }
1227
- ],
1228
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1229
- "privacy": "public"
1190
+ ]
1230
1191
  }
1231
1192
  ],
1232
1193
  "exports": [
1233
1194
  {
1234
1195
  "kind": "js",
1235
- "name": "renderOnChange",
1196
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1236
1197
  "declaration": {
1237
- "name": "renderOnChange",
1238
- "module": "src/decorators/renderOnChange.ts"
1198
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1199
+ "module": "src/design-system/editable-elements.ts"
1200
+ }
1201
+ },
1202
+ {
1203
+ "kind": "js",
1204
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1205
+ "declaration": {
1206
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1207
+ "module": "src/design-system/editable-elements.ts"
1208
+ }
1209
+ },
1210
+ {
1211
+ "kind": "js",
1212
+ "name": "buildEditableElementSelector",
1213
+ "declaration": {
1214
+ "name": "buildEditableElementSelector",
1215
+ "module": "src/design-system/editable-elements.ts"
1216
+ }
1217
+ }
1218
+ ]
1219
+ },
1220
+ {
1221
+ "kind": "javascript-module",
1222
+ "path": "src/design-system/index.ts",
1223
+ "declarations": [],
1224
+ "exports": [
1225
+ {
1226
+ "kind": "js",
1227
+ "name": "*",
1228
+ "declaration": {
1229
+ "name": "*",
1230
+ "package": "./design-system"
1231
+ }
1232
+ },
1233
+ {
1234
+ "kind": "js",
1235
+ "name": "*",
1236
+ "declaration": {
1237
+ "name": "*",
1238
+ "package": "./editable-elements"
1239
1239
  }
1240
1240
  }
1241
1241
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "15.1.0",
4
+ "version": "15.2.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": "15.1.0",
33
- "@genesislcap/genx": "15.1.0",
34
- "@genesislcap/rollup-builder": "15.1.0",
35
- "@genesislcap/ts-builder": "15.1.0",
36
- "@genesislcap/uvu-playwright-builder": "15.1.0",
37
- "@genesislcap/vite-builder": "15.1.0",
38
- "@genesislcap/webpack-builder": "15.1.0",
32
+ "@genesislcap/foundation-testing": "15.2.1",
33
+ "@genesislcap/genx": "15.2.1",
34
+ "@genesislcap/rollup-builder": "15.2.1",
35
+ "@genesislcap/ts-builder": "15.2.1",
36
+ "@genesislcap/uvu-playwright-builder": "15.2.1",
37
+ "@genesislcap/vite-builder": "15.2.1",
38
+ "@genesislcap/webpack-builder": "15.2.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.1.0",
43
- "@genesislcap/foundation-logger": "15.1.0",
42
+ "@genesislcap/expression-builder": "15.2.1",
43
+ "@genesislcap/foundation-logger": "15.2.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": "f841e54c9b682f3cf01448a9db79d67a66b88c84"
61
+ "gitHead": "3917f3dc0bb5f4487bd30b37360fa0cddda92f0c"
62
62
  }