@genesislcap/foundation-utils 14.422.2-alpha-10a89d0.0 → 14.422.2-alpha-1f9504f.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.
- package/dist/custom-elements.json +621 -172
- package/dist/dts/design-system/editable-elements.d.ts +12 -0
- package/dist/dts/design-system/editable-elements.d.ts.map +1 -0
- package/dist/dts/design-system/index.d.ts +1 -0
- package/dist/dts/design-system/index.d.ts.map +1 -1
- package/dist/dts/shortcut-manager/index.d.ts +1 -0
- package/dist/dts/shortcut-manager/index.d.ts.map +1 -1
- package/dist/dts/shortcut-manager/shortcut-events.d.ts +16 -0
- package/dist/dts/shortcut-manager/shortcut-events.d.ts.map +1 -0
- package/dist/dts/shortcut-manager/shortcut-listener.d.ts +4 -0
- package/dist/dts/shortcut-manager/shortcut-listener.d.ts.map +1 -1
- package/dist/dts/shortcut-manager/shortcut-manager.d.ts +50 -0
- package/dist/dts/shortcut-manager/shortcut-manager.d.ts.map +1 -1
- package/dist/esm/design-system/editable-elements.js +42 -0
- package/dist/esm/design-system/index.js +1 -0
- package/dist/esm/shortcut-manager/index.js +1 -0
- package/dist/esm/shortcut-manager/shortcut-events.js +13 -0
- package/dist/esm/shortcut-manager/shortcut-listener.js +59 -21
- package/dist/esm/shortcut-manager/shortcut-manager.js +112 -19
- package/dist/foundation-utils.api.json +1272 -82
- package/dist/foundation-utils.d.ts +93 -0
- package/package.json +11 -11
|
@@ -250,6 +250,208 @@
|
|
|
250
250
|
}
|
|
251
251
|
]
|
|
252
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "javascript-module",
|
|
255
|
+
"path": "src/design-system/design-system.ts",
|
|
256
|
+
"declarations": [
|
|
257
|
+
{
|
|
258
|
+
"kind": "function",
|
|
259
|
+
"name": "assureDesignSystem",
|
|
260
|
+
"return": {
|
|
261
|
+
"type": {
|
|
262
|
+
"text": "DesignSystemModule"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"parameters": [
|
|
266
|
+
{
|
|
267
|
+
"name": "module",
|
|
268
|
+
"type": {
|
|
269
|
+
"text": "DesignSystemModule"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"description": "assureDesignSystem.",
|
|
274
|
+
"privacy": "public"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "function",
|
|
278
|
+
"name": "getCurrentDesignSystem",
|
|
279
|
+
"return": {
|
|
280
|
+
"type": {
|
|
281
|
+
"text": ""
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"parameters": [
|
|
285
|
+
{
|
|
286
|
+
"name": "element",
|
|
287
|
+
"type": {
|
|
288
|
+
"text": "HTMLElement"
|
|
289
|
+
},
|
|
290
|
+
"description": "The starting HTML element"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "fallbackPrefix",
|
|
294
|
+
"type": {
|
|
295
|
+
"text": "string"
|
|
296
|
+
},
|
|
297
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"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.",
|
|
301
|
+
"privacy": "public"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"kind": "function",
|
|
305
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
306
|
+
"return": {
|
|
307
|
+
"type": {
|
|
308
|
+
"text": ""
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"parameters": [
|
|
312
|
+
{
|
|
313
|
+
"name": "element",
|
|
314
|
+
"type": {
|
|
315
|
+
"text": "HTMLElement"
|
|
316
|
+
},
|
|
317
|
+
"description": "The starting HTML element"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "fallbackPrefix",
|
|
321
|
+
"type": {
|
|
322
|
+
"text": "string"
|
|
323
|
+
},
|
|
324
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
328
|
+
"privacy": "public"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"exports": [
|
|
332
|
+
{
|
|
333
|
+
"kind": "js",
|
|
334
|
+
"name": "assureDesignSystem",
|
|
335
|
+
"declaration": {
|
|
336
|
+
"name": "assureDesignSystem",
|
|
337
|
+
"module": "src/design-system/design-system.ts"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "js",
|
|
342
|
+
"name": "getCurrentDesignSystem",
|
|
343
|
+
"declaration": {
|
|
344
|
+
"name": "getCurrentDesignSystem",
|
|
345
|
+
"module": "src/design-system/design-system.ts"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"kind": "js",
|
|
350
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
351
|
+
"declaration": {
|
|
352
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
353
|
+
"module": "src/design-system/design-system.ts"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"kind": "javascript-module",
|
|
360
|
+
"path": "src/design-system/editable-elements.ts",
|
|
361
|
+
"declarations": [
|
|
362
|
+
{
|
|
363
|
+
"kind": "variable",
|
|
364
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
365
|
+
"type": {
|
|
366
|
+
"text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
|
|
367
|
+
},
|
|
368
|
+
"default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
|
|
369
|
+
"description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"kind": "variable",
|
|
373
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
374
|
+
"type": {
|
|
375
|
+
"text": "Record<\n ShortcutDesignSystemPrefix,\n readonly string[]\n>"
|
|
376
|
+
},
|
|
377
|
+
"default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
|
|
378
|
+
"description": "Design-system specific editable host selectors."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"kind": "function",
|
|
382
|
+
"name": "buildEditableElementSelector",
|
|
383
|
+
"return": {
|
|
384
|
+
"type": {
|
|
385
|
+
"text": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"parameters": [
|
|
389
|
+
{
|
|
390
|
+
"name": "designSystems",
|
|
391
|
+
"type": {
|
|
392
|
+
"text": "readonly ShortcutDesignSystemPrefix[]"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "customEditableSelectors",
|
|
397
|
+
"default": "[]",
|
|
398
|
+
"type": {
|
|
399
|
+
"text": "readonly string[]"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"exports": [
|
|
406
|
+
{
|
|
407
|
+
"kind": "js",
|
|
408
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
409
|
+
"declaration": {
|
|
410
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
411
|
+
"module": "src/design-system/editable-elements.ts"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"kind": "js",
|
|
416
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
417
|
+
"declaration": {
|
|
418
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
419
|
+
"module": "src/design-system/editable-elements.ts"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"kind": "js",
|
|
424
|
+
"name": "buildEditableElementSelector",
|
|
425
|
+
"declaration": {
|
|
426
|
+
"name": "buildEditableElementSelector",
|
|
427
|
+
"module": "src/design-system/editable-elements.ts"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"kind": "javascript-module",
|
|
434
|
+
"path": "src/design-system/index.ts",
|
|
435
|
+
"declarations": [],
|
|
436
|
+
"exports": [
|
|
437
|
+
{
|
|
438
|
+
"kind": "js",
|
|
439
|
+
"name": "*",
|
|
440
|
+
"declaration": {
|
|
441
|
+
"name": "*",
|
|
442
|
+
"package": "./design-system"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"kind": "js",
|
|
447
|
+
"name": "*",
|
|
448
|
+
"declaration": {
|
|
449
|
+
"name": "*",
|
|
450
|
+
"package": "./editable-elements"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
},
|
|
253
455
|
{
|
|
254
456
|
"kind": "javascript-module",
|
|
255
457
|
"path": "src/data/inMemoryDatabase.ts",
|
|
@@ -448,126 +650,6 @@
|
|
|
448
650
|
}
|
|
449
651
|
]
|
|
450
652
|
},
|
|
451
|
-
{
|
|
452
|
-
"kind": "javascript-module",
|
|
453
|
-
"path": "src/design-system/design-system.ts",
|
|
454
|
-
"declarations": [
|
|
455
|
-
{
|
|
456
|
-
"kind": "function",
|
|
457
|
-
"name": "assureDesignSystem",
|
|
458
|
-
"return": {
|
|
459
|
-
"type": {
|
|
460
|
-
"text": "DesignSystemModule"
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
"parameters": [
|
|
464
|
-
{
|
|
465
|
-
"name": "module",
|
|
466
|
-
"type": {
|
|
467
|
-
"text": "DesignSystemModule"
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
],
|
|
471
|
-
"description": "assureDesignSystem.",
|
|
472
|
-
"privacy": "public"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"kind": "function",
|
|
476
|
-
"name": "getCurrentDesignSystem",
|
|
477
|
-
"return": {
|
|
478
|
-
"type": {
|
|
479
|
-
"text": ""
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
"parameters": [
|
|
483
|
-
{
|
|
484
|
-
"name": "element",
|
|
485
|
-
"type": {
|
|
486
|
-
"text": "HTMLElement"
|
|
487
|
-
},
|
|
488
|
-
"description": "The starting HTML element"
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
"name": "fallbackPrefix",
|
|
492
|
-
"type": {
|
|
493
|
-
"text": "string"
|
|
494
|
-
},
|
|
495
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
"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.",
|
|
499
|
-
"privacy": "public"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"kind": "function",
|
|
503
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
504
|
-
"return": {
|
|
505
|
-
"type": {
|
|
506
|
-
"text": ""
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
|
-
"parameters": [
|
|
510
|
-
{
|
|
511
|
-
"name": "element",
|
|
512
|
-
"type": {
|
|
513
|
-
"text": "HTMLElement"
|
|
514
|
-
},
|
|
515
|
-
"description": "The starting HTML element"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"name": "fallbackPrefix",
|
|
519
|
-
"type": {
|
|
520
|
-
"text": "string"
|
|
521
|
-
},
|
|
522
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
|
-
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
526
|
-
"privacy": "public"
|
|
527
|
-
}
|
|
528
|
-
],
|
|
529
|
-
"exports": [
|
|
530
|
-
{
|
|
531
|
-
"kind": "js",
|
|
532
|
-
"name": "assureDesignSystem",
|
|
533
|
-
"declaration": {
|
|
534
|
-
"name": "assureDesignSystem",
|
|
535
|
-
"module": "src/design-system/design-system.ts"
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"kind": "js",
|
|
540
|
-
"name": "getCurrentDesignSystem",
|
|
541
|
-
"declaration": {
|
|
542
|
-
"name": "getCurrentDesignSystem",
|
|
543
|
-
"module": "src/design-system/design-system.ts"
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"kind": "js",
|
|
548
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
549
|
-
"declaration": {
|
|
550
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
551
|
-
"module": "src/design-system/design-system.ts"
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
]
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"kind": "javascript-module",
|
|
558
|
-
"path": "src/design-system/index.ts",
|
|
559
|
-
"declarations": [],
|
|
560
|
-
"exports": [
|
|
561
|
-
{
|
|
562
|
-
"kind": "js",
|
|
563
|
-
"name": "*",
|
|
564
|
-
"declaration": {
|
|
565
|
-
"name": "*",
|
|
566
|
-
"package": "./design-system"
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
]
|
|
570
|
-
},
|
|
571
653
|
{
|
|
572
654
|
"kind": "javascript-module",
|
|
573
655
|
"path": "src/directives/index.ts",
|
|
@@ -591,21 +673,6 @@
|
|
|
591
673
|
}
|
|
592
674
|
]
|
|
593
675
|
},
|
|
594
|
-
{
|
|
595
|
-
"kind": "javascript-module",
|
|
596
|
-
"path": "src/encoding/index.ts",
|
|
597
|
-
"declarations": [],
|
|
598
|
-
"exports": [
|
|
599
|
-
{
|
|
600
|
-
"kind": "js",
|
|
601
|
-
"name": "*",
|
|
602
|
-
"declaration": {
|
|
603
|
-
"name": "*",
|
|
604
|
-
"package": "./base64"
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
]
|
|
608
|
-
},
|
|
609
676
|
{
|
|
610
677
|
"kind": "javascript-module",
|
|
611
678
|
"path": "src/decorators/index.ts",
|
|
@@ -659,6 +726,21 @@
|
|
|
659
726
|
}
|
|
660
727
|
]
|
|
661
728
|
},
|
|
729
|
+
{
|
|
730
|
+
"kind": "javascript-module",
|
|
731
|
+
"path": "src/encoding/index.ts",
|
|
732
|
+
"declarations": [],
|
|
733
|
+
"exports": [
|
|
734
|
+
{
|
|
735
|
+
"kind": "js",
|
|
736
|
+
"name": "*",
|
|
737
|
+
"declaration": {
|
|
738
|
+
"name": "*",
|
|
739
|
+
"package": "./base64"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
},
|
|
662
744
|
{
|
|
663
745
|
"kind": "javascript-module",
|
|
664
746
|
"path": "src/env/index.ts",
|
|
@@ -2703,15 +2785,134 @@
|
|
|
2703
2785
|
"description": "Handle route changes by updating the pathName observable"
|
|
2704
2786
|
},
|
|
2705
2787
|
{
|
|
2706
|
-
"kind": "method",
|
|
2707
|
-
"name": "destroy",
|
|
2708
|
-
"privacy": "public",
|
|
2709
|
-
"return": {
|
|
2710
|
-
"type": {
|
|
2711
|
-
"text": "void"
|
|
2712
|
-
}
|
|
2713
|
-
},
|
|
2714
|
-
"description": "Clean up route detection listeners and polling."
|
|
2788
|
+
"kind": "method",
|
|
2789
|
+
"name": "destroy",
|
|
2790
|
+
"privacy": "public",
|
|
2791
|
+
"return": {
|
|
2792
|
+
"type": {
|
|
2793
|
+
"text": "void"
|
|
2794
|
+
}
|
|
2795
|
+
},
|
|
2796
|
+
"description": "Clean up route detection listeners and polling."
|
|
2797
|
+
}
|
|
2798
|
+
]
|
|
2799
|
+
}
|
|
2800
|
+
],
|
|
2801
|
+
"exports": [
|
|
2802
|
+
{
|
|
2803
|
+
"kind": "js",
|
|
2804
|
+
"name": "RouteUtil",
|
|
2805
|
+
"declaration": {
|
|
2806
|
+
"name": "RouteUtil",
|
|
2807
|
+
"module": "src/route/route.ts"
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
]
|
|
2811
|
+
},
|
|
2812
|
+
{
|
|
2813
|
+
"kind": "javascript-module",
|
|
2814
|
+
"path": "src/serializers/index.ts",
|
|
2815
|
+
"declarations": [],
|
|
2816
|
+
"exports": [
|
|
2817
|
+
{
|
|
2818
|
+
"kind": "js",
|
|
2819
|
+
"name": "*",
|
|
2820
|
+
"declaration": {
|
|
2821
|
+
"name": "*",
|
|
2822
|
+
"package": "./json"
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
]
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
"kind": "javascript-module",
|
|
2829
|
+
"path": "src/shortcut-manager/index.ts",
|
|
2830
|
+
"declarations": [],
|
|
2831
|
+
"exports": [
|
|
2832
|
+
{
|
|
2833
|
+
"kind": "js",
|
|
2834
|
+
"name": "*",
|
|
2835
|
+
"declaration": {
|
|
2836
|
+
"name": "*",
|
|
2837
|
+
"package": "./shortcut-manager"
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
"kind": "js",
|
|
2842
|
+
"name": "*",
|
|
2843
|
+
"declaration": {
|
|
2844
|
+
"name": "*",
|
|
2845
|
+
"package": "./shortcut-listener"
|
|
2846
|
+
}
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
"kind": "js",
|
|
2850
|
+
"name": "*",
|
|
2851
|
+
"declaration": {
|
|
2852
|
+
"name": "*",
|
|
2853
|
+
"package": "./shortcut-events"
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
]
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"kind": "javascript-module",
|
|
2860
|
+
"path": "src/shortcut-manager/shortcut-events.ts",
|
|
2861
|
+
"declarations": [
|
|
2862
|
+
{
|
|
2863
|
+
"kind": "variable",
|
|
2864
|
+
"name": "SHORTCUT_BLOCKED_EVENT",
|
|
2865
|
+
"type": {
|
|
2866
|
+
"text": "string"
|
|
2867
|
+
},
|
|
2868
|
+
"default": "'foundation-shortcut-blocked'"
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
"kind": "variable",
|
|
2872
|
+
"name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
|
|
2873
|
+
"type": {
|
|
2874
|
+
"text": "string"
|
|
2875
|
+
},
|
|
2876
|
+
"default": "'This shortcut is currently unavailable in this context.'"
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
"kind": "variable",
|
|
2880
|
+
"name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
|
|
2881
|
+
"type": {
|
|
2882
|
+
"text": "string"
|
|
2883
|
+
},
|
|
2884
|
+
"default": "'This shortcut is unavailable while typing in an input field.'"
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
"kind": "variable",
|
|
2888
|
+
"name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
|
|
2889
|
+
"type": {
|
|
2890
|
+
"text": "string"
|
|
2891
|
+
},
|
|
2892
|
+
"default": "'Shortcuts are paused.'"
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"kind": "variable",
|
|
2896
|
+
"name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
|
|
2897
|
+
"type": {
|
|
2898
|
+
"text": "string"
|
|
2899
|
+
},
|
|
2900
|
+
"default": "'This shortcut is unavailable in the current focus context.'"
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
"kind": "function",
|
|
2904
|
+
"name": "emitShortcutBlockedEvent",
|
|
2905
|
+
"return": {
|
|
2906
|
+
"type": {
|
|
2907
|
+
"text": "void"
|
|
2908
|
+
}
|
|
2909
|
+
},
|
|
2910
|
+
"parameters": [
|
|
2911
|
+
{
|
|
2912
|
+
"name": "detail",
|
|
2913
|
+
"type": {
|
|
2914
|
+
"text": "Omit<ShortcutBlockedEventDetail, 'message'> & { message?: string }"
|
|
2915
|
+
}
|
|
2715
2916
|
}
|
|
2716
2917
|
]
|
|
2717
2918
|
}
|
|
@@ -2719,48 +2920,50 @@
|
|
|
2719
2920
|
"exports": [
|
|
2720
2921
|
{
|
|
2721
2922
|
"kind": "js",
|
|
2722
|
-
"name": "
|
|
2923
|
+
"name": "SHORTCUT_BLOCKED_EVENT",
|
|
2723
2924
|
"declaration": {
|
|
2724
|
-
"name": "
|
|
2725
|
-
"module": "src/
|
|
2925
|
+
"name": "SHORTCUT_BLOCKED_EVENT",
|
|
2926
|
+
"module": "src/shortcut-manager/shortcut-events.ts"
|
|
2726
2927
|
}
|
|
2727
|
-
}
|
|
2728
|
-
]
|
|
2729
|
-
},
|
|
2730
|
-
{
|
|
2731
|
-
"kind": "javascript-module",
|
|
2732
|
-
"path": "src/serializers/index.ts",
|
|
2733
|
-
"declarations": [],
|
|
2734
|
-
"exports": [
|
|
2928
|
+
},
|
|
2735
2929
|
{
|
|
2736
2930
|
"kind": "js",
|
|
2737
|
-
"name": "
|
|
2931
|
+
"name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
|
|
2738
2932
|
"declaration": {
|
|
2739
|
-
"name": "
|
|
2740
|
-
"
|
|
2933
|
+
"name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
|
|
2934
|
+
"module": "src/shortcut-manager/shortcut-events.ts"
|
|
2741
2935
|
}
|
|
2742
|
-
}
|
|
2743
|
-
]
|
|
2744
|
-
},
|
|
2745
|
-
{
|
|
2746
|
-
"kind": "javascript-module",
|
|
2747
|
-
"path": "src/shortcut-manager/index.ts",
|
|
2748
|
-
"declarations": [],
|
|
2749
|
-
"exports": [
|
|
2936
|
+
},
|
|
2750
2937
|
{
|
|
2751
2938
|
"kind": "js",
|
|
2752
|
-
"name": "
|
|
2939
|
+
"name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
|
|
2753
2940
|
"declaration": {
|
|
2754
|
-
"name": "
|
|
2755
|
-
"
|
|
2941
|
+
"name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
|
|
2942
|
+
"module": "src/shortcut-manager/shortcut-events.ts"
|
|
2756
2943
|
}
|
|
2757
2944
|
},
|
|
2758
2945
|
{
|
|
2759
2946
|
"kind": "js",
|
|
2760
|
-
"name": "
|
|
2947
|
+
"name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
|
|
2761
2948
|
"declaration": {
|
|
2762
|
-
"name": "
|
|
2763
|
-
"
|
|
2949
|
+
"name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
|
|
2950
|
+
"module": "src/shortcut-manager/shortcut-events.ts"
|
|
2951
|
+
}
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
"kind": "js",
|
|
2955
|
+
"name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
|
|
2956
|
+
"declaration": {
|
|
2957
|
+
"name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
|
|
2958
|
+
"module": "src/shortcut-manager/shortcut-events.ts"
|
|
2959
|
+
}
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
"kind": "js",
|
|
2963
|
+
"name": "emitShortcutBlockedEvent",
|
|
2964
|
+
"declaration": {
|
|
2965
|
+
"name": "emitShortcutBlockedEvent",
|
|
2966
|
+
"module": "src/shortcut-manager/shortcut-events.ts"
|
|
2764
2967
|
}
|
|
2765
2968
|
}
|
|
2766
2969
|
]
|
|
@@ -2790,6 +2993,15 @@
|
|
|
2790
2993
|
"privacy": "private",
|
|
2791
2994
|
"default": "null"
|
|
2792
2995
|
},
|
|
2996
|
+
{
|
|
2997
|
+
"kind": "field",
|
|
2998
|
+
"name": "stateSubscription",
|
|
2999
|
+
"type": {
|
|
3000
|
+
"text": "Subscription | null"
|
|
3001
|
+
},
|
|
3002
|
+
"privacy": "private",
|
|
3003
|
+
"default": "null"
|
|
3004
|
+
},
|
|
2793
3005
|
{
|
|
2794
3006
|
"kind": "field",
|
|
2795
3007
|
"name": "isListening",
|
|
@@ -2845,6 +3057,58 @@
|
|
|
2845
3057
|
}
|
|
2846
3058
|
]
|
|
2847
3059
|
},
|
|
3060
|
+
{
|
|
3061
|
+
"kind": "method",
|
|
3062
|
+
"name": "getDeepActiveElement",
|
|
3063
|
+
"privacy": "private",
|
|
3064
|
+
"return": {
|
|
3065
|
+
"type": {
|
|
3066
|
+
"text": "Element | null"
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
"kind": "method",
|
|
3072
|
+
"name": "getEventElement",
|
|
3073
|
+
"privacy": "private",
|
|
3074
|
+
"return": {
|
|
3075
|
+
"type": {
|
|
3076
|
+
"text": "Element | null"
|
|
3077
|
+
}
|
|
3078
|
+
},
|
|
3079
|
+
"parameters": [
|
|
3080
|
+
{
|
|
3081
|
+
"name": "event",
|
|
3082
|
+
"type": {
|
|
3083
|
+
"text": "KeyboardEvent"
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
]
|
|
3087
|
+
},
|
|
3088
|
+
{
|
|
3089
|
+
"kind": "method",
|
|
3090
|
+
"name": "isEditableContext",
|
|
3091
|
+
"privacy": "private",
|
|
3092
|
+
"return": {
|
|
3093
|
+
"type": {
|
|
3094
|
+
"text": "boolean"
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3097
|
+
"parameters": [
|
|
3098
|
+
{
|
|
3099
|
+
"name": "event",
|
|
3100
|
+
"type": {
|
|
3101
|
+
"text": "KeyboardEvent"
|
|
3102
|
+
}
|
|
3103
|
+
},
|
|
3104
|
+
{
|
|
3105
|
+
"name": "editableSelector",
|
|
3106
|
+
"type": {
|
|
3107
|
+
"text": "string"
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
]
|
|
3111
|
+
},
|
|
2848
3112
|
{
|
|
2849
3113
|
"kind": "method",
|
|
2850
3114
|
"name": "isInputElement",
|
|
@@ -2860,6 +3124,12 @@
|
|
|
2860
3124
|
"type": {
|
|
2861
3125
|
"text": "HTMLElement | null"
|
|
2862
3126
|
}
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
"name": "editableSelector",
|
|
3130
|
+
"type": {
|
|
3131
|
+
"text": "string"
|
|
3132
|
+
}
|
|
2863
3133
|
}
|
|
2864
3134
|
]
|
|
2865
3135
|
}
|
|
@@ -2932,6 +3202,35 @@
|
|
|
2932
3202
|
},
|
|
2933
3203
|
"privacy": "private"
|
|
2934
3204
|
},
|
|
3205
|
+
{
|
|
3206
|
+
"kind": "field",
|
|
3207
|
+
"name": "executionGuards",
|
|
3208
|
+
"privacy": "private",
|
|
3209
|
+
"default": "new Map<string, () => ShortcutExecutionStatus | boolean>()"
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
"kind": "field",
|
|
3213
|
+
"name": "editableContextConfig",
|
|
3214
|
+
"type": {
|
|
3215
|
+
"text": "Required<ShortcutEditableContextConfig>"
|
|
3216
|
+
},
|
|
3217
|
+
"privacy": "private",
|
|
3218
|
+
"default": "{\n ...DEFAULT_SHORTCUT_EDITABLE_CONTEXT_CONFIG,\n }"
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
"kind": "field",
|
|
3222
|
+
"name": "editableSelector",
|
|
3223
|
+
"privacy": "private"
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
"kind": "field",
|
|
3227
|
+
"name": "blockedMessageConfig",
|
|
3228
|
+
"type": {
|
|
3229
|
+
"text": "Required<ShortcutBlockedMessageConfig>"
|
|
3230
|
+
},
|
|
3231
|
+
"privacy": "private",
|
|
3232
|
+
"default": "{\n ...DEFAULT_SHORTCUT_BLOCKED_MESSAGE_CONFIG,\n }"
|
|
3233
|
+
},
|
|
2935
3234
|
{
|
|
2936
3235
|
"kind": "field",
|
|
2937
3236
|
"name": "isPaused",
|
|
@@ -3199,6 +3498,118 @@
|
|
|
3199
3498
|
}
|
|
3200
3499
|
}
|
|
3201
3500
|
},
|
|
3501
|
+
{
|
|
3502
|
+
"kind": "method",
|
|
3503
|
+
"name": "registerExecutionGuard",
|
|
3504
|
+
"return": {
|
|
3505
|
+
"type": {
|
|
3506
|
+
"text": "void"
|
|
3507
|
+
}
|
|
3508
|
+
},
|
|
3509
|
+
"parameters": [
|
|
3510
|
+
{
|
|
3511
|
+
"name": "id",
|
|
3512
|
+
"type": {
|
|
3513
|
+
"text": "string"
|
|
3514
|
+
}
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
"name": "guard",
|
|
3518
|
+
"type": {
|
|
3519
|
+
"text": "() => ShortcutExecutionStatus | boolean"
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
]
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
"kind": "method",
|
|
3526
|
+
"name": "unregisterExecutionGuard",
|
|
3527
|
+
"return": {
|
|
3528
|
+
"type": {
|
|
3529
|
+
"text": "void"
|
|
3530
|
+
}
|
|
3531
|
+
},
|
|
3532
|
+
"parameters": [
|
|
3533
|
+
{
|
|
3534
|
+
"name": "id",
|
|
3535
|
+
"type": {
|
|
3536
|
+
"text": "string"
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
]
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
"kind": "method",
|
|
3543
|
+
"name": "clearExecutionGuards",
|
|
3544
|
+
"return": {
|
|
3545
|
+
"type": {
|
|
3546
|
+
"text": "void"
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
"kind": "method",
|
|
3552
|
+
"name": "configureEditableContext",
|
|
3553
|
+
"return": {
|
|
3554
|
+
"type": {
|
|
3555
|
+
"text": "void"
|
|
3556
|
+
}
|
|
3557
|
+
},
|
|
3558
|
+
"parameters": [
|
|
3559
|
+
{
|
|
3560
|
+
"name": "config",
|
|
3561
|
+
"default": "{}",
|
|
3562
|
+
"type": {
|
|
3563
|
+
"text": "ShortcutEditableContextConfig"
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
]
|
|
3567
|
+
},
|
|
3568
|
+
{
|
|
3569
|
+
"kind": "method",
|
|
3570
|
+
"name": "getEditableContextConfig",
|
|
3571
|
+
"return": {
|
|
3572
|
+
"type": {
|
|
3573
|
+
"text": "Required<ShortcutEditableContextConfig>"
|
|
3574
|
+
}
|
|
3575
|
+
}
|
|
3576
|
+
},
|
|
3577
|
+
{
|
|
3578
|
+
"kind": "method",
|
|
3579
|
+
"name": "getEditableSelector",
|
|
3580
|
+
"return": {
|
|
3581
|
+
"type": {
|
|
3582
|
+
"text": "string"
|
|
3583
|
+
}
|
|
3584
|
+
}
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"kind": "method",
|
|
3588
|
+
"name": "configureBlockedMessages",
|
|
3589
|
+
"return": {
|
|
3590
|
+
"type": {
|
|
3591
|
+
"text": "void"
|
|
3592
|
+
}
|
|
3593
|
+
},
|
|
3594
|
+
"parameters": [
|
|
3595
|
+
{
|
|
3596
|
+
"name": "config",
|
|
3597
|
+
"default": "{}",
|
|
3598
|
+
"type": {
|
|
3599
|
+
"text": "ShortcutBlockedMessageConfig"
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
]
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
"kind": "method",
|
|
3606
|
+
"name": "getBlockedMessages",
|
|
3607
|
+
"return": {
|
|
3608
|
+
"type": {
|
|
3609
|
+
"text": "Required<ShortcutBlockedMessageConfig>"
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
},
|
|
3202
3613
|
{
|
|
3203
3614
|
"kind": "method",
|
|
3204
3615
|
"name": "pause",
|
|
@@ -3287,6 +3698,44 @@
|
|
|
3287
3698
|
}
|
|
3288
3699
|
}
|
|
3289
3700
|
]
|
|
3701
|
+
},
|
|
3702
|
+
{
|
|
3703
|
+
"kind": "method",
|
|
3704
|
+
"name": "getExecutionStatus",
|
|
3705
|
+
"privacy": "private",
|
|
3706
|
+
"return": {
|
|
3707
|
+
"type": {
|
|
3708
|
+
"text": "ShortcutExecutionStatus"
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
"parameters": [
|
|
3712
|
+
{
|
|
3713
|
+
"name": "shortcut",
|
|
3714
|
+
"type": {
|
|
3715
|
+
"text": "ShortcutDefinition"
|
|
3716
|
+
}
|
|
3717
|
+
}
|
|
3718
|
+
]
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
"kind": "method",
|
|
3722
|
+
"name": "getExecutionGuardStatus",
|
|
3723
|
+
"privacy": "private",
|
|
3724
|
+
"return": {
|
|
3725
|
+
"type": {
|
|
3726
|
+
"text": "ShortcutExecutionStatus"
|
|
3727
|
+
}
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
"kind": "method",
|
|
3732
|
+
"name": "refreshEditableSelector",
|
|
3733
|
+
"privacy": "private",
|
|
3734
|
+
"return": {
|
|
3735
|
+
"type": {
|
|
3736
|
+
"text": "void"
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3290
3739
|
}
|
|
3291
3740
|
]
|
|
3292
3741
|
},
|