@thryveai/theme-interfaces 2.3.8 → 2.3.11

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 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
+ ```
@@ -5,6 +5,7 @@ export declare type IAdminTemplateInputTypes = {
5
5
  };
6
6
  export interface IAdminSettingsTemplate {
7
7
  adminPanelOnly: IAdminControl;
8
+ siteSettings: IAdminControl;
8
9
  features: IAdminControl;
9
10
  }
10
11
  export interface IAdminControl {
@@ -1,4 +1,4 @@
1
- import { IAccountPageSettings, IAddressesSettings, IAddressIntegration, IAddressValidationTypes, IAdvertSettings, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISearchPreviewVisibility, ISecondTierAuthorization, ISMSConfig, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
1
+ import { IAccountPageSettings, IAddressesSettings, IAddressIntegration, IAddressValidationTypes, IAdvertSettings, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISearchPreviewVisibility, ISecondTierAuthorization, ISiteSettings, ISMSConfig, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
2
2
  export interface IDefaultRetailerSettings {
3
3
  adminPanelOnly: {
4
4
  bannerName: string;
@@ -66,6 +66,7 @@ export interface IDefaultRetailerSettings {
66
66
  retailerName: string;
67
67
  searchPreview: ISearchPreviewVisibility;
68
68
  secondTierAuthorization?: ISecondTierAuthorization;
69
+ siteSettings: ISiteSettings;
69
70
  showCheckoutPromoCode: boolean;
70
71
  showImgOnOrder: boolean;
71
72
  smsNotifications: ISMSConfig;
@@ -157,6 +157,9 @@ export interface IDefaultThemeInterface {
157
157
  color: string;
158
158
  hoverColor: string;
159
159
  };
160
+ seeAllNotifications: {
161
+ color: string;
162
+ };
160
163
  };
161
164
  };
162
165
  body: {
@@ -381,6 +384,24 @@ export interface IDefaultThemeInterface {
381
384
  backgroundColor: string;
382
385
  };
383
386
  };
387
+ paginationNumber: {
388
+ static: {
389
+ color: string;
390
+ backgroundColor: string;
391
+ };
392
+ hover: {
393
+ color: string;
394
+ backgroundColor: string;
395
+ };
396
+ disabled: {
397
+ color: string;
398
+ backgroundColor: string;
399
+ };
400
+ visited: {
401
+ color: string;
402
+ backgroundColor: string;
403
+ };
404
+ };
384
405
  };
385
406
  carousel: {
386
407
  bannerBackgroundColor: string;
@@ -77,6 +77,7 @@ export interface IRetailerSettings {
77
77
  secondTierAuthorization?: ISecondTierAuthorization;
78
78
  showCheckoutPromoCode?: boolean;
79
79
  showImgOnOrder?: boolean;
80
+ siteSettings?: ISiteSettings;
80
81
  smartBanner?: ISmartBanner;
81
82
  smsNotifications?: ISMSConfig;
82
83
  sodiumWarning?: ISodiumWarning;
@@ -91,6 +92,9 @@ export interface IFeatureSwitch {
91
92
  giftCards: IGiftCards;
92
93
  smartbanner: ISmartBanner;
93
94
  }
95
+ export interface ISiteSettings {
96
+ anonymousCart: boolean;
97
+ }
94
98
  export interface IGiftCards {
95
99
  enabled: boolean;
96
100
  gitfCardInputValidation: string;
@@ -171,6 +171,9 @@ export interface IThemeInterface {
171
171
  color?: string;
172
172
  hoverColor?: string;
173
173
  };
174
+ seeAllNotifications?: {
175
+ color?: string;
176
+ };
174
177
  };
175
178
  };
176
179
  body?: {
@@ -395,6 +398,24 @@ export interface IThemeInterface {
395
398
  backgroundColor?: string;
396
399
  };
397
400
  };
401
+ paginationNumber?: {
402
+ static?: {
403
+ color?: string;
404
+ backgroundColor?: string;
405
+ };
406
+ hover?: {
407
+ color?: string;
408
+ backgroundColor?: string;
409
+ };
410
+ disabled?: {
411
+ color?: string;
412
+ backgroundColor?: string;
413
+ };
414
+ visited?: {
415
+ color?: string;
416
+ backgroundColor?: string;
417
+ };
418
+ };
398
419
  };
399
420
  carousel?: {
400
421
  bannerBackgroundColor?: string;
@@ -473,6 +473,20 @@ exports.AdminSettingsTemplateSFUI = {
473
473
  },
474
474
  },
475
475
  },
476
+ siteSettings: {
477
+ title: "General Site Settings",
478
+ description: "These are essential settings, the storefront will NOT function without these.",
479
+ type: exports.AdminTemplateInputTypes.collapsableObject,
480
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3328180235/General+Site+Settings",
481
+ value: {
482
+ anonymousCart: {
483
+ title: "Anonymous Cart",
484
+ description: "Allows the customer to add to cart without being logged in.",
485
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327983631/Anonymous+Cart",
486
+ type: exports.AdminTemplateInputTypes.checkbox,
487
+ }
488
+ },
489
+ },
476
490
  // flipp: {
477
491
  // title: "Flipp Circulars",
478
492
  // description: "Configure Flipp circulars integration",
@@ -210,6 +210,9 @@ var DefaultConfigSFUI = {
210
210
  title: "",
211
211
  },
212
212
  },
213
+ siteSettings: {
214
+ anonymousCart: false
215
+ },
213
216
  specialRequestItems: false,
214
217
  sodiumWarning: {
215
218
  isEnabled: false,
@@ -46,12 +46,13 @@ var DefaultThemeSFUI = function (colors) {
46
46
  header: {
47
47
  notifications: {
48
48
  counter: {
49
- backgroundColor: colors.alert
49
+ backgroundColor: colors.alert,
50
50
  },
51
51
  text: {
52
52
  color: colors.greyscale1,
53
- hoverColor: colors.greyscale3
54
- }
53
+ hoverColor: colors.greyscale3,
54
+ },
55
+ seeAllNotifications: { color: colors.greyscale4 },
55
56
  },
56
57
  badge: {
57
58
  cart: {
@@ -988,7 +989,25 @@ var DefaultThemeSFUI = function (colors) {
988
989
  selected: {
989
990
  backgroundColor: colors.tertiary1
990
991
  }
991
- }
992
+ },
993
+ paginationNumber: {
994
+ static: {
995
+ color: colors.primary1,
996
+ backgroundColor: "none",
997
+ },
998
+ hover: {
999
+ color: colors.primary1,
1000
+ backgroundColor: colors.primary5,
1001
+ },
1002
+ disabled: {
1003
+ color: colors.greyscale1,
1004
+ backgroundColor: colors.primary1,
1005
+ },
1006
+ visited: {
1007
+ color: colors.primary1,
1008
+ backgroundColor: "none",
1009
+ },
1010
+ },
992
1011
  },
993
1012
  carousel: {
994
1013
  bannerBackgroundColor: colors.greyscale5,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.3.8",
3
+ "version": "2.3.11",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",