@genesislcap/foundation-utils 14.433.0 → 14.433.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 +238 -238
  2. package/package.json +11 -11
@@ -211,83 +211,186 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/decorators/index.ts",
215
- "declarations": [],
216
- "exports": [
217
- {
218
- "kind": "js",
219
- "name": "*",
220
- "declaration": {
221
- "name": "*",
222
- "package": "./renderOnChange"
223
- }
224
- }
225
- ]
226
- },
227
- {
228
- "kind": "javascript-module",
229
- "path": "src/decorators/renderOnChange.ts",
214
+ "path": "src/design-system/design-system.ts",
230
215
  "declarations": [
231
216
  {
232
217
  "kind": "function",
233
- "name": "renderOnChange",
218
+ "name": "assureDesignSystem",
219
+ "return": {
220
+ "type": {
221
+ "text": "DesignSystemModule"
222
+ }
223
+ },
234
224
  "parameters": [
235
225
  {
236
- "name": "target",
226
+ "name": "module",
237
227
  "type": {
238
- "text": "FASTElement & { render(): void }"
228
+ "text": "DesignSystemModule"
229
+ }
230
+ }
231
+ ],
232
+ "description": "assureDesignSystem.",
233
+ "privacy": "public"
234
+ },
235
+ {
236
+ "kind": "function",
237
+ "name": "getCurrentDesignSystem",
238
+ "return": {
239
+ "type": {
240
+ "text": ""
241
+ }
242
+ },
243
+ "parameters": [
244
+ {
245
+ "name": "element",
246
+ "type": {
247
+ "text": "HTMLElement"
239
248
  },
240
- "description": "The target to define the property change handler on."
249
+ "description": "The starting HTML element"
241
250
  },
242
251
  {
243
- "name": "name",
252
+ "name": "fallbackPrefix",
244
253
  "type": {
245
254
  "text": "string"
246
255
  },
247
- "description": "The property name."
256
+ "description": "The prefix to fallback to if the provider is not available"
248
257
  }
249
258
  ],
250
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
259
+ "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.",
260
+ "privacy": "public"
261
+ },
262
+ {
263
+ "kind": "function",
264
+ "name": "getCurrentDesignSystemPrefix",
265
+ "return": {
266
+ "type": {
267
+ "text": ""
268
+ }
269
+ },
270
+ "parameters": [
271
+ {
272
+ "name": "element",
273
+ "type": {
274
+ "text": "HTMLElement"
275
+ },
276
+ "description": "The starting HTML element"
277
+ },
278
+ {
279
+ "name": "fallbackPrefix",
280
+ "type": {
281
+ "text": "string"
282
+ },
283
+ "description": "The prefix to fallback to if the provider is not available"
284
+ }
285
+ ],
286
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
251
287
  "privacy": "public"
252
288
  }
253
289
  ],
254
290
  "exports": [
255
291
  {
256
292
  "kind": "js",
257
- "name": "renderOnChange",
293
+ "name": "assureDesignSystem",
258
294
  "declaration": {
259
- "name": "renderOnChange",
260
- "module": "src/decorators/renderOnChange.ts"
295
+ "name": "assureDesignSystem",
296
+ "module": "src/design-system/design-system.ts"
297
+ }
298
+ },
299
+ {
300
+ "kind": "js",
301
+ "name": "getCurrentDesignSystem",
302
+ "declaration": {
303
+ "name": "getCurrentDesignSystem",
304
+ "module": "src/design-system/design-system.ts"
305
+ }
306
+ },
307
+ {
308
+ "kind": "js",
309
+ "name": "getCurrentDesignSystemPrefix",
310
+ "declaration": {
311
+ "name": "getCurrentDesignSystemPrefix",
312
+ "module": "src/design-system/design-system.ts"
261
313
  }
262
314
  }
263
315
  ]
264
316
  },
265
317
  {
266
318
  "kind": "javascript-module",
267
- "path": "src/directives/index.ts",
268
- "declarations": [],
319
+ "path": "src/design-system/editable-elements.ts",
320
+ "declarations": [
321
+ {
322
+ "kind": "variable",
323
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
324
+ "type": {
325
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
326
+ },
327
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
328
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
329
+ },
330
+ {
331
+ "kind": "variable",
332
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
333
+ "type": {
334
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
335
+ },
336
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
337
+ "description": "Design-system specific editable host selectors."
338
+ },
339
+ {
340
+ "kind": "function",
341
+ "name": "buildEditableElementSelector",
342
+ "return": {
343
+ "type": {
344
+ "text": "string"
345
+ }
346
+ },
347
+ "parameters": [
348
+ {
349
+ "name": "designSystems",
350
+ "type": {
351
+ "text": "readonly EditableDesignSystemPrefix[]"
352
+ }
353
+ },
354
+ {
355
+ "name": "customEditableSelectors",
356
+ "default": "[]",
357
+ "type": {
358
+ "text": "readonly string[]"
359
+ }
360
+ }
361
+ ]
362
+ }
363
+ ],
269
364
  "exports": [
270
365
  {
271
366
  "kind": "js",
272
- "name": "*",
367
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
273
368
  "declaration": {
274
- "name": "*",
275
- "package": "./sync"
369
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
370
+ "module": "src/design-system/editable-elements.ts"
276
371
  }
277
372
  },
278
373
  {
279
374
  "kind": "js",
280
- "name": "*",
375
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
281
376
  "declaration": {
282
- "name": "*",
283
- "package": "./when-else"
377
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
378
+ "module": "src/design-system/editable-elements.ts"
379
+ }
380
+ },
381
+ {
382
+ "kind": "js",
383
+ "name": "buildEditableElementSelector",
384
+ "declaration": {
385
+ "name": "buildEditableElementSelector",
386
+ "module": "src/design-system/editable-elements.ts"
284
387
  }
285
388
  }
286
389
  ]
287
390
  },
288
391
  {
289
392
  "kind": "javascript-module",
290
- "path": "src/encoding/index.ts",
393
+ "path": "src/design-system/index.ts",
291
394
  "declarations": [],
292
395
  "exports": [
293
396
  {
@@ -295,7 +398,15 @@
295
398
  "name": "*",
296
399
  "declaration": {
297
400
  "name": "*",
298
- "package": "./base64"
401
+ "package": "./design-system"
402
+ }
403
+ },
404
+ {
405
+ "kind": "js",
406
+ "name": "*",
407
+ "declaration": {
408
+ "name": "*",
409
+ "package": "./editable-elements"
299
410
  }
300
411
  }
301
412
  ]
@@ -341,6 +452,44 @@
341
452
  }
342
453
  ]
343
454
  },
455
+ {
456
+ "kind": "javascript-module",
457
+ "path": "src/directives/index.ts",
458
+ "declarations": [],
459
+ "exports": [
460
+ {
461
+ "kind": "js",
462
+ "name": "*",
463
+ "declaration": {
464
+ "name": "*",
465
+ "package": "./sync"
466
+ }
467
+ },
468
+ {
469
+ "kind": "js",
470
+ "name": "*",
471
+ "declaration": {
472
+ "name": "*",
473
+ "package": "./when-else"
474
+ }
475
+ }
476
+ ]
477
+ },
478
+ {
479
+ "kind": "javascript-module",
480
+ "path": "src/encoding/index.ts",
481
+ "declarations": [],
482
+ "exports": [
483
+ {
484
+ "kind": "js",
485
+ "name": "*",
486
+ "declaration": {
487
+ "name": "*",
488
+ "package": "./base64"
489
+ }
490
+ }
491
+ ]
492
+ },
344
493
  {
345
494
  "kind": "javascript-module",
346
495
  "path": "src/env/index.ts",
@@ -816,6 +965,59 @@
816
965
  }
817
966
  ]
818
967
  },
968
+ {
969
+ "kind": "javascript-module",
970
+ "path": "src/decorators/index.ts",
971
+ "declarations": [],
972
+ "exports": [
973
+ {
974
+ "kind": "js",
975
+ "name": "*",
976
+ "declaration": {
977
+ "name": "*",
978
+ "package": "./renderOnChange"
979
+ }
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "kind": "javascript-module",
985
+ "path": "src/decorators/renderOnChange.ts",
986
+ "declarations": [
987
+ {
988
+ "kind": "function",
989
+ "name": "renderOnChange",
990
+ "parameters": [
991
+ {
992
+ "name": "target",
993
+ "type": {
994
+ "text": "FASTElement & { render(): void }"
995
+ },
996
+ "description": "The target to define the property change handler on."
997
+ },
998
+ {
999
+ "name": "name",
1000
+ "type": {
1001
+ "text": "string"
1002
+ },
1003
+ "description": "The property name."
1004
+ }
1005
+ ],
1006
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1007
+ "privacy": "public"
1008
+ }
1009
+ ],
1010
+ "exports": [
1011
+ {
1012
+ "kind": "js",
1013
+ "name": "renderOnChange",
1014
+ "declaration": {
1015
+ "name": "renderOnChange",
1016
+ "module": "src/decorators/renderOnChange.ts"
1017
+ }
1018
+ }
1019
+ ]
1020
+ },
819
1021
  {
820
1022
  "kind": "javascript-module",
821
1023
  "path": "src/data/inMemoryDatabase.ts",
@@ -1014,208 +1216,6 @@
1014
1216
  }
1015
1217
  ]
1016
1218
  },
1017
- {
1018
- "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
- ],
1095
- "exports": [
1096
- {
1097
- "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",
1115
- "declaration": {
1116
- "name": "getCurrentDesignSystemPrefix",
1117
- "module": "src/design-system/design-system.ts"
1118
- }
1119
- }
1120
- ]
1121
- },
1122
- {
1123
- "kind": "javascript-module",
1124
- "path": "src/design-system/editable-elements.ts",
1125
- "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
- {
1145
- "kind": "function",
1146
- "name": "buildEditableElementSelector",
1147
- "return": {
1148
- "type": {
1149
- "text": "string"
1150
- }
1151
- },
1152
- "parameters": [
1153
- {
1154
- "name": "designSystems",
1155
- "type": {
1156
- "text": "readonly EditableDesignSystemPrefix[]"
1157
- }
1158
- },
1159
- {
1160
- "name": "customEditableSelectors",
1161
- "default": "[]",
1162
- "type": {
1163
- "text": "readonly string[]"
1164
- }
1165
- }
1166
- ]
1167
- }
1168
- ],
1169
- "exports": [
1170
- {
1171
- "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": "*",
1212
- "declaration": {
1213
- "name": "*",
1214
- "package": "./editable-elements"
1215
- }
1216
- }
1217
- ]
1218
- },
1219
1219
  {
1220
1220
  "kind": "javascript-module",
1221
1221
  "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": "14.433.0",
4
+ "version": "14.433.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.433.0",
33
- "@genesislcap/genx": "14.433.0",
34
- "@genesislcap/rollup-builder": "14.433.0",
35
- "@genesislcap/ts-builder": "14.433.0",
36
- "@genesislcap/uvu-playwright-builder": "14.433.0",
37
- "@genesislcap/vite-builder": "14.433.0",
38
- "@genesislcap/webpack-builder": "14.433.0",
32
+ "@genesislcap/foundation-testing": "14.433.1",
33
+ "@genesislcap/genx": "14.433.1",
34
+ "@genesislcap/rollup-builder": "14.433.1",
35
+ "@genesislcap/ts-builder": "14.433.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.433.1",
37
+ "@genesislcap/vite-builder": "14.433.1",
38
+ "@genesislcap/webpack-builder": "14.433.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.433.0",
43
- "@genesislcap/foundation-logger": "14.433.0",
42
+ "@genesislcap/expression-builder": "14.433.1",
43
+ "@genesislcap/foundation-logger": "14.433.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": "0ddedcdfa75d7b64b9c7b1397dcfa3008e23cd04"
61
+ "gitHead": "320ccc8baed03cd24394a913aed3ae72e1d24991"
62
62
  }