@feedmepos/mf-common 1.29.31 → 1.29.32
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/{CustomAttributesForm-d3d73f69.js → CustomAttributesForm-cd901f19.js} +1 -1
- package/dist/{ItemSelector-2024413b.js → ItemSelector-14702b51.js} +3550 -3536
- package/dist/{RestaurantSelector-eda0b174.js → RestaurantSelector-8d06772a.js} +1 -1
- package/dist/{app-34901a67.js → app-d03930d2.js} +45 -10
- package/dist/app.js +2 -2
- package/dist/components/ItemSelector.vue.d.ts.map +1 -1
- package/dist/i18n.d.ts +35 -0
- package/dist/i18n.d.ts.map +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/vite-preset.d.ts.map +1 -1
- package/dist/vite-preset.js +49 -49
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-preset.d.ts","sourceRoot":"","sources":["../vite-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAwB,UAAU,EAAE,MAAM,MAAM,CAAA;AAKvE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAE9B;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAE9B;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5C;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAExC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAEhC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,WAClB,UAAU,qBACC,SAAS,YACnB,kBAAkB,KAC1B,QAAQ,UAAU,
|
|
1
|
+
{"version":3,"file":"vite-preset.d.ts","sourceRoot":"","sources":["../vite-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAwB,UAAU,EAAE,MAAM,MAAM,CAAA;AAKvE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAE9B;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAE9B;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5C;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAExC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAEhC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,WAClB,UAAU,qBACC,SAAS,YACnB,kBAAkB,KAC1B,QAAQ,UAAU,CAiNpB,CAAA"}
|
package/dist/vite-preset.js
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { readFileSync as
|
|
2
|
-
import { resolve as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
return new RegExp(`^(${
|
|
6
|
-
},
|
|
1
|
+
import { readFileSync as y } from "fs";
|
|
2
|
+
import { resolve as v } from "path";
|
|
3
|
+
const z = (l) => {
|
|
4
|
+
const p = l.join("|");
|
|
5
|
+
return new RegExp(`^(${p})(\\/.*)?$`);
|
|
6
|
+
}, O = ({
|
|
7
7
|
externals: l
|
|
8
8
|
}) => {
|
|
9
|
-
const
|
|
9
|
+
const p = z(l);
|
|
10
10
|
return {
|
|
11
11
|
name: "externalize",
|
|
12
12
|
setup(e) {
|
|
13
|
-
e.onResolve({ filter:
|
|
13
|
+
e.onResolve({ filter: p }, (t) => ({
|
|
14
14
|
path: t.path,
|
|
15
15
|
namespace: "externalize"
|
|
16
|
-
})), e.onLoad({ filter:
|
|
16
|
+
})), e.onLoad({ filter: p }, () => ({
|
|
17
17
|
contents: ""
|
|
18
18
|
}));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
},
|
|
22
|
-
const
|
|
23
|
-
`${
|
|
21
|
+
}, D = (l) => {
|
|
22
|
+
const p = "/@id/", e = new RegExp(
|
|
23
|
+
`${p}(${l.join("|")})`,
|
|
24
24
|
"g"
|
|
25
25
|
);
|
|
26
26
|
return {
|
|
27
27
|
name: "vite-plugin-remove-prefix",
|
|
28
28
|
transform: (t) => e.test(t) ? t.replace(
|
|
29
29
|
e,
|
|
30
|
-
(
|
|
30
|
+
(n, c) => c
|
|
31
31
|
) : t
|
|
32
32
|
};
|
|
33
|
-
},
|
|
34
|
-
const { externals:
|
|
33
|
+
}, k = (l) => {
|
|
34
|
+
const { externals: p } = l;
|
|
35
35
|
return {
|
|
36
36
|
name: "vite-plugin-externalize",
|
|
37
37
|
enforce: "pre",
|
|
38
38
|
apply: "serve",
|
|
39
39
|
config: (e) => {
|
|
40
40
|
var t;
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
)),
|
|
41
|
+
const n = { ...e };
|
|
42
|
+
return n.optimizeDeps && n.optimizeDeps.esbuildOptions && ((t = n.optimizeDeps.esbuildOptions).plugins ?? (t.plugins = []), n.optimizeDeps.esbuildOptions.plugins.push(
|
|
43
|
+
O({ externals: p })
|
|
44
|
+
)), n;
|
|
45
45
|
},
|
|
46
46
|
configResolved: (e) => {
|
|
47
47
|
if (e.optimizeDeps && e.optimizeDeps.include) {
|
|
48
|
-
const
|
|
49
|
-
(c) => !
|
|
48
|
+
const n = e.optimizeDeps.include.filter(
|
|
49
|
+
(c) => !p.includes(c)
|
|
50
50
|
);
|
|
51
|
-
e.optimizeDeps.include =
|
|
51
|
+
e.optimizeDeps.include = n;
|
|
52
52
|
}
|
|
53
|
-
e.optimizeDeps && (e.optimizeDeps.exclude = e.optimizeDeps.exclude || [], e.optimizeDeps.exclude.push(...
|
|
54
|
-
const t =
|
|
53
|
+
e.optimizeDeps && (e.optimizeDeps.exclude = e.optimizeDeps.exclude || [], e.optimizeDeps.exclude.push(...p));
|
|
54
|
+
const t = D(p);
|
|
55
55
|
e.plugins.push(t);
|
|
56
56
|
},
|
|
57
57
|
// Supresses the following warning:
|
|
58
58
|
// Failed to resolve import [dependency] from [sourceFile]. Does the file exist?
|
|
59
|
-
resolveId: (e) =>
|
|
59
|
+
resolveId: (e) => p.includes(e) ? { id: e, external: !0 } : null,
|
|
60
60
|
// Supresses the following warning:
|
|
61
61
|
// The following dependencies are imported but could not be resolved:
|
|
62
62
|
// [dependency] (imported by [sourceFile])
|
|
63
|
-
load: (e) =>
|
|
63
|
+
load: (e) => p.includes(e) ? "export default {};" : null
|
|
64
64
|
};
|
|
65
|
-
},
|
|
66
|
-
var f, j, x;
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
), c = Object.keys(
|
|
65
|
+
}, E = "@feedmepos/mf-", F = async (l, { command: p, mode: e }, t = {}) => {
|
|
66
|
+
var f, j, x, h, b;
|
|
67
|
+
const n = JSON.parse(
|
|
68
|
+
y(v(process.cwd(), "package.json"), "utf-8")
|
|
69
|
+
), c = Object.keys(n.dependencies).filter((s) => s.startsWith(E)).reduce((s, i) => (s[i] = n.dependencies[i], s), {});
|
|
70
70
|
(f = t.includeFmmfPackages) == null || f.forEach((s) => {
|
|
71
|
-
c[s] =
|
|
71
|
+
c[s] = n.dependencies[s] ?? "latest";
|
|
72
72
|
}), (j = t.excludeFmmfPackages) == null || j.forEach((s) => {
|
|
73
73
|
delete c[s];
|
|
74
74
|
});
|
|
75
|
-
const
|
|
75
|
+
const m = {
|
|
76
76
|
"@feedmepos/ui-library": "https://cdn.jsdelivr.net/npm/@feedmepos/ui-library@latest/dist/feedmepos-ui-library.js",
|
|
77
77
|
// Conditionally externalize core packages to share business logic
|
|
78
78
|
...t.externalizeCore ? {
|
|
@@ -87,32 +87,32 @@ const g = (l) => {
|
|
|
87
87
|
"vue-router": "4.2.5/dist/vue-router.esm-browser.min.js",
|
|
88
88
|
pinia: "2.1.7/+esm"
|
|
89
89
|
};
|
|
90
|
-
let
|
|
90
|
+
let a = [
|
|
91
91
|
...Object.keys(o),
|
|
92
92
|
...Object.keys(c),
|
|
93
|
-
...Object.keys(
|
|
93
|
+
...Object.keys(m)
|
|
94
94
|
];
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
95
|
+
const r = { ...l };
|
|
96
|
+
if (p == "build" && e.startsWith("fmmf") && (a = [
|
|
97
97
|
...Object.keys(c),
|
|
98
98
|
...Object.keys(o),
|
|
99
|
-
...Object.keys(
|
|
100
|
-
],
|
|
99
|
+
...Object.keys(m)
|
|
100
|
+
], r.build = {
|
|
101
101
|
emptyOutDir: !0,
|
|
102
102
|
lib: {
|
|
103
103
|
entry: {
|
|
104
|
-
app:
|
|
104
|
+
app: v(process.cwd(), "src/app.ts")
|
|
105
105
|
// Entry must export routers, FmApp, etc.
|
|
106
106
|
},
|
|
107
107
|
formats: ["es"]
|
|
108
108
|
// ES module format for native browser import
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
111
|
-
const s = t.externalize === !0 ?
|
|
112
|
-
|
|
110
|
+
}), r.plugins ?? (r.plugins = []), t.externalize) {
|
|
111
|
+
const s = t.externalize === !0 ? a : t.externalize;
|
|
112
|
+
r.plugins.push(k({ externals: s }));
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
...
|
|
114
|
+
r.optimizeDeps ?? (r.optimizeDeps = {}), (x = r.optimizeDeps).esbuildOptions ?? (x.esbuildOptions = {}), (h = r.optimizeDeps.esbuildOptions).keepNames ?? (h.keepNames = !0), r.build ?? (r.build = {}), (b = r.build).rollupOptions ?? (b.rollupOptions = {}), r.build.rollupOptions.external = a.concat(
|
|
115
|
+
...r.build.rollupOptions.external ?? []
|
|
116
116
|
);
|
|
117
117
|
const d = c;
|
|
118
118
|
await Promise.all(
|
|
@@ -128,7 +128,7 @@ const g = (l) => {
|
|
|
128
128
|
// Common dependencies (Vue ecosystem)
|
|
129
129
|
...Object.keys(o).reduce((s, i) => (s[i] = `https://cdn.jsdelivr.net/npm/${i}@${o[i]}`, s), {}),
|
|
130
130
|
// Specific external packages (UI library, core packages)
|
|
131
|
-
...
|
|
131
|
+
...m
|
|
132
132
|
},
|
|
133
133
|
// Scopes allow different module resolution in specific contexts
|
|
134
134
|
scopes: t.importMapScopes ?? {}
|
|
@@ -139,7 +139,7 @@ const g = (l) => {
|
|
|
139
139
|
else
|
|
140
140
|
throw new Error(`Invalid replaceFmmfPackages key: ${s}, must start with @feedmepos/mf-`);
|
|
141
141
|
});
|
|
142
|
-
const
|
|
142
|
+
const g = {
|
|
143
143
|
name: "vite-plugin-feedme-microfrontend",
|
|
144
144
|
enforce: "pre",
|
|
145
145
|
// Run before other plugins
|
|
@@ -177,8 +177,8 @@ const g = (l) => {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
|
-
return
|
|
180
|
+
return r.plugins.push(g), r;
|
|
181
181
|
};
|
|
182
182
|
export {
|
|
183
|
-
|
|
183
|
+
F as fmmfVitePresent
|
|
184
184
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-common",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@feedmepos/menu": "1.7.7",
|
|
23
23
|
"@feedmepos/i18n": "0.3.1",
|
|
24
24
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
25
|
-
"@feedmepos/ui-library": "1.10.
|
|
25
|
+
"@feedmepos/ui-library": "1.10.17",
|
|
26
26
|
"@feedmepos/vue-client-monitoring": "0.1.0-beta.6",
|
|
27
27
|
"@vue/devtools-api": "^6.5.0",
|
|
28
28
|
"@vueuse/core": "^10.11.0",
|