@thryveai/theme-interfaces 2.7.65 → 2.7.67
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/README.md +29 -29
- package/dist/index.d.ts +3 -2
- package/dist/interfaces/retailer-settings.interfaces.d.ts +22 -0
- package/dist/storefront/contentEngineComponents.d.ts +13 -12
- package/dist/storefront/contentEngineComponents.js +13 -12
- package/dist/storefront/defaultSettingsStorefront.js +39 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#V8 Theme Interfaces
|
|
2
|
-
|
|
3
|
-
interfaces for all MI9 Retailer Themes.
|
|
4
|
-
|
|
5
|
-
###icons.interfaces
|
|
6
|
-
List of all icons used inside the ui projects.
|
|
7
|
-
|
|
8
|
-
###retailer-settings.interfaces
|
|
9
|
-
more info here
|
|
10
|
-
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
-
###theme.interfaces
|
|
12
|
-
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
-
|
|
14
|
-
#To Build Project
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
npm install
|
|
18
|
-
npm run build
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
#To Publish npm package
|
|
22
|
-
```
|
|
23
|
-
npm login
|
|
24
|
-
npm publish
|
|
25
|
-
```
|
|
26
|
-
or
|
|
27
|
-
```
|
|
28
|
-
npm run push
|
|
29
|
-
```
|
|
1
|
+
#V8 Theme Interfaces
|
|
2
|
+
|
|
3
|
+
interfaces for all MI9 Retailer Themes.
|
|
4
|
+
|
|
5
|
+
###icons.interfaces
|
|
6
|
+
List of all icons used inside the ui projects.
|
|
7
|
+
|
|
8
|
+
###retailer-settings.interfaces
|
|
9
|
+
more info here
|
|
10
|
+
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
+
###theme.interfaces
|
|
12
|
+
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
+
|
|
14
|
+
#To Build Project
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
npm install
|
|
18
|
+
npm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#To Publish npm package
|
|
22
|
+
```
|
|
23
|
+
npm login
|
|
24
|
+
npm publish
|
|
25
|
+
```
|
|
26
|
+
or
|
|
27
|
+
```
|
|
28
|
+
npm run push
|
|
29
|
+
```
|
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, };
|
|
@@ -524,7 +524,29 @@ export interface IAccountPageV2 {
|
|
|
524
524
|
profileTab: {
|
|
525
525
|
deleteAccountButton: boolean;
|
|
526
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
|
+
};
|
|
527
548
|
}
|
|
549
|
+
export declare type ITypesOfBusiness = "foodService" | "education" | "youthSports" | "administrationOffice" | "nonProfit";
|
|
528
550
|
export interface IGlobalAnimations {
|
|
529
551
|
confetti: ILayoutAnimationsConfetti;
|
|
530
552
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
export declare const CMSComponentNames: {
|
|
2
2
|
Carousel: string;
|
|
3
|
-
SmallCarousel: string;
|
|
4
|
-
Freeform: string;
|
|
5
3
|
ContactUs: string;
|
|
4
|
+
Freeform: string;
|
|
6
5
|
HeroBanner: string;
|
|
7
6
|
Image: string;
|
|
8
|
-
Video: string;
|
|
9
|
-
VideoWithContent: string;
|
|
10
|
-
ImageWithContent: string;
|
|
11
7
|
ImageTextButton: string;
|
|
12
|
-
|
|
13
|
-
SmallImageWithContent: string;
|
|
8
|
+
ImageWithContent: string;
|
|
14
9
|
LargePromotion: string;
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
LayoutExtraLargeBanner2: string;
|
|
11
|
+
PageTopperWithFullBackground: string;
|
|
12
|
+
ProductCardStory: string;
|
|
13
|
+
Recipe: string;
|
|
17
14
|
Sale: string;
|
|
18
15
|
SmallBannerWithBackgroundImage: string;
|
|
19
16
|
SmallBannerWithSupportingImage: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
SmallCarousel: string;
|
|
18
|
+
SmallImageWithContent: string;
|
|
19
|
+
SmallPromotion: string;
|
|
20
|
+
ThreeBannerContainer: string;
|
|
21
|
+
TwoBannerContainer: string;
|
|
22
|
+
Video: string;
|
|
23
|
+
VideoWithContent: string;
|
|
23
24
|
};
|
|
24
25
|
export declare type CMSNames = keyof typeof CMSComponentNames;
|
|
@@ -3,24 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CMSComponentNames = void 0;
|
|
4
4
|
exports.CMSComponentNames = {
|
|
5
5
|
Carousel: "Carousel",
|
|
6
|
-
SmallCarousel: "CarouselSmall",
|
|
7
|
-
Freeform: "Freeform",
|
|
8
6
|
ContactUs: "ContactUs",
|
|
7
|
+
Freeform: "Freeform",
|
|
9
8
|
HeroBanner: "HeroBanner",
|
|
10
9
|
Image: "Image",
|
|
11
|
-
Video: "Video",
|
|
12
|
-
VideoWithContent: "VideoWithContent",
|
|
13
|
-
ImageWithContent: "StandardContentBlock3",
|
|
14
10
|
ImageTextButton: "ImageTextButton",
|
|
15
|
-
|
|
16
|
-
SmallImageWithContent: "StackedContentBlock",
|
|
11
|
+
ImageWithContent: "StandardContentBlock3",
|
|
17
12
|
LargePromotion: "LargePromotion",
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
LayoutExtraLargeBanner2: "LayoutExtraLargeBanner2",
|
|
14
|
+
PageTopperWithFullBackground: "PageTopperWithFullBackground",
|
|
15
|
+
ProductCardStory: "ProductCardStory",
|
|
16
|
+
Recipe: "Recipe",
|
|
20
17
|
Sale: "Sale",
|
|
21
18
|
SmallBannerWithBackgroundImage: "StandardContentBlock1",
|
|
22
19
|
SmallBannerWithSupportingImage: "StandardContentBlock2",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
SmallCarousel: "CarouselSmall",
|
|
21
|
+
SmallImageWithContent: "StackedContentBlock",
|
|
22
|
+
SmallPromotion: "SmallPromotion",
|
|
23
|
+
ThreeBannerContainer: "ThreeBannerContainer",
|
|
24
|
+
TwoBannerContainer: "TwoBannerContainer",
|
|
25
|
+
Video: "Video",
|
|
26
|
+
VideoWithContent: "VideoWithContent",
|
|
26
27
|
};
|
|
@@ -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: {
|
|
@@ -307,26 +333,27 @@ var DefaultConfigSFUI = {
|
|
|
307
333
|
},
|
|
308
334
|
useContentEngineV2Components: {
|
|
309
335
|
Carousel: true,
|
|
310
|
-
SmallCarousel: false,
|
|
311
|
-
Freeform: false,
|
|
312
336
|
ContactUs: false,
|
|
337
|
+
Freeform: false,
|
|
313
338
|
HeroBanner: false,
|
|
314
339
|
Image: false,
|
|
315
|
-
Video: false,
|
|
316
|
-
VideoWithContent: false,
|
|
317
|
-
ImageWithContent: false,
|
|
318
340
|
ImageTextButton: false,
|
|
319
|
-
|
|
320
|
-
SmallImageWithContent: false,
|
|
341
|
+
ImageWithContent: false,
|
|
321
342
|
LargePromotion: false,
|
|
322
|
-
|
|
323
|
-
|
|
343
|
+
LayoutExtraLargeBanner2: false,
|
|
344
|
+
PageTopperWithFullBackground: false,
|
|
345
|
+
ProductCardStory: false,
|
|
346
|
+
Recipe: false,
|
|
324
347
|
Sale: false,
|
|
325
348
|
SmallBannerWithBackgroundImage: false,
|
|
326
349
|
SmallBannerWithSupportingImage: false,
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
350
|
+
SmallCarousel: false,
|
|
351
|
+
SmallImageWithContent: false,
|
|
352
|
+
SmallPromotion: false,
|
|
353
|
+
ThreeBannerContainer: false,
|
|
354
|
+
TwoBannerContainer: false,
|
|
355
|
+
Video: false,
|
|
356
|
+
VideoWithContent: false,
|
|
330
357
|
},
|
|
331
358
|
isLegacyProductURL: false,
|
|
332
359
|
headerLinks: { dimension: 0, enabled: false },
|