@genesislcap/foundation-utils 15.62.0-GENC-1660.2 → 15.62.0-GENC-1660.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,225 +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": "*",
456
- "declaration": {
457
- "name": "*",
458
- "package": "./editable-elements"
459
- }
460
- }
461
- ]
462
- },
463
- {
464
- "kind": "javascript-module",
465
- "path": "src/directives/index.ts",
466
- "declarations": [],
467
- "exports": [
468
- {
469
- "kind": "js",
470
- "name": "*",
471
- "declaration": {
472
- "name": "*",
473
- "package": "./sync"
474
- }
475
- },
476
- {
477
- "kind": "js",
478
- "name": "*",
306
+ "name": "renderOnChange",
479
307
  "declaration": {
480
- "name": "*",
481
- "package": "./when-else"
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
482
310
  }
483
311
  }
484
312
  ]
@@ -683,53 +511,225 @@
683
511
  },
684
512
  {
685
513
  "kind": "javascript-module",
686
- "path": "src/decorators/index.ts",
687
- "declarations": [],
514
+ "path": "src/design-system/design-system.ts",
515
+ "declarations": [
516
+ {
517
+ "kind": "function",
518
+ "name": "assureDesignSystem",
519
+ "return": {
520
+ "type": {
521
+ "text": "DesignSystemModule"
522
+ }
523
+ },
524
+ "parameters": [
525
+ {
526
+ "name": "module",
527
+ "type": {
528
+ "text": "DesignSystemModule"
529
+ }
530
+ }
531
+ ],
532
+ "description": "assureDesignSystem.",
533
+ "privacy": "public"
534
+ },
535
+ {
536
+ "kind": "function",
537
+ "name": "getCurrentDesignSystem",
538
+ "return": {
539
+ "type": {
540
+ "text": ""
541
+ }
542
+ },
543
+ "parameters": [
544
+ {
545
+ "name": "element",
546
+ "type": {
547
+ "text": "HTMLElement"
548
+ },
549
+ "description": "The starting HTML element"
550
+ },
551
+ {
552
+ "name": "fallbackPrefix",
553
+ "type": {
554
+ "text": "string"
555
+ },
556
+ "description": "The prefix to fallback to if the provider is not available"
557
+ }
558
+ ],
559
+ "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.",
560
+ "privacy": "public"
561
+ },
562
+ {
563
+ "kind": "function",
564
+ "name": "getCurrentDesignSystemPrefix",
565
+ "return": {
566
+ "type": {
567
+ "text": ""
568
+ }
569
+ },
570
+ "parameters": [
571
+ {
572
+ "name": "element",
573
+ "type": {
574
+ "text": "HTMLElement"
575
+ },
576
+ "description": "The starting HTML element"
577
+ },
578
+ {
579
+ "name": "fallbackPrefix",
580
+ "type": {
581
+ "text": "string"
582
+ },
583
+ "description": "The prefix to fallback to if the provider is not available"
584
+ }
585
+ ],
586
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
587
+ "privacy": "public"
588
+ }
589
+ ],
688
590
  "exports": [
689
591
  {
690
592
  "kind": "js",
691
- "name": "*",
593
+ "name": "assureDesignSystem",
692
594
  "declaration": {
693
- "name": "*",
694
- "package": "./renderOnChange"
595
+ "name": "assureDesignSystem",
596
+ "module": "src/design-system/design-system.ts"
597
+ }
598
+ },
599
+ {
600
+ "kind": "js",
601
+ "name": "getCurrentDesignSystem",
602
+ "declaration": {
603
+ "name": "getCurrentDesignSystem",
604
+ "module": "src/design-system/design-system.ts"
605
+ }
606
+ },
607
+ {
608
+ "kind": "js",
609
+ "name": "getCurrentDesignSystemPrefix",
610
+ "declaration": {
611
+ "name": "getCurrentDesignSystemPrefix",
612
+ "module": "src/design-system/design-system.ts"
695
613
  }
696
614
  }
697
615
  ]
698
616
  },
699
617
  {
700
618
  "kind": "javascript-module",
701
- "path": "src/decorators/renderOnChange.ts",
619
+ "path": "src/design-system/editable-elements.ts",
702
620
  "declarations": [
621
+ {
622
+ "kind": "variable",
623
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
624
+ "type": {
625
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
626
+ },
627
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
628
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
629
+ },
630
+ {
631
+ "kind": "variable",
632
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
633
+ "type": {
634
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
635
+ },
636
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
637
+ "description": "Design-system specific editable host selectors."
638
+ },
703
639
  {
704
640
  "kind": "function",
705
- "name": "renderOnChange",
641
+ "name": "buildEditableElementSelector",
642
+ "return": {
643
+ "type": {
644
+ "text": "string"
645
+ }
646
+ },
706
647
  "parameters": [
707
648
  {
708
- "name": "target",
649
+ "name": "designSystems",
709
650
  "type": {
710
- "text": "FASTElement & { render(): void }"
711
- },
712
- "description": "The target to define the property change handler on."
651
+ "text": "readonly EditableDesignSystemPrefix[]"
652
+ }
713
653
  },
714
654
  {
715
- "name": "name",
655
+ "name": "customEditableSelectors",
656
+ "default": "[]",
716
657
  "type": {
717
- "text": "string"
718
- },
719
- "description": "The property name."
658
+ "text": "readonly string[]"
659
+ }
720
660
  }
721
- ],
722
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
723
- "privacy": "public"
661
+ ]
724
662
  }
725
663
  ],
726
664
  "exports": [
727
665
  {
728
666
  "kind": "js",
729
- "name": "renderOnChange",
667
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
730
668
  "declaration": {
731
- "name": "renderOnChange",
732
- "module": "src/decorators/renderOnChange.ts"
669
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
670
+ "module": "src/design-system/editable-elements.ts"
671
+ }
672
+ },
673
+ {
674
+ "kind": "js",
675
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
676
+ "declaration": {
677
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
678
+ "module": "src/design-system/editable-elements.ts"
679
+ }
680
+ },
681
+ {
682
+ "kind": "js",
683
+ "name": "buildEditableElementSelector",
684
+ "declaration": {
685
+ "name": "buildEditableElementSelector",
686
+ "module": "src/design-system/editable-elements.ts"
687
+ }
688
+ }
689
+ ]
690
+ },
691
+ {
692
+ "kind": "javascript-module",
693
+ "path": "src/design-system/index.ts",
694
+ "declarations": [],
695
+ "exports": [
696
+ {
697
+ "kind": "js",
698
+ "name": "*",
699
+ "declaration": {
700
+ "name": "*",
701
+ "package": "./design-system"
702
+ }
703
+ },
704
+ {
705
+ "kind": "js",
706
+ "name": "*",
707
+ "declaration": {
708
+ "name": "*",
709
+ "package": "./editable-elements"
710
+ }
711
+ }
712
+ ]
713
+ },
714
+ {
715
+ "kind": "javascript-module",
716
+ "path": "src/directives/index.ts",
717
+ "declarations": [],
718
+ "exports": [
719
+ {
720
+ "kind": "js",
721
+ "name": "*",
722
+ "declaration": {
723
+ "name": "*",
724
+ "package": "./sync"
725
+ }
726
+ },
727
+ {
728
+ "kind": "js",
729
+ "name": "*",
730
+ "declaration": {
731
+ "name": "*",
732
+ "package": "./when-else"
733
733
  }
734
734
  }
735
735
  ]
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.62.0-GENC-1660.2",
4
+ "version": "15.62.0-GENC-1660.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.62.0-GENC-1660.2",
33
- "@genesislcap/genx": "15.62.0-GENC-1660.2",
34
- "@genesislcap/ts-builder": "15.62.0-GENC-1660.2",
35
- "@genesislcap/uvu-playwright-builder": "15.62.0-GENC-1660.2",
36
- "@genesislcap/vite-builder": "15.62.0-GENC-1660.2",
37
- "@genesislcap/webpack-builder": "15.62.0-GENC-1660.2",
32
+ "@genesislcap/foundation-testing": "15.62.0-GENC-1660.4",
33
+ "@genesislcap/genx": "15.62.0-GENC-1660.4",
34
+ "@genesislcap/ts-builder": "15.62.0-GENC-1660.4",
35
+ "@genesislcap/uvu-playwright-builder": "15.62.0-GENC-1660.4",
36
+ "@genesislcap/vite-builder": "15.62.0-GENC-1660.4",
37
+ "@genesislcap/webpack-builder": "15.62.0-GENC-1660.4",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.62.0-GENC-1660.2",
42
- "@genesislcap/foundation-logger": "15.62.0-GENC-1660.2",
41
+ "@genesislcap/expression-builder": "15.62.0-GENC-1660.4",
42
+ "@genesislcap/foundation-logger": "15.62.0-GENC-1660.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",