@feedmepos/mf-miniprogram-v2 0.2.9-dev.1 → 0.2.9-dev.10

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.
Files changed (26) hide show
  1. package/dist/{App-dgkwfArX.js → App-DvS0M-h7.js} +2 -2
  2. package/dist/{BrandFontPicker-CF3O3meB.js → BrandFontPicker-D8OXBoHt.js} +1 -1
  3. package/dist/{BrandKitView-CdLMBZKd.js → BrandKitView-lDQ2s5BD.js} +2 -2
  4. package/dist/{ControlPlaneView-UWaFmU8e.js → ControlPlaneView-AkjSV1Ik.js} +11462 -10561
  5. package/dist/{EcosystemView-DHtS5IDN.js → EcosystemView-BMleE1Oz.js} +5 -5
  6. package/dist/{LegacyWorkspaceEntry-lEMtmdIe.js → LegacyWorkspaceEntry-DBIDEJNj.js} +1 -1
  7. package/dist/{MobileProjectDialog-Bt6r-bHC.js → MobileProjectDialog-B3fhhssO.js} +3 -3
  8. package/dist/{MobileProjectsView-Dvj7YKlO.js → MobileProjectsView-BQ3f5seS.js} +7 -6
  9. package/dist/{ModuleCenterView-t8rhd419.js → ModuleCenterView-_yy5EJVi.js} +1 -1
  10. package/dist/{ModuleDetailView-CcqJ4Hfu.js → ModuleDetailView-oe44R9vG.js} +1 -1
  11. package/dist/{PagesView-D0RMTyqw.js → PagesView-CRJ9PifL.js} +1 -1
  12. package/dist/{PortalSettingsView-B68s6fiS.js → PortalSettingsView-CP87BEmb.js} +3 -3
  13. package/dist/{TemplateCenterView-Cpr39Y5S.js → TemplateCenterView-Kl3rlE4I.js} +5 -4
  14. package/dist/{WorkspaceEntryView-gM7RX5BV.js → WorkspaceEntryView-hi6v5jO2.js} +1 -1
  15. package/dist/app.js +11 -11
  16. package/dist/{controlPlane-DR5ykj4d.js → controlPlane-D17RrVO0.js} +1 -1
  17. package/dist/index-BnE-gQP_.js +81 -0
  18. package/dist/{localPreference-Do4VKtxT.js → localPreference-cX7JCvEc.js} +13 -12
  19. package/dist/package.json +1 -1
  20. package/dist/{portalContext-BeKN8Bcx.js → portalContext-BWcPaz4H.js} +17 -16
  21. package/dist/{routes-B9oMJsaM.js → routes-D17DkfPa.js} +1 -0
  22. package/dist/style.css +1 -1
  23. package/dist/{useBrandKit-MkgkEuIX.js → useBrandKit-C8qxHPWH.js} +2 -2
  24. package/dist/{useModuleCatalog-Daw8KA--.js → useModuleCatalog-D_F-vVPX.js} +21 -20
  25. package/package.json +1 -1
  26. package/dist/index-CIJWcl_6.js +0 -56
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.9-dev.1",
3
+ "version": "0.2.9-dev.10",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,47 +1,48 @@
1
- import { a as b } from "./routes-B9oMJsaM.js";
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-DR5ykj4d.js";
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(), r = f(() => {
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 n = 0, o = null;
14
+ let r = 0, o = null;
14
15
  async function m() {
15
- const t = ++n;
16
+ const t = ++r;
16
17
  o == null || o.abort(), o = new AbortController();
17
- const u = r.value;
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 === n && (s.value = l);
24
+ t === r && (s.value = l);
24
25
  } catch (l) {
25
- t === n && (i.value = h(l));
26
+ t === r && (i.value = h(l));
26
27
  } finally {
27
- t === n && (a.value = !1);
28
+ t === r && (a.value = !1);
28
29
  }
29
30
  }
30
- return C([r, () => e.currentCountry.value], m, { immediate: !0 }), w(() => {
31
- n++, o == null || o.abort();
32
- }), { businessId: r, businessName: v, context: s, loading: a, error: i, refresh: m };
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 R() {
36
+ function j() {
36
37
  const e = P();
37
38
  return y(p, e), e;
38
39
  }
39
- function j() {
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
- R as p,
46
- j as u
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