@opentiny/tiny-engine-plugin-page 2.5.0-alpha.5 → 2.5.0-alpha.6

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1531,7 +1531,7 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1531
1531
  }, Ha = () => {
1532
1532
  E.currentPageData = {}, E.currentPageDataCopy = {}, E.oldParentId = null, E.defaultPage = null;
1533
1533
  }, La = () => !ge(E.currentPageData, E.currentPageDataCopy), We = (t) => {
1534
- const { ROOT_ID: a } = E, n = { [a]: { id: a } };
1534
+ const { ROOT_ID: a } = E, n = { [a]: { id: a, parentId: "" } };
1535
1535
  return t.forEach((e) => {
1536
1536
  n[e.id] = e;
1537
1537
  }), t.forEach((e) => {
@@ -1551,7 +1551,7 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1551
1551
  g.group === "staticPages" ? n.data.push(y) : e.data.push(y);
1552
1552
  });
1553
1553
  const o = We(n.data), s = We(e.data);
1554
- return E.treeDataMapping = { ...o, ...s }, n.data = o[E.ROOT_ID].children, E.pages = [n, e], E.pages;
1554
+ return E.treeDataMapping = { ...o, ...s }, n.data = o[E.ROOT_ID].children || [], E.pages = [n, e], E.pages;
1555
1555
  }, xe = (t) => {
1556
1556
  if (t === E.ROOT_ID)
1557
1557
  return [];
@@ -1579,7 +1579,7 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1579
1579
  t.currentVm = null, t.hoverVm = null, t.properties = {}, t.pageSchema = null;
1580
1580
  }, lt = (t, a = !1) => {
1581
1581
  if (ja(), t !== 0 && !t) {
1582
- a ? R(M.GlobalService).updateParams({ pageId: "", previewId: "" }) : R(M.GlobalService).updatePageId(""), se().initData({ componentName: Ba.Page }, {}), ne().layoutState.pageStatus = {
1582
+ a ? R(M.GlobalService).updateParams({ pageId: "", previewId: "" }) : R(M.GlobalService).updatePageId(""), se().initData({ componentName: Ba.Page, props: {} }, {}), ne().layoutState.pageStatus = {
1583
1583
  state: "empty",
1584
1584
  data: {}
1585
1585
  };
@@ -1624,7 +1624,7 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1624
1624
  const a = await ce.fetchPageDetail(t.id);
1625
1625
  t.page_content = a.page_content;
1626
1626
  } catch (a) {
1627
- throw t.page_content = {}, new Error(a);
1627
+ throw t.page_content = {}, new Error(String(a));
1628
1628
  }
1629
1629
  }, Xa = (t, a, n, e) => {
1630
1630
  var o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-plugin-page",
3
- "version": "2.5.0-alpha.5",
3
+ "version": "2.5.0-alpha.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,12 +25,12 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.5.0-alpha.5",
29
- "@opentiny/tiny-engine-meta-register": "2.5.0-alpha.5",
30
- "@opentiny/tiny-engine-utils": "2.5.0-alpha.5"
28
+ "@opentiny/tiny-engine-common": "2.5.0-alpha.6",
29
+ "@opentiny/tiny-engine-meta-register": "2.5.0-alpha.6",
30
+ "@opentiny/tiny-engine-utils": "2.5.0-alpha.6"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0-alpha.5",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0-alpha.6",
34
34
  "@vitejs/plugin-vue": "^5.1.2",
35
35
  "@vitejs/plugin-vue-jsx": "^4.0.1",
36
36
  "vite": "^5.4.2"
@@ -41,5 +41,5 @@
41
41
  "@opentiny/vue-renderless": "^3.20.0",
42
42
  "vue": "^3.4.15"
43
43
  },
44
- "gitHead": "3d995e56ed6003186854ecf5c6315333d339498a"
44
+ "gitHead": "c9f5d8bfe427807cd0ef141a56b2e9c5183b0a20"
45
45
  }