@feedmepos/mf-miniprogram-v2 0.2.8-dev.6 → 0.2.8-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.
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as b, computed as p, ref as w, onMounted as D, onScopeDispose as A, resolveComponent as B, openBlock as c, createElementBlock as a, createElementVNode as C, toDisplayString as l, unref as r, Fragment as Z, renderList as E, normalizeStyle as U, createVNode as d, withCtx as H, createTextVNode as g, createCommentVNode as G } from "vue";
2
2
  import { useRoute as S } from "vue-router";
3
- import { a as O } from "./routes-i1Lpq1LK.js";
3
+ import { a as O } from "./routes-BvzMt5vp.js";
4
4
  import { a as j, c as N, e as q } from "./controlPlane-DR5ykj4d.js";
5
- import { u as I } from "./portalContext-BKjPuVfn.js";
5
+ import { u as I } from "./portalContext-RYc53ma3.js";
6
6
  import { p as u } from "./portalNavigation-L5VwKlps.js";
7
7
  import { i as R, u as T } from "./useBrandKit-CKn1fm2o.js";
8
8
  import { _ as K } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as I, computed as p, openBlock as a, createElementBlock as l, normalizeClass as J, createCommentVNode as j, ref as b, watch as O, resolveComponent as C, createElementVNode as w, createBlock as z, toDisplayString as x, Fragment as V, renderList as B, createVNode as W, onMounted as Z, withCtx as U } from "vue";
2
2
  import { m as q } from "./index-CIJWcl_6.js";
3
3
  import { c as T, e as E, j as Q } from "./controlPlane-DR5ykj4d.js";
4
- import { a as g } from "./routes-i1Lpq1LK.js";
4
+ import { a as g } from "./routes-BvzMt5vp.js";
5
5
  import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const _ = ["miniprogram-vue"];
7
7
  function Me(n) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as L, ref as w, computed as C, h as o, withModifiers as j, onMounted as R, onScopeDispose as V, resolveComponent as S, openBlock as r, createElementBlock as n, createElementVNode as a, createTextVNode as I, toDisplayString as M, createCommentVNode as z, createBlock as q, createVNode as _, unref as h } from "vue";
2
2
  import { useRoute as D, useRouter as A } from "vue-router";
3
3
  import { components as T, useDialog as $ } from "@feedmepos/ui-library";
4
- import { a as E } from "./routes-i1Lpq1LK.js";
4
+ import { a as E } from "./routes-BvzMt5vp.js";
5
5
  import { c as O, e as U } from "./controlPlane-DR5ykj4d.js";
6
- import { u as Y } from "./portalContext-BKjPuVfn.js";
6
+ import { u as Y } from "./portalContext-RYc53ma3.js";
7
7
  import { w as d } from "./portalNavigation-L5VwKlps.js";
8
- import { p as G, M as H } from "./MobileProjectDialog-KzNEj-fC.js";
8
+ import { p as G, M as H } from "./MobileProjectDialog-CwXuQgpj.js";
9
9
  import { _ as k } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
10
10
  import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const K = { class: "portal-page" }, Q = { class: "portal-page-inner" }, W = { class: "portal-page-heading" }, X = {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as N, openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as u, createCommentVNode as q, ref as V, watch as R, computed as h, onMounted as z, resolveComponent as x, createVNode as v, unref as c, Fragment as C, renderList as $, normalizeClass as D, createBlock as k, withCtx as G } from "vue";
2
2
  import { useRoute as K, useRouter as O } from "vue-router";
3
3
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { u as P, c as U, f as j, _ as b, t as H } from "./useModuleCatalog-u7EWW11V.js";
4
+ import { u as P, c as U, f as j, _ as b, t as H } from "./useModuleCatalog-D73n52U3.js";
5
5
  const J = { class: "card" }, Q = { class: "card__head" }, W = { class: "card__name fm-typo-en-body-md-600 text-portal-text-primary" }, X = { class: "card__version fm-typo-en-body-sm-400 text-portal-text-muted" }, Y = { class: "card__description fm-typo-en-body-sm-400 text-portal-text-muted" }, Z = { class: "card__tags" }, ee = { class: "card__tag card__tag--tier fm-typo-en-body-sm-600" }, te = {
6
6
  key: 0,
7
7
  class: "card__tag card__tag--slot fm-typo-en-body-sm-400"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as M, computed as u, watch as T, resolveComponent as g, openBlock as n, createElementBlock as l, createElementVNode as e, toDisplayString as i, createCommentVNode as _, Fragment as I, renderList as S, createVNode as k, onMounted as B, unref as d, withCtx as L, createBlock as v } from "vue";
2
2
  import { useRoute as N, useRouter as P } from "vue-router";
3
- import { m as q, i as A, u as F, _ as w } from "./useModuleCatalog-u7EWW11V.js";
3
+ import { m as q, i as A, u as F, _ as w } from "./useModuleCatalog-D73n52U3.js";
4
4
  import { useDialog as V } from "@feedmepos/ui-library";
5
5
  import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const R = { class: "detail" }, j = { class: "detail__head" }, z = { class: "detail__name fm-typo-en-title-sm-600 text-portal-text-primary" }, K = { class: "detail__version fm-typo-en-body-md-400 text-portal-text-muted" }, O = {
@@ -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-BKjPuVfn.js";
3
+ import { u as g } from "./portalContext-RYc53ma3.js";
4
4
  import { w as f } from "./portalNavigation-L5VwKlps.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,7 +3,7 @@ import { useRoute as N } from "vue-router";
3
3
  import { e as _, a as $ } from "./index-CIJWcl_6.js";
4
4
  import { m as B, e as E } from "./controlPlane-DR5ykj4d.js";
5
5
  import { useCoreStore as F } from "@feedmepos/mf-common";
6
- import { u as U } from "./portalContext-BKjPuVfn.js";
6
+ import { u as U } from "./portalContext-RYc53ma3.js";
7
7
  import { b as V } from "./portalNavigation-L5VwKlps.js";
8
8
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const L = { class: "portal-page" }, R = { class: "portal-page-inner settings-page" }, T = { class: "portal-page-heading" }, D = ["href"], H = {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, ref as n, resolveComponent as A, openBlock as s, createBlock as S, withCtx as J, createElementVNode as a, toDisplayString as p, createVNode as u, createElementBlock as o, createCommentVNode as y, computed as X, Fragment as D, createTextVNode as x, onMounted as Y, renderList as G, normalizeClass as Z } from "vue";
2
- import { a as T } from "./routes-i1Lpq1LK.js";
2
+ import { a as T } from "./routes-BvzMt5vp.js";
3
3
  import { useDialog as ee } from "@feedmepos/ui-library";
4
4
  import { useRouter as te } from "vue-router";
5
5
  import { c as F, e as I } from "./controlPlane-DR5ykj4d.js";
@@ -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-BKjPuVfn.js";
3
+ import { u as l } from "./portalContext-RYc53ma3.js";
4
4
  import { w as m, a as f } from "./portalNavigation-L5VwKlps.js";
5
5
  const _ = {
6
6
  class: "portal-loading",
@@ -1,4 +1,4 @@
1
- import { a as u } from "./routes-i1Lpq1LK.js";
1
+ import { a as u } from "./routes-BvzMt5vp.js";
2
2
  import { ref as o } from "vue";
3
3
  import { c as a } from "./controlPlane-DR5ykj4d.js";
4
4
  function l(e, t) {
package/dist/app.js CHANGED
@@ -4,24 +4,24 @@ const o = [
4
4
  path: "/platforms/mobile",
5
5
  name: "miniprogram-v2-mobile-projects",
6
6
  meta: { title: "Mobile" },
7
- component: () => import("./MobileProjectsView-C0Guwuo_.js")
7
+ component: () => import("./MobileProjectsView-CmL6GQYo.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-hqiZRHIC.js")
14
+ component: () => import("./EcosystemView-CseWybDf.js")
15
15
  },
16
16
  {
17
17
  path: "/workspace",
18
18
  name: "miniprogram-v2-control",
19
- component: () => import("./WorkspaceEntryView-BMrZWby1.js")
19
+ component: () => import("./WorkspaceEntryView-CC1214ig.js")
20
20
  },
21
21
  {
22
22
  path: "/p/:projectId/:view(workspace|releases|sessions)?",
23
23
  name: "miniprogram-v2-project",
24
- component: () => import("./ControlPlaneView-Bcsl1c9x.js")
24
+ component: () => import("./ControlPlaneView-DzOE4Rp5.js")
25
25
  },
26
26
  {
27
27
  path: "/brand-kit",
@@ -33,13 +33,13 @@ const o = [
33
33
  path: "/pages",
34
34
  name: "miniprogram-v2-pages",
35
35
  meta: { title: "Pages" },
36
- component: () => import("./PagesView-3KDcHMIh.js")
36
+ component: () => import("./PagesView-3ETr8RbI.js")
37
37
  },
38
38
  {
39
39
  path: "/settings",
40
40
  name: "miniprogram-v2-settings",
41
41
  meta: { title: "Settings" },
42
- component: () => import("./PortalSettingsView-BVgkeXpL.js")
42
+ component: () => import("./PortalSettingsView-DAmx9m4y.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: "Module library" },
56
- component: () => import("./ModuleCenterView-CY8o1GJG.js")
56
+ component: () => import("./ModuleCenterView-E6ne4DiL.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: "Module library" },
64
- component: () => import("./ModuleDetailView-BuZgg6e0.js")
64
+ component: () => import("./ModuleDetailView-bTcegMeT.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-UQ03rcwn.js")
75
+ component: () => import("./TemplateCenterView-D0Gn07_x.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-CFKKclWT.js")), i = t(() => import("./LegacyWorkspaceEntry-lEMtmdIe.js"));
81
+ ], r = {}, a = t(() => import("./App-BXXNMcyn.js")), i = t(() => import("./LegacyWorkspaceEntry-lEMtmdIe.js"));
82
82
  export {
83
83
  a as FmApp,
84
84
  i as MiniprogramWorkspace,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.8-dev.6",
3
+ "version": "0.2.8-dev.7",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,4 +1,4 @@
1
- import { a as b } from "./routes-i1Lpq1LK.js";
1
+ import { a as b } from "./routes-BvzMt5vp.js";
2
2
  import { useCoreStore as d } from "@feedmepos/mf-common";
3
3
  import { c as g, e as h } from "./controlPlane-DR5ykj4d.js";
4
4
  import { provide as y, computed as f, ref as c, watch as C, onScopeDispose as w, inject as x } from "vue";
@@ -16,6 +16,7 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, i = {
16
16
  changes: (e, s, a, p = !1) => `${i.session(e, s, a)}/changes${p ? "?refresh=1" : ""}`,
17
17
  checkpoints: (e, s, a) => `${i.session(e, s, a)}/checkpoints`,
18
18
  aiBillingPreflight: (e, s, a) => `${i.session(e, s, a)}/ai-billing/preflight`,
19
+ aiTokenBalance: (e, s) => `${t(e, s)}/ai-billing/balance`,
19
20
  restoreCheckpoint: (e, s, a, p) => `${i.checkpoints(e, s, a)}/${p}/restore`,
20
21
  previewBridgeTicket: (e, s, a) => `${i.session(e, s, a)}/preview-bridge/ticket`,
21
22
  previewBridgeSocket: (e, s, a) => `${i.session(e, s, a)}/preview-bridge/socket`,