@thryveai/theme-interfaces 2.7.0 → 2.7.1-4.test1

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.
Files changed (34) hide show
  1. package/dist/index.d.ts +4 -1
  2. package/dist/index.js +3 -1
  3. package/dist/interfaces/admin-settings-interfaces.d.ts +1 -1
  4. package/dist/interfaces/icons.interfaces.d.ts +1 -1
  5. package/dist/interfaces/retailer-settings.interfaces.d.ts +9 -1
  6. package/dist/mobile/interfaces/mobile-admin-settings.interfaces.d.ts +8 -0
  7. package/dist/mobile/interfaces/mobile-admin-settings.interfaces.js +2 -0
  8. package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.d.ts +58 -0
  9. package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.js +2 -0
  10. package/dist/mobile/reactnative/MobileDefaultSettings.d.ts +2 -0
  11. package/dist/mobile/reactnative/MobileDefaultSettings.js +8 -0
  12. package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.d.ts +2 -0
  13. package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.js +17 -0
  14. package/dist/storefront/SFUISettingsTemplate.AdminUi.d.ts +2 -0
  15. package/dist/storefront/SFUISettingsTemplate.AdminUi.js +847 -37
  16. package/dist/storefront/defaultIconsStorefront.js +3 -2
  17. package/dist/storefront/defaultSettingsStorefront.js +5 -0
  18. package/package.json +29 -29
  19. package/dist/storefront/SFUISettingsTemplates/accountPage.template.d.ts +0 -3
  20. package/dist/storefront/SFUISettingsTemplates/accountPage.template.js +0 -76
  21. package/dist/storefront/SFUISettingsTemplates/addressSettings.template.d.ts +0 -3
  22. package/dist/storefront/SFUISettingsTemplates/addressSettings.template.js +0 -136
  23. package/dist/storefront/SFUISettingsTemplates/adminPanelOnly.template.d.ts +0 -3
  24. package/dist/storefront/SFUISettingsTemplates/adminPanelOnly.template.js +0 -16
  25. package/dist/storefront/SFUISettingsTemplates/cartSummary.template.d.ts +0 -3
  26. package/dist/storefront/SFUISettingsTemplates/cartSummary.template.js +0 -24
  27. package/dist/storefront/SFUISettingsTemplates/common.d.ts +0 -2
  28. package/dist/storefront/SFUISettingsTemplates/common.js +0 -28
  29. package/dist/storefront/SFUISettingsTemplates/features.template.d.ts +0 -3
  30. package/dist/storefront/SFUISettingsTemplates/features.template.js +0 -317
  31. package/dist/storefront/SFUISettingsTemplates/siteSettings.template.d.ts +0 -3
  32. package/dist/storefront/SFUISettingsTemplates/siteSettings.template.js +0 -180
  33. package/dist/storefront/SFUISettingsTemplates/welcomeModal.template.d.ts +0 -3
  34. package/dist/storefront/SFUISettingsTemplates/welcomeModal.template.js +0 -27
package/dist/index.d.ts CHANGED
@@ -19,7 +19,10 @@ import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IT
19
19
  import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, IIconPosition } from "./interfaces/default-theme.interface";
20
20
  import { CMSComponentNames, CMSNames } from "./storefront/contentEngineComponents";
21
21
  import { ProductAttributes, ProductAttrToIcons } from "./storefront/productBadgeAttributes";
22
- export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, };
22
+ /** MOBILE */
23
+ import { IMobileSettings } from "./mobile/interfaces/mobile-retailer-settings.interfaces";
24
+ import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettingsTemplate.AdminUi";
25
+ export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, };
23
26
  export { CMSComponentNames, CMSNames };
24
27
  export { ProductAttrToIcons, ProductAttributes };
25
28
  export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductAttrToIcons = exports.CMSComponentNames = exports.AdminImagesTemplateSTS = exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultIconsSFUI = exports.DefaultImagesSFUI = exports.DefaultThemeColors = exports.globalTheme = exports.DefaultThemeSFUI = exports.AllThemeTemplates = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
3
+ exports.ProductAttrToIcons = exports.CMSComponentNames = exports.AdminSettingsTemplateMobile = exports.AdminImagesTemplateSTS = exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultIconsSFUI = exports.DefaultImagesSFUI = exports.DefaultThemeColors = exports.globalTheme = exports.DefaultThemeSFUI = exports.AllThemeTemplates = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
4
4
  var defaultImagesStorefront_1 = require("./storefront/defaultImagesStorefront");
5
5
  exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
6
6
  var defaultIconsStorefront_1 = require("./storefront/defaultIconsStorefront");
@@ -31,3 +31,5 @@ var contentEngineComponents_1 = require("./storefront/contentEngineComponents");
31
31
  Object.defineProperty(exports, "CMSComponentNames", { enumerable: true, get: function () { return contentEngineComponents_1.CMSComponentNames; } });
32
32
  var productBadgeAttributes_1 = require("./storefront/productBadgeAttributes");
33
33
  Object.defineProperty(exports, "ProductAttrToIcons", { enumerable: true, get: function () { return productBadgeAttributes_1.ProductAttrToIcons; } });
34
+ var MobileSettingsTemplate_AdminUi_1 = require("./mobile/reactnative/MobileSettingsTemplate.AdminUi");
35
+ Object.defineProperty(exports, "AdminSettingsTemplateMobile", { enumerable: true, get: function () { return MobileSettingsTemplate_AdminUi_1.AdminSettingsTemplateMobile; } });
@@ -12,7 +12,7 @@ declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type;
12
12
  declare type IPartialKeys<T> = {
13
13
  [key in keyof T]: Partial<T[key]>;
14
14
  };
15
- declare type IAdminAvailableSettings = IPartialKeys<Omit<IDefaultRetailerSettingsVersion2, "pdpSettings" | "productCard">>;
15
+ declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal">>;
16
16
  /** ===== */
17
17
  export interface IMessageProps {
18
18
  caption?: string | string[];
@@ -3,5 +3,5 @@ export declare type IIconsObject = {
3
3
  };
4
4
  export declare type PaymentTypesLogos = "AmExpCard" | "AmExpLogo" | "Comodo" | "DiscoverCard" | "DiscoverLogo" | "MasterLogo" | "MasterSecure" | "VisaLogo" | "VisaVerified";
5
5
  export declare type PaymentCards = "AmExpCard" | "DiscoverCard" | "MasterCard" | "MasterCardDebit" | "VisaCard";
6
- export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ArrowDown" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "Hamburger" | "Help" | "Home" | "Info" | "Instacart" | "Instagram" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "LocationDistance" | "LocationPin" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "None" | "Note" | "NoteFilled" | "Notifications" | "Orders" | "PastPurchases" | "PayPal" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Plus" | "Print" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "Remove" | "Reserve" | "ReserveTime" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards | ProductAttributeIcons;
6
+ export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ArrowDown" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "Hamburger" | "Help" | "Home" | "Info" | "Instacart" | "Instagram" | "InstructionsFilled" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "LocationDistance" | "LocationPin" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "None" | "Note" | "NoteFilled" | "Notifications" | "Orders" | "PastPurchases" | "PayPal" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Plus" | "Print" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "Remove" | "Reserve" | "ReserveTime" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards | ProductAttributeIcons;
7
7
  export declare type ProductAttributeIcons = "GlutenFree" | "Organic" | "Local" | "DairyFree" | "DiabetesFriendly" | "EggFree" | "FairTrade" | "NoArtificialIngredients" | "Halal" | "HeartHealth" | "NoHighFructoseCornSyrup" | "KetoFriendly" | "Kosher" | "LactoseFree" | "LowFODMAP" | "LowSodium" | "NoAddedSugar" | "NonGMO" | "Paleo" | "PeanutFree" | "PlantGoodness" | "SoyFree" | "Vegan" | "WholeGrain";
@@ -278,6 +278,7 @@ export interface IAddressesSettingsV2 {
278
278
  addNewAddressUrl: string;
279
279
  editAddressUrl: string;
280
280
  deleteAddressUrl: string;
281
+ addressProfileName: string | null;
281
282
  };
282
283
  useAddressValidation: boolean;
283
284
  }
@@ -347,6 +348,7 @@ export interface IProductCardSettingsV2 {
347
348
  productCards: IProductCardsProps;
348
349
  }
349
350
  export interface ISiteSettingsV2 {
351
+ clientSideOrderModify: boolean;
350
352
  anonymousCart: boolean;
351
353
  ctaButtons: ICtaButtons | null | undefined;
352
354
  daysToRemainSignedIn: number;
@@ -354,6 +356,7 @@ export interface ISiteSettingsV2 {
354
356
  defaultSearchParams: IDefaultSearchParams;
355
357
  defaultShoppingMode: "pickup" | "planning" | "delivery";
356
358
  defaultStoreLocation: IDefaultStoreLocation;
359
+ defaultTabView: "listView" | "mapView";
357
360
  disableTprPrice: boolean;
358
361
  footerVersion: IFooterTypes;
359
362
  googleAutocompleteSettings: IGoogleAutocompleteSettings;
@@ -431,7 +434,7 @@ export interface IRestrictMapPlaces {
431
434
  totalTake: number;
432
435
  };
433
436
  }
434
- export declare type IValidationType = IValidateDateRange | IValidateLength | IValidateMultipleLengths | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState" | "notWhiteSpacesOnly";
437
+ export declare type IValidationType = IValidateDateRange | IValidateLength | IValidateMultipleLengths | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState" | "notWhiteSpacesOnly" | "NAPhone";
435
438
  export declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
436
439
  export declare type INutritionZone = "us" | "eu" | "au" | "ca";
437
440
  export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5" | "version6";
@@ -528,6 +531,10 @@ export interface IProductCardsProps {
528
531
  }
529
532
  export interface IProductCardV2ComponentProps {
530
533
  promotionLabel: IProductCardV2PromotionLabelsSettings;
534
+ recommendedLabel: IProductCardV2RecommendedLabelSettings;
535
+ }
536
+ export interface IProductCardV2RecommendedLabelSettings {
537
+ enabled: boolean;
531
538
  }
532
539
  export interface IProductCardV2PromotionLabelsSettings {
533
540
  showLines: number;
@@ -535,6 +542,7 @@ export interface IProductCardV2PromotionLabelsSettings {
535
542
  export declare type IProductCardLayouts = {
536
543
  ContainersGrid: "default" | "pce-centered" | "prs-labels";
537
544
  ContainersCarousel: "default" | "pce-centered" | "prs-labels";
545
+ FlippSlideout: "default";
538
546
  };
539
547
  export declare type IProductCardLayoutObjects<T> = {
540
548
  [Place in keyof IProductCardLayouts]: {
@@ -0,0 +1,8 @@
1
+ import { ITemplateObject } from "../../interfaces/admin-settings-interfaces";
2
+ import { IMobileSettings } from "./mobile-retailer-settings.interfaces";
3
+ declare type IPartialKeys<T> = {
4
+ [key in keyof T]: Partial<T[key]>;
5
+ };
6
+ declare type IAdminAvailableSettings = IPartialKeys<IMobileSettings>;
7
+ export declare type IAdminSettingsTemplate = ITemplateObject<Pick<IAdminAvailableSettings, "features">>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,58 @@
1
+ export interface IMobileSettings {
2
+ ebtPayment: {
3
+ details: string | undefined;
4
+ };
5
+ features: {
6
+ enableAccountReview: boolean;
7
+ enableAddToCartButtonOnMyList: boolean;
8
+ enableBuildListFiltersBelowTabs: boolean;
9
+ enableCartItemLocator: boolean;
10
+ enableCircularCarouselPreview: boolean;
11
+ enableCircularSpecialRequest: boolean;
12
+ enableCircularsForCorporateStore: boolean;
13
+ enableCompactHeader: boolean;
14
+ enableCouponRecommendedTag: boolean;
15
+ enableDeleteAccount: boolean;
16
+ enableEarlyTimeSlotSelection: boolean;
17
+ enableFirstIntentModal: boolean;
18
+ enableGetDeliveryMoreStores: boolean;
19
+ enableGiftCards: boolean;
20
+ enableInStoreOrders: boolean;
21
+ enableInterim: boolean;
22
+ enableMissedPromotions: boolean;
23
+ enableOnboarding: boolean;
24
+ enablePaymentCibc: boolean;
25
+ enablePaymentWithUserInputDescription: boolean;
26
+ enablePreviewLabelOnCircular: boolean;
27
+ enablePreviousSelectedStores: boolean;
28
+ enableProductInfiniteScroll: boolean;
29
+ enableProductVariations: boolean;
30
+ enableProgressOnPromotionDetail: boolean;
31
+ enablePromoCode: boolean;
32
+ enableSaleTagOnCartItem: boolean;
33
+ enableSearchPreviewInlineProducts: boolean;
34
+ enableSearchPreviewTopCategories: boolean;
35
+ enableShoppingModeSelectorCircularListing: boolean;
36
+ enableSlotsRemainingLabel: boolean;
37
+ enableSponsoredProducts: boolean;
38
+ enableStoreEmail: boolean;
39
+ filterOrder: string[];
40
+ flipp: {} | undefined;
41
+ payments: {} | undefined;
42
+ wakefernEnableFiltersSortsCloseButton: boolean;
43
+ wakefernEnableProductNameAlert: boolean;
44
+ webCollage: {
45
+ baseUrl: string;
46
+ } | undefined;
47
+ };
48
+ intentScreenLogoHeight: number | undefined;
49
+ settings: {
50
+ aboutDescription: string | undefined;
51
+ barcodeTotalLength: number;
52
+ carouselAutoscrollTimeout: number | undefined;
53
+ infiniteScrollEndReachedThreshold: number | undefined;
54
+ privacyPolicyUrl: string;
55
+ termsOfUseUrl: string;
56
+ topLevelCategory: string;
57
+ };
58
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { IMobileSettings } from "../interfaces/mobile-retailer-settings.interfaces";
2
+ export declare const MobileDefaultSettings: IMobileSettings;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MobileDefaultSettings = void 0;
4
+ exports.MobileDefaultSettings = {
5
+ features: {
6
+ enableAccountReview: {},
7
+ },
8
+ };
@@ -0,0 +1,2 @@
1
+ import { IAdminSettingsTemplate } from "../interfaces/mobile-admin-settings.interfaces";
2
+ export declare const AdminSettingsTemplateMobile: IAdminSettingsTemplate;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminSettingsTemplateMobile = void 0;
4
+ exports.AdminSettingsTemplateMobile = {
5
+ features: {
6
+ title: "",
7
+ description: "",
8
+ value: {
9
+ enableAddToCartButtonOnMyList: {
10
+ description: "",
11
+ title: "',",
12
+ type: "checkbox",
13
+ },
14
+ },
15
+ type: "collapsableObject",
16
+ },
17
+ };
@@ -1,4 +1,5 @@
1
1
  import { IAdminControlType, IAdminSettingsTemplate, IAdminTemplateInputTypes } from "../interfaces/admin-settings-interfaces";
2
+ import { IValidationType } from "../interfaces/retailer-settings.interfaces";
2
3
  import { CMSNames } from "./contentEngineComponents";
3
4
  export declare const AdminTemplateInputTypes: IAdminTemplateInputTypes;
4
5
  export declare type IUseContentEngineV2ComponentsAdmin = {
@@ -10,5 +11,6 @@ interface IContentEngineAdminTypes {
10
11
  helpLink: string;
11
12
  type: IAdminControlType;
12
13
  }
14
+ export declare const validationTypes: Array<IValidationType>;
13
15
  export declare const AdminSettingsTemplateSFUI: IAdminSettingsTemplate;
14
16
  export {};