@feedmepos/mf-miniprogram-v2 0.2.9-dev.4 → 0.2.9-dev.6
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-dgkwfArX.js → App-DvS0M-h7.js} +2 -2
- package/dist/{BrandFontPicker-CF3O3meB.js → BrandFontPicker-D8OXBoHt.js} +1 -1
- package/dist/{BrandKitView-CdLMBZKd.js → BrandKitView-lDQ2s5BD.js} +2 -2
- package/dist/{ControlPlaneView-D36iwBu5.js → ControlPlaneView-rIjaJALN.js} +11417 -10639
- package/dist/{EcosystemView-DHtS5IDN.js → EcosystemView-BMleE1Oz.js} +5 -5
- package/dist/{LegacyWorkspaceEntry-lEMtmdIe.js → LegacyWorkspaceEntry-DBIDEJNj.js} +1 -1
- package/dist/{MobileProjectDialog-Bt6r-bHC.js → MobileProjectDialog-B3fhhssO.js} +3 -3
- package/dist/{MobileProjectsView-Dvj7YKlO.js → MobileProjectsView-BQ3f5seS.js} +7 -6
- package/dist/{ModuleCenterView-t8rhd419.js → ModuleCenterView-_yy5EJVi.js} +1 -1
- package/dist/{ModuleDetailView-CcqJ4Hfu.js → ModuleDetailView-oe44R9vG.js} +1 -1
- package/dist/{PagesView-D0RMTyqw.js → PagesView-CRJ9PifL.js} +1 -1
- package/dist/{PortalSettingsView-B68s6fiS.js → PortalSettingsView-CP87BEmb.js} +3 -3
- package/dist/{TemplateCenterView-Cpr39Y5S.js → TemplateCenterView-Kl3rlE4I.js} +5 -4
- package/dist/{WorkspaceEntryView-gM7RX5BV.js → WorkspaceEntryView-hi6v5jO2.js} +1 -1
- package/dist/app.js +11 -11
- package/dist/{controlPlane-DR5ykj4d.js → controlPlane-D17RrVO0.js} +1 -1
- package/dist/index-BnE-gQP_.js +81 -0
- package/dist/{localPreference-Do4VKtxT.js → localPreference-cX7JCvEc.js} +13 -12
- package/dist/package.json +1 -1
- package/dist/{portalContext-BeKN8Bcx.js → portalContext-BWcPaz4H.js} +17 -16
- package/dist/{routes-B9oMJsaM.js → routes-D17DkfPa.js} +1 -0
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-MkgkEuIX.js → useBrandKit-C8qxHPWH.js} +2 -2
- package/dist/{useModuleCatalog-Daw8KA--.js → useModuleCatalog-D_F-vVPX.js} +21 -20
- package/package.json +1 -1
- package/dist/index-CIJWcl_6.js +0 -56
package/dist/package.json
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index-BnE-gQP_.js";
|
|
2
|
+
import { a as b } from "./routes-D17DkfPa.js";
|
|
2
3
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
3
|
-
import { c as g, e as h } from "./controlPlane-
|
|
4
|
+
import { c as g, e as h } from "./controlPlane-D17RrVO0.js";
|
|
4
5
|
import { provide as y, computed as f, ref as c, watch as C, onScopeDispose as w, inject as x } from "vue";
|
|
5
6
|
function P() {
|
|
6
|
-
const e = d(),
|
|
7
|
+
const e = d(), n = f(() => {
|
|
7
8
|
var t;
|
|
8
9
|
return ((t = e.currentBusiness.value) == null ? void 0 : t._id) ?? null;
|
|
9
10
|
}), v = f(() => {
|
|
10
11
|
var t;
|
|
11
12
|
return ((t = e.currentBusiness.value) == null ? void 0 : t.name) ?? "Your business";
|
|
12
13
|
}), s = c(null), a = c(!1), i = c(null);
|
|
13
|
-
let
|
|
14
|
+
let r = 0, o = null;
|
|
14
15
|
async function m() {
|
|
15
|
-
const t = ++
|
|
16
|
+
const t = ++r;
|
|
16
17
|
o == null || o.abort(), o = new AbortController();
|
|
17
|
-
const u =
|
|
18
|
+
const u = n.value;
|
|
18
19
|
if (i.value = null, s.value = null, a.value = !!u, !!u)
|
|
19
20
|
try {
|
|
20
21
|
const l = await g(b.portalContext(u), {
|
|
21
22
|
signal: AbortSignal.any([o.signal, AbortSignal.timeout(15e3)])
|
|
22
23
|
});
|
|
23
|
-
t ===
|
|
24
|
+
t === r && (s.value = l);
|
|
24
25
|
} catch (l) {
|
|
25
|
-
t ===
|
|
26
|
+
t === r && (i.value = h(l));
|
|
26
27
|
} finally {
|
|
27
|
-
t ===
|
|
28
|
+
t === r && (a.value = !1);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
return C([
|
|
31
|
-
|
|
32
|
-
}), { businessId:
|
|
31
|
+
return C([n, () => e.currentCountry.value], m, { immediate: !0 }), w(() => {
|
|
32
|
+
r++, o == null || o.abort();
|
|
33
|
+
}), { businessId: n, businessName: v, context: s, loading: a, error: i, refresh: m };
|
|
33
34
|
}
|
|
34
35
|
const p = Symbol("miniprogram-portal");
|
|
35
|
-
function
|
|
36
|
+
function j() {
|
|
36
37
|
const e = P();
|
|
37
38
|
return y(p, e), e;
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function D() {
|
|
40
41
|
const e = x(p);
|
|
41
42
|
if (!e) throw new Error("Portal views must be mounted inside the Miniprogram shell");
|
|
42
43
|
return e;
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
j as p,
|
|
47
|
+
D as u
|
|
47
48
|
};
|
|
@@ -8,6 +8,7 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, i = {
|
|
|
8
8
|
session: (e, s, a) => `${t(e, s)}/sessions/${a}`,
|
|
9
9
|
messages: (e, s, a) => `${i.session(e, s, a)}/messages`,
|
|
10
10
|
startStatus: (e, s, a) => `${i.session(e, s, a)}/start-status`,
|
|
11
|
+
sessionPreviewUrl: (e, s, a) => `${i.session(e, s, a)}/preview-url`,
|
|
11
12
|
/** Server-side render of one library module, proxied to the session's own
|
|
12
13
|
* sandbox — what the swap panel's candidate cards fetch instead of the
|
|
13
14
|
* browser reaching the public preview host directly (see
|