@feedmepos/mf-miniprogram-v2 0.2.11 → 0.2.12-dev.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 (23) hide show
  1. package/dist/{App-DfA0ddUO.js → App-B0BXsVum.js} +30 -30
  2. package/dist/{BrandFontPicker-d1bRoXRp.js → BrandFontPicker-D_MntcD2.js} +1 -1
  3. package/dist/{BrandKitView-CUUJOv_Q.js → BrandKitView-DHV0PUus.js} +2 -2
  4. package/dist/{ControlPlaneView-C9Li1prK.js → ControlPlaneView-Bl_2Mt4i.js} +7427 -7262
  5. package/dist/{EcosystemView-BY0bYRoD.js → EcosystemView-Blo9u-dq.js} +4 -4
  6. package/dist/{LegacyWorkspaceEntry-DaHiQCt9.js → LegacyWorkspaceEntry-IRMa-8U4.js} +1 -1
  7. package/dist/{MobileProjectDialog-CumMWQCK.js → MobileProjectDialog-CgAIDCT8.js} +1 -1
  8. package/dist/{MobileProjectsView-B7XEvRa6.js → MobileProjectsView--u1GnKXK.js} +3 -3
  9. package/dist/{ModuleCenterView-B4c8sjpy.js → ModuleCenterView-D_5TWuln.js} +1 -1
  10. package/dist/{ModuleDetailView-BBpyX8YP.js → ModuleDetailView-U8M_-5qs.js} +1 -1
  11. package/dist/{PagesView-CmuO0BFr.js → PagesView-Bz5aN_A-.js} +1 -1
  12. package/dist/{PortalSettingsView-DTy67nb7.js → PortalSettingsView-C-5ahh8D.js} +8 -8
  13. package/dist/{TemplateCenterView-SRp-lJvM.js → TemplateCenterView-D8AHHZWs.js} +1 -1
  14. package/dist/{WorkspaceEntryView-CIoaVB8r.js → WorkspaceEntryView-V-Tu9Iiy.js} +1 -1
  15. package/dist/app.js +11 -11
  16. package/dist/{controlPlane-CtVzG6KV.js → controlPlane-Bn-uDXG_.js} +5 -5
  17. package/dist/{localPreference-B91MO16i.js → localPreference-CaizsY6G.js} +1 -1
  18. package/dist/package.json +1 -1
  19. package/dist/{portalContext-Bwf6bHOw.js → portalContext-FZ8_SePb.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useBrandKit-mXU0pgs0.js → useBrandKit-Dl8N-9UZ.js} +2 -2
  22. package/dist/{useModuleCatalog-DgazX8Nz.js → useModuleCatalog-CNvI4aSK.js} +1 -1
  23. package/package.json +1 -1
@@ -2,10 +2,10 @@ import { defineComponent as A, computed as n, ref as u, onMounted as B, onScopeD
2
2
  import { useRoute as j } from "vue-router";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
4
  import { e as q } from "./index-DB33ug2V.js";
5
- import { a as N, c as R, e as T } from "./controlPlane-CtVzG6KV.js";
6
- import { u as K } from "./portalContext-Bwf6bHOw.js";
5
+ import { a as N, c as R, e as T } from "./controlPlane-Bn-uDXG_.js";
6
+ import { u as K } from "./portalContext-FZ8_SePb.js";
7
7
  import { l as Y, p as y } from "./portalNavigation-DLcC7Koh.js";
8
- import { i as $, u as z } from "./useBrandKit-mXU0pgs0.js";
8
+ import { i as $, u as z } from "./useBrandKit-Dl8N-9UZ.js";
9
9
  import { _ as Q } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
10
10
  import { a as J } from "./routes-W8KfuhWL.js";
11
11
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -35,7 +35,7 @@ const X = "data:image/svg+xml,%3csvg%20width='342'%20height='186'%20viewBox='0%2
35
35
  },
36
36
  "brandkit"
37
37
  ),
38
- q("fmmf:prod") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
38
+ q("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
39
39
  ).href;
40
40
  }
41
41
  ), s = u([]), d = u(!0), h = u(null), _ = new AbortController(), M = n(
@@ -17,7 +17,7 @@ const _ = { class: "portal-empty" }, k = ["href"], M = /* @__PURE__ */ p({
17
17
  const r = new URLSearchParams();
18
18
  for (const [m, u] of Object.entries(a.value))
19
19
  typeof u == "string" && r.set(m, u);
20
- return `${v("fmmf:prod") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"}/miniprogram-v2/workspace${r.size ? `?${r}` : ""}`;
20
+ return `${v("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"}/miniprogram-v2/workspace${r.size ? `?${r}` : ""}`;
21
21
  });
22
22
  return l(() => {
23
23
  s.hasRoute("miniprogram-v2-control") && s.replace({ name: "miniprogram-v2-control", query: a.value });
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as U, computed as k, openBlock as e, createElementBlock as n, normalizeClass as q, createCommentVNode as o, resolveComponent as W, createElementVNode as j, createBlock as z, toDisplayString as p, Fragment as b, renderList as N, ref as K, onMounted as O, withCtx as J, createVNode as u } from "vue";
2
2
  import { m as h } from "./index-DB33ug2V.js";
3
- import { c as E, e as m, i as M } from "./controlPlane-CtVzG6KV.js";
3
+ import { c as E, e as m, i as M } from "./controlPlane-Bn-uDXG_.js";
4
4
  import { a as D } from "./routes-W8KfuhWL.js";
5
5
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const T = [
@@ -3,10 +3,10 @@ import { useRoute as A, useRouter as T } from "vue-router";
3
3
  import { components as $, useDialog as E } from "@feedmepos/ui-library";
4
4
  import "./index-DB33ug2V.js";
5
5
  import { a as O } from "./routes-W8KfuhWL.js";
6
- import { c as U, e as Y } from "./controlPlane-CtVzG6KV.js";
7
- import { u as G } from "./portalContext-Bwf6bHOw.js";
6
+ import { c as U, e as Y } from "./controlPlane-Bn-uDXG_.js";
7
+ import { u as G } from "./portalContext-FZ8_SePb.js";
8
8
  import { w as d } from "./portalNavigation-DLcC7Koh.js";
9
- import { p as H, M as J } from "./MobileProjectDialog-CumMWQCK.js";
9
+ import { p as H, M as J } from "./MobileProjectDialog-CgAIDCT8.js";
10
10
  import { _ as x } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
11
11
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const Q = { class: "portal-page" }, W = { class: "portal-page-inner" }, X = { class: "portal-page-heading" }, Z = {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as H, ref as S, computed as f, onMounted as W, onUnmounted as J, openBlock as s, createElementBlock as l, createElementVNode as o, toDisplayString as a, createCommentVNode as A, Fragment as k, renderList as x, normalizeStyle as X, watch as Z, resolveComponent as O, createVNode as ee, unref as i, normalizeClass as g, createBlock as w, createTextVNode as C } from "vue";
2
2
  import { useRouter as j, useRoute as te } from "vue-router";
3
- import { i as ne, u as oe, f as se, s as z, g as le, _ as M, a as re } from "./useModuleCatalog-DgazX8Nz.js";
3
+ import { i as ne, u as oe, f as se, s as z, g as le, _ as M, a as re } from "./useModuleCatalog-CNvI4aSK.js";
4
4
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const ae = { class: "row" }, ie = { class: "row__head" }, ue = { class: "row__label fm-typo-en-body-md-600 text-portal-text-primary" }, ce = {
6
6
  key: 0,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as j, computed as _, ref as F, watch as Y, resolveComponent as h, openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as a, createVNode as c, createCommentVNode as u, createTextVNode as M, Fragment as N, renderList as P, unref as m, normalizeClass as V, withCtx as B, onMounted as G, createBlock as C } from "vue";
2
2
  import { useRoute as R, useRouter as A } from "vue-router";
3
3
  import { useDialog as H } from "@feedmepos/ui-library";
4
- import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-DgazX8Nz.js";
4
+ import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-CNvI4aSK.js";
5
5
  import { w as X } from "./portalNavigation-DLcC7Koh.js";
6
6
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const Z = { class: "detail" }, ee = { class: "detail__head" }, te = { class: "detail__name fm-typo-en-title-sm-600 text-portal-text-primary" }, oe = { class: "detail__version fm-typo-en-body-md-400 text-portal-text-muted" }, ne = {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, resolveComponent as i, openBlock as l, createElementBlock as m, createElementVNode as o, createVNode as r, unref as t, withCtx as u, createTextVNode as c } from "vue";
2
2
  import { useRoute as d } from "vue-router";
3
- import { u as g } from "./portalContext-Bwf6bHOw.js";
3
+ import { u as g } from "./portalContext-FZ8_SePb.js";
4
4
  import { w as f } from "./portalNavigation-DLcC7Koh.js";
5
5
  import { P as k } from "./PortalIcon-DO0VrIoY.js";
6
6
  const w = { class: "portal-page" }, y = { class: "portal-page-inner" }, b = { class: "portal-section portal-empty" }, E = /* @__PURE__ */ p({
@@ -3,8 +3,8 @@ import { useRoute as de, useRouter as fe } from "vue-router";
3
3
  import { useCoreStore as $t } from "@feedmepos/mf-common";
4
4
  import { useDialog as ge, useSnackbar as he } from "@feedmepos/ui-library";
5
5
  import { f as st, e as J, g as me, h as gt, j as pe } from "./index-DB33ug2V.js";
6
- import { n as we, i as ye, h as ve, g as Ce, c as be, e as zt, j as Ee } from "./controlPlane-CtVzG6KV.js";
7
- import { u as Vt } from "./portalContext-Bwf6bHOw.js";
6
+ import { n as we, i as ye, h as ve, g as Ce, c as be, e as zt, j as Ee } from "./controlPlane-Bn-uDXG_.js";
7
+ import { u as Vt } from "./portalContext-FZ8_SePb.js";
8
8
  import { a as Be } from "./routes-W8KfuhWL.js";
9
9
  import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { l as Se } from "./portalNavigation-DLcC7Koh.js";
@@ -1459,7 +1459,7 @@ Z.toString = It.bind(null, function(e, t, i) {
1459
1459
  });
1460
1460
  const kt = 15e3;
1461
1461
  function gn() {
1462
- return Ce(J("fmmf:prod"), re()).portalApiBaseUrl;
1462
+ return Ce(J("fmmf:dev"), re()).portalApiBaseUrl;
1463
1463
  }
1464
1464
  async function Rt(e, t) {
1465
1465
  const i = await e.json().catch(() => null);
@@ -1488,7 +1488,7 @@ async function hn(e, t, i) {
1488
1488
  })
1489
1489
  });
1490
1490
  if (!l.ok) throw await Rt(l, "Could not save the business link");
1491
- const a = st(J("fmmf:prod")).apiOrigin;
1491
+ const a = st(J("fmmf:dev")).apiOrigin;
1492
1492
  return await fetch(`${a}/short-url`, {
1493
1493
  method: "POST",
1494
1494
  headers: { "Content-Type": "application/json" },
@@ -1497,7 +1497,7 @@ async function hn(e, t, i) {
1497
1497
  }).catch((c) => console.warn("short-url cache warm failed; it will self-heal", c)), s;
1498
1498
  }
1499
1499
  async function mn(e, t) {
1500
- const i = st(J("fmmf:prod")).apiOrigin, o = await fetch(`${i}/short-url/${encodeURIComponent(e)}`, {
1500
+ const i = st(J("fmmf:dev")).apiOrigin, o = await fetch(`${i}/short-url/${encodeURIComponent(e)}`, {
1501
1501
  signal: AbortSignal.any([t, AbortSignal.timeout(kt)])
1502
1502
  });
1503
1503
  if (o.status === 404) return null;
@@ -1517,7 +1517,7 @@ const pn = { class: "portal-section" }, wn = { class: "link-row" }, yn = { class
1517
1517
  }, _n = ["href", "download"], In = /* @__PURE__ */ Ut({
1518
1518
  __name: "BusinessLinkSection",
1519
1519
  setup(e) {
1520
- const t = Vt(), i = $t(), o = ge(), n = he(), r = st(J("fmmf:prod")).liveDomain, s = I(() => t.businessId.value ?? ""), l = I(() => {
1520
+ const t = Vt(), i = $t(), o = ge(), n = he(), r = st(J("fmmf:dev")).liveDomain, s = I(() => t.businessId.value ?? ""), l = I(() => {
1521
1521
  var b, L;
1522
1522
  const y = ((L = (b = i.currentBusiness.value) == null ? void 0 : b.url) == null ? void 0 : L.trim().toLowerCase()) ?? "";
1523
1523
  return y === s.value ? "" : y;
@@ -1736,10 +1736,10 @@ const pn = { class: "portal-section" }, wn = { class: "link-row" }, yn = { class
1736
1736
  country: n.currentCountry.value ?? null,
1737
1737
  restaurantId: ((f = n.currentRestaurant.value) == null ? void 0 : f._id) ?? null
1738
1738
  }),
1739
- J("fmmf:prod") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
1739
+ J("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
1740
1740
  ).href;
1741
1741
  }
1742
- ), c = F(null), d = F(!0), E = F(null), m = F(!1), h = st(J("fmmf:prod")).apiOrigin, C = I(() => `${h}/metadata/${t.businessId.value}/pwa-512x512.png`), w = I(() => {
1742
+ ), c = F(null), d = F(!0), E = F(null), m = F(!1), h = st(J("fmmf:dev")).apiOrigin, C = I(() => `${h}/metadata/${t.businessId.value}/pwa-512x512.png`), w = I(() => {
1743
1743
  var f;
1744
1744
  return (f = Ee()) == null ? void 0 : f.thumbnail;
1745
1745
  }), A = new AbortController();
@@ -3,7 +3,7 @@ import "./index-DB33ug2V.js";
3
3
  import { a as T } from "./routes-W8KfuhWL.js";
4
4
  import { useDialog as ee } from "@feedmepos/ui-library";
5
5
  import { useRouter as te } from "vue-router";
6
- import { c as F, e as I } from "./controlPlane-CtVzG6KV.js";
6
+ import { c as F, e as I } from "./controlPlane-Bn-uDXG_.js";
7
7
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  import { w as ae } from "./portalNavigation-DLcC7Koh.js";
9
9
  const le = {
@@ -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-Bwf6bHOw.js";
3
+ import { u as l } from "./portalContext-FZ8_SePb.js";
4
4
  import { w as m, a as f } from "./portalNavigation-DLcC7Koh.js";
5
5
  const _ = {
6
6
  class: "portal-loading",
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-B7XEvRa6.js")
7
+ component: () => import("./MobileProjectsView--u1GnKXK.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-BY0bYRoD.js")
14
+ component: () => import("./EcosystemView-Blo9u-dq.js")
15
15
  },
16
16
  {
17
17
  path: "/workspace",
18
18
  name: "miniprogram-v2-control",
19
- component: () => import("./WorkspaceEntryView-CIoaVB8r.js")
19
+ component: () => import("./WorkspaceEntryView-V-Tu9Iiy.js")
20
20
  },
21
21
  {
22
22
  path: "/p/:projectId/:view(workspace|releases|sessions)?",
23
23
  name: "miniprogram-v2-project",
24
- component: () => import("./ControlPlaneView-C9Li1prK.js")
24
+ component: () => import("./ControlPlaneView-Bl_2Mt4i.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-CUUJOv_Q.js")
30
+ component: () => import("./BrandKitView-DHV0PUus.js")
31
31
  },
32
32
  {
33
33
  path: "/pages",
34
34
  name: "miniprogram-v2-pages",
35
35
  meta: { title: "Pages" },
36
- component: () => import("./PagesView-CmuO0BFr.js")
36
+ component: () => import("./PagesView-Bz5aN_A-.js")
37
37
  },
38
38
  {
39
39
  path: "/settings",
40
40
  name: "miniprogram-v2-settings",
41
41
  meta: { title: "Settings" },
42
- component: () => import("./PortalSettingsView-DTy67nb7.js")
42
+ component: () => import("./PortalSettingsView-C-5ahh8D.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: "Component Library" },
56
- component: () => import("./ModuleCenterView-B4c8sjpy.js")
56
+ component: () => import("./ModuleCenterView-D_5TWuln.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: "Component Library" },
64
- component: () => import("./ModuleDetailView-BBpyX8YP.js")
64
+ component: () => import("./ModuleDetailView-U8M_-5qs.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-SRp-lJvM.js")
75
+ component: () => import("./TemplateCenterView-D8AHHZWs.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-DfA0ddUO.js")), n = t(() => import("./LegacyWorkspaceEntry-DaHiQCt9.js"));
81
+ ], r = {}, a = t(() => import("./App-B0BXsVum.js")), n = t(() => import("./LegacyWorkspaceEntry-IRMa-8U4.js"));
82
82
  export {
83
83
  a as FmApp,
84
84
  n as MiniprogramWorkspace,
@@ -40,14 +40,14 @@ function D(e, n, t) {
40
40
  const r = new URL(y(e, n).usageUrl);
41
41
  return r.searchParams.set("businessId", t), r.searchParams.set("country", n), r.toString();
42
42
  }
43
- function B(e) {
43
+ function v(e) {
44
44
  return e.replace(/\/+$/, "");
45
45
  }
46
- function v() {
47
- return B("https://miniprogram-v2-api.feedme.vip");
46
+ function B() {
47
+ return v("https://miniprogram-v2-api.feedmedev.vip");
48
48
  }
49
49
  function C(e) {
50
- const n = v();
50
+ const n = B();
51
51
  return n ? `${n}${e.startsWith("/") ? e : `/${e}`}` : e;
52
52
  }
53
53
  function a() {
@@ -69,7 +69,7 @@ function E() {
69
69
  return i().currentCountry.value;
70
70
  }
71
71
  function x() {
72
- const e = f(d("fmmf:prod")).liveDomain;
72
+ const e = f(d("fmmf:dev")).liveDomain;
73
73
  return m(c(), T(), e);
74
74
  }
75
75
  function P(e) {
@@ -4,7 +4,7 @@ var lt = (c, o, d) => ye(c, typeof o != "symbol" ? o + "" : o, d);
4
4
  import "./index-DB33ug2V.js";
5
5
  import { a as me } from "./routes-W8KfuhWL.js";
6
6
  import { ref as J, readonly as Ut, watch as Se } from "vue";
7
- import { c as Ce } from "./controlPlane-CtVzG6KV.js";
7
+ import { c as Ce } from "./controlPlane-Bn-uDXG_.js";
8
8
  import { c as ut } from "./_commonjsHelpers-DaMA6jEr.js";
9
9
  import { useCoreStore as oe } from "@feedmepos/mf-common";
10
10
  let Kt = null;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.11",
3
+ "version": "0.2.12-dev.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,7 +1,7 @@
1
1
  import "./index-DB33ug2V.js";
2
2
  import { a as b } from "./routes-W8KfuhWL.js";
3
3
  import { useCoreStore as d } from "@feedmepos/mf-common";
4
- import { c as g, e as h } from "./controlPlane-CtVzG6KV.js";
4
+ import { c as g, e as h } from "./controlPlane-Bn-uDXG_.js";
5
5
  import { provide as y, computed as f, ref as c, watch as C, onScopeDispose as w, inject as x } from "vue";
6
6
  function P() {
7
7
  const e = d(), n = f(() => {