@cimplify/sdk 0.20.2 → 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 +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-WXFEO3LT.js → chunk-A7IQN5EK.js} +17 -17
- package/dist/{chunk-VTMRPTQ7.mjs → chunk-R4EYMPSN.mjs} +39 -0
- package/dist/{chunk-UVBJDWIV.js → chunk-VYSXEDBV.js} +39 -0
- package/dist/{chunk-X23RNZAD.mjs → chunk-W3DMONZR.mjs} +1 -1
- 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 +58 -58
- package/dist/index.mjs +2 -2
- package/dist/react.d.mts +22 -5
- package/dist/react.d.ts +22 -5
- package/dist/react.js +89 -29
- package/dist/react.mjs +73 -13
- 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
|
|
6
|
+
var chunkVYSXEDBV_js = require('./chunk-VYSXEDBV.js');
|
|
7
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,207 +50,207 @@ 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,
|
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-
|
|
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
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;
|
package/dist/react.d.ts
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.js';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
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-DjrlvxW7.js';
|
|
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.js';
|
|
6
6
|
import { P as ProductWithPrice } from './price-e4beObLZ.js';
|
|
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;
|