@thryveai/theme-interfaces 1.4.8 → 1.4.12-beta1
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/.eslintignore +39 -0
- package/.eslintrc.js +19 -0
- package/.prettierrc +6 -0
- package/README.md +29 -29
- package/default-theme.interface.d.ts +661 -647
- package/icons.interfaces.d.ts +130 -7
- package/index.d.ts +176 -7
- package/package.json +26 -14
- package/retailer-settings.interfaces.d.ts +423 -343
- package/theme.interfaces.d.ts +662 -649
package/icons.interfaces.d.ts
CHANGED
|
@@ -1,7 +1,130 @@
|
|
|
1
|
-
export declare type IIconsObject = {
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
export declare type PaymentTypesLogos =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare type IIconsObject = {
|
|
2
|
+
[iconName in IconNames]: string;
|
|
3
|
+
};
|
|
4
|
+
export declare type PaymentTypesLogos =
|
|
5
|
+
| 'VisaLogo'
|
|
6
|
+
| 'MasterLogo'
|
|
7
|
+
| 'DiscoverCard'
|
|
8
|
+
| 'AmExpCard'
|
|
9
|
+
| 'VisaVerified'
|
|
10
|
+
| 'MasterSecure'
|
|
11
|
+
| 'Comodo';
|
|
12
|
+
export declare type PaymentCards =
|
|
13
|
+
| 'VisaCard'
|
|
14
|
+
| 'MasterCard'
|
|
15
|
+
| 'DiscoverCard'
|
|
16
|
+
| 'AmExpCard';
|
|
17
|
+
export declare type IconNames =
|
|
18
|
+
| 'AccountOutline'
|
|
19
|
+
| 'AccountSolid'
|
|
20
|
+
| 'Addresses'
|
|
21
|
+
| 'ArrowDown'
|
|
22
|
+
| 'ArrowRight'
|
|
23
|
+
| 'ArrowUpdown'
|
|
24
|
+
| 'BarScan'
|
|
25
|
+
| 'Bell'
|
|
26
|
+
| 'Blog'
|
|
27
|
+
| 'Cart'
|
|
28
|
+
| 'Check'
|
|
29
|
+
| 'ChevronDown'
|
|
30
|
+
| 'ChevronLeft'
|
|
31
|
+
| 'ChevronRight'
|
|
32
|
+
| 'ChevronUp'
|
|
33
|
+
| 'Circular'
|
|
34
|
+
| 'Clear'
|
|
35
|
+
| 'Close'
|
|
36
|
+
| 'Coupon'
|
|
37
|
+
| 'Dashboard'
|
|
38
|
+
| 'DeliveryOutline'
|
|
39
|
+
| 'DeliverySolid'
|
|
40
|
+
| 'Dietary'
|
|
41
|
+
| 'DoubleArrows'
|
|
42
|
+
| 'Download'
|
|
43
|
+
| 'Dropship'
|
|
44
|
+
| 'Eco'
|
|
45
|
+
| 'Edit'
|
|
46
|
+
| 'Error'
|
|
47
|
+
| 'FaceHappy'
|
|
48
|
+
| 'FaceSad'
|
|
49
|
+
| 'Facebook'
|
|
50
|
+
| 'Fav'
|
|
51
|
+
| 'FavSolid'
|
|
52
|
+
| 'Filter'
|
|
53
|
+
| 'Flag'
|
|
54
|
+
| 'Geolocate'
|
|
55
|
+
| 'Hamburger'
|
|
56
|
+
| 'Help'
|
|
57
|
+
| 'Home'
|
|
58
|
+
| 'Info'
|
|
59
|
+
| 'Instacart'
|
|
60
|
+
| 'Instagram'
|
|
61
|
+
| 'ItemLocation'
|
|
62
|
+
| 'ListCheck'
|
|
63
|
+
| 'ListItems'
|
|
64
|
+
| 'ListLarge'
|
|
65
|
+
| 'ListRemove'
|
|
66
|
+
| 'ListSave'
|
|
67
|
+
| 'ListSearch'
|
|
68
|
+
| 'LocationPin'
|
|
69
|
+
| 'LocationDistance'
|
|
70
|
+
| 'LoyaltyCard'
|
|
71
|
+
| 'Mail'
|
|
72
|
+
| 'Minus'
|
|
73
|
+
| 'MoreOptionsH'
|
|
74
|
+
| 'MoreOptionsV'
|
|
75
|
+
| 'Note'
|
|
76
|
+
| 'Notifications'
|
|
77
|
+
| 'NoteFilled'
|
|
78
|
+
| 'Orders'
|
|
79
|
+
| 'PastPurchases'
|
|
80
|
+
| 'Pause'
|
|
81
|
+
| 'PaymentOutline'
|
|
82
|
+
| 'PaymentSolid'
|
|
83
|
+
| 'Phone'
|
|
84
|
+
| 'PhoneMobile'
|
|
85
|
+
| 'Pickup'
|
|
86
|
+
| 'PickupInfo'
|
|
87
|
+
| 'Pinterest'
|
|
88
|
+
| 'Plus'
|
|
89
|
+
| 'Print'
|
|
90
|
+
| 'PromoOutline'
|
|
91
|
+
| 'PromoSolid'
|
|
92
|
+
| 'RadioActive'
|
|
93
|
+
| 'RadioEmpty'
|
|
94
|
+
| 'RecipeCalories'
|
|
95
|
+
| 'RecipeCooktime'
|
|
96
|
+
| 'RecipeIngredients'
|
|
97
|
+
| 'RecipePreptime'
|
|
98
|
+
| 'RecipeServings'
|
|
99
|
+
| 'Remove'
|
|
100
|
+
| 'Reserve'
|
|
101
|
+
| 'ReserveTime'
|
|
102
|
+
| 'Search'
|
|
103
|
+
| 'SelectCheck'
|
|
104
|
+
| 'SelectEmpty'
|
|
105
|
+
| 'SelectMark'
|
|
106
|
+
| 'Send'
|
|
107
|
+
| 'Settings'
|
|
108
|
+
| 'Share'
|
|
109
|
+
| 'SortGrid'
|
|
110
|
+
| 'SortList'
|
|
111
|
+
| 'StarOutline'
|
|
112
|
+
| 'StarSolid'
|
|
113
|
+
| 'Substitute'
|
|
114
|
+
| 'SubstituteBestmatch'
|
|
115
|
+
| 'SubstituteNone'
|
|
116
|
+
| 'SubstituteProduct'
|
|
117
|
+
| 'Trash'
|
|
118
|
+
| 'Twitter'
|
|
119
|
+
| 'Unavailable'
|
|
120
|
+
| 'Voice'
|
|
121
|
+
| 'Warning'
|
|
122
|
+
| 'Youtube'
|
|
123
|
+
| 'YourLocation'
|
|
124
|
+
| 'GlutenFree'
|
|
125
|
+
| 'Local'
|
|
126
|
+
| 'Organic'
|
|
127
|
+
| 'None'
|
|
128
|
+
| PaymentTypesLogos
|
|
129
|
+
| PaymentCards;
|
|
130
|
+
export declare const IconNamesToFiles: IIconsObject;
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,176 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import {
|
|
2
|
+
IRetailerSettings,
|
|
3
|
+
ISecondTierAuthorization,
|
|
4
|
+
IFlippConfig,
|
|
5
|
+
IFlippConfigV2,
|
|
6
|
+
IFlippScriptUrls,
|
|
7
|
+
IAllSettings,
|
|
8
|
+
ISMSConfig,
|
|
9
|
+
IDefaultRetailerSettings,
|
|
10
|
+
ICtaButtons,
|
|
11
|
+
IAddressesSettings,
|
|
12
|
+
IAccountPageSettings,
|
|
13
|
+
ILayoutSettings,
|
|
14
|
+
ILoggingLevel,
|
|
15
|
+
IDefaultSearchParams,
|
|
16
|
+
IDefaultStoreLocation,
|
|
17
|
+
IDefaultCounty,
|
|
18
|
+
IRetailerCountry,
|
|
19
|
+
IRestrictMapPlaces,
|
|
20
|
+
IValidationType,
|
|
21
|
+
INutritionZone,
|
|
22
|
+
IFooterTypes,
|
|
23
|
+
IRegistrationFieldTypes,
|
|
24
|
+
IRegistrationFieldNames,
|
|
25
|
+
IValidateLength,
|
|
26
|
+
IValidateDateRange,
|
|
27
|
+
IRegistrationField,
|
|
28
|
+
ICheckoutValidation,
|
|
29
|
+
ISearchPreviewVisibility,
|
|
30
|
+
IPaymentCards,
|
|
31
|
+
IGlobalAnimations,
|
|
32
|
+
ILayoutAnimationsConfetti,
|
|
33
|
+
IGlobalCheckoutProps,
|
|
34
|
+
IAddressIntegration,
|
|
35
|
+
IAddressFinderType
|
|
36
|
+
} from './retailer-settings.interfaces';
|
|
37
|
+
import {
|
|
38
|
+
IIconsObject,
|
|
39
|
+
PaymentTypesLogos,
|
|
40
|
+
PaymentCards,
|
|
41
|
+
IconNames,
|
|
42
|
+
IconNamesToFiles
|
|
43
|
+
} from './icons.interfaces';
|
|
44
|
+
import {
|
|
45
|
+
ITheme,
|
|
46
|
+
IThemeScripts,
|
|
47
|
+
IThemeImages,
|
|
48
|
+
IThemeMetadata,
|
|
49
|
+
IThemeFavicons,
|
|
50
|
+
IThemeLogoPosition,
|
|
51
|
+
IThemeLogoHeightsProps,
|
|
52
|
+
IThemeLogoHeights,
|
|
53
|
+
ISTSThemeInterface,
|
|
54
|
+
IThemeFavicon,
|
|
55
|
+
IThemeMetadataItem,
|
|
56
|
+
IThemeInterface,
|
|
57
|
+
IGlobalTheme,
|
|
58
|
+
IColors,
|
|
59
|
+
IInitializedEmptyTheme,
|
|
60
|
+
IThemeAnimationConfettiPlaces,
|
|
61
|
+
IThemeGlobalAnimations,
|
|
62
|
+
IThemeAnimationsConfettiPlacesTypes,
|
|
63
|
+
IThemeAnimationsConfettiProps,
|
|
64
|
+
IEmbeddedFont,
|
|
65
|
+
IEmbeddedFontSource
|
|
66
|
+
} from './theme.interfaces';
|
|
67
|
+
import {
|
|
68
|
+
IDefaultTheme,
|
|
69
|
+
IDefaultThemeScripts,
|
|
70
|
+
IDefaultThemeImages,
|
|
71
|
+
IDefaultThemeMetadata,
|
|
72
|
+
IDefaultThemeFavicons,
|
|
73
|
+
IDefaultThemeLogoPosition,
|
|
74
|
+
IDefaultThemeLogoHeightsProps,
|
|
75
|
+
IDefaultThemeLogoHeights,
|
|
76
|
+
ISTSDefaultThemeInterface,
|
|
77
|
+
IDefaultThemeFavicon,
|
|
78
|
+
IDefaultThemeMetadataItem,
|
|
79
|
+
IDefaultThemeInterface,
|
|
80
|
+
IGlobalDefaultTheme,
|
|
81
|
+
IDefaultColors,
|
|
82
|
+
IInitializedEmptyDefaultTheme,
|
|
83
|
+
IDefaultThemeAnimationConfettiPlaces,
|
|
84
|
+
IDefaultThemeGlobalAnimations,
|
|
85
|
+
IDefaultThemeAnimationsConfettiPlacesTypes,
|
|
86
|
+
IDefaultThemeAnimationsConfettiProps,
|
|
87
|
+
IDefaultEmbeddedFont,
|
|
88
|
+
IDefaultEmbeddedFontSource
|
|
89
|
+
} from './default-theme.interface';
|
|
90
|
+
export {
|
|
91
|
+
IDefaultTheme,
|
|
92
|
+
IDefaultThemeScripts,
|
|
93
|
+
IDefaultThemeImages,
|
|
94
|
+
IDefaultThemeMetadata,
|
|
95
|
+
IDefaultThemeFavicons,
|
|
96
|
+
IDefaultThemeLogoPosition,
|
|
97
|
+
IDefaultThemeLogoHeightsProps,
|
|
98
|
+
IDefaultThemeLogoHeights,
|
|
99
|
+
ISTSDefaultThemeInterface,
|
|
100
|
+
IDefaultThemeFavicon,
|
|
101
|
+
IDefaultThemeMetadataItem,
|
|
102
|
+
IDefaultThemeInterface,
|
|
103
|
+
IGlobalDefaultTheme,
|
|
104
|
+
IDefaultColors,
|
|
105
|
+
IInitializedEmptyDefaultTheme,
|
|
106
|
+
IDefaultThemeAnimationConfettiPlaces,
|
|
107
|
+
IDefaultThemeGlobalAnimations,
|
|
108
|
+
IDefaultThemeAnimationsConfettiPlacesTypes,
|
|
109
|
+
IDefaultThemeAnimationsConfettiProps,
|
|
110
|
+
IDefaultEmbeddedFont,
|
|
111
|
+
IDefaultEmbeddedFontSource,
|
|
112
|
+
ITheme,
|
|
113
|
+
IThemeScripts,
|
|
114
|
+
IThemeImages,
|
|
115
|
+
IThemeMetadata,
|
|
116
|
+
IThemeFavicons,
|
|
117
|
+
IThemeLogoPosition,
|
|
118
|
+
IThemeLogoHeightsProps,
|
|
119
|
+
IThemeLogoHeights,
|
|
120
|
+
ISTSThemeInterface,
|
|
121
|
+
IThemeFavicon,
|
|
122
|
+
IThemeMetadataItem,
|
|
123
|
+
IThemeInterface,
|
|
124
|
+
IGlobalTheme,
|
|
125
|
+
IColors,
|
|
126
|
+
IInitializedEmptyTheme,
|
|
127
|
+
IThemeAnimationConfettiPlaces,
|
|
128
|
+
IThemeGlobalAnimations,
|
|
129
|
+
IThemeAnimationsConfettiPlacesTypes,
|
|
130
|
+
IThemeAnimationsConfettiProps,
|
|
131
|
+
IEmbeddedFont,
|
|
132
|
+
IEmbeddedFontSource
|
|
133
|
+
};
|
|
134
|
+
export {
|
|
135
|
+
IIconsObject,
|
|
136
|
+
PaymentTypesLogos,
|
|
137
|
+
PaymentCards,
|
|
138
|
+
IconNames,
|
|
139
|
+
IconNamesToFiles
|
|
140
|
+
};
|
|
141
|
+
export {
|
|
142
|
+
IRetailerSettings,
|
|
143
|
+
ISecondTierAuthorization,
|
|
144
|
+
IFlippConfig,
|
|
145
|
+
IFlippConfigV2,
|
|
146
|
+
IFlippScriptUrls,
|
|
147
|
+
IAllSettings,
|
|
148
|
+
ISMSConfig,
|
|
149
|
+
IDefaultRetailerSettings,
|
|
150
|
+
ICtaButtons,
|
|
151
|
+
IAddressesSettings,
|
|
152
|
+
IAccountPageSettings,
|
|
153
|
+
ILayoutSettings,
|
|
154
|
+
ILoggingLevel,
|
|
155
|
+
IDefaultSearchParams,
|
|
156
|
+
IDefaultStoreLocation,
|
|
157
|
+
IDefaultCounty,
|
|
158
|
+
IRetailerCountry,
|
|
159
|
+
IRestrictMapPlaces,
|
|
160
|
+
IValidationType,
|
|
161
|
+
INutritionZone,
|
|
162
|
+
IFooterTypes,
|
|
163
|
+
IRegistrationFieldTypes,
|
|
164
|
+
IRegistrationFieldNames,
|
|
165
|
+
IValidateLength,
|
|
166
|
+
IValidateDateRange,
|
|
167
|
+
IRegistrationField,
|
|
168
|
+
ICheckoutValidation,
|
|
169
|
+
ISearchPreviewVisibility,
|
|
170
|
+
IPaymentCards,
|
|
171
|
+
IGlobalAnimations,
|
|
172
|
+
ILayoutAnimationsConfetti,
|
|
173
|
+
IGlobalCheckoutProps,
|
|
174
|
+
IAddressIntegration,
|
|
175
|
+
IAddressFinderType
|
|
176
|
+
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"push": "npm run build && npm publish"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "1.4.12beta1",
|
|
4
|
+
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc && npm run lint -- --fix",
|
|
7
|
+
"push": "npm run build && npm publish",
|
|
8
|
+
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
|
|
9
|
+
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""
|
|
10
|
+
},
|
|
11
|
+
"author": "Simon Markey",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^5.9.1",
|
|
15
|
+
"@typescript-eslint/parser": "^5.9.1",
|
|
16
|
+
"eslint": "^7.32.0",
|
|
17
|
+
"eslint-config-prettier": "^8.3.0",
|
|
18
|
+
"eslint-config-standard": "^16.0.3",
|
|
19
|
+
"eslint-plugin-import": "^2.25.4",
|
|
20
|
+
"eslint-plugin-node": "^11.1.0",
|
|
21
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
22
|
+
"eslint-plugin-promise": "^5.2.0",
|
|
23
|
+
"prettier": "^2.5.1",
|
|
24
|
+
"typescript": "^4.5.4"
|
|
25
|
+
}
|
|
26
|
+
}
|