@genesislcap/foundation-utils 15.66.0 → 15.68.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.
@@ -258,208 +258,6 @@
258
258
  }
259
259
  ]
260
260
  },
261
- {
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
- ],
339
- "exports": [
340
- {
341
- "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",
359
- "declaration": {
360
- "name": "getCurrentDesignSystemPrefix",
361
- "module": "src/design-system/design-system.ts"
362
- }
363
- }
364
- ]
365
- },
366
- {
367
- "kind": "javascript-module",
368
- "path": "src/design-system/editable-elements.ts",
369
- "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
- {
389
- "kind": "function",
390
- "name": "buildEditableElementSelector",
391
- "return": {
392
- "type": {
393
- "text": "string"
394
- }
395
- },
396
- "parameters": [
397
- {
398
- "name": "designSystems",
399
- "type": {
400
- "text": "readonly EditableDesignSystemPrefix[]"
401
- }
402
- },
403
- {
404
- "name": "customEditableSelectors",
405
- "default": "[]",
406
- "type": {
407
- "text": "readonly string[]"
408
- }
409
- }
410
- ]
411
- }
412
- ],
413
- "exports": [
414
- {
415
- "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": "*",
456
- "declaration": {
457
- "name": "*",
458
- "package": "./editable-elements"
459
- }
460
- }
461
- ]
462
- },
463
261
  {
464
262
  "kind": "javascript-module",
465
263
  "path": "src/data/inMemoryDatabase.ts",
@@ -660,76 +458,225 @@
660
458
  },
661
459
  {
662
460
  "kind": "javascript-module",
663
- "path": "src/directives/index.ts",
664
- "declarations": [],
461
+ "path": "src/design-system/design-system.ts",
462
+ "declarations": [
463
+ {
464
+ "kind": "function",
465
+ "name": "assureDesignSystem",
466
+ "return": {
467
+ "type": {
468
+ "text": "DesignSystemModule"
469
+ }
470
+ },
471
+ "parameters": [
472
+ {
473
+ "name": "module",
474
+ "type": {
475
+ "text": "DesignSystemModule"
476
+ }
477
+ }
478
+ ],
479
+ "description": "assureDesignSystem.",
480
+ "privacy": "public"
481
+ },
482
+ {
483
+ "kind": "function",
484
+ "name": "getCurrentDesignSystem",
485
+ "return": {
486
+ "type": {
487
+ "text": ""
488
+ }
489
+ },
490
+ "parameters": [
491
+ {
492
+ "name": "element",
493
+ "type": {
494
+ "text": "HTMLElement"
495
+ },
496
+ "description": "The starting HTML element"
497
+ },
498
+ {
499
+ "name": "fallbackPrefix",
500
+ "type": {
501
+ "text": "string"
502
+ },
503
+ "description": "The prefix to fallback to if the provider is not available"
504
+ }
505
+ ],
506
+ "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.",
507
+ "privacy": "public"
508
+ },
509
+ {
510
+ "kind": "function",
511
+ "name": "getCurrentDesignSystemPrefix",
512
+ "return": {
513
+ "type": {
514
+ "text": ""
515
+ }
516
+ },
517
+ "parameters": [
518
+ {
519
+ "name": "element",
520
+ "type": {
521
+ "text": "HTMLElement"
522
+ },
523
+ "description": "The starting HTML element"
524
+ },
525
+ {
526
+ "name": "fallbackPrefix",
527
+ "type": {
528
+ "text": "string"
529
+ },
530
+ "description": "The prefix to fallback to if the provider is not available"
531
+ }
532
+ ],
533
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
534
+ "privacy": "public"
535
+ }
536
+ ],
665
537
  "exports": [
666
538
  {
667
539
  "kind": "js",
668
- "name": "*",
540
+ "name": "assureDesignSystem",
669
541
  "declaration": {
670
- "name": "*",
671
- "package": "./sync"
542
+ "name": "assureDesignSystem",
543
+ "module": "src/design-system/design-system.ts"
672
544
  }
673
545
  },
674
546
  {
675
547
  "kind": "js",
676
- "name": "*",
548
+ "name": "getCurrentDesignSystem",
677
549
  "declaration": {
678
- "name": "*",
679
- "package": "./when-else"
550
+ "name": "getCurrentDesignSystem",
551
+ "module": "src/design-system/design-system.ts"
680
552
  }
681
- }
682
- ]
683
- },
684
- {
685
- "kind": "javascript-module",
686
- "path": "src/decorators/index.ts",
687
- "declarations": [],
688
- "exports": [
553
+ },
689
554
  {
690
555
  "kind": "js",
691
- "name": "*",
556
+ "name": "getCurrentDesignSystemPrefix",
692
557
  "declaration": {
693
- "name": "*",
694
- "package": "./renderOnChange"
558
+ "name": "getCurrentDesignSystemPrefix",
559
+ "module": "src/design-system/design-system.ts"
695
560
  }
696
561
  }
697
562
  ]
698
563
  },
699
564
  {
700
565
  "kind": "javascript-module",
701
- "path": "src/decorators/renderOnChange.ts",
566
+ "path": "src/design-system/editable-elements.ts",
702
567
  "declarations": [
568
+ {
569
+ "kind": "variable",
570
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
571
+ "type": {
572
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
573
+ },
574
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
575
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
576
+ },
577
+ {
578
+ "kind": "variable",
579
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
580
+ "type": {
581
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
582
+ },
583
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
584
+ "description": "Design-system specific editable host selectors."
585
+ },
703
586
  {
704
587
  "kind": "function",
705
- "name": "renderOnChange",
588
+ "name": "buildEditableElementSelector",
589
+ "return": {
590
+ "type": {
591
+ "text": "string"
592
+ }
593
+ },
706
594
  "parameters": [
707
595
  {
708
- "name": "target",
596
+ "name": "designSystems",
709
597
  "type": {
710
- "text": "FASTElement & { render(): void }"
711
- },
712
- "description": "The target to define the property change handler on."
598
+ "text": "readonly EditableDesignSystemPrefix[]"
599
+ }
713
600
  },
714
601
  {
715
- "name": "name",
602
+ "name": "customEditableSelectors",
603
+ "default": "[]",
716
604
  "type": {
717
- "text": "string"
718
- },
719
- "description": "The property name."
605
+ "text": "readonly string[]"
606
+ }
720
607
  }
721
- ],
722
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
723
- "privacy": "public"
608
+ ]
724
609
  }
725
610
  ],
726
611
  "exports": [
727
612
  {
728
613
  "kind": "js",
729
- "name": "renderOnChange",
614
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
730
615
  "declaration": {
731
- "name": "renderOnChange",
732
- "module": "src/decorators/renderOnChange.ts"
616
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
617
+ "module": "src/design-system/editable-elements.ts"
618
+ }
619
+ },
620
+ {
621
+ "kind": "js",
622
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
623
+ "declaration": {
624
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
625
+ "module": "src/design-system/editable-elements.ts"
626
+ }
627
+ },
628
+ {
629
+ "kind": "js",
630
+ "name": "buildEditableElementSelector",
631
+ "declaration": {
632
+ "name": "buildEditableElementSelector",
633
+ "module": "src/design-system/editable-elements.ts"
634
+ }
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "kind": "javascript-module",
640
+ "path": "src/design-system/index.ts",
641
+ "declarations": [],
642
+ "exports": [
643
+ {
644
+ "kind": "js",
645
+ "name": "*",
646
+ "declaration": {
647
+ "name": "*",
648
+ "package": "./design-system"
649
+ }
650
+ },
651
+ {
652
+ "kind": "js",
653
+ "name": "*",
654
+ "declaration": {
655
+ "name": "*",
656
+ "package": "./editable-elements"
657
+ }
658
+ }
659
+ ]
660
+ },
661
+ {
662
+ "kind": "javascript-module",
663
+ "path": "src/directives/index.ts",
664
+ "declarations": [],
665
+ "exports": [
666
+ {
667
+ "kind": "js",
668
+ "name": "*",
669
+ "declaration": {
670
+ "name": "*",
671
+ "package": "./sync"
672
+ }
673
+ },
674
+ {
675
+ "kind": "js",
676
+ "name": "*",
677
+ "declaration": {
678
+ "name": "*",
679
+ "package": "./when-else"
733
680
  }
734
681
  }
735
682
  ]
@@ -1248,6 +1195,59 @@
1248
1195
  }
1249
1196
  ]
1250
1197
  },
1198
+ {
1199
+ "kind": "javascript-module",
1200
+ "path": "src/decorators/index.ts",
1201
+ "declarations": [],
1202
+ "exports": [
1203
+ {
1204
+ "kind": "js",
1205
+ "name": "*",
1206
+ "declaration": {
1207
+ "name": "*",
1208
+ "package": "./renderOnChange"
1209
+ }
1210
+ }
1211
+ ]
1212
+ },
1213
+ {
1214
+ "kind": "javascript-module",
1215
+ "path": "src/decorators/renderOnChange.ts",
1216
+ "declarations": [
1217
+ {
1218
+ "kind": "function",
1219
+ "name": "renderOnChange",
1220
+ "parameters": [
1221
+ {
1222
+ "name": "target",
1223
+ "type": {
1224
+ "text": "FASTElement & { render(): void }"
1225
+ },
1226
+ "description": "The target to define the property change handler on."
1227
+ },
1228
+ {
1229
+ "name": "name",
1230
+ "type": {
1231
+ "text": "string"
1232
+ },
1233
+ "description": "The property name."
1234
+ }
1235
+ ],
1236
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1237
+ "privacy": "public"
1238
+ }
1239
+ ],
1240
+ "exports": [
1241
+ {
1242
+ "kind": "js",
1243
+ "name": "renderOnChange",
1244
+ "declaration": {
1245
+ "name": "renderOnChange",
1246
+ "module": "src/decorators/renderOnChange.ts"
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.68.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.68.0",
33
+ "@genesislcap/genx": "15.68.0",
34
+ "@genesislcap/ts-builder": "15.68.0",
35
+ "@genesislcap/uvu-playwright-builder": "15.68.0",
36
+ "@genesislcap/vite-builder": "15.68.0",
37
+ "@genesislcap/webpack-builder": "15.68.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.68.0",
42
+ "@genesislcap/foundation-logger": "15.68.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",