@ws-ui/store 0.0.5 → 0.0.7
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 +3 -3
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +37 -27
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/thunks.d.ts +8 -0
- package/package.json +55 -55
package/dist/index.es.js
CHANGED
|
@@ -18951,7 +18951,10 @@ const $j = new Vx(), S4 = () => Ax(), ri = ZN, Yx = de(
|
|
|
18951
18951
|
}
|
|
18952
18952
|
}), Lj = de(
|
|
18953
18953
|
(e) => e,
|
|
18954
|
-
(e) =>
|
|
18954
|
+
(e) => {
|
|
18955
|
+
var n;
|
|
18956
|
+
return ((n = e.sharedDatasources) == null ? void 0 : n.sources) || [];
|
|
18957
|
+
}
|
|
18955
18958
|
), P4 = (e, n, r, a) => de(
|
|
18956
18959
|
jj(e),
|
|
18957
18960
|
Lj,
|
|
@@ -21661,35 +21664,39 @@ const d5 = xe(
|
|
|
21661
21664
|
}
|
|
21662
21665
|
throw n;
|
|
21663
21666
|
}
|
|
21664
|
-
}, Gf = xe("explorer/openFile", async ({ file: e, inactive: n }, { getState:
|
|
21667
|
+
}, Gf = xe("explorer/openFile", async ({ file: e, inactive: n, flags: r = {} }, { getState: a, dispatch: i }) => {
|
|
21665
21668
|
const {
|
|
21666
|
-
root: { tabs:
|
|
21667
|
-
roles:
|
|
21668
|
-
} =
|
|
21669
|
-
if (
|
|
21670
|
-
const
|
|
21671
|
-
...
|
|
21669
|
+
root: { tabs: u },
|
|
21670
|
+
roles: c
|
|
21671
|
+
} = a(), f = u.find(({ path: m }) => e.path === m);
|
|
21672
|
+
if (f) {
|
|
21673
|
+
const m = {
|
|
21674
|
+
...f,
|
|
21672
21675
|
extra: {
|
|
21673
|
-
...
|
|
21676
|
+
...f == null ? void 0 : f.extra,
|
|
21674
21677
|
editor: e.editor
|
|
21678
|
+
},
|
|
21679
|
+
flags: {
|
|
21680
|
+
...f == null ? void 0 : f.flags,
|
|
21681
|
+
...r
|
|
21675
21682
|
}
|
|
21676
21683
|
};
|
|
21677
|
-
return
|
|
21684
|
+
return i(En(m)), m;
|
|
21678
21685
|
}
|
|
21679
21686
|
if (e.path.startsWith("Debugger")) {
|
|
21680
|
-
const
|
|
21681
|
-
(
|
|
21687
|
+
const m = a().debugger.sessions.find(
|
|
21688
|
+
(b) => `Debugger/${b.threadId}` === e.path
|
|
21682
21689
|
);
|
|
21683
|
-
if (
|
|
21690
|
+
if (m) {
|
|
21684
21691
|
const {
|
|
21685
|
-
source: { content:
|
|
21686
|
-
source:
|
|
21687
|
-
} =
|
|
21692
|
+
source: { content: b },
|
|
21693
|
+
source: E
|
|
21694
|
+
} = m.currentStackFrame, O = {
|
|
21688
21695
|
name: e.name,
|
|
21689
21696
|
type: ce.DEBUGGER,
|
|
21690
21697
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
21691
21698
|
path: e.path,
|
|
21692
|
-
content:
|
|
21699
|
+
content: b,
|
|
21693
21700
|
view: {
|
|
21694
21701
|
panel: {
|
|
21695
21702
|
isOpen: !1,
|
|
@@ -21697,28 +21704,28 @@ const d5 = xe(
|
|
|
21697
21704
|
current: ""
|
|
21698
21705
|
}
|
|
21699
21706
|
},
|
|
21700
|
-
initialContent:
|
|
21707
|
+
initialContent: b,
|
|
21701
21708
|
flags: {},
|
|
21702
21709
|
extra: {
|
|
21703
|
-
source:
|
|
21710
|
+
source: E,
|
|
21704
21711
|
editor: e.editor
|
|
21705
21712
|
}
|
|
21706
21713
|
};
|
|
21707
|
-
return
|
|
21714
|
+
return i(En(O)), O;
|
|
21708
21715
|
}
|
|
21709
21716
|
}
|
|
21710
|
-
const
|
|
21711
|
-
return e.path === Br && !
|
|
21717
|
+
const p = await ep(e);
|
|
21718
|
+
return e.path === Br && !c.flags.touched ? i(
|
|
21712
21719
|
vT({
|
|
21713
|
-
content:
|
|
21714
|
-
date:
|
|
21720
|
+
content: p.content,
|
|
21721
|
+
date: p.date
|
|
21715
21722
|
})
|
|
21716
|
-
) : e.path === ks &&
|
|
21723
|
+
) : e.path === ks && i(
|
|
21717
21724
|
Q_({
|
|
21718
21725
|
path: "project",
|
|
21719
|
-
value:
|
|
21726
|
+
value: p.content
|
|
21720
21727
|
})
|
|
21721
|
-
),
|
|
21728
|
+
), i((n ? K3 : En)(p)), p;
|
|
21722
21729
|
}), _T = xe("explorer/openFileAtLine", async ({ file: e }, { getState: n, dispatch: r }) => {
|
|
21723
21730
|
const { tabs: a } = n().root, i = a.find(({ path: c }) => e.path === c);
|
|
21724
21731
|
if (i) {
|
|
@@ -23747,6 +23754,9 @@ const I3 = {
|
|
|
23747
23754
|
a.extra = {
|
|
23748
23755
|
...a.extra,
|
|
23749
23756
|
...r.extra
|
|
23757
|
+
}, a.flags = {
|
|
23758
|
+
...a.flags || {},
|
|
23759
|
+
...r.flags || {}
|
|
23750
23760
|
};
|
|
23751
23761
|
},
|
|
23752
23762
|
setContent(e, n) {
|