@feedmepos/mf-miniprogram-v2 0.2.8-dev.2 → 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.
- package/dist/{App-C8Vn8LvE.js → App-h0NGA3Bx.js} +267 -277
- package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-BeNabALJ.js +270 -0
- package/dist/{BrandFontPicker-JHyoGusq.js → BrandFontPicker-sTKNoOX3.js} +1 -1
- package/dist/{BrandKitView-Dlt_ifI0.js → BrandKitView-DpeuJ5Mj.js} +2 -2
- package/dist/{ControlPlaneView-qDA8RgiR.js → ControlPlaneView-7i6SXbEK.js} +5077 -4831
- package/dist/{EcosystemView-XP9IZ9wn.js → EcosystemView-BUG7Dp_e.js} +5 -5
- package/dist/MobileProjectsView-DP_MBdDX.js +400 -0
- package/dist/ModuleCenterView-DdExY27I.js +165 -0
- package/dist/{ModuleDetailView-CSfMF0Uo.js → ModuleDetailView-2ZG2PgWE.js} +1 -1
- package/dist/{PagesView-DzDqCd8N.js → PagesView-CNnihrLK.js} +2 -2
- package/dist/{PlatformUnavailableView-CdHjkolw.js → PlatformUnavailableView-ChSD6P3O.js} +1 -1
- package/dist/{PortalSettingsView-Df5jChmi.js → PortalSettingsView-tEQ8--VB.js} +9 -9
- package/dist/TemplateCenterView-BjuZj_3I.js +515 -0
- package/dist/{WorkspaceEntryView-DQkYJWdf.js → WorkspaceEntryView-aesHR5VT.js} +2 -2
- package/dist/{adminAccess-D2K-L-Vt.js → adminAccess-Bud1ltTs.js} +2 -2
- package/dist/app.js +12 -12
- package/dist/{controlPlane-sXaC6pAh.js → controlPlane--Q2ulw38.js} +7 -7
- package/dist/package.json +1 -1
- package/dist/{portalContext-DV-6uUwp.js → portalContext-CzdVaxBH.js} +2 -2
- package/dist/portalNavigation-L5VwKlps.js +42 -0
- package/dist/{routes-CeuodIgg.js → routes-CJa85dEy.js} +14 -3
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-CXLIXo5j.js → useBrandKit-Cw3bBugv.js} +1 -1
- package/dist/{useModuleCatalog-Cep-pzWO.js → useModuleCatalog-n2zRBLFf.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/MobileProjectsView-aAyHV5G-.js +0 -333
- package/dist/ModuleCenterView-C6mCPATr.js +0 -147
- 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
|
+
};
|
|
@@ -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
|
|
64
|
-
* still references — see the
|
|
65
|
-
|
|
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
|