@growth-labs/store 0.3.0 → 0.3.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/dist/options.d.ts +11 -5
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +20 -2
- package/dist/options.js.map +1 -1
- package/package.json +1 -1
- package/src/options.ts +20 -2
package/dist/options.d.ts
CHANGED
|
@@ -107,16 +107,22 @@ export declare const storeOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
107
107
|
termsPath: z.ZodOptional<z.ZodString>;
|
|
108
108
|
/** Site-relative path to the contact page. */
|
|
109
109
|
contactPath: z.ZodOptional<z.ZodString>;
|
|
110
|
-
/**
|
|
111
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Payment methods accepted at checkout. Defaults to Fourthwall's
|
|
112
|
+
* verified accepted-methods list (help.fourthwall.com, "Payment methods
|
|
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">>;
|
|
112
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
paymentMethods: string[];
|
|
113
120
|
operator?: string | undefined;
|
|
114
121
|
address?: string | undefined;
|
|
115
122
|
returnsPath?: string | undefined;
|
|
116
123
|
shippingPath?: string | undefined;
|
|
117
124
|
termsPath?: string | undefined;
|
|
118
125
|
contactPath?: string | undefined;
|
|
119
|
-
paymentMethods?: string[] | undefined;
|
|
120
126
|
}, {
|
|
121
127
|
operator?: string | undefined;
|
|
122
128
|
address?: string | undefined;
|
|
@@ -188,13 +194,13 @@ export declare const storeOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
188
194
|
cartOrigin: string;
|
|
189
195
|
checkoutEnabled: boolean;
|
|
190
196
|
legal: {
|
|
197
|
+
paymentMethods: string[];
|
|
191
198
|
operator?: string | undefined;
|
|
192
199
|
address?: string | undefined;
|
|
193
200
|
returnsPath?: string | undefined;
|
|
194
201
|
shippingPath?: string | undefined;
|
|
195
202
|
termsPath?: string | undefined;
|
|
196
203
|
contactPath?: string | undefined;
|
|
197
|
-
paymentMethods?: string[] | undefined;
|
|
198
204
|
};
|
|
199
205
|
imageTransform: {
|
|
200
206
|
enabled: boolean;
|
|
@@ -282,13 +288,13 @@ export declare const storeOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
282
288
|
cartOrigin: string;
|
|
283
289
|
checkoutEnabled: boolean;
|
|
284
290
|
legal: {
|
|
291
|
+
paymentMethods: string[];
|
|
285
292
|
operator?: string | undefined;
|
|
286
293
|
address?: string | undefined;
|
|
287
294
|
returnsPath?: string | undefined;
|
|
288
295
|
shippingPath?: string | undefined;
|
|
289
296
|
termsPath?: string | undefined;
|
|
290
297
|
contactPath?: string | undefined;
|
|
291
|
-
paymentMethods?: string[] | undefined;
|
|
292
298
|
};
|
|
293
299
|
imageTransform: {
|
|
294
300
|
enabled: boolean;
|
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;;IAE1B,qGAAqG;;;;;;;;;;;;;;;;;;;;;;;EAOpG,CAAA;
|
|
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;;IAE1B,qGAAqG;;;;;;;;;;;;;;;;;;;;;;;EAOpG,CAAA;AAkIF,eAAO,MAAM,kBAAkB;IA5E9B,6DAA6D;;IAG7D;;;;;;;;OAQG;;;QAxEH,qGAAqG;;;;;;;;;;;;;;;;;;;;;;;;IA2ErG,8EAA8E;;IAG9E;;;;;OAKG;;;;IAMH,2FAA2F;;IAG3F;;;;;OAKG;;;;;;;;;;;;IAKH,+HAA+H;;QA7E9H,kGAAkG;;QAElG,oDAAoD;;QAEpD,yIAAyI;;QAEzI,+DAA+D;;QAE/D,uDAAuD;;QAEvD,8CAA8C;;QAE9C;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4EJ;;;;;;OAMG;;;;;QAMD,gGAAgG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhG,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
|
@@ -36,8 +36,26 @@ const storeLegalSchema = z
|
|
|
36
36
|
termsPath: z.string().optional(),
|
|
37
37
|
/** Site-relative path to the contact page. */
|
|
38
38
|
contactPath: z.string().optional(),
|
|
39
|
-
/**
|
|
40
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Payment methods accepted at checkout. Defaults to Fourthwall's
|
|
41
|
+
* verified accepted-methods list (help.fourthwall.com, "Payment methods
|
|
42
|
+
* accepted on Fourthwall") since every site on this package checks out
|
|
43
|
+
* through Fourthwall — override only if a specific site's checkout
|
|
44
|
+
* genuinely differs.
|
|
45
|
+
*/
|
|
46
|
+
paymentMethods: z
|
|
47
|
+
.array(z.string())
|
|
48
|
+
.default([
|
|
49
|
+
'Visa',
|
|
50
|
+
'Mastercard',
|
|
51
|
+
'American Express',
|
|
52
|
+
'Discover',
|
|
53
|
+
'Apple Pay',
|
|
54
|
+
'Google Pay',
|
|
55
|
+
'PayPal',
|
|
56
|
+
'Afterpay',
|
|
57
|
+
'Klarna',
|
|
58
|
+
]),
|
|
41
59
|
})
|
|
42
60
|
.default({});
|
|
43
61
|
const baseStoreOptionsSchema = z.object({
|
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;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AO,CAAC,qBAAqB,CAAC;QACvD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,oBAAoB,CAAC;QACrD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC;KAClE,CAAC;SACD,OAAO,CAAC,EAAE,CAAC;IAEb;;;;;;OAMG;IACH,SAAS,EAAE,CAAC;SACV,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC;QAC3C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACpC,gGAAgG;QAChG,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;KAC3D,CAAC;SACD,OAAO,CAAC,EAAE,CAAC;CACb,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAChF,GAAG,OAAO;IACV,SAAS,EAAE;QACV,GAAG,OAAO,CAAC,SAAS;QACpB,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,MAAM,IAAI,OAAO,CAAC,UAAU;KACtD;CACD,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
package/src/options.ts
CHANGED
|
@@ -39,8 +39,26 @@ const storeLegalSchema = z
|
|
|
39
39
|
termsPath: z.string().optional(),
|
|
40
40
|
/** Site-relative path to the contact page. */
|
|
41
41
|
contactPath: z.string().optional(),
|
|
42
|
-
/**
|
|
43
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Payment methods accepted at checkout. Defaults to Fourthwall's
|
|
44
|
+
* verified accepted-methods list (help.fourthwall.com, "Payment methods
|
|
45
|
+
* accepted on Fourthwall") since every site on this package checks out
|
|
46
|
+
* through Fourthwall — override only if a specific site's checkout
|
|
47
|
+
* genuinely differs.
|
|
48
|
+
*/
|
|
49
|
+
paymentMethods: z
|
|
50
|
+
.array(z.string())
|
|
51
|
+
.default([
|
|
52
|
+
'Visa',
|
|
53
|
+
'Mastercard',
|
|
54
|
+
'American Express',
|
|
55
|
+
'Discover',
|
|
56
|
+
'Apple Pay',
|
|
57
|
+
'Google Pay',
|
|
58
|
+
'PayPal',
|
|
59
|
+
'Afterpay',
|
|
60
|
+
'Klarna',
|
|
61
|
+
]),
|
|
44
62
|
})
|
|
45
63
|
.default({})
|
|
46
64
|
|