ecomlab-components-next 0.1.35 → 0.1.37

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.VladimirModalHttps = exports.VladimirModalHttp = exports.VladimirHttps = exports.VladimirHttp = exports.ValeriyaHttps = exports.ValeriyaHttp = exports.ValeriyaArticlesHttps = exports.SergeyYandexHttps = exports.SergeyOzonPerfHttps = exports.RavshanHttps = exports.RavshanHttp = exports.RavshanArticlesHttps = exports.OlegPaymentHttps = exports.OlegPaymentHttp = exports.OlegOrdersHttps = exports.OlegOrdersHttp = exports.OlegHttps = exports.OlegHttp = exports.Oleg2Https = exports.Oleg2Http = exports.KonstantinHttps = exports.KonstantinHttp = exports.ArtemVideoHttps = exports.ArtemVideoHttp = exports.ArtemTransferHttps = exports.ArtemTransferHttp = exports.ArtemPhotoHttps = exports.ArtemNotificationsHttps = exports.ArtemNotificationsHttp = exports.ArtemHttps = exports.ArtemHttp = exports.AndreyHttps = exports.AndreyHttp = exports.AndreyCatalogHttps = exports.AndreyCatalogHttp = void 0;
6
+ exports.VladimirModalHttps = exports.VladimirModalHttp = exports.VladimirHttps = exports.VladimirHttp = exports.ValeriyaHttps = exports.ValeriyaHttp = exports.ValeriyaArticlesHttps = exports.SergeyYandexHttps = exports.SergeyOzonPerfHttps = exports.RavshanArticlesHttps = exports.OlegPaymentHttps = exports.OlegPaymentHttp = exports.OlegOrdersHttps = exports.OlegOrdersHttp = exports.OlegHttps = exports.OlegHttp = exports.Oleg2Https = exports.Oleg2Http = exports.KonstantinHttps = exports.KonstantinHttp = exports.ArtemVideoHttps = exports.ArtemVideoHttp = exports.ArtemTransferHttps = exports.ArtemTransferHttp = exports.ArtemPhotoHttps = exports.ArtemNotificationsHttps = exports.ArtemNotificationsHttp = exports.ArtemHttps = exports.ArtemHttp = exports.AndreyHttps = exports.AndreyHttp = exports.AndreyCatalogHttps = exports.AndreyCatalogHttp = void 0;
7
7
  // Vladimir auth/signup/reset-pass/
8
8
 
9
9
  var VladimirHttps = exports.VladimirHttps = 'https://apps1.ecomru.ru:4432';
@@ -68,9 +68,4 @@ var SergeyYandexHttps = exports.SergeyYandexHttps = 'https://apps1.ecomru.ru:444
68
68
  var SergeyOzonPerfHttps = exports.SergeyOzonPerfHttps = 'https://apps1.ecomru.ru:4441';
69
69
 
70
70
  // Ravshan articles
71
- var RavshanArticlesHttps = exports.RavshanArticlesHttps = 'https://apps0.ecomru.ru:4447';
72
-
73
- // Ravshan notification methods
74
-
75
- var RavshanHttps = exports.RavshanHttps = 'https://apps0.ecomru.ru:4447';
76
- var RavshanHttp = exports.RavshanHttp = 'https://apps0.ecomru.ru:4447';
71
+ var RavshanArticlesHttps = exports.RavshanArticlesHttps = 'https://apps0.ecomru.ru:4447';
@@ -8,8 +8,7 @@ exports["default"] = void 0;
8
8
 
9
9
  // const cookies = new Cookies()
10
10
 
11
- // const testToken = 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2UiOiJ3ZWIiLCJzdWIiOiIyNTgiLCJleHAiOjE3MTY1OTk5MDZ9.dmgDqCzikGOZt82AnmoAuc845bx4E3phoid6vZHVgr36z5fJQUXDV8Ns-S7fyvQmMl5pMPDyHesdiKXoveu8uw'
12
- var testToken = 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2UiOiJ3ZWIiLCJzdWIiOiI0MzgiLCJleHAiOjE3Mzk4NzI4MTZ9.fGsDIlX5CkUyk9I-sxgsjo7fW7eZech-TGRHS3PLYmYRVbzUsxOPBDKbuL-oyPiPij-0K6nnuL4z8LKNXc8__A';
11
+ var testToken = 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2UiOiJ3ZWIiLCJzdWIiOiIyNTgiLCJleHAiOjE3MTY1OTk5MDZ9.dmgDqCzikGOZt82AnmoAuc845bx4E3phoid6vZHVgr36z5fJQUXDV8Ns-S7fyvQmMl5pMPDyHesdiKXoveu8uw';
13
12
  var _default = exports["default"] = {
14
13
  'Accept': 'application/json',
15
14
  'Content-Type': 'application/json',
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  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); }
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -12,7 +13,7 @@ var _fetchUrls = require("../../../common/fetchUrls");
12
13
  var _ButtonBasic = _interopRequireDefault(require("../../Buttons/ButtonBasic/ButtonBasic"));
13
14
  var _drop_icon = _interopRequireDefault(require("./img/drop_icon.svg"));
14
15
  var _ButtonActionDrop = require("../../Buttons/ButtonActionDrop/ButtonActionDrop");
15
- var _router = require("next/router");
16
+ var _navigation = require("next/navigation");
16
17
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -277,6 +278,7 @@ var _MenuItem = function MenuItem(_ref) {
277
278
  }))));
278
279
  };
279
280
  var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_ref2) {
281
+ var _window3;
280
282
  var setTitle = _ref2.setTitle,
281
283
  setPathsWebName = _ref2.setPathsWebName,
282
284
  onPortalClick = _ref2.onPortalClick,
@@ -300,7 +302,7 @@ var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_re
300
302
  };
301
303
 
302
304
  // console.log(expandedItemsStorage)
303
- var location = (0, _router.useRouter)();
305
+ var location = (0, _navigation.useRouter)();
304
306
  // const selectedSpace = useGeneralStore((state) => state.selectedSpace);
305
307
  // const headers = { ...customHeaders, ...getSpace(selectedSpace) };
306
308
 
@@ -535,7 +537,8 @@ var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_re
535
537
  fetchArticlesByLevel();
536
538
  }, []);
537
539
  var getLabelFromUrl = function getLabelFromUrl() {
538
- var label = window.location.pathname.split('/').at(-2);
540
+ var _window;
541
+ var label = (_window = window) === null || _window === void 0 ? void 0 : _window.location.pathname.split('/').at(-2);
539
542
  return label;
540
543
  };
541
544
  var actualPath = getLabelFromUrl();
@@ -562,7 +565,8 @@ var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_re
562
565
 
563
566
  // Обновляем крошки при первой загрузке
564
567
  (0, _react.useEffect)(function () {
565
- var currentURL = window.location.href;
568
+ var _window2;
569
+ var currentURL = (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.href;
566
570
  var id = currentURL.split('/').at(-2);
567
571
  fetchGetBreadcrumbs(id);
568
572
  onPortalClick(id);
@@ -592,7 +596,7 @@ var ModalMiltilevelSidebarSettings = function ModalMiltilevelSidebarSettings(_re
592
596
  setExpandedItemsStorage(obj_expanded);
593
597
  setInitial(false);
594
598
  }
595
- }, [breadcrumbs, window.location.href]);
599
+ }, [breadcrumbs, (_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.location.href]);
596
600
  console.log(expandedItemsStorage);
597
601
  var toggleExpand = function toggleExpand(id, expanded) {
598
602
  var newMenu = _toConsumableArray(menu);
@@ -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", {
package/package.json CHANGED
@@ -1,67 +1,66 @@
1
- {
2
- "name": "ecomlab-components-next",
3
- "version": "0.1.35",
4
- "description": "A set of common and reusable React components",
5
- "main": "dist/index.js",
6
- "files": [
7
- "dist"
8
- ],
9
- "publishConfig": {
10
- "access": "public"
11
- },
12
- "scripts": {
13
- "dev": "next dev",
14
- "build": "next build",
15
- "start": "next start",
16
- "lint": "next lint",
17
- "storybook": "storybook dev -p 6006",
18
- "build-storybook": "storybook build",
19
- "build:lib": "babel src --out-dir dist --copy-files"
20
- },
21
- "dependencies": {
22
- "@types/styled-components": "^5.1.34",
23
- "chart.js": "^4.4.7",
24
- "deep-equal": "^2.2.3",
25
- "next": "15.1.5",
26
- "react": "^19.0.0",
27
- "react-chartjs-2": "^5.3.0",
28
- "react-datepicker": "^8.0.0",
29
- "react-dom": "^19.0.0",
30
- "react-spinners": "^0.15.0",
31
- "sass": "^1.55.0",
32
- "styled-components": "^6.1.14",
33
- "universal-cookie": "^7.2.2"
34
- },
35
- "devDependencies": {
36
- "@babel/cli": "^7.26.4",
37
- "@babel/preset-env": "^7.26.8",
38
- "@babel/preset-react": "^7.26.3",
39
- "@chromatic-com/storybook": "^3.2.4",
40
- "@emotion/react": "11.11.1",
41
- "@emotion/styled": "11.11.0",
42
- "@eslint/eslintrc": "^3",
43
- "@mui/material": "6.4.4",
44
- "@storybook/addon-essentials": "^8.5.0",
45
- "@storybook/addon-interactions": "^8.5.0",
46
- "@storybook/addon-onboarding": "^8.5.0",
47
- "@storybook/blocks": "^8.5.0",
48
- "@storybook/nextjs": "^8.5.0",
49
- "@storybook/react": "^8.5.0",
50
- "@storybook/test": "^8.5.0",
51
- "eslint": "^9",
52
- "eslint-config-next": "15.1.5",
53
- "eslint-plugin-storybook": "^0.11.2",
54
- "html-react-parser": "^5.2.2",
55
- "imask": "^7.6.1",
56
- "react-fast-marquee": "^1.6.5",
57
- "react-multi-carousel": "^2.8.5",
58
- "react-select": "^5.8.0",
59
- "sass": "^1.55.0",
60
- "storybook": "^8.5.0"
61
- },
62
- "eslintConfig": {
63
- "extends": [
64
- "plugin:storybook/recommended"
65
- ]
66
- }
67
- }
1
+ {
2
+ "name": "ecomlab-components-next",
3
+ "version": "0.1.37",
4
+ "description": "A set of common and reusable React components",
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "scripts": {
13
+ "dev": "next dev",
14
+ "build": "next build",
15
+ "start": "next start",
16
+ "lint": "next lint",
17
+ "storybook": "storybook dev -p 6006",
18
+ "build-storybook": "storybook build",
19
+ "build:lib": "babel src --out-dir dist --copy-files"
20
+ },
21
+ "dependencies": {
22
+ "@types/styled-components": "^5.1.34",
23
+ "chart.js": "^4.4.7",
24
+ "deep-equal": "^2.2.3",
25
+ "next": "15.1.5",
26
+ "react": "^19.0.0",
27
+ "react-chartjs-2": "^5.3.0",
28
+ "react-datepicker": "^8.0.0",
29
+ "react-dom": "^19.0.0",
30
+ "react-spinners": "^0.15.0",
31
+ "sass": "^1.55.0",
32
+ "styled-components": "^6.1.14"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/cli": "^7.26.4",
36
+ "@babel/preset-env": "^7.26.8",
37
+ "@babel/preset-react": "^7.26.3",
38
+ "@chromatic-com/storybook": "^3.2.4",
39
+ "@emotion/react": "11.11.1",
40
+ "@emotion/styled": "11.11.0",
41
+ "@eslint/eslintrc": "^3",
42
+ "@mui/material": "6.4.4",
43
+ "@storybook/addon-essentials": "^8.5.0",
44
+ "@storybook/addon-interactions": "^8.5.0",
45
+ "@storybook/addon-onboarding": "^8.5.0",
46
+ "@storybook/blocks": "^8.5.0",
47
+ "@storybook/nextjs": "^8.5.0",
48
+ "@storybook/react": "^8.5.0",
49
+ "@storybook/test": "^8.5.0",
50
+ "eslint": "^9",
51
+ "eslint-config-next": "15.1.5",
52
+ "eslint-plugin-storybook": "^0.11.2",
53
+ "html-react-parser": "^5.2.2",
54
+ "imask": "^7.6.1",
55
+ "react-fast-marquee": "^1.6.5",
56
+ "react-multi-carousel": "^2.8.5",
57
+ "react-select": "^5.8.0",
58
+ "sass": "^1.55.0",
59
+ "storybook": "^8.5.0"
60
+ },
61
+ "eslintConfig": {
62
+ "extends": [
63
+ "plugin:storybook/recommended"
64
+ ]
65
+ }
66
+ }