@feedmepos/mf-miniprogram-v2 0.2.6-dev.0 → 0.2.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 (25) hide show
  1. package/dist/{App-B8Qhgf0V.js → App-qAELeU_7.js} +2 -2
  2. package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-LE_aKvfg.js +198 -0
  3. package/dist/{BrandFontPicker-BzsoYtYG.js → BrandFontPicker-BZyGrK3D.js} +1 -1
  4. package/dist/{BrandKitView-HqIYrYNt.js → BrandKitView-CzefaEEN.js} +2 -2
  5. package/dist/{ControlPlaneView-BGKGx1gE.js → ControlPlaneView-DoizYxeJ.js} +3733 -3625
  6. package/dist/{EcosystemView-BG3Gba74.js → EcosystemView-C-y5cPOp.js} +3 -3
  7. package/dist/{LegacyWorkspaceEntry-lEMtmdIe.js → LegacyWorkspaceEntry-CADRpDkg.js} +1 -1
  8. package/dist/MobileProjectsView-QBTJVYB9.js +333 -0
  9. package/dist/{ModuleCenterView-BBaQu0Pm.js → ModuleCenterView-B08oZqQw.js} +1 -1
  10. package/dist/{ModuleDetailView-ChrsLmJa.js → ModuleDetailView-lROTkaR7.js} +1 -1
  11. package/dist/{PagesView-CPYtQtsx.js → PagesView-DOG8RSen.js} +1 -1
  12. package/dist/{PortalSettingsView-C60zqwk0.js → PortalSettingsView-BK6kRgtf.js} +4 -4
  13. package/dist/{TemplateCenterView-Da9HzssA.js → TemplateCenterView-niXTXw9y.js} +1 -1
  14. package/dist/{WorkspaceEntryView-DE82gwZH.js → WorkspaceEntryView-DzR8DQC5.js} +1 -1
  15. package/dist/{adminAccess-Cy0P9Hg-.js → adminAccess-CDxAuQ-M.js} +1 -1
  16. package/dist/app.js +11 -11
  17. package/dist/{controlPlane-CDopeXyb.js → controlPlane-DT3t_ftg.js} +17 -17
  18. package/dist/package.json +1 -1
  19. package/dist/{portalContext-IOgByqvZ.js → portalContext-B2pXdNtB.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useBrandKit-C3CGmni1.js → useBrandKit-CQv08nyY.js} +2 -2
  22. package/dist/{useModuleCatalog-B_6PWpER.js → useModuleCatalog-B9HXHA-e.js} +1 -1
  23. package/package.json +1 -1
  24. package/dist/MobileProjectDialog-mNUZfDy7.js +0 -389
  25. package/dist/MobileProjectsView-DW2BNTNc.js +0 -224
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as k, computed as p, ref as l, onMounted as P, onScopeDispose as S, resolveComponent as x, openBlock as o, createElementBlock as n, createElementVNode as s, toDisplayString as d, createCommentVNode as h, Fragment as I, createVNode as A, unref as M } from "vue";
2
2
  import { useRoute as N } from "vue-router";
3
3
  import { e as _, a as $ } from "./index-CIJWcl_6.js";
4
- import { l as B, e as E } from "./controlPlane-CDopeXyb.js";
4
+ import { l as B, e as E } from "./controlPlane-DT3t_ftg.js";
5
5
  import { useCoreStore as F } from "@feedmepos/mf-common";
6
- import { u as U } from "./portalContext-IOgByqvZ.js";
6
+ import { u as U } from "./portalContext-B2pXdNtB.js";
7
7
  import { l as V } from "./portalNavigation-DKCfwTH8.js";
8
8
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const L = { class: "portal-page" }, R = { class: "portal-page-inner settings-page" }, T = { class: "portal-page-heading" }, D = ["href"], H = {
@@ -23,10 +23,10 @@ const L = { class: "portal-page" }, R = { class: "portal-page-inner settings-pag
23
23
  country: c.currentCountry.value ?? null,
24
24
  restaurantId: ((t = c.currentRestaurant.value) == null ? void 0 : t._id) ?? null
25
25
  }),
26
- _("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
26
+ _("fmmf:prod") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
27
27
  ).href;
28
28
  }
29
- ), m = l(null), g = l(!0), r = l(null), v = l(!1), f = $(_("fmmf:dev")).apiOrigin, C = p(() => `${f}/metadata/${a.businessId.value}/pwa-512x512.png`), b = p(() => {
29
+ ), m = l(null), g = l(!0), r = l(null), v = l(!1), f = $(_("fmmf:prod")).apiOrigin, C = p(() => `${f}/metadata/${a.businessId.value}/pwa-512x512.png`), b = p(() => {
30
30
  var t;
31
31
  return (t = B()) == null ? void 0 : t.thumbnail;
32
32
  }), i = new AbortController();
@@ -2,7 +2,7 @@ import { defineComponent as B, ref as o, computed as K, resolveComponent as F, o
2
2
  import { a as k } from "./routes-CeuodIgg.js";
3
3
  import { useDialog as Z } from "@feedmepos/ui-library";
4
4
  import { useRouter as ee } from "vue-router";
5
- import { c as C, e as T } from "./controlPlane-CDopeXyb.js";
5
+ import { c as C, e as T } from "./controlPlane-DT3t_ftg.js";
6
6
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const te = ["href"], ae = {
8
8
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, watchEffect as a, openBlock as n, createElementBlock as p } from "vue";
2
2
  import { useRoute as u, useRouter as i } from "vue-router";
3
- import { u as l } from "./portalContext-IOgByqvZ.js";
3
+ import { u as l } from "./portalContext-B2pXdNtB.js";
4
4
  import { w as m, a as f } from "./portalNavigation-DKCfwTH8.js";
5
5
  const _ = {
6
6
  class: "portal-loading",
@@ -1,6 +1,6 @@
1
1
  import { a as o } from "./routes-CeuodIgg.js";
2
2
  import { ref as i } from "vue";
3
- import { c as u } from "./controlPlane-CDopeXyb.js";
3
+ import { c as u } from "./controlPlane-DT3t_ftg.js";
4
4
  function s(t, e) {
5
5
  if (typeof window > "u") return e;
6
6
  try {
package/dist/app.js CHANGED
@@ -4,42 +4,42 @@ const o = [
4
4
  path: "/platforms/mobile",
5
5
  name: "miniprogram-v2-mobile-projects",
6
6
  meta: { title: "Mobile" },
7
- component: () => import("./MobileProjectsView-DW2BNTNc.js")
7
+ component: () => import("./MobileProjectsView-QBTJVYB9.js")
8
8
  },
9
9
  {
10
10
  path: "/",
11
11
  name: "miniprogram-v2-ecosystem",
12
12
  meta: { title: "Ecosystem" },
13
13
  beforeEnter: (e) => ["workspace", "releases", "sessions"].includes(String(e.query.view)) ? { name: "miniprogram-v2-control", query: e.query } : !0,
14
- component: () => import("./EcosystemView-BG3Gba74.js")
14
+ component: () => import("./EcosystemView-C-y5cPOp.js")
15
15
  },
16
16
  {
17
17
  path: "/workspace",
18
18
  name: "miniprogram-v2-control",
19
- component: () => import("./WorkspaceEntryView-DE82gwZH.js")
19
+ component: () => import("./WorkspaceEntryView-DzR8DQC5.js")
20
20
  },
21
21
  {
22
22
  path: "/p/:projectId/:view(workspace|releases|sessions)?",
23
23
  name: "miniprogram-v2-project",
24
- component: () => import("./ControlPlaneView-BGKGx1gE.js")
24
+ component: () => import("./ControlPlaneView-DoizYxeJ.js")
25
25
  },
26
26
  {
27
27
  path: "/brand-kit",
28
28
  name: "miniprogram-v2-brand-kit",
29
29
  meta: { title: "Brand Kit" },
30
- component: () => import("./BrandKitView-HqIYrYNt.js")
30
+ component: () => import("./BrandKitView-CzefaEEN.js")
31
31
  },
32
32
  {
33
33
  path: "/pages",
34
34
  name: "miniprogram-v2-pages",
35
35
  meta: { title: "Pages" },
36
- component: () => import("./PagesView-CPYtQtsx.js")
36
+ component: () => import("./PagesView-DOG8RSen.js")
37
37
  },
38
38
  {
39
39
  path: "/settings",
40
40
  name: "miniprogram-v2-settings",
41
41
  meta: { title: "Settings" },
42
- component: () => import("./PortalSettingsView-C60zqwk0.js")
42
+ component: () => import("./PortalSettingsView-BK6kRgtf.js")
43
43
  },
44
44
  ...["tablet", "kiosk"].map((e) => ({
45
45
  path: `/platforms/${e}`,
@@ -53,7 +53,7 @@ const o = [
53
53
  path: "/modules",
54
54
  name: "miniprogram-v2-module-center",
55
55
  meta: { title: "Module library" },
56
- component: () => import("./ModuleCenterView-BBaQu0Pm.js")
56
+ component: () => import("./ModuleCenterView-B08oZqQw.js")
57
57
  },
58
58
  {
59
59
  // Keyed by the module's directory name, which is what the catalog, the
@@ -61,7 +61,7 @@ const o = [
61
61
  path: "/modules/:name",
62
62
  name: "miniprogram-v2-module-detail",
63
63
  meta: { title: "Module library" },
64
- component: () => import("./ModuleDetailView-ChrsLmJa.js")
64
+ component: () => import("./ModuleDetailView-lROTkaR7.js")
65
65
  },
66
66
  {
67
67
  // Internal-only: linked from the main nav (App.vue), but only once
@@ -72,13 +72,13 @@ const o = [
72
72
  path: "/internal/template-center",
73
73
  name: "miniprogram-v2-template-center",
74
74
  meta: { title: "Template library", requiresAdmin: !0 },
75
- component: () => import("./TemplateCenterView-Da9HzssA.js")
75
+ component: () => import("./TemplateCenterView-niXTXw9y.js")
76
76
  },
77
77
  {
78
78
  path: "/:pathMatch(.*)*",
79
79
  redirect: (e) => ({ name: "miniprogram-v2-ecosystem", query: e.query, params: {} })
80
80
  }
81
- ], r = {}, a = t(() => import("./App-B8Qhgf0V.js")), i = t(() => import("./LegacyWorkspaceEntry-lEMtmdIe.js"));
81
+ ], r = {}, a = t(() => import("./App-qAELeU_7.js")), i = t(() => import("./LegacyWorkspaceEntry-CADRpDkg.js"));
82
82
  export {
83
83
  a as FmApp,
84
84
  i as MiniprogramWorkspace,
@@ -1,5 +1,5 @@
1
- import { a as f, e as d, D as m } from "./index-CIJWcl_6.js";
2
- import { useCoreStore as a, FeedMeAuth as p } from "@feedmepos/mf-common";
1
+ import { a as f, e as d, D as p } from "./index-CIJWcl_6.js";
2
+ import { useCoreStore as a, FeedMeAuth as m } from "@feedmepos/mf-common";
3
3
  const h = [
4
4
  "AE",
5
5
  "AU",
@@ -42,11 +42,11 @@ function k(e, n, t) {
42
42
  function B(e) {
43
43
  return e.replace(/\/+$/, "");
44
44
  }
45
- function v() {
46
- return B("https://miniprogram-v2-api.feedmedev.vip");
45
+ function y() {
46
+ return B("https://miniprogram-v2-api.feedme.vip");
47
47
  }
48
- function y(e) {
49
- const n = v();
48
+ function v(e) {
49
+ const n = y();
50
50
  return n ? `${n}${e.startsWith("/") ? e : `/${e}`}` : e;
51
51
  }
52
52
  function i() {
@@ -54,7 +54,7 @@ function i() {
54
54
  }
55
55
  function u() {
56
56
  var e;
57
- return ((e = i()) == null ? void 0 : e._id) ?? m;
57
+ return ((e = i()) == null ? void 0 : e._id) ?? p;
58
58
  }
59
59
  function C() {
60
60
  var e;
@@ -69,7 +69,7 @@ function $() {
69
69
  }
70
70
  function x() {
71
71
  var r;
72
- const e = (r = C()) == null ? void 0 : r.trim().toLowerCase(), n = e && /^[a-z0-9-]+$/.test(e) ? e : u(), t = f(d("fmmf:dev")).liveDomain;
72
+ const e = (r = C()) == null ? void 0 : r.trim().toLowerCase(), n = e && /^[a-z0-9-]+$/.test(e) ? e : u(), t = f(d("fmmf:prod")).liveDomain;
73
73
  return `https://${n}.${t}`;
74
74
  }
75
75
  function S(e) {
@@ -85,7 +85,7 @@ class T extends Error {
85
85
  }
86
86
  function c() {
87
87
  var n;
88
- return ((n = a().sessionUser.value) == null ? void 0 : n.token) || p.token || "";
88
+ return ((n = a().sessionUser.value) == null ? void 0 : n.token) || m.token || "";
89
89
  }
90
90
  async function E() {
91
91
  let e = c();
@@ -105,7 +105,7 @@ async function l(e, n = {}) {
105
105
  n.body && !t.has("Content-Type") && t.set("Content-Type", "application/json");
106
106
  const r = new AbortController(), o = window.setTimeout(() => r.abort(), 15e3);
107
107
  try {
108
- const s = await P(y(e), {
108
+ const s = await P(v(e), {
109
109
  ...n,
110
110
  headers: t,
111
111
  signal: n.signal ?? r.signal
@@ -126,15 +126,15 @@ async function I(e, n = {}) {
126
126
  }
127
127
  export {
128
128
  T as C,
129
- x as a,
130
- P as b,
129
+ $ as a,
130
+ x as b,
131
131
  b as c,
132
- y as d,
132
+ P as d,
133
133
  F as e,
134
- E as f,
135
- u as g,
136
- C as h,
137
- $ as i,
134
+ v as f,
135
+ E as g,
136
+ u as h,
137
+ C as i,
138
138
  D as j,
139
139
  k,
140
140
  i as l,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.6-dev.0",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,6 +1,6 @@
1
1
  import { a as b } from "./routes-CeuodIgg.js";
2
2
  import { useCoreStore as d } from "@feedmepos/mf-common";
3
- import { c as g, e as h } from "./controlPlane-CDopeXyb.js";
3
+ import { c as g, e as h } from "./controlPlane-DT3t_ftg.js";
4
4
  import { provide as y, computed as f, ref as c, watch as C, onScopeDispose as w, inject as x } from "vue";
5
5
  function P() {
6
6
  const e = d(), r = f(() => {