@genesislcap/foundation-utils 15.86.0 → 15.86.1-GENC-0.6

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,244 +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}",
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
- "kind": "function",
414
- "name": "isEditableKeyboardEvent",
415
- "return": {
416
- "type": {
417
- "text": "boolean"
418
- }
419
- },
420
- "parameters": [
421
- {
422
- "name": "event",
423
- "type": {
424
- "text": "KeyboardEvent"
425
- },
426
- "description": "The keyboard event."
427
- },
428
- {
429
- "name": "editableSelector",
430
- "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
431
- "type": {
432
- "text": "string"
433
- },
434
- "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
435
- }
436
- ],
437
- "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
438
- "privacy": "public"
439
- }
440
- ],
441
- "exports": [
442
- {
443
- "kind": "js",
444
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
445
- "declaration": {
446
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
447
- "module": "src/design-system/editable-elements.ts"
448
- }
449
- },
450
- {
451
- "kind": "js",
452
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
453
- "declaration": {
454
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
455
- "module": "src/design-system/editable-elements.ts"
456
- }
457
- },
458
- {
459
- "kind": "js",
460
- "name": "buildEditableElementSelector",
461
- "declaration": {
462
- "name": "buildEditableElementSelector",
463
- "module": "src/design-system/editable-elements.ts"
464
- }
465
- },
466
- {
467
- "kind": "js",
468
- "name": "isEditableKeyboardEvent",
469
- "declaration": {
470
- "name": "isEditableKeyboardEvent",
471
- "module": "src/design-system/editable-elements.ts"
472
- }
473
- }
474
- ]
475
- },
476
- {
477
- "kind": "javascript-module",
478
- "path": "src/design-system/index.ts",
479
- "declarations": [],
480
- "exports": [
481
- {
482
- "kind": "js",
483
- "name": "*",
484
- "declaration": {
485
- "name": "*",
486
- "package": "./design-system"
487
- }
488
- },
489
- {
490
- "kind": "js",
491
- "name": "*",
492
- "declaration": {
493
- "name": "*",
494
- "package": "./editable-elements"
495
- }
496
- }
497
- ]
498
- },
499
261
  {
500
262
  "kind": "javascript-module",
501
263
  "path": "src/data/inMemoryDatabase.ts",
@@ -696,7 +458,7 @@
696
458
  },
697
459
  {
698
460
  "kind": "javascript-module",
699
- "path": "src/decorators/index.ts",
461
+ "path": "src/directives/index.ts",
700
462
  "declarations": [],
701
463
  "exports": [
702
464
  {
@@ -704,52 +466,237 @@
704
466
  "name": "*",
705
467
  "declaration": {
706
468
  "name": "*",
707
- "package": "./renderOnChange"
469
+ "package": "./sync"
470
+ }
471
+ },
472
+ {
473
+ "kind": "js",
474
+ "name": "*",
475
+ "declaration": {
476
+ "name": "*",
477
+ "package": "./when-else"
708
478
  }
709
479
  }
710
480
  ]
711
481
  },
712
482
  {
713
483
  "kind": "javascript-module",
714
- "path": "src/decorators/renderOnChange.ts",
484
+ "path": "src/design-system/design-system.ts",
715
485
  "declarations": [
716
486
  {
717
487
  "kind": "function",
718
- "name": "renderOnChange",
488
+ "name": "assureDesignSystem",
489
+ "return": {
490
+ "type": {
491
+ "text": "DesignSystemModule"
492
+ }
493
+ },
719
494
  "parameters": [
720
495
  {
721
- "name": "target",
496
+ "name": "module",
722
497
  "type": {
723
- "text": "FASTElement & { render(): void }"
498
+ "text": "DesignSystemModule"
499
+ }
500
+ }
501
+ ],
502
+ "description": "assureDesignSystem.",
503
+ "privacy": "public"
504
+ },
505
+ {
506
+ "kind": "function",
507
+ "name": "getCurrentDesignSystem",
508
+ "return": {
509
+ "type": {
510
+ "text": ""
511
+ }
512
+ },
513
+ "parameters": [
514
+ {
515
+ "name": "element",
516
+ "type": {
517
+ "text": "HTMLElement"
724
518
  },
725
- "description": "The target to define the property change handler on."
519
+ "description": "The starting HTML element"
726
520
  },
727
521
  {
728
- "name": "name",
522
+ "name": "fallbackPrefix",
729
523
  "type": {
730
524
  "text": "string"
731
525
  },
732
- "description": "The property name."
526
+ "description": "The prefix to fallback to if the provider is not available"
733
527
  }
734
528
  ],
735
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
529
+ "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.",
530
+ "privacy": "public"
531
+ },
532
+ {
533
+ "kind": "function",
534
+ "name": "getCurrentDesignSystemPrefix",
535
+ "return": {
536
+ "type": {
537
+ "text": ""
538
+ }
539
+ },
540
+ "parameters": [
541
+ {
542
+ "name": "element",
543
+ "type": {
544
+ "text": "HTMLElement"
545
+ },
546
+ "description": "The starting HTML element"
547
+ },
548
+ {
549
+ "name": "fallbackPrefix",
550
+ "type": {
551
+ "text": "string"
552
+ },
553
+ "description": "The prefix to fallback to if the provider is not available"
554
+ }
555
+ ],
556
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
736
557
  "privacy": "public"
737
558
  }
738
559
  ],
739
560
  "exports": [
740
561
  {
741
562
  "kind": "js",
742
- "name": "renderOnChange",
563
+ "name": "assureDesignSystem",
743
564
  "declaration": {
744
- "name": "renderOnChange",
745
- "module": "src/decorators/renderOnChange.ts"
565
+ "name": "assureDesignSystem",
566
+ "module": "src/design-system/design-system.ts"
567
+ }
568
+ },
569
+ {
570
+ "kind": "js",
571
+ "name": "getCurrentDesignSystem",
572
+ "declaration": {
573
+ "name": "getCurrentDesignSystem",
574
+ "module": "src/design-system/design-system.ts"
575
+ }
576
+ },
577
+ {
578
+ "kind": "js",
579
+ "name": "getCurrentDesignSystemPrefix",
580
+ "declaration": {
581
+ "name": "getCurrentDesignSystemPrefix",
582
+ "module": "src/design-system/design-system.ts"
746
583
  }
747
584
  }
748
585
  ]
749
586
  },
750
587
  {
751
588
  "kind": "javascript-module",
752
- "path": "src/directives/index.ts",
589
+ "path": "src/design-system/editable-elements.ts",
590
+ "declarations": [
591
+ {
592
+ "kind": "variable",
593
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
594
+ "type": {
595
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
596
+ },
597
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
598
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
599
+ },
600
+ {
601
+ "kind": "variable",
602
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
603
+ "type": {
604
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
605
+ },
606
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n}",
607
+ "description": "Design-system specific editable host selectors."
608
+ },
609
+ {
610
+ "kind": "function",
611
+ "name": "buildEditableElementSelector",
612
+ "return": {
613
+ "type": {
614
+ "text": "string"
615
+ }
616
+ },
617
+ "parameters": [
618
+ {
619
+ "name": "designSystems",
620
+ "type": {
621
+ "text": "readonly EditableDesignSystemPrefix[]"
622
+ }
623
+ },
624
+ {
625
+ "name": "customEditableSelectors",
626
+ "default": "[]",
627
+ "type": {
628
+ "text": "readonly string[]"
629
+ }
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ "kind": "function",
635
+ "name": "isEditableKeyboardEvent",
636
+ "return": {
637
+ "type": {
638
+ "text": "boolean"
639
+ }
640
+ },
641
+ "parameters": [
642
+ {
643
+ "name": "event",
644
+ "type": {
645
+ "text": "KeyboardEvent"
646
+ },
647
+ "description": "The keyboard event."
648
+ },
649
+ {
650
+ "name": "editableSelector",
651
+ "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
652
+ "type": {
653
+ "text": "string"
654
+ },
655
+ "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
656
+ }
657
+ ],
658
+ "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
659
+ "privacy": "public"
660
+ }
661
+ ],
662
+ "exports": [
663
+ {
664
+ "kind": "js",
665
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
666
+ "declaration": {
667
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
668
+ "module": "src/design-system/editable-elements.ts"
669
+ }
670
+ },
671
+ {
672
+ "kind": "js",
673
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
674
+ "declaration": {
675
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
676
+ "module": "src/design-system/editable-elements.ts"
677
+ }
678
+ },
679
+ {
680
+ "kind": "js",
681
+ "name": "buildEditableElementSelector",
682
+ "declaration": {
683
+ "name": "buildEditableElementSelector",
684
+ "module": "src/design-system/editable-elements.ts"
685
+ }
686
+ },
687
+ {
688
+ "kind": "js",
689
+ "name": "isEditableKeyboardEvent",
690
+ "declaration": {
691
+ "name": "isEditableKeyboardEvent",
692
+ "module": "src/design-system/editable-elements.ts"
693
+ }
694
+ }
695
+ ]
696
+ },
697
+ {
698
+ "kind": "javascript-module",
699
+ "path": "src/design-system/index.ts",
753
700
  "declarations": [],
754
701
  "exports": [
755
702
  {
@@ -757,7 +704,7 @@
757
704
  "name": "*",
758
705
  "declaration": {
759
706
  "name": "*",
760
- "package": "./sync"
707
+ "package": "./design-system"
761
708
  }
762
709
  },
763
710
  {
@@ -765,7 +712,7 @@
765
712
  "name": "*",
766
713
  "declaration": {
767
714
  "name": "*",
768
- "package": "./when-else"
715
+ "package": "./editable-elements"
769
716
  }
770
717
  }
771
718
  ]
@@ -1284,6 +1231,59 @@
1284
1231
  }
1285
1232
  ]
1286
1233
  },
1234
+ {
1235
+ "kind": "javascript-module",
1236
+ "path": "src/decorators/index.ts",
1237
+ "declarations": [],
1238
+ "exports": [
1239
+ {
1240
+ "kind": "js",
1241
+ "name": "*",
1242
+ "declaration": {
1243
+ "name": "*",
1244
+ "package": "./renderOnChange"
1245
+ }
1246
+ }
1247
+ ]
1248
+ },
1249
+ {
1250
+ "kind": "javascript-module",
1251
+ "path": "src/decorators/renderOnChange.ts",
1252
+ "declarations": [
1253
+ {
1254
+ "kind": "function",
1255
+ "name": "renderOnChange",
1256
+ "parameters": [
1257
+ {
1258
+ "name": "target",
1259
+ "type": {
1260
+ "text": "FASTElement & { render(): void }"
1261
+ },
1262
+ "description": "The target to define the property change handler on."
1263
+ },
1264
+ {
1265
+ "name": "name",
1266
+ "type": {
1267
+ "text": "string"
1268
+ },
1269
+ "description": "The property name."
1270
+ }
1271
+ ],
1272
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1273
+ "privacy": "public"
1274
+ }
1275
+ ],
1276
+ "exports": [
1277
+ {
1278
+ "kind": "js",
1279
+ "name": "renderOnChange",
1280
+ "declaration": {
1281
+ "name": "renderOnChange",
1282
+ "module": "src/decorators/renderOnChange.ts"
1283
+ }
1284
+ }
1285
+ ]
1286
+ },
1287
1287
  {
1288
1288
  "kind": "javascript-module",
1289
1289
  "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.86.0",
4
+ "version": "15.86.1-GENC-0.6",
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.86.0",
33
- "@genesislcap/genx": "15.86.0",
34
- "@genesislcap/ts-builder": "15.86.0",
35
- "@genesislcap/uvu-playwright-builder": "15.86.0",
36
- "@genesislcap/vite-builder": "15.86.0",
37
- "@genesislcap/webpack-builder": "15.86.0",
32
+ "@genesislcap/foundation-testing": "15.86.1-GENC-0.6",
33
+ "@genesislcap/genx": "15.86.1-GENC-0.6",
34
+ "@genesislcap/ts-builder": "15.86.1-GENC-0.6",
35
+ "@genesislcap/uvu-playwright-builder": "15.86.1-GENC-0.6",
36
+ "@genesislcap/vite-builder": "15.86.1-GENC-0.6",
37
+ "@genesislcap/webpack-builder": "15.86.1-GENC-0.6",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.86.0",
42
- "@genesislcap/foundation-logger": "15.86.0",
41
+ "@genesislcap/expression-builder": "15.86.1-GENC-0.6",
42
+ "@genesislcap/foundation-logger": "15.86.1-GENC-0.6",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",