@cimplify/sdk 0.20.1 → 0.21.0
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/advanced.d.mts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +21 -21
- package/dist/advanced.mjs +2 -2
- package/dist/{chunk-2BSYTQAY.js → chunk-64OCG2TJ.js} +17 -14
- package/dist/{chunk-AVVLN353.js → chunk-A7IQN5EK.js} +39 -39
- package/dist/{chunk-HG7GG3TT.mjs → chunk-JFT63H34.mjs} +17 -14
- package/dist/{chunk-7KH2XJIW.mjs → chunk-R4EYMPSN.mjs} +46 -4
- package/dist/{chunk-KSN3RJFL.js → chunk-VYSXEDBV.js} +65 -23
- package/dist/{chunk-676BJ3EU.mjs → chunk-W3DMONZR.mjs} +2 -2
- package/dist/{client-D4E9aJy7.d.mts → client-B8PO4NKN.d.mts} +11 -1
- package/dist/{client-VyO6Bqz2.d.ts → client-DjrlvxW7.d.ts} +11 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +98 -98
- package/dist/index.mjs +3 -3
- package/dist/react.d.mts +22 -5
- package/dist/react.d.ts +22 -5
- package/dist/react.js +136 -75
- package/dist/react.mjs +77 -16
- package/dist/utils.js +28 -28
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/registry/order-detail-page.json +1 -1
- package/registry/order-history-page.json +1 -1
- package/registry/order-history.json +1 -1
- package/registry/order-summary.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkA7IQN5EK_js = require('./chunk-A7IQN5EK.js');
|
|
4
4
|
var chunkS6TU55KP_js = require('./chunk-S6TU55KP.js');
|
|
5
5
|
var chunkFLPI2VVJ_js = require('./chunk-FLPI2VVJ.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkVYSXEDBV_js = require('./chunk-VYSXEDBV.js');
|
|
7
|
+
var chunk64OCG2TJ_js = require('./chunk-64OCG2TJ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ActivityService", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkA7IQN5EK_js.ActivityService; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkA7IQN5EK_js.CimplifyClient; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DeliveryService", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkA7IQN5EK_js.DeliveryService; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkA7IQN5EK_js.createCimplifyClient; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkA7IQN5EK_js.getVariantDisplayName; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
32
32
|
enumerable: true,
|
|
@@ -50,361 +50,361 @@ Object.defineProperty(exports, "query", {
|
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkVYSXEDBV_js.AUTHORIZATION_TYPE; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkVYSXEDBV_js.AUTH_MUTATION; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "AuthService", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkVYSXEDBV_js.AuthService; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "BusinessService", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkVYSXEDBV_js.BusinessService; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkVYSXEDBV_js.CHECKOUT_MODE; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkVYSXEDBV_js.CHECKOUT_MUTATION; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkVYSXEDBV_js.CHECKOUT_STEP; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkVYSXEDBV_js.CONTACT_TYPE; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "CartOperations", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkVYSXEDBV_js.CartOperations; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkVYSXEDBV_js.CatalogueQueries; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkVYSXEDBV_js.CheckoutService; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "CheckoutService", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkVYSXEDBV_js.CheckoutService; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkVYSXEDBV_js.CimplifyElement; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkVYSXEDBV_js.CimplifyElements; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkVYSXEDBV_js.DEFAULT_COUNTRY; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkVYSXEDBV_js.DEFAULT_CURRENCY; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkVYSXEDBV_js.DEVICE_TYPE; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkVYSXEDBV_js.ELEMENT_TYPES; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkVYSXEDBV_js.EVENT_TYPES; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "FxService", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkVYSXEDBV_js.FxService; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "InventoryService", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkVYSXEDBV_js.InventoryService; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkVYSXEDBV_js.LINK_MUTATION; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkVYSXEDBV_js.LINK_QUERY; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "LinkService", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkVYSXEDBV_js.LinkService; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "LiteService", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkVYSXEDBV_js.LiteService; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkVYSXEDBV_js.MESSAGE_TYPES; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkVYSXEDBV_js.MOBILE_MONEY_PROVIDER; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkVYSXEDBV_js.ORDER_MUTATION; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkVYSXEDBV_js.ORDER_TYPE; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "OrderQueries", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkVYSXEDBV_js.OrderQueries; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkVYSXEDBV_js.PAYMENT_METHOD; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkVYSXEDBV_js.PAYMENT_MUTATION; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkVYSXEDBV_js.PAYMENT_STATE; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkVYSXEDBV_js.PICKUP_TIME_TYPE; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "SchedulingService", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkVYSXEDBV_js.SchedulingService; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "combine", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkVYSXEDBV_js.combine; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "combineObject", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkVYSXEDBV_js.combineObject; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "createElements", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkVYSXEDBV_js.createElements; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "err", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkVYSXEDBV_js.err; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "flatMap", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkVYSXEDBV_js.flatMap; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "fromPromise", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkVYSXEDBV_js.fromPromise; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkVYSXEDBV_js.generateIdempotencyKey; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "getOrElse", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkVYSXEDBV_js.getOrElse; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "isErr", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkVYSXEDBV_js.isErr; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "isOk", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkVYSXEDBV_js.isOk; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "mapError", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkVYSXEDBV_js.mapError; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "mapResult", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkVYSXEDBV_js.mapResult; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "ok", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkVYSXEDBV_js.ok; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "toNullable", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkVYSXEDBV_js.toNullable; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "tryCatch", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkVYSXEDBV_js.tryCatch; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "unwrap", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkVYSXEDBV_js.unwrap; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk64OCG2TJ_js.CURRENCY_SYMBOLS; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "CimplifyError", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk64OCG2TJ_js.CimplifyError; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "ERROR_HINTS", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunk64OCG2TJ_js.ERROR_HINTS; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "ErrorCode", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunk64OCG2TJ_js.ErrorCode; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunk64OCG2TJ_js.MOBILE_MONEY_PROVIDERS; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "ZERO", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunk64OCG2TJ_js.ZERO; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "categorizePaymentError", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunk64OCG2TJ_js.categorizePaymentError; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "currencyCode", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunk64OCG2TJ_js.currencyCode; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunk64OCG2TJ_js.detectMobileMoneyProvider; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "enrichError", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunk64OCG2TJ_js.enrichError; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "formatMoney", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunk64OCG2TJ_js.formatMoney; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunk64OCG2TJ_js.formatNumberCompact; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "formatPrice", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunk64OCG2TJ_js.formatPrice; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunk64OCG2TJ_js.formatPriceAdjustment; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunk64OCG2TJ_js.formatPriceCompact; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunk64OCG2TJ_js.formatPriceWithTax; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunk64OCG2TJ_js.formatProductPrice; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "getBasePrice", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunk64OCG2TJ_js.getBasePrice; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunk64OCG2TJ_js.getCurrencySymbol; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunk64OCG2TJ_js.getDiscountPercentage; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunk64OCG2TJ_js.getDisplayPrice; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "getErrorHint", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunk64OCG2TJ_js.getErrorHint; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunk64OCG2TJ_js.getMarkupPercentage; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunk64OCG2TJ_js.getProductCurrency; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunk64OCG2TJ_js.getTaxAmount; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunk64OCG2TJ_js.hasTaxInfo; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "isCimplifyError", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunk64OCG2TJ_js.isCimplifyError; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "isOnSale", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunk64OCG2TJ_js.isOnSale; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
368
368
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunk64OCG2TJ_js.isPaymentStatusFailure; }
|
|
370
370
|
});
|
|
371
371
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
372
372
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunk64OCG2TJ_js.isPaymentStatusRequiresAction; }
|
|
374
374
|
});
|
|
375
375
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
376
376
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunk64OCG2TJ_js.isPaymentStatusSuccess; }
|
|
378
378
|
});
|
|
379
379
|
Object.defineProperty(exports, "isRetryableError", {
|
|
380
380
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunk64OCG2TJ_js.isRetryableError; }
|
|
382
382
|
});
|
|
383
383
|
Object.defineProperty(exports, "isSupportedCurrency", {
|
|
384
384
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunk64OCG2TJ_js.isSupportedCurrency; }
|
|
386
386
|
});
|
|
387
387
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
388
388
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunk64OCG2TJ_js.isTaxInclusive; }
|
|
390
390
|
});
|
|
391
391
|
Object.defineProperty(exports, "money", {
|
|
392
392
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunk64OCG2TJ_js.money; }
|
|
394
394
|
});
|
|
395
395
|
Object.defineProperty(exports, "moneyFromNumber", {
|
|
396
396
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunk64OCG2TJ_js.moneyFromNumber; }
|
|
398
398
|
});
|
|
399
399
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
400
400
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunk64OCG2TJ_js.normalizePaymentResponse; }
|
|
402
402
|
});
|
|
403
403
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
404
404
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
405
|
+
get: function () { return chunk64OCG2TJ_js.normalizeStatusResponse; }
|
|
406
406
|
});
|
|
407
407
|
Object.defineProperty(exports, "parsePrice", {
|
|
408
408
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
409
|
+
get: function () { return chunk64OCG2TJ_js.parsePrice; }
|
|
410
410
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ActivityService, CimplifyClient, DeliveryService, createCimplifyClient, getVariantDisplayName } from './chunk-
|
|
1
|
+
export { ActivityService, CimplifyClient, DeliveryService, createCimplifyClient, getVariantDisplayName } from './chunk-W3DMONZR.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-WDIMISRC.mjs';
|
|
3
3
|
export { QueryBuilder, query } from './chunk-LM3CJ4L7.mjs';
|
|
4
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-
|
|
5
|
-
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-
|
|
4
|
+
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-R4EYMPSN.mjs';
|
|
5
|
+
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-JFT63H34.mjs';
|
package/dist/react.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.mjs';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
4
|
-
import { C as CimplifyClient,
|
|
4
|
+
import { C as CimplifyClient, a8 as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, bK as Location, bH as Business, k as ReorderResult, aR as OrderStatus, b2 as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, bX as Service, b_ as AvailableSlot, b$ as DayAvailability, c4 as CustomerBooking, ca as CancelBookingResult, w as ActivityStateResponse, u as SessionMessage, x as ActivityRecommendation, E as DeliveryFeeResponse, cM as FxRateResponse, bR as StorefrontBootstrap, Y as ElementsOptions, c_ as AuthenticatedData, cW as AddressInfo, cX as PaymentMethodInfo, K as CimplifyElements, d0 as ElementsCheckoutResult, a7 as ProcessCheckoutOptions, b1 as LineItem, bY as Staff } from './client-B8PO4NKN.mjs';
|
|
5
5
|
import { J as Product, d as Pagination, h as CimplifyError, L as ProductWithDetails, a5 as Category, M as Money, b0 as BundleSelectionInput, av as ComponentSelectionInput, b3 as BundleSelectionData, b6 as CompositeSelectionData, a7 as Collection, aD as ProductTaxonomy, aE as TaxonomyWithChildren, aC as ProductTimeProfile, aH as Deal, aI as ProductDealInfo, aJ as DiscountValidation, ac as BundleSummary, aw as CompositePriceResult, y as CustomAttributeDefinition, G as PropertyFacet, bI as ProductBillingPlan, N as VariantView, W as VariantAxisWithValues, a as CurrencyCode, a1 as AddOnWithOptions, ah as BundleComponentView, aa as BundlePriceType, as as CompositeGroupView, bb as DisplayCart } from './payment-CKqMU4xT.mjs';
|
|
6
6
|
import { P as ProductWithPrice } from './price-BqV_DjjQ.mjs';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
@@ -251,6 +251,7 @@ interface UseCartResult {
|
|
|
251
251
|
updateQuantity: (itemId: string, quantity: number) => Promise<void>;
|
|
252
252
|
clearCart: () => Promise<void>;
|
|
253
253
|
sync: () => Promise<void>;
|
|
254
|
+
reorder: (orderId: string) => Promise<ReorderResult>;
|
|
254
255
|
}
|
|
255
256
|
declare function useCart(options?: UseCartOptions): UseCartResult;
|
|
256
257
|
|
|
@@ -259,12 +260,14 @@ interface UseOrderOptions {
|
|
|
259
260
|
pollInterval?: number;
|
|
260
261
|
enabled?: boolean;
|
|
261
262
|
client?: CimplifyClient;
|
|
263
|
+
onStatusChange?: (previousStatus: OrderStatus, newStatus: OrderStatus, order: Order) => void;
|
|
262
264
|
}
|
|
263
265
|
interface UseOrderResult {
|
|
264
266
|
order: Order | null;
|
|
265
267
|
isLoading: boolean;
|
|
266
268
|
error: CimplifyError | null;
|
|
267
269
|
refetch: () => Promise<void>;
|
|
270
|
+
isTerminal: boolean;
|
|
268
271
|
}
|
|
269
272
|
declare function useOrder(orderId: string | null | undefined, options?: UseOrderOptions): UseOrderResult;
|
|
270
273
|
|
|
@@ -1349,6 +1352,7 @@ interface OrderSummaryClassNames {
|
|
|
1349
1352
|
bundleBreakdown?: string;
|
|
1350
1353
|
compositeBreakdown?: string;
|
|
1351
1354
|
trackingLink?: string;
|
|
1355
|
+
reorderButton?: string;
|
|
1352
1356
|
}
|
|
1353
1357
|
interface OrderSummaryProps {
|
|
1354
1358
|
/** Pass an Order object directly (skips fetch). */
|
|
@@ -1359,6 +1363,10 @@ interface OrderSummaryProps {
|
|
|
1359
1363
|
poll?: boolean;
|
|
1360
1364
|
/** Custom line item renderer. */
|
|
1361
1365
|
renderLineItem?: (item: LineItem) => React.ReactNode;
|
|
1366
|
+
/** Called when the reorder button is clicked. */
|
|
1367
|
+
onReorder?: (order: Order) => void;
|
|
1368
|
+
/** Called when the order status changes during polling. */
|
|
1369
|
+
onStatusChange?: (previousStatus: OrderStatus, newStatus: OrderStatus, order: Order) => void;
|
|
1362
1370
|
className?: string;
|
|
1363
1371
|
classNames?: OrderSummaryClassNames;
|
|
1364
1372
|
}
|
|
@@ -1368,7 +1376,7 @@ interface OrderSummaryProps {
|
|
|
1368
1376
|
* Accepts either a pre-loaded `order` object or an `orderId` to fetch.
|
|
1369
1377
|
* Supports polling for live status updates.
|
|
1370
1378
|
*/
|
|
1371
|
-
declare function OrderSummary({ order: orderProp, orderId, poll, renderLineItem, className, classNames, }: OrderSummaryProps): React.ReactElement;
|
|
1379
|
+
declare function OrderSummary({ order: orderProp, orderId, poll, renderLineItem, onReorder, onStatusChange, className, classNames, }: OrderSummaryProps): React.ReactElement;
|
|
1372
1380
|
|
|
1373
1381
|
interface OrderHistoryClassNames {
|
|
1374
1382
|
root?: string;
|
|
@@ -1379,6 +1387,7 @@ interface OrderHistoryClassNames {
|
|
|
1379
1387
|
total?: string;
|
|
1380
1388
|
empty?: string;
|
|
1381
1389
|
loading?: string;
|
|
1390
|
+
reorderButton?: string;
|
|
1382
1391
|
}
|
|
1383
1392
|
interface OrderHistoryProps {
|
|
1384
1393
|
/** Override orders (skips fetch). For SSR, pass pre-fetched orders. */
|
|
@@ -1391,6 +1400,8 @@ interface OrderHistoryProps {
|
|
|
1391
1400
|
onOrderClick?: (order: Order) => void;
|
|
1392
1401
|
/** Custom order row renderer. */
|
|
1393
1402
|
renderOrder?: (order: Order) => React.ReactNode;
|
|
1403
|
+
/** Called when the reorder button is clicked. If provided, a reorder button is rendered. */
|
|
1404
|
+
onReorder?: (order: Order) => void;
|
|
1394
1405
|
/** Text shown when empty. */
|
|
1395
1406
|
emptyMessage?: string;
|
|
1396
1407
|
className?: string;
|
|
@@ -1401,7 +1412,7 @@ interface OrderHistoryProps {
|
|
|
1401
1412
|
*
|
|
1402
1413
|
* Fetches via `useOrders` unless pre-loaded orders are passed.
|
|
1403
1414
|
*/
|
|
1404
|
-
declare function OrderHistory({ orders: ordersProp, status, limit, onOrderClick, renderOrder, emptyMessage, className, classNames, }: OrderHistoryProps): React.ReactElement;
|
|
1415
|
+
declare function OrderHistory({ orders: ordersProp, status, limit, onOrderClick, renderOrder, onReorder, emptyMessage, className, classNames, }: OrderHistoryProps): React.ReactElement;
|
|
1405
1416
|
|
|
1406
1417
|
interface StoreNavClassNames {
|
|
1407
1418
|
root?: string;
|
|
@@ -1894,6 +1905,10 @@ interface OrderDetailPageProps {
|
|
|
1894
1905
|
onBack?: () => void;
|
|
1895
1906
|
/** Custom line item renderer. */
|
|
1896
1907
|
renderLineItem?: (item: LineItem) => React.ReactNode;
|
|
1908
|
+
/** Called when the reorder button is clicked. */
|
|
1909
|
+
onReorder?: (order: Order) => void;
|
|
1910
|
+
/** Called when the order status changes during polling. */
|
|
1911
|
+
onStatusChange?: (previousStatus: OrderStatus, newStatus: OrderStatus, order: Order) => void;
|
|
1897
1912
|
/** Back button label. */
|
|
1898
1913
|
backLabel?: string;
|
|
1899
1914
|
className?: string;
|
|
@@ -1904,7 +1919,7 @@ interface OrderDetailPageProps {
|
|
|
1904
1919
|
*
|
|
1905
1920
|
* SSR-friendly: pass `order` prop for server rendering.
|
|
1906
1921
|
*/
|
|
1907
|
-
declare function OrderDetailPage({ orderId, order, poll, onBack, renderLineItem, backLabel, className, classNames, }: OrderDetailPageProps): React.ReactElement;
|
|
1922
|
+
declare function OrderDetailPage({ orderId, order, poll, onBack, renderLineItem, onReorder, onStatusChange, backLabel, className, classNames, }: OrderDetailPageProps): React.ReactElement;
|
|
1908
1923
|
|
|
1909
1924
|
interface OrderHistoryPageClassNames {
|
|
1910
1925
|
root?: string;
|
|
@@ -1925,6 +1940,8 @@ interface OrderHistoryPageProps {
|
|
|
1925
1940
|
limit?: number;
|
|
1926
1941
|
/** Called when navigating to an order detail (e.g. for routing). */
|
|
1927
1942
|
onOrderNavigate?: (order: Order) => void;
|
|
1943
|
+
/** Called when the reorder button is clicked. */
|
|
1944
|
+
onReorder?: (order: Order) => void;
|
|
1928
1945
|
/** Show status filter tabs. Default: true. */
|
|
1929
1946
|
showFilters?: boolean;
|
|
1930
1947
|
/** Custom order row renderer. */
|
|
@@ -1938,7 +1955,7 @@ interface OrderHistoryPageProps {
|
|
|
1938
1955
|
* SSR-friendly: pass `orders` prop for server rendering.
|
|
1939
1956
|
* Supports both inline detail view and external navigation via `onOrderNavigate`.
|
|
1940
1957
|
*/
|
|
1941
|
-
declare function OrderHistoryPage({ title, orders: ordersProp, limit, onOrderNavigate, showFilters, renderOrder, className, classNames, }: OrderHistoryPageProps): React.ReactElement;
|
|
1958
|
+
declare function OrderHistoryPage({ title, orders: ordersProp, limit, onOrderNavigate, onReorder, showFilters, renderOrder, className, classNames, }: OrderHistoryPageProps): React.ReactElement;
|
|
1942
1959
|
|
|
1943
1960
|
interface SearchPageClassNames {
|
|
1944
1961
|
root?: string;
|