@feedmepos/mf-miniprogram-v2 0.2.8-dev.8 → 0.2.8-dev.9
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-CulUM6bp.js → App-Ck_p8Anr.js} +256 -253
- package/dist/{ControlPlaneView-BrIrCpIX.js → ControlPlaneView-CqTLqklv.js} +8158 -7868
- package/dist/{EcosystemView-CVunQHEs.js → EcosystemView-Bt-UdWfQ.js} +3 -3
- package/dist/{MobileProjectDialog-C4wvWZ95.js → MobileProjectDialog-DAYQdrCY.js} +247 -236
- package/dist/{MobileProjectsView-CZVTbgqX.js → MobileProjectsView-z7GucfWB.js} +63 -60
- package/dist/ModuleCenterView-t8rhd419.js +283 -0
- package/dist/ModuleDetailView-C2TJToR7.js +296 -0
- package/dist/{PagesView-DgfNxkGp.js → PagesView-bXfOrylf.js} +2 -2
- package/dist/{PlatformUnavailableView-ChSD6P3O.js → PlatformUnavailableView-CkKpF-bi.js} +1 -1
- package/dist/PortalSettingsView-D_2Gd3-Y.js +123 -0
- package/dist/{TemplateCenterView-BPJSWb12.js → TemplateCenterView-DEN51nfK.js} +2 -2
- package/dist/{WorkspaceEntryView-C4MViyFH.js → WorkspaceEntryView-SLqO3Mi4.js} +2 -2
- package/dist/app.js +14 -14
- package/dist/{adminAccess-DdZ2qPdx.js → localPreference-Do4VKtxT.js} +34 -34
- package/dist/package.json +1 -1
- package/dist/{portalContext-DuVkhksq.js → portalContext-BeKN8Bcx.js} +1 -1
- package/dist/portalNavigation-DDMi3QTt.js +43 -0
- package/dist/{routes-CK4kOaoY.js → routes-B9oMJsaM.js} +2 -4
- package/dist/style.css +1 -1
- package/dist/useModuleCatalog-Daw8KA--.js +147 -0
- package/package.json +1 -1
- package/dist/ModuleCenterView-D0Bv4sKT.js +0 -165
- package/dist/ModuleDetailView-Ue3oCNxk.js +0 -189
- package/dist/PortalSettingsView-DBrKVWjp.js +0 -233
- package/dist/portalNavigation-L5VwKlps.js +0 -42
- package/dist/useModuleCatalog-a4dKLnlS.js +0 -124
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function i(r) {
|
|
2
|
+
return r === "releases" || r === "sessions" ? r : "workspace";
|
|
3
|
+
}
|
|
4
|
+
function o(r) {
|
|
5
|
+
const { view: t, tpl: n, setup: e, library: a, returnProjectId: p, ...s } = r;
|
|
6
|
+
return s;
|
|
7
|
+
}
|
|
8
|
+
function c(r, t, n, e = {}) {
|
|
9
|
+
return {
|
|
10
|
+
name: "miniprogram-v2-project",
|
|
11
|
+
params: { projectId: r, view: t === "workspace" ? void 0 : t },
|
|
12
|
+
query: {
|
|
13
|
+
...o(n),
|
|
14
|
+
...e.templateEditing ? { tpl: "1" } : {},
|
|
15
|
+
...e.setup ? { setup: "1" } : {},
|
|
16
|
+
...e.library ? { library: e.library } : {}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function u(r, t, n) {
|
|
21
|
+
if (!t || !n || t === n || r.name !== "miniprogram-v2-project" || r.query.tpl === "1") return null;
|
|
22
|
+
const e = o(r.query);
|
|
23
|
+
return typeof e.businessId == "string" && (e.businessId = n), { name: "miniprogram-v2-mobile-projects", query: e };
|
|
24
|
+
}
|
|
25
|
+
function l(r, t) {
|
|
26
|
+
return t ? c(String(r.params.projectId), i(r.params.view), r.query) : { name: "miniprogram-v2-mobile-projects", query: o(r.query) };
|
|
27
|
+
}
|
|
28
|
+
function m(r, t = "settings") {
|
|
29
|
+
const n = new URLSearchParams();
|
|
30
|
+
for (const e of ["businessId", "country", "restaurantId"]) {
|
|
31
|
+
const a = r[e];
|
|
32
|
+
typeof a == "string" && n.set(e, a);
|
|
33
|
+
}
|
|
34
|
+
return `/brand/${t}${n.size ? `?${n}` : ""}`;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
i as a,
|
|
38
|
+
m as b,
|
|
39
|
+
u as e,
|
|
40
|
+
l,
|
|
41
|
+
o as p,
|
|
42
|
+
c as w
|
|
43
|
+
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
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
|
-
/** Where this business's table QR scans open ('app' | 'v3' | default). */
|
|
5
|
-
qrRouting: (e) => `/api/businesses/${e}/qr-routing`,
|
|
6
|
-
/** Public, machine-read list of every business's QR routing, for the feedme.cc redirector. */
|
|
7
|
-
qrRoutingList: () => "/api/public/qr-routing",
|
|
8
4
|
project: (e, s) => t(e, s),
|
|
9
5
|
provision: (e, s) => `${t(e, s)}/provision`,
|
|
10
6
|
refreshSlug: (e, s) => `${t(e, s)}/refresh-slug`,
|
|
@@ -38,6 +34,8 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, i = {
|
|
|
38
34
|
* verified checkpoint and, once confirmed, opens a PR against this repo. */
|
|
39
35
|
publishAsTemplate: (e, s) => `${t(e, s)}/publish-as-template`,
|
|
40
36
|
publishRelease: (e, s, a) => `${i.releases(e, s)}/${a}/publish`,
|
|
37
|
+
/** Delivers a release to the project's native apps over the air; the web is untouched. */
|
|
38
|
+
publishReleaseToApp: (e, s, a) => `${i.releases(e, s)}/${a}/publish-app`,
|
|
41
39
|
releasePreviewUrl: (e, s, a) => `${i.releases(e, s)}/${a}/preview-url`,
|
|
42
40
|
/** Turns "set this release live once its build succeeds" on or off. */
|
|
43
41
|
releaseAutoPublish: (e, s, a) => `${i.releases(e, s)}/${a}/auto-publish`,
|