@ws-ui/store 0.0.6 → 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/dist/index.es.js CHANGED
@@ -21664,35 +21664,39 @@ const d5 = xe(
21664
21664
  }
21665
21665
  throw n;
21666
21666
  }
21667
- }, Gf = xe("explorer/openFile", async ({ file: e, inactive: n }, { getState: r, dispatch: a }) => {
21667
+ }, Gf = xe("explorer/openFile", async ({ file: e, inactive: n, flags: r = {} }, { getState: a, dispatch: i }) => {
21668
21668
  const {
21669
- root: { tabs: i },
21670
- roles: u
21671
- } = r(), c = i.find(({ path: h }) => e.path === h);
21672
- if (c) {
21673
- const h = {
21674
- ...c,
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,
21675
21675
  extra: {
21676
- ...c == null ? void 0 : c.extra,
21676
+ ...f == null ? void 0 : f.extra,
21677
21677
  editor: e.editor
21678
+ },
21679
+ flags: {
21680
+ ...f == null ? void 0 : f.flags,
21681
+ ...r
21678
21682
  }
21679
21683
  };
21680
- return a(En(h)), h;
21684
+ return i(En(m)), m;
21681
21685
  }
21682
21686
  if (e.path.startsWith("Debugger")) {
21683
- const h = r().debugger.sessions.find(
21684
- (m) => `Debugger/${m.threadId}` === e.path
21687
+ const m = a().debugger.sessions.find(
21688
+ (b) => `Debugger/${b.threadId}` === e.path
21685
21689
  );
21686
- if (h) {
21690
+ if (m) {
21687
21691
  const {
21688
- source: { content: m },
21689
- source: b
21690
- } = h.currentStackFrame, E = {
21692
+ source: { content: b },
21693
+ source: E
21694
+ } = m.currentStackFrame, O = {
21691
21695
  name: e.name,
21692
21696
  type: ce.DEBUGGER,
21693
21697
  date: (/* @__PURE__ */ new Date()).toISOString(),
21694
21698
  path: e.path,
21695
- content: m,
21699
+ content: b,
21696
21700
  view: {
21697
21701
  panel: {
21698
21702
  isOpen: !1,
@@ -21700,28 +21704,28 @@ const d5 = xe(
21700
21704
  current: ""
21701
21705
  }
21702
21706
  },
21703
- initialContent: m,
21707
+ initialContent: b,
21704
21708
  flags: {},
21705
21709
  extra: {
21706
- source: b,
21710
+ source: E,
21707
21711
  editor: e.editor
21708
21712
  }
21709
21713
  };
21710
- return a(En(E)), E;
21714
+ return i(En(O)), O;
21711
21715
  }
21712
21716
  }
21713
- const f = await ep(e);
21714
- return e.path === Br && !u.flags.touched ? a(
21717
+ const p = await ep(e);
21718
+ return e.path === Br && !c.flags.touched ? i(
21715
21719
  vT({
21716
- content: f.content,
21717
- date: f.date
21720
+ content: p.content,
21721
+ date: p.date
21718
21722
  })
21719
- ) : e.path === ks && a(
21723
+ ) : e.path === ks && i(
21720
21724
  Q_({
21721
21725
  path: "project",
21722
- value: f.content
21726
+ value: p.content
21723
21727
  })
21724
- ), a((n ? K3 : En)(f)), f;
21728
+ ), i((n ? K3 : En)(p)), p;
21725
21729
  }), _T = xe("explorer/openFileAtLine", async ({ file: e }, { getState: n, dispatch: r }) => {
21726
21730
  const { tabs: a } = n().root, i = a.find(({ path: c }) => e.path === c);
21727
21731
  if (i) {
@@ -23750,6 +23754,9 @@ const I3 = {
23750
23754
  a.extra = {
23751
23755
  ...a.extra,
23752
23756
  ...r.extra
23757
+ }, a.flags = {
23758
+ ...a.flags || {},
23759
+ ...r.flags || {}
23753
23760
  };
23754
23761
  },
23755
23762
  setContent(e, n) {