@crystaldesign/diva-navigator 24.11.0-beta.36 → 24.11.0-beta.38
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/build/esm/index.js +15 -15
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -328,7 +328,7 @@ function TextElement(_ref) {
|
|
|
328
328
|
,
|
|
329
329
|
children: displayName
|
|
330
330
|
})
|
|
331
|
-
})), isOver && (hoverStatus || isShortend) && renderLayer(
|
|
331
|
+
})), isOver && (hoverStatus || isShortend) && renderLayer(/*#__PURE__*/jsxs("div", _objectSpread$2(_objectSpread$2({
|
|
332
332
|
className: tooltip
|
|
333
333
|
}, layerProps), {}, {
|
|
334
334
|
style: _objectSpread$2(_objectSpread$2({}, {
|
|
@@ -461,7 +461,7 @@ function OrganizationSelection (_ref) {
|
|
|
461
461
|
searchData = _useState14[0],
|
|
462
462
|
setSearchData = _useState14[1];
|
|
463
463
|
var onSearch = /*#__PURE__*/function () {
|
|
464
|
-
var _ref2 = _asyncToGenerator(
|
|
464
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(query) {
|
|
465
465
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
466
466
|
while (1) switch (_context.prev = _context.next) {
|
|
467
467
|
case 0:
|
|
@@ -484,8 +484,8 @@ function OrganizationSelection (_ref) {
|
|
|
484
484
|
var multiplier = ((_scroller$current2 = scroller.current) === null || _scroller$current2 === void 0 ? void 0 : _scroller$current2.clientHeight) / 300;
|
|
485
485
|
return Math.ceil(20 * multiplier);
|
|
486
486
|
}, [scroller.current, (_scroller$current3 = scroller.current) === null || _scroller$current3 === void 0 ? void 0 : _scroller$current3.clientHeight]);
|
|
487
|
-
var debouncedSearch = useCallback(debounce(
|
|
488
|
-
var _ref3 = _asyncToGenerator(
|
|
487
|
+
var debouncedSearch = useCallback(debounce(/*#__PURE__*/function () {
|
|
488
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(query) {
|
|
489
489
|
var _root$_id;
|
|
490
490
|
var data, result, _iterator, _step, _loop;
|
|
491
491
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
@@ -592,8 +592,8 @@ function OrganizationSelection (_ref) {
|
|
|
592
592
|
return _ref3.apply(this, arguments);
|
|
593
593
|
};
|
|
594
594
|
}(), 300), [selectedHierarchies, selectedOrganizations]);
|
|
595
|
-
var debouncedScroll = useCallback(debounce(
|
|
596
|
-
var _ref5 = _asyncToGenerator(
|
|
595
|
+
var debouncedScroll = useCallback(debounce(/*#__PURE__*/function () {
|
|
596
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(e) {
|
|
597
597
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
598
598
|
while (1) switch (_context4.prev = _context4.next) {
|
|
599
599
|
case 0:
|
|
@@ -654,8 +654,8 @@ function OrganizationSelection (_ref) {
|
|
|
654
654
|
top: 0
|
|
655
655
|
});
|
|
656
656
|
}, [onChange, selectedHierarchies]);
|
|
657
|
-
var onOpen = useCallback(
|
|
658
|
-
var _ref6 = _asyncToGenerator(
|
|
657
|
+
var onOpen = useCallback(/*#__PURE__*/function () {
|
|
658
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(id) {
|
|
659
659
|
var flat, elem, _parent$children, _parent$children$leng, _parent$children2, _parent$children3, parent, result, _elem$children, _elem$children2, _result;
|
|
660
660
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
661
661
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -755,7 +755,7 @@ function OrganizationSelection (_ref) {
|
|
|
755
755
|
useEffect(function () {
|
|
756
756
|
if (!elementLimit) return;
|
|
757
757
|
var fn = /*#__PURE__*/function () {
|
|
758
|
-
var _ref7 = _asyncToGenerator(
|
|
758
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
759
759
|
var total, flatTotal, totalList, _iterator2, _step2, _loop2, result, _root$_id2, _result2, rootData;
|
|
760
760
|
return _regeneratorRuntime.wrap(function _callee5$(_context8) {
|
|
761
761
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -1017,7 +1017,7 @@ function OrganizationSelection (_ref) {
|
|
|
1017
1017
|
var flat = flatElements(searchData !== null && searchData !== void 0 && searchData.length ? searchData : data);
|
|
1018
1018
|
//check if scrolled to bottom, with a tolerance of 1px.
|
|
1019
1019
|
if (Math.abs(scroll.scrollHeight - scroll.scrollTop - scroll.clientHeight) <= 1.0 && total > flat.length) {
|
|
1020
|
-
_asyncToGenerator(
|
|
1020
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
1021
1021
|
var lastParent, correctSkip, _iterator5, _step5, hierarchy, _iterator7, _step7, indexOfCurrent, result, _iterator6, _step6, _hierarchy, _iterator8, _step8, _indexOfCurrent2, _ref9, _ref10;
|
|
1022
1022
|
return _regeneratorRuntime.wrap(function _callee6$(_context9) {
|
|
1023
1023
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -1949,7 +1949,7 @@ function matchProduct(_x, _x2, _x3) {
|
|
|
1949
1949
|
return _matchProduct.apply(this, arguments);
|
|
1950
1950
|
}
|
|
1951
1951
|
function _matchProduct() {
|
|
1952
|
-
_matchProduct = _asyncToGenerator(
|
|
1952
|
+
_matchProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(url, shopBaseUrl, apiGetProductByFilter) {
|
|
1953
1953
|
var _product$data$;
|
|
1954
1954
|
var variableRegex, variableNames, match, regex, matches, filter, values, variables, parts, lastPart, divaParts, product, id;
|
|
1955
1955
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -2074,7 +2074,7 @@ function Scanner() {
|
|
|
2074
2074
|
error = _React$useState2[0],
|
|
2075
2075
|
setError = _React$useState2[1];
|
|
2076
2076
|
var onScanned = /*#__PURE__*/function () {
|
|
2077
|
-
var _ref = _asyncToGenerator(
|
|
2077
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(text) {
|
|
2078
2078
|
var divaNr, productId;
|
|
2079
2079
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2080
2080
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2135,8 +2135,8 @@ function Scanner() {
|
|
|
2135
2135
|
return _ref.apply(this, arguments);
|
|
2136
2136
|
};
|
|
2137
2137
|
}();
|
|
2138
|
-
var mountedQrCodeScanner = useCallback(
|
|
2139
|
-
var _ref2 = _asyncToGenerator(
|
|
2138
|
+
var mountedQrCodeScanner = useCallback(/*#__PURE__*/function () {
|
|
2139
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(node) {
|
|
2140
2140
|
var _qrCodeReader$current, _qrCodeReader$current2;
|
|
2141
2141
|
var _qrCodeReader$current3;
|
|
2142
2142
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -2162,7 +2162,7 @@ function Scanner() {
|
|
|
2162
2162
|
height: 250
|
|
2163
2163
|
}
|
|
2164
2164
|
}, /*#__PURE__*/function () {
|
|
2165
|
-
var _ref3 = _asyncToGenerator(
|
|
2165
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(decodedText, decodedResult) {
|
|
2166
2166
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
2167
2167
|
while (1) switch (_context2.prev = _context2.next) {
|
|
2168
2168
|
case 0:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-navigator",
|
|
3
|
-
"version": "24.11.0-beta.
|
|
3
|
+
"version": "24.11.0-beta.38",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^5.15.0",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
},
|
|
24
24
|
"module": "build/esm/index.js",
|
|
25
25
|
"types": "./build/types/navigator/src/index.d.ts",
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "42b8b849e046365dd9967fb087a935fbc379bc91"
|
|
27
27
|
}
|