@thryveai/theme-interfaces 2.8.35 → 2.8.37

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 (35) hide show
  1. package/dist/JSONSchemas/index.d.ts +95 -86
  2. package/dist/JSONSchemas/index.js +178 -144
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +15 -0
  5. package/dist/interfaces/admin-settings-interfaces.d.ts +1 -1
  6. package/dist/interfaces/retailer-settings.interfaces.d.ts +5 -6
  7. package/dist/product-card-template/layouts/CarouselCard/DUN-attributes.d.ts +3 -0
  8. package/dist/product-card-template/layouts/CarouselCard/DUN-attributes.js +312 -0
  9. package/dist/product-card-template/layouts/CarouselCard/Default.d.ts +3 -0
  10. package/dist/product-card-template/layouts/CarouselCard/Default.js +330 -0
  11. package/dist/product-card-template/layouts/CarouselCard/PCE-centered.d.ts +3 -0
  12. package/dist/product-card-template/layouts/CarouselCard/PCE-centered.js +216 -0
  13. package/dist/product-card-template/layouts/CarouselCard/PRS-labels.d.ts +3 -0
  14. package/dist/product-card-template/layouts/CarouselCard/PRS-labels.js +283 -0
  15. package/dist/product-card-template/layouts/FlyerCard/Default.d.ts +3 -0
  16. package/dist/product-card-template/layouts/FlyerCard/Default.js +114 -0
  17. package/dist/product-card-template/layouts/FlyerCard/Detailed.d.ts +3 -0
  18. package/dist/product-card-template/layouts/FlyerCard/Detailed.js +164 -0
  19. package/dist/product-card-template/layouts/ProductGrid/DUN-attributes.d.ts +3 -0
  20. package/dist/product-card-template/layouts/ProductGrid/DUN-attributes.js +344 -0
  21. package/dist/product-card-template/layouts/ProductGrid/Default.d.ts +3 -0
  22. package/dist/product-card-template/layouts/ProductGrid/Default.js +341 -0
  23. package/dist/product-card-template/layouts/ProductGrid/PCE-centered.d.ts +3 -0
  24. package/dist/product-card-template/layouts/ProductGrid/PCE-centered.js +317 -0
  25. package/dist/product-card-template/layouts/ProductGrid/PRS-labels.d.ts +3 -0
  26. package/dist/product-card-template/layouts/ProductGrid/PRS-labels.js +319 -0
  27. package/dist/product-card-template/template.interfaces.d.ts +55 -0
  28. package/dist/product-card-template/template.interfaces.js +51 -0
  29. package/dist/storefront/SFUISettingsTemplate.AdminUi.js +95 -8
  30. package/dist/storefront/commonSettingsStorefront.js +0 -1
  31. package/dist/storefront/defaultIconsStorefront.js +1 -1
  32. package/dist/storefront/defaultSettingsStorefront.js +0 -1
  33. package/dist/storefront/defaultThemeStorefront.d.ts +17 -0
  34. package/dist/storefront/defaultThemeStorefront.js +18 -1
  35. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -41,3 +41,4 @@ export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
41
41
  export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, IDefaultThemeHeadScript, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IThemeHeadScript, IIconPosition, ITimeSlotState, ITimeSlotVariant, };
42
42
  export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
43
43
  export { PdpDetailsElementLayout, ShoppingMode, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IRedPepperConfig, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILayoutCarousel, 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, IPerformanceSettingsV2, IStoreSelectionSettings, };
44
+ export * from "./product-card-template/template.interfaces";
package/dist/index.js CHANGED
@@ -1,4 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.ProductAttrToIcons = exports.CMSComponentNames = exports.AdminSharedSettingsTemplateSFUI = 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.CommonConfigSFUI = exports.CommonSharedSettingsConfig = exports.DefaultConfigSFUI = exports.DefaultSharedSettingsConfig = void 0;
4
18
  var defaultImagesStorefront_1 = require("./storefront/defaultImagesStorefront");
@@ -43,3 +57,4 @@ var commonSettingsStorefront_1 = require("./storefront/commonSettingsStorefront"
43
57
  exports.CommonConfigSFUI = commonSettingsStorefront_1.default;
44
58
  var commonSharedSettings_1 = require("./storefront/commonSharedSettings");
45
59
  exports.CommonSharedSettingsConfig = commonSharedSettings_1.default;
60
+ __exportStar(require("./product-card-template/template.interfaces"), exports);
@@ -12,7 +12,7 @@ declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type;
12
12
  export declare type IPartialKeys<T> = {
13
13
  [key in keyof T]: Partial<T[key]>;
14
14
  };
15
- declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "accountPage" | "pdpSettings">>;
15
+ declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "accountPage" | "pdpSettings" | "productCard">>;
16
16
  /** ===== */
17
17
  export interface IMessageProps {
18
18
  caption?: string | string[];
@@ -704,16 +704,16 @@ export interface IAddressIntegration {
704
704
  }
705
705
  export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
706
706
  export interface IProductCardsProps {
707
- gridRowLength: {
707
+ gridRowLength?: {
708
708
  [key in IScreenType]: number;
709
709
  };
710
- carouselsRowLength: {
710
+ carouselsRowLength?: {
711
711
  [key in IScreenType]: number;
712
712
  };
713
713
  productCard: {
714
- enabled: boolean;
714
+ enabled?: boolean;
715
715
  layouts: IProductCardLayouts;
716
- components: IProductCardV2ComponentProps;
716
+ components?: IProductCardV2ComponentProps;
717
717
  };
718
718
  }
719
719
  export interface IProductCardV2ComponentProps {
@@ -743,11 +743,10 @@ export declare type IProductCardLayouts = {
743
743
  ContainersGrid: "default" | "pce-centered" | "prs-labels" | "dun-attributes";
744
744
  ContainersCarousel: "default" | "pce-centered" | "prs-labels" | "dun-attributes";
745
745
  FlyerCard: "default" | "detailed";
746
- SimplifiedCarousel: "default";
747
746
  };
748
747
  export declare type IProductCardLayoutObjects<T> = {
749
748
  [Place in keyof IProductCardLayouts]: {
750
- [key in IProductCardLayouts[Place]]: T;
749
+ [key in NonNullable<IProductCardLayouts[Place]>]: T;
751
750
  };
752
751
  };
753
752
  export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
@@ -0,0 +1,3 @@
1
+ import { ILayoutInterface } from "../../template.interfaces";
2
+ declare const CarouselCardsDunnes: ILayoutInterface;
3
+ export default CarouselCardsDunnes;
@@ -0,0 +1,312 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var defaultThemeStorefront_1 = require("../../../storefront/defaultThemeStorefront");
4
+ var CarouselCardsDunnes = {
5
+ cardHeader: {
6
+ sectionPosition: {
7
+ mobile: {
8
+ row: "1/3",
9
+ column: "1/1",
10
+ align: "start",
11
+ gridGap: defaultThemeStorefront_1.spacing.xxs,
12
+ },
13
+ },
14
+ children: [
15
+ {
16
+ component: "ProductAttributes",
17
+ sectionPosition: {
18
+ mobile: {
19
+ row: "auto/auto",
20
+ column: "1/1",
21
+ gridGap: defaultThemeStorefront_1.spacing.xxs,
22
+ justify: "left",
23
+ align: "start",
24
+ },
25
+ },
26
+ },
27
+ ],
28
+ },
29
+ cardProfile: {
30
+ sectionPosition: {
31
+ mobile: {
32
+ row: "2/2",
33
+ column: "1/3",
34
+ align: "start",
35
+ gridGap: defaultThemeStorefront_1.spacing.xs,
36
+ },
37
+ },
38
+ children: [
39
+ {
40
+ component: "ProductImage",
41
+ sectionPosition: {
42
+ mobile: {
43
+ row: "auto/auto",
44
+ column: "1/1",
45
+ justify: "center",
46
+ },
47
+ },
48
+ },
49
+ {
50
+ component: "PromotionLabel",
51
+ sectionPosition: {
52
+ mobile: {
53
+ row: "auto/auto",
54
+ column: "1/1",
55
+ justify: "left",
56
+ },
57
+ tablet: {
58
+ row: "auto/auto",
59
+ column: "1/1",
60
+ justify: "left",
61
+ maxHeight: "20px",
62
+ placeholderHeight: defaultThemeStorefront_1.spacing.sm,
63
+ },
64
+ },
65
+ },
66
+ {
67
+ component: "SponsoredLabel",
68
+ sectionPosition: {
69
+ mobile: {
70
+ row: "auto/auto",
71
+ column: "1/1",
72
+ justify: "left",
73
+ placeholderHeight: defaultThemeStorefront_1.spacing.sm,
74
+ },
75
+ },
76
+ },
77
+ ],
78
+ },
79
+ cardFloatIcons: {
80
+ sectionPosition: {
81
+ mobile: {
82
+ row: "1/3",
83
+ column: "2/3",
84
+ justify: "right",
85
+ align: "start",
86
+ },
87
+ tablet: {
88
+ row: "1/3",
89
+ column: "2/3",
90
+ justify: "right",
91
+ align: "start",
92
+ },
93
+ },
94
+ children: [
95
+ {
96
+ component: "FavoritesButton",
97
+ sectionPosition: {
98
+ mobile: {
99
+ row: "auto/auto",
100
+ column: "1/1",
101
+ justify: "center",
102
+ align: "center",
103
+ },
104
+ },
105
+ },
106
+ ],
107
+ },
108
+ cardCharges: {
109
+ sectionPosition: {
110
+ mobile: {
111
+ row: "3/3",
112
+ column: "1/3",
113
+ align: "start",
114
+ gridGap: defaultThemeStorefront_1.spacing.xxss,
115
+ },
116
+ tablet: {
117
+ row: "3/3",
118
+ column: "1/3",
119
+ align: "start",
120
+ gridGap: defaultThemeStorefront_1.spacing.xxss,
121
+ },
122
+ },
123
+ children: [
124
+ {
125
+ component: "ProductName",
126
+ sectionPosition: {
127
+ mobile: {
128
+ row: "auto/auto",
129
+ column: "1/3",
130
+ minHeight: defaultThemeStorefront_1.spacing.lgr,
131
+ },
132
+ },
133
+ },
134
+ {
135
+ component: "ProductPrice",
136
+ sectionPosition: {
137
+ mobile: {
138
+ row: "auto/auto",
139
+ column: "1/1",
140
+ justify: "left",
141
+ },
142
+ },
143
+ },
144
+ {
145
+ component: "ProductUnitPrice",
146
+ sectionPosition: {
147
+ mobile: {
148
+ row: "auto/auto",
149
+ column: "2/2",
150
+ justify: "right",
151
+ },
152
+ },
153
+ },
154
+ {
155
+ component: "ProductWasPrice",
156
+ sectionPosition: {
157
+ mobile: {
158
+ row: "auto/auto",
159
+ column: "1/1",
160
+ justify: "left",
161
+ },
162
+ tablet: {
163
+ row: "auto/auto",
164
+ column: "1/1",
165
+ },
166
+ },
167
+ },
168
+ {
169
+ component: "ProductPriceLoyalty",
170
+ sectionPosition: {
171
+ mobile: {
172
+ row: "auto/auto",
173
+ column: "1/3",
174
+ },
175
+ },
176
+ },
177
+ {
178
+ component: "ProductWasUnitPrice",
179
+ sectionPosition: {
180
+ mobile: {
181
+ row: "3/auto",
182
+ column: "2/2",
183
+ justify: "right",
184
+ },
185
+ tablet: {
186
+ row: "auto/auto",
187
+ column: "2/2",
188
+ align: "center",
189
+ justify: "right",
190
+ },
191
+ },
192
+ },
193
+ {
194
+ component: "TaxDetails",
195
+ sectionPosition: {
196
+ mobile: {
197
+ row: "auto/auto",
198
+ column: "1/3",
199
+ justify: "left",
200
+ },
201
+ },
202
+ },
203
+ {
204
+ component: "OfferValidMessage",
205
+ sectionPosition: {
206
+ mobile: {
207
+ row: "auto/auto",
208
+ column: "1/3",
209
+ },
210
+ },
211
+ },
212
+ {
213
+ component: "ProductWeightBased",
214
+ sectionPosition: {
215
+ mobile: {
216
+ row: "auto/auto",
217
+ column: "1/3",
218
+ },
219
+ },
220
+ },
221
+ ],
222
+ },
223
+ cardLabels: {
224
+ sectionPosition: {
225
+ mobile: {
226
+ row: "4/4",
227
+ column: "1/3",
228
+ align: "end",
229
+ gridGap: "".concat(defaultThemeStorefront_1.spacing.xs, " 0"),
230
+ wrapContent: true,
231
+ },
232
+ tablet: {
233
+ row: "4/4",
234
+ column: "1/3",
235
+ align: "end",
236
+ gridGap: "".concat(defaultThemeStorefront_1.spacing.xs, " 0"),
237
+ wrapContent: true,
238
+ },
239
+ },
240
+ children: [
241
+ {
242
+ component: "PastPurchased",
243
+ sectionPosition: {
244
+ mobile: { row: "auto/auto", column: "auto/auto" },
245
+ },
246
+ },
247
+ {
248
+ component: "ShoppingRuleLabels",
249
+ sectionPosition: {
250
+ mobile: { row: "auto/auto", column: "auto/auto" },
251
+ },
252
+ },
253
+ ],
254
+ },
255
+ cardActions: {
256
+ sectionPosition: {
257
+ mobile: {
258
+ row: "5/5",
259
+ column: "1/3",
260
+ align: "end",
261
+ gridGap: defaultThemeStorefront_1.spacing.xs,
262
+ },
263
+ tablet: {
264
+ row: "5/5",
265
+ column: "1/3",
266
+ align: "end",
267
+ gridGap: defaultThemeStorefront_1.spacing.xs,
268
+ },
269
+ },
270
+ children: [
271
+ {
272
+ component: "ProductCoupons",
273
+ sectionPosition: {
274
+ mobile: {
275
+ row: "auto/auto",
276
+ column: "auto/auto",
277
+ },
278
+ },
279
+ },
280
+ ],
281
+ },
282
+ cardWrappedActions: {
283
+ sectionPosition: {
284
+ mobile: {
285
+ row: "6/6",
286
+ column: "1/3",
287
+ gridGap: defaultThemeStorefront_1.spacing.xs,
288
+ },
289
+ },
290
+ children: [
291
+ {
292
+ component: "ViewDealButton",
293
+ sectionPosition: {
294
+ mobile: {
295
+ row: "auto/auto",
296
+ column: "auto/auto",
297
+ },
298
+ },
299
+ },
300
+ {
301
+ component: "AddToCartButton",
302
+ sectionPosition: {
303
+ mobile: {
304
+ row: "auto/auto",
305
+ column: "auto/auto",
306
+ },
307
+ },
308
+ },
309
+ ],
310
+ },
311
+ };
312
+ exports.default = CarouselCardsDunnes;
@@ -0,0 +1,3 @@
1
+ import { ILayoutInterface } from "../../template.interfaces";
2
+ declare const CarouselCards: ILayoutInterface;
3
+ export default CarouselCards;