@genesislcap/foundation-utils 15.66.0 → 15.67.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.
@@ -260,202 +260,53 @@
260
260
  },
261
261
  {
262
262
  "kind": "javascript-module",
263
- "path": "src/design-system/design-system.ts",
264
- "declarations": [
265
- {
266
- "kind": "function",
267
- "name": "assureDesignSystem",
268
- "return": {
269
- "type": {
270
- "text": "DesignSystemModule"
271
- }
272
- },
273
- "parameters": [
274
- {
275
- "name": "module",
276
- "type": {
277
- "text": "DesignSystemModule"
278
- }
279
- }
280
- ],
281
- "description": "assureDesignSystem.",
282
- "privacy": "public"
283
- },
284
- {
285
- "kind": "function",
286
- "name": "getCurrentDesignSystem",
287
- "return": {
288
- "type": {
289
- "text": ""
290
- }
291
- },
292
- "parameters": [
293
- {
294
- "name": "element",
295
- "type": {
296
- "text": "HTMLElement"
297
- },
298
- "description": "The starting HTML element"
299
- },
300
- {
301
- "name": "fallbackPrefix",
302
- "type": {
303
- "text": "string"
304
- },
305
- "description": "The prefix to fallback to if the provider is not available"
306
- }
307
- ],
308
- "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.",
309
- "privacy": "public"
310
- },
311
- {
312
- "kind": "function",
313
- "name": "getCurrentDesignSystemPrefix",
314
- "return": {
315
- "type": {
316
- "text": ""
317
- }
318
- },
319
- "parameters": [
320
- {
321
- "name": "element",
322
- "type": {
323
- "text": "HTMLElement"
324
- },
325
- "description": "The starting HTML element"
326
- },
327
- {
328
- "name": "fallbackPrefix",
329
- "type": {
330
- "text": "string"
331
- },
332
- "description": "The prefix to fallback to if the provider is not available"
333
- }
334
- ],
335
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
336
- "privacy": "public"
337
- }
338
- ],
263
+ "path": "src/decorators/index.ts",
264
+ "declarations": [],
339
265
  "exports": [
340
266
  {
341
267
  "kind": "js",
342
- "name": "assureDesignSystem",
343
- "declaration": {
344
- "name": "assureDesignSystem",
345
- "module": "src/design-system/design-system.ts"
346
- }
347
- },
348
- {
349
- "kind": "js",
350
- "name": "getCurrentDesignSystem",
351
- "declaration": {
352
- "name": "getCurrentDesignSystem",
353
- "module": "src/design-system/design-system.ts"
354
- }
355
- },
356
- {
357
- "kind": "js",
358
- "name": "getCurrentDesignSystemPrefix",
268
+ "name": "*",
359
269
  "declaration": {
360
- "name": "getCurrentDesignSystemPrefix",
361
- "module": "src/design-system/design-system.ts"
270
+ "name": "*",
271
+ "package": "./renderOnChange"
362
272
  }
363
273
  }
364
274
  ]
365
275
  },
366
276
  {
367
277
  "kind": "javascript-module",
368
- "path": "src/design-system/editable-elements.ts",
278
+ "path": "src/decorators/renderOnChange.ts",
369
279
  "declarations": [
370
- {
371
- "kind": "variable",
372
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
373
- "type": {
374
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
375
- },
376
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
377
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
378
- },
379
- {
380
- "kind": "variable",
381
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
382
- "type": {
383
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
384
- },
385
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
386
- "description": "Design-system specific editable host selectors."
387
- },
388
280
  {
389
281
  "kind": "function",
390
- "name": "buildEditableElementSelector",
391
- "return": {
392
- "type": {
393
- "text": "string"
394
- }
395
- },
282
+ "name": "renderOnChange",
396
283
  "parameters": [
397
284
  {
398
- "name": "designSystems",
285
+ "name": "target",
399
286
  "type": {
400
- "text": "readonly EditableDesignSystemPrefix[]"
401
- }
287
+ "text": "FASTElement & { render(): void }"
288
+ },
289
+ "description": "The target to define the property change handler on."
402
290
  },
403
291
  {
404
- "name": "customEditableSelectors",
405
- "default": "[]",
292
+ "name": "name",
406
293
  "type": {
407
- "text": "readonly string[]"
408
- }
294
+ "text": "string"
295
+ },
296
+ "description": "The property name."
409
297
  }
410
- ]
298
+ ],
299
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
300
+ "privacy": "public"
411
301
  }
412
302
  ],
413
303
  "exports": [
414
304
  {
415
305
  "kind": "js",
416
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
417
- "declaration": {
418
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
419
- "module": "src/design-system/editable-elements.ts"
420
- }
421
- },
422
- {
423
- "kind": "js",
424
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
425
- "declaration": {
426
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
427
- "module": "src/design-system/editable-elements.ts"
428
- }
429
- },
430
- {
431
- "kind": "js",
432
- "name": "buildEditableElementSelector",
433
- "declaration": {
434
- "name": "buildEditableElementSelector",
435
- "module": "src/design-system/editable-elements.ts"
436
- }
437
- }
438
- ]
439
- },
440
- {
441
- "kind": "javascript-module",
442
- "path": "src/design-system/index.ts",
443
- "declarations": [],
444
- "exports": [
445
- {
446
- "kind": "js",
447
- "name": "*",
448
- "declaration": {
449
- "name": "*",
450
- "package": "./design-system"
451
- }
452
- },
453
- {
454
- "kind": "js",
455
- "name": "*",
306
+ "name": "renderOnChange",
456
307
  "declaration": {
457
- "name": "*",
458
- "package": "./editable-elements"
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
459
310
  }
460
311
  }
461
312
  ]
@@ -681,59 +532,6 @@
681
532
  }
682
533
  ]
683
534
  },
684
- {
685
- "kind": "javascript-module",
686
- "path": "src/decorators/index.ts",
687
- "declarations": [],
688
- "exports": [
689
- {
690
- "kind": "js",
691
- "name": "*",
692
- "declaration": {
693
- "name": "*",
694
- "package": "./renderOnChange"
695
- }
696
- }
697
- ]
698
- },
699
- {
700
- "kind": "javascript-module",
701
- "path": "src/decorators/renderOnChange.ts",
702
- "declarations": [
703
- {
704
- "kind": "function",
705
- "name": "renderOnChange",
706
- "parameters": [
707
- {
708
- "name": "target",
709
- "type": {
710
- "text": "FASTElement & { render(): void }"
711
- },
712
- "description": "The target to define the property change handler on."
713
- },
714
- {
715
- "name": "name",
716
- "type": {
717
- "text": "string"
718
- },
719
- "description": "The property name."
720
- }
721
- ],
722
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
723
- "privacy": "public"
724
- }
725
- ],
726
- "exports": [
727
- {
728
- "kind": "js",
729
- "name": "renderOnChange",
730
- "declaration": {
731
- "name": "renderOnChange",
732
- "module": "src/decorators/renderOnChange.ts"
733
- }
734
- }
735
- ]
736
- },
737
535
  {
738
536
  "kind": "javascript-module",
739
537
  "path": "src/encoding/index.ts",
@@ -1248,6 +1046,208 @@
1248
1046
  }
1249
1047
  ]
1250
1048
  },
1049
+ {
1050
+ "kind": "javascript-module",
1051
+ "path": "src/design-system/design-system.ts",
1052
+ "declarations": [
1053
+ {
1054
+ "kind": "function",
1055
+ "name": "assureDesignSystem",
1056
+ "return": {
1057
+ "type": {
1058
+ "text": "DesignSystemModule"
1059
+ }
1060
+ },
1061
+ "parameters": [
1062
+ {
1063
+ "name": "module",
1064
+ "type": {
1065
+ "text": "DesignSystemModule"
1066
+ }
1067
+ }
1068
+ ],
1069
+ "description": "assureDesignSystem.",
1070
+ "privacy": "public"
1071
+ },
1072
+ {
1073
+ "kind": "function",
1074
+ "name": "getCurrentDesignSystem",
1075
+ "return": {
1076
+ "type": {
1077
+ "text": ""
1078
+ }
1079
+ },
1080
+ "parameters": [
1081
+ {
1082
+ "name": "element",
1083
+ "type": {
1084
+ "text": "HTMLElement"
1085
+ },
1086
+ "description": "The starting HTML element"
1087
+ },
1088
+ {
1089
+ "name": "fallbackPrefix",
1090
+ "type": {
1091
+ "text": "string"
1092
+ },
1093
+ "description": "The prefix to fallback to if the provider is not available"
1094
+ }
1095
+ ],
1096
+ "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.",
1097
+ "privacy": "public"
1098
+ },
1099
+ {
1100
+ "kind": "function",
1101
+ "name": "getCurrentDesignSystemPrefix",
1102
+ "return": {
1103
+ "type": {
1104
+ "text": ""
1105
+ }
1106
+ },
1107
+ "parameters": [
1108
+ {
1109
+ "name": "element",
1110
+ "type": {
1111
+ "text": "HTMLElement"
1112
+ },
1113
+ "description": "The starting HTML element"
1114
+ },
1115
+ {
1116
+ "name": "fallbackPrefix",
1117
+ "type": {
1118
+ "text": "string"
1119
+ },
1120
+ "description": "The prefix to fallback to if the provider is not available"
1121
+ }
1122
+ ],
1123
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1124
+ "privacy": "public"
1125
+ }
1126
+ ],
1127
+ "exports": [
1128
+ {
1129
+ "kind": "js",
1130
+ "name": "assureDesignSystem",
1131
+ "declaration": {
1132
+ "name": "assureDesignSystem",
1133
+ "module": "src/design-system/design-system.ts"
1134
+ }
1135
+ },
1136
+ {
1137
+ "kind": "js",
1138
+ "name": "getCurrentDesignSystem",
1139
+ "declaration": {
1140
+ "name": "getCurrentDesignSystem",
1141
+ "module": "src/design-system/design-system.ts"
1142
+ }
1143
+ },
1144
+ {
1145
+ "kind": "js",
1146
+ "name": "getCurrentDesignSystemPrefix",
1147
+ "declaration": {
1148
+ "name": "getCurrentDesignSystemPrefix",
1149
+ "module": "src/design-system/design-system.ts"
1150
+ }
1151
+ }
1152
+ ]
1153
+ },
1154
+ {
1155
+ "kind": "javascript-module",
1156
+ "path": "src/design-system/editable-elements.ts",
1157
+ "declarations": [
1158
+ {
1159
+ "kind": "variable",
1160
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1161
+ "type": {
1162
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
1163
+ },
1164
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
1165
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
1166
+ },
1167
+ {
1168
+ "kind": "variable",
1169
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1170
+ "type": {
1171
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
1172
+ },
1173
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
1174
+ "description": "Design-system specific editable host selectors."
1175
+ },
1176
+ {
1177
+ "kind": "function",
1178
+ "name": "buildEditableElementSelector",
1179
+ "return": {
1180
+ "type": {
1181
+ "text": "string"
1182
+ }
1183
+ },
1184
+ "parameters": [
1185
+ {
1186
+ "name": "designSystems",
1187
+ "type": {
1188
+ "text": "readonly EditableDesignSystemPrefix[]"
1189
+ }
1190
+ },
1191
+ {
1192
+ "name": "customEditableSelectors",
1193
+ "default": "[]",
1194
+ "type": {
1195
+ "text": "readonly string[]"
1196
+ }
1197
+ }
1198
+ ]
1199
+ }
1200
+ ],
1201
+ "exports": [
1202
+ {
1203
+ "kind": "js",
1204
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1205
+ "declaration": {
1206
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1207
+ "module": "src/design-system/editable-elements.ts"
1208
+ }
1209
+ },
1210
+ {
1211
+ "kind": "js",
1212
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1213
+ "declaration": {
1214
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1215
+ "module": "src/design-system/editable-elements.ts"
1216
+ }
1217
+ },
1218
+ {
1219
+ "kind": "js",
1220
+ "name": "buildEditableElementSelector",
1221
+ "declaration": {
1222
+ "name": "buildEditableElementSelector",
1223
+ "module": "src/design-system/editable-elements.ts"
1224
+ }
1225
+ }
1226
+ ]
1227
+ },
1228
+ {
1229
+ "kind": "javascript-module",
1230
+ "path": "src/design-system/index.ts",
1231
+ "declarations": [],
1232
+ "exports": [
1233
+ {
1234
+ "kind": "js",
1235
+ "name": "*",
1236
+ "declaration": {
1237
+ "name": "*",
1238
+ "package": "./design-system"
1239
+ }
1240
+ },
1241
+ {
1242
+ "kind": "js",
1243
+ "name": "*",
1244
+ "declaration": {
1245
+ "name": "*",
1246
+ "package": "./editable-elements"
1247
+ }
1248
+ }
1249
+ ]
1250
+ },
1251
1251
  {
1252
1252
  "kind": "javascript-module",
1253
1253
  "path": "src/error/errorMap.ts",
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.66.0",
4
+ "version": "15.67.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,17 +29,17 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.66.0",
33
- "@genesislcap/genx": "15.66.0",
34
- "@genesislcap/ts-builder": "15.66.0",
35
- "@genesislcap/uvu-playwright-builder": "15.66.0",
36
- "@genesislcap/vite-builder": "15.66.0",
37
- "@genesislcap/webpack-builder": "15.66.0",
32
+ "@genesislcap/foundation-testing": "15.67.0",
33
+ "@genesislcap/genx": "15.67.0",
34
+ "@genesislcap/ts-builder": "15.67.0",
35
+ "@genesislcap/uvu-playwright-builder": "15.67.0",
36
+ "@genesislcap/vite-builder": "15.67.0",
37
+ "@genesislcap/webpack-builder": "15.67.0",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.66.0",
42
- "@genesislcap/foundation-logger": "15.66.0",
41
+ "@genesislcap/expression-builder": "15.67.0",
42
+ "@genesislcap/foundation-logger": "15.67.0",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",