@thryveai/theme-interfaces 2.8.37 → 2.8.39
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/JSONSchemas/index.d.ts +82 -95
- package/dist/JSONSchemas/index.js +140 -178
- package/dist/interfaces/admin-settings-interfaces.d.ts +1 -1
- package/dist/interfaces/retailer-settings.interfaces.d.ts +9 -8
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +10 -42
- package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.js +24 -1
- package/dist/storefront/defaultIconsStorefront.js +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ export interface IAdminGroupType {
|
|
|
49
49
|
id: number;
|
|
50
50
|
name: string;
|
|
51
51
|
}
|
|
52
|
-
export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string" | "array" | "storeSelection";
|
|
52
|
+
export declare type IAdminControlType = "checkbox" | "collapsableObject" | "collapsableObjectWithRadio" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string" | "array" | "storeSelection";
|
|
53
53
|
export interface IAdminSettingsTemplateSTS {
|
|
54
54
|
hasEUTerms: IAdminControl<boolean>;
|
|
55
55
|
hasTwoStepRegistration: IAdminControl<boolean>;
|
|
@@ -703,18 +703,19 @@ export interface IAddressIntegration {
|
|
|
703
703
|
useForNewAddresses: boolean;
|
|
704
704
|
}
|
|
705
705
|
export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
|
|
706
|
+
export interface IProductCardV2Settings {
|
|
707
|
+
enabled: boolean;
|
|
708
|
+
layouts: IProductCardLayouts;
|
|
709
|
+
components: IProductCardV2ComponentProps;
|
|
710
|
+
}
|
|
706
711
|
export interface IProductCardsProps {
|
|
707
|
-
gridRowLength
|
|
712
|
+
gridRowLength: {
|
|
708
713
|
[key in IScreenType]: number;
|
|
709
714
|
};
|
|
710
|
-
carouselsRowLength
|
|
715
|
+
carouselsRowLength: {
|
|
711
716
|
[key in IScreenType]: number;
|
|
712
717
|
};
|
|
713
|
-
productCard:
|
|
714
|
-
enabled?: boolean;
|
|
715
|
-
layouts: IProductCardLayouts;
|
|
716
|
-
components?: IProductCardV2ComponentProps;
|
|
717
|
-
};
|
|
718
|
+
productCard: IProductCardV2Settings;
|
|
718
719
|
}
|
|
719
720
|
export interface IProductCardV2ComponentProps {
|
|
720
721
|
promotionLabel: IProductCardV2PromotionLabelsSettings;
|
|
@@ -746,7 +747,7 @@ export declare type IProductCardLayouts = {
|
|
|
746
747
|
};
|
|
747
748
|
export declare type IProductCardLayoutObjects<T> = {
|
|
748
749
|
[Place in keyof IProductCardLayouts]: {
|
|
749
|
-
[key in
|
|
750
|
+
[key in IProductCardLayouts[Place]]: T;
|
|
750
751
|
};
|
|
751
752
|
};
|
|
752
753
|
export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
|
|
@@ -4,6 +4,7 @@ exports.AdminSettingsTemplateSFUI = exports.validationTypes = exports.AdminTempl
|
|
|
4
4
|
exports.AdminTemplateInputTypes = {
|
|
5
5
|
checkbox: "checkbox",
|
|
6
6
|
collapsableObject: "collapsableObject",
|
|
7
|
+
collapsableObjectWithRadio: "collapsableObjectWithRadio",
|
|
7
8
|
color: "color",
|
|
8
9
|
dropdown: "dropdown",
|
|
9
10
|
inputChar: "inputChar",
|
|
@@ -795,22 +796,10 @@ exports.AdminSettingsTemplateSFUI = {
|
|
|
795
796
|
type: exports.AdminTemplateInputTypes
|
|
796
797
|
.collapsableObjectWithRadio,
|
|
797
798
|
options: [
|
|
798
|
-
{
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
value: "pce-centered",
|
|
804
|
-
explainerText: "Center-aligned content",
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
value: "prs-labels",
|
|
808
|
-
explainerText: "Emphasizes product labels and badges prominently",
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
value: "dun-attributes",
|
|
812
|
-
explainerText: "Product attributes prominently displayed",
|
|
813
|
-
},
|
|
799
|
+
{ value: "default" },
|
|
800
|
+
{ value: "pce-centered" },
|
|
801
|
+
{ value: "prs-labels" },
|
|
802
|
+
{ value: "dun-attributes" },
|
|
814
803
|
],
|
|
815
804
|
},
|
|
816
805
|
ContainersCarousel: {
|
|
@@ -819,22 +808,10 @@ exports.AdminSettingsTemplateSFUI = {
|
|
|
819
808
|
type: exports.AdminTemplateInputTypes
|
|
820
809
|
.collapsableObjectWithRadio,
|
|
821
810
|
options: [
|
|
822
|
-
{
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
value: "pce-centered",
|
|
828
|
-
explainerText: "Center-aligned content",
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
value: "prs-labels",
|
|
832
|
-
explainerText: "Emphasizes product labels and badges prominently",
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
value: "dun-attributes",
|
|
836
|
-
explainerText: "Product attributes prominently displayed",
|
|
837
|
-
},
|
|
811
|
+
{ value: "default" },
|
|
812
|
+
{ value: "pce-centered" },
|
|
813
|
+
{ value: "prs-labels" },
|
|
814
|
+
{ value: "dun-attributes" },
|
|
838
815
|
],
|
|
839
816
|
},
|
|
840
817
|
FlyerCard: {
|
|
@@ -842,16 +819,7 @@ exports.AdminSettingsTemplateSFUI = {
|
|
|
842
819
|
description: "Horizontal product card used for flyer/promotional displays, sale pages, featured product sections",
|
|
843
820
|
type: exports.AdminTemplateInputTypes
|
|
844
821
|
.collapsableObjectWithRadio,
|
|
845
|
-
options: [
|
|
846
|
-
{
|
|
847
|
-
value: "default",
|
|
848
|
-
description: "Balanced grid layout with clear content separation",
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
value: "detailed",
|
|
852
|
-
description: "Enhanced horizontal layout with comprehensive product information",
|
|
853
|
-
},
|
|
854
|
-
],
|
|
822
|
+
options: [{ value: "default" }, { value: "detailed" }],
|
|
855
823
|
},
|
|
856
824
|
},
|
|
857
825
|
},
|
|
@@ -4,6 +4,7 @@ exports.AdminSharedSettingsTemplateSFUI = exports.AdminSharedTemplateInputTypes
|
|
|
4
4
|
exports.AdminSharedTemplateInputTypes = {
|
|
5
5
|
checkbox: "checkbox",
|
|
6
6
|
collapsableObject: "collapsableObject",
|
|
7
|
+
collapsableObjectWithRadio: "collapsableObjectWithRadio",
|
|
7
8
|
color: "color",
|
|
8
9
|
dropdown: "dropdown",
|
|
9
10
|
inputChar: "inputChar",
|
|
@@ -142,7 +143,29 @@ exports.AdminSharedSettingsTemplateSFUI = {
|
|
|
142
143
|
title: "Barcode Format",
|
|
143
144
|
description: "Select the barcode format to be used for loyalty cards",
|
|
144
145
|
type: exports.AdminSharedTemplateInputTypes.dropdown,
|
|
145
|
-
options: [
|
|
146
|
+
options: [
|
|
147
|
+
"UPC",
|
|
148
|
+
"CODE128",
|
|
149
|
+
"EAN13",
|
|
150
|
+
"QR",
|
|
151
|
+
"CODE39",
|
|
152
|
+
"CODE128A",
|
|
153
|
+
"CODE128B",
|
|
154
|
+
"CODE128C",
|
|
155
|
+
"EAN8",
|
|
156
|
+
"EAN5",
|
|
157
|
+
"EAN2",
|
|
158
|
+
"UPCE",
|
|
159
|
+
"ITF14",
|
|
160
|
+
"ITF",
|
|
161
|
+
"MSI",
|
|
162
|
+
"MSI10",
|
|
163
|
+
"MSI11",
|
|
164
|
+
"MSI1010",
|
|
165
|
+
"MSI1110",
|
|
166
|
+
"pharmacode",
|
|
167
|
+
"codabar",
|
|
168
|
+
],
|
|
146
169
|
},
|
|
147
170
|
},
|
|
148
171
|
},
|