@moneylion/react-native-offer-carousel 1.3.1 → 1.4.1
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/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js +44 -45
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/index.js +17 -6
- package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Divider/index.js +0 -2
- package/lib/commonjs/components/Divider/index.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +3 -2
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/commonjs/components/ErrorBoundary/index.js +34 -0
- package/lib/commonjs/components/ErrorBoundary/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -1
- package/lib/commonjs/components/Modal/AllOffersModal.js +14 -7
- package/lib/commonjs/components/Modal/AllOffersModal.js.map +1 -1
- package/lib/commonjs/components/Modal/OfferDetailsModal.js +19 -10
- package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +23 -7
- package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/commonjs/config/mocks/cnfContext.js +151 -44
- package/lib/commonjs/config/mocks/cnfContext.js.map +1 -1
- package/lib/commonjs/context/ThemeProvider.js +8 -2
- package/lib/commonjs/context/ThemeProvider.js.map +1 -1
- package/lib/commonjs/utils/getThemeColors.js +24 -0
- package/lib/commonjs/utils/getThemeColors.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js +44 -45
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -1
- package/lib/module/components/Common/BaseOfferCard/index.js +17 -6
- package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/module/components/Divider/index.js +0 -2
- package/lib/module/components/Divider/index.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +3 -2
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/module/components/ErrorBoundary/index.js +28 -0
- package/lib/module/components/ErrorBoundary/index.js.map +1 -0
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -1
- package/lib/module/components/Modal/AllOffersModal.js +14 -7
- package/lib/module/components/Modal/AllOffersModal.js.map +1 -1
- package/lib/module/components/Modal/OfferDetailsModal.js +19 -10
- package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js +23 -8
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/module/config/mocks/cnfContext.js +151 -44
- package/lib/module/config/mocks/cnfContext.js.map +1 -1
- package/lib/module/context/ThemeProvider.js +8 -2
- package/lib/module/context/ThemeProvider.js.map +1 -1
- package/lib/module/utils/getThemeColors.js +17 -0
- package/lib/module/utils/getThemeColors.js.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts +312 -89
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -1
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts +2 -2
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Divider/index.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
- package/lib/typescript/src/components/ErrorBoundary/index.d.ts +20 -0
- package/lib/typescript/src/components/ErrorBoundary/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/AllOffersModal.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -1
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +8 -5
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -1
- package/lib/typescript/src/config/mocks/cnfContext.d.ts.map +1 -1
- package/lib/typescript/src/context/ThemeProvider.d.ts +3 -0
- package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/utils/getThemeColors.d.ts +8 -0
- package/lib/typescript/src/utils/getThemeColors.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/capabilities/core/src/system/cnfContext/schemas/Brand.ts +51 -46
- package/src/capabilities/ui/elements/src/components/MarkdownText/components.tsx +1 -1
- package/src/components/Common/BaseOfferCard/index.tsx +17 -8
- package/src/components/Divider/index.tsx +0 -1
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +7 -3
- package/src/components/ErrorBoundary/index.tsx +40 -0
- package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +1 -0
- package/src/components/Modal/AllOffersModal.tsx +19 -5
- package/src/components/Modal/OfferDetailsModal.tsx +20 -9
- package/src/components/MoneyLionOfferCarousel.tsx +49 -13
- package/src/config/mocks/cnfContext.ts +40 -44
- package/src/context/ThemeProvider.tsx +12 -1
- package/src/utils/getThemeColors.ts +29 -0
|
@@ -1,49 +1,163 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
export type
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
2
|
+
export type ReshapedThemeColorObject = Schema.Schema.Type<typeof ReshapedThemeColorObject>;
|
|
3
|
+
declare const ReshapedThemeColorObject: Schema.Struct<{
|
|
4
|
+
hex: typeof Schema.String;
|
|
5
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
6
|
+
}>;
|
|
7
|
+
export type ReshapedThemeColors = Schema.Schema.Type<typeof ReshapedThemeColors>;
|
|
8
|
+
declare const ReshapedThemeColors: Schema.Struct<{
|
|
9
|
+
backgroundCritical: Schema.Struct<{
|
|
10
|
+
hex: typeof Schema.String;
|
|
11
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
12
|
+
}>;
|
|
13
|
+
backgroundCriticalFaded: Schema.Struct<{
|
|
14
|
+
hex: typeof Schema.String;
|
|
15
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
16
|
+
}>;
|
|
17
|
+
backgroundDisabled: Schema.Struct<{
|
|
18
|
+
hex: typeof Schema.String;
|
|
19
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
20
|
+
}>;
|
|
21
|
+
backgroundDisabledFaded: Schema.Struct<{
|
|
22
|
+
hex: typeof Schema.String;
|
|
23
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
24
|
+
}>;
|
|
25
|
+
backgroundElevationBase: Schema.Struct<{
|
|
26
|
+
hex: typeof Schema.String;
|
|
27
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
28
|
+
}>;
|
|
29
|
+
backgroundElevationOverlay: Schema.Struct<{
|
|
30
|
+
hex: typeof Schema.String;
|
|
31
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
32
|
+
}>;
|
|
33
|
+
backgroundElevationRaised: Schema.Struct<{
|
|
34
|
+
hex: typeof Schema.String;
|
|
35
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
36
|
+
}>;
|
|
37
|
+
backgroundNeutral: Schema.Struct<{
|
|
38
|
+
hex: typeof Schema.String;
|
|
39
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
40
|
+
}>;
|
|
41
|
+
backgroundNeutralFaded: Schema.Struct<{
|
|
42
|
+
hex: typeof Schema.String;
|
|
43
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
44
|
+
}>;
|
|
45
|
+
backgroundPage: Schema.Struct<{
|
|
46
|
+
hex: typeof Schema.String;
|
|
47
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
48
|
+
}>;
|
|
49
|
+
backgroundPageFaded: Schema.Struct<{
|
|
50
|
+
hex: typeof Schema.String;
|
|
51
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
52
|
+
}>;
|
|
53
|
+
backgroundPositive: Schema.Struct<{
|
|
54
|
+
hex: typeof Schema.String;
|
|
55
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
56
|
+
}>;
|
|
57
|
+
backgroundPositiveFaded: Schema.Struct<{
|
|
58
|
+
hex: typeof Schema.String;
|
|
59
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
60
|
+
}>;
|
|
61
|
+
backgroundPrimary: Schema.Struct<{
|
|
62
|
+
hex: typeof Schema.String;
|
|
63
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
64
|
+
}>;
|
|
65
|
+
backgroundPrimaryFaded: Schema.Struct<{
|
|
66
|
+
hex: typeof Schema.String;
|
|
67
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
68
|
+
}>;
|
|
69
|
+
backgroundWarning: Schema.Struct<{
|
|
70
|
+
hex: typeof Schema.String;
|
|
71
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
72
|
+
}>;
|
|
73
|
+
backgroundWarningFaded: Schema.Struct<{
|
|
74
|
+
hex: typeof Schema.String;
|
|
75
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
76
|
+
}>;
|
|
77
|
+
black: Schema.Struct<{
|
|
78
|
+
hex: typeof Schema.String;
|
|
79
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
80
|
+
}>;
|
|
81
|
+
borderCritical: Schema.Struct<{
|
|
82
|
+
hex: typeof Schema.String;
|
|
83
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
84
|
+
}>;
|
|
85
|
+
borderCriticalFaded: Schema.Struct<{
|
|
86
|
+
hex: typeof Schema.String;
|
|
87
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
88
|
+
}>;
|
|
89
|
+
borderDisabled: Schema.Struct<{
|
|
90
|
+
hex: typeof Schema.String;
|
|
91
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
92
|
+
}>;
|
|
93
|
+
borderNeutral: Schema.Struct<{
|
|
94
|
+
hex: typeof Schema.String;
|
|
95
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
96
|
+
}>;
|
|
97
|
+
borderNeutralFaded: Schema.Struct<{
|
|
98
|
+
hex: typeof Schema.String;
|
|
99
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
100
|
+
}>;
|
|
101
|
+
borderPositive: Schema.Struct<{
|
|
102
|
+
hex: typeof Schema.String;
|
|
103
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
104
|
+
}>;
|
|
105
|
+
borderPositiveFaded: Schema.Struct<{
|
|
106
|
+
hex: typeof Schema.String;
|
|
107
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
108
|
+
}>;
|
|
109
|
+
borderPrimary: Schema.Struct<{
|
|
110
|
+
hex: typeof Schema.String;
|
|
111
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
112
|
+
}>;
|
|
113
|
+
borderPrimaryFaded: Schema.Struct<{
|
|
114
|
+
hex: typeof Schema.String;
|
|
115
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
116
|
+
}>;
|
|
117
|
+
borderWarning: Schema.Struct<{
|
|
118
|
+
hex: typeof Schema.String;
|
|
119
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
120
|
+
}>;
|
|
121
|
+
borderWarningFaded: Schema.Struct<{
|
|
122
|
+
hex: typeof Schema.String;
|
|
123
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
124
|
+
}>;
|
|
125
|
+
brand: Schema.Struct<{
|
|
126
|
+
hex: typeof Schema.String;
|
|
127
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
128
|
+
}>;
|
|
129
|
+
foregroundCritical: Schema.Struct<{
|
|
130
|
+
hex: typeof Schema.String;
|
|
131
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
132
|
+
}>;
|
|
133
|
+
foregroundDisabled: Schema.Struct<{
|
|
134
|
+
hex: typeof Schema.String;
|
|
135
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
136
|
+
}>;
|
|
137
|
+
foregroundNeutral: Schema.Struct<{
|
|
138
|
+
hex: typeof Schema.String;
|
|
139
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
140
|
+
}>;
|
|
141
|
+
foregroundNeutralFaded: Schema.Struct<{
|
|
142
|
+
hex: typeof Schema.String;
|
|
143
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
144
|
+
}>;
|
|
145
|
+
foregroundPositive: Schema.Struct<{
|
|
146
|
+
hex: typeof Schema.String;
|
|
147
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
148
|
+
}>;
|
|
149
|
+
foregroundPrimary: Schema.Struct<{
|
|
150
|
+
hex: typeof Schema.String;
|
|
151
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
152
|
+
}>;
|
|
153
|
+
foregroundWarning: Schema.Struct<{
|
|
154
|
+
hex: typeof Schema.String;
|
|
155
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
156
|
+
}>;
|
|
157
|
+
white: Schema.Struct<{
|
|
158
|
+
hex: typeof Schema.String;
|
|
159
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
160
|
+
}>;
|
|
47
161
|
}>;
|
|
48
162
|
export type Links = Schema.Schema.Type<typeof Links>;
|
|
49
163
|
declare const Links: Schema.Struct<{
|
|
@@ -139,50 +253,159 @@ declare const BrandFields: Schema.Struct<{
|
|
|
139
253
|
displayName: typeof Schema.String;
|
|
140
254
|
isLicensed: Schema.optional<typeof Schema.Boolean>;
|
|
141
255
|
hideLicensedLogo: Schema.optional<typeof Schema.Boolean>;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
backgroundCriticalFaded:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
256
|
+
reshapedThemeColors: Schema.Struct<{
|
|
257
|
+
backgroundCritical: Schema.Struct<{
|
|
258
|
+
hex: typeof Schema.String;
|
|
259
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
260
|
+
}>;
|
|
261
|
+
backgroundCriticalFaded: Schema.Struct<{
|
|
262
|
+
hex: typeof Schema.String;
|
|
263
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
264
|
+
}>;
|
|
265
|
+
backgroundDisabled: Schema.Struct<{
|
|
266
|
+
hex: typeof Schema.String;
|
|
267
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
268
|
+
}>;
|
|
269
|
+
backgroundDisabledFaded: Schema.Struct<{
|
|
270
|
+
hex: typeof Schema.String;
|
|
271
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
272
|
+
}>;
|
|
273
|
+
backgroundElevationBase: Schema.Struct<{
|
|
274
|
+
hex: typeof Schema.String;
|
|
275
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
276
|
+
}>;
|
|
277
|
+
backgroundElevationOverlay: Schema.Struct<{
|
|
278
|
+
hex: typeof Schema.String;
|
|
279
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
280
|
+
}>;
|
|
281
|
+
backgroundElevationRaised: Schema.Struct<{
|
|
282
|
+
hex: typeof Schema.String;
|
|
283
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
284
|
+
}>;
|
|
285
|
+
backgroundNeutral: Schema.Struct<{
|
|
286
|
+
hex: typeof Schema.String;
|
|
287
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
288
|
+
}>;
|
|
289
|
+
backgroundNeutralFaded: Schema.Struct<{
|
|
290
|
+
hex: typeof Schema.String;
|
|
291
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
292
|
+
}>;
|
|
293
|
+
backgroundPage: Schema.Struct<{
|
|
294
|
+
hex: typeof Schema.String;
|
|
295
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
296
|
+
}>;
|
|
297
|
+
backgroundPageFaded: Schema.Struct<{
|
|
298
|
+
hex: typeof Schema.String;
|
|
299
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
300
|
+
}>;
|
|
301
|
+
backgroundPositive: Schema.Struct<{
|
|
302
|
+
hex: typeof Schema.String;
|
|
303
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
304
|
+
}>;
|
|
305
|
+
backgroundPositiveFaded: Schema.Struct<{
|
|
306
|
+
hex: typeof Schema.String;
|
|
307
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
308
|
+
}>;
|
|
309
|
+
backgroundPrimary: Schema.Struct<{
|
|
310
|
+
hex: typeof Schema.String;
|
|
311
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
312
|
+
}>;
|
|
313
|
+
backgroundPrimaryFaded: Schema.Struct<{
|
|
314
|
+
hex: typeof Schema.String;
|
|
315
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
316
|
+
}>;
|
|
317
|
+
backgroundWarning: Schema.Struct<{
|
|
318
|
+
hex: typeof Schema.String;
|
|
319
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
320
|
+
}>;
|
|
321
|
+
backgroundWarningFaded: Schema.Struct<{
|
|
322
|
+
hex: typeof Schema.String;
|
|
323
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
324
|
+
}>;
|
|
325
|
+
black: Schema.Struct<{
|
|
326
|
+
hex: typeof Schema.String;
|
|
327
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
328
|
+
}>;
|
|
329
|
+
borderCritical: Schema.Struct<{
|
|
330
|
+
hex: typeof Schema.String;
|
|
331
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
332
|
+
}>;
|
|
333
|
+
borderCriticalFaded: Schema.Struct<{
|
|
334
|
+
hex: typeof Schema.String;
|
|
335
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
336
|
+
}>;
|
|
337
|
+
borderDisabled: Schema.Struct<{
|
|
338
|
+
hex: typeof Schema.String;
|
|
339
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
340
|
+
}>;
|
|
341
|
+
borderNeutral: Schema.Struct<{
|
|
342
|
+
hex: typeof Schema.String;
|
|
343
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
344
|
+
}>;
|
|
345
|
+
borderNeutralFaded: Schema.Struct<{
|
|
346
|
+
hex: typeof Schema.String;
|
|
347
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
348
|
+
}>;
|
|
349
|
+
borderPositive: Schema.Struct<{
|
|
350
|
+
hex: typeof Schema.String;
|
|
351
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
352
|
+
}>;
|
|
353
|
+
borderPositiveFaded: Schema.Struct<{
|
|
354
|
+
hex: typeof Schema.String;
|
|
355
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
356
|
+
}>;
|
|
357
|
+
borderPrimary: Schema.Struct<{
|
|
358
|
+
hex: typeof Schema.String;
|
|
359
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
360
|
+
}>;
|
|
361
|
+
borderPrimaryFaded: Schema.Struct<{
|
|
362
|
+
hex: typeof Schema.String;
|
|
363
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
364
|
+
}>;
|
|
365
|
+
borderWarning: Schema.Struct<{
|
|
366
|
+
hex: typeof Schema.String;
|
|
367
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
368
|
+
}>;
|
|
369
|
+
borderWarningFaded: Schema.Struct<{
|
|
370
|
+
hex: typeof Schema.String;
|
|
371
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
372
|
+
}>;
|
|
373
|
+
brand: Schema.Struct<{
|
|
374
|
+
hex: typeof Schema.String;
|
|
375
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
376
|
+
}>;
|
|
377
|
+
foregroundCritical: Schema.Struct<{
|
|
378
|
+
hex: typeof Schema.String;
|
|
379
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
380
|
+
}>;
|
|
381
|
+
foregroundDisabled: Schema.Struct<{
|
|
382
|
+
hex: typeof Schema.String;
|
|
383
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
384
|
+
}>;
|
|
385
|
+
foregroundNeutral: Schema.Struct<{
|
|
386
|
+
hex: typeof Schema.String;
|
|
387
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
388
|
+
}>;
|
|
389
|
+
foregroundNeutralFaded: Schema.Struct<{
|
|
390
|
+
hex: typeof Schema.String;
|
|
391
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
392
|
+
}>;
|
|
393
|
+
foregroundPositive: Schema.Struct<{
|
|
394
|
+
hex: typeof Schema.String;
|
|
395
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
396
|
+
}>;
|
|
397
|
+
foregroundPrimary: Schema.Struct<{
|
|
398
|
+
hex: typeof Schema.String;
|
|
399
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
400
|
+
}>;
|
|
401
|
+
foregroundWarning: Schema.Struct<{
|
|
402
|
+
hex: typeof Schema.String;
|
|
403
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
404
|
+
}>;
|
|
405
|
+
white: Schema.Struct<{
|
|
406
|
+
hex: typeof Schema.String;
|
|
407
|
+
hexDark: Schema.optional<typeof Schema.String>;
|
|
408
|
+
}>;
|
|
186
409
|
}>;
|
|
187
410
|
links: Schema.optional<Schema.Struct<{
|
|
188
411
|
home: Schema.optional<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Brand.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Brand.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACxD,OAAO,wBAAwB,CAC/B,CAAC;AACF,QAAA,MAAM,wBAAwB;;;EAG5B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACnD,OAAO,mBAAmB,CAC1B,CAAC;AACF,QAAA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,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,QAAA,MAAM,YAAY;;;;EAIhB,CAAC;AAEH,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAC1D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAef,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IACjC,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,KAAK,qCAiBhB,CAAC"}
|
package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type RenderRules } from "react-native-markdown-display";
|
|
2
2
|
import { type TextWeight, type Variant } from "../../../../../../components/Text";
|
|
3
|
-
import type { ThemeColors } from "
|
|
3
|
+
import type { ThemeColors } from "../../../../../../context/ThemeProvider";
|
|
4
4
|
export declare const createMarkdownComponents: ({ numberOfLines, variant, weight, color, }: {
|
|
5
5
|
numberOfLines?: number | undefined;
|
|
6
6
|
variant?: Variant | undefined;
|
|
7
7
|
weight?: TextWeight | undefined;
|
|
8
|
-
color?:
|
|
8
|
+
color?: keyof ThemeColors | undefined;
|
|
9
9
|
}) => RenderRules;
|
|
10
10
|
//# sourceMappingURL=components.d.ts.map
|
package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/ui/elements/src/components/MarkdownText/components.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAa,EACZ,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/ui/elements/src/components/MarkdownText/components.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAa,EACZ,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AA6B3E,eAAO,MAAM,wBAAwB;;;;;MAUjC,WAkHH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/BaseOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/BaseOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAOrE,QAAA,MAAM,aAAa;;;;;uCAuBuB,SAAS;+CAiFD,SAAS;;iDAwIxD,eAAe,aAAa,CAAC;sCArGS,SAAS;4CAYH,SAAS;;8CA5EP,SAAS;0BAalD,KAAK,eAAe,mBAAmB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;sCAqE5B,SAAS;yCAYN,SAAS;;2BAcjB,MAAM,EAAE;;;2BAexB,MAAM,EAAE;;;;;;;;;wBAnKD,SAAS;6BAY5B,KAAK,eAAe,mBAAmB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;iDAgBjB,SAAS;yCAsDjB,SAAS;yCAWT,SAAS;CA3GpD,CAAC;AAqPF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Divider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,OAAO,qBAAsB,YAAY,sBAO9C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Divider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,OAAO,qBAAsB,YAAY,sBAO9C,CAAC;AAUF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicOffersRender.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DynamicOffers/Render/DynamicOffersRender.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAYzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAI9F,MAAM,MAAM,wBAAwB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAC3B,KAAK,EAAE,SAAS,CAAC;QACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,kBAAkB,EAAE,OAAO,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oCAAoC;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oCAAoC;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,mMAa7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"DynamicOffersRender.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DynamicOffers/Render/DynamicOffersRender.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAYzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAI9F,MAAM,MAAM,wBAAwB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAC3B,KAAK,EAAE,SAAS,CAAC;QACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,kBAAkB,EAAE,OAAO,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oCAAoC;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oCAAoC;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,mMAa7B,wBAAwB,sBAuW1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import type { CustomError } from "../MoneyLionOfferCarousel";
|
|
3
|
+
interface Props {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
fallbackUI?: React.ReactNode;
|
|
6
|
+
onError: (error: CustomError) => void;
|
|
7
|
+
}
|
|
8
|
+
interface State {
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare class ErrorBoundary extends Component<Props, State> {
|
|
12
|
+
constructor(props: Props);
|
|
13
|
+
static getDerivedStateFromError(_error: Error): {
|
|
14
|
+
hasError: boolean;
|
|
15
|
+
};
|
|
16
|
+
componentDidCatch(error: Error): void;
|
|
17
|
+
render(): React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export default ErrorBoundary;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorBoundary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,UAAU,KAAK;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CACtC;AAED,UAAU,KAAK;IACd,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED,cAAM,aAAc,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBACtC,KAAK,EAAE,KAAK;IAKxB,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,KAAK;;;IAI7C,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAO9B,MAAM;CAON;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layouts/HeadlineWithDescriptionCard/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,2BAA2B,IAAI,uCAAuC,EAAE,MAAM,kBAAkB,CAAC;AAG/G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,gCAAgC,GAAG;IACvC,kBAAkB,EAAE,uCAAuC,CAAC;IAC5D,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layouts/HeadlineWithDescriptionCard/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,2BAA2B,IAAI,uCAAuC,EAAE,MAAM,kBAAkB,CAAC;AAG/G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,gCAAgC,GAAG;IACvC,kBAAkB,EAAE,uCAAuC,CAAC;IAC5D,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,wHAQrC,gCAAgC,sBA+ClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllOffersModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/AllOffersModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"AllOffersModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/AllOffersModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,KAAK,mBAAmB,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AA0BF,eAAO,MAAM,cAAc,kCAIxB,mBAAmB,sBAqHrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfferDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/OfferDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"OfferDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/OfferDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGtE,KAAK,sBAAsB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAIF,eAAO,MAAM,iBAAiB,6CAK3B,sBAAsB,sBAqExB,CAAC"}
|
|
@@ -2,6 +2,11 @@ import React from "react";
|
|
|
2
2
|
import type { Layout } from "../utils";
|
|
3
3
|
import { type FontFamily } from "../context/ThemeProvider";
|
|
4
4
|
import { type EventHandlerContextType } from "../context/EventHandlerProvider";
|
|
5
|
+
export type CustomError = {
|
|
6
|
+
code?: number;
|
|
7
|
+
message: string;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
};
|
|
5
10
|
export type MoneyLionOfferCarouselProps = {
|
|
6
11
|
channel: string;
|
|
7
12
|
zone: string;
|
|
@@ -19,11 +24,9 @@ export type MoneyLionOfferCarouselProps = {
|
|
|
19
24
|
showDescriptionPoints?: boolean;
|
|
20
25
|
title?: string;
|
|
21
26
|
subtitle?: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
timestamp: string;
|
|
26
|
-
}) => void;
|
|
27
|
+
isDarkTheme?: boolean;
|
|
28
|
+
fallbackUI?: React.ReactNode;
|
|
29
|
+
onError?: (error: CustomError) => void;
|
|
27
30
|
onLoad?: (numOffers: number) => void;
|
|
28
31
|
};
|
|
29
32
|
export declare const MoneyLionOfferCarousel: (props: MoneyLionOfferCarouselProps & Omit<EventHandlerContextType, "rateTableUuid" | "leadUuid">) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAMvC,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAEN,KAAK,uBAAuB,EAC5B,MAAM,iCAAiC,CAAC;AAQzC,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0DAA0D,CAAC;AAE3F,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"cnfContext.d.ts","sourceRoot":"","sources":["../../../../../src/config/mocks/cnfContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3F,eAAO,MAAM,eAAe,EAAE,UAqK7B,CAAC"}
|
|
@@ -52,14 +52,17 @@ export interface FontFamily {
|
|
|
52
52
|
interface ThemeContextType {
|
|
53
53
|
theme: ThemeColors;
|
|
54
54
|
fontFamily: FontFamily;
|
|
55
|
+
isDarkTheme: boolean;
|
|
55
56
|
updateTheme: (newTheme: Partial<ThemeColors>) => void;
|
|
56
57
|
updateFontFamily: (newFontFamily: Partial<FontFamily>) => void;
|
|
58
|
+
setIsDarkTheme: (isDark: boolean) => void;
|
|
57
59
|
}
|
|
58
60
|
export declare const ThemeContext: React.Context<ThemeContextType | null>;
|
|
59
61
|
export declare const useTheme: () => ThemeContextType;
|
|
60
62
|
interface ThemeProviderProps {
|
|
61
63
|
themeColors?: ThemeColors;
|
|
62
64
|
fontFamily?: Partial<FontFamily>;
|
|
65
|
+
isDarkTheme?: boolean;
|
|
63
66
|
children: ReactNode;
|
|
64
67
|
}
|
|
65
68
|
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEb,KAAK,EAAE,EACP,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,WAAW;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4BAA4B,EAAE,MAAM,CAAC;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,MAAM,CAAC;IAChC,6BAA6B,EAAE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Y,wCAA+C,CAAC;AAEzE,eAAO,MAAM,QAAQ,wBAMpB,CAAC;AAEF,UAAU,kBAAkB;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA6ChD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReshapedThemeColors } from "../capabilities/core/src/system/cnfContext/schemas/Brand";
|
|
2
|
+
import type { ThemeColors } from "../context/ThemeProvider";
|
|
3
|
+
/** This util checks for missing theme colors from reshapedThemeColors in the API response
|
|
4
|
+
* and merges them with fallback theme colors.
|
|
5
|
+
* It returns a ThemeColors object with the appropriate colors based on the isDarkTheme flag.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getThemeColors: (reshapedThemeColors: ReshapedThemeColors, isDarkTheme?: boolean) => ThemeColors;
|
|
8
|
+
//# sourceMappingURL=getThemeColors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThemeColors.d.ts","sourceRoot":"","sources":["../../../../src/utils/getThemeColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAEpG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,cAAc,wBACL,mBAAmB,gBAC3B,OAAO,KAClB,WAiBF,CAAC"}
|
package/package.json
CHANGED