@ws-ui/store 0.2.8 → 0.2.9

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
@@ -6877,7 +6877,7 @@ const Zr = () => ({
6877
6877
  `
6878
6878
  }),
6879
6879
  collection: ({ name: e, qodly: n }) => ({
6880
- name: e,
6880
+ name: `${e}Selection`,
6881
6881
  content: n ? `extends EntitySelection
6882
6882
  ` : `Class extends EntitySelection
6883
6883
  `
@@ -11632,19 +11632,20 @@ const XI = Q(
11632
11632
  }
11633
11633
  }
11634
11634
  ), Ki = async (e, n = {}) => {
11635
+ var t;
11635
11636
  try {
11636
- const t = e.path.split(".").at(-1), a = await Rn({
11637
+ const a = e.path.split(".").at(-1), i = await Rn({
11637
11638
  verb: it.GET_INFO,
11638
11639
  path: e.path,
11639
- content: !0,
11640
- as: z1(t) ? "json" : "text"
11641
- }), i = {
11640
+ content: ((t = e.editor) == null ? void 0 : t.key) !== "editors:img",
11641
+ as: z1(a) ? "json" : "text"
11642
+ }), s = {
11642
11643
  editor: e.editor
11643
- }, s = ec(e.path);
11644
- s === j.METHOD && (i.attributes = Pc(a.content), a.content = ih(a.content, {}));
11645
- const { content: c, date: f, ext: d } = a;
11644
+ }, c = ec(e.path);
11645
+ c === j.METHOD && (s.attributes = Pc(i.content), i.content = ih(i.content, {}));
11646
+ const { content: f, date: d, ext: p } = i;
11646
11647
  return n.confirmed === void 0 && (n.confirmed = !0), {
11647
- date: f,
11648
+ date: d,
11648
11649
  view: {
11649
11650
  panel: {
11650
11651
  isOpen: !1,
@@ -11653,27 +11654,27 @@ const XI = Q(
11653
11654
  }
11654
11655
  },
11655
11656
  flags: {
11656
- enabled: ["WebForm", "MForm"].includes(d),
11657
+ enabled: ["WebForm", "MForm"].includes(p),
11657
11658
  confirmed: n.confirmed
11658
11659
  },
11659
- extra: i,
11660
+ extra: s,
11660
11661
  name: e.name,
11661
11662
  path: e.path,
11662
- type: s,
11663
- initialContent: c,
11664
- content: c,
11663
+ type: c,
11664
+ initialContent: f,
11665
+ content: f,
11665
11666
  history: {
11666
11667
  stack: [],
11667
11668
  active: -1,
11668
11669
  locked: !1
11669
11670
  }
11670
11671
  };
11671
- } catch (t) {
11672
- const { data: a } = t;
11673
- if (a.__ERROR.find((i) => i.errCode === Zu.FILE_NOT_FOUND))
11672
+ } catch (a) {
11673
+ const { data: i } = a;
11674
+ if (i.__ERROR.find((s) => s.errCode === Zu.FILE_NOT_FOUND))
11674
11675
  switch (e.path) {
11675
11676
  case Ot: {
11676
- const i = {
11677
+ const s = {
11677
11678
  permissions: {
11678
11679
  allowed: []
11679
11680
  },
@@ -11691,12 +11692,12 @@ const XI = Q(
11691
11692
  name: "Roles & Privileges",
11692
11693
  path: e.path,
11693
11694
  type: j.ROLES,
11694
- initialContent: i,
11695
- content: i
11695
+ initialContent: s,
11696
+ content: s
11696
11697
  };
11697
11698
  }
11698
11699
  case Ir: {
11699
- const i = {};
11700
+ const s = {};
11700
11701
  return {
11701
11702
  date: (/* @__PURE__ */ new Date()).toISOString(),
11702
11703
  flags: n,
@@ -11708,12 +11709,12 @@ const XI = Q(
11708
11709
  name: "Settings",
11709
11710
  path: e.path,
11710
11711
  type: j.SETTINGS,
11711
- initialContent: i,
11712
- content: i
11712
+ initialContent: s,
11713
+ content: s
11713
11714
  };
11714
11715
  }
11715
11716
  }
11716
- throw t;
11717
+ throw a;
11717
11718
  }
11718
11719
  }, ci = Q(
11719
11720
  "explorer/openFile",
@@ -14448,7 +14449,7 @@ exposed Function ${t.meta.arg.name}()
14448
14449
  `, a.flags = { ...a.flags, touched: !0, confirmed: !0 };
14449
14450
  const i = a.content.split(`
14450
14451
  `);
14451
- a.extra = {
14452
+ a.path.startsWith("Classes/") && (a.type = j.CLASS), a.extra = {
14452
14453
  ...a.extra,
14453
14454
  editor: Qu.Code,
14454
14455
  initialLineInfo: {