@plitzi/plitzi-ui 1.6.20 → 1.6.21
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/components/CodeMirror/CodeMirror.js +1 -1
- package/dist/components/MenuList/MenuList.js +1 -1
- package/dist/components/Popup/PopupSidebar.js +1 -1
- package/dist/components/Popup/components/PopupSidePanel/PopupSidePanel.js +1 -1
- package/dist/components/QueryBuilder/QueryBuilderProvider.js +3 -3
- package/dist/components/Select2/Select2.js +1 -1
- package/dist/components/Tree/utils.js +1 -1
- package/dist/helpers/lodash/omit.js +1 -1
- package/package.json +40 -34
|
@@ -72,7 +72,7 @@ var _ = [], v = ({ ref: v, className: y, id: b, label: x = "", loading: S = !1,
|
|
|
72
72
|
detail: e.detail ?? "(Custom Token)"
|
|
73
73
|
}) : [], [k]), J = i((e) => {
|
|
74
74
|
let t = e.matchBefore(/[a-zA-Z0-9._-]+/);
|
|
75
|
-
if (
|
|
75
|
+
if (t && (t.from !== t.to || e.explicit) && q.length) return {
|
|
76
76
|
from: t.from,
|
|
77
77
|
options: q
|
|
78
78
|
};
|
|
@@ -11,7 +11,7 @@ var v = ({ ref: e, className: r, children: v, open: y, disabled: b = !1, testId:
|
|
|
11
11
|
let [T, E] = m(y ?? !1), D = p(null);
|
|
12
12
|
d(e, () => D.current, []);
|
|
13
13
|
let O = l(() => !b && y === void 0 && E((e) => !e), [b, y]), k = l((e) => {
|
|
14
|
-
|
|
14
|
+
T && D.current && y === void 0 && !D.current.contains(e.target) && !e.target.closest(".menu") && E(!1);
|
|
15
15
|
}, [T, y]), A = l((e) => {
|
|
16
16
|
w?.(e), y === void 0 && E(!1);
|
|
17
17
|
}, [w, y]), { trigger: j, menu: M } = f(() => {
|
|
@@ -34,7 +34,7 @@ var u = ({ className: o = "", value: u, canEmpty: d = !0, canHide: f = !1, place
|
|
|
34
34
|
b,
|
|
35
35
|
h
|
|
36
36
|
]), C = s((e) => y?.(e), [y]);
|
|
37
|
-
if (!
|
|
37
|
+
if (!f || b.length) return /* @__PURE__ */ l(r, {
|
|
38
38
|
value: u,
|
|
39
39
|
size: v,
|
|
40
40
|
onChange: C,
|
|
@@ -50,7 +50,7 @@ var p = s(({ className: s = "", placement: p = "right", placementTabs: m = "righ
|
|
|
50
50
|
E,
|
|
51
51
|
T
|
|
52
52
|
]);
|
|
53
|
-
if (
|
|
53
|
+
if (T.length && (E.length !== 0 || g)) return N.length === 0 && h ? /* @__PURE__ */ d(o, {
|
|
54
54
|
placement: m,
|
|
55
55
|
value: E,
|
|
56
56
|
canEmpty: h,
|
|
@@ -15,7 +15,7 @@ var d = ({ children: d, query: f, fields: p, allowDisableRules: m = !0, allowSub
|
|
|
15
15
|
x.current = b;
|
|
16
16
|
let S = a((t, n) => {
|
|
17
17
|
let { parentId: r, path: i } = e(x.current, n, {});
|
|
18
|
-
if (!
|
|
18
|
+
if (!r || i) return i === "" ? t : e(t, i);
|
|
19
19
|
}, []), C = a((e) => v?.(l(y.current, (t) => {
|
|
20
20
|
let n = S(t, e);
|
|
21
21
|
n && n.rules.push({
|
|
@@ -27,7 +27,7 @@ var d = ({ children: d, query: f, fields: p, allowDisableRules: m = !0, allowSub
|
|
|
27
27
|
});
|
|
28
28
|
})), [v, S]), w = a((t) => v?.(l(y.current, (n) => {
|
|
29
29
|
let r = S(n, t);
|
|
30
|
-
|
|
30
|
+
r && h && "rules" in r && r.rules.push({
|
|
31
31
|
id: u(),
|
|
32
32
|
combinator: e(g, "0.value", "and"),
|
|
33
33
|
rules: [{
|
|
@@ -48,7 +48,7 @@ var d = ({ children: d, query: f, fields: p, allowDisableRules: m = !0, allowSub
|
|
|
48
48
|
let a = S(i, n);
|
|
49
49
|
if (!a) return;
|
|
50
50
|
let { parentId: o } = e(x.current, n, {}), s = S(i, o);
|
|
51
|
-
|
|
51
|
+
s && "rules" in s && t(s, `rules.${s.rules.findIndex((e) => e.id === n)}`, {
|
|
52
52
|
...a,
|
|
53
53
|
...r
|
|
54
54
|
});
|
|
@@ -70,7 +70,7 @@ var v = [], y = c((c) => {
|
|
|
70
70
|
}, [S, Z]), u(() => {
|
|
71
71
|
H(F ? B.current?.getBoundingClientRect() : void 0);
|
|
72
72
|
}, [F]), u(() => {
|
|
73
|
-
if (
|
|
73
|
+
if (O && q && !a(q)) return q.value && !U.find((e) => "value" in e && e.value === q.value) && K((e) => {
|
|
74
74
|
if (e.find((e) => "value" in e && e.value === q.value)) return e;
|
|
75
75
|
let t = [...e];
|
|
76
76
|
return t.push({
|
|
@@ -20,7 +20,7 @@ function i(i, a) {
|
|
|
20
20
|
let i = e(n);
|
|
21
21
|
if (!r(l, n)) continue;
|
|
22
22
|
let a = t(l, n), o = a;
|
|
23
|
-
for (let e = 0; e < i.length - 1 &&
|
|
23
|
+
for (let e = 0; e < i.length - 1 && o && typeof o == "object"; e++) {
|
|
24
24
|
let t = i[e];
|
|
25
25
|
o = o[t];
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/plitzi-ui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.21",
|
|
4
4
|
"homepage": "./",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -1333,33 +1333,35 @@
|
|
|
1333
1333
|
],
|
|
1334
1334
|
"dependencies": {
|
|
1335
1335
|
"@codemirror/autocomplete": "^6.20.3",
|
|
1336
|
-
"@codemirror/commands": "^6.
|
|
1336
|
+
"@codemirror/commands": "^6.11.0",
|
|
1337
1337
|
"@codemirror/lang-css": "^6.3.1",
|
|
1338
1338
|
"@codemirror/lang-html": "^6.4.12",
|
|
1339
1339
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
1340
1340
|
"@codemirror/lang-json": "^6.0.2",
|
|
1341
|
-
"@codemirror/search": "^6.7.
|
|
1342
|
-
"@codemirror/state": "^6.7.
|
|
1341
|
+
"@codemirror/search": "^6.7.2",
|
|
1342
|
+
"@codemirror/state": "^6.7.4",
|
|
1343
1343
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
1344
|
-
"@codemirror/view": "^6.43.
|
|
1345
|
-
"@hookform/resolvers": "^5.
|
|
1344
|
+
"@codemirror/view": "^6.43.11",
|
|
1345
|
+
"@hookform/resolvers": "^5.9.1",
|
|
1346
1346
|
"@uiw/color-convert": "^2.10.3",
|
|
1347
1347
|
"@uiw/react-color-sketch": "^2.10.3",
|
|
1348
1348
|
"class-variance-authority": "^0.7.1",
|
|
1349
1349
|
"clsx": "^2.1.1",
|
|
1350
1350
|
"date-fns": "^4.4.0",
|
|
1351
|
-
"immer": "^11.1.
|
|
1352
|
-
"react": "^19.2.8",
|
|
1353
|
-
"react-dom": "^19.2.8",
|
|
1354
|
-
"react-hook-form": "^7.85.0",
|
|
1351
|
+
"immer": "^11.1.18",
|
|
1355
1352
|
"react-markdown": "^10.1.0",
|
|
1356
1353
|
"react-syntax-highlighter": "^16.1.1",
|
|
1357
1354
|
"react-toastify": "^11.1.0",
|
|
1358
1355
|
"remark-gfm": "^4.0.1",
|
|
1359
1356
|
"tailwind-merge": "^3.6.0",
|
|
1360
1357
|
"tinycolor2": "^1.6.0",
|
|
1361
|
-
"uuid": "^14.0.
|
|
1362
|
-
|
|
1358
|
+
"uuid": "^14.0.2"
|
|
1359
|
+
},
|
|
1360
|
+
"peerDependencies": {
|
|
1361
|
+
"react": "^19.2.8",
|
|
1362
|
+
"react-dom": "^19.2.8",
|
|
1363
|
+
"react-hook-form": "^7.85.0",
|
|
1364
|
+
"zod": "^4.6.4"
|
|
1363
1365
|
},
|
|
1364
1366
|
"resolutions": {
|
|
1365
1367
|
"@codemirror/view": "^6.38.1"
|
|
@@ -1368,54 +1370,58 @@
|
|
|
1368
1370
|
"@eslint/js": "^10.0.1",
|
|
1369
1371
|
"@storybook/addon-actions": "^9.0.8",
|
|
1370
1372
|
"@storybook/addon-controls": "^9.0.8",
|
|
1371
|
-
"@storybook/addon-links": "^10.
|
|
1373
|
+
"@storybook/addon-links": "^10.6.0",
|
|
1372
1374
|
"@storybook/addon-styling-webpack": "^3.0.2",
|
|
1373
|
-
"@storybook/react": "^10.
|
|
1374
|
-
"@storybook/react-vite": "^10.
|
|
1375
|
+
"@storybook/react": "^10.6.0",
|
|
1376
|
+
"@storybook/react-vite": "^10.6.0",
|
|
1375
1377
|
"@tailwindcss/forms": "^0.5.11",
|
|
1376
1378
|
"@tailwindcss/postcss": "^4.3.3",
|
|
1377
1379
|
"@tailwindcss/vite": "^4.3.3",
|
|
1378
1380
|
"@testing-library/dom": "^10.4.1",
|
|
1379
1381
|
"@testing-library/jest-dom": "^7.0.1",
|
|
1380
|
-
"@testing-library/react": "^16.3.
|
|
1382
|
+
"@testing-library/react": "^16.3.3",
|
|
1381
1383
|
"@types/lodash": "^4.17.25",
|
|
1382
1384
|
"@types/lodash-es": "^4.17.12",
|
|
1383
|
-
"@types/node": "^26.
|
|
1384
|
-
"@types/react": "^19.
|
|
1385
|
+
"@types/node": "^26.5.1",
|
|
1386
|
+
"@types/react": "^19.3.0",
|
|
1385
1387
|
"@types/react-color": "^3.0.13",
|
|
1386
|
-
"@types/react-dom": "^19.
|
|
1388
|
+
"@types/react-dom": "^19.3.0",
|
|
1387
1389
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
1388
1390
|
"@types/tinycolor2": "^1.4.6",
|
|
1389
|
-
"@vitejs/plugin-react": "^6.
|
|
1390
|
-
"cssnano": "^
|
|
1391
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
1392
|
+
"cssnano": "^9.0.4",
|
|
1391
1393
|
"eslint": "^9.39.5",
|
|
1392
1394
|
"eslint-plugin-import": "^2.32.0",
|
|
1393
1395
|
"eslint-plugin-prettier": "^5.5.6",
|
|
1394
1396
|
"eslint-plugin-react": "^7.37.5",
|
|
1395
1397
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
1396
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
1397
|
-
"eslint-plugin-storybook": "^10.
|
|
1398
|
-
"flow-bin": "^0.
|
|
1399
|
-
"globals": "^17.
|
|
1398
|
+
"eslint-plugin-react-refresh": "^0.5.6",
|
|
1399
|
+
"eslint-plugin-storybook": "^10.6.0",
|
|
1400
|
+
"flow-bin": "^0.331.0",
|
|
1401
|
+
"globals": "^17.12.0",
|
|
1400
1402
|
"jsdom": "^30.0.1",
|
|
1401
1403
|
"lodash": "^4.18.1",
|
|
1402
1404
|
"lodash-es": "^4.18.1",
|
|
1403
|
-
"postcss": "^8.5.
|
|
1405
|
+
"postcss": "^8.5.28",
|
|
1404
1406
|
"postcss-scss": "^4.0.9",
|
|
1405
1407
|
"prettier": "^3.9.6",
|
|
1406
|
-
"
|
|
1407
|
-
"
|
|
1408
|
-
"
|
|
1408
|
+
"react": "^19.3.0",
|
|
1409
|
+
"react-dom": "^19.3.0",
|
|
1410
|
+
"react-hook-form": "^7.88.0",
|
|
1411
|
+
"sass": "^1.104.1",
|
|
1412
|
+
"storybook": "^10.6.0",
|
|
1413
|
+
"stylelint": "^17.15.0",
|
|
1409
1414
|
"stylelint-order": "^8.1.1",
|
|
1410
1415
|
"stylelint-scss": "^7.2.0",
|
|
1411
1416
|
"tailwindcss": "4.3.3",
|
|
1412
1417
|
"typescript": "^6.0.3",
|
|
1413
|
-
"typescript-eslint": "^8.
|
|
1414
|
-
"vite": "^8.
|
|
1415
|
-
"vite-plugin-dts": "^5.0
|
|
1418
|
+
"typescript-eslint": "^8.70.0",
|
|
1419
|
+
"vite": "^8.3.0",
|
|
1420
|
+
"vite-plugin-dts": "^5.1.0",
|
|
1416
1421
|
"vite-plugin-static-copy": "^4.1.1",
|
|
1417
|
-
"vitest": "^
|
|
1418
|
-
"vitest-fetch-mock": "^0.4.5"
|
|
1422
|
+
"vitest": "^5.0.0",
|
|
1423
|
+
"vitest-fetch-mock": "^0.4.5",
|
|
1424
|
+
"zod": "^4.6.4"
|
|
1419
1425
|
},
|
|
1420
1426
|
"scripts": {
|
|
1421
1427
|
"start": "storybook dev -p 6006",
|