@feedmepos/mf-miniprogram-v2 0.2.8-dev.2 → 0.2.8-dev.4
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.
- package/dist/{App-C8Vn8LvE.js → App-CFKKclWT.js} +267 -277
- package/dist/{BrandFontPicker-JHyoGusq.js → BrandFontPicker-VX2LAN2w.js} +1 -1
- package/dist/{BrandKitView-Dlt_ifI0.js → BrandKitView-CB7kcVy2.js} +2 -2
- package/dist/ControlPlaneView-DhAZbPoA.js +26578 -0
- package/dist/{EcosystemView-XP9IZ9wn.js → EcosystemView-hqiZRHIC.js} +6 -6
- package/dist/MobileProjectDialog-CZWx6IYl.js +430 -0
- package/dist/MobileProjectsView-BlQQvHCc.js +232 -0
- package/dist/ModuleCenterView-CY8o1GJG.js +165 -0
- package/dist/{ModuleDetailView-CSfMF0Uo.js → ModuleDetailView-BuZgg6e0.js} +1 -1
- package/dist/{PagesView-DzDqCd8N.js → PagesView-3KDcHMIh.js} +2 -2
- package/dist/{PlatformUnavailableView-CdHjkolw.js → PlatformUnavailableView-ChSD6P3O.js} +1 -1
- package/dist/{PortalSettingsView-Df5jChmi.js → PortalSettingsView-BVgkeXpL.js} +9 -9
- package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js +41 -0
- package/dist/TemplateCenterView-UQ03rcwn.js +515 -0
- package/dist/{WorkspaceEntryView-DQkYJWdf.js → WorkspaceEntryView-BMrZWby1.js} +2 -2
- package/dist/{adminAccess-D2K-L-Vt.js → adminAccess-B8pYZwW9.js} +2 -2
- package/dist/app.js +12 -12
- package/dist/{controlPlane-sXaC6pAh.js → controlPlane-DR5ykj4d.js} +8 -8
- package/dist/package.json +1 -1
- package/dist/{portalContext-DV-6uUwp.js → portalContext-BKjPuVfn.js} +2 -2
- package/dist/portalNavigation-L5VwKlps.js +42 -0
- package/dist/{routes-CeuodIgg.js → routes-i1Lpq1LK.js} +42 -27
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-CXLIXo5j.js → useBrandKit-CKn1fm2o.js} +1 -1
- package/dist/{useModuleCatalog-Cep-pzWO.js → useModuleCatalog-u7EWW11V.js} +2 -2
- package/package.json +1 -1
- package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-LE_aKvfg.js +0 -198
- package/dist/ControlPlaneView-qDA8RgiR.js +0 -25317
- package/dist/MobileProjectsView-aAyHV5G-.js +0 -333
- package/dist/ModuleCenterView-C6mCPATr.js +0 -147
- package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-CMgQ0bd_.js +0 -30
- package/dist/TemplateCenterView-DrWImUYO.js +0 -425
- package/dist/portalNavigation-C29ihtq_.js +0 -38
|
@@ -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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = (e, s) => `/api/businesses/${e}/projects/${s}`,
|
|
1
|
+
const t = (e, s) => `/api/businesses/${e}/projects/${s}`, i = {
|
|
2
2
|
projects: (e) => `/api/businesses/${e}/projects`,
|
|
3
3
|
portalContext: (e) => `/api/businesses/${e}/portal-context`,
|
|
4
4
|
project: (e, s) => t(e, s),
|
|
@@ -6,35 +6,44 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, p = {
|
|
|
6
6
|
refreshSlug: (e, s) => `${t(e, s)}/refresh-slug`,
|
|
7
7
|
sessions: (e, s) => `${t(e, s)}/sessions`,
|
|
8
8
|
session: (e, s, a) => `${t(e, s)}/sessions/${a}`,
|
|
9
|
-
messages: (e, s, a) => `${
|
|
10
|
-
startStatus: (e, s, a) => `${
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
9
|
+
messages: (e, s, a) => `${i.session(e, s, a)}/messages`,
|
|
10
|
+
startStatus: (e, s, a) => `${i.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) => `${i.session(e, s, a)}/library-render`,
|
|
16
|
+
changes: (e, s, a, p = !1) => `${i.session(e, s, a)}/changes${p ? "?refresh=1" : ""}`,
|
|
17
|
+
checkpoints: (e, s, a) => `${i.session(e, s, a)}/checkpoints`,
|
|
18
|
+
aiBillingPreflight: (e, s, a) => `${i.session(e, s, a)}/ai-billing/preflight`,
|
|
19
|
+
restoreCheckpoint: (e, s, a, p) => `${i.checkpoints(e, s, a)}/${p}/restore`,
|
|
20
|
+
previewBridgeTicket: (e, s, a) => `${i.session(e, s, a)}/preview-bridge/ticket`,
|
|
21
|
+
previewBridgeSocket: (e, s, a) => `${i.session(e, s, a)}/preview-bridge/socket`,
|
|
22
|
+
uploads: (e, s, a, p = "") => `${i.session(e, s, a)}/uploads${p ? `?${p}` : ""}`,
|
|
23
|
+
archive: (e, s, a) => `${i.session(e, s, a)}/archive`,
|
|
24
|
+
commit: (e, s, a) => `${i.session(e, s, a)}/commit`,
|
|
25
|
+
resume: (e, s, a) => `${i.session(e, s, a)}/resume`,
|
|
26
|
+
restartPreview: (e, s, a) => `${i.session(e, s, a)}/restart-preview`,
|
|
27
|
+
fork: (e, s, a) => `${i.session(e, s, a)}/fork`,
|
|
28
|
+
flushEvents: (e, s, a) => `${i.session(e, s, a)}/events/flush`,
|
|
29
|
+
revertTurn: (e, s, a) => `${i.session(e, s, a)}/turns/revert`,
|
|
30
|
+
unrevertTurn: (e, s, a) => `${i.session(e, s, a)}/turns/unrevert`,
|
|
26
31
|
releases: (e, s) => `${t(e, s)}/releases`,
|
|
27
32
|
/** Internal-admin only. Extracts a new restaurant style out of a session's
|
|
28
33
|
* verified checkpoint and, once confirmed, opens a PR against this repo. */
|
|
29
34
|
publishAsTemplate: (e, s) => `${t(e, s)}/publish-as-template`,
|
|
30
|
-
publishRelease: (e, s, a) => `${
|
|
31
|
-
releasePreviewUrl: (e, s, a) => `${
|
|
35
|
+
publishRelease: (e, s, a) => `${i.releases(e, s)}/${a}/publish`,
|
|
36
|
+
releasePreviewUrl: (e, s, a) => `${i.releases(e, s)}/${a}/preview-url`,
|
|
37
|
+
/** Turns "set this release live once its build succeeds" on or off. */
|
|
38
|
+
releaseAutoPublish: (e, s, a) => `${i.releases(e, s)}/${a}/auto-publish`,
|
|
39
|
+
/** The merchant-readable "what changed since the last publish" for a release. */
|
|
40
|
+
releaseChanges: (e, s, a) => `${i.releases(e, s)}/${a}/changes`,
|
|
32
41
|
rollbackToRelease: (e, s, a) => `${t(e, s)}/rollback-to-release/${a}`,
|
|
33
42
|
rollbackToV1: (e, s) => `${t(e, s)}/rollback-to-v1`,
|
|
34
43
|
start: (e, s, a) => {
|
|
35
|
-
const
|
|
36
|
-
e &&
|
|
37
|
-
const r =
|
|
44
|
+
const p = new URLSearchParams();
|
|
45
|
+
e && p.set("businessId", e), s && p.set("projectId", s), a && p.set("sessionId", a);
|
|
46
|
+
const r = p.toString();
|
|
38
47
|
return `/api/start${r ? `?${r}` : ""}`;
|
|
39
48
|
},
|
|
40
49
|
opencode: (e = "") => `/api/opencode${e ? `/${e.replace(/^\/+/, "")}` : ""}`,
|
|
@@ -60,9 +69,10 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, p = {
|
|
|
60
69
|
* project-scoped — a physical template belongs to no business. */
|
|
61
70
|
forkAppTemplate: () => "/api/admin/app-templates/fork",
|
|
62
71
|
/** Template Center: delete an existing physical template directory, as a PR
|
|
63
|
-
* against this repo. Refused for the default template
|
|
64
|
-
* still references — see the
|
|
65
|
-
|
|
72
|
+
* against this repo. Refused for the default template (never bypassable)
|
|
73
|
+
* or, absent `force`, for one any project still references — see the
|
|
74
|
+
* endpoint's own doc comment for what `force` skips and what it does not. */
|
|
75
|
+
deleteAppTemplate: (e, s) => `/api/admin/app-templates/${e}/delete${s ? "?force=1" : ""}`,
|
|
66
76
|
/** Template Center admin list: every physical template's live registry
|
|
67
77
|
* row, drafts included — unlike `appTemplates()` (merchant-facing,
|
|
68
78
|
* published + environment-filtered only). */
|
|
@@ -84,6 +94,11 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, p = {
|
|
|
84
94
|
/** Template Center: close a pending template change's PR without merging
|
|
85
95
|
* and delete its branch — the "In review" list's reject action. */
|
|
86
96
|
rejectPendingTemplateChange: (e) => `/api/admin/app-templates/pending-changes/${e}/reject`,
|
|
97
|
+
/** Template Center: edit an existing physical template's `industries`
|
|
98
|
+
* classification. Opens a PR against the catalog entry AND updates the
|
|
99
|
+
* registry row immediately (unlike fork/delete, there is no directory
|
|
100
|
+
* change to wait on merge for) — see the endpoint's own doc comment. */
|
|
101
|
+
updateAppTemplateIndustries: (e) => `/api/admin/app-templates/${e}/industries`,
|
|
87
102
|
/** Template Center: find-or-create the template-editing project a
|
|
88
103
|
* physical template edits through — the same chat/preview/checkpoint
|
|
89
104
|
* workspace a merchant project gets, pointed at `templates/<id>/` in this
|
|
@@ -91,5 +106,5 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, p = {
|
|
|
91
106
|
appTemplateEditingProject: (e) => `/api/admin/app-templates/${e}/editing-project`
|
|
92
107
|
};
|
|
93
108
|
export {
|
|
94
|
-
|
|
109
|
+
i as a
|
|
95
110
|
};
|