@feedmepos/mf-miniprogram-v2 0.2.9-dev.5 → 0.2.9-dev.7

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-BynHVSwC.js → ControlPlaneView-Dy9lDiJo.js} +11308 -10525
  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
@@ -1,6 +1,6 @@
1
- import { a as At, e as Nt } from "./index-CIJWcl_6.js";
1
+ import { f as At, e as Nt } from "./index-BnE-gQP_.js";
2
2
  import { computed as L, reactive as Tt } from "vue";
3
- import { h as R, e as it } from "./controlPlane-DR5ykj4d.js";
3
+ import { h as R, e as it } from "./controlPlane-D17RrVO0.js";
4
4
  import { useCoreStore as kt } from "@feedmepos/mf-common";
5
5
  import { g as Ct, c as Mt } from "./_commonjsHelpers-DaMA6jEr.js";
6
6
  const at = [
@@ -1,7 +1,8 @@
1
1
  import { defineComponent as E, resolveComponent as g, openBlock as p, createElementBlock as v, createVNode as M, createElementVNode as x, normalizeClass as P, toDisplayString as w, createCommentVNode as b, createBlock as _, shallowReadonly as c, ref as m } from "vue";
2
- import { a as C } from "./routes-B9oMJsaM.js";
3
- import { c as F, e as $, f as L } from "./controlPlane-DR5ykj4d.js";
4
- function R(e, t) {
2
+ import "./index-BnE-gQP_.js";
3
+ import { a as C } from "./routes-D17DkfPa.js";
4
+ import { c as F, e as $, f as L } from "./controlPlane-D17RrVO0.js";
5
+ function U(e, t) {
5
6
  const n = t.trim().toLowerCase();
6
7
  return e.filter((r) => n ? [r.name, r.description ?? "", r.slot ?? "", ...r.labels ?? []].join(" ").toLowerCase().includes(n) : !0);
7
8
  }
@@ -12,7 +13,7 @@ function S(e) {
12
13
  function z(e) {
13
14
  return e.slot ?? `__ungrouped-component:${e.name}`;
14
15
  }
15
- function U(e) {
16
+ function A(e) {
16
17
  const t = /* @__PURE__ */ new Map(), n = [];
17
18
  for (const o of e) {
18
19
  const a = o.group ?? null;
@@ -29,11 +30,11 @@ function U(e) {
29
30
  }
30
31
  return [...n].sort((o, a) => o === a ? 0 : o === null ? 1 : a === null ? -1 : o.localeCompare(a)).map((o) => ({ group: o, components: [...t.get(o).values()] }));
31
32
  }
32
- function A(e) {
33
+ function G(e) {
33
34
  const t = e.components.length, n = e.components.reduce((r, o) => r + o.styles.length, 0);
34
35
  return `${t} component${t === 1 ? "" : "s"} · ${n} style${n === 1 ? "" : "s"}`;
35
36
  }
36
- function G(e, t) {
37
+ function J(e, t) {
37
38
  const n = /* @__PURE__ */ new Map();
38
39
  let r = 0;
39
40
  for (const l of e) {
@@ -43,16 +44,16 @@ function G(e, t) {
43
44
  const o = [...n.entries()].sort((l, s) => l[0].localeCompare(s[0])).map(([l, s]) => ({ value: l, count: s }));
44
45
  return { total: o.reduce((l, s) => l + s.count, 0), chips: o, unsetCount: r };
45
46
  }
46
- function J(e) {
47
+ function K(e) {
47
48
  const t = e.slot ? ` It is published to fill the ${e.slot} slot.` : "";
48
49
  return `Use the block-swap skill. Put the library module ${e.id} on the page, replacing whatever currently fills its slot.${t} Its source is already in this workspace at src/components/library/${e.name}/. Copy that directory to src/components/blocks/${e.name}/ and point the view there — the library directory is delivered per workspace and is not committed, so a view importing from it builds in the workspace and fails the release build. Tell me which page you changed.`;
49
50
  }
50
- function K(e, t) {
51
+ function T(e, t) {
51
52
  if (!e.includes("</head>")) return e;
52
53
  const n = JSON.stringify(t).replace(/</g, "\\u003c");
53
54
  return e.replace("</head>", `<script>window.__FM_PREVIEW_MODULE__=${n}<\/script></head>`);
54
55
  }
55
- function T(e, t) {
56
+ function W(e, t) {
56
57
  if (!e.includes("</head>")) return e;
57
58
  const n = JSON.stringify(t).replace(/</g, "\\u003c");
58
59
  return e.replace("</head>", `<script>window.__FM_PREVIEW_MODULES__=${n}<\/script></head>`);
@@ -60,7 +61,7 @@ function T(e, t) {
60
61
  const B = { class: "flex min-h-0 flex-1 flex-col items-center justify-center gap-8 p-24 text-center" }, I = {
61
62
  key: 0,
62
63
  class: "m-0 max-w-[46ch] fm-typo-en-body-sm-400 text-portal-text-muted"
63
- }, W = /* @__PURE__ */ E({
64
+ }, Z = /* @__PURE__ */ E({
64
65
  __name: "ModuleEmptyState",
65
66
  props: {
66
67
  icon: {},
@@ -113,7 +114,7 @@ async function N() {
113
114
  h.value = $(e) || "Could not load the preview document.";
114
115
  }
115
116
  }
116
- function Z() {
117
+ function q() {
117
118
  function e(n = !1) {
118
119
  return !n && (u.value !== null || i) ? i ?? Promise.resolve() : (i = Promise.all([D(), N()]).then(() => {
119
120
  }).finally(() => {
@@ -135,13 +136,13 @@ function Z() {
135
136
  };
136
137
  }
137
138
  export {
138
- W as _,
139
- A as a,
140
- K as b,
141
- R as f,
142
- U as g,
143
- T as i,
144
- J as m,
145
- G as s,
146
- Z as u
139
+ Z as _,
140
+ G as a,
141
+ T as b,
142
+ U as f,
143
+ A as g,
144
+ W as i,
145
+ K as m,
146
+ J as s,
147
+ q as u
147
148
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.9-dev.5",
3
+ "version": "0.2.9-dev.7",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,56 +0,0 @@
1
- const c = "69cde0740c0106001ca83dff", s = "0000000074656d706c617465", t = {
2
- dev: {
3
- env: "dev",
4
- liveDomain: "feedmedev.vip",
5
- apiOrigin: "https://api.feedmedev.vip",
6
- workerNamePrefix: "miniprogram-v2-dev",
7
- d1DatabaseName: "miniprogram-v2-dev-metadata",
8
- r2BucketName: "miniprogram-v2-dev-artifacts",
9
- v1Origin: "https://brand.feedmedev.vip"
10
- },
11
- prod: {
12
- env: "prod",
13
- liveDomain: "feedme.vip",
14
- apiOrigin: "https://api.feedme.vip",
15
- workerNamePrefix: "miniprogram-v2-prod",
16
- d1DatabaseName: "miniprogram-v2-prod-metadata",
17
- r2BucketName: "miniprogram-v2-prod-artifacts",
18
- v1Origin: "https://brand.feedme.vip"
19
- }
20
- };
21
- function o(e) {
22
- return e === "dev" || e === "prod";
23
- }
24
- function v(e) {
25
- if (!o(e))
26
- throw new Error(`MINIPROGRAM_ENV must be 'dev' or 'prod', got ${JSON.stringify(e)}`);
27
- return t[e];
28
- }
29
- function f(e) {
30
- const r = e.toLowerCase().replace(/^fmmf:/, "");
31
- return r === "prod" || r === "production" ? "prod" : "dev";
32
- }
33
- const a = /^[a-f0-9]{24}$/;
34
- function d(e) {
35
- return a.test(e);
36
- }
37
- function g(e = crypto.randomUUID()) {
38
- const r = m("prj", e, 24);
39
- return r.length === 27 ? r : r.padEnd(27, "0");
40
- }
41
- function u(e) {
42
- if (!d(e)) throw new Error(`Invalid business id: ${e}`);
43
- return `prj${e}`;
44
- }
45
- function m(e, r, n) {
46
- const i = r.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replaceAll("-", "").slice(0, n);
47
- return `${e}${i || Date.now().toString(36)}`;
48
- }
49
- export {
50
- c as D,
51
- s as T,
52
- v as a,
53
- f as e,
54
- u as l,
55
- g as m
56
- };