@moonbase.sh/vue 0.4.0 → 0.4.2
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/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -206,6 +206,24 @@ declare function useCart(context?: StorefrontContext): {
|
|
|
206
206
|
quantity: number;
|
|
207
207
|
productId: string;
|
|
208
208
|
variationId: string;
|
|
209
|
+
total?: {
|
|
210
|
+
discount: {
|
|
211
|
+
currency: string;
|
|
212
|
+
amount: number;
|
|
213
|
+
};
|
|
214
|
+
original: {
|
|
215
|
+
currency: string;
|
|
216
|
+
amount: number;
|
|
217
|
+
};
|
|
218
|
+
subtotal: {
|
|
219
|
+
currency: string;
|
|
220
|
+
amount: number;
|
|
221
|
+
};
|
|
222
|
+
due: {
|
|
223
|
+
currency: string;
|
|
224
|
+
amount: number;
|
|
225
|
+
};
|
|
226
|
+
} | null | undefined;
|
|
209
227
|
price?: Record<string, number> | undefined;
|
|
210
228
|
product?: {
|
|
211
229
|
id: string;
|
|
@@ -271,6 +289,24 @@ declare function useCart(context?: StorefrontContext): {
|
|
|
271
289
|
quantity: number;
|
|
272
290
|
variationId: string;
|
|
273
291
|
bundleId: string;
|
|
292
|
+
total?: {
|
|
293
|
+
discount: {
|
|
294
|
+
currency: string;
|
|
295
|
+
amount: number;
|
|
296
|
+
};
|
|
297
|
+
original: {
|
|
298
|
+
currency: string;
|
|
299
|
+
amount: number;
|
|
300
|
+
};
|
|
301
|
+
subtotal: {
|
|
302
|
+
currency: string;
|
|
303
|
+
amount: number;
|
|
304
|
+
};
|
|
305
|
+
due: {
|
|
306
|
+
currency: string;
|
|
307
|
+
amount: number;
|
|
308
|
+
};
|
|
309
|
+
} | null | undefined;
|
|
274
310
|
price?: Record<string, number> | undefined;
|
|
275
311
|
partial?: boolean | undefined;
|
|
276
312
|
bundle?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -206,6 +206,24 @@ declare function useCart(context?: StorefrontContext): {
|
|
|
206
206
|
quantity: number;
|
|
207
207
|
productId: string;
|
|
208
208
|
variationId: string;
|
|
209
|
+
total?: {
|
|
210
|
+
discount: {
|
|
211
|
+
currency: string;
|
|
212
|
+
amount: number;
|
|
213
|
+
};
|
|
214
|
+
original: {
|
|
215
|
+
currency: string;
|
|
216
|
+
amount: number;
|
|
217
|
+
};
|
|
218
|
+
subtotal: {
|
|
219
|
+
currency: string;
|
|
220
|
+
amount: number;
|
|
221
|
+
};
|
|
222
|
+
due: {
|
|
223
|
+
currency: string;
|
|
224
|
+
amount: number;
|
|
225
|
+
};
|
|
226
|
+
} | null | undefined;
|
|
209
227
|
price?: Record<string, number> | undefined;
|
|
210
228
|
product?: {
|
|
211
229
|
id: string;
|
|
@@ -271,6 +289,24 @@ declare function useCart(context?: StorefrontContext): {
|
|
|
271
289
|
quantity: number;
|
|
272
290
|
variationId: string;
|
|
273
291
|
bundleId: string;
|
|
292
|
+
total?: {
|
|
293
|
+
discount: {
|
|
294
|
+
currency: string;
|
|
295
|
+
amount: number;
|
|
296
|
+
};
|
|
297
|
+
original: {
|
|
298
|
+
currency: string;
|
|
299
|
+
amount: number;
|
|
300
|
+
};
|
|
301
|
+
subtotal: {
|
|
302
|
+
currency: string;
|
|
303
|
+
amount: number;
|
|
304
|
+
};
|
|
305
|
+
due: {
|
|
306
|
+
currency: string;
|
|
307
|
+
amount: number;
|
|
308
|
+
};
|
|
309
|
+
} | null | undefined;
|
|
274
310
|
price?: Record<string, number> | undefined;
|
|
275
311
|
partial?: boolean | undefined;
|
|
276
312
|
bundle?: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@vue/devtools-api": "^6.6.3",
|
|
20
20
|
"uuid": "^9.0.1",
|
|
21
21
|
"zod": "^3.23.8",
|
|
22
|
-
"@moonbase.sh/storefront-api": "0.4.
|
|
22
|
+
"@moonbase.sh/storefront-api": "0.4.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/uuid": "^9.0.8",
|