@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
|
@@ -53,15 +53,12 @@ var import_entry = require("./lib/entry");
|
|
|
53
53
|
var import_motion = require("../shared/lib/motion");
|
|
54
54
|
const TemplateModal = ({
|
|
55
55
|
buttons,
|
|
56
|
-
cart,
|
|
57
56
|
checkout,
|
|
58
57
|
data,
|
|
59
58
|
fonts,
|
|
60
59
|
iframe,
|
|
61
60
|
modal,
|
|
62
61
|
onAddToCart,
|
|
63
|
-
onCartLineRemove,
|
|
64
|
-
onCartLineUpdate,
|
|
65
62
|
openCheckout,
|
|
66
63
|
panel,
|
|
67
64
|
params,
|
|
@@ -79,27 +76,6 @@ const TemplateModal = ({
|
|
|
79
76
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
80
77
|
const agreements = (data == null ? void 0 : data.agreements) || {};
|
|
81
78
|
switch (panel == null ? void 0 : panel.name) {
|
|
82
|
-
case "cart":
|
|
83
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
-
import_form_subdomain_shop_modal.FormSubdomainCart,
|
|
85
|
-
{
|
|
86
|
-
...{
|
|
87
|
-
button: buttons.close("cart"),
|
|
88
|
-
cart,
|
|
89
|
-
onLineRemove: onCartLineRemove,
|
|
90
|
-
onLineUpdate: onCartLineUpdate,
|
|
91
|
-
onSuccess: ({ result }) => {
|
|
92
|
-
tracking.track({
|
|
93
|
-
name: "shop-checkout",
|
|
94
|
-
data: result
|
|
95
|
-
});
|
|
96
|
-
openCheckout(result.checkoutUrl);
|
|
97
|
-
},
|
|
98
|
-
style,
|
|
99
|
-
tracking
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
79
|
case "enter":
|
|
104
80
|
if (!(0, import_entry.formOn)(data)) return null;
|
|
105
81
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
@@ -139,11 +115,18 @@ const TemplateModal = ({
|
|
|
139
115
|
params,
|
|
140
116
|
sms: data == null ? void 0 : data.sms,
|
|
141
117
|
preview,
|
|
118
|
+
quiet: iframe,
|
|
119
|
+
// @story campaigns/form-page
|
|
120
|
+
// The Form page's preview opens the form at its step, or an agreement, with the location step still.
|
|
121
|
+
read: panel == null ? void 0 : panel.read,
|
|
122
|
+
step: panel == null ? void 0 : panel.step,
|
|
123
|
+
still: (panel == null ? void 0 : panel.step) !== void 0,
|
|
142
124
|
style,
|
|
143
125
|
submit: (0, import_entry.copy)(data, "submit"),
|
|
144
126
|
tracking
|
|
145
127
|
}
|
|
146
|
-
}
|
|
128
|
+
},
|
|
129
|
+
"form-" + ((panel == null ? void 0 : panel.step) ?? "") + "-" + ((panel == null ? void 0 : panel.read) || "")
|
|
147
130
|
),
|
|
148
131
|
buttons.recaptcha()
|
|
149
132
|
] });
|
|
@@ -474,60 +457,39 @@ const TemplateModal = ({
|
|
|
474
457
|
}
|
|
475
458
|
)
|
|
476
459
|
] });
|
|
460
|
+
// @story checkout/cart
|
|
461
|
+
// A product in its own window, which shows no cart of its own: Add to
|
|
462
|
+
// cart closes it onto the cart drawer ( template-layout.js ).
|
|
477
463
|
case "product":
|
|
478
464
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
479
|
-
import_form_subdomain_shop_modal.
|
|
465
|
+
import_form_subdomain_shop_modal.FormSubdomainProduct,
|
|
480
466
|
{
|
|
481
467
|
...{
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
468
|
+
back: (_u = panel.data) == null ? void 0 : _u.back,
|
|
469
|
+
button: buttons.close("product"),
|
|
470
|
+
onAddToCart: async (item) => {
|
|
471
|
+
var _a3, _b3, _c3, _d3, _e3, _f3;
|
|
472
|
+
await onAddToCart(item);
|
|
473
|
+
const productSlug = (_b3 = (_a3 = item.product) == null ? void 0 : _a3.title) == null ? void 0 : _b3.toLowerCase().replace(/\s+/g, "-");
|
|
474
|
+
const isDefaultVariant = !((_c3 = item.variant) == null ? void 0 : _c3.title) || ((_d3 = item.variant) == null ? void 0 : _d3.title) === "Default Title";
|
|
475
|
+
if (isDefaultVariant) {
|
|
476
|
+
tracking.track({ name: "product-" + productSlug + "-add-cart" });
|
|
477
|
+
} else {
|
|
478
|
+
const variantSlug = (_f3 = (_e3 = item.variant) == null ? void 0 : _e3.title) == null ? void 0 : _f3.toLowerCase().replace(/\s+/g, "-");
|
|
479
|
+
tracking.track({ name: "product-" + productSlug + "-" + variantSlug + "-add-cart" });
|
|
480
|
+
}
|
|
481
|
+
;
|
|
492
482
|
},
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
var _a3, _b3;
|
|
498
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
499
|
-
import_form_subdomain_shop_modal.FormSubdomainProduct,
|
|
500
|
-
{
|
|
501
|
-
...{
|
|
502
|
-
back: (_a3 = panel.data) == null ? void 0 : _a3.back,
|
|
503
|
-
button: buttons.close("product"),
|
|
504
|
-
onAddToCart: async (item) => {
|
|
505
|
-
var _a4, _b4, _c3, _d3, _e3, _f3;
|
|
506
|
-
await onAddToCart(item);
|
|
507
|
-
const productSlug = (_b4 = (_a4 = item.product) == null ? void 0 : _a4.title) == null ? void 0 : _b4.toLowerCase().replace(/\s+/g, "-");
|
|
508
|
-
const isDefaultVariant = !((_c3 = item.variant) == null ? void 0 : _c3.title) || ((_d3 = item.variant) == null ? void 0 : _d3.title) === "Default Title";
|
|
509
|
-
if (isDefaultVariant) {
|
|
510
|
-
tracking.track({ name: "product-" + productSlug + "-add-cart" });
|
|
511
|
-
} else {
|
|
512
|
-
const variantSlug = (_f3 = (_e3 = item.variant) == null ? void 0 : _e3.title) == null ? void 0 : _f3.toLowerCase().replace(/\s+/g, "-");
|
|
513
|
-
tracking.track({ name: "product-" + productSlug + "-" + variantSlug + "-add-cart" });
|
|
514
|
-
}
|
|
515
|
-
;
|
|
516
|
-
setShow(true);
|
|
517
|
-
},
|
|
518
|
-
onError: ({ message }) => setPanel({
|
|
519
|
-
name: "error",
|
|
520
|
-
data: {
|
|
521
|
-
message
|
|
522
|
-
}
|
|
523
|
-
}),
|
|
524
|
-
checkout,
|
|
525
|
-
tracking,
|
|
526
|
-
product: (_b3 = panel.data) == null ? void 0 : _b3.product,
|
|
527
|
-
style
|
|
528
|
-
}
|
|
483
|
+
onError: ({ message }) => setPanel({
|
|
484
|
+
name: "error",
|
|
485
|
+
data: {
|
|
486
|
+
message
|
|
529
487
|
}
|
|
530
|
-
)
|
|
488
|
+
}),
|
|
489
|
+
checkout,
|
|
490
|
+
tracking,
|
|
491
|
+
product: (_v = panel.data) == null ? void 0 : _v.product,
|
|
492
|
+
style
|
|
531
493
|
}
|
|
532
494
|
}
|
|
533
495
|
);
|
|
@@ -582,6 +544,9 @@ const TemplateModal = ({
|
|
|
582
544
|
...{
|
|
583
545
|
button: buttons.close("submission"),
|
|
584
546
|
checkout,
|
|
547
|
+
// @story campaigns/form-page
|
|
548
|
+
// The dashboard's own previews show no Preview mode line ( Darren, 2026-11-21 ).
|
|
549
|
+
quiet: iframe,
|
|
585
550
|
tracking,
|
|
586
551
|
...panel.data
|
|
587
552
|
}
|
|
@@ -591,7 +556,7 @@ const TemplateModal = ({
|
|
|
591
556
|
return null;
|
|
592
557
|
}
|
|
593
558
|
},
|
|
594
|
-
[buttons,
|
|
559
|
+
[buttons, checkout, data, iframe, onAddToCart, openCheckout, panel, params, preview, style, submission, tracking]
|
|
595
560
|
);
|
|
596
561
|
return (
|
|
597
562
|
// reCAPTCHA stays scoped to the modal — this whole module is
|
|
@@ -8,7 +8,7 @@ import FormSubdomainHeader from "./form-subdomain-header.mjs";
|
|
|
8
8
|
import FormSubdomainIssue from "./form-subdomain-issue.mjs";
|
|
9
9
|
import FormSubdomainPrize from "./form-subdomain-prize.mjs";
|
|
10
10
|
import ProviderRecaptcha from "../shared/provider-recaptcha.mjs";
|
|
11
|
-
import {
|
|
11
|
+
import { FormSubdomainProduct } from "./form-subdomain-shop-modal.mjs";
|
|
12
12
|
import TemplateSubdomainLink from "./template-subdomain-link.mjs";
|
|
13
13
|
import FormSubdomainMissions from "./form-subdomain-missions.mjs";
|
|
14
14
|
import Tabs from "../shared/tabs.mjs";
|
|
@@ -21,15 +21,12 @@ import { afterOrder, agreementName, agreementTitles, copy, formOn, giveawayOn, m
|
|
|
21
21
|
import { motion } from "../shared/lib/motion.mjs";
|
|
22
22
|
const TemplateModal = ({
|
|
23
23
|
buttons,
|
|
24
|
-
cart,
|
|
25
24
|
checkout,
|
|
26
25
|
data,
|
|
27
26
|
fonts,
|
|
28
27
|
iframe,
|
|
29
28
|
modal,
|
|
30
29
|
onAddToCart,
|
|
31
|
-
onCartLineRemove,
|
|
32
|
-
onCartLineUpdate,
|
|
33
30
|
openCheckout,
|
|
34
31
|
panel,
|
|
35
32
|
params,
|
|
@@ -47,27 +44,6 @@ const TemplateModal = ({
|
|
|
47
44
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
48
45
|
const agreements = (data == null ? void 0 : data.agreements) || {};
|
|
49
46
|
switch (panel == null ? void 0 : panel.name) {
|
|
50
|
-
case "cart":
|
|
51
|
-
return /* @__PURE__ */ jsx(
|
|
52
|
-
FormSubdomainCart,
|
|
53
|
-
{
|
|
54
|
-
...{
|
|
55
|
-
button: buttons.close("cart"),
|
|
56
|
-
cart,
|
|
57
|
-
onLineRemove: onCartLineRemove,
|
|
58
|
-
onLineUpdate: onCartLineUpdate,
|
|
59
|
-
onSuccess: ({ result }) => {
|
|
60
|
-
tracking.track({
|
|
61
|
-
name: "shop-checkout",
|
|
62
|
-
data: result
|
|
63
|
-
});
|
|
64
|
-
openCheckout(result.checkoutUrl);
|
|
65
|
-
},
|
|
66
|
-
style,
|
|
67
|
-
tracking
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
47
|
case "enter":
|
|
72
48
|
if (!formOn(data)) return null;
|
|
73
49
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -107,11 +83,18 @@ const TemplateModal = ({
|
|
|
107
83
|
params,
|
|
108
84
|
sms: data == null ? void 0 : data.sms,
|
|
109
85
|
preview,
|
|
86
|
+
quiet: iframe,
|
|
87
|
+
// @story campaigns/form-page
|
|
88
|
+
// The Form page's preview opens the form at its step, or an agreement, with the location step still.
|
|
89
|
+
read: panel == null ? void 0 : panel.read,
|
|
90
|
+
step: panel == null ? void 0 : panel.step,
|
|
91
|
+
still: (panel == null ? void 0 : panel.step) !== void 0,
|
|
110
92
|
style,
|
|
111
93
|
submit: copy(data, "submit"),
|
|
112
94
|
tracking
|
|
113
95
|
}
|
|
114
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"form-" + ((panel == null ? void 0 : panel.step) ?? "") + "-" + ((panel == null ? void 0 : panel.read) || "")
|
|
115
98
|
),
|
|
116
99
|
buttons.recaptcha()
|
|
117
100
|
] });
|
|
@@ -442,60 +425,39 @@ const TemplateModal = ({
|
|
|
442
425
|
}
|
|
443
426
|
)
|
|
444
427
|
] });
|
|
428
|
+
// @story checkout/cart
|
|
429
|
+
// A product in its own window, which shows no cart of its own: Add to
|
|
430
|
+
// cart closes it onto the cart drawer ( template-layout.js ).
|
|
445
431
|
case "product":
|
|
446
432
|
return /* @__PURE__ */ jsx(
|
|
447
|
-
|
|
433
|
+
FormSubdomainProduct,
|
|
448
434
|
{
|
|
449
435
|
...{
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
436
|
+
back: (_u = panel.data) == null ? void 0 : _u.back,
|
|
437
|
+
button: buttons.close("product"),
|
|
438
|
+
onAddToCart: async (item) => {
|
|
439
|
+
var _a3, _b3, _c3, _d3, _e3, _f3;
|
|
440
|
+
await onAddToCart(item);
|
|
441
|
+
const productSlug = (_b3 = (_a3 = item.product) == null ? void 0 : _a3.title) == null ? void 0 : _b3.toLowerCase().replace(/\s+/g, "-");
|
|
442
|
+
const isDefaultVariant = !((_c3 = item.variant) == null ? void 0 : _c3.title) || ((_d3 = item.variant) == null ? void 0 : _d3.title) === "Default Title";
|
|
443
|
+
if (isDefaultVariant) {
|
|
444
|
+
tracking.track({ name: "product-" + productSlug + "-add-cart" });
|
|
445
|
+
} else {
|
|
446
|
+
const variantSlug = (_f3 = (_e3 = item.variant) == null ? void 0 : _e3.title) == null ? void 0 : _f3.toLowerCase().replace(/\s+/g, "-");
|
|
447
|
+
tracking.track({ name: "product-" + productSlug + "-" + variantSlug + "-add-cart" });
|
|
448
|
+
}
|
|
449
|
+
;
|
|
460
450
|
},
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
var _a3, _b3;
|
|
466
|
-
return /* @__PURE__ */ jsx(
|
|
467
|
-
FormSubdomainProduct,
|
|
468
|
-
{
|
|
469
|
-
...{
|
|
470
|
-
back: (_a3 = panel.data) == null ? void 0 : _a3.back,
|
|
471
|
-
button: buttons.close("product"),
|
|
472
|
-
onAddToCart: async (item) => {
|
|
473
|
-
var _a4, _b4, _c3, _d3, _e3, _f3;
|
|
474
|
-
await onAddToCart(item);
|
|
475
|
-
const productSlug = (_b4 = (_a4 = item.product) == null ? void 0 : _a4.title) == null ? void 0 : _b4.toLowerCase().replace(/\s+/g, "-");
|
|
476
|
-
const isDefaultVariant = !((_c3 = item.variant) == null ? void 0 : _c3.title) || ((_d3 = item.variant) == null ? void 0 : _d3.title) === "Default Title";
|
|
477
|
-
if (isDefaultVariant) {
|
|
478
|
-
tracking.track({ name: "product-" + productSlug + "-add-cart" });
|
|
479
|
-
} else {
|
|
480
|
-
const variantSlug = (_f3 = (_e3 = item.variant) == null ? void 0 : _e3.title) == null ? void 0 : _f3.toLowerCase().replace(/\s+/g, "-");
|
|
481
|
-
tracking.track({ name: "product-" + productSlug + "-" + variantSlug + "-add-cart" });
|
|
482
|
-
}
|
|
483
|
-
;
|
|
484
|
-
setShow(true);
|
|
485
|
-
},
|
|
486
|
-
onError: ({ message }) => setPanel({
|
|
487
|
-
name: "error",
|
|
488
|
-
data: {
|
|
489
|
-
message
|
|
490
|
-
}
|
|
491
|
-
}),
|
|
492
|
-
checkout,
|
|
493
|
-
tracking,
|
|
494
|
-
product: (_b3 = panel.data) == null ? void 0 : _b3.product,
|
|
495
|
-
style
|
|
496
|
-
}
|
|
451
|
+
onError: ({ message }) => setPanel({
|
|
452
|
+
name: "error",
|
|
453
|
+
data: {
|
|
454
|
+
message
|
|
497
455
|
}
|
|
498
|
-
)
|
|
456
|
+
}),
|
|
457
|
+
checkout,
|
|
458
|
+
tracking,
|
|
459
|
+
product: (_v = panel.data) == null ? void 0 : _v.product,
|
|
460
|
+
style
|
|
499
461
|
}
|
|
500
462
|
}
|
|
501
463
|
);
|
|
@@ -550,6 +512,9 @@ const TemplateModal = ({
|
|
|
550
512
|
...{
|
|
551
513
|
button: buttons.close("submission"),
|
|
552
514
|
checkout,
|
|
515
|
+
// @story campaigns/form-page
|
|
516
|
+
// The dashboard's own previews show no Preview mode line ( Darren, 2026-11-21 ).
|
|
517
|
+
quiet: iframe,
|
|
553
518
|
tracking,
|
|
554
519
|
...panel.data
|
|
555
520
|
}
|
|
@@ -559,7 +524,7 @@ const TemplateModal = ({
|
|
|
559
524
|
return null;
|
|
560
525
|
}
|
|
561
526
|
},
|
|
562
|
-
[buttons,
|
|
527
|
+
[buttons, checkout, data, iframe, onAddToCart, openCheckout, panel, params, preview, style, submission, tracking]
|
|
563
528
|
);
|
|
564
529
|
return (
|
|
565
530
|
// reCAPTCHA stays scoped to the modal — this whole module is
|
package/dist/dashboard/avatar.js
CHANGED
|
@@ -154,9 +154,8 @@ const Avatars = ({
|
|
|
154
154
|
{
|
|
155
155
|
...{
|
|
156
156
|
href,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
157
|
+
// Impeccable audit, 2026-11-21: the plus alone is named for what it opens.
|
|
158
|
+
title: rest > 0 ? rest + " more" : "Members"
|
|
160
159
|
},
|
|
161
160
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
162
161
|
"span",
|
|
@@ -121,9 +121,8 @@ const Avatars = ({
|
|
|
121
121
|
{
|
|
122
122
|
...{
|
|
123
123
|
href,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
124
|
+
// Impeccable audit, 2026-11-21: the plus alone is named for what it opens.
|
|
125
|
+
title: rest > 0 ? rest + " more" : "Members"
|
|
127
126
|
},
|
|
128
127
|
children: /* @__PURE__ */ jsx(
|
|
129
128
|
"span",
|
|
@@ -241,7 +241,7 @@ const useSubscriptionActions = (params) => {
|
|
|
241
241
|
},
|
|
242
242
|
children: [
|
|
243
243
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Your subscription will cancel at the end of your current billing period. You'll keep all paid features until then." }),
|
|
244
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "After it cancels,
|
|
244
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "After it cancels, you're on Free and workflow steps Free doesn't include stop running. Your campaigns, pages, brands and prizes will be drafted. They won't be deleted, but you'll need to reactivate each one if you re-subscribe." }),
|
|
245
245
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Your subdomain and page addresses go back to their short IDs, your ads are drafted and your members lose access." }),
|
|
246
246
|
smsNumber && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
247
247
|
"Your SMS number, ",
|
|
@@ -205,7 +205,7 @@ const useSubscriptionActions = (params) => {
|
|
|
205
205
|
},
|
|
206
206
|
children: [
|
|
207
207
|
/* @__PURE__ */ jsx("p", { children: "Your subscription will cancel at the end of your current billing period. You'll keep all paid features until then." }),
|
|
208
|
-
/* @__PURE__ */ jsx("p", { children: "After it cancels,
|
|
208
|
+
/* @__PURE__ */ jsx("p", { children: "After it cancels, you're on Free and workflow steps Free doesn't include stop running. Your campaigns, pages, brands and prizes will be drafted. They won't be deleted, but you'll need to reactivate each one if you re-subscribe." }),
|
|
209
209
|
/* @__PURE__ */ jsx("p", { children: "Your subdomain and page addresses go back to their short IDs, your ads are drafted and your members lose access." }),
|
|
210
210
|
smsNumber && /* @__PURE__ */ jsxs("p", { children: [
|
|
211
211
|
"Your SMS number, ",
|