@genesislcap/foundation-utils 15.96.1 → 15.96.2-GENC-1665.4

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,238 +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}",
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
280
  {
413
281
  "kind": "function",
414
- "name": "isEditableKeyboardEvent",
415
- "return": {
416
- "type": {
417
- "text": "boolean"
418
- }
419
- },
282
+ "name": "renderOnChange",
420
283
  "parameters": [
421
284
  {
422
- "name": "event",
285
+ "name": "target",
423
286
  "type": {
424
- "text": "KeyboardEvent"
287
+ "text": "FASTElement & { render(): void }"
425
288
  },
426
- "description": "The keyboard event."
289
+ "description": "The target to define the property change handler on."
427
290
  },
428
291
  {
429
- "name": "editableSelector",
430
- "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
292
+ "name": "name",
431
293
  "type": {
432
294
  "text": "string"
433
295
  },
434
- "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
296
+ "description": "The property name."
435
297
  }
436
298
  ],
437
- "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
299
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
438
300
  "privacy": "public"
439
301
  }
440
302
  ],
441
303
  "exports": [
442
304
  {
443
305
  "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": "*",
306
+ "name": "renderOnChange",
492
307
  "declaration": {
493
- "name": "*",
494
- "package": "./editable-elements"
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
495
310
  }
496
311
  }
497
312
  ]
@@ -719,7 +534,7 @@
719
534
  },
720
535
  {
721
536
  "kind": "javascript-module",
722
- "path": "src/decorators/index.ts",
537
+ "path": "src/encoding/index.ts",
723
538
  "declarations": [],
724
539
  "exports": [
725
540
  {
@@ -727,52 +542,229 @@
727
542
  "name": "*",
728
543
  "declaration": {
729
544
  "name": "*",
730
- "package": "./renderOnChange"
545
+ "package": "./base64"
731
546
  }
732
547
  }
733
548
  ]
734
549
  },
735
550
  {
736
551
  "kind": "javascript-module",
737
- "path": "src/decorators/renderOnChange.ts",
552
+ "path": "src/design-system/design-system.ts",
738
553
  "declarations": [
739
554
  {
740
555
  "kind": "function",
741
- "name": "renderOnChange",
556
+ "name": "assureDesignSystem",
557
+ "return": {
558
+ "type": {
559
+ "text": "DesignSystemModule"
560
+ }
561
+ },
742
562
  "parameters": [
743
563
  {
744
- "name": "target",
564
+ "name": "module",
745
565
  "type": {
746
- "text": "FASTElement & { render(): void }"
566
+ "text": "DesignSystemModule"
567
+ }
568
+ }
569
+ ],
570
+ "description": "assureDesignSystem.",
571
+ "privacy": "public"
572
+ },
573
+ {
574
+ "kind": "function",
575
+ "name": "getCurrentDesignSystem",
576
+ "return": {
577
+ "type": {
578
+ "text": ""
579
+ }
580
+ },
581
+ "parameters": [
582
+ {
583
+ "name": "element",
584
+ "type": {
585
+ "text": "HTMLElement"
747
586
  },
748
- "description": "The target to define the property change handler on."
587
+ "description": "The starting HTML element"
749
588
  },
750
589
  {
751
- "name": "name",
590
+ "name": "fallbackPrefix",
752
591
  "type": {
753
592
  "text": "string"
754
593
  },
755
- "description": "The property name."
594
+ "description": "The prefix to fallback to if the provider is not available"
756
595
  }
757
596
  ],
758
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
597
+ "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.",
598
+ "privacy": "public"
599
+ },
600
+ {
601
+ "kind": "function",
602
+ "name": "getCurrentDesignSystemPrefix",
603
+ "return": {
604
+ "type": {
605
+ "text": ""
606
+ }
607
+ },
608
+ "parameters": [
609
+ {
610
+ "name": "element",
611
+ "type": {
612
+ "text": "HTMLElement"
613
+ },
614
+ "description": "The starting HTML element"
615
+ },
616
+ {
617
+ "name": "fallbackPrefix",
618
+ "type": {
619
+ "text": "string"
620
+ },
621
+ "description": "The prefix to fallback to if the provider is not available"
622
+ }
623
+ ],
624
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
759
625
  "privacy": "public"
760
626
  }
761
627
  ],
762
628
  "exports": [
763
629
  {
764
630
  "kind": "js",
765
- "name": "renderOnChange",
631
+ "name": "assureDesignSystem",
766
632
  "declaration": {
767
- "name": "renderOnChange",
768
- "module": "src/decorators/renderOnChange.ts"
633
+ "name": "assureDesignSystem",
634
+ "module": "src/design-system/design-system.ts"
635
+ }
636
+ },
637
+ {
638
+ "kind": "js",
639
+ "name": "getCurrentDesignSystem",
640
+ "declaration": {
641
+ "name": "getCurrentDesignSystem",
642
+ "module": "src/design-system/design-system.ts"
643
+ }
644
+ },
645
+ {
646
+ "kind": "js",
647
+ "name": "getCurrentDesignSystemPrefix",
648
+ "declaration": {
649
+ "name": "getCurrentDesignSystemPrefix",
650
+ "module": "src/design-system/design-system.ts"
769
651
  }
770
652
  }
771
653
  ]
772
654
  },
773
655
  {
774
656
  "kind": "javascript-module",
775
- "path": "src/encoding/index.ts",
657
+ "path": "src/design-system/editable-elements.ts",
658
+ "declarations": [
659
+ {
660
+ "kind": "variable",
661
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
662
+ "type": {
663
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
664
+ },
665
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
666
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
667
+ },
668
+ {
669
+ "kind": "variable",
670
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
671
+ "type": {
672
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
673
+ },
674
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n}",
675
+ "description": "Design-system specific editable host selectors."
676
+ },
677
+ {
678
+ "kind": "function",
679
+ "name": "buildEditableElementSelector",
680
+ "return": {
681
+ "type": {
682
+ "text": "string"
683
+ }
684
+ },
685
+ "parameters": [
686
+ {
687
+ "name": "designSystems",
688
+ "type": {
689
+ "text": "readonly EditableDesignSystemPrefix[]"
690
+ }
691
+ },
692
+ {
693
+ "name": "customEditableSelectors",
694
+ "default": "[]",
695
+ "type": {
696
+ "text": "readonly string[]"
697
+ }
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ "kind": "function",
703
+ "name": "isEditableKeyboardEvent",
704
+ "return": {
705
+ "type": {
706
+ "text": "boolean"
707
+ }
708
+ },
709
+ "parameters": [
710
+ {
711
+ "name": "event",
712
+ "type": {
713
+ "text": "KeyboardEvent"
714
+ },
715
+ "description": "The keyboard event."
716
+ },
717
+ {
718
+ "name": "editableSelector",
719
+ "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
720
+ "type": {
721
+ "text": "string"
722
+ },
723
+ "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
724
+ }
725
+ ],
726
+ "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
727
+ "privacy": "public"
728
+ }
729
+ ],
730
+ "exports": [
731
+ {
732
+ "kind": "js",
733
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
734
+ "declaration": {
735
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
736
+ "module": "src/design-system/editable-elements.ts"
737
+ }
738
+ },
739
+ {
740
+ "kind": "js",
741
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
742
+ "declaration": {
743
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
744
+ "module": "src/design-system/editable-elements.ts"
745
+ }
746
+ },
747
+ {
748
+ "kind": "js",
749
+ "name": "buildEditableElementSelector",
750
+ "declaration": {
751
+ "name": "buildEditableElementSelector",
752
+ "module": "src/design-system/editable-elements.ts"
753
+ }
754
+ },
755
+ {
756
+ "kind": "js",
757
+ "name": "isEditableKeyboardEvent",
758
+ "declaration": {
759
+ "name": "isEditableKeyboardEvent",
760
+ "module": "src/design-system/editable-elements.ts"
761
+ }
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ "kind": "javascript-module",
767
+ "path": "src/design-system/index.ts",
776
768
  "declarations": [],
777
769
  "exports": [
778
770
  {
@@ -780,7 +772,15 @@
780
772
  "name": "*",
781
773
  "declaration": {
782
774
  "name": "*",
783
- "package": "./base64"
775
+ "package": "./design-system"
776
+ }
777
+ },
778
+ {
779
+ "kind": "js",
780
+ "name": "*",
781
+ "declaration": {
782
+ "name": "*",
783
+ "package": "./editable-elements"
784
784
  }
785
785
  }
786
786
  ]
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.96.1",
4
+ "version": "15.96.2-GENC-1665.4",
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.96.1",
33
- "@genesislcap/genx": "15.96.1",
34
- "@genesislcap/ts-builder": "15.96.1",
35
- "@genesislcap/uvu-playwright-builder": "15.96.1",
36
- "@genesislcap/vite-builder": "15.96.1",
37
- "@genesislcap/webpack-builder": "15.96.1",
32
+ "@genesislcap/foundation-testing": "15.96.2-GENC-1665.4",
33
+ "@genesislcap/genx": "15.96.2-GENC-1665.4",
34
+ "@genesislcap/ts-builder": "15.96.2-GENC-1665.4",
35
+ "@genesislcap/uvu-playwright-builder": "15.96.2-GENC-1665.4",
36
+ "@genesislcap/vite-builder": "15.96.2-GENC-1665.4",
37
+ "@genesislcap/webpack-builder": "15.96.2-GENC-1665.4",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.96.1",
42
- "@genesislcap/foundation-logger": "15.96.1",
41
+ "@genesislcap/expression-builder": "15.96.2-GENC-1665.4",
42
+ "@genesislcap/foundation-logger": "15.96.2-GENC-1665.4",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",