@plesk/ui-library 3.40.7 → 3.40.8

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.
@@ -30,7 +30,7 @@ class Registry {
30
30
  expand() {
31
31
  let changed = false;
32
32
  for (const item of this.items) {
33
- if (this.checkItemIsCompactOrHasCompactItems(item)) {
33
+ if (item.isExpandable) {
34
34
  item.expand();
35
35
  changed = true;
36
36
  break;
@@ -46,18 +46,20 @@ class Registry {
46
46
  return isCompact;
47
47
  });
48
48
  }
49
- get hasCompactItems() {
50
- return this.items.some(this.checkItemIsCompactOrHasCompactItems);
51
- }
52
- checkItemIsCompactOrHasCompactItems(item) {
53
- return item.isCompact || 'hasCompactItems' in item && item.hasCompactItems;
49
+ get isExpandable() {
50
+ return this.items.some(_ref2 => {
51
+ let {
52
+ isExpandable
53
+ } = _ref2;
54
+ return isExpandable;
55
+ });
54
56
  }
55
57
  }
56
58
  class RegistryItem {
57
- constructor(_ref2) {
59
+ constructor(_ref3) {
58
60
  let {
59
61
  onCompactStateChange
60
- } = _ref2;
62
+ } = _ref3;
61
63
  _defineProperty(this, "_isCompact", false);
62
64
  _defineProperty(this, "onCompactStateChange", void 0);
63
65
  this.onCompactStateChange = onCompactStateChange;
@@ -73,6 +75,9 @@ class RegistryItem {
73
75
  get isCompact() {
74
76
  return this._isCompact;
75
77
  }
78
+ get isExpandable() {
79
+ return this._isCompact;
80
+ }
76
81
  }
77
82
  export const useRegistry = () => {
78
83
  const parentRegistry = useRegistryContext();
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
  import svg4everybody from 'svg4everybody';
3
- const version = "3.40.7";
3
+ const version = "3.40.8";
4
4
  export * from './publicPath';
5
5
  export { version };
6
6
  export * from './utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plesk/ui-library",
3
- "version": "3.40.7",
3
+ "version": "3.40.8",
4
4
  "description": "Plesk UI Library",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -59,14 +59,14 @@
59
59
  "use-focus-visible": "^1.0.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/core": "^7.24.9",
62
+ "@babel/core": "^7.25.2",
63
63
  "@babel/plugin-proposal-class-properties": "^7.18.6",
64
64
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
65
65
  "@babel/plugin-transform-runtime": "^7.24.7",
66
- "@babel/preset-env": "^7.25.0",
66
+ "@babel/preset-env": "^7.25.3",
67
67
  "@babel/preset-react": "^7.24.7",
68
68
  "@babel/preset-typescript": "^7.24.7",
69
- "@babel/types": "^7.25.0",
69
+ "@babel/types": "^7.25.2",
70
70
  "@csstools/postcss-logical-float-and-clear": "^2.0.1",
71
71
  "@plesk/eslint-config": "^3.0.0",
72
72
  "@plesk/stylelint-config": "^2.0.0",
@@ -81,16 +81,16 @@
81
81
  "@types/jest": "^29.5.12",
82
82
  "@types/jest-image-snapshot": "^6.4.0",
83
83
  "@types/marked": "^4.3.2",
84
- "@types/node": "^22.1.0",
84
+ "@types/node": "^22.2.0",
85
85
  "@types/react": "^18.3.3",
86
86
  "@types/react-dom": "^18.3.0",
87
87
  "@types/react-measure": "2.0.9",
88
- "@types/react-transition-group": "^4.4.10",
88
+ "@types/react-transition-group": "^4.4.11",
89
89
  "@types/svg4everybody": "2.1.2",
90
90
  "@types/webpack-env": "^1.18.5",
91
91
  "@typescript-eslint/eslint-plugin": "^6.21.0",
92
92
  "@typescript-eslint/parser": "^6.21.0",
93
- "autoprefixer": "^10.4.19",
93
+ "autoprefixer": "^10.4.20",
94
94
  "babel-loader": "^8.3.0",
95
95
  "babel-plugin-transform-require-ignore": "^0.1.1",
96
96
  "cross-env": "^7.0.3",
@@ -107,7 +107,7 @@
107
107
  "less": "^4.2.0",
108
108
  "less-loader": "^12.2.0",
109
109
  "mini-css-extract-plugin": "^2.9.0",
110
- "postcss": "^8.4.40",
110
+ "postcss": "^8.4.41",
111
111
  "postcss-less": "^6.0.0",
112
112
  "postcss-loader": "^8.1.1",
113
113
  "postcss-logical": "^7.0.1",