@thryveai/theme-interfaces 2.8.48 → 2.8.49

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.
@@ -29,6 +29,10 @@ export interface IAdminControl<T> {
29
29
  title: string;
30
30
  description: string;
31
31
  type: IAdminControlType;
32
+ showIf?: {
33
+ field: string;
34
+ value: boolean;
35
+ };
32
36
  visible?: boolean;
33
37
  group?: IAdminGroupType;
34
38
  message?: IMessageProps;
@@ -522,6 +522,7 @@ export interface ISiteSettingsV2 {
522
522
  showClippedStateInCouponModal: boolean;
523
523
  showShopAllLink: IShowShopAllLink;
524
524
  showEmptyMiniList: boolean;
525
+ emptyListButton: IEmptyListButton;
525
526
  preserveStore: IPreserveStore;
526
527
  carousel: ILayoutCarousel;
527
528
  categoryDocumentTitle: ICategoryDocumentTitle;
@@ -806,4 +807,10 @@ export interface IScrollToTopButton {
806
807
  export interface IShowShopAllLink {
807
808
  enabled: boolean;
808
809
  }
810
+ export interface IEmptyListButton {
811
+ mode: ShoppingMode[];
812
+ style: "secondary" | "tertiary";
813
+ renderBelowReviewCartButton: boolean;
814
+ icon: boolean;
815
+ }
809
816
  export {};
@@ -1135,6 +1135,44 @@ exports.AdminSettingsTemplateSFUI = {
1135
1135
  },
1136
1136
  },
1137
1137
  },
1138
+ showEmptyMiniList: {
1139
+ title: "Show Empty list/cart button",
1140
+ description: "Display the Empty list/cart button in Mini cart.",
1141
+ type: exports.AdminTemplateInputTypes.checkbox,
1142
+ },
1143
+ emptyListButton: {
1144
+ title: "Empty list/cart button settings",
1145
+ description: "Configure the Empty list/cart button in Mini cart.",
1146
+ type: exports.AdminTemplateInputTypes.collapsableObject,
1147
+ showIf: {
1148
+ field: "showEmptyMiniList",
1149
+ value: true,
1150
+ },
1151
+ value: {
1152
+ mode: {
1153
+ title: "Enable for shopping modes",
1154
+ description: "Select which shopping modes display the Empty list/cartbutton.",
1155
+ type: exports.AdminTemplateInputTypes.multiDropdown,
1156
+ options: ["pickup", "planning", "delivery"],
1157
+ },
1158
+ style: {
1159
+ title: "Style",
1160
+ description: "Visual style of the Empty list/cart button. Use “tertiary“ to reduce prominence and minimize accidental clicks.",
1161
+ type: exports.AdminTemplateInputTypes.dropdown,
1162
+ options: ["secondary", "tertiary"],
1163
+ },
1164
+ renderBelowReviewCartButton: {
1165
+ title: "Render below Review list/cart button",
1166
+ description: "When enabled, the Empty list/cart button appears below the Review list/cart button. Recommended for reducing accidental clicks.",
1167
+ type: exports.AdminTemplateInputTypes.checkbox,
1168
+ },
1169
+ icon: {
1170
+ title: "Show icon",
1171
+ description: "Display a trash can icon on the Empty list/cart button to visually indicate the destructive action.",
1172
+ type: exports.AdminTemplateInputTypes.checkbox,
1173
+ },
1174
+ },
1175
+ },
1138
1176
  },
1139
1177
  },
1140
1178
  welcomeModal: {
@@ -432,6 +432,12 @@ var CommonConfigSFUI = {
432
432
  enabled: true,
433
433
  },
434
434
  showEmptyMiniList: false,
435
+ emptyListButton: {
436
+ mode: ["pickup", "planning", "delivery"],
437
+ style: "secondary",
438
+ renderBelowReviewCartButton: false,
439
+ icon: false,
440
+ },
435
441
  preserveStore: {
436
442
  enabled: false,
437
443
  skipConfirmation: false,