@cimplify/sdk 0.86.0 → 0.88.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 +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-ESGKWRQS.js → chunk-6JA4HBBD.js} +4 -4
- package/dist/{chunk-MRL53WP6.mjs → chunk-A7NODD4Q.mjs} +12 -1
- package/dist/{chunk-D6JWYYTG.mjs → chunk-APBLFZ2I.mjs} +3 -3
- package/dist/{chunk-VUG4HTUM.js → chunk-GHFDYM5K.js} +113 -5
- package/dist/{chunk-E6T5VJMG.mjs → chunk-OZDDHSIB.mjs} +9 -1
- package/dist/{chunk-X4UNISYG.js → chunk-ROBTTS3Q.js} +3 -3
- package/dist/{chunk-IQLJJW2H.js → chunk-T7Z25EY4.js} +9 -0
- package/dist/{chunk-A2GXDCSI.mjs → chunk-VU5LFNEX.mjs} +2 -2
- package/dist/{chunk-HJEKXCG2.js → chunk-W5BVGAO6.js} +48 -37
- package/dist/{chunk-NN3WC7XZ.mjs → chunk-ZU4ZRYUR.mjs} +113 -5
- package/dist/{client-DowGNrTh.d.mts → client-B-8ceVyt.d.mts} +2 -2
- package/dist/{client-CMJO_8zo.d.ts → client-B3FBDfTg.d.ts} +2 -2
- package/dist/{client-BQSRj4iK.d.mts → client-D0PrO1-Q.d.ts} +29 -8
- package/dist/{client-BdI24jUT.d.ts → client-r5VSGFRU.d.mts} +29 -8
- package/dist/{index-BRwHpMY-.d.ts → index-C-Pxrzna.d.ts} +3 -3
- package/dist/{index-DLb_Ldl6.d.mts → index-DLulxmF1.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +85 -81
- package/dist/index.mjs +4 -4
- package/dist/mock/cli.mjs +3 -3
- package/dist/mock/library.js +3 -3
- package/dist/mock/library.mjs +3 -3
- package/dist/mock/msw.js +3 -3
- package/dist/mock/msw.mjs +3 -3
- package/dist/{payment-BA7KNBxg.d.ts → payment-Cfoo9MT7.d.ts} +1 -1
- package/dist/{payment-CFev-fOE.d.mts → payment-TnJUoHqL.d.mts} +1 -1
- package/dist/{price-BNhGVB5q.d.ts → price-CCDSrIsc.d.ts} +1 -1
- package/dist/{price-nRxqVNGq.d.mts → price-CM0zVSyM.d.mts} +1 -1
- package/dist/{product-BGxIfTqJ.d.mts → product-DoA36Eqh.d.mts} +65 -4
- package/dist/{product-BGxIfTqJ.d.ts → product-DoA36Eqh.d.ts} +65 -4
- package/dist/react.d.mts +22 -5
- package/dist/react.d.ts +22 -5
- package/dist/react.js +101 -63
- package/dist/react.mjs +40 -5
- package/dist/{server-BH7DTaaz.d.ts → server-CHfYeTAa.d.ts} +2 -2
- package/dist/{server-9u0LiG5U.d.mts → server-CI1CUFVu.d.mts} +2 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +79 -79
- package/dist/testing.mjs +5 -5
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
- package/registry/product-card.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunkT7Z25EY4_js = require('./chunk-T7Z25EY4.js');
|
|
5
|
+
var chunkW5BVGAO6_js = require('./chunk-W5BVGAO6.js');
|
|
6
|
+
var chunkGHFDYM5K_js = require('./chunk-GHFDYM5K.js');
|
|
7
7
|
var chunkPTPOQVXS_js = require('./chunk-PTPOQVXS.js');
|
|
8
8
|
var chunkAETVRBKI_js = require('./chunk-AETVRBKI.js');
|
|
9
9
|
require('./chunk-OWW5GUSB.js');
|
|
@@ -1132,7 +1132,7 @@ var DEFAULT_COUNTRY = "US";
|
|
|
1132
1132
|
function createDefaultClient() {
|
|
1133
1133
|
const processRef = globalThis.process;
|
|
1134
1134
|
const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
1135
|
-
return
|
|
1135
|
+
return chunkW5BVGAO6_js.createCimplifyClient({ publicKey: envPublicKey });
|
|
1136
1136
|
}
|
|
1137
1137
|
function getStoredLocationId() {
|
|
1138
1138
|
if (typeof window === "undefined" || !window.localStorage) {
|
|
@@ -1285,7 +1285,7 @@ function CimplifyProvider({
|
|
|
1285
1285
|
const apiCredentials = resolvedClient.getCredentialsMode() === "include" ? "use-credentials" : "anonymous";
|
|
1286
1286
|
preconnectOrigin(resolvedClient.getBaseUrl(), apiCredentials);
|
|
1287
1287
|
preconnectOrigin(resolvedClient.getLinkApiUrl(), apiCredentials);
|
|
1288
|
-
preconnectOrigin(
|
|
1288
|
+
preconnectOrigin(chunkT7Z25EY4_js.DEFAULT_CDN_BASE_URL);
|
|
1289
1289
|
}
|
|
1290
1290
|
const setCurrentLocation = React14.useCallback(
|
|
1291
1291
|
(location) => {
|
|
@@ -3444,7 +3444,7 @@ function CimplifySignInButton({
|
|
|
3444
3444
|
const onClick = async () => {
|
|
3445
3445
|
if (busy || disabled || !signInOpts.clientId) return;
|
|
3446
3446
|
setBusy(true);
|
|
3447
|
-
await
|
|
3447
|
+
await chunkGHFDYM5K_js.startSignIn({
|
|
3448
3448
|
...signInOpts,
|
|
3449
3449
|
onSuccess: () => {
|
|
3450
3450
|
setBusy(false);
|
|
@@ -6121,15 +6121,15 @@ function AuthElement({
|
|
|
6121
6121
|
}, [onReady, onAuthenticated, onError]);
|
|
6122
6122
|
React14.useEffect(() => {
|
|
6123
6123
|
if (!elements || !containerRef.current) return;
|
|
6124
|
-
const element = elements.create(
|
|
6124
|
+
const element = elements.create(chunkGHFDYM5K_js.ELEMENT_TYPES.AUTH, { prefillEmail });
|
|
6125
6125
|
elementRef.current = element;
|
|
6126
|
-
element.on(
|
|
6126
|
+
element.on(chunkGHFDYM5K_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
6127
6127
|
element.on(
|
|
6128
|
-
|
|
6128
|
+
chunkGHFDYM5K_js.EVENT_TYPES.AUTHENTICATED,
|
|
6129
6129
|
(data) => onAuthenticatedRef.current?.(data)
|
|
6130
6130
|
);
|
|
6131
6131
|
element.on(
|
|
6132
|
-
|
|
6132
|
+
chunkGHFDYM5K_js.EVENT_TYPES.ERROR,
|
|
6133
6133
|
(data) => onErrorRef.current?.(data)
|
|
6134
6134
|
);
|
|
6135
6135
|
element.mount(containerRef.current);
|
|
@@ -6158,15 +6158,15 @@ function AddressElement({
|
|
|
6158
6158
|
}, [onReady, onChange, onError]);
|
|
6159
6159
|
React14.useEffect(() => {
|
|
6160
6160
|
if (!elements || !containerRef.current) return;
|
|
6161
|
-
const element = elements.create(
|
|
6161
|
+
const element = elements.create(chunkGHFDYM5K_js.ELEMENT_TYPES.ADDRESS, { mode });
|
|
6162
6162
|
elementRef.current = element;
|
|
6163
|
-
element.on(
|
|
6163
|
+
element.on(chunkGHFDYM5K_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
6164
6164
|
element.on(
|
|
6165
|
-
|
|
6165
|
+
chunkGHFDYM5K_js.EVENT_TYPES.CHANGE,
|
|
6166
6166
|
(data) => onChangeRef.current?.(data)
|
|
6167
6167
|
);
|
|
6168
6168
|
element.on(
|
|
6169
|
-
|
|
6169
|
+
chunkGHFDYM5K_js.EVENT_TYPES.ERROR,
|
|
6170
6170
|
(data) => onErrorRef.current?.(data)
|
|
6171
6171
|
);
|
|
6172
6172
|
element.mount(containerRef.current);
|
|
@@ -6196,15 +6196,15 @@ function PaymentElement({
|
|
|
6196
6196
|
}, [onReady, onChange, onError]);
|
|
6197
6197
|
React14.useEffect(() => {
|
|
6198
6198
|
if (!elements || !containerRef.current) return;
|
|
6199
|
-
const element = elements.create(
|
|
6199
|
+
const element = elements.create(chunkGHFDYM5K_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
|
|
6200
6200
|
elementRef.current = element;
|
|
6201
|
-
element.on(
|
|
6201
|
+
element.on(chunkGHFDYM5K_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
6202
6202
|
element.on(
|
|
6203
|
-
|
|
6203
|
+
chunkGHFDYM5K_js.EVENT_TYPES.CHANGE,
|
|
6204
6204
|
(data) => onChangeRef.current?.(data)
|
|
6205
6205
|
);
|
|
6206
6206
|
element.on(
|
|
6207
|
-
|
|
6207
|
+
chunkGHFDYM5K_js.EVENT_TYPES.ERROR,
|
|
6208
6208
|
(data) => onErrorRef.current?.(data)
|
|
6209
6209
|
);
|
|
6210
6210
|
element.mount(containerRef.current);
|
|
@@ -6495,7 +6495,7 @@ function VariantSelector({
|
|
|
6495
6495
|
{
|
|
6496
6496
|
"data-cimplify-variant-name": true,
|
|
6497
6497
|
className: cn("flex-1 min-w-0 text-sm", classNames?.name),
|
|
6498
|
-
children:
|
|
6498
|
+
children: chunkT7Z25EY4_js.getVariantDisplayName(variant, productName)
|
|
6499
6499
|
}
|
|
6500
6500
|
),
|
|
6501
6501
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { "data-cimplify-variant-pricing": true, className: cn("text-sm text-muted-foreground", classNames?.pricing), children: [
|
|
@@ -8117,12 +8117,12 @@ function FieldInput({
|
|
|
8117
8117
|
classNames?.input
|
|
8118
8118
|
);
|
|
8119
8119
|
switch (field.field_type) {
|
|
8120
|
-
case
|
|
8121
|
-
case
|
|
8120
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Text:
|
|
8121
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Url:
|
|
8122
8122
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8123
8123
|
"input",
|
|
8124
8124
|
{
|
|
8125
|
-
type: field.field_type ===
|
|
8125
|
+
type: field.field_type === chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Url ? "url" : "text",
|
|
8126
8126
|
value: typeof value === "string" ? value : "",
|
|
8127
8127
|
onChange: (e) => onValueChange(e.target.value),
|
|
8128
8128
|
placeholder: field.placeholder,
|
|
@@ -8131,7 +8131,7 @@ function FieldInput({
|
|
|
8131
8131
|
className: inputClass
|
|
8132
8132
|
}
|
|
8133
8133
|
);
|
|
8134
|
-
case
|
|
8134
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Textarea:
|
|
8135
8135
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8136
8136
|
"textarea",
|
|
8137
8137
|
{
|
|
@@ -8144,7 +8144,7 @@ function FieldInput({
|
|
|
8144
8144
|
className: cn(inputClass, "resize-none", classNames?.textarea)
|
|
8145
8145
|
}
|
|
8146
8146
|
);
|
|
8147
|
-
case
|
|
8147
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Number:
|
|
8148
8148
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8149
8149
|
"input",
|
|
8150
8150
|
{
|
|
@@ -8158,7 +8158,7 @@ function FieldInput({
|
|
|
8158
8158
|
className: inputClass
|
|
8159
8159
|
}
|
|
8160
8160
|
);
|
|
8161
|
-
case
|
|
8161
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Select:
|
|
8162
8162
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8163
8163
|
"select",
|
|
8164
8164
|
{
|
|
@@ -8172,7 +8172,7 @@ function FieldInput({
|
|
|
8172
8172
|
]
|
|
8173
8173
|
}
|
|
8174
8174
|
);
|
|
8175
|
-
case
|
|
8175
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Radio:
|
|
8176
8176
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-y-2", classNames?.radioGroup), children: (field.options || []).map((opt) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8177
8177
|
"label",
|
|
8178
8178
|
{
|
|
@@ -8197,7 +8197,7 @@ function FieldInput({
|
|
|
8197
8197
|
},
|
|
8198
8198
|
opt
|
|
8199
8199
|
)) });
|
|
8200
|
-
case
|
|
8200
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Checkbox:
|
|
8201
8201
|
return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: cn("flex items-center gap-2 text-sm cursor-pointer", classNames?.checkboxLabel), children: [
|
|
8202
8202
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8203
8203
|
"input",
|
|
@@ -8210,7 +8210,7 @@ function FieldInput({
|
|
|
8210
8210
|
),
|
|
8211
8211
|
field.placeholder || field.name
|
|
8212
8212
|
] });
|
|
8213
|
-
case
|
|
8213
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Color:
|
|
8214
8214
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8215
8215
|
"input",
|
|
8216
8216
|
{
|
|
@@ -8220,7 +8220,7 @@ function FieldInput({
|
|
|
8220
8220
|
className: cn("w-12 h-10 rounded-md border border-input cursor-pointer", classNames?.colorInput)
|
|
8221
8221
|
}
|
|
8222
8222
|
);
|
|
8223
|
-
case
|
|
8223
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Date:
|
|
8224
8224
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8225
8225
|
DatePicker,
|
|
8226
8226
|
{
|
|
@@ -8231,8 +8231,8 @@ function FieldInput({
|
|
|
8231
8231
|
"aria-label": field.name
|
|
8232
8232
|
}
|
|
8233
8233
|
);
|
|
8234
|
-
case
|
|
8235
|
-
case
|
|
8234
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.File:
|
|
8235
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Image:
|
|
8236
8236
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8237
8237
|
FileUploadInput,
|
|
8238
8238
|
{
|
|
@@ -8243,7 +8243,7 @@ function FieldInput({
|
|
|
8243
8243
|
classNames
|
|
8244
8244
|
}
|
|
8245
8245
|
);
|
|
8246
|
-
case
|
|
8246
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Email:
|
|
8247
8247
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8248
8248
|
"input",
|
|
8249
8249
|
{
|
|
@@ -8255,7 +8255,7 @@ function FieldInput({
|
|
|
8255
8255
|
className: inputClass
|
|
8256
8256
|
}
|
|
8257
8257
|
);
|
|
8258
|
-
case
|
|
8258
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.DateTime: {
|
|
8259
8259
|
const stringValue = typeof value === "string" ? value : "";
|
|
8260
8260
|
const [datePart, timePartRaw] = stringValue.includes("T") ? stringValue.split("T", 2) : [stringValue, ""];
|
|
8261
8261
|
const timePart = (timePartRaw ?? "").slice(0, 5);
|
|
@@ -8294,7 +8294,7 @@ function FieldInput({
|
|
|
8294
8294
|
)
|
|
8295
8295
|
] });
|
|
8296
8296
|
}
|
|
8297
|
-
case
|
|
8297
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Time:
|
|
8298
8298
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8299
8299
|
TimePicker,
|
|
8300
8300
|
{
|
|
@@ -8305,7 +8305,7 @@ function FieldInput({
|
|
|
8305
8305
|
"aria-label": field.name
|
|
8306
8306
|
}
|
|
8307
8307
|
);
|
|
8308
|
-
case
|
|
8308
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.MultiSelect:
|
|
8309
8309
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8310
8310
|
MultiSelectInput,
|
|
8311
8311
|
{
|
|
@@ -8315,7 +8315,7 @@ function FieldInput({
|
|
|
8315
8315
|
classNames
|
|
8316
8316
|
}
|
|
8317
8317
|
);
|
|
8318
|
-
case
|
|
8318
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.DateRange:
|
|
8319
8319
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8320
8320
|
DateRangeInput,
|
|
8321
8321
|
{
|
|
@@ -8325,7 +8325,7 @@ function FieldInput({
|
|
|
8325
8325
|
classNames
|
|
8326
8326
|
}
|
|
8327
8327
|
);
|
|
8328
|
-
case
|
|
8328
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Address:
|
|
8329
8329
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8330
8330
|
AddressInput,
|
|
8331
8331
|
{
|
|
@@ -8336,7 +8336,7 @@ function FieldInput({
|
|
|
8336
8336
|
inputClass
|
|
8337
8337
|
}
|
|
8338
8338
|
);
|
|
8339
|
-
case
|
|
8339
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Location:
|
|
8340
8340
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8341
8341
|
LocationInput,
|
|
8342
8342
|
{
|
|
@@ -8347,7 +8347,7 @@ function FieldInput({
|
|
|
8347
8347
|
inputClass
|
|
8348
8348
|
}
|
|
8349
8349
|
);
|
|
8350
|
-
case
|
|
8350
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Phone:
|
|
8351
8351
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8352
8352
|
PhoneInput,
|
|
8353
8353
|
{
|
|
@@ -8358,7 +8358,7 @@ function FieldInput({
|
|
|
8358
8358
|
inputClass
|
|
8359
8359
|
}
|
|
8360
8360
|
);
|
|
8361
|
-
case
|
|
8361
|
+
case chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Signature:
|
|
8362
8362
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8363
8363
|
SignatureInput,
|
|
8364
8364
|
{
|
|
@@ -8391,7 +8391,7 @@ function FileUploadInput({
|
|
|
8391
8391
|
const [isUploading, setIsUploading] = React14__default.default.useState(false);
|
|
8392
8392
|
const fileUrl = typeof value === "string" ? value : void 0;
|
|
8393
8393
|
const acceptedFormats = field.validation?.accepted_formats;
|
|
8394
|
-
const accept = acceptedFormats ? acceptedFormats.map((f) => `.${f}`).join(",") : field.field_type ===
|
|
8394
|
+
const accept = acceptedFormats ? acceptedFormats.map((f) => `.${f}`).join(",") : field.field_type === chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Image ? "image/*" : void 0;
|
|
8395
8395
|
const handleFile = async (file) => {
|
|
8396
8396
|
if (!onFileUpload) return;
|
|
8397
8397
|
if (field.validation?.max_size_mb) {
|
|
@@ -8409,7 +8409,7 @@ function FileUploadInput({
|
|
|
8409
8409
|
}
|
|
8410
8410
|
};
|
|
8411
8411
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-y-2", classNames?.fileInput), children: fileUrl ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8412
|
-
field.field_type ===
|
|
8412
|
+
field.field_type === chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Image && /* @__PURE__ */ jsxRuntime.jsx("img", { src: fileUrl, alt: "Uploaded", className: "w-16 h-16 object-cover rounded-md border border-border" }),
|
|
8413
8413
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-foreground truncate", children: fileUrl.split("/").pop() }) }),
|
|
8414
8414
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8415
8415
|
"button",
|
|
@@ -8435,7 +8435,7 @@ function FileUploadInput({
|
|
|
8435
8435
|
}
|
|
8436
8436
|
),
|
|
8437
8437
|
isUploading ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: "Uploading..." }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
8438
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: field.placeholder || `Upload ${field.field_type ===
|
|
8438
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: field.placeholder || `Upload ${field.field_type === chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Image ? "image" : "file"}` }),
|
|
8439
8439
|
acceptedFormats && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-muted-foreground/60 mt-1", children: [
|
|
8440
8440
|
acceptedFormats.map((f) => f.toUpperCase()).join(", "),
|
|
8441
8441
|
field.validation?.max_size_mb && ` \xB7 Max ${field.validation.max_size_mb}MB`
|
|
@@ -10176,7 +10176,7 @@ function CartLineItemRow({
|
|
|
10176
10176
|
const isOptimistic = item.isOptimistic === true;
|
|
10177
10177
|
const lineTotal = chunkPTPOQVXS_js.parsePrice(unitPrice) * item.quantity;
|
|
10178
10178
|
const imageUrl = item.product.image_url;
|
|
10179
|
-
const variantLabel2 = item.variant ?
|
|
10179
|
+
const variantLabel2 = item.variant ? chunkT7Z25EY4_js.getVariantDisplayName(item.variant, item.product.name) : null;
|
|
10180
10180
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10181
10181
|
"div",
|
|
10182
10182
|
{
|
|
@@ -10276,7 +10276,7 @@ function CartLineItemRow({
|
|
|
10276
10276
|
input.field_name,
|
|
10277
10277
|
":"
|
|
10278
10278
|
] }),
|
|
10279
|
-
/* @__PURE__ */ jsxRuntime.jsx("dd", { "data-cimplify-cart-input-value": true, className: "text-foreground m-0 truncate", children: input.field_type ===
|
|
10279
|
+
/* @__PURE__ */ jsxRuntime.jsx("dd", { "data-cimplify-cart-input-value": true, className: "text-foreground m-0 truncate", children: input.field_type === chunkT7Z25EY4_js.INPUT_FIELD_TYPE.File || input.field_type === chunkT7Z25EY4_js.INPUT_FIELD_TYPE.Image ? String(input.value).split("/").pop() || "Uploaded file" : String(input.value) })
|
|
10280
10280
|
] }, input.field_id)) }),
|
|
10281
10281
|
(item.lineType === "service" || item.product.type === "service") && item.scheduledStart && /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-cimplify-cart-service-info": true, className: cn("mt-1.5 flex items-center gap-1.5 text-xs text-muted-foreground", classNames?.serviceInfo), children: [
|
|
10282
10282
|
/* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-3.5 h-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2", viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" }) }),
|
|
@@ -11161,7 +11161,7 @@ function FoodProductCard({
|
|
|
11161
11161
|
const tags = product.tags || [];
|
|
11162
11162
|
const isSignature = product.metadata?.is_signature === true;
|
|
11163
11163
|
const isNew = product.metadata?.is_new === true;
|
|
11164
|
-
const isComposite = product.type ===
|
|
11164
|
+
const isComposite = product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Composite;
|
|
11165
11165
|
return /* @__PURE__ */ jsxRuntime.jsxs(CardShell, { product, renderLink, className, children: [
|
|
11166
11166
|
/* @__PURE__ */ jsxRuntime.jsxs(CardImage, { src: image, alt: product.name, aspectRatio: "square", renderImage, children: [
|
|
11167
11167
|
isSignature && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "absolute top-3 left-3 inline-flex items-center gap-1 text-[11px] font-semibold tracking-wide bg-amber-50 text-amber-700 border border-amber-200/60 px-2 py-0.5 rounded-md", children: [
|
|
@@ -11928,26 +11928,36 @@ var BUILT_IN_CARDS = {
|
|
|
11928
11928
|
["composite" /* Composite */]: CompositeProductCard,
|
|
11929
11929
|
["subscription" /* Subscription */]: SubscriptionCard
|
|
11930
11930
|
};
|
|
11931
|
-
var RENTAL_UNITS = /* @__PURE__ */ new Set([
|
|
11932
|
-
var LEASE_UNITS = /* @__PURE__ */ new Set([
|
|
11931
|
+
var RENTAL_UNITS = /* @__PURE__ */ new Set([chunkT7Z25EY4_js.DURATION_UNIT.Days, chunkT7Z25EY4_js.DURATION_UNIT.Hours]);
|
|
11932
|
+
var LEASE_UNITS = /* @__PURE__ */ new Set([chunkT7Z25EY4_js.DURATION_UNIT.Weeks, chunkT7Z25EY4_js.DURATION_UNIT.Months, chunkT7Z25EY4_js.DURATION_UNIT.Years]);
|
|
11933
11933
|
function resolveCardVariant(product) {
|
|
11934
|
-
if (product.type ===
|
|
11934
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Bundle) {
|
|
11935
11935
|
return "bundle" /* Bundle */;
|
|
11936
11936
|
}
|
|
11937
|
-
if (product.type ===
|
|
11937
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Composite) {
|
|
11938
11938
|
return "composite" /* Composite */;
|
|
11939
11939
|
}
|
|
11940
11940
|
if (product.quantity_pricing && product.quantity_pricing.length > 1) {
|
|
11941
11941
|
return "wholesale" /* Wholesale */;
|
|
11942
11942
|
}
|
|
11943
|
-
if (product.type ===
|
|
11943
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Digital) {
|
|
11944
11944
|
return "digital" /* Digital */;
|
|
11945
11945
|
}
|
|
11946
|
-
if (product.type ===
|
|
11946
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Service) {
|
|
11947
|
+
switch (product.boundary_kind) {
|
|
11948
|
+
case chunkT7Z25EY4_js.BOUNDARY_KIND.CheckInOut:
|
|
11949
|
+
return "accommodation" /* Accommodation */;
|
|
11950
|
+
case chunkT7Z25EY4_js.BOUNDARY_KIND.MoveInOut:
|
|
11951
|
+
return "lease" /* Lease */;
|
|
11952
|
+
case chunkT7Z25EY4_js.BOUNDARY_KIND.PickupReturn:
|
|
11953
|
+
case chunkT7Z25EY4_js.BOUNDARY_KIND.DeliveryCollection:
|
|
11954
|
+
case chunkT7Z25EY4_js.BOUNDARY_KIND.AccessVacate:
|
|
11955
|
+
return "rental" /* Rental */;
|
|
11956
|
+
}
|
|
11947
11957
|
if (product.duration_unit && RENTAL_UNITS.has(product.duration_unit)) {
|
|
11948
11958
|
return "rental" /* Rental */;
|
|
11949
11959
|
}
|
|
11950
|
-
if (product.duration_unit ===
|
|
11960
|
+
if (product.duration_unit === chunkT7Z25EY4_js.DURATION_UNIT.Nights) {
|
|
11951
11961
|
return "accommodation" /* Accommodation */;
|
|
11952
11962
|
}
|
|
11953
11963
|
if (product.duration_unit && LEASE_UNITS.has(product.duration_unit)) {
|
|
@@ -11958,10 +11968,10 @@ function resolveCardVariant(product) {
|
|
|
11958
11968
|
}
|
|
11959
11969
|
return "standard" /* Standard */;
|
|
11960
11970
|
}
|
|
11961
|
-
if (product.render_hint ===
|
|
11971
|
+
if (product.render_hint === chunkT7Z25EY4_js.RENDER_HINT.Food) {
|
|
11962
11972
|
return "food" /* Food */;
|
|
11963
11973
|
}
|
|
11964
|
-
if (product.render_hint ===
|
|
11974
|
+
if (product.render_hint === chunkT7Z25EY4_js.RENDER_HINT.Physical) {
|
|
11965
11975
|
return "retail" /* Retail */;
|
|
11966
11976
|
}
|
|
11967
11977
|
return "retail" /* Retail */;
|
|
@@ -12219,6 +12229,31 @@ function ProductGrid({
|
|
|
12219
12229
|
)
|
|
12220
12230
|
] });
|
|
12221
12231
|
}
|
|
12232
|
+
|
|
12233
|
+
// src/react/utils/boundary-labels.ts
|
|
12234
|
+
var PRESET_LABELS = {
|
|
12235
|
+
check_in_out: { start: "Check-in", end: "Check-out" },
|
|
12236
|
+
pickup_return: { start: "Pickup", end: "Return" },
|
|
12237
|
+
delivery_collection: { start: "Delivery", end: "Collection" },
|
|
12238
|
+
access_vacate: { start: "Access", end: "Vacate" },
|
|
12239
|
+
move_in_out: { start: "Move-in", end: "Move-out" }
|
|
12240
|
+
};
|
|
12241
|
+
function defaultBoundaryKind(unit) {
|
|
12242
|
+
return unit === chunkT7Z25EY4_js.DURATION_UNIT.Nights ? chunkT7Z25EY4_js.BOUNDARY_KIND.CheckInOut : chunkT7Z25EY4_js.BOUNDARY_KIND.PickupReturn;
|
|
12243
|
+
}
|
|
12244
|
+
function resolveBoundaryKind(product) {
|
|
12245
|
+
return product.boundary_kind ?? defaultBoundaryKind(product.duration_unit);
|
|
12246
|
+
}
|
|
12247
|
+
function getBoundaryLabels(product) {
|
|
12248
|
+
const kind = resolveBoundaryKind(product);
|
|
12249
|
+
if (kind === chunkT7Z25EY4_js.BOUNDARY_KIND.Custom) {
|
|
12250
|
+
return {
|
|
12251
|
+
start: product.boundary_start_label?.trim() || "Start",
|
|
12252
|
+
end: product.boundary_end_label?.trim() || "End"
|
|
12253
|
+
};
|
|
12254
|
+
}
|
|
12255
|
+
return PRESET_LABELS[kind];
|
|
12256
|
+
}
|
|
12222
12257
|
var SearchIcon = () => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12223
12258
|
"svg",
|
|
12224
12259
|
{
|
|
@@ -14272,7 +14307,7 @@ function DefaultProductLayout({
|
|
|
14272
14307
|
className
|
|
14273
14308
|
}) {
|
|
14274
14309
|
const [selectedVariantId, setSelectedVariantId] = React14__default.default.useState();
|
|
14275
|
-
const images =
|
|
14310
|
+
const images = chunkT7Z25EY4_js.resolveGallery(product, selectedVariantId);
|
|
14276
14311
|
const currency = chunkPTPOQVXS_js.getProductCurrency(product);
|
|
14277
14312
|
const hasRange = product.quantity_pricing && product.quantity_pricing.length > 1 || product.variants && product.variants.length > 1;
|
|
14278
14313
|
const onSale = chunkPTPOQVXS_js.isOnSale(product);
|
|
@@ -14919,25 +14954,25 @@ function resolveTemplateKey(product) {
|
|
|
14919
14954
|
if (typeof metaTemplate === "string" && metaTemplate.trim()) {
|
|
14920
14955
|
return metaTemplate.trim();
|
|
14921
14956
|
}
|
|
14922
|
-
if (product.type ===
|
|
14957
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Bundle) {
|
|
14923
14958
|
return "bundle" /* Bundle */;
|
|
14924
14959
|
}
|
|
14925
|
-
if (product.type ===
|
|
14960
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Composite) {
|
|
14926
14961
|
return "composite" /* Composite */;
|
|
14927
14962
|
}
|
|
14928
14963
|
if (product.quantity_pricing && product.quantity_pricing.length > 1) {
|
|
14929
14964
|
return "wholesale" /* Wholesale */;
|
|
14930
14965
|
}
|
|
14931
|
-
if (product.type ===
|
|
14966
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Service) {
|
|
14932
14967
|
return "service" /* Service */;
|
|
14933
14968
|
}
|
|
14934
|
-
if (product.type ===
|
|
14969
|
+
if (product.type === chunkT7Z25EY4_js.PRODUCT_TYPE.Digital) {
|
|
14935
14970
|
return "digital" /* Digital */;
|
|
14936
14971
|
}
|
|
14937
|
-
if (product.render_hint ===
|
|
14972
|
+
if (product.render_hint === chunkT7Z25EY4_js.RENDER_HINT.Food) {
|
|
14938
14973
|
return "food" /* Food */;
|
|
14939
14974
|
}
|
|
14940
|
-
if (product.render_hint ===
|
|
14975
|
+
if (product.render_hint === chunkT7Z25EY4_js.RENDER_HINT.Physical) {
|
|
14941
14976
|
return "physical" /* Physical */;
|
|
14942
14977
|
}
|
|
14943
14978
|
return "default" /* Default */;
|
|
@@ -17190,7 +17225,7 @@ function SparkleIcon({ className }) {
|
|
|
17190
17225
|
|
|
17191
17226
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
17192
17227
|
enumerable: true,
|
|
17193
|
-
get: function () { return
|
|
17228
|
+
get: function () { return chunkT7Z25EY4_js.getVariantDisplayName; }
|
|
17194
17229
|
});
|
|
17195
17230
|
exports.AccommodationCard = AccommodationCard;
|
|
17196
17231
|
exports.AccountContent = AccountContent;
|
|
@@ -17370,8 +17405,11 @@ exports.WholesaleProductCard = WholesaleProductCard;
|
|
|
17370
17405
|
exports.WholesaleProductLayout = WholesaleProductLayout;
|
|
17371
17406
|
exports.WishlistButton = WishlistButton;
|
|
17372
17407
|
exports.cn = cn;
|
|
17408
|
+
exports.defaultBoundaryKind = defaultBoundaryKind;
|
|
17409
|
+
exports.getBoundaryLabels = getBoundaryLabels;
|
|
17373
17410
|
exports.prefetchProduct = prefetchProduct;
|
|
17374
17411
|
exports.prefetchProducts = prefetchProducts;
|
|
17412
|
+
exports.resolveBoundaryKind = resolveBoundaryKind;
|
|
17375
17413
|
exports.roomToResource = roomToResource;
|
|
17376
17414
|
exports.sanitizeRichTextHtml = sanitizeRichTextHtml;
|
|
17377
17415
|
exports.stripHtmlToText = stripHtmlToText;
|
package/dist/react.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { DURATION_UNIT, getVariantDisplayName, INPUT_FIELD_TYPE, PRODUCT_TYPE, resolveGallery, RENDER_HINT, DEFAULT_CDN_BASE_URL } from './chunk-
|
|
3
|
-
export { getVariantDisplayName } from './chunk-
|
|
4
|
-
import { createCimplifyClient } from './chunk-
|
|
5
|
-
import { ELEMENT_TYPES, EVENT_TYPES, startSignIn } from './chunk-
|
|
2
|
+
import { DURATION_UNIT, getVariantDisplayName, INPUT_FIELD_TYPE, PRODUCT_TYPE, BOUNDARY_KIND, resolveGallery, RENDER_HINT, DEFAULT_CDN_BASE_URL } from './chunk-OZDDHSIB.mjs';
|
|
3
|
+
export { getVariantDisplayName } from './chunk-OZDDHSIB.mjs';
|
|
4
|
+
import { createCimplifyClient } from './chunk-A7NODD4Q.mjs';
|
|
5
|
+
import { ELEMENT_TYPES, EVENT_TYPES, startSignIn } from './chunk-ZU4ZRYUR.mjs';
|
|
6
6
|
import { parsePrice, formatMoney, formatPrice, getProductCurrency, getUnitPriceAtQuantity, isOnSale, getDiscountPercentage, getBasePrice, getPriceRange, formatPriceRange } from './chunk-KFLGQGMC.mjs';
|
|
7
7
|
import { isSupportedCurrency } from './chunk-K5EN2W2Q.mjs';
|
|
8
8
|
import './chunk-3G6RQLXK.mjs';
|
|
@@ -11920,6 +11920,16 @@ function resolveCardVariant(product) {
|
|
|
11920
11920
|
return "digital" /* Digital */;
|
|
11921
11921
|
}
|
|
11922
11922
|
if (product.type === PRODUCT_TYPE.Service) {
|
|
11923
|
+
switch (product.boundary_kind) {
|
|
11924
|
+
case BOUNDARY_KIND.CheckInOut:
|
|
11925
|
+
return "accommodation" /* Accommodation */;
|
|
11926
|
+
case BOUNDARY_KIND.MoveInOut:
|
|
11927
|
+
return "lease" /* Lease */;
|
|
11928
|
+
case BOUNDARY_KIND.PickupReturn:
|
|
11929
|
+
case BOUNDARY_KIND.DeliveryCollection:
|
|
11930
|
+
case BOUNDARY_KIND.AccessVacate:
|
|
11931
|
+
return "rental" /* Rental */;
|
|
11932
|
+
}
|
|
11923
11933
|
if (product.duration_unit && RENTAL_UNITS.has(product.duration_unit)) {
|
|
11924
11934
|
return "rental" /* Rental */;
|
|
11925
11935
|
}
|
|
@@ -12195,6 +12205,31 @@ function ProductGrid({
|
|
|
12195
12205
|
)
|
|
12196
12206
|
] });
|
|
12197
12207
|
}
|
|
12208
|
+
|
|
12209
|
+
// src/react/utils/boundary-labels.ts
|
|
12210
|
+
var PRESET_LABELS = {
|
|
12211
|
+
check_in_out: { start: "Check-in", end: "Check-out" },
|
|
12212
|
+
pickup_return: { start: "Pickup", end: "Return" },
|
|
12213
|
+
delivery_collection: { start: "Delivery", end: "Collection" },
|
|
12214
|
+
access_vacate: { start: "Access", end: "Vacate" },
|
|
12215
|
+
move_in_out: { start: "Move-in", end: "Move-out" }
|
|
12216
|
+
};
|
|
12217
|
+
function defaultBoundaryKind(unit) {
|
|
12218
|
+
return unit === DURATION_UNIT.Nights ? BOUNDARY_KIND.CheckInOut : BOUNDARY_KIND.PickupReturn;
|
|
12219
|
+
}
|
|
12220
|
+
function resolveBoundaryKind(product) {
|
|
12221
|
+
return product.boundary_kind ?? defaultBoundaryKind(product.duration_unit);
|
|
12222
|
+
}
|
|
12223
|
+
function getBoundaryLabels(product) {
|
|
12224
|
+
const kind = resolveBoundaryKind(product);
|
|
12225
|
+
if (kind === BOUNDARY_KIND.Custom) {
|
|
12226
|
+
return {
|
|
12227
|
+
start: product.boundary_start_label?.trim() || "Start",
|
|
12228
|
+
end: product.boundary_end_label?.trim() || "End"
|
|
12229
|
+
};
|
|
12230
|
+
}
|
|
12231
|
+
return PRESET_LABELS[kind];
|
|
12232
|
+
}
|
|
12198
12233
|
var SearchIcon = () => /* @__PURE__ */ jsxs(
|
|
12199
12234
|
"svg",
|
|
12200
12235
|
{
|
|
@@ -17164,4 +17199,4 @@ function SparkleIcon({ className }) {
|
|
|
17164
17199
|
);
|
|
17165
17200
|
}
|
|
17166
17201
|
|
|
17167
|
-
export { AccommodationCard, AccountContent, AccountDashboardPage, AccountHero, AccountIdentityStrip, AccountLineItem, AccountLineItems, AccountNav, AccountOrderDetailPage, AccountOrderView, AccountOrdersPage, AccountShell, AccountSidebar, AccountSignedOutPrompt, AccountSubscriptionDetailPage, AccountSubscriptionsPage, Ad, AdProvider, AddOnSelector, AddressElement, AuthElement, AvailabilityBadge, BackLink, BillingPlanSelector, BookingCard, BookingList, BookingPage, BookingSummary, BookingsPage, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, Button, CardImage, CardShell, CardVariant, CartDrawer, CartDrawerProvider, CartPage, CartSummary, CartTemplate, CatalogueCollectionLayout, CataloguePage, CatalogueTemplate, CategoryFilter, CategoryGrid, ChatWidget, CheckIcon, CheckoutPage, CimplifyCheckout, CimplifyProvider, CimplifySignInButton, CimplifyUserButton, CollectionPage, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, ContextCard, ContinuityCard, CurrencySelector, CustomAttributesTable, CustomerInputFields, DashboardIcon, DashboardIcon20, DatePicker, DateSlotPicker, DealBanner, DealsPage, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, DeliveryTracker, DeliveryTruckIcon, DigitalProductCard, DigitalProductLayout, DiscountInput, ElementsProvider, EmptyState, ErrorState, FeaturedCollectionLayout, FilterTabs, FoodProductCard, FoodProductLayout, HappeningCard, IdentityIcon, IdentityOfframp, InventoryBadge, ItemsCard, LeaseServiceCard, LineItemDetails, LocationPicker, MediaGallery, MetadataStringList, MobileAccountShell, MobileBackButton, MobileMoreButton, MobileTabBar, NextDeliveryCard, OrderDetailHeader, OrderDetailMetaPipe, OrderDetailPage, OrderHistory, OrderHistoryPage, OrderList, OrderRow, OrderSummary, OrderTimeline, OrderTotals, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, PriceRange, ProductCard, ProductCustomizer, ProductGrid, ProductImageGallery, ProductModel3D, ProductPage, ProductSheet, ProductTemplate, PropertiesTable, QuantitySelector, QuickAddButton, RecentlyViewed, RecommendationCarousel, RelatedProductsSection, RentalServiceCard, ResourcePicker, RetailProductCard, RichText, SaleBadge, SalePrice, SaleTeaser, ScheduleServiceCard, SearchInput, SearchPage, SearchTemplate, Section, SectionMore, ServiceProductLayout, SessionMessageBanner, SignOutIcon, Skeleton, SlotPicker, SoldOutOverlay, StaffPicker, StandardServiceCard, Status, StoreNav, StoreVideo, SubscriptionCard, SubscriptionList, SubscriptionRow, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, Toast, TwoColumnGrid, VariantSelector, VolumePricing, WelcomeCard, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, prefetchProduct, prefetchProducts, roomToResource, sanitizeRichTextHtml, stripHtmlToText, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useDeliveryOptions, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useStoreCredit, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
17202
|
+
export { AccommodationCard, AccountContent, AccountDashboardPage, AccountHero, AccountIdentityStrip, AccountLineItem, AccountLineItems, AccountNav, AccountOrderDetailPage, AccountOrderView, AccountOrdersPage, AccountShell, AccountSidebar, AccountSignedOutPrompt, AccountSubscriptionDetailPage, AccountSubscriptionsPage, Ad, AdProvider, AddOnSelector, AddressElement, AuthElement, AvailabilityBadge, BackLink, BillingPlanSelector, BookingCard, BookingList, BookingPage, BookingSummary, BookingsPage, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, Button, CardImage, CardShell, CardVariant, CartDrawer, CartDrawerProvider, CartPage, CartSummary, CartTemplate, CatalogueCollectionLayout, CataloguePage, CatalogueTemplate, CategoryFilter, CategoryGrid, ChatWidget, CheckIcon, CheckoutPage, CimplifyCheckout, CimplifyProvider, CimplifySignInButton, CimplifyUserButton, CollectionPage, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, ContextCard, ContinuityCard, CurrencySelector, CustomAttributesTable, CustomerInputFields, DashboardIcon, DashboardIcon20, DatePicker, DateSlotPicker, DealBanner, DealsPage, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, DeliveryTracker, DeliveryTruckIcon, DigitalProductCard, DigitalProductLayout, DiscountInput, ElementsProvider, EmptyState, ErrorState, FeaturedCollectionLayout, FilterTabs, FoodProductCard, FoodProductLayout, HappeningCard, IdentityIcon, IdentityOfframp, InventoryBadge, ItemsCard, LeaseServiceCard, LineItemDetails, LocationPicker, MediaGallery, MetadataStringList, MobileAccountShell, MobileBackButton, MobileMoreButton, MobileTabBar, NextDeliveryCard, OrderDetailHeader, OrderDetailMetaPipe, OrderDetailPage, OrderHistory, OrderHistoryPage, OrderList, OrderRow, OrderSummary, OrderTimeline, OrderTotals, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, PriceRange, ProductCard, ProductCustomizer, ProductGrid, ProductImageGallery, ProductModel3D, ProductPage, ProductSheet, ProductTemplate, PropertiesTable, QuantitySelector, QuickAddButton, RecentlyViewed, RecommendationCarousel, RelatedProductsSection, RentalServiceCard, ResourcePicker, RetailProductCard, RichText, SaleBadge, SalePrice, SaleTeaser, ScheduleServiceCard, SearchInput, SearchPage, SearchTemplate, Section, SectionMore, ServiceProductLayout, SessionMessageBanner, SignOutIcon, Skeleton, SlotPicker, SoldOutOverlay, StaffPicker, StandardServiceCard, Status, StoreNav, StoreVideo, SubscriptionCard, SubscriptionList, SubscriptionRow, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, Toast, TwoColumnGrid, VariantSelector, VolumePricing, WelcomeCard, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, defaultBoundaryKind, getBoundaryLabels, prefetchProduct, prefetchProducts, resolveBoundaryKind, roomToResource, sanitizeRichTextHtml, stripHtmlToText, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useDeliveryOptions, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useStoreCredit, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import {
|
|
2
|
+
import { b3 as ProductInputField } from './product-DoA36Eqh.js';
|
|
3
3
|
|
|
4
4
|
interface Clock {
|
|
5
5
|
now(): Date;
|
|
@@ -970,7 +970,7 @@ interface UploadService {
|
|
|
970
970
|
|
|
971
971
|
interface LiteService {
|
|
972
972
|
bootstrap(businessId: string): unknown;
|
|
973
|
-
|
|
973
|
+
getResource(resourceId: string): unknown;
|
|
974
974
|
getMenu(businessId: string): unknown;
|
|
975
975
|
getMenuCategory(categoryId: string): unknown;
|
|
976
976
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import {
|
|
2
|
+
import { b3 as ProductInputField } from './product-DoA36Eqh.mjs';
|
|
3
3
|
|
|
4
4
|
interface Clock {
|
|
5
5
|
now(): Date;
|
|
@@ -970,7 +970,7 @@ interface UploadService {
|
|
|
970
970
|
|
|
971
971
|
interface LiteService {
|
|
972
972
|
bootstrap(businessId: string): unknown;
|
|
973
|
-
|
|
973
|
+
getResource(resourceId: string): unknown;
|
|
974
974
|
getMenu(businessId: string): unknown;
|
|
975
975
|
getMenuCategory(categoryId: string): unknown;
|
|
976
976
|
}
|
package/dist/server.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ac as CimplifyClient } from './client-
|
|
2
|
-
export { J as CacheOptions, cw as ReadRequestOptions,
|
|
3
|
-
export {
|
|
1
|
+
import { ac as CimplifyClient } from './client-r5VSGFRU.mjs';
|
|
2
|
+
export { J as CacheOptions, cw as ReadRequestOptions, cT as Result } from './client-r5VSGFRU.mjs';
|
|
3
|
+
export { S as Category, V as CimplifyError, W as Collection, aZ as Product, bb as ProductWithDetails } from './product-DoA36Eqh.mjs';
|
|
4
4
|
import { JWTVerifyResult } from 'jose';
|
|
5
|
-
import './payment-
|
|
5
|
+
import './payment-TnJUoHqL.mjs';
|
|
6
6
|
|
|
7
7
|
interface ServerClientOptions {
|
|
8
8
|
/**
|
package/dist/server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ac as CimplifyClient } from './client-
|
|
2
|
-
export { J as CacheOptions, cw as ReadRequestOptions,
|
|
3
|
-
export {
|
|
1
|
+
import { ac as CimplifyClient } from './client-D0PrO1-Q.js';
|
|
2
|
+
export { J as CacheOptions, cw as ReadRequestOptions, cT as Result } from './client-D0PrO1-Q.js';
|
|
3
|
+
export { S as Category, V as CimplifyError, W as Collection, aZ as Product, bb as ProductWithDetails } from './product-DoA36Eqh.js';
|
|
4
4
|
import { JWTVerifyResult } from 'jose';
|
|
5
|
-
import './payment-
|
|
5
|
+
import './payment-Cfoo9MT7.js';
|
|
6
6
|
|
|
7
7
|
interface ServerClientOptions {
|
|
8
8
|
/**
|