@ws-ui/store 0.2.0-beta.20240711 → 0.2.0-beta.20240712.1
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/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +32 -17
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -13575,7 +13575,7 @@ const ZA = {
|
|
|
13575
13575
|
c
|
|
13576
13576
|
]
|
|
13577
13577
|
};
|
|
13578
|
-
d.push(...p[e.type][c.namespace]), await cr(p);
|
|
13578
|
+
d.push(...p[e.type][c.namespace]), await cr(p, e.type);
|
|
13579
13579
|
} else
|
|
13580
13580
|
(((s = (a = i.root.tabs.find(
|
|
13581
13581
|
xn("path", e.path)
|
|
@@ -13601,10 +13601,15 @@ const ZA = {
|
|
|
13601
13601
|
return p = p.map((h) => h.id === e.id ? {
|
|
13602
13602
|
...h,
|
|
13603
13603
|
[e.property]: e.value
|
|
13604
|
-
} : h), f && await cr(
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13604
|
+
} : h), f && await cr(
|
|
13605
|
+
{
|
|
13606
|
+
...c.sharedDatasources.sources,
|
|
13607
|
+
[i]: {
|
|
13608
|
+
[e.namespace]: p
|
|
13609
|
+
}
|
|
13610
|
+
},
|
|
13611
|
+
i
|
|
13612
|
+
), {
|
|
13608
13613
|
list: p,
|
|
13609
13614
|
path: e.path,
|
|
13610
13615
|
namespace: e.namespace
|
|
@@ -13682,10 +13687,15 @@ const ZA = {
|
|
|
13682
13687
|
is_shared: s
|
|
13683
13688
|
});
|
|
13684
13689
|
}
|
|
13685
|
-
return s && await cr(
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13690
|
+
return s && await cr(
|
|
13691
|
+
{
|
|
13692
|
+
...a.sharedDatasources.sources,
|
|
13693
|
+
[e.type]: {
|
|
13694
|
+
[e.namespace]: f
|
|
13695
|
+
}
|
|
13696
|
+
},
|
|
13697
|
+
e.type
|
|
13698
|
+
), {
|
|
13689
13699
|
list: f,
|
|
13690
13700
|
path: e.path,
|
|
13691
13701
|
namespace: e.namespace
|
|
@@ -13701,10 +13711,15 @@ const ZA = {
|
|
|
13701
13711
|
async (e, { getState: n, rejectWithValue: t }) => {
|
|
13702
13712
|
try {
|
|
13703
13713
|
const a = n(), s = !!e.namespace, i = e.namespace || e.path, f = af(e.path, a, e.type)[i].filter(Sw(e.id));
|
|
13704
|
-
return s && await cr(
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13714
|
+
return s && await cr(
|
|
13715
|
+
{
|
|
13716
|
+
...a.sharedDatasources.sources,
|
|
13717
|
+
[e.type]: {
|
|
13718
|
+
[e.namespace]: f
|
|
13719
|
+
}
|
|
13720
|
+
},
|
|
13721
|
+
e.type
|
|
13722
|
+
), {
|
|
13708
13723
|
list: f,
|
|
13709
13724
|
path: e.path,
|
|
13710
13725
|
namespace: e.namespace
|
|
@@ -14739,7 +14754,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14739
14754
|
s.sources[n][e.namespace] ? s.sources[n][e.namespace].push(e) : s.sources[n][e.namespace] = [e];
|
|
14740
14755
|
else
|
|
14741
14756
|
return t("Namespace is required");
|
|
14742
|
-
return await cr(s.sources), s.sources;
|
|
14757
|
+
return await cr(s.sources, n), s.sources;
|
|
14743
14758
|
} catch {
|
|
14744
14759
|
return t("Error while saving the shared datasources");
|
|
14745
14760
|
}
|
|
@@ -14760,7 +14775,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14760
14775
|
);
|
|
14761
14776
|
else
|
|
14762
14777
|
return n("Namespace not found");
|
|
14763
|
-
return await cr(a.sources), a.sources;
|
|
14778
|
+
return await cr(a.sources, i), a.sources;
|
|
14764
14779
|
} catch {
|
|
14765
14780
|
return n("Error while saving the shared datasources");
|
|
14766
14781
|
}
|
|
@@ -14785,7 +14800,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14785
14800
|
}
|
|
14786
14801
|
};
|
|
14787
14802
|
}
|
|
14788
|
-
return await cr(a.sources), a.sources;
|
|
14803
|
+
return await cr(a.sources, e.type), a.sources;
|
|
14789
14804
|
} catch {
|
|
14790
14805
|
return n("Error while saving the shared datasources");
|
|
14791
14806
|
}
|
|
@@ -14805,7 +14820,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14805
14820
|
else
|
|
14806
14821
|
return n("Namespace not found");
|
|
14807
14822
|
}
|
|
14808
|
-
return await cr(a.sources), a;
|
|
14823
|
+
return await cr(a.sources, i), a;
|
|
14809
14824
|
} catch {
|
|
14810
14825
|
return n("Error while saving the shared datasources");
|
|
14811
14826
|
}
|