ecomlab-components-next 0.1.39 → 0.1.41
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/common/headers.js
CHANGED
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
|
|
9
9
|
// const cookies = new Cookies()
|
|
10
10
|
|
|
11
|
-
var testToken = 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
11
|
+
var testToken = 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2UiOiJ3ZWIiLCJzdWIiOiI0MzgiLCJleHAiOjE3Mzk4NzI4MTZ9.fGsDIlX5CkUyk9I-sxgsjo7fW7eZech-TGRHS3PLYmYRVbzUsxOPBDKbuL-oyPiPij-0K6nnuL4z8LKNXc8__A';
|
|
12
12
|
var _default = exports["default"] = {
|
|
13
13
|
'Accept': 'application/json',
|
|
14
14
|
'Content-Type': 'application/json',
|
package/dist/components/Article/ModalMiltilevelSidebarSettings/ModalMiltilevelSidebarSettings.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
'use client';
|
|
3
2
|
|
|
4
3
|
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); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -278,7 +277,6 @@ var _MenuItem = function MenuItem(_ref) {
|
|
|
278
277
|
}))));
|
|
279
278
|
};
|
|
280
279
|
var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_ref2) {
|
|
281
|
-
var _window3;
|
|
282
280
|
var setTitle = _ref2.setTitle,
|
|
283
281
|
setPathsWebName = _ref2.setPathsWebName,
|
|
284
282
|
onPortalClick = _ref2.onPortalClick,
|
|
@@ -537,8 +535,7 @@ var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_re
|
|
|
537
535
|
fetchArticlesByLevel();
|
|
538
536
|
}, []);
|
|
539
537
|
var getLabelFromUrl = function getLabelFromUrl() {
|
|
540
|
-
var
|
|
541
|
-
var label = (_window = window) === null || _window === void 0 ? void 0 : _window.location.pathname.split('/').at(-2);
|
|
538
|
+
var label = window.location.pathname.split('/').at(-2);
|
|
542
539
|
return label;
|
|
543
540
|
};
|
|
544
541
|
var actualPath = getLabelFromUrl();
|
|
@@ -565,8 +562,7 @@ var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_re
|
|
|
565
562
|
|
|
566
563
|
// Обновляем крошки при первой загрузке
|
|
567
564
|
(0, _react.useEffect)(function () {
|
|
568
|
-
var
|
|
569
|
-
var currentURL = (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.href;
|
|
565
|
+
var currentURL = window.location.href;
|
|
570
566
|
var id = currentURL.split('/').at(-2);
|
|
571
567
|
fetchGetBreadcrumbs(id);
|
|
572
568
|
onPortalClick(id);
|
|
@@ -596,7 +592,7 @@ var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_re
|
|
|
596
592
|
setExpandedItemsStorage(obj_expanded);
|
|
597
593
|
setInitial(false);
|
|
598
594
|
}
|
|
599
|
-
}, [breadcrumbs,
|
|
595
|
+
}, [breadcrumbs, window.location.href]);
|
|
600
596
|
console.log(expandedItemsStorage);
|
|
601
597
|
var toggleExpand = function toggleExpand(id, expanded) {
|
|
602
598
|
var newMenu = _toConsumableArray(menu);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ecomlab-components-next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"description": "A set of common and reusable React components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"react-dom": "^19.0.0",
|
|
30
30
|
"react-spinners": "^0.15.0",
|
|
31
31
|
"sass": "^1.55.0",
|
|
32
|
-
"styled-components": "^6.1.14"
|
|
32
|
+
"styled-components": "^6.1.14",
|
|
33
|
+
"universal-cookie": "^7.2.2"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@babel/cli": "^7.26.4",
|