@loczer/storefront-sdk 0.149.0 → 0.151.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/booking-period-time-slots.d.ts +19 -0
- package/dist/booking-period.d.ts +14 -0
- package/dist/checkoutSubmit.d.ts +36 -0
- package/dist/components/ContactSection/index.js +1 -1
- package/dist/components/ContractSaleDocument/Invoice.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/PlaygroundDevFloatingButton/index.js +1 -1
- package/dist/components/PoweredByLoczerBadge/index.js +13 -13
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.js +31 -11
- package/dist/index.js +259 -257
- package/dist/lib/booking-period.d.ts +9 -0
- package/dist/lib/booking-period.js +168 -150
- package/dist/lib/checkoutSubmit.d.ts +34 -0
- package/dist/lib/checkoutSubmit.js +14 -12
- package/dist/lib/storefrontAvailability.d.ts +2 -0
- package/dist/lib/storefrontImage.d.ts +1 -0
- package/dist/lib/storefrontProducts.d.ts +2 -0
- package/dist/pages/HomePage.js +1 -1
- package/dist/storefrontAvailability.d.ts +4 -0
- package/dist/storefrontImage.d.ts +2 -0
- package/dist/storefrontProducts.d.ts +4 -0
- package/package.json +1 -1
- /package/dist/{assets/dev.svg → chunks/assets/dev.svg-jGkd1F38.js} +0 -0
- /package/dist/{assets/playground-hero-preview.svg → chunks/assets/playground-hero-preview.svg-DNbSwXV5.js} +0 -0
- /package/dist/{assets/whatsapp.svg → chunks/assets/whatsapp.svg-grlzka-t.js} +0 -0
|
@@ -216,6 +216,7 @@ export declare const requestSchema: z.ZodObject<{
|
|
|
216
216
|
storeSlug: z.ZodString;
|
|
217
217
|
}, z.core.$strip>;
|
|
218
218
|
export type RequestPayload = z.infer<typeof requestSchema>;
|
|
219
|
+
export type StorefrontProductsRequestPayload = RequestPayload;
|
|
219
220
|
export declare const responseSchema: z.ZodObject<{
|
|
220
221
|
success: z.ZodBoolean;
|
|
221
222
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -366,4 +367,5 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
366
367
|
}, z.core.$strip>>;
|
|
367
368
|
}, z.core.$strip>;
|
|
368
369
|
export type ResponsePayload = z.infer<typeof responseSchema>;
|
|
370
|
+
export type StorefrontProductsResponsePayload = ResponsePayload;
|
|
369
371
|
//# sourceMappingURL=storefrontProducts.d.ts.map
|
package/dist/pages/HomePage.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useParams as Ue, useLocation as Ve, useSearchParams as ze, useNavigate
|
|
|
5
5
|
import { cn as h } from "@rpcbase/ui";
|
|
6
6
|
import { Clock as Qe, MapPin as We, CheckCircle2 as Ke, ShieldCheck as Ge, Truck as Je, ArrowRight as j, Bike as de } from "lucide-react";
|
|
7
7
|
import { useTranslation as Xe } from "react-i18next";
|
|
8
|
-
import z from "../assets/playground-hero-preview.svg";
|
|
8
|
+
import z from "../chunks/assets/playground-hero-preview.svg-DNbSwXV5.js";
|
|
9
9
|
import { getAvailabilityVariant as Ze } from "../lib/utils.js";
|
|
10
10
|
import { getStorefrontPreset as et } from "../data/config.js";
|
|
11
11
|
import { getLocalizedValue as A } from "../localization.js";
|
|
@@ -73,6 +73,10 @@ export declare const storefrontAvailabilityProductSchema: z.ZodObject<{
|
|
|
73
73
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
|
|
76
|
+
export declare type StorefrontAvailabilityRequestPayload = RequestPayload;
|
|
77
|
+
|
|
78
|
+
export declare type StorefrontAvailabilityResponsePayload = ResponsePayload;
|
|
79
|
+
|
|
76
80
|
export declare type StorefrontAvailabilitySchedule = z.infer<typeof storefrontAvailabilityScheduleSchema>;
|
|
77
81
|
|
|
78
82
|
export declare const storefrontAvailabilityScheduleSchema: z.ZodObject<{
|
|
@@ -160,6 +160,10 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
160
160
|
|
|
161
161
|
export declare const ROUTE = "/api/public/storefront/products";
|
|
162
162
|
|
|
163
|
+
export declare type StorefrontProductsRequestPayload = RequestPayload;
|
|
164
|
+
|
|
165
|
+
export declare type StorefrontProductsResponsePayload = ResponsePayload;
|
|
166
|
+
|
|
163
167
|
export declare type StorefrontPublicAccessoryProduct = z.infer<typeof storefrontPublicAccessoryProductSchema>;
|
|
164
168
|
|
|
165
169
|
export declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|