@thryveai/theme-interfaces 2.5.3 → 2.5.5

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.
@@ -183,6 +183,11 @@ var DefaultConfigSFUI = {
183
183
  isEnabled: false,
184
184
  threshold: 2300,
185
185
  },
186
+ productAttributesLayout: {
187
+ legacyAttributes: true,
188
+ attributesRank: [],
189
+ },
190
+ nutritionLink: { href: null, target: "_blank" },
186
191
  },
187
192
  productCard: {
188
193
  limitProductCardTitleHeight: true,
@@ -0,0 +1,6 @@
1
+ import { ProductAttributeIcons } from "../interfaces/icons.interfaces";
2
+ export declare type ProductAttributes = "gluten free" | "organic" | "local" | "dairy_free" | "diabetes_friendly" | "egg_free" | "fair_trade" | "no_artificial_ingredients" | "halal" | "heart_health" | "no_high_fructose_corn_syrup" | "keto_friendly" | "kosher" | "lactose_free" | "low_fodmap" | "low_sodium" | "no_added_sugar" | "non_gmo" | "paleo" | "peanut_free" | "plant_goodness" | "soy_free" | "vegan" | "whole_grain";
3
+ export declare type IProductAttributeToIcons = {
4
+ [key in ProductAttributes]: ProductAttributeIcons;
5
+ };
6
+ export declare const ProductAttrToIcons: IProductAttributeToIcons;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductAttrToIcons = void 0;
4
+ // this object will also be used as default ranking (first key - render first)
5
+ exports.ProductAttrToIcons = {
6
+ "gluten free": "GlutenFree",
7
+ organic: "Organic",
8
+ local: "Local",
9
+ dairy_free: "DairyFree",
10
+ diabetes_friendly: "DiabetesFriendly",
11
+ egg_free: "EggFree",
12
+ fair_trade: "FairTrade",
13
+ no_artificial_ingredients: "NoArtificialIngredients",
14
+ halal: "Halal",
15
+ heart_health: "HeartHealth",
16
+ no_high_fructose_corn_syrup: "NoHighFructoseCornSyrup",
17
+ keto_friendly: "KetoFriendly",
18
+ kosher: "Kosher",
19
+ lactose_free: "LactoseFree",
20
+ low_fodmap: "LowFODMAP",
21
+ low_sodium: "LowSodium",
22
+ no_added_sugar: "NoAddedSugar",
23
+ non_gmo: "NonGMO",
24
+ paleo: "Paleo",
25
+ peanut_free: "PeanutFree",
26
+ plant_goodness: "PlantGoodness",
27
+ soy_free: "SoyFree",
28
+ vegan: "Vegan",
29
+ whole_grain: "WholeGrain",
30
+ };
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "2.5.3",
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.5.5",
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
+ }