@genesislcap/foundation-utils 15.92.0-GENC-1665.1 → 15.92.0-HT-305.2

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,222 +260,7 @@
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
- ],
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",
263
+ "path": "src/directives/index.ts",
479
264
  "declarations": [],
480
265
  "exports": [
481
266
  {
@@ -483,7 +268,7 @@
483
268
  "name": "*",
484
269
  "declaration": {
485
270
  "name": "*",
486
- "package": "./design-system"
271
+ "package": "./sync"
487
272
  }
488
273
  },
489
274
  {
@@ -491,7 +276,7 @@
491
276
  "name": "*",
492
277
  "declaration": {
493
278
  "name": "*",
494
- "package": "./editable-elements"
279
+ "package": "./when-else"
495
280
  }
496
281
  }
497
282
  ]
@@ -696,7 +481,222 @@
696
481
  },
697
482
  {
698
483
  "kind": "javascript-module",
699
- "path": "src/directives/index.ts",
484
+ "path": "src/design-system/design-system.ts",
485
+ "declarations": [
486
+ {
487
+ "kind": "function",
488
+ "name": "assureDesignSystem",
489
+ "return": {
490
+ "type": {
491
+ "text": "DesignSystemModule"
492
+ }
493
+ },
494
+ "parameters": [
495
+ {
496
+ "name": "module",
497
+ "type": {
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"
518
+ },
519
+ "description": "The starting HTML element"
520
+ },
521
+ {
522
+ "name": "fallbackPrefix",
523
+ "type": {
524
+ "text": "string"
525
+ },
526
+ "description": "The prefix to fallback to if the provider is not available"
527
+ }
528
+ ],
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.",
557
+ "privacy": "public"
558
+ }
559
+ ],
560
+ "exports": [
561
+ {
562
+ "kind": "js",
563
+ "name": "assureDesignSystem",
564
+ "declaration": {
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"
583
+ }
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "kind": "javascript-module",
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",
700
700
  "declarations": [],
701
701
  "exports": [
702
702
  {
@@ -704,7 +704,7 @@
704
704
  "name": "*",
705
705
  "declaration": {
706
706
  "name": "*",
707
- "package": "./sync"
707
+ "package": "./design-system"
708
708
  }
709
709
  },
710
710
  {
@@ -712,7 +712,7 @@
712
712
  "name": "*",
713
713
  "declaration": {
714
714
  "name": "*",
715
- "package": "./when-else"
715
+ "package": "./editable-elements"
716
716
  }
717
717
  }
718
718
  ]
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.92.0-GENC-1665.1",
4
+ "version": "15.92.0-HT-305.2",
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.92.0-GENC-1665.1",
33
- "@genesislcap/genx": "15.92.0-GENC-1665.1",
34
- "@genesislcap/ts-builder": "15.92.0-GENC-1665.1",
35
- "@genesislcap/uvu-playwright-builder": "15.92.0-GENC-1665.1",
36
- "@genesislcap/vite-builder": "15.92.0-GENC-1665.1",
37
- "@genesislcap/webpack-builder": "15.92.0-GENC-1665.1",
32
+ "@genesislcap/foundation-testing": "15.92.0-HT-305.2",
33
+ "@genesislcap/genx": "15.92.0-HT-305.2",
34
+ "@genesislcap/ts-builder": "15.92.0-HT-305.2",
35
+ "@genesislcap/uvu-playwright-builder": "15.92.0-HT-305.2",
36
+ "@genesislcap/vite-builder": "15.92.0-HT-305.2",
37
+ "@genesislcap/webpack-builder": "15.92.0-HT-305.2",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.92.0-GENC-1665.1",
42
- "@genesislcap/foundation-logger": "15.92.0-GENC-1665.1",
41
+ "@genesislcap/expression-builder": "15.92.0-HT-305.2",
42
+ "@genesislcap/foundation-logger": "15.92.0-HT-305.2",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",