@open-tender/cloud 0.0.85 → 0.0.87

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.
@@ -83,208 +83,7 @@ export declare const selectRecaptcha: (state: AppState) => {
83
83
  donations: boolean;
84
84
  giftCards: boolean;
85
85
  } | undefined;
86
- export declare const selectContentSection: (page: keyof ConfigContent) => (state: AppState) => {
87
- addresses: import("@open-tender/types").ConfigContentField;
88
- allergens: import("@open-tender/types").ConfigContentField;
89
- background: string;
90
- content: string;
91
- creditCards: import("@open-tender/types").ConfigContentField;
92
- deals: import("@open-tender/types").ConfigContentField;
93
- displayLogo: boolean;
94
- displayLogoApp: boolean;
95
- displayLogoMobile: boolean;
96
- displayed: string[];
97
- displayedMobile: string[];
98
- favorites: import("@open-tender/types").ConfigContentField;
99
- giftCards: import("@open-tender/types").ConfigContentField;
100
- greeting: string;
101
- groupOrders: import("@open-tender/types").ConfigContentField;
102
- houseAccounts: import("@open-tender/types").ConfigContentField;
103
- levelup: import("@open-tender/types").ConfigContentField;
104
- loyalty: {
105
- signUp: string;
106
- title: string;
107
- subtitle: string;
108
- skip: string;
109
- };
110
- mobile: string;
111
- profile: import("@open-tender/types").ConfigContentField;
112
- punctuation: string;
113
- recentItems: import("@open-tender/types").ConfigContentField;
114
- recentOrders: import("@open-tender/types").ConfigContentField;
115
- rewards: import("@open-tender/types").ConfigContentField;
116
- showFirstName: boolean;
117
- showHero: boolean;
118
- subtitle: string;
119
- thanx: import("@open-tender/types").ConfigContentField;
120
- title: string;
121
- } | {
122
- background: string;
123
- cartErrors: import("@open-tender/types").ConfigContentField;
124
- displayed: string[];
125
- displayedMobile: string[];
126
- loadingMessage: string;
127
- mobile: string;
128
- soldOutMessage: string;
129
- } | import("@open-tender/types").ConfigContentField | {
130
- background: string;
131
- content: string;
132
- mobile: string;
133
- subtitle: string;
134
- title: string;
135
- } | {
136
- background: string;
137
- content: string[];
138
- subtitle: string;
139
- title: string;
140
- } | {
141
- background: string;
142
- content: string;
143
- mobile: string;
144
- subtitle: string;
145
- title: string;
146
- policy: {
147
- content: string[];
148
- subtitle: string;
149
- title: string;
150
- };
151
- } | {
152
- background: string;
153
- content: string;
154
- mobile: string;
155
- subtitle: string;
156
- title: string;
157
- } | {
158
- account: import("@open-tender/types").ConfigContentField;
159
- address: import("@open-tender/types").ConfigContentField;
160
- background: string;
161
- checkTitle: string;
162
- details: import("@open-tender/types").ConfigContentField;
163
- discounts: import("@open-tender/types").ConfigContentField;
164
- giftCards: import("@open-tender/types").ConfigContentField;
165
- guest: import("@open-tender/types").ConfigContentField;
166
- promoCodes: import("@open-tender/types").ConfigContentField;
167
- signUp: import("@open-tender/types").ConfigContentField;
168
- subtitle: string;
169
- surcharges: import("@open-tender/types").ConfigContentField;
170
- tenders: import("@open-tender/types").ConfigContentField;
171
- title: string;
172
- } | {
173
- sections: {
174
- email: import("@open-tender/types").ConfigContentField;
175
- magicLink: {
176
- changeEmail: string;
177
- resend: string;
178
- subtitle: string;
179
- title: string;
180
- };
181
- name: import("@open-tender/types").ConfigContentField;
182
- signIn: import("@open-tender/types").ConfigContentField;
183
- signUp: import("@open-tender/types").ConfigContentField & {
184
- showGuest: boolean;
185
- };
186
- };
187
- } | (import("@open-tender/types").ConfigContentField & {
188
- background: string;
189
- error: string;
190
- }) | (import("@open-tender/types").ConfigContentField & {
191
- background: string;
192
- }) | (import("@open-tender/types").ConfigContentField & {
193
- background: string;
194
- }) | {
195
- background: string;
196
- } | (import("@open-tender/types").ConfigContentField & {
197
- background: string;
198
- }) | (import("@open-tender/types").ConfigContentField & {
199
- background: string;
200
- }) | (import("@open-tender/types").ConfigContentField & {
201
- background: string;
202
- content: string;
203
- displayLogo: boolean;
204
- displayLogoApp: boolean;
205
- displayLogoMobile: boolean;
206
- displayed: string[];
207
- displayedMobile: string[];
208
- mobile: string;
209
- showGuest: boolean;
210
- subtitle: string;
211
- title: string;
212
- }) | (import("@open-tender/types").ConfigContentField & {
213
- background: string;
214
- content: string;
215
- mobile: string;
216
- orderTypes: {
217
- CATERING: import("@open-tender/types").ConfigContentField;
218
- MERCH: import("@open-tender/types").ConfigContentField;
219
- WALKIN: import("@open-tender/types").ConfigContentField;
220
- PICKUP: import("@open-tender/types").ConfigContentField;
221
- DELIVERY: import("@open-tender/types").ConfigContentField;
222
- OUTPOST: import("@open-tender/types").ConfigContentField;
223
- DONATIONS: import("@open-tender/types").ConfigContentField;
224
- GIFT_CARDS: import("@open-tender/types").ConfigContentField;
225
- GROUP: import("@open-tender/types").ConfigContentField;
226
- };
227
- showHero: boolean;
228
- }) | (import("@open-tender/types").ConfigContentField & {
229
- background: string;
230
- content: string;
231
- mobile: string;
232
- }) | (import("@open-tender/types").ConfigContentField & {
233
- back: string;
234
- background: string;
235
- }) | (import("@open-tender/types").ConfigContentField & {
236
- background: string;
237
- content: string;
238
- mobile: string;
239
- orderTypes: {
240
- CATERING: import("@open-tender/types").ConfigContentField;
241
- MERCH: import("@open-tender/types").ConfigContentField;
242
- WALKIN: import("@open-tender/types").ConfigContentField;
243
- PICKUP: import("@open-tender/types").ConfigContentField;
244
- DELIVERY: import("@open-tender/types").ConfigContentField;
245
- OUTPOST: import("@open-tender/types").ConfigContentField;
246
- DONATIONS: import("@open-tender/types").ConfigContentField;
247
- GIFT_CARDS: import("@open-tender/types").ConfigContentField;
248
- GROUP: import("@open-tender/types").ConfigContentField;
249
- };
250
- showDescriptions: boolean;
251
- showDescriptionsMobile: boolean;
252
- showHero: boolean;
253
- }) | (import("@open-tender/types").ConfigContentField & {
254
- background: string;
255
- content: string[];
256
- }) | (import("@open-tender/types").ConfigContentField & {
257
- back: string;
258
- background: string;
259
- }) | (import("@open-tender/types").ConfigContentField & {
260
- background: string;
261
- mobile: string;
262
- statusMessages: {
263
- CLOSED: import("@open-tender/types").ConfigContentField;
264
- CLOSED_TEMPORARILY: import("@open-tender/types").ConfigContentField;
265
- COMING_SOON: import("@open-tender/types").ConfigContentField;
266
- };
267
- }) | (import("@open-tender/types").ConfigContentField & {
268
- loyalty: import("@open-tender/types").ConfigContentField;
269
- rewards: import("@open-tender/types").ConfigContentField;
270
- }) | (import("@open-tender/types").ConfigContentField & {
271
- back: string;
272
- background: string;
273
- }) | {
274
- cart: import("@open-tender/types").ConfigContentField & {
275
- decline: string;
276
- show: boolean;
277
- };
278
- checkout: import("@open-tender/types").ConfigContentField & {
279
- decline: string;
280
- proceed: string;
281
- show: boolean;
282
- };
283
- item: import("@open-tender/types").ConfigContentField & {
284
- decline: string;
285
- show: boolean;
286
- };
287
- } | null;
86
+ export declare const selectContentSection: (page: keyof ConfigContent) => (state: AppState) => ConfigContent[keyof ConfigContent] | undefined;
288
87
  export declare const selectSoldOutMsg: (state: AppState) => string;
289
88
  export declare const selectOutpostName: (state: AppState) => string | undefined;
290
89
  export declare const configReducer: import("redux").Reducer<ConfigState, import("redux").AnyAction>;
@@ -112,7 +112,7 @@ const selectFulfillment = (state) => { var _a; return (_a = state.config.brand)
112
112
  exports.selectFulfillment = selectFulfillment;
113
113
  const selectRecaptcha = (state) => { var _a; return (_a = state.config.settings) === null || _a === void 0 ? void 0 : _a.recaptcha; };
114
114
  exports.selectRecaptcha = selectRecaptcha;
115
- const selectContentSection = (page) => (state) => state.config.content && state.config.content[page];
115
+ const selectContentSection = (page) => (state) => state.config.content ? state.config.content[page] : undefined;
116
116
  exports.selectContentSection = selectContentSection;
117
117
  const selectSoldOutMsg = (state) => {
118
118
  var _a;
@@ -83,208 +83,7 @@ export declare const selectRecaptcha: (state: AppState) => {
83
83
  donations: boolean;
84
84
  giftCards: boolean;
85
85
  } | undefined;
86
- export declare const selectContentSection: (page: keyof ConfigContent) => (state: AppState) => {
87
- addresses: import("@open-tender/types").ConfigContentField;
88
- allergens: import("@open-tender/types").ConfigContentField;
89
- background: string;
90
- content: string;
91
- creditCards: import("@open-tender/types").ConfigContentField;
92
- deals: import("@open-tender/types").ConfigContentField;
93
- displayLogo: boolean;
94
- displayLogoApp: boolean;
95
- displayLogoMobile: boolean;
96
- displayed: string[];
97
- displayedMobile: string[];
98
- favorites: import("@open-tender/types").ConfigContentField;
99
- giftCards: import("@open-tender/types").ConfigContentField;
100
- greeting: string;
101
- groupOrders: import("@open-tender/types").ConfigContentField;
102
- houseAccounts: import("@open-tender/types").ConfigContentField;
103
- levelup: import("@open-tender/types").ConfigContentField;
104
- loyalty: {
105
- signUp: string;
106
- title: string;
107
- subtitle: string;
108
- skip: string;
109
- };
110
- mobile: string;
111
- profile: import("@open-tender/types").ConfigContentField;
112
- punctuation: string;
113
- recentItems: import("@open-tender/types").ConfigContentField;
114
- recentOrders: import("@open-tender/types").ConfigContentField;
115
- rewards: import("@open-tender/types").ConfigContentField;
116
- showFirstName: boolean;
117
- showHero: boolean;
118
- subtitle: string;
119
- thanx: import("@open-tender/types").ConfigContentField;
120
- title: string;
121
- } | {
122
- background: string;
123
- cartErrors: import("@open-tender/types").ConfigContentField;
124
- displayed: string[];
125
- displayedMobile: string[];
126
- loadingMessage: string;
127
- mobile: string;
128
- soldOutMessage: string;
129
- } | import("@open-tender/types").ConfigContentField | {
130
- background: string;
131
- content: string;
132
- mobile: string;
133
- subtitle: string;
134
- title: string;
135
- } | {
136
- background: string;
137
- content: string[];
138
- subtitle: string;
139
- title: string;
140
- } | {
141
- background: string;
142
- content: string;
143
- mobile: string;
144
- subtitle: string;
145
- title: string;
146
- policy: {
147
- content: string[];
148
- subtitle: string;
149
- title: string;
150
- };
151
- } | {
152
- background: string;
153
- content: string;
154
- mobile: string;
155
- subtitle: string;
156
- title: string;
157
- } | {
158
- account: import("@open-tender/types").ConfigContentField;
159
- address: import("@open-tender/types").ConfigContentField;
160
- background: string;
161
- checkTitle: string;
162
- details: import("@open-tender/types").ConfigContentField;
163
- discounts: import("@open-tender/types").ConfigContentField;
164
- giftCards: import("@open-tender/types").ConfigContentField;
165
- guest: import("@open-tender/types").ConfigContentField;
166
- promoCodes: import("@open-tender/types").ConfigContentField;
167
- signUp: import("@open-tender/types").ConfigContentField;
168
- subtitle: string;
169
- surcharges: import("@open-tender/types").ConfigContentField;
170
- tenders: import("@open-tender/types").ConfigContentField;
171
- title: string;
172
- } | {
173
- sections: {
174
- email: import("@open-tender/types").ConfigContentField;
175
- magicLink: {
176
- changeEmail: string;
177
- resend: string;
178
- subtitle: string;
179
- title: string;
180
- };
181
- name: import("@open-tender/types").ConfigContentField;
182
- signIn: import("@open-tender/types").ConfigContentField;
183
- signUp: import("@open-tender/types").ConfigContentField & {
184
- showGuest: boolean;
185
- };
186
- };
187
- } | (import("@open-tender/types").ConfigContentField & {
188
- background: string;
189
- error: string;
190
- }) | (import("@open-tender/types").ConfigContentField & {
191
- background: string;
192
- }) | (import("@open-tender/types").ConfigContentField & {
193
- background: string;
194
- }) | {
195
- background: string;
196
- } | (import("@open-tender/types").ConfigContentField & {
197
- background: string;
198
- }) | (import("@open-tender/types").ConfigContentField & {
199
- background: string;
200
- }) | (import("@open-tender/types").ConfigContentField & {
201
- background: string;
202
- content: string;
203
- displayLogo: boolean;
204
- displayLogoApp: boolean;
205
- displayLogoMobile: boolean;
206
- displayed: string[];
207
- displayedMobile: string[];
208
- mobile: string;
209
- showGuest: boolean;
210
- subtitle: string;
211
- title: string;
212
- }) | (import("@open-tender/types").ConfigContentField & {
213
- background: string;
214
- content: string;
215
- mobile: string;
216
- orderTypes: {
217
- CATERING: import("@open-tender/types").ConfigContentField;
218
- MERCH: import("@open-tender/types").ConfigContentField;
219
- WALKIN: import("@open-tender/types").ConfigContentField;
220
- PICKUP: import("@open-tender/types").ConfigContentField;
221
- DELIVERY: import("@open-tender/types").ConfigContentField;
222
- OUTPOST: import("@open-tender/types").ConfigContentField;
223
- DONATIONS: import("@open-tender/types").ConfigContentField;
224
- GIFT_CARDS: import("@open-tender/types").ConfigContentField;
225
- GROUP: import("@open-tender/types").ConfigContentField;
226
- };
227
- showHero: boolean;
228
- }) | (import("@open-tender/types").ConfigContentField & {
229
- background: string;
230
- content: string;
231
- mobile: string;
232
- }) | (import("@open-tender/types").ConfigContentField & {
233
- back: string;
234
- background: string;
235
- }) | (import("@open-tender/types").ConfigContentField & {
236
- background: string;
237
- content: string;
238
- mobile: string;
239
- orderTypes: {
240
- CATERING: import("@open-tender/types").ConfigContentField;
241
- MERCH: import("@open-tender/types").ConfigContentField;
242
- WALKIN: import("@open-tender/types").ConfigContentField;
243
- PICKUP: import("@open-tender/types").ConfigContentField;
244
- DELIVERY: import("@open-tender/types").ConfigContentField;
245
- OUTPOST: import("@open-tender/types").ConfigContentField;
246
- DONATIONS: import("@open-tender/types").ConfigContentField;
247
- GIFT_CARDS: import("@open-tender/types").ConfigContentField;
248
- GROUP: import("@open-tender/types").ConfigContentField;
249
- };
250
- showDescriptions: boolean;
251
- showDescriptionsMobile: boolean;
252
- showHero: boolean;
253
- }) | (import("@open-tender/types").ConfigContentField & {
254
- background: string;
255
- content: string[];
256
- }) | (import("@open-tender/types").ConfigContentField & {
257
- back: string;
258
- background: string;
259
- }) | (import("@open-tender/types").ConfigContentField & {
260
- background: string;
261
- mobile: string;
262
- statusMessages: {
263
- CLOSED: import("@open-tender/types").ConfigContentField;
264
- CLOSED_TEMPORARILY: import("@open-tender/types").ConfigContentField;
265
- COMING_SOON: import("@open-tender/types").ConfigContentField;
266
- };
267
- }) | (import("@open-tender/types").ConfigContentField & {
268
- loyalty: import("@open-tender/types").ConfigContentField;
269
- rewards: import("@open-tender/types").ConfigContentField;
270
- }) | (import("@open-tender/types").ConfigContentField & {
271
- back: string;
272
- background: string;
273
- }) | {
274
- cart: import("@open-tender/types").ConfigContentField & {
275
- decline: string;
276
- show: boolean;
277
- };
278
- checkout: import("@open-tender/types").ConfigContentField & {
279
- decline: string;
280
- proceed: string;
281
- show: boolean;
282
- };
283
- item: import("@open-tender/types").ConfigContentField & {
284
- decline: string;
285
- show: boolean;
286
- };
287
- } | null;
86
+ export declare const selectContentSection: (page: keyof ConfigContent) => (state: AppState) => ConfigContent[keyof ConfigContent] | undefined;
288
87
  export declare const selectSoldOutMsg: (state: AppState) => string;
289
88
  export declare const selectOutpostName: (state: AppState) => string | undefined;
290
89
  export declare const configReducer: import("redux").Reducer<ConfigState, import("redux").AnyAction>;
@@ -94,7 +94,7 @@ export const selectOptIns = (state) => {
94
94
  };
95
95
  export const selectFulfillment = (state) => { var _a; return (_a = state.config.brand) === null || _a === void 0 ? void 0 : _a.fulfillment; };
96
96
  export const selectRecaptcha = (state) => { var _a; return (_a = state.config.settings) === null || _a === void 0 ? void 0 : _a.recaptcha; };
97
- export const selectContentSection = (page) => (state) => state.config.content && state.config.content[page];
97
+ export const selectContentSection = (page) => (state) => state.config.content ? state.config.content[page] : undefined;
98
98
  export const selectSoldOutMsg = (state) => {
99
99
  var _a;
100
100
  const { soldOutMessage } = ((_a = state.config.content) === null || _a === void 0 ? void 0 : _a.menu) || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",