@moonbase.sh/vue 0.1.58 → 0.1.59
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 +112 -0
- package/dist/index.d.ts +112 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -102,6 +102,20 @@ declare function useCart(): {
|
|
|
102
102
|
id: string;
|
|
103
103
|
price: Record<string, number>;
|
|
104
104
|
name: string;
|
|
105
|
+
originalPrice: Record<string, number>;
|
|
106
|
+
hasDiscount: boolean;
|
|
107
|
+
discount?: {
|
|
108
|
+
type: "PercentageOffDiscount";
|
|
109
|
+
name: string;
|
|
110
|
+
percentage: number;
|
|
111
|
+
total: Record<string, number>;
|
|
112
|
+
description?: string | undefined;
|
|
113
|
+
} | {
|
|
114
|
+
type: "FlatAmountOffDiscount";
|
|
115
|
+
name: string;
|
|
116
|
+
total: Record<string, number>;
|
|
117
|
+
description?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
105
119
|
} | undefined;
|
|
106
120
|
product?: {
|
|
107
121
|
type: "product";
|
|
@@ -113,11 +127,39 @@ declare function useCart(): {
|
|
|
113
127
|
id: string;
|
|
114
128
|
price: Record<string, number>;
|
|
115
129
|
name: string;
|
|
130
|
+
originalPrice: Record<string, number>;
|
|
131
|
+
hasDiscount: boolean;
|
|
132
|
+
discount?: {
|
|
133
|
+
type: "PercentageOffDiscount";
|
|
134
|
+
name: string;
|
|
135
|
+
percentage: number;
|
|
136
|
+
total: Record<string, number>;
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
} | {
|
|
139
|
+
type: "FlatAmountOffDiscount";
|
|
140
|
+
name: string;
|
|
141
|
+
total: Record<string, number>;
|
|
142
|
+
description?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
116
144
|
} | undefined;
|
|
117
145
|
variations?: {
|
|
118
146
|
id: string;
|
|
119
147
|
price: Record<string, number>;
|
|
120
148
|
name: string;
|
|
149
|
+
originalPrice: Record<string, number>;
|
|
150
|
+
hasDiscount: boolean;
|
|
151
|
+
discount?: {
|
|
152
|
+
type: "PercentageOffDiscount";
|
|
153
|
+
name: string;
|
|
154
|
+
percentage: number;
|
|
155
|
+
total: Record<string, number>;
|
|
156
|
+
description?: string | undefined;
|
|
157
|
+
} | {
|
|
158
|
+
type: "FlatAmountOffDiscount";
|
|
159
|
+
name: string;
|
|
160
|
+
total: Record<string, number>;
|
|
161
|
+
description?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
121
163
|
}[] | undefined;
|
|
122
164
|
} | undefined;
|
|
123
165
|
} | {
|
|
@@ -131,6 +173,20 @@ declare function useCart(): {
|
|
|
131
173
|
id: string;
|
|
132
174
|
price: Record<string, number>;
|
|
133
175
|
name: string;
|
|
176
|
+
originalPrice: Record<string, number>;
|
|
177
|
+
hasDiscount: boolean;
|
|
178
|
+
discount?: {
|
|
179
|
+
type: "PercentageOffDiscount";
|
|
180
|
+
name: string;
|
|
181
|
+
percentage: number;
|
|
182
|
+
total: Record<string, number>;
|
|
183
|
+
description?: string | undefined;
|
|
184
|
+
} | {
|
|
185
|
+
type: "FlatAmountOffDiscount";
|
|
186
|
+
name: string;
|
|
187
|
+
total: Record<string, number>;
|
|
188
|
+
description?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
134
190
|
} | undefined;
|
|
135
191
|
bundle?: {
|
|
136
192
|
type: "bundle";
|
|
@@ -148,22 +204,78 @@ declare function useCart(): {
|
|
|
148
204
|
id: string;
|
|
149
205
|
price: Record<string, number>;
|
|
150
206
|
name: string;
|
|
207
|
+
originalPrice: Record<string, number>;
|
|
208
|
+
hasDiscount: boolean;
|
|
209
|
+
discount?: {
|
|
210
|
+
type: "PercentageOffDiscount";
|
|
211
|
+
name: string;
|
|
212
|
+
percentage: number;
|
|
213
|
+
total: Record<string, number>;
|
|
214
|
+
description?: string | undefined;
|
|
215
|
+
} | {
|
|
216
|
+
type: "FlatAmountOffDiscount";
|
|
217
|
+
name: string;
|
|
218
|
+
total: Record<string, number>;
|
|
219
|
+
description?: string | undefined;
|
|
220
|
+
} | undefined;
|
|
151
221
|
} | undefined;
|
|
152
222
|
variations?: {
|
|
153
223
|
id: string;
|
|
154
224
|
price: Record<string, number>;
|
|
155
225
|
name: string;
|
|
226
|
+
originalPrice: Record<string, number>;
|
|
227
|
+
hasDiscount: boolean;
|
|
228
|
+
discount?: {
|
|
229
|
+
type: "PercentageOffDiscount";
|
|
230
|
+
name: string;
|
|
231
|
+
percentage: number;
|
|
232
|
+
total: Record<string, number>;
|
|
233
|
+
description?: string | undefined;
|
|
234
|
+
} | {
|
|
235
|
+
type: "FlatAmountOffDiscount";
|
|
236
|
+
name: string;
|
|
237
|
+
total: Record<string, number>;
|
|
238
|
+
description?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
156
240
|
}[] | undefined;
|
|
157
241
|
}[];
|
|
158
242
|
defaultVariation?: {
|
|
159
243
|
id: string;
|
|
160
244
|
price: Record<string, number>;
|
|
161
245
|
name: string;
|
|
246
|
+
originalPrice: Record<string, number>;
|
|
247
|
+
hasDiscount: boolean;
|
|
248
|
+
discount?: {
|
|
249
|
+
type: "PercentageOffDiscount";
|
|
250
|
+
name: string;
|
|
251
|
+
percentage: number;
|
|
252
|
+
total: Record<string, number>;
|
|
253
|
+
description?: string | undefined;
|
|
254
|
+
} | {
|
|
255
|
+
type: "FlatAmountOffDiscount";
|
|
256
|
+
name: string;
|
|
257
|
+
total: Record<string, number>;
|
|
258
|
+
description?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
162
260
|
} | undefined;
|
|
163
261
|
variations?: {
|
|
164
262
|
id: string;
|
|
165
263
|
price: Record<string, number>;
|
|
166
264
|
name: string;
|
|
265
|
+
originalPrice: Record<string, number>;
|
|
266
|
+
hasDiscount: boolean;
|
|
267
|
+
discount?: {
|
|
268
|
+
type: "PercentageOffDiscount";
|
|
269
|
+
name: string;
|
|
270
|
+
percentage: number;
|
|
271
|
+
total: Record<string, number>;
|
|
272
|
+
description?: string | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
type: "FlatAmountOffDiscount";
|
|
275
|
+
name: string;
|
|
276
|
+
total: Record<string, number>;
|
|
277
|
+
description?: string | undefined;
|
|
278
|
+
} | undefined;
|
|
167
279
|
}[] | undefined;
|
|
168
280
|
} | undefined;
|
|
169
281
|
})[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,20 @@ declare function useCart(): {
|
|
|
102
102
|
id: string;
|
|
103
103
|
price: Record<string, number>;
|
|
104
104
|
name: string;
|
|
105
|
+
originalPrice: Record<string, number>;
|
|
106
|
+
hasDiscount: boolean;
|
|
107
|
+
discount?: {
|
|
108
|
+
type: "PercentageOffDiscount";
|
|
109
|
+
name: string;
|
|
110
|
+
percentage: number;
|
|
111
|
+
total: Record<string, number>;
|
|
112
|
+
description?: string | undefined;
|
|
113
|
+
} | {
|
|
114
|
+
type: "FlatAmountOffDiscount";
|
|
115
|
+
name: string;
|
|
116
|
+
total: Record<string, number>;
|
|
117
|
+
description?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
105
119
|
} | undefined;
|
|
106
120
|
product?: {
|
|
107
121
|
type: "product";
|
|
@@ -113,11 +127,39 @@ declare function useCart(): {
|
|
|
113
127
|
id: string;
|
|
114
128
|
price: Record<string, number>;
|
|
115
129
|
name: string;
|
|
130
|
+
originalPrice: Record<string, number>;
|
|
131
|
+
hasDiscount: boolean;
|
|
132
|
+
discount?: {
|
|
133
|
+
type: "PercentageOffDiscount";
|
|
134
|
+
name: string;
|
|
135
|
+
percentage: number;
|
|
136
|
+
total: Record<string, number>;
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
} | {
|
|
139
|
+
type: "FlatAmountOffDiscount";
|
|
140
|
+
name: string;
|
|
141
|
+
total: Record<string, number>;
|
|
142
|
+
description?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
116
144
|
} | undefined;
|
|
117
145
|
variations?: {
|
|
118
146
|
id: string;
|
|
119
147
|
price: Record<string, number>;
|
|
120
148
|
name: string;
|
|
149
|
+
originalPrice: Record<string, number>;
|
|
150
|
+
hasDiscount: boolean;
|
|
151
|
+
discount?: {
|
|
152
|
+
type: "PercentageOffDiscount";
|
|
153
|
+
name: string;
|
|
154
|
+
percentage: number;
|
|
155
|
+
total: Record<string, number>;
|
|
156
|
+
description?: string | undefined;
|
|
157
|
+
} | {
|
|
158
|
+
type: "FlatAmountOffDiscount";
|
|
159
|
+
name: string;
|
|
160
|
+
total: Record<string, number>;
|
|
161
|
+
description?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
121
163
|
}[] | undefined;
|
|
122
164
|
} | undefined;
|
|
123
165
|
} | {
|
|
@@ -131,6 +173,20 @@ declare function useCart(): {
|
|
|
131
173
|
id: string;
|
|
132
174
|
price: Record<string, number>;
|
|
133
175
|
name: string;
|
|
176
|
+
originalPrice: Record<string, number>;
|
|
177
|
+
hasDiscount: boolean;
|
|
178
|
+
discount?: {
|
|
179
|
+
type: "PercentageOffDiscount";
|
|
180
|
+
name: string;
|
|
181
|
+
percentage: number;
|
|
182
|
+
total: Record<string, number>;
|
|
183
|
+
description?: string | undefined;
|
|
184
|
+
} | {
|
|
185
|
+
type: "FlatAmountOffDiscount";
|
|
186
|
+
name: string;
|
|
187
|
+
total: Record<string, number>;
|
|
188
|
+
description?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
134
190
|
} | undefined;
|
|
135
191
|
bundle?: {
|
|
136
192
|
type: "bundle";
|
|
@@ -148,22 +204,78 @@ declare function useCart(): {
|
|
|
148
204
|
id: string;
|
|
149
205
|
price: Record<string, number>;
|
|
150
206
|
name: string;
|
|
207
|
+
originalPrice: Record<string, number>;
|
|
208
|
+
hasDiscount: boolean;
|
|
209
|
+
discount?: {
|
|
210
|
+
type: "PercentageOffDiscount";
|
|
211
|
+
name: string;
|
|
212
|
+
percentage: number;
|
|
213
|
+
total: Record<string, number>;
|
|
214
|
+
description?: string | undefined;
|
|
215
|
+
} | {
|
|
216
|
+
type: "FlatAmountOffDiscount";
|
|
217
|
+
name: string;
|
|
218
|
+
total: Record<string, number>;
|
|
219
|
+
description?: string | undefined;
|
|
220
|
+
} | undefined;
|
|
151
221
|
} | undefined;
|
|
152
222
|
variations?: {
|
|
153
223
|
id: string;
|
|
154
224
|
price: Record<string, number>;
|
|
155
225
|
name: string;
|
|
226
|
+
originalPrice: Record<string, number>;
|
|
227
|
+
hasDiscount: boolean;
|
|
228
|
+
discount?: {
|
|
229
|
+
type: "PercentageOffDiscount";
|
|
230
|
+
name: string;
|
|
231
|
+
percentage: number;
|
|
232
|
+
total: Record<string, number>;
|
|
233
|
+
description?: string | undefined;
|
|
234
|
+
} | {
|
|
235
|
+
type: "FlatAmountOffDiscount";
|
|
236
|
+
name: string;
|
|
237
|
+
total: Record<string, number>;
|
|
238
|
+
description?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
156
240
|
}[] | undefined;
|
|
157
241
|
}[];
|
|
158
242
|
defaultVariation?: {
|
|
159
243
|
id: string;
|
|
160
244
|
price: Record<string, number>;
|
|
161
245
|
name: string;
|
|
246
|
+
originalPrice: Record<string, number>;
|
|
247
|
+
hasDiscount: boolean;
|
|
248
|
+
discount?: {
|
|
249
|
+
type: "PercentageOffDiscount";
|
|
250
|
+
name: string;
|
|
251
|
+
percentage: number;
|
|
252
|
+
total: Record<string, number>;
|
|
253
|
+
description?: string | undefined;
|
|
254
|
+
} | {
|
|
255
|
+
type: "FlatAmountOffDiscount";
|
|
256
|
+
name: string;
|
|
257
|
+
total: Record<string, number>;
|
|
258
|
+
description?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
162
260
|
} | undefined;
|
|
163
261
|
variations?: {
|
|
164
262
|
id: string;
|
|
165
263
|
price: Record<string, number>;
|
|
166
264
|
name: string;
|
|
265
|
+
originalPrice: Record<string, number>;
|
|
266
|
+
hasDiscount: boolean;
|
|
267
|
+
discount?: {
|
|
268
|
+
type: "PercentageOffDiscount";
|
|
269
|
+
name: string;
|
|
270
|
+
percentage: number;
|
|
271
|
+
total: Record<string, number>;
|
|
272
|
+
description?: string | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
type: "FlatAmountOffDiscount";
|
|
275
|
+
name: string;
|
|
276
|
+
total: Record<string, number>;
|
|
277
|
+
description?: string | undefined;
|
|
278
|
+
} | undefined;
|
|
167
279
|
}[] | undefined;
|
|
168
280
|
} | undefined;
|
|
169
281
|
})[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.59",
|
|
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",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@vue/devtools-api": "^6.5.1",
|
|
20
20
|
"uuid": "^9.0.1",
|
|
21
|
-
"@moonbase.sh/api-client": "0.1.
|
|
21
|
+
"@moonbase.sh/api-client": "0.1.59"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|