@ws-ui/store 0.1.36 → 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.
- package/README.md +0 -0
- package/dist/hooks/index.d.ts +0 -0
- package/dist/hooks/store.d.ts +0 -0
- package/dist/index.cjs.js +28 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.es.js +10 -20
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/index.d.ts +0 -0
- package/dist/modules/catalog/reducer.d.ts +0 -0
- package/dist/modules/catalog/thunks.d.ts +0 -0
- package/dist/modules/catalog/types.d.ts +0 -0
- package/dist/modules/debugger/index.d.ts +0 -0
- package/dist/modules/debugger/reducer.d.ts +0 -0
- package/dist/modules/debugger/thunks.d.ts +0 -0
- package/dist/modules/debugger/types.d.ts +0 -0
- package/dist/modules/debugger/utils.d.ts +0 -0
- package/dist/modules/explorer/index.d.ts +0 -0
- package/dist/modules/explorer/reducer.d.ts +0 -0
- package/dist/modules/explorer/thunks.d.ts +1 -1
- package/dist/modules/explorer/types.d.ts +0 -0
- package/dist/modules/explorer/utils.d.ts +0 -0
- package/dist/modules/index.d.ts +0 -0
- package/dist/modules/modals/index.d.ts +0 -0
- package/dist/modules/modals/reducer.d.ts +0 -0
- package/dist/modules/modals/thunks.d.ts +0 -0
- package/dist/modules/modals/types.d.ts +0 -0
- package/dist/modules/model/helpers.d.ts +0 -0
- package/dist/modules/model/index.d.ts +0 -0
- package/dist/modules/model/reducer.d.ts +0 -0
- package/dist/modules/model/selectors.d.ts +0 -0
- package/dist/modules/model/subjects.d.ts +0 -0
- package/dist/modules/model/thunks.d.ts +0 -0
- package/dist/modules/model/types.d.ts +0 -0
- package/dist/modules/model/utils.d.ts +0 -0
- package/dist/modules/roles/__tests__/adapter.test.d.ts +0 -0
- package/dist/modules/roles/adapter.d.ts +0 -0
- package/dist/modules/roles/index.d.ts +0 -0
- package/dist/modules/roles/reducer.d.ts +0 -0
- package/dist/modules/roles/thunks.d.ts +0 -0
- package/dist/modules/roles/types.d.ts +0 -0
- package/dist/modules/root/index.d.ts +0 -0
- package/dist/modules/root/reducer.d.ts +0 -0
- package/dist/modules/root/thunks.d.ts +0 -0
- package/dist/modules/root/types.d.ts +0 -0
- package/dist/modules/settings/index.d.ts +0 -0
- package/dist/modules/settings/reducer.d.ts +5 -5
- package/dist/modules/settings/thunks.d.ts +0 -0
- package/dist/modules/settings/types.d.ts +0 -0
- package/dist/modules/settings/utils.d.ts +0 -0
- package/dist/modules/shared-conditions/index.d.ts +0 -0
- package/dist/modules/shared-conditions/reducer.d.ts +0 -0
- package/dist/modules/shared-conditions/thunks.d.ts +0 -0
- package/dist/modules/shared-conditions/types.d.ts +0 -0
- package/dist/modules/shared-css/index.d.ts +0 -0
- package/dist/modules/shared-css/reducer.d.ts +0 -0
- package/dist/modules/shared-css/thunks.d.ts +0 -0
- package/dist/modules/shared-css/types.d.ts +0 -0
- package/dist/modules/shared-datasources/index.d.ts +0 -0
- package/dist/modules/shared-datasources/reducer.d.ts +0 -0
- package/dist/modules/shared-datasources/thunks.d.ts +0 -0
- package/dist/modules/shared-datasources/types.d.ts +0 -0
- package/dist/modules/tabs/index.d.ts +0 -0
- package/dist/modules/tabs/reducer.d.ts +0 -0
- package/dist/modules/tabs/selectors.d.ts +0 -0
- package/dist/modules/tabs/types.d.ts +0 -0
- package/dist/modules/webforms/datasources.adapter.d.ts +0 -0
- package/dist/modules/webforms/index.d.ts +0 -0
- package/dist/modules/webforms/private.d.ts +0 -0
- package/dist/modules/webforms/reducer.d.ts +0 -0
- package/dist/modules/webforms/thunks.d.ts +0 -0
- package/dist/modules/webforms/types.d.ts +0 -0
- package/dist/provider.d.ts +0 -0
- package/dist/selectors/catalog.d.ts +0 -0
- package/dist/selectors/common.d.ts +0 -0
- package/dist/selectors/components.d.ts +0 -0
- package/dist/selectors/datasources.d.ts +0 -0
- package/dist/selectors/debugger.d.ts +0 -0
- package/dist/selectors/explorer.d.ts +0 -0
- package/dist/selectors/index.d.ts +0 -0
- package/dist/selectors/modals.d.ts +0 -0
- package/dist/selectors/roles.d.ts +0 -0
- package/dist/selectors/settings.d.ts +16 -16
- package/dist/selectors/states.d.ts +0 -0
- package/dist/selectors/styles.d.ts +0 -0
- package/dist/selectors/tabs.d.ts +0 -0
- package/dist/selectors/webforms.d.ts +0 -0
- package/dist/store.d.ts +0 -0
- package/dist/utils.d.ts +0 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.es.js
CHANGED
|
@@ -8919,13 +8919,9 @@ const qP = () => hR(), fr = yR, Kc = W(
|
|
|
8919
8919
|
), HD = (...e) => W(
|
|
8920
8920
|
Ja,
|
|
8921
8921
|
(n) => e.length > 0 ? Ae.pick(n, e) : n
|
|
8922
|
-
), GD = (e) => W(
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
), qD = (e) => W(
|
|
8926
|
-
Ja,
|
|
8927
|
-
(n) => !!n[`features.experimental.${e}`]
|
|
8928
|
-
), PR = W(
|
|
8922
|
+
), GD = (e) => W(Ja, (n) => n[e]), qD = (e) => W(Ja, (n) => [
|
|
8923
|
+
"states"
|
|
8924
|
+
].includes(e) ? !0 : !!n[`features.experimental.${e}`]), PR = W(
|
|
8929
8925
|
(e) => e.settings,
|
|
8930
8926
|
(e) => e.project
|
|
8931
8927
|
), YD = W(
|
|
@@ -9920,9 +9916,7 @@ function CI(e, n) {
|
|
|
9920
9916
|
({ resource: b, type: _ }) => _ === Se.METHOD && c.includes(b)
|
|
9921
9917
|
).forEach(({ permissions: b, resource: _ }) => {
|
|
9922
9918
|
var w;
|
|
9923
|
-
((w = b.find(
|
|
9924
|
-
({ name: P }) => P === "promote"
|
|
9925
|
-
)) == null ? void 0 : w.checked) && (p[_] = mn(p[_] || [], h));
|
|
9919
|
+
((w = b.find(({ name: P }) => P === "promote")) == null ? void 0 : w.checked) && (p[_] = mn(p[_] || [], h));
|
|
9926
9920
|
}), p),
|
|
9927
9921
|
{}
|
|
9928
9922
|
);
|
|
@@ -9932,9 +9926,7 @@ function yA(e, n) {
|
|
|
9932
9926
|
const t = dr(e, n);
|
|
9933
9927
|
if (!t)
|
|
9934
9928
|
return [];
|
|
9935
|
-
const a = (c = Object.values(n).find(
|
|
9936
|
-
(f) => f.privilege === Ci
|
|
9937
|
-
)) == null ? void 0 : c.id;
|
|
9929
|
+
const a = (c = Object.values(n).find((f) => f.privilege === Ci)) == null ? void 0 : c.id;
|
|
9938
9930
|
return (a && a !== e ? mn(wc(e, n), a) : wc(e, n)).reduce(
|
|
9939
9931
|
(f, d) => (n[d].resources.forEach((h) => {
|
|
9940
9932
|
if (h.permissions.filter(({ checked: _ }) => _).length === 0)
|
|
@@ -10898,7 +10890,7 @@ const kg = Vt({
|
|
|
10898
10890
|
...a,
|
|
10899
10891
|
path: `${f.path}/${a.name}`
|
|
10900
10892
|
},
|
|
10901
|
-
...f != null && f.children ? f
|
|
10893
|
+
...f != null && f.children ? f.children : []
|
|
10902
10894
|
],
|
|
10903
10895
|
flags: {
|
|
10904
10896
|
...f.flags,
|
|
@@ -10911,7 +10903,7 @@ const kg = Vt({
|
|
|
10911
10903
|
...a,
|
|
10912
10904
|
path: `${f.path}/${a.name}`
|
|
10913
10905
|
},
|
|
10914
|
-
...f != null && f.children ? f
|
|
10906
|
+
...f != null && f.children ? f.children : []
|
|
10915
10907
|
],
|
|
10916
10908
|
flags: {
|
|
10917
10909
|
...f.flags,
|
|
@@ -10921,7 +10913,7 @@ const kg = Vt({
|
|
|
10921
10913
|
...c,
|
|
10922
10914
|
children: d
|
|
10923
10915
|
})), n;
|
|
10924
|
-
}), e.addCase(fi.rejected, (
|
|
10916
|
+
}), e.addCase(fi.rejected, () => {
|
|
10925
10917
|
Cn.next({
|
|
10926
10918
|
message: "Error moving file",
|
|
10927
10919
|
kind: "danger"
|
|
@@ -11471,7 +11463,7 @@ function NA(e) {
|
|
|
11471
11463
|
ext: e.split(".")[e.split(".").length - 1]
|
|
11472
11464
|
};
|
|
11473
11465
|
}
|
|
11474
|
-
const zI = Q("explorer/
|
|
11466
|
+
const zI = Q("explorer/uploadFileAndGetResponse", async (e) => {
|
|
11475
11467
|
const n = e.type.includes("image/") ? "$rawPict=true" : "$binary=true";
|
|
11476
11468
|
try {
|
|
11477
11469
|
const t = await fetch(`/rest/$upload?${n}`, {
|
|
@@ -13460,9 +13452,7 @@ const QA = {
|
|
|
13460
13452
|
if (!Ae.isEmpty(a))
|
|
13461
13453
|
return a;
|
|
13462
13454
|
try {
|
|
13463
|
-
const c = await (await fetch(
|
|
13464
|
-
`${i}/build/index.json?t=${Date.now()}`
|
|
13465
|
-
)).json();
|
|
13455
|
+
const c = await (await fetch(`${i}/build/index.json?t=${Date.now()}`)).json();
|
|
13466
13456
|
return n(aP(c)), c;
|
|
13467
13457
|
} catch {
|
|
13468
13458
|
return [];
|