@luminati-io/uikit 6.3.69-beta.1 → 6.3.70

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.
@@ -51916,7 +51916,10 @@ var Modal2 = function Modal2(_ref) {
51916
51916
  }
51917
51917
  },
51918
51918
  afterClose: afterClose,
51919
- destroyOnHidden: destroyOnClose,
51919
+ destroyOnHidden: destroyOnClose
51920
+ // deprecated: https://github.com/react-component/dialog/commit/855dfe97ffc4a1dceb3659d9b9483ca57b411389
51921
+ ,
51922
+ destroyOnClose: destroyOnClose,
51920
51923
  keyboard: false,
51921
51924
  animation: "zoom",
51922
51925
  maskAnimation: "fade"
@@ -52081,12 +52084,14 @@ var ModalButton = function ModalButton(_ref) {
52081
52084
  var useHotKeyIcon = typeof rest.icon == 'undefined' && typeof hotKeyIcon != 'undefined';
52082
52085
  var icon = useHotKeyIcon ? hotKeyIcon : rest.icon;
52083
52086
  var iconPlacement = useHotKeyIcon ? 'right' : rest.iconPlacement;
52087
+ var onClickRef = (0,_util__WEBPACK_IMPORTED_MODULE_4__.useLiveRef)(onClick);
52084
52088
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
52085
52089
  var _document$activeEleme;
52086
52090
  if (!hotKey) return;
52087
52091
  (_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.blur();
52088
52092
  var onKeydown = function onKeydown(e) {
52089
- if (e.key && e.key.toLowerCase() == hotKey.toLowerCase()) onClick === null || onClick === void 0 || onClick(e);
52093
+ var _onClickRef$current;
52094
+ if (e.key && e.key.toLowerCase() == hotKey.toLowerCase()) (_onClickRef$current = onClickRef.current) === null || _onClickRef$current === void 0 || _onClickRef$current.call(onClickRef, e);
52090
52095
  };
52091
52096
  window.addEventListener('keydown', onKeydown);
52092
52097
  return function () {
@@ -61146,6 +61151,7 @@ __webpack_require__.r(__webpack_exports__);
61146
61151
  /* harmony export */ setRef: () => (/* reexport safe */ _set_ref__WEBPACK_IMPORTED_MODULE_11__.setRef),
61147
61152
  /* harmony export */ setRefs: () => (/* reexport safe */ _set_ref__WEBPACK_IMPORTED_MODULE_11__.setRefs),
61148
61153
  /* harmony export */ splitProps: () => (/* reexport safe */ _split_props__WEBPACK_IMPORTED_MODULE_12__.splitProps),
61154
+ /* harmony export */ useLiveRef: () => (/* reexport safe */ _use_live_ref__WEBPACK_IMPORTED_MODULE_15__.useLiveRef),
61149
61155
  /* harmony export */ useSetRefsCallback: () => (/* reexport safe */ _set_ref__WEBPACK_IMPORTED_MODULE_11__.useSetRefsCallback),
61150
61156
  /* harmony export */ useSetRefsEffect: () => (/* reexport safe */ _set_ref__WEBPACK_IMPORTED_MODULE_11__.useSetRefsEffect),
61151
61157
  /* harmony export */ withUserStyles: () => (/* reexport safe */ _with_user_styles__WEBPACK_IMPORTED_MODULE_14__.withUserStyles)
@@ -61165,6 +61171,7 @@ __webpack_require__.r(__webpack_exports__);
61165
61171
  /* harmony import */ var _split_props__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./split_props */ "./src/util/split_props.js");
61166
61172
  /* harmony import */ var _virtualized_list__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./virtualized_list */ "./src/util/virtualized_list.js");
61167
61173
  /* harmony import */ var _with_user_styles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./with_user_styles */ "./src/util/with_user_styles.js");
61174
+ /* harmony import */ var _use_live_ref__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./use_live_ref */ "./src/util/use_live_ref.js");
61168
61175
  // LICENSE_CODE ZON
61169
61176
 
61170
61177
 
@@ -61185,6 +61192,7 @@ __webpack_require__.r(__webpack_exports__);
61185
61192
 
61186
61193
 
61187
61194
 
61195
+
61188
61196
  /***/ }),
61189
61197
 
61190
61198
  /***/ "./src/util/merge_refs.js":
@@ -61348,6 +61356,41 @@ var splitProps = function splitProps(props) {
61348
61356
 
61349
61357
  /***/ }),
61350
61358
 
61359
+ /***/ "./src/util/use_live_ref.js":
61360
+ /*!**********************************!*\
61361
+ !*** ./src/util/use_live_ref.js ***!
61362
+ \**********************************/
61363
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
61364
+
61365
+ "use strict";
61366
+ __webpack_require__.r(__webpack_exports__);
61367
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
61368
+ /* harmony export */ useLiveRef: () => (/* binding */ useLiveRef)
61369
+ /* harmony export */ });
61370
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
61371
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
61372
+ // LICENSE_CODE ZON
61373
+
61374
+
61375
+ /*jslint react:true*/
61376
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
61377
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
61378
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
61379
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
61380
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
61381
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
61382
+
61383
+ var useLiveRef = function useLiveRef(target) {
61384
+ var deps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
61385
+ var ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(target);
61386
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
61387
+ ref.current = target;
61388
+ }, [target].concat(_toConsumableArray(deps)));
61389
+ return ref;
61390
+ };
61391
+
61392
+ /***/ }),
61393
+
61351
61394
  /***/ "./src/util/user_agent.js":
61352
61395
  /*!********************************!*\
61353
61396
  !*** ./src/util/user_agent.js ***!