@thryveai/theme-interfaces 2.8.35 → 2.8.36

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.
@@ -12,7 +12,7 @@ declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type;
12
12
  export declare type IPartialKeys<T> = {
13
13
  [key in keyof T]: Partial<T[key]>;
14
14
  };
15
- declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "accountPage" | "pdpSettings">>;
15
+ declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "accountPage" | "pdpSettings" | "productCard">>;
16
16
  /** ===== */
17
17
  export interface IMessageProps {
18
18
  caption?: string | string[];
@@ -704,16 +704,16 @@ export interface IAddressIntegration {
704
704
  }
705
705
  export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
706
706
  export interface IProductCardsProps {
707
- gridRowLength: {
707
+ gridRowLength?: {
708
708
  [key in IScreenType]: number;
709
709
  };
710
- carouselsRowLength: {
710
+ carouselsRowLength?: {
711
711
  [key in IScreenType]: number;
712
712
  };
713
713
  productCard: {
714
- enabled: boolean;
714
+ enabled?: boolean;
715
715
  layouts: IProductCardLayouts;
716
- components: IProductCardV2ComponentProps;
716
+ components?: IProductCardV2ComponentProps;
717
717
  };
718
718
  }
719
719
  export interface IProductCardV2ComponentProps {
@@ -743,11 +743,11 @@ export declare type IProductCardLayouts = {
743
743
  ContainersGrid: "default" | "pce-centered" | "prs-labels" | "dun-attributes";
744
744
  ContainersCarousel: "default" | "pce-centered" | "prs-labels" | "dun-attributes";
745
745
  FlyerCard: "default" | "detailed";
746
- SimplifiedCarousel: "default";
746
+ SimplifiedCarousel?: "default";
747
747
  };
748
748
  export declare type IProductCardLayoutObjects<T> = {
749
749
  [Place in keyof IProductCardLayouts]: {
750
- [key in IProductCardLayouts[Place]]: T;
750
+ [key in NonNullable<IProductCardLayouts[Place]>]: T;
751
751
  };
752
752
  };
753
753
  export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
@@ -769,11 +769,98 @@ exports.AdminSettingsTemplateSFUI = {
769
769
  },
770
770
  },
771
771
  },
772
- // productCard: {
773
- // title: "Product Card Settings",
774
- // description: "Coming Soon",
775
- // type: AdminTemplateInputTypes.nullObject,
776
- // },
772
+ productCard: {
773
+ title: "Product Card Layouts",
774
+ description: "Configure product card layouts and settings",
775
+ type: exports.AdminTemplateInputTypes.collapsableObject,
776
+ value: {
777
+ productCards: {
778
+ title: "",
779
+ description: "",
780
+ type: exports.AdminTemplateInputTypes.nullObject,
781
+ value: {
782
+ productCard: {
783
+ title: "",
784
+ description: "",
785
+ type: exports.AdminTemplateInputTypes.nullObject,
786
+ value: {
787
+ layouts: {
788
+ title: "",
789
+ description: "",
790
+ type: exports.AdminTemplateInputTypes.collapsableObject,
791
+ value: {
792
+ ContainersGrid: {
793
+ title: "Containers Grid",
794
+ description: "Product card used in containers (product listing pages, search results, category pages)",
795
+ type: exports.AdminTemplateInputTypes
796
+ .collapsableObjectWithRadio,
797
+ options: [
798
+ {
799
+ value: "default",
800
+ explainerText: "Balanced grid layout with clear content separation",
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
+ },
814
+ ],
815
+ },
816
+ ContainersCarousel: {
817
+ title: "Containers Carousel",
818
+ description: "Product card used in carousels and horizontal scrolling sections",
819
+ type: exports.AdminTemplateInputTypes
820
+ .collapsableObjectWithRadio,
821
+ options: [
822
+ {
823
+ value: "default",
824
+ explainerText: "Balanced grid layout with clear content separation",
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
+ },
838
+ ],
839
+ },
840
+ FlyerCard: {
841
+ title: "Flyer Card",
842
+ description: "Horizontal product card used for flyer/promotional displays, sale pages, featured product sections",
843
+ type: exports.AdminTemplateInputTypes
844
+ .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
+ ],
855
+ },
856
+ },
857
+ },
858
+ },
859
+ },
860
+ },
861
+ },
862
+ },
863
+ },
777
864
  siteSettings: {
778
865
  title: "General Site Settings",
779
866
  description: "These are essential settings, the storefront will NOT function without these.",
@@ -1047,15 +1134,15 @@ exports.AdminSettingsTemplateSFUI = {
1047
1134
  right: {
1048
1135
  title: "Offset right",
1049
1136
  description: "This is the percentage of the width of the screen that the button will appear from the right.",
1050
- type: exports.AdminTemplateInputTypes.inputNumber
1137
+ type: exports.AdminTemplateInputTypes.inputNumber,
1051
1138
  },
1052
1139
  },
1053
1140
  },
1054
1141
  visibilityThreshold: {
1055
1142
  title: "Visibility threshold",
1056
1143
  description: "Configure the number in pixels when the button appears based on scroll distance.",
1057
- type: exports.AdminTemplateInputTypes.inputNumber
1058
- }
1144
+ type: exports.AdminTemplateInputTypes.inputNumber,
1145
+ },
1059
1146
  },
1060
1147
  },
1061
1148
  // showClippedStateInCouponModal: {