@genesislcap/foundation-utils 14.422.2-alpha-0a3f40b.0 → 14.423.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.
@@ -553,80 +553,6 @@
553
553
  }
554
554
  ]
555
555
  },
556
- {
557
- "kind": "javascript-module",
558
- "path": "src/design-system/editable-elements.ts",
559
- "declarations": [
560
- {
561
- "kind": "variable",
562
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
563
- "type": {
564
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
565
- },
566
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
567
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
568
- },
569
- {
570
- "kind": "variable",
571
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
572
- "type": {
573
- "text": "Record<\n ShortcutDesignSystemPrefix,\n readonly string[]\n>"
574
- },
575
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
576
- "description": "Design-system specific editable host selectors."
577
- },
578
- {
579
- "kind": "function",
580
- "name": "buildEditableElementSelector",
581
- "return": {
582
- "type": {
583
- "text": "string"
584
- }
585
- },
586
- "parameters": [
587
- {
588
- "name": "designSystems",
589
- "type": {
590
- "text": "readonly ShortcutDesignSystemPrefix[]"
591
- }
592
- },
593
- {
594
- "name": "customEditableSelectors",
595
- "default": "[]",
596
- "type": {
597
- "text": "readonly string[]"
598
- }
599
- }
600
- ]
601
- }
602
- ],
603
- "exports": [
604
- {
605
- "kind": "js",
606
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
607
- "declaration": {
608
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
609
- "module": "src/design-system/editable-elements.ts"
610
- }
611
- },
612
- {
613
- "kind": "js",
614
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
615
- "declaration": {
616
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
617
- "module": "src/design-system/editable-elements.ts"
618
- }
619
- },
620
- {
621
- "kind": "js",
622
- "name": "buildEditableElementSelector",
623
- "declaration": {
624
- "name": "buildEditableElementSelector",
625
- "module": "src/design-system/editable-elements.ts"
626
- }
627
- }
628
- ]
629
- },
630
556
  {
631
557
  "kind": "javascript-module",
632
558
  "path": "src/design-system/index.ts",
@@ -639,14 +565,6 @@
639
565
  "name": "*",
640
566
  "package": "./design-system"
641
567
  }
642
- },
643
- {
644
- "kind": "js",
645
- "name": "*",
646
- "declaration": {
647
- "name": "*",
648
- "package": "./editable-elements"
649
- }
650
568
  }
651
569
  ]
652
570
  },
@@ -2844,134 +2762,6 @@
2844
2762
  "name": "*",
2845
2763
  "package": "./shortcut-listener"
2846
2764
  }
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
- }
2916
- },
2917
- {
2918
- "name": "target",
2919
- "optional": true,
2920
- "type": {
2921
- "text": "EventTarget | null"
2922
- }
2923
- }
2924
- ]
2925
- }
2926
- ],
2927
- "exports": [
2928
- {
2929
- "kind": "js",
2930
- "name": "SHORTCUT_BLOCKED_EVENT",
2931
- "declaration": {
2932
- "name": "SHORTCUT_BLOCKED_EVENT",
2933
- "module": "src/shortcut-manager/shortcut-events.ts"
2934
- }
2935
- },
2936
- {
2937
- "kind": "js",
2938
- "name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
2939
- "declaration": {
2940
- "name": "SHORTCUT_BLOCKED_DEFAULT_MESSAGE",
2941
- "module": "src/shortcut-manager/shortcut-events.ts"
2942
- }
2943
- },
2944
- {
2945
- "kind": "js",
2946
- "name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
2947
- "declaration": {
2948
- "name": "SHORTCUT_BLOCKED_INPUT_MESSAGE",
2949
- "module": "src/shortcut-manager/shortcut-events.ts"
2950
- }
2951
- },
2952
- {
2953
- "kind": "js",
2954
- "name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
2955
- "declaration": {
2956
- "name": "SHORTCUT_BLOCKED_PAUSED_MESSAGE",
2957
- "module": "src/shortcut-manager/shortcut-events.ts"
2958
- }
2959
- },
2960
- {
2961
- "kind": "js",
2962
- "name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
2963
- "declaration": {
2964
- "name": "SHORTCUT_BLOCKED_ELEMENT_FOCUS_MESSAGE",
2965
- "module": "src/shortcut-manager/shortcut-events.ts"
2966
- }
2967
- },
2968
- {
2969
- "kind": "js",
2970
- "name": "emitShortcutBlockedEvent",
2971
- "declaration": {
2972
- "name": "emitShortcutBlockedEvent",
2973
- "module": "src/shortcut-manager/shortcut-events.ts"
2974
- }
2975
2765
  }
2976
2766
  ]
2977
2767
  },
@@ -3009,6 +2799,11 @@
3009
2799
  "privacy": "private",
3010
2800
  "default": "false"
3011
2801
  },
2802
+ {
2803
+ "kind": "method",
2804
+ "name": "setupStateSubscription",
2805
+ "privacy": "private"
2806
+ },
3012
2807
  {
3013
2808
  "kind": "method",
3014
2809
  "name": "addKeyListener",
@@ -3050,58 +2845,6 @@
3050
2845
  }
3051
2846
  ]
3052
2847
  },
3053
- {
3054
- "kind": "method",
3055
- "name": "getDeepActiveElement",
3056
- "privacy": "private",
3057
- "return": {
3058
- "type": {
3059
- "text": "Element | null"
3060
- }
3061
- }
3062
- },
3063
- {
3064
- "kind": "method",
3065
- "name": "getEventElement",
3066
- "privacy": "private",
3067
- "return": {
3068
- "type": {
3069
- "text": "Element | null"
3070
- }
3071
- },
3072
- "parameters": [
3073
- {
3074
- "name": "event",
3075
- "type": {
3076
- "text": "KeyboardEvent"
3077
- }
3078
- }
3079
- ]
3080
- },
3081
- {
3082
- "kind": "method",
3083
- "name": "isEditableContext",
3084
- "privacy": "private",
3085
- "return": {
3086
- "type": {
3087
- "text": "boolean"
3088
- }
3089
- },
3090
- "parameters": [
3091
- {
3092
- "name": "event",
3093
- "type": {
3094
- "text": "KeyboardEvent"
3095
- }
3096
- },
3097
- {
3098
- "name": "editableSelector",
3099
- "type": {
3100
- "text": "string"
3101
- }
3102
- }
3103
- ]
3104
- },
3105
2848
  {
3106
2849
  "kind": "method",
3107
2850
  "name": "isInputElement",
@@ -3117,12 +2860,6 @@
3117
2860
  "type": {
3118
2861
  "text": "HTMLElement | null"
3119
2862
  }
3120
- },
3121
- {
3122
- "name": "editableSelector",
3123
- "type": {
3124
- "text": "string"
3125
- }
3126
2863
  }
3127
2864
  ]
3128
2865
  }
@@ -3195,35 +2932,6 @@
3195
2932
  },
3196
2933
  "privacy": "private"
3197
2934
  },
3198
- {
3199
- "kind": "field",
3200
- "name": "executionGuards",
3201
- "privacy": "private",
3202
- "default": "new Map<string, () => ShortcutExecutionStatus | boolean>()"
3203
- },
3204
- {
3205
- "kind": "field",
3206
- "name": "editableContextConfig",
3207
- "type": {
3208
- "text": "Required<ShortcutEditableContextConfig>"
3209
- },
3210
- "privacy": "private",
3211
- "default": "{\n ...DEFAULT_SHORTCUT_EDITABLE_CONTEXT_CONFIG,\n }"
3212
- },
3213
- {
3214
- "kind": "field",
3215
- "name": "editableSelector",
3216
- "privacy": "private"
3217
- },
3218
- {
3219
- "kind": "field",
3220
- "name": "blockedMessageConfig",
3221
- "type": {
3222
- "text": "Required<ShortcutBlockedMessageConfig>"
3223
- },
3224
- "privacy": "private",
3225
- "default": "{\n ...DEFAULT_SHORTCUT_BLOCKED_MESSAGE_CONFIG,\n }"
3226
- },
3227
2935
  {
3228
2936
  "kind": "field",
3229
2937
  "name": "isPaused",
@@ -3336,13 +3044,6 @@
3336
3044
  "type": {
3337
3045
  "text": "string"
3338
3046
  }
3339
- },
3340
- {
3341
- "name": "eventTarget",
3342
- "optional": true,
3343
- "type": {
3344
- "text": "EventTarget | null"
3345
- }
3346
3047
  }
3347
3048
  ]
3348
3049
  },
@@ -3366,13 +3067,6 @@
3366
3067
  "type": {
3367
3068
  "text": "string"
3368
3069
  }
3369
- },
3370
- {
3371
- "name": "eventTarget",
3372
- "optional": true,
3373
- "type": {
3374
- "text": "EventTarget | null"
3375
- }
3376
3070
  }
3377
3071
  ]
3378
3072
  },
@@ -3505,118 +3199,6 @@
3505
3199
  }
3506
3200
  }
3507
3201
  },
3508
- {
3509
- "kind": "method",
3510
- "name": "registerExecutionGuard",
3511
- "return": {
3512
- "type": {
3513
- "text": "void"
3514
- }
3515
- },
3516
- "parameters": [
3517
- {
3518
- "name": "id",
3519
- "type": {
3520
- "text": "string"
3521
- }
3522
- },
3523
- {
3524
- "name": "guard",
3525
- "type": {
3526
- "text": "() => ShortcutExecutionStatus | boolean"
3527
- }
3528
- }
3529
- ]
3530
- },
3531
- {
3532
- "kind": "method",
3533
- "name": "unregisterExecutionGuard",
3534
- "return": {
3535
- "type": {
3536
- "text": "void"
3537
- }
3538
- },
3539
- "parameters": [
3540
- {
3541
- "name": "id",
3542
- "type": {
3543
- "text": "string"
3544
- }
3545
- }
3546
- ]
3547
- },
3548
- {
3549
- "kind": "method",
3550
- "name": "clearExecutionGuards",
3551
- "return": {
3552
- "type": {
3553
- "text": "void"
3554
- }
3555
- }
3556
- },
3557
- {
3558
- "kind": "method",
3559
- "name": "configureEditableContext",
3560
- "return": {
3561
- "type": {
3562
- "text": "void"
3563
- }
3564
- },
3565
- "parameters": [
3566
- {
3567
- "name": "config",
3568
- "default": "{}",
3569
- "type": {
3570
- "text": "ShortcutEditableContextConfig"
3571
- }
3572
- }
3573
- ]
3574
- },
3575
- {
3576
- "kind": "method",
3577
- "name": "getEditableContextConfig",
3578
- "return": {
3579
- "type": {
3580
- "text": "Required<ShortcutEditableContextConfig>"
3581
- }
3582
- }
3583
- },
3584
- {
3585
- "kind": "method",
3586
- "name": "getEditableSelector",
3587
- "return": {
3588
- "type": {
3589
- "text": "string"
3590
- }
3591
- }
3592
- },
3593
- {
3594
- "kind": "method",
3595
- "name": "configureBlockedMessages",
3596
- "return": {
3597
- "type": {
3598
- "text": "void"
3599
- }
3600
- },
3601
- "parameters": [
3602
- {
3603
- "name": "config",
3604
- "default": "{}",
3605
- "type": {
3606
- "text": "ShortcutBlockedMessageConfig"
3607
- }
3608
- }
3609
- ]
3610
- },
3611
- {
3612
- "kind": "method",
3613
- "name": "getBlockedMessages",
3614
- "return": {
3615
- "type": {
3616
- "text": "Required<ShortcutBlockedMessageConfig>"
3617
- }
3618
- }
3619
- },
3620
3202
  {
3621
3203
  "kind": "method",
3622
3204
  "name": "pause",
@@ -3705,44 +3287,6 @@
3705
3287
  }
3706
3288
  }
3707
3289
  ]
3708
- },
3709
- {
3710
- "kind": "method",
3711
- "name": "getExecutionStatus",
3712
- "privacy": "private",
3713
- "return": {
3714
- "type": {
3715
- "text": "ShortcutExecutionStatus"
3716
- }
3717
- },
3718
- "parameters": [
3719
- {
3720
- "name": "shortcut",
3721
- "type": {
3722
- "text": "ShortcutDefinition"
3723
- }
3724
- }
3725
- ]
3726
- },
3727
- {
3728
- "kind": "method",
3729
- "name": "getExecutionGuardStatus",
3730
- "privacy": "private",
3731
- "return": {
3732
- "type": {
3733
- "text": "ShortcutExecutionStatus"
3734
- }
3735
- }
3736
- },
3737
- {
3738
- "kind": "method",
3739
- "name": "refreshEditableSelector",
3740
- "privacy": "private",
3741
- "return": {
3742
- "type": {
3743
- "text": "void"
3744
- }
3745
- }
3746
3290
  }
3747
3291
  ]
3748
3292
  },
@@ -1,3 +1,2 @@
1
1
  export * from './design-system';
2
- export * from './editable-elements';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export * from './shortcut-manager';
2
2
  export * from './shortcut-listener';
3
- export * from './shortcut-events';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shortcut-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shortcut-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -11,13 +11,11 @@ export declare class FoundationShortcutListener extends FASTElement {
11
11
  private isListening;
12
12
  connectedCallback(): void;
13
13
  disconnectedCallback(): void;
14
+ private setupStateSubscription;
14
15
  private addKeyListener;
15
16
  private removeKeyListener;
16
17
  private handleKeyDown;
17
18
  private extractKeyFromCode;
18
- private getDeepActiveElement;
19
- private getEventElement;
20
- private isEditableContext;
21
19
  private isInputElement;
22
20
  }
23
21
  //# sourceMappingURL=shortcut-listener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shortcut-listener.d.ts","sourceRoot":"","sources":["../../../src/shortcut-manager/shortcut-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGrE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;GAIG;AACH,qBAGa,0BAA2B,SAAQ,WAAW;IAChC,eAAe,EAAE,eAAe,CAAC;IAE1D,OAAO,CAAC,WAAW,CAAiD;IACpE,OAAO,CAAC,WAAW,CAAS;IAE5B,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,aAAa;IA6CrB,OAAO,CAAC,kBAAkB;IA6C1B,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,cAAc;CAYvB"}
1
+ {"version":3,"file":"shortcut-listener.d.ts","sourceRoot":"","sources":["../../../src/shortcut-manager/shortcut-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;GAIG;AACH,qBAGa,0BAA2B,SAAQ,WAAW;IAChC,eAAe,EAAE,eAAe,CAAC;IAE1D,OAAO,CAAC,WAAW,CAAiD;IACpE,OAAO,CAAC,WAAW,CAAS;IAE5B,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,sBAAsB;IAgB9B,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,aAAa;IA6BrB,OAAO,CAAC,kBAAkB;IA6C1B,OAAO,CAAC,cAAc;CAuBvB"}
@@ -7,25 +7,6 @@ export type ShortcutExecutionStatus = {
7
7
  disabled?: boolean;
8
8
  tooltip?: string;
9
9
  };
10
- export type ShortcutDesignSystemPrefix = 'rapid' | 'zero';
11
- export type ShortcutEditableContextConfig = {
12
- /**
13
- * Which design systems should be considered when detecting editable custom elements.
14
- * @default ['rapid']
15
- */
16
- designSystems?: ShortcutDesignSystemPrefix[];
17
- /**
18
- * Optional app-specific selectors for editable host elements.
19
- * @default []
20
- */
21
- customEditableSelectors?: string[];
22
- };
23
- export type ShortcutBlockedMessageConfig = {
24
- defaultMessage?: string;
25
- inputMessage?: string;
26
- pausedMessage?: string;
27
- elementFocusMessage?: string;
28
- };
29
10
  /**
30
11
  * A definition of a keyboard shortcut
31
12
  * @public
@@ -71,13 +52,13 @@ export interface ShortcutManager {
71
52
  * @param id - The id of the shortcut to execute
72
53
  * @remarks This method will execute the shortcut in the active context
73
54
  */
74
- executeShortcut(id: string, eventTarget?: EventTarget | null): void;
55
+ executeShortcut(id: string): void;
75
56
  /**
76
57
  * Execute a shortcut by its id and context
77
58
  * @param context - The context of the shortcut to execute
78
59
  * @param id - The id of the shortcut to execute
79
60
  */
80
- executeShortcutByContext(context: string, id: string, eventTarget?: EventTarget | null): void;
61
+ executeShortcutByContext(context: string, id: string): void;
81
62
  getShortcuts(): ShortcutDefinition[];
82
63
  getShortcutsByContext(context: string): ShortcutDefinition[];
83
64
  getContexts(): string[];
@@ -92,22 +73,6 @@ export interface ShortcutManager {
92
73
  isPaused: boolean;
93
74
  isPaused$: Observable<boolean>;
94
75
  isPausedSubject: BehaviorSubject<boolean>;
95
- /**
96
- * Register a global execution guard.
97
- * @remarks Guards are evaluated before shortcut-specific canExecute checks.
98
- */
99
- registerExecutionGuard(id: string, guard: () => ShortcutExecutionStatus | boolean): void;
100
- unregisterExecutionGuard(id: string): void;
101
- clearExecutionGuards(): void;
102
- /**
103
- * Configure editable-context detection used by shortcut listeners.
104
- * @remarks This is intended to be set once during app startup.
105
- */
106
- configureEditableContext(config?: ShortcutEditableContextConfig): void;
107
- getEditableContextConfig(): Required<ShortcutEditableContextConfig>;
108
- getEditableSelector(): string;
109
- configureBlockedMessages(config?: ShortcutBlockedMessageConfig): void;
110
- getBlockedMessages(): Required<ShortcutBlockedMessageConfig>;
111
76
  }
112
77
  /**
113
78
  * Default implementation of the ShortcutManager interface
@@ -119,10 +84,6 @@ export declare class DefaultShortcutManager implements ShortcutManager {
119
84
  private keyCombinationMap;
120
85
  private _isPausedSubject;
121
86
  private _activeContext;
122
- private executionGuards;
123
- private editableContextConfig;
124
- private editableSelector;
125
- private blockedMessageConfig;
126
87
  get isPaused(): boolean;
127
88
  get isPaused$(): Observable<boolean>;
128
89
  get isPausedSubject(): BehaviorSubject<boolean>;
@@ -130,8 +91,8 @@ export declare class DefaultShortcutManager implements ShortcutManager {
130
91
  registerShortcut(shortcut: ShortcutDefinition): ShortcutRegistrationResult;
131
92
  unregisterShortcut(context: string, id: string): void;
132
93
  unregisterShortcutsByContext(context: string): void;
133
- executeShortcut(id: string, eventTarget?: EventTarget | null): void;
134
- executeShortcutByContext(context: string, id: string, eventTarget?: EventTarget | null): void;
94
+ executeShortcut(id: string): void;
95
+ executeShortcutByContext(context: string, id: string): void;
135
96
  getShortcuts(): ShortcutDefinition[];
136
97
  getShortcutsByContext(context: string): ShortcutDefinition[];
137
98
  findShortcutByKeyCombination(key: string, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): ShortcutDefinition | undefined;
@@ -141,14 +102,6 @@ export declare class DefaultShortcutManager implements ShortcutManager {
141
102
  setActiveContext(context: string): void;
142
103
  getActiveContext(): string | undefined;
143
104
  clearActiveContext(): void;
144
- registerExecutionGuard(id: string, guard: () => ShortcutExecutionStatus | boolean): void;
145
- unregisterExecutionGuard(id: string): void;
146
- clearExecutionGuards(): void;
147
- configureEditableContext(config?: ShortcutEditableContextConfig): void;
148
- getEditableContextConfig(): Required<ShortcutEditableContextConfig>;
149
- getEditableSelector(): string;
150
- configureBlockedMessages(config?: ShortcutBlockedMessageConfig): void;
151
- getBlockedMessages(): Required<ShortcutBlockedMessageConfig>;
152
105
  pause(): void;
153
106
  resume(): void;
154
107
  /**
@@ -158,9 +111,6 @@ export declare class DefaultShortcutManager implements ShortcutManager {
158
111
  private normalizeShortcutDefinition;
159
112
  private createKeyCombinationKey;
160
113
  private isElementFocused;
161
- private getExecutionStatus;
162
- private getExecutionGuardStatus;
163
- private refreshEditableSelector;
164
114
  }
165
115
  /**
166
116
  * A dependency injection token for the ShortcutManager interface.