@cimplify/sdk 0.68.0 → 0.70.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/README.md +3 -2
- 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-TAKORJP4.mjs → chunk-6XXVA3IV.mjs} +2 -2
- package/dist/{chunk-WCSAZRNC.js → chunk-BCWPRPK7.js} +10 -0
- package/dist/{chunk-KNPE4WCQ.mjs → chunk-EAVXSFAB.mjs} +1 -1
- package/dist/{chunk-SXGFJEME.js → chunk-I4MP2XZS.js} +73 -7
- package/dist/{chunk-SOV4H6PQ.mjs → chunk-M2CXZQHS.mjs} +10 -0
- package/dist/{chunk-FVGVJ4TC.mjs → chunk-O3ECKVOM.mjs} +73 -7
- package/dist/{chunk-5HAUJBOK.js → chunk-QZQEGRGB.js} +35 -35
- package/dist/{chunk-NGQCWFKF.js → chunk-SC5DUKGD.js} +4 -4
- package/dist/{client-CBE7ksYC.d.mts → client-BRGGjeny.d.mts} +1 -1
- package/dist/{client-Dyo3dvNy.d.mts → client-DRJvXz54.d.mts} +181 -21
- package/dist/{client-DlXfZy7N.d.ts → client-Des_GqmQ.d.ts} +1 -1
- package/dist/{client-CfeQRwhl.d.ts → client-DjQhg6yr.d.ts} +181 -21
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +68 -68
- package/dist/index.mjs +3 -3
- package/dist/mock/cli.mjs +73 -7
- package/dist/mock/library.js +73 -7
- package/dist/mock/library.mjs +73 -7
- package/dist/mock/msw.js +73 -7
- package/dist/mock/msw.mjs +73 -7
- package/dist/react.d.mts +166 -2
- package/dist/react.d.ts +166 -2
- package/dist/react.js +1223 -493
- package/dist/react.mjs +801 -79
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/styles.css +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +79 -79
- package/dist/testing.mjs +5 -5
- package/package.json +1 -1
package/dist/mock/library.mjs
CHANGED
|
@@ -2410,23 +2410,47 @@ function buildV1(deps) {
|
|
|
2410
2410
|
app.get("/auth/status", (c) => tryRoute(c, () => deps.auth.status(c.var.session.token)));
|
|
2411
2411
|
app.post("/auth/request-otp", async (c) => {
|
|
2412
2412
|
const body = await c.req.json().catch(() => ({}));
|
|
2413
|
-
return tryRoute(c, () =>
|
|
2413
|
+
return tryRoute(c, () => {
|
|
2414
|
+
deps.auth.requestOtp(body.contact ?? "");
|
|
2415
|
+
return {
|
|
2416
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
2417
|
+
expires_in: 300,
|
|
2418
|
+
is_new_account: false
|
|
2419
|
+
};
|
|
2420
|
+
});
|
|
2414
2421
|
});
|
|
2415
2422
|
app.post("/auth/verify-otp", async (c) => {
|
|
2416
2423
|
const body = await c.req.json().catch(() => ({}));
|
|
2417
2424
|
return tryRoute(c, () => {
|
|
2418
2425
|
const session = deps.auth.verifyOtp(body.contact ?? "", body.otp_code ?? body.code ?? "");
|
|
2419
2426
|
c.header("x-session-token", session.token);
|
|
2420
|
-
return {
|
|
2427
|
+
return {
|
|
2428
|
+
message: "Successfully authenticated",
|
|
2429
|
+
account_id: session.id,
|
|
2430
|
+
session_token: session.token,
|
|
2431
|
+
refresh_token: session.token,
|
|
2432
|
+
customer: {
|
|
2433
|
+
id: session.customer_id ?? session.id,
|
|
2434
|
+
name: session.customer_name ?? "Test User",
|
|
2435
|
+
email: session.customer_email ?? null,
|
|
2436
|
+
phone: session.customer_phone ?? null,
|
|
2437
|
+
delivery_address: null,
|
|
2438
|
+
created_at: session.created_at,
|
|
2439
|
+
updated_at: session.created_at
|
|
2440
|
+
}
|
|
2441
|
+
};
|
|
2421
2442
|
});
|
|
2422
2443
|
});
|
|
2423
2444
|
app.post("/auth/logout", (c) => {
|
|
2424
2445
|
deps.auth.logout(c.var.session.token);
|
|
2425
|
-
return ok(c, {
|
|
2446
|
+
return ok(c, { message: "Successfully logged out", action: "discard_token" });
|
|
2426
2447
|
});
|
|
2427
2448
|
app.post("/auth/profile", async (c) => {
|
|
2428
2449
|
const body = await c.req.json().catch(() => ({}));
|
|
2429
|
-
return tryRoute(c, () =>
|
|
2450
|
+
return tryRoute(c, () => {
|
|
2451
|
+
deps.auth.updateProfile(c.var.session.token, body);
|
|
2452
|
+
return { success: true, message: "Profile updated successfully" };
|
|
2453
|
+
});
|
|
2430
2454
|
});
|
|
2431
2455
|
app.get("/inventory/products/:product_id/stock", (c) => tryRoute(c, () => deps.inventory.productStock(c.req.param("product_id"))));
|
|
2432
2456
|
app.get("/inventory/variants/:variant_id/stock", (c) => tryRoute(c, () => deps.inventory.variantStock(c.req.param("variant_id"))));
|
|
@@ -3048,7 +3072,12 @@ function buildLink(deps) {
|
|
|
3048
3072
|
const body = await c.req.json().catch(() => ({}));
|
|
3049
3073
|
return tryRoute(c, () => {
|
|
3050
3074
|
deps.auth.requestOtp(body.contact ?? "");
|
|
3051
|
-
return {
|
|
3075
|
+
return {
|
|
3076
|
+
success: true,
|
|
3077
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
3078
|
+
expires_in: 300,
|
|
3079
|
+
is_new_account: false
|
|
3080
|
+
};
|
|
3052
3081
|
});
|
|
3053
3082
|
});
|
|
3054
3083
|
app.post("/auth/verify-otp", async (c) => {
|
|
@@ -3066,7 +3095,29 @@ function buildLink(deps) {
|
|
|
3066
3095
|
refresh_token: session.token,
|
|
3067
3096
|
account_id: session.id,
|
|
3068
3097
|
customer_id: customer.customer.id,
|
|
3069
|
-
|
|
3098
|
+
name: customer.customer.name,
|
|
3099
|
+
email: customer.customer.email,
|
|
3100
|
+
phone: customer.customer.phone,
|
|
3101
|
+
message: "Login successful"
|
|
3102
|
+
};
|
|
3103
|
+
});
|
|
3104
|
+
});
|
|
3105
|
+
app.post("/auth/refresh", async (c) => {
|
|
3106
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3107
|
+
return tryRoute(c, () => {
|
|
3108
|
+
const session = deps.auth.ensureSession(body.session_token ?? c.var.session.token);
|
|
3109
|
+
const customer = deps.link.ensureCustomer(session.customer_id ?? session.id);
|
|
3110
|
+
c.header("x-session-token", session.token);
|
|
3111
|
+
return {
|
|
3112
|
+
success: true,
|
|
3113
|
+
session_token: session.token,
|
|
3114
|
+
refresh_token: session.token,
|
|
3115
|
+
account_id: session.id,
|
|
3116
|
+
customer_id: customer.customer.id,
|
|
3117
|
+
name: customer.customer.name,
|
|
3118
|
+
email: customer.customer.email,
|
|
3119
|
+
phone: customer.customer.phone,
|
|
3120
|
+
message: "Session refreshed"
|
|
3070
3121
|
};
|
|
3071
3122
|
});
|
|
3072
3123
|
});
|
|
@@ -3074,9 +3125,24 @@ function buildLink(deps) {
|
|
|
3074
3125
|
"/auth/logout",
|
|
3075
3126
|
(c) => tryRoute(c, () => {
|
|
3076
3127
|
deps.auth.logout(c.var.session.token);
|
|
3077
|
-
return { success: true, message: "Logged out" };
|
|
3128
|
+
return { success: true, message: "Logged out successfully", action: "discard_token" };
|
|
3078
3129
|
})
|
|
3079
3130
|
);
|
|
3131
|
+
app.get("/profile", (c) => tryRoute(c, () => deps.link.getProfile(customerId(c))));
|
|
3132
|
+
app.post("/profile", async (c) => {
|
|
3133
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3134
|
+
return tryRoute(c, () => {
|
|
3135
|
+
const state = deps.link.ensureCustomer(customerId(c));
|
|
3136
|
+
state.customer = {
|
|
3137
|
+
...state.customer,
|
|
3138
|
+
name: body.name ?? state.customer.name,
|
|
3139
|
+
email: body.email ?? state.customer.email,
|
|
3140
|
+
phone: body.phone ?? state.customer.phone,
|
|
3141
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3142
|
+
};
|
|
3143
|
+
return state.customer;
|
|
3144
|
+
});
|
|
3145
|
+
});
|
|
3080
3146
|
app.get("/data", (c) => tryRoute(c, () => deps.link.getLinkData(customerId(c))));
|
|
3081
3147
|
app.post("/check-status", async (c) => {
|
|
3082
3148
|
const body = await c.req.json().catch(() => ({}));
|
package/dist/mock/msw.js
CHANGED
|
@@ -2410,23 +2410,47 @@ function buildV1(deps) {
|
|
|
2410
2410
|
app.get("/auth/status", (c) => tryRoute(c, () => deps.auth.status(c.var.session.token)));
|
|
2411
2411
|
app.post("/auth/request-otp", async (c) => {
|
|
2412
2412
|
const body = await c.req.json().catch(() => ({}));
|
|
2413
|
-
return tryRoute(c, () =>
|
|
2413
|
+
return tryRoute(c, () => {
|
|
2414
|
+
deps.auth.requestOtp(body.contact ?? "");
|
|
2415
|
+
return {
|
|
2416
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
2417
|
+
expires_in: 300,
|
|
2418
|
+
is_new_account: false
|
|
2419
|
+
};
|
|
2420
|
+
});
|
|
2414
2421
|
});
|
|
2415
2422
|
app.post("/auth/verify-otp", async (c) => {
|
|
2416
2423
|
const body = await c.req.json().catch(() => ({}));
|
|
2417
2424
|
return tryRoute(c, () => {
|
|
2418
2425
|
const session = deps.auth.verifyOtp(body.contact ?? "", body.otp_code ?? body.code ?? "");
|
|
2419
2426
|
c.header("x-session-token", session.token);
|
|
2420
|
-
return {
|
|
2427
|
+
return {
|
|
2428
|
+
message: "Successfully authenticated",
|
|
2429
|
+
account_id: session.id,
|
|
2430
|
+
session_token: session.token,
|
|
2431
|
+
refresh_token: session.token,
|
|
2432
|
+
customer: {
|
|
2433
|
+
id: session.customer_id ?? session.id,
|
|
2434
|
+
name: session.customer_name ?? "Test User",
|
|
2435
|
+
email: session.customer_email ?? null,
|
|
2436
|
+
phone: session.customer_phone ?? null,
|
|
2437
|
+
delivery_address: null,
|
|
2438
|
+
created_at: session.created_at,
|
|
2439
|
+
updated_at: session.created_at
|
|
2440
|
+
}
|
|
2441
|
+
};
|
|
2421
2442
|
});
|
|
2422
2443
|
});
|
|
2423
2444
|
app.post("/auth/logout", (c) => {
|
|
2424
2445
|
deps.auth.logout(c.var.session.token);
|
|
2425
|
-
return ok(c, {
|
|
2446
|
+
return ok(c, { message: "Successfully logged out", action: "discard_token" });
|
|
2426
2447
|
});
|
|
2427
2448
|
app.post("/auth/profile", async (c) => {
|
|
2428
2449
|
const body = await c.req.json().catch(() => ({}));
|
|
2429
|
-
return tryRoute(c, () =>
|
|
2450
|
+
return tryRoute(c, () => {
|
|
2451
|
+
deps.auth.updateProfile(c.var.session.token, body);
|
|
2452
|
+
return { success: true, message: "Profile updated successfully" };
|
|
2453
|
+
});
|
|
2430
2454
|
});
|
|
2431
2455
|
app.get("/inventory/products/:product_id/stock", (c) => tryRoute(c, () => deps.inventory.productStock(c.req.param("product_id"))));
|
|
2432
2456
|
app.get("/inventory/variants/:variant_id/stock", (c) => tryRoute(c, () => deps.inventory.variantStock(c.req.param("variant_id"))));
|
|
@@ -3048,7 +3072,12 @@ function buildLink(deps) {
|
|
|
3048
3072
|
const body = await c.req.json().catch(() => ({}));
|
|
3049
3073
|
return tryRoute(c, () => {
|
|
3050
3074
|
deps.auth.requestOtp(body.contact ?? "");
|
|
3051
|
-
return {
|
|
3075
|
+
return {
|
|
3076
|
+
success: true,
|
|
3077
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
3078
|
+
expires_in: 300,
|
|
3079
|
+
is_new_account: false
|
|
3080
|
+
};
|
|
3052
3081
|
});
|
|
3053
3082
|
});
|
|
3054
3083
|
app.post("/auth/verify-otp", async (c) => {
|
|
@@ -3066,7 +3095,29 @@ function buildLink(deps) {
|
|
|
3066
3095
|
refresh_token: session.token,
|
|
3067
3096
|
account_id: session.id,
|
|
3068
3097
|
customer_id: customer.customer.id,
|
|
3069
|
-
|
|
3098
|
+
name: customer.customer.name,
|
|
3099
|
+
email: customer.customer.email,
|
|
3100
|
+
phone: customer.customer.phone,
|
|
3101
|
+
message: "Login successful"
|
|
3102
|
+
};
|
|
3103
|
+
});
|
|
3104
|
+
});
|
|
3105
|
+
app.post("/auth/refresh", async (c) => {
|
|
3106
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3107
|
+
return tryRoute(c, () => {
|
|
3108
|
+
const session = deps.auth.ensureSession(body.session_token ?? c.var.session.token);
|
|
3109
|
+
const customer = deps.link.ensureCustomer(session.customer_id ?? session.id);
|
|
3110
|
+
c.header("x-session-token", session.token);
|
|
3111
|
+
return {
|
|
3112
|
+
success: true,
|
|
3113
|
+
session_token: session.token,
|
|
3114
|
+
refresh_token: session.token,
|
|
3115
|
+
account_id: session.id,
|
|
3116
|
+
customer_id: customer.customer.id,
|
|
3117
|
+
name: customer.customer.name,
|
|
3118
|
+
email: customer.customer.email,
|
|
3119
|
+
phone: customer.customer.phone,
|
|
3120
|
+
message: "Session refreshed"
|
|
3070
3121
|
};
|
|
3071
3122
|
});
|
|
3072
3123
|
});
|
|
@@ -3074,9 +3125,24 @@ function buildLink(deps) {
|
|
|
3074
3125
|
"/auth/logout",
|
|
3075
3126
|
(c) => tryRoute(c, () => {
|
|
3076
3127
|
deps.auth.logout(c.var.session.token);
|
|
3077
|
-
return { success: true, message: "Logged out" };
|
|
3128
|
+
return { success: true, message: "Logged out successfully", action: "discard_token" };
|
|
3078
3129
|
})
|
|
3079
3130
|
);
|
|
3131
|
+
app.get("/profile", (c) => tryRoute(c, () => deps.link.getProfile(customerId(c))));
|
|
3132
|
+
app.post("/profile", async (c) => {
|
|
3133
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3134
|
+
return tryRoute(c, () => {
|
|
3135
|
+
const state = deps.link.ensureCustomer(customerId(c));
|
|
3136
|
+
state.customer = {
|
|
3137
|
+
...state.customer,
|
|
3138
|
+
name: body.name ?? state.customer.name,
|
|
3139
|
+
email: body.email ?? state.customer.email,
|
|
3140
|
+
phone: body.phone ?? state.customer.phone,
|
|
3141
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3142
|
+
};
|
|
3143
|
+
return state.customer;
|
|
3144
|
+
});
|
|
3145
|
+
});
|
|
3080
3146
|
app.get("/data", (c) => tryRoute(c, () => deps.link.getLinkData(customerId(c))));
|
|
3081
3147
|
app.post("/check-status", async (c) => {
|
|
3082
3148
|
const body = await c.req.json().catch(() => ({}));
|
package/dist/mock/msw.mjs
CHANGED
|
@@ -2408,23 +2408,47 @@ function buildV1(deps) {
|
|
|
2408
2408
|
app.get("/auth/status", (c) => tryRoute(c, () => deps.auth.status(c.var.session.token)));
|
|
2409
2409
|
app.post("/auth/request-otp", async (c) => {
|
|
2410
2410
|
const body = await c.req.json().catch(() => ({}));
|
|
2411
|
-
return tryRoute(c, () =>
|
|
2411
|
+
return tryRoute(c, () => {
|
|
2412
|
+
deps.auth.requestOtp(body.contact ?? "");
|
|
2413
|
+
return {
|
|
2414
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
2415
|
+
expires_in: 300,
|
|
2416
|
+
is_new_account: false
|
|
2417
|
+
};
|
|
2418
|
+
});
|
|
2412
2419
|
});
|
|
2413
2420
|
app.post("/auth/verify-otp", async (c) => {
|
|
2414
2421
|
const body = await c.req.json().catch(() => ({}));
|
|
2415
2422
|
return tryRoute(c, () => {
|
|
2416
2423
|
const session = deps.auth.verifyOtp(body.contact ?? "", body.otp_code ?? body.code ?? "");
|
|
2417
2424
|
c.header("x-session-token", session.token);
|
|
2418
|
-
return {
|
|
2425
|
+
return {
|
|
2426
|
+
message: "Successfully authenticated",
|
|
2427
|
+
account_id: session.id,
|
|
2428
|
+
session_token: session.token,
|
|
2429
|
+
refresh_token: session.token,
|
|
2430
|
+
customer: {
|
|
2431
|
+
id: session.customer_id ?? session.id,
|
|
2432
|
+
name: session.customer_name ?? "Test User",
|
|
2433
|
+
email: session.customer_email ?? null,
|
|
2434
|
+
phone: session.customer_phone ?? null,
|
|
2435
|
+
delivery_address: null,
|
|
2436
|
+
created_at: session.created_at,
|
|
2437
|
+
updated_at: session.created_at
|
|
2438
|
+
}
|
|
2439
|
+
};
|
|
2419
2440
|
});
|
|
2420
2441
|
});
|
|
2421
2442
|
app.post("/auth/logout", (c) => {
|
|
2422
2443
|
deps.auth.logout(c.var.session.token);
|
|
2423
|
-
return ok(c, {
|
|
2444
|
+
return ok(c, { message: "Successfully logged out", action: "discard_token" });
|
|
2424
2445
|
});
|
|
2425
2446
|
app.post("/auth/profile", async (c) => {
|
|
2426
2447
|
const body = await c.req.json().catch(() => ({}));
|
|
2427
|
-
return tryRoute(c, () =>
|
|
2448
|
+
return tryRoute(c, () => {
|
|
2449
|
+
deps.auth.updateProfile(c.var.session.token, body);
|
|
2450
|
+
return { success: true, message: "Profile updated successfully" };
|
|
2451
|
+
});
|
|
2428
2452
|
});
|
|
2429
2453
|
app.get("/inventory/products/:product_id/stock", (c) => tryRoute(c, () => deps.inventory.productStock(c.req.param("product_id"))));
|
|
2430
2454
|
app.get("/inventory/variants/:variant_id/stock", (c) => tryRoute(c, () => deps.inventory.variantStock(c.req.param("variant_id"))));
|
|
@@ -3046,7 +3070,12 @@ function buildLink(deps) {
|
|
|
3046
3070
|
const body = await c.req.json().catch(() => ({}));
|
|
3047
3071
|
return tryRoute(c, () => {
|
|
3048
3072
|
deps.auth.requestOtp(body.contact ?? "");
|
|
3049
|
-
return {
|
|
3073
|
+
return {
|
|
3074
|
+
success: true,
|
|
3075
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
3076
|
+
expires_in: 300,
|
|
3077
|
+
is_new_account: false
|
|
3078
|
+
};
|
|
3050
3079
|
});
|
|
3051
3080
|
});
|
|
3052
3081
|
app.post("/auth/verify-otp", async (c) => {
|
|
@@ -3064,7 +3093,29 @@ function buildLink(deps) {
|
|
|
3064
3093
|
refresh_token: session.token,
|
|
3065
3094
|
account_id: session.id,
|
|
3066
3095
|
customer_id: customer.customer.id,
|
|
3067
|
-
|
|
3096
|
+
name: customer.customer.name,
|
|
3097
|
+
email: customer.customer.email,
|
|
3098
|
+
phone: customer.customer.phone,
|
|
3099
|
+
message: "Login successful"
|
|
3100
|
+
};
|
|
3101
|
+
});
|
|
3102
|
+
});
|
|
3103
|
+
app.post("/auth/refresh", async (c) => {
|
|
3104
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3105
|
+
return tryRoute(c, () => {
|
|
3106
|
+
const session = deps.auth.ensureSession(body.session_token ?? c.var.session.token);
|
|
3107
|
+
const customer = deps.link.ensureCustomer(session.customer_id ?? session.id);
|
|
3108
|
+
c.header("x-session-token", session.token);
|
|
3109
|
+
return {
|
|
3110
|
+
success: true,
|
|
3111
|
+
session_token: session.token,
|
|
3112
|
+
refresh_token: session.token,
|
|
3113
|
+
account_id: session.id,
|
|
3114
|
+
customer_id: customer.customer.id,
|
|
3115
|
+
name: customer.customer.name,
|
|
3116
|
+
email: customer.customer.email,
|
|
3117
|
+
phone: customer.customer.phone,
|
|
3118
|
+
message: "Session refreshed"
|
|
3068
3119
|
};
|
|
3069
3120
|
});
|
|
3070
3121
|
});
|
|
@@ -3072,9 +3123,24 @@ function buildLink(deps) {
|
|
|
3072
3123
|
"/auth/logout",
|
|
3073
3124
|
(c) => tryRoute(c, () => {
|
|
3074
3125
|
deps.auth.logout(c.var.session.token);
|
|
3075
|
-
return { success: true, message: "Logged out" };
|
|
3126
|
+
return { success: true, message: "Logged out successfully", action: "discard_token" };
|
|
3076
3127
|
})
|
|
3077
3128
|
);
|
|
3129
|
+
app.get("/profile", (c) => tryRoute(c, () => deps.link.getProfile(customerId(c))));
|
|
3130
|
+
app.post("/profile", async (c) => {
|
|
3131
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3132
|
+
return tryRoute(c, () => {
|
|
3133
|
+
const state = deps.link.ensureCustomer(customerId(c));
|
|
3134
|
+
state.customer = {
|
|
3135
|
+
...state.customer,
|
|
3136
|
+
name: body.name ?? state.customer.name,
|
|
3137
|
+
email: body.email ?? state.customer.email,
|
|
3138
|
+
phone: body.phone ?? state.customer.phone,
|
|
3139
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3140
|
+
};
|
|
3141
|
+
return state.customer;
|
|
3142
|
+
});
|
|
3143
|
+
});
|
|
3078
3144
|
app.get("/data", (c) => tryRoute(c, () => deps.link.getLinkData(customerId(c))));
|
|
3079
3145
|
app.post("/check-status", async (c) => {
|
|
3080
3146
|
const body = await c.req.json().catch(() => ({}));
|
package/dist/react.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-DRJvXz54.mjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-B_kS4Oxa.mjs';
|
|
7
7
|
import { P as ProductWithPrice } from './price-Cm0tU0V5.mjs';
|
|
@@ -345,6 +345,170 @@ interface ContextCardProps {
|
|
|
345
345
|
}
|
|
346
346
|
declare function ContextCard({ rows, className }: ContextCardProps): react_jsx_runtime.JSX.Element;
|
|
347
347
|
|
|
348
|
+
interface DeliveryRider {
|
|
349
|
+
name: string;
|
|
350
|
+
photoUrl?: string;
|
|
351
|
+
vehicle?: string;
|
|
352
|
+
rating?: number;
|
|
353
|
+
etaLabel?: string;
|
|
354
|
+
distanceLabel?: string;
|
|
355
|
+
}
|
|
356
|
+
interface DeliveryLive {
|
|
357
|
+
/**
|
|
358
|
+
* The live map node from the consumer's map provider (tiles + the streamed
|
|
359
|
+
* driver marker). The tracker overlays the ETA / "live" pills and the rider
|
|
360
|
+
* sheet on top of it. Only pass this once the delivery provider is actually
|
|
361
|
+
* streaming the rider's location — otherwise omit it and the step view shows.
|
|
362
|
+
*/
|
|
363
|
+
map: React$1.ReactNode;
|
|
364
|
+
etaLabel?: string;
|
|
365
|
+
}
|
|
366
|
+
interface DeliveryTrackerProps {
|
|
367
|
+
/** Journey steps, derived from order history. */
|
|
368
|
+
steps: TimelineStep[];
|
|
369
|
+
statusLabel?: string;
|
|
370
|
+
etaLabel?: string;
|
|
371
|
+
rider?: DeliveryRider;
|
|
372
|
+
/** Present only when live driver tracking is available; swaps steps for the map. */
|
|
373
|
+
live?: DeliveryLive;
|
|
374
|
+
onTrackLive?: () => void;
|
|
375
|
+
onContactRider?: () => void;
|
|
376
|
+
/** `card` (default) draws its own border; `plain` sits flush inside a page section. */
|
|
377
|
+
variant?: "card" | "plain";
|
|
378
|
+
className?: string;
|
|
379
|
+
}
|
|
380
|
+
declare function DeliveryTracker({ steps, statusLabel, etaLabel, rider, live, onTrackLive, onContactRider, variant, className, }: DeliveryTrackerProps): React$1.ReactElement;
|
|
381
|
+
|
|
382
|
+
type CustomerInputType = "text" | "textarea" | "number" | "select" | "radio" | "multi_select" | "checkbox" | "color" | "date" | "date_time" | "date_range" | "time" | "file" | "image" | "url" | "email" | "phone" | "address" | "location" | "signature";
|
|
383
|
+
type LineItemSemanticKind = "allergen" | "dietary_preference" | "sensitivity" | "consent";
|
|
384
|
+
interface CustomerInput {
|
|
385
|
+
fieldId: string;
|
|
386
|
+
fieldName: string;
|
|
387
|
+
fieldType: CustomerInputType | string;
|
|
388
|
+
value: unknown;
|
|
389
|
+
semanticKind?: LineItemSemanticKind;
|
|
390
|
+
}
|
|
391
|
+
interface LineSelection {
|
|
392
|
+
quantity?: number;
|
|
393
|
+
name: string;
|
|
394
|
+
variantName?: string;
|
|
395
|
+
/** Pre-formatted, e.g. "+GHS 120.00". */
|
|
396
|
+
priceLabel?: string;
|
|
397
|
+
}
|
|
398
|
+
interface LineScheduling {
|
|
399
|
+
/** Pre-formatted window, e.g. "Sat, Apr 4 · 9:00–11:00 AM". */
|
|
400
|
+
whenLabel: string;
|
|
401
|
+
staffName?: string;
|
|
402
|
+
confirmationCode?: string;
|
|
403
|
+
}
|
|
404
|
+
type LineStateTone = "preparing" | "ready" | "delivered" | "booked" | "cancelled" | "default";
|
|
405
|
+
interface DigitalFulfillment {
|
|
406
|
+
statusLabel: string;
|
|
407
|
+
tone?: "ready" | "accessed" | "revoked" | "pending";
|
|
408
|
+
usageSummary?: string;
|
|
409
|
+
onDownload?: () => void;
|
|
410
|
+
}
|
|
411
|
+
interface AccountLineItemData {
|
|
412
|
+
id: string;
|
|
413
|
+
name: string;
|
|
414
|
+
imageUrl?: string;
|
|
415
|
+
/** One quiet line under the name (variant · qty · add-ons). Auto-composed if omitted. */
|
|
416
|
+
subtitle?: string;
|
|
417
|
+
/** Pre-formatted, e.g. "GHS 150.00". */
|
|
418
|
+
priceLabel: string;
|
|
419
|
+
lineType?: "product" | "service" | "bundle" | "composite" | "digital";
|
|
420
|
+
stateLabel?: string;
|
|
421
|
+
stateTone?: LineStateTone;
|
|
422
|
+
scheduling?: LineScheduling;
|
|
423
|
+
digital?: DigitalFulfillment;
|
|
424
|
+
variant?: string;
|
|
425
|
+
addOns?: {
|
|
426
|
+
name: string;
|
|
427
|
+
priceLabel?: string;
|
|
428
|
+
}[];
|
|
429
|
+
/** Bundle components. */
|
|
430
|
+
includes?: LineSelection[];
|
|
431
|
+
/** Composite / build-your-own selections. */
|
|
432
|
+
customisations?: LineSelection[];
|
|
433
|
+
customerInputs?: CustomerInput[];
|
|
434
|
+
}
|
|
435
|
+
interface AccountLineItemProps {
|
|
436
|
+
item: AccountLineItemData;
|
|
437
|
+
className?: string;
|
|
438
|
+
}
|
|
439
|
+
declare function AccountLineItem({ item, className }: AccountLineItemProps): React$1.ReactElement;
|
|
440
|
+
declare function LineItemDetails({ item, className, }: {
|
|
441
|
+
item: AccountLineItemData;
|
|
442
|
+
className?: string;
|
|
443
|
+
}): React$1.ReactElement;
|
|
444
|
+
interface AccountLineItemsProps {
|
|
445
|
+
items: AccountLineItemData[];
|
|
446
|
+
className?: string;
|
|
447
|
+
}
|
|
448
|
+
declare function AccountLineItems({ items, className }: AccountLineItemsProps): React$1.ReactElement;
|
|
449
|
+
|
|
450
|
+
interface OrderViewPaymentRow {
|
|
451
|
+
label: string;
|
|
452
|
+
value: string;
|
|
453
|
+
/** `positive` renders the value in the success colour (discounts, free delivery). */
|
|
454
|
+
tone?: "default" | "positive";
|
|
455
|
+
}
|
|
456
|
+
interface OrderViewDelivery {
|
|
457
|
+
label?: string;
|
|
458
|
+
note?: string;
|
|
459
|
+
steps: TimelineStep[];
|
|
460
|
+
statusLabel?: string;
|
|
461
|
+
etaLabel?: string;
|
|
462
|
+
rider?: DeliveryRider;
|
|
463
|
+
live?: DeliveryLive;
|
|
464
|
+
onTrackLive?: () => void;
|
|
465
|
+
onContactRider?: () => void;
|
|
466
|
+
}
|
|
467
|
+
interface OrderViewPayment {
|
|
468
|
+
stateLabel?: string;
|
|
469
|
+
stateTone?: "positive" | "warning" | "muted";
|
|
470
|
+
rows: OrderViewPaymentRow[];
|
|
471
|
+
total: {
|
|
472
|
+
label: string;
|
|
473
|
+
value: string;
|
|
474
|
+
};
|
|
475
|
+
/** Method line — e.g. a brand chip + masked number. */
|
|
476
|
+
method?: React$1.ReactNode;
|
|
477
|
+
}
|
|
478
|
+
type OrderStatusTone = "progress" | "positive" | "muted";
|
|
479
|
+
interface AccountOrderViewProps {
|
|
480
|
+
/** Human order number (user_friendly_id), not the UUID. */
|
|
481
|
+
orderNumber: string;
|
|
482
|
+
/** Sub-line, e.g. "Placed today at 10:02 AM · 5 items". */
|
|
483
|
+
placedLabel?: string;
|
|
484
|
+
statusLabel?: string;
|
|
485
|
+
statusTone?: OrderStatusTone;
|
|
486
|
+
items: AccountLineItemData[];
|
|
487
|
+
itemsLabel?: string;
|
|
488
|
+
delivery?: OrderViewDelivery;
|
|
489
|
+
payment: OrderViewPayment;
|
|
490
|
+
shipTo?: {
|
|
491
|
+
heading?: string;
|
|
492
|
+
name?: string;
|
|
493
|
+
lines: React$1.ReactNode;
|
|
494
|
+
};
|
|
495
|
+
actions?: React$1.ReactNode;
|
|
496
|
+
onBack?: () => void;
|
|
497
|
+
backLabel?: string;
|
|
498
|
+
className?: string;
|
|
499
|
+
}
|
|
500
|
+
declare function AccountOrderView({ orderNumber, placedLabel, statusLabel, statusTone, items, itemsLabel, delivery, payment, shipTo, actions, onBack, backLabel, className, }: AccountOrderViewProps): React$1.ReactElement;
|
|
501
|
+
|
|
502
|
+
/** Map one enriched order line to the `<AccountLineItem>` view-model. */
|
|
503
|
+
declare function toAccountLineItem(item: EnrichedOrderItem, currency: CurrencyCode): AccountLineItemData;
|
|
504
|
+
declare function toAccountLineItems(items: EnrichedOrderItem[], currency: CurrencyCode): AccountLineItemData[];
|
|
505
|
+
interface ToAccountOrderViewOptions {
|
|
506
|
+
placedLabel?: string;
|
|
507
|
+
onBack?: () => void;
|
|
508
|
+
}
|
|
509
|
+
/** Map the storefront `EnrichedOrder` to `<AccountOrderView>` props. */
|
|
510
|
+
declare function toAccountOrderView(order: EnrichedOrder, opts?: ToAccountOrderViewOptions): AccountOrderViewProps;
|
|
511
|
+
|
|
348
512
|
interface SubscriptionRowProps {
|
|
349
513
|
subscription: SubscriptionRowData;
|
|
350
514
|
onSelect?: (id: string) => void;
|
|
@@ -3451,4 +3615,4 @@ interface ChatWidgetProps {
|
|
|
3451
3615
|
}
|
|
3452
3616
|
declare function ChatWidget({ client: clientProp, businessName, greeting, subtitle, starters, placeholder, position, defaultOpen, pollInterval, className, classNames, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
3453
3617
|
|
|
3454
|
-
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, DeliveryTruckIcon, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, sanitizeRichTextHtml, stripHtmlToText, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
3618
|
+
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountLineItem, type AccountLineItemData, type AccountLineItemProps, AccountLineItems, type AccountLineItemsProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrderView, type AccountOrderViewProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, type CustomerInput, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, type CustomerInputType, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, type DeliveryLive, type DeliveryRider, DeliveryTracker, type DeliveryTrackerProps, DeliveryTruckIcon, type DigitalFulfillment, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LineItemDetails, type LineItemSemanticKind, type LineScheduling, type LineSelection, type LineStateTone, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, type OrderStatusTone, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, type OrderViewDelivery, type OrderViewPayment, type OrderViewPaymentRow, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, type ToAccountOrderViewOptions, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, 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, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|