@thryveai/theme-interfaces 2.7.64 → 2.7.66

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/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
13
13
  import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
14
14
  import { IDefaultRetailerSettingsVersion2 } from "./interfaces/default-settings.interfaces";
15
15
  import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
16
- import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IEntryModalVersion, IShoppingRuleControl, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IUseContentEngineV2Components, IPdpNutritionLink } from "./interfaces/retailer-settings.interfaces";
16
+ import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IEntryModalVersion, IShoppingRuleControl, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IUseContentEngineV2Components, IPdpNutritionLink, ITypesOfBusiness, IBusinessAccountObject } from "./interfaces/retailer-settings.interfaces";
17
17
  import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./interfaces/icons.interfaces";
18
18
  import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./interfaces/theme.interfaces";
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";
@@ -23,9 +23,10 @@ import { ProductAttributes, ProductAttrToIcons } from "./storefront/productBadge
23
23
  import { IMobileSettings } from "./mobile/interfaces/mobile-retailer-settings.interfaces";
24
24
  import { MobileDefaultSettings } from "./mobile/reactnative/MobileDefaultSettings";
25
25
  import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettingsTemplate.AdminUi";
26
- export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings };
26
+ export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings, };
27
27
  export { CMSComponentNames, CMSNames };
28
28
  export { ProductAttrToIcons, ProductAttributes };
29
+ export { ITypesOfBusiness, IBusinessAccountObject };
29
30
  export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
30
31
  export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
31
32
  export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IIconPosition, };
@@ -300,6 +300,7 @@ export interface ICheckoutSettingsV2 {
300
300
  checkoutValidation: ICheckoutValidation;
301
301
  forceDeliverySection: boolean;
302
302
  enableInterimModal: boolean;
303
+ smsOptIn: boolean;
303
304
  }
304
305
  export interface IFeaturesV2 {
305
306
  additionalCharges: boolean;
@@ -523,7 +524,29 @@ export interface IAccountPageV2 {
523
524
  profileTab: {
524
525
  deleteAccountButton: boolean;
525
526
  };
527
+ secondStepRegistration: {
528
+ businessAccount: IBusinessAccountObject;
529
+ };
530
+ }
531
+ export interface IBusinessAccountObject {
532
+ enabled: boolean;
533
+ fields: {
534
+ title: {
535
+ enabled: boolean;
536
+ validationTypes: IValidationType[];
537
+ };
538
+ company: {
539
+ enabled: boolean;
540
+ validationTypes: IValidationType[];
541
+ };
542
+ typeOfBusiness: {
543
+ enabled: boolean;
544
+ options: ITypesOfBusiness[];
545
+ validationTypes: IValidationType[];
546
+ };
547
+ };
526
548
  }
549
+ export declare type ITypesOfBusiness = "foodService" | "education" | "youthSports" | "administrationOffice" | "nonProfit";
527
550
  export interface IGlobalAnimations {
528
551
  confetti: ILayoutAnimationsConfetti;
529
552
  }
@@ -17,6 +17,32 @@ var DefaultConfigSFUI = {
17
17
  profileTab: {
18
18
  deleteAccountButton: false,
19
19
  },
20
+ secondStepRegistration: {
21
+ businessAccount: {
22
+ enabled: false,
23
+ fields: {
24
+ title: {
25
+ enabled: true,
26
+ validationTypes: [{ length: 50, _type: "less" }, "required"],
27
+ },
28
+ company: {
29
+ enabled: true,
30
+ validationTypes: [{ length: 50, _type: "less" }, "required"],
31
+ },
32
+ typeOfBusiness: {
33
+ enabled: true,
34
+ options: [
35
+ "administrationOffice",
36
+ "education",
37
+ "foodService",
38
+ "nonProfit",
39
+ "youthSports",
40
+ ],
41
+ validationTypes: ["required"],
42
+ },
43
+ },
44
+ },
45
+ },
20
46
  },
21
47
  addressSettings: {
22
48
  addressValidationTypes: {
@@ -56,6 +82,7 @@ var DefaultConfigSFUI = {
56
82
  showTaxTotal: true,
57
83
  },
58
84
  checkout: {
85
+ smsOptIn: false,
59
86
  checkoutValidation: {
60
87
  instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
61
88
  phoneNumber: ["usPhone", "required"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.64",
3
+ "version": "2.7.66",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "gulp",