@feedmepos/mf-miniprogram-v2 0.2.8-dev.1 → 0.2.8-dev.3

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 (31) hide show
  1. package/dist/{App-B7Mai_6F.js → App-h0NGA3Bx.js} +287 -297
  2. package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-BeNabALJ.js +270 -0
  3. package/dist/{BrandFontPicker-JHyoGusq.js → BrandFontPicker-sTKNoOX3.js} +1 -1
  4. package/dist/{BrandKitView-Dlt_ifI0.js → BrandKitView-DpeuJ5Mj.js} +2 -2
  5. package/dist/{ControlPlaneView-CBGNMsPT.js → ControlPlaneView-7i6SXbEK.js} +7641 -7395
  6. package/dist/{EcosystemView-Cy0N2qNK.js → EcosystemView-BUG7Dp_e.js} +5 -5
  7. package/dist/MobileProjectsView-DP_MBdDX.js +400 -0
  8. package/dist/ModuleCenterView-DdExY27I.js +165 -0
  9. package/dist/{ModuleDetailView-CSfMF0Uo.js → ModuleDetailView-2ZG2PgWE.js} +1 -1
  10. package/dist/{PagesView-DQCIwpnL.js → PagesView-CNnihrLK.js} +2 -2
  11. package/dist/{PlatformUnavailableView-DY2ntpNw.js → PlatformUnavailableView-ChSD6P3O.js} +1 -1
  12. package/dist/{PortalSettingsView-Cz566Ccd.js → PortalSettingsView-tEQ8--VB.js} +9 -9
  13. package/dist/TemplateCenterView-BjuZj_3I.js +515 -0
  14. package/dist/{WorkspaceEntryView-B28ASSit.js → WorkspaceEntryView-aesHR5VT.js} +2 -2
  15. package/dist/adminAccess-Bud1ltTs.js +61 -0
  16. package/dist/app.js +12 -12
  17. package/dist/{controlPlane-sXaC6pAh.js → controlPlane--Q2ulw38.js} +7 -7
  18. package/dist/package.json +1 -1
  19. package/dist/{portalContext-DV-6uUwp.js → portalContext-CzdVaxBH.js} +2 -2
  20. package/dist/portalNavigation-L5VwKlps.js +42 -0
  21. package/dist/{routes-CeuodIgg.js → routes-CJa85dEy.js} +14 -3
  22. package/dist/style.css +1 -1
  23. package/dist/{useBrandKit-CXLIXo5j.js → useBrandKit-Cw3bBugv.js} +1 -1
  24. package/dist/{useModuleCatalog-Cep-pzWO.js → useModuleCatalog-n2zRBLFf.js} +2 -2
  25. package/package.json +1 -1
  26. package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-LE_aKvfg.js +0 -198
  27. package/dist/MobileProjectsView-CvMvePvm.js +0 -333
  28. package/dist/ModuleCenterView-C6mCPATr.js +0 -147
  29. package/dist/TemplateCenterView-DqZLthqh.js +0 -426
  30. package/dist/adminAccess-oXC0xjvK.js +0 -48
  31. package/dist/portalNavigation-BBORm5cp.js +0 -34
@@ -132,13 +132,13 @@ export {
132
132
  P as d,
133
133
  F as e,
134
134
  y as f,
135
- E as g,
136
- u as h,
137
- C as i,
138
- D as j,
139
- k,
140
- i as l,
141
- I as m,
135
+ I as g,
136
+ E as h,
137
+ u as i,
138
+ C as j,
139
+ D as k,
140
+ k as l,
141
+ i as m,
142
142
  g as n,
143
143
  S as s
144
144
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.8-dev.1",
3
+ "version": "0.2.8-dev.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,6 +1,6 @@
1
- import { a as b } from "./routes-CeuodIgg.js";
1
+ import { a as b } from "./routes-CJa85dEy.js";
2
2
  import { useCoreStore as d } from "@feedmepos/mf-common";
3
- import { c as g, e as h } from "./controlPlane-sXaC6pAh.js";
3
+ import { c as g, e as h } from "./controlPlane--Q2ulw38.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(() => {
@@ -0,0 +1,42 @@
1
+ function a(r) {
2
+ return r === "releases" || r === "sessions" ? r : "workspace";
3
+ }
4
+ function o(r) {
5
+ const { view: e, tpl: t, setup: n, ...s } = r;
6
+ return s;
7
+ }
8
+ function i(r, e, t, n = {}) {
9
+ return {
10
+ name: "miniprogram-v2-project",
11
+ params: { projectId: r, view: e === "workspace" ? void 0 : e },
12
+ query: {
13
+ ...o(t),
14
+ ...n.templateEditing ? { tpl: "1" } : {},
15
+ ...n.setup ? { setup: "1" } : {}
16
+ }
17
+ };
18
+ }
19
+ function c(r, e, t) {
20
+ if (!e || !t || e === t || r.name !== "miniprogram-v2-project" || r.query.tpl === "1") return null;
21
+ const n = o(r.query);
22
+ return typeof n.businessId == "string" && (n.businessId = t), { name: "miniprogram-v2-mobile-projects", query: n };
23
+ }
24
+ function p(r, e) {
25
+ return e ? i(String(r.params.projectId), a(r.params.view), r.query) : { name: "miniprogram-v2-mobile-projects", query: o(r.query) };
26
+ }
27
+ function u(r, e = "settings") {
28
+ const t = new URLSearchParams();
29
+ for (const n of ["businessId", "country", "restaurantId"]) {
30
+ const s = r[n];
31
+ typeof s == "string" && t.set(n, s);
32
+ }
33
+ return `/brand/${e}${t.size ? `?${t}` : ""}`;
34
+ }
35
+ export {
36
+ a,
37
+ u as b,
38
+ c as e,
39
+ p as l,
40
+ o as p,
41
+ i as w
42
+ };
@@ -8,6 +8,11 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, p = {
8
8
  session: (e, s, a) => `${t(e, s)}/sessions/${a}`,
9
9
  messages: (e, s, a) => `${p.session(e, s, a)}/messages`,
10
10
  startStatus: (e, s, a) => `${p.session(e, s, a)}/start-status`,
11
+ /** Server-side render of one library module, proxied to the session's own
12
+ * sandbox — what the swap panel's candidate cards fetch instead of the
13
+ * browser reaching the public preview host directly (see
14
+ * BlockLibraryPanel.vue's `ModuleLibraryCard`). */
15
+ libraryRender: (e, s, a) => `${p.session(e, s, a)}/library-render`,
11
16
  changes: (e, s, a, i = !1) => `${p.session(e, s, a)}/changes${i ? "?refresh=1" : ""}`,
12
17
  checkpoints: (e, s, a) => `${p.session(e, s, a)}/checkpoints`,
13
18
  aiBillingPreflight: (e, s, a) => `${p.session(e, s, a)}/ai-billing/preflight`,
@@ -60,9 +65,10 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, p = {
60
65
  * project-scoped — a physical template belongs to no business. */
61
66
  forkAppTemplate: () => "/api/admin/app-templates/fork",
62
67
  /** Template Center: delete an existing physical template directory, as a PR
63
- * against this repo. Refused for the default template or one any project
64
- * still references — see the endpoint's own doc comment. */
65
- deleteAppTemplate: (e) => `/api/admin/app-templates/${e}/delete`,
68
+ * against this repo. Refused for the default template (never bypassable)
69
+ * or, absent `force`, for one any project still references — see the
70
+ * endpoint's own doc comment for what `force` skips and what it does not. */
71
+ deleteAppTemplate: (e, s) => `/api/admin/app-templates/${e}/delete${s ? "?force=1" : ""}`,
66
72
  /** Template Center admin list: every physical template's live registry
67
73
  * row, drafts included — unlike `appTemplates()` (merchant-facing,
68
74
  * published + environment-filtered only). */
@@ -84,6 +90,11 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, p = {
84
90
  /** Template Center: close a pending template change's PR without merging
85
91
  * and delete its branch — the "In review" list's reject action. */
86
92
  rejectPendingTemplateChange: (e) => `/api/admin/app-templates/pending-changes/${e}/reject`,
93
+ /** Template Center: edit an existing physical template's `industries`
94
+ * classification. Opens a PR against the catalog entry AND updates the
95
+ * registry row immediately (unlike fork/delete, there is no directory
96
+ * change to wait on merge for) — see the endpoint's own doc comment. */
97
+ updateAppTemplateIndustries: (e) => `/api/admin/app-templates/${e}/industries`,
87
98
  /** Template Center: find-or-create the template-editing project a
88
99
  * physical template edits through — the same chat/preview/checkpoint
89
100
  * workspace a merchant project gets, pointed at `templates/<id>/` in this