@opentiny/tiny-engine-plugin-page 2.2.0-rc.1 → 2.2.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.
Files changed (2) hide show
  1. package/dist/index.js +27 -30
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import "./style.css";
2
- import { ref as K, watchEffect as Pe, resolveComponent as f, openBlock as v, createBlock as A, computed as $, createElementBlock as M, createVNode as p, withCtx as S, createElementVNode as R, reactive as le, createTextVNode as de, createCommentVNode as L, resolveDynamicComponent as Ke, Fragment as oe, renderList as ve, normalizeClass as be, toDisplayString as ue, renderSlot as st, onMounted as rt, onUnmounted as Ge, provide as lt, inject as ct } from "vue";
3
- import { getMetaApi as q, META_SERVICE as j, usePage as ee, useBlock as it, useModal as se, getMergeMeta as Ae, useNotify as G, useCanvas as re, getMergeRegistry as We, useLayout as De, useMessage as he, useHelp as gt, getOptions as Me, useBreadcrumb as dt, HOOK_NAME as ut } from "@opentiny/tiny-engine-meta-register";
4
- import { BlockHistoryList as pt, MetaCodeEditor as mt, LifeCycles as ft, PluginSetting as Xe, SvgButton as Ce, ButtonGroup as ze, PluginPanel as Pt } from "@opentiny/tiny-engine-common";
2
+ import { ref as K, watchEffect as Pe, resolveComponent as f, createBlock as A, openBlock as v, computed as $, createElementBlock as M, createVNode as p, createElementVNode as R, withCtx as S, reactive as le, createCommentVNode as L, resolveDynamicComponent as Ke, createTextVNode as de, Fragment as oe, renderList as ve, normalizeClass as be, renderSlot as st, toDisplayString as ue, onMounted as rt, onUnmounted as Ge, provide as lt, inject as ct } from "vue";
3
+ import { getMetaApi as q, META_SERVICE as j, usePage as ee, useBlock as it, useModal as se, getMergeMeta as Ae, useNotify as G, useCanvas as re, getMergeRegistry as We, useLayout as De, useMessage as he, useHelp as gt, useBreadcrumb as dt, getOptions as Me, HOOK_NAME as ut } from "@opentiny/tiny-engine-meta-register";
4
+ import { BlockHistoryList as pt, MetaCodeEditor as mt, ButtonGroup as Xe, SvgButton as Ce, PluginSetting as ze, LifeCycles as ft, PluginPanel as Pt } from "@opentiny/tiny-engine-common";
5
5
  import { isEqual as pe, extend as me } from "@opentiny/vue-renderless/common/object";
6
- import { Checkbox as we, Button as Qe, Collapse as ke, CollapseItem as Te, Input as Ye, Search as yt, Popover as _t, Form as Dt, FormItem as ht, Select as St, Radio as vt } from "@opentiny/vue";
6
+ import { Checkbox as we, CollapseItem as ke, Collapse as Te, Button as Qe, Input as Ye, Popover as yt, Search as _t, Radio as Dt, Select as ht, FormItem as St, Form as vt } from "@opentiny/vue";
7
7
  import { constants as Fe } from "@opentiny/tiny-engine-utils";
8
8
  import { isVsCodeEnv as Ze } from "@opentiny/tiny-engine-common/js/environments";
9
9
  import { handlePageUpdate as $e } from "@opentiny/tiny-engine-common/js/http";
10
10
  import { generatePage as bt, generateRouter as Ct } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
11
11
  import { previewPage as Nt } from "@opentiny/tiny-engine-common/js/preview";
12
12
  import It from "@opentiny/vue-renderless/common/deps/throttle";
13
- import { IconSearch as wt, IconFolderOpened as kt, IconFolderClosed as Tt } from "@opentiny/vue-icon";
13
+ import { IconSearch as wt, IconFolderClosed as kt, IconFolderOpened as Tt } from "@opentiny/vue-icon";
14
14
  import { getCanvasStatus as et } from "@opentiny/tiny-engine-common/js/canvas";
15
- import { REGEXP_PAGE_NAME as Ft, REGEXP_ROUTE as He, REGEXP_FOLDER_NAME as Ot } from "@opentiny/tiny-engine-common/js/verification";
15
+ import { REGEXP_ROUTE as He, REGEXP_FOLDER_NAME as Ft, REGEXP_PAGE_NAME as Ot } from "@opentiny/tiny-engine-common/js/verification";
16
16
  const Et = (t) => q(j.Http).get(`/app-center/api/pages/list/${t}`), Oe = (t) => q(j.Http).get(`/app-center/api/pages/detail/${t}`), xt = (t) => q(j.Http).get(`/app-center/api/pages/delete/${t}`), Rt = (t) => q(j.Http).post("/app-center/api/pages/create", t), Vt = (t, a) => q(j.Http).post(`/app-center/api/pages/update/${t}`, a), Bt = (t) => q(j.Http).post("/app-center/api/pages/copy", t), tt = (t) => q(j.Http).get(`/app-center/api/pages/histories?page=${t}`), Gt = (t) => q(j.Http).post("/app-center/api/pageHistory/restore", t), At = (t) => q(j.Http).get(`/app-center/api/pages/histories/${t}`), Mt = (t, a) => q(j.Http).post(`/app-center/api/pages/update/${t}`, a), ce = {
17
17
  fetchPageList: Et,
18
18
  fetchPageDetail: Oe,
@@ -202,14 +202,14 @@ const Kt = /* @__PURE__ */ te(qt, [["render", Jt], ["__scopeId", "data-v-b78f330
202
202
  }, Xt = {
203
203
  components: {
204
204
  TinyButton: Qe,
205
- TinyCollapse: ke,
206
- TinyCollapseItem: Te,
205
+ TinyCollapse: Te,
206
+ TinyCollapseItem: ke,
207
207
  PageInputOutput: Kt,
208
208
  LifeCycles: ft,
209
209
  PageHistory: Lt,
210
- PluginSetting: Xe,
210
+ PluginSetting: ze,
211
211
  SvgButton: Ce,
212
- ButtonGroup: ze
212
+ ButtonGroup: Xe
213
213
  },
214
214
  props: {
215
215
  isFolder: {
@@ -530,11 +530,11 @@ const Le = () => {
530
530
  }, $t = {
531
531
  components: {
532
532
  TinyButton: Qe,
533
- TinyCollapse: ke,
534
- TinyCollapseItem: Te,
535
- PluginSetting: Xe,
533
+ TinyCollapse: Te,
534
+ TinyCollapseItem: ke,
535
+ PluginSetting: ze,
536
536
  SvgButton: Ce,
537
- ButtonGroup: ze
537
+ ButtonGroup: Xe
538
538
  },
539
539
  props: {
540
540
  isFolder: {
@@ -814,10 +814,7 @@ const aa = /* @__PURE__ */ te($t, [["render", ta], ["__scopeId", "data-v-b0cf4b3
814
814
  }), P = {
815
815
  node: 1,
816
816
  // └
817
- layer: 2,
818
- // │
819
- layerNode: 3
820
- // ├
817
+ layer: 2
821
818
  }, _ = $(() => {
822
819
  const i = {}, D = u.value;
823
820
  for (const [k, N] of D.entries())
@@ -902,11 +899,11 @@ const aa = /* @__PURE__ */ te($t, [["render", ta], ["__scopeId", "data-v-b0cf4b3
902
899
  PAGE_STATUS: pa
903
900
  } = Fe, ma = {
904
901
  components: {
905
- TinySearch: yt,
906
- TinyCollapse: ke,
907
- TinyCollapseItem: Te,
902
+ TinySearch: _t,
903
+ TinyCollapse: Te,
904
+ TinyCollapseItem: ke,
908
905
  TinyIconSearch: wt(),
909
- TinyPopover: _t,
906
+ TinyPopover: yt,
910
907
  DraggableTree: ua,
911
908
  SvgButton: Ce
912
909
  },
@@ -1109,8 +1106,8 @@ const aa = /* @__PURE__ */ te($t, [["render", ta], ["__scopeId", "data-v-b0cf4b3
1109
1106
  switchPage: D,
1110
1107
  pageSettingState: r,
1111
1108
  setPopoverRef: V,
1112
- IconFolderOpened: kt(),
1113
- IconFolderClosed: Tt(),
1109
+ IconFolderOpened: Tt(),
1110
+ IconFolderClosed: kt(),
1114
1111
  getRowOperations: T,
1115
1112
  handleClickRow: ie,
1116
1113
  handleMoveNode: H,
@@ -1641,12 +1638,12 @@ function Ya(t, a, n, e, o, s) {
1641
1638
  }
1642
1639
  const Za = /* @__PURE__ */ te(Wa, [["render", Ya], ["__scopeId", "data-v-dc244104"]]), $a = {
1643
1640
  components: {
1644
- TinyForm: Dt,
1645
- TinyFormItem: ht,
1641
+ TinyForm: vt,
1642
+ TinyFormItem: St,
1646
1643
  TinyInput: Ye,
1647
- TinySelect: St,
1644
+ TinySelect: ht,
1648
1645
  PageHome: Za,
1649
- TinyRadio: vt,
1646
+ TinyRadio: Dt,
1650
1647
  TinyCheckbox: we
1651
1648
  },
1652
1649
  props: {
@@ -1689,7 +1686,7 @@ const Za = /* @__PURE__ */ te(Wa, [["render", Ya], ["__scopeId", "data-v-dc24410
1689
1686
  required: !0,
1690
1687
  message: "请输入页面 ID"
1691
1688
  }, {
1692
- pattern: Ft,
1689
+ pattern: Ot,
1693
1690
  message: "只允许包含英文字母,且为大写开头驼峰格式, 如DemoPage"
1694
1691
  }, {
1695
1692
  min: 3,
@@ -1708,7 +1705,7 @@ const Za = /* @__PURE__ */ te(Wa, [["render", Ya], ["__scopeId", "data-v-dc24410
1708
1705
  required: !0,
1709
1706
  message: "请输入页面文件夹 ID"
1710
1707
  }, {
1711
- pattern: Ot,
1708
+ pattern: Ft,
1712
1709
  message: "只允许包含英文字母、数字、下横线_、中横线-, 且以英文字母开头"
1713
1710
  }, {
1714
1711
  min: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-plugin-page",
3
- "version": "2.2.0-rc.1",
3
+ "version": "2.2.1",
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.2.0-rc.1",
29
- "@opentiny/tiny-engine-meta-register": "2.2.0-rc.1",
30
- "@opentiny/tiny-engine-utils": "2.2.0-rc.1"
28
+ "@opentiny/tiny-engine-common": "2.2.1",
29
+ "@opentiny/tiny-engine-meta-register": "2.2.0",
30
+ "@opentiny/tiny-engine-utils": "2.2.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.2.0-rc.1",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.2.0",
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.14.0",
42
42
  "vue": "^3.4.15"
43
43
  },
44
- "gitHead": "b5789c51f4bd4c3dd2a48bd7a2919eb5a6564a79"
44
+ "gitHead": "589fcf9717f4ba565ded2f2eb520d5066a53ab64"
45
45
  }