@playkit-js/playkit-js-ui 0.79.4 → 0.79.5-canary.0-91e5b69
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/playkit-js-ui.d.ts +53 -17
- package/dist/playkit-ui.js +1 -1
- package/dist/playkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/components/expandable-text/expandable-text.tsx +12 -13
- package/src/components/settings/settings.tsx +72 -1
- package/src/components/speed-menu/speed-menu.tsx +1 -88
- package/src/utils/index.ts +1 -1
- package/src/utils/key-map.ts +43 -1
package/dist/playkit-js-ui.d.ts
CHANGED
|
@@ -4364,6 +4364,49 @@ export declare type KeyboardKey = {
|
|
|
4364
4364
|
shiftKey?: boolean;
|
|
4365
4365
|
};
|
|
4366
4366
|
|
|
4367
|
+
declare const KeyCode: {
|
|
4368
|
+
Backspace: string;
|
|
4369
|
+
Tab: string;
|
|
4370
|
+
Enter: string;
|
|
4371
|
+
ShiftLeft: string;
|
|
4372
|
+
ShiftRight: string;
|
|
4373
|
+
ControlLeft: string;
|
|
4374
|
+
ControlRight: string;
|
|
4375
|
+
AltLeft: string;
|
|
4376
|
+
AltRight: string;
|
|
4377
|
+
Pause: string;
|
|
4378
|
+
CapsLock: string;
|
|
4379
|
+
Escape: string;
|
|
4380
|
+
Space: string;
|
|
4381
|
+
PageUp: string;
|
|
4382
|
+
PageDown: string;
|
|
4383
|
+
End: string;
|
|
4384
|
+
Home: string;
|
|
4385
|
+
ArrowLeft: string;
|
|
4386
|
+
ArrowUp: string;
|
|
4387
|
+
ArrowRight: string;
|
|
4388
|
+
ArrowDown: string;
|
|
4389
|
+
Insert: string;
|
|
4390
|
+
Delete: string;
|
|
4391
|
+
KeyP: string;
|
|
4392
|
+
KeyC: string;
|
|
4393
|
+
KeyF: string;
|
|
4394
|
+
KeyM: string;
|
|
4395
|
+
Numpad0: string;
|
|
4396
|
+
Semicolon: string;
|
|
4397
|
+
Equal: string;
|
|
4398
|
+
Comma: string;
|
|
4399
|
+
Minus: string;
|
|
4400
|
+
Period: string;
|
|
4401
|
+
Slash: string;
|
|
4402
|
+
};
|
|
4403
|
+
|
|
4404
|
+
/**
|
|
4405
|
+
* @deprecated Use the `KeyCode` object instead.
|
|
4406
|
+
* see here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
|
|
4407
|
+
* For more information on keyboard event codes, refer to the MDN documentation:
|
|
4408
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values
|
|
4409
|
+
*/
|
|
4367
4410
|
declare const KeyMap: {
|
|
4368
4411
|
[key: string]: number;
|
|
4369
4412
|
};
|
|
@@ -6438,6 +6481,15 @@ declare class Settings extends Component<any, any> {
|
|
|
6438
6481
|
* @memberof Settings
|
|
6439
6482
|
*/
|
|
6440
6483
|
componentDidMount(): void;
|
|
6484
|
+
/**
|
|
6485
|
+
* on settings control key down, update the settings in case of up/down keys
|
|
6486
|
+
*
|
|
6487
|
+
* @method handleKeydown
|
|
6488
|
+
* @param {KeyboardEvent} event - keyboardEvent event
|
|
6489
|
+
* @returns {void}
|
|
6490
|
+
* @memberof SpeedMenu
|
|
6491
|
+
*/
|
|
6492
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
6441
6493
|
/**
|
|
6442
6494
|
* We update the last language selected here upon trackTracks props change. This is done to make sure we update the
|
|
6443
6495
|
* last text track lanague upon language menu selection and using the (C) keyboard key.
|
|
@@ -6950,23 +7002,6 @@ declare interface SourcesConfig extends Omit<ProviderMediaConfigSourcesObject, '
|
|
|
6950
7002
|
* @extends {Component}
|
|
6951
7003
|
*/
|
|
6952
7004
|
declare class SpeedMenu extends Component<any, any> {
|
|
6953
|
-
_keyboardEventHandlers: Array<KeyboardEventHandlers>;
|
|
6954
|
-
/**
|
|
6955
|
-
* after component mounted, set event listener to click outside of the component
|
|
6956
|
-
*
|
|
6957
|
-
* @returns {void}
|
|
6958
|
-
* @memberof SpeedMenu
|
|
6959
|
-
*/
|
|
6960
|
-
componentDidMount(): void;
|
|
6961
|
-
/**
|
|
6962
|
-
* on settings control key down, update the settings in case of up/down keys
|
|
6963
|
-
*
|
|
6964
|
-
* @method handleKeydown
|
|
6965
|
-
* @param {KeyboardEvent} event - keyboardEvent event
|
|
6966
|
-
* @returns {void}
|
|
6967
|
-
* @memberof SpeedMenu
|
|
6968
|
-
*/
|
|
6969
|
-
handleKeydown(event: KeyboardEvent): void;
|
|
6970
7005
|
/**
|
|
6971
7006
|
* change player playback rate and update it in the store state
|
|
6972
7007
|
*
|
|
@@ -7768,6 +7803,7 @@ declare namespace Utils {
|
|
|
7768
7803
|
bindActions,
|
|
7769
7804
|
focusElement,
|
|
7770
7805
|
KeyMap,
|
|
7806
|
+
KeyCode,
|
|
7771
7807
|
getLogger,
|
|
7772
7808
|
withKeyboardA11y,
|
|
7773
7809
|
toHHMMSS,
|