@ringcentral/juno 2.41.0 → 2.41.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.
Files changed (166) hide show
  1. package/components/Accordion/Accordion.d.ts +1 -1
  2. package/components/Accordion/AccordionDetails/AccordionDetails.d.ts +1 -1
  3. package/components/Accordion/AccordionSummary/AccordionSummary.d.ts +1 -1
  4. package/components/Alert/Alert.d.ts +1 -1
  5. package/components/AppBar/AppBar.d.ts +2 -2
  6. package/components/Avatar/styles/StyledAvatarWrapper.d.ts +1 -1
  7. package/components/Backdrop/Backdrop.d.ts +1 -1
  8. package/components/Badge/Badge.d.ts +1 -1
  9. package/components/Box/Box.d.ts +1 -1
  10. package/components/Buttons/Button/Button.d.ts +2 -2
  11. package/components/Buttons/ButtonBase/ButtonBase.d.ts +1 -1
  12. package/components/Buttons/ButtonGroup/ButtonGroup.d.ts +1 -1
  13. package/components/Buttons/IconButton/IconButton.d.ts +2 -2
  14. package/components/Buttons/IconButtonGroup/IconButtonGroup.d.ts +1 -1
  15. package/components/Buttons/SplitButton/SplitButton.d.ts +1 -1
  16. package/components/Buttons/SplitButton/styles/StyledArrowIcon.d.ts +1 -1
  17. package/components/Buttons/ToggleButton/ToggleButton.d.ts +1 -1
  18. package/components/Buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  19. package/components/Card/Card/Card.d.ts +1 -1
  20. package/components/Card/CardActions/CardActions.d.ts +1 -1
  21. package/components/Card/CardContent/CardContent.d.ts +1 -1
  22. package/components/Card/CardHeader/CardHeader.d.ts +8 -8
  23. package/components/Card/CardHoverActions/CardHoverActions.d.ts +1 -1
  24. package/components/Card/CardMedia/CardMedia.d.ts +8 -8
  25. package/components/Card/CardSelectionArea/CardSelectionArea.d.ts +1 -1
  26. package/components/Dialer/DialDelete/DialDelete.d.ts +1 -0
  27. package/components/Dialer/DialDelete/DialDelete.js +1 -1
  28. package/components/Dialer/DialPad/DialPad.d.ts +4 -4
  29. package/components/Dialer/DialTextField/DialTextField.d.ts +1 -1
  30. package/components/Dialog/Dialog.d.ts +1 -1
  31. package/components/Dialog/DialogActions/DialogActions.d.ts +2 -2
  32. package/components/Dialog/DialogContent/DialogContent.d.ts +2 -2
  33. package/components/Dialog/DialogContentText/DialogContentText.d.ts +2 -2
  34. package/components/Dialog/DialogTitle/DialogTitle.d.ts +2 -2
  35. package/components/Divider/Divider.d.ts +1 -1
  36. package/components/Downshift/SuggestionList/SuggestionList.d.ts +3 -3
  37. package/components/Downshift/styles/DownshiftStyle.d.ts +2 -2
  38. package/components/Downshift/styles/StyledPopper.d.ts +1 -1
  39. package/components/Downshift/styles/StyledTextField.d.ts +1 -1
  40. package/components/Downshift/utils/useDownshift.d.ts +2 -2
  41. package/components/Downshift/utils/useDownshiftTag.d.ts +3 -3
  42. package/components/Drawer/Drawer.d.ts +1 -1
  43. package/components/Forms/Checkbox/Checkbox.d.ts +1 -1
  44. package/components/Forms/FormControl.d.ts +1 -1
  45. package/components/Forms/FormControlLabel/FormControlLabel.d.ts +1 -1
  46. package/components/Forms/FormGroup/FormGroup.d.ts +1 -1
  47. package/components/Forms/FormHelperText/FormHelperText.d.ts +1 -1
  48. package/components/Forms/FormHelperText/styles/StyledFormHelperText.d.ts +1 -1
  49. package/components/Forms/FormLabel.d.ts +1 -1
  50. package/components/Forms/InputLabel/InputLabel.d.ts +1 -1
  51. package/components/Forms/InputLabel/styles/StyledInputLabel.d.ts +1 -1
  52. package/components/Forms/Picker/DatePicker/Calendar.js +1 -1
  53. package/components/Forms/Picker/DatePicker/DatePicker.d.ts +2 -2
  54. package/components/Forms/Picker/DatePicker/DatePickerHeader.js +1 -1
  55. package/components/Forms/Picker/DatePicker/Year.js +1 -1
  56. package/components/Forms/Picker/DatePicker/styles/StyledCalendar.d.ts +2 -2
  57. package/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.d.ts +3 -3
  58. package/components/Forms/Picker/DatePicker/styles/StyledYear.d.ts +1 -1
  59. package/components/Forms/Picker/TimePicker/NumberPicker.d.ts +2 -2
  60. package/components/Forms/Picker/TimePicker/NumberPicker.js +1 -1
  61. package/components/Forms/Picker/TimePicker/SelectionView.js +1 -1
  62. package/components/Forms/Picker/TimePicker/TimePicker.js +1 -1
  63. package/components/Forms/Picker/TimePicker/ToggleText.d.ts +2 -2
  64. package/components/Forms/Picker/TimePicker/styles/StyledSelectionItem.d.ts +1 -1
  65. package/components/Forms/Picker/TimePicker/styles/StyledTimeIconButton.d.ts +1 -1
  66. package/components/Forms/Picker/styles/PickerBaseIconButton.d.ts +1 -1
  67. package/components/Forms/Picker/styles/StyledPickerTextField.d.ts +1 -1
  68. package/components/Forms/Picker/styles/StyledPopover.d.ts +1 -1
  69. package/components/Forms/Picker/utils/PickerTextField/PickerTextField.d.ts +1 -1
  70. package/components/Forms/Picker/utils/PickerTextField/PickerTextField.js +5 -1
  71. package/components/Forms/Radio/Radio.d.ts +1 -1
  72. package/components/Forms/RadioGroup/RadioGroup.d.ts +1 -1
  73. package/components/Forms/Select/PlainSelect/PlainSelect.d.ts +1 -1
  74. package/components/Forms/Select/Select.d.ts +1 -1
  75. package/components/Forms/Select/styles/SelectArrowDownIcon.d.ts +1 -1
  76. package/components/Forms/Select/utils/SelectInput/SelectInput.d.ts +1 -1
  77. package/components/Forms/Slider/Slider.d.ts +1 -1
  78. package/components/Forms/Switch/Switch.d.ts +1 -1
  79. package/components/Forms/TextField/TextField.d.ts +2 -2
  80. package/components/Forms/TextField/styles/ClearIconButton.d.ts +2 -2
  81. package/components/Forms/Textarea/Textarea.d.ts +1 -1
  82. package/components/Grid/Grid.d.ts +1 -1
  83. package/components/Icon/Icon.d.ts +2 -2
  84. package/components/Link/Link.d.ts +1 -1
  85. package/components/List/List/List.d.ts +1 -1
  86. package/components/List/ListItem/ListItem.d.ts +2 -2
  87. package/components/List/ListItemIcon/ListItemIcon.d.ts +1 -1
  88. package/components/List/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +1 -1
  89. package/components/List/ListItemText/ListItemText.d.ts +1 -1
  90. package/components/List/ListSubheader/ListSubheader.d.ts +1 -1
  91. package/components/Menu/Menu/Menu.d.ts +1 -1
  92. package/components/Menu/MenuItem/MenuItem.d.ts +3 -3
  93. package/components/Menu/MenuItem/styles/MenuItemStyle.d.ts +2 -2
  94. package/components/Menu/MenuItemSubAction/MenuItemSubAction.d.ts +1 -1
  95. package/components/Menu/MenuItemSubAction/styles/StyledMenuItemSubAction.d.ts +1 -1
  96. package/components/Menu/MenuList/MenuList.d.ts +1 -1
  97. package/components/Menu/MenuOption/styles/StyledMenuOption.d.ts +1 -1
  98. package/components/Menu/SubMenu/SubMenu.d.ts +1 -1
  99. package/components/Menu/SubMenu/styles/SubMenuStyle.d.ts +1 -1
  100. package/components/Pagination/Pagination/Pagination.d.ts +1 -1
  101. package/components/Pagination/PaginationItem/PaginationItem.d.ts +8 -8
  102. package/components/Paper/Paper.d.ts +1 -1
  103. package/components/Popover/Popover.d.ts +1 -1
  104. package/components/Popper/Popper.d.ts +1 -1
  105. package/components/PopupBox/PopupBox.d.ts +1 -1
  106. package/components/Presence/Presence.d.ts +2 -2
  107. package/components/Progress/CircularProgress/CircularProgress.d.ts +1 -1
  108. package/components/Progress/LinearProgress/LinearProgress.d.ts +1 -1
  109. package/components/Progress/styles/StyledCircularProgress.d.ts +1 -1
  110. package/components/Rating/Rating.d.ts +1 -1
  111. package/components/Snackbar/Snackbar.d.ts +1 -1
  112. package/components/Snackbar/SnackbarAction/SnackbarAction.d.ts +1 -1
  113. package/components/Snackbar/SnackbarContent/SnackbarContent.d.ts +1 -1
  114. package/components/Stepper/Step/Step.d.ts +1 -1
  115. package/components/Stepper/StepButton/StepButton.d.ts +1 -1
  116. package/components/Stepper/StepConnector/StepConnector.d.ts +1 -1
  117. package/components/Stepper/StepContent/StepContent.d.ts +1 -1
  118. package/components/Stepper/StepIcon/StepIcon.d.ts +1 -1
  119. package/components/Stepper/StepIcon/styles/StyledCircleIcon.d.ts +1 -1
  120. package/components/Stepper/StepLabel/StepLabel.d.ts +1 -1
  121. package/components/Stepper/Stepper.d.ts +1 -1
  122. package/components/Table/Table.d.ts +1 -1
  123. package/components/Table/TableBody/TableBody.d.ts +1 -1
  124. package/components/Table/TableCell/TableCell.d.ts +2 -2
  125. package/components/Table/TableContainer/TableContainer.d.ts +1 -1
  126. package/components/Table/TableHead/TableHead.d.ts +1 -1
  127. package/components/Table/TableRow/TableRow.d.ts +1 -1
  128. package/components/TablePagination/TablePagination.d.ts +1 -1
  129. package/components/TablePagination/styles/TablePaginationStyle.d.ts +6 -6
  130. package/components/Tabs/Tab/Tab.d.ts +1 -1
  131. package/components/Tabs/TabList/TabList.d.ts +1 -1
  132. package/components/Tabs/TabPanel/TabPanel.d.ts +1 -1
  133. package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.d.ts +1 -1
  134. package/components/Tabs/Tabs/MoreMenuTabs/MoreMenuTabs.d.ts +1 -1
  135. package/components/Tabs/Tabs/Tabs.d.ts +1 -1
  136. package/components/Tag/Tag.d.ts +2 -2
  137. package/components/Text/Text.d.ts +1 -1
  138. package/components/Thumbnail/Thumbnail.d.ts +1 -1
  139. package/components/Toolbar/Toolbar.d.ts +1 -1
  140. package/components/Tooltip/Tooltip.d.ts +1 -1
  141. package/components/Typography/Typography.d.ts +1 -1
  142. package/components/VirtualizedMenu/VirtualizedDivider/VirtualizedDivider.d.ts +1 -1
  143. package/components/VirtualizedMenu/VirtualizedMenu.d.ts +1 -1
  144. package/components/VirtualizedMenu/VirtualizedMenuList.d.ts +1 -1
  145. package/components/Virtuoso/react-virtuoso/Virtuoso.d.ts +62 -62
  146. package/components/Virtuoso/react-virtuoso/VirtuosoGrid.d.ts +13 -13
  147. package/es6/components/Dialer/DialDelete/DialDelete.js +1 -1
  148. package/es6/components/Forms/Picker/DatePicker/Calendar.js +1 -1
  149. package/es6/components/Forms/Picker/DatePicker/DatePickerHeader.js +1 -1
  150. package/es6/components/Forms/Picker/DatePicker/Year.js +1 -1
  151. package/es6/components/Forms/Picker/TimePicker/NumberPicker.js +1 -1
  152. package/es6/components/Forms/Picker/TimePicker/SelectionView.js +1 -1
  153. package/es6/components/Forms/Picker/TimePicker/TimePicker.js +1 -1
  154. package/es6/components/Forms/Picker/utils/PickerTextField/PickerTextField.js +6 -2
  155. package/es6/foundation/hooks/index.js +1 -0
  156. package/es6/foundation/hooks/useFocusInside/index.js +1 -0
  157. package/es6/foundation/hooks/useFocusInside/useFocusInside.js +56 -0
  158. package/foundation/hooks/index.d.ts +1 -0
  159. package/foundation/hooks/index.js +1 -0
  160. package/foundation/hooks/useFocusInside/index.d.ts +1 -0
  161. package/foundation/hooks/useFocusInside/index.js +4 -0
  162. package/foundation/hooks/useFocusInside/package.json +5 -0
  163. package/foundation/hooks/useFocusInside/useFocusInside.d.ts +26 -0
  164. package/foundation/hooks/useFocusInside/useFocusInside.js +58 -0
  165. package/foundation/hooks/useKeyboardMoveFocus/useOnlyOneFocusable.d.ts +1 -1
  166. package/package.json +1 -1
@@ -107,7 +107,7 @@ var _NumberPicker = forwardRef(function (props, ref) {
107
107
  return 'large';
108
108
  }
109
109
  })();
110
- return (React.createElement(StyledNumberPicker, __assign({ tabIndex: 0, onKeyDown: handleKeyDown, "aria-live": "assertive", "aria-label": label, ref: pickerRef }, rest),
110
+ return (React.createElement(StyledNumberPicker, __assign({ tabIndex: 0, onKeyDown: handleKeyDown, "aria-live": "assertive", "aria-label": label, ref: pickerRef, "data-focusable": true }, rest),
111
111
  React.createElement(StyledTimeIconButton, { tabIndex: -1, size: iconSize, color: "neutral.f04", wrapperSize: size, disabled: increaseDisabled, onClick: function () {
112
112
  onUpdateValue(increaseValue);
113
113
  }, symbol: ArrowUpIcon, "data-test-automation-id": automationId && automationId + "-prev-pagination", "aria-label": "Arrow Up" }),
@@ -20,7 +20,7 @@ var SelectionView = function (props) {
20
20
  var disabled = !!((max !== undefined && v > max) ||
21
21
  (min !== undefined && v < min));
22
22
  var itemShowValue = parseNumberToString(v, isTwelveHourSystem);
23
- return (React.createElement(StyledSelectionItem, { disabled: disabled, radius: "round", wrapperSize: size, key: v, onClick: handleClick(v, disabled), selected: itemShowValue === showValue, "data-test-automation-id": automationId && automationId + "-" + itemShowValue, itemLength: source.length },
23
+ return (React.createElement(StyledSelectionItem, { disabled: disabled, "data-focusable": true, radius: "round", wrapperSize: size, key: v, onClick: handleClick(v, disabled), selected: itemShowValue === showValue, "data-test-automation-id": automationId && automationId + "-" + itemShowValue, itemLength: source.length },
24
24
  React.createElement(React.Fragment, null, itemShowValue)));
25
25
  })));
26
26
  };
@@ -249,7 +249,7 @@ var _RcTimePicker = forwardRef(function (inProps, ref) {
249
249
  React.createElement(RcBox, { textAlign: "center", width: "48px" }, ":"),
250
250
  React.createElement(NumberPicker, __assign({ ref: minuteRef, size: size }, boundary.minute, { onUpdateValue: handleMinuteChange, onClick: setMinuteSelectionShow, onClose: closeMenu, value: minuteValue, source: minuteSource, step: TIME_GAP, automationId: "time-picker-minute" }, MinutePickerProps)),
251
251
  isTwelveHourSystem && (React.createElement("div", null,
252
- React.createElement(ToggleText, __assign({ periodTexts: periodTexts.toggle, ref: periodRef, size: size, disabled: toggleTextDisabled, onUpdateValue: onTogglePeriod, onInnerChange: handlePeriodInnerChange, onClose: closeMenu, value: periodValue }, PeriodToggleProps)))))) : (React.createElement(SelectionView, __assign({ size: size }, (isHourView ? boundary.hour : boundary.minute), { source: isHourView
252
+ React.createElement(ToggleText, __assign({ periodTexts: periodTexts.toggle, ref: periodRef, size: size, disabled: toggleTextDisabled, onUpdateValue: onTogglePeriod, onInnerChange: handlePeriodInnerChange, onClose: closeMenu, value: periodValue, "data-focusable": true }, PeriodToggleProps)))))) : (React.createElement(SelectionView, __assign({ size: size }, (isHourView ? boundary.hour : boundary.minute), { source: isHourView
253
253
  ? isTwelveHourSystem
254
254
  ? twelveHourSystemSource
255
255
  : twentyFourHourSystemSource
@@ -2,7 +2,7 @@ import { __assign, __read, __rest } from "tslib";
2
2
  import React, { forwardRef, useImperativeHandle, useMemo, useRef, useState, } from 'react';
3
3
  import uniqueId from 'lodash/uniqueId';
4
4
  import { DeleteCircle as DeleteCircleIcon } from '@ringcentral/juno-icon';
5
- import { combineProps, useA11yKeyEvent, useEventCallback, } from '../../../../../foundation';
5
+ import { combineProps, useA11yKeyEvent, useEventCallback, useFocusInside, } from '../../../../../foundation';
6
6
  import { RcIconButton } from '../../../../Buttons/IconButton';
7
7
  import { RcVisuallyHidden } from '../../../../VisuallyHidden';
8
8
  import { StyledPickerTextField, StyledPopover } from '../../styles';
@@ -17,6 +17,7 @@ var popoverTransformOrigin = {
17
17
  var PICKER_DISPLAY_NAME = 'PickerTextField';
18
18
  var PickerTextField = forwardRef(function (props, ref) {
19
19
  var onClear = props.onClear, InputProps = props.InputProps, disabled = props.disabled, action = props.action, onKeyDown = props.onKeyDown, _a = props.inputProps, _b = _a === void 0 ? {} : _a, announcementText = _b.announcementText, inputProps = __rest(_b, ["announcementText"]), PopoverPropsProp = props.PopoverProps, children = props.children, ActionSymbol = props.ActionSymbol, clearBtn = props.clearBtn, clearButtonProps = props.clearButtonProps, value = props.value, rest = __rest(props, ["onClear", "InputProps", "disabled", "action", "onKeyDown", "inputProps", "PopoverProps", "children", "ActionSymbol", "clearBtn", "clearButtonProps", "value"]);
20
+ var focusInside = useFocusInside();
20
21
  var idForInput = useRef(uniqueId(PICKER_DISPLAY_NAME + "-")).current;
21
22
  var _c = __read(useState(null), 2), anchorEl = _c[0], setAnchorEl = _c[1];
22
23
  var idForHelperText = idForInput + "-helper-text";
@@ -89,7 +90,10 @@ var PickerTextField = forwardRef(function (props, ref) {
89
90
  }); }, [onPickerViewClose]);
90
91
  return (React.createElement(React.Fragment, null,
91
92
  React.createElement(StyledPickerTextField, __assign({ id: idForInput, ref: ref, InputProps: _InputProps, FormHelperTextProps: _FormHelperTextProps, focused: popoverOpen ? true : undefined, disabled: disabled, clearBtn: clearBtn, value: value }, rest)),
92
- React.createElement(StyledPopover, __assign({ open: popoverOpen, anchorEl: anchorEl, onClose: onPickerViewClose, anchorOrigin: popoverAnchorOrigin, transformOrigin: popoverTransformOrigin }, PopoverProps), children),
93
+ React.createElement(StyledPopover, __assign({ open: popoverOpen, anchorEl: anchorEl, onClose: onPickerViewClose, anchorOrigin: popoverAnchorOrigin, transformOrigin: popoverTransformOrigin }, PopoverProps),
94
+ focusInside.start,
95
+ children,
96
+ focusInside.end),
93
97
  React.createElement(RcVisuallyHidden, { id: idForInstruction }, announcementText)));
94
98
  });
95
99
  PickerTextField.displayName = PICKER_DISPLAY_NAME;
@@ -7,6 +7,7 @@ export * from './useDebounce';
7
7
  export * from './useEventCallback';
8
8
  export * from './useEventListener';
9
9
  export * from './useEver';
10
+ export * from './useFocusInside';
10
11
  export * from './useForceUpdate';
11
12
  export * from './useForkRef';
12
13
  export * from './useGlobalListener';
@@ -0,0 +1 @@
1
+ export * from './useFocusInside';
@@ -0,0 +1,56 @@
1
+ import { __assign, __makeTemplateObject } from "tslib";
2
+ import styled from '../../styled-components';
3
+ import React, { useMemo } from 'react';
4
+ import { logInDev } from '../../utils';
5
+ var FOCUSABLE_QUERY = '[data-focusable="true"]';
6
+ /**
7
+ * non size for just render hidden element
8
+ */
9
+ export var RcFocusInside = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 0;\n height: 0;\n"], ["\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 0;\n height: 0;\n"])));
10
+ /**
11
+ * focus always inside the container which `[data-focusable="true"]`
12
+ */
13
+ export var useFocusInside = function (options) {
14
+ if (options === void 0) { options = {}; }
15
+ var containerRef = options.containerRef, _a = options.selector, selector = _a === void 0 ? FOCUSABLE_QUERY : _a;
16
+ return useMemo(function () {
17
+ var start = (React.createElement(RcFocusInside, __assign({ tabIndex: 0 }, (process.env.NODE_ENV !== 'production'
18
+ ? { 'data-test-automation-id': 'focus-inside-start' }
19
+ : undefined), { onFocus: function (e) {
20
+ var container = (containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) || e.target.parentElement;
21
+ var nodes = container === null || container === void 0 ? void 0 : container.querySelectorAll(selector);
22
+ if (nodes) {
23
+ var last = nodes[nodes.length - 1];
24
+ last.focus();
25
+ }
26
+ else if (process.env.NODE_ENV !== 'production') {
27
+ logInDev({
28
+ component: 'useFocusInside',
29
+ message: 'Not found any [data-focusable="true"] element in container, please check your containerRef',
30
+ level: 'warn',
31
+ });
32
+ }
33
+ } })));
34
+ var end = (React.createElement(RcFocusInside, __assign({ tabIndex: 0 }, (process.env.NODE_ENV !== 'production'
35
+ ? { 'data-test-automation-id': 'focus-inside-end' }
36
+ : undefined), { onFocus: function (e) {
37
+ var container = (containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) || e.target.parentElement;
38
+ var node = container === null || container === void 0 ? void 0 : container.querySelector(selector);
39
+ if (node) {
40
+ node === null || node === void 0 ? void 0 : node.focus();
41
+ }
42
+ else if (process.env.NODE_ENV !== 'production') {
43
+ logInDev({
44
+ component: 'useFocusInside',
45
+ message: 'Not found any [data-focusable="true"] element in container, please check your containerRef',
46
+ level: 'warn',
47
+ });
48
+ }
49
+ } })));
50
+ return {
51
+ start: start,
52
+ end: end,
53
+ };
54
+ }, [containerRef, selector]);
55
+ };
56
+ var templateObject_1;
@@ -7,6 +7,7 @@ export * from './useDebounce';
7
7
  export * from './useEventCallback';
8
8
  export * from './useEventListener';
9
9
  export * from './useEver';
10
+ export * from './useFocusInside';
10
11
  export * from './useForceUpdate';
11
12
  export * from './useForkRef';
12
13
  export * from './useGlobalListener';
@@ -10,6 +10,7 @@ tslib_1.__exportStar(require("./useDebounce"), exports);
10
10
  tslib_1.__exportStar(require("./useEventCallback"), exports);
11
11
  tslib_1.__exportStar(require("./useEventListener"), exports);
12
12
  tslib_1.__exportStar(require("./useEver"), exports);
13
+ tslib_1.__exportStar(require("./useFocusInside"), exports);
13
14
  tslib_1.__exportStar(require("./useForceUpdate"), exports);
14
15
  tslib_1.__exportStar(require("./useForkRef"), exports);
15
16
  tslib_1.__exportStar(require("./useGlobalListener"), exports);
@@ -0,0 +1 @@
1
+ export * from './useFocusInside';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./useFocusInside"), exports);
@@ -0,0 +1,5 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "../../../es6/foundation/hooks/useFocusInside/index.js",
4
+ "typings": "./index.d.ts"
5
+ }
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ /**
3
+ * non size for just render hidden element
4
+ */
5
+ export declare const RcFocusInside: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../..").RcTheme, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
6
+ export declare type useFocusInsideParams = {
7
+ /**
8
+ * the container that should move focus inside witch `[data-focusable="true"]`
9
+ *
10
+ * @default host element's parent
11
+ */
12
+ containerRef?: React.RefObject<HTMLElement>;
13
+ /**
14
+ * the custom selector for focusable element
15
+ *
16
+ * @default '[data-focusable="true"]'
17
+ */
18
+ selector?: string;
19
+ };
20
+ /**
21
+ * focus always inside the container which `[data-focusable="true"]`
22
+ */
23
+ export declare const useFocusInside: (options?: useFocusInsideParams) => {
24
+ start: JSX.Element;
25
+ end: JSX.Element;
26
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var styled_components_1 = tslib_1.__importDefault(require("../../styled-components"));
5
+ var react_1 = tslib_1.__importStar(require("react"));
6
+ var utils_1 = require("../../utils");
7
+ var FOCUSABLE_QUERY = '[data-focusable="true"]';
8
+ /**
9
+ * non size for just render hidden element
10
+ */
11
+ exports.RcFocusInside = styled_components_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 0;\n height: 0;\n"], ["\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 0;\n height: 0;\n"])));
12
+ /**
13
+ * focus always inside the container which `[data-focusable="true"]`
14
+ */
15
+ exports.useFocusInside = function (options) {
16
+ if (options === void 0) { options = {}; }
17
+ var containerRef = options.containerRef, _a = options.selector, selector = _a === void 0 ? FOCUSABLE_QUERY : _a;
18
+ return react_1.useMemo(function () {
19
+ var start = (react_1.default.createElement(exports.RcFocusInside, tslib_1.__assign({ tabIndex: 0 }, (process.env.NODE_ENV !== 'production'
20
+ ? { 'data-test-automation-id': 'focus-inside-start' }
21
+ : undefined), { onFocus: function (e) {
22
+ var container = (containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) || e.target.parentElement;
23
+ var nodes = container === null || container === void 0 ? void 0 : container.querySelectorAll(selector);
24
+ if (nodes) {
25
+ var last = nodes[nodes.length - 1];
26
+ last.focus();
27
+ }
28
+ else if (process.env.NODE_ENV !== 'production') {
29
+ utils_1.logInDev({
30
+ component: 'useFocusInside',
31
+ message: 'Not found any [data-focusable="true"] element in container, please check your containerRef',
32
+ level: 'warn',
33
+ });
34
+ }
35
+ } })));
36
+ var end = (react_1.default.createElement(exports.RcFocusInside, tslib_1.__assign({ tabIndex: 0 }, (process.env.NODE_ENV !== 'production'
37
+ ? { 'data-test-automation-id': 'focus-inside-end' }
38
+ : undefined), { onFocus: function (e) {
39
+ var container = (containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) || e.target.parentElement;
40
+ var node = container === null || container === void 0 ? void 0 : container.querySelector(selector);
41
+ if (node) {
42
+ node === null || node === void 0 ? void 0 : node.focus();
43
+ }
44
+ else if (process.env.NODE_ENV !== 'production') {
45
+ utils_1.logInDev({
46
+ component: 'useFocusInside',
47
+ message: 'Not found any [data-focusable="true"] element in container, please check your containerRef',
48
+ level: 'warn',
49
+ });
50
+ }
51
+ } })));
52
+ return {
53
+ start: start,
54
+ end: end,
55
+ };
56
+ }, [containerRef, selector]);
57
+ };
58
+ var templateObject_1;
@@ -14,5 +14,5 @@ export declare const useOnlyOneFocusable: ({ focusedIndexRef, containerRef, }: U
14
14
  moveFocusedId: string;
15
15
  focusIndex: (toIndex: number) => void;
16
16
  setIndexTabIndex: (toIndex: number) => void;
17
- getItemProps: (index: number, options?: Pick<import("react").HTMLAttributes<HTMLElement>, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> | undefined) => Pick<import("react").HTMLAttributes<HTMLElement>, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">;
17
+ getItemProps: (index: number, options?: Pick<import("react").HTMLAttributes<HTMLElement>, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> | undefined) => Pick<import("react").HTMLAttributes<HTMLElement>, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">;
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.41.0",
3
+ "version": "2.41.2",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",