@feedmepos/mf-miniprogram-v2 0.2.2-dev.2 → 0.2.2-dev.20

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 (33) hide show
  1. package/dist/App-BWnR2QQN.js +213 -0
  2. package/dist/AppTemplatePicker-CNJ6kIJk.js +237 -0
  3. package/dist/BrandFontPicker-kQKWf1hL.js +241 -0
  4. package/dist/BrandKitView-RaUWE69b.js +249 -0
  5. package/dist/{ControlPlaneView-DmhLvgWt.js → ControlPlaneView-H-hlL2ND.js} +8854 -8140
  6. package/dist/EcosystemView-MvrxhO3T.js +186 -0
  7. package/dist/{LegacyWorkspaceEntry-7DvIosoj.js → LegacyWorkspaceEntry-lEMtmdIe.js} +1 -1
  8. package/dist/MobileProjectsView-BfFS_47C.js +312 -0
  9. package/dist/{ModuleCenterView-Dqp-2hbL.js → ModuleCenterView-ujyL9wW3.js} +34 -34
  10. package/dist/{ModuleDetailView-cpQ_UfS9.js → ModuleDetailView-DFXFxSIN.js} +49 -49
  11. package/dist/{PagesView-BHo_fnWa.js → PagesView-DOSrArQb.js} +1 -1
  12. package/dist/{PortalSettingsView-CkW-avwg.js → PortalSettingsView-DjFh8IRa.js} +4 -4
  13. package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-CMgQ0bd_.js +30 -0
  14. package/dist/TemplateCenterView-BOS6FDQ0.js +475 -0
  15. package/dist/{WorkspaceEntryView-ZdXuMQoJ.js → WorkspaceEntryView-CkTnQH9g.js} +1 -1
  16. package/dist/app.js +27 -10
  17. package/dist/{controlPlane-wUT1G_Gr.js → controlPlane-sXaC6pAh.js} +9 -9
  18. package/dist/{index-BDHUHtRw.js → index-CIJWcl_6.js} +25 -15
  19. package/dist/package.json +2 -1
  20. package/dist/{portalContext-CTVzkJV7.js → portalContext-6164Gyod.js} +2 -2
  21. package/dist/routes-Cay_S88s.js +75 -0
  22. package/dist/style.css +1 -1
  23. package/dist/templatePickerFlag-nLdZY-yh.js +59 -0
  24. package/dist/useBrandKit-CkdPQRE-.js +1020 -0
  25. package/dist/{useModuleCatalog-CD5N246F.js → useModuleCatalog-Cd13YPg6.js} +3 -3
  26. package/package.json +2 -1
  27. package/dist/App-D7vZDj-a.js +0 -213
  28. package/dist/BrandKitView-B8t8RkHr.js +0 -221
  29. package/dist/EcosystemView--S4hk_t4.js +0 -232
  30. package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-Bh9Eoe_H.js +0 -26
  31. package/dist/localPreference-DneUpUrQ.js +0 -34
  32. package/dist/routes-L0ady_Wy.js +0 -53
  33. package/dist/useBrandKit-CpyR2j6m.js +0 -924
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.2-dev.2",
3
+ "version": "0.2.2-dev.20",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -52,6 +52,7 @@
52
52
  "vue-router": "^4.6.4"
53
53
  },
54
54
  "devDependencies": {
55
+ "@tanstack/vue-table": "8.21.3",
55
56
  "@tsconfig/node20": "^20.1.6",
56
57
  "@types/node": "^24.13.2",
57
58
  "@vitejs/plugin-vue": "^5.0.4",
@@ -1,6 +1,6 @@
1
- import { a as b } from "./routes-L0ady_Wy.js";
1
+ import { a as b } from "./routes-Cay_S88s.js";
2
2
  import { useCoreStore as d } from "@feedmepos/mf-common";
3
- import { a as g, e as h } from "./controlPlane-wUT1G_Gr.js";
3
+ import { c as g, e as h } from "./controlPlane-sXaC6pAh.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,75 @@
1
+ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, a = {
2
+ projects: (e) => `/api/businesses/${e}/projects`,
3
+ portalContext: (e) => `/api/businesses/${e}/portal-context`,
4
+ project: (e, s) => t(e, s),
5
+ provision: (e, s) => `${t(e, s)}/provision`,
6
+ refreshSlug: (e, s) => `${t(e, s)}/refresh-slug`,
7
+ sessions: (e, s) => `${t(e, s)}/sessions`,
8
+ session: (e, s, i) => `${t(e, s)}/sessions/${i}`,
9
+ messages: (e, s, i) => `${a.session(e, s, i)}/messages`,
10
+ startStatus: (e, s, i) => `${a.session(e, s, i)}/start-status`,
11
+ changes: (e, s, i, r = !1) => `${a.session(e, s, i)}/changes${r ? "?refresh=1" : ""}`,
12
+ checkpoints: (e, s, i) => `${a.session(e, s, i)}/checkpoints`,
13
+ aiBillingPreflight: (e, s, i) => `${a.session(e, s, i)}/ai-billing/preflight`,
14
+ restoreCheckpoint: (e, s, i, r) => `${a.checkpoints(e, s, i)}/${r}/restore`,
15
+ previewBridgeTicket: (e, s, i) => `${a.session(e, s, i)}/preview-bridge/ticket`,
16
+ previewBridgeSocket: (e, s, i) => `${a.session(e, s, i)}/preview-bridge/socket`,
17
+ uploads: (e, s, i, r = "") => `${a.session(e, s, i)}/uploads${r ? `?${r}` : ""}`,
18
+ archive: (e, s, i) => `${a.session(e, s, i)}/archive`,
19
+ commit: (e, s, i) => `${a.session(e, s, i)}/commit`,
20
+ resume: (e, s, i) => `${a.session(e, s, i)}/resume`,
21
+ restartPreview: (e, s, i) => `${a.session(e, s, i)}/restart-preview`,
22
+ fork: (e, s, i) => `${a.session(e, s, i)}/fork`,
23
+ flushEvents: (e, s, i) => `${a.session(e, s, i)}/events/flush`,
24
+ revertTurn: (e, s, i) => `${a.session(e, s, i)}/turns/revert`,
25
+ unrevertTurn: (e, s, i) => `${a.session(e, s, i)}/turns/unrevert`,
26
+ releases: (e, s) => `${t(e, s)}/releases`,
27
+ /** Internal-admin only. Extracts a new restaurant style out of a session's
28
+ * verified checkpoint and, once confirmed, opens a PR against this repo. */
29
+ publishAsTemplate: (e, s) => `${t(e, s)}/publish-as-template`,
30
+ publishRelease: (e, s, i) => `${a.releases(e, s)}/${i}/publish`,
31
+ releasePreviewUrl: (e, s, i) => `${a.releases(e, s)}/${i}/preview-url`,
32
+ rollbackToRelease: (e, s, i) => `${t(e, s)}/rollback-to-release/${i}`,
33
+ rollbackToV1: (e, s) => `${t(e, s)}/rollback-to-v1`,
34
+ start: (e, s, i) => {
35
+ const r = new URLSearchParams();
36
+ e && r.set("businessId", e), s && r.set("projectId", s), i && r.set("sessionId", i);
37
+ const p = r.toString();
38
+ return `/api/start${p ? `?${p}` : ""}`;
39
+ },
40
+ opencode: (e = "") => `/api/opencode${e ? `/${e.replace(/^\/+/, "")}` : ""}`,
41
+ /** The shared component library's catalog. Deliberately not under a
42
+ * business/project path: the library belongs to no business, and the
43
+ * module centre is not inside a workspace. */
44
+ componentLibraryCatalog: () => "/api/component-library/catalog",
45
+ /** The self-contained preview document the module centre frames. Fetched with
46
+ * the portal's bearer and assigned to an iframe's `srcdoc`, never used as an
47
+ * `<iframe src>` — a navigation request carries no Authorization header,
48
+ * which is what a signed URL would otherwise exist to work around. */
49
+ componentLibraryPreview: () => "/api/component-library/preview",
50
+ /** The application templates this environment can provision, for the portal's
51
+ * picker. Not under a business/project path: the answer is a property of
52
+ * the environment, and it is needed BEFORE a project exists. */
53
+ appTemplates: () => "/api/app-templates",
54
+ /** Whether the caller is an internal admin — for the portal to decide whether to
55
+ * show internal-only entry points such as the Template Center. The real
56
+ * enforcement is on every admin route itself; this is a UI convenience. */
57
+ adminWhoami: () => "/api/admin/whoami",
58
+ /** Template Center: the FULL choice catalog (active + archived), internal-admin only. */
59
+ appTemplateChoices: () => "/api/admin/app-template-choices",
60
+ appTemplateChoice: (e) => `/api/admin/app-template-choices/${e}`,
61
+ appTemplateChoiceArchive: (e) => `${a.appTemplateChoice(e)}/archive`,
62
+ appTemplateChoiceRestore: (e) => `${a.appTemplateChoice(e)}/restore`,
63
+ /** Template Center: fork an existing physical template directory into a
64
+ * brand-new one, as a PR against this repo (see `template-fork.ts`). Not
65
+ * project-scoped — a physical template belongs to no business. */
66
+ forkAppTemplate: () => "/api/admin/app-templates/fork",
67
+ /** Template Center: find-or-create the template-editing project a
68
+ * physical template edits through — the same chat/preview/checkpoint
69
+ * workspace a merchant project gets, pointed at `templates/<id>/` in this
70
+ * repo instead. Internal-admin only. */
71
+ appTemplateEditingProject: (e) => `/api/admin/app-templates/${e}/editing-project`
72
+ };
73
+ export {
74
+ a
75
+ };