@drawbridge/components 0.1.34 → 0.1.36
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/components/styles.css +68 -355
- package/dist/advertisement.js +15 -20
- package/dist/advertisement.mjs +15 -20
- package/dist/bridge/advertisements.js +4 -2
- package/dist/bridge/advertisements.mjs +5 -3
- package/dist/bridge/fields.js +89 -6
- package/dist/bridge/fields.mjs +89 -7
- package/dist/bridge/form-subdomain-agreement.js +165 -0
- package/dist/bridge/form-subdomain-agreement.mjs +132 -0
- package/dist/bridge/form-subdomain-embed.js +5 -1
- package/dist/bridge/form-subdomain-embed.mjs +5 -1
- package/dist/bridge/form-subdomain-header.js +21 -14
- package/dist/bridge/form-subdomain-header.mjs +20 -14
- package/dist/bridge/form-subdomain-issue.js +17 -8
- package/dist/bridge/form-subdomain-issue.mjs +17 -8
- package/dist/bridge/form-subdomain-missions.js +58 -52
- package/dist/bridge/form-subdomain-missions.mjs +60 -54
- package/dist/bridge/form-subdomain.js +223 -94
- package/dist/bridge/form-subdomain.mjs +222 -96
- package/dist/bridge/lib/entry.js +61 -6
- package/dist/bridge/lib/entry.mjs +51 -5
- package/dist/bridge/lib/order.js +23 -0
- package/dist/bridge/lib/order.mjs +20 -0
- package/dist/bridge/template-layout.js +5 -2
- package/dist/bridge/template-layout.mjs +6 -3
- package/dist/bridge/template-modal.js +82 -15
- package/dist/bridge/template-modal.mjs +83 -16
- package/dist/bridge/template-subdomain-gallery.js +126 -75
- package/dist/bridge/template-subdomain-gallery.mjs +122 -75
- package/dist/bridge/template-subdomain.js +16 -14
- package/dist/bridge/template-subdomain.mjs +17 -15
- package/dist/dashboard/avatar.js +5 -0
- package/dist/dashboard/avatar.mjs +5 -0
- package/dist/dashboard/campaign-form.js +1798 -0
- package/dist/dashboard/campaign-form.mjs +1769 -0
- package/dist/dashboard/card-affiliate.js +3 -2
- package/dist/dashboard/card-affiliate.mjs +3 -2
- package/dist/dashboard/card-campaign-agreement.js +172 -0
- package/dist/dashboard/card-campaign-agreement.mjs +139 -0
- package/dist/dashboard/card-campaign-switch.js +34 -9
- package/dist/dashboard/card-campaign-switch.mjs +32 -8
- package/dist/dashboard/card-order.js +6 -14
- package/dist/dashboard/card-order.mjs +6 -14
- package/dist/dashboard/card-section.js +69 -26
- package/dist/dashboard/card-section.mjs +65 -26
- package/dist/dashboard/card-shortcut.js +181 -0
- package/dist/dashboard/card-shortcut.mjs +152 -0
- package/dist/dashboard/card-tile.js +3 -35
- package/dist/dashboard/card-tile.mjs +3 -34
- package/dist/dashboard/document-blocks.js +305 -0
- package/dist/dashboard/document-blocks.mjs +270 -0
- package/dist/dashboard/drawer-subscription.js +52 -14
- package/dist/dashboard/drawer-subscription.mjs +52 -14
- package/dist/dashboard/drawer.js +20 -3
- package/dist/dashboard/drawer.mjs +21 -4
- package/dist/dashboard/dropdown.js +6 -2
- package/dist/dashboard/dropdown.mjs +6 -2
- package/dist/dashboard/form-admin-subscription-custom.js +72 -8
- package/dist/dashboard/form-admin-subscription-custom.mjs +72 -8
- package/dist/dashboard/form-ai.js +0 -148
- package/dist/dashboard/form-ai.mjs +1 -148
- package/dist/dashboard/form-filters-analytics.js +88 -37
- package/dist/dashboard/form-filters-analytics.mjs +85 -38
- package/dist/dashboard/form-organization-brand.js +30 -13
- package/dist/dashboard/form-organization-brand.mjs +30 -13
- package/dist/dashboard/form-organization-campaign-advertisement.js +38 -112
- package/dist/dashboard/form-organization-campaign-advertisement.mjs +38 -112
- package/dist/dashboard/form-organization-campaign-advertisements.js +374 -0
- package/dist/dashboard/form-organization-campaign-advertisements.mjs +345 -0
- package/dist/dashboard/form-organization-campaign-agreement.js +402 -210
- package/dist/dashboard/form-organization-campaign-agreement.mjs +398 -211
- package/dist/dashboard/form-organization-campaign-design.js +258 -0
- package/dist/dashboard/form-organization-campaign-design.mjs +223 -0
- package/dist/dashboard/form-organization-campaign-field-item.js +585 -0
- package/dist/dashboard/form-organization-campaign-field-item.mjs +552 -0
- package/dist/dashboard/form-organization-campaign-field-number.js +48 -7
- package/dist/dashboard/form-organization-campaign-field-number.mjs +48 -7
- package/dist/dashboard/form-organization-campaign-field-select.js +15 -4
- package/dist/dashboard/form-organization-campaign-field-select.mjs +15 -4
- package/dist/dashboard/form-organization-campaign-field-skill.js +359 -0
- package/dist/dashboard/form-organization-campaign-field-skill.mjs +330 -0
- package/dist/dashboard/form-organization-campaign-field-text.js +46 -6
- package/dist/dashboard/form-organization-campaign-field-text.mjs +46 -6
- package/dist/dashboard/form-organization-campaign-field-textarea.js +22 -13
- package/dist/dashboard/form-organization-campaign-field-textarea.mjs +22 -13
- package/dist/dashboard/form-organization-campaign-footer.js +178 -0
- package/dist/dashboard/form-organization-campaign-footer.mjs +149 -0
- package/dist/dashboard/form-organization-campaign-integration-age.js +2 -35
- package/dist/dashboard/form-organization-campaign-integration-age.mjs +2 -35
- package/dist/dashboard/form-organization-campaign-integration-geocode.js +4 -1
- package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +4 -1
- package/dist/dashboard/form-organization-campaign-page-embed.js +1 -1
- package/dist/dashboard/form-organization-campaign-page-embed.mjs +1 -1
- package/dist/dashboard/form-organization-campaign-page-preview.js +1 -2
- package/dist/dashboard/form-organization-campaign-page-preview.mjs +1 -2
- package/dist/dashboard/form-organization-campaign-page-qr.js +2 -2
- package/dist/dashboard/form-organization-campaign-page-qr.mjs +2 -2
- package/dist/dashboard/form-organization-campaign-page-share.js +5 -5
- package/dist/dashboard/form-organization-campaign-page-share.mjs +5 -5
- package/dist/dashboard/form-organization-campaign-page-slug.js +2 -3
- package/dist/dashboard/form-organization-campaign-page-slug.mjs +2 -3
- package/dist/dashboard/form-organization-campaign-page.js +168 -265
- package/dist/dashboard/form-organization-campaign-page.mjs +170 -266
- package/dist/dashboard/form-organization-campaign-section.js +125 -107
- package/dist/dashboard/form-organization-campaign-section.mjs +121 -107
- package/dist/dashboard/form-organization-campaign.js +119 -9
- package/dist/dashboard/form-organization-campaign.mjs +118 -9
- package/dist/dashboard/form-organization-file-frame.js +7 -1
- package/dist/dashboard/form-organization-file-frame.mjs +7 -1
- package/dist/dashboard/form-organization-workflow.js +587 -530
- package/dist/dashboard/form-organization-workflow.mjs +588 -531
- package/dist/dashboard/form-organization.js +22 -0
- package/dist/dashboard/form-organization.mjs +22 -0
- package/dist/dashboard/form-reposition.js +396 -0
- package/dist/dashboard/form-reposition.mjs +359 -0
- package/dist/dashboard/form-support.js +189 -0
- package/dist/dashboard/form-support.mjs +160 -0
- package/dist/dashboard/form-tests.js +683 -0
- package/dist/dashboard/form-tests.mjs +646 -0
- package/dist/dashboard/form-verify-prize.js +114 -34
- package/dist/dashboard/form-verify-prize.mjs +111 -34
- package/dist/dashboard/google.js +8 -1
- package/dist/dashboard/google.mjs +8 -1
- package/dist/dashboard/input-array.js +2 -0
- package/dist/dashboard/input-array.mjs +2 -0
- package/dist/dashboard/input-editor.js +17 -6
- package/dist/dashboard/input-editor.mjs +17 -6
- package/dist/dashboard/input-fields.js +287 -437
- package/dist/dashboard/input-fields.mjs +287 -436
- package/dist/dashboard/input-file.js +70 -2
- package/dist/dashboard/input-file.mjs +70 -2
- package/dist/dashboard/input-font.js +64 -55
- package/dist/dashboard/input-font.mjs +64 -55
- package/dist/dashboard/input-resource.js +4 -1
- package/dist/dashboard/input-resource.mjs +4 -1
- package/dist/dashboard/lib/ab-tests.js +130 -0
- package/dist/dashboard/lib/ab-tests.mjs +94 -0
- package/dist/dashboard/lib/features.js +1 -1
- package/dist/dashboard/lib/features.mjs +1 -1
- package/dist/dashboard/lib/focus.js +93 -0
- package/dist/dashboard/lib/focus.mjs +69 -0
- package/dist/dashboard/lib/form-page.js +203 -0
- package/dist/dashboard/lib/form-page.mjs +155 -0
- package/dist/dashboard/lib/item-list.js +0 -15
- package/dist/dashboard/lib/item-list.mjs +0 -14
- package/dist/dashboard/lib/rail.js +16 -17
- package/dist/dashboard/lib/rail.mjs +15 -16
- package/dist/dashboard/lib/sms.js +8 -2
- package/dist/dashboard/lib/sms.mjs +6 -1
- package/dist/dashboard/list-resource.js +2 -0
- package/dist/dashboard/list-resource.mjs +2 -0
- package/dist/dashboard/menu.js +54 -5
- package/dist/dashboard/menu.mjs +53 -5
- package/dist/dashboard/modal.js +19 -4
- package/dist/dashboard/modal.mjs +20 -5
- package/dist/dashboard/order-sections.js +4 -0
- package/dist/dashboard/order-sections.mjs +4 -0
- package/dist/dashboard/preview.js +838 -324
- package/dist/dashboard/preview.mjs +826 -324
- package/dist/dashboard/provider-ui.js +20 -12
- package/dist/dashboard/provider-ui.mjs +21 -13
- package/dist/dashboard/recharts.js +53 -28
- package/dist/dashboard/recharts.mjs +53 -28
- package/dist/dashboard/swatch.js +35 -0
- package/dist/dashboard/swatch.mjs +31 -0
- package/dist/dashboard/table-contacts.js +6 -10
- package/dist/dashboard/table-contacts.mjs +6 -10
- package/dist/dashboard/table.js +10 -3
- package/dist/dashboard/table.mjs +9 -3
- package/dist/dashboard/template-dashboard.js +12 -7
- package/dist/dashboard/template-dashboard.mjs +11 -7
- package/dist/dashboard/template-design.js +564 -0
- package/dist/dashboard/template-design.mjs +531 -0
- package/dist/dashboard/template-rail.js +198 -126
- package/dist/dashboard/template-rail.mjs +196 -125
- package/dist/dashboard/template-socket.js +0 -3
- package/dist/dashboard/template-socket.mjs +0 -3
- package/dist/dashboard/template-test-page.js +436 -0
- package/dist/dashboard/template-test-page.mjs +407 -0
- package/dist/dashboard/template-tests.js +141 -0
- package/dist/dashboard/template-tests.mjs +112 -0
- package/dist/dashboard/template-ui.js +20 -11
- package/dist/dashboard/template-ui.mjs +22 -13
- package/dist/dashboard/template-variant.js +185 -0
- package/dist/dashboard/template-variant.mjs +156 -0
- package/dist/icons/arrow-down-long.js +47 -0
- package/dist/icons/arrow-down-long.mjs +28 -0
- package/dist/icons/arrows-pointing-out.js +46 -0
- package/dist/icons/arrows-pointing-out.mjs +27 -0
- package/dist/icons/beaker.js +46 -0
- package/dist/icons/beaker.mjs +27 -0
- package/dist/icons/identification.js +46 -0
- package/dist/icons/identification.mjs +27 -0
- package/dist/icons/lifebuoy.js +46 -0
- package/dist/icons/lifebuoy.mjs +27 -0
- package/dist/icons/rectangle-group.js +46 -0
- package/dist/icons/rectangle-group.mjs +27 -0
- package/dist/icons/rectangle-stack.js +46 -0
- package/dist/icons/rectangle-stack.mjs +27 -0
- package/dist/icons/shopping-bag.js +46 -0
- package/dist/icons/shopping-bag.mjs +27 -0
- package/dist/icons/swatch.js +46 -0
- package/dist/icons/swatch.mjs +27 -0
- package/dist/icons/window.js +46 -0
- package/dist/icons/window.mjs +27 -0
- package/dist/icons/zoom-in.js +46 -0
- package/dist/icons/zoom-in.mjs +27 -0
- package/dist/input-answer.js +60 -0
- package/dist/input-answer.mjs +27 -0
- package/dist/input-checkbox.js +7 -1
- package/dist/input-checkbox.mjs +7 -1
- package/dist/input-name.js +3 -3
- package/dist/input-name.mjs +3 -3
- package/dist/input-select.js +3 -1
- package/dist/input-select.mjs +3 -1
- package/dist/provider-font.js +4 -3
- package/dist/provider-font.mjs +4 -3
- package/dist/shared/badge.js +15 -0
- package/dist/shared/badge.mjs +11 -0
- package/dist/shared/carousel.js +11 -7
- package/dist/shared/carousel.mjs +11 -7
- package/dist/shared/document-pieces.js +295 -0
- package/dist/shared/document-pieces.mjs +260 -0
- package/dist/shared/lib/campaign.js +3 -9
- package/dist/shared/lib/campaign.mjs +3 -9
- package/dist/shared/lib/helpers.js +24 -0
- package/dist/shared/lib/helpers.mjs +22 -0
- package/dist/shared/lib/video.js +6 -0
- package/dist/shared/lib/video.mjs +5 -0
- package/dist/shared/sortable.js +27 -10
- package/dist/shared/sortable.mjs +27 -10
- package/dist/shared/tabs.js +1 -1
- package/dist/shared/tabs.mjs +1 -1
- package/dist/video.js +127 -9
- package/dist/video.mjs +125 -11
- package/package.json +176 -20
- package/types/bridge/fields.d.ts +6 -1
- package/types/bridge/form-subdomain-agreement.d.ts +27 -0
- package/types/bridge/form-subdomain-missions.d.ts +2 -0
- package/types/bridge/form-subdomain.d.ts +62 -3
- package/types/bridge/lib/entry.d.ts +44 -7
- package/types/bridge/lib/order.d.ts +13 -2
- package/types/bridge/subdomain-content.d.ts +1 -0
- package/types/bridge/template-subdomain-gallery.d.ts +13 -1
- package/types/dashboard/campaign-form.d.ts +42 -0
- package/types/dashboard/card-campaign-agreement.d.ts +26 -0
- package/types/dashboard/card-campaign-switch.d.ts +20 -1
- package/types/dashboard/card-order.d.ts +2 -2
- package/types/dashboard/card-section.d.ts +9 -1
- package/types/dashboard/card-shortcut.d.ts +38 -0
- package/types/dashboard/card-tile.d.ts +4 -9
- package/types/dashboard/document-blocks.d.ts +14 -0
- package/types/dashboard/drawer.d.ts +3 -0
- package/types/dashboard/form-ai.d.ts +0 -17
- package/types/dashboard/form-organization-brand.d.ts +3 -0
- package/types/dashboard/form-organization-campaign-advertisements.d.ts +15 -0
- package/types/dashboard/form-organization-campaign-agreement.d.ts +53 -10
- package/types/dashboard/form-organization-campaign-design.d.ts +46 -0
- package/types/dashboard/form-organization-campaign-field-item.d.ts +36 -0
- package/types/dashboard/form-organization-campaign-field-number.d.ts +4 -1
- package/types/dashboard/form-organization-campaign-field-select.d.ts +6 -1
- package/types/dashboard/form-organization-campaign-field-skill.d.ts +36 -0
- package/types/dashboard/form-organization-campaign-field-text.d.ts +5 -1
- package/types/dashboard/form-organization-campaign-field-textarea.d.ts +4 -1
- package/types/dashboard/form-organization-campaign-footer.d.ts +23 -0
- package/types/dashboard/form-organization-campaign-integration-age.d.ts +2 -1
- package/types/dashboard/form-organization-campaign-integration-geocode.d.ts +2 -0
- package/types/dashboard/form-organization-campaign-page.d.ts +9 -15
- package/types/dashboard/form-organization-campaign-section.d.ts +24 -8
- package/types/dashboard/form-organization-campaign.d.ts +3 -0
- package/types/dashboard/form-organization-workflow.d.ts +3 -0
- package/types/dashboard/form-organization.d.ts +2 -2
- package/types/dashboard/form-reposition.d.ts +29 -0
- package/types/dashboard/form-support.d.ts +14 -0
- package/types/dashboard/form-tests.d.ts +78 -0
- package/types/dashboard/form-verify-prize.d.ts +30 -3
- package/types/dashboard/input-editor.d.ts +9 -0
- package/types/dashboard/input-fields.d.ts +8 -5
- package/types/dashboard/input-file.d.ts +4 -0
- package/types/dashboard/input-resource.d.ts +1 -0
- package/types/dashboard/lib/ab-tests.d.ts +50 -0
- package/types/dashboard/lib/escape.d.ts +4 -0
- package/types/dashboard/lib/focus.d.ts +16 -0
- package/types/dashboard/lib/form-page.d.ts +25 -0
- package/types/dashboard/lib/item-list.d.ts +10 -5
- package/types/dashboard/lib/rail.d.ts +0 -1
- package/types/dashboard/lib/sms.d.ts +7 -0
- package/types/dashboard/modal.d.ts +3 -1
- package/types/dashboard/preview.d.ts +65 -10
- package/types/dashboard/recharts.d.ts +3 -0
- package/types/dashboard/swatch.d.ts +4 -0
- package/types/dashboard/template-dashboard.d.ts +3 -0
- package/types/dashboard/template-design.d.ts +30 -0
- package/types/dashboard/template-test-page.d.ts +69 -0
- package/types/dashboard/template-tests.d.ts +30 -0
- package/types/dashboard/template-variant.d.ts +18 -0
- package/types/icons/arrow-down-long.d.ts +5 -0
- package/types/icons/arrows-pointing-out.d.ts +5 -0
- package/types/icons/beaker.d.ts +5 -0
- package/types/icons/identification.d.ts +5 -0
- package/types/icons/lifebuoy.d.ts +5 -0
- package/types/icons/rectangle-group.d.ts +5 -0
- package/types/icons/rectangle-stack.d.ts +5 -0
- package/types/icons/shopping-bag.d.ts +5 -0
- package/types/icons/swatch.d.ts +5 -0
- package/types/icons/window.d.ts +5 -0
- package/types/icons/zoom-in.d.ts +5 -0
- package/types/input-answer.d.ts +15 -0
- package/types/input-select.d.ts +2 -0
- package/types/shared/button.d.ts +1 -1
- package/types/shared/document-pieces.d.ts +34 -0
- package/types/shared/lib/helpers.d.ts +22 -1
- package/types/shared/lib/motion.d.ts +2 -0
- package/types/shared/lib/video.d.ts +3 -0
- package/types/shared/sortable.d.ts +6 -0
- package/types/video.d.ts +18 -2
- package/dist/bridge/template-preview.js +0 -208
- package/dist/bridge/template-preview.mjs +0 -173
- package/dist/dashboard/device.js +0 -95
- package/dist/dashboard/device.mjs +0 -72
- package/dist/dashboard/form-organization-campaign-field-list.js +0 -425
- package/dist/dashboard/form-organization-campaign-field-list.mjs +0 -396
- package/dist/dashboard/item-row.js +0 -92
- package/dist/dashboard/item-row.mjs +0 -63
- package/types/bridge/template-preview.d.ts +0 -10
- package/types/dashboard/device.d.ts +0 -12
- package/types/dashboard/form-organization-campaign-field-list.d.ts +0 -36
- package/types/dashboard/item-row.d.ts +0 -25
package/dist/video.mjs
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import dynamic from "next/dynamic";
|
|
4
|
-
import { Fragment, useEffect, useRef, useState } from "react";
|
|
4
|
+
import { cloneElement, Fragment, isValidElement, useEffect, useRef, useState } from "react";
|
|
5
|
+
import Button from "./shared/button.mjs";
|
|
6
|
+
import ArrowsPointingOut from "./icons/arrows-pointing-out.mjs";
|
|
5
7
|
import Loader from "./icons/loader.mjs";
|
|
8
|
+
import Pause from "./icons/pause.mjs";
|
|
9
|
+
import Play from "./icons/play.mjs";
|
|
6
10
|
import Warning from "./icons/warning.mjs";
|
|
7
|
-
import {
|
|
11
|
+
import { buttonStyle, dotStyle } from "./styles.mjs";
|
|
12
|
+
import { provideHls, startSeek, videoClock, videoErrorAction, videoOverlay } from "./shared/lib/video.mjs";
|
|
8
13
|
const ReactPlayer = dynamic(
|
|
9
14
|
() => Promise.all([
|
|
10
15
|
import("hls.js").then((module) => provideHls(module.default || module, window)).catch(() => {
|
|
@@ -15,6 +20,107 @@ const ReactPlayer = dynamic(
|
|
|
15
20
|
ssr: false
|
|
16
21
|
}
|
|
17
22
|
);
|
|
23
|
+
const Controls = ({ fullscreen = false, style, video }) => {
|
|
24
|
+
const [time, setTime] = useState(0);
|
|
25
|
+
const [duration, setDuration] = useState(0);
|
|
26
|
+
const [playing, setPlaying] = useState(false);
|
|
27
|
+
useEffect(
|
|
28
|
+
() => {
|
|
29
|
+
if (!video) return;
|
|
30
|
+
const sync = () => {
|
|
31
|
+
setTime(video.currentTime || 0);
|
|
32
|
+
setDuration(Number.isFinite(video.duration) ? video.duration : 0);
|
|
33
|
+
setPlaying(!video.paused);
|
|
34
|
+
};
|
|
35
|
+
const events = ["durationchange", "loadedmetadata", "pause", "play", "timeupdate"];
|
|
36
|
+
events.forEach((name) => video.addEventListener(name, sync));
|
|
37
|
+
sync();
|
|
38
|
+
return () => events.forEach((name) => video.removeEventListener(name, sync));
|
|
39
|
+
},
|
|
40
|
+
[video]
|
|
41
|
+
);
|
|
42
|
+
const played = duration ? time / duration * 100 : 0;
|
|
43
|
+
const rest = dotStyle(style, false).backgroundColor;
|
|
44
|
+
return /* @__PURE__ */ jsxs(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
...{
|
|
48
|
+
className: "flex items-center gap-3 py-2",
|
|
49
|
+
...style && {
|
|
50
|
+
style: {
|
|
51
|
+
color: buttonStyle(style).backgroundColor
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsx(
|
|
57
|
+
Button,
|
|
58
|
+
{
|
|
59
|
+
...{
|
|
60
|
+
"aria-label": playing ? "Pause" : "Play",
|
|
61
|
+
disabled: !video,
|
|
62
|
+
icon: playing ? Pause : Play,
|
|
63
|
+
inline: true,
|
|
64
|
+
onClick: () => {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
return playing ? video == null ? void 0 : video.pause() : (_b = (_a = video == null ? void 0 : video.play()) == null ? void 0 : _a.catch) == null ? void 0 : _b.call(_a, () => {
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
variant: "link"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
"span",
|
|
75
|
+
{
|
|
76
|
+
...{
|
|
77
|
+
className: "text-sm tabular-nums shrink-0"
|
|
78
|
+
},
|
|
79
|
+
children: videoClock(time) + " / " + videoClock(duration)
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ jsx(
|
|
83
|
+
"input",
|
|
84
|
+
{
|
|
85
|
+
...{
|
|
86
|
+
"aria-label": "Video timeline",
|
|
87
|
+
className: "controls-track w-full h-1 cursor-pointer appearance-none rounded-full",
|
|
88
|
+
disabled: !video,
|
|
89
|
+
max: duration || 0,
|
|
90
|
+
min: 0,
|
|
91
|
+
onChange: ({ target }) => {
|
|
92
|
+
if (video) video.currentTime = Number(target.value);
|
|
93
|
+
},
|
|
94
|
+
step: 0.01,
|
|
95
|
+
style: {
|
|
96
|
+
background: "linear-gradient( to right, currentColor " + played + "%, " + rest + " " + played + "% )"
|
|
97
|
+
},
|
|
98
|
+
type: "range",
|
|
99
|
+
value: time
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
fullscreen && /* @__PURE__ */ jsx(
|
|
104
|
+
Button,
|
|
105
|
+
{
|
|
106
|
+
...{
|
|
107
|
+
"aria-label": "Full screen",
|
|
108
|
+
disabled: !video,
|
|
109
|
+
icon: ArrowsPointingOut,
|
|
110
|
+
inline: true,
|
|
111
|
+
// iPhone Safari has no requestFullscreen on a video, only its own webkitEnterFullscreen.
|
|
112
|
+
onClick: () => {
|
|
113
|
+
var _a;
|
|
114
|
+
return (video == null ? void 0 : video.requestFullscreen) ? video.requestFullscreen() : (_a = video == null ? void 0 : video.webkitEnterFullscreen) == null ? void 0 : _a.call(video);
|
|
115
|
+
},
|
|
116
|
+
variant: "link"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
};
|
|
18
124
|
const DEFER_FALLBACK_MS = 5e3;
|
|
19
125
|
const Video = ({
|
|
20
126
|
className,
|
|
@@ -42,6 +148,8 @@ const Video = ({
|
|
|
42
148
|
const durationFired = useRef(false);
|
|
43
149
|
const errored = useRef(false);
|
|
44
150
|
const [player, setPlayer] = useState();
|
|
151
|
+
const bar = isValidElement(controls) ? controls : null;
|
|
152
|
+
const [element, setElement] = useState(null);
|
|
45
153
|
const [videoUrl, setVideoUrl] = useState(hls ? hls : mp4);
|
|
46
154
|
const [mountPlayer, setMountPlayer] = useState(!defer);
|
|
47
155
|
const [posterPainted, setPosterPainted] = useState(false);
|
|
@@ -98,7 +206,7 @@ const Video = ({
|
|
|
98
206
|
{
|
|
99
207
|
...{
|
|
100
208
|
className: "relative react-video",
|
|
101
|
-
controls,
|
|
209
|
+
controls: bar ? false : Boolean(controls),
|
|
102
210
|
config: {
|
|
103
211
|
file: {
|
|
104
212
|
attributes: {
|
|
@@ -156,16 +264,17 @@ const Video = ({
|
|
|
156
264
|
onReady: (instance) => {
|
|
157
265
|
var _a2;
|
|
158
266
|
setPlayer(instance.player);
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
267
|
+
const element2 = (_a2 = instance.getInternalPlayer) == null ? void 0 : _a2.call(instance);
|
|
268
|
+
if (bar && typeof (element2 == null ? void 0 : element2.play) === "function") setElement(element2);
|
|
269
|
+
if (!element2 || typeof element2.readyState !== "number") {
|
|
161
270
|
setVideoPaintable(true);
|
|
162
271
|
return;
|
|
163
272
|
}
|
|
164
|
-
if (
|
|
273
|
+
if (element2.readyState >= 2) {
|
|
165
274
|
setVideoPaintable(true);
|
|
166
275
|
return;
|
|
167
276
|
}
|
|
168
|
-
|
|
277
|
+
element2.addEventListener("loadeddata", () => setVideoPaintable(true), { once: true });
|
|
169
278
|
},
|
|
170
279
|
playing: Boolean(playing),
|
|
171
280
|
playsinline: true,
|
|
@@ -182,14 +291,14 @@ const Video = ({
|
|
|
182
291
|
"aria-hidden": true,
|
|
183
292
|
className: "absolute inset-0 w-full h-full object-cover pointer-events-none",
|
|
184
293
|
decoding: "async",
|
|
185
|
-
...priority ? {
|
|
294
|
+
...priority ? { fetchPriority: "high", loading: "eager" } : { loading: "lazy" },
|
|
186
295
|
onLoad: () => setPosterPainted(true),
|
|
187
296
|
// A cached poster can finish loading before React attaches
|
|
188
297
|
// onLoad, so check completeness on attach too — otherwise the
|
|
189
298
|
// exact case this optimises for (warm revisit) would fall
|
|
190
299
|
// through to the 5s fallback.
|
|
191
|
-
ref: (
|
|
192
|
-
if ((
|
|
300
|
+
ref: (element2) => {
|
|
301
|
+
if ((element2 == null ? void 0 : element2.complete) && element2.naturalWidth > 0) setPosterPainted(true);
|
|
193
302
|
},
|
|
194
303
|
src: poster
|
|
195
304
|
}
|
|
@@ -240,7 +349,7 @@ const Video = ({
|
|
|
240
349
|
}
|
|
241
350
|
)
|
|
242
351
|
] });
|
|
243
|
-
|
|
352
|
+
const box = className ? /* @__PURE__ */ jsx(
|
|
244
353
|
"div",
|
|
245
354
|
{
|
|
246
355
|
...{
|
|
@@ -249,8 +358,13 @@ const Video = ({
|
|
|
249
358
|
children: inner
|
|
250
359
|
}
|
|
251
360
|
) : inner;
|
|
361
|
+
return bar ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
362
|
+
box,
|
|
363
|
+
cloneElement(bar, { video: element })
|
|
364
|
+
] }) : box;
|
|
252
365
|
};
|
|
253
366
|
var video_default = Video;
|
|
254
367
|
export {
|
|
368
|
+
Controls,
|
|
255
369
|
video_default as default
|
|
256
370
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawbridge/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./advertisement": {
|
|
6
6
|
"types": "./types/advertisement.d.ts",
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"import": "./dist/bridge/fields.mjs",
|
|
23
23
|
"default": "./dist/bridge/fields.js"
|
|
24
24
|
},
|
|
25
|
+
"./bridge/form-subdomain-agreement": {
|
|
26
|
+
"types": "./types/bridge/form-subdomain-agreement.d.ts",
|
|
27
|
+
"import": "./dist/bridge/form-subdomain-agreement.mjs",
|
|
28
|
+
"default": "./dist/bridge/form-subdomain-agreement.js"
|
|
29
|
+
},
|
|
25
30
|
"./bridge/form-subdomain-embed": {
|
|
26
31
|
"types": "./types/bridge/form-subdomain-embed.d.ts",
|
|
27
32
|
"import": "./dist/bridge/form-subdomain-embed.mjs",
|
|
@@ -147,11 +152,6 @@
|
|
|
147
152
|
"import": "./dist/bridge/template-not-found.mjs",
|
|
148
153
|
"default": "./dist/bridge/template-not-found.js"
|
|
149
154
|
},
|
|
150
|
-
"./bridge/template-preview": {
|
|
151
|
-
"types": "./types/bridge/template-preview.d.ts",
|
|
152
|
-
"import": "./dist/bridge/template-preview.mjs",
|
|
153
|
-
"default": "./dist/bridge/template-preview.js"
|
|
154
|
-
},
|
|
155
155
|
"./bridge/template-subdomain-gallery": {
|
|
156
156
|
"types": "./types/bridge/template-subdomain-gallery.d.ts",
|
|
157
157
|
"import": "./dist/bridge/template-subdomain-gallery.mjs",
|
|
@@ -187,11 +187,21 @@
|
|
|
187
187
|
"import": "./dist/dashboard/buttons-subscription.mjs",
|
|
188
188
|
"default": "./dist/dashboard/buttons-subscription.js"
|
|
189
189
|
},
|
|
190
|
+
"./dashboard/campaign-form": {
|
|
191
|
+
"types": "./types/dashboard/campaign-form.d.ts",
|
|
192
|
+
"import": "./dist/dashboard/campaign-form.mjs",
|
|
193
|
+
"default": "./dist/dashboard/campaign-form.js"
|
|
194
|
+
},
|
|
190
195
|
"./dashboard/card-affiliate": {
|
|
191
196
|
"types": "./types/dashboard/card-affiliate.d.ts",
|
|
192
197
|
"import": "./dist/dashboard/card-affiliate.mjs",
|
|
193
198
|
"default": "./dist/dashboard/card-affiliate.js"
|
|
194
199
|
},
|
|
200
|
+
"./dashboard/card-campaign-agreement": {
|
|
201
|
+
"types": "./types/dashboard/card-campaign-agreement.d.ts",
|
|
202
|
+
"import": "./dist/dashboard/card-campaign-agreement.mjs",
|
|
203
|
+
"default": "./dist/dashboard/card-campaign-agreement.js"
|
|
204
|
+
},
|
|
195
205
|
"./dashboard/card-campaign-switch": {
|
|
196
206
|
"types": "./types/dashboard/card-campaign-switch.d.ts",
|
|
197
207
|
"import": "./dist/dashboard/card-campaign-switch.mjs",
|
|
@@ -257,6 +267,11 @@
|
|
|
257
267
|
"import": "./dist/dashboard/card-setting.mjs",
|
|
258
268
|
"default": "./dist/dashboard/card-setting.js"
|
|
259
269
|
},
|
|
270
|
+
"./dashboard/card-shortcut": {
|
|
271
|
+
"types": "./types/dashboard/card-shortcut.d.ts",
|
|
272
|
+
"import": "./dist/dashboard/card-shortcut.mjs",
|
|
273
|
+
"default": "./dist/dashboard/card-shortcut.js"
|
|
274
|
+
},
|
|
260
275
|
"./dashboard/card-task": {
|
|
261
276
|
"types": "./types/dashboard/card-task.d.ts",
|
|
262
277
|
"import": "./dist/dashboard/card-task.mjs",
|
|
@@ -292,10 +307,10 @@
|
|
|
292
307
|
"import": "./dist/dashboard/connection-workflows.mjs",
|
|
293
308
|
"default": "./dist/dashboard/connection-workflows.js"
|
|
294
309
|
},
|
|
295
|
-
"./dashboard/
|
|
296
|
-
"types": "./types/dashboard/
|
|
297
|
-
"import": "./dist/dashboard/
|
|
298
|
-
"default": "./dist/dashboard/
|
|
310
|
+
"./dashboard/document-blocks": {
|
|
311
|
+
"types": "./types/dashboard/document-blocks.d.ts",
|
|
312
|
+
"import": "./dist/dashboard/document-blocks.mjs",
|
|
313
|
+
"default": "./dist/dashboard/document-blocks.js"
|
|
299
314
|
},
|
|
300
315
|
"./dashboard/drawer-subscription": {
|
|
301
316
|
"types": "./types/dashboard/drawer-subscription.d.ts",
|
|
@@ -442,11 +457,21 @@
|
|
|
442
457
|
"import": "./dist/dashboard/form-organization-campaign-advertisement.mjs",
|
|
443
458
|
"default": "./dist/dashboard/form-organization-campaign-advertisement.js"
|
|
444
459
|
},
|
|
460
|
+
"./dashboard/form-organization-campaign-advertisements": {
|
|
461
|
+
"types": "./types/dashboard/form-organization-campaign-advertisements.d.ts",
|
|
462
|
+
"import": "./dist/dashboard/form-organization-campaign-advertisements.mjs",
|
|
463
|
+
"default": "./dist/dashboard/form-organization-campaign-advertisements.js"
|
|
464
|
+
},
|
|
445
465
|
"./dashboard/form-organization-campaign-agreement": {
|
|
446
466
|
"types": "./types/dashboard/form-organization-campaign-agreement.d.ts",
|
|
447
467
|
"import": "./dist/dashboard/form-organization-campaign-agreement.mjs",
|
|
448
468
|
"default": "./dist/dashboard/form-organization-campaign-agreement.js"
|
|
449
469
|
},
|
|
470
|
+
"./dashboard/form-organization-campaign-design": {
|
|
471
|
+
"types": "./types/dashboard/form-organization-campaign-design.d.ts",
|
|
472
|
+
"import": "./dist/dashboard/form-organization-campaign-design.mjs",
|
|
473
|
+
"default": "./dist/dashboard/form-organization-campaign-design.js"
|
|
474
|
+
},
|
|
450
475
|
"./dashboard/form-organization-campaign-draw": {
|
|
451
476
|
"types": "./types/dashboard/form-organization-campaign-draw.d.ts",
|
|
452
477
|
"import": "./dist/dashboard/form-organization-campaign-draw.mjs",
|
|
@@ -457,10 +482,10 @@
|
|
|
457
482
|
"import": "./dist/dashboard/form-organization-campaign-field-email.mjs",
|
|
458
483
|
"default": "./dist/dashboard/form-organization-campaign-field-email.js"
|
|
459
484
|
},
|
|
460
|
-
"./dashboard/form-organization-campaign-field-
|
|
461
|
-
"types": "./types/dashboard/form-organization-campaign-field-
|
|
462
|
-
"import": "./dist/dashboard/form-organization-campaign-field-
|
|
463
|
-
"default": "./dist/dashboard/form-organization-campaign-field-
|
|
485
|
+
"./dashboard/form-organization-campaign-field-item": {
|
|
486
|
+
"types": "./types/dashboard/form-organization-campaign-field-item.d.ts",
|
|
487
|
+
"import": "./dist/dashboard/form-organization-campaign-field-item.mjs",
|
|
488
|
+
"default": "./dist/dashboard/form-organization-campaign-field-item.js"
|
|
464
489
|
},
|
|
465
490
|
"./dashboard/form-organization-campaign-field-name": {
|
|
466
491
|
"types": "./types/dashboard/form-organization-campaign-field-name.d.ts",
|
|
@@ -487,6 +512,11 @@
|
|
|
487
512
|
"import": "./dist/dashboard/form-organization-campaign-field-select.mjs",
|
|
488
513
|
"default": "./dist/dashboard/form-organization-campaign-field-select.js"
|
|
489
514
|
},
|
|
515
|
+
"./dashboard/form-organization-campaign-field-skill": {
|
|
516
|
+
"types": "./types/dashboard/form-organization-campaign-field-skill.d.ts",
|
|
517
|
+
"import": "./dist/dashboard/form-organization-campaign-field-skill.mjs",
|
|
518
|
+
"default": "./dist/dashboard/form-organization-campaign-field-skill.js"
|
|
519
|
+
},
|
|
490
520
|
"./dashboard/form-organization-campaign-field-text": {
|
|
491
521
|
"types": "./types/dashboard/form-organization-campaign-field-text.d.ts",
|
|
492
522
|
"import": "./dist/dashboard/form-organization-campaign-field-text.mjs",
|
|
@@ -497,6 +527,11 @@
|
|
|
497
527
|
"import": "./dist/dashboard/form-organization-campaign-field-textarea.mjs",
|
|
498
528
|
"default": "./dist/dashboard/form-organization-campaign-field-textarea.js"
|
|
499
529
|
},
|
|
530
|
+
"./dashboard/form-organization-campaign-footer": {
|
|
531
|
+
"types": "./types/dashboard/form-organization-campaign-footer.d.ts",
|
|
532
|
+
"import": "./dist/dashboard/form-organization-campaign-footer.mjs",
|
|
533
|
+
"default": "./dist/dashboard/form-organization-campaign-footer.js"
|
|
534
|
+
},
|
|
500
535
|
"./dashboard/form-organization-campaign-integration-age": {
|
|
501
536
|
"types": "./types/dashboard/form-organization-campaign-integration-age.d.ts",
|
|
502
537
|
"import": "./dist/dashboard/form-organization-campaign-integration-age.mjs",
|
|
@@ -652,6 +687,11 @@
|
|
|
652
687
|
"import": "./dist/dashboard/form-profile.mjs",
|
|
653
688
|
"default": "./dist/dashboard/form-profile.js"
|
|
654
689
|
},
|
|
690
|
+
"./dashboard/form-reposition": {
|
|
691
|
+
"types": "./types/dashboard/form-reposition.d.ts",
|
|
692
|
+
"import": "./dist/dashboard/form-reposition.mjs",
|
|
693
|
+
"default": "./dist/dashboard/form-reposition.js"
|
|
694
|
+
},
|
|
655
695
|
"./dashboard/form-stripe-promotion": {
|
|
656
696
|
"types": "./types/dashboard/form-stripe-promotion.d.ts",
|
|
657
697
|
"import": "./dist/dashboard/form-stripe-promotion.mjs",
|
|
@@ -662,6 +702,16 @@
|
|
|
662
702
|
"import": "./dist/dashboard/form-stripe.mjs",
|
|
663
703
|
"default": "./dist/dashboard/form-stripe.js"
|
|
664
704
|
},
|
|
705
|
+
"./dashboard/form-support": {
|
|
706
|
+
"types": "./types/dashboard/form-support.d.ts",
|
|
707
|
+
"import": "./dist/dashboard/form-support.mjs",
|
|
708
|
+
"default": "./dist/dashboard/form-support.js"
|
|
709
|
+
},
|
|
710
|
+
"./dashboard/form-tests": {
|
|
711
|
+
"types": "./types/dashboard/form-tests.d.ts",
|
|
712
|
+
"import": "./dist/dashboard/form-tests.mjs",
|
|
713
|
+
"default": "./dist/dashboard/form-tests.js"
|
|
714
|
+
},
|
|
665
715
|
"./dashboard/form-verify-prize": {
|
|
666
716
|
"types": "./types/dashboard/form-verify-prize.d.ts",
|
|
667
717
|
"import": "./dist/dashboard/form-verify-prize.mjs",
|
|
@@ -747,10 +797,10 @@
|
|
|
747
797
|
"import": "./dist/dashboard/input-time.mjs",
|
|
748
798
|
"default": "./dist/dashboard/input-time.js"
|
|
749
799
|
},
|
|
750
|
-
"./dashboard/
|
|
751
|
-
"types": "./types/dashboard/
|
|
752
|
-
"import": "./dist/dashboard/
|
|
753
|
-
"default": "./dist/dashboard/
|
|
800
|
+
"./dashboard/lib/ab-tests": {
|
|
801
|
+
"types": "./types/dashboard/lib/ab-tests.d.ts",
|
|
802
|
+
"import": "./dist/dashboard/lib/ab-tests.mjs",
|
|
803
|
+
"default": "./dist/dashboard/lib/ab-tests.js"
|
|
754
804
|
},
|
|
755
805
|
"./dashboard/lib/confetti": {
|
|
756
806
|
"types": "./types/dashboard/lib/confetti.d.ts",
|
|
@@ -762,11 +812,26 @@
|
|
|
762
812
|
"import": "./dist/dashboard/lib/connection-controls.mjs",
|
|
763
813
|
"default": "./dist/dashboard/lib/connection-controls.js"
|
|
764
814
|
},
|
|
815
|
+
"./dashboard/lib/escape": {
|
|
816
|
+
"types": "./types/dashboard/lib/escape.d.ts",
|
|
817
|
+
"import": "./dist/dashboard/lib/escape.mjs",
|
|
818
|
+
"default": "./dist/dashboard/lib/escape.js"
|
|
819
|
+
},
|
|
765
820
|
"./dashboard/lib/features": {
|
|
766
821
|
"types": "./types/dashboard/lib/features.d.ts",
|
|
767
822
|
"import": "./dist/dashboard/lib/features.mjs",
|
|
768
823
|
"default": "./dist/dashboard/lib/features.js"
|
|
769
824
|
},
|
|
825
|
+
"./dashboard/lib/focus": {
|
|
826
|
+
"types": "./types/dashboard/lib/focus.d.ts",
|
|
827
|
+
"import": "./dist/dashboard/lib/focus.mjs",
|
|
828
|
+
"default": "./dist/dashboard/lib/focus.js"
|
|
829
|
+
},
|
|
830
|
+
"./dashboard/lib/form-page": {
|
|
831
|
+
"types": "./types/dashboard/lib/form-page.d.ts",
|
|
832
|
+
"import": "./dist/dashboard/lib/form-page.mjs",
|
|
833
|
+
"default": "./dist/dashboard/lib/form-page.js"
|
|
834
|
+
},
|
|
770
835
|
"./dashboard/lib/frames": {
|
|
771
836
|
"types": "./types/dashboard/lib/frames.d.ts",
|
|
772
837
|
"import": "./dist/dashboard/lib/frames.mjs",
|
|
@@ -962,6 +1027,11 @@
|
|
|
962
1027
|
"import": "./dist/dashboard/template-dashboard.mjs",
|
|
963
1028
|
"default": "./dist/dashboard/template-dashboard.js"
|
|
964
1029
|
},
|
|
1030
|
+
"./dashboard/template-design": {
|
|
1031
|
+
"types": "./types/dashboard/template-design.d.ts",
|
|
1032
|
+
"import": "./dist/dashboard/template-design.mjs",
|
|
1033
|
+
"default": "./dist/dashboard/template-design.js"
|
|
1034
|
+
},
|
|
965
1035
|
"./dashboard/template-not-found": {
|
|
966
1036
|
"types": "./types/dashboard/template-not-found.d.ts",
|
|
967
1037
|
"import": "./dist/dashboard/template-not-found.mjs",
|
|
@@ -982,16 +1052,36 @@
|
|
|
982
1052
|
"import": "./dist/dashboard/template-suspended.mjs",
|
|
983
1053
|
"default": "./dist/dashboard/template-suspended.js"
|
|
984
1054
|
},
|
|
1055
|
+
"./dashboard/template-test-page": {
|
|
1056
|
+
"types": "./types/dashboard/template-test-page.d.ts",
|
|
1057
|
+
"import": "./dist/dashboard/template-test-page.mjs",
|
|
1058
|
+
"default": "./dist/dashboard/template-test-page.js"
|
|
1059
|
+
},
|
|
1060
|
+
"./dashboard/template-tests": {
|
|
1061
|
+
"types": "./types/dashboard/template-tests.d.ts",
|
|
1062
|
+
"import": "./dist/dashboard/template-tests.mjs",
|
|
1063
|
+
"default": "./dist/dashboard/template-tests.js"
|
|
1064
|
+
},
|
|
985
1065
|
"./dashboard/template-ui": {
|
|
986
1066
|
"types": "./types/dashboard/template-ui.d.ts",
|
|
987
1067
|
"import": "./dist/dashboard/template-ui.mjs",
|
|
988
1068
|
"default": "./dist/dashboard/template-ui.js"
|
|
989
1069
|
},
|
|
1070
|
+
"./dashboard/template-variant": {
|
|
1071
|
+
"types": "./types/dashboard/template-variant.d.ts",
|
|
1072
|
+
"import": "./dist/dashboard/template-variant.mjs",
|
|
1073
|
+
"default": "./dist/dashboard/template-variant.js"
|
|
1074
|
+
},
|
|
990
1075
|
"./dashboard/wrapper-ai": {
|
|
991
1076
|
"types": "./types/dashboard/wrapper-ai.d.ts",
|
|
992
1077
|
"import": "./dist/dashboard/wrapper-ai.mjs",
|
|
993
1078
|
"default": "./dist/dashboard/wrapper-ai.js"
|
|
994
1079
|
},
|
|
1080
|
+
"./icons/arrow-down-long": {
|
|
1081
|
+
"types": "./types/icons/arrow-down-long.d.ts",
|
|
1082
|
+
"import": "./dist/icons/arrow-down-long.mjs",
|
|
1083
|
+
"default": "./dist/icons/arrow-down-long.js"
|
|
1084
|
+
},
|
|
995
1085
|
"./icons/arrow-down-tray": {
|
|
996
1086
|
"types": "./types/icons/arrow-down-tray.d.ts",
|
|
997
1087
|
"import": "./dist/icons/arrow-down-tray.mjs",
|
|
@@ -1012,6 +1102,11 @@
|
|
|
1012
1102
|
"import": "./dist/icons/arrow-up-tray.mjs",
|
|
1013
1103
|
"default": "./dist/icons/arrow-up-tray.js"
|
|
1014
1104
|
},
|
|
1105
|
+
"./icons/arrows-pointing-out": {
|
|
1106
|
+
"types": "./types/icons/arrows-pointing-out.d.ts",
|
|
1107
|
+
"import": "./dist/icons/arrows-pointing-out.mjs",
|
|
1108
|
+
"default": "./dist/icons/arrows-pointing-out.js"
|
|
1109
|
+
},
|
|
1015
1110
|
"./icons/bars-arrow-down": {
|
|
1016
1111
|
"types": "./types/icons/bars-arrow-down.d.ts",
|
|
1017
1112
|
"import": "./dist/icons/bars-arrow-down.mjs",
|
|
@@ -1022,6 +1117,11 @@
|
|
|
1022
1117
|
"import": "./dist/icons/bars-arrow-up.mjs",
|
|
1023
1118
|
"default": "./dist/icons/bars-arrow-up.js"
|
|
1024
1119
|
},
|
|
1120
|
+
"./icons/beaker": {
|
|
1121
|
+
"types": "./types/icons/beaker.d.ts",
|
|
1122
|
+
"import": "./dist/icons/beaker.mjs",
|
|
1123
|
+
"default": "./dist/icons/beaker.js"
|
|
1124
|
+
},
|
|
1025
1125
|
"./icons/bold": {
|
|
1026
1126
|
"types": "./types/icons/bold.d.ts",
|
|
1027
1127
|
"import": "./dist/icons/bold.mjs",
|
|
@@ -1182,6 +1282,11 @@
|
|
|
1182
1282
|
"import": "./dist/icons/home.mjs",
|
|
1183
1283
|
"default": "./dist/icons/home.js"
|
|
1184
1284
|
},
|
|
1285
|
+
"./icons/identification": {
|
|
1286
|
+
"types": "./types/icons/identification.d.ts",
|
|
1287
|
+
"import": "./dist/icons/identification.mjs",
|
|
1288
|
+
"default": "./dist/icons/identification.js"
|
|
1289
|
+
},
|
|
1185
1290
|
"./icons/image": {
|
|
1186
1291
|
"types": "./types/icons/image.d.ts",
|
|
1187
1292
|
"import": "./dist/icons/image.mjs",
|
|
@@ -1197,6 +1302,11 @@
|
|
|
1197
1302
|
"import": "./dist/icons/italic.mjs",
|
|
1198
1303
|
"default": "./dist/icons/italic.js"
|
|
1199
1304
|
},
|
|
1305
|
+
"./icons/lifebuoy": {
|
|
1306
|
+
"types": "./types/icons/lifebuoy.d.ts",
|
|
1307
|
+
"import": "./dist/icons/lifebuoy.mjs",
|
|
1308
|
+
"default": "./dist/icons/lifebuoy.js"
|
|
1309
|
+
},
|
|
1200
1310
|
"./icons/link": {
|
|
1201
1311
|
"types": "./types/icons/link.d.ts",
|
|
1202
1312
|
"import": "./dist/icons/link.mjs",
|
|
@@ -1302,6 +1412,16 @@
|
|
|
1302
1412
|
"import": "./dist/icons/queue.mjs",
|
|
1303
1413
|
"default": "./dist/icons/queue.js"
|
|
1304
1414
|
},
|
|
1415
|
+
"./icons/rectangle-group": {
|
|
1416
|
+
"types": "./types/icons/rectangle-group.d.ts",
|
|
1417
|
+
"import": "./dist/icons/rectangle-group.mjs",
|
|
1418
|
+
"default": "./dist/icons/rectangle-group.js"
|
|
1419
|
+
},
|
|
1420
|
+
"./icons/rectangle-stack": {
|
|
1421
|
+
"types": "./types/icons/rectangle-stack.d.ts",
|
|
1422
|
+
"import": "./dist/icons/rectangle-stack.mjs",
|
|
1423
|
+
"default": "./dist/icons/rectangle-stack.js"
|
|
1424
|
+
},
|
|
1305
1425
|
"./icons/refresh": {
|
|
1306
1426
|
"types": "./types/icons/refresh.d.ts",
|
|
1307
1427
|
"import": "./dist/icons/refresh.mjs",
|
|
@@ -1332,6 +1452,11 @@
|
|
|
1332
1452
|
"import": "./dist/icons/shop.mjs",
|
|
1333
1453
|
"default": "./dist/icons/shop.js"
|
|
1334
1454
|
},
|
|
1455
|
+
"./icons/shopping-bag": {
|
|
1456
|
+
"types": "./types/icons/shopping-bag.d.ts",
|
|
1457
|
+
"import": "./dist/icons/shopping-bag.mjs",
|
|
1458
|
+
"default": "./dist/icons/shopping-bag.js"
|
|
1459
|
+
},
|
|
1335
1460
|
"./icons/snapchat": {
|
|
1336
1461
|
"types": "./types/icons/snapchat.d.ts",
|
|
1337
1462
|
"import": "./dist/icons/snapchat.mjs",
|
|
@@ -1357,6 +1482,11 @@
|
|
|
1357
1482
|
"import": "./dist/icons/star.mjs",
|
|
1358
1483
|
"default": "./dist/icons/star.js"
|
|
1359
1484
|
},
|
|
1485
|
+
"./icons/swatch": {
|
|
1486
|
+
"types": "./types/icons/swatch.d.ts",
|
|
1487
|
+
"import": "./dist/icons/swatch.mjs",
|
|
1488
|
+
"default": "./dist/icons/swatch.js"
|
|
1489
|
+
},
|
|
1360
1490
|
"./icons/switch": {
|
|
1361
1491
|
"types": "./types/icons/switch.d.ts",
|
|
1362
1492
|
"import": "./dist/icons/switch.mjs",
|
|
@@ -1427,6 +1557,11 @@
|
|
|
1427
1557
|
"import": "./dist/icons/whatsapp.mjs",
|
|
1428
1558
|
"default": "./dist/icons/whatsapp.js"
|
|
1429
1559
|
},
|
|
1560
|
+
"./icons/window": {
|
|
1561
|
+
"types": "./types/icons/window.d.ts",
|
|
1562
|
+
"import": "./dist/icons/window.mjs",
|
|
1563
|
+
"default": "./dist/icons/window.js"
|
|
1564
|
+
},
|
|
1430
1565
|
"./icons/x": {
|
|
1431
1566
|
"types": "./types/icons/x.d.ts",
|
|
1432
1567
|
"import": "./dist/icons/x.mjs",
|
|
@@ -1437,6 +1572,16 @@
|
|
|
1437
1572
|
"import": "./dist/icons/youtube.mjs",
|
|
1438
1573
|
"default": "./dist/icons/youtube.js"
|
|
1439
1574
|
},
|
|
1575
|
+
"./icons/zoom-in": {
|
|
1576
|
+
"types": "./types/icons/zoom-in.d.ts",
|
|
1577
|
+
"import": "./dist/icons/zoom-in.mjs",
|
|
1578
|
+
"default": "./dist/icons/zoom-in.js"
|
|
1579
|
+
},
|
|
1580
|
+
"./input-answer": {
|
|
1581
|
+
"types": "./types/input-answer.d.ts",
|
|
1582
|
+
"import": "./dist/input-answer.mjs",
|
|
1583
|
+
"default": "./dist/input-answer.js"
|
|
1584
|
+
},
|
|
1440
1585
|
"./input-checkbox": {
|
|
1441
1586
|
"types": "./types/input-checkbox.d.ts",
|
|
1442
1587
|
"import": "./dist/input-checkbox.mjs",
|
|
@@ -1532,6 +1677,11 @@
|
|
|
1532
1677
|
"import": "./dist/shared/divider.mjs",
|
|
1533
1678
|
"default": "./dist/shared/divider.js"
|
|
1534
1679
|
},
|
|
1680
|
+
"./shared/document-pieces": {
|
|
1681
|
+
"types": "./types/shared/document-pieces.d.ts",
|
|
1682
|
+
"import": "./dist/shared/document-pieces.mjs",
|
|
1683
|
+
"default": "./dist/shared/document-pieces.js"
|
|
1684
|
+
},
|
|
1535
1685
|
"./shared/empty": {
|
|
1536
1686
|
"types": "./types/shared/empty.d.ts",
|
|
1537
1687
|
"import": "./dist/shared/empty.mjs",
|
|
@@ -1597,6 +1747,11 @@
|
|
|
1597
1747
|
"import": "./dist/shared/lib/icon-labels.mjs",
|
|
1598
1748
|
"default": "./dist/shared/lib/icon-labels.js"
|
|
1599
1749
|
},
|
|
1750
|
+
"./shared/lib/motion": {
|
|
1751
|
+
"types": "./types/shared/lib/motion.d.ts",
|
|
1752
|
+
"import": "./dist/shared/lib/motion.mjs",
|
|
1753
|
+
"default": "./dist/shared/lib/motion.js"
|
|
1754
|
+
},
|
|
1600
1755
|
"./shared/lib/video": {
|
|
1601
1756
|
"types": "./types/shared/lib/video.d.ts",
|
|
1602
1757
|
"import": "./dist/shared/lib/video.mjs",
|
|
@@ -1683,7 +1838,7 @@
|
|
|
1683
1838
|
"peerDependencies": {
|
|
1684
1839
|
"@analytics/google-tag-manager": ">=0.5.5",
|
|
1685
1840
|
"@drawbridge/drawbridge-telemetry": ">=0.0.19",
|
|
1686
|
-
"@drawbridge/drawbridge-utils": ">=0.0.
|
|
1841
|
+
"@drawbridge/drawbridge-utils": ">=0.0.234",
|
|
1687
1842
|
"@headlessui/react": ">=2.1.2",
|
|
1688
1843
|
"@hookform/resolvers": ">=3.1.1",
|
|
1689
1844
|
"@sentry/nextjs": ">=10.58.0",
|
|
@@ -1799,7 +1954,7 @@
|
|
|
1799
1954
|
"@analytics/google-tag-manager": "0.5.5",
|
|
1800
1955
|
"@drawbridge/drawbridge-agents": "0.1.104",
|
|
1801
1956
|
"@drawbridge/drawbridge-telemetry": "0.0.19",
|
|
1802
|
-
"@drawbridge/drawbridge-utils": "0.0.
|
|
1957
|
+
"@drawbridge/drawbridge-utils": "0.0.234",
|
|
1803
1958
|
"@headlessui/react": "2.2.9",
|
|
1804
1959
|
"@hookform/resolvers": "3.1.1",
|
|
1805
1960
|
"@sentry/nextjs": "10.58.0",
|
|
@@ -1855,6 +2010,7 @@
|
|
|
1855
2010
|
"embla-carousel-fade": "8.6.0",
|
|
1856
2011
|
"embla-carousel-react": "8.6.0",
|
|
1857
2012
|
"hls.js": "1.6.19",
|
|
2013
|
+
"react-easy-crop": "6.2.4",
|
|
1858
2014
|
"react-floater": "0.7.9",
|
|
1859
2015
|
"react-phone-number-input": "3.4.12",
|
|
1860
2016
|
"react-player": "2.16.0"
|
package/types/bridge/fields.d.ts
CHANGED
|
@@ -26,4 +26,9 @@ export interface FieldProps {
|
|
|
26
26
|
value?: any;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
// A Section asks nothing; a skill testing question is its question with a
|
|
30
|
+
// number input ( Pistachio ).
|
|
31
|
+
export declare const components: Record<'email' | 'name' | 'number' | 'phone' | 'section' | 'select' | 'skill' | 'text' | 'textarea', ComponentType<FieldProps>>;
|
|
32
|
+
|
|
33
|
+
// The label with " *" after it, unless attributes.required is false.
|
|
34
|
+
export declare const starred: ( field?: Field ) => string | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { BrandStyle } from '../styles';
|
|
3
|
+
import { DocumentData } from '../shared/document-pieces';
|
|
4
|
+
|
|
5
|
+
export interface AgreementDocumentProps {
|
|
6
|
+
data?: DocumentData;
|
|
7
|
+
style?: BrandStyle;
|
|
8
|
+
// The document's html; sanitized before it is drawn.
|
|
9
|
+
value?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface FormSubdomainAgreementProps {
|
|
13
|
+
agreement?: { document?: string };
|
|
14
|
+
// Back: to the form or to the menu.
|
|
15
|
+
back: () => void;
|
|
16
|
+
button?: ReactNode;
|
|
17
|
+
data?: DocumentData;
|
|
18
|
+
style?: BrandStyle;
|
|
19
|
+
// The menu's short name.
|
|
20
|
+
title?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export declare const AgreementDocument: ComponentType<AgreementDocumentProps>;
|
|
24
|
+
|
|
25
|
+
declare const FormSubdomainAgreement: ComponentType<FormSubdomainAgreementProps>;
|
|
26
|
+
|
|
27
|
+
export default FormSubdomainAgreement;
|