@thryveai/theme-interfaces 2.7.70 → 2.7.72
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 +4 -2
- package/dist/index.js +3 -1
- package/dist/interfaces/retailer-settings.interfaces.d.ts +7 -0
- package/dist/interfaces/shared-settings.interfaces.d.ts +8 -0
- package/dist/interfaces/shared-settings.interfaces.js +2 -0
- package/dist/storefront/defaultSettingsStorefront.js +2 -0
- package/dist/storefront/defaultSharedSettings.d.ts +3 -0
- package/dist/storefront/defaultSharedSettings.js +11 -0
- package/package.json +29 -29
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import DefaultImagesSFUI from "./storefront/defaultImagesStorefront";
|
|
2
2
|
import DefaultIconsSFUI from "./storefront/defaultIconsStorefront";
|
|
3
3
|
import DefaultConfigSFUI from "./storefront/defaultSettingsStorefront";
|
|
4
|
+
import DefaultSharedSettingsConfig from "./storefront/defaultSharedSettings";
|
|
4
5
|
import DefaultThemeSFUI, { globalTheme, DefaultThemeColors } from "./storefront/defaultThemeStorefront";
|
|
5
6
|
import DefaultConfigSTS from "./sts/defaultSettingsSts";
|
|
6
7
|
import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./storefront/SFUISettingsTemplate.AdminUi";
|
|
@@ -23,7 +24,8 @@ import { ProductAttributes, ProductAttrToIcons } from "./storefront/productBadge
|
|
|
23
24
|
import { IMobileSettings } from "./mobile/interfaces/mobile-retailer-settings.interfaces";
|
|
24
25
|
import { MobileDefaultSettings } from "./mobile/reactnative/MobileDefaultSettings";
|
|
25
26
|
import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettingsTemplate.AdminUi";
|
|
26
|
-
|
|
27
|
+
import { ISharedSettings } from "./interfaces/shared-settings.interfaces";
|
|
28
|
+
export { DefaultSharedSettingsConfig, DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings, };
|
|
27
29
|
export { CMSComponentNames, CMSNames };
|
|
28
30
|
export { ProductAttrToIcons, ProductAttributes };
|
|
29
31
|
export { ITypesOfBusiness, IBusinessAccountObject };
|
|
@@ -31,4 +33,4 @@ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
|
|
|
31
33
|
export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
|
|
32
34
|
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, };
|
|
33
35
|
export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
|
|
34
|
-
export { PdpDetailsElementLayout, 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, IUseContentEngineV2Components, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, IPdpNutritionLink, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, };
|
|
36
|
+
export { PdpDetailsElementLayout, 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, IUseContentEngineV2Components, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, IPdpNutritionLink, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, ISharedSettings, };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductAttrToIcons = exports.CMSComponentNames = exports.MobileDefaultSettings = 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;
|
|
3
|
+
exports.ProductAttrToIcons = exports.CMSComponentNames = exports.MobileDefaultSettings = 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 = exports.DefaultSharedSettingsConfig = 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");
|
|
7
7
|
exports.DefaultIconsSFUI = defaultIconsStorefront_1.default;
|
|
8
8
|
var defaultSettingsStorefront_1 = require("./storefront/defaultSettingsStorefront");
|
|
9
9
|
exports.DefaultConfigSFUI = defaultSettingsStorefront_1.default;
|
|
10
|
+
var defaultSharedSettings_1 = require("./storefront/defaultSharedSettings");
|
|
11
|
+
exports.DefaultSharedSettingsConfig = defaultSharedSettings_1.default;
|
|
10
12
|
var defaultThemeStorefront_1 = require("./storefront/defaultThemeStorefront");
|
|
11
13
|
exports.DefaultThemeSFUI = defaultThemeStorefront_1.default;
|
|
12
14
|
Object.defineProperty(exports, "globalTheme", { enumerable: true, get: function () { return defaultThemeStorefront_1.globalTheme; } });
|
|
@@ -358,8 +358,14 @@ export interface IProductCardSettingsV2 {
|
|
|
358
358
|
productCardTitleHeight: number;
|
|
359
359
|
productCards: IProductCardsProps;
|
|
360
360
|
}
|
|
361
|
+
export interface ICookiePro {
|
|
362
|
+
enabled: boolean;
|
|
363
|
+
src: string;
|
|
364
|
+
domain: string;
|
|
365
|
+
}
|
|
361
366
|
export interface ISiteSettingsV2 {
|
|
362
367
|
clientSideOrderModify: boolean;
|
|
368
|
+
cookiePro: ICookiePro;
|
|
363
369
|
anonymousCart: boolean;
|
|
364
370
|
ctaButtons: ICtaButtons | null | undefined;
|
|
365
371
|
cmsLazyLoadRows: number;
|
|
@@ -589,6 +595,7 @@ export interface IProductCardV2RecommendedLabelSettings {
|
|
|
589
595
|
}
|
|
590
596
|
export interface IProductCardV2PromotionLabelsSettings {
|
|
591
597
|
showLines: number;
|
|
598
|
+
labelSource: "name" | "description";
|
|
592
599
|
}
|
|
593
600
|
export declare type IProductCardLayouts = {
|
|
594
601
|
ContainersGrid: "default" | "pce-centered" | "prs-labels";
|
|
@@ -255,6 +255,7 @@ var DefaultConfigSFUI = {
|
|
|
255
255
|
components: {
|
|
256
256
|
promotionLabel: {
|
|
257
257
|
showLines: 1,
|
|
258
|
+
labelSource: "name",
|
|
258
259
|
},
|
|
259
260
|
recommendedLabel: { enabled: false },
|
|
260
261
|
},
|
|
@@ -358,6 +359,7 @@ var DefaultConfigSFUI = {
|
|
|
358
359
|
isLegacyProductURL: false,
|
|
359
360
|
headerLinks: { dimension: 0, enabled: false },
|
|
360
361
|
showCartValueOnMobile: false,
|
|
362
|
+
cookiePro: { enabled: false, domain: "", src: "" },
|
|
361
363
|
},
|
|
362
364
|
welcomeModal: [],
|
|
363
365
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DefaultSharedSettingsConfig = {
|
|
4
|
+
features: {
|
|
5
|
+
specialRequestItems: {
|
|
6
|
+
enable: false,
|
|
7
|
+
excludeStores: [],
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
exports.default = DefaultSharedSettingsConfig;
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "2.7.
|
|
4
|
-
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "gulp",
|
|
7
|
-
"push": "npm run build && npm publish",
|
|
8
|
-
"merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
|
|
9
|
-
"generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
|
|
10
|
-
},
|
|
11
|
-
"author": "Wynshop",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"main": "dist",
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@types/node": "^17.0.42",
|
|
19
|
-
"fs-extra": "11.1.0",
|
|
20
|
-
"gulp": "4.0.2",
|
|
21
|
-
"gulp-file-contents-to-json": "0.2.2",
|
|
22
|
-
"gulp-typescript": "6.0.0-alpha.1",
|
|
23
|
-
"imagemin": "7.0.1",
|
|
24
|
-
"imagemin-svgo": "9.0.0",
|
|
25
|
-
"svgo": "3.0.2",
|
|
26
|
-
"ts-node": "^10.8.1",
|
|
27
|
-
"typescript": "4.6.3"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "2.7.72",
|
|
4
|
+
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "gulp",
|
|
7
|
+
"push": "npm run build && npm publish",
|
|
8
|
+
"merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
|
|
9
|
+
"generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
|
|
10
|
+
},
|
|
11
|
+
"author": "Wynshop",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"main": "dist",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^17.0.42",
|
|
19
|
+
"fs-extra": "11.1.0",
|
|
20
|
+
"gulp": "4.0.2",
|
|
21
|
+
"gulp-file-contents-to-json": "0.2.2",
|
|
22
|
+
"gulp-typescript": "6.0.0-alpha.1",
|
|
23
|
+
"imagemin": "7.0.1",
|
|
24
|
+
"imagemin-svgo": "9.0.0",
|
|
25
|
+
"svgo": "3.0.2",
|
|
26
|
+
"ts-node": "^10.8.1",
|
|
27
|
+
"typescript": "4.6.3"
|
|
28
|
+
}
|
|
29
|
+
}
|