@feedmepos/mf-miniprogram-v2 0.2.11-dev.1 → 0.2.11-dev.2
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-B0BXsVum.js +235 -0
- package/dist/{BrandFontPicker-CixDQhv-.js → BrandFontPicker-D_MntcD2.js} +1 -1
- package/dist/{BrandKitView-C0s8XmOA.js → BrandKitView-DHV0PUus.js} +2 -2
- package/dist/{ControlPlaneView-BUzkjvFu.js → ControlPlaneView-CPGMj9dc.js} +8269 -8167
- package/dist/{EcosystemView-Bp52MYSA.js → EcosystemView-Blo9u-dq.js} +3 -3
- package/dist/{MobileProjectDialog-CsezBOzx.js → MobileProjectDialog-QfVNJfyE.js} +1 -1
- package/dist/{MobileProjectsView-BX7HZv_b.js → MobileProjectsView-DVjw5R18.js} +3 -3
- package/dist/{ModuleCenterView-Bus9dN9-.js → ModuleCenterView-D_5TWuln.js} +1 -1
- package/dist/{ModuleDetailView-C0IVjslg.js → ModuleDetailView-U8M_-5qs.js} +1 -1
- package/dist/{PagesView-BYyOLtCz.js → PagesView-Bz5aN_A-.js} +1 -1
- package/dist/{PortalSettingsView-fR4yOFsv.js → PortalSettingsView-C-5ahh8D.js} +2 -2
- package/dist/{TemplateCenterView-BYb1WIgm.js → TemplateCenterView-Bd5haOtu.js} +1 -1
- package/dist/{WorkspaceEntryView-CcohqnAX.js → WorkspaceEntryView-V-Tu9Iiy.js} +1 -1
- package/dist/app.js +11 -11
- package/dist/{controlPlane-DffMY39e.js → controlPlane-Bn-uDXG_.js} +34 -33
- package/dist/localPreference-CaizsY6G.js +972 -0
- package/dist/package.json +1 -1
- package/dist/{portalContext-MKst4jC0.js → portalContext-FZ8_SePb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useBrandKit-Dl8N-9UZ.js +1110 -0
- package/dist/{useModuleCatalog-CS56tCMs.js → useModuleCatalog-CNvI4aSK.js} +1 -1
- package/package.json +1 -1
- package/dist/App-C0WpITly.js +0 -1129
- package/dist/localPreference-DJ1WUOiz.js +0 -62
- package/dist/useBrandKit-ChIpWVpr.js +0 -1096
|
@@ -2,10 +2,10 @@ import { defineComponent as A, computed as n, ref as u, onMounted as B, onScopeD
|
|
|
2
2
|
import { useRoute as j } from "vue-router";
|
|
3
3
|
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
4
|
import { e as q } from "./index-DB33ug2V.js";
|
|
5
|
-
import { a as N, c as R, e as T } from "./controlPlane-
|
|
6
|
-
import { u as K } from "./portalContext-
|
|
5
|
+
import { a as N, c as R, e as T } from "./controlPlane-Bn-uDXG_.js";
|
|
6
|
+
import { u as K } from "./portalContext-FZ8_SePb.js";
|
|
7
7
|
import { l as Y, p as y } from "./portalNavigation-DLcC7Koh.js";
|
|
8
|
-
import { i as $, u as z } from "./useBrandKit-
|
|
8
|
+
import { i as $, u as z } from "./useBrandKit-Dl8N-9UZ.js";
|
|
9
9
|
import { _ as Q } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
|
|
10
10
|
import { a as J } from "./routes-W8KfuhWL.js";
|
|
11
11
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as U, computed as D, openBlock as A, createElementBlock as l, normalizeClass as L, createCommentVNode as X, ref as m, watch as Q, resolveComponent as G, createElementVNode as v, createBlock as S, toDisplayString as j, Fragment as W, renderList as B, createVNode as F, onMounted as Y, withCtx as E } from "vue";
|
|
2
2
|
import { m as _ } from "./index-DB33ug2V.js";
|
|
3
|
-
import { c as M, e as O, i as $ } from "./controlPlane-
|
|
3
|
+
import { c as M, e as O, i as $ } from "./controlPlane-Bn-uDXG_.js";
|
|
4
4
|
import { a as I } from "./routes-W8KfuhWL.js";
|
|
5
5
|
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Z = ["miniprogram-vue"];
|
|
@@ -3,10 +3,10 @@ import { useRoute as A, useRouter as T } from "vue-router";
|
|
|
3
3
|
import { components as $, useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
import "./index-DB33ug2V.js";
|
|
5
5
|
import { a as O } from "./routes-W8KfuhWL.js";
|
|
6
|
-
import { c as U, e as Y } from "./controlPlane-
|
|
7
|
-
import { u as G } from "./portalContext-
|
|
6
|
+
import { c as U, e as Y } from "./controlPlane-Bn-uDXG_.js";
|
|
7
|
+
import { u as G } from "./portalContext-FZ8_SePb.js";
|
|
8
8
|
import { w as d } from "./portalNavigation-DLcC7Koh.js";
|
|
9
|
-
import { p as H, M as J } from "./MobileProjectDialog-
|
|
9
|
+
import { p as H, M as J } from "./MobileProjectDialog-QfVNJfyE.js";
|
|
10
10
|
import { _ as x } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
|
|
11
11
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Q = { class: "portal-page" }, W = { class: "portal-page-inner" }, X = { class: "portal-page-heading" }, Z = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as H, ref as S, computed as f, onMounted as W, onUnmounted as J, openBlock as s, createElementBlock as l, createElementVNode as o, toDisplayString as a, createCommentVNode as A, Fragment as k, renderList as x, normalizeStyle as X, watch as Z, resolveComponent as O, createVNode as ee, unref as i, normalizeClass as g, createBlock as w, createTextVNode as C } from "vue";
|
|
2
2
|
import { useRouter as j, useRoute as te } from "vue-router";
|
|
3
|
-
import { i as ne, u as oe, f as se, s as z, g as le, _ as M, a as re } from "./useModuleCatalog-
|
|
3
|
+
import { i as ne, u as oe, f as se, s as z, g as le, _ as M, a as re } from "./useModuleCatalog-CNvI4aSK.js";
|
|
4
4
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ae = { class: "row" }, ie = { class: "row__head" }, ue = { class: "row__label fm-typo-en-body-md-600 text-portal-text-primary" }, ce = {
|
|
6
6
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, computed as _, ref as F, watch as Y, resolveComponent as h, openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as a, createVNode as c, createCommentVNode as u, createTextVNode as M, Fragment as N, renderList as P, unref as m, normalizeClass as V, withCtx as B, onMounted as G, createBlock as C } from "vue";
|
|
2
2
|
import { useRoute as R, useRouter as A } from "vue-router";
|
|
3
3
|
import { useDialog as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-
|
|
4
|
+
import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-CNvI4aSK.js";
|
|
5
5
|
import { w as X } from "./portalNavigation-DLcC7Koh.js";
|
|
6
6
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const Z = { class: "detail" }, ee = { class: "detail__head" }, te = { class: "detail__name fm-typo-en-title-sm-600 text-portal-text-primary" }, oe = { class: "detail__version fm-typo-en-body-md-400 text-portal-text-muted" }, ne = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, resolveComponent as i, openBlock as l, createElementBlock as m, createElementVNode as o, createVNode as r, unref as t, withCtx as u, createTextVNode as c } from "vue";
|
|
2
2
|
import { useRoute as d } from "vue-router";
|
|
3
|
-
import { u as g } from "./portalContext-
|
|
3
|
+
import { u as g } from "./portalContext-FZ8_SePb.js";
|
|
4
4
|
import { w as f } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
import { P as k } from "./PortalIcon-DO0VrIoY.js";
|
|
6
6
|
const w = { class: "portal-page" }, y = { class: "portal-page-inner" }, b = { class: "portal-section portal-empty" }, E = /* @__PURE__ */ p({
|
|
@@ -3,8 +3,8 @@ import { useRoute as de, useRouter as fe } from "vue-router";
|
|
|
3
3
|
import { useCoreStore as $t } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as ge, useSnackbar as he } from "@feedmepos/ui-library";
|
|
5
5
|
import { f as st, e as J, g as me, h as gt, j as pe } from "./index-DB33ug2V.js";
|
|
6
|
-
import { n as we, i as ye, h as ve, g as Ce, c as be, e as zt, j as Ee } from "./controlPlane-
|
|
7
|
-
import { u as Vt } from "./portalContext-
|
|
6
|
+
import { n as we, i as ye, h as ve, g as Ce, c as be, e as zt, j as Ee } from "./controlPlane-Bn-uDXG_.js";
|
|
7
|
+
import { u as Vt } from "./portalContext-FZ8_SePb.js";
|
|
8
8
|
import { a as Be } from "./routes-W8KfuhWL.js";
|
|
9
9
|
import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { l as Se } from "./portalNavigation-DLcC7Koh.js";
|
|
@@ -3,7 +3,7 @@ import "./index-DB33ug2V.js";
|
|
|
3
3
|
import { a as T } from "./routes-W8KfuhWL.js";
|
|
4
4
|
import { useDialog as ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { useRouter as te } from "vue-router";
|
|
6
|
-
import { c as F, e as I } from "./controlPlane-
|
|
6
|
+
import { c as F, e as I } from "./controlPlane-Bn-uDXG_.js";
|
|
7
7
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import { w as ae } from "./portalNavigation-DLcC7Koh.js";
|
|
9
9
|
const le = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, watchEffect as a, openBlock as n, createElementBlock as p } from "vue";
|
|
2
2
|
import { useRoute as u, useRouter as i } from "vue-router";
|
|
3
|
-
import { u as l } from "./portalContext-
|
|
3
|
+
import { u as l } from "./portalContext-FZ8_SePb.js";
|
|
4
4
|
import { w as m, a as f } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
const _ = {
|
|
6
6
|
class: "portal-loading",
|
package/dist/app.js
CHANGED
|
@@ -4,42 +4,42 @@ const o = [
|
|
|
4
4
|
path: "/platforms/mobile",
|
|
5
5
|
name: "miniprogram-v2-mobile-projects",
|
|
6
6
|
meta: { title: "Mobile" },
|
|
7
|
-
component: () => import("./MobileProjectsView-
|
|
7
|
+
component: () => import("./MobileProjectsView-DVjw5R18.js")
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
path: "/",
|
|
11
11
|
name: "miniprogram-v2-ecosystem",
|
|
12
12
|
meta: { title: "Ecosystem" },
|
|
13
13
|
beforeEnter: (e) => ["workspace", "releases", "sessions"].includes(String(e.query.view)) ? { name: "miniprogram-v2-control", query: e.query } : !0,
|
|
14
|
-
component: () => import("./EcosystemView-
|
|
14
|
+
component: () => import("./EcosystemView-Blo9u-dq.js")
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
path: "/workspace",
|
|
18
18
|
name: "miniprogram-v2-control",
|
|
19
|
-
component: () => import("./WorkspaceEntryView-
|
|
19
|
+
component: () => import("./WorkspaceEntryView-V-Tu9Iiy.js")
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
path: "/p/:projectId/:view(workspace|releases|sessions)?",
|
|
23
23
|
name: "miniprogram-v2-project",
|
|
24
|
-
component: () => import("./ControlPlaneView-
|
|
24
|
+
component: () => import("./ControlPlaneView-CPGMj9dc.js")
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
path: "/brand-kit",
|
|
28
28
|
name: "miniprogram-v2-brand-kit",
|
|
29
29
|
meta: { title: "Brand Kit" },
|
|
30
|
-
component: () => import("./BrandKitView-
|
|
30
|
+
component: () => import("./BrandKitView-DHV0PUus.js")
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
path: "/pages",
|
|
34
34
|
name: "miniprogram-v2-pages",
|
|
35
35
|
meta: { title: "Pages" },
|
|
36
|
-
component: () => import("./PagesView-
|
|
36
|
+
component: () => import("./PagesView-Bz5aN_A-.js")
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
path: "/settings",
|
|
40
40
|
name: "miniprogram-v2-settings",
|
|
41
41
|
meta: { title: "Settings" },
|
|
42
|
-
component: () => import("./PortalSettingsView-
|
|
42
|
+
component: () => import("./PortalSettingsView-C-5ahh8D.js")
|
|
43
43
|
},
|
|
44
44
|
...["tablet", "kiosk"].map((e) => ({
|
|
45
45
|
path: `/platforms/${e}`,
|
|
@@ -53,7 +53,7 @@ const o = [
|
|
|
53
53
|
path: "/modules",
|
|
54
54
|
name: "miniprogram-v2-module-center",
|
|
55
55
|
meta: { title: "Component Library" },
|
|
56
|
-
component: () => import("./ModuleCenterView-
|
|
56
|
+
component: () => import("./ModuleCenterView-D_5TWuln.js")
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
// Keyed by the module's directory name, which is what the catalog, the
|
|
@@ -61,7 +61,7 @@ const o = [
|
|
|
61
61
|
path: "/modules/:name",
|
|
62
62
|
name: "miniprogram-v2-module-detail",
|
|
63
63
|
meta: { title: "Component Library" },
|
|
64
|
-
component: () => import("./ModuleDetailView-
|
|
64
|
+
component: () => import("./ModuleDetailView-U8M_-5qs.js")
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
// Internal-only: linked from the main nav (App.vue), but only once
|
|
@@ -72,13 +72,13 @@ const o = [
|
|
|
72
72
|
path: "/internal/template-center",
|
|
73
73
|
name: "miniprogram-v2-template-center",
|
|
74
74
|
meta: { title: "Template library", requiresAdmin: !0 },
|
|
75
|
-
component: () => import("./TemplateCenterView-
|
|
75
|
+
component: () => import("./TemplateCenterView-Bd5haOtu.js")
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
path: "/:pathMatch(.*)*",
|
|
79
79
|
redirect: (e) => ({ name: "miniprogram-v2-ecosystem", query: e.query, params: {} })
|
|
80
80
|
}
|
|
81
|
-
], r = {}, a = t(() => import("./App-
|
|
81
|
+
], r = {}, a = t(() => import("./App-B0BXsVum.js")), n = t(() => import("./LegacyWorkspaceEntry-IRMa-8U4.js"));
|
|
82
82
|
export {
|
|
83
83
|
a as FmApp,
|
|
84
84
|
n as MiniprogramWorkspace,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f, e as d, g as m, D as p } from "./index-DB33ug2V.js";
|
|
2
|
-
import { useCoreStore as
|
|
2
|
+
import { useCoreStore as i, FeedMeAuth as h } from "@feedmepos/mf-common";
|
|
3
3
|
const w = [
|
|
4
4
|
"AE",
|
|
5
5
|
"AU",
|
|
@@ -24,57 +24,58 @@ function U(e) {
|
|
|
24
24
|
const n = e.trim().toUpperCase();
|
|
25
25
|
return g(n) ? n : null;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const t = n === "MY" ? "" : `.${n.toLowerCase()}`, r = e === "dev" ? "-dev" : "",
|
|
27
|
+
function y(e, n) {
|
|
28
|
+
const t = n === "MY" ? "" : `.${n.toLowerCase()}`, r = e === "dev" ? "-dev" : "", s = e === "dev" ? "https://license.feedmedev.cc" : "https://license.feedme.cc";
|
|
29
29
|
return {
|
|
30
30
|
country: n,
|
|
31
31
|
portalApiBaseUrl: `https://portal-v2${r}${t}.feedmeapi.com`,
|
|
32
32
|
licenseApiBaseUrl: `https://license-v2${r}${t}.feedmeapi.com/api`,
|
|
33
|
-
|
|
33
|
+
// Miniprogram Premium is sold among License's business features.
|
|
34
|
+
purchaseUrl: `${s}/purchase?type=business-features`,
|
|
34
35
|
aiTokenPurchaseUrl: `${s}/purchase`,
|
|
35
36
|
usageUrl: `${s}/token`
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function D(e, n, t) {
|
|
39
|
-
const r = new URL(
|
|
40
|
+
const r = new URL(y(e, n).usageUrl);
|
|
40
41
|
return r.searchParams.set("businessId", t), r.searchParams.set("country", n), r.toString();
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function v(e) {
|
|
43
44
|
return e.replace(/\/+$/, "");
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
46
|
+
function B() {
|
|
47
|
+
return v("https://miniprogram-v2-api.feedmedev.vip");
|
|
47
48
|
}
|
|
48
49
|
function C(e) {
|
|
49
|
-
const n =
|
|
50
|
+
const n = B();
|
|
50
51
|
return n ? `${n}${e.startsWith("/") ? e : `/${e}`}` : e;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
53
|
+
function a() {
|
|
54
|
+
return i().currentBusiness.value;
|
|
54
55
|
}
|
|
55
56
|
function c() {
|
|
56
57
|
var e;
|
|
57
|
-
return ((e =
|
|
58
|
+
return ((e = a()) == null ? void 0 : e._id) ?? p;
|
|
58
59
|
}
|
|
59
60
|
function T() {
|
|
60
61
|
var e;
|
|
61
|
-
return ((e =
|
|
62
|
+
return ((e = a()) == null ? void 0 : e.url) ?? void 0;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function b() {
|
|
64
65
|
var e;
|
|
65
|
-
return ((e =
|
|
66
|
+
return ((e = a()) == null ? void 0 : e.name) ?? c();
|
|
66
67
|
}
|
|
67
68
|
function E() {
|
|
68
|
-
return
|
|
69
|
+
return i().currentCountry.value;
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function x() {
|
|
71
72
|
const e = f(d("fmmf:dev")).liveDomain;
|
|
72
73
|
return m(c(), T(), e);
|
|
73
74
|
}
|
|
74
75
|
function P(e) {
|
|
75
76
|
return new Promise((n) => window.setTimeout(n, e));
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function F(e) {
|
|
78
79
|
return e instanceof Error ? e.message : String(e);
|
|
79
80
|
}
|
|
80
81
|
class S extends Error {
|
|
@@ -84,7 +85,7 @@ class S extends Error {
|
|
|
84
85
|
}
|
|
85
86
|
function u() {
|
|
86
87
|
var n;
|
|
87
|
-
return ((n =
|
|
88
|
+
return ((n = i().sessionUser.value) == null ? void 0 : n.token) || h.token || "";
|
|
88
89
|
}
|
|
89
90
|
async function $() {
|
|
90
91
|
let e = u();
|
|
@@ -96,25 +97,25 @@ async function $() {
|
|
|
96
97
|
async function M(e, n = {}) {
|
|
97
98
|
const t = new Request(e, n), r = await $();
|
|
98
99
|
r && t.headers.set("Authorization", r);
|
|
99
|
-
const
|
|
100
|
-
return
|
|
100
|
+
const s = U(E());
|
|
101
|
+
return s && t.headers.set("x-feedme-country", s), fetch(t);
|
|
101
102
|
}
|
|
102
103
|
async function l(e, n = {}) {
|
|
103
104
|
const t = new Headers(n.headers);
|
|
104
105
|
n.body && !t.has("Content-Type") && t.set("Content-Type", "application/json");
|
|
105
|
-
const r = new AbortController(),
|
|
106
|
+
const r = new AbortController(), s = window.setTimeout(() => r.abort(), 15e3);
|
|
106
107
|
try {
|
|
107
|
-
const
|
|
108
|
+
const o = await M(C(e), {
|
|
108
109
|
...n,
|
|
109
110
|
headers: t,
|
|
110
111
|
signal: n.signal ?? r.signal
|
|
111
112
|
});
|
|
112
|
-
if (!
|
|
113
|
-
return
|
|
114
|
-
} catch (
|
|
115
|
-
throw
|
|
113
|
+
if (!o.ok) throw new S(o.status, await o.text());
|
|
114
|
+
return o;
|
|
115
|
+
} catch (o) {
|
|
116
|
+
throw o instanceof DOMException && o.name === "AbortError" ? new Error("Control-plane request timed out") : o;
|
|
116
117
|
} finally {
|
|
117
|
-
window.clearTimeout(
|
|
118
|
+
window.clearTimeout(s);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
async function I(e, n = {}) {
|
|
@@ -125,19 +126,19 @@ async function L(e, n = {}) {
|
|
|
125
126
|
}
|
|
126
127
|
export {
|
|
127
128
|
S as C,
|
|
128
|
-
|
|
129
|
+
x as a,
|
|
129
130
|
M as b,
|
|
130
131
|
I as c,
|
|
131
132
|
C as d,
|
|
132
|
-
|
|
133
|
+
F as e,
|
|
133
134
|
L as f,
|
|
134
|
-
|
|
135
|
+
y as g,
|
|
135
136
|
$ as h,
|
|
136
137
|
E as i,
|
|
137
|
-
|
|
138
|
+
a as j,
|
|
138
139
|
c as k,
|
|
139
140
|
T as l,
|
|
140
|
-
|
|
141
|
+
b as m,
|
|
141
142
|
U as n,
|
|
142
143
|
D as o,
|
|
143
144
|
P as s
|