@feedmepos/mf-miniprogram-v2 0.2.2-dev.26 → 0.2.2-dev.28

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 (27) hide show
  1. package/dist/{App-CfZCp6Re.js → App-DHpF0JMk.js} +65 -66
  2. package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-DlQnLlND.js +231 -0
  3. package/dist/{BrandFontPicker-kQKWf1hL.js → BrandFontPicker-BxPN0_Bo.js} +1 -1
  4. package/dist/{BrandKitView-RaUWE69b.js → BrandKitView-CGdw34dr.js} +2 -2
  5. package/dist/{ControlPlaneView-BBma4r2B.js → ControlPlaneView-Bpj99Skz.js} +5728 -5487
  6. package/dist/{EcosystemView-DgAgcFmd.js → EcosystemView-ChcCixWy.js} +4 -4
  7. package/dist/MobileProjectsView-C9o2BHfM.js +371 -0
  8. package/dist/ModuleCenterView-DLrDO93Q.js +165 -0
  9. package/dist/{ModuleDetailView-CSfMF0Uo.js → ModuleDetailView-Da3qvz_8.js} +1 -1
  10. package/dist/{PagesView-B1uTuHsK.js → PagesView-B_86Haw-.js} +1 -1
  11. package/dist/{PortalSettingsView-CUOL2tdF.js → PortalSettingsView-CiHYX-tw.js} +2 -2
  12. package/dist/{TemplateCenterView-DqZLthqh.js → TemplateCenterView-C2N9ddWj.js} +2 -2
  13. package/dist/{WorkspaceEntryView-BNl0REzn.js → WorkspaceEntryView-BAxGOWe5.js} +1 -1
  14. package/dist/{adminAccess-oXC0xjvK.js → adminAccess-Bzpn1nIn.js} +2 -2
  15. package/dist/app.js +11 -11
  16. package/dist/{controlPlane-sXaC6pAh.js → controlPlane--Q2ulw38.js} +7 -7
  17. package/dist/package.json +1 -1
  18. package/dist/{portalContext-DV-6uUwp.js → portalContext-Bx02hCyg.js} +2 -2
  19. package/dist/{routes-CeuodIgg.js → routes-CTQTYdcO.js} +33 -27
  20. package/dist/style.css +1 -1
  21. package/dist/{useBrandKit-CkdPQRE-.js → useBrandKit-tjDGJeZ6.js} +1 -1
  22. package/dist/{useModuleCatalog-Cep-pzWO.js → useModuleCatalog-DRtQzNvy.js} +2 -2
  23. package/package.json +1 -1
  24. package/dist/AppTemplatePicker-CNJ6kIJk.js +0 -237
  25. package/dist/MobileProjectsView-D-tXKwr7.js +0 -313
  26. package/dist/ModuleCenterView-C6mCPATr.js +0 -147
  27. package/dist/templatePickerFlag-CosY_15R.js +0 -13
@@ -1,147 +0,0 @@
1
- import { defineComponent as F, openBlock as e, createElementBlock as n, createElementVNode as o, toDisplayString as d, createCommentVNode as k, ref as w, computed as m, onMounted as q, resolveComponent as f, createVNode as p, unref as i, Fragment as v, renderList as b, normalizeClass as A, createBlock as y, withCtx as R } from "vue";
2
- import { useRoute as z } from "vue-router";
3
- import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { u as D, c as G, f as K, _ as h, t as O } from "./useModuleCatalog-Cep-pzWO.js";
5
- const P = { class: "card" }, U = { class: "card__head" }, j = { class: "card__name fm-typo-en-body-md-600 text-portal-text-primary" }, H = { class: "card__version fm-typo-en-body-sm-400 text-portal-text-muted" }, J = { class: "card__description fm-typo-en-body-sm-400 text-portal-text-muted" }, Q = { class: "card__tags" }, W = { class: "card__tag card__tag--tier fm-typo-en-body-sm-600" }, X = {
6
- key: 0,
7
- class: "card__tag card__tag--slot fm-typo-en-body-sm-400"
8
- }, Y = /* @__PURE__ */ F({
9
- __name: "ModuleCard",
10
- props: {
11
- entry: {}
12
- },
13
- setup(l) {
14
- return (s, g) => (e(), n("article", P, [
15
- o("header", U, [
16
- o("h3", j, d(l.entry.name), 1),
17
- o("span", H, d(l.entry.version), 1)
18
- ]),
19
- o("p", J, d(l.entry.description || l.entry.id), 1),
20
- o("footer", Q, [
21
- o("span", W, d(l.entry.category), 1),
22
- l.entry.slot ? (e(), n("span", X, d(l.entry.slot), 1)) : k("", !0)
23
- ])
24
- ]));
25
- }
26
- }), Z = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-2fbfd7b3"]]), ee = { class: "shell" }, te = { class: "centre" }, oe = { class: "centre__inner" }, ne = { class: "centre__head" }, se = {
27
- key: 0,
28
- class: "centre__filters"
29
- }, ae = { class: "centre__facet-label fm-typo-en-body-sm-600 text-portal-text-muted" }, le = { class: "centre__chips" }, re = ["aria-pressed", "onClick"], ie = {
30
- key: 1,
31
- class: "centre__note fm-typo-en-body-md-400"
32
- }, de = {
33
- key: 6,
34
- class: "centre__grid"
35
- }, ce = /* @__PURE__ */ F({
36
- __name: "ModuleCenterView",
37
- setup(l) {
38
- const s = D(), g = z(), u = w(""), c = w([]), V = m(() => G(s.entries.value ?? [])), x = m(() => K(s.entries.value ?? [], u.value, c.value)), N = m(() => u.value.trim().length > 0 || c.value.length > 0), C = m(() => {
39
- var r;
40
- return (((r = s.entries.value) == null ? void 0 : r.length) ?? 0) > 0;
41
- }), B = {
42
- tier: "Type",
43
- slot: "Slot"
44
- };
45
- function $(r) {
46
- return c.value.some((a) => a.kind === r.kind && a.value === r.value);
47
- }
48
- function L(r) {
49
- c.value = O(c.value, r);
50
- }
51
- function M() {
52
- u.value = "", c.value = [];
53
- }
54
- return q(() => s.load()), (r, a) => {
55
- const E = f("FmButton"), S = f("FmTextField"), I = f("RouterLink");
56
- return e(), n("div", ee, [
57
- o("div", te, [
58
- o("div", oe, [
59
- o("header", ne, [
60
- a[3] || (a[3] = o("div", null, [
61
- o("h2", { class: "centre__title fm-typo-en-title-sm-600 text-portal-text-primary" }, "Module library"),
62
- o("p", { class: "centre__subtitle fm-typo-en-body-md-400 text-portal-text-muted" }, " Modules the agent can put on a page. Published from the platform, not from your app. ")
63
- ], -1)),
64
- p(E, {
65
- size: "md",
66
- variant: "tertiary",
67
- icon: "refresh",
68
- onClick: a[0] || (a[0] = (t) => i(s).load(!0))
69
- })
70
- ]),
71
- C.value ? (e(), n("div", se, [
72
- p(S, {
73
- modelValue: u.value,
74
- "onUpdate:modelValue": a[1] || (a[1] = (t) => u.value = t),
75
- label: "Search",
76
- placeholder: "name, slot, or label"
77
- }, null, 8, ["modelValue"]),
78
- (e(!0), n(v, null, b(V.value, (t) => (e(), n("div", {
79
- key: t.kind,
80
- class: "centre__facet"
81
- }, [
82
- o("span", ae, d(B[t.kind]), 1),
83
- o("div", le, [
84
- (e(!0), n(v, null, b(t.values, (_) => (e(), n("button", {
85
- key: _,
86
- type: "button",
87
- class: A(["centre__chip fm-typo-en-body-sm-400", { "centre__chip--on": $({ kind: t.kind, value: _ }) }]),
88
- "aria-pressed": $({ kind: t.kind, value: _ }),
89
- onClick: (ue) => L({ kind: t.kind, value: _ })
90
- }, d(_), 11, re))), 128))
91
- ])
92
- ]))), 128)),
93
- N.value ? (e(), n("button", {
94
- key: 0,
95
- type: "button",
96
- class: "centre__clear fm-typo-en-body-sm-600",
97
- onClick: M
98
- }, " Clear filters ")) : k("", !0)
99
- ])) : k("", !0),
100
- i(s).entries.value === null ? (e(), n("p", ie, "Loading…")) : i(s).loadError.value ? (e(), y(h, {
101
- key: 2,
102
- icon: "error_outline",
103
- tone: "error",
104
- title: "Could not load the module library",
105
- message: i(s).loadError.value,
106
- "action-label": "Try again",
107
- onAction: a[2] || (a[2] = (t) => i(s).load(!0))
108
- }, null, 8, ["message"])) : i(s).unpublished.value ? (e(), y(h, {
109
- key: 3,
110
- icon: "widgets",
111
- title: "No module library has been published yet",
112
- message: "Modules are published from the platform, separately from merging them. Once one is published it appears here, and every workspace started afterwards receives it."
113
- })) : C.value ? x.value.length ? (e(), n("ul", de, [
114
- (e(!0), n(v, null, b(x.value, (t) => (e(), n("li", {
115
- key: t.id
116
- }, [
117
- p(I, {
118
- class: "centre__link",
119
- to: { name: "miniprogram-v2-module-detail", params: { name: t.name }, query: i(g).query }
120
- }, {
121
- default: R(() => [
122
- p(Z, { entry: t }, null, 8, ["entry"])
123
- ]),
124
- _: 2
125
- }, 1032, ["to"])
126
- ]))), 128))
127
- ])) : (e(), y(h, {
128
- key: 5,
129
- icon: "search_off",
130
- title: "No module matches these filters",
131
- "action-label": "Clear filters",
132
- onAction: M
133
- })) : (e(), y(h, {
134
- key: 4,
135
- icon: "widgets",
136
- title: "The module library is empty",
137
- message: "It has been published, but holds no modules. Nothing here is available to put on a page yet."
138
- }))
139
- ])
140
- ])
141
- ]);
142
- };
143
- }
144
- }), he = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-644d1ae5"]]);
145
- export {
146
- he as default
147
- };
@@ -1,13 +0,0 @@
1
- const t = "templatePicker";
2
- function a() {
3
- if (typeof window > "u") return !1;
4
- try {
5
- const e = new URLSearchParams(window.location.search).get(t);
6
- return e !== null && e !== "0" && e !== "false";
7
- } catch {
8
- return !1;
9
- }
10
- }
11
- export {
12
- a as t
13
- };