@shoppexio/storefront 1.0.109 → 1.0.111
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/CHANGELOG.md +10 -0
- package/dist/{chunk-RA26HK3B.js → chunk-ZO3MHBVV.js} +12 -1
- package/dist/{chunk-RA26HK3B.js.map → chunk-ZO3MHBVV.js.map} +1 -1
- package/dist/customer.cjs +11 -0
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.js +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -13
- package/dist/index.d.ts +18 -13
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -353,6 +353,8 @@ interface Product {
|
|
|
353
353
|
terms_of_service?: string | null;
|
|
354
354
|
warranty?: number;
|
|
355
355
|
warranty_text?: string | null;
|
|
356
|
+
/** The warranty a buyer claims per purchase in their account, in days; null for none. */
|
|
357
|
+
warranty_period_days?: number | null;
|
|
356
358
|
sort_priority?: number;
|
|
357
359
|
pay_what_you_want?: boolean | number;
|
|
358
360
|
video_link?: string | null;
|
|
@@ -363,6 +365,10 @@ interface ProductFeedback {
|
|
|
363
365
|
neutral: number;
|
|
364
366
|
negative: number;
|
|
365
367
|
numbers?: Record<number, number>;
|
|
368
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
369
|
+
verified?: number;
|
|
370
|
+
/** The `verified` reviews' own average, one decimal; null when none is verified. */
|
|
371
|
+
verified_average?: number | null;
|
|
366
372
|
list?: Array<{
|
|
367
373
|
score: number;
|
|
368
374
|
message: string | null;
|
|
@@ -493,6 +499,10 @@ interface ShopReviewsSummary {
|
|
|
493
499
|
neutral: number;
|
|
494
500
|
negative: number;
|
|
495
501
|
average_score: number | null;
|
|
502
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
503
|
+
verified?: number;
|
|
504
|
+
/** The `verified` reviews' own 1-5 average, null when none is verified. */
|
|
505
|
+
verified_average_score?: number | null;
|
|
496
506
|
}
|
|
497
507
|
interface ShopReviewsPage {
|
|
498
508
|
feedback: Feedback[];
|
|
@@ -704,9 +714,7 @@ interface StorefrontAnnouncementBarAddon {
|
|
|
704
714
|
link_label?: string | null;
|
|
705
715
|
link_url?: string | null;
|
|
706
716
|
dismissible: boolean;
|
|
707
|
-
|
|
708
|
-
theme_preset: 'brand_blue' | 'emerald' | 'sunset' | 'rose' | 'charcoal' | 'custom';
|
|
709
|
-
animation_speed_seconds: number;
|
|
717
|
+
look: 'theme' | 'accent' | 'custom';
|
|
710
718
|
background_color: string;
|
|
711
719
|
text_color: string;
|
|
712
720
|
};
|
|
@@ -724,12 +732,9 @@ interface StorefrontCountdownBarAddon {
|
|
|
724
732
|
link_label?: string | null;
|
|
725
733
|
link_url?: string | null;
|
|
726
734
|
dismissible: boolean;
|
|
727
|
-
|
|
735
|
+
look: 'theme' | 'accent' | 'custom';
|
|
728
736
|
expired_behavior: 'hide' | 'message';
|
|
729
737
|
expired_message?: string | null;
|
|
730
|
-
density: 'compact' | 'comfortable';
|
|
731
|
-
cta_style: 'subtle' | 'outline' | 'solid';
|
|
732
|
-
timer_style: 'minimal' | 'boxed';
|
|
733
738
|
background_color: string;
|
|
734
739
|
text_color: string;
|
|
735
740
|
};
|
|
@@ -747,12 +752,10 @@ interface StorefrontPromoInfoCardAddon {
|
|
|
747
752
|
body: string;
|
|
748
753
|
link_label?: string | null;
|
|
749
754
|
link_url?: string | null;
|
|
750
|
-
|
|
755
|
+
look: 'theme' | 'custom';
|
|
751
756
|
layout_style: 'compact' | 'feature' | 'alert';
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
icon: 'sparkles' | 'megaphone' | 'gift' | 'truck' | 'shield' | 'support' | 'none';
|
|
755
|
-
icon_visibility: 'show' | 'hide';
|
|
757
|
+
cta_style: 'link' | 'button';
|
|
758
|
+
icon: 'megaphone' | 'gift' | 'truck' | 'shield' | 'support' | 'none';
|
|
756
759
|
background_color: string;
|
|
757
760
|
text_color: string;
|
|
758
761
|
accent_color: string;
|
|
@@ -790,7 +793,7 @@ interface StorefrontCouponPopupModalAddon {
|
|
|
790
793
|
primary_button_label: string;
|
|
791
794
|
secondary_button_label: string;
|
|
792
795
|
disclaimer?: string | null;
|
|
793
|
-
|
|
796
|
+
look: 'theme' | 'custom';
|
|
794
797
|
trigger: 'delay' | 'exit_intent';
|
|
795
798
|
delay_seconds: number;
|
|
796
799
|
show_once_per_session: boolean;
|
|
@@ -813,6 +816,8 @@ interface StorefrontOnlineUsers {
|
|
|
813
816
|
}
|
|
814
817
|
interface StorefrontRecentSaleEntry {
|
|
815
818
|
product_title: string;
|
|
819
|
+
/** The sold product's public id (`Product.uniqid`), to link the sale; absent until the API that sends it is deployed. */
|
|
820
|
+
product_uniqid?: string;
|
|
816
821
|
seconds_ago: number;
|
|
817
822
|
}
|
|
818
823
|
interface StorefrontRecentSales {
|
package/dist/index.d.ts
CHANGED
|
@@ -353,6 +353,8 @@ interface Product {
|
|
|
353
353
|
terms_of_service?: string | null;
|
|
354
354
|
warranty?: number;
|
|
355
355
|
warranty_text?: string | null;
|
|
356
|
+
/** The warranty a buyer claims per purchase in their account, in days; null for none. */
|
|
357
|
+
warranty_period_days?: number | null;
|
|
356
358
|
sort_priority?: number;
|
|
357
359
|
pay_what_you_want?: boolean | number;
|
|
358
360
|
video_link?: string | null;
|
|
@@ -363,6 +365,10 @@ interface ProductFeedback {
|
|
|
363
365
|
neutral: number;
|
|
364
366
|
negative: number;
|
|
365
367
|
numbers?: Record<number, number>;
|
|
368
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
369
|
+
verified?: number;
|
|
370
|
+
/** The `verified` reviews' own average, one decimal; null when none is verified. */
|
|
371
|
+
verified_average?: number | null;
|
|
366
372
|
list?: Array<{
|
|
367
373
|
score: number;
|
|
368
374
|
message: string | null;
|
|
@@ -493,6 +499,10 @@ interface ShopReviewsSummary {
|
|
|
493
499
|
neutral: number;
|
|
494
500
|
negative: number;
|
|
495
501
|
average_score: number | null;
|
|
502
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
503
|
+
verified?: number;
|
|
504
|
+
/** The `verified` reviews' own 1-5 average, null when none is verified. */
|
|
505
|
+
verified_average_score?: number | null;
|
|
496
506
|
}
|
|
497
507
|
interface ShopReviewsPage {
|
|
498
508
|
feedback: Feedback[];
|
|
@@ -704,9 +714,7 @@ interface StorefrontAnnouncementBarAddon {
|
|
|
704
714
|
link_label?: string | null;
|
|
705
715
|
link_url?: string | null;
|
|
706
716
|
dismissible: boolean;
|
|
707
|
-
|
|
708
|
-
theme_preset: 'brand_blue' | 'emerald' | 'sunset' | 'rose' | 'charcoal' | 'custom';
|
|
709
|
-
animation_speed_seconds: number;
|
|
717
|
+
look: 'theme' | 'accent' | 'custom';
|
|
710
718
|
background_color: string;
|
|
711
719
|
text_color: string;
|
|
712
720
|
};
|
|
@@ -724,12 +732,9 @@ interface StorefrontCountdownBarAddon {
|
|
|
724
732
|
link_label?: string | null;
|
|
725
733
|
link_url?: string | null;
|
|
726
734
|
dismissible: boolean;
|
|
727
|
-
|
|
735
|
+
look: 'theme' | 'accent' | 'custom';
|
|
728
736
|
expired_behavior: 'hide' | 'message';
|
|
729
737
|
expired_message?: string | null;
|
|
730
|
-
density: 'compact' | 'comfortable';
|
|
731
|
-
cta_style: 'subtle' | 'outline' | 'solid';
|
|
732
|
-
timer_style: 'minimal' | 'boxed';
|
|
733
738
|
background_color: string;
|
|
734
739
|
text_color: string;
|
|
735
740
|
};
|
|
@@ -747,12 +752,10 @@ interface StorefrontPromoInfoCardAddon {
|
|
|
747
752
|
body: string;
|
|
748
753
|
link_label?: string | null;
|
|
749
754
|
link_url?: string | null;
|
|
750
|
-
|
|
755
|
+
look: 'theme' | 'custom';
|
|
751
756
|
layout_style: 'compact' | 'feature' | 'alert';
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
icon: 'sparkles' | 'megaphone' | 'gift' | 'truck' | 'shield' | 'support' | 'none';
|
|
755
|
-
icon_visibility: 'show' | 'hide';
|
|
757
|
+
cta_style: 'link' | 'button';
|
|
758
|
+
icon: 'megaphone' | 'gift' | 'truck' | 'shield' | 'support' | 'none';
|
|
756
759
|
background_color: string;
|
|
757
760
|
text_color: string;
|
|
758
761
|
accent_color: string;
|
|
@@ -790,7 +793,7 @@ interface StorefrontCouponPopupModalAddon {
|
|
|
790
793
|
primary_button_label: string;
|
|
791
794
|
secondary_button_label: string;
|
|
792
795
|
disclaimer?: string | null;
|
|
793
|
-
|
|
796
|
+
look: 'theme' | 'custom';
|
|
794
797
|
trigger: 'delay' | 'exit_intent';
|
|
795
798
|
delay_seconds: number;
|
|
796
799
|
show_once_per_session: boolean;
|
|
@@ -813,6 +816,8 @@ interface StorefrontOnlineUsers {
|
|
|
813
816
|
}
|
|
814
817
|
interface StorefrontRecentSaleEntry {
|
|
815
818
|
product_title: string;
|
|
819
|
+
/** The sold product's public id (`Product.uniqid`), to link the sale; absent until the API that sends it is deployed. */
|
|
820
|
+
product_uniqid?: string;
|
|
816
821
|
seconds_ago: number;
|
|
817
822
|
}
|
|
818
823
|
interface StorefrontRecentSales {
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
customerWarrantyClaimSchema,
|
|
11
11
|
customerWarrantyListSchema,
|
|
12
12
|
storefrontStorageKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZO3MHBVV.js";
|
|
14
14
|
|
|
15
15
|
// ../sdk/src/core/errors.ts
|
|
16
16
|
var CURRENCY_UNAVAILABLE_ERROR_CODE = "errors.storefront.currency_unavailable";
|