@drawbridge/components 0.1.46 → 0.1.48
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/bridge/cart-drawer.js +152 -0
- package/dist/bridge/cart-drawer.mjs +123 -0
- package/dist/bridge/fields.js +278 -0
- package/dist/bridge/fields.mjs +276 -1
- package/dist/bridge/form-subdomain-checkout.js +687 -0
- package/dist/bridge/form-subdomain-checkout.mjs +665 -0
- package/dist/bridge/form-subdomain-shop-modal.js +234 -274
- package/dist/bridge/form-subdomain-shop-modal.mjs +233 -275
- package/dist/bridge/form-subdomain-shop.js +4 -1
- package/dist/bridge/form-subdomain-shop.mjs +4 -1
- package/dist/bridge/form-subdomain.js +24 -5
- package/dist/bridge/form-subdomain.mjs +25 -6
- package/dist/bridge/lib/age-gate.js +12 -0
- package/dist/bridge/lib/age-gate.mjs +11 -0
- package/dist/bridge/lib/cart.js +79 -0
- package/dist/bridge/lib/cart.mjs +48 -0
- package/dist/bridge/lib/checkout-kit.js +2 -32
- package/dist/bridge/lib/checkout-kit.mjs +2 -32
- package/dist/bridge/lib/entry.js +41 -0
- package/dist/bridge/lib/entry.mjs +40 -0
- package/dist/bridge/product-tile.js +13 -6
- package/dist/bridge/product-tile.mjs +13 -6
- package/dist/bridge/template-layout.js +263 -129
- package/dist/bridge/template-layout.mjs +264 -130
- package/dist/bridge/template-modal.js +39 -74
- package/dist/bridge/template-modal.mjs +40 -75
- package/dist/dashboard/avatar.js +2 -3
- package/dist/dashboard/avatar.mjs +2 -3
- package/dist/dashboard/buttons-subscription.js +1 -1
- package/dist/dashboard/buttons-subscription.mjs +1 -1
- package/dist/dashboard/campaign-form.js +179 -155
- package/dist/dashboard/campaign-form.mjs +179 -155
- package/dist/dashboard/campaign-share.js +347 -0
- package/dist/dashboard/campaign-share.mjs +314 -0
- package/dist/dashboard/card-affiliate.js +1 -1
- package/dist/dashboard/card-affiliate.mjs +1 -1
- package/dist/dashboard/card-campaign-switch.js +4 -1
- package/dist/dashboard/card-campaign-switch.mjs +4 -1
- package/dist/dashboard/card-order.js +22 -4
- package/dist/dashboard/card-order.mjs +22 -4
- package/dist/dashboard/embed-stripe.js +145 -0
- package/dist/dashboard/embed-stripe.mjs +116 -0
- package/dist/dashboard/form-admin-provider.js +71 -17
- package/dist/dashboard/form-admin-provider.mjs +71 -17
- package/dist/dashboard/form-file-upload.js +3 -2
- package/dist/dashboard/form-file-upload.mjs +4 -3
- package/dist/dashboard/form-organization-campaign-advertisements.js +47 -6
- package/dist/dashboard/form-organization-campaign-advertisements.mjs +47 -6
- package/dist/dashboard/form-organization-campaign-field-birthday.js +193 -0
- package/dist/dashboard/form-organization-campaign-field-birthday.mjs +164 -0
- package/dist/dashboard/form-organization-campaign-field-rating.js +246 -0
- package/dist/dashboard/form-organization-campaign-field-rating.mjs +217 -0
- package/dist/dashboard/form-organization-campaign-page.js +73 -39
- package/dist/dashboard/form-organization-campaign-page.mjs +73 -39
- package/dist/dashboard/form-organization-campaign.js +82 -0
- package/dist/dashboard/form-organization-campaign.mjs +81 -0
- package/dist/dashboard/form-organization-connection.js +48 -6
- package/dist/dashboard/form-organization-connection.mjs +48 -7
- package/dist/dashboard/form-organization-product.js +1461 -0
- package/dist/dashboard/form-organization-product.mjs +1425 -0
- package/dist/dashboard/form-organization-workflow.js +72 -1
- package/dist/dashboard/form-organization-workflow.mjs +69 -1
- package/dist/dashboard/form-otc.js +4 -5
- package/dist/dashboard/form-otc.mjs +4 -5
- package/dist/dashboard/form-stripe.js +12 -5
- package/dist/dashboard/form-stripe.mjs +12 -5
- package/dist/dashboard/input-combobox.js +6 -0
- package/dist/dashboard/input-combobox.mjs +6 -0
- package/dist/dashboard/input-fields.js +37 -161
- package/dist/dashboard/input-fields.mjs +37 -161
- package/dist/dashboard/input-file.js +21 -4
- package/dist/dashboard/input-file.mjs +21 -4
- package/dist/dashboard/input-font.js +2 -0
- package/dist/dashboard/input-font.mjs +2 -0
- package/dist/dashboard/input-gallery.js +201 -0
- package/dist/dashboard/input-gallery.mjs +172 -0
- package/dist/dashboard/input-group-ai.js +15 -3
- package/dist/dashboard/input-group-ai.mjs +15 -3
- package/dist/dashboard/lib/ab-tests.js +2 -2
- package/dist/dashboard/lib/ab-tests.mjs +2 -2
- package/dist/dashboard/lib/connection-controls.js +5 -2
- package/dist/dashboard/lib/connection-controls.mjs +3 -1
- package/dist/dashboard/lib/form-page.js +1 -1
- package/dist/dashboard/lib/form-page.mjs +1 -1
- package/dist/dashboard/lib/menu.js +19 -0
- package/dist/dashboard/lib/menu.mjs +18 -0
- package/dist/dashboard/lib/products.js +169 -0
- package/dist/dashboard/lib/products.mjs +135 -0
- package/dist/dashboard/lib/settings-paths.js +35 -0
- package/dist/dashboard/lib/settings-paths.mjs +11 -0
- package/dist/dashboard/lib/uppy.js +10 -1
- package/dist/dashboard/lib/uppy.mjs +11 -2
- package/dist/dashboard/menu.js +13 -2
- package/dist/dashboard/menu.mjs +13 -2
- package/dist/dashboard/order-sections.js +456 -6
- package/dist/dashboard/order-sections.mjs +453 -7
- package/dist/dashboard/preview.js +119 -52
- package/dist/dashboard/preview.mjs +119 -52
- package/dist/dashboard/provider-ui.js +9 -7
- package/dist/dashboard/provider-ui.mjs +9 -7
- package/dist/dashboard/recharts.js +10 -4
- package/dist/dashboard/recharts.mjs +10 -4
- package/dist/dashboard/shipping-rates.js +404 -0
- package/dist/dashboard/shipping-rates.mjs +371 -0
- package/dist/dashboard/template-buyer.js +301 -0
- package/dist/dashboard/template-buyer.mjs +267 -0
- package/dist/dashboard/template-dashboard.js +11 -1
- package/dist/dashboard/template-dashboard.mjs +11 -1
- package/dist/dashboard/template-design.js +209 -130
- package/dist/dashboard/template-design.mjs +210 -131
- package/dist/dashboard/template-ui.js +157 -55
- package/dist/dashboard/template-ui.mjs +158 -56
- package/dist/icons/flags.js +134 -0
- package/dist/icons/flags.mjs +115 -0
- package/dist/input-checkbox.js +28 -10
- package/dist/input-checkbox.mjs +28 -10
- package/dist/product.js +96 -24
- package/dist/product.mjs +97 -25
- package/dist/shared/carousel.js +14 -5
- package/dist/shared/carousel.mjs +14 -5
- package/dist/shared/lib/helpers.js +54 -6
- package/dist/shared/lib/helpers.mjs +53 -8
- package/dist/shared/order-summary.js +139 -0
- package/dist/shared/order-summary.mjs +110 -0
- package/package.json +84 -4
- package/types/bridge/cart-drawer.d.ts +31 -0
- package/types/bridge/fields.d.ts +14 -2
- package/types/bridge/form-subdomain-checkout.d.ts +20 -0
- package/types/bridge/form-subdomain-shop-modal.d.ts +27 -3
- package/types/bridge/form-subdomain.d.ts +13 -0
- package/types/bridge/lib/age-gate.d.ts +5 -0
- package/types/bridge/lib/cart.d.ts +44 -0
- package/types/bridge/lib/checkout-kit.d.ts +2 -10
- package/types/bridge/lib/entry.d.ts +5 -0
- package/types/bridge/product-tile.d.ts +2 -0
- package/types/dashboard/campaign-share.d.ts +16 -0
- package/types/dashboard/card-order.d.ts +6 -0
- package/types/dashboard/embed-stripe.d.ts +25 -0
- package/types/dashboard/form-admin-provider.d.ts +9 -2
- package/types/dashboard/form-file-upload.d.ts +2 -1
- package/types/dashboard/form-organization-campaign-advertisements.d.ts +3 -0
- package/types/dashboard/form-organization-campaign-field-birthday.d.ts +31 -0
- package/types/dashboard/form-organization-campaign-field-rating.d.ts +33 -0
- package/types/dashboard/form-organization-campaign-page.d.ts +8 -1
- package/types/dashboard/form-organization-campaign.d.ts +3 -0
- package/types/dashboard/form-organization-connection.d.ts +11 -0
- package/types/dashboard/form-organization-product.d.ts +24 -0
- package/types/dashboard/form-otc.d.ts +5 -1
- package/types/dashboard/form-stripe.d.ts +3 -2
- package/types/dashboard/input-combobox.d.ts +2 -0
- package/types/dashboard/input-file.d.ts +2 -0
- package/types/dashboard/input-gallery.d.ts +14 -0
- package/types/dashboard/lib/products.d.ts +14 -0
- package/types/dashboard/lib/settings-paths.d.ts +5 -0
- package/types/dashboard/order-sections.d.ts +24 -1
- package/types/dashboard/preview.d.ts +11 -3
- package/types/dashboard/shipping-rates.d.ts +26 -0
- package/types/dashboard/template-buyer.d.ts +50 -0
- package/types/icons/flags.d.ts +5 -0
- package/types/input-checkbox.d.ts +2 -0
- package/types/shared/lib/helpers.d.ts +4 -0
- package/types/shared/order-summary.d.ts +19 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var order_summary_exports = {};
|
|
29
|
+
__export(order_summary_exports, {
|
|
30
|
+
default: () => order_summary_default
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(order_summary_exports);
|
|
33
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
+
var import_react = require("react");
|
|
35
|
+
var import_image = __toESM(require("next/image"));
|
|
36
|
+
const OrderSummary = ({
|
|
37
|
+
lines = [],
|
|
38
|
+
rows = []
|
|
39
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
40
|
+
lines.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
...{
|
|
44
|
+
className: "space-y-3 pb-4"
|
|
45
|
+
},
|
|
46
|
+
children: lines.map((line) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
...{
|
|
50
|
+
className: "flex items-center min-w-0 flex-1 gap-3"
|
|
51
|
+
},
|
|
52
|
+
children: [
|
|
53
|
+
line.image && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
...{
|
|
57
|
+
className: "relative w-14 h-14 rounded overflow-hidden shrink-0"
|
|
58
|
+
},
|
|
59
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
|
+
import_image.default,
|
|
61
|
+
{
|
|
62
|
+
...{
|
|
63
|
+
alt: line.name || "",
|
|
64
|
+
className: "object-cover",
|
|
65
|
+
fill: true,
|
|
66
|
+
sizes: "56px",
|
|
67
|
+
src: line.image,
|
|
68
|
+
unoptimized: true
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
75
|
+
"span",
|
|
76
|
+
{
|
|
77
|
+
...{
|
|
78
|
+
className: "flex flex-col gap-0.5 min-w-0 text-left"
|
|
79
|
+
},
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
+
"span",
|
|
83
|
+
{
|
|
84
|
+
...{
|
|
85
|
+
className: "truncate text-sm font-medium leading-tight"
|
|
86
|
+
},
|
|
87
|
+
children: line.name
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
line.summary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
...{
|
|
94
|
+
className: "truncate text-xs opacity-60"
|
|
95
|
+
},
|
|
96
|
+
children: line.summary
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
line.note && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
|
+
"span",
|
|
101
|
+
{
|
|
102
|
+
...{
|
|
103
|
+
className: "text-xs"
|
|
104
|
+
},
|
|
105
|
+
children: line.note
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
line.id
|
|
114
|
+
))
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
...{
|
|
121
|
+
className: "space-y-1.5"
|
|
122
|
+
},
|
|
123
|
+
children: rows.map(([label, value]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
...{
|
|
127
|
+
className: "flex items-center justify-between"
|
|
128
|
+
},
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: label }),
|
|
131
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: value ?? "\u2014" })
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
label
|
|
135
|
+
))
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
] });
|
|
139
|
+
var order_summary_default = OrderSummary;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from "react";
|
|
3
|
+
import Image from "next/image";
|
|
4
|
+
const OrderSummary = ({
|
|
5
|
+
lines = [],
|
|
6
|
+
rows = []
|
|
7
|
+
}) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
+
lines.length > 0 && /* @__PURE__ */ jsx(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
...{
|
|
12
|
+
className: "space-y-3 pb-4"
|
|
13
|
+
},
|
|
14
|
+
children: lines.map((line) => /* @__PURE__ */ jsxs(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
...{
|
|
18
|
+
className: "flex items-center min-w-0 flex-1 gap-3"
|
|
19
|
+
},
|
|
20
|
+
children: [
|
|
21
|
+
line.image && /* @__PURE__ */ jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
...{
|
|
25
|
+
className: "relative w-14 h-14 rounded overflow-hidden shrink-0"
|
|
26
|
+
},
|
|
27
|
+
children: /* @__PURE__ */ jsx(
|
|
28
|
+
Image,
|
|
29
|
+
{
|
|
30
|
+
...{
|
|
31
|
+
alt: line.name || "",
|
|
32
|
+
className: "object-cover",
|
|
33
|
+
fill: true,
|
|
34
|
+
sizes: "56px",
|
|
35
|
+
src: line.image,
|
|
36
|
+
unoptimized: true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ jsxs(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
...{
|
|
46
|
+
className: "flex flex-col gap-0.5 min-w-0 text-left"
|
|
47
|
+
},
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
"span",
|
|
51
|
+
{
|
|
52
|
+
...{
|
|
53
|
+
className: "truncate text-sm font-medium leading-tight"
|
|
54
|
+
},
|
|
55
|
+
children: line.name
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
line.summary && /* @__PURE__ */ jsx(
|
|
59
|
+
"span",
|
|
60
|
+
{
|
|
61
|
+
...{
|
|
62
|
+
className: "truncate text-xs opacity-60"
|
|
63
|
+
},
|
|
64
|
+
children: line.summary
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
line.note && /* @__PURE__ */ jsx(
|
|
68
|
+
"span",
|
|
69
|
+
{
|
|
70
|
+
...{
|
|
71
|
+
className: "text-xs"
|
|
72
|
+
},
|
|
73
|
+
children: line.note
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
line.id
|
|
82
|
+
))
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
...{
|
|
89
|
+
className: "space-y-1.5"
|
|
90
|
+
},
|
|
91
|
+
children: rows.map(([label, value]) => /* @__PURE__ */ jsxs(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
...{
|
|
95
|
+
className: "flex items-center justify-between"
|
|
96
|
+
},
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ jsx("p", { children: label }),
|
|
99
|
+
/* @__PURE__ */ jsx("p", { children: value ?? "\u2014" })
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
label
|
|
103
|
+
))
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] });
|
|
107
|
+
var order_summary_default = OrderSummary;
|
|
108
|
+
export {
|
|
109
|
+
order_summary_default as default
|
|
110
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawbridge/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./advertisement": {
|
|
6
6
|
"types": "./types/advertisement.d.ts",
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
"import": "./dist/bridge/advertisements.mjs",
|
|
13
13
|
"default": "./dist/bridge/advertisements.js"
|
|
14
14
|
},
|
|
15
|
+
"./bridge/cart-drawer": {
|
|
16
|
+
"types": "./types/bridge/cart-drawer.d.ts",
|
|
17
|
+
"import": "./dist/bridge/cart-drawer.mjs",
|
|
18
|
+
"default": "./dist/bridge/cart-drawer.js"
|
|
19
|
+
},
|
|
15
20
|
"./bridge/countdown": {
|
|
16
21
|
"types": "./types/bridge/countdown.d.ts",
|
|
17
22
|
"import": "./dist/bridge/countdown.mjs",
|
|
@@ -27,6 +32,11 @@
|
|
|
27
32
|
"import": "./dist/bridge/form-subdomain-agreement.mjs",
|
|
28
33
|
"default": "./dist/bridge/form-subdomain-agreement.js"
|
|
29
34
|
},
|
|
35
|
+
"./bridge/form-subdomain-checkout": {
|
|
36
|
+
"types": "./types/bridge/form-subdomain-checkout.d.ts",
|
|
37
|
+
"import": "./dist/bridge/form-subdomain-checkout.mjs",
|
|
38
|
+
"default": "./dist/bridge/form-subdomain-checkout.js"
|
|
39
|
+
},
|
|
30
40
|
"./bridge/form-subdomain-embed": {
|
|
31
41
|
"types": "./types/bridge/form-subdomain-embed.d.ts",
|
|
32
42
|
"import": "./dist/bridge/form-subdomain-embed.mjs",
|
|
@@ -72,6 +82,11 @@
|
|
|
72
82
|
"import": "./dist/bridge/lib/age-gate.mjs",
|
|
73
83
|
"default": "./dist/bridge/lib/age-gate.js"
|
|
74
84
|
},
|
|
85
|
+
"./bridge/lib/cart": {
|
|
86
|
+
"types": "./types/bridge/lib/cart.d.ts",
|
|
87
|
+
"import": "./dist/bridge/lib/cart.mjs",
|
|
88
|
+
"default": "./dist/bridge/lib/cart.js"
|
|
89
|
+
},
|
|
75
90
|
"./bridge/lib/checkout-kit": {
|
|
76
91
|
"types": "./types/bridge/lib/checkout-kit.d.ts",
|
|
77
92
|
"import": "./dist/bridge/lib/checkout-kit.mjs",
|
|
@@ -192,6 +207,11 @@
|
|
|
192
207
|
"import": "./dist/dashboard/campaign-form.mjs",
|
|
193
208
|
"default": "./dist/dashboard/campaign-form.js"
|
|
194
209
|
},
|
|
210
|
+
"./dashboard/campaign-share": {
|
|
211
|
+
"types": "./types/dashboard/campaign-share.d.ts",
|
|
212
|
+
"import": "./dist/dashboard/campaign-share.mjs",
|
|
213
|
+
"default": "./dist/dashboard/campaign-share.js"
|
|
214
|
+
},
|
|
195
215
|
"./dashboard/card-affiliate": {
|
|
196
216
|
"types": "./types/dashboard/card-affiliate.d.ts",
|
|
197
217
|
"import": "./dist/dashboard/card-affiliate.mjs",
|
|
@@ -327,6 +347,11 @@
|
|
|
327
347
|
"import": "./dist/dashboard/dropdown.mjs",
|
|
328
348
|
"default": "./dist/dashboard/dropdown.js"
|
|
329
349
|
},
|
|
350
|
+
"./dashboard/embed-stripe": {
|
|
351
|
+
"types": "./types/dashboard/embed-stripe.d.ts",
|
|
352
|
+
"import": "./dist/dashboard/embed-stripe.mjs",
|
|
353
|
+
"default": "./dist/dashboard/embed-stripe.js"
|
|
354
|
+
},
|
|
330
355
|
"./dashboard/form-action": {
|
|
331
356
|
"types": "./types/dashboard/form-action.d.ts",
|
|
332
357
|
"import": "./dist/dashboard/form-action.mjs",
|
|
@@ -477,6 +502,11 @@
|
|
|
477
502
|
"import": "./dist/dashboard/form-organization-campaign-draw.mjs",
|
|
478
503
|
"default": "./dist/dashboard/form-organization-campaign-draw.js"
|
|
479
504
|
},
|
|
505
|
+
"./dashboard/form-organization-campaign-field-birthday": {
|
|
506
|
+
"types": "./types/dashboard/form-organization-campaign-field-birthday.d.ts",
|
|
507
|
+
"import": "./dist/dashboard/form-organization-campaign-field-birthday.mjs",
|
|
508
|
+
"default": "./dist/dashboard/form-organization-campaign-field-birthday.js"
|
|
509
|
+
},
|
|
480
510
|
"./dashboard/form-organization-campaign-field-email": {
|
|
481
511
|
"types": "./types/dashboard/form-organization-campaign-field-email.d.ts",
|
|
482
512
|
"import": "./dist/dashboard/form-organization-campaign-field-email.mjs",
|
|
@@ -502,6 +532,11 @@
|
|
|
502
532
|
"import": "./dist/dashboard/form-organization-campaign-field-phone.mjs",
|
|
503
533
|
"default": "./dist/dashboard/form-organization-campaign-field-phone.js"
|
|
504
534
|
},
|
|
535
|
+
"./dashboard/form-organization-campaign-field-rating": {
|
|
536
|
+
"types": "./types/dashboard/form-organization-campaign-field-rating.d.ts",
|
|
537
|
+
"import": "./dist/dashboard/form-organization-campaign-field-rating.mjs",
|
|
538
|
+
"default": "./dist/dashboard/form-organization-campaign-field-rating.js"
|
|
539
|
+
},
|
|
505
540
|
"./dashboard/form-organization-campaign-field-remove": {
|
|
506
541
|
"types": "./types/dashboard/form-organization-campaign-field-remove.d.ts",
|
|
507
542
|
"import": "./dist/dashboard/form-organization-campaign-field-remove.mjs",
|
|
@@ -657,6 +692,11 @@
|
|
|
657
692
|
"import": "./dist/dashboard/form-organization-member.mjs",
|
|
658
693
|
"default": "./dist/dashboard/form-organization-member.js"
|
|
659
694
|
},
|
|
695
|
+
"./dashboard/form-organization-product": {
|
|
696
|
+
"types": "./types/dashboard/form-organization-product.d.ts",
|
|
697
|
+
"import": "./dist/dashboard/form-organization-product.mjs",
|
|
698
|
+
"default": "./dist/dashboard/form-organization-product.js"
|
|
699
|
+
},
|
|
660
700
|
"./dashboard/form-organization-segment": {
|
|
661
701
|
"types": "./types/dashboard/form-organization-segment.d.ts",
|
|
662
702
|
"import": "./dist/dashboard/form-organization-segment.mjs",
|
|
@@ -772,6 +812,11 @@
|
|
|
772
812
|
"import": "./dist/dashboard/input-font.mjs",
|
|
773
813
|
"default": "./dist/dashboard/input-font.js"
|
|
774
814
|
},
|
|
815
|
+
"./dashboard/input-gallery": {
|
|
816
|
+
"types": "./types/dashboard/input-gallery.d.ts",
|
|
817
|
+
"import": "./dist/dashboard/input-gallery.mjs",
|
|
818
|
+
"default": "./dist/dashboard/input-gallery.js"
|
|
819
|
+
},
|
|
775
820
|
"./dashboard/input-group-ai": {
|
|
776
821
|
"types": "./types/dashboard/input-group-ai.d.ts",
|
|
777
822
|
"import": "./dist/dashboard/input-group-ai.mjs",
|
|
@@ -872,11 +917,21 @@
|
|
|
872
917
|
"import": "./dist/dashboard/lib/overage.mjs",
|
|
873
918
|
"default": "./dist/dashboard/lib/overage.js"
|
|
874
919
|
},
|
|
920
|
+
"./dashboard/lib/products": {
|
|
921
|
+
"types": "./types/dashboard/lib/products.d.ts",
|
|
922
|
+
"import": "./dist/dashboard/lib/products.mjs",
|
|
923
|
+
"default": "./dist/dashboard/lib/products.js"
|
|
924
|
+
},
|
|
875
925
|
"./dashboard/lib/rail": {
|
|
876
926
|
"types": "./types/dashboard/lib/rail.d.ts",
|
|
877
927
|
"import": "./dist/dashboard/lib/rail.mjs",
|
|
878
928
|
"default": "./dist/dashboard/lib/rail.js"
|
|
879
929
|
},
|
|
930
|
+
"./dashboard/lib/settings-paths": {
|
|
931
|
+
"types": "./types/dashboard/lib/settings-paths.d.ts",
|
|
932
|
+
"import": "./dist/dashboard/lib/settings-paths.mjs",
|
|
933
|
+
"default": "./dist/dashboard/lib/settings-paths.js"
|
|
934
|
+
},
|
|
880
935
|
"./dashboard/lib/sms": {
|
|
881
936
|
"types": "./types/dashboard/lib/sms.d.ts",
|
|
882
937
|
"import": "./dist/dashboard/lib/sms.mjs",
|
|
@@ -997,6 +1052,11 @@
|
|
|
997
1052
|
"import": "./dist/dashboard/recharts.mjs",
|
|
998
1053
|
"default": "./dist/dashboard/recharts.js"
|
|
999
1054
|
},
|
|
1055
|
+
"./dashboard/shipping-rates": {
|
|
1056
|
+
"types": "./types/dashboard/shipping-rates.d.ts",
|
|
1057
|
+
"import": "./dist/dashboard/shipping-rates.mjs",
|
|
1058
|
+
"default": "./dist/dashboard/shipping-rates.js"
|
|
1059
|
+
},
|
|
1000
1060
|
"./dashboard/steps": {
|
|
1001
1061
|
"types": "./types/dashboard/steps.d.ts",
|
|
1002
1062
|
"import": "./dist/dashboard/steps.mjs",
|
|
@@ -1022,6 +1082,11 @@
|
|
|
1022
1082
|
"import": "./dist/dashboard/table.mjs",
|
|
1023
1083
|
"default": "./dist/dashboard/table.js"
|
|
1024
1084
|
},
|
|
1085
|
+
"./dashboard/template-buyer": {
|
|
1086
|
+
"types": "./types/dashboard/template-buyer.d.ts",
|
|
1087
|
+
"import": "./dist/dashboard/template-buyer.mjs",
|
|
1088
|
+
"default": "./dist/dashboard/template-buyer.js"
|
|
1089
|
+
},
|
|
1025
1090
|
"./dashboard/template-dashboard": {
|
|
1026
1091
|
"types": "./types/dashboard/template-dashboard.d.ts",
|
|
1027
1092
|
"import": "./dist/dashboard/template-dashboard.mjs",
|
|
@@ -1267,6 +1332,11 @@
|
|
|
1267
1332
|
"import": "./dist/icons/flag.mjs",
|
|
1268
1333
|
"default": "./dist/icons/flag.js"
|
|
1269
1334
|
},
|
|
1335
|
+
"./icons/flags": {
|
|
1336
|
+
"types": "./types/icons/flags.d.ts",
|
|
1337
|
+
"import": "./dist/icons/flags.mjs",
|
|
1338
|
+
"default": "./dist/icons/flags.js"
|
|
1339
|
+
},
|
|
1270
1340
|
"./icons/github": {
|
|
1271
1341
|
"types": "./types/icons/github.d.ts",
|
|
1272
1342
|
"import": "./dist/icons/github.mjs",
|
|
@@ -1767,6 +1837,11 @@
|
|
|
1767
1837
|
"import": "./dist/shared/loader.mjs",
|
|
1768
1838
|
"default": "./dist/shared/loader.js"
|
|
1769
1839
|
},
|
|
1840
|
+
"./shared/order-summary": {
|
|
1841
|
+
"types": "./types/shared/order-summary.d.ts",
|
|
1842
|
+
"import": "./dist/shared/order-summary.mjs",
|
|
1843
|
+
"default": "./dist/shared/order-summary.js"
|
|
1844
|
+
},
|
|
1770
1845
|
"./shared/overlay": {
|
|
1771
1846
|
"types": "./types/shared/overlay.d.ts",
|
|
1772
1847
|
"import": "./dist/shared/overlay.mjs",
|
|
@@ -1843,6 +1918,7 @@
|
|
|
1843
1918
|
"@hookform/resolvers": ">=3.1.1",
|
|
1844
1919
|
"@sentry/nextjs": ">=10.58.0",
|
|
1845
1920
|
"@shopify/checkout-kit": ">=4.0.0-alpha.4",
|
|
1921
|
+
"@stripe/connect-js": ">=3.5.0",
|
|
1846
1922
|
"@stripe/react-stripe-js": ">=3.9.0",
|
|
1847
1923
|
"@stripe/stripe-js": ">=3.3.0",
|
|
1848
1924
|
"@tanstack/react-query": ">=5.54.1",
|
|
@@ -1886,6 +1962,9 @@
|
|
|
1886
1962
|
"@shopify/checkout-kit": {
|
|
1887
1963
|
"optional": true
|
|
1888
1964
|
},
|
|
1965
|
+
"@stripe/connect-js": {
|
|
1966
|
+
"optional": true
|
|
1967
|
+
},
|
|
1889
1968
|
"@stripe/react-stripe-js": {
|
|
1890
1969
|
"optional": true
|
|
1891
1970
|
},
|
|
@@ -1954,7 +2033,7 @@
|
|
|
1954
2033
|
"@analytics/google-tag-manager": "0.5.5",
|
|
1955
2034
|
"@drawbridge/drawbridge-agents": "0.1.104",
|
|
1956
2035
|
"@drawbridge/drawbridge-telemetry": "0.0.19",
|
|
1957
|
-
"@drawbridge/drawbridge-utils": "0.0.
|
|
2036
|
+
"@drawbridge/drawbridge-utils": "0.0.240",
|
|
1958
2037
|
"@headlessui/react": "2.2.9",
|
|
1959
2038
|
"@hookform/resolvers": "3.1.1",
|
|
1960
2039
|
"@sentry/nextjs": "10.58.0",
|
|
@@ -1962,8 +2041,9 @@
|
|
|
1962
2041
|
"@storybook/addon-docs": "10.6.2",
|
|
1963
2042
|
"@storybook/addon-vitest": "10.6.2",
|
|
1964
2043
|
"@storybook/nextjs-vite": "10.6.2",
|
|
1965
|
-
"@stripe/
|
|
1966
|
-
"@stripe/stripe-js": "
|
|
2044
|
+
"@stripe/connect-js": "3.5.0",
|
|
2045
|
+
"@stripe/react-stripe-js": "7.0.1",
|
|
2046
|
+
"@stripe/stripe-js": "10.2.1",
|
|
1967
2047
|
"@tailwindcss/vite": "4.3.3",
|
|
1968
2048
|
"@tanstack/react-query": "5.54.1",
|
|
1969
2049
|
"@tanstack/react-query-devtools": "5.54.1",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import type { BrandStyle } from '../styles';
|
|
3
|
+
import type { Cart } from './lib/cart';
|
|
4
|
+
|
|
5
|
+
// The cart drawer on the right of a campaign page: the cart, or the on-page
|
|
6
|
+
// checkout paying `pay`.
|
|
7
|
+
export interface CartDrawerProps {
|
|
8
|
+
button?: ReactNode;
|
|
9
|
+
cart?: Cart | null;
|
|
10
|
+
cut?: string[];
|
|
11
|
+
fonts?: { body?: Record<string, unknown> };
|
|
12
|
+
onBack?: () => void;
|
|
13
|
+
onCart?: ( cart: Cart & { cut?: string[] } ) => void;
|
|
14
|
+
onCheckout?: ( cart: Cart ) => void;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
onLineRemove?: ( id: string ) => unknown;
|
|
17
|
+
onLineUpdate?: ( id: string, quantity: number ) => unknown;
|
|
18
|
+
// A Recommended row opens its product over the drawer.
|
|
19
|
+
onOpenProduct?: ( product: any ) => void;
|
|
20
|
+
onPaid?: () => void;
|
|
21
|
+
open: boolean;
|
|
22
|
+
params?: { slug?: string; subdomain?: string; token?: string | null };
|
|
23
|
+
pay?: Cart | null;
|
|
24
|
+
preview?: boolean;
|
|
25
|
+
style?: BrandStyle;
|
|
26
|
+
tracking?: { track: ( event: unknown ) => void };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare const CartDrawer: FC<CartDrawerProps>;
|
|
30
|
+
|
|
31
|
+
export default CartDrawer;
|
package/types/bridge/fields.d.ts
CHANGED
|
@@ -27,8 +27,20 @@ export interface FieldProps {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// A Section asks nothing; a skill testing question is its question with a
|
|
30
|
-
// number input ( Pistachio ).
|
|
31
|
-
|
|
30
|
+
// number input ( Pistachio ). A Birthday field is Month, Day and Year, its
|
|
31
|
+
// answer "1990-05-14" ( Gelato ).
|
|
32
|
+
// Multiple choice ( radio ), Multi-select ( checkbox, answering the ticked
|
|
33
|
+
// options' text ) and Rating ( a number from 1 to attributes.max ).
|
|
34
|
+
export declare const components: Record<'birthday' | 'checkbox' | 'email' | 'name' | 'number' | 'phone' | 'radio' | 'rating' | 'section' | 'select' | 'skill' | 'text' | 'textarea', ComponentType<FieldProps>>;
|
|
35
|
+
|
|
36
|
+
// A Multi-select's ticked options after ticking or unticking `option`, in the
|
|
37
|
+
// field's own order.
|
|
38
|
+
export declare const tick: ( options: Array<{ option?: string }> | undefined, value: unknown, option: string ) => string[];
|
|
39
|
+
|
|
40
|
+
// The Birthday field's boxes into its answer, "1990-05-14" ( '' when all are
|
|
41
|
+
// blank ), and an answer back into the boxes.
|
|
42
|
+
export declare const birthdayValue: ( parts?: { day?: string; month?: string; year?: string } ) => string;
|
|
43
|
+
export declare const birthdayInputs: ( value?: string | null ) => { day: string; month: string; year: string };
|
|
32
44
|
|
|
33
45
|
// The label with " *" after it, unless attributes.required is false.
|
|
34
46
|
export declare const starred: ( field?: Field ) => string | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import type { BrandStyle } from '../styles';
|
|
3
|
+
import type { Cart } from './lib/cart';
|
|
4
|
+
|
|
5
|
+
// The checkout for Drawbridge products, on Stripe's Checkout elements, for a
|
|
6
|
+
// cart the api keeps. On a preview, Pay stays off.
|
|
7
|
+
export interface FormSubdomainCheckoutProps {
|
|
8
|
+
back: () => void;
|
|
9
|
+
button?: ReactNode;
|
|
10
|
+
cart: Cart;
|
|
11
|
+
onCart?: ( cart: Cart & { cut?: string[] } ) => void;
|
|
12
|
+
onPaid: () => void;
|
|
13
|
+
params?: { slug?: string; subdomain?: string; token?: string | null };
|
|
14
|
+
preview?: boolean;
|
|
15
|
+
style?: BrandStyle;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const FormSubdomainCheckout: FC<FormSubdomainCheckoutProps>;
|
|
19
|
+
|
|
20
|
+
export default FormSubdomainCheckout;
|
|
@@ -7,6 +7,7 @@ export interface CartLine {
|
|
|
7
7
|
currency?: string;
|
|
8
8
|
id: string;
|
|
9
9
|
image?: string;
|
|
10
|
+
left?: number | null;
|
|
10
11
|
price?: number | string;
|
|
11
12
|
productTitle?: string;
|
|
12
13
|
quantity?: number;
|
|
@@ -27,11 +28,13 @@ export interface FormSubdomainProductProps {
|
|
|
27
28
|
|
|
28
29
|
export interface FormSubdomainCartProps {
|
|
29
30
|
button?: ReactNode;
|
|
30
|
-
cart?: { checkoutUrl?: string; lines?: CartLine[]; [ key: string ]: unknown };
|
|
31
|
-
//
|
|
32
|
-
|
|
31
|
+
cart?: { checkout?: 'shopify' | 'stripe'; checkoutUrl?: string | null; lines?: CartLine[]; [ key: string ]: unknown };
|
|
32
|
+
// The lines checkout cut back to what is left: each reads "Only [n] left".
|
|
33
|
+
cut?: string[];
|
|
33
34
|
onLineRemove?: ( id: string ) => unknown;
|
|
34
35
|
onLineUpdate?: ( id: string, quantity: number ) => unknown;
|
|
36
|
+
// A Recommended row opens its product over the cart.
|
|
37
|
+
onOpenProduct?: ( product: any ) => void;
|
|
35
38
|
onSuccess?: ( response: { result: unknown } ) => void;
|
|
36
39
|
style?: BrandStyle;
|
|
37
40
|
tracking?: Tracking;
|
|
@@ -39,3 +42,24 @@ export interface FormSubdomainCartProps {
|
|
|
39
42
|
|
|
40
43
|
export declare const FormSubdomainProduct: ComponentType<FormSubdomainProductProps>;
|
|
41
44
|
export declare const FormSubdomainCart: ComponentType<FormSubdomainCartProps>;
|
|
45
|
+
|
|
46
|
+
// One item as the cart draws it: a line or a recommended product.
|
|
47
|
+
export interface CartItemProps {
|
|
48
|
+
aside?: ReactNode;
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
currency?: string | null;
|
|
51
|
+
image?: string | null;
|
|
52
|
+
price?: number | string | null;
|
|
53
|
+
subtitle?: string | null;
|
|
54
|
+
title?: string | null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare const CartItem: ComponentType<CartItemProps>;
|
|
58
|
+
|
|
59
|
+
export interface CartRecommendedProps {
|
|
60
|
+
items?: any[];
|
|
61
|
+
onOpen?: ( product: any ) => void;
|
|
62
|
+
style?: BrandStyle;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare const CartRecommended: ComponentType<CartRecommendedProps>;
|
|
@@ -46,12 +46,17 @@ export interface FormSubdomainProps {
|
|
|
46
46
|
onSuccess?: ( response: any ) => void;
|
|
47
47
|
params?: { slug?: string; subdomain?: string };
|
|
48
48
|
preview?: boolean;
|
|
49
|
+
// The dashboard's own previews: no Preview mode line.
|
|
50
|
+
quiet?: boolean;
|
|
49
51
|
// False while the campaign's giveaway is off: the Terms line about winning is left out.
|
|
50
52
|
giveaway?: boolean;
|
|
51
53
|
// False while texts are off on the platform: no SMS consent.
|
|
52
54
|
sms?: boolean;
|
|
53
55
|
// The step the form opens at ( a dashboard preview ), 0 by default.
|
|
54
56
|
step?: number;
|
|
57
|
+
// An agreement open over the form, and the location step drawn still ( the Form page's preview ).
|
|
58
|
+
read?: string | null;
|
|
59
|
+
still?: boolean;
|
|
55
60
|
style?: BrandStyle;
|
|
56
61
|
// The last step's button text, "Submit" when blank.
|
|
57
62
|
submit?: string | null;
|
|
@@ -71,6 +76,8 @@ export interface FormSubdomainAgeProps {
|
|
|
71
76
|
callback?: ( answer: { age: number; birthday: string } ) => void;
|
|
72
77
|
disabled?: boolean;
|
|
73
78
|
preview?: boolean;
|
|
79
|
+
// The dashboard's own previews: no Preview mode line.
|
|
80
|
+
quiet?: boolean;
|
|
74
81
|
style?: BrandStyle;
|
|
75
82
|
values?: AgeSettings;
|
|
76
83
|
}
|
|
@@ -111,6 +118,8 @@ export interface FormSubdomainSubmissionProps {
|
|
|
111
118
|
token?: string;
|
|
112
119
|
};
|
|
113
120
|
preview?: boolean;
|
|
121
|
+
// The dashboard's own previews: no Preview mode line.
|
|
122
|
+
quiet?: boolean;
|
|
114
123
|
slug?: string;
|
|
115
124
|
style?: BrandStyle;
|
|
116
125
|
subdomain?: string;
|
|
@@ -122,6 +131,8 @@ export interface FormSubdomainMessageProps {
|
|
|
122
131
|
button?: ReactNode;
|
|
123
132
|
message?: ReactNode;
|
|
124
133
|
preview?: boolean;
|
|
134
|
+
// The dashboard's own previews: no Preview mode line.
|
|
135
|
+
quiet?: boolean;
|
|
125
136
|
style?: BrandStyle;
|
|
126
137
|
svg?: ComponentType<{ className?: string; 'aria-hidden'?: boolean }>;
|
|
127
138
|
title?: ReactNode;
|
|
@@ -133,6 +144,8 @@ export interface FormSubdomainGeocodeProps {
|
|
|
133
144
|
callback?: ( response: unknown ) => void;
|
|
134
145
|
disabled?: boolean;
|
|
135
146
|
preview?: boolean;
|
|
147
|
+
// The dashboard's own previews: no Preview mode line.
|
|
148
|
+
quiet?: boolean;
|
|
136
149
|
// Draws the step as the browser asks, asking nothing ( the dashboard's Form page preview ).
|
|
137
150
|
still?: boolean;
|
|
138
151
|
style?: Record<string, unknown> | null;
|
|
@@ -9,3 +9,8 @@ export declare const ageFor: ( year: string | number | null | undefined, current
|
|
|
9
9
|
// Left as `any` — a yup schema is a chain object this package cannot type
|
|
10
10
|
// without the real 'yup' library's types (see ../../shared/lib/yup.d.ts).
|
|
11
11
|
export declare const ageGateSchema: ( values: { min?: number; max?: number } | null | undefined, currentYear?: number ) => any;
|
|
12
|
+
|
|
13
|
+
// @story fields/birthday
|
|
14
|
+
// The form's answers with the age step's date ( "5/14/1990" ) under the
|
|
15
|
+
// Birthday field's id as "1990-05-14", unless it is already answered.
|
|
16
|
+
export declare const ageBirthday: ( fields: { sections?: Array<{ fields?: Array<{ id?: string; slug?: string }> }> } | null | undefined, answers: Record<string, unknown> | undefined, birthday?: string ) => Record<string, unknown>;
|