@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.
- package/cjs/components/Toolbar/RegistryContext.js +13 -8
- package/cjs/index.js +1 -1
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +14 -9
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +2 -2
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Toolbar/RegistryContext.js +13 -8
- package/esm/index.js +1 -1
- package/package.json +8 -8
- package/styleguide/build/bundle.265c8e0c.js +2 -0
- package/styleguide/index.html +2 -2
- package/types/src/components/Toolbar/RegistryContext.d.ts +2 -2
- package/styleguide/build/bundle.52d1d9a1.js +0 -2
- /package/styleguide/build/{bundle.52d1d9a1.js.LICENSE.txt → bundle.265c8e0c.js.LICENSE.txt} +0 -0
package/dist/plesk-ui-library.js
CHANGED
|
@@ -21417,7 +21417,7 @@ class Registry {
|
|
|
21417
21417
|
expand() {
|
|
21418
21418
|
let changed = false;
|
|
21419
21419
|
for (const item of this.items) {
|
|
21420
|
-
if (
|
|
21420
|
+
if (item.isExpandable) {
|
|
21421
21421
|
item.expand();
|
|
21422
21422
|
changed = true;
|
|
21423
21423
|
break;
|
|
@@ -21433,18 +21433,20 @@ class Registry {
|
|
|
21433
21433
|
return isCompact;
|
|
21434
21434
|
});
|
|
21435
21435
|
}
|
|
21436
|
-
get
|
|
21437
|
-
return this.items.some(
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21436
|
+
get isExpandable() {
|
|
21437
|
+
return this.items.some(_ref2 => {
|
|
21438
|
+
let {
|
|
21439
|
+
isExpandable
|
|
21440
|
+
} = _ref2;
|
|
21441
|
+
return isExpandable;
|
|
21442
|
+
});
|
|
21441
21443
|
}
|
|
21442
21444
|
}
|
|
21443
21445
|
class RegistryItem {
|
|
21444
|
-
constructor(
|
|
21446
|
+
constructor(_ref3) {
|
|
21445
21447
|
let {
|
|
21446
21448
|
onCompactStateChange
|
|
21447
|
-
} =
|
|
21449
|
+
} = _ref3;
|
|
21448
21450
|
_defineProperty(this, "_isCompact", false);
|
|
21449
21451
|
_defineProperty(this, "onCompactStateChange", void 0);
|
|
21450
21452
|
this.onCompactStateChange = onCompactStateChange;
|
|
@@ -21460,6 +21462,9 @@ class RegistryItem {
|
|
|
21460
21462
|
get isCompact() {
|
|
21461
21463
|
return this._isCompact;
|
|
21462
21464
|
}
|
|
21465
|
+
get isExpandable() {
|
|
21466
|
+
return this._isCompact;
|
|
21467
|
+
}
|
|
21463
21468
|
}
|
|
21464
21469
|
const useRegistry = () => {
|
|
21465
21470
|
const parentRegistry = useRegistryContext();
|
|
@@ -87642,7 +87647,7 @@ function _setPrototypeOf(t, e) {
|
|
|
87642
87647
|
/***/ ((module) => {
|
|
87643
87648
|
|
|
87644
87649
|
"use strict";
|
|
87645
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@plesk/ui-library","version":"3.40.
|
|
87650
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@plesk/ui-library","version":"3.40.8","description":"Plesk UI Library","main":"index.js","module":"esm/index.js","types":"./types/src","sideEffects":["cjs/index.js","esm/index.js","dist/*.js","dist/*.css"],"scripts":{"pretest":"yarn lint","test":"jest --ci --coverage --coverageReporters text-summary","test:vr":"cross-env VISUAL_REGRESSION=true jest","build":"yarn build:types && yarn build:umd && yarn build:esm && yarn build:cjs","build:umd":"webpack --config ./configs/build.config.js","build:esm":"cross-env NODE_ENV=esm node ./scripts/build.js","build:cjs":"cross-env NODE_ENV=cjs node ./scripts/build.js","build:types":"rimraf ./types && tsc --project ./configs/types-generator.config.json","create-svg-sprite":"node ./scripts/create-svg-sprite.js","lint":"yarn lint:es && yarn lint:types && yarn lint:style && yarn format:check","lint:es":"eslint --ext js,md,tsx src configs scripts styleguidist","lint:types":"tsc","lint:style":"stylelint \\"{src,styleguidist}/**/*.less\\"","format:check":"prettier --check src","format":"prettier --write src","styleguide":"styleguidist server --config ./configs/styleguide.config.js","styleguide:build":"rimraf ./styleguide && styleguidist build --config ./configs/styleguide.config.js","prepublishOnly":"yarn install && yarn test && yarn build && yarn styleguide:build","storybook":"webpack serve --config ./configs/storybook.config.js --allowed-hosts all","postinstall":"node ./scripts/postinstall.js"},"files":["esm","cjs","dist","styleguide","types","/scripts/postinstall.js","/index.js"],"dependencies":{"@babel/runtime":"^7.25.0","@plesk/react-movable":"^2.7.1","classnames":"^2.5.1","codemirror":"5.58.2","marked":"4.2.12","memoize-one":"^5.2.1","popper.js":"1.16.1","prop-types":"^15.8.1","react-measure":"2.5.2","react-sortable-hoc":"0.6.8","react-transition-group":"^4.4.5","scroll-into-view-if-needed":"^2.2.31","svg4everybody":"2.1.9","use-focus-visible":"^1.0.2"},"devDependencies":{"@babel/core":"^7.25.2","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.24.7","@babel/preset-env":"^7.25.3","@babel/preset-react":"^7.24.7","@babel/preset-typescript":"^7.24.7","@babel/types":"^7.25.2","@csstools/postcss-logical-float-and-clear":"^2.0.1","@plesk/eslint-config":"^3.0.0","@plesk/stylelint-config":"^2.0.0","@testing-library/dom":"^9.3.4","@testing-library/jest-dom":"^6.4.8","@testing-library/react":"^14.3.1","@testing-library/user-event":"^14.5.2","@types/buble":"^0.20.5","@types/classnames":"2.3.1","@types/codemirror":"^5.60.15","@types/doctrine":"^0.0.5","@types/jest":"^29.5.12","@types/jest-image-snapshot":"^6.4.0","@types/marked":"^4.3.2","@types/node":"^22.2.0","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@types/react-measure":"2.0.9","@types/react-transition-group":"^4.4.11","@types/svg4everybody":"2.1.2","@types/webpack-env":"^1.18.5","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","autoprefixer":"^10.4.20","babel-loader":"^8.3.0","babel-plugin-transform-require-ignore":"^0.1.1","cross-env":"^7.0.3","css-loader":"^7.1.2","css-minimizer-webpack-plugin":"^7.0.0","eslint":"^8.57.0","eslint-config-prettier":"^8.10.0","eslint-plugin-markdown":"^3.0.1","html-webpack-plugin":"^5.6.0","jest":"^29.7.0","jest-dev-server":"^10.0.0","jest-environment-jsdom":"^29.7.0","jest-image-snapshot":"^6.4.0","less":"^4.2.0","less-loader":"^12.2.0","mini-css-extract-plugin":"^2.9.0","postcss":"^8.4.41","postcss-less":"^6.0.0","postcss-loader":"^8.1.1","postcss-logical":"^7.0.1","prettier":"^2.8.8","puppeteer-core":"22.8.2","react":"^18.3.1","react-docgen-typescript":"^2.2.2","react-dom":"^18.3.1","react-styleguidist":"^13.1.3","rimraf":"^6.0.1","rtlcss":"^4.2.0","style-loader":"^4.0.0","stylelint":"^15.11.0","stylelint-declaration-block-no-ignored-properties":"^2.8.0","stylelint-no-unsupported-browser-features":"^6.1.0","stylelint-prettier":"^3.0.0","stylelint-use-logical-spec":"^5.0.1","svg-mixer":"^2.3.14","terser-webpack-plugin":"^5.3.10","typescript":"5.2.2","webpack":"^5.93.0","webpack-cli":"^5.1.4"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"resolutions":{"trim":">=0.0.3"},"browserslist":["defaults","not op_mini all","not kaios > 0"],"author":"Plesk Developers <plesk-dev-leads@plesk.com> (https://www.plesk.com/)","license":"Apache-2.0"}');
|
|
87646
87651
|
|
|
87647
87652
|
/***/ }),
|
|
87648
87653
|
|