@luminati-io/uikit 6.3.10 → 6.3.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -39314,7 +39314,7 @@ CodeBlock.propTypes = {
39314
39314
  header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39315
39315
  code: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39316
39316
  lang: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39317
- maxHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39317
+ maxHeight: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
39318
39318
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
39319
39319
  lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39320
39320
  copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
@@ -39378,6 +39378,12 @@ __webpack_require__.r(__webpack_exports__);
39378
39378
 
39379
39379
 
39380
39380
  /*jslint react:true*/
39381
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
39382
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
39383
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
39384
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
39385
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
39386
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
39381
39387
 
39382
39388
 
39383
39389
 
@@ -39389,6 +39395,7 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
39389
39395
  var code = _ref.code,
39390
39396
  lang = _ref.lang,
39391
39397
  className = _ref.className,
39398
+ style = _ref.style,
39392
39399
  lineNumbers = _ref.lineNumbers,
39393
39400
  copyButton = _ref.copyButton,
39394
39401
  loading = _ref.loading,
@@ -39403,9 +39410,9 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
39403
39410
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeSnippetWrapper, {
39404
39411
  ref: ref,
39405
39412
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, {}, className, variant),
39406
- style: maxHeight ? {
39413
+ style: maxHeight ? _objectSpread({
39407
39414
  maxHeight: maxHeight
39408
- } : undefined
39415
+ }, style) : style
39409
39416
  }, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
39410
39417
  placement: copyButtonPlacement,
39411
39418
  className: copyButtonClassName,
@@ -39429,7 +39436,7 @@ CodeSnippet.propTypes = {
39429
39436
  className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
39430
39437
  code: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
39431
39438
  lang: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
39432
- maxHeight: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
39439
+ maxHeight: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)]),
39433
39440
  variant: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['black', 'white']),
39434
39441
  lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
39435
39442
  copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
@@ -52921,7 +52928,7 @@ __webpack_require__.r(__webpack_exports__);
52921
52928
 
52922
52929
  /*jslint react:true*/
52923
52930
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
52924
- var _excluded = ["provided", "style", "measureContentSize"];
52931
+ var _excluded = ["provided", "style", "measureContentSize", "registerChild"];
52925
52932
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
52926
52933
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
52927
52934
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -53020,6 +53027,7 @@ var RowWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(
53020
53027
  _wrapperProps$style = wrapperProps.style,
53021
53028
  style = _wrapperProps$style === void 0 ? {} : _wrapperProps$style,
53022
53029
  measureContentSize = wrapperProps.measureContentSize,
53030
+ registerChild = wrapperProps.registerChild,
53023
53031
  rest = _objectWithoutProperties(wrapperProps, _excluded);
53024
53032
  var _wrapperProps = _objectSpread(_objectSpread(_objectSpread({}, rest), provided.draggableProps), {}, {
53025
53033
  style: _objectSpread(_objectSpread({}, style), (_provided$draggablePr = provided.draggableProps) === null || _provided$draggablePr === void 0 ? void 0 : _provided$draggablePr.style)
@@ -53027,7 +53035,9 @@ var RowWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(
53027
53035
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(function () {
53028
53036
  return measureContentSize === null || measureContentSize === void 0 ? void 0 : measureContentSize();
53029
53037
  }, []);
53030
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _wrapperProps, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
53038
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
53039
+ ref: registerChild
53040
+ }, _wrapperProps), children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
53031
53041
  style: {
53032
53042
  visibility: 'hidden'
53033
53043
  }
@@ -54086,9 +54096,12 @@ var Body = function Body(props) {
54086
54096
  type: 'ROWS'
54087
54097
  };
54088
54098
  }, []);
54089
- if (virtualized) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_virtualized_body__WEBPACK_IMPORTED_MODULE_11__.VirtualizedBody, _extends({}, props, {
54090
- droppableProps: droppableProps
54091
- }));
54099
+ if (virtualized) {
54100
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_virtualized_body__WEBPACK_IMPORTED_MODULE_11__.VirtualizedBody, _extends({}, props, {
54101
+ draggableRows: draggableRows,
54102
+ droppableProps: droppableProps
54103
+ }));
54104
+ }
54092
54105
  if (draggableRows) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_12__.DroppableBody, _extends({}, props, {
54093
54106
  droppableProps: droppableProps
54094
54107
  }));
@@ -54309,8 +54322,7 @@ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo
54309
54322
  parent = props.parent,
54310
54323
  rowHoverEvents = props.rowHoverEvents,
54311
54324
  draggableRows = props.draggableRows;
54312
- // padding is needed to see the divider between rows
54313
- // when new rows are added
54325
+ // padding is needed to see the divider between rows when new rows are added
54314
54326
  var _style = _objectSpread(_objectSpread({}, style), {}, {
54315
54327
  padding: '0.3px 0'
54316
54328
  });
@@ -54320,7 +54332,8 @@ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo
54320
54332
  columnIndex: 0,
54321
54333
  rowIndex: index
54322
54334
  }, function (_ref) {
54323
- var measure = _ref.measure;
54335
+ var measure = _ref.measure,
54336
+ registerChild = _ref.registerChild;
54324
54337
  if (draggableRows) {
54325
54338
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_4__.DraggableWrapper, {
54326
54339
  key: row.id,
@@ -54343,7 +54356,12 @@ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo
54343
54356
  }
54344
54357
  return renderRow({
54345
54358
  row: row,
54346
- index: index
54359
+ index: index,
54360
+ wrapperProps: _objectSpread(_objectSpread({}, rowHoverEvents), {}, {
54361
+ style: _style,
54362
+ measureContentSize: measure,
54363
+ registerChild: registerChild
54364
+ })
54347
54365
  });
54348
54366
  });
54349
54367
  });
@@ -54419,72 +54437,46 @@ var VirtualizedBodyComp = function VirtualizedBodyComp(props) {
54419
54437
  return acc += measurerCache.current.getHeight(index, 0);
54420
54438
  }, 0));
54421
54439
  }, [listDOMRef, rows]);
54440
+ var getBody = function getBody(provided) {
54441
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
54442
+ style: {
54443
+ height: _height,
54444
+ maxHeight: maxHeight,
54445
+ width: '100%'
54446
+ }
54447
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.AutoSizer, null, function (_ref3) {
54448
+ var width = _ref3.width,
54449
+ height = _ref3.height;
54450
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledList, {
54451
+ width: width,
54452
+ height: height,
54453
+ overscanRowCount: 5,
54454
+ estimatedRowSize: 30,
54455
+ rowHeight: measurerCache.current.rowHeight,
54456
+ rowCount: rows.length,
54457
+ deferredMeasurementCache: measurerCache.current,
54458
+ ref: listRefHandler(setListDOMRef, provided),
54459
+ rowRenderer: rowRenderer(rows, measurerCache, renderRow, rowHoverEvents, draggableRows)
54460
+ });
54461
+ })), renderHoverActions());
54462
+ };
54422
54463
  if (draggableRows) {
54423
54464
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_6__.Droppable, _extends({}, droppableProps, {
54424
54465
  mode: "virtual",
54425
54466
  renderClone: renderClone(rows, renderRow)
54426
54467
  }), function (provided) {
54427
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(VirtualizedBodyList, {
54428
- rows: rows,
54429
- measurerCache: measurerCache,
54430
- renderRow: renderRow,
54431
- rowHoverEvents: rowHoverEvents,
54432
- style: {
54433
- height: _height,
54434
- maxHeight: maxHeight,
54435
- width: '100%'
54436
- },
54437
- listRef: listRefHandler(setListDOMRef, provided),
54438
- draggableRows: true
54439
- }), renderHoverActions());
54468
+ return getBody(provided);
54440
54469
  });
54441
54470
  }
54442
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(VirtualizedBodyList, {
54443
- rows: rows,
54444
- measurerCache: measurerCache,
54445
- renderRow: renderRow,
54446
- rowHoverEvents: rowHoverEvents,
54447
- style: {
54448
- height: _height,
54449
- maxHeight: maxHeight,
54450
- width: '100%'
54451
- },
54452
- listRef: listRefHandler(setListDOMRef, undefined)
54453
- });
54471
+ return getBody(null);
54454
54472
  };
54455
54473
  var VirtualizedBody = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(VirtualizedBodyComp);
54456
54474
  VirtualizedBody.displayName = 'VirtualizedBody';
54457
- var VirtualizedBodyList = function VirtualizedBodyList(_ref3) {
54458
- var rows = _ref3.rows,
54459
- measurerCache = _ref3.measurerCache,
54460
- renderRow = _ref3.renderRow,
54461
- rowHoverEvents = _ref3.rowHoverEvents,
54462
- style = _ref3.style,
54463
- listRef = _ref3.listRef,
54464
- draggableRows = _ref3.draggableRows;
54465
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
54466
- style: style
54467
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.AutoSizer, null, function (_ref4) {
54468
- var width = _ref4.width,
54469
- height = _ref4.height;
54470
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledList, {
54471
- width: width,
54472
- height: height,
54473
- overscanRowCount: 5,
54474
- estimatedRowSize: 30,
54475
- rowHeight: measurerCache.current.rowHeight,
54476
- rowCount: rows.length,
54477
- deferredMeasurementCache: measurerCache.current,
54478
- ref: listRef,
54479
- rowRenderer: rowRenderer(rows, measurerCache, renderRow, rowHoverEvents, draggableRows)
54480
- });
54481
- }));
54482
- };
54483
54475
  var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.List).withConfig({
54484
54476
  displayName: "StyledList",
54485
54477
  componentId: "sc-1mdy9tq-0"
54486
- })(["", ""], function (_ref5) {
54487
- var scrollbars = _ref5.theme.scrollbars;
54478
+ })(["", ""], function (_ref4) {
54479
+ var scrollbars = _ref4.theme.scrollbars;
54488
54480
  return scrollbars.thin;
54489
54481
  });
54490
54482