@growth-labs/store 0.3.6 → 0.4.0
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/CHANGELOG.md +8 -0
- package/dist/availability.d.ts +3 -13
- package/dist/availability.d.ts.map +1 -1
- package/dist/client.d.ts +59 -123
- package/dist/client.d.ts.map +1 -1
- package/dist/options.d.ts +34 -240
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +4 -4
- package/dist/options.js.map +1 -1
- package/dist/types.d.ts +88 -4858
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/variant.js +1 -1
- package/dist/variant.js.map +1 -1
- package/package.json +2 -2
- package/src/options.ts +4 -4
- package/src/types.ts +1 -1
- package/src/variant.ts +1 -1
package/dist/options.d.ts
CHANGED
|
@@ -1,182 +1,70 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const storeCollectionSchema: z.ZodObject<{
|
|
3
3
|
handle: z.ZodString;
|
|
4
|
-
/** Overrides the shop's own collection name when set; otherwise the live Fourthwall name is used. */
|
|
5
4
|
name: z.ZodOptional<z.ZodString>;
|
|
6
5
|
description: z.ZodOptional<z.ZodString>;
|
|
7
6
|
coverImagePath: z.ZodOptional<z.ZodString>;
|
|
8
|
-
grouping: z.ZodOptional<z.ZodEnum<
|
|
7
|
+
grouping: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
type: "type";
|
|
9
|
+
division: "division";
|
|
10
|
+
}>>;
|
|
9
11
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
10
12
|
productKind: z.ZodOptional<z.ZodString>;
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
name?: string | undefined;
|
|
14
|
-
description?: string | undefined;
|
|
15
|
-
coverImagePath?: string | undefined;
|
|
16
|
-
grouping?: "type" | "division" | undefined;
|
|
17
|
-
hidden?: boolean | undefined;
|
|
18
|
-
productKind?: string | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
handle: string;
|
|
21
|
-
name?: string | undefined;
|
|
22
|
-
description?: string | undefined;
|
|
23
|
-
coverImagePath?: string | undefined;
|
|
24
|
-
grouping?: "type" | "division" | undefined;
|
|
25
|
-
hidden?: boolean | undefined;
|
|
26
|
-
productKind?: string | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
export declare const storeOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
29
|
-
/** Shown in the store JSON-LD `brand.name` and page copy. */
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const storeOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
30
15
|
brandName: z.ZodString;
|
|
31
|
-
/**
|
|
32
|
-
* Collection OVERRIDES, not the exhaustive list — the live Fourthwall shop
|
|
33
|
-
* is the source of truth for which collections exist (see
|
|
34
|
-
* `resolveShopCollections`). A site only sets ordering, `grouping`,
|
|
35
|
-
* `hidden`, `coverImagePath`, or a label override here. An empty array is
|
|
36
|
-
* valid — a site without a Fourthwall shop yet (bigbrain, pre-launch)
|
|
37
|
-
* still gets the health check and routes; checkout stays disabled until
|
|
38
|
-
* `checkoutEnabled` is true.
|
|
39
|
-
*/
|
|
40
16
|
collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
41
17
|
handle: z.ZodString;
|
|
42
|
-
/** Overrides the shop's own collection name when set; otherwise the live Fourthwall name is used. */
|
|
43
18
|
name: z.ZodOptional<z.ZodString>;
|
|
44
19
|
description: z.ZodOptional<z.ZodString>;
|
|
45
20
|
coverImagePath: z.ZodOptional<z.ZodString>;
|
|
46
|
-
grouping: z.ZodOptional<z.ZodEnum<
|
|
21
|
+
grouping: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
type: "type";
|
|
23
|
+
division: "division";
|
|
24
|
+
}>>;
|
|
47
25
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
48
26
|
productKind: z.ZodOptional<z.ZodString>;
|
|
49
|
-
},
|
|
50
|
-
handle: string;
|
|
51
|
-
name?: string | undefined;
|
|
52
|
-
description?: string | undefined;
|
|
53
|
-
coverImagePath?: string | undefined;
|
|
54
|
-
grouping?: "type" | "division" | undefined;
|
|
55
|
-
hidden?: boolean | undefined;
|
|
56
|
-
productKind?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
handle: string;
|
|
59
|
-
name?: string | undefined;
|
|
60
|
-
description?: string | undefined;
|
|
61
|
-
coverImagePath?: string | undefined;
|
|
62
|
-
grouping?: "type" | "division" | undefined;
|
|
63
|
-
hidden?: boolean | undefined;
|
|
64
|
-
productKind?: string | undefined;
|
|
65
|
-
}>, "many">>;
|
|
66
|
-
/** Fourthwall collection handle treated as "everything" (default `"all"`). */
|
|
27
|
+
}, z.core.$strip>>>;
|
|
67
28
|
catalogueHandle: z.ZodDefault<z.ZodString>;
|
|
68
|
-
|
|
69
|
-
* How many products the landing page shows by default. `"all"` (the
|
|
70
|
-
* default) paginates through the full Fourthwall catalogue — sites used
|
|
71
|
-
* to hardcode a 3-product teaser here, which is the "3/11 products
|
|
72
|
-
* shown" defect the channel-store-recovery review found.
|
|
73
|
-
*/
|
|
74
|
-
landingProductCount: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodNumber]>>;
|
|
29
|
+
landingProductCount: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodNumber]>>;
|
|
75
30
|
defaultCurrency: z.ZodDefault<z.ZodString>;
|
|
76
|
-
supportedCurrencies: z.ZodDefault<z.ZodArray<z.ZodString
|
|
77
|
-
/** UTM/analytics origin marker forwarded to Fourthwall checkout, e.g. `"megaprojects"`. */
|
|
31
|
+
supportedCurrencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
78
32
|
cartOrigin: z.ZodString;
|
|
79
|
-
/**
|
|
80
|
-
* Whether this site's Fourthwall shop is live. When false, product and
|
|
81
|
-
* collection pages still render (catalogue browsing works) but add-to-cart
|
|
82
|
-
* and checkout are disabled with an explicit "coming soon" state — never
|
|
83
|
-
* fixture/fake products. Used by bigbrain until its shop exists.
|
|
84
|
-
*/
|
|
85
33
|
checkoutEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
86
34
|
merchantReturnPolicy: z.ZodOptional<z.ZodObject<{
|
|
87
35
|
applicableCountry: z.ZodString;
|
|
88
36
|
returnPolicyCategory: z.ZodString;
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
returnPolicyCategory: string;
|
|
92
|
-
}, {
|
|
93
|
-
applicableCountry: string;
|
|
94
|
-
returnPolicyCategory: string;
|
|
95
|
-
}>>;
|
|
96
|
-
/** B5: business identity + policy links rendered in the store footer and product-page summary line. See `storeLegalSchema`. */
|
|
97
|
-
legal: z.ZodDefault<z.ZodObject<{
|
|
98
|
-
/** e.g. "Fulcrum Enterprises s.r.o." — shown in the store footer and product-page policy line. */
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
legal: z.ZodPrefault<z.ZodObject<{
|
|
99
39
|
operator: z.ZodOptional<z.ZodString>;
|
|
100
|
-
/** Full mailing address shown beside `operator`. */
|
|
101
40
|
address: z.ZodOptional<z.ZodString>;
|
|
102
|
-
/** Site-relative path to the returns/refunds policy page. Kept as a path (not a fixed slug) since sites keep their own existing URLs. */
|
|
103
41
|
returnsPath: z.ZodOptional<z.ZodString>;
|
|
104
|
-
/** Site-relative path to the shipping/delivery policy page. */
|
|
105
42
|
shippingPath: z.ZodOptional<z.ZodString>;
|
|
106
|
-
/** Site-relative path to the terms of service page. */
|
|
107
43
|
termsPath: z.ZodOptional<z.ZodString>;
|
|
108
|
-
/** Site-relative path to the contact page. */
|
|
109
44
|
contactPath: z.ZodOptional<z.ZodString>;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* accepted on Fourthwall") since every site on this package checks out
|
|
114
|
-
* through Fourthwall — override only if a specific site's checkout
|
|
115
|
-
* genuinely differs.
|
|
116
|
-
*/
|
|
117
|
-
paymentMethods: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
paymentMethods: string[];
|
|
120
|
-
operator?: string | undefined;
|
|
121
|
-
address?: string | undefined;
|
|
122
|
-
returnsPath?: string | undefined;
|
|
123
|
-
shippingPath?: string | undefined;
|
|
124
|
-
termsPath?: string | undefined;
|
|
125
|
-
contactPath?: string | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
operator?: string | undefined;
|
|
128
|
-
address?: string | undefined;
|
|
129
|
-
returnsPath?: string | undefined;
|
|
130
|
-
shippingPath?: string | undefined;
|
|
131
|
-
termsPath?: string | undefined;
|
|
132
|
-
contactPath?: string | undefined;
|
|
133
|
-
paymentMethods?: string[] | undefined;
|
|
134
|
-
}>>;
|
|
135
|
-
imageTransform: z.ZodDefault<z.ZodObject<{
|
|
45
|
+
paymentMethods: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
imageTransform: z.ZodPrefault<z.ZodObject<{
|
|
136
48
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
}, {
|
|
140
|
-
enabled?: boolean | undefined;
|
|
141
|
-
}>>;
|
|
142
|
-
routes: z.ZodDefault<z.ZodObject<{
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
routes: z.ZodPrefault<z.ZodObject<{
|
|
143
51
|
checkoutPath: z.ZodDefault<z.ZodString>;
|
|
144
52
|
webhookPath: z.ZodDefault<z.ZodString>;
|
|
145
53
|
cartBootstrapPath: z.ZodDefault<z.ZodString>;
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
webhookPath: string;
|
|
149
|
-
cartBootstrapPath: string;
|
|
150
|
-
}, {
|
|
151
|
-
checkoutPath?: string | undefined;
|
|
152
|
-
webhookPath?: string | undefined;
|
|
153
|
-
cartBootstrapPath?: string | undefined;
|
|
154
|
-
}>>;
|
|
155
|
-
/**
|
|
156
|
-
* B2 order telemetry: every verified `ORDER_PLACED` webhook is persisted to
|
|
157
|
-
* the package-owned `gl_store_orders` D1 table and mirrored to WAE as
|
|
158
|
-
* `store_order_placed`. `siteId` defaults to `cartOrigin` — the site
|
|
159
|
-
* already has exactly one identity for attribution, so this avoids asking
|
|
160
|
-
* for the same value twice.
|
|
161
|
-
*/
|
|
162
|
-
telemetry: z.ZodDefault<z.ZodObject<{
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
telemetry: z.ZodPrefault<z.ZodObject<{
|
|
163
56
|
d1Binding: z.ZodDefault<z.ZodString>;
|
|
164
57
|
waeBinding: z.ZodDefault<z.ZodString>;
|
|
165
58
|
siteId: z.ZodOptional<z.ZodString>;
|
|
166
|
-
/** Health check goes red when a site with prior orders has ingested none for this many days. */
|
|
167
59
|
staleOrderAlertDays: z.ZodDefault<z.ZodNumber>;
|
|
168
|
-
},
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
62
|
+
telemetry: {
|
|
63
|
+
siteId: string;
|
|
169
64
|
d1Binding: string;
|
|
170
65
|
waeBinding: string;
|
|
171
66
|
staleOrderAlertDays: number;
|
|
172
|
-
|
|
173
|
-
}, {
|
|
174
|
-
d1Binding?: string | undefined;
|
|
175
|
-
waeBinding?: string | undefined;
|
|
176
|
-
siteId?: string | undefined;
|
|
177
|
-
staleOrderAlertDays?: number | undefined;
|
|
178
|
-
}>>;
|
|
179
|
-
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
};
|
|
180
68
|
brandName: string;
|
|
181
69
|
collections: {
|
|
182
70
|
handle: string;
|
|
@@ -210,67 +98,11 @@ export declare const storeOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
210
98
|
webhookPath: string;
|
|
211
99
|
cartBootstrapPath: string;
|
|
212
100
|
};
|
|
213
|
-
telemetry: {
|
|
214
|
-
d1Binding: string;
|
|
215
|
-
waeBinding: string;
|
|
216
|
-
staleOrderAlertDays: number;
|
|
217
|
-
siteId?: string | undefined;
|
|
218
|
-
};
|
|
219
101
|
merchantReturnPolicy?: {
|
|
220
102
|
applicableCountry: string;
|
|
221
103
|
returnPolicyCategory: string;
|
|
222
104
|
} | undefined;
|
|
223
105
|
}, {
|
|
224
|
-
brandName: string;
|
|
225
|
-
cartOrigin: string;
|
|
226
|
-
collections?: {
|
|
227
|
-
handle: string;
|
|
228
|
-
name?: string | undefined;
|
|
229
|
-
description?: string | undefined;
|
|
230
|
-
coverImagePath?: string | undefined;
|
|
231
|
-
grouping?: "type" | "division" | undefined;
|
|
232
|
-
hidden?: boolean | undefined;
|
|
233
|
-
productKind?: string | undefined;
|
|
234
|
-
}[] | undefined;
|
|
235
|
-
catalogueHandle?: string | undefined;
|
|
236
|
-
landingProductCount?: number | "all" | undefined;
|
|
237
|
-
defaultCurrency?: string | undefined;
|
|
238
|
-
supportedCurrencies?: string[] | undefined;
|
|
239
|
-
checkoutEnabled?: boolean | undefined;
|
|
240
|
-
merchantReturnPolicy?: {
|
|
241
|
-
applicableCountry: string;
|
|
242
|
-
returnPolicyCategory: string;
|
|
243
|
-
} | undefined;
|
|
244
|
-
legal?: {
|
|
245
|
-
operator?: string | undefined;
|
|
246
|
-
address?: string | undefined;
|
|
247
|
-
returnsPath?: string | undefined;
|
|
248
|
-
shippingPath?: string | undefined;
|
|
249
|
-
termsPath?: string | undefined;
|
|
250
|
-
contactPath?: string | undefined;
|
|
251
|
-
paymentMethods?: string[] | undefined;
|
|
252
|
-
} | undefined;
|
|
253
|
-
imageTransform?: {
|
|
254
|
-
enabled?: boolean | undefined;
|
|
255
|
-
} | undefined;
|
|
256
|
-
routes?: {
|
|
257
|
-
checkoutPath?: string | undefined;
|
|
258
|
-
webhookPath?: string | undefined;
|
|
259
|
-
cartBootstrapPath?: string | undefined;
|
|
260
|
-
} | undefined;
|
|
261
|
-
telemetry?: {
|
|
262
|
-
d1Binding?: string | undefined;
|
|
263
|
-
waeBinding?: string | undefined;
|
|
264
|
-
siteId?: string | undefined;
|
|
265
|
-
staleOrderAlertDays?: number | undefined;
|
|
266
|
-
} | undefined;
|
|
267
|
-
}>, {
|
|
268
|
-
telemetry: {
|
|
269
|
-
siteId: string;
|
|
270
|
-
d1Binding: string;
|
|
271
|
-
waeBinding: string;
|
|
272
|
-
staleOrderAlertDays: number;
|
|
273
|
-
};
|
|
274
106
|
brandName: string;
|
|
275
107
|
collections: {
|
|
276
108
|
handle: string;
|
|
@@ -304,55 +136,17 @@ export declare const storeOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
304
136
|
webhookPath: string;
|
|
305
137
|
cartBootstrapPath: string;
|
|
306
138
|
};
|
|
139
|
+
telemetry: {
|
|
140
|
+
d1Binding: string;
|
|
141
|
+
waeBinding: string;
|
|
142
|
+
staleOrderAlertDays: number;
|
|
143
|
+
siteId?: string | undefined;
|
|
144
|
+
};
|
|
307
145
|
merchantReturnPolicy?: {
|
|
308
146
|
applicableCountry: string;
|
|
309
147
|
returnPolicyCategory: string;
|
|
310
148
|
} | undefined;
|
|
311
|
-
}
|
|
312
|
-
brandName: string;
|
|
313
|
-
cartOrigin: string;
|
|
314
|
-
collections?: {
|
|
315
|
-
handle: string;
|
|
316
|
-
name?: string | undefined;
|
|
317
|
-
description?: string | undefined;
|
|
318
|
-
coverImagePath?: string | undefined;
|
|
319
|
-
grouping?: "type" | "division" | undefined;
|
|
320
|
-
hidden?: boolean | undefined;
|
|
321
|
-
productKind?: string | undefined;
|
|
322
|
-
}[] | undefined;
|
|
323
|
-
catalogueHandle?: string | undefined;
|
|
324
|
-
landingProductCount?: number | "all" | undefined;
|
|
325
|
-
defaultCurrency?: string | undefined;
|
|
326
|
-
supportedCurrencies?: string[] | undefined;
|
|
327
|
-
checkoutEnabled?: boolean | undefined;
|
|
328
|
-
merchantReturnPolicy?: {
|
|
329
|
-
applicableCountry: string;
|
|
330
|
-
returnPolicyCategory: string;
|
|
331
|
-
} | undefined;
|
|
332
|
-
legal?: {
|
|
333
|
-
operator?: string | undefined;
|
|
334
|
-
address?: string | undefined;
|
|
335
|
-
returnsPath?: string | undefined;
|
|
336
|
-
shippingPath?: string | undefined;
|
|
337
|
-
termsPath?: string | undefined;
|
|
338
|
-
contactPath?: string | undefined;
|
|
339
|
-
paymentMethods?: string[] | undefined;
|
|
340
|
-
} | undefined;
|
|
341
|
-
imageTransform?: {
|
|
342
|
-
enabled?: boolean | undefined;
|
|
343
|
-
} | undefined;
|
|
344
|
-
routes?: {
|
|
345
|
-
checkoutPath?: string | undefined;
|
|
346
|
-
webhookPath?: string | undefined;
|
|
347
|
-
cartBootstrapPath?: string | undefined;
|
|
348
|
-
} | undefined;
|
|
349
|
-
telemetry?: {
|
|
350
|
-
d1Binding?: string | undefined;
|
|
351
|
-
waeBinding?: string | undefined;
|
|
352
|
-
siteId?: string | undefined;
|
|
353
|
-
staleOrderAlertDays?: number | undefined;
|
|
354
|
-
} | undefined;
|
|
355
|
-
}>;
|
|
149
|
+
}>>;
|
|
356
150
|
export type StoreOptions = z.input<typeof storeOptionsSchema>;
|
|
357
151
|
export type ResolvedStoreOptions = z.output<typeof storeOptionsSchema>;
|
|
358
152
|
export type StoreCollectionInput = z.input<typeof storeCollectionSchema>;
|
package/dist/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,qBAAqB;;;;;;;;;;;iBASzB,CAAA;AAkIF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM5B,CAAA;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
package/dist/options.js
CHANGED
|
@@ -57,7 +57,7 @@ const storeLegalSchema = z
|
|
|
57
57
|
'Klarna',
|
|
58
58
|
]),
|
|
59
59
|
})
|
|
60
|
-
.
|
|
60
|
+
.prefault({});
|
|
61
61
|
const baseStoreOptionsSchema = z.object({
|
|
62
62
|
/** Shown in the store JSON-LD `brand.name` and page copy. */
|
|
63
63
|
brandName: z.string().min(1),
|
|
@@ -98,14 +98,14 @@ const baseStoreOptionsSchema = z.object({
|
|
|
98
98
|
.object({
|
|
99
99
|
enabled: z.boolean().default(true),
|
|
100
100
|
})
|
|
101
|
-
.
|
|
101
|
+
.prefault({}),
|
|
102
102
|
routes: z
|
|
103
103
|
.object({
|
|
104
104
|
checkoutPath: z.string().default('/api/store/checkout'),
|
|
105
105
|
webhookPath: z.string().default('/api/store/webhook'),
|
|
106
106
|
cartBootstrapPath: z.string().default('/api/store/cart-bootstrap'),
|
|
107
107
|
})
|
|
108
|
-
.
|
|
108
|
+
.prefault({}),
|
|
109
109
|
/**
|
|
110
110
|
* B2 order telemetry: every verified `ORDER_PLACED` webhook is persisted to
|
|
111
111
|
* the package-owned `gl_store_orders` D1 table and mirrored to WAE as
|
|
@@ -121,7 +121,7 @@ const baseStoreOptionsSchema = z.object({
|
|
|
121
121
|
/** Health check goes red when a site with prior orders has ingested none for this many days. */
|
|
122
122
|
staleOrderAlertDays: z.number().int().positive().default(7),
|
|
123
123
|
})
|
|
124
|
-
.
|
|
124
|
+
.prefault({}),
|
|
125
125
|
});
|
|
126
126
|
export const storeOptionsSchema = baseStoreOptionsSchema.transform((options) => ({
|
|
127
127
|
...options,
|
package/dist/options.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,qGAAqG;IACrG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACvC,CAAC,CAAA;AAEF;;;;;;;;GAQG;AACH,MAAM,gBAAgB,GAAG,CAAC;KACxB,MAAM,CAAC;IACP,kGAAkG;IAClG,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC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