@genesislcap/foundation-utils 15.68.1 → 15.70.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.
@@ -260,202 +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": "*",
306
+ "name": "renderOnChange",
456
307
  "declaration": {
457
- "name": "*",
458
- "package": "./editable-elements"
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
459
310
  }
460
311
  }
461
312
  ]
@@ -683,7 +534,7 @@
683
534
  },
684
535
  {
685
536
  "kind": "javascript-module",
686
- "path": "src/decorators/index.ts",
537
+ "path": "src/encoding/index.ts",
687
538
  "declarations": [],
688
539
  "exports": [
689
540
  {
@@ -691,52 +542,193 @@
691
542
  "name": "*",
692
543
  "declaration": {
693
544
  "name": "*",
694
- "package": "./renderOnChange"
545
+ "package": "./base64"
695
546
  }
696
547
  }
697
548
  ]
698
549
  },
699
550
  {
700
551
  "kind": "javascript-module",
701
- "path": "src/decorators/renderOnChange.ts",
552
+ "path": "src/design-system/design-system.ts",
702
553
  "declarations": [
703
554
  {
704
555
  "kind": "function",
705
- "name": "renderOnChange",
556
+ "name": "assureDesignSystem",
557
+ "return": {
558
+ "type": {
559
+ "text": "DesignSystemModule"
560
+ }
561
+ },
706
562
  "parameters": [
707
563
  {
708
- "name": "target",
564
+ "name": "module",
709
565
  "type": {
710
- "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"
711
586
  },
712
- "description": "The target to define the property change handler on."
587
+ "description": "The starting HTML element"
713
588
  },
714
589
  {
715
- "name": "name",
590
+ "name": "fallbackPrefix",
716
591
  "type": {
717
592
  "text": "string"
718
593
  },
719
- "description": "The property name."
594
+ "description": "The prefix to fallback to if the provider is not available"
720
595
  }
721
596
  ],
722
- "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.",
723
625
  "privacy": "public"
724
626
  }
725
627
  ],
726
628
  "exports": [
727
629
  {
728
630
  "kind": "js",
729
- "name": "renderOnChange",
631
+ "name": "assureDesignSystem",
730
632
  "declaration": {
731
- "name": "renderOnChange",
732
- "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"
733
651
  }
734
652
  }
735
653
  ]
736
654
  },
737
655
  {
738
656
  "kind": "javascript-module",
739
- "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 zero: buildDesignSystemEditableSelectors('zero'),\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
+ "exports": [
703
+ {
704
+ "kind": "js",
705
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
706
+ "declaration": {
707
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
708
+ "module": "src/design-system/editable-elements.ts"
709
+ }
710
+ },
711
+ {
712
+ "kind": "js",
713
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
714
+ "declaration": {
715
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
716
+ "module": "src/design-system/editable-elements.ts"
717
+ }
718
+ },
719
+ {
720
+ "kind": "js",
721
+ "name": "buildEditableElementSelector",
722
+ "declaration": {
723
+ "name": "buildEditableElementSelector",
724
+ "module": "src/design-system/editable-elements.ts"
725
+ }
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "kind": "javascript-module",
731
+ "path": "src/design-system/index.ts",
740
732
  "declarations": [],
741
733
  "exports": [
742
734
  {
@@ -744,7 +736,15 @@
744
736
  "name": "*",
745
737
  "declaration": {
746
738
  "name": "*",
747
- "package": "./base64"
739
+ "package": "./design-system"
740
+ }
741
+ },
742
+ {
743
+ "kind": "js",
744
+ "name": "*",
745
+ "declaration": {
746
+ "name": "*",
747
+ "package": "./editable-elements"
748
748
  }
749
749
  }
750
750
  ]
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.68.1",
4
+ "version": "15.70.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.68.1",
33
- "@genesislcap/genx": "15.68.1",
34
- "@genesislcap/ts-builder": "15.68.1",
35
- "@genesislcap/uvu-playwright-builder": "15.68.1",
36
- "@genesislcap/vite-builder": "15.68.1",
37
- "@genesislcap/webpack-builder": "15.68.1",
32
+ "@genesislcap/foundation-testing": "15.70.0",
33
+ "@genesislcap/genx": "15.70.0",
34
+ "@genesislcap/ts-builder": "15.70.0",
35
+ "@genesislcap/uvu-playwright-builder": "15.70.0",
36
+ "@genesislcap/vite-builder": "15.70.0",
37
+ "@genesislcap/webpack-builder": "15.70.0",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.68.1",
42
- "@genesislcap/foundation-logger": "15.68.1",
41
+ "@genesislcap/expression-builder": "15.70.0",
42
+ "@genesislcap/foundation-logger": "15.70.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",